diff --git a/assets/index-CWxie7sp.js b/assets/index-B6w0UBaO.js similarity index 98% rename from assets/index-CWxie7sp.js rename to assets/index-B6w0UBaO.js index 75f569f..6f3b149 100644 --- a/assets/index-CWxie7sp.js +++ b/assets/index-B6w0UBaO.js @@ -14,7 +14,7 @@ function NT(V,q){for(var ye=0;ye{m&&ab?ab(()=>e(s)):e(s)},[e,m]);return Gn.useLayoutEffect(()=>G.listen(P),[G,P]),Gn.createElement(qA,{basename:q,children:ye,location:H.location,navigationType:H.action,navigator:G,future:ke})}var ib;(function(V){V.UseScrollRestoration="useScrollRestoration",V.UseSubmit="useSubmit",V.UseSubmitFetcher="useSubmitFetcher",V.UseFetcher="useFetcher",V.useViewTransitionState="useViewTransitionState"})(ib||(ib={}));var ob;(function(V){V.UseFetcher="useFetcher",V.UseFetchers="useFetchers",V.UseScrollRestoration="useScrollRestoration"})(ob||(ob={}));const aS="_home_container_yyege_1",iS="_home_yyege_1",oS="_home_table_navbar_yyege_20",sS="_home_table_navbar_item_yyege_27",lS="_search_div_yyege_37",uS="_home_table_search_yyege_47",fS="_clear_button_yyege_66",cS="_home_table_and_chart_yyege_78",hS="_home_table_yyege_20",vS="_table_container_yyege_98",dS="_table_symbol_yyege_125",pS="_positive_yyege_132",gS="_negative_yyege_135",yS="_table_range_yyege_138",mS="_table_range_length_yyege_146",xS="_table_range_fill_yyege_152",bS="_table_range_label_yyege_157",wS="_slideIn_yyege_185",TS="_slideOut_yyege_188",AS="_home_chart_yyege_192",SS="_home_chart_price_yyege_206",MS="_home_chart_volatility_yyege_206",ES="_home_chart_add_to_bucket_yyege_218",CS="_home_chart_add_to_bucket_form_yyege_226",LS="_form_input_yyege_244",PS="_controller_buttons_yyege_254",_S="_controller_buttons_buttons_yyege_263",RS="_selected_yyege_277",DS="_popup_container_yyege_283",IS="_popup_yyege_283",kS="_closeButton_yyege_308",zS="_bucket_table_yyege_319",OS="_deleteIcon_yyege_328",FS="_settings_options_yyege_332",NS="_popup_header_yyege_340",BS="_popup_proceed_yyege_343",US="_settings_cancel_yyege_356",VS="_settings_buttons_yyege_369",HS="_analysis_options_yyege_374",GS="_analysis_options_input_yyege_387",WS="_loading_yyege_394",Pa={home_container:aS,home:iS,home_table_navbar:oS,home_table_navbar_item:sS,search_div:lS,home_table_search:uS,clear_button:fS,home_table_and_chart:cS,home_table:hS,table_container:vS,table_symbol:dS,positive:pS,negative:gS,table_range:yS,table_range_length:mS,table_range_fill:xS,table_range_label:bS,slideIn:wS,slideOut:TS,home_chart:AS,home_chart_price:SS,home_chart_volatility:MS,home_chart_add_to_bucket:ES,home_chart_add_to_bucket_form:CS,form_input:LS,controller_buttons:PS,controller_buttons_buttons:_S,selected:RS,popup_container:DS,popup:IS,closeButton:kS,bucket_table:zS,deleteIcon:OS,settings_options:FS,popup_header:NS,popup_proceed:BS,settings_cancel:US,settings_buttons:VS,analysis_options:HS,analysis_options_input:GS,loading:WS};var Iw={},kw={},zw={exports:{}},YS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jS=YS,XS=jS;function Ow(){}function Fw(){}Fw.resetWarningCache=Ow;var ZS=function(){function V(ke,tt,mt,G,H,e){if(e!==XS){var m=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 m.name="Invariant Violation",m}}V.isRequired=V;function q(){return V}var ye={array:V,bigint:V,bool:V,func:V,number:V,object:V,string:V,symbol:V,any:V,arrayOf:q,element:V,elementType:V,instanceOf:q,node:V,objectOf:q,oneOf:q,oneOfType:q,shape:q,exact:q,checkPropTypes:Fw,resetWarningCache:Ow};return ye.PropTypes=ye,ye};zw.exports=ZS();var KS=zw.exports;(function(V){function q(u){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},q(u)}Object.defineProperty(V,"__esModule",{value:!0}),V.default=f;var ye=G(Gn),ke=tt(KS);function tt(u){return u&&u.__esModule?u:{default:u}}function mt(u){if(typeof WeakMap!="function")return null;var l=new WeakMap,g=new WeakMap;return(mt=function(T){return T?g:l})(u)}function G(u,l){if(u&&u.__esModule)return u;if(u===null||q(u)!=="object"&&typeof u!="function")return{default:u};var g=mt(l);if(g&&g.has(u))return g.get(u);var h={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in u)if(c!=="default"&&Object.prototype.hasOwnProperty.call(u,c)){var i=T?Object.getOwnPropertyDescriptor(u,c):null;i&&(i.get||i.set)?Object.defineProperty(h,c,i):h[c]=u[c]}return h.default=u,g&&g.set(u,h),h}function H(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function e(u,l){for(var g=0;g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function r(u){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},r(u)}var t=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],a=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],n=typeof window<"u";function f(u){var l=function(g){P(T,g);var h=L(T);function T(c){var i;return H(this,T),i=h.call(this,c),i.p=Promise.resolve(),i.resizeHandler=null,i.handlers={},i.syncWindowResize=i.syncWindowResize.bind(v(i)),i.syncEventHandlers=i.syncEventHandlers.bind(v(i)),i.attachUpdateEvents=i.attachUpdateEvents.bind(v(i)),i.getRef=i.getRef.bind(v(i)),i.handleUpdate=i.handleUpdate.bind(v(i)),i.figureCallback=i.figureCallback.bind(v(i)),i.updatePlotly=i.updatePlotly.bind(v(i)),i}return m(T,[{key:"updatePlotly",value:function(i,d,x){var w=this;this.p=this.p.then(function(){if(!w.unmounting){if(!w.el)throw new Error("Missing element reference");return u.react(w.el,{data:w.props.data,layout:w.props.layout,config:w.props.config,frames:w.props.frames})}}).then(function(){w.unmounting||(w.syncWindowResize(i),w.syncEventHandlers(),w.figureCallback(d),x&&w.attachUpdateEvents())}).catch(function(C){w.props.onError&&w.props.onError(C)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(i){this.unmounting=!1;var d=i.frames&&i.frames.length?i.frames.length:0,x=this.props.frames&&this.props.frames.length?this.props.frames.length:0,w=!(i.layout===this.props.layout&&i.data===this.props.data&&i.config===this.props.config&&x===d),C=i.revision!==void 0,y=i.revision!==this.props.revision;!w&&(!C||C&&!y)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&n&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),u.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var i=this;!this.el||!this.el.removeListener||a.forEach(function(d){i.el.on(d,i.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var i=this;!this.el||!this.el.removeListener||a.forEach(function(d){i.el.removeListener(d,i.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(i){if(typeof i=="function"){var d=this.el,x=d.data,w=d.layout,C=this.el._transitionData?this.el._transitionData._frames:null,y={data:x,layout:w,frames:C};i(y,this.el)}}},{key:"syncWindowResize",value:function(i){var d=this;n&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return u.Plots.resize(d.el)},window.addEventListener("resize",this.resizeHandler),i&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(i){this.el=i,this.props.debug&&n&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var i=this;t.forEach(function(d){var x=i.props["on"+d],w=i.handlers[d],C=!!w;x&&!C?i.addEventHandler(d,x):!x&&C?i.removeEventHandler(d):x&&C&&x!==w&&(i.removeEventHandler(d),i.addEventHandler(d,x))})}},{key:"addEventHandler",value:function(i,d){this.handlers[i]=d,this.el.on(this.getPlotlyEventName(i),this.handlers[i])}},{key:"removeEventHandler",value:function(i){this.el.removeListener(this.getPlotlyEventName(i),this.handlers[i]),delete this.handlers[i]}},{key:"getPlotlyEventName",value:function(i){return"plotly_"+i.toLowerCase()}},{key:"render",value:function(){return ye.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),T}(ye.Component);return l.propTypes={data:ke.default.arrayOf(ke.default.object),config:ke.default.object,layout:ke.default.object,frames:ke.default.arrayOf(ke.default.object),revision:ke.default.number,onInitialized:ke.default.func,onPurge:ke.default.func,onError:ke.default.func,onUpdate:ke.default.func,debug:ke.default.bool,style:ke.default.object,className:ke.default.string,useResizeHandler:ke.default.bool,divId:ke.default.string},t.forEach(function(g){l.propTypes["on"+g]=ke.default.func}),l.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},l}})(kw);var Nw={exports:{}};(function(V,q){(function(ke,tt){V.exports=tt()})(self,function(){return function(){var ye={79288:function(G,H,e){var m=e(3400),P={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in P){var L=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");m.addStyleRule(L,P[s])}},86712:function(G,H,e){G.exports=e(84224)},37240:function(G,H,e){G.exports=e(51132)},29744:function(G,H,e){G.exports=e(94456)},29352:function(G,H,e){G.exports=e(67244)},96144:function(G,H,e){G.exports=e(97776)},53219:function(G,H,e){G.exports=e(61712)},4624:function(G,H,e){G.exports=e(95856)},54543:function(G,H,e){G.exports=e(54272)},45e3:function(G,H,e){G.exports=e(85404)},62300:function(G,H,e){G.exports=e(26048)},6920:function(G,H,e){G.exports=e(66240)},10264:function(G,H,e){G.exports=e(40448)},32016:function(G,H,e){G.exports=e(64884)},27528:function(G,H,e){G.exports=e(15088)},75556:function(G,H,e){G.exports=e(76744)},39204:function(G,H,e){G.exports=e(94704)},73996:function(G,H,e){G.exports=e(62396)},16489:function(G,H,e){G.exports=e(32028)},5e3:function(G,H,e){G.exports=e(81932)},77280:function(G,H,e){G.exports=e(45536)},33992:function(G,H,e){G.exports=e(42600)},17600:function(G,H,e){G.exports=e(21536)},49116:function(G,H,e){G.exports=e(65664)},46808:function(G,H,e){G.exports=e(29044)},36168:function(G,H,e){G.exports=e(48928)},13792:function(G,H,e){var m=e(32016);m.register([e(37240),e(29352),e(5e3),e(33992),e(17600),e(49116),e(6920),e(67484),e(79440),e(39204),e(83096),e(36168),e(20260),e(63560),e(65832),e(46808),e(73996),e(48824),e(89904),e(25120),e(13752),e(4340),e(62300),e(29800),e(8363),e(54543),e(86636),e(42192),e(32140),e(77280),e(89296),e(56816),e(70192),e(45e3),e(27528),e(84764),e(3920),e(50248),e(4624),e(69967),e(10264),e(86152),e(53219),e(81604),e(63796),e(29744),e(89336),e(86712),e(75556),e(16489),e(97312),e(96144)]),G.exports=m},3920:function(G,H,e){G.exports=e(43480)},25120:function(G,H,e){G.exports=e(6296)},4340:function(G,H,e){G.exports=e(7404)},86152:function(G,H,e){G.exports=e(65456)},56816:function(G,H,e){G.exports=e(22020)},89296:function(G,H,e){G.exports=e(29928)},20260:function(G,H,e){G.exports=e(75792)},32140:function(G,H,e){G.exports=e(156)},84764:function(G,H,e){G.exports=e(45499)},48824:function(G,H,e){G.exports=e(3296)},69967:function(G,H,e){G.exports=e(4184)},8363:function(G,H,e){G.exports=e(36952)},86636:function(G,H,e){G.exports=e(38983)},70192:function(G,H,e){G.exports=e(11572)},81604:function(G,H,e){G.exports=e(76924)},63796:function(G,H,e){G.exports=e(62944)},89336:function(G,H,e){G.exports=e(95443)},67484:function(G,H,e){G.exports=e(34864)},97312:function(G,H,e){G.exports=e(76272)},42192:function(G,H,e){G.exports=e(97924)},29800:function(G,H,e){G.exports=e(15436)},63560:function(G,H,e){G.exports=e(5621)},89904:function(G,H,e){G.exports=e(91304)},50248:function(G,H,e){G.exports=e(41724)},65832:function(G,H,e){G.exports=e(31991)},79440:function(G,H,e){G.exports=e(22869)},13752:function(G,H,e){G.exports=e(67776)},83096:function(G,H,e){G.exports=e(95952)},72196:function(G){G.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(G,H,e){var m=e(72196),P=e(25376),s=e(33816),L=e(31780).templatedArray;e(36208),G.exports=L("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:P({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:m.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:m.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:P({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(G,H,e){var m=e(3400),P=e(54460),s=e(23816).draw;G.exports=function(p){var r=p._fullLayout,t=m.filterVisible(r.annotations);if(t.length&&p._fullData.length)return m.syncOrAsync([s,L],p)};function L(v){var p=v._fullLayout;m.filterVisible(p.annotations).forEach(function(r){var t=P.getFromId(v,r.xref),a=P.getFromId(v,r.yref),n=P.getRefType(r.xref),f=P.getRefType(r.yref);r._extremes={},n==="range"&&S(r,t),f==="range"&&S(r,a)})}function S(v,p){var r=p._id,t=r.charAt(0),a=v[t],n=v["a"+t],f=v[t+"ref"],u=v["a"+t+"ref"],l=v["_"+t+"padplus"],g=v["_"+t+"padminus"],h={x:1,y:-1}[t]*v[t+"shift"],T=3*v.arrowsize*v.arrowwidth||0,c=T+h,i=T-h,d=3*v.startarrowsize*v.arrowwidth||0,x=d+h,w=d-h,C;if(u===f){var y=P.findExtremes(p,[p.r2c(a)],{ppadplus:c,ppadminus:i}),E=P.findExtremes(p,[p.r2c(n)],{ppadplus:Math.max(l,x),ppadminus:Math.max(g,w)});C={min:[y.min[0],E.min[0]],max:[y.max[0],E.max[0]]}}else x=n?x+n:x,w=n?w-n:w,C=P.findExtremes(p,[p.r2c(a)],{ppadplus:Math.max(l,c,x),ppadminus:Math.max(g,i,w)});v._extremes[r]=C}},42300:function(G,H,e){var m=e(3400),P=e(24040),s=e(31780).arrayEditor;G.exports={hasClickToShow:L,onClick:S};function L(r,t){var a=v(r,t);return a.on.length>0||a.explicitOff.length>0}function S(r,t){var a=v(r,t),n=a.on,f=a.off.concat(a.explicitOff),u={},l=r._fullLayout.annotations,g,h;if(n.length||f.length){for(g=0;g.6666666666666666?Ot="right":Ot="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ot]}for(var et=!1,ot=["x","y"],Qe=0;Qe1)&&(vt===ht?(Ne=pt.r2fraction(d["a"+$e]),(Ne<0||Ne>1)&&(et=!0)):et=!0),Le=pt._offset+pt.r2p(d[$e]),Ce=.5}else{var Ze=me==="domain";$e==="x"?(je=d[$e],Le=Ze?pt._offset+pt._length*je:Le=A.l+A.w*je):(je=1-d[$e],Le=Ze?pt._offset+pt._length*je:Le=A.t+A.h*je),Ce=d.showarrow?.5:je}if(d.showarrow){Ge.head=Le;var st=d["a"+$e];if(he=Ct*Ve(.5,d.xanchor)-rt*Ve(.5,d.yanchor),vt===ht){var lt=v.getRefType(vt);lt==="domain"?($e==="y"&&(st=1-st),Ge.tail=pt._offset+pt._length*st):lt==="paper"?$e==="y"?(st=1-st,Ge.tail=A.t+A.h*st):Ge.tail=A.l+A.w*st:Ge.tail=pt._offset+pt.r2p(st),Pe=he}else Ge.tail=Le+st,Pe=he+st;Ge.text=Ge.tail+he;var Wt=E[$e==="x"?"width":"height"];if(ht==="paper"&&(Ge.head=L.constrain(Ge.head,1,Wt-1)),vt==="pixel"){var Zt=-Math.max(Ge.tail-3,Ge.text),Tt=Math.min(Ge.tail+3,Ge.text)-Wt;Zt>0?(Ge.tail+=Zt,Ge.text+=Zt):Tt>0&&(Ge.tail-=Tt,Ge.text-=Tt)}Ge.tail+=We,Ge.head+=We}else he=ze*Ve(Ce,He),Pe=he,Ge.text=Le+he;Ge.text+=We,he+=We,Pe+=We,d["_"+$e+"padplus"]=ze/2+Pe,d["_"+$e+"padminus"]=ze/2-Pe,d["_"+$e+"size"]=ze,d["_"+$e+"shift"]=he}if(et){le.remove();return}var Rt=0,Xt=0;if(d.align!=="left"&&(Rt=(Re-Fe)*(d.align==="center"?.5:1)),d.valign!=="top"&&(Xt=(Se-Te)*(d.valign==="middle"?.5:1)),_e)xe.select("svg").attr({x:ie+Rt-1,y:ie+Xt}).call(r.setClipUrl,Q?O:null,i);else{var gr=ie+Xt-De.top,gt=ie+Rt-De.left;se.call(a.positionText,gt,gr).call(r.setClipUrl,Q?O:null,i)}oe.select("rect").call(r.setRect,ie,ie,Re,Se),X.call(r.setRect,$/2,$/2,Ie-$,Me-$),le.call(r.setTranslate,Math.round(F.x.text-Ie/2),Math.round(F.y.text-Me/2)),W.attr({transform:"rotate("+z+","+F.x.text+","+F.y.text+")"});var Kt=function(yr,Ot){B.selectAll(".annotation-arrow-g").remove();var ut=F.x.head,at=F.y.head,xt=F.x.tail+yr,At=F.y.tail+Ot,Et=F.x.text+yr,Vt=F.y.text+Ot,Bt=L.rotationXYMatrix(z,Et,Vt),Ut=L.apply2DTransform(Bt),Jt=L.apply2DTransform2(Bt),ur=+X.attr("width"),fr=+X.attr("height"),dr=Et-.5*ur,Ye=dr+ur,Ue=Vt-.5*fr,zt=Ue+fr,Dt=[[dr,Ue,dr,zt],[dr,zt,Ye,zt],[Ye,zt,Ye,Ue],[Ye,Ue,dr,Ue]].map(Jt);if(!Dt.reduce(function(Rr,an){return Rr^!!L.segmentsIntersect(ut,at,ut+1e6,at+1e6,an[0],an[1],an[2],an[3])},!1)){Dt.forEach(function(Rr){var an=L.segmentsIntersect(xt,At,ut,at,Rr[0],Rr[1],Rr[2],Rr[3]);an&&(xt=an.x,At=an.y)});var $t=d.arrowwidth,sr=d.arrowcolor,cr=d.arrowside,tr=B.append("g").style({opacity:p.opacity(sr)}).classed("annotation-arrow-g",!0),Nt=tr.append("path").attr("d","M"+xt+","+At+"L"+ut+","+at).style("stroke-width",$t+"px").call(p.stroke,p.rgb(sr));if(l(Nt,cr,d),o.annotationPosition&&Nt.node().parentNode&&!w){var ir=ut,hr=at;if(d.standoff){var xr=Math.sqrt(Math.pow(ut-xt,2)+Math.pow(at-At,2));ir+=d.standoff*(xt-ut)/xr,hr+=d.standoff*(At-at)/xr}var vr=tr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xt-ir)+","+(At-hr),transform:S(ir,hr)}).style("stroke-width",$t+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)"),Hr,Pr;f.init({element:vr.node(),gd:i,prepFn:function(){var Rr=r.getTranslate(le);Hr=Rr.x,Pr=Rr.y,C&&C.autorange&&D(C._name+".autorange",!0),y&&y.autorange&&D(y._name+".autorange",!0)},moveFn:function(Rr,an){var tn=Ut(Hr,Pr),Sn=tn[0]+Rr,Tn=tn[1]+an;le.call(r.setTranslate,Sn,Tn),N("x",T(C,Rr,"x",A,d)),N("y",T(y,an,"y",A,d)),d.axref===d.xref&&N("ax",T(C,Rr,"ax",A,d)),d.ayref===d.yref&&N("ay",T(y,an,"ay",A,d)),tr.attr("transform",S(Rr,an)),W.attr({transform:"rotate("+z+","+Sn+","+Tn+")"})},doneFn:function(){P.call("_guiRelayout",i,k());var Rr=document.querySelector(".js-notes-box-panel");Rr&&Rr.redraw(Rr.selectedObj)}})}}};if(d.showarrow&&Kt(0,0),J){var Qt;f.init({element:le.node(),gd:i,prepFn:function(){Qt=W.attr("transform")},moveFn:function(yr,Ot){var ut="pointer";if(d.showarrow)d.axref===d.xref?N("ax",T(C,yr,"ax",A,d)):N("ax",d.ax+yr),d.ayref===d.yref?N("ay",T(y,Ot,"ay",A.w,d)):N("ay",d.ay+Ot),Kt(yr,Ot);else{if(w)return;var at,xt;if(C)at=T(C,yr,"x",A,d);else{var At=d._xsize/A.w,Et=d.x+(d._xshift-d.xshift)/A.w-At/2;at=f.align(Et+yr/A.w,At,0,1,d.xanchor)}if(y)xt=T(y,Ot,"y",A,d);else{var Vt=d._ysize/A.h,Bt=d.y-(d._yshift+d.yshift)/A.h-Vt/2;xt=f.align(Bt-Ot/A.h,Vt,0,1,d.yanchor)}N("x",at),N("y",xt),(!C||!y)&&(ut=f.getCursor(C?.5:at,y?.5:xt,d.xanchor,d.yanchor))}W.attr({transform:S(yr,Ot)+Qt}),n(le,ut)},clickFn:function(yr,Ot){d.captureevents&&i.emit("plotly_clickannotation",ne(Ot))},doneFn:function(){n(le),P.call("_guiRelayout",i,k());var yr=document.querySelector(".js-notes-box-panel");yr&&yr.redraw(yr.selectedObj)}})}}o.annotationText?se.call(a.makeEditable,{delegate:le,gd:i}).call(te).on("edit",function(ge){d.text=ge,this.call(te),N("text",ge),C&&C.autorange&&D(C._name+".autorange",!0),y&&y.autorange&&D(y._name+".autorange",!0),P.call("_guiRelayout",i,k())}):se.call(te)}},33652:function(G,H,e){var m=e(33428),P=e(76308),s=e(72196),L=e(3400),S=L.strScale,v=L.strRotate,p=L.strTranslate;G.exports=function(t,a,n){var f=t.node(),u=s[n.arrowhead||0],l=s[n.startarrowhead||0],g=(n.arrowwidth||1)*(n.arrowsize||1),h=(n.arrowwidth||1)*(n.startarrowsize||1),T=a.indexOf("start")>=0,c=a.indexOf("end")>=0,i=u.backoff*g+n.standoff,d=l.backoff*h+n.startstandoff,x,w,C,y;if(f.nodeName==="line"){x={x:+t.attr("x1"),y:+t.attr("y1")},w={x:+t.attr("x2"),y:+t.attr("y2")};var E=x.x-w.x,A=x.y-w.y;if(C=Math.atan2(A,E),y=C+Math.PI,i&&d&&i+d>Math.sqrt(E*E+A*A)){W();return}if(i){if(i*i>E*E+A*A){W();return}var o=i*Math.cos(C),M=i*Math.sin(C);w.x+=o,w.y+=M,t.attr({x2:w.x,y2:w.y})}if(d){if(d*d>E*E+A*A){W();return}var b=d*Math.cos(C),I=d*Math.sin(C);x.x-=b,x.y-=I,t.attr({x1:x.x,y1:x.y})}}else if(f.nodeName==="path"){var D=f.getTotalLength(),N="";if(D1){n=!0;break}}n?S.fullLayout._infolayer.select(".annotation-"+S.id+'[data-index="'+t+'"]').remove():(a._pdata=P(S.glplot.cameraParams,[v.xaxis.r2l(a.x)*p[0],v.yaxis.r2l(a.y)*p[1],v.zaxis.r2l(a.z)*p[2]]),m(S.graphDiv,a,t,S.id,a._xa,a._ya))}}},56864:function(G,H,e){var m=e(24040),P=e(3400);G.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(45899)}}},layoutAttributes:e(45899),handleDefaults:e(52808),includeBasePlot:s,convert:e(42456),draw:e(71836)};function s(L,S){var v=m.subplotsRegistry.gl3d;if(v)for(var p=v.attrRegex,r=Object.keys(L),t=0;t=0)))return t;if(l===3)f[l]>1&&(f[l]=1);else if(f[l]>=1)return t}var g=Math.round(f[0]*255)+", "+Math.round(f[1]*255)+", "+Math.round(f[2]*255);return u?"rgba("+g+", "+f[3]+")":"rgb("+g+")"}},42996:function(G,H,e){var m=e(94724),P=e(25376),s=e(92880).extendFlat,L=e(67824).overrideAll;G.exports=L({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:m.linecolor,outlinewidth:m.linewidth,bordercolor:m.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:m.minor.tickmode,nticks:m.nticks,tick0:m.tick0,dtick:m.dtick,tickvals:m.tickvals,ticktext:m.ticktext,ticks:s({},m.ticks,{dflt:""}),ticklabeloverflow:s({},m.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:m.ticklen,tickwidth:m.tickwidth,tickcolor:m.tickcolor,ticklabelstep:m.ticklabelstep,showticklabels:m.showticklabels,labelalias:m.labelalias,tickfont:P({}),tickangle:m.tickangle,tickformat:m.tickformat,tickformatstops:m.tickformatstops,tickprefix:m.tickprefix,showtickprefix:m.showtickprefix,ticksuffix:m.ticksuffix,showticksuffix:m.showticksuffix,separatethousands:m.separatethousands,exponentformat:m.exponentformat,minexponent:m.minexponent,showexponent:m.showexponent,title:{text:{valType:"string"},font:P({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:P({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(G){G.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},64013:function(G,H,e){var m=e(3400),P=e(31780),s=e(26332),L=e(25404),S=e(95936),v=e(42568),p=e(42996);G.exports=function(t,a,n){var f=P.newContainer(a,"colorbar"),u=t.colorbar||{};function l(F,z){return m.coerce(u,f,p,F,z)}var g=n.margin||{t:0,b:0,l:0,r:0},h=n.width-g.l-g.r,T=n.height-g.t-g.b,c=l("orientation"),i=c==="v",d=l("thicknessmode");l("thickness",d==="fraction"?30/(i?h:T):30);var x=l("lenmode");l("len",x==="fraction"?1:i?T:h);var w=l("yref"),C=l("xref"),y=w==="paper",E=C==="paper",A,o,M,b="left";i?(M="middle",b=E?"left":"right",A=E?1.02:1,o=.5):(M=y?"bottom":"top",b="center",A=.5,o=y?1.02:1),m.coerce(u,f,{x:{valType:"number",min:E?-2:0,max:E?3:1,dflt:A}},"x"),m.coerce(u,f,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:o}},"y"),l("xanchor",b),l("xpad"),l("yanchor",M),l("ypad"),m.noneOrAll(u,f,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var I=m.coerce(u,f,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:i?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",I.indexOf("inside")!==-1?"hide past domain":"hide past div"),s(u,f,l,"linear");var D=n.font,N={noAutotickangles:!0,outerTicks:!1,font:D};I.indexOf("inside")!==-1&&(N.bgColor="black"),v(u,f,l,"linear",N),S(u,f,l,"linear",N),L(u,f,l,"linear",N),l("title.text",n._dfltTitle.colorbar);var k=f.showticklabels?f.tickfont:D,O=m.extendFlat({},D,{family:k.family,size:m.bigFont(k.size)});m.coerceFont(l,"title.font",O),l("title.side",i?"top":"right")}},37848:function(G,H,e){var m=e(33428),P=e(49760),s=e(7316),L=e(24040),S=e(54460),v=e(86476),p=e(3400),r=p.strTranslate,t=e(92880).extendFlat,a=e(93972),n=e(43616),f=e(76308),u=e(81668),l=e(72736),g=e(94288).flipScale,h=e(28336),T=e(37668),c=e(94724),i=e(84284),d=i.LINE_SPACING,x=i.FROM_TL,w=i.FROM_BR,C=e(63964).cn;function y(I){var D=I._fullLayout,N=D._infolayer.selectAll("g."+C.colorbar).data(E(I),function(k){return k._id});N.enter().append("g").attr("class",function(k){return k._id}).classed(C.colorbar,!0),N.each(function(k){var O=m.select(this);p.ensureSingle(O,"rect",C.cbbg),p.ensureSingle(O,"g",C.cbfills),p.ensureSingle(O,"g",C.cblines),p.ensureSingle(O,"g",C.cbaxis,function(z){z.classed(C.crisp,!0)}),p.ensureSingle(O,"g",C.cbtitleunshift,function(z){z.append("g").classed(C.cbtitle,!0)}),p.ensureSingle(O,"rect",C.cboutline);var F=A(O,k,I);F&&F.then&&(I._promises||[]).push(F),I._context.edits.colorbarPosition&&o(O,k,I)}),N.exit().each(function(k){s.autoMargin(I,k._id)}).remove(),N.order()}function E(I){var D=I._fullLayout,N=I.calcdata,k=[],O,F,z,B;function W(Y){return t(Y,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function J(){typeof B.calc=="function"?B.calc(I,z,O):(O._fillgradient=F.reversescale?g(F.colorscale):F.colorscale,O._zrange=[F[B.min],F[B.max]])}for(var re=0;re1){var Ge=Math.pow(10,Math.floor(Math.log(We)/Math.LN10));ze*=Ge*p.roundUp(We/Ge,[2,5,10]),(Math.abs(De.start)/De.size+1e-6)%1<2e-6&&(Ct.tick0=0)}Ct.dtick=ze}Ct.domain=k?[pt+Z/j.h,pt+Ve-Z/j.h]:[pt+$/j.w,pt+Ve-$/j.w],Ct.setScale(),I.attr("transform",r(Math.round(j.l),Math.round(j.t)));var Le=I.select("."+C.cbtitleunshift).attr("transform",r(-Math.round(j.l),-Math.round(j.t))),Pe=Ct.ticklabelposition,je=Ct.title.font.size,Ce=I.select("."+C.cbaxis),he,me=0,Ne=0;function Ze(Tt,Rt){var Xt={propContainer:Ct,propName:D._propPrefix+"title",traceIndex:D._traceIndex,_meta:D._meta,placeholder:Y._dfltTitle.colorbar,containerGroup:I.select("."+C.cbtitle)},gr=Tt.charAt(0)==="h"?Tt.substr(1):"h"+Tt;I.selectAll("."+gr+",."+gr+"-math-group").remove(),u.draw(N,Tt,t(Xt,Rt||{}))}function st(){if(k&&rt||!k&&!rt){var Tt,Rt;ge==="top"&&(Tt=$+j.l+et*ie,Rt=Z+j.t+ot*(1-pt-Ve)+3+je*.75),ge==="bottom"&&(Tt=$+j.l+et*ie,Rt=Z+j.t+ot*(1-pt)-3-je*.25),ge==="right"&&(Rt=Z+j.t+ot*X+3+je*.75,Tt=$+j.l+et*pt),Ze(Ct._id+"title",{attributes:{x:Tt,y:Rt,"text-anchor":k?"start":"middle"}})}}function lt(){if(k&&!rt||!k&&rt){var Tt=Ct.position||0,Rt=Ct._offset+Ct._length/2,Xt,gr;if(ge==="right")gr=Rt,Xt=j.l+et*Tt+10+je*(Ct.showticklabels?1:.5);else if(Xt=Rt,ge==="bottom"&&(gr=j.t+ot*Tt+10+(Pe.indexOf("inside")===-1?Ct.tickfont.size:0)+(Ct.ticks!=="intside"&&D.ticklen||0)),ge==="top"){var gt=fe.text.split("
").length;gr=j.t+ot*Tt+10-Se-d*je*gt}Ze((k?"h":"v")+Ct._id+"title",{avoid:{selection:m.select(N).selectAll("g."+Ct._id+"tick"),side:ge,offsetTop:k?0:j.t,offsetLeft:k?j.l:0,maxShift:k?Y.width:Y.height},attributes:{x:Xt,y:gr,"text-anchor":"middle"},transform:{rotate:k?-90:0,offset:0}})}}function Wt(){if(!k&&!rt||k&&rt){var Tt=I.select("."+C.cbtitle),Rt=Tt.select("text"),Xt=[-W/2,W/2],gr=Tt.select(".h"+Ct._id+"title-math-group").node(),gt=15.6;Rt.node()&&(gt=parseInt(Rt.node().style.fontSize,10)*d);var Kt;if(gr?(Kt=n.bBox(gr),Ne=Kt.width,me=Kt.height,me>gt&&(Xt[1]-=(me-gt)/2)):Rt.node()&&!Rt.classed(C.jsPlaceholder)&&(Kt=n.bBox(Rt.node()),Ne=Kt.width,me=Kt.height),k){if(me){if(me+=5,ge==="top")Ct.domain[1]-=me/j.h,Xt[1]*=-1;else{Ct.domain[0]+=me/j.h;var Qt=l.lineCount(Rt);Xt[1]+=(1-Qt)*gt}Tt.attr("transform",r(Xt[0],Xt[1])),Ct.setScale()}}else Ne&&(ge==="right"&&(Ct.domain[0]+=(Ne+je/2)/j.w),Tt.attr("transform",r(Xt[0],Xt[1])),Ct.setScale())}I.selectAll("."+C.cbfills+",."+C.cblines).attr("transform",k?r(0,Math.round(j.h*(1-Ct.domain[1]))):r(Math.round(j.w*Ct.domain[0]),0)),Ce.attr("transform",k?r(0,Math.round(-j.t)):r(Math.round(-j.l),0));var yr=I.select("."+C.cbfills).selectAll("rect."+C.cbfill).attr("style","").data(Te);yr.enter().append("rect").classed(C.cbfill,!0).attr("style",""),yr.exit().remove();var Ot=be.map(Ct.c2p).map(Math.round).sort(function(Et,Vt){return Et-Vt});yr.each(function(Et,Vt){var Bt=[Vt===0?be[0]:(Te[Vt]+Te[Vt-1])/2,Vt===Te.length-1?be[1]:(Te[Vt]+Te[Vt+1])/2].map(Ct.c2p).map(Math.round);k&&(Bt[1]=p.constrain(Bt[1]+(Bt[1]>Bt[0])?1:-1,Ot[0],Ot[1]));var Ut=m.select(this).attr(k?"x":"y",Qe).attr(k?"y":"x",m.min(Bt)).attr(k?"width":"height",Math.max(Se,2)).attr(k?"height":"width",Math.max(m.max(Bt)-m.min(Bt),2));if(D._fillgradient)n.gradient(Ut,N,D._id,k?"vertical":"horizontalreversed",D._fillgradient,"fill");else{var Jt=_e(Et).replace("e-","");Ut.attr("fill",P(Jt).toHexString())}});var ut=I.select("."+C.cblines).selectAll("path."+C.cbline).data(te.color&&te.width?Re:[]);ut.enter().append("path").classed(C.cbline,!0),ut.exit().remove(),ut.each(function(Et){var Vt=Qe,Bt=Math.round(Ct.c2p(Et))+te.width/2%1;m.select(this).attr("d","M"+(k?Vt+","+Bt:Bt+","+Vt)+(k?"h":"v")+Se).call(n.lineGroupStyle,te.width,xe(Et),te.dash)}),Ce.selectAll("g."+Ct._id+"tick,path").remove();var at=Qe+Se+(W||0)/2-(D.ticks==="outside"?1:0),xt=S.calcTicks(Ct),At=S.getTickSigns(Ct)[2];return S.drawTicks(N,Ct,{vals:Ct.ticks==="inside"?S.clipEnds(Ct,xt):xt,layer:Ce,path:S.makeTickPath(Ct,at,At),transFn:S.makeTransTickFn(Ct)}),S.drawLabels(N,Ct,{vals:xt,layer:Ce,transFn:S.makeTransTickLabelFn(Ct),labelFns:S.makeLabelFns(Ct,at)})}function Zt(){var Tt,Rt=Se+W/2;Pe.indexOf("inside")===-1&&(Tt=n.bBox(Ce.node()),Rt+=k?Tt.width:Tt.height),he=Le.select("text");var Xt=0,gr=k&&ge==="top",gt=!k&&ge==="right",Kt=0;if(he.node()&&!he.classed(C.jsPlaceholder)){var Qt,yr=Le.select(".h"+Ct._id+"title-math-group").node();yr&&(k&&rt||!k&&!rt)?(Tt=n.bBox(yr),Xt=Tt.width,Qt=Tt.height):(Tt=n.bBox(Le.node()),Xt=Tt.right-j.l-(k?Qe:wt),Qt=Tt.bottom-j.t-(k?wt:Qe),!k&&ge==="top"&&(Rt+=Tt.height,Kt=Tt.height)),gt&&(he.attr("transform",r(Xt/2+je/2,0)),Xt*=2),Rt=Math.max(Rt,k?Xt:Qt)}var Ot=(k?$:Z)*2+Rt+J+W/2,ut=0;!k&&fe.text&&le==="bottom"&&X<=0&&(ut=Ot/2,Ot+=ut,Kt+=ut),Y._hColorbarMoveTitle=ut,Y._hColorbarMoveCBTitle=Kt;var at=J+W,xt=(k?Qe:wt)-at/2-(k?$:0),At=(k?wt:Qe)-(k?Me:Z+Kt-ut);I.select("."+C.cbbg).attr("x",xt).attr("y",At).attr(k?"width":"height",Math.max(Ot-ut,2)).attr(k?"height":"width",Math.max(Me+at,2)).call(f.fill,re).call(f.stroke,D.bordercolor).style("stroke-width",J);var Et=gt?Math.max(Xt-10,0):0;I.selectAll("."+C.cboutline).attr("x",(k?Qe:wt+$)+Et).attr("y",(k?wt+Z-Me:Qe)+(gr?me:0)).attr(k?"width":"height",Math.max(Se,2)).attr(k?"height":"width",Math.max(Me-(k?2*Z+me:2*$+Et),2)).call(f.stroke,D.outlinecolor).style({fill:"none","stroke-width":W});var Vt=k?$e*Ot:0,Bt=k?0:(1-ht)*Ot-Kt;if(Vt=oe?j.l-Vt:-Vt,Bt=Q?j.t-Bt:-Bt,I.attr("transform",r(Vt,Bt)),!k&&(J||P(re).getAlpha()&&!P.equals(Y.paper_bgcolor,re))){var Ut=Ce.selectAll("text"),Jt=Ut[0].length,ur=I.select("."+C.cbbg).node(),fr=n.bBox(ur),dr=n.getTranslate(I),Ye=2;Ut.each(function(hr,xr){var vr=0,Hr=Jt-1;if(xr===vr||xr===Hr){var Pr=n.bBox(this),Rr=n.getTranslate(this),an;if(xr===Hr){var tn=Pr.right+Rr.x,Sn=fr.right+dr.x+wt-J-Ye+ie;an=Sn-tn,an>0&&(an=0)}else if(xr===vr){var Tn=Pr.left+Rr.x,Tr=fr.left+dr.x+wt+J+Ye;an=Tr-Tn,an<0&&(an=0)}an&&(Jt<3?this.setAttribute("transform","translate("+an+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ue={},zt=x[ne],Dt=w[ne],$t=x[le],sr=w[le],cr=Ot-Se;k?(F==="pixels"?(Ue.y=X,Ue.t=Me*$t,Ue.b=Me*sr):(Ue.t=Ue.b=0,Ue.yt=X+O*$t,Ue.yb=X-O*sr),B==="pixels"?(Ue.x=ie,Ue.l=Ot*zt,Ue.r=Ot*Dt):(Ue.l=cr*zt,Ue.r=cr*Dt,Ue.xl=ie-z*zt,Ue.xr=ie+z*Dt)):(F==="pixels"?(Ue.x=ie,Ue.l=Me*zt,Ue.r=Me*Dt):(Ue.l=Ue.r=0,Ue.xl=ie+O*zt,Ue.xr=ie-O*Dt),B==="pixels"?(Ue.y=1-X,Ue.t=Ot*$t,Ue.b=Ot*sr):(Ue.t=cr*$t,Ue.b=cr*sr,Ue.yt=X-z*$t,Ue.yb=X+z*sr));var tr=D.y<.5?"b":"t",Nt=D.x<.5?"l":"r";N._fullLayout._reservedMargin[D._id]={};var ir={r:Y.width-xt-Vt,l:xt+Ue.r,b:Y.height-At-Bt,t:At+Ue.b};oe&&Q?s.autoMargin(N,D._id,Ue):oe?N._fullLayout._reservedMargin[D._id][tr]=ir[tr]:Q||k?N._fullLayout._reservedMargin[D._id][Nt]=ir[Nt]:N._fullLayout._reservedMargin[D._id][tr]=ir[tr]}return p.syncOrAsync([s.previousPromises,st,Wt,lt,s.previousPromises,Zt],N)}function o(I,D,N){var k=D.orientation==="v",O=N._fullLayout,F=O._size,z,B,W;v.init({element:I.node(),gd:N,prepFn:function(){z=I.attr("transform"),a(I)},moveFn:function(J,re){I.attr("transform",z+r(J,re)),B=v.align((k?D._uFrac:D._vFrac)+J/F.w,k?D._thickFrac:D._lenFrac,0,1,D.xanchor),W=v.align((k?D._vFrac:1-D._uFrac)-re/F.h,k?D._lenFrac:D._thickFrac,0,1,D.yanchor);var ne=v.getCursor(B,W,D.xanchor,D.yanchor);a(I,ne)},doneFn:function(){if(a(I),B!==void 0&&W!==void 0){var J={};J[D._propPrefix+"x"]=B,J[D._propPrefix+"y"]=W,D._traceIndex!==void 0?L.call("_guiRestyle",N,J,D._traceIndex):L.call("_guiRelayout",N,J)}}})}function M(I,D,N){var k=D._levels,O=[],F=[],z,B,W=k.end+k.size/100,J=k.size,re=1.001*N[0]-.001*N[1],ne=1.001*N[1]-.001*N[0];for(B=0;B<1e5&&(z=k.start+B*J,!(J>0?z>=W:z<=W));B++)z>re&&z0?z>=W:z<=W));B++)z>N[0]&&zh-l?l=h-(g-h):g-h=0?i=r.colorscale.sequential:i=r.colorscale.sequentialminus,f._sync("colorscale",i)}}},95504:function(G,H,e){var m=e(3400),P=e(94288).hasColorscale,s=e(94288).extractOpts;G.exports=function(S,v){function p(l,g){var h=l["_"+g];h!==void 0&&(l[g]=h)}function r(l,g){var h=g.container?m.nestedProperty(l,g.container).get():l;if(h)if(h.coloraxis)h._colorAx=v[h.coloraxis];else{var T=s(h),c=T.auto;(c||T.min===void 0)&&p(h,g.min),(c||T.max===void 0)&&p(h,g.max),T.autocolorscale&&p(h,"colorscale")}}for(var t=0;t=0;i--,d++){var x=h[i];c[d]=[1-x[0],x[1]]}return c}function u(h,T){T=T||{};for(var c=h.domain,i=h.range,d=i.length,x=new Array(d),w=0;w1.3333333333333333-p?v:p}},67416:function(G,H,e){var m=e(3400),P=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];G.exports=function(L,S,v,p){return v==="left"?L=0:v==="center"?L=1:v==="right"?L=2:L=m.constrain(Math.floor(L*3),0,2),p==="bottom"?S=0:p==="middle"?S=1:p==="top"?S=2:S=m.constrain(Math.floor(S*3),0,2),P[S][L]}},72760:function(G,H){H.selectMode=function(e){return e==="lasso"||e==="select"},H.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},H.openMode=function(e){return e==="drawline"||e==="drawopenpath"},H.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},H.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},H.selectingOrDrawing=function(e){return H.freeMode(e)||H.rectMode(e)}},86476:function(G,H,e){var m=e(29128),P=e(52264),s=e(89184),L=e(3400).removeElement,S=e(33816),v=G.exports={};v.align=e(78316),v.getCursor=e(67416);var p=e(2616);v.unhover=p.wrapped,v.unhoverRaw=p.raw,v.init=function(n){var f=n.gd,u=1,l=f._context.doubleClickDelay,g=n.element,h,T,c,i,d,x,w,C;f._mouseDownTime||(f._mouseDownTime=0),g.style.pointerEvents="all",g.onmousedown=A,s?(g._ontouchstart&&g.removeEventListener("touchstart",g._ontouchstart),g._ontouchstart=A,g.addEventListener("touchstart",A,{passive:!1})):g.ontouchstart=A;function y(b,I,D){return Math.abs(b)"u"&&typeof b.clientY>"u"&&(b.clientX=h,b.clientY=T),c=new Date().getTime(),c-f._mouseDownTimel&&(u=Math.max(u-1,1)),f._dragged)n.doneFn&&n.doneFn();else if(n.clickFn&&n.clickFn(u,x),!C){var I;try{I=new MouseEvent("click",b)}catch{var D=t(b);I=document.createEvent("MouseEvents"),I.initMouseEvent("click",b.bubbles,b.cancelable,b.view,b.detail,b.screenX,b.screenY,D[0],D[1],b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget)}w.dispatchEvent(I)}f._dragging=!1,f._dragged=!1}};function r(){var a=document.createElement("div");a.className="dragcover";var n=a.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(a),a}v.coverSlip=r;function t(a){return m(a.changedTouches?a.changedTouches[0]:a,document.body)}},2616:function(G,H,e){var m=e(95924),P=e(91200),s=e(52200).getGraphDiv,L=e(92456),S=G.exports={};S.wrapped=function(v,p,r){v=s(v),v._fullLayout&&P.clear(v._fullLayout._uid+L.HOVERID),S.raw(v,p,r)},S.raw=function(p,r){var t=p._fullLayout,a=p._hoverdata;r||(r={}),!(r.target&&!p._dragged&&m.triggerHandler(p,"plotly_beforehover",r)===!1)&&(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,r.target&&a&&p.emit("plotly_unhover",{event:r,points:a}))}},98192:function(G,H){H.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},H.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(G,H,e){var m=e(33428),P=e(3400),s=P.numberFormat,L=e(38248),S=e(49760),v=e(24040),p=e(76308),r=e(8932),t=P.strTranslate,a=e(72736),n=e(9616),f=e(84284),u=f.LINE_SPACING,l=e(13448).DESELECTDIM,g=e(43028),h=e(7152),T=e(10624).appendArrayPointValue,c=G.exports={};c.font=function(Se,Ie){var Me=Ie.variant,Ve=Ie.style,et=Ie.weight,ot=Ie.color,Qe=Ie.size,$e=Ie.family,ht=Ie.shadow,vt=Ie.lineposition,pt=Ie.textcase;$e&&Se.style("font-family",$e),Qe+1&&Se.style("font-size",Qe+"px"),ot&&Se.call(p.fill,ot),et&&Se.style("font-weight",et),Ve&&Se.style("font-style",Ve),Me&&Se.style("font-variant",Me),pt&&Se.style("text-transform",i(x(pt))),ht&&Se.style("text-shadow",ht==="auto"?a.makeTextShadow(p.contrast(ot)):i(ht)),vt&&Se.style("text-decoration-line",i(w(vt)))};function i(Se){return Se==="none"?void 0:Se}var d={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function x(Se){return d[Se]}function w(Se){return Se.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}c.setPosition=function(Se,Ie,Me){Se.attr("x",Ie).attr("y",Me)},c.setSize=function(Se,Ie,Me){Se.attr("width",Ie).attr("height",Me)},c.setRect=function(Se,Ie,Me,Ve,et){Se.call(c.setPosition,Ie,Me).call(c.setSize,Ve,et)},c.translatePoint=function(Se,Ie,Me,Ve){var et=Me.c2p(Se.x),ot=Ve.c2p(Se.y);if(L(et)&&L(ot)&&Ie.node())Ie.node().nodeName==="text"?Ie.attr("x",et).attr("y",ot):Ie.attr("transform",t(et,ot));else return!1;return!0},c.translatePoints=function(Se,Ie,Me){Se.each(function(Ve){var et=m.select(this);c.translatePoint(Ve,et,Ie,Me)})},c.hideOutsideRangePoint=function(Se,Ie,Me,Ve,et,ot){Ie.attr("display",Me.isPtWithinRange(Se,et)&&Ve.isPtWithinRange(Se,ot)?null:"none")},c.hideOutsideRangePoints=function(Se,Ie){if(Ie._hasClipOnAxisFalse){var Me=Ie.xaxis,Ve=Ie.yaxis;Se.each(function(et){var ot=et[0].trace,Qe=ot.xcalendar,$e=ot.ycalendar,ht=v.traceIs(ot,"bar-like")?".bartext":".point,.textpoint";Se.selectAll(ht).each(function(vt){c.hideOutsideRangePoint(vt,m.select(this),Me,Ve,Qe,$e)})})}},c.crispRound=function(Se,Ie,Me){return!Ie||!L(Ie)?Me||0:Se._context.staticPlot?Ie:Ie<1?1:Math.round(Ie)},c.singleLineStyle=function(Se,Ie,Me,Ve,et){Ie.style("fill","none");var ot=(((Se||[])[0]||{}).trace||{}).line||{},Qe=Me||ot.width||0,$e=et||ot.dash||"";p.stroke(Ie,Ve||ot.color),c.dashLine(Ie,$e,Qe)},c.lineGroupStyle=function(Se,Ie,Me,Ve){Se.style("fill","none").each(function(et){var ot=(((et||[])[0]||{}).trace||{}).line||{},Qe=Ie||ot.width||0,$e=Ve||ot.dash||"";m.select(this).call(p.stroke,Me||ot.color).call(c.dashLine,$e,Qe)})},c.dashLine=function(Se,Ie,Me){Me=+Me||0,Ie=c.dashStyle(Ie,Me),Se.style({"stroke-dasharray":Ie,"stroke-width":Me+"px"})},c.dashStyle=function(Se,Ie){Ie=+Ie||1;var Me=Math.max(Ie,3);return Se==="solid"?Se="":Se==="dot"?Se=Me+"px,"+Me+"px":Se==="dash"?Se=3*Me+"px,"+3*Me+"px":Se==="longdash"?Se=5*Me+"px,"+5*Me+"px":Se==="dashdot"?Se=3*Me+"px,"+Me+"px,"+Me+"px,"+Me+"px":Se==="longdashdot"&&(Se=5*Me+"px,"+2*Me+"px,"+Me+"px,"+2*Me+"px"),Se};function C(Se,Ie,Me,Ve){var et=Ie.fillpattern,ot=Ie.fillgradient,Qe=et&&c.getPatternAttr(et.shape,0,"");if(Qe){var $e=c.getPatternAttr(et.bgcolor,0,null),ht=c.getPatternAttr(et.fgcolor,0,null),vt=et.fgopacity,pt=c.getPatternAttr(et.size,0,8),wt=c.getPatternAttr(et.solidity,0,.3),Ct=Ie.uid;c.pattern(Se,"point",Me,Ct,Qe,pt,wt,void 0,et.fillmode,$e,ht,vt)}else if(ot&&ot.type!=="none"){var rt=ot.type,ze="scatterfill-"+Ie.uid;if(Ve&&(ze="legendfill-"+Ie.uid),!Ve&&(ot.start!==void 0||ot.stop!==void 0)){var He,We;rt==="horizontal"?(He={x:ot.start,y:0},We={x:ot.stop,y:0}):rt==="vertical"&&(He={x:0,y:ot.start},We={x:0,y:ot.stop}),He.x=Ie._xA.c2p(He.x===void 0?Ie._extremes.x.min[0].val:He.x,!0),He.y=Ie._yA.c2p(He.y===void 0?Ie._extremes.y.min[0].val:He.y,!0),We.x=Ie._xA.c2p(We.x===void 0?Ie._extremes.x.max[0].val:We.x,!0),We.y=Ie._yA.c2p(We.y===void 0?Ie._extremes.y.max[0].val:We.y,!0),Se.call(I,Me,ze,"linear",ot.colorscale,"fill",He,We,!0,!1)}else rt==="horizontal"&&(rt=rt+"reversed"),Se.call(c.gradient,Me,ze,rt,ot.colorscale,"fill")}else Ie.fillcolor&&Se.call(p.fill,Ie.fillcolor)}c.singleFillStyle=function(Se,Ie){var Me=m.select(Se.node()),Ve=Me.data(),et=((Ve[0]||[])[0]||{}).trace||{};C(Se,et,Ie,!1)},c.fillGroupStyle=function(Se,Ie,Me){Se.style("stroke-width",0).each(function(Ve){var et=m.select(this);Ve[0].trace&&C(et,Ve[0].trace,Ie,Me)})};var y=e(71984);c.symbolNames=[],c.symbolFuncs=[],c.symbolBackOffs=[],c.symbolNeedLines={},c.symbolNoDot={},c.symbolNoFill={},c.symbolList=[],Object.keys(y).forEach(function(Se){var Ie=y[Se],Me=Ie.n;c.symbolList.push(Me,String(Me),Se,Me+100,String(Me+100),Se+"-open"),c.symbolNames[Me]=Se,c.symbolFuncs[Me]=Ie.f,c.symbolBackOffs[Me]=Ie.backoff||0,Ie.needLine&&(c.symbolNeedLines[Me]=!0),Ie.noDot?c.symbolNoDot[Me]=!0:c.symbolList.push(Me+200,String(Me+200),Se+"-dot",Me+300,String(Me+300),Se+"-open-dot"),Ie.noFill&&(c.symbolNoFill[Me]=!0)});var E=c.symbolNames.length,A="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";c.symbolNumber=function(Se){if(L(Se))Se=+Se;else if(typeof Se=="string"){var Ie=0;Se.indexOf("-open")>0&&(Ie=100,Se=Se.replace("-open","")),Se.indexOf("-dot")>0&&(Ie+=200,Se=Se.replace("-dot","")),Se=c.symbolNames.indexOf(Se),Se>=0&&(Se+=Ie)}return Se%100>=E||Se>=400?0:Math.floor(Math.max(Se,0))};function o(Se,Ie,Me,Ve){var et=Se%100;return c.symbolFuncs[et](Ie,Me,Ve)+(Se>=200?A:"")}var M=s("~f"),b={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};c.gradient=function(Se,Ie,Me,Ve,et,ot){var Qe=b[Ve];return I(Se,Ie,Me,Qe.type,et,ot,Qe.start,Qe.stop,!1,Qe.reversed)};function I(Se,Ie,Me,Ve,et,ot,Qe,$e,ht,vt){var pt=et.length,wt;Ve==="linear"?wt={node:"linearGradient",attrs:{x1:Qe.x,y1:Qe.y,x2:$e.x,y2:$e.y,gradientUnits:ht?"userSpaceOnUse":"objectBoundingBox"},reversed:vt}:Ve==="radial"&&(wt={node:"radialGradient",reversed:vt});for(var Ct=new Array(pt),rt=0;rt=0&&Se.i===void 0&&(Se.i=ot.i),Ie.style("opacity",Ve.selectedOpacityFn?Ve.selectedOpacityFn(Se):Se.mo===void 0?Qe.opacity:Se.mo),Ve.ms2mrc){var ht;Se.ms==="various"||Qe.size==="various"?ht=3:ht=Ve.ms2mrc(Se.ms),Se.mrc=ht,Ve.selectedSizeFn&&(ht=Se.mrc=Ve.selectedSizeFn(Se));var vt=c.symbolNumber(Se.mx||Qe.symbol)||0;Se.om=vt%200>=100;var pt=Re(Se,Me),wt=j(Se,Me);Ie.attr("d",o(vt,ht,pt,wt))}var Ct=!1,rt,ze,He;if(Se.so)He=$e.outlierwidth,ze=$e.outliercolor,rt=Qe.outliercolor;else{var We=($e||{}).width;He=(Se.mlw+1||We+1||(Se.trace?(Se.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Se?ze=Se.mlcc=Ve.lineScale(Se.mlc):P.isArrayOrTypedArray($e.color)?ze=p.defaultLine:ze=$e.color,P.isArrayOrTypedArray(Qe.color)&&(rt=p.defaultLine,Ct=!0),"mc"in Se?rt=Se.mcc=Ve.markerScale(Se.mc):rt=Qe.color||Qe.colors||"rgba(0,0,0,0)",Ve.selectedColorFn&&(rt=Ve.selectedColorFn(Se))}if(Se.om)Ie.call(p.stroke,rt).style({"stroke-width":(He||1)+"px",fill:"none"});else{Ie.style("stroke-width",(Se.isBlank?0:He)+"px");var Ge=Qe.gradient,Le=Se.mgt;Le?Ct=!0:Le=Ge&&Ge.type,P.isArrayOrTypedArray(Le)&&(Le=Le[0],b[Le]||(Le=0));var Pe=Qe.pattern,je=Pe&&c.getPatternAttr(Pe.shape,Se.i,"");if(Le&&Le!=="none"){var Ce=Se.mgc;Ce?Ct=!0:Ce=Ge.color;var he=Me.uid;Ct&&(he+="-"+Se.i),c.gradient(Ie,et,he,Le,[[0,Ce],[1,rt]],"fill")}else if(je){var me=!1,Ne=Pe.fgcolor;!Ne&&ot&&ot.color&&(Ne=ot.color,me=!0);var Ze=c.getPatternAttr(Ne,Se.i,ot&&ot.color||null),st=c.getPatternAttr(Pe.bgcolor,Se.i,null),lt=Pe.fgopacity,Wt=c.getPatternAttr(Pe.size,Se.i,8),Zt=c.getPatternAttr(Pe.solidity,Se.i,.3);me=me||Se.mcc||P.isArrayOrTypedArray(Pe.shape)||P.isArrayOrTypedArray(Pe.bgcolor)||P.isArrayOrTypedArray(Pe.fgcolor)||P.isArrayOrTypedArray(Pe.size)||P.isArrayOrTypedArray(Pe.solidity);var Tt=Me.uid;me&&(Tt+="-"+Se.i),c.pattern(Ie,"point",et,Tt,je,Wt,Zt,Se.mcc,Pe.fillmode,st,Ze,lt)}else P.isArrayOrTypedArray(rt)?p.fill(Ie,rt[Se.i]):p.fill(Ie,rt);He&&p.stroke(Ie,ze)}},c.makePointStyleFns=function(Se){var Ie={},Me=Se.marker;return Ie.markerScale=c.tryColorscale(Me,""),Ie.lineScale=c.tryColorscale(Me,"line"),v.traceIs(Se,"symbols")&&(Ie.ms2mrc=g.isBubble(Se)?h(Se):function(){return(Me.size||6)/2}),Se.selectedpoints&&P.extendFlat(Ie,c.makeSelectedPointStyleFns(Se)),Ie},c.makeSelectedPointStyleFns=function(Se){var Ie={},Me=Se.selected||{},Ve=Se.unselected||{},et=Se.marker||{},ot=Me.marker||{},Qe=Ve.marker||{},$e=et.opacity,ht=ot.opacity,vt=Qe.opacity,pt=ht!==void 0,wt=vt!==void 0;(P.isArrayOrTypedArray($e)||pt||wt)&&(Ie.selectedOpacityFn=function(je){var Ce=je.mo===void 0?et.opacity:je.mo;return je.selected?pt?ht:Ce:wt?vt:l*Ce});var Ct=et.color,rt=ot.color,ze=Qe.color;(rt||ze)&&(Ie.selectedColorFn=function(je){var Ce=je.mcc||Ct;return je.selected?rt||Ce:ze||Ce});var He=et.size,We=ot.size,Ge=Qe.size,Le=We!==void 0,Pe=Ge!==void 0;return v.traceIs(Se,"symbols")&&(Le||Pe)&&(Ie.selectedSizeFn=function(je){var Ce=je.mrc||He/2;return je.selected?Le?We/2:Ce:Pe?Ge/2:Ce}),Ie},c.makeSelectedTextStyleFns=function(Se){var Ie={},Me=Se.selected||{},Ve=Se.unselected||{},et=Se.textfont||{},ot=Me.textfont||{},Qe=Ve.textfont||{},$e=et.color,ht=ot.color,vt=Qe.color;return Ie.selectedTextColorFn=function(pt){var wt=pt.tc||$e;return pt.selected?ht||wt:vt||(ht?wt:p.addOpacity(wt,l))},Ie},c.selectedPointStyle=function(Se,Ie){if(!(!Se.size()||!Ie.selectedpoints)){var Me=c.makeSelectedPointStyleFns(Ie),Ve=Ie.marker||{},et=[];Me.selectedOpacityFn&&et.push(function(ot,Qe){ot.style("opacity",Me.selectedOpacityFn(Qe))}),Me.selectedColorFn&&et.push(function(ot,Qe){p.fill(ot,Me.selectedColorFn(Qe))}),Me.selectedSizeFn&&et.push(function(ot,Qe){var $e=Qe.mx||Ve.symbol||0,ht=Me.selectedSizeFn(Qe);ot.attr("d",o(c.symbolNumber($e),ht,Re(Qe,Ie),j(Qe,Ie))),Qe.mrc2=ht}),et.length&&Se.each(function(ot){for(var Qe=m.select(this),$e=0;$e0?Me:0}c.textPointStyle=function(Se,Ie,Me){if(Se.size()){var Ve;if(Ie.selectedpoints){var et=c.makeSelectedTextStyleFns(Ie);Ve=et.selectedTextColorFn}var ot=Ie.texttemplate,Qe=Me._fullLayout;Se.each(function($e){var ht=m.select(this),vt=ot?P.extractOption($e,Ie,"txt","texttemplate"):P.extractOption($e,Ie,"tx","text");if(!vt&&vt!==0){ht.remove();return}if(ot){var pt=Ie._module.formatLabels,wt=pt?pt($e,Ie,Qe):{},Ct={};T(Ct,Ie,$e.i);var rt=Ie._meta||{};vt=P.texttemplateString(vt,wt,Qe._d3locale,Ct,$e,rt)}var ze=$e.tp||Ie.textposition,He=k($e,Ie),We=Ve?Ve($e):$e.tc||Ie.textfont.color;ht.call(c.font,{family:$e.tf||Ie.textfont.family,weight:$e.tw||Ie.textfont.weight,style:$e.ty||Ie.textfont.style,variant:$e.tv||Ie.textfont.variant,textcase:$e.tC||Ie.textfont.textcase,lineposition:$e.tE||Ie.textfont.lineposition,shadow:$e.tS||Ie.textfont.shadow,size:He,color:We}).text(vt).call(a.convertToTspans,Me).call(N,ze,He,$e.mrc)})}},c.selectedTextStyle=function(Se,Ie){if(!(!Se.size()||!Ie.selectedpoints)){var Me=c.makeSelectedTextStyleFns(Ie);Se.each(function(Ve){var et=m.select(this),ot=Me.selectedTextColorFn(Ve),Qe=Ve.tp||Ie.textposition,$e=k(Ve,Ie);p.fill(et,ot);var ht=v.traceIs(Ie,"bar-like");N(et,Qe,$e,Ve.mrc2||Ve.mrc,ht)})}};var O=.5;c.smoothopen=function(Se,Ie){if(Se.length<3)return"M"+Se.join("L");var Me="M"+Se[0],Ve=[],et;for(et=1;et=ht||je>=pt&&je<=ht)&&(Ce<=wt&&Ce>=vt||Ce>=wt&&Ce<=vt)&&(Se=[je,Ce])}return Se}c.applyBackoff=$,c.makeTester=function(){var Se=P.ensureSingleById(m.select("body"),"svg","js-plotly-tester",function(Me){Me.attr(n.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Ie=P.ensureSingle(Se,"path","js-reference-point",function(Me){Me.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});c.tester=Se,c.testref=Ie},c.savedBBoxes={};var Z=0,ie=1e4;c.bBox=function(Se,Ie,Me){Me||(Me=X(Se));var Ve;if(Me){if(Ve=c.savedBBoxes[Me],Ve)return P.extendFlat({},Ve)}else if(Se.childNodes.length===1){var et=Se.childNodes[0];if(Me=X(et),Me){var ot=+et.getAttribute("x")||0,Qe=+et.getAttribute("y")||0,$e=et.getAttribute("transform");if(!$e){var ht=c.bBox(et,!1,Me);return ot&&(ht.left+=ot,ht.right+=ot),Qe&&(ht.top+=Qe,ht.bottom+=Qe),ht}if(Me+="~"+ot+"~"+Qe+"~"+$e,Ve=c.savedBBoxes[Me],Ve)return P.extendFlat({},Ve)}}var vt,pt;Ie?vt=Se:(pt=c.tester.node(),vt=Se.cloneNode(!0),pt.appendChild(vt)),m.select(vt).attr("transform",null).call(a.positionText,0,0);var wt=vt.getBoundingClientRect(),Ct=c.testref.node().getBoundingClientRect();Ie||pt.removeChild(vt);var rt={height:wt.height,width:wt.width,left:wt.left-Ct.left,top:wt.top-Ct.top,right:wt.right-Ct.left,bottom:wt.bottom-Ct.top};return Z>=ie&&(c.savedBBoxes={},Z=0),Me&&(c.savedBBoxes[Me]=rt),Z++,P.extendFlat({},rt)};function X(Se){var Ie=Se.getAttribute("data-unformatted");if(Ie!==null)return Ie+Se.getAttribute("data-math")+Se.getAttribute("text-anchor")+Se.getAttribute("style")}c.setClipUrl=function(Se,Ie,Me){Se.attr("clip-path",Q(Ie,Me))};function Q(Se,Ie){if(!Se)return null;var Me=Ie._context,Ve=Me._exportedPlot?"":Me._baseUrl||"";return Ve?"url('"+Ve+"#"+Se+"')":"url(#"+Se+")"}c.getTranslate=function(Se){var Ie=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,Me=Se.attr?"attr":"getAttribute",Ve=Se[Me]("transform")||"",et=Ve.replace(Ie,function(ot,Qe,$e){return[Qe,$e].join(" ")}).split(" ");return{x:+et[0]||0,y:+et[1]||0}},c.setTranslate=function(Se,Ie,Me){var Ve=/(\btranslate\(.*?\);?)/,et=Se.attr?"attr":"getAttribute",ot=Se.attr?"attr":"setAttribute",Qe=Se[et]("transform")||"";return Ie=Ie||0,Me=Me||0,Qe=Qe.replace(Ve,"").trim(),Qe+=t(Ie,Me),Qe=Qe.trim(),Se[ot]("transform",Qe),Qe},c.getScale=function(Se){var Ie=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,Me=Se.attr?"attr":"getAttribute",Ve=Se[Me]("transform")||"",et=Ve.replace(Ie,function(ot,Qe,$e){return[Qe,$e].join(" ")}).split(" ");return{x:+et[0]||1,y:+et[1]||1}},c.setScale=function(Se,Ie,Me){var Ve=/(\bscale\(.*?\);?)/,et=Se.attr?"attr":"getAttribute",ot=Se.attr?"attr":"setAttribute",Qe=Se[et]("transform")||"";return Ie=Ie||1,Me=Me||1,Qe=Qe.replace(Ve,"").trim(),Qe+="scale("+Ie+","+Me+")",Qe=Qe.trim(),Se[ot]("transform",Qe),Qe};var oe=/\s*sc.*/;c.setPointGroupScale=function(Se,Ie,Me){if(Ie=Ie||1,Me=Me||1,!!Se){var Ve=Ie===1&&Me===1?"":"scale("+Ie+","+Me+")";Se.each(function(){var et=(this.getAttribute("transform")||"").replace(oe,"");et+=Ve,et=et.trim(),this.setAttribute("transform",et)})}};var Y=/translate\([^)]*\)\s*$/;c.setTextPointsScale=function(Se,Ie,Me){Se&&Se.each(function(){var Ve,et=m.select(this),ot=et.select("text");if(ot.node()){var Qe=parseFloat(ot.attr("x")||0),$e=parseFloat(ot.attr("y")||0),ht=(et.attr("transform")||"").match(Y);Ie===1&&Me===1?Ve=[]:Ve=[t(Qe,$e),"scale("+Ie+","+Me+")",t(-Qe,-$e)],ht&&Ve.push(ht),et.attr("transform",Ve.join(""))}})};function j(Se,Ie){var Me;return Se&&(Me=Se.mf),Me===void 0&&(Me=Ie.marker&&Ie.marker.standoff||0),!Ie._geo&&!Ie._xA?-Me:Me}c.getMarkerStandoff=j;var se=Math.atan2,te=Math.cos,fe=Math.sin;function ge(Se,Ie){var Me=Ie[0],Ve=Ie[1];return[Me*te(Se)-Ve*fe(Se),Me*fe(Se)+Ve*te(Se)]}var be,xe,_e,De,Fe,Te;function Re(Se,Ie){var Me=Se.ma;Me===void 0&&(Me=Ie.marker.angle,(!Me||P.isArrayOrTypedArray(Me))&&(Me=0));var Ve,et,ot=Ie.marker.angleref;if(ot==="previous"||ot==="north"){if(Ie._geo){var Qe=Ie._geo.project(Se.lonlat);Ve=Qe[0],et=Qe[1]}else{var $e=Ie._xA,ht=Ie._yA;if($e&&ht)Ve=$e.c2p(Se.x),et=ht.c2p(Se.y);else return 90}if(Ie._geo){var vt=Se.lonlat[0],pt=Se.lonlat[1],wt=Ie._geo.project([vt,pt+1e-5]),Ct=Ie._geo.project([vt+1e-5,pt]),rt=se(Ct[1]-et,Ct[0]-Ve),ze=se(wt[1]-et,wt[0]-Ve),He;if(ot==="north")He=Me/180*Math.PI;else if(ot==="previous"){var We=vt/180*Math.PI,Ge=pt/180*Math.PI,Le=be/180*Math.PI,Pe=xe/180*Math.PI,je=Le-We,Ce=te(Pe)*fe(je),he=fe(Pe)*te(Ge)-te(Pe)*fe(Ge)*te(je);He=-se(Ce,he)-Math.PI,be=vt,xe=pt}var me=ge(rt,[te(He),0]),Ne=ge(ze,[fe(He),0]);Me=se(me[1]+Ne[1],me[0]+Ne[0])/Math.PI*180,ot==="previous"&&!(Te===Ie.uid&&Se.i===Fe+1)&&(Me=null)}if(ot==="previous"&&!Ie._geo)if(Te===Ie.uid&&Se.i===Fe+1&&L(Ve)&&L(et)){var Ze=Ve-_e,st=et-De,lt=Ie.line&&Ie.line.shape||"",Wt=lt.slice(lt.length-1);Wt==="h"&&(st=0),Wt==="v"&&(Ze=0),Me+=se(st,Ze)/Math.PI*180+90}else Me=null}return _e=Ve,De=et,Fe=Se.i,Te=Ie.uid,Me}c.getMarkerAngle=Re},71984:function(G,H,e){var m=e(21984),P=e(33428).round,s="M0,0Z",L=Math.sqrt(2),S=Math.sqrt(3),v=Math.PI,p=Math.cos,r=Math.sin;G.exports={circle:{n:0,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i="M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z";return T?l(h,T,i):i}},square:{n:1,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")}},diamond:{n:2,f:function(g,h,T){if(t(h))return s;var c=P(g*1.3,2);return l(h,T,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"Z")}},cross:{n:3,f:function(g,h,T){if(t(h))return s;var c=P(g*.4,2),i=P(g*1.2,2);return l(h,T,"M"+i+","+c+"H"+c+"V"+i+"H-"+c+"V"+c+"H-"+i+"V-"+c+"H-"+c+"V-"+i+"H"+c+"V-"+c+"H"+i+"Z")}},x:{n:4,f:function(g,h,T){if(t(h))return s;var c=P(g*.8/L,2),i="l"+c+","+c,d="l"+c+",-"+c,x="l-"+c+",-"+c,w="l-"+c+","+c;return l(h,T,"M0,"+c+i+d+x+d+x+w+x+w+i+w+i+"Z")}},"triangle-up":{n:5,f:function(g,h,T){if(t(h))return s;var c=P(g*2/S,2),i=P(g/2,2),d=P(g,2);return l(h,T,"M-"+c+","+i+"H"+c+"L0,-"+d+"Z")}},"triangle-down":{n:6,f:function(g,h,T){if(t(h))return s;var c=P(g*2/S,2),i=P(g/2,2),d=P(g,2);return l(h,T,"M-"+c+",-"+i+"H"+c+"L0,"+d+"Z")}},"triangle-left":{n:7,f:function(g,h,T){if(t(h))return s;var c=P(g*2/S,2),i=P(g/2,2),d=P(g,2);return l(h,T,"M"+i+",-"+c+"V"+c+"L-"+d+",0Z")}},"triangle-right":{n:8,f:function(g,h,T){if(t(h))return s;var c=P(g*2/S,2),i=P(g/2,2),d=P(g,2);return l(h,T,"M-"+i+",-"+c+"V"+c+"L"+d+",0Z")}},"triangle-ne":{n:9,f:function(g,h,T){if(t(h))return s;var c=P(g*.6,2),i=P(g*1.2,2);return l(h,T,"M-"+i+",-"+c+"H"+c+"V"+i+"Z")}},"triangle-se":{n:10,f:function(g,h,T){if(t(h))return s;var c=P(g*.6,2),i=P(g*1.2,2);return l(h,T,"M"+c+",-"+i+"V"+c+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(g,h,T){if(t(h))return s;var c=P(g*.6,2),i=P(g*1.2,2);return l(h,T,"M"+i+","+c+"H-"+c+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(g,h,T){if(t(h))return s;var c=P(g*.6,2),i=P(g*1.2,2);return l(h,T,"M-"+c+","+i+"V-"+c+"H"+i+"Z")}},pentagon:{n:13,f:function(g,h,T){if(t(h))return s;var c=P(g*.951,2),i=P(g*.588,2),d=P(-g,2),x=P(g*-.309,2),w=P(g*.809,2);return l(h,T,"M"+c+","+x+"L"+i+","+w+"H-"+i+"L-"+c+","+x+"L0,"+d+"Z")}},hexagon:{n:14,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g/2,2),d=P(g*S/2,2);return l(h,T,"M"+d+",-"+i+"V"+i+"L0,"+c+"L-"+d+","+i+"V-"+i+"L0,-"+c+"Z")}},hexagon2:{n:15,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g/2,2),d=P(g*S/2,2);return l(h,T,"M-"+i+","+d+"H"+i+"L"+c+",0L"+i+",-"+d+"H-"+i+"L-"+c+",0Z")}},octagon:{n:16,f:function(g,h,T){if(t(h))return s;var c=P(g*.924,2),i=P(g*.383,2);return l(h,T,"M-"+i+",-"+c+"H"+i+"L"+c+",-"+i+"V"+i+"L"+i+","+c+"H-"+i+"L-"+c+","+i+"V-"+i+"Z")}},star:{n:17,f:function(g,h,T){if(t(h))return s;var c=g*1.4,i=P(c*.225,2),d=P(c*.951,2),x=P(c*.363,2),w=P(c*.588,2),C=P(-c,2),y=P(c*-.309,2),E=P(c*.118,2),A=P(c*.809,2),o=P(c*.382,2);return l(h,T,"M"+i+","+y+"H"+d+"L"+x+","+E+"L"+w+","+A+"L0,"+o+"L-"+w+","+A+"L-"+x+","+E+"L-"+d+","+y+"H-"+i+"L0,"+C+"Z")}},hexagram:{n:18,f:function(g,h,T){if(t(h))return s;var c=P(g*.66,2),i=P(g*.38,2),d=P(g*.76,2);return l(h,T,"M-"+d+",0l-"+i+",-"+c+"h"+d+"l"+i+",-"+c+"l"+i+","+c+"h"+d+"l-"+i+","+c+"l"+i+","+c+"h-"+d+"l-"+i+","+c+"l-"+i+",-"+c+"h-"+d+"Z")}},"star-triangle-up":{n:19,f:function(g,h,T){if(t(h))return s;var c=P(g*S*.8,2),i=P(g*.8,2),d=P(g*1.6,2),x=P(g*4,2),w="A "+x+","+x+" 0 0 1 ";return l(h,T,"M-"+c+","+i+w+c+","+i+w+"0,-"+d+w+"-"+c+","+i+"Z")}},"star-triangle-down":{n:20,f:function(g,h,T){if(t(h))return s;var c=P(g*S*.8,2),i=P(g*.8,2),d=P(g*1.6,2),x=P(g*4,2),w="A "+x+","+x+" 0 0 1 ";return l(h,T,"M"+c+",-"+i+w+"-"+c+",-"+i+w+"0,"+d+w+c+",-"+i+"Z")}},"star-square":{n:21,f:function(g,h,T){if(t(h))return s;var c=P(g*1.1,2),i=P(g*2,2),d="A "+i+","+i+" 0 0 1 ";return l(h,T,"M-"+c+",-"+c+d+"-"+c+","+c+d+c+","+c+d+c+",-"+c+d+"-"+c+",-"+c+"Z")}},"star-diamond":{n:22,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2),i=P(g*1.9,2),d="A "+i+","+i+" 0 0 1 ";return l(h,T,"M-"+c+",0"+d+"0,"+c+d+c+",0"+d+"0,-"+c+d+"-"+c+",0Z")}},"diamond-tall":{n:23,f:function(g,h,T){if(t(h))return s;var c=P(g*.7,2),i=P(g*1.4,2);return l(h,T,"M0,"+i+"L"+c+",0L0,-"+i+"L-"+c+",0Z")}},"diamond-wide":{n:24,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2),i=P(g*.7,2);return l(h,T,"M0,"+i+"L"+c+",0L0,-"+i+"L-"+c+",0Z")}},hourglass:{n:25,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"H-"+c+"L"+c+",-"+c+"H-"+c+"Z")},noDot:!0},bowtie:{n:26,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"V-"+c+"L-"+c+","+c+"V-"+c+"Z")},noDot:!0},"circle-cross":{n:27,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g/L,2);return l(h,T,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c+"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(g,h,T){if(t(h))return s;var c=P(g*1.3,2);return l(h,T,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"ZM0,-"+c+"V"+c+"M-"+c+",0H"+c)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(g,h,T){if(t(h))return s;var c=P(g*1.3,2),i=P(g*.65,2);return l(h,T,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2);return l(h,T,"M0,"+c+"V-"+c+"M"+c+",0H-"+c)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*.85,2);return l(h,T,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(g,h,T){if(t(h))return s;var c=P(g/2,2),i=P(g,2);return l(h,T,"M"+c+","+i+"V-"+i+"M"+(c-i)+",-"+i+"V"+i+"M"+i+","+c+"H-"+i+"M-"+i+","+(c-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*1.6,2),d=P(g*.8,2);return l(h,T,"M-"+c+","+d+"L0,0M"+c+","+d+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*1.6,2),d=P(g*.8,2);return l(h,T,"M-"+c+",-"+d+"L0,0M"+c+",-"+d+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*1.6,2),d=P(g*.8,2);return l(h,T,"M"+d+","+c+"L0,0M"+d+",-"+c+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*1.6,2),d=P(g*.8,2);return l(h,T,"M-"+d+","+c+"L0,0M-"+d+",-"+c+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2);return l(h,T,"M"+c+",0H-"+c)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2);return l(h,T,"M0,"+c+"V-"+c)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"L-"+c+",-"+c)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g*2,2);return l(h,T,"M0,0L-"+c+","+i+"H"+c+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g*2,2);return l(h,T,"M0,0L-"+c+",-"+i+"H"+c+"Z")},noDot:!0},"arrow-left":{n:47,f:function(g,h,T){if(t(h))return s;var c=P(g*2,2),i=P(g,2);return l(h,T,"M0,0L"+c+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(g,h,T){if(t(h))return s;var c=P(g*2,2),i=P(g,2);return l(h,T,"M0,0L-"+c+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g*2,2);return l(h,T,"M-"+c+",0H"+c+"M0,0L-"+c+","+i+"H"+c+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g*2,2);return l(h,T,"M-"+c+",0H"+c+"M0,0L-"+c+",-"+i+"H"+c+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(g,h,T){if(t(h))return s;var c=P(g*2,2),i=P(g,2);return l(h,T,"M0,-"+i+"V"+i+"M0,0L"+c+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(g,h,T){if(t(h))return s;var c=P(g*2,2),i=P(g,2);return l(h,T,"M0,-"+i+"V"+i+"M0,0L-"+c+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(g,h,T){if(t(h))return s;var c=v/2.5,i=2*g*p(c),d=2*g*r(c);return l(h,T,"M0,0L"+-i+","+d+"L"+i+","+d+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(g,h,T){if(t(h))return s;var c=v/4,i=2*g*p(c),d=2*g*r(c);return l(h,T,"M0,0L"+-i+","+d+"A "+2*g+","+2*g+" 0 0 1 "+i+","+d+"Z")},backoff:.4,noDot:!0}};function t(g){return g===null}var a,n,f,u;function l(g,h,T){if((!g||g%360===0)&&!h)return T;if(f===g&&u===h&&a===T)return n;f=g,u=h,a=T;function c(D,N){var k=p(D),O=r(D),F=N[0],z=N[1]+(h||0);return[F*k-z*O,F*O+z*k]}for(var i=g/180*v,d=0,x=0,w=m(T),C="",y=0;y0,g=p._context.staticPlot;r.each(function(h){var T=h[0].trace,c=T.error_x||{},i=T.error_y||{},d;T.ids&&(d=function(y){return y.id});var x=L.hasMarkers(T)&&T.marker.maxdisplayed>0;!i.visible&&!c.visible&&(h=[]);var w=m.select(this).selectAll("g.errorbar").data(h,d);if(w.exit().remove(),!!h.length){c.visible||w.selectAll("path.xerror").remove(),i.visible||w.selectAll("path.yerror").remove(),w.style("opacity",1);var C=w.enter().append("g").classed("errorbar",!0);l&&C.style("opacity",0).transition().duration(a.duration).style("opacity",1),s.setClipUrl(w,t.layerClipId,p),w.each(function(y){var E=m.select(this),A=S(y,f,u);if(!(x&&!y.vis)){var o,M=E.select("path.yerror");if(i.visible&&P(A.x)&&P(A.yh)&&P(A.ys)){var b=i.width;o="M"+(A.x-b)+","+A.yh+"h"+2*b+"m-"+b+",0V"+A.ys,A.noYS||(o+="m-"+b+",0h"+2*b),n=!M.size(),n?M=E.append("path").style("vector-effect",g?"none":"non-scaling-stroke").classed("yerror",!0):l&&(M=M.transition().duration(a.duration).ease(a.easing)),M.attr("d",o)}else M.remove();var I=E.select("path.xerror");if(c.visible&&P(A.y)&&P(A.xh)&&P(A.xs)){var D=(c.copy_ystyle?i:c).width;o="M"+A.xh+","+(A.y-D)+"v"+2*D+"m0,-"+D+"H"+A.xs,A.noXS||(o+="m0,-"+D+"v"+2*D),n=!I.size(),n?I=E.append("path").style("vector-effect",g?"none":"non-scaling-stroke").classed("xerror",!0):l&&(I=I.transition().duration(a.duration).ease(a.easing)),I.attr("d",o)}else I.remove()}})}})};function S(v,p,r){var t={x:p.c2p(v.x),y:r.c2p(v.y)};return v.yh!==void 0&&(t.yh=r.c2p(v.yh),t.ys=r.c2p(v.ys),P(t.ys)||(t.noYS=!0,t.ys=r.c2p(v.ys,!0))),v.xh!==void 0&&(t.xh=p.c2p(v.xh),t.xs=p.c2p(v.xs),P(t.xs)||(t.noXS=!0,t.xs=p.c2p(v.xs,!0))),t}},92036:function(G,H,e){var m=e(33428),P=e(76308);G.exports=function(L){L.each(function(S){var v=S[0].trace,p=v.error_y||{},r=v.error_x||{},t=m.select(this);t.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(P.stroke,p.color),r.copy_ystyle&&(r=p),t.selectAll("path.xerror").style("stroke-width",r.thickness+"px").call(P.stroke,r.color)})}},55756:function(G,H,e){var m=e(25376),P=e(65460).hoverlabel,s=e(92880).extendFlat;G.exports={hoverlabel:{bgcolor:s({},P.bgcolor,{arrayOk:!0}),bordercolor:s({},P.bordercolor,{arrayOk:!0}),font:m({arrayOk:!0,editType:"none"}),align:s({},P.align,{arrayOk:!0}),namelength:s({},P.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(G,H,e){var m=e(3400),P=e(24040);G.exports=function(S){var v=S.calcdata,p=S._fullLayout;function r(u){return function(l){return m.coerceHoverinfo({hoverinfo:l},{_module:u._module},p)}}for(var t=0;t=0&&t.indexpt[0]._length||yr<0||yr>wt[0]._length)return u.unhoverRaw(Y,j)}if(j.pointerX=Qt+pt[0]._offset,j.pointerY=yr+wt[0]._offset,"xval"in j?Pe=h.flat(ge,j.xval):Pe=h.p2c(pt,Qt),"yval"in j?je=h.flat(ge,j.yval):je=h.p2c(wt,yr),!P(Pe[0])||!P(je[0]))return L.warn("Fx.hover failed",j,Y),u.unhoverRaw(Y,j)}var at=1/0;function xt(Wn,Qn){for(he=0;heRt&&(Ge.splice(0,Rt),at=Ge[0].distance),Te&&We!==0&&Ge.length===0){Tt.distance=We,Tt.index=!1;var On=Ne._module.hoverPoints(Tt,Wt,Zt,"closest",{hoverLayer:xe._hoverlayer});if(On&&(On=On.filter(function(Ia){return Ia.spikeDistance<=We})),On&&On.length){var bn,An=On.filter(function(Ia){return Ia.xa.showspikes&&Ia.xa.spikesnap!=="hovered data"});if(An.length){var Fn=An[0];P(Fn.x0)&&P(Fn.y0)&&(bn=Et(Fn),(!Xt.vLinePoint||Xt.vLinePoint.spikeDistance>bn.spikeDistance)&&(Xt.vLinePoint=bn))}var $n=On.filter(function(Ia){return Ia.ya.showspikes&&Ia.ya.spikesnap!=="hovered data"});if($n.length){var ha=$n[0];P(ha.x0)&&P(ha.y0)&&(bn=Et(ha),(!Xt.hLinePoint||Xt.hLinePoint.spikeDistance>bn.spikeDistance)&&(Xt.hLinePoint=bn))}}}}}xt();function At(Wn,Qn,mr){for(var en=null,Jr=1/0,vn,On=0;On0&&Math.abs(Wn.distance)$t-1;xr--)hr(Ge[xr]);Ge=tr,Ut()}var vr=Y._hoverdata,Hr=[],Pr=X(Y),Rr=Q(Y);for(Ce=0;Ce1||Ge.length>1)||Re==="closest"&&gr&&Ge.length>1,Vn=f.combine(xe.plot_bgcolor||f.background,xe.paper_bgcolor),ia=k(Ge,{gd:Y,hovermode:Re,rotateLabels:Pn,bgColor:Vn,container:xe._hoverlayer,outerContainer:xe._paper.node(),commonLabelOpts:xe.hoverlabel,hoverdistance:xe.hoverdistance}),ya=ia.hoverLabels;if(h.isUnifiedHover(Re)||(F(ya,Pn,xe,ia.commonLabelBoundingBox),W(ya,Pn,xe._invScaleX,xe._invScaleY)),fe&&fe.tagName){var wa=g.getComponentMethod("annotations","hasClickToShow")(Y,Hr);a(m.select(fe),wa?"pointer":"")}!fe||te||!ne(Y,j,vr)||(vr&&Y.emit("plotly_unhover",{event:j,points:vr}),Y.emit("plotly_hover",{event:j,points:Y._hoverdata,xaxes:pt,yaxes:wt,xvals:Pe,yvals:je}))}function D(Y){return[Y.trace.index,Y.index,Y.x0,Y.y0,Y.name,Y.attr,Y.xa?Y.xa._id:"",Y.ya?Y.ya._id:""].join(",")}var N=/([\s\S]*)<\/extra>/;function k(Y,j){var se=j.gd,te=se._fullLayout,fe=j.hovermode,ge=j.rotateLabels,be=j.bgColor,xe=j.container,_e=j.outerContainer,De=j.commonLabelOpts||{};if(Y.length===0)return[[]];var Fe=j.fontFamily||T.HOVERFONT,Te=j.fontSize||T.HOVERFONTSIZE,Re=j.fontWeight||te.font.weight,Se=j.fontStyle||te.font.style,Ie=j.fontVariant||te.font.variant,Me=j.fontTextcase||te.font.textcase,Ve=j.fontLineposition||te.font.lineposition,et=j.fontShadow||te.font.shadow,ot=Y[0],Qe=ot.xa,$e=ot.ya,ht=fe.charAt(0),vt=ht+"Label",pt=ot[vt];if(pt===void 0&&Qe.type==="multicategory")for(var wt=0;wtte.width-Hr&&(Pr=te.width-Hr),zt.attr("d","M"+(hr-Pr)+",0L"+(hr-Pr+E)+","+vr+E+"H"+Hr+"v"+vr+(A*2+ir.height)+"H"+-Hr+"V"+vr+E+"H"+(hr-Pr-E)+"Z"),hr=Pr,he.minX=hr-Hr,he.maxX=hr+Hr,Qe.side==="top"?(he.minY=xr-(A*2+ir.height),he.maxY=xr-A):(he.minY=xr+A,he.maxY=xr+(A*2+ir.height))}else{var Rr,an,tn;$e.side==="right"?(Rr="start",an=1,tn="",hr=Qe._offset+Qe._length):(Rr="end",an=-1,tn="-",hr=Qe._offset),xr=$e._offset+(ot.y0+ot.y1)/2,Dt.attr("text-anchor",Rr),zt.attr("d","M0,0L"+tn+E+","+E+"V"+(A+ir.height/2)+"h"+tn+(A*2+ir.width)+"V-"+(A+ir.height/2)+"H"+tn+E+"V-"+E+"Z"),he.minY=xr-(A+ir.height/2),he.maxY=xr+(A+ir.height/2),$e.side==="right"?(he.minX=hr+E,he.maxX=hr+E+(A*2+ir.width)):(he.minX=hr-E-(A*2+ir.width),he.maxX=hr-E);var Sn=ir.height/2,Tn=rt-ir.top-Sn,Tr="clip"+te._uid+"commonlabel"+$e._id,zr;if(hr=0?fr=Bt:Ut+yr=0?fr=Ut:Jt+yr=0?dr=Et:Vt+Ot=0?dr=Vt:ur+Ot=0,(Ue.idealAlign==="top"||!ln)&&fn?(tn-=Tn/2,Ue.anchor="end"):ln?(tn+=Tn/2,Ue.anchor="start"):Ue.anchor="middle",Ue.crossPos=tn;else{if(Ue.pos=tn,ln=an+Sn/2+Or<=ze,fn=an-Sn/2-Or>=0,(Ue.idealAlign==="left"||!ln)&&fn)an-=Sn/2,Ue.anchor="end";else if(ln)an+=Sn/2,Ue.anchor="start";else{Ue.anchor="middle";var Mn=Or/2,Pn=an+Mn-ze,Vn=an-Mn;Pn>0&&(an-=Pn),Vn<0&&(an+=-Vn)}Ue.crossPos=an}xr.attr("text-anchor",Ue.anchor),Hr&&vr.attr("text-anchor",Ue.anchor),zt.attr("transform",v(an,tn)+(ge?p(d):""))}),{hoverLabels:Ye,commonLabelBoundingBox:he}}function O(Y,j,se,te,fe,ge){var be="",xe="";Y.nameOverride!==void 0&&(Y.name=Y.nameOverride),Y.name&&(Y.trace._meta&&(Y.name=L.templateString(Y.name,Y.trace._meta)),be=$(Y.name,Y.nameLength));var _e=se.charAt(0),De=_e==="x"?"y":"x";Y.zLabel!==void 0?(Y.xLabel!==void 0&&(xe+="x: "+Y.xLabel+"
"),Y.yLabel!==void 0&&(xe+="y: "+Y.yLabel+"
"),Y.trace.type!=="choropleth"&&Y.trace.type!=="choroplethmapbox"&&(xe+=(xe?"z: ":"")+Y.zLabel)):j&&Y[_e+"Label"]===fe?xe=Y[De+"Label"]||"":Y.xLabel===void 0?Y.yLabel!==void 0&&Y.trace.type!=="scattercarpet"&&(xe=Y.yLabel):Y.yLabel===void 0?xe=Y.xLabel:xe="("+Y.xLabel+", "+Y.yLabel+")",(Y.text||Y.text===0)&&!Array.isArray(Y.text)&&(xe+=(xe?"
":"")+Y.text),Y.extraText!==void 0&&(xe+=(xe?"
":"")+Y.extraText),ge&&xe===""&&!Y.hovertemplate&&(be===""&&ge.remove(),xe=be);var Fe=Y.hovertemplate||!1;if(Fe){var Te=Y.hovertemplateLabels||Y;Y[_e+"Label"]!==fe&&(Te[_e+"other"]=Te[_e+"Val"],Te[_e+"otherLabel"]=Te[_e+"Label"]),xe=L.hovertemplateString(Fe,Te,te._d3locale,Y.eventData[0]||{},Y.trace._meta),xe=xe.replace(N,function(Re,Se){return be=$(Se,Y.nameLength),""})}return[xe,be]}function F(Y,j,se,te){var fe=j?"xa":"ya",ge=j?"ya":"xa",be=0,xe=1,_e=Y.size(),De=new Array(_e),Fe=0,Te=te.minX,Re=te.maxX,Se=te.minY,Ie=te.maxY,Me=function(Pe){return Pe*se._invScaleX},Ve=function(Pe){return Pe*se._invScaleY};Y.each(function(Pe){var je=Pe[fe],Ce=Pe[ge],he=je._id.charAt(0)==="x",me=je.range;Fe===0&&me&&me[0]>me[1]!==he&&(xe=-1);var Ne=0,Ze=he?se.width:se.height;if(se.hovermode==="x"||se.hovermode==="y"){var st=z(Pe,j),lt=Pe.anchor,Wt=lt==="end"?-1:1,Zt,Tt;if(lt==="middle")Zt=Pe.crossPos+(he?Ve(st.y-Pe.by/2):Me(Pe.bx/2+Pe.tx2width/2)),Tt=Zt+(he?Ve(Pe.by):Me(Pe.bx));else if(he)Zt=Pe.crossPos+Ve(E+st.y)-Ve(Pe.by/2-E),Tt=Zt+Ve(Pe.by);else{var Rt=Me(Wt*E+st.x),Xt=Rt+Me(Wt*Pe.bx);Zt=Pe.crossPos+Math.min(Rt,Xt),Tt=Pe.crossPos+Math.max(Rt,Xt)}he?Se!==void 0&&Ie!==void 0&&Math.min(Tt,Ie)-Math.max(Zt,Se)>1&&(Ce.side==="left"?(Ne=Ce._mainLinePosition,Ze=se.width):Ze=Ce._mainLinePosition):Te!==void 0&&Re!==void 0&&Math.min(Tt,Re)-Math.max(Zt,Te)>1&&(Ce.side==="top"?(Ne=Ce._mainLinePosition,Ze=se.height):Ze=Ce._mainLinePosition)}De[Fe++]=[{datum:Pe,traceIndex:Pe.trace.index,dp:0,pos:Pe.pos,posref:Pe.posref,size:Pe.by*(he?w:1)/2,pmin:Ne,pmax:Ze}]}),De.sort(function(Pe,je){return Pe[0].posref-je[0].posref||xe*(je[0].traceIndex-Pe[0].traceIndex)});var et,ot,Qe,$e,ht,vt,pt;function wt(Pe){var je=Pe[0],Ce=Pe[Pe.length-1];if(ot=je.pmin-je.pos-je.dp+je.size,Qe=Ce.pos+Ce.dp+Ce.size-je.pmax,ot>.01){for(ht=Pe.length-1;ht>=0;ht--)Pe[ht].dp+=ot;et=!1}if(!(Qe<.01)){if(ot<-.01){for(ht=Pe.length-1;ht>=0;ht--)Pe[ht].dp-=Qe;et=!1}if(et){var he=0;for($e=0;$eje.pmax&&he++;for($e=Pe.length-1;$e>=0&&!(he<=0);$e--)vt=Pe[$e],vt.pos>je.pmax-1&&(vt.del=!0,he--);for($e=0;$e=0;ht--)Pe[ht].dp-=Qe;for($e=Pe.length-1;$e>=0&&!(he<=0);$e--)vt=Pe[$e],vt.pos+vt.dp+vt.size>je.pmax&&(vt.del=!0,he--)}}}for(;!et&&be<=_e;){for(be++,et=!0,$e=0;$e.01&&ze.pmin===He.pmin&&ze.pmax===He.pmax){for(ht=rt.length-1;ht>=0;ht--)rt[ht].dp+=ot;for(Ct.push.apply(Ct,rt),De.splice($e+1,1),pt=0,ht=Ct.length-1;ht>=0;ht--)pt+=Ct[ht].dp;for(Qe=pt/Ct.length,ht=Ct.length-1;ht>=0;ht--)Ct[ht].dp-=Qe;et=!1}else $e++}De.forEach(wt)}for($e=De.length-1;$e>=0;$e--){var We=De[$e];for(ht=We.length-1;ht>=0;ht--){var Ge=We[ht],Le=Ge.datum;Le.offset=Ge.dp,Le.del=Ge.del}}}function z(Y,j){var se=0,te=Y.offset;return j&&(te*=-y,se=Y.offset*C),{x:se,y:te}}function B(Y){var j={start:1,end:-1,middle:0}[Y.anchor],se=j*(E+A),te=se+j*(Y.txwidth+A),fe=Y.anchor==="middle";return fe&&(se-=Y.tx2width/2,te+=Y.txwidth/2+A),{alignShift:j,textShiftX:se,text2ShiftX:te}}function W(Y,j,se,te){var fe=function(be){return be*se},ge=function(be){return be*te};Y.each(function(be){var xe=m.select(this);if(be.del)return xe.remove();var _e=xe.select("text.nums"),De=be.anchor,Fe=De==="end"?-1:1,Te=B(be),Re=z(be,j),Se=Re.x,Ie=Re.y,Me=De==="middle";xe.select("path").attr("d",Me?"M-"+fe(be.bx/2+be.tx2width/2)+","+ge(Ie-be.by/2)+"h"+fe(be.bx)+"v"+ge(be.by)+"h-"+fe(be.bx)+"Z":"M0,0L"+fe(Fe*E+Se)+","+ge(E+Ie)+"v"+ge(be.by/2-E)+"h"+fe(Fe*be.bx)+"v-"+ge(be.by)+"H"+fe(Fe*E+Se)+"V"+ge(Ie-E)+"Z");var Ve=Se+Te.textShiftX,et=Ie+be.ty0-be.by/2+A,ot=be.textAlign||"auto";ot!=="auto"&&(ot==="left"&&De!=="start"?(_e.attr("text-anchor","start"),Ve=Me?-be.bx/2-be.tx2width/2+A:-be.bx-A):ot==="right"&&De!=="end"&&(_e.attr("text-anchor","end"),Ve=Me?be.bx/2-be.tx2width/2-A:be.bx+A)),_e.call(t.positionText,fe(Ve),ge(et)),be.tx2width&&(xe.select("text.name").call(t.positionText,fe(Te.text2ShiftX+Te.alignShift*A+Se),ge(Ie+be.ty0-be.by/2+A)),xe.select("rect").call(n.setRect,fe(Te.text2ShiftX+(Te.alignShift-1)*be.tx2width/2+Se),ge(Ie-be.by/2-1),fe(be.tx2width),ge(be.by+2)))})}function J(Y,j){var se=Y.index,te=Y.trace||{},fe=Y.cd[0],ge=Y.cd[se]||{};function be(Re){return Re||P(Re)&&Re===0}var xe=Array.isArray(se)?function(Re,Se){var Ie=L.castOption(fe,se,Re);return be(Ie)?Ie:L.extractOption({},te,"",Se)}:function(Re,Se){return L.extractOption(ge,te,Re,Se)};function _e(Re,Se,Ie){var Me=xe(Se,Ie);be(Me)&&(Y[Re]=Me)}if(_e("hoverinfo","hi","hoverinfo"),_e("bgcolor","hbg","hoverlabel.bgcolor"),_e("borderColor","hbc","hoverlabel.bordercolor"),_e("fontFamily","htf","hoverlabel.font.family"),_e("fontSize","hts","hoverlabel.font.size"),_e("fontColor","htc","hoverlabel.font.color"),_e("fontWeight","htw","hoverlabel.font.weight"),_e("fontStyle","hty","hoverlabel.font.style"),_e("fontVariant","htv","hoverlabel.font.variant"),_e("nameLength","hnl","hoverlabel.namelength"),_e("textAlign","hta","hoverlabel.align"),Y.posref=j==="y"||j==="closest"&&te.orientation==="h"?Y.xa._offset+(Y.x0+Y.x1)/2:Y.ya._offset+(Y.y0+Y.y1)/2,Y.x0=L.constrain(Y.x0,0,Y.xa._length),Y.x1=L.constrain(Y.x1,0,Y.xa._length),Y.y0=L.constrain(Y.y0,0,Y.ya._length),Y.y1=L.constrain(Y.y1,0,Y.ya._length),Y.xLabelVal!==void 0&&(Y.xLabel="xLabel"in Y?Y.xLabel:l.hoverLabelText(Y.xa,Y.xLabelVal,te.xhoverformat),Y.xVal=Y.xa.c2d(Y.xLabelVal)),Y.yLabelVal!==void 0&&(Y.yLabel="yLabel"in Y?Y.yLabel:l.hoverLabelText(Y.ya,Y.yLabelVal,te.yhoverformat),Y.yVal=Y.ya.c2d(Y.yLabelVal)),Y.zLabelVal!==void 0&&Y.zLabel===void 0&&(Y.zLabel=String(Y.zLabelVal)),!isNaN(Y.xerr)&&!(Y.xa.type==="log"&&Y.xerr<=0)){var De=l.tickText(Y.xa,Y.xa.c2l(Y.xerr),"hover").text;Y.xerrneg!==void 0?Y.xLabel+=" +"+De+" / -"+l.tickText(Y.xa,Y.xa.c2l(Y.xerrneg),"hover").text:Y.xLabel+=" ± "+De,j==="x"&&(Y.distance+=1)}if(!isNaN(Y.yerr)&&!(Y.ya.type==="log"&&Y.yerr<=0)){var Fe=l.tickText(Y.ya,Y.ya.c2l(Y.yerr),"hover").text;Y.yerrneg!==void 0?Y.yLabel+=" +"+Fe+" / -"+l.tickText(Y.ya,Y.ya.c2l(Y.yerrneg),"hover").text:Y.yLabel+=" ± "+Fe,j==="y"&&(Y.distance+=1)}var Te=Y.hoverinfo||Y.trace.hoverinfo;return Te&&Te!=="all"&&(Te=Array.isArray(Te)?Te:Te.split("+"),Te.indexOf("x")===-1&&(Y.xLabel=void 0),Te.indexOf("y")===-1&&(Y.yLabel=void 0),Te.indexOf("z")===-1&&(Y.zLabel=void 0),Te.indexOf("text")===-1&&(Y.text=void 0),Te.indexOf("name")===-1&&(Y.name=void 0)),Y}function re(Y,j,se){var te=se.container,fe=se.fullLayout,ge=fe._size,be=se.event,xe=!!j.hLinePoint,_e=!!j.vLinePoint,De,Fe;if(te.selectAll(".spikeline").remove(),!!(_e||xe)){var Te=f.combine(fe.plot_bgcolor,fe.paper_bgcolor);if(xe){var Re=j.hLinePoint,Se,Ie;De=Re&&Re.xa,Fe=Re&&Re.ya;var Me=Fe.spikesnap;Me==="cursor"?(Se=be.pointerX,Ie=be.pointerY):(Se=De._offset+Re.x,Ie=Fe._offset+Re.y);var Ve=s.readability(Re.color,Te)<1.5?f.contrast(Te):Re.color,et=Fe.spikemode,ot=Fe.spikethickness,Qe=Fe.spikecolor||Ve,$e=l.getPxPosition(Y,Fe),ht,vt;if(et.indexOf("toaxis")!==-1||et.indexOf("across")!==-1){if(et.indexOf("toaxis")!==-1&&(ht=$e,vt=Se),et.indexOf("across")!==-1){var pt=Fe._counterDomainMin,wt=Fe._counterDomainMax;Fe.anchor==="free"&&(pt=Math.min(pt,Fe.position),wt=Math.max(wt,Fe.position)),ht=ge.l+pt*ge.w,vt=ge.l+wt*ge.w}te.insert("line",":first-child").attr({x1:ht,x2:vt,y1:Ie,y2:Ie,"stroke-width":ot,stroke:Qe,"stroke-dasharray":n.dashStyle(Fe.spikedash,ot)}).classed("spikeline",!0).classed("crisp",!0),te.insert("line",":first-child").attr({x1:ht,x2:vt,y1:Ie,y2:Ie,"stroke-width":ot+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}et.indexOf("marker")!==-1&&te.insert("circle",":first-child").attr({cx:$e+(Fe.side!=="right"?ot:-ot),cy:Ie,r:ot,fill:Qe}).classed("spikeline",!0)}if(_e){var Ct=j.vLinePoint,rt,ze;De=Ct&&Ct.xa,Fe=Ct&&Ct.ya;var He=De.spikesnap;He==="cursor"?(rt=be.pointerX,ze=be.pointerY):(rt=De._offset+Ct.x,ze=Fe._offset+Ct.y);var We=s.readability(Ct.color,Te)<1.5?f.contrast(Te):Ct.color,Ge=De.spikemode,Le=De.spikethickness,Pe=De.spikecolor||We,je=l.getPxPosition(Y,De),Ce,he;if(Ge.indexOf("toaxis")!==-1||Ge.indexOf("across")!==-1){if(Ge.indexOf("toaxis")!==-1&&(Ce=je,he=ze),Ge.indexOf("across")!==-1){var me=De._counterDomainMin,Ne=De._counterDomainMax;De.anchor==="free"&&(me=Math.min(me,De.position),Ne=Math.max(Ne,De.position)),Ce=ge.t+(1-Ne)*ge.h,he=ge.t+(1-me)*ge.h}te.insert("line",":first-child").attr({x1:rt,x2:rt,y1:Ce,y2:he,"stroke-width":Le,stroke:Pe,"stroke-dasharray":n.dashStyle(De.spikedash,Le)}).classed("spikeline",!0).classed("crisp",!0),te.insert("line",":first-child").attr({x1:rt,x2:rt,y1:Ce,y2:he,"stroke-width":Le+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}Ge.indexOf("marker")!==-1&&te.insert("circle",":first-child").attr({cx:rt,cy:je-(De.side!=="top"?Le:-Le),r:Le,fill:Pe}).classed("spikeline",!0)}}}function ne(Y,j,se){if(!se||se.length!==Y._hoverdata.length)return!0;for(var te=se.length-1;te>=0;te--){var fe=se[te],ge=Y._hoverdata[te];if(fe.curveNumber!==ge.curveNumber||String(fe.pointNumber)!==String(ge.pointNumber)||String(fe.pointNumbers)!==String(ge.pointNumbers))return!0}return!1}function le(Y,j){return!0}function $(Y,j){return t.plainText(Y||"",{len:j,allowedTags:["br","sub","sup","b","i","em"]})}function Z(Y,j){for(var se=j.charAt(0),te=[],fe=[],ge=[],be=0;be1)){delete u.grid;return}if(!T&&!c&&!i){var o=y("pattern")==="independent";o&&(T=!0)}C._hasSubplotGrid=T;var M=y("roworder"),b=M==="top to bottom",I=T?.2:.1,D=T?.3:.1,N,k;d&&u._splomGridDflt&&(N=u._splomGridDflt.xside,k=u._splomGridDflt.yside),C._domains={x:t("x",y,I,N,A),y:t("y",y,D,k,E,b)}}function t(f,u,l,g,h,T){var c=u(f+"gap",l),i=u("domain."+f);u(f+"side",g);for(var d=new Array(h),x=i[0],w=(i[1]-x)/(h-c),C=w*(1-c),y=0;y(t==="legend"?1:0));if(b===!1&&(n[t]=void 0),!(b===!1&&!u.uirevision)&&(g("uirevision",n.uirevision),b!==!1)){g("borderwidth");var I=g("orientation"),D=g("yref"),N=g("xref"),k=I==="h",O=D==="paper",F=N==="paper",z,B,W,J="left";k?(z=0,m.getComponentMethod("rangeslider","isVisible")(a.xaxis)?O?(B=1.1,W="bottom"):(B=1,W="top"):O?(B=-.1,W="top"):(B=0,W="bottom")):(B=1,W="auto",F?z=1.02:(z=1,J="right")),P.coerce(u,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:z}},"x"),P.coerce(u,l,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:B}},"y"),g("traceorder",y),p.isGrouped(n[t])&&g("tracegroupgap"),g("entrywidth"),g("entrywidthmode"),g("indentation"),g("itemsizing"),g("itemwidth"),g("itemclick"),g("itemdoubleclick"),g("groupclick"),g("xanchor",J),g("yanchor",W),g("valign"),P.noneOrAll(u,l,["x","y"]);var re=g("title.text");if(re){g("title.side",k?"left":"top");var ne=P.extendFlat({},h,{size:P.bigFont(h.size)});P.coerceFont(g,"title.font",ne)}}}}G.exports=function(a,n,f){var u,l=f.slice(),g=n.shapes;if(g)for(u=0;u1)}var j=J.hiddenlabels||[];if(!$&&(!J.showlegend||!Z.length))return le.selectAll("."+re).remove(),J._topdefs.select("#"+ne).remove(),s.autoMargin(z,re);var se=P.ensureSingle(le,"g",re,function(Te){$||Te.attr("pointer-events","all")}),te=P.ensureSingleById(J._topdefs,"clipPath",ne,function(Te){Te.append("rect")}),fe=P.ensureSingle(se,"rect","bg",function(Te){Te.attr("shape-rendering","crispEdges")});fe.call(r.stroke,W.bordercolor).call(r.fill,W.bgcolor).style("stroke-width",W.borderwidth+"px");var ge=P.ensureSingle(se,"g","scrollbox"),be=W.title;W._titleWidth=0,W._titleHeight=0;var xe;be.text?(xe=P.ensureSingle(ge,"text",re+"titletext"),xe.attr("text-anchor","start").call(p.font,be.font).text(be.text),M(xe,ge,z,W,i)):ge.selectAll("."+re+"titletext").remove();var _e=P.ensureSingle(se,"rect","scrollbar",function(Te){Te.attr(n.scrollBarEnterAttrs).call(r.fill,n.scrollBarColor)}),De=ge.selectAll("g.groups").data(Z);De.enter().append("g").attr("class","groups"),De.exit().remove();var Fe=De.selectAll("g.traces").data(P.identity);Fe.enter().append("g").attr("class","traces"),Fe.exit().remove(),Fe.style("opacity",function(Te){var Re=Te[0].trace;return L.traceIs(Re,"pie-like")?j.indexOf(Te[0].label)!==-1?.5:1:Re.visible==="legendonly"?.5:1}).each(function(){m.select(this).call(E,z,W)}).call(T,z,W).each(function(){$||m.select(this).call(o,z,re)}),P.syncOrAsync([s.previousPromises,function(){return D(z,De,Fe,W)},function(){var Te=J._size,Re=W.borderwidth,Se=W.xref==="paper",Ie=W.yref==="paper";if(be.text&&x(xe,W,Re),!$){var Me,Ve;Se?Me=Te.l+Te.w*W.x-l[k(W)]*W._width:Me=J.width*W.x-l[k(W)]*W._width,Ie?Ve=Te.t+Te.h*(1-W.y)-l[O(W)]*W._effHeight:Ve=J.height*(1-W.y)-l[O(W)]*W._effHeight;var et=N(z,re,Me,Ve);if(et)return;if(J.margin.autoexpand){var ot=Me,Qe=Ve;Me=Se?P.constrain(Me,0,J.width-W._width):ot,Ve=Ie?P.constrain(Ve,0,J.height-W._effHeight):Qe,Me!==ot&&P.log("Constrain "+re+".x to make legend fit inside graph"),Ve!==Qe&&P.log("Constrain "+re+".y to make legend fit inside graph")}p.setTranslate(se,Me,Ve)}if(_e.on(".drag",null),se.on("wheel",null),$||W._height<=W._maxHeight||z._context.staticPlot){var $e=W._effHeight;$&&($e=W._height),fe.attr({width:W._width-Re,height:$e-Re,x:Re/2,y:Re/2}),p.setTranslate(ge,0,0),te.select("rect").attr({width:W._width-2*Re,height:$e-2*Re,x:Re,y:Re}),p.setClipUrl(ge,ne,z),p.setRect(_e,0,0,0,0),delete W._scrollY}else{var ht=Math.max(n.scrollBarMinHeight,W._effHeight*W._effHeight/W._height),vt=W._effHeight-ht-2*n.scrollBarMargin,pt=W._height-W._effHeight,wt=vt/pt,Ct=Math.min(W._scrollY||0,pt);fe.attr({width:W._width-2*Re+n.scrollBarWidth+n.scrollBarMargin,height:W._effHeight-Re,x:Re/2,y:Re/2}),te.select("rect").attr({width:W._width-2*Re+n.scrollBarWidth+n.scrollBarMargin,height:W._effHeight-2*Re,x:Re,y:Re+Ct}),p.setClipUrl(ge,ne,z),je(Ct,ht,wt),se.on("wheel",function(){Ct=P.constrain(W._scrollY+m.event.deltaY/vt*pt,0,pt),je(Ct,ht,wt),Ct!==0&&Ct!==pt&&m.event.preventDefault()});var rt,ze,He,We=function(Ze,st,lt){var Wt=(lt-st)/wt+Ze;return P.constrain(Wt,0,pt)},Ge=function(Ze,st,lt){var Wt=(st-lt)/wt+Ze;return P.constrain(Wt,0,pt)},Le=m.behavior.drag().on("dragstart",function(){var Ze=m.event.sourceEvent;Ze.type==="touchstart"?rt=Ze.changedTouches[0].clientY:rt=Ze.clientY,He=Ct}).on("drag",function(){var Ze=m.event.sourceEvent;Ze.buttons===2||Ze.ctrlKey||(Ze.type==="touchmove"?ze=Ze.changedTouches[0].clientY:ze=Ze.clientY,Ct=We(He,rt,ze),je(Ct,ht,wt))});_e.call(Le);var Pe=m.behavior.drag().on("dragstart",function(){var Ze=m.event.sourceEvent;Ze.type==="touchstart"&&(rt=Ze.changedTouches[0].clientY,He=Ct)}).on("drag",function(){var Ze=m.event.sourceEvent;Ze.type==="touchmove"&&(ze=Ze.changedTouches[0].clientY,Ct=Ge(He,rt,ze),je(Ct,ht,wt))});ge.call(Pe)}function je(Ze,st,lt){W._scrollY=z._fullLayout[re]._scrollY=Ze,p.setTranslate(ge,0,-Ze),p.setRect(_e,W._width,n.scrollBarMargin+Ze*lt,n.scrollBarWidth,st),te.select("rect").attr("y",Re+Ze)}if(z._context.edits.legendPosition){var Ce,he,me,Ne;se.classed("cursor-move",!0),v.init({element:se.node(),gd:z,prepFn:function(Ze){if(Ze.target!==_e.node()){var st=p.getTranslate(se);me=st.x,Ne=st.y}},moveFn:function(Ze,st){if(me!==void 0&&Ne!==void 0){var lt=me+Ze,Wt=Ne+st;p.setTranslate(se,lt,Wt),Ce=v.align(lt,W._width,Te.l,Te.l+Te.w,W.xanchor),he=v.align(Wt+W._height,-W._height,Te.t+Te.h,Te.t,W.yanchor)}},doneFn:function(){if(Ce!==void 0&&he!==void 0){var Ze={};Ze[re+".x"]=Ce,Ze[re+".y"]=he,L.call("_guiRelayout",z,Ze)}},clickFn:function(Ze,st){var lt=le.selectAll("g.traces").filter(function(){var Wt=this.getBoundingClientRect();return st.clientX>=Wt.left&&st.clientX<=Wt.right&&st.clientY>=Wt.top&&st.clientY<=Wt.bottom});lt.size()>0&&y(z,se,lt,Ze,st)}})}}],z)}}function C(z,B,W){var J=z[0],re=J.width,ne=B.entrywidthmode,le=J.trace.legendwidth||B.entrywidth;return ne==="fraction"?B._maxWidth*le:W+(le||re)}function y(z,B,W,J,re){var ne=W.data()[0][0].trace,le={event:re,node:W.node(),curveNumber:ne.index,expandedIndex:ne._expandedIndex,data:z.data,layout:z.layout,frames:z._transitionData._frames,config:z._context,fullData:z._fullData,fullLayout:z._fullLayout};ne._group&&(le.group=ne._group),L.traceIs(ne,"pie-like")&&(le.label=W.datum()[0].label);var $=S.triggerHandler(z,"plotly_legendclick",le);if(J===1){if($===!1)return;B._clickTimeout=setTimeout(function(){z._fullLayout&&a(W,z,J)},z._context.doubleClickDelay)}else if(J===2){B._clickTimeout&&clearTimeout(B._clickTimeout),z._legendMouseDownTime=0;var Z=S.triggerHandler(z,"plotly_legenddoubleclick",le);Z!==!1&&$!==!1&&a(W,z,J)}}function E(z,B,W){var J=F(W),re=z.data()[0][0],ne=re.trace,le=L.traceIs(ne,"pie-like"),$=!W._inHover&&B._context.edits.legendText&&!le,Z=W._maxNameLength,ie,X;re.groupTitle?(ie=re.groupTitle.text,X=re.groupTitle.font):(X=W.font,W.entries?ie=re.text:(ie=le?re.label:ne.name,ne._meta&&(ie=P.templateString(ie,ne._meta))));var Q=P.ensureSingle(z,"text",J+"text");Q.attr("text-anchor","start").call(p.font,X).text($?A(ie,Z):ie);var oe=W.indentation+W.itemwidth+n.itemGap*2;t.positionText(Q,oe,0),$?Q.call(t.makeEditable,{gd:B,text:ie}).call(M,z,B,W).on("edit",function(Y){this.text(A(Y,Z)).call(M,z,B,W);var j=re.trace._fullInput||{},se={};if(L.hasTransform(j,"groupby")){var te=L.getTransformIndices(j,"groupby"),fe=te[te.length-1],ge=P.keyedContainer(j,"transforms["+fe+"].styles","target","value.name");ge.set(re.trace._group,Y),se=ge.constructUpdate()}else se.name=Y;return j._isShape?L.call("_guiRelayout",B,"shapes["+ne.index+"].name",se.name):L.call("_guiRestyle",B,se,ne.index)}):M(Q,z,B,W)}function A(z,B){var W=Math.max(4,B);if(z&&z.trim().length>=W/2)return z;z=z||"";for(var J=W-z.length;J>0;J--)z+=" ";return z}function o(z,B,W){var J=B._context.doubleClickDelay,re,ne=1,le=P.ensureSingle(z,"rect",W+"toggle",function($){B._context.staticPlot||$.style("cursor","pointer").attr("pointer-events","all"),$.call(r.fill,"rgba(0,0,0,0)")});B._context.staticPlot||(le.on("mousedown",function(){re=new Date().getTime(),re-B._legendMouseDownTimeJ&&(ne=Math.max(ne-1,1)),y(B,$,z,ne,m.event)}}))}function M(z,B,W,J,re){J._inHover&&z.attr("data-notex",!0),t.convertToTspans(z,W,function(){b(B,W,J,re)})}function b(z,B,W,J){var re=z.data()[0][0];if(!W._inHover&&re&&!re.trace.showlegend){z.remove();return}var ne=z.select("g[class*=math-group]"),le=ne.node(),$=F(W);W||(W=B._fullLayout[$]);var Z=W.borderwidth,ie;J===i?ie=W.title.font:re.groupTitle?ie=re.groupTitle.font:ie=W.font;var X=ie.size*u,Q,oe;if(le){var Y=p.bBox(le);Q=Y.height,oe=Y.width,J===i?p.setTranslate(ne,Z,Z+Q*.75):p.setTranslate(ne,0,Q*.25)}else{var j="."+$+(J===i?"title":"")+"text",se=z.select(j),te=t.lineCount(se),fe=se.node();if(Q=X*te,oe=fe?p.bBox(fe).width:0,J===i)W.title.side==="left"&&(oe+=n.itemGap*2),t.positionText(se,Z+n.titlePad,Z+X);else{var ge=n.itemGap*2+W.indentation+W.itemwidth;re.groupTitle&&(ge=n.itemGap,oe-=W.indentation+W.itemwidth),t.positionText(se,ge,-X*((te-1)/2-.3))}}J===i?(W._titleWidth=oe,W._titleHeight=Q):(re.lineHeight=X,re.height=Math.max(Q,16)+3,re.width=oe)}function I(z){var B=0,W=0,J=z.title.side;return J&&(J.indexOf("left")!==-1&&(B=z._titleWidth),J.indexOf("top")!==-1&&(W=z._titleHeight)),[B,W]}function D(z,B,W,J){var re=z._fullLayout,ne=F(J);J||(J=re[ne]);var le=re._size,$=c.isVertical(J),Z=c.isGrouped(J),ie=J.entrywidthmode==="fraction",X=J.borderwidth,Q=2*X,oe=n.itemGap,Y=J.indentation+J.itemwidth+oe*2,j=2*(X+oe),se=O(J),te=J.y<0||J.y===0&&se==="top",fe=J.y>1||J.y===1&&se==="bottom",ge=J.tracegroupgap,be={};J._maxHeight=Math.max(te||fe?re.height/2:le.h,30);var xe=0;J._width=0,J._height=0;var _e=I(J);if($)W.each(function(He){var We=He[0].height;p.setTranslate(this,X+_e[0],X+_e[1]+J._height+We/2+oe),J._height+=We,J._width=Math.max(J._width,He[0].width)}),xe=Y+J._width,J._width+=oe+Y+Q,J._height+=j,Z&&(B.each(function(He,We){p.setTranslate(this,0,We*J.tracegroupgap)}),J._height+=(J._lgroupsLength-1)*J.tracegroupgap);else{var De=k(J),Fe=J.x<0||J.x===0&&De==="right",Te=J.x>1||J.x===1&&De==="left",Re=fe||te,Se=re.width/2;J._maxWidth=Math.max(Fe?Re&&De==="left"?le.l+le.w:Se:Te?Re&&De==="right"?le.r+le.w:Se:le.w,2*Y);var Ie=0,Me=0;W.each(function(He){var We=C(He,J,Y);Ie=Math.max(Ie,We),Me+=We}),xe=null;var Ve=0;if(Z){var et=0,ot=0,Qe=0;B.each(function(){var He=0,We=0;m.select(this).selectAll("g.traces").each(function(Le){var Pe=C(Le,J,Y),je=Le[0].height;p.setTranslate(this,_e[0],_e[1]+X+oe+je/2+We),We+=je,He=Math.max(He,Pe),be[Le[0].trace.legendgroup]=He});var Ge=He+oe;ot>0&&Ge+X+ot>J._maxWidth?(Ve=Math.max(Ve,ot),ot=0,Qe+=et+ge,et=We):et=Math.max(et,We),p.setTranslate(this,ot,Qe),ot+=Ge}),J._width=Math.max(Ve,ot)+X,J._height=Qe+et+j}else{var $e=W.size(),ht=Me+Q+($e-1)*oe=J._maxWidth&&(Ve=Math.max(Ve,Ct),pt=0,wt+=vt,J._height+=vt,vt=0),p.setTranslate(this,_e[0]+X+pt,_e[1]+X+wt+We/2+oe),Ct=pt+Ge+oe,pt+=Le,vt=Math.max(vt,We)}),ht?(J._width=pt+Q,J._height=vt+j):(J._width=Math.max(Ve,Ct)+Q,J._height+=vt+j)}}J._width=Math.ceil(Math.max(J._width+_e[0],J._titleWidth+2*(X+n.titlePad))),J._height=Math.ceil(Math.max(J._height+_e[1],J._titleHeight+2*(X+n.itemGap))),J._effHeight=Math.min(J._height,J._maxHeight);var rt=z._context.edits,ze=rt.legendText||rt.legendPosition;W.each(function(He){var We=m.select(this).select("."+ne+"toggle"),Ge=He[0].height,Le=He[0].trace.legendgroup,Pe=C(He,J,Y);Z&&Le!==""&&(Pe=be[Le]);var je=ze?Y:xe||Pe;!$&&!ie&&(je+=oe/2),p.setRect(We,0,-Ge/2,je,Ge)})}function N(z,B,W,J){var re=z._fullLayout,ne=re[B],le=k(ne),$=O(ne),Z=ne.xref==="paper",ie=ne.yref==="paper";z._fullLayout._reservedMargin[B]={};var X=ne.y<.5?"b":"t",Q=ne.x<.5?"l":"r",oe={r:re.width-W,l:W+ne._width,b:re.height-J,t:J+ne._effHeight};if(Z&&ie)return s.autoMargin(z,B,{x:ne.x,y:ne.y,l:ne._width*l[le],r:ne._width*g[le],b:ne._effHeight*g[$],t:ne._effHeight*l[$]});Z?z._fullLayout._reservedMargin[B][X]=oe[X]:ie||ne.orientation==="v"?z._fullLayout._reservedMargin[B][Q]=oe[Q]:z._fullLayout._reservedMargin[B][X]=oe[X]}function k(z){return P.isRightAnchor(z)?"right":P.isCenterAnchor(z)?"center":"left"}function O(z){return P.isBottomAnchor(z)?"bottom":P.isMiddleAnchor(z)?"middle":"top"}function F(z){return z._id||"legend"}},35456:function(G,H,e){var m=e(24040),P=e(42451);G.exports=function(L,S,v){var p=S._inHover,r=P.isGrouped(S),t=P.isReversed(S),a={},n=[],f=!1,u={},l=0,g=0,h,T;function c(z,B,W){if(S.visible!==!1&&!(v&&z!==S._id))if(B===""||!P.isGrouped(S)){var J="~~i"+l;n.push(J),a[J]=[W],l++}else n.indexOf(B)===-1?(n.push(B),f=!0,a[B]=[W]):a[B].push(W)}for(h=0;hb&&(M=b)}A[h][0]._groupMinRank=M,A[h][0]._preGroupSort=h}var I=function(z,B){return z[0]._groupMinRank-B[0]._groupMinRank||z[0]._preGroupSort-B[0]._preGroupSort},D=function(z,B){return z.trace.legendrank-B.trace.legendrank||z._preSort-B._preSort};for(A.forEach(function(z,B){z[0]._preGroupSort=B}),A.sort(I),h=0;h0)Q=Z.width;else return 0;return E?X:Math.min(Q,ie)};x.each(function($){var Z=m.select(this),ie=s.ensureSingle(Z,"g","layers");ie.style("opacity",$[0].trace.opacity);var X=C.indentation,Q=C.valign,oe=$[0].lineHeight,Y=$[0].height;if(Q==="middle"&&X===0||!oe||!Y)ie.attr("transform",null);else{var j={top:1,bottom:-1}[Q],se=j*(.5*(oe-Y+3))||0,te=C.indentation;ie.attr("transform",L(te,se))}var fe=ie.selectAll("g.legendfill").data([$]);fe.enter().append("g").classed("legendfill",!0);var ge=ie.selectAll("g.legendlines").data([$]);ge.enter().append("g").classed("legendlines",!0);var be=ie.selectAll("g.legendsymbols").data([$]);be.enter().append("g").classed("legendsymbols",!0),be.selectAll("g.legendpoints").data([$]).enter().append("g").classed("legendpoints",!0)}).each(le).each(N).each(O).each(k).each(z).each(re).each(J).each(I).each(D).each(B).each(W);function I($){var Z=c($),ie=Z.showFill,X=Z.showLine,Q=Z.showGradientLine,oe=Z.showGradientFill,Y=Z.anyFill,j=Z.anyLine,se=$[0],te=se.trace,fe,ge,be=p(te),xe=be.colorscale,_e=be.reversescale,De=function(Ve){if(Ve.size())if(ie)S.fillGroupStyle(Ve,w,!0);else{var et="legendfill-"+te.uid;S.gradient(Ve,w,et,T(_e),xe,"fill")}},Fe=function(Ve){if(Ve.size()){var et="legendline-"+te.uid;S.lineGroupStyle(Ve),S.gradient(Ve,w,et,T(_e),xe,"stroke")}},Te=r.hasMarkers(te)||!Y?"M5,0":j?"M5,-2":"M5,-3",Re=m.select(this),Se=Re.select(".legendfill").selectAll("path").data(ie||oe?[$]:[]);if(Se.enter().append("path").classed("js-fill",!0),Se.exit().remove(),Se.attr("d",Te+"h"+A+"v6h-"+A+"z").call(De),X||Q){var Ie=b(void 0,te.line,g,u);ge=s.minExtend(te,{line:{width:Ie}}),fe=[s.minExtend(se,{trace:ge})]}var Me=Re.select(".legendlines").selectAll("path").data(X||Q?[fe]:[]);Me.enter().append("path").classed("js-line",!0),Me.exit().remove(),Me.attr("d",Te+(Q?"l"+A+",0.0001":"h"+A)).call(X?S.lineGroupStyle:Fe)}function D($){var Z=c($),ie=Z.anyFill,X=Z.anyLine,Q=Z.showLine,oe=Z.showMarker,Y=$[0],j=Y.trace,se=!oe&&!X&&!ie&&r.hasText(j),te,fe;function ge(Se,Ie,Me,Ve){var et=s.nestedProperty(j,Se).get(),ot=s.isArrayOrTypedArray(et)&&Ie?Ie(et):et;if(E&&ot&&Ve!==void 0&&(ot=Ve),Me){if(otMe[1])return Me[1]}return ot}function be(Se){return Y._distinct&&Y.index&&Se[Y.index]?Se[Y.index]:Se[0]}if(oe||se||Q){var xe={},_e={};if(oe){xe.mc=ge("marker.color",be),xe.mx=ge("marker.symbol",be),xe.mo=ge("marker.opacity",s.mean,[.2,1]),xe.mlc=ge("marker.line.color",be),xe.mlw=ge("marker.line.width",s.mean,[0,5],l),_e.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=ge("marker.size",s.mean,[2,16],f);xe.ms=De,_e.marker.size=De}Q&&(_e.line={width:ge("line.width",be,[0,10],u)}),se&&(xe.tx="Aa",xe.tp=ge("textposition",be),xe.ts=10,xe.tc=ge("textfont.color",be),xe.tf=ge("textfont.family",be),xe.tw=ge("textfont.weight",be),xe.ty=ge("textfont.style",be),xe.tv=ge("textfont.variant",be),xe.tC=ge("textfont.textcase",be),xe.tE=ge("textfont.lineposition",be),xe.tS=ge("textfont.shadow",be)),te=[s.minExtend(Y,xe)],fe=s.minExtend(j,_e),fe.selectedpoints=null,fe.texttemplate=null}var Fe=m.select(this).select("g.legendpoints"),Te=Fe.selectAll("path.scatterpts").data(oe?te:[]);Te.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",M),Te.exit().remove(),Te.call(S.pointStyle,fe,w),oe&&(te[0].mrc=3);var Re=Fe.selectAll("g.pointtext").data(se?te:[]);Re.enter().append("g").classed("pointtext",!0).append("text").attr("transform",M),Re.exit().remove(),Re.selectAll("text").call(S.textPointStyle,fe,w)}function N($){var Z=$[0].trace,ie=Z.type==="waterfall";if($[0]._distinct&&ie){var X=$[0].trace[$[0].dir].marker;return $[0].mc=X.color,$[0].mlw=X.line.width,$[0].mlc=X.line.color,F($,this,"waterfall")}var Q=[];Z.visible&&ie&&(Q=$[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=m.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(Q);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",M).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(Y){var j=m.select(this),se=Z[Y[0]].marker,te=b(void 0,se.line,h,l);j.attr("d",Y[1]).style("stroke-width",te+"px").call(v.fill,se.color),te&&j.call(v.stroke,se.line.color)})}function k($){F($,this)}function O($){F($,this,"funnel")}function F($,Z,ie){var X=$[0].trace,Q=X.marker||{},oe=Q.line||{},Y=Q.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",j=ie?X.visible&&X.type===ie:P.traceIs(X,"bar"),se=m.select(Z).select("g.legendpoints").selectAll("path.legend"+ie).data(j?[$]:[]);se.enter().append("path").classed("legend"+ie,!0).attr("d",Y).attr("transform",M),se.exit().remove(),se.each(function(te){var fe=m.select(this),ge=te[0],be=b(ge.mlw,Q.line,h,l);fe.style("stroke-width",be+"px");var xe=ge.mcc;if(!C._inHover&&"mc"in ge){var _e=p(Q),De=_e.mid;De===void 0&&(De=(_e.max+_e.min)/2),xe=S.tryColorscale(Q,"")(De)}var Fe=xe||ge.mc||Q.color,Te=Q.pattern,Re=Te&&S.getPatternAttr(Te.shape,0,"");if(Re){var Se=S.getPatternAttr(Te.bgcolor,0,null),Ie=S.getPatternAttr(Te.fgcolor,0,null),Me=Te.fgopacity,Ve=i(Te.size,8,10),et=i(Te.solidity,.5,1),ot="legend-"+X.uid;fe.call(S.pattern,"legend",w,ot,Re,Ve,et,xe,Te.fillmode,Se,Ie,Me)}else fe.call(v.fill,Fe);be&&v.stroke(fe,ge.mlc||oe.color)})}function z($){var Z=$[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Z.visible&&P.traceIs(Z,"box-violin")?[$]:[]);ie.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",M),ie.exit().remove(),ie.each(function(){var X=m.select(this);if((Z.boxpoints==="all"||Z.points==="all")&&v.opacity(Z.fillcolor)===0&&v.opacity((Z.line||{}).color)===0){var Q=s.minExtend(Z,{marker:{size:E?f:s.constrain(Z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ie.call(S.pointStyle,Q,w)}else{var oe=b(void 0,Z.line,h,l);X.style("stroke-width",oe+"px").call(v.fill,Z.fillcolor),oe&&v.stroke(X,Z.line.color)}})}function B($){var Z=$[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Z.visible&&Z.type==="candlestick"?[$,$]:[]);ie.enter().append("path").classed("legendcandle",!0).attr("d",function(X,Q){return Q?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",M).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(X,Q){var oe=m.select(this),Y=Z[Q?"increasing":"decreasing"],j=b(void 0,Y.line,h,l);oe.style("stroke-width",j+"px").call(v.fill,Y.fillcolor),j&&v.stroke(oe,Y.line.color)})}function W($){var Z=$[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Z.visible&&Z.type==="ohlc"?[$,$]:[]);ie.enter().append("path").classed("legendohlc",!0).attr("d",function(X,Q){return Q?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",M).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(X,Q){var oe=m.select(this),Y=Z[Q?"increasing":"decreasing"],j=b(void 0,Y.line,h,l);oe.style("fill","none").call(S.dashLine,Y.line.dash,j),j&&v.stroke(oe,Y.line.color)})}function J($){ne($,this,"pie")}function re($){ne($,this,"funnelarea")}function ne($,Z,ie){var X=$[0],Q=X.trace,oe=ie?Q.visible&&Q.type===ie:P.traceIs(Q,ie),Y=m.select(Z).select("g.legendpoints").selectAll("path.legend"+ie).data(oe?[$]:[]);if(Y.enter().append("path").classed("legend"+ie,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",M),Y.exit().remove(),Y.size()){var j=Q.marker||{},se=b(a(j.line.width,X.pts),j.line,h,l),te="pieLike",fe=s.minExtend(Q,{marker:{line:{width:se}}},te),ge=s.minExtend(X,{trace:fe},te);t(Y,ge,fe,w)}}function le($){var Z=$[0].trace,ie,X=[];if(Z.visible)switch(Z.type){case"histogram2d":case"heatmap":X=[["M-15,-2V4H15V-2Z"]],ie=!0;break;case"choropleth":case"choroplethmapbox":X=[["M-6,-6V6H6V-6Z"]],ie=!0;break;case"densitymapbox":X=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ie="radial";break;case"cone":X=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],ie=!1;break;case"streamtube":X=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],ie=!1;break;case"surface":X=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],ie=!0;break;case"mesh3d":X=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ie=!1;break;case"volume":X=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ie=!0;break;case"isosurface":X=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],ie=!1;break}var Q=m.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(X);Q.enter().append("path").classed("legend3dandfriends",!0).attr("transform",M).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(oe,Y){var j=m.select(this),se=p(Z),te=se.colorscale,fe=se.reversescale,ge=function(De){if(De.size()){var Fe="legendfill-"+Z.uid;S.gradient(De,w,Fe,T(fe,ie==="radial"),te,"fill")}},be;if(te){if(!ie){var _e=te.length;be=Y===0?te[fe?_e-1:0][1]:Y===1?te[fe?0:_e-1][1]:te[Math.floor((_e-1)/2)][1]}}else{var xe=Z.vertexcolor||Z.facecolor||Z.color;be=s.isArrayOrTypedArray(xe)?xe[Y]||xe[0]:xe}j.attr("d",oe[0]),be?j.call(v.fill,be):j.call(ge)})}};function T(d,x){var w=x?"radial":"horizontal";return w+(d?"":"reversed")}function c(d){var x=d[0].trace,w=x.contours,C=r.hasLines(x),y=r.hasMarkers(x),E=x.visible&&x.fill&&x.fill!=="none",A=!1,o=!1;if(w){var M=w.coloring;M==="lines"?A=!0:C=M==="none"||M==="heatmap"||w.showlines,w.type==="constraint"?E=w._operation!=="=":(M==="fill"||M==="heatmap")&&(o=!0)}return{showMarker:y,showLine:C,showFill:E,showGradientLine:A,showGradientFill:o,anyLine:C||A,anyFill:E||o}}function i(d,x,w){return d&&s.isArrayOrTypedArray(d)?x:d>w?w:d}},66540:function(G,H,e){e(76052),G.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(G,H,e){var m=e(24040),P=e(7316),s=e(79811),L=e(9224),S=e(4016).eraseActiveShape,v=e(3400),p=v._,r=G.exports={};r.toImage={name:"toImage",title:function(d){var x=d._context.toImageButtonOptions||{},w=x.format||"png";return w==="png"?p(d,"Download plot as a png"):p(d,"Download plot")},icon:L.camera,click:function(d){var x=d._context.toImageButtonOptions,w={format:x.format||"png"};v.notifier(p(d,"Taking snapshot - this may take a few seconds"),"long"),w.format!=="svg"&&v.isIE()&&(v.notifier(p(d,"IE only supports svg. Changing format to svg."),"long"),w.format="svg"),["filename","width","height","scale"].forEach(function(C){C in x&&(w[C]=x[C])}),m.call("downloadImage",d,w).then(function(C){v.notifier(p(d,"Snapshot succeeded")+" - "+C,"long")}).catch(function(){v.notifier(p(d,"Sorry, there was a problem downloading your snapshot!"),"long")})}},r.sendDataToCloud={name:"sendDataToCloud",title:function(d){return p(d,"Edit in Chart Studio")},icon:L.disk,click:function(d){P.sendDataToCloud(d)}},r.editInChartStudio={name:"editInChartStudio",title:function(d){return p(d,"Edit in Chart Studio")},icon:L.pencil,click:function(d){P.sendDataToCloud(d)}},r.zoom2d={name:"zoom2d",_cat:"zoom",title:function(d){return p(d,"Zoom")},attr:"dragmode",val:"zoom",icon:L.zoombox,click:t},r.pan2d={name:"pan2d",_cat:"pan",title:function(d){return p(d,"Pan")},attr:"dragmode",val:"pan",icon:L.pan,click:t},r.select2d={name:"select2d",_cat:"select",title:function(d){return p(d,"Box Select")},attr:"dragmode",val:"select",icon:L.selectbox,click:t},r.lasso2d={name:"lasso2d",_cat:"lasso",title:function(d){return p(d,"Lasso Select")},attr:"dragmode",val:"lasso",icon:L.lasso,click:t},r.drawclosedpath={name:"drawclosedpath",title:function(d){return p(d,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:L.drawclosedpath,click:t},r.drawopenpath={name:"drawopenpath",title:function(d){return p(d,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:L.drawopenpath,click:t},r.drawline={name:"drawline",title:function(d){return p(d,"Draw line")},attr:"dragmode",val:"drawline",icon:L.drawline,click:t},r.drawrect={name:"drawrect",title:function(d){return p(d,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:L.drawrect,click:t},r.drawcircle={name:"drawcircle",title:function(d){return p(d,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:L.drawcircle,click:t},r.eraseshape={name:"eraseshape",title:function(d){return p(d,"Erase active shape")},icon:L.eraseshape,click:S},r.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(d){return p(d,"Zoom in")},attr:"zoom",val:"in",icon:L.zoom_plus,click:t},r.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(d){return p(d,"Zoom out")},attr:"zoom",val:"out",icon:L.zoom_minus,click:t},r.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(d){return p(d,"Autoscale")},attr:"zoom",val:"auto",icon:L.autoscale,click:t},r.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(d){return p(d,"Reset axes")},attr:"zoom",val:"reset",icon:L.home,click:t},r.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(d){return p(d,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:L.tooltip_basic,gravity:"ne",click:t},r.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(d){return p(d,"Compare data on hover")},attr:"hovermode",val:function(d){return d._fullLayout._isHoriz?"y":"x"},icon:L.tooltip_compare,gravity:"ne",click:t};function t(d,x){var w=x.currentTarget,C=w.getAttribute("data-attr"),y=w.getAttribute("data-val")||!0,E=d._fullLayout,A={},o=s.list(d,null,!0),M=E._cartesianSpikesEnabled,b,I;if(C==="zoom"){var D=y==="in"?.5:2,N=(1+D)/2,k=(1-D)/2,O;for(I=0;I1?(ne=["toggleHover"],le=["resetViews"]):A?(re=["zoomInGeo","zoomOutGeo"],ne=["hoverClosestGeo"],le=["resetGeo"]):E?(ne=["hoverClosest3d"],le=["resetCameraDefault3d","resetCameraLastSave3d"]):D?(re=["zoomInMapbox","zoomOutMapbox"],ne=["toggleHover"],le=["resetViewMapbox"]):b?ne=["hoverClosestGl2d"]:o?ne=["hoverClosestPie"]:O?(ne=["hoverClosestCartesian","hoverCompareCartesian"],le=["resetViewSankey"]):ne=["toggleHover"],y&&(ne=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(f(T)||z)&&(ne=[]),(y||b)&&!F&&(re=["zoomIn2d","zoomOut2d","autoScale2d"],le[0]!=="resetViews"&&(le=["resetScale2d"])),E?$=["zoom3d","pan3d","orbitRotation","tableRotation"]:(y||b)&&!F||I?$=["zoom2d","pan2d"]:D||A?$=["pan2d"]:N&&($=["zoom2d"]),n(T)&&$.push("select2d","lasso2d");var Z=[],ie=function(Y){Z.indexOf(Y)===-1&&ne.indexOf(Y)!==-1&&Z.push(Y)};if(Array.isArray(w)){for(var X=[],Q=0;Q0);if(i){var d=r(n,f,u);T("x",d[0]),T("y",d[1]),m.noneOrAll(a,n,["x","y"]),T("xanchor"),T("yanchor"),m.coerceFont(T,"font",f.font);var x=T("bgcolor");T("activecolor",P.contrast(x,v.lightAmount,v.darkAmount)),T("bordercolor"),T("borderwidth")}};function p(t,a,n,f){var u=f.calendar;function l(T,c){return m.coerce(t,a,S.buttons,T,c)}var g=l("visible");if(g){var h=l("step");h!=="all"&&(u&&u!=="gregorian"&&(h==="month"||h==="year")?a.stepmode="backward":l("stepmode"),l("count")),l("label")}}function r(t,a,n){for(var f=n.filter(function(h){return a[h].anchor===t._id}),u=0,l=0;l=Fe.max)_e=te[De+1];else if(xe=Fe.pmax)_e=te[De+1];else if(xe0?E.touches[0].clientX:0}function g(E,A,o,M){if(A._context.staticPlot)return;var b=E.select("rect."+u.slideBoxClassName).node(),I=E.select("rect."+u.grabAreaMinClassName).node(),D=E.select("rect."+u.grabAreaMaxClassName).node();function N(){var k=m.event,O=k.target,F=l(k),z=F-E.node().getBoundingClientRect().left,B=M.d2p(o._rl[0]),W=M.d2p(o._rl[1]),J=n.coverSlip();this.addEventListener("touchmove",re),this.addEventListener("touchend",ne),J.addEventListener("mousemove",re),J.addEventListener("mouseup",ne);function re(le){var $=l(le),Z=+$-F,ie,X,Q;switch(O){case b:if(Q="ew-resize",B+Z>o._length||W+Z<0)return;ie=B+Z,X=W+Z;break;case I:if(Q="col-resize",B+Z>o._length)return;ie=B+Z,X=W;break;case D:if(Q="col-resize",W+Z<0)return;ie=B,X=W+Z;break;default:Q="ew-resize",ie=z,X=z+Z;break}if(X=0;N--){var k=w.append("path").attr(y).style("opacity",N?.1:E).call(L.stroke,o).call(L.fill,A).call(S.dashLine,N?"solid":b,N?4+M:M);if(f(k,h,i),I){var O=v(h.layout,"selections",i);k.style({cursor:"move"});var F={element:k.node(),plotinfo:d,gd:h,editHelpers:O,isActiveSelection:!0},z=m(C,h);P(z,k,F)}else k.style("pointer-events",N?"all":"none");D[N]=k}var B=D[0],W=D[1];W.node().addEventListener("click",function(){return u(h,B)})}}function f(h,T,c){var i=c.xref+c.yref;S.setClipUrl(h,"clip"+T._fullLayout._uid+i,T)}function u(h,T){if(a(h)){var c=T.node(),i=+c.getAttribute("data-index");if(i>=0){if(i===h._fullLayout._activeSelectionIndex){g(h);return}h._fullLayout._activeSelectionIndex=i,h._fullLayout._deactivateSelection=g,t(h)}}}function l(h){if(a(h)){var T=h._fullLayout.selections.length-1;h._fullLayout._activeSelectionIndex=T,h._fullLayout._deactivateSelection=g,t(h)}}function g(h){if(a(h)){var T=h._fullLayout._activeSelectionIndex;T>=0&&(s(h),delete h._fullLayout._activeSelectionIndex,t(h))}}},34200:function(G,H,e){var m=e(98192).u,P=e(92880).extendFlat;G.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:P({},m,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(G){G.exports=function(e,m,P){P("newselection.mode");var s=P("newselection.line.width");s&&(P("newselection.line.color"),P("newselection.line.dash")),P("activeselection.fillcolor"),P("activeselection.opacity")}},5968:function(G,H,e){var m=e(72760),P=m.selectMode,s=e(1936),L=s.clearOutline,S=e(9856),v=S.readPaths,p=S.writePaths,r=S.fixDatesForPaths;G.exports=function(a,n){if(a.length){var f=a[0][0];if(f){var u=f.getAttribute("d"),l=n.gd,g=l._fullLayout.newselection,h=n.plotinfo,T=h.xaxis,c=h.yaxis,i=n.isActiveSelection,d=n.dragmode,x=(l.layout||{}).selections||[];if(!P(d)&&i!==void 0){var w=l._fullLayout._activeSelectionIndex;if(w=0){Rt._fullLayout._deactivateShape(Rt);return}if(!st){var Tn=Xt.clickmode;o.done(Hr).then(function(){if(o.clear(Hr),tn===2){for(tr.remove(),$t=0;$t-1&&ne(Sn,Rt,je.xaxes,je.yaxes,je.subplot,je,tr),Tn==="event"&&He(Rt,void 0);v.click(Rt,Sn,Qt.id)}).catch(y.error)}},je.doneFn=function(){xr.remove(),o.done(Hr).then(function(){o.clear(Hr),!gr&&Dt&&je.selectionDefs&&(Dt.subtract=dr,je.selectionDefs.push(Dt),je.mergedPolygons.length=0,[].push.apply(je.mergedPolygons,zt)),(gr||st)&&Y(je,gr),je.doneFnCompleted&&je.doneFnCompleted(Pr),lt&&He(Rt,cr)}).catch(y.error)}}function ne(Ge,Le,Pe,je,Ce,he,me){var Ne=Le._hoverdata,Ze=Le._fullLayout,st=Ze.clickmode,lt=st.indexOf("event")>-1,Wt=[],Zt,Tt,Rt,Xt,gr,gt,Kt,Qt,yr,Ot;if(fe(Ne)){X(Ge,Le,he),Zt=se(Le,Pe,je,Ce);var ut=ge(Ne,Zt),at=ut.pointNumbers.length>0;if(at?xe(Zt,ut):_e(Zt)&&(Kt=be(ut))){for(me&&me.remove(),Ot=0;Ot=0}function oe(Ge){return Ge._fullLayout._activeSelectionIndex>=0}function Y(Ge,Le){var Pe=Ge.dragmode,je=Ge.plotinfo,Ce=Ge.gd;Q(Ce)&&Ce._fullLayout._deactivateShape(Ce),oe(Ce)&&Ce._fullLayout._deactivateSelection(Ce);var he=Ce._fullLayout,me=he._zoomlayer,Ne=n(Pe),Ze=u(Pe);if(Ne||Ze){var st=me.selectAll(".select-outline-"+je.id);if(st&&Ce._fullLayout._outlining){var lt;Ne&&(lt=x(st,Ge)),lt&&s.call("_guiRelayout",Ce,{shapes:lt});var Wt;Ze&&!J(Ge)&&(Wt=w(st,Ge)),Wt&&(Ce._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Ce,{selections:Wt}).then(function(){Le&&C(Ce)})),Ce._fullLayout._outlining=!1}}je.selection={},je.selection.selectionDefs=Ge.selectionDefs=[],je.selection.mergedPolygons=Ge.mergedPolygons=[]}function j(Ge){return Ge._id}function se(Ge,Le,Pe,je){if(!Ge.calcdata)return[];var Ce=[],he=Le.map(j),me=Pe.map(j),Ne,Ze,st;for(st=0;st0,he=Ce?je[0]:Pe;return Le.selectedpoints?Le.selectedpoints.indexOf(he)>-1:!1}function xe(Ge,Le){var Pe=[],je,Ce,he,me;for(me=0;me0&&Pe.push(je);if(Pe.length===1&&(he=Pe[0]===Le.searchInfo,he&&(Ce=Le.searchInfo.cd[0].trace,Ce.selectedpoints.length===Le.pointNumbers.length))){for(me=0;me1||(Le+=je.selectedpoints.length,Le>1)))return!1;return Le===1}function De(Ge,Le,Pe){var je;for(je=0;je-1&&Le;if(!me&&Le){var tn=$e(Ge,!0);if(tn.length){var Sn=tn[0].xref,Tn=tn[0].yref;if(Sn&&Tn){var Tr=pt(tn),zr=Ct([M(Ge,Sn,"x"),M(Ge,Tn,"y")]);zr(Pr,Tr)}}Ge._fullLayout._noEmitSelectedAtStart?Ge._fullLayout._noEmitSelectedAtStart=!1:an&&He(Ge,Pr),Zt._reselect=!1}if(!me&&Zt._deselect){var Yr=Zt._deselect;Ne=Yr.xref,Ze=Yr.yref,et(Ne,Ze,lt)||ot(Ge,Ne,Ze,je),an&&(Pr.points.length?He(Ge,Pr):We(Ge)),Zt._deselect=!1}return{eventData:Pr,selectionTesters:Pe}}function Ve(Ge){var Le=Ge.calcdata;if(Le)for(var Pe=0;Pe0?c+g:g;return{ppad:g,ppadplus:h?d:x,ppadminus:h?x:d}}else return{ppad:g}}function r(t,a,n,f,u){var l=t.type==="category"||t.type==="multicategory"?t.r2c:t.d2c;if(a!==void 0)return[l(a),l(n)];if(f){var g=1/0,h=-1/0,T=f.match(s.segmentRE),c,i,d,x,w;for(t.type==="date"&&(l=L.decodeDate(l)),c=0;ch&&(h=w)));if(h>=g)return[g,h]}}},85448:function(G){G.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},43712:function(G,H,e){var m=e(3400),P=e(54460),s=e(51272),L=e(46056),S=e(65152);G.exports=function(t,a){s(t,a,{name:"shapes",handleItemDefaults:p})};function v(r,t){return r?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function p(r,t,a){function n($,Z){return m.coerce(r,t,L,$,Z)}t._isShape=!0;var f=n("visible");if(f){var u=n("showlegend");u&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),m.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var l=n("path"),g=l?"path":"rect",h=n("type",g),T=h!=="path";T&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));for(var i=n("xsizemode"),d=n("ysizemode"),x=["x","y"],w=0;w<2;w++){var C=x[w],y=C+"anchor",E=C==="x"?i:d,A={_fullLayout:a},o,M,b,I=P.coerceRef(r,t,A,C,void 0,"paper"),D=P.getRefType(I);if(D==="range"?(o=P.getFromId(A,I),o._shapeIndices.push(t._index),b=S.rangeToShapePosition(o),M=S.shapePositionToRange(o)):M=b=m.identity,T){var N=.25,k=.75,O=C+"0",F=C+"1",z=r[O],B=r[F];r[O]=M(r[O],!0),r[F]=M(r[F],!0),E==="pixel"?(n(O,0),n(F,10)):(P.coercePosition(t,A,n,I,O,N),P.coercePosition(t,A,n,I,F,k)),t[O]=b(t[O]),t[F]=b(t[F]),r[O]=z,r[F]=B}if(E==="pixel"){var W=r[y];r[y]=M(r[y],!0),P.coercePosition(t,A,n,I,y,.25),t[y]=b(t[y]),r[y]=W}}T&&m.noneOrAll(r,t,["x0","x1","y0","y1"]);var J=h==="line",re,ne;if(T&&(re=n("label.texttemplate")),re||(ne=n("label.text")),ne||re){n("label.textangle");var le=n("label.textposition",J?"middle":"middle center");n("label.xanchor"),n("label.yanchor",v(J,le)),n("label.padding"),m.coerceFont(n,"label.font",a.font)}}}},60728:function(G,H,e){var m=e(3400),P=e(54460),s=e(72736),L=e(43616),S=e(9856).readPaths,v=e(65152),p=v.getPathString,r=e(97728),t=e(84284).FROM_TL;G.exports=function(u,l,g,h){if(h.selectAll(".shape-label").remove(),!!(g.label.text||g.label.texttemplate)){var T;if(g.label.texttemplate){var c={};if(g.type!=="path"){var i=P.getFromId(u,g.xref),d=P.getFromId(u,g.yref);for(var x in r){var w=r[x](g,i,d);w!==void 0&&(c[x]=w)}}T=m.texttemplateStringForShapes(g.label.texttemplate,{},u._fullLayout._d3locale,c)}else T=g.label.text;var C={"data-index":l},y=g.label.font,E={"data-notex":1},A=h.append("g").attr(C).classed("shape-label",!0),o=A.append("text").attr(E).classed("shape-label-text",!0).text(T),M,b,I,D;if(g.path){var N=p(u,g),k=S(N,u);M=1/0,I=1/0,b=-1/0,D=-1/0;for(var O=0;O=f?h=u-g:h=g-u,-180/Math.PI*Math.atan2(h,T)}function n(f,u,l,g,h,T,c){var i=h.label.textposition,d=h.label.textangle,x=h.label.padding,w=h.type,C=Math.PI/180*T,y=Math.sin(C),E=Math.cos(C),A=h.label.xanchor,o=h.label.yanchor,M,b,I,D;if(w==="line"){i==="start"?(M=f,b=u):i==="end"?(M=l,b=g):(M=(f+l)/2,b=(u+g)/2),A==="auto"&&(i==="start"?d==="auto"?l>f?A="left":lf?A="right":lf?A="right":lf?A="left":l1&&!(Te.length===2&&Te[1][0]==="Z")&&($===0&&(Te[0][0]="M"),M[le]=Te,k(),O())}}function te(Te,Re){if(Te===2){le=+Re.srcElement.getAttribute("data-i"),$=+Re.srcElement.getAttribute("data-j");var Se=M[le];!T(Se)&&!c(Se)&&se()}}function fe(Te){re=[];for(var Re=0;Rek&&Pe>O&&!We.shiftKey?f.getCursor(je/Le,1-Ce/Pe):"move";u(M,he),et=he.split("-")[0]}}function ht(We){c(o)||(F&&(Z=Te(b.xanchor)),z&&(ie=Re(b.yanchor)),b.type==="path"?ge=b.path:(re=F?b.x0:Te(b.x0),ne=z?b.y0:Re(b.y0),le=F?b.x1:Te(b.x1),$=z?b.y1:Re(b.y1)),re$?(X=ne,j="y0",Q=$,se="y1"):(X=$,j="y1",Q=ne,se="y0"),$e(We),rt(D,b),He(M,b,o),Ve.moveFn=et==="move"?wt:Ct,Ve.altKey=We.altKey)}function vt(){c(o)||(u(M),ze(D),x(M,o,b),P.call("_guiRelayout",o,N.getUpdateObj()))}function pt(){c(o)||ze(D)}function wt(We,Ge){if(b.type==="path"){var Le=function(Ce){return Ce},Pe=Le,je=Le;F?J("xanchor",b.xanchor=Se(Z+We)):(Pe=function(he){return Se(Te(he)+We)},xe&&xe.type==="date"&&(Pe=g.encodeDate(Pe))),z?J("yanchor",b.yanchor=Ie(ie+Ge)):(je=function(he){return Ie(Re(he)+Ge)},De&&De.type==="date"&&(je=g.encodeDate(je))),J("path",b.path=C(ge,Pe,je))}else F?J("xanchor",b.xanchor=Se(Z+We)):(J("x0",b.x0=Se(re+We)),J("x1",b.x1=Se(le+We))),z?J("yanchor",b.yanchor=Ie(ie+Ge)):(J("y0",b.y0=Ie(ne+Ge)),J("y1",b.y1=Ie($+Ge)));M.attr("d",h(o,b)),rt(D,b),p(o,I,b,be)}function Ct(We,Ge){if(W){var Le=function(gt){return gt},Pe=Le,je=Le;F?J("xanchor",b.xanchor=Se(Z+We)):(Pe=function(Kt){return Se(Te(Kt)+We)},xe&&xe.type==="date"&&(Pe=g.encodeDate(Pe))),z?J("yanchor",b.yanchor=Ie(ie+Ge)):(je=function(Kt){return Ie(Re(Kt)+Ge)},De&&De.type==="date"&&(je=g.encodeDate(je))),J("path",b.path=C(ge,Pe,je))}else if(B){if(et==="resize-over-start-point"){var Ce=re+We,he=z?ne-Ge:ne+Ge;J("x0",b.x0=F?Ce:Se(Ce)),J("y0",b.y0=z?he:Ie(he))}else if(et==="resize-over-end-point"){var me=le+We,Ne=z?$-Ge:$+Ge;J("x1",b.x1=F?me:Se(me)),J("y1",b.y1=z?Ne:Ie(Ne))}}else{var Ze=function(gt){return et.indexOf(gt)!==-1},st=Ze("n"),lt=Ze("s"),Wt=Ze("w"),Zt=Ze("e"),Tt=st?X+Ge:X,Rt=lt?Q+Ge:Q,Xt=Wt?oe+We:oe,gr=Zt?Y+We:Y;z&&(st&&(Tt=X-Ge),lt&&(Rt=Q-Ge)),(!z&&Rt-Tt>O||z&&Tt-Rt>O)&&(J(j,b[j]=z?Tt:Ie(Tt)),J(se,b[se]=z?Rt:Ie(Rt))),gr-Xt>k&&(J(te,b[te]=F?Xt:Se(Xt)),J(fe,b[fe]=F?gr:Se(gr)))}M.attr("d",h(o,b)),rt(D,b),p(o,I,b,be)}function rt(We,Ge){(F||z)&&Le();function Le(){var Pe=Ge.type!=="path",je=We.selectAll(".visual-cue").data([0]),Ce=1;je.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ce}).classed("visual-cue",!0);var he=Te(F?Ge.xanchor:s.midRange(Pe?[Ge.x0,Ge.x1]:g.extractPathCoords(Ge.path,l.paramIsX))),me=Re(z?Ge.yanchor:s.midRange(Pe?[Ge.y0,Ge.y1]:g.extractPathCoords(Ge.path,l.paramIsY)));if(he=g.roundPositionForSharpStrokeRendering(he,Ce),me=g.roundPositionForSharpStrokeRendering(me,Ce),F&&z){var Ne="M"+(he-1-Ce)+","+(me-1-Ce)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";je.attr("d",Ne)}else if(F){var Ze="M"+(he-1-Ce)+","+(me-9-Ce)+"v18 h2 v-18 Z";je.attr("d",Ze)}else{var st="M"+(he-9-Ce)+","+(me-1-Ce)+"h18 v2 h-18 Z";je.attr("d",st)}}}function ze(We){We.selectAll(".visual-cue").remove()}function He(We,Ge,Le){var Pe=Ge.xref,je=Ge.yref,Ce=L.getFromId(Le,Pe),he=L.getFromId(Le,je),me="";Pe!=="paper"&&!Ce.autorange&&(me+=Pe),je!=="paper"&&!he.autorange&&(me+=je),a.setClipUrl(We,me?"clip"+Le._fullLayout._uid+me:null,Le)}}function C(o,M,b){return o.replace(l.segmentRE,function(I){var D=0,N=I.charAt(0),k=l.paramIsX[N],O=l.paramIsY[N],F=l.numParams[N],z=I.substr(1).replace(l.paramRE,function(B){return D>=F||(k[D]?B=M(B):O[D]&&(B=b(B)),D++),B});return N+z})}function y(o,M){if(i(o)){var b=M.node(),I=+b.getAttribute("data-index");if(I>=0){if(I===o._fullLayout._activeShapeIndex){E(o);return}o._fullLayout._activeShapeIndex=I,o._fullLayout._deactivateShape=E,T(o)}}}function E(o){if(i(o)){var M=o._fullLayout._activeShapeIndex;M>=0&&(r(o),delete o._fullLayout._activeShapeIndex,T(o))}}function A(o){if(i(o)){r(o);var M=o._fullLayout._activeShapeIndex,b=(o.layout||{}).shapes||[];if(M0&&dc&&(d="X"),d});return l>c&&(i=i.replace(/[\s,]*X.*/,""),P.log("Ignoring extra params in segment "+u)),g+i})}},41592:function(G,H,e){var m=e(4016);G.exports={moduleType:"component",name:"shapes",layoutAttributes:e(46056),supplyLayoutDefaults:e(43712),supplyDrawNewShapeDefaults:e(65144),includeBasePlot:e(36632)("shapes"),calcAutorange:e(96084),draw:m.draw,drawOne:m.drawOne}},97728:function(G){function H(u,l){return l?l.d2l(u):u}function e(u,l){return l?l.l2d(u):u}function m(u){return u.x0}function P(u){return u.x1}function s(u){return u.y0}function L(u){return u.y1}function S(u,l){return H(u.x1,l)-H(u.x0,l)}function v(u,l,g){return H(u.y1,g)-H(u.y0,g)}function p(u,l){return Math.abs(S(u,l))}function r(u,l,g){return Math.abs(v(u,l,g))}function t(u,l,g){return u.type!=="line"?void 0:Math.sqrt(Math.pow(S(u,l),2)+Math.pow(v(u,l,g),2))}function a(u,l){return e((H(u.x1,l)+H(u.x0,l))/2,l)}function n(u,l,g){return e((H(u.y1,g)+H(u.y0,g))/2,g)}function f(u,l,g){return u.type!=="line"?void 0:v(u,l,g)/S(u,l)}G.exports={x0:m,x1:P,y0:s,y1:L,slope:f,dx:S,dy:v,width:p,height:r,length:t,xcenter:a,ycenter:n}},89861:function(G,H,e){var m=e(25376),P=e(66741),s=e(92880).extendDeepAll,L=e(67824).overrideAll,S=e(85656),v=e(31780).templatedArray,p=e(60876),r=v("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});G.exports=L(v("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:r,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(P({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:S.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:m({})},font:m({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},60876:function(G){G.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(G,H,e){var m=e(3400),P=e(51272),s=e(89861),L=e(60876),S=L.name,v=s.steps;G.exports=function(a,n){P(a,n,{name:S,handleItemDefaults:p})};function p(t,a,n){function f(d,x){return m.coerce(t,a,s,d,x)}for(var u=P(t,a,{name:"steps",handleItemDefaults:r}),l=0,g=0;g0?[0]:[]);W.enter().append("g").classed(t.containerClassName,!0).style("cursor",F?null:"ew-resize");function J($){$._commandObserver&&($._commandObserver.remove(),delete $._commandObserver),P.autoMargin(O,l($))}if(W.exit().each(function(){m.select(this).selectAll("g."+t.groupClassName).each(J)}).remove(),B.length!==0){var re=W.selectAll("g."+t.groupClassName).data(B,h);re.enter().append("g").classed(t.groupClassName,!0),re.exit().each(J).remove();for(var ne=0;ne0&&(re=re.transition().duration(O.transition.duration).ease(O.transition.easing)),re.attr("transform",v(J-t.gripWidth*.5,O._dims.currentValueTotalHeight))}}function b(k,O){var F=k._dims;return F.inputAreaStart+t.stepInset+(F.inputAreaLength-2*t.stepInset)*Math.min(1,Math.max(0,O))}function I(k,O){var F=k._dims;return Math.min(1,Math.max(0,(O-t.stepInset-F.inputAreaStart)/(F.inputAreaLength-2*t.stepInset-2*F.inputAreaStart)))}function D(k,O,F){var z=F._dims,B=S.ensureSingle(k,"rect",t.railTouchRectClass,function(W){W.call(E,O,k,F).style("pointer-events","all")});B.attr({width:z.inputAreaLength,height:Math.max(z.inputAreaWidth,t.tickOffset+F.ticklen+z.labelHeight)}).call(s.fill,F.bgcolor).attr("opacity",0),L.setTranslate(B,0,z.currentValueTotalHeight)}function N(k,O){var F=O._dims,z=F.inputAreaLength-t.railInset*2,B=S.ensureSingle(k,"rect",t.railRectClass);B.attr({width:z,height:t.railWidth,rx:t.railRadius,ry:t.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,O.bordercolor).call(s.fill,O.bgcolor).style("stroke-width",O.borderwidth+"px"),L.setTranslate(B,t.railInset,(F.inputAreaWidth-t.railWidth)*.5+F.currentValueTotalHeight)}},97544:function(G,H,e){var m=e(60876);G.exports={moduleType:"component",name:m.name,layoutAttributes:e(89861),supplyLayoutDefaults:e(8132),draw:e(79664)}},81668:function(G,H,e){var m=e(33428),P=e(38248),s=e(7316),L=e(24040),S=e(3400),v=S.strTranslate,p=e(43616),r=e(76308),t=e(72736),a=e(13448),n=e(84284).OPPOSITE_SIDE,f=/ [XY][0-9]* /;function u(l,g,h){var T=h.propContainer,c=h.propName,i=h.placeholder,d=h.traceIndex,x=h.avoid||{},w=h.attributes,C=h.transform,y=h.containerGroup,E=l._fullLayout,A=1,o=!1,M=T.title,b=(M&&M.text?M.text:"").trim(),I=M&&M.font?M.font:{},D=I.family,N=I.size,k=I.color,O=I.weight,F=I.style,z=I.variant,B=I.textcase,W=I.lineposition,J=I.shadow,re;c==="title.text"?re="titleText":c.indexOf("axis")!==-1?re="axisTitleText":c.indexOf("colorbar"!==-1)&&(re="colorbarTitleText");var ne=l._context.edits[re];b===""?A=0:b.replace(f," % ")===i.replace(f," % ")&&(A=.2,o=!0,ne||(b="")),h._meta?b=S.templateString(b,h._meta):E._meta&&(b=S.templateString(b,E._meta));var le=b||ne,$;y||(y=S.ensureSingle(E._infolayer,"g","g-"+g),$=E._hColorbarMoveTitle);var Z=y.selectAll("text").data(le?[0]:[]);if(Z.enter().append("text"),Z.text(b).attr("class",g),Z.exit().remove(),!le)return y;function ie(Y){S.syncOrAsync([X,Q],Y)}function X(Y){var j;return!C&&$&&(C={}),C?(j="",C.rotate&&(j+="rotate("+[C.rotate,w.x,w.y]+")"),(C.offset||$)&&(j+=v(0,(C.offset||0)-($||0)))):j=null,Y.attr("transform",j),Y.style("opacity",A*r.opacity(k)).call(p.font,{color:r.rgb(k),size:m.round(N,2),family:D,weight:O,style:F,variant:z,textcase:B,shadow:J,lineposition:W}).attr(w).call(t.convertToTspans,l),s.previousPromises(l)}function Q(Y){var j=m.select(Y.node().parentNode);if(x&&x.selection&&x.side&&b){j.attr("transform",null);var se=n[x.side],te=x.side==="left"||x.side==="top"?-1:1,fe=P(x.pad)?x.pad:2,ge=p.bBox(j.node()),be={t:0,b:0,l:0,r:0},xe=l._fullLayout._reservedMargin;for(var _e in xe)for(var De in xe[_e]){var Fe=xe[_e][De];be[De]=Math.max(be[De],Fe)}var Te={left:be.l,top:be.t,right:E.width-be.r,bottom:E.height-be.b},Re=x.maxShift||te*(Te[x.side]-ge[x.side]),Se=0;if(Re<0)Se=Re;else{var Ie=x.offsetLeft||0,Me=x.offsetTop||0;ge.left-=Ie,ge.right-=Ie,ge.top-=Me,ge.bottom-=Me,x.selection.each(function(){var et=p.bBox(this);S.bBoxIntersect(ge,et,fe)&&(Se=Math.max(Se,te*(et[x.side]-ge[se])+fe))}),Se=Math.min(Re,Se),T._titleScoot=Math.abs(Se)}if(Se>0||Re<0){var Ve={left:[-Se,0],right:[Se,0],top:[0,-Se],bottom:[0,Se]}[x.side];j.attr("transform",v(Ve[0],Ve[1]))}}}Z.call(ie);function oe(){A=0,o=!0,Z.text(i).on("mouseover.opacity",function(){m.select(this).transition().duration(a.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){m.select(this).transition().duration(a.HIDE_PLACEHOLDER).style("opacity",0)})}return ne&&(b?Z.on(".opacity",null):oe(),Z.call(t.makeEditable,{gd:l}).on("edit",function(Y){d!==void 0?L.call("_guiRestyle",l,c,Y,d):L.call("_guiRelayout",l,c,Y)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ie)}).on("input",function(Y){this.text(Y||" ").call(t.positionText,w.x,w.y)})),Z.classed("js-placeholder",o),y}G.exports={draw:u}},88444:function(G,H,e){var m=e(25376),P=e(22548),s=e(92880).extendFlat,L=e(67824).overrideAll,S=e(66741),v=e(31780).templatedArray,p=v("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});G.exports=L(v("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(S({editType:"arraydraw"}),{}),font:m({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:P.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(G){G.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(G,H,e){var m=e(3400),P=e(51272),s=e(88444),L=e(73712),S=L.name,v=s.buttons;G.exports=function(a,n){var f={name:S,handleItemDefaults:p};P(a,n,f)};function p(t,a,n){function f(g,h){return m.coerce(t,a,s,g,h)}var u=P(t,a,{name:"buttons",handleItemDefaults:r}),l=f("visible",u.length>0);l&&(f("active"),f("direction"),f("type"),f("showactive"),f("x"),f("y"),m.noneOrAll(t,a,["x","y"]),f("xanchor"),f("yanchor"),f("pad.t"),f("pad.r"),f("pad.b"),f("pad.l"),m.coerceFont(f,"font",n.font),f("bgcolor",n.paper_bgcolor),f("bordercolor"),f("borderwidth"))}function r(t,a){function n(u,l){return m.coerce(t,a,v,u,l)}var f=n("visible",t.method==="skip"||Array.isArray(t.args));f&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}},14420:function(G,H,e){var m=e(33428),P=e(7316),s=e(76308),L=e(43616),S=e(3400),v=e(72736),p=e(31780).arrayEditor,r=e(84284).LINE_SPACING,t=e(73712),a=e(37400);G.exports=function(I){var D=I._fullLayout,N=S.filterVisible(D[t.name]);function k(ne){P.autoMargin(I,A(ne))}var O=D._menulayer.selectAll("g."+t.containerClassName).data(N.length>0?[0]:[]);if(O.enter().append("g").classed(t.containerClassName,!0).style("cursor","pointer"),O.exit().each(function(){m.select(this).selectAll("g."+t.headerGroupClassName).each(k)}).remove(),N.length!==0){var F=O.selectAll("g."+t.headerGroupClassName).data(N,n);F.enter().append("g").classed(t.headerGroupClassName,!0);for(var z=S.ensureSingle(O,"g",t.dropdownButtonGroupClassName,function(ne){ne.style("pointer-events","all")}),B=0;Bw,I=S.barLength+2*S.barPad,D=S.barWidth+2*S.barPad,N=u,k=g+h;k+D>f&&(k=f-D);var O=this.container.selectAll("rect.scrollbar-horizontal").data(b?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(P.fill,S.barColor),b?(this.hbar=O.attr({rx:S.barRadius,ry:S.barRadius,x:N,y:k,width:I,height:D}),this._hbarXMin=N+I/2,this._hbarTranslateMax=w-I):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var F=h>C,z=S.barWidth+2*S.barPad,B=S.barLength+2*S.barPad,W=u+l,J=g;W+z>n&&(W=n-z);var re=this.container.selectAll("rect.scrollbar-vertical").data(F?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(P.fill,S.barColor),F?(this.vbar=re.attr({rx:S.barRadius,ry:S.barRadius,x:W,y:J,width:z,height:B}),this._vbarYMin=J+B/2,this._vbarTranslateMax=C-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ne=this.id,le=y-.5,$=F?E+z+.5:E+.5,Z=A-.5,ie=b?o+D+.5:o+.5,X=a._topdefs.selectAll("#"+ne).data(b||F?[0]:[]);if(X.exit().remove(),X.enter().append("clipPath").attr("id",ne).append("rect"),b||F?(this._clipRect=X.select("rect").attr({x:Math.floor(le),y:Math.floor(Z),width:Math.ceil($)-Math.floor(le),height:Math.ceil(ie)-Math.floor(Z)}),this.container.call(s.setClipUrl,ne,this.gd),this.bg.attr({x:u,y:g,width:l,height:h})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),b||F){var Q=m.behavior.drag().on("dragstart",function(){m.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Q);var oe=m.behavior.drag().on("dragstart",function(){m.event.sourceEvent.preventDefault(),m.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));b&&this.hbar.on(".drag",null).call(oe),F&&this.vbar.on(".drag",null).call(oe)}this.setTranslate(r,t)},S.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},S.prototype._onBoxDrag=function(){var p=this.translateX,r=this.translateY;this.hbar&&(p-=m.event.dx),this.vbar&&(r-=m.event.dy),this.setTranslate(p,r)},S.prototype._onBoxWheel=function(){var p=this.translateX,r=this.translateY;this.hbar&&(p+=m.event.deltaY),this.vbar&&(r+=m.event.deltaY),this.setTranslate(p,r)},S.prototype._onBarDrag=function(){var p=this.translateX,r=this.translateY;if(this.hbar){var t=p+this._hbarXMin,a=t+this._hbarTranslateMax,n=L.constrain(m.event.x,t,a),f=(n-t)/(a-t),u=this.position.w-this._box.w;p=f*u}if(this.vbar){var l=r+this._vbarYMin,g=l+this._vbarTranslateMax,h=L.constrain(m.event.y,l,g),T=(h-l)/(g-l),c=this.position.h-this._box.h;r=T*c}this.setTranslate(p,r)},S.prototype.setTranslate=function(p,r){var t=this.position.w-this._box.w,a=this.position.h-this._box.h;if(p=L.constrain(p||0,0,t),r=L.constrain(r||0,0,a),this.translateX=p,this.translateY=r,this.container.call(s.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var n=p/t;this.hbar.call(s.setTranslate,p+n*this._hbarTranslateMax,r)}if(this.vbar){var f=r/a;this.vbar.call(s.setTranslate,p,r+f*this._vbarTranslateMax)}}},84284:function(G){G.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(G){G.exports={axisRefDescription:function(H,e,m){return["If set to a",H,"axis id (e.g. *"+H+"* or","*"+H+"2*), the `"+H+"` position refers to a",H,"coordinate. If set to *paper*, the `"+H+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+m+"). If set to a",H,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+H+"2 domain* refers to the domain of the second",H," axis and a",H,"position of 0.5 refers to the","point between the",e,"and the",m,"of the domain of the","second",H,"axis."].join(" ")}}},48164:function(G){G.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(G){G.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(G){G.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(G){G.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(G){G.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(G){G.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(G){G.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(G,H){H.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],H.STYLE=H.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},9616:function(G,H){H.xmlns="http://www.w3.org/2000/xmlns/",H.svg="http://www.w3.org/2000/svg",H.xlink="http://www.w3.org/1999/xlink",H.svgAttrs={xmlns:H.svg,"xmlns:xlink":H.xlink}},64884:function(G,H,e){H.version=e(25788).version,e(88324),e(79288);for(var m=e(24040),P=H.register=m.register,s=e(22448),L=Object.keys(s),S=0;S",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(G,H){H.isLeftAnchor=function(m){return m.xanchor==="left"||m.xanchor==="auto"&&m.x<=.3333333333333333},H.isCenterAnchor=function(m){return m.xanchor==="center"||m.xanchor==="auto"&&m.x>.3333333333333333&&m.x<.6666666666666666},H.isRightAnchor=function(m){return m.xanchor==="right"||m.xanchor==="auto"&&m.x>=.6666666666666666},H.isTopAnchor=function(m){return m.yanchor==="top"||m.yanchor==="auto"&&m.y>=.6666666666666666},H.isMiddleAnchor=function(m){return m.yanchor==="middle"||m.yanchor==="auto"&&m.y>.3333333333333333&&m.y<.6666666666666666},H.isBottomAnchor=function(m){return m.yanchor==="bottom"||m.yanchor==="auto"&&m.y<=.3333333333333333}},11864:function(G,H,e){var m=e(20435),P=m.mod,s=m.modHalf,L=Math.PI,S=2*L;function v(T){return T/180*L}function p(T){return T/L*180}function r(T){return Math.abs(T[1]-T[0])>S-1e-14}function t(T,c){return s(c-T,S)}function a(T,c){return Math.abs(t(T,c))}function n(T,c){if(r(c))return!0;var i,d;c[0]d&&(d+=S);var x=P(T,S),w=x+S;return x>=i&&x<=d||w>=i&&w<=d}function f(T,c,i,d){if(!n(c,d))return!1;var x,w;return i[0]=x&&T<=w}function u(T,c,i,d,x,w,C){x=x||0,w=w||0;var y=r([i,d]),E,A,o,M,b;y?(E=0,A=L,o=S):i"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};t.uint8c=t.u1c,t.uint8=t.u1,t.int8=t.i1,t.uint16=t.u2,t.int16=t.i2,t.uint32=t.u4,t.int32=t.i4,t.float32=t.f4,t.float64=t.f8;function a(u){return u.constructor===ArrayBuffer}H.isArrayBuffer=a,H.decodeTypedArraySpec=function(u){var l=[],g=n(u),h=g.dtype,T=t[h];if(!T)throw new Error('Error in dtype: "'+h+'"');var c=T.BYTES_PER_ELEMENT,i=g.bdata;a(i)||(i=m(i));var d=g.shape===void 0?[i.byteLength/c]:(""+g.shape).split(",");d.reverse();var x=d.length,w,C,y=+d[0],E=c*y,A=0;if(x===1)l=new T(i);else if(x===2)for(w=+d[1],C=0;Cc.max?h.set(T):h.set(+g)}},integer:{coerceFunction:function(g,h,T,c){if((c.extras||[]).indexOf(g)!==-1){h.set(g);return}f(g)&&(g=u(g)),g%1||!m(g)||c.min!==void 0&&gc.max?h.set(T):h.set(+g)}},string:{coerceFunction:function(g,h,T,c){if(typeof g!="string"){var i=typeof g=="number";c.strict===!0||!i?h.set(T):h.set(String(g))}else c.noBlank&&!g?h.set(T):h.set(g)}},color:{coerceFunction:function(g,h,T){f(g)&&(g=u(g)),P(g).isValid()?h.set(g):h.set(T)}},colorlist:{coerceFunction:function(g,h,T){function c(i){return P(i).isValid()}!Array.isArray(g)||!g.length?h.set(T):g.every(c)?h.set(g):h.set(T)}},colorscale:{coerceFunction:function(g,h,T){h.set(S.get(g,T))}},angle:{coerceFunction:function(g,h,T){f(g)&&(g=u(g)),g==="auto"?h.set("auto"):m(g)?h.set(a(+g,360)):h.set(T)}},subplotid:{coerceFunction:function(g,h,T,c){var i=c.regex||t(T);if(typeof g=="string"&&i.test(g)){h.set(g);return}h.set(T)},validateFunction:function(g,h){var T=h.dflt;return g===T?!0:typeof g!="string"?!1:!!t(T).test(g)}},flaglist:{coerceFunction:function(g,h,T,c){if((c.extras||[]).indexOf(g)!==-1){h.set(g);return}if(typeof g!="string"){h.set(T);return}for(var i=g.split("+"),d=0;d=i&&k<=d?k:v}if(typeof k!="string"&&typeof k!="number")return v;k=String(k);var W=T(O),J=k.charAt(0);W&&(J==="G"||J==="g")&&(k=k.substr(1),O="");var re=W&&O.substr(0,7)==="chinese",ne=k.match(re?g:l);if(!ne)return v;var le=ne[1],$=ne[3]||"1",Z=Number(ne[5]||1),ie=Number(ne[7]||0),X=Number(ne[9]||0),Q=Number(ne[11]||0);if(W){if(le.length===2)return v;le=Number(le);var oe;try{var Y=f.getComponentMethod("calendars","getCal")(O);if(re){var j=$.charAt($.length-1)==="i";$=parseInt($,10),oe=Y.newDate(le,Y.toMonthIndex(le,$,j),Z)}else oe=Y.newDate(le,Number($),Z)}catch{return v}return oe?(oe.toJD()-n)*p+ie*r+X*t+Q*a:v}le.length===2?le=(Number(le)+2e3-h)%100+h:le=Number(le),$-=1;var se=new Date(Date.UTC(2e3,$,Z,ie,X));return se.setUTCFullYear(le),se.getUTCMonth()!==$||se.getUTCDate()!==Z?v:se.getTime()+Q*a},i=H.MIN_MS=H.dateTime2ms("-9999"),d=H.MAX_MS=H.dateTime2ms("9999-12-31 23:59:59.9999"),H.isDateTime=function(k,O){return H.dateTime2ms(k,O)!==v};function x(k,O){return String(k+Math.pow(10,O)).substr(1)}var w=90*p,C=3*r,y=5*t;H.ms2DateTime=function(k,O,F){if(typeof k!="number"||!(k>=i&&k<=d))return v;O||(O=0);var z=Math.floor(L(k+.05,1)*10),B=Math.round(k-z/10),W,J,re,ne,le,$;if(T(F)){var Z=Math.floor(B/p)+n,ie=Math.floor(L(k,p));try{W=f.getComponentMethod("calendars","getCal")(F).fromJD(Z).formatDate("yyyy-mm-dd")}catch{W=u("G%Y-%m-%d")(new Date(B))}if(W.charAt(0)==="-")for(;W.length<11;)W="-0"+W.substr(1);else for(;W.length<10;)W="0"+W;J=O=i+p&&k<=d-p))return v;var O=Math.floor(L(k+.05,1)*10),F=new Date(Math.round(k-O/10)),z=m("%Y-%m-%d")(F),B=F.getHours(),W=F.getMinutes(),J=F.getSeconds(),re=F.getUTCMilliseconds()*10+O;return E(z,B,W,J,re)};function E(k,O,F,z,B){if((O||F||z||B)&&(k+=" "+x(O,2)+":"+x(F,2),(z||B)&&(k+=":"+x(z,2),B))){for(var W=4;B%10===0;)W-=1,B/=10;k+="."+x(B,W)}return k}H.cleanDate=function(k,O,F){if(k===v)return O;if(H.isJSDate(k)||typeof k=="number"&&isFinite(k)){if(T(F))return s.error("JS Dates and milliseconds are incompatible with world calendars",k),O;if(k=H.ms2DateTimeLocal(+k),!k&&O!==void 0)return O}else if(!H.isDateTime(k,F))return s.error("unrecognized date",k),O;return k};var A=/%\d?f/g,o=/%h/g,M={1:"1",2:"1",3:"2",4:"2"};function b(k,O,F,z){k=k.replace(A,function(W){var J=Math.min(+W.charAt(1)||6,6),re=(O/1e3%1+2).toFixed(J).substr(2).replace(/0+$/,"")||"0";return re});var B=new Date(Math.floor(O+.05));if(k=k.replace(o,function(){return M[F("%q")(B)]}),T(z))try{k=f.getComponentMethod("calendars","worldCalFmt")(k,O,z)}catch{return"Invalid"}return F(k)(B)}var I=[59,59.9,59.99,59.999,59.9999];function D(k,O){var F=L(k+.05,p),z=x(Math.floor(F/r),2)+":"+x(L(Math.floor(F/t),60),2);if(O!=="M"){P(O)||(O=0);var B=Math.min(L(k/a,60),I[O]),W=(100+B).toFixed(O).substr(1);O>0&&(W=W.replace(/0+$/,"").replace(/[\.]$/,"")),z+=":"+W}return z}H.formatDate=function(k,O,F,z,B,W){if(B=T(B)&&B,!O)if(F==="y")O=W.year;else if(F==="m")O=W.month;else if(F==="d")O=W.dayMonth+` + */const tS="6";try{window.__reactRouterVersion=tS}catch{}const rS="startTransition",ab=e5[rS];function nS(V){let{basename:q,children:ye,future:ke,window:tt}=V,mt=Gn.useRef();mt.current==null&&(mt.current=hA({window:tt,v5Compat:!0}));let G=mt.current,[H,e]=Gn.useState({action:G.action,location:G.location}),{v7_startTransition:m}=ke||{},P=Gn.useCallback(s=>{m&&ab?ab(()=>e(s)):e(s)},[e,m]);return Gn.useLayoutEffect(()=>G.listen(P),[G,P]),Gn.createElement(qA,{basename:q,children:ye,location:H.location,navigationType:H.action,navigator:G,future:ke})}var ib;(function(V){V.UseScrollRestoration="useScrollRestoration",V.UseSubmit="useSubmit",V.UseSubmitFetcher="useSubmitFetcher",V.UseFetcher="useFetcher",V.useViewTransitionState="useViewTransitionState"})(ib||(ib={}));var ob;(function(V){V.UseFetcher="useFetcher",V.UseFetchers="useFetchers",V.UseScrollRestoration="useScrollRestoration"})(ob||(ob={}));const aS="_home_container_yyege_1",iS="_home_yyege_1",oS="_home_table_navbar_yyege_20",sS="_home_table_navbar_item_yyege_27",lS="_search_div_yyege_37",uS="_home_table_search_yyege_47",fS="_clear_button_yyege_66",cS="_home_table_and_chart_yyege_78",hS="_home_table_yyege_20",vS="_table_container_yyege_98",dS="_table_symbol_yyege_125",pS="_positive_yyege_132",gS="_negative_yyege_135",yS="_table_range_yyege_138",mS="_table_range_length_yyege_146",xS="_table_range_fill_yyege_152",bS="_table_range_label_yyege_157",wS="_slideIn_yyege_185",TS="_slideOut_yyege_188",AS="_home_chart_yyege_192",SS="_home_chart_price_yyege_206",MS="_home_chart_volatility_yyege_206",ES="_home_chart_add_to_bucket_yyege_218",CS="_home_chart_add_to_bucket_form_yyege_226",LS="_form_input_yyege_244",PS="_controller_buttons_yyege_254",_S="_controller_buttons_buttons_yyege_263",RS="_selected_yyege_277",DS="_popup_container_yyege_283",IS="_popup_yyege_283",kS="_closeButton_yyege_308",zS="_bucket_table_yyege_319",OS="_deleteIcon_yyege_328",FS="_settings_options_yyege_332",NS="_popup_header_yyege_340",BS="_popup_proceed_yyege_343",US="_settings_cancel_yyege_356",VS="_settings_buttons_yyege_369",HS="_analysis_options_yyege_374",GS="_analysis_options_input_yyege_387",WS="_loading_yyege_394",Pa={home_container:aS,home:iS,home_table_navbar:oS,home_table_navbar_item:sS,search_div:lS,home_table_search:uS,clear_button:fS,home_table_and_chart:cS,home_table:hS,table_container:vS,table_symbol:dS,positive:pS,negative:gS,table_range:yS,table_range_length:mS,table_range_fill:xS,table_range_label:bS,slideIn:wS,slideOut:TS,home_chart:AS,home_chart_price:SS,home_chart_volatility:MS,home_chart_add_to_bucket:ES,home_chart_add_to_bucket_form:CS,form_input:LS,controller_buttons:PS,controller_buttons_buttons:_S,selected:RS,popup_container:DS,popup:IS,closeButton:kS,bucket_table:zS,deleteIcon:OS,settings_options:FS,popup_header:NS,popup_proceed:BS,settings_cancel:US,settings_buttons:VS,analysis_options:HS,analysis_options_input:GS,loading:WS};var Iw={},kw={},zw={exports:{}},YS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jS=YS,XS=jS;function Ow(){}function Fw(){}Fw.resetWarningCache=Ow;var ZS=function(){function V(ke,tt,mt,G,H,e){if(e!==XS){var m=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 m.name="Invariant Violation",m}}V.isRequired=V;function q(){return V}var ye={array:V,bigint:V,bool:V,func:V,number:V,object:V,string:V,symbol:V,any:V,arrayOf:q,element:V,elementType:V,instanceOf:q,node:V,objectOf:q,oneOf:q,oneOfType:q,shape:q,exact:q,checkPropTypes:Fw,resetWarningCache:Ow};return ye.PropTypes=ye,ye};zw.exports=ZS();var KS=zw.exports;(function(V){function q(u){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},q(u)}Object.defineProperty(V,"__esModule",{value:!0}),V.default=f;var ye=G(Gn),ke=tt(KS);function tt(u){return u&&u.__esModule?u:{default:u}}function mt(u){if(typeof WeakMap!="function")return null;var l=new WeakMap,g=new WeakMap;return(mt=function(T){return T?g:l})(u)}function G(u,l){if(u&&u.__esModule)return u;if(u===null||q(u)!=="object"&&typeof u!="function")return{default:u};var g=mt(l);if(g&&g.has(u))return g.get(u);var h={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in u)if(c!=="default"&&Object.prototype.hasOwnProperty.call(u,c)){var i=T?Object.getOwnPropertyDescriptor(u,c):null;i&&(i.get||i.set)?Object.defineProperty(h,c,i):h[c]=u[c]}return h.default=u,g&&g.set(u,h),h}function H(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function e(u,l){for(var g=0;g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function r(u){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},r(u)}var t=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],a=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],n=typeof window<"u";function f(u){var l=function(g){P(T,g);var h=L(T);function T(c){var i;return H(this,T),i=h.call(this,c),i.p=Promise.resolve(),i.resizeHandler=null,i.handlers={},i.syncWindowResize=i.syncWindowResize.bind(v(i)),i.syncEventHandlers=i.syncEventHandlers.bind(v(i)),i.attachUpdateEvents=i.attachUpdateEvents.bind(v(i)),i.getRef=i.getRef.bind(v(i)),i.handleUpdate=i.handleUpdate.bind(v(i)),i.figureCallback=i.figureCallback.bind(v(i)),i.updatePlotly=i.updatePlotly.bind(v(i)),i}return m(T,[{key:"updatePlotly",value:function(i,d,x){var w=this;this.p=this.p.then(function(){if(!w.unmounting){if(!w.el)throw new Error("Missing element reference");return u.react(w.el,{data:w.props.data,layout:w.props.layout,config:w.props.config,frames:w.props.frames})}}).then(function(){w.unmounting||(w.syncWindowResize(i),w.syncEventHandlers(),w.figureCallback(d),x&&w.attachUpdateEvents())}).catch(function(C){w.props.onError&&w.props.onError(C)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(i){this.unmounting=!1;var d=i.frames&&i.frames.length?i.frames.length:0,x=this.props.frames&&this.props.frames.length?this.props.frames.length:0,w=!(i.layout===this.props.layout&&i.data===this.props.data&&i.config===this.props.config&&x===d),C=i.revision!==void 0,y=i.revision!==this.props.revision;!w&&(!C||C&&!y)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&n&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),u.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var i=this;!this.el||!this.el.removeListener||a.forEach(function(d){i.el.on(d,i.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var i=this;!this.el||!this.el.removeListener||a.forEach(function(d){i.el.removeListener(d,i.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(i){if(typeof i=="function"){var d=this.el,x=d.data,w=d.layout,C=this.el._transitionData?this.el._transitionData._frames:null,y={data:x,layout:w,frames:C};i(y,this.el)}}},{key:"syncWindowResize",value:function(i){var d=this;n&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return u.Plots.resize(d.el)},window.addEventListener("resize",this.resizeHandler),i&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(i){this.el=i,this.props.debug&&n&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var i=this;t.forEach(function(d){var x=i.props["on"+d],w=i.handlers[d],C=!!w;x&&!C?i.addEventHandler(d,x):!x&&C?i.removeEventHandler(d):x&&C&&x!==w&&(i.removeEventHandler(d),i.addEventHandler(d,x))})}},{key:"addEventHandler",value:function(i,d){this.handlers[i]=d,this.el.on(this.getPlotlyEventName(i),this.handlers[i])}},{key:"removeEventHandler",value:function(i){this.el.removeListener(this.getPlotlyEventName(i),this.handlers[i]),delete this.handlers[i]}},{key:"getPlotlyEventName",value:function(i){return"plotly_"+i.toLowerCase()}},{key:"render",value:function(){return ye.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),T}(ye.Component);return l.propTypes={data:ke.default.arrayOf(ke.default.object),config:ke.default.object,layout:ke.default.object,frames:ke.default.arrayOf(ke.default.object),revision:ke.default.number,onInitialized:ke.default.func,onPurge:ke.default.func,onError:ke.default.func,onUpdate:ke.default.func,debug:ke.default.bool,style:ke.default.object,className:ke.default.string,useResizeHandler:ke.default.bool,divId:ke.default.string},t.forEach(function(g){l.propTypes["on"+g]=ke.default.func}),l.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},l}})(kw);var Nw={exports:{}};(function(V,q){(function(ke,tt){V.exports=tt()})(self,function(){return function(){var ye={79288:function(G,H,e){var m=e(3400),P={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in P){var L=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");m.addStyleRule(L,P[s])}},86712:function(G,H,e){G.exports=e(84224)},37240:function(G,H,e){G.exports=e(51132)},29744:function(G,H,e){G.exports=e(94456)},29352:function(G,H,e){G.exports=e(67244)},96144:function(G,H,e){G.exports=e(97776)},53219:function(G,H,e){G.exports=e(61712)},4624:function(G,H,e){G.exports=e(95856)},54543:function(G,H,e){G.exports=e(54272)},45e3:function(G,H,e){G.exports=e(85404)},62300:function(G,H,e){G.exports=e(26048)},6920:function(G,H,e){G.exports=e(66240)},10264:function(G,H,e){G.exports=e(40448)},32016:function(G,H,e){G.exports=e(64884)},27528:function(G,H,e){G.exports=e(15088)},75556:function(G,H,e){G.exports=e(76744)},39204:function(G,H,e){G.exports=e(94704)},73996:function(G,H,e){G.exports=e(62396)},16489:function(G,H,e){G.exports=e(32028)},5e3:function(G,H,e){G.exports=e(81932)},77280:function(G,H,e){G.exports=e(45536)},33992:function(G,H,e){G.exports=e(42600)},17600:function(G,H,e){G.exports=e(21536)},49116:function(G,H,e){G.exports=e(65664)},46808:function(G,H,e){G.exports=e(29044)},36168:function(G,H,e){G.exports=e(48928)},13792:function(G,H,e){var m=e(32016);m.register([e(37240),e(29352),e(5e3),e(33992),e(17600),e(49116),e(6920),e(67484),e(79440),e(39204),e(83096),e(36168),e(20260),e(63560),e(65832),e(46808),e(73996),e(48824),e(89904),e(25120),e(13752),e(4340),e(62300),e(29800),e(8363),e(54543),e(86636),e(42192),e(32140),e(77280),e(89296),e(56816),e(70192),e(45e3),e(27528),e(84764),e(3920),e(50248),e(4624),e(69967),e(10264),e(86152),e(53219),e(81604),e(63796),e(29744),e(89336),e(86712),e(75556),e(16489),e(97312),e(96144)]),G.exports=m},3920:function(G,H,e){G.exports=e(43480)},25120:function(G,H,e){G.exports=e(6296)},4340:function(G,H,e){G.exports=e(7404)},86152:function(G,H,e){G.exports=e(65456)},56816:function(G,H,e){G.exports=e(22020)},89296:function(G,H,e){G.exports=e(29928)},20260:function(G,H,e){G.exports=e(75792)},32140:function(G,H,e){G.exports=e(156)},84764:function(G,H,e){G.exports=e(45499)},48824:function(G,H,e){G.exports=e(3296)},69967:function(G,H,e){G.exports=e(4184)},8363:function(G,H,e){G.exports=e(36952)},86636:function(G,H,e){G.exports=e(38983)},70192:function(G,H,e){G.exports=e(11572)},81604:function(G,H,e){G.exports=e(76924)},63796:function(G,H,e){G.exports=e(62944)},89336:function(G,H,e){G.exports=e(95443)},67484:function(G,H,e){G.exports=e(34864)},97312:function(G,H,e){G.exports=e(76272)},42192:function(G,H,e){G.exports=e(97924)},29800:function(G,H,e){G.exports=e(15436)},63560:function(G,H,e){G.exports=e(5621)},89904:function(G,H,e){G.exports=e(91304)},50248:function(G,H,e){G.exports=e(41724)},65832:function(G,H,e){G.exports=e(31991)},79440:function(G,H,e){G.exports=e(22869)},13752:function(G,H,e){G.exports=e(67776)},83096:function(G,H,e){G.exports=e(95952)},72196:function(G){G.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(G,H,e){var m=e(72196),P=e(25376),s=e(33816),L=e(31780).templatedArray;e(36208),G.exports=L("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:P({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:m.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:m.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:P({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(G,H,e){var m=e(3400),P=e(54460),s=e(23816).draw;G.exports=function(p){var r=p._fullLayout,t=m.filterVisible(r.annotations);if(t.length&&p._fullData.length)return m.syncOrAsync([s,L],p)};function L(v){var p=v._fullLayout;m.filterVisible(p.annotations).forEach(function(r){var t=P.getFromId(v,r.xref),a=P.getFromId(v,r.yref),n=P.getRefType(r.xref),f=P.getRefType(r.yref);r._extremes={},n==="range"&&S(r,t),f==="range"&&S(r,a)})}function S(v,p){var r=p._id,t=r.charAt(0),a=v[t],n=v["a"+t],f=v[t+"ref"],u=v["a"+t+"ref"],l=v["_"+t+"padplus"],g=v["_"+t+"padminus"],h={x:1,y:-1}[t]*v[t+"shift"],T=3*v.arrowsize*v.arrowwidth||0,c=T+h,i=T-h,d=3*v.startarrowsize*v.arrowwidth||0,x=d+h,w=d-h,C;if(u===f){var y=P.findExtremes(p,[p.r2c(a)],{ppadplus:c,ppadminus:i}),E=P.findExtremes(p,[p.r2c(n)],{ppadplus:Math.max(l,x),ppadminus:Math.max(g,w)});C={min:[y.min[0],E.min[0]],max:[y.max[0],E.max[0]]}}else x=n?x+n:x,w=n?w-n:w,C=P.findExtremes(p,[p.r2c(a)],{ppadplus:Math.max(l,c,x),ppadminus:Math.max(g,i,w)});v._extremes[r]=C}},42300:function(G,H,e){var m=e(3400),P=e(24040),s=e(31780).arrayEditor;G.exports={hasClickToShow:L,onClick:S};function L(r,t){var a=v(r,t);return a.on.length>0||a.explicitOff.length>0}function S(r,t){var a=v(r,t),n=a.on,f=a.off.concat(a.explicitOff),u={},l=r._fullLayout.annotations,g,h;if(n.length||f.length){for(g=0;g.6666666666666666?Ot="right":Ot="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ot]}for(var et=!1,ot=["x","y"],Qe=0;Qe1)&&(vt===ht?(Ne=pt.r2fraction(d["a"+$e]),(Ne<0||Ne>1)&&(et=!0)):et=!0),Le=pt._offset+pt.r2p(d[$e]),Ce=.5}else{var Ze=me==="domain";$e==="x"?(je=d[$e],Le=Ze?pt._offset+pt._length*je:Le=A.l+A.w*je):(je=1-d[$e],Le=Ze?pt._offset+pt._length*je:Le=A.t+A.h*je),Ce=d.showarrow?.5:je}if(d.showarrow){Ge.head=Le;var st=d["a"+$e];if(he=Ct*Ve(.5,d.xanchor)-rt*Ve(.5,d.yanchor),vt===ht){var lt=v.getRefType(vt);lt==="domain"?($e==="y"&&(st=1-st),Ge.tail=pt._offset+pt._length*st):lt==="paper"?$e==="y"?(st=1-st,Ge.tail=A.t+A.h*st):Ge.tail=A.l+A.w*st:Ge.tail=pt._offset+pt.r2p(st),Pe=he}else Ge.tail=Le+st,Pe=he+st;Ge.text=Ge.tail+he;var Wt=E[$e==="x"?"width":"height"];if(ht==="paper"&&(Ge.head=L.constrain(Ge.head,1,Wt-1)),vt==="pixel"){var Zt=-Math.max(Ge.tail-3,Ge.text),Tt=Math.min(Ge.tail+3,Ge.text)-Wt;Zt>0?(Ge.tail+=Zt,Ge.text+=Zt):Tt>0&&(Ge.tail-=Tt,Ge.text-=Tt)}Ge.tail+=We,Ge.head+=We}else he=ze*Ve(Ce,He),Pe=he,Ge.text=Le+he;Ge.text+=We,he+=We,Pe+=We,d["_"+$e+"padplus"]=ze/2+Pe,d["_"+$e+"padminus"]=ze/2-Pe,d["_"+$e+"size"]=ze,d["_"+$e+"shift"]=he}if(et){le.remove();return}var Rt=0,Xt=0;if(d.align!=="left"&&(Rt=(Re-Fe)*(d.align==="center"?.5:1)),d.valign!=="top"&&(Xt=(Se-Te)*(d.valign==="middle"?.5:1)),_e)xe.select("svg").attr({x:ie+Rt-1,y:ie+Xt}).call(r.setClipUrl,Q?O:null,i);else{var gr=ie+Xt-De.top,gt=ie+Rt-De.left;se.call(a.positionText,gt,gr).call(r.setClipUrl,Q?O:null,i)}oe.select("rect").call(r.setRect,ie,ie,Re,Se),X.call(r.setRect,$/2,$/2,Ie-$,Me-$),le.call(r.setTranslate,Math.round(F.x.text-Ie/2),Math.round(F.y.text-Me/2)),W.attr({transform:"rotate("+z+","+F.x.text+","+F.y.text+")"});var Kt=function(yr,Ot){B.selectAll(".annotation-arrow-g").remove();var ut=F.x.head,at=F.y.head,xt=F.x.tail+yr,At=F.y.tail+Ot,Et=F.x.text+yr,Vt=F.y.text+Ot,Bt=L.rotationXYMatrix(z,Et,Vt),Ut=L.apply2DTransform(Bt),Jt=L.apply2DTransform2(Bt),ur=+X.attr("width"),fr=+X.attr("height"),dr=Et-.5*ur,Ye=dr+ur,Ue=Vt-.5*fr,zt=Ue+fr,Dt=[[dr,Ue,dr,zt],[dr,zt,Ye,zt],[Ye,zt,Ye,Ue],[Ye,Ue,dr,Ue]].map(Jt);if(!Dt.reduce(function(Dr,an){return Dr^!!L.segmentsIntersect(ut,at,ut+1e6,at+1e6,an[0],an[1],an[2],an[3])},!1)){Dt.forEach(function(Dr){var an=L.segmentsIntersect(xt,At,ut,at,Dr[0],Dr[1],Dr[2],Dr[3]);an&&(xt=an.x,At=an.y)});var $t=d.arrowwidth,sr=d.arrowcolor,cr=d.arrowside,tr=B.append("g").style({opacity:p.opacity(sr)}).classed("annotation-arrow-g",!0),Nt=tr.append("path").attr("d","M"+xt+","+At+"L"+ut+","+at).style("stroke-width",$t+"px").call(p.stroke,p.rgb(sr));if(l(Nt,cr,d),o.annotationPosition&&Nt.node().parentNode&&!w){var ir=ut,hr=at;if(d.standoff){var xr=Math.sqrt(Math.pow(ut-xt,2)+Math.pow(at-At,2));ir+=d.standoff*(xt-ut)/xr,hr+=d.standoff*(At-at)/xr}var vr=tr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xt-ir)+","+(At-hr),transform:S(ir,hr)}).style("stroke-width",$t+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)"),Hr,_r;f.init({element:vr.node(),gd:i,prepFn:function(){var Dr=r.getTranslate(le);Hr=Dr.x,_r=Dr.y,C&&C.autorange&&D(C._name+".autorange",!0),y&&y.autorange&&D(y._name+".autorange",!0)},moveFn:function(Dr,an){var tn=Ut(Hr,_r),Sn=tn[0]+Dr,Tn=tn[1]+an;le.call(r.setTranslate,Sn,Tn),N("x",T(C,Dr,"x",A,d)),N("y",T(y,an,"y",A,d)),d.axref===d.xref&&N("ax",T(C,Dr,"ax",A,d)),d.ayref===d.yref&&N("ay",T(y,an,"ay",A,d)),tr.attr("transform",S(Dr,an)),W.attr({transform:"rotate("+z+","+Sn+","+Tn+")"})},doneFn:function(){P.call("_guiRelayout",i,k());var Dr=document.querySelector(".js-notes-box-panel");Dr&&Dr.redraw(Dr.selectedObj)}})}}};if(d.showarrow&&Kt(0,0),J){var Qt;f.init({element:le.node(),gd:i,prepFn:function(){Qt=W.attr("transform")},moveFn:function(yr,Ot){var ut="pointer";if(d.showarrow)d.axref===d.xref?N("ax",T(C,yr,"ax",A,d)):N("ax",d.ax+yr),d.ayref===d.yref?N("ay",T(y,Ot,"ay",A.w,d)):N("ay",d.ay+Ot),Kt(yr,Ot);else{if(w)return;var at,xt;if(C)at=T(C,yr,"x",A,d);else{var At=d._xsize/A.w,Et=d.x+(d._xshift-d.xshift)/A.w-At/2;at=f.align(Et+yr/A.w,At,0,1,d.xanchor)}if(y)xt=T(y,Ot,"y",A,d);else{var Vt=d._ysize/A.h,Bt=d.y-(d._yshift+d.yshift)/A.h-Vt/2;xt=f.align(Bt-Ot/A.h,Vt,0,1,d.yanchor)}N("x",at),N("y",xt),(!C||!y)&&(ut=f.getCursor(C?.5:at,y?.5:xt,d.xanchor,d.yanchor))}W.attr({transform:S(yr,Ot)+Qt}),n(le,ut)},clickFn:function(yr,Ot){d.captureevents&&i.emit("plotly_clickannotation",ne(Ot))},doneFn:function(){n(le),P.call("_guiRelayout",i,k());var yr=document.querySelector(".js-notes-box-panel");yr&&yr.redraw(yr.selectedObj)}})}}o.annotationText?se.call(a.makeEditable,{delegate:le,gd:i}).call(te).on("edit",function(ge){d.text=ge,this.call(te),N("text",ge),C&&C.autorange&&D(C._name+".autorange",!0),y&&y.autorange&&D(y._name+".autorange",!0),P.call("_guiRelayout",i,k())}):se.call(te)}},33652:function(G,H,e){var m=e(33428),P=e(76308),s=e(72196),L=e(3400),S=L.strScale,v=L.strRotate,p=L.strTranslate;G.exports=function(t,a,n){var f=t.node(),u=s[n.arrowhead||0],l=s[n.startarrowhead||0],g=(n.arrowwidth||1)*(n.arrowsize||1),h=(n.arrowwidth||1)*(n.startarrowsize||1),T=a.indexOf("start")>=0,c=a.indexOf("end")>=0,i=u.backoff*g+n.standoff,d=l.backoff*h+n.startstandoff,x,w,C,y;if(f.nodeName==="line"){x={x:+t.attr("x1"),y:+t.attr("y1")},w={x:+t.attr("x2"),y:+t.attr("y2")};var E=x.x-w.x,A=x.y-w.y;if(C=Math.atan2(A,E),y=C+Math.PI,i&&d&&i+d>Math.sqrt(E*E+A*A)){W();return}if(i){if(i*i>E*E+A*A){W();return}var o=i*Math.cos(C),M=i*Math.sin(C);w.x+=o,w.y+=M,t.attr({x2:w.x,y2:w.y})}if(d){if(d*d>E*E+A*A){W();return}var b=d*Math.cos(C),I=d*Math.sin(C);x.x-=b,x.y-=I,t.attr({x1:x.x,y1:x.y})}}else if(f.nodeName==="path"){var D=f.getTotalLength(),N="";if(D1){n=!0;break}}n?S.fullLayout._infolayer.select(".annotation-"+S.id+'[data-index="'+t+'"]').remove():(a._pdata=P(S.glplot.cameraParams,[v.xaxis.r2l(a.x)*p[0],v.yaxis.r2l(a.y)*p[1],v.zaxis.r2l(a.z)*p[2]]),m(S.graphDiv,a,t,S.id,a._xa,a._ya))}}},56864:function(G,H,e){var m=e(24040),P=e(3400);G.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(45899)}}},layoutAttributes:e(45899),handleDefaults:e(52808),includeBasePlot:s,convert:e(42456),draw:e(71836)};function s(L,S){var v=m.subplotsRegistry.gl3d;if(v)for(var p=v.attrRegex,r=Object.keys(L),t=0;t=0)))return t;if(l===3)f[l]>1&&(f[l]=1);else if(f[l]>=1)return t}var g=Math.round(f[0]*255)+", "+Math.round(f[1]*255)+", "+Math.round(f[2]*255);return u?"rgba("+g+", "+f[3]+")":"rgb("+g+")"}},42996:function(G,H,e){var m=e(94724),P=e(25376),s=e(92880).extendFlat,L=e(67824).overrideAll;G.exports=L({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:m.linecolor,outlinewidth:m.linewidth,bordercolor:m.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:m.minor.tickmode,nticks:m.nticks,tick0:m.tick0,dtick:m.dtick,tickvals:m.tickvals,ticktext:m.ticktext,ticks:s({},m.ticks,{dflt:""}),ticklabeloverflow:s({},m.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:m.ticklen,tickwidth:m.tickwidth,tickcolor:m.tickcolor,ticklabelstep:m.ticklabelstep,showticklabels:m.showticklabels,labelalias:m.labelalias,tickfont:P({}),tickangle:m.tickangle,tickformat:m.tickformat,tickformatstops:m.tickformatstops,tickprefix:m.tickprefix,showtickprefix:m.showtickprefix,ticksuffix:m.ticksuffix,showticksuffix:m.showticksuffix,separatethousands:m.separatethousands,exponentformat:m.exponentformat,minexponent:m.minexponent,showexponent:m.showexponent,title:{text:{valType:"string"},font:P({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:P({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(G){G.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},64013:function(G,H,e){var m=e(3400),P=e(31780),s=e(26332),L=e(25404),S=e(95936),v=e(42568),p=e(42996);G.exports=function(t,a,n){var f=P.newContainer(a,"colorbar"),u=t.colorbar||{};function l(F,z){return m.coerce(u,f,p,F,z)}var g=n.margin||{t:0,b:0,l:0,r:0},h=n.width-g.l-g.r,T=n.height-g.t-g.b,c=l("orientation"),i=c==="v",d=l("thicknessmode");l("thickness",d==="fraction"?30/(i?h:T):30);var x=l("lenmode");l("len",x==="fraction"?1:i?T:h);var w=l("yref"),C=l("xref"),y=w==="paper",E=C==="paper",A,o,M,b="left";i?(M="middle",b=E?"left":"right",A=E?1.02:1,o=.5):(M=y?"bottom":"top",b="center",A=.5,o=y?1.02:1),m.coerce(u,f,{x:{valType:"number",min:E?-2:0,max:E?3:1,dflt:A}},"x"),m.coerce(u,f,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:o}},"y"),l("xanchor",b),l("xpad"),l("yanchor",M),l("ypad"),m.noneOrAll(u,f,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var I=m.coerce(u,f,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:i?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",I.indexOf("inside")!==-1?"hide past domain":"hide past div"),s(u,f,l,"linear");var D=n.font,N={noAutotickangles:!0,outerTicks:!1,font:D};I.indexOf("inside")!==-1&&(N.bgColor="black"),v(u,f,l,"linear",N),S(u,f,l,"linear",N),L(u,f,l,"linear",N),l("title.text",n._dfltTitle.colorbar);var k=f.showticklabels?f.tickfont:D,O=m.extendFlat({},D,{family:k.family,size:m.bigFont(k.size)});m.coerceFont(l,"title.font",O),l("title.side",i?"top":"right")}},37848:function(G,H,e){var m=e(33428),P=e(49760),s=e(7316),L=e(24040),S=e(54460),v=e(86476),p=e(3400),r=p.strTranslate,t=e(92880).extendFlat,a=e(93972),n=e(43616),f=e(76308),u=e(81668),l=e(72736),g=e(94288).flipScale,h=e(28336),T=e(37668),c=e(94724),i=e(84284),d=i.LINE_SPACING,x=i.FROM_TL,w=i.FROM_BR,C=e(63964).cn;function y(I){var D=I._fullLayout,N=D._infolayer.selectAll("g."+C.colorbar).data(E(I),function(k){return k._id});N.enter().append("g").attr("class",function(k){return k._id}).classed(C.colorbar,!0),N.each(function(k){var O=m.select(this);p.ensureSingle(O,"rect",C.cbbg),p.ensureSingle(O,"g",C.cbfills),p.ensureSingle(O,"g",C.cblines),p.ensureSingle(O,"g",C.cbaxis,function(z){z.classed(C.crisp,!0)}),p.ensureSingle(O,"g",C.cbtitleunshift,function(z){z.append("g").classed(C.cbtitle,!0)}),p.ensureSingle(O,"rect",C.cboutline);var F=A(O,k,I);F&&F.then&&(I._promises||[]).push(F),I._context.edits.colorbarPosition&&o(O,k,I)}),N.exit().each(function(k){s.autoMargin(I,k._id)}).remove(),N.order()}function E(I){var D=I._fullLayout,N=I.calcdata,k=[],O,F,z,B;function W(Y){return t(Y,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function J(){typeof B.calc=="function"?B.calc(I,z,O):(O._fillgradient=F.reversescale?g(F.colorscale):F.colorscale,O._zrange=[F[B.min],F[B.max]])}for(var re=0;re1){var Ge=Math.pow(10,Math.floor(Math.log(We)/Math.LN10));ze*=Ge*p.roundUp(We/Ge,[2,5,10]),(Math.abs(De.start)/De.size+1e-6)%1<2e-6&&(Ct.tick0=0)}Ct.dtick=ze}Ct.domain=k?[pt+Z/j.h,pt+Ve-Z/j.h]:[pt+$/j.w,pt+Ve-$/j.w],Ct.setScale(),I.attr("transform",r(Math.round(j.l),Math.round(j.t)));var Le=I.select("."+C.cbtitleunshift).attr("transform",r(-Math.round(j.l),-Math.round(j.t))),Pe=Ct.ticklabelposition,je=Ct.title.font.size,Ce=I.select("."+C.cbaxis),he,me=0,Ne=0;function Ze(Tt,Rt){var Xt={propContainer:Ct,propName:D._propPrefix+"title",traceIndex:D._traceIndex,_meta:D._meta,placeholder:Y._dfltTitle.colorbar,containerGroup:I.select("."+C.cbtitle)},gr=Tt.charAt(0)==="h"?Tt.substr(1):"h"+Tt;I.selectAll("."+gr+",."+gr+"-math-group").remove(),u.draw(N,Tt,t(Xt,Rt||{}))}function st(){if(k&&rt||!k&&!rt){var Tt,Rt;ge==="top"&&(Tt=$+j.l+et*ie,Rt=Z+j.t+ot*(1-pt-Ve)+3+je*.75),ge==="bottom"&&(Tt=$+j.l+et*ie,Rt=Z+j.t+ot*(1-pt)-3-je*.25),ge==="right"&&(Rt=Z+j.t+ot*X+3+je*.75,Tt=$+j.l+et*pt),Ze(Ct._id+"title",{attributes:{x:Tt,y:Rt,"text-anchor":k?"start":"middle"}})}}function lt(){if(k&&!rt||!k&&rt){var Tt=Ct.position||0,Rt=Ct._offset+Ct._length/2,Xt,gr;if(ge==="right")gr=Rt,Xt=j.l+et*Tt+10+je*(Ct.showticklabels?1:.5);else if(Xt=Rt,ge==="bottom"&&(gr=j.t+ot*Tt+10+(Pe.indexOf("inside")===-1?Ct.tickfont.size:0)+(Ct.ticks!=="intside"&&D.ticklen||0)),ge==="top"){var gt=fe.text.split("
").length;gr=j.t+ot*Tt+10-Se-d*je*gt}Ze((k?"h":"v")+Ct._id+"title",{avoid:{selection:m.select(N).selectAll("g."+Ct._id+"tick"),side:ge,offsetTop:k?0:j.t,offsetLeft:k?j.l:0,maxShift:k?Y.width:Y.height},attributes:{x:Xt,y:gr,"text-anchor":"middle"},transform:{rotate:k?-90:0,offset:0}})}}function Wt(){if(!k&&!rt||k&&rt){var Tt=I.select("."+C.cbtitle),Rt=Tt.select("text"),Xt=[-W/2,W/2],gr=Tt.select(".h"+Ct._id+"title-math-group").node(),gt=15.6;Rt.node()&&(gt=parseInt(Rt.node().style.fontSize,10)*d);var Kt;if(gr?(Kt=n.bBox(gr),Ne=Kt.width,me=Kt.height,me>gt&&(Xt[1]-=(me-gt)/2)):Rt.node()&&!Rt.classed(C.jsPlaceholder)&&(Kt=n.bBox(Rt.node()),Ne=Kt.width,me=Kt.height),k){if(me){if(me+=5,ge==="top")Ct.domain[1]-=me/j.h,Xt[1]*=-1;else{Ct.domain[0]+=me/j.h;var Qt=l.lineCount(Rt);Xt[1]+=(1-Qt)*gt}Tt.attr("transform",r(Xt[0],Xt[1])),Ct.setScale()}}else Ne&&(ge==="right"&&(Ct.domain[0]+=(Ne+je/2)/j.w),Tt.attr("transform",r(Xt[0],Xt[1])),Ct.setScale())}I.selectAll("."+C.cbfills+",."+C.cblines).attr("transform",k?r(0,Math.round(j.h*(1-Ct.domain[1]))):r(Math.round(j.w*Ct.domain[0]),0)),Ce.attr("transform",k?r(0,Math.round(-j.t)):r(Math.round(-j.l),0));var yr=I.select("."+C.cbfills).selectAll("rect."+C.cbfill).attr("style","").data(Te);yr.enter().append("rect").classed(C.cbfill,!0).attr("style",""),yr.exit().remove();var Ot=be.map(Ct.c2p).map(Math.round).sort(function(Et,Vt){return Et-Vt});yr.each(function(Et,Vt){var Bt=[Vt===0?be[0]:(Te[Vt]+Te[Vt-1])/2,Vt===Te.length-1?be[1]:(Te[Vt]+Te[Vt+1])/2].map(Ct.c2p).map(Math.round);k&&(Bt[1]=p.constrain(Bt[1]+(Bt[1]>Bt[0])?1:-1,Ot[0],Ot[1]));var Ut=m.select(this).attr(k?"x":"y",Qe).attr(k?"y":"x",m.min(Bt)).attr(k?"width":"height",Math.max(Se,2)).attr(k?"height":"width",Math.max(m.max(Bt)-m.min(Bt),2));if(D._fillgradient)n.gradient(Ut,N,D._id,k?"vertical":"horizontalreversed",D._fillgradient,"fill");else{var Jt=_e(Et).replace("e-","");Ut.attr("fill",P(Jt).toHexString())}});var ut=I.select("."+C.cblines).selectAll("path."+C.cbline).data(te.color&&te.width?Re:[]);ut.enter().append("path").classed(C.cbline,!0),ut.exit().remove(),ut.each(function(Et){var Vt=Qe,Bt=Math.round(Ct.c2p(Et))+te.width/2%1;m.select(this).attr("d","M"+(k?Vt+","+Bt:Bt+","+Vt)+(k?"h":"v")+Se).call(n.lineGroupStyle,te.width,xe(Et),te.dash)}),Ce.selectAll("g."+Ct._id+"tick,path").remove();var at=Qe+Se+(W||0)/2-(D.ticks==="outside"?1:0),xt=S.calcTicks(Ct),At=S.getTickSigns(Ct)[2];return S.drawTicks(N,Ct,{vals:Ct.ticks==="inside"?S.clipEnds(Ct,xt):xt,layer:Ce,path:S.makeTickPath(Ct,at,At),transFn:S.makeTransTickFn(Ct)}),S.drawLabels(N,Ct,{vals:xt,layer:Ce,transFn:S.makeTransTickLabelFn(Ct),labelFns:S.makeLabelFns(Ct,at)})}function Zt(){var Tt,Rt=Se+W/2;Pe.indexOf("inside")===-1&&(Tt=n.bBox(Ce.node()),Rt+=k?Tt.width:Tt.height),he=Le.select("text");var Xt=0,gr=k&&ge==="top",gt=!k&&ge==="right",Kt=0;if(he.node()&&!he.classed(C.jsPlaceholder)){var Qt,yr=Le.select(".h"+Ct._id+"title-math-group").node();yr&&(k&&rt||!k&&!rt)?(Tt=n.bBox(yr),Xt=Tt.width,Qt=Tt.height):(Tt=n.bBox(Le.node()),Xt=Tt.right-j.l-(k?Qe:wt),Qt=Tt.bottom-j.t-(k?wt:Qe),!k&&ge==="top"&&(Rt+=Tt.height,Kt=Tt.height)),gt&&(he.attr("transform",r(Xt/2+je/2,0)),Xt*=2),Rt=Math.max(Rt,k?Xt:Qt)}var Ot=(k?$:Z)*2+Rt+J+W/2,ut=0;!k&&fe.text&&le==="bottom"&&X<=0&&(ut=Ot/2,Ot+=ut,Kt+=ut),Y._hColorbarMoveTitle=ut,Y._hColorbarMoveCBTitle=Kt;var at=J+W,xt=(k?Qe:wt)-at/2-(k?$:0),At=(k?wt:Qe)-(k?Me:Z+Kt-ut);I.select("."+C.cbbg).attr("x",xt).attr("y",At).attr(k?"width":"height",Math.max(Ot-ut,2)).attr(k?"height":"width",Math.max(Me+at,2)).call(f.fill,re).call(f.stroke,D.bordercolor).style("stroke-width",J);var Et=gt?Math.max(Xt-10,0):0;I.selectAll("."+C.cboutline).attr("x",(k?Qe:wt+$)+Et).attr("y",(k?wt+Z-Me:Qe)+(gr?me:0)).attr(k?"width":"height",Math.max(Se,2)).attr(k?"height":"width",Math.max(Me-(k?2*Z+me:2*$+Et),2)).call(f.stroke,D.outlinecolor).style({fill:"none","stroke-width":W});var Vt=k?$e*Ot:0,Bt=k?0:(1-ht)*Ot-Kt;if(Vt=oe?j.l-Vt:-Vt,Bt=Q?j.t-Bt:-Bt,I.attr("transform",r(Vt,Bt)),!k&&(J||P(re).getAlpha()&&!P.equals(Y.paper_bgcolor,re))){var Ut=Ce.selectAll("text"),Jt=Ut[0].length,ur=I.select("."+C.cbbg).node(),fr=n.bBox(ur),dr=n.getTranslate(I),Ye=2;Ut.each(function(hr,xr){var vr=0,Hr=Jt-1;if(xr===vr||xr===Hr){var _r=n.bBox(this),Dr=n.getTranslate(this),an;if(xr===Hr){var tn=_r.right+Dr.x,Sn=fr.right+dr.x+wt-J-Ye+ie;an=Sn-tn,an>0&&(an=0)}else if(xr===vr){var Tn=_r.left+Dr.x,Tr=fr.left+dr.x+wt+J+Ye;an=Tr-Tn,an<0&&(an=0)}an&&(Jt<3?this.setAttribute("transform","translate("+an+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ue={},zt=x[ne],Dt=w[ne],$t=x[le],sr=w[le],cr=Ot-Se;k?(F==="pixels"?(Ue.y=X,Ue.t=Me*$t,Ue.b=Me*sr):(Ue.t=Ue.b=0,Ue.yt=X+O*$t,Ue.yb=X-O*sr),B==="pixels"?(Ue.x=ie,Ue.l=Ot*zt,Ue.r=Ot*Dt):(Ue.l=cr*zt,Ue.r=cr*Dt,Ue.xl=ie-z*zt,Ue.xr=ie+z*Dt)):(F==="pixels"?(Ue.x=ie,Ue.l=Me*zt,Ue.r=Me*Dt):(Ue.l=Ue.r=0,Ue.xl=ie+O*zt,Ue.xr=ie-O*Dt),B==="pixels"?(Ue.y=1-X,Ue.t=Ot*$t,Ue.b=Ot*sr):(Ue.t=cr*$t,Ue.b=cr*sr,Ue.yt=X-z*$t,Ue.yb=X+z*sr));var tr=D.y<.5?"b":"t",Nt=D.x<.5?"l":"r";N._fullLayout._reservedMargin[D._id]={};var ir={r:Y.width-xt-Vt,l:xt+Ue.r,b:Y.height-At-Bt,t:At+Ue.b};oe&&Q?s.autoMargin(N,D._id,Ue):oe?N._fullLayout._reservedMargin[D._id][tr]=ir[tr]:Q||k?N._fullLayout._reservedMargin[D._id][Nt]=ir[Nt]:N._fullLayout._reservedMargin[D._id][tr]=ir[tr]}return p.syncOrAsync([s.previousPromises,st,Wt,lt,s.previousPromises,Zt],N)}function o(I,D,N){var k=D.orientation==="v",O=N._fullLayout,F=O._size,z,B,W;v.init({element:I.node(),gd:N,prepFn:function(){z=I.attr("transform"),a(I)},moveFn:function(J,re){I.attr("transform",z+r(J,re)),B=v.align((k?D._uFrac:D._vFrac)+J/F.w,k?D._thickFrac:D._lenFrac,0,1,D.xanchor),W=v.align((k?D._vFrac:1-D._uFrac)-re/F.h,k?D._lenFrac:D._thickFrac,0,1,D.yanchor);var ne=v.getCursor(B,W,D.xanchor,D.yanchor);a(I,ne)},doneFn:function(){if(a(I),B!==void 0&&W!==void 0){var J={};J[D._propPrefix+"x"]=B,J[D._propPrefix+"y"]=W,D._traceIndex!==void 0?L.call("_guiRestyle",N,J,D._traceIndex):L.call("_guiRelayout",N,J)}}})}function M(I,D,N){var k=D._levels,O=[],F=[],z,B,W=k.end+k.size/100,J=k.size,re=1.001*N[0]-.001*N[1],ne=1.001*N[1]-.001*N[0];for(B=0;B<1e5&&(z=k.start+B*J,!(J>0?z>=W:z<=W));B++)z>re&&z0?z>=W:z<=W));B++)z>N[0]&&zh-l?l=h-(g-h):g-h=0?i=r.colorscale.sequential:i=r.colorscale.sequentialminus,f._sync("colorscale",i)}}},95504:function(G,H,e){var m=e(3400),P=e(94288).hasColorscale,s=e(94288).extractOpts;G.exports=function(S,v){function p(l,g){var h=l["_"+g];h!==void 0&&(l[g]=h)}function r(l,g){var h=g.container?m.nestedProperty(l,g.container).get():l;if(h)if(h.coloraxis)h._colorAx=v[h.coloraxis];else{var T=s(h),c=T.auto;(c||T.min===void 0)&&p(h,g.min),(c||T.max===void 0)&&p(h,g.max),T.autocolorscale&&p(h,"colorscale")}}for(var t=0;t=0;i--,d++){var x=h[i];c[d]=[1-x[0],x[1]]}return c}function u(h,T){T=T||{};for(var c=h.domain,i=h.range,d=i.length,x=new Array(d),w=0;w1.3333333333333333-p?v:p}},67416:function(G,H,e){var m=e(3400),P=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];G.exports=function(L,S,v,p){return v==="left"?L=0:v==="center"?L=1:v==="right"?L=2:L=m.constrain(Math.floor(L*3),0,2),p==="bottom"?S=0:p==="middle"?S=1:p==="top"?S=2:S=m.constrain(Math.floor(S*3),0,2),P[S][L]}},72760:function(G,H){H.selectMode=function(e){return e==="lasso"||e==="select"},H.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},H.openMode=function(e){return e==="drawline"||e==="drawopenpath"},H.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},H.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},H.selectingOrDrawing=function(e){return H.freeMode(e)||H.rectMode(e)}},86476:function(G,H,e){var m=e(29128),P=e(52264),s=e(89184),L=e(3400).removeElement,S=e(33816),v=G.exports={};v.align=e(78316),v.getCursor=e(67416);var p=e(2616);v.unhover=p.wrapped,v.unhoverRaw=p.raw,v.init=function(n){var f=n.gd,u=1,l=f._context.doubleClickDelay,g=n.element,h,T,c,i,d,x,w,C;f._mouseDownTime||(f._mouseDownTime=0),g.style.pointerEvents="all",g.onmousedown=A,s?(g._ontouchstart&&g.removeEventListener("touchstart",g._ontouchstart),g._ontouchstart=A,g.addEventListener("touchstart",A,{passive:!1})):g.ontouchstart=A;function y(b,I,D){return Math.abs(b)"u"&&typeof b.clientY>"u"&&(b.clientX=h,b.clientY=T),c=new Date().getTime(),c-f._mouseDownTimel&&(u=Math.max(u-1,1)),f._dragged)n.doneFn&&n.doneFn();else if(n.clickFn&&n.clickFn(u,x),!C){var I;try{I=new MouseEvent("click",b)}catch{var D=t(b);I=document.createEvent("MouseEvents"),I.initMouseEvent("click",b.bubbles,b.cancelable,b.view,b.detail,b.screenX,b.screenY,D[0],D[1],b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget)}w.dispatchEvent(I)}f._dragging=!1,f._dragged=!1}};function r(){var a=document.createElement("div");a.className="dragcover";var n=a.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(a),a}v.coverSlip=r;function t(a){return m(a.changedTouches?a.changedTouches[0]:a,document.body)}},2616:function(G,H,e){var m=e(95924),P=e(91200),s=e(52200).getGraphDiv,L=e(92456),S=G.exports={};S.wrapped=function(v,p,r){v=s(v),v._fullLayout&&P.clear(v._fullLayout._uid+L.HOVERID),S.raw(v,p,r)},S.raw=function(p,r){var t=p._fullLayout,a=p._hoverdata;r||(r={}),!(r.target&&!p._dragged&&m.triggerHandler(p,"plotly_beforehover",r)===!1)&&(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,r.target&&a&&p.emit("plotly_unhover",{event:r,points:a}))}},98192:function(G,H){H.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},H.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(G,H,e){var m=e(33428),P=e(3400),s=P.numberFormat,L=e(38248),S=e(49760),v=e(24040),p=e(76308),r=e(8932),t=P.strTranslate,a=e(72736),n=e(9616),f=e(84284),u=f.LINE_SPACING,l=e(13448).DESELECTDIM,g=e(43028),h=e(7152),T=e(10624).appendArrayPointValue,c=G.exports={};c.font=function(Se,Ie){var Me=Ie.variant,Ve=Ie.style,et=Ie.weight,ot=Ie.color,Qe=Ie.size,$e=Ie.family,ht=Ie.shadow,vt=Ie.lineposition,pt=Ie.textcase;$e&&Se.style("font-family",$e),Qe+1&&Se.style("font-size",Qe+"px"),ot&&Se.call(p.fill,ot),et&&Se.style("font-weight",et),Ve&&Se.style("font-style",Ve),Me&&Se.style("font-variant",Me),pt&&Se.style("text-transform",i(x(pt))),ht&&Se.style("text-shadow",ht==="auto"?a.makeTextShadow(p.contrast(ot)):i(ht)),vt&&Se.style("text-decoration-line",i(w(vt)))};function i(Se){return Se==="none"?void 0:Se}var d={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function x(Se){return d[Se]}function w(Se){return Se.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}c.setPosition=function(Se,Ie,Me){Se.attr("x",Ie).attr("y",Me)},c.setSize=function(Se,Ie,Me){Se.attr("width",Ie).attr("height",Me)},c.setRect=function(Se,Ie,Me,Ve,et){Se.call(c.setPosition,Ie,Me).call(c.setSize,Ve,et)},c.translatePoint=function(Se,Ie,Me,Ve){var et=Me.c2p(Se.x),ot=Ve.c2p(Se.y);if(L(et)&&L(ot)&&Ie.node())Ie.node().nodeName==="text"?Ie.attr("x",et).attr("y",ot):Ie.attr("transform",t(et,ot));else return!1;return!0},c.translatePoints=function(Se,Ie,Me){Se.each(function(Ve){var et=m.select(this);c.translatePoint(Ve,et,Ie,Me)})},c.hideOutsideRangePoint=function(Se,Ie,Me,Ve,et,ot){Ie.attr("display",Me.isPtWithinRange(Se,et)&&Ve.isPtWithinRange(Se,ot)?null:"none")},c.hideOutsideRangePoints=function(Se,Ie){if(Ie._hasClipOnAxisFalse){var Me=Ie.xaxis,Ve=Ie.yaxis;Se.each(function(et){var ot=et[0].trace,Qe=ot.xcalendar,$e=ot.ycalendar,ht=v.traceIs(ot,"bar-like")?".bartext":".point,.textpoint";Se.selectAll(ht).each(function(vt){c.hideOutsideRangePoint(vt,m.select(this),Me,Ve,Qe,$e)})})}},c.crispRound=function(Se,Ie,Me){return!Ie||!L(Ie)?Me||0:Se._context.staticPlot?Ie:Ie<1?1:Math.round(Ie)},c.singleLineStyle=function(Se,Ie,Me,Ve,et){Ie.style("fill","none");var ot=(((Se||[])[0]||{}).trace||{}).line||{},Qe=Me||ot.width||0,$e=et||ot.dash||"";p.stroke(Ie,Ve||ot.color),c.dashLine(Ie,$e,Qe)},c.lineGroupStyle=function(Se,Ie,Me,Ve){Se.style("fill","none").each(function(et){var ot=(((et||[])[0]||{}).trace||{}).line||{},Qe=Ie||ot.width||0,$e=Ve||ot.dash||"";m.select(this).call(p.stroke,Me||ot.color).call(c.dashLine,$e,Qe)})},c.dashLine=function(Se,Ie,Me){Me=+Me||0,Ie=c.dashStyle(Ie,Me),Se.style({"stroke-dasharray":Ie,"stroke-width":Me+"px"})},c.dashStyle=function(Se,Ie){Ie=+Ie||1;var Me=Math.max(Ie,3);return Se==="solid"?Se="":Se==="dot"?Se=Me+"px,"+Me+"px":Se==="dash"?Se=3*Me+"px,"+3*Me+"px":Se==="longdash"?Se=5*Me+"px,"+5*Me+"px":Se==="dashdot"?Se=3*Me+"px,"+Me+"px,"+Me+"px,"+Me+"px":Se==="longdashdot"&&(Se=5*Me+"px,"+2*Me+"px,"+Me+"px,"+2*Me+"px"),Se};function C(Se,Ie,Me,Ve){var et=Ie.fillpattern,ot=Ie.fillgradient,Qe=et&&c.getPatternAttr(et.shape,0,"");if(Qe){var $e=c.getPatternAttr(et.bgcolor,0,null),ht=c.getPatternAttr(et.fgcolor,0,null),vt=et.fgopacity,pt=c.getPatternAttr(et.size,0,8),wt=c.getPatternAttr(et.solidity,0,.3),Ct=Ie.uid;c.pattern(Se,"point",Me,Ct,Qe,pt,wt,void 0,et.fillmode,$e,ht,vt)}else if(ot&&ot.type!=="none"){var rt=ot.type,ze="scatterfill-"+Ie.uid;if(Ve&&(ze="legendfill-"+Ie.uid),!Ve&&(ot.start!==void 0||ot.stop!==void 0)){var He,We;rt==="horizontal"?(He={x:ot.start,y:0},We={x:ot.stop,y:0}):rt==="vertical"&&(He={x:0,y:ot.start},We={x:0,y:ot.stop}),He.x=Ie._xA.c2p(He.x===void 0?Ie._extremes.x.min[0].val:He.x,!0),He.y=Ie._yA.c2p(He.y===void 0?Ie._extremes.y.min[0].val:He.y,!0),We.x=Ie._xA.c2p(We.x===void 0?Ie._extremes.x.max[0].val:We.x,!0),We.y=Ie._yA.c2p(We.y===void 0?Ie._extremes.y.max[0].val:We.y,!0),Se.call(I,Me,ze,"linear",ot.colorscale,"fill",He,We,!0,!1)}else rt==="horizontal"&&(rt=rt+"reversed"),Se.call(c.gradient,Me,ze,rt,ot.colorscale,"fill")}else Ie.fillcolor&&Se.call(p.fill,Ie.fillcolor)}c.singleFillStyle=function(Se,Ie){var Me=m.select(Se.node()),Ve=Me.data(),et=((Ve[0]||[])[0]||{}).trace||{};C(Se,et,Ie,!1)},c.fillGroupStyle=function(Se,Ie,Me){Se.style("stroke-width",0).each(function(Ve){var et=m.select(this);Ve[0].trace&&C(et,Ve[0].trace,Ie,Me)})};var y=e(71984);c.symbolNames=[],c.symbolFuncs=[],c.symbolBackOffs=[],c.symbolNeedLines={},c.symbolNoDot={},c.symbolNoFill={},c.symbolList=[],Object.keys(y).forEach(function(Se){var Ie=y[Se],Me=Ie.n;c.symbolList.push(Me,String(Me),Se,Me+100,String(Me+100),Se+"-open"),c.symbolNames[Me]=Se,c.symbolFuncs[Me]=Ie.f,c.symbolBackOffs[Me]=Ie.backoff||0,Ie.needLine&&(c.symbolNeedLines[Me]=!0),Ie.noDot?c.symbolNoDot[Me]=!0:c.symbolList.push(Me+200,String(Me+200),Se+"-dot",Me+300,String(Me+300),Se+"-open-dot"),Ie.noFill&&(c.symbolNoFill[Me]=!0)});var E=c.symbolNames.length,A="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";c.symbolNumber=function(Se){if(L(Se))Se=+Se;else if(typeof Se=="string"){var Ie=0;Se.indexOf("-open")>0&&(Ie=100,Se=Se.replace("-open","")),Se.indexOf("-dot")>0&&(Ie+=200,Se=Se.replace("-dot","")),Se=c.symbolNames.indexOf(Se),Se>=0&&(Se+=Ie)}return Se%100>=E||Se>=400?0:Math.floor(Math.max(Se,0))};function o(Se,Ie,Me,Ve){var et=Se%100;return c.symbolFuncs[et](Ie,Me,Ve)+(Se>=200?A:"")}var M=s("~f"),b={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};c.gradient=function(Se,Ie,Me,Ve,et,ot){var Qe=b[Ve];return I(Se,Ie,Me,Qe.type,et,ot,Qe.start,Qe.stop,!1,Qe.reversed)};function I(Se,Ie,Me,Ve,et,ot,Qe,$e,ht,vt){var pt=et.length,wt;Ve==="linear"?wt={node:"linearGradient",attrs:{x1:Qe.x,y1:Qe.y,x2:$e.x,y2:$e.y,gradientUnits:ht?"userSpaceOnUse":"objectBoundingBox"},reversed:vt}:Ve==="radial"&&(wt={node:"radialGradient",reversed:vt});for(var Ct=new Array(pt),rt=0;rt=0&&Se.i===void 0&&(Se.i=ot.i),Ie.style("opacity",Ve.selectedOpacityFn?Ve.selectedOpacityFn(Se):Se.mo===void 0?Qe.opacity:Se.mo),Ve.ms2mrc){var ht;Se.ms==="various"||Qe.size==="various"?ht=3:ht=Ve.ms2mrc(Se.ms),Se.mrc=ht,Ve.selectedSizeFn&&(ht=Se.mrc=Ve.selectedSizeFn(Se));var vt=c.symbolNumber(Se.mx||Qe.symbol)||0;Se.om=vt%200>=100;var pt=Re(Se,Me),wt=j(Se,Me);Ie.attr("d",o(vt,ht,pt,wt))}var Ct=!1,rt,ze,He;if(Se.so)He=$e.outlierwidth,ze=$e.outliercolor,rt=Qe.outliercolor;else{var We=($e||{}).width;He=(Se.mlw+1||We+1||(Se.trace?(Se.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Se?ze=Se.mlcc=Ve.lineScale(Se.mlc):P.isArrayOrTypedArray($e.color)?ze=p.defaultLine:ze=$e.color,P.isArrayOrTypedArray(Qe.color)&&(rt=p.defaultLine,Ct=!0),"mc"in Se?rt=Se.mcc=Ve.markerScale(Se.mc):rt=Qe.color||Qe.colors||"rgba(0,0,0,0)",Ve.selectedColorFn&&(rt=Ve.selectedColorFn(Se))}if(Se.om)Ie.call(p.stroke,rt).style({"stroke-width":(He||1)+"px",fill:"none"});else{Ie.style("stroke-width",(Se.isBlank?0:He)+"px");var Ge=Qe.gradient,Le=Se.mgt;Le?Ct=!0:Le=Ge&&Ge.type,P.isArrayOrTypedArray(Le)&&(Le=Le[0],b[Le]||(Le=0));var Pe=Qe.pattern,je=Pe&&c.getPatternAttr(Pe.shape,Se.i,"");if(Le&&Le!=="none"){var Ce=Se.mgc;Ce?Ct=!0:Ce=Ge.color;var he=Me.uid;Ct&&(he+="-"+Se.i),c.gradient(Ie,et,he,Le,[[0,Ce],[1,rt]],"fill")}else if(je){var me=!1,Ne=Pe.fgcolor;!Ne&&ot&&ot.color&&(Ne=ot.color,me=!0);var Ze=c.getPatternAttr(Ne,Se.i,ot&&ot.color||null),st=c.getPatternAttr(Pe.bgcolor,Se.i,null),lt=Pe.fgopacity,Wt=c.getPatternAttr(Pe.size,Se.i,8),Zt=c.getPatternAttr(Pe.solidity,Se.i,.3);me=me||Se.mcc||P.isArrayOrTypedArray(Pe.shape)||P.isArrayOrTypedArray(Pe.bgcolor)||P.isArrayOrTypedArray(Pe.fgcolor)||P.isArrayOrTypedArray(Pe.size)||P.isArrayOrTypedArray(Pe.solidity);var Tt=Me.uid;me&&(Tt+="-"+Se.i),c.pattern(Ie,"point",et,Tt,je,Wt,Zt,Se.mcc,Pe.fillmode,st,Ze,lt)}else P.isArrayOrTypedArray(rt)?p.fill(Ie,rt[Se.i]):p.fill(Ie,rt);He&&p.stroke(Ie,ze)}},c.makePointStyleFns=function(Se){var Ie={},Me=Se.marker;return Ie.markerScale=c.tryColorscale(Me,""),Ie.lineScale=c.tryColorscale(Me,"line"),v.traceIs(Se,"symbols")&&(Ie.ms2mrc=g.isBubble(Se)?h(Se):function(){return(Me.size||6)/2}),Se.selectedpoints&&P.extendFlat(Ie,c.makeSelectedPointStyleFns(Se)),Ie},c.makeSelectedPointStyleFns=function(Se){var Ie={},Me=Se.selected||{},Ve=Se.unselected||{},et=Se.marker||{},ot=Me.marker||{},Qe=Ve.marker||{},$e=et.opacity,ht=ot.opacity,vt=Qe.opacity,pt=ht!==void 0,wt=vt!==void 0;(P.isArrayOrTypedArray($e)||pt||wt)&&(Ie.selectedOpacityFn=function(je){var Ce=je.mo===void 0?et.opacity:je.mo;return je.selected?pt?ht:Ce:wt?vt:l*Ce});var Ct=et.color,rt=ot.color,ze=Qe.color;(rt||ze)&&(Ie.selectedColorFn=function(je){var Ce=je.mcc||Ct;return je.selected?rt||Ce:ze||Ce});var He=et.size,We=ot.size,Ge=Qe.size,Le=We!==void 0,Pe=Ge!==void 0;return v.traceIs(Se,"symbols")&&(Le||Pe)&&(Ie.selectedSizeFn=function(je){var Ce=je.mrc||He/2;return je.selected?Le?We/2:Ce:Pe?Ge/2:Ce}),Ie},c.makeSelectedTextStyleFns=function(Se){var Ie={},Me=Se.selected||{},Ve=Se.unselected||{},et=Se.textfont||{},ot=Me.textfont||{},Qe=Ve.textfont||{},$e=et.color,ht=ot.color,vt=Qe.color;return Ie.selectedTextColorFn=function(pt){var wt=pt.tc||$e;return pt.selected?ht||wt:vt||(ht?wt:p.addOpacity(wt,l))},Ie},c.selectedPointStyle=function(Se,Ie){if(!(!Se.size()||!Ie.selectedpoints)){var Me=c.makeSelectedPointStyleFns(Ie),Ve=Ie.marker||{},et=[];Me.selectedOpacityFn&&et.push(function(ot,Qe){ot.style("opacity",Me.selectedOpacityFn(Qe))}),Me.selectedColorFn&&et.push(function(ot,Qe){p.fill(ot,Me.selectedColorFn(Qe))}),Me.selectedSizeFn&&et.push(function(ot,Qe){var $e=Qe.mx||Ve.symbol||0,ht=Me.selectedSizeFn(Qe);ot.attr("d",o(c.symbolNumber($e),ht,Re(Qe,Ie),j(Qe,Ie))),Qe.mrc2=ht}),et.length&&Se.each(function(ot){for(var Qe=m.select(this),$e=0;$e0?Me:0}c.textPointStyle=function(Se,Ie,Me){if(Se.size()){var Ve;if(Ie.selectedpoints){var et=c.makeSelectedTextStyleFns(Ie);Ve=et.selectedTextColorFn}var ot=Ie.texttemplate,Qe=Me._fullLayout;Se.each(function($e){var ht=m.select(this),vt=ot?P.extractOption($e,Ie,"txt","texttemplate"):P.extractOption($e,Ie,"tx","text");if(!vt&&vt!==0){ht.remove();return}if(ot){var pt=Ie._module.formatLabels,wt=pt?pt($e,Ie,Qe):{},Ct={};T(Ct,Ie,$e.i);var rt=Ie._meta||{};vt=P.texttemplateString(vt,wt,Qe._d3locale,Ct,$e,rt)}var ze=$e.tp||Ie.textposition,He=k($e,Ie),We=Ve?Ve($e):$e.tc||Ie.textfont.color;ht.call(c.font,{family:$e.tf||Ie.textfont.family,weight:$e.tw||Ie.textfont.weight,style:$e.ty||Ie.textfont.style,variant:$e.tv||Ie.textfont.variant,textcase:$e.tC||Ie.textfont.textcase,lineposition:$e.tE||Ie.textfont.lineposition,shadow:$e.tS||Ie.textfont.shadow,size:He,color:We}).text(vt).call(a.convertToTspans,Me).call(N,ze,He,$e.mrc)})}},c.selectedTextStyle=function(Se,Ie){if(!(!Se.size()||!Ie.selectedpoints)){var Me=c.makeSelectedTextStyleFns(Ie);Se.each(function(Ve){var et=m.select(this),ot=Me.selectedTextColorFn(Ve),Qe=Ve.tp||Ie.textposition,$e=k(Ve,Ie);p.fill(et,ot);var ht=v.traceIs(Ie,"bar-like");N(et,Qe,$e,Ve.mrc2||Ve.mrc,ht)})}};var O=.5;c.smoothopen=function(Se,Ie){if(Se.length<3)return"M"+Se.join("L");var Me="M"+Se[0],Ve=[],et;for(et=1;et=ht||je>=pt&&je<=ht)&&(Ce<=wt&&Ce>=vt||Ce>=wt&&Ce<=vt)&&(Se=[je,Ce])}return Se}c.applyBackoff=$,c.makeTester=function(){var Se=P.ensureSingleById(m.select("body"),"svg","js-plotly-tester",function(Me){Me.attr(n.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Ie=P.ensureSingle(Se,"path","js-reference-point",function(Me){Me.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});c.tester=Se,c.testref=Ie},c.savedBBoxes={};var Z=0,ie=1e4;c.bBox=function(Se,Ie,Me){Me||(Me=X(Se));var Ve;if(Me){if(Ve=c.savedBBoxes[Me],Ve)return P.extendFlat({},Ve)}else if(Se.childNodes.length===1){var et=Se.childNodes[0];if(Me=X(et),Me){var ot=+et.getAttribute("x")||0,Qe=+et.getAttribute("y")||0,$e=et.getAttribute("transform");if(!$e){var ht=c.bBox(et,!1,Me);return ot&&(ht.left+=ot,ht.right+=ot),Qe&&(ht.top+=Qe,ht.bottom+=Qe),ht}if(Me+="~"+ot+"~"+Qe+"~"+$e,Ve=c.savedBBoxes[Me],Ve)return P.extendFlat({},Ve)}}var vt,pt;Ie?vt=Se:(pt=c.tester.node(),vt=Se.cloneNode(!0),pt.appendChild(vt)),m.select(vt).attr("transform",null).call(a.positionText,0,0);var wt=vt.getBoundingClientRect(),Ct=c.testref.node().getBoundingClientRect();Ie||pt.removeChild(vt);var rt={height:wt.height,width:wt.width,left:wt.left-Ct.left,top:wt.top-Ct.top,right:wt.right-Ct.left,bottom:wt.bottom-Ct.top};return Z>=ie&&(c.savedBBoxes={},Z=0),Me&&(c.savedBBoxes[Me]=rt),Z++,P.extendFlat({},rt)};function X(Se){var Ie=Se.getAttribute("data-unformatted");if(Ie!==null)return Ie+Se.getAttribute("data-math")+Se.getAttribute("text-anchor")+Se.getAttribute("style")}c.setClipUrl=function(Se,Ie,Me){Se.attr("clip-path",Q(Ie,Me))};function Q(Se,Ie){if(!Se)return null;var Me=Ie._context,Ve=Me._exportedPlot?"":Me._baseUrl||"";return Ve?"url('"+Ve+"#"+Se+"')":"url(#"+Se+")"}c.getTranslate=function(Se){var Ie=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,Me=Se.attr?"attr":"getAttribute",Ve=Se[Me]("transform")||"",et=Ve.replace(Ie,function(ot,Qe,$e){return[Qe,$e].join(" ")}).split(" ");return{x:+et[0]||0,y:+et[1]||0}},c.setTranslate=function(Se,Ie,Me){var Ve=/(\btranslate\(.*?\);?)/,et=Se.attr?"attr":"getAttribute",ot=Se.attr?"attr":"setAttribute",Qe=Se[et]("transform")||"";return Ie=Ie||0,Me=Me||0,Qe=Qe.replace(Ve,"").trim(),Qe+=t(Ie,Me),Qe=Qe.trim(),Se[ot]("transform",Qe),Qe},c.getScale=function(Se){var Ie=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,Me=Se.attr?"attr":"getAttribute",Ve=Se[Me]("transform")||"",et=Ve.replace(Ie,function(ot,Qe,$e){return[Qe,$e].join(" ")}).split(" ");return{x:+et[0]||1,y:+et[1]||1}},c.setScale=function(Se,Ie,Me){var Ve=/(\bscale\(.*?\);?)/,et=Se.attr?"attr":"getAttribute",ot=Se.attr?"attr":"setAttribute",Qe=Se[et]("transform")||"";return Ie=Ie||1,Me=Me||1,Qe=Qe.replace(Ve,"").trim(),Qe+="scale("+Ie+","+Me+")",Qe=Qe.trim(),Se[ot]("transform",Qe),Qe};var oe=/\s*sc.*/;c.setPointGroupScale=function(Se,Ie,Me){if(Ie=Ie||1,Me=Me||1,!!Se){var Ve=Ie===1&&Me===1?"":"scale("+Ie+","+Me+")";Se.each(function(){var et=(this.getAttribute("transform")||"").replace(oe,"");et+=Ve,et=et.trim(),this.setAttribute("transform",et)})}};var Y=/translate\([^)]*\)\s*$/;c.setTextPointsScale=function(Se,Ie,Me){Se&&Se.each(function(){var Ve,et=m.select(this),ot=et.select("text");if(ot.node()){var Qe=parseFloat(ot.attr("x")||0),$e=parseFloat(ot.attr("y")||0),ht=(et.attr("transform")||"").match(Y);Ie===1&&Me===1?Ve=[]:Ve=[t(Qe,$e),"scale("+Ie+","+Me+")",t(-Qe,-$e)],ht&&Ve.push(ht),et.attr("transform",Ve.join(""))}})};function j(Se,Ie){var Me;return Se&&(Me=Se.mf),Me===void 0&&(Me=Ie.marker&&Ie.marker.standoff||0),!Ie._geo&&!Ie._xA?-Me:Me}c.getMarkerStandoff=j;var se=Math.atan2,te=Math.cos,fe=Math.sin;function ge(Se,Ie){var Me=Ie[0],Ve=Ie[1];return[Me*te(Se)-Ve*fe(Se),Me*fe(Se)+Ve*te(Se)]}var be,xe,_e,De,Fe,Te;function Re(Se,Ie){var Me=Se.ma;Me===void 0&&(Me=Ie.marker.angle,(!Me||P.isArrayOrTypedArray(Me))&&(Me=0));var Ve,et,ot=Ie.marker.angleref;if(ot==="previous"||ot==="north"){if(Ie._geo){var Qe=Ie._geo.project(Se.lonlat);Ve=Qe[0],et=Qe[1]}else{var $e=Ie._xA,ht=Ie._yA;if($e&&ht)Ve=$e.c2p(Se.x),et=ht.c2p(Se.y);else return 90}if(Ie._geo){var vt=Se.lonlat[0],pt=Se.lonlat[1],wt=Ie._geo.project([vt,pt+1e-5]),Ct=Ie._geo.project([vt+1e-5,pt]),rt=se(Ct[1]-et,Ct[0]-Ve),ze=se(wt[1]-et,wt[0]-Ve),He;if(ot==="north")He=Me/180*Math.PI;else if(ot==="previous"){var We=vt/180*Math.PI,Ge=pt/180*Math.PI,Le=be/180*Math.PI,Pe=xe/180*Math.PI,je=Le-We,Ce=te(Pe)*fe(je),he=fe(Pe)*te(Ge)-te(Pe)*fe(Ge)*te(je);He=-se(Ce,he)-Math.PI,be=vt,xe=pt}var me=ge(rt,[te(He),0]),Ne=ge(ze,[fe(He),0]);Me=se(me[1]+Ne[1],me[0]+Ne[0])/Math.PI*180,ot==="previous"&&!(Te===Ie.uid&&Se.i===Fe+1)&&(Me=null)}if(ot==="previous"&&!Ie._geo)if(Te===Ie.uid&&Se.i===Fe+1&&L(Ve)&&L(et)){var Ze=Ve-_e,st=et-De,lt=Ie.line&&Ie.line.shape||"",Wt=lt.slice(lt.length-1);Wt==="h"&&(st=0),Wt==="v"&&(Ze=0),Me+=se(st,Ze)/Math.PI*180+90}else Me=null}return _e=Ve,De=et,Fe=Se.i,Te=Ie.uid,Me}c.getMarkerAngle=Re},71984:function(G,H,e){var m=e(21984),P=e(33428).round,s="M0,0Z",L=Math.sqrt(2),S=Math.sqrt(3),v=Math.PI,p=Math.cos,r=Math.sin;G.exports={circle:{n:0,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i="M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z";return T?l(h,T,i):i}},square:{n:1,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")}},diamond:{n:2,f:function(g,h,T){if(t(h))return s;var c=P(g*1.3,2);return l(h,T,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"Z")}},cross:{n:3,f:function(g,h,T){if(t(h))return s;var c=P(g*.4,2),i=P(g*1.2,2);return l(h,T,"M"+i+","+c+"H"+c+"V"+i+"H-"+c+"V"+c+"H-"+i+"V-"+c+"H-"+c+"V-"+i+"H"+c+"V-"+c+"H"+i+"Z")}},x:{n:4,f:function(g,h,T){if(t(h))return s;var c=P(g*.8/L,2),i="l"+c+","+c,d="l"+c+",-"+c,x="l-"+c+",-"+c,w="l-"+c+","+c;return l(h,T,"M0,"+c+i+d+x+d+x+w+x+w+i+w+i+"Z")}},"triangle-up":{n:5,f:function(g,h,T){if(t(h))return s;var c=P(g*2/S,2),i=P(g/2,2),d=P(g,2);return l(h,T,"M-"+c+","+i+"H"+c+"L0,-"+d+"Z")}},"triangle-down":{n:6,f:function(g,h,T){if(t(h))return s;var c=P(g*2/S,2),i=P(g/2,2),d=P(g,2);return l(h,T,"M-"+c+",-"+i+"H"+c+"L0,"+d+"Z")}},"triangle-left":{n:7,f:function(g,h,T){if(t(h))return s;var c=P(g*2/S,2),i=P(g/2,2),d=P(g,2);return l(h,T,"M"+i+",-"+c+"V"+c+"L-"+d+",0Z")}},"triangle-right":{n:8,f:function(g,h,T){if(t(h))return s;var c=P(g*2/S,2),i=P(g/2,2),d=P(g,2);return l(h,T,"M-"+i+",-"+c+"V"+c+"L"+d+",0Z")}},"triangle-ne":{n:9,f:function(g,h,T){if(t(h))return s;var c=P(g*.6,2),i=P(g*1.2,2);return l(h,T,"M-"+i+",-"+c+"H"+c+"V"+i+"Z")}},"triangle-se":{n:10,f:function(g,h,T){if(t(h))return s;var c=P(g*.6,2),i=P(g*1.2,2);return l(h,T,"M"+c+",-"+i+"V"+c+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(g,h,T){if(t(h))return s;var c=P(g*.6,2),i=P(g*1.2,2);return l(h,T,"M"+i+","+c+"H-"+c+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(g,h,T){if(t(h))return s;var c=P(g*.6,2),i=P(g*1.2,2);return l(h,T,"M-"+c+","+i+"V-"+c+"H"+i+"Z")}},pentagon:{n:13,f:function(g,h,T){if(t(h))return s;var c=P(g*.951,2),i=P(g*.588,2),d=P(-g,2),x=P(g*-.309,2),w=P(g*.809,2);return l(h,T,"M"+c+","+x+"L"+i+","+w+"H-"+i+"L-"+c+","+x+"L0,"+d+"Z")}},hexagon:{n:14,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g/2,2),d=P(g*S/2,2);return l(h,T,"M"+d+",-"+i+"V"+i+"L0,"+c+"L-"+d+","+i+"V-"+i+"L0,-"+c+"Z")}},hexagon2:{n:15,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g/2,2),d=P(g*S/2,2);return l(h,T,"M-"+i+","+d+"H"+i+"L"+c+",0L"+i+",-"+d+"H-"+i+"L-"+c+",0Z")}},octagon:{n:16,f:function(g,h,T){if(t(h))return s;var c=P(g*.924,2),i=P(g*.383,2);return l(h,T,"M-"+i+",-"+c+"H"+i+"L"+c+",-"+i+"V"+i+"L"+i+","+c+"H-"+i+"L-"+c+","+i+"V-"+i+"Z")}},star:{n:17,f:function(g,h,T){if(t(h))return s;var c=g*1.4,i=P(c*.225,2),d=P(c*.951,2),x=P(c*.363,2),w=P(c*.588,2),C=P(-c,2),y=P(c*-.309,2),E=P(c*.118,2),A=P(c*.809,2),o=P(c*.382,2);return l(h,T,"M"+i+","+y+"H"+d+"L"+x+","+E+"L"+w+","+A+"L0,"+o+"L-"+w+","+A+"L-"+x+","+E+"L-"+d+","+y+"H-"+i+"L0,"+C+"Z")}},hexagram:{n:18,f:function(g,h,T){if(t(h))return s;var c=P(g*.66,2),i=P(g*.38,2),d=P(g*.76,2);return l(h,T,"M-"+d+",0l-"+i+",-"+c+"h"+d+"l"+i+",-"+c+"l"+i+","+c+"h"+d+"l-"+i+","+c+"l"+i+","+c+"h-"+d+"l-"+i+","+c+"l-"+i+",-"+c+"h-"+d+"Z")}},"star-triangle-up":{n:19,f:function(g,h,T){if(t(h))return s;var c=P(g*S*.8,2),i=P(g*.8,2),d=P(g*1.6,2),x=P(g*4,2),w="A "+x+","+x+" 0 0 1 ";return l(h,T,"M-"+c+","+i+w+c+","+i+w+"0,-"+d+w+"-"+c+","+i+"Z")}},"star-triangle-down":{n:20,f:function(g,h,T){if(t(h))return s;var c=P(g*S*.8,2),i=P(g*.8,2),d=P(g*1.6,2),x=P(g*4,2),w="A "+x+","+x+" 0 0 1 ";return l(h,T,"M"+c+",-"+i+w+"-"+c+",-"+i+w+"0,"+d+w+c+",-"+i+"Z")}},"star-square":{n:21,f:function(g,h,T){if(t(h))return s;var c=P(g*1.1,2),i=P(g*2,2),d="A "+i+","+i+" 0 0 1 ";return l(h,T,"M-"+c+",-"+c+d+"-"+c+","+c+d+c+","+c+d+c+",-"+c+d+"-"+c+",-"+c+"Z")}},"star-diamond":{n:22,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2),i=P(g*1.9,2),d="A "+i+","+i+" 0 0 1 ";return l(h,T,"M-"+c+",0"+d+"0,"+c+d+c+",0"+d+"0,-"+c+d+"-"+c+",0Z")}},"diamond-tall":{n:23,f:function(g,h,T){if(t(h))return s;var c=P(g*.7,2),i=P(g*1.4,2);return l(h,T,"M0,"+i+"L"+c+",0L0,-"+i+"L-"+c+",0Z")}},"diamond-wide":{n:24,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2),i=P(g*.7,2);return l(h,T,"M0,"+i+"L"+c+",0L0,-"+i+"L-"+c+",0Z")}},hourglass:{n:25,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"H-"+c+"L"+c+",-"+c+"H-"+c+"Z")},noDot:!0},bowtie:{n:26,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"V-"+c+"L-"+c+","+c+"V-"+c+"Z")},noDot:!0},"circle-cross":{n:27,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g/L,2);return l(h,T,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+c+",0A"+c+","+c+" 0 1,1 0,-"+c+"A"+c+","+c+" 0 0,1 "+c+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c+"M"+c+","+c+"H-"+c+"V-"+c+"H"+c+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(g,h,T){if(t(h))return s;var c=P(g*1.3,2);return l(h,T,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"ZM0,-"+c+"V"+c+"M-"+c+",0H"+c)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(g,h,T){if(t(h))return s;var c=P(g*1.3,2),i=P(g*.65,2);return l(h,T,"M"+c+",0L0,"+c+"L-"+c+",0L0,-"+c+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2);return l(h,T,"M0,"+c+"V-"+c+"M"+c+",0H-"+c)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"L-"+c+",-"+c+"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*.85,2);return l(h,T,"M0,"+c+"V-"+c+"M"+c+",0H-"+c+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(g,h,T){if(t(h))return s;var c=P(g/2,2),i=P(g,2);return l(h,T,"M"+c+","+i+"V-"+i+"M"+(c-i)+",-"+i+"V"+i+"M"+i+","+c+"H-"+i+"M-"+i+","+(c-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*1.6,2),d=P(g*.8,2);return l(h,T,"M-"+c+","+d+"L0,0M"+c+","+d+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*1.6,2),d=P(g*.8,2);return l(h,T,"M-"+c+",-"+d+"L0,0M"+c+",-"+d+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*1.6,2),d=P(g*.8,2);return l(h,T,"M"+d+","+c+"L0,0M"+d+",-"+c+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(g,h,T){if(t(h))return s;var c=P(g*1.2,2),i=P(g*1.6,2),d=P(g*.8,2);return l(h,T,"M-"+d+","+c+"L0,0M-"+d+",-"+c+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2);return l(h,T,"M"+c+",0H-"+c)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(g,h,T){if(t(h))return s;var c=P(g*1.4,2);return l(h,T,"M0,"+c+"V-"+c)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+",-"+c+"L-"+c+","+c)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(g,h,T){if(t(h))return s;var c=P(g,2);return l(h,T,"M"+c+","+c+"L-"+c+",-"+c)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g*2,2);return l(h,T,"M0,0L-"+c+","+i+"H"+c+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g*2,2);return l(h,T,"M0,0L-"+c+",-"+i+"H"+c+"Z")},noDot:!0},"arrow-left":{n:47,f:function(g,h,T){if(t(h))return s;var c=P(g*2,2),i=P(g,2);return l(h,T,"M0,0L"+c+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(g,h,T){if(t(h))return s;var c=P(g*2,2),i=P(g,2);return l(h,T,"M0,0L-"+c+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g*2,2);return l(h,T,"M-"+c+",0H"+c+"M0,0L-"+c+","+i+"H"+c+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(g,h,T){if(t(h))return s;var c=P(g,2),i=P(g*2,2);return l(h,T,"M-"+c+",0H"+c+"M0,0L-"+c+",-"+i+"H"+c+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(g,h,T){if(t(h))return s;var c=P(g*2,2),i=P(g,2);return l(h,T,"M0,-"+i+"V"+i+"M0,0L"+c+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(g,h,T){if(t(h))return s;var c=P(g*2,2),i=P(g,2);return l(h,T,"M0,-"+i+"V"+i+"M0,0L-"+c+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(g,h,T){if(t(h))return s;var c=v/2.5,i=2*g*p(c),d=2*g*r(c);return l(h,T,"M0,0L"+-i+","+d+"L"+i+","+d+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(g,h,T){if(t(h))return s;var c=v/4,i=2*g*p(c),d=2*g*r(c);return l(h,T,"M0,0L"+-i+","+d+"A "+2*g+","+2*g+" 0 0 1 "+i+","+d+"Z")},backoff:.4,noDot:!0}};function t(g){return g===null}var a,n,f,u;function l(g,h,T){if((!g||g%360===0)&&!h)return T;if(f===g&&u===h&&a===T)return n;f=g,u=h,a=T;function c(D,N){var k=p(D),O=r(D),F=N[0],z=N[1]+(h||0);return[F*k-z*O,F*O+z*k]}for(var i=g/180*v,d=0,x=0,w=m(T),C="",y=0;y0,g=p._context.staticPlot;r.each(function(h){var T=h[0].trace,c=T.error_x||{},i=T.error_y||{},d;T.ids&&(d=function(y){return y.id});var x=L.hasMarkers(T)&&T.marker.maxdisplayed>0;!i.visible&&!c.visible&&(h=[]);var w=m.select(this).selectAll("g.errorbar").data(h,d);if(w.exit().remove(),!!h.length){c.visible||w.selectAll("path.xerror").remove(),i.visible||w.selectAll("path.yerror").remove(),w.style("opacity",1);var C=w.enter().append("g").classed("errorbar",!0);l&&C.style("opacity",0).transition().duration(a.duration).style("opacity",1),s.setClipUrl(w,t.layerClipId,p),w.each(function(y){var E=m.select(this),A=S(y,f,u);if(!(x&&!y.vis)){var o,M=E.select("path.yerror");if(i.visible&&P(A.x)&&P(A.yh)&&P(A.ys)){var b=i.width;o="M"+(A.x-b)+","+A.yh+"h"+2*b+"m-"+b+",0V"+A.ys,A.noYS||(o+="m-"+b+",0h"+2*b),n=!M.size(),n?M=E.append("path").style("vector-effect",g?"none":"non-scaling-stroke").classed("yerror",!0):l&&(M=M.transition().duration(a.duration).ease(a.easing)),M.attr("d",o)}else M.remove();var I=E.select("path.xerror");if(c.visible&&P(A.y)&&P(A.xh)&&P(A.xs)){var D=(c.copy_ystyle?i:c).width;o="M"+A.xh+","+(A.y-D)+"v"+2*D+"m0,-"+D+"H"+A.xs,A.noXS||(o+="m0,-"+D+"v"+2*D),n=!I.size(),n?I=E.append("path").style("vector-effect",g?"none":"non-scaling-stroke").classed("xerror",!0):l&&(I=I.transition().duration(a.duration).ease(a.easing)),I.attr("d",o)}else I.remove()}})}})};function S(v,p,r){var t={x:p.c2p(v.x),y:r.c2p(v.y)};return v.yh!==void 0&&(t.yh=r.c2p(v.yh),t.ys=r.c2p(v.ys),P(t.ys)||(t.noYS=!0,t.ys=r.c2p(v.ys,!0))),v.xh!==void 0&&(t.xh=p.c2p(v.xh),t.xs=p.c2p(v.xs),P(t.xs)||(t.noXS=!0,t.xs=p.c2p(v.xs,!0))),t}},92036:function(G,H,e){var m=e(33428),P=e(76308);G.exports=function(L){L.each(function(S){var v=S[0].trace,p=v.error_y||{},r=v.error_x||{},t=m.select(this);t.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(P.stroke,p.color),r.copy_ystyle&&(r=p),t.selectAll("path.xerror").style("stroke-width",r.thickness+"px").call(P.stroke,r.color)})}},55756:function(G,H,e){var m=e(25376),P=e(65460).hoverlabel,s=e(92880).extendFlat;G.exports={hoverlabel:{bgcolor:s({},P.bgcolor,{arrayOk:!0}),bordercolor:s({},P.bordercolor,{arrayOk:!0}),font:m({arrayOk:!0,editType:"none"}),align:s({},P.align,{arrayOk:!0}),namelength:s({},P.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(G,H,e){var m=e(3400),P=e(24040);G.exports=function(S){var v=S.calcdata,p=S._fullLayout;function r(u){return function(l){return m.coerceHoverinfo({hoverinfo:l},{_module:u._module},p)}}for(var t=0;t=0&&t.indexpt[0]._length||yr<0||yr>wt[0]._length)return u.unhoverRaw(Y,j)}if(j.pointerX=Qt+pt[0]._offset,j.pointerY=yr+wt[0]._offset,"xval"in j?Pe=h.flat(ge,j.xval):Pe=h.p2c(pt,Qt),"yval"in j?je=h.flat(ge,j.yval):je=h.p2c(wt,yr),!P(Pe[0])||!P(je[0]))return L.warn("Fx.hover failed",j,Y),u.unhoverRaw(Y,j)}var at=1/0;function xt(Wn,Qn){for(he=0;heRt&&(Ge.splice(0,Rt),at=Ge[0].distance),Te&&We!==0&&Ge.length===0){Tt.distance=We,Tt.index=!1;var On=Ne._module.hoverPoints(Tt,Wt,Zt,"closest",{hoverLayer:xe._hoverlayer});if(On&&(On=On.filter(function(Ia){return Ia.spikeDistance<=We})),On&&On.length){var bn,An=On.filter(function(Ia){return Ia.xa.showspikes&&Ia.xa.spikesnap!=="hovered data"});if(An.length){var Fn=An[0];P(Fn.x0)&&P(Fn.y0)&&(bn=Et(Fn),(!Xt.vLinePoint||Xt.vLinePoint.spikeDistance>bn.spikeDistance)&&(Xt.vLinePoint=bn))}var $n=On.filter(function(Ia){return Ia.ya.showspikes&&Ia.ya.spikesnap!=="hovered data"});if($n.length){var ha=$n[0];P(ha.x0)&&P(ha.y0)&&(bn=Et(ha),(!Xt.hLinePoint||Xt.hLinePoint.spikeDistance>bn.spikeDistance)&&(Xt.hLinePoint=bn))}}}}}xt();function At(Wn,Qn,mr){for(var en=null,Jr=1/0,vn,On=0;On0&&Math.abs(Wn.distance)$t-1;xr--)hr(Ge[xr]);Ge=tr,Ut()}var vr=Y._hoverdata,Hr=[],_r=X(Y),Dr=Q(Y);for(Ce=0;Ce1||Ge.length>1)||Re==="closest"&&gr&&Ge.length>1,Vn=f.combine(xe.plot_bgcolor||f.background,xe.paper_bgcolor),ia=k(Ge,{gd:Y,hovermode:Re,rotateLabels:Pn,bgColor:Vn,container:xe._hoverlayer,outerContainer:xe._paper.node(),commonLabelOpts:xe.hoverlabel,hoverdistance:xe.hoverdistance}),ya=ia.hoverLabels;if(h.isUnifiedHover(Re)||(F(ya,Pn,xe,ia.commonLabelBoundingBox),W(ya,Pn,xe._invScaleX,xe._invScaleY)),fe&&fe.tagName){var wa=g.getComponentMethod("annotations","hasClickToShow")(Y,Hr);a(m.select(fe),wa?"pointer":"")}!fe||te||!ne(Y,j,vr)||(vr&&Y.emit("plotly_unhover",{event:j,points:vr}),Y.emit("plotly_hover",{event:j,points:Y._hoverdata,xaxes:pt,yaxes:wt,xvals:Pe,yvals:je}))}function D(Y){return[Y.trace.index,Y.index,Y.x0,Y.y0,Y.name,Y.attr,Y.xa?Y.xa._id:"",Y.ya?Y.ya._id:""].join(",")}var N=/([\s\S]*)<\/extra>/;function k(Y,j){var se=j.gd,te=se._fullLayout,fe=j.hovermode,ge=j.rotateLabels,be=j.bgColor,xe=j.container,_e=j.outerContainer,De=j.commonLabelOpts||{};if(Y.length===0)return[[]];var Fe=j.fontFamily||T.HOVERFONT,Te=j.fontSize||T.HOVERFONTSIZE,Re=j.fontWeight||te.font.weight,Se=j.fontStyle||te.font.style,Ie=j.fontVariant||te.font.variant,Me=j.fontTextcase||te.font.textcase,Ve=j.fontLineposition||te.font.lineposition,et=j.fontShadow||te.font.shadow,ot=Y[0],Qe=ot.xa,$e=ot.ya,ht=fe.charAt(0),vt=ht+"Label",pt=ot[vt];if(pt===void 0&&Qe.type==="multicategory")for(var wt=0;wtte.width-Hr&&(_r=te.width-Hr),zt.attr("d","M"+(hr-_r)+",0L"+(hr-_r+E)+","+vr+E+"H"+Hr+"v"+vr+(A*2+ir.height)+"H"+-Hr+"V"+vr+E+"H"+(hr-_r-E)+"Z"),hr=_r,he.minX=hr-Hr,he.maxX=hr+Hr,Qe.side==="top"?(he.minY=xr-(A*2+ir.height),he.maxY=xr-A):(he.minY=xr+A,he.maxY=xr+(A*2+ir.height))}else{var Dr,an,tn;$e.side==="right"?(Dr="start",an=1,tn="",hr=Qe._offset+Qe._length):(Dr="end",an=-1,tn="-",hr=Qe._offset),xr=$e._offset+(ot.y0+ot.y1)/2,Dt.attr("text-anchor",Dr),zt.attr("d","M0,0L"+tn+E+","+E+"V"+(A+ir.height/2)+"h"+tn+(A*2+ir.width)+"V-"+(A+ir.height/2)+"H"+tn+E+"V-"+E+"Z"),he.minY=xr-(A+ir.height/2),he.maxY=xr+(A+ir.height/2),$e.side==="right"?(he.minX=hr+E,he.maxX=hr+E+(A*2+ir.width)):(he.minX=hr-E-(A*2+ir.width),he.maxX=hr-E);var Sn=ir.height/2,Tn=rt-ir.top-Sn,Tr="clip"+te._uid+"commonlabel"+$e._id,zr;if(hr=0?fr=Bt:Ut+yr=0?fr=Ut:Jt+yr=0?dr=Et:Vt+Ot=0?dr=Vt:ur+Ot=0,(Ue.idealAlign==="top"||!ln)&&fn?(tn-=Tn/2,Ue.anchor="end"):ln?(tn+=Tn/2,Ue.anchor="start"):Ue.anchor="middle",Ue.crossPos=tn;else{if(Ue.pos=tn,ln=an+Sn/2+Or<=ze,fn=an-Sn/2-Or>=0,(Ue.idealAlign==="left"||!ln)&&fn)an-=Sn/2,Ue.anchor="end";else if(ln)an+=Sn/2,Ue.anchor="start";else{Ue.anchor="middle";var Mn=Or/2,Pn=an+Mn-ze,Vn=an-Mn;Pn>0&&(an-=Pn),Vn<0&&(an+=-Vn)}Ue.crossPos=an}xr.attr("text-anchor",Ue.anchor),Hr&&vr.attr("text-anchor",Ue.anchor),zt.attr("transform",v(an,tn)+(ge?p(d):""))}),{hoverLabels:Ye,commonLabelBoundingBox:he}}function O(Y,j,se,te,fe,ge){var be="",xe="";Y.nameOverride!==void 0&&(Y.name=Y.nameOverride),Y.name&&(Y.trace._meta&&(Y.name=L.templateString(Y.name,Y.trace._meta)),be=$(Y.name,Y.nameLength));var _e=se.charAt(0),De=_e==="x"?"y":"x";Y.zLabel!==void 0?(Y.xLabel!==void 0&&(xe+="x: "+Y.xLabel+"
"),Y.yLabel!==void 0&&(xe+="y: "+Y.yLabel+"
"),Y.trace.type!=="choropleth"&&Y.trace.type!=="choroplethmapbox"&&(xe+=(xe?"z: ":"")+Y.zLabel)):j&&Y[_e+"Label"]===fe?xe=Y[De+"Label"]||"":Y.xLabel===void 0?Y.yLabel!==void 0&&Y.trace.type!=="scattercarpet"&&(xe=Y.yLabel):Y.yLabel===void 0?xe=Y.xLabel:xe="("+Y.xLabel+", "+Y.yLabel+")",(Y.text||Y.text===0)&&!Array.isArray(Y.text)&&(xe+=(xe?"
":"")+Y.text),Y.extraText!==void 0&&(xe+=(xe?"
":"")+Y.extraText),ge&&xe===""&&!Y.hovertemplate&&(be===""&&ge.remove(),xe=be);var Fe=Y.hovertemplate||!1;if(Fe){var Te=Y.hovertemplateLabels||Y;Y[_e+"Label"]!==fe&&(Te[_e+"other"]=Te[_e+"Val"],Te[_e+"otherLabel"]=Te[_e+"Label"]),xe=L.hovertemplateString(Fe,Te,te._d3locale,Y.eventData[0]||{},Y.trace._meta),xe=xe.replace(N,function(Re,Se){return be=$(Se,Y.nameLength),""})}return[xe,be]}function F(Y,j,se,te){var fe=j?"xa":"ya",ge=j?"ya":"xa",be=0,xe=1,_e=Y.size(),De=new Array(_e),Fe=0,Te=te.minX,Re=te.maxX,Se=te.minY,Ie=te.maxY,Me=function(Pe){return Pe*se._invScaleX},Ve=function(Pe){return Pe*se._invScaleY};Y.each(function(Pe){var je=Pe[fe],Ce=Pe[ge],he=je._id.charAt(0)==="x",me=je.range;Fe===0&&me&&me[0]>me[1]!==he&&(xe=-1);var Ne=0,Ze=he?se.width:se.height;if(se.hovermode==="x"||se.hovermode==="y"){var st=z(Pe,j),lt=Pe.anchor,Wt=lt==="end"?-1:1,Zt,Tt;if(lt==="middle")Zt=Pe.crossPos+(he?Ve(st.y-Pe.by/2):Me(Pe.bx/2+Pe.tx2width/2)),Tt=Zt+(he?Ve(Pe.by):Me(Pe.bx));else if(he)Zt=Pe.crossPos+Ve(E+st.y)-Ve(Pe.by/2-E),Tt=Zt+Ve(Pe.by);else{var Rt=Me(Wt*E+st.x),Xt=Rt+Me(Wt*Pe.bx);Zt=Pe.crossPos+Math.min(Rt,Xt),Tt=Pe.crossPos+Math.max(Rt,Xt)}he?Se!==void 0&&Ie!==void 0&&Math.min(Tt,Ie)-Math.max(Zt,Se)>1&&(Ce.side==="left"?(Ne=Ce._mainLinePosition,Ze=se.width):Ze=Ce._mainLinePosition):Te!==void 0&&Re!==void 0&&Math.min(Tt,Re)-Math.max(Zt,Te)>1&&(Ce.side==="top"?(Ne=Ce._mainLinePosition,Ze=se.height):Ze=Ce._mainLinePosition)}De[Fe++]=[{datum:Pe,traceIndex:Pe.trace.index,dp:0,pos:Pe.pos,posref:Pe.posref,size:Pe.by*(he?w:1)/2,pmin:Ne,pmax:Ze}]}),De.sort(function(Pe,je){return Pe[0].posref-je[0].posref||xe*(je[0].traceIndex-Pe[0].traceIndex)});var et,ot,Qe,$e,ht,vt,pt;function wt(Pe){var je=Pe[0],Ce=Pe[Pe.length-1];if(ot=je.pmin-je.pos-je.dp+je.size,Qe=Ce.pos+Ce.dp+Ce.size-je.pmax,ot>.01){for(ht=Pe.length-1;ht>=0;ht--)Pe[ht].dp+=ot;et=!1}if(!(Qe<.01)){if(ot<-.01){for(ht=Pe.length-1;ht>=0;ht--)Pe[ht].dp-=Qe;et=!1}if(et){var he=0;for($e=0;$eje.pmax&&he++;for($e=Pe.length-1;$e>=0&&!(he<=0);$e--)vt=Pe[$e],vt.pos>je.pmax-1&&(vt.del=!0,he--);for($e=0;$e=0;ht--)Pe[ht].dp-=Qe;for($e=Pe.length-1;$e>=0&&!(he<=0);$e--)vt=Pe[$e],vt.pos+vt.dp+vt.size>je.pmax&&(vt.del=!0,he--)}}}for(;!et&&be<=_e;){for(be++,et=!0,$e=0;$e.01&&ze.pmin===He.pmin&&ze.pmax===He.pmax){for(ht=rt.length-1;ht>=0;ht--)rt[ht].dp+=ot;for(Ct.push.apply(Ct,rt),De.splice($e+1,1),pt=0,ht=Ct.length-1;ht>=0;ht--)pt+=Ct[ht].dp;for(Qe=pt/Ct.length,ht=Ct.length-1;ht>=0;ht--)Ct[ht].dp-=Qe;et=!1}else $e++}De.forEach(wt)}for($e=De.length-1;$e>=0;$e--){var We=De[$e];for(ht=We.length-1;ht>=0;ht--){var Ge=We[ht],Le=Ge.datum;Le.offset=Ge.dp,Le.del=Ge.del}}}function z(Y,j){var se=0,te=Y.offset;return j&&(te*=-y,se=Y.offset*C),{x:se,y:te}}function B(Y){var j={start:1,end:-1,middle:0}[Y.anchor],se=j*(E+A),te=se+j*(Y.txwidth+A),fe=Y.anchor==="middle";return fe&&(se-=Y.tx2width/2,te+=Y.txwidth/2+A),{alignShift:j,textShiftX:se,text2ShiftX:te}}function W(Y,j,se,te){var fe=function(be){return be*se},ge=function(be){return be*te};Y.each(function(be){var xe=m.select(this);if(be.del)return xe.remove();var _e=xe.select("text.nums"),De=be.anchor,Fe=De==="end"?-1:1,Te=B(be),Re=z(be,j),Se=Re.x,Ie=Re.y,Me=De==="middle";xe.select("path").attr("d",Me?"M-"+fe(be.bx/2+be.tx2width/2)+","+ge(Ie-be.by/2)+"h"+fe(be.bx)+"v"+ge(be.by)+"h-"+fe(be.bx)+"Z":"M0,0L"+fe(Fe*E+Se)+","+ge(E+Ie)+"v"+ge(be.by/2-E)+"h"+fe(Fe*be.bx)+"v-"+ge(be.by)+"H"+fe(Fe*E+Se)+"V"+ge(Ie-E)+"Z");var Ve=Se+Te.textShiftX,et=Ie+be.ty0-be.by/2+A,ot=be.textAlign||"auto";ot!=="auto"&&(ot==="left"&&De!=="start"?(_e.attr("text-anchor","start"),Ve=Me?-be.bx/2-be.tx2width/2+A:-be.bx-A):ot==="right"&&De!=="end"&&(_e.attr("text-anchor","end"),Ve=Me?be.bx/2-be.tx2width/2-A:be.bx+A)),_e.call(t.positionText,fe(Ve),ge(et)),be.tx2width&&(xe.select("text.name").call(t.positionText,fe(Te.text2ShiftX+Te.alignShift*A+Se),ge(Ie+be.ty0-be.by/2+A)),xe.select("rect").call(n.setRect,fe(Te.text2ShiftX+(Te.alignShift-1)*be.tx2width/2+Se),ge(Ie-be.by/2-1),fe(be.tx2width),ge(be.by+2)))})}function J(Y,j){var se=Y.index,te=Y.trace||{},fe=Y.cd[0],ge=Y.cd[se]||{};function be(Re){return Re||P(Re)&&Re===0}var xe=Array.isArray(se)?function(Re,Se){var Ie=L.castOption(fe,se,Re);return be(Ie)?Ie:L.extractOption({},te,"",Se)}:function(Re,Se){return L.extractOption(ge,te,Re,Se)};function _e(Re,Se,Ie){var Me=xe(Se,Ie);be(Me)&&(Y[Re]=Me)}if(_e("hoverinfo","hi","hoverinfo"),_e("bgcolor","hbg","hoverlabel.bgcolor"),_e("borderColor","hbc","hoverlabel.bordercolor"),_e("fontFamily","htf","hoverlabel.font.family"),_e("fontSize","hts","hoverlabel.font.size"),_e("fontColor","htc","hoverlabel.font.color"),_e("fontWeight","htw","hoverlabel.font.weight"),_e("fontStyle","hty","hoverlabel.font.style"),_e("fontVariant","htv","hoverlabel.font.variant"),_e("nameLength","hnl","hoverlabel.namelength"),_e("textAlign","hta","hoverlabel.align"),Y.posref=j==="y"||j==="closest"&&te.orientation==="h"?Y.xa._offset+(Y.x0+Y.x1)/2:Y.ya._offset+(Y.y0+Y.y1)/2,Y.x0=L.constrain(Y.x0,0,Y.xa._length),Y.x1=L.constrain(Y.x1,0,Y.xa._length),Y.y0=L.constrain(Y.y0,0,Y.ya._length),Y.y1=L.constrain(Y.y1,0,Y.ya._length),Y.xLabelVal!==void 0&&(Y.xLabel="xLabel"in Y?Y.xLabel:l.hoverLabelText(Y.xa,Y.xLabelVal,te.xhoverformat),Y.xVal=Y.xa.c2d(Y.xLabelVal)),Y.yLabelVal!==void 0&&(Y.yLabel="yLabel"in Y?Y.yLabel:l.hoverLabelText(Y.ya,Y.yLabelVal,te.yhoverformat),Y.yVal=Y.ya.c2d(Y.yLabelVal)),Y.zLabelVal!==void 0&&Y.zLabel===void 0&&(Y.zLabel=String(Y.zLabelVal)),!isNaN(Y.xerr)&&!(Y.xa.type==="log"&&Y.xerr<=0)){var De=l.tickText(Y.xa,Y.xa.c2l(Y.xerr),"hover").text;Y.xerrneg!==void 0?Y.xLabel+=" +"+De+" / -"+l.tickText(Y.xa,Y.xa.c2l(Y.xerrneg),"hover").text:Y.xLabel+=" ± "+De,j==="x"&&(Y.distance+=1)}if(!isNaN(Y.yerr)&&!(Y.ya.type==="log"&&Y.yerr<=0)){var Fe=l.tickText(Y.ya,Y.ya.c2l(Y.yerr),"hover").text;Y.yerrneg!==void 0?Y.yLabel+=" +"+Fe+" / -"+l.tickText(Y.ya,Y.ya.c2l(Y.yerrneg),"hover").text:Y.yLabel+=" ± "+Fe,j==="y"&&(Y.distance+=1)}var Te=Y.hoverinfo||Y.trace.hoverinfo;return Te&&Te!=="all"&&(Te=Array.isArray(Te)?Te:Te.split("+"),Te.indexOf("x")===-1&&(Y.xLabel=void 0),Te.indexOf("y")===-1&&(Y.yLabel=void 0),Te.indexOf("z")===-1&&(Y.zLabel=void 0),Te.indexOf("text")===-1&&(Y.text=void 0),Te.indexOf("name")===-1&&(Y.name=void 0)),Y}function re(Y,j,se){var te=se.container,fe=se.fullLayout,ge=fe._size,be=se.event,xe=!!j.hLinePoint,_e=!!j.vLinePoint,De,Fe;if(te.selectAll(".spikeline").remove(),!!(_e||xe)){var Te=f.combine(fe.plot_bgcolor,fe.paper_bgcolor);if(xe){var Re=j.hLinePoint,Se,Ie;De=Re&&Re.xa,Fe=Re&&Re.ya;var Me=Fe.spikesnap;Me==="cursor"?(Se=be.pointerX,Ie=be.pointerY):(Se=De._offset+Re.x,Ie=Fe._offset+Re.y);var Ve=s.readability(Re.color,Te)<1.5?f.contrast(Te):Re.color,et=Fe.spikemode,ot=Fe.spikethickness,Qe=Fe.spikecolor||Ve,$e=l.getPxPosition(Y,Fe),ht,vt;if(et.indexOf("toaxis")!==-1||et.indexOf("across")!==-1){if(et.indexOf("toaxis")!==-1&&(ht=$e,vt=Se),et.indexOf("across")!==-1){var pt=Fe._counterDomainMin,wt=Fe._counterDomainMax;Fe.anchor==="free"&&(pt=Math.min(pt,Fe.position),wt=Math.max(wt,Fe.position)),ht=ge.l+pt*ge.w,vt=ge.l+wt*ge.w}te.insert("line",":first-child").attr({x1:ht,x2:vt,y1:Ie,y2:Ie,"stroke-width":ot,stroke:Qe,"stroke-dasharray":n.dashStyle(Fe.spikedash,ot)}).classed("spikeline",!0).classed("crisp",!0),te.insert("line",":first-child").attr({x1:ht,x2:vt,y1:Ie,y2:Ie,"stroke-width":ot+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}et.indexOf("marker")!==-1&&te.insert("circle",":first-child").attr({cx:$e+(Fe.side!=="right"?ot:-ot),cy:Ie,r:ot,fill:Qe}).classed("spikeline",!0)}if(_e){var Ct=j.vLinePoint,rt,ze;De=Ct&&Ct.xa,Fe=Ct&&Ct.ya;var He=De.spikesnap;He==="cursor"?(rt=be.pointerX,ze=be.pointerY):(rt=De._offset+Ct.x,ze=Fe._offset+Ct.y);var We=s.readability(Ct.color,Te)<1.5?f.contrast(Te):Ct.color,Ge=De.spikemode,Le=De.spikethickness,Pe=De.spikecolor||We,je=l.getPxPosition(Y,De),Ce,he;if(Ge.indexOf("toaxis")!==-1||Ge.indexOf("across")!==-1){if(Ge.indexOf("toaxis")!==-1&&(Ce=je,he=ze),Ge.indexOf("across")!==-1){var me=De._counterDomainMin,Ne=De._counterDomainMax;De.anchor==="free"&&(me=Math.min(me,De.position),Ne=Math.max(Ne,De.position)),Ce=ge.t+(1-Ne)*ge.h,he=ge.t+(1-me)*ge.h}te.insert("line",":first-child").attr({x1:rt,x2:rt,y1:Ce,y2:he,"stroke-width":Le,stroke:Pe,"stroke-dasharray":n.dashStyle(De.spikedash,Le)}).classed("spikeline",!0).classed("crisp",!0),te.insert("line",":first-child").attr({x1:rt,x2:rt,y1:Ce,y2:he,"stroke-width":Le+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}Ge.indexOf("marker")!==-1&&te.insert("circle",":first-child").attr({cx:rt,cy:je-(De.side!=="top"?Le:-Le),r:Le,fill:Pe}).classed("spikeline",!0)}}}function ne(Y,j,se){if(!se||se.length!==Y._hoverdata.length)return!0;for(var te=se.length-1;te>=0;te--){var fe=se[te],ge=Y._hoverdata[te];if(fe.curveNumber!==ge.curveNumber||String(fe.pointNumber)!==String(ge.pointNumber)||String(fe.pointNumbers)!==String(ge.pointNumbers))return!0}return!1}function le(Y,j){return!0}function $(Y,j){return t.plainText(Y||"",{len:j,allowedTags:["br","sub","sup","b","i","em"]})}function Z(Y,j){for(var se=j.charAt(0),te=[],fe=[],ge=[],be=0;be1)){delete u.grid;return}if(!T&&!c&&!i){var o=y("pattern")==="independent";o&&(T=!0)}C._hasSubplotGrid=T;var M=y("roworder"),b=M==="top to bottom",I=T?.2:.1,D=T?.3:.1,N,k;d&&u._splomGridDflt&&(N=u._splomGridDflt.xside,k=u._splomGridDflt.yside),C._domains={x:t("x",y,I,N,A),y:t("y",y,D,k,E,b)}}function t(f,u,l,g,h,T){var c=u(f+"gap",l),i=u("domain."+f);u(f+"side",g);for(var d=new Array(h),x=i[0],w=(i[1]-x)/(h-c),C=w*(1-c),y=0;y(t==="legend"?1:0));if(b===!1&&(n[t]=void 0),!(b===!1&&!u.uirevision)&&(g("uirevision",n.uirevision),b!==!1)){g("borderwidth");var I=g("orientation"),D=g("yref"),N=g("xref"),k=I==="h",O=D==="paper",F=N==="paper",z,B,W,J="left";k?(z=0,m.getComponentMethod("rangeslider","isVisible")(a.xaxis)?O?(B=1.1,W="bottom"):(B=1,W="top"):O?(B=-.1,W="top"):(B=0,W="bottom")):(B=1,W="auto",F?z=1.02:(z=1,J="right")),P.coerce(u,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:z}},"x"),P.coerce(u,l,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:B}},"y"),g("traceorder",y),p.isGrouped(n[t])&&g("tracegroupgap"),g("entrywidth"),g("entrywidthmode"),g("indentation"),g("itemsizing"),g("itemwidth"),g("itemclick"),g("itemdoubleclick"),g("groupclick"),g("xanchor",J),g("yanchor",W),g("valign"),P.noneOrAll(u,l,["x","y"]);var re=g("title.text");if(re){g("title.side",k?"left":"top");var ne=P.extendFlat({},h,{size:P.bigFont(h.size)});P.coerceFont(g,"title.font",ne)}}}}G.exports=function(a,n,f){var u,l=f.slice(),g=n.shapes;if(g)for(u=0;u1)}var j=J.hiddenlabels||[];if(!$&&(!J.showlegend||!Z.length))return le.selectAll("."+re).remove(),J._topdefs.select("#"+ne).remove(),s.autoMargin(z,re);var se=P.ensureSingle(le,"g",re,function(Te){$||Te.attr("pointer-events","all")}),te=P.ensureSingleById(J._topdefs,"clipPath",ne,function(Te){Te.append("rect")}),fe=P.ensureSingle(se,"rect","bg",function(Te){Te.attr("shape-rendering","crispEdges")});fe.call(r.stroke,W.bordercolor).call(r.fill,W.bgcolor).style("stroke-width",W.borderwidth+"px");var ge=P.ensureSingle(se,"g","scrollbox"),be=W.title;W._titleWidth=0,W._titleHeight=0;var xe;be.text?(xe=P.ensureSingle(ge,"text",re+"titletext"),xe.attr("text-anchor","start").call(p.font,be.font).text(be.text),M(xe,ge,z,W,i)):ge.selectAll("."+re+"titletext").remove();var _e=P.ensureSingle(se,"rect","scrollbar",function(Te){Te.attr(n.scrollBarEnterAttrs).call(r.fill,n.scrollBarColor)}),De=ge.selectAll("g.groups").data(Z);De.enter().append("g").attr("class","groups"),De.exit().remove();var Fe=De.selectAll("g.traces").data(P.identity);Fe.enter().append("g").attr("class","traces"),Fe.exit().remove(),Fe.style("opacity",function(Te){var Re=Te[0].trace;return L.traceIs(Re,"pie-like")?j.indexOf(Te[0].label)!==-1?.5:1:Re.visible==="legendonly"?.5:1}).each(function(){m.select(this).call(E,z,W)}).call(T,z,W).each(function(){$||m.select(this).call(o,z,re)}),P.syncOrAsync([s.previousPromises,function(){return D(z,De,Fe,W)},function(){var Te=J._size,Re=W.borderwidth,Se=W.xref==="paper",Ie=W.yref==="paper";if(be.text&&x(xe,W,Re),!$){var Me,Ve;Se?Me=Te.l+Te.w*W.x-l[k(W)]*W._width:Me=J.width*W.x-l[k(W)]*W._width,Ie?Ve=Te.t+Te.h*(1-W.y)-l[O(W)]*W._effHeight:Ve=J.height*(1-W.y)-l[O(W)]*W._effHeight;var et=N(z,re,Me,Ve);if(et)return;if(J.margin.autoexpand){var ot=Me,Qe=Ve;Me=Se?P.constrain(Me,0,J.width-W._width):ot,Ve=Ie?P.constrain(Ve,0,J.height-W._effHeight):Qe,Me!==ot&&P.log("Constrain "+re+".x to make legend fit inside graph"),Ve!==Qe&&P.log("Constrain "+re+".y to make legend fit inside graph")}p.setTranslate(se,Me,Ve)}if(_e.on(".drag",null),se.on("wheel",null),$||W._height<=W._maxHeight||z._context.staticPlot){var $e=W._effHeight;$&&($e=W._height),fe.attr({width:W._width-Re,height:$e-Re,x:Re/2,y:Re/2}),p.setTranslate(ge,0,0),te.select("rect").attr({width:W._width-2*Re,height:$e-2*Re,x:Re,y:Re}),p.setClipUrl(ge,ne,z),p.setRect(_e,0,0,0,0),delete W._scrollY}else{var ht=Math.max(n.scrollBarMinHeight,W._effHeight*W._effHeight/W._height),vt=W._effHeight-ht-2*n.scrollBarMargin,pt=W._height-W._effHeight,wt=vt/pt,Ct=Math.min(W._scrollY||0,pt);fe.attr({width:W._width-2*Re+n.scrollBarWidth+n.scrollBarMargin,height:W._effHeight-Re,x:Re/2,y:Re/2}),te.select("rect").attr({width:W._width-2*Re+n.scrollBarWidth+n.scrollBarMargin,height:W._effHeight-2*Re,x:Re,y:Re+Ct}),p.setClipUrl(ge,ne,z),je(Ct,ht,wt),se.on("wheel",function(){Ct=P.constrain(W._scrollY+m.event.deltaY/vt*pt,0,pt),je(Ct,ht,wt),Ct!==0&&Ct!==pt&&m.event.preventDefault()});var rt,ze,He,We=function(Ze,st,lt){var Wt=(lt-st)/wt+Ze;return P.constrain(Wt,0,pt)},Ge=function(Ze,st,lt){var Wt=(st-lt)/wt+Ze;return P.constrain(Wt,0,pt)},Le=m.behavior.drag().on("dragstart",function(){var Ze=m.event.sourceEvent;Ze.type==="touchstart"?rt=Ze.changedTouches[0].clientY:rt=Ze.clientY,He=Ct}).on("drag",function(){var Ze=m.event.sourceEvent;Ze.buttons===2||Ze.ctrlKey||(Ze.type==="touchmove"?ze=Ze.changedTouches[0].clientY:ze=Ze.clientY,Ct=We(He,rt,ze),je(Ct,ht,wt))});_e.call(Le);var Pe=m.behavior.drag().on("dragstart",function(){var Ze=m.event.sourceEvent;Ze.type==="touchstart"&&(rt=Ze.changedTouches[0].clientY,He=Ct)}).on("drag",function(){var Ze=m.event.sourceEvent;Ze.type==="touchmove"&&(ze=Ze.changedTouches[0].clientY,Ct=Ge(He,rt,ze),je(Ct,ht,wt))});ge.call(Pe)}function je(Ze,st,lt){W._scrollY=z._fullLayout[re]._scrollY=Ze,p.setTranslate(ge,0,-Ze),p.setRect(_e,W._width,n.scrollBarMargin+Ze*lt,n.scrollBarWidth,st),te.select("rect").attr("y",Re+Ze)}if(z._context.edits.legendPosition){var Ce,he,me,Ne;se.classed("cursor-move",!0),v.init({element:se.node(),gd:z,prepFn:function(Ze){if(Ze.target!==_e.node()){var st=p.getTranslate(se);me=st.x,Ne=st.y}},moveFn:function(Ze,st){if(me!==void 0&&Ne!==void 0){var lt=me+Ze,Wt=Ne+st;p.setTranslate(se,lt,Wt),Ce=v.align(lt,W._width,Te.l,Te.l+Te.w,W.xanchor),he=v.align(Wt+W._height,-W._height,Te.t+Te.h,Te.t,W.yanchor)}},doneFn:function(){if(Ce!==void 0&&he!==void 0){var Ze={};Ze[re+".x"]=Ce,Ze[re+".y"]=he,L.call("_guiRelayout",z,Ze)}},clickFn:function(Ze,st){var lt=le.selectAll("g.traces").filter(function(){var Wt=this.getBoundingClientRect();return st.clientX>=Wt.left&&st.clientX<=Wt.right&&st.clientY>=Wt.top&&st.clientY<=Wt.bottom});lt.size()>0&&y(z,se,lt,Ze,st)}})}}],z)}}function C(z,B,W){var J=z[0],re=J.width,ne=B.entrywidthmode,le=J.trace.legendwidth||B.entrywidth;return ne==="fraction"?B._maxWidth*le:W+(le||re)}function y(z,B,W,J,re){var ne=W.data()[0][0].trace,le={event:re,node:W.node(),curveNumber:ne.index,expandedIndex:ne._expandedIndex,data:z.data,layout:z.layout,frames:z._transitionData._frames,config:z._context,fullData:z._fullData,fullLayout:z._fullLayout};ne._group&&(le.group=ne._group),L.traceIs(ne,"pie-like")&&(le.label=W.datum()[0].label);var $=S.triggerHandler(z,"plotly_legendclick",le);if(J===1){if($===!1)return;B._clickTimeout=setTimeout(function(){z._fullLayout&&a(W,z,J)},z._context.doubleClickDelay)}else if(J===2){B._clickTimeout&&clearTimeout(B._clickTimeout),z._legendMouseDownTime=0;var Z=S.triggerHandler(z,"plotly_legenddoubleclick",le);Z!==!1&&$!==!1&&a(W,z,J)}}function E(z,B,W){var J=F(W),re=z.data()[0][0],ne=re.trace,le=L.traceIs(ne,"pie-like"),$=!W._inHover&&B._context.edits.legendText&&!le,Z=W._maxNameLength,ie,X;re.groupTitle?(ie=re.groupTitle.text,X=re.groupTitle.font):(X=W.font,W.entries?ie=re.text:(ie=le?re.label:ne.name,ne._meta&&(ie=P.templateString(ie,ne._meta))));var Q=P.ensureSingle(z,"text",J+"text");Q.attr("text-anchor","start").call(p.font,X).text($?A(ie,Z):ie);var oe=W.indentation+W.itemwidth+n.itemGap*2;t.positionText(Q,oe,0),$?Q.call(t.makeEditable,{gd:B,text:ie}).call(M,z,B,W).on("edit",function(Y){this.text(A(Y,Z)).call(M,z,B,W);var j=re.trace._fullInput||{},se={};if(L.hasTransform(j,"groupby")){var te=L.getTransformIndices(j,"groupby"),fe=te[te.length-1],ge=P.keyedContainer(j,"transforms["+fe+"].styles","target","value.name");ge.set(re.trace._group,Y),se=ge.constructUpdate()}else se.name=Y;return j._isShape?L.call("_guiRelayout",B,"shapes["+ne.index+"].name",se.name):L.call("_guiRestyle",B,se,ne.index)}):M(Q,z,B,W)}function A(z,B){var W=Math.max(4,B);if(z&&z.trim().length>=W/2)return z;z=z||"";for(var J=W-z.length;J>0;J--)z+=" ";return z}function o(z,B,W){var J=B._context.doubleClickDelay,re,ne=1,le=P.ensureSingle(z,"rect",W+"toggle",function($){B._context.staticPlot||$.style("cursor","pointer").attr("pointer-events","all"),$.call(r.fill,"rgba(0,0,0,0)")});B._context.staticPlot||(le.on("mousedown",function(){re=new Date().getTime(),re-B._legendMouseDownTimeJ&&(ne=Math.max(ne-1,1)),y(B,$,z,ne,m.event)}}))}function M(z,B,W,J,re){J._inHover&&z.attr("data-notex",!0),t.convertToTspans(z,W,function(){b(B,W,J,re)})}function b(z,B,W,J){var re=z.data()[0][0];if(!W._inHover&&re&&!re.trace.showlegend){z.remove();return}var ne=z.select("g[class*=math-group]"),le=ne.node(),$=F(W);W||(W=B._fullLayout[$]);var Z=W.borderwidth,ie;J===i?ie=W.title.font:re.groupTitle?ie=re.groupTitle.font:ie=W.font;var X=ie.size*u,Q,oe;if(le){var Y=p.bBox(le);Q=Y.height,oe=Y.width,J===i?p.setTranslate(ne,Z,Z+Q*.75):p.setTranslate(ne,0,Q*.25)}else{var j="."+$+(J===i?"title":"")+"text",se=z.select(j),te=t.lineCount(se),fe=se.node();if(Q=X*te,oe=fe?p.bBox(fe).width:0,J===i)W.title.side==="left"&&(oe+=n.itemGap*2),t.positionText(se,Z+n.titlePad,Z+X);else{var ge=n.itemGap*2+W.indentation+W.itemwidth;re.groupTitle&&(ge=n.itemGap,oe-=W.indentation+W.itemwidth),t.positionText(se,ge,-X*((te-1)/2-.3))}}J===i?(W._titleWidth=oe,W._titleHeight=Q):(re.lineHeight=X,re.height=Math.max(Q,16)+3,re.width=oe)}function I(z){var B=0,W=0,J=z.title.side;return J&&(J.indexOf("left")!==-1&&(B=z._titleWidth),J.indexOf("top")!==-1&&(W=z._titleHeight)),[B,W]}function D(z,B,W,J){var re=z._fullLayout,ne=F(J);J||(J=re[ne]);var le=re._size,$=c.isVertical(J),Z=c.isGrouped(J),ie=J.entrywidthmode==="fraction",X=J.borderwidth,Q=2*X,oe=n.itemGap,Y=J.indentation+J.itemwidth+oe*2,j=2*(X+oe),se=O(J),te=J.y<0||J.y===0&&se==="top",fe=J.y>1||J.y===1&&se==="bottom",ge=J.tracegroupgap,be={};J._maxHeight=Math.max(te||fe?re.height/2:le.h,30);var xe=0;J._width=0,J._height=0;var _e=I(J);if($)W.each(function(He){var We=He[0].height;p.setTranslate(this,X+_e[0],X+_e[1]+J._height+We/2+oe),J._height+=We,J._width=Math.max(J._width,He[0].width)}),xe=Y+J._width,J._width+=oe+Y+Q,J._height+=j,Z&&(B.each(function(He,We){p.setTranslate(this,0,We*J.tracegroupgap)}),J._height+=(J._lgroupsLength-1)*J.tracegroupgap);else{var De=k(J),Fe=J.x<0||J.x===0&&De==="right",Te=J.x>1||J.x===1&&De==="left",Re=fe||te,Se=re.width/2;J._maxWidth=Math.max(Fe?Re&&De==="left"?le.l+le.w:Se:Te?Re&&De==="right"?le.r+le.w:Se:le.w,2*Y);var Ie=0,Me=0;W.each(function(He){var We=C(He,J,Y);Ie=Math.max(Ie,We),Me+=We}),xe=null;var Ve=0;if(Z){var et=0,ot=0,Qe=0;B.each(function(){var He=0,We=0;m.select(this).selectAll("g.traces").each(function(Le){var Pe=C(Le,J,Y),je=Le[0].height;p.setTranslate(this,_e[0],_e[1]+X+oe+je/2+We),We+=je,He=Math.max(He,Pe),be[Le[0].trace.legendgroup]=He});var Ge=He+oe;ot>0&&Ge+X+ot>J._maxWidth?(Ve=Math.max(Ve,ot),ot=0,Qe+=et+ge,et=We):et=Math.max(et,We),p.setTranslate(this,ot,Qe),ot+=Ge}),J._width=Math.max(Ve,ot)+X,J._height=Qe+et+j}else{var $e=W.size(),ht=Me+Q+($e-1)*oe=J._maxWidth&&(Ve=Math.max(Ve,Ct),pt=0,wt+=vt,J._height+=vt,vt=0),p.setTranslate(this,_e[0]+X+pt,_e[1]+X+wt+We/2+oe),Ct=pt+Ge+oe,pt+=Le,vt=Math.max(vt,We)}),ht?(J._width=pt+Q,J._height=vt+j):(J._width=Math.max(Ve,Ct)+Q,J._height+=vt+j)}}J._width=Math.ceil(Math.max(J._width+_e[0],J._titleWidth+2*(X+n.titlePad))),J._height=Math.ceil(Math.max(J._height+_e[1],J._titleHeight+2*(X+n.itemGap))),J._effHeight=Math.min(J._height,J._maxHeight);var rt=z._context.edits,ze=rt.legendText||rt.legendPosition;W.each(function(He){var We=m.select(this).select("."+ne+"toggle"),Ge=He[0].height,Le=He[0].trace.legendgroup,Pe=C(He,J,Y);Z&&Le!==""&&(Pe=be[Le]);var je=ze?Y:xe||Pe;!$&&!ie&&(je+=oe/2),p.setRect(We,0,-Ge/2,je,Ge)})}function N(z,B,W,J){var re=z._fullLayout,ne=re[B],le=k(ne),$=O(ne),Z=ne.xref==="paper",ie=ne.yref==="paper";z._fullLayout._reservedMargin[B]={};var X=ne.y<.5?"b":"t",Q=ne.x<.5?"l":"r",oe={r:re.width-W,l:W+ne._width,b:re.height-J,t:J+ne._effHeight};if(Z&&ie)return s.autoMargin(z,B,{x:ne.x,y:ne.y,l:ne._width*l[le],r:ne._width*g[le],b:ne._effHeight*g[$],t:ne._effHeight*l[$]});Z?z._fullLayout._reservedMargin[B][X]=oe[X]:ie||ne.orientation==="v"?z._fullLayout._reservedMargin[B][Q]=oe[Q]:z._fullLayout._reservedMargin[B][X]=oe[X]}function k(z){return P.isRightAnchor(z)?"right":P.isCenterAnchor(z)?"center":"left"}function O(z){return P.isBottomAnchor(z)?"bottom":P.isMiddleAnchor(z)?"middle":"top"}function F(z){return z._id||"legend"}},35456:function(G,H,e){var m=e(24040),P=e(42451);G.exports=function(L,S,v){var p=S._inHover,r=P.isGrouped(S),t=P.isReversed(S),a={},n=[],f=!1,u={},l=0,g=0,h,T;function c(z,B,W){if(S.visible!==!1&&!(v&&z!==S._id))if(B===""||!P.isGrouped(S)){var J="~~i"+l;n.push(J),a[J]=[W],l++}else n.indexOf(B)===-1?(n.push(B),f=!0,a[B]=[W]):a[B].push(W)}for(h=0;hb&&(M=b)}A[h][0]._groupMinRank=M,A[h][0]._preGroupSort=h}var I=function(z,B){return z[0]._groupMinRank-B[0]._groupMinRank||z[0]._preGroupSort-B[0]._preGroupSort},D=function(z,B){return z.trace.legendrank-B.trace.legendrank||z._preSort-B._preSort};for(A.forEach(function(z,B){z[0]._preGroupSort=B}),A.sort(I),h=0;h0)Q=Z.width;else return 0;return E?X:Math.min(Q,ie)};x.each(function($){var Z=m.select(this),ie=s.ensureSingle(Z,"g","layers");ie.style("opacity",$[0].trace.opacity);var X=C.indentation,Q=C.valign,oe=$[0].lineHeight,Y=$[0].height;if(Q==="middle"&&X===0||!oe||!Y)ie.attr("transform",null);else{var j={top:1,bottom:-1}[Q],se=j*(.5*(oe-Y+3))||0,te=C.indentation;ie.attr("transform",L(te,se))}var fe=ie.selectAll("g.legendfill").data([$]);fe.enter().append("g").classed("legendfill",!0);var ge=ie.selectAll("g.legendlines").data([$]);ge.enter().append("g").classed("legendlines",!0);var be=ie.selectAll("g.legendsymbols").data([$]);be.enter().append("g").classed("legendsymbols",!0),be.selectAll("g.legendpoints").data([$]).enter().append("g").classed("legendpoints",!0)}).each(le).each(N).each(O).each(k).each(z).each(re).each(J).each(I).each(D).each(B).each(W);function I($){var Z=c($),ie=Z.showFill,X=Z.showLine,Q=Z.showGradientLine,oe=Z.showGradientFill,Y=Z.anyFill,j=Z.anyLine,se=$[0],te=se.trace,fe,ge,be=p(te),xe=be.colorscale,_e=be.reversescale,De=function(Ve){if(Ve.size())if(ie)S.fillGroupStyle(Ve,w,!0);else{var et="legendfill-"+te.uid;S.gradient(Ve,w,et,T(_e),xe,"fill")}},Fe=function(Ve){if(Ve.size()){var et="legendline-"+te.uid;S.lineGroupStyle(Ve),S.gradient(Ve,w,et,T(_e),xe,"stroke")}},Te=r.hasMarkers(te)||!Y?"M5,0":j?"M5,-2":"M5,-3",Re=m.select(this),Se=Re.select(".legendfill").selectAll("path").data(ie||oe?[$]:[]);if(Se.enter().append("path").classed("js-fill",!0),Se.exit().remove(),Se.attr("d",Te+"h"+A+"v6h-"+A+"z").call(De),X||Q){var Ie=b(void 0,te.line,g,u);ge=s.minExtend(te,{line:{width:Ie}}),fe=[s.minExtend(se,{trace:ge})]}var Me=Re.select(".legendlines").selectAll("path").data(X||Q?[fe]:[]);Me.enter().append("path").classed("js-line",!0),Me.exit().remove(),Me.attr("d",Te+(Q?"l"+A+",0.0001":"h"+A)).call(X?S.lineGroupStyle:Fe)}function D($){var Z=c($),ie=Z.anyFill,X=Z.anyLine,Q=Z.showLine,oe=Z.showMarker,Y=$[0],j=Y.trace,se=!oe&&!X&&!ie&&r.hasText(j),te,fe;function ge(Se,Ie,Me,Ve){var et=s.nestedProperty(j,Se).get(),ot=s.isArrayOrTypedArray(et)&&Ie?Ie(et):et;if(E&&ot&&Ve!==void 0&&(ot=Ve),Me){if(otMe[1])return Me[1]}return ot}function be(Se){return Y._distinct&&Y.index&&Se[Y.index]?Se[Y.index]:Se[0]}if(oe||se||Q){var xe={},_e={};if(oe){xe.mc=ge("marker.color",be),xe.mx=ge("marker.symbol",be),xe.mo=ge("marker.opacity",s.mean,[.2,1]),xe.mlc=ge("marker.line.color",be),xe.mlw=ge("marker.line.width",s.mean,[0,5],l),_e.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=ge("marker.size",s.mean,[2,16],f);xe.ms=De,_e.marker.size=De}Q&&(_e.line={width:ge("line.width",be,[0,10],u)}),se&&(xe.tx="Aa",xe.tp=ge("textposition",be),xe.ts=10,xe.tc=ge("textfont.color",be),xe.tf=ge("textfont.family",be),xe.tw=ge("textfont.weight",be),xe.ty=ge("textfont.style",be),xe.tv=ge("textfont.variant",be),xe.tC=ge("textfont.textcase",be),xe.tE=ge("textfont.lineposition",be),xe.tS=ge("textfont.shadow",be)),te=[s.minExtend(Y,xe)],fe=s.minExtend(j,_e),fe.selectedpoints=null,fe.texttemplate=null}var Fe=m.select(this).select("g.legendpoints"),Te=Fe.selectAll("path.scatterpts").data(oe?te:[]);Te.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",M),Te.exit().remove(),Te.call(S.pointStyle,fe,w),oe&&(te[0].mrc=3);var Re=Fe.selectAll("g.pointtext").data(se?te:[]);Re.enter().append("g").classed("pointtext",!0).append("text").attr("transform",M),Re.exit().remove(),Re.selectAll("text").call(S.textPointStyle,fe,w)}function N($){var Z=$[0].trace,ie=Z.type==="waterfall";if($[0]._distinct&&ie){var X=$[0].trace[$[0].dir].marker;return $[0].mc=X.color,$[0].mlw=X.line.width,$[0].mlc=X.line.color,F($,this,"waterfall")}var Q=[];Z.visible&&ie&&(Q=$[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=m.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(Q);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",M).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(Y){var j=m.select(this),se=Z[Y[0]].marker,te=b(void 0,se.line,h,l);j.attr("d",Y[1]).style("stroke-width",te+"px").call(v.fill,se.color),te&&j.call(v.stroke,se.line.color)})}function k($){F($,this)}function O($){F($,this,"funnel")}function F($,Z,ie){var X=$[0].trace,Q=X.marker||{},oe=Q.line||{},Y=Q.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",j=ie?X.visible&&X.type===ie:P.traceIs(X,"bar"),se=m.select(Z).select("g.legendpoints").selectAll("path.legend"+ie).data(j?[$]:[]);se.enter().append("path").classed("legend"+ie,!0).attr("d",Y).attr("transform",M),se.exit().remove(),se.each(function(te){var fe=m.select(this),ge=te[0],be=b(ge.mlw,Q.line,h,l);fe.style("stroke-width",be+"px");var xe=ge.mcc;if(!C._inHover&&"mc"in ge){var _e=p(Q),De=_e.mid;De===void 0&&(De=(_e.max+_e.min)/2),xe=S.tryColorscale(Q,"")(De)}var Fe=xe||ge.mc||Q.color,Te=Q.pattern,Re=Te&&S.getPatternAttr(Te.shape,0,"");if(Re){var Se=S.getPatternAttr(Te.bgcolor,0,null),Ie=S.getPatternAttr(Te.fgcolor,0,null),Me=Te.fgopacity,Ve=i(Te.size,8,10),et=i(Te.solidity,.5,1),ot="legend-"+X.uid;fe.call(S.pattern,"legend",w,ot,Re,Ve,et,xe,Te.fillmode,Se,Ie,Me)}else fe.call(v.fill,Fe);be&&v.stroke(fe,ge.mlc||oe.color)})}function z($){var Z=$[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Z.visible&&P.traceIs(Z,"box-violin")?[$]:[]);ie.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",M),ie.exit().remove(),ie.each(function(){var X=m.select(this);if((Z.boxpoints==="all"||Z.points==="all")&&v.opacity(Z.fillcolor)===0&&v.opacity((Z.line||{}).color)===0){var Q=s.minExtend(Z,{marker:{size:E?f:s.constrain(Z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ie.call(S.pointStyle,Q,w)}else{var oe=b(void 0,Z.line,h,l);X.style("stroke-width",oe+"px").call(v.fill,Z.fillcolor),oe&&v.stroke(X,Z.line.color)}})}function B($){var Z=$[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Z.visible&&Z.type==="candlestick"?[$,$]:[]);ie.enter().append("path").classed("legendcandle",!0).attr("d",function(X,Q){return Q?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",M).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(X,Q){var oe=m.select(this),Y=Z[Q?"increasing":"decreasing"],j=b(void 0,Y.line,h,l);oe.style("stroke-width",j+"px").call(v.fill,Y.fillcolor),j&&v.stroke(oe,Y.line.color)})}function W($){var Z=$[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Z.visible&&Z.type==="ohlc"?[$,$]:[]);ie.enter().append("path").classed("legendohlc",!0).attr("d",function(X,Q){return Q?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",M).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(X,Q){var oe=m.select(this),Y=Z[Q?"increasing":"decreasing"],j=b(void 0,Y.line,h,l);oe.style("fill","none").call(S.dashLine,Y.line.dash,j),j&&v.stroke(oe,Y.line.color)})}function J($){ne($,this,"pie")}function re($){ne($,this,"funnelarea")}function ne($,Z,ie){var X=$[0],Q=X.trace,oe=ie?Q.visible&&Q.type===ie:P.traceIs(Q,ie),Y=m.select(Z).select("g.legendpoints").selectAll("path.legend"+ie).data(oe?[$]:[]);if(Y.enter().append("path").classed("legend"+ie,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",M),Y.exit().remove(),Y.size()){var j=Q.marker||{},se=b(a(j.line.width,X.pts),j.line,h,l),te="pieLike",fe=s.minExtend(Q,{marker:{line:{width:se}}},te),ge=s.minExtend(X,{trace:fe},te);t(Y,ge,fe,w)}}function le($){var Z=$[0].trace,ie,X=[];if(Z.visible)switch(Z.type){case"histogram2d":case"heatmap":X=[["M-15,-2V4H15V-2Z"]],ie=!0;break;case"choropleth":case"choroplethmapbox":X=[["M-6,-6V6H6V-6Z"]],ie=!0;break;case"densitymapbox":X=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ie="radial";break;case"cone":X=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],ie=!1;break;case"streamtube":X=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],ie=!1;break;case"surface":X=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],ie=!0;break;case"mesh3d":X=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ie=!1;break;case"volume":X=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ie=!0;break;case"isosurface":X=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],ie=!1;break}var Q=m.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(X);Q.enter().append("path").classed("legend3dandfriends",!0).attr("transform",M).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(oe,Y){var j=m.select(this),se=p(Z),te=se.colorscale,fe=se.reversescale,ge=function(De){if(De.size()){var Fe="legendfill-"+Z.uid;S.gradient(De,w,Fe,T(fe,ie==="radial"),te,"fill")}},be;if(te){if(!ie){var _e=te.length;be=Y===0?te[fe?_e-1:0][1]:Y===1?te[fe?0:_e-1][1]:te[Math.floor((_e-1)/2)][1]}}else{var xe=Z.vertexcolor||Z.facecolor||Z.color;be=s.isArrayOrTypedArray(xe)?xe[Y]||xe[0]:xe}j.attr("d",oe[0]),be?j.call(v.fill,be):j.call(ge)})}};function T(d,x){var w=x?"radial":"horizontal";return w+(d?"":"reversed")}function c(d){var x=d[0].trace,w=x.contours,C=r.hasLines(x),y=r.hasMarkers(x),E=x.visible&&x.fill&&x.fill!=="none",A=!1,o=!1;if(w){var M=w.coloring;M==="lines"?A=!0:C=M==="none"||M==="heatmap"||w.showlines,w.type==="constraint"?E=w._operation!=="=":(M==="fill"||M==="heatmap")&&(o=!0)}return{showMarker:y,showLine:C,showFill:E,showGradientLine:A,showGradientFill:o,anyLine:C||A,anyFill:E||o}}function i(d,x,w){return d&&s.isArrayOrTypedArray(d)?x:d>w?w:d}},66540:function(G,H,e){e(76052),G.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(G,H,e){var m=e(24040),P=e(7316),s=e(79811),L=e(9224),S=e(4016).eraseActiveShape,v=e(3400),p=v._,r=G.exports={};r.toImage={name:"toImage",title:function(d){var x=d._context.toImageButtonOptions||{},w=x.format||"png";return w==="png"?p(d,"Download plot as a png"):p(d,"Download plot")},icon:L.camera,click:function(d){var x=d._context.toImageButtonOptions,w={format:x.format||"png"};v.notifier(p(d,"Taking snapshot - this may take a few seconds"),"long"),w.format!=="svg"&&v.isIE()&&(v.notifier(p(d,"IE only supports svg. Changing format to svg."),"long"),w.format="svg"),["filename","width","height","scale"].forEach(function(C){C in x&&(w[C]=x[C])}),m.call("downloadImage",d,w).then(function(C){v.notifier(p(d,"Snapshot succeeded")+" - "+C,"long")}).catch(function(){v.notifier(p(d,"Sorry, there was a problem downloading your snapshot!"),"long")})}},r.sendDataToCloud={name:"sendDataToCloud",title:function(d){return p(d,"Edit in Chart Studio")},icon:L.disk,click:function(d){P.sendDataToCloud(d)}},r.editInChartStudio={name:"editInChartStudio",title:function(d){return p(d,"Edit in Chart Studio")},icon:L.pencil,click:function(d){P.sendDataToCloud(d)}},r.zoom2d={name:"zoom2d",_cat:"zoom",title:function(d){return p(d,"Zoom")},attr:"dragmode",val:"zoom",icon:L.zoombox,click:t},r.pan2d={name:"pan2d",_cat:"pan",title:function(d){return p(d,"Pan")},attr:"dragmode",val:"pan",icon:L.pan,click:t},r.select2d={name:"select2d",_cat:"select",title:function(d){return p(d,"Box Select")},attr:"dragmode",val:"select",icon:L.selectbox,click:t},r.lasso2d={name:"lasso2d",_cat:"lasso",title:function(d){return p(d,"Lasso Select")},attr:"dragmode",val:"lasso",icon:L.lasso,click:t},r.drawclosedpath={name:"drawclosedpath",title:function(d){return p(d,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:L.drawclosedpath,click:t},r.drawopenpath={name:"drawopenpath",title:function(d){return p(d,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:L.drawopenpath,click:t},r.drawline={name:"drawline",title:function(d){return p(d,"Draw line")},attr:"dragmode",val:"drawline",icon:L.drawline,click:t},r.drawrect={name:"drawrect",title:function(d){return p(d,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:L.drawrect,click:t},r.drawcircle={name:"drawcircle",title:function(d){return p(d,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:L.drawcircle,click:t},r.eraseshape={name:"eraseshape",title:function(d){return p(d,"Erase active shape")},icon:L.eraseshape,click:S},r.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(d){return p(d,"Zoom in")},attr:"zoom",val:"in",icon:L.zoom_plus,click:t},r.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(d){return p(d,"Zoom out")},attr:"zoom",val:"out",icon:L.zoom_minus,click:t},r.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(d){return p(d,"Autoscale")},attr:"zoom",val:"auto",icon:L.autoscale,click:t},r.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(d){return p(d,"Reset axes")},attr:"zoom",val:"reset",icon:L.home,click:t},r.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(d){return p(d,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:L.tooltip_basic,gravity:"ne",click:t},r.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(d){return p(d,"Compare data on hover")},attr:"hovermode",val:function(d){return d._fullLayout._isHoriz?"y":"x"},icon:L.tooltip_compare,gravity:"ne",click:t};function t(d,x){var w=x.currentTarget,C=w.getAttribute("data-attr"),y=w.getAttribute("data-val")||!0,E=d._fullLayout,A={},o=s.list(d,null,!0),M=E._cartesianSpikesEnabled,b,I;if(C==="zoom"){var D=y==="in"?.5:2,N=(1+D)/2,k=(1-D)/2,O;for(I=0;I1?(ne=["toggleHover"],le=["resetViews"]):A?(re=["zoomInGeo","zoomOutGeo"],ne=["hoverClosestGeo"],le=["resetGeo"]):E?(ne=["hoverClosest3d"],le=["resetCameraDefault3d","resetCameraLastSave3d"]):D?(re=["zoomInMapbox","zoomOutMapbox"],ne=["toggleHover"],le=["resetViewMapbox"]):b?ne=["hoverClosestGl2d"]:o?ne=["hoverClosestPie"]:O?(ne=["hoverClosestCartesian","hoverCompareCartesian"],le=["resetViewSankey"]):ne=["toggleHover"],y&&(ne=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(f(T)||z)&&(ne=[]),(y||b)&&!F&&(re=["zoomIn2d","zoomOut2d","autoScale2d"],le[0]!=="resetViews"&&(le=["resetScale2d"])),E?$=["zoom3d","pan3d","orbitRotation","tableRotation"]:(y||b)&&!F||I?$=["zoom2d","pan2d"]:D||A?$=["pan2d"]:N&&($=["zoom2d"]),n(T)&&$.push("select2d","lasso2d");var Z=[],ie=function(Y){Z.indexOf(Y)===-1&&ne.indexOf(Y)!==-1&&Z.push(Y)};if(Array.isArray(w)){for(var X=[],Q=0;Q0);if(i){var d=r(n,f,u);T("x",d[0]),T("y",d[1]),m.noneOrAll(a,n,["x","y"]),T("xanchor"),T("yanchor"),m.coerceFont(T,"font",f.font);var x=T("bgcolor");T("activecolor",P.contrast(x,v.lightAmount,v.darkAmount)),T("bordercolor"),T("borderwidth")}};function p(t,a,n,f){var u=f.calendar;function l(T,c){return m.coerce(t,a,S.buttons,T,c)}var g=l("visible");if(g){var h=l("step");h!=="all"&&(u&&u!=="gregorian"&&(h==="month"||h==="year")?a.stepmode="backward":l("stepmode"),l("count")),l("label")}}function r(t,a,n){for(var f=n.filter(function(h){return a[h].anchor===t._id}),u=0,l=0;l=Fe.max)_e=te[De+1];else if(xe=Fe.pmax)_e=te[De+1];else if(xe0?E.touches[0].clientX:0}function g(E,A,o,M){if(A._context.staticPlot)return;var b=E.select("rect."+u.slideBoxClassName).node(),I=E.select("rect."+u.grabAreaMinClassName).node(),D=E.select("rect."+u.grabAreaMaxClassName).node();function N(){var k=m.event,O=k.target,F=l(k),z=F-E.node().getBoundingClientRect().left,B=M.d2p(o._rl[0]),W=M.d2p(o._rl[1]),J=n.coverSlip();this.addEventListener("touchmove",re),this.addEventListener("touchend",ne),J.addEventListener("mousemove",re),J.addEventListener("mouseup",ne);function re(le){var $=l(le),Z=+$-F,ie,X,Q;switch(O){case b:if(Q="ew-resize",B+Z>o._length||W+Z<0)return;ie=B+Z,X=W+Z;break;case I:if(Q="col-resize",B+Z>o._length)return;ie=B+Z,X=W;break;case D:if(Q="col-resize",W+Z<0)return;ie=B,X=W+Z;break;default:Q="ew-resize",ie=z,X=z+Z;break}if(X=0;N--){var k=w.append("path").attr(y).style("opacity",N?.1:E).call(L.stroke,o).call(L.fill,A).call(S.dashLine,N?"solid":b,N?4+M:M);if(f(k,h,i),I){var O=v(h.layout,"selections",i);k.style({cursor:"move"});var F={element:k.node(),plotinfo:d,gd:h,editHelpers:O,isActiveSelection:!0},z=m(C,h);P(z,k,F)}else k.style("pointer-events",N?"all":"none");D[N]=k}var B=D[0],W=D[1];W.node().addEventListener("click",function(){return u(h,B)})}}function f(h,T,c){var i=c.xref+c.yref;S.setClipUrl(h,"clip"+T._fullLayout._uid+i,T)}function u(h,T){if(a(h)){var c=T.node(),i=+c.getAttribute("data-index");if(i>=0){if(i===h._fullLayout._activeSelectionIndex){g(h);return}h._fullLayout._activeSelectionIndex=i,h._fullLayout._deactivateSelection=g,t(h)}}}function l(h){if(a(h)){var T=h._fullLayout.selections.length-1;h._fullLayout._activeSelectionIndex=T,h._fullLayout._deactivateSelection=g,t(h)}}function g(h){if(a(h)){var T=h._fullLayout._activeSelectionIndex;T>=0&&(s(h),delete h._fullLayout._activeSelectionIndex,t(h))}}},34200:function(G,H,e){var m=e(98192).u,P=e(92880).extendFlat;G.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:P({},m,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(G){G.exports=function(e,m,P){P("newselection.mode");var s=P("newselection.line.width");s&&(P("newselection.line.color"),P("newselection.line.dash")),P("activeselection.fillcolor"),P("activeselection.opacity")}},5968:function(G,H,e){var m=e(72760),P=m.selectMode,s=e(1936),L=s.clearOutline,S=e(9856),v=S.readPaths,p=S.writePaths,r=S.fixDatesForPaths;G.exports=function(a,n){if(a.length){var f=a[0][0];if(f){var u=f.getAttribute("d"),l=n.gd,g=l._fullLayout.newselection,h=n.plotinfo,T=h.xaxis,c=h.yaxis,i=n.isActiveSelection,d=n.dragmode,x=(l.layout||{}).selections||[];if(!P(d)&&i!==void 0){var w=l._fullLayout._activeSelectionIndex;if(w=0){Rt._fullLayout._deactivateShape(Rt);return}if(!st){var Tn=Xt.clickmode;o.done(Hr).then(function(){if(o.clear(Hr),tn===2){for(tr.remove(),$t=0;$t-1&&ne(Sn,Rt,je.xaxes,je.yaxes,je.subplot,je,tr),Tn==="event"&&He(Rt,void 0);v.click(Rt,Sn,Qt.id)}).catch(y.error)}},je.doneFn=function(){xr.remove(),o.done(Hr).then(function(){o.clear(Hr),!gr&&Dt&&je.selectionDefs&&(Dt.subtract=dr,je.selectionDefs.push(Dt),je.mergedPolygons.length=0,[].push.apply(je.mergedPolygons,zt)),(gr||st)&&Y(je,gr),je.doneFnCompleted&&je.doneFnCompleted(_r),lt&&He(Rt,cr)}).catch(y.error)}}function ne(Ge,Le,Pe,je,Ce,he,me){var Ne=Le._hoverdata,Ze=Le._fullLayout,st=Ze.clickmode,lt=st.indexOf("event")>-1,Wt=[],Zt,Tt,Rt,Xt,gr,gt,Kt,Qt,yr,Ot;if(fe(Ne)){X(Ge,Le,he),Zt=se(Le,Pe,je,Ce);var ut=ge(Ne,Zt),at=ut.pointNumbers.length>0;if(at?xe(Zt,ut):_e(Zt)&&(Kt=be(ut))){for(me&&me.remove(),Ot=0;Ot=0}function oe(Ge){return Ge._fullLayout._activeSelectionIndex>=0}function Y(Ge,Le){var Pe=Ge.dragmode,je=Ge.plotinfo,Ce=Ge.gd;Q(Ce)&&Ce._fullLayout._deactivateShape(Ce),oe(Ce)&&Ce._fullLayout._deactivateSelection(Ce);var he=Ce._fullLayout,me=he._zoomlayer,Ne=n(Pe),Ze=u(Pe);if(Ne||Ze){var st=me.selectAll(".select-outline-"+je.id);if(st&&Ce._fullLayout._outlining){var lt;Ne&&(lt=x(st,Ge)),lt&&s.call("_guiRelayout",Ce,{shapes:lt});var Wt;Ze&&!J(Ge)&&(Wt=w(st,Ge)),Wt&&(Ce._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Ce,{selections:Wt}).then(function(){Le&&C(Ce)})),Ce._fullLayout._outlining=!1}}je.selection={},je.selection.selectionDefs=Ge.selectionDefs=[],je.selection.mergedPolygons=Ge.mergedPolygons=[]}function j(Ge){return Ge._id}function se(Ge,Le,Pe,je){if(!Ge.calcdata)return[];var Ce=[],he=Le.map(j),me=Pe.map(j),Ne,Ze,st;for(st=0;st0,he=Ce?je[0]:Pe;return Le.selectedpoints?Le.selectedpoints.indexOf(he)>-1:!1}function xe(Ge,Le){var Pe=[],je,Ce,he,me;for(me=0;me0&&Pe.push(je);if(Pe.length===1&&(he=Pe[0]===Le.searchInfo,he&&(Ce=Le.searchInfo.cd[0].trace,Ce.selectedpoints.length===Le.pointNumbers.length))){for(me=0;me1||(Le+=je.selectedpoints.length,Le>1)))return!1;return Le===1}function De(Ge,Le,Pe){var je;for(je=0;je-1&&Le;if(!me&&Le){var tn=$e(Ge,!0);if(tn.length){var Sn=tn[0].xref,Tn=tn[0].yref;if(Sn&&Tn){var Tr=pt(tn),zr=Ct([M(Ge,Sn,"x"),M(Ge,Tn,"y")]);zr(_r,Tr)}}Ge._fullLayout._noEmitSelectedAtStart?Ge._fullLayout._noEmitSelectedAtStart=!1:an&&He(Ge,_r),Zt._reselect=!1}if(!me&&Zt._deselect){var Yr=Zt._deselect;Ne=Yr.xref,Ze=Yr.yref,et(Ne,Ze,lt)||ot(Ge,Ne,Ze,je),an&&(_r.points.length?He(Ge,_r):We(Ge)),Zt._deselect=!1}return{eventData:_r,selectionTesters:Pe}}function Ve(Ge){var Le=Ge.calcdata;if(Le)for(var Pe=0;Pe0?c+g:g;return{ppad:g,ppadplus:h?d:x,ppadminus:h?x:d}}else return{ppad:g}}function r(t,a,n,f,u){var l=t.type==="category"||t.type==="multicategory"?t.r2c:t.d2c;if(a!==void 0)return[l(a),l(n)];if(f){var g=1/0,h=-1/0,T=f.match(s.segmentRE),c,i,d,x,w;for(t.type==="date"&&(l=L.decodeDate(l)),c=0;ch&&(h=w)));if(h>=g)return[g,h]}}},85448:function(G){G.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},43712:function(G,H,e){var m=e(3400),P=e(54460),s=e(51272),L=e(46056),S=e(65152);G.exports=function(t,a){s(t,a,{name:"shapes",handleItemDefaults:p})};function v(r,t){return r?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function p(r,t,a){function n($,Z){return m.coerce(r,t,L,$,Z)}t._isShape=!0;var f=n("visible");if(f){var u=n("showlegend");u&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),m.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var l=n("path"),g=l?"path":"rect",h=n("type",g),T=h!=="path";T&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));for(var i=n("xsizemode"),d=n("ysizemode"),x=["x","y"],w=0;w<2;w++){var C=x[w],y=C+"anchor",E=C==="x"?i:d,A={_fullLayout:a},o,M,b,I=P.coerceRef(r,t,A,C,void 0,"paper"),D=P.getRefType(I);if(D==="range"?(o=P.getFromId(A,I),o._shapeIndices.push(t._index),b=S.rangeToShapePosition(o),M=S.shapePositionToRange(o)):M=b=m.identity,T){var N=.25,k=.75,O=C+"0",F=C+"1",z=r[O],B=r[F];r[O]=M(r[O],!0),r[F]=M(r[F],!0),E==="pixel"?(n(O,0),n(F,10)):(P.coercePosition(t,A,n,I,O,N),P.coercePosition(t,A,n,I,F,k)),t[O]=b(t[O]),t[F]=b(t[F]),r[O]=z,r[F]=B}if(E==="pixel"){var W=r[y];r[y]=M(r[y],!0),P.coercePosition(t,A,n,I,y,.25),t[y]=b(t[y]),r[y]=W}}T&&m.noneOrAll(r,t,["x0","x1","y0","y1"]);var J=h==="line",re,ne;if(T&&(re=n("label.texttemplate")),re||(ne=n("label.text")),ne||re){n("label.textangle");var le=n("label.textposition",J?"middle":"middle center");n("label.xanchor"),n("label.yanchor",v(J,le)),n("label.padding"),m.coerceFont(n,"label.font",a.font)}}}},60728:function(G,H,e){var m=e(3400),P=e(54460),s=e(72736),L=e(43616),S=e(9856).readPaths,v=e(65152),p=v.getPathString,r=e(97728),t=e(84284).FROM_TL;G.exports=function(u,l,g,h){if(h.selectAll(".shape-label").remove(),!!(g.label.text||g.label.texttemplate)){var T;if(g.label.texttemplate){var c={};if(g.type!=="path"){var i=P.getFromId(u,g.xref),d=P.getFromId(u,g.yref);for(var x in r){var w=r[x](g,i,d);w!==void 0&&(c[x]=w)}}T=m.texttemplateStringForShapes(g.label.texttemplate,{},u._fullLayout._d3locale,c)}else T=g.label.text;var C={"data-index":l},y=g.label.font,E={"data-notex":1},A=h.append("g").attr(C).classed("shape-label",!0),o=A.append("text").attr(E).classed("shape-label-text",!0).text(T),M,b,I,D;if(g.path){var N=p(u,g),k=S(N,u);M=1/0,I=1/0,b=-1/0,D=-1/0;for(var O=0;O=f?h=u-g:h=g-u,-180/Math.PI*Math.atan2(h,T)}function n(f,u,l,g,h,T,c){var i=h.label.textposition,d=h.label.textangle,x=h.label.padding,w=h.type,C=Math.PI/180*T,y=Math.sin(C),E=Math.cos(C),A=h.label.xanchor,o=h.label.yanchor,M,b,I,D;if(w==="line"){i==="start"?(M=f,b=u):i==="end"?(M=l,b=g):(M=(f+l)/2,b=(u+g)/2),A==="auto"&&(i==="start"?d==="auto"?l>f?A="left":lf?A="right":lf?A="right":lf?A="left":l1&&!(Te.length===2&&Te[1][0]==="Z")&&($===0&&(Te[0][0]="M"),M[le]=Te,k(),O())}}function te(Te,Re){if(Te===2){le=+Re.srcElement.getAttribute("data-i"),$=+Re.srcElement.getAttribute("data-j");var Se=M[le];!T(Se)&&!c(Se)&&se()}}function fe(Te){re=[];for(var Re=0;Rek&&Pe>O&&!We.shiftKey?f.getCursor(je/Le,1-Ce/Pe):"move";u(M,he),et=he.split("-")[0]}}function ht(We){c(o)||(F&&(Z=Te(b.xanchor)),z&&(ie=Re(b.yanchor)),b.type==="path"?ge=b.path:(re=F?b.x0:Te(b.x0),ne=z?b.y0:Re(b.y0),le=F?b.x1:Te(b.x1),$=z?b.y1:Re(b.y1)),re$?(X=ne,j="y0",Q=$,se="y1"):(X=$,j="y1",Q=ne,se="y0"),$e(We),rt(D,b),He(M,b,o),Ve.moveFn=et==="move"?wt:Ct,Ve.altKey=We.altKey)}function vt(){c(o)||(u(M),ze(D),x(M,o,b),P.call("_guiRelayout",o,N.getUpdateObj()))}function pt(){c(o)||ze(D)}function wt(We,Ge){if(b.type==="path"){var Le=function(Ce){return Ce},Pe=Le,je=Le;F?J("xanchor",b.xanchor=Se(Z+We)):(Pe=function(he){return Se(Te(he)+We)},xe&&xe.type==="date"&&(Pe=g.encodeDate(Pe))),z?J("yanchor",b.yanchor=Ie(ie+Ge)):(je=function(he){return Ie(Re(he)+Ge)},De&&De.type==="date"&&(je=g.encodeDate(je))),J("path",b.path=C(ge,Pe,je))}else F?J("xanchor",b.xanchor=Se(Z+We)):(J("x0",b.x0=Se(re+We)),J("x1",b.x1=Se(le+We))),z?J("yanchor",b.yanchor=Ie(ie+Ge)):(J("y0",b.y0=Ie(ne+Ge)),J("y1",b.y1=Ie($+Ge)));M.attr("d",h(o,b)),rt(D,b),p(o,I,b,be)}function Ct(We,Ge){if(W){var Le=function(gt){return gt},Pe=Le,je=Le;F?J("xanchor",b.xanchor=Se(Z+We)):(Pe=function(Kt){return Se(Te(Kt)+We)},xe&&xe.type==="date"&&(Pe=g.encodeDate(Pe))),z?J("yanchor",b.yanchor=Ie(ie+Ge)):(je=function(Kt){return Ie(Re(Kt)+Ge)},De&&De.type==="date"&&(je=g.encodeDate(je))),J("path",b.path=C(ge,Pe,je))}else if(B){if(et==="resize-over-start-point"){var Ce=re+We,he=z?ne-Ge:ne+Ge;J("x0",b.x0=F?Ce:Se(Ce)),J("y0",b.y0=z?he:Ie(he))}else if(et==="resize-over-end-point"){var me=le+We,Ne=z?$-Ge:$+Ge;J("x1",b.x1=F?me:Se(me)),J("y1",b.y1=z?Ne:Ie(Ne))}}else{var Ze=function(gt){return et.indexOf(gt)!==-1},st=Ze("n"),lt=Ze("s"),Wt=Ze("w"),Zt=Ze("e"),Tt=st?X+Ge:X,Rt=lt?Q+Ge:Q,Xt=Wt?oe+We:oe,gr=Zt?Y+We:Y;z&&(st&&(Tt=X-Ge),lt&&(Rt=Q-Ge)),(!z&&Rt-Tt>O||z&&Tt-Rt>O)&&(J(j,b[j]=z?Tt:Ie(Tt)),J(se,b[se]=z?Rt:Ie(Rt))),gr-Xt>k&&(J(te,b[te]=F?Xt:Se(Xt)),J(fe,b[fe]=F?gr:Se(gr)))}M.attr("d",h(o,b)),rt(D,b),p(o,I,b,be)}function rt(We,Ge){(F||z)&&Le();function Le(){var Pe=Ge.type!=="path",je=We.selectAll(".visual-cue").data([0]),Ce=1;je.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ce}).classed("visual-cue",!0);var he=Te(F?Ge.xanchor:s.midRange(Pe?[Ge.x0,Ge.x1]:g.extractPathCoords(Ge.path,l.paramIsX))),me=Re(z?Ge.yanchor:s.midRange(Pe?[Ge.y0,Ge.y1]:g.extractPathCoords(Ge.path,l.paramIsY)));if(he=g.roundPositionForSharpStrokeRendering(he,Ce),me=g.roundPositionForSharpStrokeRendering(me,Ce),F&&z){var Ne="M"+(he-1-Ce)+","+(me-1-Ce)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";je.attr("d",Ne)}else if(F){var Ze="M"+(he-1-Ce)+","+(me-9-Ce)+"v18 h2 v-18 Z";je.attr("d",Ze)}else{var st="M"+(he-9-Ce)+","+(me-1-Ce)+"h18 v2 h-18 Z";je.attr("d",st)}}}function ze(We){We.selectAll(".visual-cue").remove()}function He(We,Ge,Le){var Pe=Ge.xref,je=Ge.yref,Ce=L.getFromId(Le,Pe),he=L.getFromId(Le,je),me="";Pe!=="paper"&&!Ce.autorange&&(me+=Pe),je!=="paper"&&!he.autorange&&(me+=je),a.setClipUrl(We,me?"clip"+Le._fullLayout._uid+me:null,Le)}}function C(o,M,b){return o.replace(l.segmentRE,function(I){var D=0,N=I.charAt(0),k=l.paramIsX[N],O=l.paramIsY[N],F=l.numParams[N],z=I.substr(1).replace(l.paramRE,function(B){return D>=F||(k[D]?B=M(B):O[D]&&(B=b(B)),D++),B});return N+z})}function y(o,M){if(i(o)){var b=M.node(),I=+b.getAttribute("data-index");if(I>=0){if(I===o._fullLayout._activeShapeIndex){E(o);return}o._fullLayout._activeShapeIndex=I,o._fullLayout._deactivateShape=E,T(o)}}}function E(o){if(i(o)){var M=o._fullLayout._activeShapeIndex;M>=0&&(r(o),delete o._fullLayout._activeShapeIndex,T(o))}}function A(o){if(i(o)){r(o);var M=o._fullLayout._activeShapeIndex,b=(o.layout||{}).shapes||[];if(M0&&dc&&(d="X"),d});return l>c&&(i=i.replace(/[\s,]*X.*/,""),P.log("Ignoring extra params in segment "+u)),g+i})}},41592:function(G,H,e){var m=e(4016);G.exports={moduleType:"component",name:"shapes",layoutAttributes:e(46056),supplyLayoutDefaults:e(43712),supplyDrawNewShapeDefaults:e(65144),includeBasePlot:e(36632)("shapes"),calcAutorange:e(96084),draw:m.draw,drawOne:m.drawOne}},97728:function(G){function H(u,l){return l?l.d2l(u):u}function e(u,l){return l?l.l2d(u):u}function m(u){return u.x0}function P(u){return u.x1}function s(u){return u.y0}function L(u){return u.y1}function S(u,l){return H(u.x1,l)-H(u.x0,l)}function v(u,l,g){return H(u.y1,g)-H(u.y0,g)}function p(u,l){return Math.abs(S(u,l))}function r(u,l,g){return Math.abs(v(u,l,g))}function t(u,l,g){return u.type!=="line"?void 0:Math.sqrt(Math.pow(S(u,l),2)+Math.pow(v(u,l,g),2))}function a(u,l){return e((H(u.x1,l)+H(u.x0,l))/2,l)}function n(u,l,g){return e((H(u.y1,g)+H(u.y0,g))/2,g)}function f(u,l,g){return u.type!=="line"?void 0:v(u,l,g)/S(u,l)}G.exports={x0:m,x1:P,y0:s,y1:L,slope:f,dx:S,dy:v,width:p,height:r,length:t,xcenter:a,ycenter:n}},89861:function(G,H,e){var m=e(25376),P=e(66741),s=e(92880).extendDeepAll,L=e(67824).overrideAll,S=e(85656),v=e(31780).templatedArray,p=e(60876),r=v("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});G.exports=L(v("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:r,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(P({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:S.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:m({})},font:m({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},60876:function(G){G.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(G,H,e){var m=e(3400),P=e(51272),s=e(89861),L=e(60876),S=L.name,v=s.steps;G.exports=function(a,n){P(a,n,{name:S,handleItemDefaults:p})};function p(t,a,n){function f(d,x){return m.coerce(t,a,s,d,x)}for(var u=P(t,a,{name:"steps",handleItemDefaults:r}),l=0,g=0;g0?[0]:[]);W.enter().append("g").classed(t.containerClassName,!0).style("cursor",F?null:"ew-resize");function J($){$._commandObserver&&($._commandObserver.remove(),delete $._commandObserver),P.autoMargin(O,l($))}if(W.exit().each(function(){m.select(this).selectAll("g."+t.groupClassName).each(J)}).remove(),B.length!==0){var re=W.selectAll("g."+t.groupClassName).data(B,h);re.enter().append("g").classed(t.groupClassName,!0),re.exit().each(J).remove();for(var ne=0;ne0&&(re=re.transition().duration(O.transition.duration).ease(O.transition.easing)),re.attr("transform",v(J-t.gripWidth*.5,O._dims.currentValueTotalHeight))}}function b(k,O){var F=k._dims;return F.inputAreaStart+t.stepInset+(F.inputAreaLength-2*t.stepInset)*Math.min(1,Math.max(0,O))}function I(k,O){var F=k._dims;return Math.min(1,Math.max(0,(O-t.stepInset-F.inputAreaStart)/(F.inputAreaLength-2*t.stepInset-2*F.inputAreaStart)))}function D(k,O,F){var z=F._dims,B=S.ensureSingle(k,"rect",t.railTouchRectClass,function(W){W.call(E,O,k,F).style("pointer-events","all")});B.attr({width:z.inputAreaLength,height:Math.max(z.inputAreaWidth,t.tickOffset+F.ticklen+z.labelHeight)}).call(s.fill,F.bgcolor).attr("opacity",0),L.setTranslate(B,0,z.currentValueTotalHeight)}function N(k,O){var F=O._dims,z=F.inputAreaLength-t.railInset*2,B=S.ensureSingle(k,"rect",t.railRectClass);B.attr({width:z,height:t.railWidth,rx:t.railRadius,ry:t.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,O.bordercolor).call(s.fill,O.bgcolor).style("stroke-width",O.borderwidth+"px"),L.setTranslate(B,t.railInset,(F.inputAreaWidth-t.railWidth)*.5+F.currentValueTotalHeight)}},97544:function(G,H,e){var m=e(60876);G.exports={moduleType:"component",name:m.name,layoutAttributes:e(89861),supplyLayoutDefaults:e(8132),draw:e(79664)}},81668:function(G,H,e){var m=e(33428),P=e(38248),s=e(7316),L=e(24040),S=e(3400),v=S.strTranslate,p=e(43616),r=e(76308),t=e(72736),a=e(13448),n=e(84284).OPPOSITE_SIDE,f=/ [XY][0-9]* /;function u(l,g,h){var T=h.propContainer,c=h.propName,i=h.placeholder,d=h.traceIndex,x=h.avoid||{},w=h.attributes,C=h.transform,y=h.containerGroup,E=l._fullLayout,A=1,o=!1,M=T.title,b=(M&&M.text?M.text:"").trim(),I=M&&M.font?M.font:{},D=I.family,N=I.size,k=I.color,O=I.weight,F=I.style,z=I.variant,B=I.textcase,W=I.lineposition,J=I.shadow,re;c==="title.text"?re="titleText":c.indexOf("axis")!==-1?re="axisTitleText":c.indexOf("colorbar"!==-1)&&(re="colorbarTitleText");var ne=l._context.edits[re];b===""?A=0:b.replace(f," % ")===i.replace(f," % ")&&(A=.2,o=!0,ne||(b="")),h._meta?b=S.templateString(b,h._meta):E._meta&&(b=S.templateString(b,E._meta));var le=b||ne,$;y||(y=S.ensureSingle(E._infolayer,"g","g-"+g),$=E._hColorbarMoveTitle);var Z=y.selectAll("text").data(le?[0]:[]);if(Z.enter().append("text"),Z.text(b).attr("class",g),Z.exit().remove(),!le)return y;function ie(Y){S.syncOrAsync([X,Q],Y)}function X(Y){var j;return!C&&$&&(C={}),C?(j="",C.rotate&&(j+="rotate("+[C.rotate,w.x,w.y]+")"),(C.offset||$)&&(j+=v(0,(C.offset||0)-($||0)))):j=null,Y.attr("transform",j),Y.style("opacity",A*r.opacity(k)).call(p.font,{color:r.rgb(k),size:m.round(N,2),family:D,weight:O,style:F,variant:z,textcase:B,shadow:J,lineposition:W}).attr(w).call(t.convertToTspans,l),s.previousPromises(l)}function Q(Y){var j=m.select(Y.node().parentNode);if(x&&x.selection&&x.side&&b){j.attr("transform",null);var se=n[x.side],te=x.side==="left"||x.side==="top"?-1:1,fe=P(x.pad)?x.pad:2,ge=p.bBox(j.node()),be={t:0,b:0,l:0,r:0},xe=l._fullLayout._reservedMargin;for(var _e in xe)for(var De in xe[_e]){var Fe=xe[_e][De];be[De]=Math.max(be[De],Fe)}var Te={left:be.l,top:be.t,right:E.width-be.r,bottom:E.height-be.b},Re=x.maxShift||te*(Te[x.side]-ge[x.side]),Se=0;if(Re<0)Se=Re;else{var Ie=x.offsetLeft||0,Me=x.offsetTop||0;ge.left-=Ie,ge.right-=Ie,ge.top-=Me,ge.bottom-=Me,x.selection.each(function(){var et=p.bBox(this);S.bBoxIntersect(ge,et,fe)&&(Se=Math.max(Se,te*(et[x.side]-ge[se])+fe))}),Se=Math.min(Re,Se),T._titleScoot=Math.abs(Se)}if(Se>0||Re<0){var Ve={left:[-Se,0],right:[Se,0],top:[0,-Se],bottom:[0,Se]}[x.side];j.attr("transform",v(Ve[0],Ve[1]))}}}Z.call(ie);function oe(){A=0,o=!0,Z.text(i).on("mouseover.opacity",function(){m.select(this).transition().duration(a.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){m.select(this).transition().duration(a.HIDE_PLACEHOLDER).style("opacity",0)})}return ne&&(b?Z.on(".opacity",null):oe(),Z.call(t.makeEditable,{gd:l}).on("edit",function(Y){d!==void 0?L.call("_guiRestyle",l,c,Y,d):L.call("_guiRelayout",l,c,Y)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ie)}).on("input",function(Y){this.text(Y||" ").call(t.positionText,w.x,w.y)})),Z.classed("js-placeholder",o),y}G.exports={draw:u}},88444:function(G,H,e){var m=e(25376),P=e(22548),s=e(92880).extendFlat,L=e(67824).overrideAll,S=e(66741),v=e(31780).templatedArray,p=v("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});G.exports=L(v("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(S({editType:"arraydraw"}),{}),font:m({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:P.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(G){G.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(G,H,e){var m=e(3400),P=e(51272),s=e(88444),L=e(73712),S=L.name,v=s.buttons;G.exports=function(a,n){var f={name:S,handleItemDefaults:p};P(a,n,f)};function p(t,a,n){function f(g,h){return m.coerce(t,a,s,g,h)}var u=P(t,a,{name:"buttons",handleItemDefaults:r}),l=f("visible",u.length>0);l&&(f("active"),f("direction"),f("type"),f("showactive"),f("x"),f("y"),m.noneOrAll(t,a,["x","y"]),f("xanchor"),f("yanchor"),f("pad.t"),f("pad.r"),f("pad.b"),f("pad.l"),m.coerceFont(f,"font",n.font),f("bgcolor",n.paper_bgcolor),f("bordercolor"),f("borderwidth"))}function r(t,a){function n(u,l){return m.coerce(t,a,v,u,l)}var f=n("visible",t.method==="skip"||Array.isArray(t.args));f&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}},14420:function(G,H,e){var m=e(33428),P=e(7316),s=e(76308),L=e(43616),S=e(3400),v=e(72736),p=e(31780).arrayEditor,r=e(84284).LINE_SPACING,t=e(73712),a=e(37400);G.exports=function(I){var D=I._fullLayout,N=S.filterVisible(D[t.name]);function k(ne){P.autoMargin(I,A(ne))}var O=D._menulayer.selectAll("g."+t.containerClassName).data(N.length>0?[0]:[]);if(O.enter().append("g").classed(t.containerClassName,!0).style("cursor","pointer"),O.exit().each(function(){m.select(this).selectAll("g."+t.headerGroupClassName).each(k)}).remove(),N.length!==0){var F=O.selectAll("g."+t.headerGroupClassName).data(N,n);F.enter().append("g").classed(t.headerGroupClassName,!0);for(var z=S.ensureSingle(O,"g",t.dropdownButtonGroupClassName,function(ne){ne.style("pointer-events","all")}),B=0;Bw,I=S.barLength+2*S.barPad,D=S.barWidth+2*S.barPad,N=u,k=g+h;k+D>f&&(k=f-D);var O=this.container.selectAll("rect.scrollbar-horizontal").data(b?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(P.fill,S.barColor),b?(this.hbar=O.attr({rx:S.barRadius,ry:S.barRadius,x:N,y:k,width:I,height:D}),this._hbarXMin=N+I/2,this._hbarTranslateMax=w-I):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var F=h>C,z=S.barWidth+2*S.barPad,B=S.barLength+2*S.barPad,W=u+l,J=g;W+z>n&&(W=n-z);var re=this.container.selectAll("rect.scrollbar-vertical").data(F?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(P.fill,S.barColor),F?(this.vbar=re.attr({rx:S.barRadius,ry:S.barRadius,x:W,y:J,width:z,height:B}),this._vbarYMin=J+B/2,this._vbarTranslateMax=C-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ne=this.id,le=y-.5,$=F?E+z+.5:E+.5,Z=A-.5,ie=b?o+D+.5:o+.5,X=a._topdefs.selectAll("#"+ne).data(b||F?[0]:[]);if(X.exit().remove(),X.enter().append("clipPath").attr("id",ne).append("rect"),b||F?(this._clipRect=X.select("rect").attr({x:Math.floor(le),y:Math.floor(Z),width:Math.ceil($)-Math.floor(le),height:Math.ceil(ie)-Math.floor(Z)}),this.container.call(s.setClipUrl,ne,this.gd),this.bg.attr({x:u,y:g,width:l,height:h})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),b||F){var Q=m.behavior.drag().on("dragstart",function(){m.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Q);var oe=m.behavior.drag().on("dragstart",function(){m.event.sourceEvent.preventDefault(),m.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));b&&this.hbar.on(".drag",null).call(oe),F&&this.vbar.on(".drag",null).call(oe)}this.setTranslate(r,t)},S.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},S.prototype._onBoxDrag=function(){var p=this.translateX,r=this.translateY;this.hbar&&(p-=m.event.dx),this.vbar&&(r-=m.event.dy),this.setTranslate(p,r)},S.prototype._onBoxWheel=function(){var p=this.translateX,r=this.translateY;this.hbar&&(p+=m.event.deltaY),this.vbar&&(r+=m.event.deltaY),this.setTranslate(p,r)},S.prototype._onBarDrag=function(){var p=this.translateX,r=this.translateY;if(this.hbar){var t=p+this._hbarXMin,a=t+this._hbarTranslateMax,n=L.constrain(m.event.x,t,a),f=(n-t)/(a-t),u=this.position.w-this._box.w;p=f*u}if(this.vbar){var l=r+this._vbarYMin,g=l+this._vbarTranslateMax,h=L.constrain(m.event.y,l,g),T=(h-l)/(g-l),c=this.position.h-this._box.h;r=T*c}this.setTranslate(p,r)},S.prototype.setTranslate=function(p,r){var t=this.position.w-this._box.w,a=this.position.h-this._box.h;if(p=L.constrain(p||0,0,t),r=L.constrain(r||0,0,a),this.translateX=p,this.translateY=r,this.container.call(s.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var n=p/t;this.hbar.call(s.setTranslate,p+n*this._hbarTranslateMax,r)}if(this.vbar){var f=r/a;this.vbar.call(s.setTranslate,p,r+f*this._vbarTranslateMax)}}},84284:function(G){G.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(G){G.exports={axisRefDescription:function(H,e,m){return["If set to a",H,"axis id (e.g. *"+H+"* or","*"+H+"2*), the `"+H+"` position refers to a",H,"coordinate. If set to *paper*, the `"+H+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+m+"). If set to a",H,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+H+"2 domain* refers to the domain of the second",H," axis and a",H,"position of 0.5 refers to the","point between the",e,"and the",m,"of the domain of the","second",H,"axis."].join(" ")}}},48164:function(G){G.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(G){G.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(G){G.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(G){G.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(G){G.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(G){G.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(G){G.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(G,H){H.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],H.STYLE=H.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},9616:function(G,H){H.xmlns="http://www.w3.org/2000/xmlns/",H.svg="http://www.w3.org/2000/svg",H.xlink="http://www.w3.org/1999/xlink",H.svgAttrs={xmlns:H.svg,"xmlns:xlink":H.xlink}},64884:function(G,H,e){H.version=e(25788).version,e(88324),e(79288);for(var m=e(24040),P=H.register=m.register,s=e(22448),L=Object.keys(s),S=0;S",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(G,H){H.isLeftAnchor=function(m){return m.xanchor==="left"||m.xanchor==="auto"&&m.x<=.3333333333333333},H.isCenterAnchor=function(m){return m.xanchor==="center"||m.xanchor==="auto"&&m.x>.3333333333333333&&m.x<.6666666666666666},H.isRightAnchor=function(m){return m.xanchor==="right"||m.xanchor==="auto"&&m.x>=.6666666666666666},H.isTopAnchor=function(m){return m.yanchor==="top"||m.yanchor==="auto"&&m.y>=.6666666666666666},H.isMiddleAnchor=function(m){return m.yanchor==="middle"||m.yanchor==="auto"&&m.y>.3333333333333333&&m.y<.6666666666666666},H.isBottomAnchor=function(m){return m.yanchor==="bottom"||m.yanchor==="auto"&&m.y<=.3333333333333333}},11864:function(G,H,e){var m=e(20435),P=m.mod,s=m.modHalf,L=Math.PI,S=2*L;function v(T){return T/180*L}function p(T){return T/L*180}function r(T){return Math.abs(T[1]-T[0])>S-1e-14}function t(T,c){return s(c-T,S)}function a(T,c){return Math.abs(t(T,c))}function n(T,c){if(r(c))return!0;var i,d;c[0]d&&(d+=S);var x=P(T,S),w=x+S;return x>=i&&x<=d||w>=i&&w<=d}function f(T,c,i,d){if(!n(c,d))return!1;var x,w;return i[0]=x&&T<=w}function u(T,c,i,d,x,w,C){x=x||0,w=w||0;var y=r([i,d]),E,A,o,M,b;y?(E=0,A=L,o=S):i"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};t.uint8c=t.u1c,t.uint8=t.u1,t.int8=t.i1,t.uint16=t.u2,t.int16=t.i2,t.uint32=t.u4,t.int32=t.i4,t.float32=t.f4,t.float64=t.f8;function a(u){return u.constructor===ArrayBuffer}H.isArrayBuffer=a,H.decodeTypedArraySpec=function(u){var l=[],g=n(u),h=g.dtype,T=t[h];if(!T)throw new Error('Error in dtype: "'+h+'"');var c=T.BYTES_PER_ELEMENT,i=g.bdata;a(i)||(i=m(i));var d=g.shape===void 0?[i.byteLength/c]:(""+g.shape).split(",");d.reverse();var x=d.length,w,C,y=+d[0],E=c*y,A=0;if(x===1)l=new T(i);else if(x===2)for(w=+d[1],C=0;Cc.max?h.set(T):h.set(+g)}},integer:{coerceFunction:function(g,h,T,c){if((c.extras||[]).indexOf(g)!==-1){h.set(g);return}f(g)&&(g=u(g)),g%1||!m(g)||c.min!==void 0&&gc.max?h.set(T):h.set(+g)}},string:{coerceFunction:function(g,h,T,c){if(typeof g!="string"){var i=typeof g=="number";c.strict===!0||!i?h.set(T):h.set(String(g))}else c.noBlank&&!g?h.set(T):h.set(g)}},color:{coerceFunction:function(g,h,T){f(g)&&(g=u(g)),P(g).isValid()?h.set(g):h.set(T)}},colorlist:{coerceFunction:function(g,h,T){function c(i){return P(i).isValid()}!Array.isArray(g)||!g.length?h.set(T):g.every(c)?h.set(g):h.set(T)}},colorscale:{coerceFunction:function(g,h,T){h.set(S.get(g,T))}},angle:{coerceFunction:function(g,h,T){f(g)&&(g=u(g)),g==="auto"?h.set("auto"):m(g)?h.set(a(+g,360)):h.set(T)}},subplotid:{coerceFunction:function(g,h,T,c){var i=c.regex||t(T);if(typeof g=="string"&&i.test(g)){h.set(g);return}h.set(T)},validateFunction:function(g,h){var T=h.dflt;return g===T?!0:typeof g!="string"?!1:!!t(T).test(g)}},flaglist:{coerceFunction:function(g,h,T,c){if((c.extras||[]).indexOf(g)!==-1){h.set(g);return}if(typeof g!="string"){h.set(T);return}for(var i=g.split("+"),d=0;d=i&&k<=d?k:v}if(typeof k!="string"&&typeof k!="number")return v;k=String(k);var W=T(O),J=k.charAt(0);W&&(J==="G"||J==="g")&&(k=k.substr(1),O="");var re=W&&O.substr(0,7)==="chinese",ne=k.match(re?g:l);if(!ne)return v;var le=ne[1],$=ne[3]||"1",Z=Number(ne[5]||1),ie=Number(ne[7]||0),X=Number(ne[9]||0),Q=Number(ne[11]||0);if(W){if(le.length===2)return v;le=Number(le);var oe;try{var Y=f.getComponentMethod("calendars","getCal")(O);if(re){var j=$.charAt($.length-1)==="i";$=parseInt($,10),oe=Y.newDate(le,Y.toMonthIndex(le,$,j),Z)}else oe=Y.newDate(le,Number($),Z)}catch{return v}return oe?(oe.toJD()-n)*p+ie*r+X*t+Q*a:v}le.length===2?le=(Number(le)+2e3-h)%100+h:le=Number(le),$-=1;var se=new Date(Date.UTC(2e3,$,Z,ie,X));return se.setUTCFullYear(le),se.getUTCMonth()!==$||se.getUTCDate()!==Z?v:se.getTime()+Q*a},i=H.MIN_MS=H.dateTime2ms("-9999"),d=H.MAX_MS=H.dateTime2ms("9999-12-31 23:59:59.9999"),H.isDateTime=function(k,O){return H.dateTime2ms(k,O)!==v};function x(k,O){return String(k+Math.pow(10,O)).substr(1)}var w=90*p,C=3*r,y=5*t;H.ms2DateTime=function(k,O,F){if(typeof k!="number"||!(k>=i&&k<=d))return v;O||(O=0);var z=Math.floor(L(k+.05,1)*10),B=Math.round(k-z/10),W,J,re,ne,le,$;if(T(F)){var Z=Math.floor(B/p)+n,ie=Math.floor(L(k,p));try{W=f.getComponentMethod("calendars","getCal")(F).fromJD(Z).formatDate("yyyy-mm-dd")}catch{W=u("G%Y-%m-%d")(new Date(B))}if(W.charAt(0)==="-")for(;W.length<11;)W="-0"+W.substr(1);else for(;W.length<10;)W="0"+W;J=O=i+p&&k<=d-p))return v;var O=Math.floor(L(k+.05,1)*10),F=new Date(Math.round(k-O/10)),z=m("%Y-%m-%d")(F),B=F.getHours(),W=F.getMinutes(),J=F.getSeconds(),re=F.getUTCMilliseconds()*10+O;return E(z,B,W,J,re)};function E(k,O,F,z,B){if((O||F||z||B)&&(k+=" "+x(O,2)+":"+x(F,2),(z||B)&&(k+=":"+x(z,2),B))){for(var W=4;B%10===0;)W-=1,B/=10;k+="."+x(B,W)}return k}H.cleanDate=function(k,O,F){if(k===v)return O;if(H.isJSDate(k)||typeof k=="number"&&isFinite(k)){if(T(F))return s.error("JS Dates and milliseconds are incompatible with world calendars",k),O;if(k=H.ms2DateTimeLocal(+k),!k&&O!==void 0)return O}else if(!H.isDateTime(k,F))return s.error("unrecognized date",k),O;return k};var A=/%\d?f/g,o=/%h/g,M={1:"1",2:"1",3:"2",4:"2"};function b(k,O,F,z){k=k.replace(A,function(W){var J=Math.min(+W.charAt(1)||6,6),re=(O/1e3%1+2).toFixed(J).substr(2).replace(/0+$/,"")||"0";return re});var B=new Date(Math.floor(O+.05));if(k=k.replace(o,function(){return M[F("%q")(B)]}),T(z))try{k=f.getComponentMethod("calendars","worldCalFmt")(k,O,z)}catch{return"Invalid"}return F(k)(B)}var I=[59,59.9,59.99,59.999,59.9999];function D(k,O){var F=L(k+.05,p),z=x(Math.floor(F/r),2)+":"+x(L(Math.floor(F/t),60),2);if(O!=="M"){P(O)||(O=0);var B=Math.min(L(k/a,60),I[O]),W=(100+B).toFixed(O).substr(1);O>0&&(W=W.replace(/0+$/,"").replace(/[\.]$/,"")),z+=":"+W}return z}H.formatDate=function(k,O,F,z,B,W){if(B=T(B)&&B,!O)if(F==="y")O=W.year;else if(F==="m")O=W.month;else if(F==="d")O=W.dayMonth+` `+W.year;else return D(k,F)+` -`+b(W.dayMonthYear,k,z,B);return b(O,k,z,B)};var N=3*p;H.incrementMonth=function(k,O,F){F=T(F)&&F;var z=L(k,p);if(k=Math.round(k-z),F)try{var B=Math.round(k/p)+n,W=f.getComponentMethod("calendars","getCal")(F),J=W.fromJD(B);return O%12?W.add(J,O,"m"):W.add(J,O/12,"y"),(J.toJD()-n)*p+z}catch{s.error("invalid ms "+k+" in calendar "+F)}var re=new Date(k+N);return re.setUTCMonth(re.getUTCMonth()+O)+z-N},H.findExactDates=function(k,O){for(var F=0,z=0,B=0,W=0,J,re,ne=T(O)&&f.getComponentMethod("calendars","getCal")(O),le=0;le0&&D[N+1][0]<0)return N;return null}switch(y==="RUS"||y==="FJI"?A=function(D){var N;if(I(D)===null)N=D;else for(N=new Array(D.length),b=0;bN?k[O++]=[D[b][0]+360,D[b][1]]:b===N?(k[O++]=D[b],k[O++]=[D[b][0],-90]):k[O++]=D[b];var F=a.tester(k);F.pts.pop(),E.push(F)}:A=function(D){E.push(a.tester(D))},w.type){case"MultiPolygon":for(o=0;oE&&(E=M,C=o)}else C=w;return L.default(C).geometry.coordinates}function i(x){var w=window.PlotlyGeoAssets||{},C=[];function y(b){return new Promise(function(I,D){m.json(b,function(N,k){if(N){delete w[b];var O=N.status===404?'GeoJSON at URL "'+b+'" does not exist.':"Unexpected error while fetching from "+b;return D(new Error(O))}return w[b]=k,I(k)})})}function E(b){return new Promise(function(I,D){var N=0,k=setInterval(function(){if(w[b]&&w[b]!=="pending")return clearInterval(k),I(w[b]);if(N>100)return clearInterval(k),D("Unexpected error while fetching from "+b);N++},50)})}for(var A=0;A0&&(S.push(v),v=[])}return v.length>0&&S.push(v),S},H.makeLine=function(P){return P.length===1?{type:"LineString",coordinates:P[0]}:{type:"MultiLineString",coordinates:P}},H.makePolygon=function(P){if(P.length===1)return{type:"Polygon",coordinates:P};for(var s=new Array(P.length),L=0;L1||w<0||w>1?null:{x:p+g*w,y:r+c*w}}H.segmentDistance=function(r,t,a,n,f,u,l,g){if(P(r,t,a,n,f,u,l,g))return 0;var h=a-r,T=n-t,c=l-f,i=g-u,d=h*h+T*T,x=c*c+i*i,w=Math.min(s(h,T,d,f-r,u-t),s(h,T,d,l-r,g-t),s(c,i,x,r-f,t-u),s(c,i,x,a-f,n-u));return Math.sqrt(w)};function s(p,r,t,a,n){var f=a*p+n*r;if(f<0)return a*a+n*n;if(f>t){var u=a-p,l=n-r;return u*u+l*l}else{var g=a*r-n*p;return g*g/t}}var L,S,v;H.getTextLocation=function(r,t,a,n){if((r!==S||n!==v)&&(L={},S=r,v=n),L[a])return L[a];var f=r.getPointAtLength(m(a-n/2,t)),u=r.getPointAtLength(m(a+n/2,t)),l=Math.atan((u.y-f.y)/(u.x-f.x)),g=r.getPointAtLength(m(a,t)),h=(g.x*4+f.x+u.x)/6,T=(g.y*4+f.y+u.y)/6,c={x:h,y:T,theta:l};return L[a]=c,c},H.clearLocationCache=function(){S=null},H.getVisibleSegment=function(r,t,a){var n=t.left,f=t.right,u=t.top,l=t.bottom,g=0,h=r.getTotalLength(),T=h,c,i;function d(w){var C=r.getPointAtLength(w);w===0?c=C:w===h&&(i=C);var y=C.xf?C.x-f:0,E=C.yl?C.y-l:0;return Math.sqrt(y*y+E*E)}for(var x=d(g);x;){if(g+=x+a,g>T)return;x=d(g)}for(x=d(T);x;){if(T-=x+a,g>T)return;x=d(T)}return{min:g,max:T,len:T-g,total:h,isClosed:g===0&&T===h&&Math.abs(c.x-i.x)<.1&&Math.abs(c.y-i.y)<.1}},H.findPointOnPath=function(r,t,a,n){n=n||{};for(var f=n.pathLength||r.getTotalLength(),u=n.tolerance||.001,l=n.iterationLimit||30,g=r.getPointAtLength(0)[a]>r.getPointAtLength(f)[a]?-1:1,h=0,T=0,c=f,i,d,x;h0?c=i:T=i,h++}return d}},33040:function(G,H,e){var m=e(38248),P=e(49760),s=e(72160),L=e(8932),S=e(22548).defaultLine,v=e(38116).isArrayOrTypedArray,p=s(S),r=1;function t(l,g){var h=l;return h[3]*=g,h}function a(l){if(m(l))return p;var g=s(l);return g.length?g:p}function n(l){return m(l)?l:r}function f(l,g,h){var T=l.color;T&&T._inputArray&&(T=T._inputArray);var c=v(T),i=v(g),d=L.extractOpts(l),x=[],w,C,y,E,A;if(d.colorscale!==void 0?w=L.makeColorScaleFuncFromTrace(l):w=a,c?C=function(M,b){return M[b]===void 0?p:s(w(M[b]))}:C=a,i?y=function(M,b){return M[b]===void 0?r:n(M[b])}:y=n,c||i)for(var o=0;o1?(P*e+P*m)/P:e+m,L=String(s).length;if(L>16){var S=String(m).length,v=String(e).length;if(L>=v+S){var p=parseFloat(s).toPrecision(12);p.indexOf("e+")===-1&&(s=+p)}}return s}},3400:function(G,H,e){var m=e(33428),P=e(94336).E9,s=e(57624).E9,L=e(38248),S=e(39032),v=S.FP_SAFE,p=-v,r=S.BADNUM,t=G.exports={};t.adjustFormat=function(oe){return!oe||/^\d[.]\df/.test(oe)||/[.]\d%/.test(oe)?oe:oe==="0.f"?"~f":/^\d%/.test(oe)?"~%":/^\ds/.test(oe)?"~s":!/^[~,.0$]/.test(oe)&&/[&fps]/.test(oe)?"~"+oe:oe};var a={};t.warnBadFormat=function(Q){var oe=String(Q);a[oe]||(a[oe]=1,t.warn('encountered bad format: "'+oe+'"'))},t.noFormat=function(Q){return String(Q)},t.numberFormat=function(Q){var oe;try{oe=s(t.adjustFormat(Q))}catch{return t.warnBadFormat(Q),t.noFormat}return oe},t.nestedProperty=e(22296),t.keyedContainer=e(37804),t.relativeAttr=e(23193),t.isPlainObject=e(63620),t.toLogRange=e(36896),t.relinkPrivateKeys=e(51528);var n=e(38116);t.isArrayBuffer=n.isArrayBuffer,t.isTypedArray=n.isTypedArray,t.isArrayOrTypedArray=n.isArrayOrTypedArray,t.isArray1D=n.isArray1D,t.ensureArray=n.ensureArray,t.concat=n.concat,t.maxRowLength=n.maxRowLength,t.minRowLength=n.minRowLength;var f=e(20435);t.mod=f.mod,t.modHalf=f.modHalf;var u=e(63064);t.valObjectMeta=u.valObjectMeta,t.coerce=u.coerce,t.coerce2=u.coerce2,t.coerceFont=u.coerceFont,t.coercePattern=u.coercePattern,t.coerceHoverinfo=u.coerceHoverinfo,t.coerceSelectionMarkerOpacity=u.coerceSelectionMarkerOpacity,t.validate=u.validate;var l=e(67555);t.dateTime2ms=l.dateTime2ms,t.isDateTime=l.isDateTime,t.ms2DateTime=l.ms2DateTime,t.ms2DateTimeLocal=l.ms2DateTimeLocal,t.cleanDate=l.cleanDate,t.isJSDate=l.isJSDate,t.formatDate=l.formatDate,t.incrementMonth=l.incrementMonth,t.dateTick0=l.dateTick0,t.dfltRange=l.dfltRange,t.findExactDates=l.findExactDates,t.MIN_MS=l.MIN_MS,t.MAX_MS=l.MAX_MS;var g=e(14952);t.findBin=g.findBin,t.sorterAsc=g.sorterAsc,t.sorterDes=g.sorterDes,t.distinctVals=g.distinctVals,t.roundUp=g.roundUp,t.sort=g.sort,t.findIndexOfMin=g.findIndexOfMin,t.sortObjectKeys=e(95376);var h=e(63084);t.aggNums=h.aggNums,t.len=h.len,t.mean=h.mean,t.median=h.median,t.midRange=h.midRange,t.variance=h.variance,t.stdev=h.stdev,t.interp=h.interp;var T=e(52248);t.init2dArray=T.init2dArray,t.transposeRagged=T.transposeRagged,t.dot=T.dot,t.translationMatrix=T.translationMatrix,t.rotationMatrix=T.rotationMatrix,t.rotationXYMatrix=T.rotationXYMatrix,t.apply3DTransform=T.apply3DTransform,t.apply2DTransform=T.apply2DTransform,t.apply2DTransform2=T.apply2DTransform2,t.convertCssMatrix=T.convertCssMatrix,t.inverseTransformMatrix=T.inverseTransformMatrix;var c=e(11864);t.deg2rad=c.deg2rad,t.rad2deg=c.rad2deg,t.angleDelta=c.angleDelta,t.angleDist=c.angleDist,t.isFullCircle=c.isFullCircle,t.isAngleInsideSector=c.isAngleInsideSector,t.isPtInsideSector=c.isPtInsideSector,t.pathArc=c.pathArc,t.pathSector=c.pathSector,t.pathAnnulus=c.pathAnnulus;var i=e(98308);t.isLeftAnchor=i.isLeftAnchor,t.isCenterAnchor=i.isCenterAnchor,t.isRightAnchor=i.isRightAnchor,t.isTopAnchor=i.isTopAnchor,t.isMiddleAnchor=i.isMiddleAnchor,t.isBottomAnchor=i.isBottomAnchor;var d=e(92348);t.segmentsIntersect=d.segmentsIntersect,t.segmentDistance=d.segmentDistance,t.getTextLocation=d.getTextLocation,t.clearLocationCache=d.clearLocationCache,t.getVisibleSegment=d.getVisibleSegment,t.findPointOnPath=d.findPointOnPath;var x=e(92880);t.extendFlat=x.extendFlat,t.extendDeep=x.extendDeep,t.extendDeepAll=x.extendDeepAll,t.extendDeepNoArrays=x.extendDeepNoArrays;var w=e(24248);t.log=w.log,t.warn=w.warn,t.error=w.error;var C=e(53756);t.counterRegex=C.counter;var y=e(91200);t.throttle=y.throttle,t.throttleDone=y.done,t.clearThrottle=y.clear;var E=e(52200);t.getGraphDiv=E.getGraphDiv,t.isPlotDiv=E.isPlotDiv,t.removeElement=E.removeElement,t.addStyleRule=E.addStyleRule,t.addRelatedStyleRule=E.addRelatedStyleRule,t.deleteRelatedStyleRule=E.deleteRelatedStyleRule,t.getFullTransformMatrix=E.getFullTransformMatrix,t.getElementTransformMatrix=E.getElementTransformMatrix,t.getElementAndAncestors=E.getElementAndAncestors,t.equalDomRects=E.equalDomRects,t.clearResponsive=e(75352),t.preserveDrawingBuffer=e(34296),t.makeTraceGroups=e(30988),t._=e(98356),t.notifier=e(41792),t.filterUnique=e(68944),t.filterVisible=e(43880),t.pushUnique=e(52416),t.increment=e(1396),t.cleanNumber=e(54037),t.ensureNumber=function(oe){return L(oe)?(oe=Number(oe),oe>v||oe=oe?!1:L(Q)&&Q>=0&&Q%1===0},t.noop=e(16628),t.identity=e(35536),t.repeat=function(Q,oe){for(var Y=new Array(oe),j=0;jY?Math.max(Y,Math.min(oe,Q)):Math.max(oe,Math.min(Y,Q))},t.bBoxIntersect=function(Q,oe,Y){return Y=Y||0,Q.left<=oe.right+Y&&oe.left<=Q.right+Y&&Q.top<=oe.bottom+Y&&oe.top<=Q.bottom+Y},t.simpleMap=function(Q,oe,Y,j,se){for(var te=Q.length,fe=new Array(te),ge=0;ge=Math.pow(2,Y)?se>10?(t.warn("randstr failed uniqueness"),fe):Q(oe,Y,j,(se||0)+1):fe},t.OptionControl=function(Q,oe){Q||(Q={}),oe||(oe="opt");var Y={};return Y.optionList=[],Y._newoption=function(j){j[oe]=Q,Y[j.name]=j,Y.optionList.push(j)},Y["_"+oe]=Q,Y},t.smooth=function(Q,oe){if(oe=Math.round(oe)||0,oe<2)return Q;var Y=Q.length,j=2*Y,se=2*oe-1,te=new Array(se),fe=new Array(Y),ge,be,xe,_e;for(ge=0;ge=j&&(xe-=j*Math.floor(xe/j)),xe<0?xe=-1-xe:xe>=Y&&(xe=j-1-xe),_e+=Q[xe]*te[be];fe[ge]=_e}return fe},t.syncOrAsync=function(Q,oe,Y){var j,se;function te(){return t.syncOrAsync(Q,oe,Y)}for(;Q.length;)if(se=Q.splice(0,1)[0],j=se(oe),j&&j.then)return j.then(te);return Y&&Y(oe)},t.stripTrailingSlash=function(Q){return Q.substr(-1)==="/"?Q.substr(0,Q.length-1):Q},t.noneOrAll=function(Q,oe,Y){if(Q){var j=!1,se=!0,te,fe;for(te=0;te0?se:0})},t.fillArray=function(Q,oe,Y,j){if(j=j||t.identity,t.isArrayOrTypedArray(Q))for(var se=0;se1?se+fe[1]:"";if(te&&(fe.length>1||ge.length>4||Y))for(;j.test(ge);)ge=ge.replace(j,"$1"+te+"$2");return ge+be},t.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var O=/^\w*$/;t.templateString=function(Q,oe){var Y={};return Q.replace(t.TEMPLATE_STRING_REGEX,function(j,se){var te;return O.test(se)?te=oe[se]:(Y[se]=Y[se]||t.nestedProperty(oe,se).get,te=Y[se]()),t.isValidTextValue(te)?te:""})};var F={max:10,count:0,name:"hovertemplate"};t.hovertemplateString=function(){return ne.apply(F,arguments)};var z={max:10,count:0,name:"texttemplate"};t.texttemplateString=function(){return ne.apply(z,arguments)};var B=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function W(Q){var oe=Q.match(B);return oe?{key:oe[1],op:oe[2],number:Number(oe[3])}:{key:Q,op:null,number:null}}var J={max:10,count:0,name:"texttemplate",parseMultDiv:!0};t.texttemplateStringForShapes=function(){return ne.apply(J,arguments)};var re=/^[:|\|]/;function ne(Q,oe,Y){var j=this,se=arguments;oe||(oe={});var te={};return Q.replace(t.TEMPLATE_STRING_REGEX,function(fe,ge,be){var xe=ge==="xother"||ge==="yother",_e=ge==="_xother"||ge==="_yother",De=ge==="_xother_"||ge==="_yother_",Fe=ge==="xother_"||ge==="yother_",Te=xe||_e||Fe||De,Re=ge;(_e||De)&&(Re=Re.substring(1)),(Fe||De)&&(Re=Re.substring(0,Re.length-1));var Se=null,Ie=null;if(j.parseMultDiv){var Me=W(Re);Re=Me.key,Se=Me.op,Ie=Me.number}var Ve;if(Te){if(Ve=oe[Re],Ve===void 0)return""}else{var et,ot;for(ot=3;ot=le&&fe<=$,xe=ge>=le&&ge<=$;if(be&&(j=10*j+fe-le),xe&&(se=10*se+ge-le),!be||!xe){if(j!==se)return j-se;if(fe!==ge)return fe-ge}}return se-j};var Z=2e9;t.seedPseudoRandom=function(){Z=2e9},t.pseudoRandom=function(){var Q=Z;return Z=(69069*Z+1)%4294967296,Math.abs(Z-Q)<429496729?t.pseudoRandom():Z/4294967296},t.fillText=function(Q,oe,Y){var j=Array.isArray(Y)?function(fe){Y.push(fe)}:function(fe){Y.text=fe},se=t.extractOption(Q,oe,"htx","hovertext");if(t.isValidTextValue(se))return j(se);var te=t.extractOption(Q,oe,"tx","text");if(t.isValidTextValue(te))return j(te)},t.isValidTextValue=function(Q){return Q||Q===0},t.formatPercent=function(Q,oe){oe=oe||0;for(var Y=(Math.round(100*Q*Math.pow(10,oe))*Math.pow(.1,oe)).toFixed(oe)+"%",j=0;j1&&(xe=1):xe=0,t.strTranslate(se-xe*(Y+fe),te-xe*(j+ge))+t.strScale(xe)+(be?"rotate("+be+(oe?"":" "+Y+" "+j)+")":"")},t.setTransormAndDisplay=function(Q,oe){Q.attr("transform",t.getTextTransform(oe)),Q.style("display",oe.scale?null:"none")},t.ensureUniformFontSize=function(Q,oe){var Y=t.extendFlat({},oe);return Y.size=Math.max(oe.size,Q._fullLayout.uniformtext.minsize||0),Y},t.join2=function(Q,oe,Y){var j=Q.length;return j>1?Q.slice(0,-1).join(oe)+Y+Q[j-1]:Q.join(oe)},t.bigFont=function(Q){return Math.round(1.2*Q)};var ie=t.getFirefoxVersion(),X=ie!==null&&ie<86;t.getPositionFromD3Event=function(){return X?[m.event.layerX,m.event.layerY]:[m.event.offsetX,m.event.offsetY]}},63620:function(G){G.exports=function(e){return window&&window.process&&window.process.versions?Object.prototype.toString.call(e)==="[object Object]":Object.prototype.toString.call(e)==="[object Object]"&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}},37804:function(G,H,e){var m=e(22296),P=/^\w*$/,s=0,L=1,S=2,v=3,p=4;G.exports=function(t,a,n,f){n=n||"name",f=f||"value";var u,l,g,h={};a&&a.length?(g=m(t,a),l=g.get()):l=t,a=a||"";var T={};if(l)for(u=0;u2)return h[x]=h[x]|S,i.set(d,null);if(c){for(u=x;u1){var S=["LOG:"];for(L=0;L1){var v=[];for(L=0;L"),"long")}},s.warn=function(){var L;if(m.logging>0){var S=["WARN:"];for(L=0;L0){var v=[];for(L=0;L"),"stick")}},s.error=function(){var L;if(m.logging>0){var S=["ERROR:"];for(L=0;L0){var v=[];for(L=0;L"),"stick")}}},30988:function(G,H,e){var m=e(33428);G.exports=function(s,L,S){var v=s.selectAll("g."+S.replace(/\s/g,".")).data(L,function(r){return r[0].trace.uid});v.exit().remove(),v.enter().append("g").attr("class",S),v.order();var p=s.classed("rangeplot")?"nodeRangePlot3":"node3";return v.each(function(r){r[0][p]=m.select(this)}),v}},52248:function(G,H,e){var m=e(36524);H.init2dArray=function(P,s){for(var L=new Array(P),S=0;SP/2?m-Math.round(m/P)*P:m}G.exports={mod:H,modHalf:e}},22296:function(G,H,e){var m=e(38248),P=e(38116).isArrayOrTypedArray;G.exports=function(f,u){if(m(u))u=String(u);else if(typeof u!="string"||u.substr(u.length-4)==="[-1]")throw"bad property string";var l=u.split("."),g,h,T,c;for(c=0;c/g),l=0;lr||x===P||xa||i&&u(c))}function g(c,i){var d=c[0],x=c[1];if(d===P||dr||x===P||xa)return!1;var w=v.length,C=v[0][0],y=v[0][1],E=0,A,o,M,b,I;for(A=1;AMath.max(o,C)||x>Math.max(M,y)))if(xn||Math.abs(m(g,u))>r)return!0;return!1},s.filter=function(S,v){var p=[S[0]],r=0,t=0;function a(f){S.push(f);var u=p.length,l=r;p.splice(t+1);for(var g=l+1;g1){var n=S.pop();a(n)}return{addPt:a,raw:S,filtered:p}}},5048:function(G,H,e){var m=e(16576),P=e(28624);G.exports=function(L,S,v){var p=L._fullLayout,r=!0;return p._glcanvas.each(function(t){if(t.regl){t.regl.preloadCachedCode(v);return}if(!(t.pick&&!p._has("parcoords"))){try{t.regl=P({canvas:this,attributes:{antialias:!t.pick,preserveDrawingBuffer:!0},pixelRatio:L._context.plotGlPixelRatio||e.g.devicePixelRatio,extensions:S||[],cachedCode:v||{}})}catch{r=!1}t.regl||(r=!1),r&&this.addEventListener("webglcontextlost",function(a){L&&L.emit&&L.emit("plotly_webglcontextlost",{event:a,layer:t.key})},!1)}}),r||m({container:p._glcontainer.node()}),r}},34296:function(G,H,e){var m=e(38248),P=e(25928);G.exports=function(S){var v;if(S&&S.hasOwnProperty("userAgent")?v=S.userAgent:v=s(),typeof v!="string")return!0;var p=P({ua:{headers:{"user-agent":v}},tablet:!0,featureDetect:!1});if(!p)for(var r=v.split(" "),t=1;t-1;n--){var f=r[n];if(f.substr(0,8)==="Version/"){var u=f.substr(8).split(".")[0];if(m(u)&&(u=+u),u>=13)return!0}}}return p};function s(){var L;return typeof navigator<"u"&&(L=navigator.userAgent),L&&L.headers&&typeof L.headers["user-agent"]=="string"&&(L=L.headers["user-agent"]),L}},52416:function(G){G.exports=function(e,m){if(m instanceof RegExp){for(var P=m.toString(),s=0;sP.queueLength&&(S.undoQueue.queue.shift(),S.undoQueue.index--)},L.startSequence=function(S){S.undoQueue=S.undoQueue||{index:0,queue:[],sequence:!1},S.undoQueue.sequence=!0,S.undoQueue.beginSequence=!0},L.stopSequence=function(S){S.undoQueue=S.undoQueue||{index:0,queue:[],sequence:!1},S.undoQueue.sequence=!1,S.undoQueue.beginSequence=!1},L.undo=function(v){var p,r;if(!(v.undoQueue===void 0||isNaN(v.undoQueue.index)||v.undoQueue.index<=0)){for(v.undoQueue.index--,p=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,r=0;r=v.undoQueue.queue.length)){for(p=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,r=0;r1?(n[l-1]-n[0])/(l-1):1,T,c;for(h>=0?c=f?v:p:c=f?t:r,a+=h*S*(f?-1:1)*(h>=0?1:-1);u90&&P.log("Long binary search..."),u-1};function v(a,n){return an}function t(a,n){return a>=n}H.sorterAsc=function(a,n){return a-n},H.sorterDes=function(a,n){return n-a},H.distinctVals=function(a){var n=a.slice();n.sort(H.sorterAsc);var f;for(f=n.length-1;f>-1&&n[f]===L;f--);for(var u=n[f]-n[0]||1,l=u/(f||1)/1e4,g=[],h,T=0;T<=f;T++){var c=n[T],i=c-h;h===void 0?(g.push(c),h=c):i>l&&(u=Math.min(u,i),g.push(c),h=c)}return{vals:g,minDiff:u}},H.roundUp=function(a,n,f){for(var u=0,l=n.length-1,g,h=0,T=f?0:1,c=f?1:0,i=f?Math.ceil:Math.floor;u0&&(u=1),f&&u)return a.sort(n)}return u?a:a.reverse()},H.findIndexOfMin=function(a,n){n=n||s;for(var f=1/0,u,l=0;lS.length)&&(v=S.length),m(L)||(L=!1),P(S[0])){for(r=new Array(v),p=0;ps.length-1)return s[s.length-1];var S=L%1;return S*s[Math.ceil(L)]+(1-S)*s[Math.floor(L)]}},43080:function(G,H,e){var m=e(72160);function P(s){return s?m(s):[0,0,0,1]}G.exports=P},9188:function(G,H,e){var m=e(2264),P=e(43616),s=e(3400),L=null;function S(){if(L!==null)return L;L=!1;var v=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!v){var p=Array.from(m.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")L=p.some(function(f){return r.apply(null,f)});else{var t=P.tester.append("image").attr("style",m.STYLE),a=window.getComputedStyle(t.node()),n=a.imageRendering;L=p.some(function(f){var u=f[1];return n===u||n===u.toLowerCase()}),t.remove()}}return L}G.exports=S},72736:function(G,H,e){var m=e(33428),P=e(3400),s=P.strTranslate,L=e(9616),S=e(84284).LINE_SPACING,v=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;H.convertToTspans=function(F,z,B){var W=F.text(),J=!F.attr("data-notex")&&z&&z._context.typesetMath&&typeof MathJax<"u"&&W.match(v),re=m.select(F.node().parentNode);if(re.empty())return;var ne=F.attr("class")?F.attr("class").split(" ")[0]:"text";ne+="-math",re.selectAll("svg."+ne).remove(),re.selectAll("g."+ne+"-group").remove(),F.style("display",null).attr({"data-unformatted":W,"data-math":"N"});function le(){re.empty()||(ne=F.attr("class")+"-math",re.select("svg."+ne).remove()),F.text("").style("white-space","pre");var $=D(F.node(),W);$&&F.style("pointer-events","all"),H.positionText(F),B&&B.call(F)}return J?(z&&z._promises||[]).push(new Promise(function($){F.style("display","none");var Z=parseInt(F.node().style.fontSize,10),ie={fontSize:Z};n(J[2],ie,function(X,Q,oe){re.selectAll("svg."+ne).remove(),re.selectAll("g."+ne+"-group").remove();var Y=X&&X.select("svg");if(!Y||!Y.node()){le(),$();return}var j=re.append("g").classed(ne+"-group",!0).attr({"pointer-events":"none","data-unformatted":W,"data-math":"Y"});j.node().appendChild(Y.node()),Q&&Q.node()&&Y.node().insertBefore(Q.node().cloneNode(!0),Y.node().firstChild);var se=oe.width,te=oe.height;Y.attr({class:ne,height:te,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var fe=F.node().style.fill||"black",ge=Y.select("g");ge.attr({fill:fe,stroke:fe});var be=ge.node().getBoundingClientRect(),xe=be.width,_e=be.height;(xe>se||_e>te)&&(Y.style("overflow","hidden"),be=Y.node().getBoundingClientRect(),xe=be.width,_e=be.height);var De=+F.attr("x"),Fe=+F.attr("y"),Te=Z||F.node().getBoundingClientRect().height,Re=-Te/4;if(ne[0]==="y")j.attr({transform:"rotate("+[-90,De,Fe]+")"+s(-xe/2,Re-_e/2)});else if(ne[0]==="l")Fe=Re-_e/2;else if(ne[0]==="a"&&ne.indexOf("atitle")!==0)De=0,Fe=Re;else{var Se=F.attr("text-anchor");De=De-xe*(Se==="middle"?.5:Se==="end"?1:0),Fe=Fe+Re-_e/2}Y.attr({x:De,y:Fe}),B&&B.call(F,j),$(j)})})):le(),F};var p=/(<|<|<)/g,r=/(>|>|>)/g;function t(F){return F.replace(p,"\\lt ").replace(r,"\\gt ")}var a=[["$","$"],["\\(","\\)"]];function n(F,z,B){var W=parseInt((MathJax.version||"").split(".")[0]);if(W!==2&&W!==3){P.warn("No MathJax version:",MathJax.version);return}var J,re,ne,le,$=function(){return re=P.extendDeepAll({},MathJax.Hub.config),ne=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:a},displayAlign:"left"})},Z=function(){re=P.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=a},ie=function(){if(J=MathJax.Hub.config.menuSettings.renderer,J!=="SVG")return MathJax.Hub.setRenderer("SVG")},X=function(){J=MathJax.config.startup.output,J!=="svg"&&(MathJax.config.startup.output="svg")},Q=function(){var fe="math-output-"+P.randstr({},64);le=m.select("body").append("div").attr({id:fe}).style({visibility:"hidden",position:"absolute","font-size":z.fontSize+"px"}).text(t(F));var ge=le.node();return W===2?MathJax.Hub.Typeset(ge):MathJax.typeset([ge])},oe=function(){var fe=le.select(W===2?".MathJax_SVG":".MathJax"),ge=!fe.empty()&&le.select("svg").node();if(!ge)P.log("There was an error in the tex syntax.",F),B();else{var be=ge.getBoundingClientRect(),xe;W===2?xe=m.select("body").select("#MathJax_SVG_glyphs"):xe=fe.select("defs"),B(fe,xe,be)}le.remove()},Y=function(){if(J!=="SVG")return MathJax.Hub.setRenderer(J)},j=function(){J!=="svg"&&(MathJax.config.startup.output=J)},se=function(){return ne!==void 0&&(MathJax.Hub.processSectionDelay=ne),MathJax.Hub.Config(re)},te=function(){MathJax.config=re};W===2?MathJax.Hub.Queue($,ie,Q,oe,Y,se):W===3&&(Z(),X(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Q(),oe(),j(),te()}))}var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},u={sub:"0.3em",sup:"-0.6em"},l={sub:"-0.21em",sup:"0.42em"},g="​",h=["http:","https:","mailto:","",void 0,":"],T=H.NEWLINES=/(\r\n?|\n)/g,c=/(<[^<>]*>)/,i=/<(\/?)([^ >]*)(\s+(.*))?>/i,d=//i;H.BR_TAG_ALL=//gi;var x=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,w=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,y=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function E(F,z){if(!F)return null;var B=F.match(z),W=B&&(B[3]||B[4]);return W&&b(W)}var A=/(^|;)\s*color:/;H.plainText=function(F,z){z=z||{};for(var B=z.len!==void 0&&z.len!==-1?z.len:1/0,W=z.allowedTags!==void 0?z.allowedTags:["br"],J="...",re=J.length,ne=F.split(c),le=[],$="",Z=0,ie=0;iere?le.push(X.substr(0,j-re)+J):le.push(X.substr(0,j));break}$=""}}return le.join("")};var o={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},M=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function b(F){return F.replace(M,function(z,B){var W;return B.charAt(0)==="#"?W=I(B.charAt(1)==="x"?parseInt(B.substr(2),16):parseInt(B.substr(1),10)):W=o[B],W||z})}H.convertEntities=b;function I(F){if(!(F>1114111)){var z=String.fromCodePoint;if(z)return z(F);var B=String.fromCharCode;return F<=65535?B(F):B((F>>10)+55232,F%1024+56320)}}function D(F,z){z=z.replace(T," ");var B=!1,W=[],J,re=-1;function ne(){re++;var _e=document.createElementNS(L.svg,"tspan");m.select(_e).attr({class:"line",dy:re*S+"em"}),F.appendChild(_e),J=_e;var De=W;if(W=[{node:_e}],De.length>1)for(var Fe=1;Fe.",z);return}var De=W.pop();_e!==De.type&&P.log("Start tag <"+De.type+"> doesnt match end tag <"+_e+">. Pretending it did match.",z),J=W[W.length-1].node}var ie=d.test(z);ie?ne():(J=F,W=[{node:F}]);for(var X=z.split(c),Q=0;Qv.ts+L){t();return}v.timer=setTimeout(function(){t(),v.timer=null},L)},H.done=function(P){var s=e[P];return!s||!s.timer?Promise.resolve():new Promise(function(L){var S=s.onDone;s.onDone=function(){S&&S(),L(),s.onDone=null}})},H.clear=function(P){if(P)m(e[P]),delete e[P];else for(var s in e)H.clear(s)};function m(P){P&&P.timer!==null&&(clearTimeout(P.timer),P.timer=null)}},36896:function(G,H,e){var m=e(38248);G.exports=function(s,L){if(s>0)return Math.log(s)/Math.LN10;var S=Math.log(Math.min(L[0],L[1]))/Math.LN10;return m(S)||(S=Math.log(Math.max(L[0],L[1]))/Math.LN10-6),S}},59972:function(G,H,e){var m=G.exports={},P=e(79552).locationmodeToLayer,s=e(55712).NO;m.getTopojsonName=function(L){return[L.scope.replace(/ /g,"-"),"_",L.resolution.toString(),"m"].join("")},m.getTopojsonPath=function(L,S){return L+S+".json"},m.getTopojsonFeatures=function(L,S){var v=P[L.locationmode],p=S.objects[v];return s(S,p).features}},11680:function(G){G.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(G){G.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(G,H,e){var m=e(24040);G.exports=function(s){for(var L=m.layoutArrayContainers,S=m.layoutArrayRegexes,v=s.split("[")[0],p,r,t=0;t0&&L.log("Clearing previous rejected promises from queue."),d._promises=[]},H.cleanLayout=function(d){var x,w;d||(d={}),d.xaxis1&&(d.xaxis||(d.xaxis=d.xaxis1),delete d.xaxis1),d.yaxis1&&(d.yaxis||(d.yaxis=d.yaxis1),delete d.yaxis1),d.scene1&&(d.scene||(d.scene=d.scene1),delete d.scene1);var C=(S.subplotsRegistry.cartesian||{}).attrRegex,y=(S.subplotsRegistry.polar||{}).attrRegex,E=(S.subplotsRegistry.ternary||{}).attrRegex,A=(S.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(d);for(x=0;x3?(ie.x=1.02,ie.xanchor="left"):ie.x<-2&&(ie.x=-.02,ie.xanchor="right"),ie.y>3?(ie.y=1.02,ie.yanchor="bottom"):ie.y<-2&&(ie.y=-.02,ie.yanchor="top")),f(d),d.dragmode==="rotate"&&(d.dragmode="orbit"),p.clean(d),d.template&&d.template.layout&&H.cleanLayout(d.template.layout),d};function n(d,x){var w=d[x],C=x.charAt(0);w&&w!=="paper"&&(d[x]=r(w,C,!0))}function f(d){d&&((typeof d.title=="string"||typeof d.title=="number")&&(d.title={text:d.title}),x("titlefont","font"),x("titleposition","position"),x("titleside","side"),x("titleoffset","offset"));function x(w,C){var y=d[w],E=d.title&&d.title[C];y&&!E&&(d.title||(d.title={}),d.title[C]=d[w],delete d[w])}}H.cleanData=function(d){for(var x=0;x0)return d.substr(0,x)}H.hasParent=function(d,x){for(var w=c(x);w;){if(w in d)return!0;w=c(w)}return!1};var i=["x","y","z"];H.clearAxisTypes=function(d,x,w){for(var C=0;C1&&s.warn("Full array edits are incompatible with other edits",l);var x=n[""][""];if(p(x))a.set(null);else if(Array.isArray(x))a.set(x);else return s.warn("Unrecognized full array edit value",l,x),!0;return c?!1:(g(i,d),h(t),!0)}var w=Object.keys(n).map(Number).sort(L),C=a.get(),y=C||[],E=u(d,l).get(),A=[],o=-1,M=y.length,b,I,D,N,k,O,F,z;for(b=0;by.length-(F?0:1)){s.warn("index out of range",l,D);continue}if(O!==void 0)k.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",l,D),p(O)?A.push(D):F?(O==="add"&&(O={}),y.splice(D,0,O),E&&E.splice(D,0,{})):s.warn("Unrecognized full object edit value",l,D,O),o===-1&&(o=D);else for(I=0;I=0;b--)y.splice(A[b],1),E&&E.splice(A[b],1);if(y.length?C||a.set(y):a.set(null),c)return!1;if(g(i,d),T!==P){var B;if(o===-1)B=w;else{for(M=Math.max(y.length,M),B=[],b=0;b=o));b++)B.push(D);for(b=o;b=he.data.length||st<-he.data.length)throw new Error(Ne+" must be valid indices for gd.data.");if(me.indexOf(st,Ze+1)>-1||st>=0&&me.indexOf(-he.data.length+st)>-1||st<0&&me.indexOf(he.data.length+st)>-1)throw new Error("each index in "+Ne+" must be unique.")}}function B(he,me,Ne){if(!Array.isArray(he.data))throw new Error("gd.data must be an array.");if(typeof me>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(me)||(me=[me]),z(he,me,"currentIndices"),typeof Ne<"u"&&!Array.isArray(Ne)&&(Ne=[Ne]),typeof Ne<"u"&&z(he,Ne,"newIndices"),typeof Ne<"u"&&me.length!==Ne.length)throw new Error("current and new indices must be of equal length.")}function W(he,me,Ne){var Ze,st;if(!Array.isArray(he.data))throw new Error("gd.data must be an array.");if(typeof me>"u")throw new Error("traces must be defined.");for(Array.isArray(me)||(me=[me]),Ze=0;Ze"u")throw new Error("indices must be an integer or array of integers");z(he,Ne,"indices");for(var lt in me){if(!Array.isArray(me[lt])||me[lt].length!==Ne.length)throw new Error("attribute "+lt+" must be an array of length equal to indices array length");if(st&&(!(lt in Ze)||!Array.isArray(Ze[lt])||Ze[lt].length!==me[lt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function re(he,me,Ne,Ze){var st=L.isPlainObject(Ze),lt=[],Wt,Zt,Tt,Rt,Xt;Array.isArray(Ne)||(Ne=[Ne]),Ne=F(Ne,he.data.length-1);for(var gr in me)for(var gt=0;gt=0&&Xt=0&&Xt"u")return Rt=H.redraw(he),p.add(he,st,Wt,lt,Zt),Rt;Array.isArray(Ne)||(Ne=[Ne]);try{B(he,Ze,Ne)}catch(Xt){throw he.data.splice(he.data.length-me.length,me.length),Xt}return p.startSequence(he),p.add(he,st,Wt,lt,Zt),Rt=H.moveTraces(he,Ze,Ne),p.stopSequence(he),Rt}function X(he,me){he=L.getGraphDiv(he);var Ne=[],Ze=H.addTraces,st=X,lt=[he,Ne,me],Wt=[he,me],Zt,Tt;if(typeof me>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(me)||(me=[me]),z(he,me,"indices"),me=F(me,he.data.length-1),me.sort(L.sorterDes),Zt=0;Zt"u")for(Ne=[],Rt=0;Rt-1&<.indexOf("grouptitlefont")===-1?Zt(lt,lt.replace("titlefont","title.font")):lt.indexOf("titleposition")>-1?Zt(lt,lt.replace("titleposition","title.position")):lt.indexOf("titleside")>-1?Zt(lt,lt.replace("titleside","title.side")):lt.indexOf("titleoffset")>-1&&Zt(lt,lt.replace("titleoffset","title.offset"));function Zt(Tt,Rt){he[Rt]=he[Tt],delete he[Tt]}}function be(he,me,Ne){he=L.getGraphDiv(he),x.clearPromiseQueue(he);var Ze={};if(typeof me=="string")Ze[me]=Ne;else if(L.isPlainObject(me))Ze=L.extendFlat({},me);else return L.warn("Relayout fail.",me,Ne),Promise.reject();Object.keys(Ze).length&&(he.changed=!0);var st=Re(he,Ze),lt=st.flags;lt.calc&&(he.calcdata=void 0);var Wt=[a.previousPromises];lt.layoutReplot?Wt.push(w.layoutReplot):Object.keys(Ze).length&&(xe(he,lt,st)||a.supplyDefaults(he),lt.legend&&Wt.push(w.doLegend),lt.layoutstyle&&Wt.push(w.layoutStyles),lt.axrange&&_e(Wt,st.rangesAltered),lt.ticks&&Wt.push(w.doTicksRelayout),lt.modebar&&Wt.push(w.doModeBar),lt.camera&&Wt.push(w.doCamera),lt.colorbars&&Wt.push(w.doColorBars),Wt.push(M)),Wt.push(a.rehover,a.redrag,a.reselect),p.add(he,be,[he,st.undoit],be,[he,st.redoit]);var Zt=L.syncOrAsync(Wt,he);return(!Zt||!Zt.then)&&(Zt=Promise.resolve(he)),Zt.then(function(){return he.emit("plotly_relayout",st.eventData),he})}function xe(he,me,Ne){var Ze=he._fullLayout;if(!me.axrange)return!1;for(var st in me)if(st!=="axrange"&&me[st])return!1;var lt,Wt,Zt=function(Kt,Qt){return L.coerce(lt,Wt,u,Kt,Qt)},Tt={};for(var Rt in Ne.rangesAltered){var Xt=n.id2name(Rt);if(lt=he.layout[Xt],Wt=Ze[Xt],f(lt,Wt,Zt,Tt),Wt._matchGroup){for(var gr in Wt._matchGroup)if(gr!==Rt){var gt=Ze[n.id2name(gr)];gt.autorange=Wt.autorange,gt.range=Wt.range.slice(),gt._input.range=Wt.range.slice()}}}return!0}function _e(he,me){var Ne=me?function(Ze){var st=[],lt=!0;for(var Wt in me){var Zt=n.getFromId(Ze,Wt);if(st.push(Wt),(Zt.ticklabelposition||"").indexOf("inside")!==-1&&Zt._anchorAxis&&st.push(Zt._anchorAxis._id),Zt._matchGroup)for(var Tt in Zt._matchGroup)me[Tt]||st.push(Tt)}return n.draw(Ze,st,{skipTitle:lt})}:function(Ze){return n.draw(Ze,"redraw")};he.push(c,w.doAutoRangeAndConstraints,Ne,w.drawData,w.finalDraw)}var De=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Fe=/^[xyz]axis[0-9]*\.autorange$/,Te=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Re(he,me){var Ne=he.layout,Ze=he._fullLayout,st=Ze._guiEditing,lt=j(Ze._preGUI,st),Wt=Object.keys(me),Zt=n.list(he),Tt=L.extendDeepAll({},me),Rt={},Xt,gr,gt;for(ge(me),Wt=Object.keys(me),gr=0;gr0&&typeof Ut.parts[fr]!="string";)fr--;var dr=Ut.parts[fr],Ye=Ut.parts[fr-1]+"."+dr,Ue=Ut.parts.slice(0,fr).join("."),zt=S(he.layout,Ue).get(),Dt=S(Ze,Ue).get(),$t=Ut.get();if(Jt!==void 0){ut[Bt]=Jt,at[Bt]=dr==="reverse"?Jt:Y($t);var sr=t.getLayoutValObject(Ze,Ut.parts);if(sr&&sr.impliedEdits&&Jt!==null)for(var cr in sr.impliedEdits)xt(L.relativeAttr(Bt,cr),sr.impliedEdits[cr]);if(["width","height"].indexOf(Bt)!==-1)if(Jt){xt("autosize",null);var tr=Bt==="height"?"width":"height";xt(tr,Ze[tr])}else Ze[Bt]=he._initialAutoSize[Bt];else if(Bt==="autosize")xt("width",Jt?null:Ze.width),xt("height",Jt?null:Ze.height);else if(Ye.match(De))Vt(Ye),S(Ze,Ue+"._inputRange").set(null);else if(Ye.match(Fe)){Vt(Ye),S(Ze,Ue+"._inputRange").set(null);var Nt=S(Ze,Ue).get();Nt._inputDomain&&(Nt._input.domain=Nt._inputDomain.slice())}else Ye.match(Te)&&S(Ze,Ue+"._inputDomain").set(null);if(dr==="type"){Et=zt;var ir=Dt.type==="linear"&&Jt==="log",hr=Dt.type==="log"&&Jt==="linear";if(ir||hr){if(!Et||!Et.range)xt(Ue+".autorange",!0);else if(Dt.autorange)ir&&(Et.range=Et.range[1]>Et.range[0]?[1,2]:[2,1]);else{var xr=Et.range[0],vr=Et.range[1];ir?(xr<=0&&vr<=0&&xt(Ue+".autorange",!0),xr<=0?xr=vr/1e6:vr<=0&&(vr=xr/1e6),xt(Ue+".range[0]",Math.log(xr)/Math.LN10),xt(Ue+".range[1]",Math.log(vr)/Math.LN10)):(xt(Ue+".range[0]",Math.pow(10,xr)),xt(Ue+".range[1]",Math.pow(10,vr)))}Array.isArray(Ze._subplots.polar)&&Ze._subplots.polar.length&&Ze[Ut.parts[0]]&&Ut.parts[1]==="radialaxis"&&delete Ze[Ut.parts[0]]._subplot.viewInitial["radialaxis.range"],r.getComponentMethod("annotations","convertCoords")(he,Dt,Jt,xt),r.getComponentMethod("images","convertCoords")(he,Dt,Jt,xt)}else xt(Ue+".autorange",!0),xt(Ue+".range",null);S(Ze,Ue+"._inputRange").set(null)}else if(dr.match(y)){var Hr=S(Ze,Bt).get(),Pr=(Jt||{}).type;(!Pr||Pr==="-")&&(Pr="linear"),r.getComponentMethod("annotations","convertCoords")(he,Hr,Pr,xt),r.getComponentMethod("images","convertCoords")(he,Hr,Pr,xt)}var Rr=d.containerArrayMatch(Bt);if(Rr){Xt=Rr.array,gr=Rr.index;var an=Rr.property,tn=sr||{editType:"calc"};gr!==""&&an===""&&(d.isAddVal(Jt)?at[Bt]=null:d.isRemoveVal(Jt)?at[Bt]=(S(Ne,Xt).get()||[])[gr]:L.warn("unrecognized full object value",me)),C.update(Ot,tn),Rt[Xt]||(Rt[Xt]={});var Sn=Rt[Xt][gr];Sn||(Sn=Rt[Xt][gr]={}),Sn[an]=Jt,delete me[Bt]}else dr==="reverse"?(zt.range?zt.range.reverse():(xt(Ue+".autorange",!0),zt.range=[1,0]),Dt.autorange?Ot.calc=!0:Ot.plot=!0):(Bt==="dragmode"&&(Jt===!1&&$t!==!1||Jt!==!1&&$t===!1)||Ze._has("scatter-like")&&Ze._has("regl")&&Bt==="dragmode"&&(Jt==="lasso"||Jt==="select")&&!($t==="lasso"||$t==="select")||Ze._has("gl2d")?Ot.plot=!0:sr?C.update(Ot,sr):Ot.calc=!0,Ut.set(Jt))}}for(Xt in Rt){var Tn=d.applyContainerArrayChanges(he,lt(Ne,Xt),Rt[Xt],Ot,lt);Tn||(Ot.plot=!0)}for(var Tr in At){Et=n.getFromId(he,Tr);var zr=Et&&Et._constraintGroup;if(zr){Ot.calc=!0;for(var Yr in zr)At[Yr]||(n.getFromId(he,Yr)._constraintShrinkable=!0)}}(Se(he)||me.height||me.width)&&(Ot.plot=!0);var Or=Ze.shapes;for(gr=0;gr1;)if(Ze.pop(),Ne=S(me,Ze.join(".")+".uirevision").get(),Ne!==void 0)return Ne;return me.uirevision}function $e(he,me){for(var Ne=0;Ne=st.length?st[0]:st[Rt]:st}function Zt(Rt){return Array.isArray(lt)?Rt>=lt.length?lt[0]:lt[Rt]:lt}function Tt(Rt,Xt){var gr=0;return function(){if(Rt&&++gr===Xt)return Rt()}}return new Promise(function(Rt,Xt){function gr(){if(Ze._frameQueue.length!==0){for(;Ze._frameQueue.length;){var dr=Ze._frameQueue.pop();dr.onInterrupt&&dr.onInterrupt()}he.emit("plotly_animationinterrupted",[])}}function gt(dr){if(dr.length!==0){for(var Ye=0;YeZe._timeToNext&&Qt()};dr()}var Ot=0;function ut(dr){return Array.isArray(st)?Ot>=st.length?dr.transitionOpts=st[Ot]:dr.transitionOpts=st[0]:dr.transitionOpts=st,Ot++,dr}var at,xt,At=[],Et=me==null,Vt=Array.isArray(me),Bt=!Et&&!Vt&&L.isPlainObject(me);if(Bt)At.push({type:"object",data:ut(L.extendFlat({},me))});else if(Et||["string","number"].indexOf(typeof me)!==-1)for(at=0;at0&&urur)&&fr.push(xt);At=fr}}At.length>0?gt(At):(he.emit("plotly_animated"),Rt())})}function Ge(he,me,Ne){if(he=L.getGraphDiv(he),me==null)return Promise.resolve();if(!L.isPlotDiv(he))throw new Error("This element is not a Plotly plot: "+he+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Ze,st,lt,Wt,Zt=he._transitionData._frames,Tt=he._transitionData._frameHash;if(!Array.isArray(me))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+me);var Rt=Zt.length+me.length*2,Xt=[],gr={};for(Ze=me.length-1;Ze>=0;Ze--)if(L.isPlainObject(me[Ze])){var gt=me[Ze].name,Kt=(Tt[gt]||gr[gt]||{}).name,Qt=me[Ze].name,yr=Tt[Kt]||gr[Kt];Kt&&Qt&&typeof Qt=="number"&&yr&&EUt.index?-1:Bt.index=0;Ze--){if(st=Xt[Ze].frame,typeof st.name=="number"&&L.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!st.name)for(;Tt[st.name="frame "+he._transitionData._counter++];);if(Tt[st.name]){for(lt=0;lt=0;Ne--)Ze=me[Ne],lt.push({type:"delete",index:Ze}),Wt.unshift({type:"insert",index:Ze,value:st[Ze]});var Zt=a.modifyFrames,Tt=a.modifyFrames,Rt=[he,Wt],Xt=[he,lt];return p&&p.add(he,Zt,Rt,Tt,Xt),a.modifyFrames(he,lt)}function Pe(he){he=L.getGraphDiv(he);var me=he._fullLayout||{},Ne=he._fullData||[];return a.cleanPlot([],{},Ne,me),a.purge(he),v.purge(he),me._container&&me._container.remove(),delete he._context,he}function je(he){var me=he._fullLayout,Ne=he.getBoundingClientRect();if(!L.equalDomRects(Ne,me._lastBBox)){var Ze=me._invTransform=L.inverseTransformMatrix(L.getFullTransformMatrix(he));me._invScaleX=Math.sqrt(Ze[0][0]*Ze[0][0]+Ze[0][1]*Ze[0][1]+Ze[0][2]*Ze[0][2]),me._invScaleY=Math.sqrt(Ze[1][0]*Ze[1][0]+Ze[1][1]*Ze[1][1]+Ze[1][2]*Ze[1][2]),me._lastBBox=Ne}}function Ce(he){var me=m.select(he),Ne=he._fullLayout;if(Ne._calcInverseTransform=je,Ne._calcInverseTransform(he),Ne._container=me.selectAll(".plot-container").data([0]),Ne._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),Ne._paperdiv=Ne._container.selectAll(".svg-container").data([0]),Ne._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Ne._glcontainer=Ne._paperdiv.selectAll(".gl-container").data([{}]),Ne._glcontainer.enter().append("div").classed("gl-container",!0),Ne._paperdiv.selectAll(".main-svg").remove(),Ne._paperdiv.select(".modebar-container").remove(),Ne._paper=Ne._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Ne._toppaper=Ne._paperdiv.append("svg").classed("main-svg",!0),Ne._modebardiv=Ne._paperdiv.append("div"),delete Ne._modeBar,Ne._hoverpaper=Ne._paperdiv.append("svg").classed("main-svg",!0),!Ne._uid){var Ze={};m.selectAll("defs").each(function(){this.id&&(Ze[this.id.split("-")[1]]=1)}),Ne._uid=L.randstr(Ze)}Ne._paperdiv.selectAll(".main-svg").attr(T.svgAttrs),Ne._defs=Ne._paper.append("defs").attr("id","defs-"+Ne._uid),Ne._clips=Ne._defs.append("g").classed("clips",!0),Ne._topdefs=Ne._toppaper.append("defs").attr("id","topdefs-"+Ne._uid),Ne._topclips=Ne._topdefs.append("g").classed("clips",!0),Ne._bgLayer=Ne._paper.append("g").classed("bglayer",!0),Ne._draggers=Ne._paper.append("g").classed("draglayer",!0);var st=Ne._paper.append("g").classed("layer-below",!0);Ne._imageLowerLayer=st.append("g").classed("imagelayer",!0),Ne._shapeLowerLayer=st.append("g").classed("shapelayer",!0),Ne._cartesianlayer=Ne._paper.append("g").classed("cartesianlayer",!0),Ne._polarlayer=Ne._paper.append("g").classed("polarlayer",!0),Ne._smithlayer=Ne._paper.append("g").classed("smithlayer",!0),Ne._ternarylayer=Ne._paper.append("g").classed("ternarylayer",!0),Ne._geolayer=Ne._paper.append("g").classed("geolayer",!0),Ne._funnelarealayer=Ne._paper.append("g").classed("funnelarealayer",!0),Ne._pielayer=Ne._paper.append("g").classed("pielayer",!0),Ne._iciclelayer=Ne._paper.append("g").classed("iciclelayer",!0),Ne._treemaplayer=Ne._paper.append("g").classed("treemaplayer",!0),Ne._sunburstlayer=Ne._paper.append("g").classed("sunburstlayer",!0),Ne._indicatorlayer=Ne._toppaper.append("g").classed("indicatorlayer",!0),Ne._glimages=Ne._paper.append("g").classed("glimages",!0);var lt=Ne._toppaper.append("g").classed("layer-above",!0);Ne._imageUpperLayer=lt.append("g").classed("imagelayer",!0),Ne._shapeUpperLayer=lt.append("g").classed("shapelayer",!0),Ne._selectionLayer=Ne._toppaper.append("g").classed("selectionlayer",!0),Ne._infolayer=Ne._toppaper.append("g").classed("infolayer",!0),Ne._menulayer=Ne._toppaper.append("g").classed("menulayer",!0),Ne._zoomlayer=Ne._toppaper.append("g").classed("zoomlayer",!0),Ne._hoverlayer=Ne._hoverpaper.append("g").classed("hoverlayer",!0),Ne._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),he.emit("plotly_framework")}H.animate=We,H.addFrames=Ge,H.deleteFrames=Le,H.addTraces=ie,H.deleteTraces=X,H.extendTraces=$,H.moveTraces=Q,H.prependTraces=Z,H.newPlot=O,H._doPlot=o,H.purge=Pe,H.react=wt,H.redraw=k,H.relayout=be,H.restyle=oe,H.setPlotConfig=b,H.update=Ie,H._guiRelayout=Me(be),H._guiRestyle=Me(oe),H._guiUpdate=Me(Ie),H._storeDirectGUIEdit=te},20556:function(G){var H={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},e={};function m(P,s){for(var L in P){var S=P[L];S.valType?s[L]=S.dflt:(s[L]||(s[L]={}),m(S,s[L]))}}m(H,e),G.exports={configAttributes:H,dfltConfig:e}},73060:function(G,H,e){var m=e(24040),P=e(3400),s=e(45464),L=e(64859),S=e(16672),v=e(85656),p=e(20556).configAttributes,r=e(67824),t=P.extendDeepAll,a=P.isPlainObject,n=P.isArrayOrTypedArray,f=P.nestedProperty,u=P.valObjectMeta,l="_isSubplotObj",g="_isLinkedToArray",h="_arrayAttrRegexps",T="_deprecated",c=[l,g,h,T];H.IS_SUBPLOT_OBJ=l,H.IS_LINKED_TO_ARRAY=g,H.DEPRECATED=T,H.UNDERSCORE_ATTRS=c,H.get=function(){var N={};m.allTypes.forEach(function(O){N[O]=w(O)});var k={};return Object.keys(m.transformsRegistry).forEach(function(O){k[O]=y(O)}),{defs:{valObjects:u,metaKeys:c.concat(["description","role","editType","impliedEdits"]),editType:{traces:r.traces,layout:r.layout},impliedEdits:{}},traces:N,layout:C(),transforms:k,frames:E(),animation:A(v),config:A(p)}},H.crawl=function(N,k,O,F){var z=O||0;F=F||"",Object.keys(N).forEach(function(B){var W=N[B];if(c.indexOf(B)===-1){var J=(F?F+".":"")+B;k(W,B,N,z,J),!H.isValObject(W)&&a(W)&&B!=="impliedEdits"&&H.crawl(W,k,z+1,J)}})},H.isValObject=function(N){return N&&N.valType!==void 0},H.findArrayAttributes=function(N){var k=[],O=[],F=[],z,B;function W(Z,ie,X,Q){O=O.slice(0,Q).concat([ie]),F=F.slice(0,Q).concat([Z&&Z._isLinkedToArray]);var oe=Z&&(Z.valType==="data_array"||Z.arrayOk===!0)&&!(O[Q-1]==="colorbar"&&(ie==="ticktext"||ie==="tickvals"));oe&&J(z,0,"")}function J(Z,ie,X){var Q=Z[O[ie]],oe=X+O[ie];if(ie===O.length-1)n(Q)&&k.push(B+oe);else if(F[ie]){if(Array.isArray(Q))for(var Y=0;Y=W.length)return!1;z=(m.transformsRegistry[W[J].type]||{}).attributes,B=z&&z[k[2]],F=3}else{var re=N._module;if(re||(re=(m.modules[N.type||s.type.dflt]||{})._module),!re)return!1;if(z=re.attributes,B=z&&z[O],!B){var ne=re.basePlotModule;ne&&ne.attributes&&(B=ne.attributes[O])}B||(B=s[O])}return d(B,k,F)},H.getLayoutValObject=function(N,k){var O=i(N,k[0]);return d(O,k,1)};function i(N,k){var O,F,z,B,W=N._basePlotModules;if(W){var J;for(O=0;O=B.length)return!1;if(N.dimensions===2){if(O++,k.length===O)return N;var W=k[O];if(!x(W))return!1;N=B[z][W]}else N=B[z]}else N=B}}return N}function x(N){return N===Math.round(N)&&N>=0}function w(N){var k,O;k=m.modules[N]._module,O=k.basePlotModule;var F={};F.type=null;var z=t({},s),B=t({},k.attributes);H.crawl(B,function(re,ne,le,$,Z){f(z,Z).set(void 0),re===void 0&&f(B,Z).set(void 0)}),t(F,z),m.traceIs(N,"noOpacity")&&delete F.opacity,m.traceIs(N,"showLegend")||(delete F.showlegend,delete F.legendgroup),m.traceIs(N,"noHover")&&(delete F.hoverinfo,delete F.hoverlabel),k.selectPoints||delete F.selectedpoints,t(F,B),O.attributes&&t(F,O.attributes),F.type=N;var W={meta:k.meta||{},categories:k.categories||{},animatable:!!k.animatable,type:N,attributes:A(F)};if(k.layoutAttributes){var J={};t(J,k.layoutAttributes),W.layoutAttributes=A(J)}return k.animatable||H.crawl(W,function(re){H.isValObject(re)&&"anim"in re&&delete re.anim}),W}function C(){var N={},k,O;t(N,L);for(k in m.subplotsRegistry)if(O=m.subplotsRegistry[k],!!O.layoutAttributes)if(Array.isArray(O.attr))for(var F=0;F=a&&(t._input||{})._templateitemname;f&&(n=a);var u=r+"["+n+"]",l;function g(){l={},f&&(l[u]={},l[u][s]=f)}g();function h(d,x){l[d]=x}function T(d,x){f?m.nestedProperty(l[u],d).set(x):l[u+"."+d]=x}function c(){var d=l;return g(),d}function i(d,x){d&&T(d,x);var w=c();for(var C in w)m.nestedProperty(p,C).set(w[C])}return{modifyBase:h,modifyItem:T,getUpdateObj:c,applyUpdate:i}}},39172:function(G,H,e){var m=e(33428),P=e(24040),s=e(7316),L=e(3400),S=e(72736),v=e(73696),p=e(76308),r=e(43616),t=e(81668),a=e(45460),n=e(54460),f=e(84284),u=e(71888),l=u.enforce,g=u.clean,h=e(19280).doAutoRange,T="start",c="middle",i="end";H.layoutStyles=function(O){return L.syncOrAsync([s.doAutoMargin,x],O)};function d(O,F,z){for(var B=0;B=O[1]||W[1]<=O[0])&&J[0]F[0])return!0}return!1}function x(O){var F=O._fullLayout,z=F._size,B=z.p,W=n.list(O,"",!0),J,re,ne,le,$,Z;if(F._paperdiv.style({width:O._context.responsive&&F.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":F.width+"px",height:O._context.responsive&&F.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":F.height+"px"}).selectAll(".main-svg").call(r.setSize,F.width,F.height),O._context.setBackground(O,F.paper_bgcolor),H.drawMainTitle(O),a.manage(O),!F._has("cartesian"))return s.previousPromises(O);function ie(Pe,je,Ce){var he=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(je){if(Ce==="top")return je._offset-B-he}else return z.t+z.h*(1-(Pe.position||0))+he%1;return je._offset+je._length+B+he}if(je){if(Ce==="right")return je._offset+je._length+B+he}else return z.l+z.w*(Pe.position||0)+he%1;return je._offset-B-he}for(J=0;J0){M(O,J,$,le),ne.attr({x:re,y:J,"text-anchor":B,dy:D(F.yanchor)}).call(S.positionText,re,J);var Z=(F.text.match(S.BR_TAG_ALL)||[]).length;if(Z){var ie=f.LINE_SPACING*Z+f.MID_SHIFT;F.y===0&&(ie=-ie),ne.selectAll(".line").each(function(){var X=+this.getAttribute("dy").slice(0,-2)-ie+"em";this.setAttribute("dy",X)})}}}};function E(O,F,z,B,W){var J=F.yref==="paper"?O._fullLayout._size.h:O._fullLayout.height,re=L.isTopAnchor(F)?B:B-W,ne=z==="b"?J-re:re;return L.isTopAnchor(F)&&z==="t"||L.isBottomAnchor(F)&&z==="b"?!1:ne.5?"t":"b",re=O._fullLayout.margin[J],ne=0;return F.yref==="paper"?ne=z+F.pad.t+F.pad.b:F.yref==="container"&&(ne=A(J,B,W,O._fullLayout.height,z)+F.pad.t+F.pad.b),ne>re?ne:0}function M(O,F,z,B){var W="title.automargin",J=O._fullLayout.title,re=J.y>.5?"t":"b",ne={x:J.x,y:J.y,t:0,b:0},le={};J.yref==="paper"&&E(O,J,re,F,B)?ne[re]=z:J.yref==="container"&&(le[re]=z,O._fullLayout._reservedMargin[W]=le),s.allowAutoMargin(O,W),s.autoMargin(O,W,ne)}function b(O,F){var z=O.title,B=O._size,W=0;switch(F===T?W=z.pad.l:F===i&&(W=-z.pad.r),z.xref){case"paper":return B.l+B.w*z.x+W;case"container":default:return O.width*z.x+W}}function I(O,F){var z=O.title,B=O._size,W=0;if(F==="0em"||!F?W=-z.pad.b:F===f.CAP_SHIFT+"em"&&(W=z.pad.t),z.y==="auto")return B.t/2;switch(z.yref){case"paper":return B.t+B.h-B.h*z.y+W;case"container":default:return O.height-O.height*z.y+W}}function D(O){return O==="top"?f.CAP_SHIFT+.3+"em":O==="bottom"?"-0.3em":f.MID_SHIFT+"em"}function N(O){var F=O.title,z=c;return L.isRightAnchor(F)?z=i:L.isLeftAnchor(F)&&(z=T),z}function k(O){var F=O.title,z="0em";return L.isTopAnchor(F)?z=f.CAP_SHIFT+"em":L.isMiddleAnchor(F)&&(z=f.MID_SHIFT+"em"),z}H.doTraceStyle=function(O){var F=O.calcdata,z=[],B;for(B=0;Bk?w.push({code:"unused",traceType:b,templateCount:N,dataCount:k}):k>N&&w.push({code:"reused",traceType:b,templateCount:N,dataCount:k})}}function O(F,z){for(var B in F)if(B.charAt(0)!=="_"){var W=F[B],J=u(F,B,z);P(W)?(Array.isArray(F)&&W._template===!1&&W.templateitemname&&w.push({code:"missing",path:J,templateitemname:W.templateitemname}),O(W,J)):Array.isArray(W)&&l(W)&&O(W,J)}}if(O({data:y,layout:C},""),w.length)return w.map(g)};function l(h){for(var T=0;T1&&w.push(f("object","layout"))),P.supplyDefaults(C);for(var A=C._fullData,o=y.length,M=0;Mb.length&&x.push(f("unused",w,o.concat(b.length)));var F=b.length,z=Array.isArray(O);z&&(F=Math.min(F,O.length));var B,W,J,re,ne;if(I.dimensions===2)for(W=0;Wb[W].length&&x.push(f("unused",w,o.concat(W,b[W].length)));var le=b[W].length;for(B=0;B<(z?Math.min(le,O[W].length):le);B++)J=z?O[W][B]:O,re=M[W][B],ne=b[W][B],m.validate(re,J)?ne!==re&&ne!==+re&&x.push(f("dynamic",w,o.concat(W,B),re,ne)):x.push(f("value",w,o.concat(W,B),re))}else x.push(f("array",w,o.concat(W),M[W]));else for(W=0;W0&&Math.round(g)===g)l=g;else return{vals:n}}for(var h=t.calendar,T=f==="start",c=f==="end",i=r[a+"period0"],d=s(i,h)||0,x=[],w=[],C=[],y=n.length,E=0;EA;)b=L(b,-l,h);for(;b<=A;)b=L(b,l,h);M=L(b,-l,h)}else{for(o=Math.round((A-d)/u),b=d+o*u;b>A;)b-=u;for(;b<=A;)b+=u;M=b-u}x[E]=T?M:c?b:(M+b)/2,w[E]=M,C[E]=b}return{vals:x,starts:w,ends:C}}},26720:function(G){G.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(G,H,e){var m=e(33428),P=e(38248),s=e(3400),L=e(39032).FP_SAFE,S=e(24040),v=e(43616),p=e(79811),r=p.getFromId,t=p.isLinked;G.exports={applyAutorangeOptions:o,getAutoRange:a,makePadFn:f,doAutoRange:h,findExtremes:T,concatExtremes:g};function a(M,b){var I,D,N=[],k=M._fullLayout,O=f(k,b,0),F=f(k,b,1),z=g(M,b),B=z.min,W=z.max;if(B.length===0||W.length===0)return s.simpleMap(b.range,b.r2l);var J=B[0].val,re=W[0].val;for(I=1;I0&&(ge=Q-O(j)-F(se),ge>oe?be/ge>Y&&(te=j,fe=se,Y=be/ge):be/Q>Y&&(te={val:j.val,nopad:1},fe={val:se.val,nopad:1},Y=be/Q));function xe(Re,Se){return Math.max(Re,F(Se))}if(J===re){var _e=J-1,De=J+1;if(ie)if(J===0)N=[0,1];else{var Fe=(J>0?W:B).reduce(xe,0),Te=J/(1-Math.min(.5,Fe/Q));N=J>0?[0,Te]:[Te,0]}else X?N=[Math.max(0,_e),Math.max(1,De)]:N=[_e,De]}else ie?(te.val>=0&&(te={val:0,nopad:1}),fe.val<=0&&(fe={val:0,nopad:1})):X&&(te.val-Y*O(te)<0&&(te={val:0,nopad:1}),fe.val<=0&&(fe={val:1,nopad:1})),Y=(fe.val-te.val-n(b,j.val,se.val))/(Q-O(te)-F(fe)),N=[te.val-Y*O(te),fe.val+Y*F(fe)];return N=o(N,b),b.limitRange&&b.limitRange(),le&&N.reverse(),s.simpleMap(N,b.l2r||Number)}function n(M,b,I){var D=0;if(M.rangebreaks)for(var N=M.locateBreaks(b,I),k=0;k0?I.ppadplus:I.ppadminus)||I.ppad||0),j=oe((M._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),se=oe(I.vpadplus||I.vpad),te=oe(I.vpadminus||I.vpad);if(!B){if(X=1/0,Q=-1/0,z)for(J=0;J0&&(X=re),re>Q&&re-L&&(X=re),re>Q&&re=be;J--)ge(J);return{min:D,max:N,opts:I}}function c(M,b,I,D){d(M,b,I,D,w)}function i(M,b,I,D){d(M,b,I,D,C)}function d(M,b,I,D,N){for(var k=D.tozero,O=D.extrapad,F=!0,z=0;z=I&&(B.extrapad||!O)){F=!1;break}else N(b,B.val)&&B.pad<=I&&(O||!B.extrapad)&&(M.splice(z,1),z--)}if(F){var W=k&&b===0;M.push({val:b,pad:W?0:I,extrapad:W?!1:O})}}function x(M){return P(M)&&Math.abs(M)=b}function y(M,b){var I=b.autorangeoptions;return I&&I.minallowed!==void 0&&A(b,I.minallowed,I.maxallowed)?I.minallowed:I&&I.clipmin!==void 0&&A(b,I.clipmin,I.clipmax)?Math.max(M,b.d2l(I.clipmin)):M}function E(M,b){var I=b.autorangeoptions;return I&&I.maxallowed!==void 0&&A(b,I.minallowed,I.maxallowed)?I.maxallowed:I&&I.clipmax!==void 0&&A(b,I.clipmin,I.clipmax)?Math.min(M,b.d2l(I.clipmax)):M}function A(M,b,I){return b!==void 0&&I!==void 0?(b=M.d2l(b),I=M.d2l(I),b=z&&(k=z,I=z),O<=z&&(O=z,D=z)}}return I=y(I,b),D=E(D,b),[I,D]}},76808:function(G){G.exports=function(e,m,P){var s,L;if(P){var S=m==="reversed"||m==="min reversed"||m==="max reversed";s=P[S?1:0],L=P[S?0:1]}var v=e("autorangeoptions.minallowed",L===null?s:void 0),p=e("autorangeoptions.maxallowed",s===null?L:void 0);v===void 0&&e("autorangeoptions.clipmin"),p===void 0&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")}},54460:function(G,H,e){var m=e(33428),P=e(38248),s=e(7316),L=e(24040),S=e(3400),v=S.strTranslate,p=e(72736),r=e(81668),t=e(76308),a=e(43616),n=e(94724),f=e(98728),u=e(39032),l=u.ONEMAXYEAR,g=u.ONEAVGYEAR,h=u.ONEMINYEAR,T=u.ONEMAXQUARTER,c=u.ONEAVGQUARTER,i=u.ONEMINQUARTER,d=u.ONEMAXMONTH,x=u.ONEAVGMONTH,w=u.ONEMINMONTH,C=u.ONEWEEK,y=u.ONEDAY,E=y/2,A=u.ONEHOUR,o=u.ONEMIN,M=u.ONESEC,b=u.MINUS_SIGN,I=u.BADNUM,D={K:"zeroline"},N={K:"gridline",L:"path"},k={K:"minor-gridline",L:"path"},O={K:"tick",L:"path"},F={K:"tick",L:"text"},z={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},B=e(84284),W=B.MID_SHIFT,J=B.CAP_SHIFT,re=B.LINE_SPACING,ne=B.OPPOSITE_SIDE,le=3,$=G.exports={};$.setConvert=e(78344);var Z=e(52976),ie=e(79811),X=ie.idSort,Q=ie.isLinked;$.id2name=ie.id2name,$.name2id=ie.name2id,$.cleanId=ie.cleanId,$.list=ie.list,$.listIds=ie.listIds,$.getFromId=ie.getFromId,$.getFromTrace=ie.getFromTrace;var oe=e(19280);$.getAutoRange=oe.getAutoRange,$.findExtremes=oe.findExtremes;var Y=1e-4;function j(Ye){var Ue=(Ye[1]-Ye[0])*Y;return[Ye[0]-Ue,Ye[1]+Ue]}$.coerceRef=function(Ye,Ue,zt,Dt,$t,sr){var cr=Dt.charAt(Dt.length-1),tr=zt._fullLayout._subplots[cr+"axis"],Nt=Dt+"ref",ir={};return $t||($t=tr[0]||(typeof sr=="string"?sr:sr[0])),sr||(sr=$t),tr=tr.concat(tr.map(function(hr){return hr+" domain"})),ir[Nt]={valType:"enumerated",values:tr.concat(sr?typeof sr=="string"?[sr]:sr:[]),dflt:$t},S.coerce(Ye,Ue,ir,Nt)},$.getRefType=function(Ye){return Ye===void 0?Ye:Ye==="paper"?"paper":Ye==="pixel"?"pixel":/( domain)$/.test(Ye)?"domain":"range"},$.coercePosition=function(Ye,Ue,zt,Dt,$t,sr){var cr,tr,Nt=$.getRefType(Dt);if(Nt!=="range")cr=S.ensureNumber,tr=zt($t,sr);else{var ir=$.getFromId(Ue,Dt);sr=ir.fraction2r(sr),tr=zt($t,sr),cr=ir.cleanPos}Ye[$t]=cr(tr)},$.cleanPosition=function(Ye,Ue,zt){var Dt=zt==="paper"||zt==="pixel"?S.ensureNumber:$.getFromId(Ue,zt).cleanPos;return Dt(Ye)},$.redrawComponents=function(Ye,Ue){Ue=Ue||$.listIds(Ye);var zt=Ye._fullLayout;function Dt($t,sr,cr,tr){for(var Nt=L.getComponentMethod($t,sr),ir={},hr=0;hr2e-6||((zt-Ye._forceTick0)/Ye._minDtick%1+1.000001)%1>2e-6)&&(Ye._minDtick=0))},$.saveRangeInitial=function(Ye,Ue){for(var zt=$.list(Ye,"",!0),Dt=!1,$t=0;$txr*.3||ir(Dt)||ir($t))){var vr=zt.dtick/2;Ye+=Ye+vrcr){var tr=Number(zt.substr(1));sr.exactYears>cr&&tr%12===0?Ye=$.tickIncrement(Ye,"M6","reverse")+y*1.5:sr.exactMonths>cr?Ye=$.tickIncrement(Ye,"M1","reverse")+y*15.5:Ye-=E;var Nt=$.tickIncrement(Ye,zt);if(Nt<=Dt)return Nt}return Ye}$.prepMinorTicks=function(Ye,Ue,zt){if(!Ue.minor.dtick){delete Ye.dtick;var Dt=Ue.dtick&&P(Ue._tmin),$t;if(Dt){var sr=$.tickIncrement(Ue._tmin,Ue.dtick,!0);$t=[Ue._tmin,sr*.99+Ue._tmin*.01]}else{var cr=S.simpleMap(Ue.range,Ue.r2l);$t=[cr[0],.8*cr[0]+.2*cr[1]]}if(Ye.range=S.simpleMap($t,Ue.l2r),Ye._isMinor=!0,$.prepTicks(Ye,zt),Dt){var tr=P(Ue.dtick),Nt=P(Ye.dtick),ir=tr?Ue.dtick:+Ue.dtick.substring(1),hr=Nt?Ye.dtick:+Ye.dtick.substring(1);tr&&Nt?xe(ir,hr)?ir===2*C&&hr===2*y&&(Ye.dtick=C):ir===2*C&&hr===3*y?Ye.dtick=C:ir===C&&!(Ue._input.minor||{}).nticks?Ye.dtick=y:_e(ir/hr,2.5)?Ye.dtick=ir/2:Ye.dtick=ir:String(Ue.dtick).charAt(0)==="M"?Nt?Ye.dtick="M1":xe(ir,hr)?ir>=12&&hr===2&&(Ye.dtick="M3"):Ye.dtick=Ue.dtick:String(Ye.dtick).charAt(0)==="L"?String(Ue.dtick).charAt(0)==="L"?xe(ir,hr)||(Ye.dtick=_e(ir/hr,2.5)?Ue.dtick/2:Ue.dtick):Ye.dtick="D1":Ye.dtick==="D2"&&+Ue.dtick>1&&(Ye.dtick=1)}Ye.range=Ue.range}Ue.minor._tick0Init===void 0&&(Ye.tick0=Ue.tick0)};function xe(Ye,Ue){return Math.abs((Ye/Ue+.5)%1-.5)<.001}function _e(Ye,Ue){return Math.abs(Ye/Ue-1)<.001}$.prepTicks=function(Ye,Ue){var zt=S.simpleMap(Ye.range,Ye.r2l,void 0,void 0,Ue);if(Ye.tickmode==="auto"||!Ye.dtick){var Dt=Ye.nticks,$t;Dt||(Ye.type==="category"||Ye.type==="multicategory"?($t=Ye.tickfont?S.bigFont(Ye.tickfont.size||12):15,Dt=Ye._length/$t):($t=Ye._id.charAt(0)==="y"?40:80,Dt=S.constrain(Ye._length/$t,4,9)+1),Ye._name==="radialaxis"&&(Dt*=2)),Ye.minor&&Ye.minor.tickmode!=="array"||Ye.tickmode==="array"&&(Dt*=100),Ye._roughDTick=Math.abs(zt[1]-zt[0])/Dt,$.autoTicks(Ye,Ye._roughDTick),Ye._minDtick>0&&Ye.dtick0?(sr=Dt-1,cr=Dt):(sr=Dt,cr=Dt);var tr=Ye[sr].value,Nt=Ye[cr].value,ir=Math.abs(Nt-tr),hr=zt||ir,xr=0;hr>=h?ir>=h&&ir<=l?xr=ir:xr=g:zt===c&&hr>=i?ir>=i&&ir<=T?xr=ir:xr=c:hr>=w?ir>=w&&ir<=d?xr=ir:xr=x:zt===C&&hr>=C?xr=C:hr>=y?xr=y:zt===E&&hr>=E?xr=E:zt===A&&hr>=A&&(xr=A);var vr;xr>=ir&&(xr=ir,vr=!0);var Hr=$t+xr;if(Ue.rangebreaks&&xr>0){for(var Pr=84,Rr=0,an=0;anC&&(xr=ir)}(xr>0||Dt===0)&&(Ye[Dt].periodX=$t+xr/2)}}$.calcTicks=function(Ue,zt){for(var Dt=Ue.type,$t=Ue.calendar,sr=Ue.ticklabelstep,cr=Ue.ticklabelmode==="period",tr=S.simpleMap(Ue.range,Ue.r2l,void 0,void 0,zt),Nt=tr[1]=(an?0:1);tn--){var Sn=!tn;tn?(Ue._dtickInit=Ue.dtick,Ue._tick0Init=Ue.tick0):(Ue.minor._dtickInit=Ue.minor.dtick,Ue.minor._tick0Init=Ue.minor.tick0);var Tn=tn?Ue:S.extendFlat({},Ue,Ue.minor);if(Sn?$.prepMinorTicks(Tn,Ue,zt):$.prepTicks(Tn,zt),Tn.tickmode==="array"){tn?(Pr=[],vr=Ie(Ue,!Sn)):(Rr=[],Hr=Ie(Ue,!Sn));continue}if(Tn.tickmode==="sync"){Pr=[],vr=Se(Ue);continue}var Tr=j(tr),zr=Tr[0],Yr=Tr[1],Or=P(Tn.dtick),ln=Dt==="log"&&!(Or||Tn.dtick.charAt(0)==="L"),fn=$.tickFirst(Tn,zt);if(tn){if(Ue._tmin=fn,fn=Yr:Pn<=Yr;Pn=$.tickIncrement(Pn,ya,Nt,$t)){if(tn&&Vn++,Tn.rangebreaks&&!Nt){if(Pn=hr)break}if(Pr.length>xr||Pn===Mn)break;Mn=Pn;var wa={value:Pn};tn?(ln&&Pn!==(Pn|0)&&(wa.simpleLabel=!0),sr>1&&Vn%sr&&(wa.skipLabel=!0),Pr.push(wa)):(wa.minor=!0,Rr.push(wa))}}if(an){var Wn=Ue.minor.ticks==="inside"&&Ue.ticks==="outside"||Ue.minor.ticks==="outside"&&Ue.ticks==="inside";if(!Wn){for(var Qn=Pr.map(function(gn){return gn.value}),mr=[],en=0;en-1;An--){if(Pr[An].drop){Pr.splice(An,1);continue}Pr[An].value=Ut(Pr[An].value,Ue);var Ia=Ue.c2p(Pr[An].value);(Fn?ha>Ia-$n:hahr||Nrhr&&(Ar.periodX=hr),Nr$t&&vrg)Ue/=g,Dt=$t(10),Ye.dtick="M"+12*vt(Ue,Dt,Me);else if(sr>x)Ue/=x,Ye.dtick="M"+vt(Ue,1,Ve);else if(sr>y){if(Ye.dtick=vt(Ue,y,Ye._hasDayOfWeekBreaks?[1,2,7,14]:ot),!zt){var cr=$.getTickFormat(Ye),tr=Ye.ticklabelmode==="period";tr&&(Ye._rawTick0=Ye.tick0),/%[uVW]/.test(cr)?Ye.tick0=S.dateTick0(Ye.calendar,2):Ye.tick0=S.dateTick0(Ye.calendar,1),tr&&(Ye._dowTick0=Ye.tick0)}}else sr>A?Ye.dtick=vt(Ue,A,Ve):sr>o?Ye.dtick=vt(Ue,o,et):sr>M?Ye.dtick=vt(Ue,M,et):(Dt=$t(10),Ye.dtick=vt(Ue,Dt,Me))}else if(Ye.type==="log"){Ye.tick0=0;var Nt=S.simpleMap(Ye.range,Ye.r2l);if(Ye._isMinor&&(Ue*=1.5),Ue>.7)Ye.dtick=Math.ceil(Ue);else if(Math.abs(Nt[1]-Nt[0])<1){var ir=1.5*Math.abs((Nt[1]-Nt[0])/Ue);Ue=Math.abs(Math.pow(10,Nt[1])-Math.pow(10,Nt[0]))/ir,Dt=$t(10),Ye.dtick="L"+vt(Ue,Dt,Me)}else Ye.dtick=Ue>.3?"D2":"D1"}else Ye.type==="category"||Ye.type==="multicategory"?(Ye.tick0=0,Ye.dtick=Math.ceil(Math.max(Ue,1))):Bt(Ye)?(Ye.tick0=0,Dt=1,Ye.dtick=vt(Ue,Dt,ht)):(Ye.tick0=0,Dt=$t(10),Ye.dtick=vt(Ue,Dt,Me));if(Ye.dtick===0&&(Ye.dtick=1),!P(Ye.dtick)&&typeof Ye.dtick!="string"){var hr=Ye.dtick;throw Ye.dtick=1,"ax.dtick error: "+String(hr)}};function pt(Ye){var Ue=Ye.dtick;if(Ye._tickexponent=0,!P(Ue)&&typeof Ue!="string"&&(Ue=1),(Ye.type==="category"||Ye.type==="multicategory")&&(Ye._tickround=null),Ye.type==="date"){var zt=Ye.r2l(Ye.tick0),Dt=Ye.l2r(zt).replace(/(^-|i)/g,""),$t=Dt.length;if(String(Ue).charAt(0)==="M")$t>10||Dt.substr(5)!=="01-01"?Ye._tickround="d":Ye._tickround=+Ue.substr(1)%12===0?"y":"m";else if(Ue>=y&&$t<=10||Ue>=y*15)Ye._tickround="d";else if(Ue>=o&&$t<=16||Ue>=A)Ye._tickround="M";else if(Ue>=M&&$t<=19||Ue>=o)Ye._tickround="S";else{var sr=Ye.l2r(zt+Ue).replace(/^-/,"").length;Ye._tickround=Math.max($t,sr)-20,Ye._tickround<0&&(Ye._tickround=4)}}else if(P(Ue)||Ue.charAt(0)==="L"){var cr=Ye.range.map(Ye.r2d||Number);P(Ue)||(Ue=Number(Ue.substr(1))),Ye._tickround=2-Math.floor(Math.log(Ue)/Math.LN10+.01);var tr=Math.max(Math.abs(cr[0]),Math.abs(cr[1])),Nt=Math.floor(Math.log(tr)/Math.LN10+.01),ir=Ye.minexponent===void 0?3:Ye.minexponent;Math.abs(Nt)>ir&&(je(Ye.exponentformat)&&!Ce(Nt)?Ye._tickexponent=3*Math.round((Nt-1)/3):Ye._tickexponent=Nt)}else Ye._tickround=null}$.tickIncrement=function(Ye,Ue,zt,Dt){var $t=zt?-1:1;if(P(Ue))return S.increment(Ye,$t*Ue);var sr=Ue.charAt(0),cr=$t*Number(Ue.substr(1));if(sr==="M")return S.incrementMonth(Ye,cr,Dt);if(sr==="L")return Math.log(Math.pow(10,Ye)+cr)/Math.LN10;if(sr==="D"){var tr=Ue==="D2"?$e:Qe,Nt=Ye+$t*.01,ir=S.roundUp(S.mod(Nt,1),tr,zt);return Math.floor(Nt)+Math.log(m.round(Math.pow(10,ir),1))/Math.LN10}throw"unrecognized dtick "+String(Ue)},$.tickFirst=function(Ye,Ue){var zt=Ye.r2l||Number,Dt=S.simpleMap(Ye.range,zt,void 0,void 0,Ue),$t=Dt[1]=0&&tn<=Ye._length?an:null};if(sr&&S.isArrayOrTypedArray(Ye.ticktext)){var xr=S.simpleMap(Ye.range,Ye.r2l),vr=(Math.abs(xr[1]-xr[0])-(Ye._lBreaks||0))/1e4;for(ir=0;ir"+tr;else{var ir=Jt(Ye),hr=Ye._trueSide||Ye.side;(!ir&&hr==="top"||ir&&hr==="bottom")&&(cr+="
")}Ue.text=cr}function rt(Ye,Ue,zt,Dt,$t){var sr=Ye.dtick,cr=Ue.x,tr=Ye.tickformat,Nt=typeof sr=="string"&&sr.charAt(0);if($t==="never"&&($t=""),Dt&&Nt!=="L"&&(sr="L3",Nt="L"),tr||Nt==="L")Ue.text=he(Math.pow(10,cr),Ye,$t,Dt);else if(P(sr)||Nt==="D"&&S.mod(cr+.01,1)<.1){var ir=Math.round(cr),hr=Math.abs(ir),xr=Ye.exponentformat;xr==="power"||je(xr)&&Ce(ir)?(ir===0?Ue.text=1:ir===1?Ue.text="10":Ue.text="10"+(ir>1?"":b)+hr+"",Ue.fontSize*=1.25):(xr==="e"||xr==="E")&&hr>2?Ue.text="1"+xr+(ir>0?"+":b)+hr:(Ue.text=he(Math.pow(10,cr),Ye,"","fakehover"),sr==="D1"&&Ye._id.charAt(0)==="y"&&(Ue.dy-=Ue.fontSize/6))}else if(Nt==="D")Ue.text=String(Math.round(Math.pow(10,S.mod(cr,1)))),Ue.fontSize*=.75;else throw"unrecognized dtick "+String(sr);if(Ye.dtick==="D1"){var vr=String(Ue.text).charAt(0);(vr==="0"||vr==="1")&&(Ye._id.charAt(0)==="y"?Ue.dx-=Ue.fontSize/4:(Ue.dy+=Ue.fontSize/2,Ue.dx+=(Ye.range[1]>Ye.range[0]?1:-1)*Ue.fontSize*(cr<0?.5:.25)))}}function ze(Ye,Ue){var zt=Ye._categories[Math.round(Ue.x)];zt===void 0&&(zt=""),Ue.text=String(zt)}function He(Ye,Ue,zt){var Dt=Math.round(Ue.x),$t=Ye._categories[Dt]||[],sr=$t[1]===void 0?"":String($t[1]),cr=$t[0]===void 0?"":String($t[0]);zt?Ue.text=cr+" - "+sr:(Ue.text=sr,Ue.text2=cr)}function We(Ye,Ue,zt,Dt,$t){$t==="never"?$t="":Ye.showexponent==="all"&&Math.abs(Ue.x/Ye.dtick)<1e-6&&($t="hide"),Ue.text=he(Ue.x,Ye,$t,Dt)}function Ge(Ye,Ue,zt,Dt,$t){if(Ye.thetaunit==="radians"&&!zt){var sr=Ue.x/180;if(sr===0)Ue.text="0";else{var cr=Le(sr);if(cr[1]>=100)Ue.text=he(S.deg2rad(Ue.x),Ye,$t,Dt);else{var tr=Ue.x<0;cr[1]===1?cr[0]===1?Ue.text="π":Ue.text=cr[0]+"π":Ue.text=["",cr[0],"","⁄","",cr[1],"","π"].join(""),tr&&(Ue.text=b+Ue.text)}}}else Ue.text=he(Ue.x,Ye,$t,Dt)}function Le(Ye){function Ue(tr,Nt){return Math.abs(tr-Nt)<=1e-6}function zt(tr,Nt){return Ue(Nt,0)?tr:zt(Nt,tr%Nt)}function Dt(tr){for(var Nt=1;!Ue(Math.round(tr*Nt)/Nt,tr);)Nt*=10;return Nt}var $t=Dt(Ye),sr=Ye*$t,cr=Math.abs(zt(sr,$t));return[Math.round(sr/cr),Math.round($t/cr)]}var Pe=["f","p","n","μ","m","","k","M","G","T"];function je(Ye){return Ye==="SI"||Ye==="B"}function Ce(Ye){return Ye>14||Ye<-15}function he(Ye,Ue,zt,Dt){var $t=Ye<0,sr=Ue._tickround,cr=zt||Ue.exponentformat||"B",tr=Ue._tickexponent,Nt=$.getTickFormat(Ue),ir=Ue.separatethousands;if(Dt){var hr={exponentformat:cr,minexponent:Ue.minexponent,dtick:Ue.showexponent==="none"?Ue.dtick:P(Ye)&&Math.abs(Ye)||1,range:Ue.showexponent==="none"?Ue.range.map(Ue.r2d):[0,Ye||1]};pt(hr),sr=(Number(hr._tickround)||0)+4,tr=hr._tickexponent,Ue.hoverformat&&(Nt=Ue.hoverformat)}if(Nt)return Ue._numFormat(Nt)(Ye).replace(/-/g,b);var xr=Math.pow(10,-sr)/2;if(cr==="none"&&(tr=0),Ye=Math.abs(Ye),Ye"+Pr+"":cr==="B"&&tr===9?Ye+="B":je(cr)&&(Ye+=Pe[tr/3+5])}return $t?b+Ye:Ye}$.getTickFormat=function(Ye){var Ue;function zt(Nt){return typeof Nt!="string"?Nt:Number(Nt.replace("M",""))*x}function Dt(Nt,ir){var hr=["L","D"];if(typeof Nt==typeof ir){if(typeof Nt=="number")return Nt-ir;var xr=hr.indexOf(Nt.charAt(0)),vr=hr.indexOf(ir.charAt(0));return xr===vr?Number(Nt.replace(/(L|D)/g,""))-Number(ir.replace(/(L|D)/g,"")):xr-vr}else return typeof Nt=="number"?1:-1}function $t(Nt,ir,hr){var xr=hr||function(Pr){return Pr},vr=ir[0],Hr=ir[1];return(!vr&&typeof vr!="number"||xr(vr)<=xr(Nt))&&(!Hr&&typeof Hr!="number"||xr(Hr)>=xr(Nt))}function sr(Nt,ir){var hr=ir[0]===null,xr=ir[1]===null,vr=Dt(Nt,ir[0])>=0,Hr=Dt(Nt,ir[1])<=0;return(hr||vr)&&(xr||Hr)}var cr,tr;if(Ye.tickformatstops&&Ye.tickformatstops.length>0)switch(Ye.type){case"date":case"linear":{for(Ue=0;Ue=0&&$t.unshift($t.splice(hr,1).shift())}});var tr={false:{left:0,right:0}};return S.syncOrAsync($t.map(function(Nt){return function(){if(Nt){var ir=$.getFromId(Ye,Nt);zt||(zt={}),zt.axShifts=tr,zt.overlayingShiftedAx=cr;var hr=$.drawOne(Ye,ir,zt);return ir._shiftPusher&&fr(ir,ir._fullDepth||0,tr,!0),ir._r=ir.range.slice(),ir._rl=S.simpleMap(ir._r,ir.r2l),hr}}}))},$.drawOne=function(Ye,Ue,zt){zt=zt||{};var Dt=zt.axShifts||{},$t=zt.overlayingShiftedAx||[],sr,cr,tr;Ue.setScale();var Nt=Ye._fullLayout,ir=Ue._id,hr=ir.charAt(0),xr=$.counterLetter(ir),vr=Nt._plots[Ue._mainSubplot];if(!vr)return;if(Ue._shiftPusher=Ue.autoshift||$t.indexOf(Ue._id)!==-1||$t.indexOf(Ue.overlaying)!==-1,Ue._shiftPusher&Ue.anchor==="free"){var Hr=Ue.linewidth/2||0;Ue.ticks==="inside"&&(Hr+=Ue.ticklen),fr(Ue,Hr,Dt,!0),fr(Ue,Ue.shift||0,Dt,!1)}(zt.skipTitle!==!0||Ue._shift===void 0)&&(Ue._shift=dr(Ue,Dt));var Pr=vr[hr+"axislayer"],Rr=Ue._mainLinePosition,an=Rr+=Ue._shift,tn=Ue._mainMirrorPosition,Sn=Ue._vals=$.calcTicks(Ue),Tn=[Ue.mirror,an,tn].join("_");for(sr=0;sr0?En.bottom-wn:0,zn))));var sa=0,ga=0;if(Ue._shiftPusher&&(sa=Math.max(zn,En.height>0?Gr==="l"?wn-En.left:En.right-wn:0),Ue.title.text!==Nt._dfltTitle[hr]&&(ga=(Ue._titleStandoff||0)+(Ue._titleScoot||0),Gr==="l"&&(ga+=Xt(Ue))),Ue._fullDepth=Math.max(sa,ga)),Ue.automargin){Un={x:0,y:0,r:0,l:0,t:0,b:0};var _a=[0,1],gi=typeof Ue._shift=="number"?Ue._shift:0;if(hr==="x"){if(Gr==="b"?Un[Gr]=Ue._depth:(Un[Gr]=Ue._depth=Math.max(En.width>0?wn-En.top:0,zn),_a.reverse()),En.width>0){var ai=En.right-(Ue._offset+Ue._length);ai>0&&(Un.xr=1,Un.r=ai);var ko=Ue._offset-En.left;ko>0&&(Un.xl=0,Un.l=ko)}}else if(Gr==="l"?(Ue._depth=Math.max(En.height>0?wn-En.left:0,zn),Un[Gr]=Ue._depth-gi):(Ue._depth=Math.max(En.height>0?En.right-wn:0,zn),Un[Gr]=Ue._depth+gi,_a.reverse()),En.height>0){var Co=En.bottom-(Ue._offset+Ue._length);Co>0&&(Un.yb=0,Un.b=Co);var to=Ue._offset-En.top;to>0&&(Un.yt=1,Un.t=to)}Un[xr]=Ue.anchor==="free"?Ue.position:Ue._anchorAxis.domain[_a[0]],Ue.title.text!==Nt._dfltTitle[hr]&&(Un[Gr]+=Xt(Ue)+(Ue.title.standoff||0)),Ue.mirror&&Ue.anchor!=="free"&&(Nn={x:0,y:0,r:0,l:0,t:0,b:0},Nn[qr]=Ue.linewidth,Ue.mirror&&Ue.mirror!==!0&&(Nn[qr]+=zn),Ue.mirror===!0||Ue.mirror==="ticks"?Nn[xr]=Ue._anchorAxis.domain[_a[1]]:(Ue.mirror==="all"||Ue.mirror==="allticks")&&(Nn[xr]=[Ue._counterDomainMin,Ue._counterDomainMax][_a[1]]))}Zr&&(va=L.getComponentMethod("rangeslider","autoMarginOpts")(Ye,Ue)),typeof Ue.automargin=="string"&&(me(Un,Ue.automargin),me(Nn,Ue.automargin)),s.autoMargin(Ye,Ot(Ue),Un),s.autoMargin(Ye,ut(Ue),Nn),s.autoMargin(Ye,at(Ue),va)}),S.syncOrAsync(un)}};function me(Ye,Ue){if(Ye){var zt=Object.keys(z).reduce(function(Dt,$t){return Ue.indexOf($t)!==-1&&z[$t].forEach(function(sr){Dt[sr]=1}),Dt},{});Object.keys(Ye).forEach(function(Dt){zt[Dt]||(Dt.length===1?Ye[Dt]=0:delete Ye[Dt])})}}function Ne(Ye,Ue){var zt=[],Dt,$t=function(sr,cr){var tr=sr.xbnd[cr];tr!==null&&zt.push(S.extendFlat({},sr,{x:tr}))};if(Ue.length){for(Dt=0;Dt60?-.5*ya:Ye.side==="top"!==hr?-ya:0};else if(Or==="y"){if(fn=!hr&&Yr==="left"||hr&&Yr==="right",Tr=fn?1:-1,hr&&(Tr*=-1),tn=vr,Sn=Hr*Tr,Tn=0,!hr&&Math.abs(ln)===90&&(ln===-90&&Yr==="left"||ln===90&&Yr==="right"?Tn=J:Tn=.5),hr){var Mn=P(ln)?+ln:0;if(Mn!==0){var Pn=S.deg2rad(Mn);zr=Math.abs(Math.sin(Pn))*J*Tr,Tn=0}}an.xFn=function(Vn){return Vn.dx+Ue-(tn+Vn.fontSize*Tn)*Tr+zr*Vn.fontSize},an.yFn=function(Vn){return Vn.dy+Sn+Vn.fontSize*W},an.anchorFn=function(Vn,ia){return P(ia)&&Math.abs(ia)===90?"middle":fn?"end":"start"},an.heightFn=function(Vn,ia,ya){return Ye.side==="right"&&(ia*=-1),ia<-30?-ya:ia<30?-.5*ya:0}}return an};function Tt(Ye){return[Ye.text,Ye.x,Ye.axInfo,Ye.font,Ye.fontSize,Ye.fontColor].join("_")}$.drawTicks=function(Ye,Ue,zt){zt=zt||{};var Dt=Ue._id+"tick",$t=[].concat(Ue.minor&&Ue.minor.ticks?zt.vals.filter(function(cr){return cr.minor&&!cr.noTick}):[]).concat(Ue.ticks?zt.vals.filter(function(cr){return!cr.minor&&!cr.noTick}):[]),sr=zt.layer.selectAll("path."+Dt).data($t,Tt);sr.exit().remove(),sr.enter().append("path").classed(Dt,1).classed("ticks",1).classed("crisp",zt.crisp!==!1).each(function(cr){return t.stroke(m.select(this),cr.minor?Ue.minor.tickcolor:Ue.tickcolor)}).style("stroke-width",function(cr){return a.crispRound(Ye,cr.minor?Ue.minor.tickwidth:Ue.tickwidth,1)+"px"}).attr("d",zt.path).style("display",null),ur(Ue,[O]),sr.attr("transform",zt.transFn)},$.drawGrid=function(Ye,Ue,zt){if(zt=zt||{},Ue.tickmode!=="sync"){var Dt=Ue._id+"grid",$t=Ue.minor&&Ue.minor.showgrid,sr=$t?zt.vals.filter(function(tn){return tn.minor}):[],cr=Ue.showgrid?zt.vals.filter(function(tn){return!tn.minor}):[],tr=zt.counterAxis;if(tr&&$.shouldShowZeroLine(Ye,Ue,tr))for(var Nt=Ue.tickmode==="array",ir=0;ir=0;Pr--){var Rr=Pr?vr:Hr;if(Rr){var an=Rr.selectAll("path."+Dt).data(Pr?cr:sr,Tt);an.exit().remove(),an.enter().append("path").classed(Dt,1).classed("crisp",zt.crisp!==!1),an.attr("transform",zt.transFn).attr("d",zt.path).each(function(tn){return t.stroke(m.select(this),tn.minor?Ue.minor.gridcolor:Ue.gridcolor||"#ddd")}).style("stroke-dasharray",function(tn){return a.dashStyle(tn.minor?Ue.minor.griddash:Ue.griddash,tn.minor?Ue.minor.gridwidth:Ue.gridwidth)}).style("stroke-width",function(tn){return(tn.minor?xr:Ue._gw)+"px"}).style("display",null),typeof zt.path=="function"&&an.attr("d",zt.path)}}ur(Ue,[N,k])}},$.drawZeroLine=function(Ye,Ue,zt){zt=zt||zt;var Dt=Ue._id+"zl",$t=$.shouldShowZeroLine(Ye,Ue,zt.counterAxis),sr=zt.layer.selectAll("path."+Dt).data($t?[{x:0,id:Ue._id}]:[]);sr.exit().remove(),sr.enter().append("path").classed(Dt,1).classed("zl",1).classed("crisp",zt.crisp!==!1).each(function(){zt.layer.selectAll("path").sort(function(cr,tr){return X(cr.id,tr.id)})}),sr.attr("transform",zt.transFn).attr("d",zt.path).call(t.stroke,Ue.zerolinecolor||t.defaultLine).style("stroke-width",a.crispRound(Ye,Ue.zerolinewidth,Ue._gw||1)+"px").style("display",null),ur(Ue,[D])},$.drawLabels=function(Ye,Ue,zt){zt=zt||{};var Dt=Ye._fullLayout,$t=Ue._id,sr=zt.cls||$t+"tick",cr=zt.vals.filter(function(mr){return mr.text}),tr=zt.labelFns,Nt=zt.secondary?0:Ue.tickangle,ir=(Ue._prevTickAngles||{})[sr],hr=zt.layer.selectAll("g."+sr).data(Ue.showticklabels?cr:[],Tt),xr=[];hr.enter().append("g").classed(sr,1).append("text").attr("text-anchor","middle").each(function(mr){var en=m.select(this),Jr=Ye._promises.length;en.call(p.positionText,tr.xFn(mr),tr.yFn(mr)).call(a.font,{family:mr.font,size:mr.fontSize,color:mr.fontColor,weight:mr.fontWeight,style:mr.fontStyle,variant:mr.fontVariant,textcase:mr.fontTextcase,lineposition:mr.fontLineposition,shadow:mr.fontShadow}).text(mr.text).call(p.convertToTspans,Ye),Ye._promises[Jr]?xr.push(Ye._promises.pop().then(function(){vr(en,Nt)})):vr(en,Nt)}),ur(Ue,[F]),hr.exit().remove(),zt.repositionOnUpdate&&hr.each(function(mr){m.select(this).select("text").call(p.positionText,tr.xFn(mr),tr.yFn(mr))});function vr(mr,en){mr.each(function(Jr){var vn=m.select(this),On=vn.select(".text-math-group"),bn=tr.anchorFn(Jr,en),An=zt.transFn.call(vn.node(),Jr)+(P(en)&&+en!=0?" rotate("+en+","+tr.xFn(Jr)+","+(tr.yFn(Jr)-Jr.fontSize/2)+")":""),Fn=p.lineCount(vn),$n=re*Jr.fontSize,ha=tr.heightFn(Jr,P(en)?+en:0,(Fn-1)*$n);if(ha&&(An+=v(0,ha)),On.empty()){var Ia=vn.select("text");Ia.attr({transform:An,"text-anchor":bn}),Ia.style("opacity",1),Ue._adjustTickLabelsOverflow&&Ue._adjustTickLabelsOverflow()}else{var Mr=a.bBox(On.node()).width,Fr=Mr*{end:-.5,start:.5}[bn];On.attr("transform",An+v(Fr,0))}})}Ue._adjustTickLabelsOverflow=function(){var mr=Ue.ticklabeloverflow;if(!(!mr||mr==="allow")){var en=mr.indexOf("hide")!==-1,Jr=Ue._id.charAt(0)==="x",vn=0,On=Jr?Ye._fullLayout.width:Ye._fullLayout.height;if(mr.indexOf("domain")!==-1){var bn=S.simpleMap(Ue.range,Ue.r2l);vn=Ue.l2p(bn[0])+Ue._offset,On=Ue.l2p(bn[1])+Ue._offset}var An=Math.min(vn,On),Fn=Math.max(vn,On),$n=Ue.side,ha=1/0,Ia=-1/0;hr.each(function(Nr){var mn=m.select(this),Rn=mn.select(".text-math-group");if(Rn.empty()){var gn=a.bBox(mn.node()),un=0;Jr?(gn.right>Fn||gn.leftFn||gn.top+(Ue.tickangle?0:Nr.fontSize/4)Ue["_visibleLabelMin_"+bn._id]?Nr.style("display","none"):Fn.K==="tick"&&!An&&Nr.style("display",null)})})})})},vr(hr,ir+1?ir:Nt);function Hr(){return xr.length&&Promise.all(xr)}var Pr=null;function Rr(){if(vr(hr,Nt),cr.length&&Ue.autotickangles&&(Ue.type!=="log"||String(Ue.dtick).charAt(0)!=="D")){Pr=Ue.autotickangles[0];var mr=0,en=[],Jr,vn=1;hr.each(function(En){mr=Math.max(mr,En.fontSize);var Un=Ue.l2p(En.x),Nn=yr(this),va=a.bBox(Nn.node());vn=Math.max(vn,p.lineCount(Nn)),en.push({top:0,bottom:10,height:10,left:Un-va.width/2,right:Un+va.width/2+2,width:va.width+2})});var On=(Ue.tickson==="boundaries"||Ue.showdividers)&&!zt.secondary,bn=cr.length,An=Math.abs((cr[bn-1].x-cr[0].x)*Ue._m)/(bn-1),Fn=On?An/2:An,$n=On?Ue.ticklen:mr*1.25*vn,ha=Math.sqrt(Math.pow(Fn,2)+Math.pow($n,2)),Ia=Fn/ha,Mr=Ue.autotickangles.map(function(En){return En*Math.PI/180}),Fr=Mr.find(function(En){return Math.abs(Math.cos(En))<=Ia});Fr===void 0&&(Fr=Mr.reduce(function(En,Un){return Math.abs(Math.cos(En))wa*ya&&(Pn=ya,ln[Or]=fn[Or]=Vn[Or])}var Wn=Math.abs(Pn-Mn);Wn-Tr>0?(Wn-=Tr,Tr*=1+Tr/Wn):Tr=0,Ue._id.charAt(0)!=="y"&&(Tr=-Tr),ln[Yr]=Sn.p2r(Sn.r2p(fn[Yr])+zr*Tr),Sn.autorange==="min"||Sn.autorange==="max reversed"?(ln[0]=null,Sn._rangeInitial0=void 0,Sn._rangeInitial1=void 0):(Sn.autorange==="max"||Sn.autorange==="min reversed")&&(ln[1]=null,Sn._rangeInitial0=void 0,Sn._rangeInitial1=void 0),Dt._insideTickLabelsUpdaterange[Sn._name+".range"]=ln}var Qn=S.syncOrAsync(an);return Qn&&Qn.then&&Ye._promises.push(Qn),Qn};function Rt(Ye,Ue,zt){var Dt=Ue._id+"divider",$t=zt.vals,sr=zt.layer.selectAll("path."+Dt).data($t,Tt);sr.exit().remove(),sr.enter().insert("path",":first-child").classed(Dt,1).classed("crisp",1).call(t.stroke,Ue.dividercolor).style("stroke-width",a.crispRound(Ye,Ue.dividerwidth,1)+"px"),sr.attr("transform",zt.transFn).attr("d",zt.path)}$.getPxPosition=function(Ye,Ue){var zt=Ye._fullLayout._size,Dt=Ue._id.charAt(0),$t=Ue.side,sr;if(Ue.anchor!=="free"?sr=Ue._anchorAxis:Dt==="x"?sr={_offset:zt.t+(1-(Ue.position||0))*zt.h,_length:0}:Dt==="y"&&(sr={_offset:zt.l+(Ue.position||0)*zt.w+Ue._shift,_length:0}),$t==="top"||$t==="left")return sr._offset;if($t==="bottom"||$t==="right")return sr._offset+sr._length};function Xt(Ye){var Ue=Ye.title.font.size,zt=(Ye.title.text.match(p.BR_TAG_ALL)||[]).length;return Ye.title.hasOwnProperty("standoff")?Ue*(J+zt*re):zt?Ue*(zt+1)*re:Ue}function gr(Ye,Ue){var zt=Ye._fullLayout,Dt=Ue._id,$t=Dt.charAt(0),sr=Ue.title.font.size,cr,tr=(Ue.title.text.match(p.BR_TAG_ALL)||[]).length;if(Ue.title.hasOwnProperty("standoff"))Ue.side==="bottom"||Ue.side==="right"?cr=Ue._depth+Ue.title.standoff+sr*J:(Ue.side==="top"||Ue.side==="left")&&(cr=Ue._depth+Ue.title.standoff+sr*(W+tr*re));else{var Nt=Jt(Ue);if(Ue.type==="multicategory")cr=Ue._depth;else{var ir=1.5*sr;Nt&&(ir=.5*sr,Ue.ticks==="outside"&&(ir+=Ue.ticklen)),cr=10+ir+(Ue.linewidth?Ue.linewidth-1:0)}Nt||($t==="x"?cr+=Ue.side==="top"?sr*(Ue.showticklabels?1:0):sr*(Ue.showticklabels?1.5:.5):cr+=Ue.side==="right"?sr*(Ue.showticklabels?1:.5):sr*(Ue.showticklabels?.5:0))}var hr=$.getPxPosition(Ye,Ue),xr,vr,Hr;$t==="x"?(vr=Ue._offset+Ue._length/2,Hr=Ue.side==="top"?hr-cr:hr+cr):(Hr=Ue._offset+Ue._length/2,vr=Ue.side==="right"?hr+cr:hr-cr,xr={rotate:"-90",offset:0});var Pr;if(Ue.type!=="multicategory"){var Rr=Ue._selections[Ue._id+"tick"];if(Pr={selection:Rr,side:Ue.side},Rr&&Rr.node()&&Rr.node().parentNode){var an=a.getTranslate(Rr.node().parentNode);Pr.offsetLeft=an.x,Pr.offsetTop=an.y}Ue.title.hasOwnProperty("standoff")&&(Pr.pad=0)}return Ue._titleStandoff=cr,r.draw(Ye,Dt+"title",{propContainer:Ue,propName:Ue._name+".title.text",placeholder:zt._dfltTitle[$t],avoid:Pr,transform:xr,attributes:{x:vr,y:Hr,"text-anchor":"middle"}})}$.shouldShowZeroLine=function(Ye,Ue,zt){var Dt=S.simpleMap(Ue.range,Ue.r2l);return Dt[0]*Dt[1]<=0&&Ue.zeroline&&(Ue.type==="linear"||Ue.type==="-")&&!(Ue.rangebreaks&&Ue.maskBreaks(0)===I)&&(gt(Ue,0)||!Kt(Ye,Ue,zt,Dt)||Qt(Ye,Ue))},$.clipEnds=function(Ye,Ue){return Ue.filter(function(zt){return gt(Ye,zt.x)})};function gt(Ye,Ue){var zt=Ye.l2p(Ue);return zt>1&&zt1)for($t=1;$t=$t.min&&Ye<$t.max)return $t.max}return Ye}function Jt(Ye){return(Ye.ticklabelposition||"").indexOf("inside")!==-1}function ur(Ye,Ue){Jt(Ye._anchorAxis||{})&&Ye._hideCounterAxisInsideTickLabels&&Ye._hideCounterAxisInsideTickLabels(Ue)}function fr(Ye,Ue,zt,Dt){var $t=Ye.anchor!=="free"&&(Ye.overlaying===void 0||Ye.overlaying===!1)?Ye._id:Ye.overlaying,sr;Dt?sr=Ye.side==="right"?Ue:-Ue:sr=Ue,$t in zt||(zt[$t]={}),Ye.side in zt[$t]||(zt[$t][Ye.side]=0),zt[$t][Ye.side]+=sr}function dr(Ye,Ue){return Ye.autoshift?Ue[Ye.overlaying][Ye.side]:Ye.shift||0}},52976:function(G,H,e){var m=e(38248),P=e(3400),s=e(39032).BADNUM,L=P.isArrayOrTypedArray,S=P.isDateTime,v=P.cleanNumber,p=Math.round;G.exports=function(g,h,T){var c=g,i=T.noMultiCategory;if(L(c)&&!c.length)return"-";if(!i&&u(c))return"multicategory";if(i&&Array.isArray(c[0])){for(var d=[],x=0;xi*2}function n(l){return Math.max(1,(l-1)/1e3)}function f(l,g){for(var h=l.length,T=n(h),c=0,i=0,d={},x=0;xc*2}function u(l){return L(l[0])&&L(l[1])}},28336:function(G,H,e){var m=e(38248),P=e(24040),s=e(3400),L=e(31780),S=e(51272),v=e(94724),p=e(26332),r=e(25404),t=e(95936),a=e(42568),n=e(22416),f=e(42136),u=e(96312),l=e(78344),g=e(33816).WEEKDAY_PATTERN,h=e(33816).HOUR_PATTERN;G.exports=function(x,w,C,y,E){var A=y.letter,o=y.font||{},M=y.splomStash||{},b=C("visible",!y.visibleDflt),I=w._template||{},D=w.type||I.type||"-",N;if(D==="date"){var k=P.getComponentMethod("calendars","handleDefaults");k(x,w,"calendar",y.calendar),y.noTicklabelmode||(N=C("ticklabelmode"))}var O="";(!y.noTicklabelposition||D==="multicategory")&&(O=s.coerce(x,w,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:N==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),y.noTicklabeloverflow||C("ticklabeloverflow",O.indexOf("inside")!==-1?"hide past domain":D==="category"||D==="multicategory"?"allow":"hide past div"),l(w,E),u(x,w,C,y),n(x,w,C,y),D!=="category"&&!y.noHover&&C("hoverformat");var F=C("color"),z=F!==v.color.dflt?F:o.color,B=M.label||E._dfltTitle[A];if(a(x,w,C,D,y),!b)return w;C("title.text",B),s.coerceFont(C,"title.font",o,{overrideDflt:{size:s.bigFont(o.size),color:z}}),p(x,w,C,D);var W=y.hasMinor;if(W&&(L.newContainer(w,"minor"),p(x,w,C,D,{isMinor:!0})),t(x,w,C,D,y),r(x,w,C,y),W){var J=y.isMinor;y.isMinor=!0,r(x,w,C,y),y.isMinor=J}f(x,w,C,{dfltColor:F,bgColor:y.bgColor,showGrid:y.showGrid,hasMinor:W,attributes:v}),W&&!w.minor.ticks&&!w.minor.showgrid&&delete w.minor,(w.showline||w.ticks)&&C("mirror");var re=D==="multicategory";if(!y.noTickson&&(D==="category"||re)&&(w.ticks||w.showgrid)){var ne;re&&(ne="boundaries");var le=C("tickson",ne);le==="boundaries"&&delete w.ticklabelposition}if(re){var $=C("showdividers");$&&(C("dividercolor"),C("dividerwidth"))}if(D==="date")if(S(x,w,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),!w.rangebreaks.length)delete w.rangebreaks;else{for(var Z=0;Z=2){var A="",o,M;if(E.length===2){for(o=0;o<2;o++)if(M=i(E[o]),M){A=g;break}}var b=C("pattern",A);if(b===g)for(o=0;o<2;o++)M=i(E[o]),M&&(x.bounds[o]=E[o]=M-1);if(b)for(o=0;o<2;o++)switch(M=E[o],b){case g:if(!m(M)){x.enabled=!1;return}if(M=+M,M!==Math.floor(M)||M<0||M>=7){x.enabled=!1;return}x.bounds[o]=E[o]=M;break;case h:if(!m(M)){x.enabled=!1;return}if(M=+M,M<0||M>24){x.enabled=!1;return}x.bounds[o]=E[o]=M;break}if(w.autorange===!1){var I=w.range;if(I[0]I[1]){x.enabled=!1;return}}else if(E[0]>I[0]&&E[1]p?1:-1:+(L.substr(1)||1)-+(S.substr(1)||1)},H.ref2id=function(L){return/^[xyz]/.test(L)?L.split(" ")[0]:!1};function s(L,S){if(S&&S.length){for(var v=0;v0||m(r),a;t&&(a="array");var n=v("categoryorder",a),f;n==="array"&&(f=v("categoryarray")),!t&&n==="array"&&(n=S.categoryorder="trace"),n==="trace"?S._initialCategories=[]:n==="array"?S._initialCategories=f.slice():(f=P(S,p).sort(),n==="category ascending"?S._initialCategories=f:n==="category descending"&&(S._initialCategories=f.reverse()))}}},98728:function(G,H,e){var m=e(38248),P=e(3400),s=e(39032),L=s.ONEDAY,S=s.ONEWEEK;H.dtick=function(v,p){var r=p==="log",t=p==="date",a=p==="category",n=t?L:1;if(!v)return n;if(m(v))return v=Number(v),v<=0?n:a?Math.max(1,Math.round(v)):t?Math.max(.1,v):v;if(typeof v!="string"||!(t||r))return n;var f=v.charAt(0),u=v.substr(1);return u=m(u)?Number(u):0,u<=0||!(t&&f==="M"&&u===Math.round(u)||r&&f==="L"||r&&f==="D"&&(u===1||u===2))?n:v},H.tick0=function(v,p,r,t){if(p==="date")return P.cleanDate(v,P.dateTick0(r,t%S===0?1:0));if(!(t==="D1"||t==="D2"))return m(v)?Number(v):0}},33816:function(G,H,e){var m=e(53756).counter;G.exports={idRegex:{x:m("x","( domain)?"),y:m("y","( domain)?")},attrRegex:m("[xy]axis"),xAxisMatch:m("xaxis"),yAxisMatch:m("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},71888:function(G,H,e){var m=e(3400),P=e(19280),s=e(79811).id2name,L=e(94724),S=e(21160),v=e(78344),p=e(39032).ALMOST_EQUAL,r=e(84284).FROM_BL;H.handleDefaults=function(h,T,c){var i=c.axIds,d=c.axHasImage,x=T._axisConstraintGroups=[],w=T._axisMatchGroups=[],C,y,E,A,o,M,b,I;for(C=0;Cx?c.substr(x):i.substr(d))+w}function l(h,T){for(var c=T._size,i=c.h/c.w,d={},x=Object.keys(h),w=0;wp*I&&!O)){for(x=0;xZ&&tele&&(le=te);var ge=(le-ne)/(2*$);o/=ge,ne=y.l2r(ne),le=y.l2r(le),y.range=y._input.range=W=0){ir._fullLayout._deactivateShape(ir);return}var hr=ir._fullLayout.clickmode;if(Z(ir),tr===2&&!Se&&Ue(),Re)hr.indexOf("select")>-1&&E(Nt,ir,ot,Qe,fe.id,lt),hr.indexOf("event")>-1&&n.click(ir,Nt,fe.id);else if(tr===1&&Se){var xr=De?Me:Ie,vr=De==="s"||Fe==="w"?0:1,Hr=xr._name+".range["+vr+"]",Pr=F(xr,vr),Rr="left",an="middle";if(xr.fixedrange)return;De?(an=De==="n"?"top":"bottom",xr.side==="right"&&(Rr="right")):Fe==="e"&&(Rr="right"),ir._context.showAxisRangeEntryBoxes&&m.select(st).call(r.makeEditable,{gd:ir,immediate:!0,background:ir._fullLayout.paper_bgcolor,text:String(Pr),fill:xr.tickfont?xr.tickfont.color:"#444",horizontalAlign:Rr,verticalAlign:an}).on("edit",function(tn){var Sn=xr.d2r(tn);Sn!==void 0&&v.call("_guiRelayout",ir,Hr,Sn)})}}l.init(lt);var Tt,Rt,Xt,gr,gt,Kt,Qt,yr,Ot,ut;function at(tr,Nt,ir){var hr=st.getBoundingClientRect();Tt=Nt-hr.left,Rt=ir-hr.top,te._fullLayout._calcInverseTransform(te);var xr=P.apply3DTransform(te._fullLayout._invTransform)(Tt,Rt);Tt=xr[0],Rt=xr[1],Xt={l:Tt,r:Tt,w:0,t:Rt,b:Rt,h:0},gr=te._hmpixcount?te._hmlumcount/te._hmpixcount:L(te._fullLayout.plot_bgcolor).getLuminance(),gt="M0,0H"+vt+"V"+pt+"H0V0",Kt=!1,Qt="xy",ut=!1,yr=re(Te,gr,$e,ht,gt),Ot=ne(Te,$e,ht)}function xt(tr,Nt){if(te._transitioningWithDuration)return!1;var ir=Math.max(0,Math.min(vt,he*tr+Tt)),hr=Math.max(0,Math.min(pt,me*Nt+Rt)),xr=Math.abs(ir-Tt),vr=Math.abs(hr-Rt);Xt.l=Math.min(Tt,ir),Xt.r=Math.max(Tt,ir),Xt.t=Math.min(Rt,hr),Xt.b=Math.max(Rt,hr);function Hr(){Qt="",Xt.r=Xt.l,Xt.t=Xt.b,Ot.attr("d","M0,0Z")}if(wt.isSubplotConstrained)xr>b||vr>b?(Qt="xy",xr/vt>vr/pt?(vr=xr*pt/vt,Rt>hr?Xt.t=Rt-vr:Xt.b=Rt+vr):(xr=vr*vt/pt,Tt>ir?Xt.l=Tt-xr:Xt.r=Tt+xr),Ot.attr("d",oe(Xt))):Hr();else if(Ct.isSubplotConstrained)if(xr>b||vr>b){Qt="xy";var Pr=Math.min(Xt.l/vt,(pt-Xt.b)/pt),Rr=Math.max(Xt.r/vt,(pt-Xt.t)/pt);Xt.l=Pr*vt,Xt.r=Rr*vt,Xt.b=(1-Pr)*pt,Xt.t=(1-Rr)*pt,Ot.attr("d",oe(Xt))}else Hr();else!ze||vr0){var tn;if(Ct.isSubplotConstrained||!rt&&ze.length===1){for(tn=0;tn1&&(Hr.maxallowed!==void 0&&We===(Hr.range[0]1&&(Pr.maxallowed!==void 0&&Ge===(Pr.range[0]=0?Math.min(te,.9):1/(1/Math.max(te,-.3)+3.222))}function J(te,fe,ge){return te?te==="nsew"?ge?"":fe==="pan"?"move":"crosshair":te.toLowerCase()+"-resize":"pointer"}function re(te,fe,ge,be,xe){return te.append("path").attr("class","zoombox").style({fill:fe>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(ge,be)).attr("d",xe+"Z")}function ne(te,fe,ge){return te.append("path").attr("class","zoombox-corners").style({fill:t.background,stroke:t.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(fe,ge)).attr("d","M0,0Z")}function le(te,fe,ge,be,xe,_e){te.attr("d",be+"M"+ge.l+","+ge.t+"v"+ge.h+"h"+ge.w+"v-"+ge.h+"h-"+ge.w+"Z"),$(te,fe,xe,_e)}function $(te,fe,ge,be){ge||(te.transition().style("fill",be>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),fe.transition().style("opacity",1).duration(200))}function Z(te){m.select(te).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ie(te){I&&te.data&&te._context.showTips&&(P.notifier(P._(te,"Double-click to zoom back out"),"long"),I=!1)}function X(te,fe){return"M"+(te.l-.5)+","+(fe-b-.5)+"h-3v"+(2*b+1)+"h3ZM"+(te.r+.5)+","+(fe-b-.5)+"h3v"+(2*b+1)+"h-3Z"}function Q(te,fe){return"M"+(fe-b-.5)+","+(te.t-.5)+"v-3h"+(2*b+1)+"v3ZM"+(fe-b-.5)+","+(te.b+.5)+"v3h"+(2*b+1)+"v-3Z"}function oe(te){var fe=Math.floor(Math.min(te.b-te.t,te.r-te.l,b)/2);return"M"+(te.l-3.5)+","+(te.t-.5+fe)+"h3v"+-fe+"h"+fe+"v-3h-"+(fe+3)+"ZM"+(te.r+3.5)+","+(te.t-.5+fe)+"h-3v"+-fe+"h"+-fe+"v-3h"+(fe+3)+"ZM"+(te.r+3.5)+","+(te.b+.5-fe)+"h-3v"+fe+"h"+-fe+"v3h"+(fe+3)+"ZM"+(te.l-3.5)+","+(te.b+.5-fe)+"h3v"+fe+"h"+fe+"v3h-"+(fe+3)+"Z"}function Y(te,fe,ge,be,xe){for(var _e=!1,De={},Fe={},Te,Re,Se,Ie,Me=(xe||{}).xaHash,Ve=(xe||{}).yaHash,et=0;etC[1]-.000244140625&&(S.domain=l),P.noneOrAll(L.domain,S.domain,l),S.tickmode==="sync"&&(S.tickmode="auto")}return v("layer"),S}},42568:function(G,H,e){var m=e(85024);G.exports=function(s,L,S,v,p){p||(p={});var r=p.tickSuffixDflt,t=m(s),a=S("tickprefix");a&&S("showtickprefix",t);var n=S("ticksuffix",r);n&&S("showticksuffix",t)}},96312:function(G,H,e){var m=e(76808);G.exports=function(s,L,S,v){var p=L._template||{},r=L.type||p.type||"-";S("minallowed"),S("maxallowed");var t=S("range");if(!t){var a;!v.noInsiderange&&r!=="log"&&(a=S("insiderange"),a&&(a[0]===null||a[1]===null)&&(L.insiderange=!1,a=void 0),a&&(t=S("range",a)))}var n=L.getAutorangeDflt(t,v),f=S("autorange",n),u;t&&(t[0]===null&&t[1]===null||(t[0]===null||t[1]===null)&&(f==="reversed"||f===!0)||t[0]!==null&&(f==="min"||f==="max reversed")||t[1]!==null&&(f==="max"||f==="min reversed"))&&(t=void 0,delete L.range,L.autorange=!0,u=!0),u||(n=L.getAutorangeDflt(t,v),f=S("autorange",n)),f&&(m(S,f,t),(r==="linear"||r==="-")&&S("rangemode")),L.cleanRange()}},21160:function(G,H,e){var m=e(84284).FROM_BL;G.exports=function(s,L,S){S===void 0&&(S=m[s.constraintoward||"center"]);var v=[s.r2l(s.range[0]),s.r2l(s.range[1])],p=v[0]+(v[1]-v[0])*S;s.range=s._input.range=[s.l2r(p+(v[0]-p)*L),s.l2r(p+(v[1]-p)*L)],s.setScale()}},78344:function(G,H,e){var m=e(33428),P=e(94336).E9,s=e(3400),L=s.numberFormat,S=e(38248),v=s.cleanNumber,p=s.ms2DateTime,r=s.dateTime2ms,t=s.ensureNumber,a=s.isArrayOrTypedArray,n=e(39032),f=n.FP_SAFE,u=n.BADNUM,l=n.LOG_CLIP,g=n.ONEWEEK,h=n.ONEDAY,T=n.ONEHOUR,c=n.ONEMIN,i=n.ONESEC,d=e(79811),x=e(33816),w=x.HOUR_PATTERN,C=x.WEEKDAY_PATTERN;function y(A){return Math.pow(10,A)}function E(A){return A!=null}G.exports=function(o,M){M=M||{};var b=o._id||"x",I=b.charAt(0);function D(X,Q){if(X>0)return Math.log(X)/Math.LN10;if(X<=0&&Q&&o.range&&o.range.length===2){var oe=o.range[0],Y=o.range[1];return .5*(oe+Y-2*l*Math.abs(oe-Y))}else return u}function N(X,Q,oe,Y){if((Y||{}).msUTC&&S(X))return+X;var j=r(X,oe||o.calendar);if(j===u)if(S(X)){X=+X;var se=Math.floor(s.mod(X+.05,1)*10),te=Math.round(X-se/10);j=r(new Date(te))+se/10}else return u;return j}function k(X,Q,oe){return p(X,Q,oe||o.calendar)}function O(X){return o._categories[Math.round(X)]}function F(X){if(E(X)){if(o._categoriesMap===void 0&&(o._categoriesMap={}),o._categoriesMap[X]!==void 0)return o._categoriesMap[X];o._categories.push(typeof X=="number"?String(X):X);var Q=o._categories.length-1;return o._categoriesMap[X]=Q,Q}return u}function z(X,Q){for(var oe=new Array(Q),Y=0;Yo.range[1]&&(oe=!oe);for(var Y=oe?-1:1,j=Y*X,se=0,te=0;tege)se=te+1;else{se=j<(fe+ge)/2?te:te+1;break}}var be=o._B[se]||0;return isFinite(be)?re(X,o._m2,be):0},$=function(X){var Q=o._rangebreaks.length;if(!Q)return ne(X,o._m,o._b);for(var oe=0,Y=0;Yo._rangebreaks[Y].pmax&&(oe=Y+1);return ne(X,o._m2,o._B[oe])}}o.c2l=o.type==="log"?D:t,o.l2c=o.type==="log"?y:t,o.l2p=le,o.p2l=$,o.c2p=o.type==="log"?function(X,Q){return le(D(X,Q))}:le,o.p2c=o.type==="log"?function(X){return y($(X))}:$,["linear","-"].indexOf(o.type)!==-1?(o.d2r=o.r2d=o.d2c=o.r2c=o.d2l=o.r2l=v,o.c2d=o.c2r=o.l2d=o.l2r=t,o.d2p=o.r2p=function(X){return o.l2p(v(X))},o.p2d=o.p2r=$,o.cleanPos=t):o.type==="log"?(o.d2r=o.d2l=function(X,Q){return D(v(X),Q)},o.r2d=o.r2c=function(X){return y(v(X))},o.d2c=o.r2l=v,o.c2d=o.l2r=t,o.c2r=D,o.l2d=y,o.d2p=function(X,Q){return o.l2p(o.d2r(X,Q))},o.p2d=function(X){return y($(X))},o.r2p=function(X){return o.l2p(v(X))},o.p2r=$,o.cleanPos=t):o.type==="date"?(o.d2r=o.r2d=s.identity,o.d2c=o.r2c=o.d2l=o.r2l=N,o.c2d=o.c2r=o.l2d=o.l2r=k,o.d2p=o.r2p=function(X,Q,oe){return o.l2p(N(X,0,oe))},o.p2d=o.p2r=function(X,Q,oe){return k($(X),Q,oe)},o.cleanPos=function(X){return s.cleanDate(X,u,o.calendar)}):o.type==="category"?(o.d2c=o.d2l=F,o.r2d=o.c2d=o.l2d=O,o.d2r=o.d2l_noadd=W,o.r2c=function(X){var Q=J(X);return Q!==void 0?Q:o.fraction2r(.5)},o.l2r=o.c2r=t,o.r2l=J,o.d2p=function(X){return o.l2p(o.r2c(X))},o.p2d=function(X){return O($(X))},o.r2p=o.d2p,o.p2r=$,o.cleanPos=function(X){return typeof X=="string"&&X!==""?X:t(X)}):o.type==="multicategory"&&(o.r2d=o.c2d=o.l2d=O,o.d2r=o.d2l_noadd=W,o.r2c=function(X){var Q=W(X);return Q!==void 0?Q:o.fraction2r(.5)},o.r2c_just_indices=B,o.l2r=o.c2r=t,o.r2l=W,o.d2p=function(X){return o.l2p(o.r2c(X))},o.p2d=function(X){return O($(X))},o.r2p=o.d2p,o.p2r=$,o.cleanPos=function(X){return Array.isArray(X)||typeof X=="string"&&X!==""?X:t(X)},o.setupMultiCategory=function(X){var Q=o._traceIndices,oe,Y,j=o._matchGroup;if(j&&o._categories.length===0){for(var se in j)if(se!==b){var te=M[d.id2name(se)];Q=Q.concat(te._traceIndices)}}var fe=[[0,{}],[0,{}]],ge=[];for(oe=0;oete[1]&&(Y[se?0:1]=oe),Y[0]===Y[1]){var fe=o.l2r(Q),ge=o.l2r(oe);if(Q!==void 0){var be=fe+1;oe!==void 0&&(be=Math.min(be,ge)),Y[se?1:0]=be}if(oe!==void 0){var xe=ge+1;Q!==void 0&&(xe=Math.max(xe,fe)),Y[se?0:1]=xe}}}},o.cleanRange=function(X,Q){o._cleanRange(X,Q),o.limitRange(X)},o._cleanRange=function(X,Q){Q||(Q={}),X||(X="range");var oe=s.nestedProperty(o,X).get(),Y,j;if(o.type==="date"?j=s.dfltRange(o.calendar):I==="y"?j=x.DFLTRANGEY:o._name==="realaxis"?j=[0,1]:j=Q.dfltRange||x.DFLTRANGEX,j=j.slice(),(o.rangemode==="tozero"||o.rangemode==="nonnegative")&&(j[0]=0),!oe||oe.length!==2){s.nestedProperty(o,X).set(j);return}var se=oe[0]===null,te=oe[1]===null;for(o.type==="date"&&!o.autorange&&(oe[0]=s.cleanDate(oe[0],u,o.calendar),oe[1]=s.cleanDate(oe[1],u,o.calendar)),Y=0;Y<2;Y++)if(o.type==="date"){if(!s.isDateTime(oe[Y],o.calendar)){o[X]=j;break}if(o.r2l(oe[0])===o.r2l(oe[1])){var fe=s.constrain(o.r2l(oe[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);oe[0]=o.l2r(fe-1e3),oe[1]=o.l2r(fe+1e3);break}}else{if(!S(oe[Y]))if(!(se||te)&&S(oe[1-Y]))oe[Y]=oe[1-Y]*(Y?10:.1);else{o[X]=j;break}if(oe[Y]<-f?oe[Y]=-f:oe[Y]>f&&(oe[Y]=f),oe[0]===oe[1]){var ge=Math.max(1,Math.abs(oe[0]*1e-6));oe[0]-=ge,oe[1]+=ge}}},o.setScale=function(X){var Q=M._size;if(o.overlaying){var oe=d.getFromId({_fullLayout:M},o.overlaying);o.domain=oe.domain}var Y=X&&o._r?"_r":"range",j=o.calendar;o.cleanRange(Y);var se=o.r2l(o[Y][0],j),te=o.r2l(o[Y][1],j),fe=I==="y";if(fe?(o._offset=Q.t+(1-o.domain[1])*Q.h,o._length=Q.h*(o.domain[1]-o.domain[0]),o._m=o._length/(se-te),o._b=-o._m*te):(o._offset=Q.l+o.domain[0]*Q.w,o._length=Q.w*(o.domain[1]-o.domain[0]),o._m=o._length/(te-se),o._b=-o._m*se),o._rangebreaks=[],o._lBreaks=0,o._m2=0,o._B=[],o.rangebreaks){var ge,be;if(o._rangebreaks=o.locateBreaks(Math.min(se,te),Math.max(se,te)),o._rangebreaks.length){for(ge=0;gete&&(xe=!xe),xe&&o._rangebreaks.reverse();var _e=xe?-1:1;for(o._m2=_e*o._length/(Math.abs(te-se)-o._lBreaks),o._B.push(-o._m2*(fe?te:se)),ge=0;gej&&(j+=7,sej&&(j+=24,se=Y&&se=Y&&X=Qe.min&&(MeQe.max&&(Qe.max=Ve),et=!1)}et&&te.push({min:Me,max:Ve})}};for(oe=0;oe rect").call(L.setTranslate,0,0).call(L.setScale,1,1),w.plot.call(L.setTranslate,C._offset,y._offset).call(L.setScale,1,1);var E=w.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(L.setPointGroupScale,1,1),E.selectAll(".textpoint").call(L.setTextPointsScale,1,1),E.call(L.hideOutsideRangePoints,w)}function u(w,C){var y=w.plotinfo,E=y.xaxis,A=y.yaxis,o=E._length,M=A._length,b=!!w.xr1,I=!!w.yr1,D=[];if(b){var N=s.simpleMap(w.xr0,E.r2l),k=s.simpleMap(w.xr1,E.r2l),O=N[1]-N[0],F=k[1]-k[0];D[0]=(N[0]*(1-C)+C*k[0]-N[0])/(N[1]-N[0])*o,D[2]=o*(1-C+C*F/O),E.range[0]=E.l2r(N[0]*(1-C)+C*k[0]),E.range[1]=E.l2r(N[1]*(1-C)+C*k[1])}else D[0]=0,D[2]=o;if(I){var z=s.simpleMap(w.yr0,A.r2l),B=s.simpleMap(w.yr1,A.r2l),W=z[1]-z[0],J=B[1]-B[0];D[1]=(z[1]*(1-C)+C*B[1]-z[1])/(z[0]-z[1])*M,D[3]=M*(1-C+C*J/W),A.range[0]=E.l2r(z[0]*(1-C)+C*B[0]),A.range[1]=A.l2r(z[1]*(1-C)+C*B[1])}else D[1]=0,D[3]=M;S.drawOne(p,E,{skipTitle:!0}),S.drawOne(p,A,{skipTitle:!0}),S.redrawComponents(p,[E._id,A._id]);var re=b?o/D[2]:1,ne=I?M/D[3]:1,le=b?D[0]:0,$=I?D[1]:0,Z=b?D[0]/D[2]*o:0,ie=I?D[1]/D[3]*M:0,X=E._offset-Z,Q=A._offset-ie;y.clipRect.call(L.setTranslate,le,$).call(L.setScale,1/re,1/ne),y.plot.call(L.setTranslate,X,Q).call(L.setScale,re,ne),L.setPointGroupScale(y.zoomScalePts,1/re,1/ne),L.setTextPointsScale(y.zoomScaleTxt,1/re,1/ne)}var l;a&&(l=a());function g(){for(var w={},C=0;Ct.duration?(g(),i=window.cancelAnimationFrame(x)):i=window.requestAnimationFrame(x)}return T=Date.now(),i=window.requestAnimationFrame(x),Promise.resolve()}},14944:function(G,H,e){var m=e(24040).traceIs,P=e(52976);G.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var f=a("type",(n.splomStash||{}).type);f==="-"&&(s(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function s(p,r){if(p.type==="-"){var t=p._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var f=L(r,t,a);if(f){if(f.type==="histogram"&&a==={v:"y",h:"x"}[f.orientation||"v"]){p.type="linear";return}var u=a+"calendar",l=f[u],g={noMultiCategory:!m(f,"cartesian")||m(f,"noMultiCategory")};if(f.type==="box"&&f._hasPreCompStats&&a==={h:"x",v:"y"}[f.orientation||"v"]&&(g.noMultiCategory=!0),g.autotypenumbers=p.autotypenumbers,v(f,a)){var h=S(f),T=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(v(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function S(p){return{v:"x",h:"y"}[p.orientation||"v"]}function v(p,r){var t=S(p),a=m(p,"box-violin"),n=m(p._fullInput||{},"candlestick");return a&&!n&&r===t&&p[t]===void 0&&p[t+"0"]===void 0}},62460:function(G,H,e){var m=e(24040),P=e(3400);H.manageCommandObserver=function(r,t,a,n){var f={},u=!0;t&&t._commandObserver&&(f=t._commandObserver),f.cache||(f.cache={}),f.lookupTable={};var l=H.hasSimpleAPICommandBindings(r,a,f.lookupTable);if(t&&t._commandObserver){if(l)return f;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,f}if(l){s(r,l,f.cache),f.check=function(){if(u){var c=s(r,l,f.cache);return c.changed&&n&&f.lookupTable[c.value]!==void 0&&(f.disable(),Promise.resolve(n({value:c.value,type:l.type,prop:l.prop,traces:l.traces,index:f.lookupTable[c.value]})).then(f.enable,f.enable)),c.changed}};for(var g=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+f;P.isPlainObject(u)?p(u,t,l,n+1):t(l,f,u)}})}},86968:function(G,H,e){var m=e(92880).extendFlat;H.u=function(P,s){P=P||{},s=s||{};var L={valType:"info_array",editType:P.editType,items:[{valType:"number",min:0,max:1,editType:P.editType},{valType:"number",min:0,max:1,editType:P.editType}],dflt:[0,1]};P.name&&P.name+"",P.trace,s.description&&""+s.description;var S={x:m({},L,{}),y:m({},L,{}),editType:P.editType};return P.noGridCell||(S.row={valType:"integer",min:0,dflt:0,editType:P.editType},S.column={valType:"integer",min:0,dflt:0,editType:P.editType}),S},H.Q=function(P,s,L,S){var v=S&&S.x||[0,1],p=S&&S.y||[0,1],r=s.grid;if(r){var t=L("domain.column");t!==void 0&&(t0&&F._module.calcGeoJSON(O,I)}if(!D){var z=this.updateProjection(b,I);if(z)return;(!this.viewInitial||this.scope!==N.scope)&&this.saveViewInitial(N)}this.scope=N.scope,this.updateBaseLayers(I,N),this.updateDims(I,N),this.updateFx(I,N),f.generalUpdatePerTraceModule(this.graphDiv,this,b,N);var B=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=B.selectAll(".point"),this.dataPoints.text=B.selectAll("text"),this.dataPaths.line=B.selectAll(".js-line");var W=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=W.selectAll("path"),this._render()},E.updateProjection=function(b,I){var D=this.graphDiv,N=I[this.id],k=I._size,O=N.domain,F=N.projection,z=N.lonaxis,B=N.lataxis,W=z._ax,J=B._ax,re=this.projection=A(N),ne=[[k.l+k.w*O.x[0],k.t+k.h*(1-O.y[1])],[k.l+k.w*O.x[1],k.t+k.h*(1-O.y[0])]],le=N.center||{},$=F.rotation||{},Z=z.range||[],ie=B.range||[];if(N.fitbounds){W._length=ne[1][0]-ne[0][0],J._length=ne[1][1]-ne[0][1],W.range=l(D,W),J.range=l(D,J);var X=(W.range[0]+W.range[1])/2,Q=(J.range[0]+J.range[1])/2;if(N._isScoped)le={lon:X,lat:Q};else if(N._isClipped){le={lon:X,lat:Q},$={lon:X,lat:Q,roll:$.roll};var oe=F.type,Y=d.lonaxisSpan[oe]/2||180,j=d.lataxisSpan[oe]/2||90;Z=[X-Y,X+Y],ie=[Q-j,Q+j]}else le={lon:X,lat:Q},$={lon:X,lat:$.lat,roll:$.roll}}re.center([le.lon-$.lon,le.lat-$.lat]).rotate([-$.lon,-$.lat,$.roll]).parallels(F.parallels);var se=M(Z,ie);re.fitExtent(ne,se);var te=this.bounds=re.getBounds(se),fe=this.fitScale=re.scale(),ge=re.translate();if(N.fitbounds){var be=re.getBounds(M(W.range,J.range)),xe=Math.min((te[1][0]-te[0][0])/(be[1][0]-be[0][0]),(te[1][1]-te[0][1])/(be[1][1]-be[0][1]));isFinite(xe)?re.scale(xe*fe):p.warn("Something went wrong during"+this.id+"fitbounds computations.")}else re.scale(F.scale*fe);var _e=this.midPt=[(te[0][0]+te[1][0])/2,(te[0][1]+te[1][1])/2];if(re.translate([ge[0]+(_e[0]-ge[0]),ge[1]+(_e[1]-ge[1])]).clipExtent(te),N._isAlbersUsa){var De=re([le.lon,le.lat]),Fe=re.translate();re.translate([Fe[0]-(De[0]-Fe[0]),Fe[1]-(De[1]-Fe[1])])}},E.updateBaseLayers=function(b,I){var D=this,N=D.topojson,k=D.layers,O=D.basePaths;function F(ne){return ne==="lonaxis"||ne==="lataxis"}function z(ne){return!!d.lineLayers[ne]}function B(ne){return!!d.fillLayers[ne]}var W=this.hasChoropleth?d.layersForChoropleth:d.layers,J=W.filter(function(ne){return z(ne)||B(ne)?I["show"+ne]:F(ne)?I[ne].showgrid:!0}),re=D.framework.selectAll(".layer").data(J,String);re.exit().each(function(ne){delete k[ne],delete O[ne],m.select(this).remove()}),re.enter().append("g").attr("class",function(ne){return"layer "+ne}).each(function(ne){var le=k[ne]=m.select(this);ne==="bg"?D.bgRect=le.append("rect").style("pointer-events","all"):F(ne)?O[ne]=le.append("path").style("fill","none"):ne==="backplot"?le.append("g").classed("choroplethlayer",!0):ne==="frontplot"?le.append("g").classed("scatterlayer",!0):z(ne)?O[ne]=le.append("path").style("fill","none").style("stroke-miterlimit",2):B(ne)&&(O[ne]=le.append("path").style("stroke","none"))}),re.order(),re.each(function(ne){var le=O[ne],$=d.layerNameToAdjective[ne];ne==="frame"?le.datum(d.sphereSVG):z(ne)||B(ne)?le.datum(C(N,N.objects[ne])):F(ne)&&le.datum(o(ne,I,b)).call(t.stroke,I[ne].gridcolor).call(a.dashLine,I[ne].griddash,I[ne].gridwidth),z(ne)?le.call(t.stroke,I[$+"color"]).call(a.dashLine,"",I[$+"width"]):B(ne)&&le.call(t.fill,I[$+"color"])})},E.updateDims=function(b,I){var D=this.bounds,N=(I.framewidth||0)/2,k=D[0][0]-N,O=D[0][1]-N,F=D[1][0]-k+N,z=D[1][1]-O+N;a.setRect(this.clipRect,k,O,F,z),this.bgRect.call(a.setRect,k,O,F,z).call(t.fill,I.bgcolor),this.xaxis._offset=k,this.xaxis._length=F,this.yaxis._offset=O,this.yaxis._length=z},E.updateFx=function(b,I){var D=this,N=D.graphDiv,k=D.bgRect,O=b.dragmode,F=b.clickmode;if(D.isStatic)return;function z(){var re=D.viewInitial,ne={};for(var le in re)ne[D.id+"."+le]=re[le];v.call("_guiRelayout",N,ne),N.emit("plotly_doubleclick",null)}function B(re){return D.projection.invert([re[0]+D.xaxis._offset,re[1]+D.yaxis._offset])}var W=function(re,ne){if(ne.isRect){var le=re.range={};le[D.id]=[B([ne.xmin,ne.ymin]),B([ne.xmax,ne.ymax])]}else{var $=re.lassoPoints={};$[D.id]=ne.map(B)}},J={element:D.bgRect.node(),gd:N,plotinfo:{id:D.id,xaxis:D.xaxis,yaxis:D.yaxis,fillRangeItems:W},xaxes:[D.xaxis],yaxes:[D.yaxis],subplot:D.id,clickFn:function(re){re===2&&T(N)}};O==="pan"?(k.node().onmousedown=null,k.call(i(D,I)),k.on("dblclick.zoom",z),N._context._scrollZoom.geo||k.on("wheel.zoom",null)):(O==="select"||O==="lasso")&&(k.on(".zoom",null),J.prepFn=function(re,ne,le){h(re,ne,le,J,O)},g.init(J)),k.on("mousemove",function(){var re=D.projection.invert(p.getPositionFromD3Event());if(!re)return g.unhover(N,m.event);D.xaxis.p2c=function(){return re[0]},D.yaxis.p2c=function(){return re[1]},n.hover(N,m.event,D.id)}),k.on("mouseout",function(){N._dragging||g.unhover(N,m.event)}),k.on("click",function(){O!=="select"&&O!=="lasso"&&(F.indexOf("select")>-1&&c(m.event,N,[D.xaxis],[D.yaxis],D.id,J),F.indexOf("event")>-1&&n.click(N,m.event))})},E.makeFramework=function(){var b=this,I=b.graphDiv,D=I._fullLayout,N="clip"+D._uid+b.id;b.clipDef=D._clips.append("clipPath").attr("id",N),b.clipRect=b.clipDef.append("rect"),b.framework=m.select(b.container).append("g").attr("class","geo "+b.id).call(a.setClipUrl,N,I),b.project=function(k){var O=b.projection(k);return O?[O[0]-b.xaxis._offset,O[1]-b.yaxis._offset]:[null,null]},b.xaxis={_id:"x",c2p:function(k){return b.project(k)[0]}},b.yaxis={_id:"y",c2p:function(k){return b.project(k)[1]}},b.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},u.setConvert(b.mockAxis,D)},E.saveViewInitial=function(b){var I=b.center||{},D=b.projection,N=D.rotation||{};this.viewInitial={fitbounds:b.fitbounds,"projection.scale":D.scale};var k;b._isScoped?k={"center.lon":I.lon,"center.lat":I.lat}:b._isClipped?k={"projection.rotation.lon":N.lon,"projection.rotation.lat":N.lat}:k={"center.lon":I.lon,"center.lat":I.lat,"projection.rotation.lon":N.lon},p.extendFlat(this.viewInitial,k)},E.render=function(b){this._hasMarkerAngles&&b?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},E._render=function(){var b=this.projection,I=b.getPath(),D;function N(O){var F=b(O.lonlat);return F?r(F[0],F[1]):null}function k(O){return b.isLonLatOverEdges(O.lonlat)?"none":null}for(D in this.basePaths)this.basePaths[D].attr("d",I);for(D in this.dataPaths)this.dataPaths[D].attr("d",function(O){return I(O.geojson)});for(D in this.dataPoints)this.dataPoints[D].attr("display",k).attr("transform",N)};function A(b){var I=b.projection,D=I.type,N=d.projNames[D];N="geo"+p.titleCase(N);for(var k=P[N]||S[N],O=k(),F=b._isSatellite?Math.acos(1/I.distance)*180/Math.PI:b._isClipped?d.lonaxisSpan[D]/2:null,z=["center","rotate","parallels","clipExtent"],B=function(re){return re?O:[]},W=0;W$}else return!1},O.getPath=function(){return s().projection(O)},O.getBounds=function(re){return O.getPath().bounds(re)},O.precision(d.precision),b._isSatellite&&O.tilt(I.tilt).distance(I.distance),F&&O.clipAngle(F-d.clipPad),O}function o(b,I,D){var N=1e-6,k=2.5,O=I[b],F=d.scopeDefaults[I.scope],z,B,W;b==="lonaxis"?(z=F.lonaxisRange,B=F.lataxisRange,W=function(Q,oe){return[Q,oe]}):b==="lataxis"&&(z=F.lataxisRange,B=F.lonaxisRange,W=function(Q,oe){return[oe,Q]});var J={type:"linear",range:[z[0],z[1]-N],tick0:O.tick0,dtick:O.dtick};u.setConvert(J,D);var re=u.calcTicks(J);!I.isScoped&&b==="lonaxis"&&re.pop();for(var ne=re.length,le=new Array(ne),$=0;$0&&k<0&&(k+=360);var z=(k-N)/4;return{type:"Polygon",coordinates:[[[N,O],[N,F],[N+z,F],[N+2*z,F],[N+3*z,F],[k,F],[k,O],[k-z,O],[k-2*z,O],[k-3*z,O],[N,O]]]}}},10816:function(G,H,e){var m=e(84888).KY,P=e(3400).counterRegex,s=e(43520),L="geo",S=P(L),v={};v[L]={valType:"subplotid",dflt:L,editType:"calc"};function p(a){for(var n=a._fullLayout,f=a.calcdata,u=n._subplots[L],l=0;l0&&B<0&&(B+=360);var W=(z+B)/2,J;if(!c){var re=i?h.projRotate:[W,0,0];J=a("projection.rotation.lon",re[0]),a("projection.rotation.lat",re[1]),a("projection.rotation.roll",re[2]),E=a("showcoastlines",!i&&y),E&&(a("coastlinecolor"),a("coastlinewidth")),E=a("showocean",y?void 0:!1),E&&a("oceancolor")}var ne,le;if(c?(ne=-96.6,le=38.7):(ne=i?W:J,le=(F[0]+F[1])/2),a("center.lon",ne),a("center.lat",le),d&&(a("projection.tilt"),a("projection.distance")),x){var $=h.projParallels||[0,60];a("projection.parallels",$)}a("projection.scale"),E=a("showland",y?void 0:!1),E&&a("landcolor"),E=a("showlakes",y?void 0:!1),E&&a("lakecolor"),E=a("showrivers",y?void 0:!1),E&&(a("rivercolor"),a("riverwidth")),E=a("showcountries",i&&g!=="usa"&&y),E&&(a("countrycolor"),a("countrywidth")),(g==="usa"||g==="north america"&&l===50)&&(a("showsubunits",y),a("subunitcolor"),a("subunitwidth")),i||(E=a("showframe",y),E&&(a("framecolor"),a("framewidth"))),a("bgcolor");var Z=a("fitbounds");Z&&(delete t.projection.scale,i?(delete t.center.lon,delete t.center.lat):w?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}},79248:function(G,H,e){var m=e(33428),P=e(3400),s=e(24040),L=Math.PI/180,S=180/Math.PI,v={cursor:"pointer"},p={cursor:"auto"};function r(o,M){var b=o.projection,I;return M._isScoped?I=n:M._isClipped?I=u:I=f,I(o,b)}G.exports=r;function t(o,M){return m.behavior.zoom().translate(M.translate()).scale(M.scale())}function a(o,M,b){var I=o.id,D=o.graphDiv,N=D.layout,k=N[I],O=D._fullLayout,F=O[I],z={},B={};function W(J,re){z[I+"."+J]=P.nestedProperty(k,J).get(),s.call("_storeDirectGUIEdit",N,O._preGUI,z);var ne=P.nestedProperty(F,J);ne.get()!==re&&(ne.set(re),P.nestedProperty(k,J).set(re),B[I+"."+J]=re)}b(W),W("projection.scale",M.scale()/o.fitScale),W("fitbounds",!1),D.emit("plotly_relayout",B)}function n(o,M){var b=t(o,M);function I(){m.select(this).style(v)}function D(){M.scale(m.event.scale).translate(m.event.translate),o.render(!0);var O=M.invert(o.midPt);o.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":M.scale()/o.fitScale,"geo.center.lon":O[0],"geo.center.lat":O[1]})}function N(O){var F=M.invert(o.midPt);O("center.lon",F[0]),O("center.lat",F[1])}function k(){m.select(this).style(p),a(o,M,N)}return b.on("zoomstart",I).on("zoom",D).on("zoomend",k),b}function f(o,M){var b=t(o,M),I=2,D,N,k,O,F,z,B,W,J;function re(X){return M.invert(X)}function ne(X){var Q=re(X);if(!Q)return!0;var oe=M(Q);return Math.abs(oe[0]-X[0])>I||Math.abs(oe[1]-X[1])>I}function le(){m.select(this).style(v),D=m.mouse(this),N=M.rotate(),k=M.translate(),O=N,F=re(D)}function $(){if(z=m.mouse(this),ne(D)){b.scale(M.scale()),b.translate(M.translate());return}M.scale(m.event.scale),M.translate([k[0],m.event.translate[1]]),F?re(z)&&(W=re(z),B=[O[0]+(W[0]-F[0]),N[1],N[2]],M.rotate(B),O=B):(D=z,F=re(D)),J=!0,o.render(!0);var X=M.rotate(),Q=M.invert(o.midPt);o.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":M.scale()/o.fitScale,"geo.center.lon":Q[0],"geo.center.lat":Q[1],"geo.projection.rotation.lon":-X[0]})}function Z(){m.select(this).style(p),J&&a(o,M,ie)}function ie(X){var Q=M.rotate(),oe=M.invert(o.midPt);X("projection.rotation.lon",-Q[0]),X("center.lon",oe[0]),X("center.lat",oe[1])}return b.on("zoomstart",le).on("zoom",$).on("zoomend",Z),b}function u(o,M){M.rotate(),M.scale();var b=t(o,M),I=A(b,"zoomstart","zoom","zoomend"),D=0,N=b.on,k;b.on("zoomstart",function(){m.select(this).style(v);var W=m.mouse(this),J=M.rotate(),re=J,ne=M.translate(),le=g(J);k=l(M,W),N.call(b,"zoom",function(){var $=m.mouse(this);if(M.scale(m.event.scale),!k)W=$,k=l(M,W);else if(l(M,$)){M.rotate(J).translate(ne);var Z=l(M,$),ie=T(k,Z),X=w(h(le,ie)),Q=c(X,k,re);(!isFinite(Q[0])||!isFinite(Q[1])||!isFinite(Q[2]))&&(Q=re),M.rotate(Q),re=Q}F(I.of(this,arguments))}),O(I.of(this,arguments))}).on("zoomend",function(){m.select(this).style(p),N.call(b,"zoom",null),z(I.of(this,arguments)),a(o,M,B)}).on("zoom.redraw",function(){o.render(!0);var W=M.rotate();o.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":M.scale()/o.fitScale,"geo.projection.rotation.lon":-W[0],"geo.projection.rotation.lat":-W[1]})});function O(W){D++||W({type:"zoomstart"})}function F(W){W({type:"zoom"})}function z(W){--D||W({type:"zoomend"})}function B(W){var J=M.rotate();W("projection.rotation.lon",-J[0]),W("projection.rotation.lat",-J[1])}return m.rebind(b,I,"on")}function l(o,M){var b=o.invert(M);return b&&isFinite(b[0])&&isFinite(b[1])&&C(b)}function g(o){var M=.5*o[0]*L,b=.5*o[1]*L,I=.5*o[2]*L,D=Math.sin(M),N=Math.cos(M),k=Math.sin(b),O=Math.cos(b),F=Math.sin(I),z=Math.cos(I);return[N*O*z+D*k*F,D*O*z-N*k*F,N*k*z+D*O*F,N*O*F-D*k*z]}function h(o,M){var b=o[0],I=o[1],D=o[2],N=o[3],k=M[0],O=M[1],F=M[2],z=M[3];return[b*k-I*O-D*F-N*z,b*O+I*k+D*z-N*F,b*F-I*z+D*k+N*O,b*z+I*F-D*O+N*k]}function T(o,M){if(!(!o||!M)){var b=E(o,M),I=Math.sqrt(y(b,b)),D=.5*Math.acos(Math.max(-1,Math.min(1,y(o,M)))),N=Math.sin(D)/I;return I&&[Math.cos(D),b[2]*N,-b[1]*N,b[0]*N]}}function c(o,M,b){var I=x(M,2,o[0]);I=x(I,1,o[1]),I=x(I,0,o[2]-b[2]);var D=M[0],N=M[1],k=M[2],O=I[0],F=I[1],z=I[2],B=Math.atan2(N,D)*S,W=Math.sqrt(D*D+N*N),J,re;Math.abs(F)>W?(re=(F>0?90:-90)-B,J=0):(re=Math.asin(F/W)*S-B,J=Math.sqrt(W*W-F*F));var ne=180-re-2*B,le=(Math.atan2(z,O)-Math.atan2(k,J))*S,$=(Math.atan2(z,O)-Math.atan2(k,-J))*S,Z=i(b[0],b[1],re,le),ie=i(b[0],b[1],ne,$);return Z<=ie?[re,le,b[2]]:[ne,$,b[2]]}function i(o,M,b,I){var D=d(b-o),N=d(I-M);return Math.sqrt(D*D+N*N)}function d(o){return(o%360+540)%360-180}function x(o,M,b){var I=b*L,D=o.slice(),N=M===0?1:0,k=M===2?1:2,O=Math.cos(I),F=Math.sin(I);return D[N]=o[N]*O-o[k]*F,D[k]=o[k]*O+o[N]*F,D}function w(o){return[Math.atan2(2*(o[0]*o[1]+o[2]*o[3]),1-2*(o[1]*o[1]+o[2]*o[2]))*S,Math.asin(Math.max(-1,Math.min(1,2*(o[0]*o[2]-o[3]*o[1]))))*S,Math.atan2(2*(o[0]*o[3]+o[1]*o[2]),1-2*(o[2]*o[2]+o[3]*o[3]))*S]}function C(o){var M=o[0]*L,b=o[1]*L,I=Math.cos(b);return[I*Math.cos(M),I*Math.sin(M),Math.sin(b)]}function y(o,M){for(var b=0,I=0,D=o.length;IMath.abs(E)?(n.boxEnd[1]=n.boxStart[1]+Math.abs(y)*D*(E>=0?1:-1),n.boxEnd[1]c[3]&&(n.boxEnd[1]=c[3],n.boxEnd[0]=n.boxStart[0]+(c[3]-n.boxStart[1])/Math.abs(D))):(n.boxEnd[0]=n.boxStart[0]+Math.abs(E)/D*(y>=0?1:-1),n.boxEnd[0]c[2]&&(n.boxEnd[0]=c[2],n.boxEnd[1]=n.boxStart[1]+(c[2]-n.boxStart[0])*Math.abs(D)))}else b&&(n.boxEnd[0]=n.boxStart[0]),I&&(n.boxEnd[1]=n.boxStart[1])}else n.boxEnabled?(y=n.boxStart[0]!==n.boxEnd[0],E=n.boxStart[1]!==n.boxEnd[1],y||E?(y&&(A(0,n.boxStart[0],n.boxEnd[0]),r.xaxis.autorange=!1),E&&(A(1,n.boxStart[1],n.boxEnd[1]),r.yaxis.autorange=!1),r.relayoutCallback()):r.glplot.setDirty(),n.boxEnabled=!1,n.boxInited=!1):n.boxInited&&(n.boxInited=!1);break;case"pan":n.boxEnabled=!1,n.boxInited=!1,g?(n.panning||(n.dragStart[0]=h,n.dragStart[1]=T),Math.abs(n.dragStart[0]-h)1;function g(h){if(!l){var T=m.validate(n[h],v[h]);if(T)return n[h]}}L(n,f,u,{type:r,attributes:v,handleDefaults:t,fullLayout:f,font:f.font,fullData:u,getDfltFromLayout:g,autotypenumbersDflt:f.autotypenumbers,paper_bgcolor:f.paper_bgcolor,calendar:f.calendar})};function t(a,n,f,u){for(var l=f("bgcolor"),g=P.combine(l,u.paper_bgcolor),h=["up","center","eye"],T=0;T.999)&&(w="turntable")}else w="turntable";f("dragmode",w),f("hovermode",u.getDfltFromLayout("hovermode"))}},346:function(G,H,e){var m=e(86140),P=e(86968).u,s=e(92880).extendFlat,L=e(3400).counterRegex;function S(v,p,r){return{x:{valType:"number",dflt:v,editType:"camera"},y:{valType:"number",dflt:p,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}G.exports={_arrayAttrRegexps:[L("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:s(S(0,0,1),{}),center:s(S(0,0,0),{}),eye:s(S(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:P({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:m,yaxis:m,zaxis:m,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(G,H,e){var m=e(43080),P=["xaxis","yaxis","zaxis"];function s(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var L=s.prototype;L.merge=function(v){for(var p=0;p<3;++p){var r=v[P[p]];if(!r.visible){this.enabled[p]=!1,this.drawSides[p]=!1;continue}this.enabled[p]=r.showspikes,this.colors[p]=m(r.spikecolor),this.drawSides[p]=r.spikesides,this.lineWidth[p]=r.spikethickness}};function S(v){var p=new s;return p.merge(v),p}G.exports=S},87152:function(G,H,e){G.exports=S;var m=e(54460),P=e(3400),s=["xaxis","yaxis","zaxis"];function L(v){for(var p=new Array(3),r=0;r<3;++r){for(var t=v[r],a=new Array(t.length),n=0;n/g," "));a[n]=g,f.tickmode=u}}p.ticks=a;for(var n=0;n<3;++n){.5*(v.glplot.bounds[0][n]+v.glplot.bounds[1][n]);for(var h=0;h<2;++h)p.bounds[h][n]=v.glplot.bounds[h][n]}v.contourLevels=L(a)}},94424:function(G){function H(m,P){var s=[0,0,0,0],L,S;for(L=0;L<4;++L)for(S=0;S<4;++S)s[S]+=m[4*L+S]*P[L];return s}function e(m,P){var s=H(m.projection,H(m.view,H(m.model,[P[0],P[1],P[2],1])));return s}G.exports=e},98432:function(G,H,e){var m=e(67792).gl_plot3d,P=m.createCamera,s=m.createScene,L=e(5408),S=e(89184),v=e(24040),p=e(3400),r=p.preserveDrawingBuffer(),t=e(54460),a=e(93024),n=e(43080),f=e(16576),u=e(94424),l=e(44728),g=e(9020),h=e(87152),T=e(19280).applyAutorangeOptions,c,i,d=!1;function x(D,N){var k=document.createElement("div"),O=D.container;this.graphDiv=D.graphDiv;var F=document.createElementNS("http://www.w3.org/2000/svg","svg");F.style.position="absolute",F.style.top=F.style.left="0px",F.style.width=F.style.height="100%",F.style["z-index"]=20,F.style["pointer-events"]="none",k.appendChild(F),this.svgContainer=F,k.id=D.id,k.style.position="absolute",k.style.top=k.style.left="0px",k.style.width=k.style.height="100%",O.appendChild(k),this.fullLayout=N,this.id=D.id||"scene",this.fullSceneLayout=N[this.id],this.plotArgs=[[],{},{}],this.axesOptions=l(N,N[this.id]),this.spikeOptions=g(N[this.id]),this.container=k,this.staticMode=!!D.staticPlot,this.pixelRatio=this.pixelRatio||D.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=v.getComponentMethod("annotations3d","convert"),this.drawAnnotations=v.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var w=x.prototype;w.prepareOptions=function(){var D=this,N={canvas:D.canvas,gl:D.gl,glOptions:{preserveDrawingBuffer:r,premultipliedAlpha:!0,antialias:!0},container:D.container,axes:D.axesOptions,spikes:D.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:D.camera,pixelRatio:D.pixelRatio};if(D.staticMode){if(!i&&(c=document.createElement("canvas"),i=L({canvas:c,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!i))throw new Error("error creating static canvas/context for image server");N.gl=i,N.canvas=c}return N};var C=!0;w.tryCreatePlot=function(){var D=this,N=D.prepareOptions(),k=!0;try{D.glplot=s(N)}catch{if(D.staticMode||!C||r)k=!1;else{p.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{r=N.glOptions.preserveDrawingBuffer=!0,D.glplot=s(N)}catch{r=N.glOptions.preserveDrawingBuffer=!1,k=!1}}}return C=!1,k},w.initializeGLCamera=function(){var D=this,N=D.fullSceneLayout.camera,k=N.projection.type==="orthographic";D.camera=P(D.container,{center:[N.center.x,N.center.y,N.center.z],eye:[N.eye.x,N.eye.y,N.eye.z],up:[N.up.x,N.up.y,N.up.z],_ortho:k,zoomMin:.01,zoomMax:100,mode:"orbit"})},w.initializeGLPlot=function(){var D=this;D.initializeGLCamera();var N=D.tryCreatePlot();if(!N)return f(D);D.traces={},D.make4thDimension();var k=D.graphDiv,O=k.layout,F=function(){var B={};return D.isCameraChanged(O)&&(B[D.id+".camera"]=D.getCamera()),D.isAspectChanged(O)&&(B[D.id+".aspectratio"]=D.glplot.getAspectratio(),O[D.id].aspectmode!=="manual"&&(D.fullSceneLayout.aspectmode=O[D.id].aspectmode=B[D.id+".aspectmode"]="manual")),B},z=function(B){if(B.fullSceneLayout.dragmode!==!1){var W=F();B.saveLayout(O),B.graphDiv.emit("plotly_relayout",W)}};return D.glplot.canvas&&(D.glplot.canvas.addEventListener("mouseup",function(){z(D)}),D.glplot.canvas.addEventListener("touchstart",function(){d=!0}),D.glplot.canvas.addEventListener("wheel",function(B){if(k._context._scrollZoom.gl3d){if(D.camera._ortho){var W=B.deltaX>B.deltaY?1.1:.9090909090909091,J=D.glplot.getAspectratio();D.glplot.setAspectratio({x:W*J.x,y:W*J.y,z:W*J.z})}z(D)}},S?{passive:!1}:!1),D.glplot.canvas.addEventListener("mousemove",function(){if(D.fullSceneLayout.dragmode!==!1&&D.camera.mouseListener.buttons!==0){var B=F();D.graphDiv.emit("plotly_relayouting",B)}}),D.staticMode||D.glplot.canvas.addEventListener("webglcontextlost",function(B){k&&k.emit&&k.emit("plotly_webglcontextlost",{event:B,layer:D.id})},!1)),D.glplot.oncontextloss=function(){D.recoverContext()},D.glplot.onrender=function(){D.render()},!0},w.render=function(){var D=this,N=D.graphDiv,k,O=D.svgContainer,F=D.container.getBoundingClientRect();N._fullLayout._calcInverseTransform(N);var z=N._fullLayout._invScaleX,B=N._fullLayout._invScaleY,W=F.width*z,J=F.height*B;O.setAttributeNS(null,"viewBox","0 0 "+W+" "+J),O.setAttributeNS(null,"width",W),O.setAttributeNS(null,"height",J),h(D),D.glplot.axes.update(D.axesOptions);for(var re=Object.keys(D.traces),ne=null,le=D.glplot.selection,$=0;$")):k.type==="isosurface"||k.type==="volume"?(oe.valueLabel=t.hoverLabelText(D._mockAxis,D._mockAxis.d2l(le.traceCoordinate[3]),k.valuehoverformat),fe.push("value: "+oe.valueLabel),le.textLabel&&fe.push(le.textLabel),te=fe.join("
")):te=le.textLabel;var ge={x:le.traceCoordinate[0],y:le.traceCoordinate[1],z:le.traceCoordinate[2],data:X._input,fullData:X,curveNumber:X.index,pointNumber:Q};a.appendArrayPointValue(ge,X,Q),k._module.eventData&&(ge=X._module.eventData(ge,le,X,{},Q));var be={points:[ge]};if(D.fullSceneLayout.hovermode){var xe=[];a.loneHover({trace:X,x:(.5+.5*ie[0]/ie[3])*W,y:(.5-.5*ie[1]/ie[3])*J,xLabel:oe.xLabel,yLabel:oe.yLabel,zLabel:oe.zLabel,text:te,name:ne.name,color:a.castHoverOption(X,Q,"bgcolor")||ne.color,borderColor:a.castHoverOption(X,Q,"bordercolor"),fontFamily:a.castHoverOption(X,Q,"font.family"),fontSize:a.castHoverOption(X,Q,"font.size"),fontColor:a.castHoverOption(X,Q,"font.color"),nameLength:a.castHoverOption(X,Q,"namelength"),textAlign:a.castHoverOption(X,Q,"align"),hovertemplate:p.castOption(X,Q,"hovertemplate"),hovertemplateLabels:p.extendFlat({},ge,oe),eventData:[ge]},{container:O,gd:N,inOut_bbox:xe}),ge.bbox=xe[0]}le.distance<5&&(le.buttons||d)?N.emit("plotly_click",be):N.emit("plotly_hover",be),this.oldEventData=be}else a.loneUnhover(O),this.oldEventData&&N.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;D.drawAnnotations(D)},w.recoverContext=function(){var D=this;D.glplot.dispose();var N=function(){if(D.glplot.gl.isContextLost()){requestAnimationFrame(N);return}if(!D.initializeGLPlot()){p.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}D.plot.apply(D,D.plotArgs)};requestAnimationFrame(N)};var y=["xaxis","yaxis","zaxis"];function E(D,N,k){for(var O=D.fullSceneLayout,F=0;F<3;F++){var z=y[F],B=z.charAt(0),W=O[z],J=N[B],re=N[B+"calendar"],ne=N["_"+B+"length"];if(!p.isArrayOrTypedArray(J))k[0][F]=Math.min(k[0][F],0),k[1][F]=Math.max(k[1][F],ne-1);else for(var le,$=0;$<(ne||J.length);$++)if(p.isArrayOrTypedArray(J[$]))for(var Z=0;ZX[1][B])X[0][B]=-1,X[1][B]=1;else{var _e=X[1][B]-X[0][B];X[0][B]-=_e/32,X[1][B]+=_e/32}if(oe=[X[0][B],X[1][B]],oe=T(oe,J),X[0][B]=oe[0],X[1][B]=oe[1],J.isReversed()){var De=X[0][B];X[0][B]=X[1][B],X[1][B]=De}}else oe=J.range,X[0][B]=J.r2l(oe[0]),X[1][B]=J.r2l(oe[1]);X[0][B]===X[1][B]&&(X[0][B]-=1,X[1][B]+=1),J.range=[X[0][B],X[1][B]],J.limitRange(),O.glplot.setBounds(B,{min:J.range[0]*Z[B],max:J.range[1]*Z[B]})}var Fe,Te=ne.aspectmode;if(Te==="cube")Fe=[1,1,1];else if(Te==="manual"){var Re=ne.aspectratio;Fe=[Re.x,Re.y,Re.z]}else if(Te==="auto"||Te==="data"){var Se=[1,1,1];for(B=0;B<3;++B){J=ne[y[B]],re=J.type;var Ie=Q[re];Se[B]=Math.pow(Ie.acc,1/Ie.count)/Z[B]}Te==="data"||Math.max.apply(null,Se)/Math.min.apply(null,Se)<=4?Fe=Se:Fe=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");ne.aspectratio.x=le.aspectratio.x=Fe[0],ne.aspectratio.y=le.aspectratio.y=Fe[1],ne.aspectratio.z=le.aspectratio.z=Fe[2],O.glplot.setAspectratio(ne.aspectratio),O.viewInitial.aspectratio||(O.viewInitial.aspectratio={x:ne.aspectratio.x,y:ne.aspectratio.y,z:ne.aspectratio.z}),O.viewInitial.aspectmode||(O.viewInitial.aspectmode=ne.aspectmode);var Me=ne.domain||null,Ve=N._size||null;if(Me&&Ve){var et=O.container.style;et.position="absolute",et.left=Ve.l+Me.x[0]*Ve.w+"px",et.top=Ve.t+(1-Me.y[1])*Ve.h+"px",et.width=Ve.w*(Me.x[1]-Me.x[0])+"px",et.height=Ve.h*(Me.y[1]-Me.y[0])+"px"}O.glplot.redraw()}},w.destroy=function(){var D=this;D.glplot&&(D.camera.mouseListener.enabled=!1,D.container.removeEventListener("wheel",D.camera.wheelListener),D.camera=null,D.glplot.dispose(),D.container.parentNode.removeChild(D.container),D.glplot=null)};function o(D){return[[D.eye.x,D.eye.y,D.eye.z],[D.center.x,D.center.y,D.center.z],[D.up.x,D.up.y,D.up.z]]}function M(D){return{up:{x:D.up[0],y:D.up[1],z:D.up[2]},center:{x:D.center[0],y:D.center[1],z:D.center[2]},eye:{x:D.eye[0],y:D.eye[1],z:D.eye[2]},projection:{type:D._ortho===!0?"orthographic":"perspective"}}}w.getCamera=function(){var D=this;return D.camera.view.recalcMatrix(D.camera.view.lastT()),M(D.camera)},w.setViewport=function(D){var N=this,k=D.camera;N.camera.lookAt.apply(this,o(k)),N.glplot.setAspectratio(D.aspectratio);var O=k.projection.type==="orthographic",F=N.camera._ortho;O!==F&&(N.glplot.redraw(),N.glplot.clearRGBA(),N.glplot.dispose(),N.initializeGLPlot())},w.isCameraChanged=function(D){var N=this,k=N.getCamera(),O=p.nestedProperty(D,N.id+".camera"),F=O.get();function z(re,ne,le,$){var Z=["up","center","eye"],ie=["x","y","z"];return ne[Z[le]]&&re[Z[le]][ie[$]]===ne[Z[le]][ie[$]]}var B=!1;if(F===void 0)B=!0;else{for(var W=0;W<3;W++)for(var J=0;J<3;J++)if(!z(k,F,W,J)){B=!0;break}(!F.projection||k.projection&&k.projection.type!==F.projection.type)&&(B=!0)}return B},w.isAspectChanged=function(D){var N=this,k=N.glplot.getAspectratio(),O=p.nestedProperty(D,N.id+".aspectratio"),F=O.get();return F===void 0||F.x!==k.x||F.y!==k.y||F.z!==k.z},w.saveLayout=function(D){var N=this,k=N.fullLayout,O,F,z,B,W,J,re=N.isCameraChanged(D),ne=N.isAspectChanged(D),le=re||ne;if(le){var $={};if(re&&(O=N.getCamera(),F=p.nestedProperty(D,N.id+".camera"),z=F.get(),$[N.id+".camera"]=z),ne&&(B=N.glplot.getAspectratio(),W=p.nestedProperty(D,N.id+".aspectratio"),J=W.get(),$[N.id+".aspectratio"]=J),v.call("_storeDirectGUIEdit",D,k._preGUI,$),re){F.set(O);var Z=p.nestedProperty(k,N.id+".camera");Z.set(O)}if(ne){W.set(B);var ie=p.nestedProperty(k,N.id+".aspectratio");ie.set(B),N.glplot.redraw()}}return le},w.updateFx=function(D,N){var k=this,O=k.camera;if(O)if(D==="orbit")O.mode="orbit",O.keyBindingMode="rotate";else if(D==="turntable"){O.up=[0,0,1],O.mode="turntable",O.keyBindingMode="rotate";var F=k.graphDiv,z=F._fullLayout,B=k.fullSceneLayout.camera,W=B.up.x,J=B.up.y,re=B.up.z;if(re/Math.sqrt(W*W+J*J+re*re)<.999){var ne=k.id+".camera.up",le={x:0,y:0,z:1},$={};$[ne]=le;var Z=F.layout;v.call("_storeDirectGUIEdit",Z,z._preGUI,$),B.up=le,p.nestedProperty(Z,ne).set(le)}}else O.keyBindingMode=D;k.fullSceneLayout.hovermode=N};function b(D,N,k){for(var O=0,F=k-1;O0)for(var W=255/B,J=0;J<3;++J)D[z+J]=Math.min(W*D[z+J],255)}}w.toImage=function(D){var N=this;D||(D="png"),N.staticMode&&N.container.appendChild(c),N.glplot.redraw();var k=N.glplot.gl,O=k.drawingBufferWidth,F=k.drawingBufferHeight;k.bindFramebuffer(k.FRAMEBUFFER,null);var z=new Uint8Array(O*F*4);k.readPixels(0,0,O,F,k.RGBA,k.UNSIGNED_BYTE,z),b(z,O,F),I(z,O,F);var B=document.createElement("canvas");B.width=O,B.height=F;var W=B.getContext("2d",{willReadFrequently:!0}),J=W.createImageData(O,F);J.data.set(z),W.putImageData(J,0,0);var re;switch(D){case"jpeg":re=B.toDataURL("image/jpeg");break;case"webp":re=B.toDataURL("image/webp");break;default:re=B.toDataURL("image/png")}return N.staticMode&&N.container.removeChild(c),re},w.setConvert=function(){for(var D=this,N=0;N<3;N++){var k=D.fullSceneLayout[y[N]];t.setConvert(k,D.fullLayout),k.setScale=p.noop}},w.make4thDimension=function(){var D=this,N=D.graphDiv,k=N._fullLayout;D._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},t.setConvert(D._mockAxis,k)},G.exports=x},52094:function(G){G.exports=function(e,m,P,s){s=s||e.length;for(var L=new Array(s),S=0;SOpenStreetMap contributors',L=['© Carto',s].join(" "),S=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),v=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),p={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:s,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:L,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:L,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:S,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:S,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:v,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},r=m(p);G.exports={requiredVersion:P,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:p,styleValuesNonMapbox:r,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+P+"."].join(` +`+b(W.dayMonthYear,k,z,B);return b(O,k,z,B)};var N=3*p;H.incrementMonth=function(k,O,F){F=T(F)&&F;var z=L(k,p);if(k=Math.round(k-z),F)try{var B=Math.round(k/p)+n,W=f.getComponentMethod("calendars","getCal")(F),J=W.fromJD(B);return O%12?W.add(J,O,"m"):W.add(J,O/12,"y"),(J.toJD()-n)*p+z}catch{s.error("invalid ms "+k+" in calendar "+F)}var re=new Date(k+N);return re.setUTCMonth(re.getUTCMonth()+O)+z-N},H.findExactDates=function(k,O){for(var F=0,z=0,B=0,W=0,J,re,ne=T(O)&&f.getComponentMethod("calendars","getCal")(O),le=0;le0&&D[N+1][0]<0)return N;return null}switch(y==="RUS"||y==="FJI"?A=function(D){var N;if(I(D)===null)N=D;else for(N=new Array(D.length),b=0;bN?k[O++]=[D[b][0]+360,D[b][1]]:b===N?(k[O++]=D[b],k[O++]=[D[b][0],-90]):k[O++]=D[b];var F=a.tester(k);F.pts.pop(),E.push(F)}:A=function(D){E.push(a.tester(D))},w.type){case"MultiPolygon":for(o=0;oE&&(E=M,C=o)}else C=w;return L.default(C).geometry.coordinates}function i(x){var w=window.PlotlyGeoAssets||{},C=[];function y(b){return new Promise(function(I,D){m.json(b,function(N,k){if(N){delete w[b];var O=N.status===404?'GeoJSON at URL "'+b+'" does not exist.':"Unexpected error while fetching from "+b;return D(new Error(O))}return w[b]=k,I(k)})})}function E(b){return new Promise(function(I,D){var N=0,k=setInterval(function(){if(w[b]&&w[b]!=="pending")return clearInterval(k),I(w[b]);if(N>100)return clearInterval(k),D("Unexpected error while fetching from "+b);N++},50)})}for(var A=0;A0&&(S.push(v),v=[])}return v.length>0&&S.push(v),S},H.makeLine=function(P){return P.length===1?{type:"LineString",coordinates:P[0]}:{type:"MultiLineString",coordinates:P}},H.makePolygon=function(P){if(P.length===1)return{type:"Polygon",coordinates:P};for(var s=new Array(P.length),L=0;L1||w<0||w>1?null:{x:p+g*w,y:r+c*w}}H.segmentDistance=function(r,t,a,n,f,u,l,g){if(P(r,t,a,n,f,u,l,g))return 0;var h=a-r,T=n-t,c=l-f,i=g-u,d=h*h+T*T,x=c*c+i*i,w=Math.min(s(h,T,d,f-r,u-t),s(h,T,d,l-r,g-t),s(c,i,x,r-f,t-u),s(c,i,x,a-f,n-u));return Math.sqrt(w)};function s(p,r,t,a,n){var f=a*p+n*r;if(f<0)return a*a+n*n;if(f>t){var u=a-p,l=n-r;return u*u+l*l}else{var g=a*r-n*p;return g*g/t}}var L,S,v;H.getTextLocation=function(r,t,a,n){if((r!==S||n!==v)&&(L={},S=r,v=n),L[a])return L[a];var f=r.getPointAtLength(m(a-n/2,t)),u=r.getPointAtLength(m(a+n/2,t)),l=Math.atan((u.y-f.y)/(u.x-f.x)),g=r.getPointAtLength(m(a,t)),h=(g.x*4+f.x+u.x)/6,T=(g.y*4+f.y+u.y)/6,c={x:h,y:T,theta:l};return L[a]=c,c},H.clearLocationCache=function(){S=null},H.getVisibleSegment=function(r,t,a){var n=t.left,f=t.right,u=t.top,l=t.bottom,g=0,h=r.getTotalLength(),T=h,c,i;function d(w){var C=r.getPointAtLength(w);w===0?c=C:w===h&&(i=C);var y=C.xf?C.x-f:0,E=C.yl?C.y-l:0;return Math.sqrt(y*y+E*E)}for(var x=d(g);x;){if(g+=x+a,g>T)return;x=d(g)}for(x=d(T);x;){if(T-=x+a,g>T)return;x=d(T)}return{min:g,max:T,len:T-g,total:h,isClosed:g===0&&T===h&&Math.abs(c.x-i.x)<.1&&Math.abs(c.y-i.y)<.1}},H.findPointOnPath=function(r,t,a,n){n=n||{};for(var f=n.pathLength||r.getTotalLength(),u=n.tolerance||.001,l=n.iterationLimit||30,g=r.getPointAtLength(0)[a]>r.getPointAtLength(f)[a]?-1:1,h=0,T=0,c=f,i,d,x;h0?c=i:T=i,h++}return d}},33040:function(G,H,e){var m=e(38248),P=e(49760),s=e(72160),L=e(8932),S=e(22548).defaultLine,v=e(38116).isArrayOrTypedArray,p=s(S),r=1;function t(l,g){var h=l;return h[3]*=g,h}function a(l){if(m(l))return p;var g=s(l);return g.length?g:p}function n(l){return m(l)?l:r}function f(l,g,h){var T=l.color;T&&T._inputArray&&(T=T._inputArray);var c=v(T),i=v(g),d=L.extractOpts(l),x=[],w,C,y,E,A;if(d.colorscale!==void 0?w=L.makeColorScaleFuncFromTrace(l):w=a,c?C=function(M,b){return M[b]===void 0?p:s(w(M[b]))}:C=a,i?y=function(M,b){return M[b]===void 0?r:n(M[b])}:y=n,c||i)for(var o=0;o1?(P*e+P*m)/P:e+m,L=String(s).length;if(L>16){var S=String(m).length,v=String(e).length;if(L>=v+S){var p=parseFloat(s).toPrecision(12);p.indexOf("e+")===-1&&(s=+p)}}return s}},3400:function(G,H,e){var m=e(33428),P=e(94336).E9,s=e(57624).E9,L=e(38248),S=e(39032),v=S.FP_SAFE,p=-v,r=S.BADNUM,t=G.exports={};t.adjustFormat=function(oe){return!oe||/^\d[.]\df/.test(oe)||/[.]\d%/.test(oe)?oe:oe==="0.f"?"~f":/^\d%/.test(oe)?"~%":/^\ds/.test(oe)?"~s":!/^[~,.0$]/.test(oe)&&/[&fps]/.test(oe)?"~"+oe:oe};var a={};t.warnBadFormat=function(Q){var oe=String(Q);a[oe]||(a[oe]=1,t.warn('encountered bad format: "'+oe+'"'))},t.noFormat=function(Q){return String(Q)},t.numberFormat=function(Q){var oe;try{oe=s(t.adjustFormat(Q))}catch{return t.warnBadFormat(Q),t.noFormat}return oe},t.nestedProperty=e(22296),t.keyedContainer=e(37804),t.relativeAttr=e(23193),t.isPlainObject=e(63620),t.toLogRange=e(36896),t.relinkPrivateKeys=e(51528);var n=e(38116);t.isArrayBuffer=n.isArrayBuffer,t.isTypedArray=n.isTypedArray,t.isArrayOrTypedArray=n.isArrayOrTypedArray,t.isArray1D=n.isArray1D,t.ensureArray=n.ensureArray,t.concat=n.concat,t.maxRowLength=n.maxRowLength,t.minRowLength=n.minRowLength;var f=e(20435);t.mod=f.mod,t.modHalf=f.modHalf;var u=e(63064);t.valObjectMeta=u.valObjectMeta,t.coerce=u.coerce,t.coerce2=u.coerce2,t.coerceFont=u.coerceFont,t.coercePattern=u.coercePattern,t.coerceHoverinfo=u.coerceHoverinfo,t.coerceSelectionMarkerOpacity=u.coerceSelectionMarkerOpacity,t.validate=u.validate;var l=e(67555);t.dateTime2ms=l.dateTime2ms,t.isDateTime=l.isDateTime,t.ms2DateTime=l.ms2DateTime,t.ms2DateTimeLocal=l.ms2DateTimeLocal,t.cleanDate=l.cleanDate,t.isJSDate=l.isJSDate,t.formatDate=l.formatDate,t.incrementMonth=l.incrementMonth,t.dateTick0=l.dateTick0,t.dfltRange=l.dfltRange,t.findExactDates=l.findExactDates,t.MIN_MS=l.MIN_MS,t.MAX_MS=l.MAX_MS;var g=e(14952);t.findBin=g.findBin,t.sorterAsc=g.sorterAsc,t.sorterDes=g.sorterDes,t.distinctVals=g.distinctVals,t.roundUp=g.roundUp,t.sort=g.sort,t.findIndexOfMin=g.findIndexOfMin,t.sortObjectKeys=e(95376);var h=e(63084);t.aggNums=h.aggNums,t.len=h.len,t.mean=h.mean,t.median=h.median,t.midRange=h.midRange,t.variance=h.variance,t.stdev=h.stdev,t.interp=h.interp;var T=e(52248);t.init2dArray=T.init2dArray,t.transposeRagged=T.transposeRagged,t.dot=T.dot,t.translationMatrix=T.translationMatrix,t.rotationMatrix=T.rotationMatrix,t.rotationXYMatrix=T.rotationXYMatrix,t.apply3DTransform=T.apply3DTransform,t.apply2DTransform=T.apply2DTransform,t.apply2DTransform2=T.apply2DTransform2,t.convertCssMatrix=T.convertCssMatrix,t.inverseTransformMatrix=T.inverseTransformMatrix;var c=e(11864);t.deg2rad=c.deg2rad,t.rad2deg=c.rad2deg,t.angleDelta=c.angleDelta,t.angleDist=c.angleDist,t.isFullCircle=c.isFullCircle,t.isAngleInsideSector=c.isAngleInsideSector,t.isPtInsideSector=c.isPtInsideSector,t.pathArc=c.pathArc,t.pathSector=c.pathSector,t.pathAnnulus=c.pathAnnulus;var i=e(98308);t.isLeftAnchor=i.isLeftAnchor,t.isCenterAnchor=i.isCenterAnchor,t.isRightAnchor=i.isRightAnchor,t.isTopAnchor=i.isTopAnchor,t.isMiddleAnchor=i.isMiddleAnchor,t.isBottomAnchor=i.isBottomAnchor;var d=e(92348);t.segmentsIntersect=d.segmentsIntersect,t.segmentDistance=d.segmentDistance,t.getTextLocation=d.getTextLocation,t.clearLocationCache=d.clearLocationCache,t.getVisibleSegment=d.getVisibleSegment,t.findPointOnPath=d.findPointOnPath;var x=e(92880);t.extendFlat=x.extendFlat,t.extendDeep=x.extendDeep,t.extendDeepAll=x.extendDeepAll,t.extendDeepNoArrays=x.extendDeepNoArrays;var w=e(24248);t.log=w.log,t.warn=w.warn,t.error=w.error;var C=e(53756);t.counterRegex=C.counter;var y=e(91200);t.throttle=y.throttle,t.throttleDone=y.done,t.clearThrottle=y.clear;var E=e(52200);t.getGraphDiv=E.getGraphDiv,t.isPlotDiv=E.isPlotDiv,t.removeElement=E.removeElement,t.addStyleRule=E.addStyleRule,t.addRelatedStyleRule=E.addRelatedStyleRule,t.deleteRelatedStyleRule=E.deleteRelatedStyleRule,t.getFullTransformMatrix=E.getFullTransformMatrix,t.getElementTransformMatrix=E.getElementTransformMatrix,t.getElementAndAncestors=E.getElementAndAncestors,t.equalDomRects=E.equalDomRects,t.clearResponsive=e(75352),t.preserveDrawingBuffer=e(34296),t.makeTraceGroups=e(30988),t._=e(98356),t.notifier=e(41792),t.filterUnique=e(68944),t.filterVisible=e(43880),t.pushUnique=e(52416),t.increment=e(1396),t.cleanNumber=e(54037),t.ensureNumber=function(oe){return L(oe)?(oe=Number(oe),oe>v||oe=oe?!1:L(Q)&&Q>=0&&Q%1===0},t.noop=e(16628),t.identity=e(35536),t.repeat=function(Q,oe){for(var Y=new Array(oe),j=0;jY?Math.max(Y,Math.min(oe,Q)):Math.max(oe,Math.min(Y,Q))},t.bBoxIntersect=function(Q,oe,Y){return Y=Y||0,Q.left<=oe.right+Y&&oe.left<=Q.right+Y&&Q.top<=oe.bottom+Y&&oe.top<=Q.bottom+Y},t.simpleMap=function(Q,oe,Y,j,se){for(var te=Q.length,fe=new Array(te),ge=0;ge=Math.pow(2,Y)?se>10?(t.warn("randstr failed uniqueness"),fe):Q(oe,Y,j,(se||0)+1):fe},t.OptionControl=function(Q,oe){Q||(Q={}),oe||(oe="opt");var Y={};return Y.optionList=[],Y._newoption=function(j){j[oe]=Q,Y[j.name]=j,Y.optionList.push(j)},Y["_"+oe]=Q,Y},t.smooth=function(Q,oe){if(oe=Math.round(oe)||0,oe<2)return Q;var Y=Q.length,j=2*Y,se=2*oe-1,te=new Array(se),fe=new Array(Y),ge,be,xe,_e;for(ge=0;ge=j&&(xe-=j*Math.floor(xe/j)),xe<0?xe=-1-xe:xe>=Y&&(xe=j-1-xe),_e+=Q[xe]*te[be];fe[ge]=_e}return fe},t.syncOrAsync=function(Q,oe,Y){var j,se;function te(){return t.syncOrAsync(Q,oe,Y)}for(;Q.length;)if(se=Q.splice(0,1)[0],j=se(oe),j&&j.then)return j.then(te);return Y&&Y(oe)},t.stripTrailingSlash=function(Q){return Q.substr(-1)==="/"?Q.substr(0,Q.length-1):Q},t.noneOrAll=function(Q,oe,Y){if(Q){var j=!1,se=!0,te,fe;for(te=0;te0?se:0})},t.fillArray=function(Q,oe,Y,j){if(j=j||t.identity,t.isArrayOrTypedArray(Q))for(var se=0;se1?se+fe[1]:"";if(te&&(fe.length>1||ge.length>4||Y))for(;j.test(ge);)ge=ge.replace(j,"$1"+te+"$2");return ge+be},t.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var O=/^\w*$/;t.templateString=function(Q,oe){var Y={};return Q.replace(t.TEMPLATE_STRING_REGEX,function(j,se){var te;return O.test(se)?te=oe[se]:(Y[se]=Y[se]||t.nestedProperty(oe,se).get,te=Y[se]()),t.isValidTextValue(te)?te:""})};var F={max:10,count:0,name:"hovertemplate"};t.hovertemplateString=function(){return ne.apply(F,arguments)};var z={max:10,count:0,name:"texttemplate"};t.texttemplateString=function(){return ne.apply(z,arguments)};var B=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function W(Q){var oe=Q.match(B);return oe?{key:oe[1],op:oe[2],number:Number(oe[3])}:{key:Q,op:null,number:null}}var J={max:10,count:0,name:"texttemplate",parseMultDiv:!0};t.texttemplateStringForShapes=function(){return ne.apply(J,arguments)};var re=/^[:|\|]/;function ne(Q,oe,Y){var j=this,se=arguments;oe||(oe={});var te={};return Q.replace(t.TEMPLATE_STRING_REGEX,function(fe,ge,be){var xe=ge==="xother"||ge==="yother",_e=ge==="_xother"||ge==="_yother",De=ge==="_xother_"||ge==="_yother_",Fe=ge==="xother_"||ge==="yother_",Te=xe||_e||Fe||De,Re=ge;(_e||De)&&(Re=Re.substring(1)),(Fe||De)&&(Re=Re.substring(0,Re.length-1));var Se=null,Ie=null;if(j.parseMultDiv){var Me=W(Re);Re=Me.key,Se=Me.op,Ie=Me.number}var Ve;if(Te){if(Ve=oe[Re],Ve===void 0)return""}else{var et,ot;for(ot=3;ot=le&&fe<=$,xe=ge>=le&&ge<=$;if(be&&(j=10*j+fe-le),xe&&(se=10*se+ge-le),!be||!xe){if(j!==se)return j-se;if(fe!==ge)return fe-ge}}return se-j};var Z=2e9;t.seedPseudoRandom=function(){Z=2e9},t.pseudoRandom=function(){var Q=Z;return Z=(69069*Z+1)%4294967296,Math.abs(Z-Q)<429496729?t.pseudoRandom():Z/4294967296},t.fillText=function(Q,oe,Y){var j=Array.isArray(Y)?function(fe){Y.push(fe)}:function(fe){Y.text=fe},se=t.extractOption(Q,oe,"htx","hovertext");if(t.isValidTextValue(se))return j(se);var te=t.extractOption(Q,oe,"tx","text");if(t.isValidTextValue(te))return j(te)},t.isValidTextValue=function(Q){return Q||Q===0},t.formatPercent=function(Q,oe){oe=oe||0;for(var Y=(Math.round(100*Q*Math.pow(10,oe))*Math.pow(.1,oe)).toFixed(oe)+"%",j=0;j1&&(xe=1):xe=0,t.strTranslate(se-xe*(Y+fe),te-xe*(j+ge))+t.strScale(xe)+(be?"rotate("+be+(oe?"":" "+Y+" "+j)+")":"")},t.setTransormAndDisplay=function(Q,oe){Q.attr("transform",t.getTextTransform(oe)),Q.style("display",oe.scale?null:"none")},t.ensureUniformFontSize=function(Q,oe){var Y=t.extendFlat({},oe);return Y.size=Math.max(oe.size,Q._fullLayout.uniformtext.minsize||0),Y},t.join2=function(Q,oe,Y){var j=Q.length;return j>1?Q.slice(0,-1).join(oe)+Y+Q[j-1]:Q.join(oe)},t.bigFont=function(Q){return Math.round(1.2*Q)};var ie=t.getFirefoxVersion(),X=ie!==null&&ie<86;t.getPositionFromD3Event=function(){return X?[m.event.layerX,m.event.layerY]:[m.event.offsetX,m.event.offsetY]}},63620:function(G){G.exports=function(e){return window&&window.process&&window.process.versions?Object.prototype.toString.call(e)==="[object Object]":Object.prototype.toString.call(e)==="[object Object]"&&Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")}},37804:function(G,H,e){var m=e(22296),P=/^\w*$/,s=0,L=1,S=2,v=3,p=4;G.exports=function(t,a,n,f){n=n||"name",f=f||"value";var u,l,g,h={};a&&a.length?(g=m(t,a),l=g.get()):l=t,a=a||"";var T={};if(l)for(u=0;u2)return h[x]=h[x]|S,i.set(d,null);if(c){for(u=x;u1){var S=["LOG:"];for(L=0;L1){var v=[];for(L=0;L"),"long")}},s.warn=function(){var L;if(m.logging>0){var S=["WARN:"];for(L=0;L0){var v=[];for(L=0;L"),"stick")}},s.error=function(){var L;if(m.logging>0){var S=["ERROR:"];for(L=0;L0){var v=[];for(L=0;L"),"stick")}}},30988:function(G,H,e){var m=e(33428);G.exports=function(s,L,S){var v=s.selectAll("g."+S.replace(/\s/g,".")).data(L,function(r){return r[0].trace.uid});v.exit().remove(),v.enter().append("g").attr("class",S),v.order();var p=s.classed("rangeplot")?"nodeRangePlot3":"node3";return v.each(function(r){r[0][p]=m.select(this)}),v}},52248:function(G,H,e){var m=e(36524);H.init2dArray=function(P,s){for(var L=new Array(P),S=0;SP/2?m-Math.round(m/P)*P:m}G.exports={mod:H,modHalf:e}},22296:function(G,H,e){var m=e(38248),P=e(38116).isArrayOrTypedArray;G.exports=function(f,u){if(m(u))u=String(u);else if(typeof u!="string"||u.substr(u.length-4)==="[-1]")throw"bad property string";var l=u.split("."),g,h,T,c;for(c=0;c/g),l=0;lr||x===P||xa||i&&u(c))}function g(c,i){var d=c[0],x=c[1];if(d===P||dr||x===P||xa)return!1;var w=v.length,C=v[0][0],y=v[0][1],E=0,A,o,M,b,I;for(A=1;AMath.max(o,C)||x>Math.max(M,y)))if(xn||Math.abs(m(g,u))>r)return!0;return!1},s.filter=function(S,v){var p=[S[0]],r=0,t=0;function a(f){S.push(f);var u=p.length,l=r;p.splice(t+1);for(var g=l+1;g1){var n=S.pop();a(n)}return{addPt:a,raw:S,filtered:p}}},5048:function(G,H,e){var m=e(16576),P=e(28624);G.exports=function(L,S,v){var p=L._fullLayout,r=!0;return p._glcanvas.each(function(t){if(t.regl){t.regl.preloadCachedCode(v);return}if(!(t.pick&&!p._has("parcoords"))){try{t.regl=P({canvas:this,attributes:{antialias:!t.pick,preserveDrawingBuffer:!0},pixelRatio:L._context.plotGlPixelRatio||e.g.devicePixelRatio,extensions:S||[],cachedCode:v||{}})}catch{r=!1}t.regl||(r=!1),r&&this.addEventListener("webglcontextlost",function(a){L&&L.emit&&L.emit("plotly_webglcontextlost",{event:a,layer:t.key})},!1)}}),r||m({container:p._glcontainer.node()}),r}},34296:function(G,H,e){var m=e(38248),P=e(25928);G.exports=function(S){var v;if(S&&S.hasOwnProperty("userAgent")?v=S.userAgent:v=s(),typeof v!="string")return!0;var p=P({ua:{headers:{"user-agent":v}},tablet:!0,featureDetect:!1});if(!p)for(var r=v.split(" "),t=1;t-1;n--){var f=r[n];if(f.substr(0,8)==="Version/"){var u=f.substr(8).split(".")[0];if(m(u)&&(u=+u),u>=13)return!0}}}return p};function s(){var L;return typeof navigator<"u"&&(L=navigator.userAgent),L&&L.headers&&typeof L.headers["user-agent"]=="string"&&(L=L.headers["user-agent"]),L}},52416:function(G){G.exports=function(e,m){if(m instanceof RegExp){for(var P=m.toString(),s=0;sP.queueLength&&(S.undoQueue.queue.shift(),S.undoQueue.index--)},L.startSequence=function(S){S.undoQueue=S.undoQueue||{index:0,queue:[],sequence:!1},S.undoQueue.sequence=!0,S.undoQueue.beginSequence=!0},L.stopSequence=function(S){S.undoQueue=S.undoQueue||{index:0,queue:[],sequence:!1},S.undoQueue.sequence=!1,S.undoQueue.beginSequence=!1},L.undo=function(v){var p,r;if(!(v.undoQueue===void 0||isNaN(v.undoQueue.index)||v.undoQueue.index<=0)){for(v.undoQueue.index--,p=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,r=0;r=v.undoQueue.queue.length)){for(p=v.undoQueue.queue[v.undoQueue.index],v.undoQueue.inSequence=!0,r=0;r1?(n[l-1]-n[0])/(l-1):1,T,c;for(h>=0?c=f?v:p:c=f?t:r,a+=h*S*(f?-1:1)*(h>=0?1:-1);u90&&P.log("Long binary search..."),u-1};function v(a,n){return an}function t(a,n){return a>=n}H.sorterAsc=function(a,n){return a-n},H.sorterDes=function(a,n){return n-a},H.distinctVals=function(a){var n=a.slice();n.sort(H.sorterAsc);var f;for(f=n.length-1;f>-1&&n[f]===L;f--);for(var u=n[f]-n[0]||1,l=u/(f||1)/1e4,g=[],h,T=0;T<=f;T++){var c=n[T],i=c-h;h===void 0?(g.push(c),h=c):i>l&&(u=Math.min(u,i),g.push(c),h=c)}return{vals:g,minDiff:u}},H.roundUp=function(a,n,f){for(var u=0,l=n.length-1,g,h=0,T=f?0:1,c=f?1:0,i=f?Math.ceil:Math.floor;u0&&(u=1),f&&u)return a.sort(n)}return u?a:a.reverse()},H.findIndexOfMin=function(a,n){n=n||s;for(var f=1/0,u,l=0;lS.length)&&(v=S.length),m(L)||(L=!1),P(S[0])){for(r=new Array(v),p=0;ps.length-1)return s[s.length-1];var S=L%1;return S*s[Math.ceil(L)]+(1-S)*s[Math.floor(L)]}},43080:function(G,H,e){var m=e(72160);function P(s){return s?m(s):[0,0,0,1]}G.exports=P},9188:function(G,H,e){var m=e(2264),P=e(43616),s=e(3400),L=null;function S(){if(L!==null)return L;L=!1;var v=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!v){var p=Array.from(m.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")L=p.some(function(f){return r.apply(null,f)});else{var t=P.tester.append("image").attr("style",m.STYLE),a=window.getComputedStyle(t.node()),n=a.imageRendering;L=p.some(function(f){var u=f[1];return n===u||n===u.toLowerCase()}),t.remove()}}return L}G.exports=S},72736:function(G,H,e){var m=e(33428),P=e(3400),s=P.strTranslate,L=e(9616),S=e(84284).LINE_SPACING,v=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;H.convertToTspans=function(F,z,B){var W=F.text(),J=!F.attr("data-notex")&&z&&z._context.typesetMath&&typeof MathJax<"u"&&W.match(v),re=m.select(F.node().parentNode);if(re.empty())return;var ne=F.attr("class")?F.attr("class").split(" ")[0]:"text";ne+="-math",re.selectAll("svg."+ne).remove(),re.selectAll("g."+ne+"-group").remove(),F.style("display",null).attr({"data-unformatted":W,"data-math":"N"});function le(){re.empty()||(ne=F.attr("class")+"-math",re.select("svg."+ne).remove()),F.text("").style("white-space","pre");var $=D(F.node(),W);$&&F.style("pointer-events","all"),H.positionText(F),B&&B.call(F)}return J?(z&&z._promises||[]).push(new Promise(function($){F.style("display","none");var Z=parseInt(F.node().style.fontSize,10),ie={fontSize:Z};n(J[2],ie,function(X,Q,oe){re.selectAll("svg."+ne).remove(),re.selectAll("g."+ne+"-group").remove();var Y=X&&X.select("svg");if(!Y||!Y.node()){le(),$();return}var j=re.append("g").classed(ne+"-group",!0).attr({"pointer-events":"none","data-unformatted":W,"data-math":"Y"});j.node().appendChild(Y.node()),Q&&Q.node()&&Y.node().insertBefore(Q.node().cloneNode(!0),Y.node().firstChild);var se=oe.width,te=oe.height;Y.attr({class:ne,height:te,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var fe=F.node().style.fill||"black",ge=Y.select("g");ge.attr({fill:fe,stroke:fe});var be=ge.node().getBoundingClientRect(),xe=be.width,_e=be.height;(xe>se||_e>te)&&(Y.style("overflow","hidden"),be=Y.node().getBoundingClientRect(),xe=be.width,_e=be.height);var De=+F.attr("x"),Fe=+F.attr("y"),Te=Z||F.node().getBoundingClientRect().height,Re=-Te/4;if(ne[0]==="y")j.attr({transform:"rotate("+[-90,De,Fe]+")"+s(-xe/2,Re-_e/2)});else if(ne[0]==="l")Fe=Re-_e/2;else if(ne[0]==="a"&&ne.indexOf("atitle")!==0)De=0,Fe=Re;else{var Se=F.attr("text-anchor");De=De-xe*(Se==="middle"?.5:Se==="end"?1:0),Fe=Fe+Re-_e/2}Y.attr({x:De,y:Fe}),B&&B.call(F,j),$(j)})})):le(),F};var p=/(<|<|<)/g,r=/(>|>|>)/g;function t(F){return F.replace(p,"\\lt ").replace(r,"\\gt ")}var a=[["$","$"],["\\(","\\)"]];function n(F,z,B){var W=parseInt((MathJax.version||"").split(".")[0]);if(W!==2&&W!==3){P.warn("No MathJax version:",MathJax.version);return}var J,re,ne,le,$=function(){return re=P.extendDeepAll({},MathJax.Hub.config),ne=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:a},displayAlign:"left"})},Z=function(){re=P.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=a},ie=function(){if(J=MathJax.Hub.config.menuSettings.renderer,J!=="SVG")return MathJax.Hub.setRenderer("SVG")},X=function(){J=MathJax.config.startup.output,J!=="svg"&&(MathJax.config.startup.output="svg")},Q=function(){var fe="math-output-"+P.randstr({},64);le=m.select("body").append("div").attr({id:fe}).style({visibility:"hidden",position:"absolute","font-size":z.fontSize+"px"}).text(t(F));var ge=le.node();return W===2?MathJax.Hub.Typeset(ge):MathJax.typeset([ge])},oe=function(){var fe=le.select(W===2?".MathJax_SVG":".MathJax"),ge=!fe.empty()&&le.select("svg").node();if(!ge)P.log("There was an error in the tex syntax.",F),B();else{var be=ge.getBoundingClientRect(),xe;W===2?xe=m.select("body").select("#MathJax_SVG_glyphs"):xe=fe.select("defs"),B(fe,xe,be)}le.remove()},Y=function(){if(J!=="SVG")return MathJax.Hub.setRenderer(J)},j=function(){J!=="svg"&&(MathJax.config.startup.output=J)},se=function(){return ne!==void 0&&(MathJax.Hub.processSectionDelay=ne),MathJax.Hub.Config(re)},te=function(){MathJax.config=re};W===2?MathJax.Hub.Queue($,ie,Q,oe,Y,se):W===3&&(Z(),X(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Q(),oe(),j(),te()}))}var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},u={sub:"0.3em",sup:"-0.6em"},l={sub:"-0.21em",sup:"0.42em"},g="​",h=["http:","https:","mailto:","",void 0,":"],T=H.NEWLINES=/(\r\n?|\n)/g,c=/(<[^<>]*>)/,i=/<(\/?)([^ >]*)(\s+(.*))?>/i,d=//i;H.BR_TAG_ALL=//gi;var x=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,w=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,y=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function E(F,z){if(!F)return null;var B=F.match(z),W=B&&(B[3]||B[4]);return W&&b(W)}var A=/(^|;)\s*color:/;H.plainText=function(F,z){z=z||{};for(var B=z.len!==void 0&&z.len!==-1?z.len:1/0,W=z.allowedTags!==void 0?z.allowedTags:["br"],J="...",re=J.length,ne=F.split(c),le=[],$="",Z=0,ie=0;iere?le.push(X.substr(0,j-re)+J):le.push(X.substr(0,j));break}$=""}}return le.join("")};var o={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},M=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function b(F){return F.replace(M,function(z,B){var W;return B.charAt(0)==="#"?W=I(B.charAt(1)==="x"?parseInt(B.substr(2),16):parseInt(B.substr(1),10)):W=o[B],W||z})}H.convertEntities=b;function I(F){if(!(F>1114111)){var z=String.fromCodePoint;if(z)return z(F);var B=String.fromCharCode;return F<=65535?B(F):B((F>>10)+55232,F%1024+56320)}}function D(F,z){z=z.replace(T," ");var B=!1,W=[],J,re=-1;function ne(){re++;var _e=document.createElementNS(L.svg,"tspan");m.select(_e).attr({class:"line",dy:re*S+"em"}),F.appendChild(_e),J=_e;var De=W;if(W=[{node:_e}],De.length>1)for(var Fe=1;Fe.",z);return}var De=W.pop();_e!==De.type&&P.log("Start tag <"+De.type+"> doesnt match end tag <"+_e+">. Pretending it did match.",z),J=W[W.length-1].node}var ie=d.test(z);ie?ne():(J=F,W=[{node:F}]);for(var X=z.split(c),Q=0;Qv.ts+L){t();return}v.timer=setTimeout(function(){t(),v.timer=null},L)},H.done=function(P){var s=e[P];return!s||!s.timer?Promise.resolve():new Promise(function(L){var S=s.onDone;s.onDone=function(){S&&S(),L(),s.onDone=null}})},H.clear=function(P){if(P)m(e[P]),delete e[P];else for(var s in e)H.clear(s)};function m(P){P&&P.timer!==null&&(clearTimeout(P.timer),P.timer=null)}},36896:function(G,H,e){var m=e(38248);G.exports=function(s,L){if(s>0)return Math.log(s)/Math.LN10;var S=Math.log(Math.min(L[0],L[1]))/Math.LN10;return m(S)||(S=Math.log(Math.max(L[0],L[1]))/Math.LN10-6),S}},59972:function(G,H,e){var m=G.exports={},P=e(79552).locationmodeToLayer,s=e(55712).NO;m.getTopojsonName=function(L){return[L.scope.replace(/ /g,"-"),"_",L.resolution.toString(),"m"].join("")},m.getTopojsonPath=function(L,S){return L+S+".json"},m.getTopojsonFeatures=function(L,S){var v=P[L.locationmode],p=S.objects[v];return s(S,p).features}},11680:function(G){G.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(G){G.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(G,H,e){var m=e(24040);G.exports=function(s){for(var L=m.layoutArrayContainers,S=m.layoutArrayRegexes,v=s.split("[")[0],p,r,t=0;t0&&L.log("Clearing previous rejected promises from queue."),d._promises=[]},H.cleanLayout=function(d){var x,w;d||(d={}),d.xaxis1&&(d.xaxis||(d.xaxis=d.xaxis1),delete d.xaxis1),d.yaxis1&&(d.yaxis||(d.yaxis=d.yaxis1),delete d.yaxis1),d.scene1&&(d.scene||(d.scene=d.scene1),delete d.scene1);var C=(S.subplotsRegistry.cartesian||{}).attrRegex,y=(S.subplotsRegistry.polar||{}).attrRegex,E=(S.subplotsRegistry.ternary||{}).attrRegex,A=(S.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(d);for(x=0;x3?(ie.x=1.02,ie.xanchor="left"):ie.x<-2&&(ie.x=-.02,ie.xanchor="right"),ie.y>3?(ie.y=1.02,ie.yanchor="bottom"):ie.y<-2&&(ie.y=-.02,ie.yanchor="top")),f(d),d.dragmode==="rotate"&&(d.dragmode="orbit"),p.clean(d),d.template&&d.template.layout&&H.cleanLayout(d.template.layout),d};function n(d,x){var w=d[x],C=x.charAt(0);w&&w!=="paper"&&(d[x]=r(w,C,!0))}function f(d){d&&((typeof d.title=="string"||typeof d.title=="number")&&(d.title={text:d.title}),x("titlefont","font"),x("titleposition","position"),x("titleside","side"),x("titleoffset","offset"));function x(w,C){var y=d[w],E=d.title&&d.title[C];y&&!E&&(d.title||(d.title={}),d.title[C]=d[w],delete d[w])}}H.cleanData=function(d){for(var x=0;x0)return d.substr(0,x)}H.hasParent=function(d,x){for(var w=c(x);w;){if(w in d)return!0;w=c(w)}return!1};var i=["x","y","z"];H.clearAxisTypes=function(d,x,w){for(var C=0;C1&&s.warn("Full array edits are incompatible with other edits",l);var x=n[""][""];if(p(x))a.set(null);else if(Array.isArray(x))a.set(x);else return s.warn("Unrecognized full array edit value",l,x),!0;return c?!1:(g(i,d),h(t),!0)}var w=Object.keys(n).map(Number).sort(L),C=a.get(),y=C||[],E=u(d,l).get(),A=[],o=-1,M=y.length,b,I,D,N,k,O,F,z;for(b=0;by.length-(F?0:1)){s.warn("index out of range",l,D);continue}if(O!==void 0)k.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",l,D),p(O)?A.push(D):F?(O==="add"&&(O={}),y.splice(D,0,O),E&&E.splice(D,0,{})):s.warn("Unrecognized full object edit value",l,D,O),o===-1&&(o=D);else for(I=0;I=0;b--)y.splice(A[b],1),E&&E.splice(A[b],1);if(y.length?C||a.set(y):a.set(null),c)return!1;if(g(i,d),T!==P){var B;if(o===-1)B=w;else{for(M=Math.max(y.length,M),B=[],b=0;b=o));b++)B.push(D);for(b=o;b=he.data.length||st<-he.data.length)throw new Error(Ne+" must be valid indices for gd.data.");if(me.indexOf(st,Ze+1)>-1||st>=0&&me.indexOf(-he.data.length+st)>-1||st<0&&me.indexOf(he.data.length+st)>-1)throw new Error("each index in "+Ne+" must be unique.")}}function B(he,me,Ne){if(!Array.isArray(he.data))throw new Error("gd.data must be an array.");if(typeof me>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(me)||(me=[me]),z(he,me,"currentIndices"),typeof Ne<"u"&&!Array.isArray(Ne)&&(Ne=[Ne]),typeof Ne<"u"&&z(he,Ne,"newIndices"),typeof Ne<"u"&&me.length!==Ne.length)throw new Error("current and new indices must be of equal length.")}function W(he,me,Ne){var Ze,st;if(!Array.isArray(he.data))throw new Error("gd.data must be an array.");if(typeof me>"u")throw new Error("traces must be defined.");for(Array.isArray(me)||(me=[me]),Ze=0;Ze"u")throw new Error("indices must be an integer or array of integers");z(he,Ne,"indices");for(var lt in me){if(!Array.isArray(me[lt])||me[lt].length!==Ne.length)throw new Error("attribute "+lt+" must be an array of length equal to indices array length");if(st&&(!(lt in Ze)||!Array.isArray(Ze[lt])||Ze[lt].length!==me[lt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function re(he,me,Ne,Ze){var st=L.isPlainObject(Ze),lt=[],Wt,Zt,Tt,Rt,Xt;Array.isArray(Ne)||(Ne=[Ne]),Ne=F(Ne,he.data.length-1);for(var gr in me)for(var gt=0;gt=0&&Xt=0&&Xt"u")return Rt=H.redraw(he),p.add(he,st,Wt,lt,Zt),Rt;Array.isArray(Ne)||(Ne=[Ne]);try{B(he,Ze,Ne)}catch(Xt){throw he.data.splice(he.data.length-me.length,me.length),Xt}return p.startSequence(he),p.add(he,st,Wt,lt,Zt),Rt=H.moveTraces(he,Ze,Ne),p.stopSequence(he),Rt}function X(he,me){he=L.getGraphDiv(he);var Ne=[],Ze=H.addTraces,st=X,lt=[he,Ne,me],Wt=[he,me],Zt,Tt;if(typeof me>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(me)||(me=[me]),z(he,me,"indices"),me=F(me,he.data.length-1),me.sort(L.sorterDes),Zt=0;Zt"u")for(Ne=[],Rt=0;Rt-1&<.indexOf("grouptitlefont")===-1?Zt(lt,lt.replace("titlefont","title.font")):lt.indexOf("titleposition")>-1?Zt(lt,lt.replace("titleposition","title.position")):lt.indexOf("titleside")>-1?Zt(lt,lt.replace("titleside","title.side")):lt.indexOf("titleoffset")>-1&&Zt(lt,lt.replace("titleoffset","title.offset"));function Zt(Tt,Rt){he[Rt]=he[Tt],delete he[Tt]}}function be(he,me,Ne){he=L.getGraphDiv(he),x.clearPromiseQueue(he);var Ze={};if(typeof me=="string")Ze[me]=Ne;else if(L.isPlainObject(me))Ze=L.extendFlat({},me);else return L.warn("Relayout fail.",me,Ne),Promise.reject();Object.keys(Ze).length&&(he.changed=!0);var st=Re(he,Ze),lt=st.flags;lt.calc&&(he.calcdata=void 0);var Wt=[a.previousPromises];lt.layoutReplot?Wt.push(w.layoutReplot):Object.keys(Ze).length&&(xe(he,lt,st)||a.supplyDefaults(he),lt.legend&&Wt.push(w.doLegend),lt.layoutstyle&&Wt.push(w.layoutStyles),lt.axrange&&_e(Wt,st.rangesAltered),lt.ticks&&Wt.push(w.doTicksRelayout),lt.modebar&&Wt.push(w.doModeBar),lt.camera&&Wt.push(w.doCamera),lt.colorbars&&Wt.push(w.doColorBars),Wt.push(M)),Wt.push(a.rehover,a.redrag,a.reselect),p.add(he,be,[he,st.undoit],be,[he,st.redoit]);var Zt=L.syncOrAsync(Wt,he);return(!Zt||!Zt.then)&&(Zt=Promise.resolve(he)),Zt.then(function(){return he.emit("plotly_relayout",st.eventData),he})}function xe(he,me,Ne){var Ze=he._fullLayout;if(!me.axrange)return!1;for(var st in me)if(st!=="axrange"&&me[st])return!1;var lt,Wt,Zt=function(Kt,Qt){return L.coerce(lt,Wt,u,Kt,Qt)},Tt={};for(var Rt in Ne.rangesAltered){var Xt=n.id2name(Rt);if(lt=he.layout[Xt],Wt=Ze[Xt],f(lt,Wt,Zt,Tt),Wt._matchGroup){for(var gr in Wt._matchGroup)if(gr!==Rt){var gt=Ze[n.id2name(gr)];gt.autorange=Wt.autorange,gt.range=Wt.range.slice(),gt._input.range=Wt.range.slice()}}}return!0}function _e(he,me){var Ne=me?function(Ze){var st=[],lt=!0;for(var Wt in me){var Zt=n.getFromId(Ze,Wt);if(st.push(Wt),(Zt.ticklabelposition||"").indexOf("inside")!==-1&&Zt._anchorAxis&&st.push(Zt._anchorAxis._id),Zt._matchGroup)for(var Tt in Zt._matchGroup)me[Tt]||st.push(Tt)}return n.draw(Ze,st,{skipTitle:lt})}:function(Ze){return n.draw(Ze,"redraw")};he.push(c,w.doAutoRangeAndConstraints,Ne,w.drawData,w.finalDraw)}var De=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Fe=/^[xyz]axis[0-9]*\.autorange$/,Te=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Re(he,me){var Ne=he.layout,Ze=he._fullLayout,st=Ze._guiEditing,lt=j(Ze._preGUI,st),Wt=Object.keys(me),Zt=n.list(he),Tt=L.extendDeepAll({},me),Rt={},Xt,gr,gt;for(ge(me),Wt=Object.keys(me),gr=0;gr0&&typeof Ut.parts[fr]!="string";)fr--;var dr=Ut.parts[fr],Ye=Ut.parts[fr-1]+"."+dr,Ue=Ut.parts.slice(0,fr).join("."),zt=S(he.layout,Ue).get(),Dt=S(Ze,Ue).get(),$t=Ut.get();if(Jt!==void 0){ut[Bt]=Jt,at[Bt]=dr==="reverse"?Jt:Y($t);var sr=t.getLayoutValObject(Ze,Ut.parts);if(sr&&sr.impliedEdits&&Jt!==null)for(var cr in sr.impliedEdits)xt(L.relativeAttr(Bt,cr),sr.impliedEdits[cr]);if(["width","height"].indexOf(Bt)!==-1)if(Jt){xt("autosize",null);var tr=Bt==="height"?"width":"height";xt(tr,Ze[tr])}else Ze[Bt]=he._initialAutoSize[Bt];else if(Bt==="autosize")xt("width",Jt?null:Ze.width),xt("height",Jt?null:Ze.height);else if(Ye.match(De))Vt(Ye),S(Ze,Ue+"._inputRange").set(null);else if(Ye.match(Fe)){Vt(Ye),S(Ze,Ue+"._inputRange").set(null);var Nt=S(Ze,Ue).get();Nt._inputDomain&&(Nt._input.domain=Nt._inputDomain.slice())}else Ye.match(Te)&&S(Ze,Ue+"._inputDomain").set(null);if(dr==="type"){Et=zt;var ir=Dt.type==="linear"&&Jt==="log",hr=Dt.type==="log"&&Jt==="linear";if(ir||hr){if(!Et||!Et.range)xt(Ue+".autorange",!0);else if(Dt.autorange)ir&&(Et.range=Et.range[1]>Et.range[0]?[1,2]:[2,1]);else{var xr=Et.range[0],vr=Et.range[1];ir?(xr<=0&&vr<=0&&xt(Ue+".autorange",!0),xr<=0?xr=vr/1e6:vr<=0&&(vr=xr/1e6),xt(Ue+".range[0]",Math.log(xr)/Math.LN10),xt(Ue+".range[1]",Math.log(vr)/Math.LN10)):(xt(Ue+".range[0]",Math.pow(10,xr)),xt(Ue+".range[1]",Math.pow(10,vr)))}Array.isArray(Ze._subplots.polar)&&Ze._subplots.polar.length&&Ze[Ut.parts[0]]&&Ut.parts[1]==="radialaxis"&&delete Ze[Ut.parts[0]]._subplot.viewInitial["radialaxis.range"],r.getComponentMethod("annotations","convertCoords")(he,Dt,Jt,xt),r.getComponentMethod("images","convertCoords")(he,Dt,Jt,xt)}else xt(Ue+".autorange",!0),xt(Ue+".range",null);S(Ze,Ue+"._inputRange").set(null)}else if(dr.match(y)){var Hr=S(Ze,Bt).get(),_r=(Jt||{}).type;(!_r||_r==="-")&&(_r="linear"),r.getComponentMethod("annotations","convertCoords")(he,Hr,_r,xt),r.getComponentMethod("images","convertCoords")(he,Hr,_r,xt)}var Dr=d.containerArrayMatch(Bt);if(Dr){Xt=Dr.array,gr=Dr.index;var an=Dr.property,tn=sr||{editType:"calc"};gr!==""&&an===""&&(d.isAddVal(Jt)?at[Bt]=null:d.isRemoveVal(Jt)?at[Bt]=(S(Ne,Xt).get()||[])[gr]:L.warn("unrecognized full object value",me)),C.update(Ot,tn),Rt[Xt]||(Rt[Xt]={});var Sn=Rt[Xt][gr];Sn||(Sn=Rt[Xt][gr]={}),Sn[an]=Jt,delete me[Bt]}else dr==="reverse"?(zt.range?zt.range.reverse():(xt(Ue+".autorange",!0),zt.range=[1,0]),Dt.autorange?Ot.calc=!0:Ot.plot=!0):(Bt==="dragmode"&&(Jt===!1&&$t!==!1||Jt!==!1&&$t===!1)||Ze._has("scatter-like")&&Ze._has("regl")&&Bt==="dragmode"&&(Jt==="lasso"||Jt==="select")&&!($t==="lasso"||$t==="select")||Ze._has("gl2d")?Ot.plot=!0:sr?C.update(Ot,sr):Ot.calc=!0,Ut.set(Jt))}}for(Xt in Rt){var Tn=d.applyContainerArrayChanges(he,lt(Ne,Xt),Rt[Xt],Ot,lt);Tn||(Ot.plot=!0)}for(var Tr in At){Et=n.getFromId(he,Tr);var zr=Et&&Et._constraintGroup;if(zr){Ot.calc=!0;for(var Yr in zr)At[Yr]||(n.getFromId(he,Yr)._constraintShrinkable=!0)}}(Se(he)||me.height||me.width)&&(Ot.plot=!0);var Or=Ze.shapes;for(gr=0;gr1;)if(Ze.pop(),Ne=S(me,Ze.join(".")+".uirevision").get(),Ne!==void 0)return Ne;return me.uirevision}function $e(he,me){for(var Ne=0;Ne=st.length?st[0]:st[Rt]:st}function Zt(Rt){return Array.isArray(lt)?Rt>=lt.length?lt[0]:lt[Rt]:lt}function Tt(Rt,Xt){var gr=0;return function(){if(Rt&&++gr===Xt)return Rt()}}return new Promise(function(Rt,Xt){function gr(){if(Ze._frameQueue.length!==0){for(;Ze._frameQueue.length;){var dr=Ze._frameQueue.pop();dr.onInterrupt&&dr.onInterrupt()}he.emit("plotly_animationinterrupted",[])}}function gt(dr){if(dr.length!==0){for(var Ye=0;YeZe._timeToNext&&Qt()};dr()}var Ot=0;function ut(dr){return Array.isArray(st)?Ot>=st.length?dr.transitionOpts=st[Ot]:dr.transitionOpts=st[0]:dr.transitionOpts=st,Ot++,dr}var at,xt,At=[],Et=me==null,Vt=Array.isArray(me),Bt=!Et&&!Vt&&L.isPlainObject(me);if(Bt)At.push({type:"object",data:ut(L.extendFlat({},me))});else if(Et||["string","number"].indexOf(typeof me)!==-1)for(at=0;at0&&urur)&&fr.push(xt);At=fr}}At.length>0?gt(At):(he.emit("plotly_animated"),Rt())})}function Ge(he,me,Ne){if(he=L.getGraphDiv(he),me==null)return Promise.resolve();if(!L.isPlotDiv(he))throw new Error("This element is not a Plotly plot: "+he+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Ze,st,lt,Wt,Zt=he._transitionData._frames,Tt=he._transitionData._frameHash;if(!Array.isArray(me))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+me);var Rt=Zt.length+me.length*2,Xt=[],gr={};for(Ze=me.length-1;Ze>=0;Ze--)if(L.isPlainObject(me[Ze])){var gt=me[Ze].name,Kt=(Tt[gt]||gr[gt]||{}).name,Qt=me[Ze].name,yr=Tt[Kt]||gr[Kt];Kt&&Qt&&typeof Qt=="number"&&yr&&EUt.index?-1:Bt.index=0;Ze--){if(st=Xt[Ze].frame,typeof st.name=="number"&&L.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!st.name)for(;Tt[st.name="frame "+he._transitionData._counter++];);if(Tt[st.name]){for(lt=0;lt=0;Ne--)Ze=me[Ne],lt.push({type:"delete",index:Ze}),Wt.unshift({type:"insert",index:Ze,value:st[Ze]});var Zt=a.modifyFrames,Tt=a.modifyFrames,Rt=[he,Wt],Xt=[he,lt];return p&&p.add(he,Zt,Rt,Tt,Xt),a.modifyFrames(he,lt)}function Pe(he){he=L.getGraphDiv(he);var me=he._fullLayout||{},Ne=he._fullData||[];return a.cleanPlot([],{},Ne,me),a.purge(he),v.purge(he),me._container&&me._container.remove(),delete he._context,he}function je(he){var me=he._fullLayout,Ne=he.getBoundingClientRect();if(!L.equalDomRects(Ne,me._lastBBox)){var Ze=me._invTransform=L.inverseTransformMatrix(L.getFullTransformMatrix(he));me._invScaleX=Math.sqrt(Ze[0][0]*Ze[0][0]+Ze[0][1]*Ze[0][1]+Ze[0][2]*Ze[0][2]),me._invScaleY=Math.sqrt(Ze[1][0]*Ze[1][0]+Ze[1][1]*Ze[1][1]+Ze[1][2]*Ze[1][2]),me._lastBBox=Ne}}function Ce(he){var me=m.select(he),Ne=he._fullLayout;if(Ne._calcInverseTransform=je,Ne._calcInverseTransform(he),Ne._container=me.selectAll(".plot-container").data([0]),Ne._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),Ne._paperdiv=Ne._container.selectAll(".svg-container").data([0]),Ne._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Ne._glcontainer=Ne._paperdiv.selectAll(".gl-container").data([{}]),Ne._glcontainer.enter().append("div").classed("gl-container",!0),Ne._paperdiv.selectAll(".main-svg").remove(),Ne._paperdiv.select(".modebar-container").remove(),Ne._paper=Ne._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Ne._toppaper=Ne._paperdiv.append("svg").classed("main-svg",!0),Ne._modebardiv=Ne._paperdiv.append("div"),delete Ne._modeBar,Ne._hoverpaper=Ne._paperdiv.append("svg").classed("main-svg",!0),!Ne._uid){var Ze={};m.selectAll("defs").each(function(){this.id&&(Ze[this.id.split("-")[1]]=1)}),Ne._uid=L.randstr(Ze)}Ne._paperdiv.selectAll(".main-svg").attr(T.svgAttrs),Ne._defs=Ne._paper.append("defs").attr("id","defs-"+Ne._uid),Ne._clips=Ne._defs.append("g").classed("clips",!0),Ne._topdefs=Ne._toppaper.append("defs").attr("id","topdefs-"+Ne._uid),Ne._topclips=Ne._topdefs.append("g").classed("clips",!0),Ne._bgLayer=Ne._paper.append("g").classed("bglayer",!0),Ne._draggers=Ne._paper.append("g").classed("draglayer",!0);var st=Ne._paper.append("g").classed("layer-below",!0);Ne._imageLowerLayer=st.append("g").classed("imagelayer",!0),Ne._shapeLowerLayer=st.append("g").classed("shapelayer",!0),Ne._cartesianlayer=Ne._paper.append("g").classed("cartesianlayer",!0),Ne._polarlayer=Ne._paper.append("g").classed("polarlayer",!0),Ne._smithlayer=Ne._paper.append("g").classed("smithlayer",!0),Ne._ternarylayer=Ne._paper.append("g").classed("ternarylayer",!0),Ne._geolayer=Ne._paper.append("g").classed("geolayer",!0),Ne._funnelarealayer=Ne._paper.append("g").classed("funnelarealayer",!0),Ne._pielayer=Ne._paper.append("g").classed("pielayer",!0),Ne._iciclelayer=Ne._paper.append("g").classed("iciclelayer",!0),Ne._treemaplayer=Ne._paper.append("g").classed("treemaplayer",!0),Ne._sunburstlayer=Ne._paper.append("g").classed("sunburstlayer",!0),Ne._indicatorlayer=Ne._toppaper.append("g").classed("indicatorlayer",!0),Ne._glimages=Ne._paper.append("g").classed("glimages",!0);var lt=Ne._toppaper.append("g").classed("layer-above",!0);Ne._imageUpperLayer=lt.append("g").classed("imagelayer",!0),Ne._shapeUpperLayer=lt.append("g").classed("shapelayer",!0),Ne._selectionLayer=Ne._toppaper.append("g").classed("selectionlayer",!0),Ne._infolayer=Ne._toppaper.append("g").classed("infolayer",!0),Ne._menulayer=Ne._toppaper.append("g").classed("menulayer",!0),Ne._zoomlayer=Ne._toppaper.append("g").classed("zoomlayer",!0),Ne._hoverlayer=Ne._hoverpaper.append("g").classed("hoverlayer",!0),Ne._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),he.emit("plotly_framework")}H.animate=We,H.addFrames=Ge,H.deleteFrames=Le,H.addTraces=ie,H.deleteTraces=X,H.extendTraces=$,H.moveTraces=Q,H.prependTraces=Z,H.newPlot=O,H._doPlot=o,H.purge=Pe,H.react=wt,H.redraw=k,H.relayout=be,H.restyle=oe,H.setPlotConfig=b,H.update=Ie,H._guiRelayout=Me(be),H._guiRestyle=Me(oe),H._guiUpdate=Me(Ie),H._storeDirectGUIEdit=te},20556:function(G){var H={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},e={};function m(P,s){for(var L in P){var S=P[L];S.valType?s[L]=S.dflt:(s[L]||(s[L]={}),m(S,s[L]))}}m(H,e),G.exports={configAttributes:H,dfltConfig:e}},73060:function(G,H,e){var m=e(24040),P=e(3400),s=e(45464),L=e(64859),S=e(16672),v=e(85656),p=e(20556).configAttributes,r=e(67824),t=P.extendDeepAll,a=P.isPlainObject,n=P.isArrayOrTypedArray,f=P.nestedProperty,u=P.valObjectMeta,l="_isSubplotObj",g="_isLinkedToArray",h="_arrayAttrRegexps",T="_deprecated",c=[l,g,h,T];H.IS_SUBPLOT_OBJ=l,H.IS_LINKED_TO_ARRAY=g,H.DEPRECATED=T,H.UNDERSCORE_ATTRS=c,H.get=function(){var N={};m.allTypes.forEach(function(O){N[O]=w(O)});var k={};return Object.keys(m.transformsRegistry).forEach(function(O){k[O]=y(O)}),{defs:{valObjects:u,metaKeys:c.concat(["description","role","editType","impliedEdits"]),editType:{traces:r.traces,layout:r.layout},impliedEdits:{}},traces:N,layout:C(),transforms:k,frames:E(),animation:A(v),config:A(p)}},H.crawl=function(N,k,O,F){var z=O||0;F=F||"",Object.keys(N).forEach(function(B){var W=N[B];if(c.indexOf(B)===-1){var J=(F?F+".":"")+B;k(W,B,N,z,J),!H.isValObject(W)&&a(W)&&B!=="impliedEdits"&&H.crawl(W,k,z+1,J)}})},H.isValObject=function(N){return N&&N.valType!==void 0},H.findArrayAttributes=function(N){var k=[],O=[],F=[],z,B;function W(Z,ie,X,Q){O=O.slice(0,Q).concat([ie]),F=F.slice(0,Q).concat([Z&&Z._isLinkedToArray]);var oe=Z&&(Z.valType==="data_array"||Z.arrayOk===!0)&&!(O[Q-1]==="colorbar"&&(ie==="ticktext"||ie==="tickvals"));oe&&J(z,0,"")}function J(Z,ie,X){var Q=Z[O[ie]],oe=X+O[ie];if(ie===O.length-1)n(Q)&&k.push(B+oe);else if(F[ie]){if(Array.isArray(Q))for(var Y=0;Y=W.length)return!1;z=(m.transformsRegistry[W[J].type]||{}).attributes,B=z&&z[k[2]],F=3}else{var re=N._module;if(re||(re=(m.modules[N.type||s.type.dflt]||{})._module),!re)return!1;if(z=re.attributes,B=z&&z[O],!B){var ne=re.basePlotModule;ne&&ne.attributes&&(B=ne.attributes[O])}B||(B=s[O])}return d(B,k,F)},H.getLayoutValObject=function(N,k){var O=i(N,k[0]);return d(O,k,1)};function i(N,k){var O,F,z,B,W=N._basePlotModules;if(W){var J;for(O=0;O=B.length)return!1;if(N.dimensions===2){if(O++,k.length===O)return N;var W=k[O];if(!x(W))return!1;N=B[z][W]}else N=B[z]}else N=B}}return N}function x(N){return N===Math.round(N)&&N>=0}function w(N){var k,O;k=m.modules[N]._module,O=k.basePlotModule;var F={};F.type=null;var z=t({},s),B=t({},k.attributes);H.crawl(B,function(re,ne,le,$,Z){f(z,Z).set(void 0),re===void 0&&f(B,Z).set(void 0)}),t(F,z),m.traceIs(N,"noOpacity")&&delete F.opacity,m.traceIs(N,"showLegend")||(delete F.showlegend,delete F.legendgroup),m.traceIs(N,"noHover")&&(delete F.hoverinfo,delete F.hoverlabel),k.selectPoints||delete F.selectedpoints,t(F,B),O.attributes&&t(F,O.attributes),F.type=N;var W={meta:k.meta||{},categories:k.categories||{},animatable:!!k.animatable,type:N,attributes:A(F)};if(k.layoutAttributes){var J={};t(J,k.layoutAttributes),W.layoutAttributes=A(J)}return k.animatable||H.crawl(W,function(re){H.isValObject(re)&&"anim"in re&&delete re.anim}),W}function C(){var N={},k,O;t(N,L);for(k in m.subplotsRegistry)if(O=m.subplotsRegistry[k],!!O.layoutAttributes)if(Array.isArray(O.attr))for(var F=0;F=a&&(t._input||{})._templateitemname;f&&(n=a);var u=r+"["+n+"]",l;function g(){l={},f&&(l[u]={},l[u][s]=f)}g();function h(d,x){l[d]=x}function T(d,x){f?m.nestedProperty(l[u],d).set(x):l[u+"."+d]=x}function c(){var d=l;return g(),d}function i(d,x){d&&T(d,x);var w=c();for(var C in w)m.nestedProperty(p,C).set(w[C])}return{modifyBase:h,modifyItem:T,getUpdateObj:c,applyUpdate:i}}},39172:function(G,H,e){var m=e(33428),P=e(24040),s=e(7316),L=e(3400),S=e(72736),v=e(73696),p=e(76308),r=e(43616),t=e(81668),a=e(45460),n=e(54460),f=e(84284),u=e(71888),l=u.enforce,g=u.clean,h=e(19280).doAutoRange,T="start",c="middle",i="end";H.layoutStyles=function(O){return L.syncOrAsync([s.doAutoMargin,x],O)};function d(O,F,z){for(var B=0;B=O[1]||W[1]<=O[0])&&J[0]F[0])return!0}return!1}function x(O){var F=O._fullLayout,z=F._size,B=z.p,W=n.list(O,"",!0),J,re,ne,le,$,Z;if(F._paperdiv.style({width:O._context.responsive&&F.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":F.width+"px",height:O._context.responsive&&F.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":F.height+"px"}).selectAll(".main-svg").call(r.setSize,F.width,F.height),O._context.setBackground(O,F.paper_bgcolor),H.drawMainTitle(O),a.manage(O),!F._has("cartesian"))return s.previousPromises(O);function ie(Pe,je,Ce){var he=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(je){if(Ce==="top")return je._offset-B-he}else return z.t+z.h*(1-(Pe.position||0))+he%1;return je._offset+je._length+B+he}if(je){if(Ce==="right")return je._offset+je._length+B+he}else return z.l+z.w*(Pe.position||0)+he%1;return je._offset-B-he}for(J=0;J0){M(O,J,$,le),ne.attr({x:re,y:J,"text-anchor":B,dy:D(F.yanchor)}).call(S.positionText,re,J);var Z=(F.text.match(S.BR_TAG_ALL)||[]).length;if(Z){var ie=f.LINE_SPACING*Z+f.MID_SHIFT;F.y===0&&(ie=-ie),ne.selectAll(".line").each(function(){var X=+this.getAttribute("dy").slice(0,-2)-ie+"em";this.setAttribute("dy",X)})}}}};function E(O,F,z,B,W){var J=F.yref==="paper"?O._fullLayout._size.h:O._fullLayout.height,re=L.isTopAnchor(F)?B:B-W,ne=z==="b"?J-re:re;return L.isTopAnchor(F)&&z==="t"||L.isBottomAnchor(F)&&z==="b"?!1:ne.5?"t":"b",re=O._fullLayout.margin[J],ne=0;return F.yref==="paper"?ne=z+F.pad.t+F.pad.b:F.yref==="container"&&(ne=A(J,B,W,O._fullLayout.height,z)+F.pad.t+F.pad.b),ne>re?ne:0}function M(O,F,z,B){var W="title.automargin",J=O._fullLayout.title,re=J.y>.5?"t":"b",ne={x:J.x,y:J.y,t:0,b:0},le={};J.yref==="paper"&&E(O,J,re,F,B)?ne[re]=z:J.yref==="container"&&(le[re]=z,O._fullLayout._reservedMargin[W]=le),s.allowAutoMargin(O,W),s.autoMargin(O,W,ne)}function b(O,F){var z=O.title,B=O._size,W=0;switch(F===T?W=z.pad.l:F===i&&(W=-z.pad.r),z.xref){case"paper":return B.l+B.w*z.x+W;case"container":default:return O.width*z.x+W}}function I(O,F){var z=O.title,B=O._size,W=0;if(F==="0em"||!F?W=-z.pad.b:F===f.CAP_SHIFT+"em"&&(W=z.pad.t),z.y==="auto")return B.t/2;switch(z.yref){case"paper":return B.t+B.h-B.h*z.y+W;case"container":default:return O.height-O.height*z.y+W}}function D(O){return O==="top"?f.CAP_SHIFT+.3+"em":O==="bottom"?"-0.3em":f.MID_SHIFT+"em"}function N(O){var F=O.title,z=c;return L.isRightAnchor(F)?z=i:L.isLeftAnchor(F)&&(z=T),z}function k(O){var F=O.title,z="0em";return L.isTopAnchor(F)?z=f.CAP_SHIFT+"em":L.isMiddleAnchor(F)&&(z=f.MID_SHIFT+"em"),z}H.doTraceStyle=function(O){var F=O.calcdata,z=[],B;for(B=0;Bk?w.push({code:"unused",traceType:b,templateCount:N,dataCount:k}):k>N&&w.push({code:"reused",traceType:b,templateCount:N,dataCount:k})}}function O(F,z){for(var B in F)if(B.charAt(0)!=="_"){var W=F[B],J=u(F,B,z);P(W)?(Array.isArray(F)&&W._template===!1&&W.templateitemname&&w.push({code:"missing",path:J,templateitemname:W.templateitemname}),O(W,J)):Array.isArray(W)&&l(W)&&O(W,J)}}if(O({data:y,layout:C},""),w.length)return w.map(g)};function l(h){for(var T=0;T1&&w.push(f("object","layout"))),P.supplyDefaults(C);for(var A=C._fullData,o=y.length,M=0;Mb.length&&x.push(f("unused",w,o.concat(b.length)));var F=b.length,z=Array.isArray(O);z&&(F=Math.min(F,O.length));var B,W,J,re,ne;if(I.dimensions===2)for(W=0;Wb[W].length&&x.push(f("unused",w,o.concat(W,b[W].length)));var le=b[W].length;for(B=0;B<(z?Math.min(le,O[W].length):le);B++)J=z?O[W][B]:O,re=M[W][B],ne=b[W][B],m.validate(re,J)?ne!==re&&ne!==+re&&x.push(f("dynamic",w,o.concat(W,B),re,ne)):x.push(f("value",w,o.concat(W,B),re))}else x.push(f("array",w,o.concat(W),M[W]));else for(W=0;W0&&Math.round(g)===g)l=g;else return{vals:n}}for(var h=t.calendar,T=f==="start",c=f==="end",i=r[a+"period0"],d=s(i,h)||0,x=[],w=[],C=[],y=n.length,E=0;EA;)b=L(b,-l,h);for(;b<=A;)b=L(b,l,h);M=L(b,-l,h)}else{for(o=Math.round((A-d)/u),b=d+o*u;b>A;)b-=u;for(;b<=A;)b+=u;M=b-u}x[E]=T?M:c?b:(M+b)/2,w[E]=M,C[E]=b}return{vals:x,starts:w,ends:C}}},26720:function(G){G.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(G,H,e){var m=e(33428),P=e(38248),s=e(3400),L=e(39032).FP_SAFE,S=e(24040),v=e(43616),p=e(79811),r=p.getFromId,t=p.isLinked;G.exports={applyAutorangeOptions:o,getAutoRange:a,makePadFn:f,doAutoRange:h,findExtremes:T,concatExtremes:g};function a(M,b){var I,D,N=[],k=M._fullLayout,O=f(k,b,0),F=f(k,b,1),z=g(M,b),B=z.min,W=z.max;if(B.length===0||W.length===0)return s.simpleMap(b.range,b.r2l);var J=B[0].val,re=W[0].val;for(I=1;I0&&(ge=Q-O(j)-F(se),ge>oe?be/ge>Y&&(te=j,fe=se,Y=be/ge):be/Q>Y&&(te={val:j.val,nopad:1},fe={val:se.val,nopad:1},Y=be/Q));function xe(Re,Se){return Math.max(Re,F(Se))}if(J===re){var _e=J-1,De=J+1;if(ie)if(J===0)N=[0,1];else{var Fe=(J>0?W:B).reduce(xe,0),Te=J/(1-Math.min(.5,Fe/Q));N=J>0?[0,Te]:[Te,0]}else X?N=[Math.max(0,_e),Math.max(1,De)]:N=[_e,De]}else ie?(te.val>=0&&(te={val:0,nopad:1}),fe.val<=0&&(fe={val:0,nopad:1})):X&&(te.val-Y*O(te)<0&&(te={val:0,nopad:1}),fe.val<=0&&(fe={val:1,nopad:1})),Y=(fe.val-te.val-n(b,j.val,se.val))/(Q-O(te)-F(fe)),N=[te.val-Y*O(te),fe.val+Y*F(fe)];return N=o(N,b),b.limitRange&&b.limitRange(),le&&N.reverse(),s.simpleMap(N,b.l2r||Number)}function n(M,b,I){var D=0;if(M.rangebreaks)for(var N=M.locateBreaks(b,I),k=0;k0?I.ppadplus:I.ppadminus)||I.ppad||0),j=oe((M._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),se=oe(I.vpadplus||I.vpad),te=oe(I.vpadminus||I.vpad);if(!B){if(X=1/0,Q=-1/0,z)for(J=0;J0&&(X=re),re>Q&&re-L&&(X=re),re>Q&&re=be;J--)ge(J);return{min:D,max:N,opts:I}}function c(M,b,I,D){d(M,b,I,D,w)}function i(M,b,I,D){d(M,b,I,D,C)}function d(M,b,I,D,N){for(var k=D.tozero,O=D.extrapad,F=!0,z=0;z=I&&(B.extrapad||!O)){F=!1;break}else N(b,B.val)&&B.pad<=I&&(O||!B.extrapad)&&(M.splice(z,1),z--)}if(F){var W=k&&b===0;M.push({val:b,pad:W?0:I,extrapad:W?!1:O})}}function x(M){return P(M)&&Math.abs(M)=b}function y(M,b){var I=b.autorangeoptions;return I&&I.minallowed!==void 0&&A(b,I.minallowed,I.maxallowed)?I.minallowed:I&&I.clipmin!==void 0&&A(b,I.clipmin,I.clipmax)?Math.max(M,b.d2l(I.clipmin)):M}function E(M,b){var I=b.autorangeoptions;return I&&I.maxallowed!==void 0&&A(b,I.minallowed,I.maxallowed)?I.maxallowed:I&&I.clipmax!==void 0&&A(b,I.clipmin,I.clipmax)?Math.min(M,b.d2l(I.clipmax)):M}function A(M,b,I){return b!==void 0&&I!==void 0?(b=M.d2l(b),I=M.d2l(I),b=z&&(k=z,I=z),O<=z&&(O=z,D=z)}}return I=y(I,b),D=E(D,b),[I,D]}},76808:function(G){G.exports=function(e,m,P){var s,L;if(P){var S=m==="reversed"||m==="min reversed"||m==="max reversed";s=P[S?1:0],L=P[S?0:1]}var v=e("autorangeoptions.minallowed",L===null?s:void 0),p=e("autorangeoptions.maxallowed",s===null?L:void 0);v===void 0&&e("autorangeoptions.clipmin"),p===void 0&&e("autorangeoptions.clipmax"),e("autorangeoptions.include")}},54460:function(G,H,e){var m=e(33428),P=e(38248),s=e(7316),L=e(24040),S=e(3400),v=S.strTranslate,p=e(72736),r=e(81668),t=e(76308),a=e(43616),n=e(94724),f=e(98728),u=e(39032),l=u.ONEMAXYEAR,g=u.ONEAVGYEAR,h=u.ONEMINYEAR,T=u.ONEMAXQUARTER,c=u.ONEAVGQUARTER,i=u.ONEMINQUARTER,d=u.ONEMAXMONTH,x=u.ONEAVGMONTH,w=u.ONEMINMONTH,C=u.ONEWEEK,y=u.ONEDAY,E=y/2,A=u.ONEHOUR,o=u.ONEMIN,M=u.ONESEC,b=u.MINUS_SIGN,I=u.BADNUM,D={K:"zeroline"},N={K:"gridline",L:"path"},k={K:"minor-gridline",L:"path"},O={K:"tick",L:"path"},F={K:"tick",L:"text"},z={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},B=e(84284),W=B.MID_SHIFT,J=B.CAP_SHIFT,re=B.LINE_SPACING,ne=B.OPPOSITE_SIDE,le=3,$=G.exports={};$.setConvert=e(78344);var Z=e(52976),ie=e(79811),X=ie.idSort,Q=ie.isLinked;$.id2name=ie.id2name,$.name2id=ie.name2id,$.cleanId=ie.cleanId,$.list=ie.list,$.listIds=ie.listIds,$.getFromId=ie.getFromId,$.getFromTrace=ie.getFromTrace;var oe=e(19280);$.getAutoRange=oe.getAutoRange,$.findExtremes=oe.findExtremes;var Y=1e-4;function j(Ye){var Ue=(Ye[1]-Ye[0])*Y;return[Ye[0]-Ue,Ye[1]+Ue]}$.coerceRef=function(Ye,Ue,zt,Dt,$t,sr){var cr=Dt.charAt(Dt.length-1),tr=zt._fullLayout._subplots[cr+"axis"],Nt=Dt+"ref",ir={};return $t||($t=tr[0]||(typeof sr=="string"?sr:sr[0])),sr||(sr=$t),tr=tr.concat(tr.map(function(hr){return hr+" domain"})),ir[Nt]={valType:"enumerated",values:tr.concat(sr?typeof sr=="string"?[sr]:sr:[]),dflt:$t},S.coerce(Ye,Ue,ir,Nt)},$.getRefType=function(Ye){return Ye===void 0?Ye:Ye==="paper"?"paper":Ye==="pixel"?"pixel":/( domain)$/.test(Ye)?"domain":"range"},$.coercePosition=function(Ye,Ue,zt,Dt,$t,sr){var cr,tr,Nt=$.getRefType(Dt);if(Nt!=="range")cr=S.ensureNumber,tr=zt($t,sr);else{var ir=$.getFromId(Ue,Dt);sr=ir.fraction2r(sr),tr=zt($t,sr),cr=ir.cleanPos}Ye[$t]=cr(tr)},$.cleanPosition=function(Ye,Ue,zt){var Dt=zt==="paper"||zt==="pixel"?S.ensureNumber:$.getFromId(Ue,zt).cleanPos;return Dt(Ye)},$.redrawComponents=function(Ye,Ue){Ue=Ue||$.listIds(Ye);var zt=Ye._fullLayout;function Dt($t,sr,cr,tr){for(var Nt=L.getComponentMethod($t,sr),ir={},hr=0;hr2e-6||((zt-Ye._forceTick0)/Ye._minDtick%1+1.000001)%1>2e-6)&&(Ye._minDtick=0))},$.saveRangeInitial=function(Ye,Ue){for(var zt=$.list(Ye,"",!0),Dt=!1,$t=0;$txr*.3||ir(Dt)||ir($t))){var vr=zt.dtick/2;Ye+=Ye+vrcr){var tr=Number(zt.substr(1));sr.exactYears>cr&&tr%12===0?Ye=$.tickIncrement(Ye,"M6","reverse")+y*1.5:sr.exactMonths>cr?Ye=$.tickIncrement(Ye,"M1","reverse")+y*15.5:Ye-=E;var Nt=$.tickIncrement(Ye,zt);if(Nt<=Dt)return Nt}return Ye}$.prepMinorTicks=function(Ye,Ue,zt){if(!Ue.minor.dtick){delete Ye.dtick;var Dt=Ue.dtick&&P(Ue._tmin),$t;if(Dt){var sr=$.tickIncrement(Ue._tmin,Ue.dtick,!0);$t=[Ue._tmin,sr*.99+Ue._tmin*.01]}else{var cr=S.simpleMap(Ue.range,Ue.r2l);$t=[cr[0],.8*cr[0]+.2*cr[1]]}if(Ye.range=S.simpleMap($t,Ue.l2r),Ye._isMinor=!0,$.prepTicks(Ye,zt),Dt){var tr=P(Ue.dtick),Nt=P(Ye.dtick),ir=tr?Ue.dtick:+Ue.dtick.substring(1),hr=Nt?Ye.dtick:+Ye.dtick.substring(1);tr&&Nt?xe(ir,hr)?ir===2*C&&hr===2*y&&(Ye.dtick=C):ir===2*C&&hr===3*y?Ye.dtick=C:ir===C&&!(Ue._input.minor||{}).nticks?Ye.dtick=y:_e(ir/hr,2.5)?Ye.dtick=ir/2:Ye.dtick=ir:String(Ue.dtick).charAt(0)==="M"?Nt?Ye.dtick="M1":xe(ir,hr)?ir>=12&&hr===2&&(Ye.dtick="M3"):Ye.dtick=Ue.dtick:String(Ye.dtick).charAt(0)==="L"?String(Ue.dtick).charAt(0)==="L"?xe(ir,hr)||(Ye.dtick=_e(ir/hr,2.5)?Ue.dtick/2:Ue.dtick):Ye.dtick="D1":Ye.dtick==="D2"&&+Ue.dtick>1&&(Ye.dtick=1)}Ye.range=Ue.range}Ue.minor._tick0Init===void 0&&(Ye.tick0=Ue.tick0)};function xe(Ye,Ue){return Math.abs((Ye/Ue+.5)%1-.5)<.001}function _e(Ye,Ue){return Math.abs(Ye/Ue-1)<.001}$.prepTicks=function(Ye,Ue){var zt=S.simpleMap(Ye.range,Ye.r2l,void 0,void 0,Ue);if(Ye.tickmode==="auto"||!Ye.dtick){var Dt=Ye.nticks,$t;Dt||(Ye.type==="category"||Ye.type==="multicategory"?($t=Ye.tickfont?S.bigFont(Ye.tickfont.size||12):15,Dt=Ye._length/$t):($t=Ye._id.charAt(0)==="y"?40:80,Dt=S.constrain(Ye._length/$t,4,9)+1),Ye._name==="radialaxis"&&(Dt*=2)),Ye.minor&&Ye.minor.tickmode!=="array"||Ye.tickmode==="array"&&(Dt*=100),Ye._roughDTick=Math.abs(zt[1]-zt[0])/Dt,$.autoTicks(Ye,Ye._roughDTick),Ye._minDtick>0&&Ye.dtick0?(sr=Dt-1,cr=Dt):(sr=Dt,cr=Dt);var tr=Ye[sr].value,Nt=Ye[cr].value,ir=Math.abs(Nt-tr),hr=zt||ir,xr=0;hr>=h?ir>=h&&ir<=l?xr=ir:xr=g:zt===c&&hr>=i?ir>=i&&ir<=T?xr=ir:xr=c:hr>=w?ir>=w&&ir<=d?xr=ir:xr=x:zt===C&&hr>=C?xr=C:hr>=y?xr=y:zt===E&&hr>=E?xr=E:zt===A&&hr>=A&&(xr=A);var vr;xr>=ir&&(xr=ir,vr=!0);var Hr=$t+xr;if(Ue.rangebreaks&&xr>0){for(var _r=84,Dr=0,an=0;an<_r;an++){var tn=(an+.5)/_r;Ue.maskBreaks($t*(1-tn)+tn*Hr)!==I&&Dr++}xr*=Dr/_r,xr||(Ye[Dt].drop=!0),vr&&ir>C&&(xr=ir)}(xr>0||Dt===0)&&(Ye[Dt].periodX=$t+xr/2)}}$.calcTicks=function(Ue,zt){for(var Dt=Ue.type,$t=Ue.calendar,sr=Ue.ticklabelstep,cr=Ue.ticklabelmode==="period",tr=S.simpleMap(Ue.range,Ue.r2l,void 0,void 0,zt),Nt=tr[1]=(an?0:1);tn--){var Sn=!tn;tn?(Ue._dtickInit=Ue.dtick,Ue._tick0Init=Ue.tick0):(Ue.minor._dtickInit=Ue.minor.dtick,Ue.minor._tick0Init=Ue.minor.tick0);var Tn=tn?Ue:S.extendFlat({},Ue,Ue.minor);if(Sn?$.prepMinorTicks(Tn,Ue,zt):$.prepTicks(Tn,zt),Tn.tickmode==="array"){tn?(_r=[],vr=Ie(Ue,!Sn)):(Dr=[],Hr=Ie(Ue,!Sn));continue}if(Tn.tickmode==="sync"){_r=[],vr=Se(Ue);continue}var Tr=j(tr),zr=Tr[0],Yr=Tr[1],Or=P(Tn.dtick),ln=Dt==="log"&&!(Or||Tn.dtick.charAt(0)==="L"),fn=$.tickFirst(Tn,zt);if(tn){if(Ue._tmin=fn,fn=Yr:Pn<=Yr;Pn=$.tickIncrement(Pn,ya,Nt,$t)){if(tn&&Vn++,Tn.rangebreaks&&!Nt){if(Pn=hr)break}if(_r.length>xr||Pn===Mn)break;Mn=Pn;var wa={value:Pn};tn?(ln&&Pn!==(Pn|0)&&(wa.simpleLabel=!0),sr>1&&Vn%sr&&(wa.skipLabel=!0),_r.push(wa)):(wa.minor=!0,Dr.push(wa))}}if(an){var Wn=Ue.minor.ticks==="inside"&&Ue.ticks==="outside"||Ue.minor.ticks==="outside"&&Ue.ticks==="inside";if(!Wn){for(var Qn=_r.map(function(gn){return gn.value}),mr=[],en=0;en-1;An--){if(_r[An].drop){_r.splice(An,1);continue}_r[An].value=Ut(_r[An].value,Ue);var Ia=Ue.c2p(_r[An].value);(Fn?ha>Ia-$n:hahr||Nrhr&&(Ar.periodX=hr),Nr$t&&vrg)Ue/=g,Dt=$t(10),Ye.dtick="M"+12*vt(Ue,Dt,Me);else if(sr>x)Ue/=x,Ye.dtick="M"+vt(Ue,1,Ve);else if(sr>y){if(Ye.dtick=vt(Ue,y,Ye._hasDayOfWeekBreaks?[1,2,7,14]:ot),!zt){var cr=$.getTickFormat(Ye),tr=Ye.ticklabelmode==="period";tr&&(Ye._rawTick0=Ye.tick0),/%[uVW]/.test(cr)?Ye.tick0=S.dateTick0(Ye.calendar,2):Ye.tick0=S.dateTick0(Ye.calendar,1),tr&&(Ye._dowTick0=Ye.tick0)}}else sr>A?Ye.dtick=vt(Ue,A,Ve):sr>o?Ye.dtick=vt(Ue,o,et):sr>M?Ye.dtick=vt(Ue,M,et):(Dt=$t(10),Ye.dtick=vt(Ue,Dt,Me))}else if(Ye.type==="log"){Ye.tick0=0;var Nt=S.simpleMap(Ye.range,Ye.r2l);if(Ye._isMinor&&(Ue*=1.5),Ue>.7)Ye.dtick=Math.ceil(Ue);else if(Math.abs(Nt[1]-Nt[0])<1){var ir=1.5*Math.abs((Nt[1]-Nt[0])/Ue);Ue=Math.abs(Math.pow(10,Nt[1])-Math.pow(10,Nt[0]))/ir,Dt=$t(10),Ye.dtick="L"+vt(Ue,Dt,Me)}else Ye.dtick=Ue>.3?"D2":"D1"}else Ye.type==="category"||Ye.type==="multicategory"?(Ye.tick0=0,Ye.dtick=Math.ceil(Math.max(Ue,1))):Bt(Ye)?(Ye.tick0=0,Dt=1,Ye.dtick=vt(Ue,Dt,ht)):(Ye.tick0=0,Dt=$t(10),Ye.dtick=vt(Ue,Dt,Me));if(Ye.dtick===0&&(Ye.dtick=1),!P(Ye.dtick)&&typeof Ye.dtick!="string"){var hr=Ye.dtick;throw Ye.dtick=1,"ax.dtick error: "+String(hr)}};function pt(Ye){var Ue=Ye.dtick;if(Ye._tickexponent=0,!P(Ue)&&typeof Ue!="string"&&(Ue=1),(Ye.type==="category"||Ye.type==="multicategory")&&(Ye._tickround=null),Ye.type==="date"){var zt=Ye.r2l(Ye.tick0),Dt=Ye.l2r(zt).replace(/(^-|i)/g,""),$t=Dt.length;if(String(Ue).charAt(0)==="M")$t>10||Dt.substr(5)!=="01-01"?Ye._tickround="d":Ye._tickround=+Ue.substr(1)%12===0?"y":"m";else if(Ue>=y&&$t<=10||Ue>=y*15)Ye._tickround="d";else if(Ue>=o&&$t<=16||Ue>=A)Ye._tickround="M";else if(Ue>=M&&$t<=19||Ue>=o)Ye._tickround="S";else{var sr=Ye.l2r(zt+Ue).replace(/^-/,"").length;Ye._tickround=Math.max($t,sr)-20,Ye._tickround<0&&(Ye._tickround=4)}}else if(P(Ue)||Ue.charAt(0)==="L"){var cr=Ye.range.map(Ye.r2d||Number);P(Ue)||(Ue=Number(Ue.substr(1))),Ye._tickround=2-Math.floor(Math.log(Ue)/Math.LN10+.01);var tr=Math.max(Math.abs(cr[0]),Math.abs(cr[1])),Nt=Math.floor(Math.log(tr)/Math.LN10+.01),ir=Ye.minexponent===void 0?3:Ye.minexponent;Math.abs(Nt)>ir&&(je(Ye.exponentformat)&&!Ce(Nt)?Ye._tickexponent=3*Math.round((Nt-1)/3):Ye._tickexponent=Nt)}else Ye._tickround=null}$.tickIncrement=function(Ye,Ue,zt,Dt){var $t=zt?-1:1;if(P(Ue))return S.increment(Ye,$t*Ue);var sr=Ue.charAt(0),cr=$t*Number(Ue.substr(1));if(sr==="M")return S.incrementMonth(Ye,cr,Dt);if(sr==="L")return Math.log(Math.pow(10,Ye)+cr)/Math.LN10;if(sr==="D"){var tr=Ue==="D2"?$e:Qe,Nt=Ye+$t*.01,ir=S.roundUp(S.mod(Nt,1),tr,zt);return Math.floor(Nt)+Math.log(m.round(Math.pow(10,ir),1))/Math.LN10}throw"unrecognized dtick "+String(Ue)},$.tickFirst=function(Ye,Ue){var zt=Ye.r2l||Number,Dt=S.simpleMap(Ye.range,zt,void 0,void 0,Ue),$t=Dt[1]=0&&tn<=Ye._length?an:null};if(sr&&S.isArrayOrTypedArray(Ye.ticktext)){var xr=S.simpleMap(Ye.range,Ye.r2l),vr=(Math.abs(xr[1]-xr[0])-(Ye._lBreaks||0))/1e4;for(ir=0;ir"+tr;else{var ir=Jt(Ye),hr=Ye._trueSide||Ye.side;(!ir&&hr==="top"||ir&&hr==="bottom")&&(cr+="
")}Ue.text=cr}function rt(Ye,Ue,zt,Dt,$t){var sr=Ye.dtick,cr=Ue.x,tr=Ye.tickformat,Nt=typeof sr=="string"&&sr.charAt(0);if($t==="never"&&($t=""),Dt&&Nt!=="L"&&(sr="L3",Nt="L"),tr||Nt==="L")Ue.text=he(Math.pow(10,cr),Ye,$t,Dt);else if(P(sr)||Nt==="D"&&S.mod(cr+.01,1)<.1){var ir=Math.round(cr),hr=Math.abs(ir),xr=Ye.exponentformat;xr==="power"||je(xr)&&Ce(ir)?(ir===0?Ue.text=1:ir===1?Ue.text="10":Ue.text="10"+(ir>1?"":b)+hr+"",Ue.fontSize*=1.25):(xr==="e"||xr==="E")&&hr>2?Ue.text="1"+xr+(ir>0?"+":b)+hr:(Ue.text=he(Math.pow(10,cr),Ye,"","fakehover"),sr==="D1"&&Ye._id.charAt(0)==="y"&&(Ue.dy-=Ue.fontSize/6))}else if(Nt==="D")Ue.text=String(Math.round(Math.pow(10,S.mod(cr,1)))),Ue.fontSize*=.75;else throw"unrecognized dtick "+String(sr);if(Ye.dtick==="D1"){var vr=String(Ue.text).charAt(0);(vr==="0"||vr==="1")&&(Ye._id.charAt(0)==="y"?Ue.dx-=Ue.fontSize/4:(Ue.dy+=Ue.fontSize/2,Ue.dx+=(Ye.range[1]>Ye.range[0]?1:-1)*Ue.fontSize*(cr<0?.5:.25)))}}function ze(Ye,Ue){var zt=Ye._categories[Math.round(Ue.x)];zt===void 0&&(zt=""),Ue.text=String(zt)}function He(Ye,Ue,zt){var Dt=Math.round(Ue.x),$t=Ye._categories[Dt]||[],sr=$t[1]===void 0?"":String($t[1]),cr=$t[0]===void 0?"":String($t[0]);zt?Ue.text=cr+" - "+sr:(Ue.text=sr,Ue.text2=cr)}function We(Ye,Ue,zt,Dt,$t){$t==="never"?$t="":Ye.showexponent==="all"&&Math.abs(Ue.x/Ye.dtick)<1e-6&&($t="hide"),Ue.text=he(Ue.x,Ye,$t,Dt)}function Ge(Ye,Ue,zt,Dt,$t){if(Ye.thetaunit==="radians"&&!zt){var sr=Ue.x/180;if(sr===0)Ue.text="0";else{var cr=Le(sr);if(cr[1]>=100)Ue.text=he(S.deg2rad(Ue.x),Ye,$t,Dt);else{var tr=Ue.x<0;cr[1]===1?cr[0]===1?Ue.text="π":Ue.text=cr[0]+"π":Ue.text=["",cr[0],"","⁄","",cr[1],"","π"].join(""),tr&&(Ue.text=b+Ue.text)}}}else Ue.text=he(Ue.x,Ye,$t,Dt)}function Le(Ye){function Ue(tr,Nt){return Math.abs(tr-Nt)<=1e-6}function zt(tr,Nt){return Ue(Nt,0)?tr:zt(Nt,tr%Nt)}function Dt(tr){for(var Nt=1;!Ue(Math.round(tr*Nt)/Nt,tr);)Nt*=10;return Nt}var $t=Dt(Ye),sr=Ye*$t,cr=Math.abs(zt(sr,$t));return[Math.round(sr/cr),Math.round($t/cr)]}var Pe=["f","p","n","μ","m","","k","M","G","T"];function je(Ye){return Ye==="SI"||Ye==="B"}function Ce(Ye){return Ye>14||Ye<-15}function he(Ye,Ue,zt,Dt){var $t=Ye<0,sr=Ue._tickround,cr=zt||Ue.exponentformat||"B",tr=Ue._tickexponent,Nt=$.getTickFormat(Ue),ir=Ue.separatethousands;if(Dt){var hr={exponentformat:cr,minexponent:Ue.minexponent,dtick:Ue.showexponent==="none"?Ue.dtick:P(Ye)&&Math.abs(Ye)||1,range:Ue.showexponent==="none"?Ue.range.map(Ue.r2d):[0,Ye||1]};pt(hr),sr=(Number(hr._tickround)||0)+4,tr=hr._tickexponent,Ue.hoverformat&&(Nt=Ue.hoverformat)}if(Nt)return Ue._numFormat(Nt)(Ye).replace(/-/g,b);var xr=Math.pow(10,-sr)/2;if(cr==="none"&&(tr=0),Ye=Math.abs(Ye),Ye"+_r+"":cr==="B"&&tr===9?Ye+="B":je(cr)&&(Ye+=Pe[tr/3+5])}return $t?b+Ye:Ye}$.getTickFormat=function(Ye){var Ue;function zt(Nt){return typeof Nt!="string"?Nt:Number(Nt.replace("M",""))*x}function Dt(Nt,ir){var hr=["L","D"];if(typeof Nt==typeof ir){if(typeof Nt=="number")return Nt-ir;var xr=hr.indexOf(Nt.charAt(0)),vr=hr.indexOf(ir.charAt(0));return xr===vr?Number(Nt.replace(/(L|D)/g,""))-Number(ir.replace(/(L|D)/g,"")):xr-vr}else return typeof Nt=="number"?1:-1}function $t(Nt,ir,hr){var xr=hr||function(_r){return _r},vr=ir[0],Hr=ir[1];return(!vr&&typeof vr!="number"||xr(vr)<=xr(Nt))&&(!Hr&&typeof Hr!="number"||xr(Hr)>=xr(Nt))}function sr(Nt,ir){var hr=ir[0]===null,xr=ir[1]===null,vr=Dt(Nt,ir[0])>=0,Hr=Dt(Nt,ir[1])<=0;return(hr||vr)&&(xr||Hr)}var cr,tr;if(Ye.tickformatstops&&Ye.tickformatstops.length>0)switch(Ye.type){case"date":case"linear":{for(Ue=0;Ue=0&&$t.unshift($t.splice(hr,1).shift())}});var tr={false:{left:0,right:0}};return S.syncOrAsync($t.map(function(Nt){return function(){if(Nt){var ir=$.getFromId(Ye,Nt);zt||(zt={}),zt.axShifts=tr,zt.overlayingShiftedAx=cr;var hr=$.drawOne(Ye,ir,zt);return ir._shiftPusher&&fr(ir,ir._fullDepth||0,tr,!0),ir._r=ir.range.slice(),ir._rl=S.simpleMap(ir._r,ir.r2l),hr}}}))},$.drawOne=function(Ye,Ue,zt){zt=zt||{};var Dt=zt.axShifts||{},$t=zt.overlayingShiftedAx||[],sr,cr,tr;Ue.setScale();var Nt=Ye._fullLayout,ir=Ue._id,hr=ir.charAt(0),xr=$.counterLetter(ir),vr=Nt._plots[Ue._mainSubplot];if(!vr)return;if(Ue._shiftPusher=Ue.autoshift||$t.indexOf(Ue._id)!==-1||$t.indexOf(Ue.overlaying)!==-1,Ue._shiftPusher&Ue.anchor==="free"){var Hr=Ue.linewidth/2||0;Ue.ticks==="inside"&&(Hr+=Ue.ticklen),fr(Ue,Hr,Dt,!0),fr(Ue,Ue.shift||0,Dt,!1)}(zt.skipTitle!==!0||Ue._shift===void 0)&&(Ue._shift=dr(Ue,Dt));var _r=vr[hr+"axislayer"],Dr=Ue._mainLinePosition,an=Dr+=Ue._shift,tn=Ue._mainMirrorPosition,Sn=Ue._vals=$.calcTicks(Ue),Tn=[Ue.mirror,an,tn].join("_");for(sr=0;sr0?En.bottom-wn:0,zn))));var sa=0,ga=0;if(Ue._shiftPusher&&(sa=Math.max(zn,En.height>0?Gr==="l"?wn-En.left:En.right-wn:0),Ue.title.text!==Nt._dfltTitle[hr]&&(ga=(Ue._titleStandoff||0)+(Ue._titleScoot||0),Gr==="l"&&(ga+=Xt(Ue))),Ue._fullDepth=Math.max(sa,ga)),Ue.automargin){Un={x:0,y:0,r:0,l:0,t:0,b:0};var _a=[0,1],gi=typeof Ue._shift=="number"?Ue._shift:0;if(hr==="x"){if(Gr==="b"?Un[Gr]=Ue._depth:(Un[Gr]=Ue._depth=Math.max(En.width>0?wn-En.top:0,zn),_a.reverse()),En.width>0){var ai=En.right-(Ue._offset+Ue._length);ai>0&&(Un.xr=1,Un.r=ai);var ko=Ue._offset-En.left;ko>0&&(Un.xl=0,Un.l=ko)}}else if(Gr==="l"?(Ue._depth=Math.max(En.height>0?wn-En.left:0,zn),Un[Gr]=Ue._depth-gi):(Ue._depth=Math.max(En.height>0?En.right-wn:0,zn),Un[Gr]=Ue._depth+gi,_a.reverse()),En.height>0){var Co=En.bottom-(Ue._offset+Ue._length);Co>0&&(Un.yb=0,Un.b=Co);var to=Ue._offset-En.top;to>0&&(Un.yt=1,Un.t=to)}Un[xr]=Ue.anchor==="free"?Ue.position:Ue._anchorAxis.domain[_a[0]],Ue.title.text!==Nt._dfltTitle[hr]&&(Un[Gr]+=Xt(Ue)+(Ue.title.standoff||0)),Ue.mirror&&Ue.anchor!=="free"&&(Nn={x:0,y:0,r:0,l:0,t:0,b:0},Nn[qr]=Ue.linewidth,Ue.mirror&&Ue.mirror!==!0&&(Nn[qr]+=zn),Ue.mirror===!0||Ue.mirror==="ticks"?Nn[xr]=Ue._anchorAxis.domain[_a[1]]:(Ue.mirror==="all"||Ue.mirror==="allticks")&&(Nn[xr]=[Ue._counterDomainMin,Ue._counterDomainMax][_a[1]]))}Zr&&(va=L.getComponentMethod("rangeslider","autoMarginOpts")(Ye,Ue)),typeof Ue.automargin=="string"&&(me(Un,Ue.automargin),me(Nn,Ue.automargin)),s.autoMargin(Ye,Ot(Ue),Un),s.autoMargin(Ye,ut(Ue),Nn),s.autoMargin(Ye,at(Ue),va)}),S.syncOrAsync(un)}};function me(Ye,Ue){if(Ye){var zt=Object.keys(z).reduce(function(Dt,$t){return Ue.indexOf($t)!==-1&&z[$t].forEach(function(sr){Dt[sr]=1}),Dt},{});Object.keys(Ye).forEach(function(Dt){zt[Dt]||(Dt.length===1?Ye[Dt]=0:delete Ye[Dt])})}}function Ne(Ye,Ue){var zt=[],Dt,$t=function(sr,cr){var tr=sr.xbnd[cr];tr!==null&&zt.push(S.extendFlat({},sr,{x:tr}))};if(Ue.length){for(Dt=0;Dt60?-.5*ya:Ye.side==="top"!==hr?-ya:0};else if(Or==="y"){if(fn=!hr&&Yr==="left"||hr&&Yr==="right",Tr=fn?1:-1,hr&&(Tr*=-1),tn=vr,Sn=Hr*Tr,Tn=0,!hr&&Math.abs(ln)===90&&(ln===-90&&Yr==="left"||ln===90&&Yr==="right"?Tn=J:Tn=.5),hr){var Mn=P(ln)?+ln:0;if(Mn!==0){var Pn=S.deg2rad(Mn);zr=Math.abs(Math.sin(Pn))*J*Tr,Tn=0}}an.xFn=function(Vn){return Vn.dx+Ue-(tn+Vn.fontSize*Tn)*Tr+zr*Vn.fontSize},an.yFn=function(Vn){return Vn.dy+Sn+Vn.fontSize*W},an.anchorFn=function(Vn,ia){return P(ia)&&Math.abs(ia)===90?"middle":fn?"end":"start"},an.heightFn=function(Vn,ia,ya){return Ye.side==="right"&&(ia*=-1),ia<-30?-ya:ia<30?-.5*ya:0}}return an};function Tt(Ye){return[Ye.text,Ye.x,Ye.axInfo,Ye.font,Ye.fontSize,Ye.fontColor].join("_")}$.drawTicks=function(Ye,Ue,zt){zt=zt||{};var Dt=Ue._id+"tick",$t=[].concat(Ue.minor&&Ue.minor.ticks?zt.vals.filter(function(cr){return cr.minor&&!cr.noTick}):[]).concat(Ue.ticks?zt.vals.filter(function(cr){return!cr.minor&&!cr.noTick}):[]),sr=zt.layer.selectAll("path."+Dt).data($t,Tt);sr.exit().remove(),sr.enter().append("path").classed(Dt,1).classed("ticks",1).classed("crisp",zt.crisp!==!1).each(function(cr){return t.stroke(m.select(this),cr.minor?Ue.minor.tickcolor:Ue.tickcolor)}).style("stroke-width",function(cr){return a.crispRound(Ye,cr.minor?Ue.minor.tickwidth:Ue.tickwidth,1)+"px"}).attr("d",zt.path).style("display",null),ur(Ue,[O]),sr.attr("transform",zt.transFn)},$.drawGrid=function(Ye,Ue,zt){if(zt=zt||{},Ue.tickmode!=="sync"){var Dt=Ue._id+"grid",$t=Ue.minor&&Ue.minor.showgrid,sr=$t?zt.vals.filter(function(tn){return tn.minor}):[],cr=Ue.showgrid?zt.vals.filter(function(tn){return!tn.minor}):[],tr=zt.counterAxis;if(tr&&$.shouldShowZeroLine(Ye,Ue,tr))for(var Nt=Ue.tickmode==="array",ir=0;ir=0;_r--){var Dr=_r?vr:Hr;if(Dr){var an=Dr.selectAll("path."+Dt).data(_r?cr:sr,Tt);an.exit().remove(),an.enter().append("path").classed(Dt,1).classed("crisp",zt.crisp!==!1),an.attr("transform",zt.transFn).attr("d",zt.path).each(function(tn){return t.stroke(m.select(this),tn.minor?Ue.minor.gridcolor:Ue.gridcolor||"#ddd")}).style("stroke-dasharray",function(tn){return a.dashStyle(tn.minor?Ue.minor.griddash:Ue.griddash,tn.minor?Ue.minor.gridwidth:Ue.gridwidth)}).style("stroke-width",function(tn){return(tn.minor?xr:Ue._gw)+"px"}).style("display",null),typeof zt.path=="function"&&an.attr("d",zt.path)}}ur(Ue,[N,k])}},$.drawZeroLine=function(Ye,Ue,zt){zt=zt||zt;var Dt=Ue._id+"zl",$t=$.shouldShowZeroLine(Ye,Ue,zt.counterAxis),sr=zt.layer.selectAll("path."+Dt).data($t?[{x:0,id:Ue._id}]:[]);sr.exit().remove(),sr.enter().append("path").classed(Dt,1).classed("zl",1).classed("crisp",zt.crisp!==!1).each(function(){zt.layer.selectAll("path").sort(function(cr,tr){return X(cr.id,tr.id)})}),sr.attr("transform",zt.transFn).attr("d",zt.path).call(t.stroke,Ue.zerolinecolor||t.defaultLine).style("stroke-width",a.crispRound(Ye,Ue.zerolinewidth,Ue._gw||1)+"px").style("display",null),ur(Ue,[D])},$.drawLabels=function(Ye,Ue,zt){zt=zt||{};var Dt=Ye._fullLayout,$t=Ue._id,sr=zt.cls||$t+"tick",cr=zt.vals.filter(function(mr){return mr.text}),tr=zt.labelFns,Nt=zt.secondary?0:Ue.tickangle,ir=(Ue._prevTickAngles||{})[sr],hr=zt.layer.selectAll("g."+sr).data(Ue.showticklabels?cr:[],Tt),xr=[];hr.enter().append("g").classed(sr,1).append("text").attr("text-anchor","middle").each(function(mr){var en=m.select(this),Jr=Ye._promises.length;en.call(p.positionText,tr.xFn(mr),tr.yFn(mr)).call(a.font,{family:mr.font,size:mr.fontSize,color:mr.fontColor,weight:mr.fontWeight,style:mr.fontStyle,variant:mr.fontVariant,textcase:mr.fontTextcase,lineposition:mr.fontLineposition,shadow:mr.fontShadow}).text(mr.text).call(p.convertToTspans,Ye),Ye._promises[Jr]?xr.push(Ye._promises.pop().then(function(){vr(en,Nt)})):vr(en,Nt)}),ur(Ue,[F]),hr.exit().remove(),zt.repositionOnUpdate&&hr.each(function(mr){m.select(this).select("text").call(p.positionText,tr.xFn(mr),tr.yFn(mr))});function vr(mr,en){mr.each(function(Jr){var vn=m.select(this),On=vn.select(".text-math-group"),bn=tr.anchorFn(Jr,en),An=zt.transFn.call(vn.node(),Jr)+(P(en)&&+en!=0?" rotate("+en+","+tr.xFn(Jr)+","+(tr.yFn(Jr)-Jr.fontSize/2)+")":""),Fn=p.lineCount(vn),$n=re*Jr.fontSize,ha=tr.heightFn(Jr,P(en)?+en:0,(Fn-1)*$n);if(ha&&(An+=v(0,ha)),On.empty()){var Ia=vn.select("text");Ia.attr({transform:An,"text-anchor":bn}),Ia.style("opacity",1),Ue._adjustTickLabelsOverflow&&Ue._adjustTickLabelsOverflow()}else{var Mr=a.bBox(On.node()).width,Fr=Mr*{end:-.5,start:.5}[bn];On.attr("transform",An+v(Fr,0))}})}Ue._adjustTickLabelsOverflow=function(){var mr=Ue.ticklabeloverflow;if(!(!mr||mr==="allow")){var en=mr.indexOf("hide")!==-1,Jr=Ue._id.charAt(0)==="x",vn=0,On=Jr?Ye._fullLayout.width:Ye._fullLayout.height;if(mr.indexOf("domain")!==-1){var bn=S.simpleMap(Ue.range,Ue.r2l);vn=Ue.l2p(bn[0])+Ue._offset,On=Ue.l2p(bn[1])+Ue._offset}var An=Math.min(vn,On),Fn=Math.max(vn,On),$n=Ue.side,ha=1/0,Ia=-1/0;hr.each(function(Nr){var mn=m.select(this),Rn=mn.select(".text-math-group");if(Rn.empty()){var gn=a.bBox(mn.node()),un=0;Jr?(gn.right>Fn||gn.leftFn||gn.top+(Ue.tickangle?0:Nr.fontSize/4)Ue["_visibleLabelMin_"+bn._id]?Nr.style("display","none"):Fn.K==="tick"&&!An&&Nr.style("display",null)})})})})},vr(hr,ir+1?ir:Nt);function Hr(){return xr.length&&Promise.all(xr)}var _r=null;function Dr(){if(vr(hr,Nt),cr.length&&Ue.autotickangles&&(Ue.type!=="log"||String(Ue.dtick).charAt(0)!=="D")){_r=Ue.autotickangles[0];var mr=0,en=[],Jr,vn=1;hr.each(function(En){mr=Math.max(mr,En.fontSize);var Un=Ue.l2p(En.x),Nn=yr(this),va=a.bBox(Nn.node());vn=Math.max(vn,p.lineCount(Nn)),en.push({top:0,bottom:10,height:10,left:Un-va.width/2,right:Un+va.width/2+2,width:va.width+2})});var On=(Ue.tickson==="boundaries"||Ue.showdividers)&&!zt.secondary,bn=cr.length,An=Math.abs((cr[bn-1].x-cr[0].x)*Ue._m)/(bn-1),Fn=On?An/2:An,$n=On?Ue.ticklen:mr*1.25*vn,ha=Math.sqrt(Math.pow(Fn,2)+Math.pow($n,2)),Ia=Fn/ha,Mr=Ue.autotickangles.map(function(En){return En*Math.PI/180}),Fr=Mr.find(function(En){return Math.abs(Math.cos(En))<=Ia});Fr===void 0&&(Fr=Mr.reduce(function(En,Un){return Math.abs(Math.cos(En))wa*ya&&(Pn=ya,ln[Or]=fn[Or]=Vn[Or])}var Wn=Math.abs(Pn-Mn);Wn-Tr>0?(Wn-=Tr,Tr*=1+Tr/Wn):Tr=0,Ue._id.charAt(0)!=="y"&&(Tr=-Tr),ln[Yr]=Sn.p2r(Sn.r2p(fn[Yr])+zr*Tr),Sn.autorange==="min"||Sn.autorange==="max reversed"?(ln[0]=null,Sn._rangeInitial0=void 0,Sn._rangeInitial1=void 0):(Sn.autorange==="max"||Sn.autorange==="min reversed")&&(ln[1]=null,Sn._rangeInitial0=void 0,Sn._rangeInitial1=void 0),Dt._insideTickLabelsUpdaterange[Sn._name+".range"]=ln}var Qn=S.syncOrAsync(an);return Qn&&Qn.then&&Ye._promises.push(Qn),Qn};function Rt(Ye,Ue,zt){var Dt=Ue._id+"divider",$t=zt.vals,sr=zt.layer.selectAll("path."+Dt).data($t,Tt);sr.exit().remove(),sr.enter().insert("path",":first-child").classed(Dt,1).classed("crisp",1).call(t.stroke,Ue.dividercolor).style("stroke-width",a.crispRound(Ye,Ue.dividerwidth,1)+"px"),sr.attr("transform",zt.transFn).attr("d",zt.path)}$.getPxPosition=function(Ye,Ue){var zt=Ye._fullLayout._size,Dt=Ue._id.charAt(0),$t=Ue.side,sr;if(Ue.anchor!=="free"?sr=Ue._anchorAxis:Dt==="x"?sr={_offset:zt.t+(1-(Ue.position||0))*zt.h,_length:0}:Dt==="y"&&(sr={_offset:zt.l+(Ue.position||0)*zt.w+Ue._shift,_length:0}),$t==="top"||$t==="left")return sr._offset;if($t==="bottom"||$t==="right")return sr._offset+sr._length};function Xt(Ye){var Ue=Ye.title.font.size,zt=(Ye.title.text.match(p.BR_TAG_ALL)||[]).length;return Ye.title.hasOwnProperty("standoff")?Ue*(J+zt*re):zt?Ue*(zt+1)*re:Ue}function gr(Ye,Ue){var zt=Ye._fullLayout,Dt=Ue._id,$t=Dt.charAt(0),sr=Ue.title.font.size,cr,tr=(Ue.title.text.match(p.BR_TAG_ALL)||[]).length;if(Ue.title.hasOwnProperty("standoff"))Ue.side==="bottom"||Ue.side==="right"?cr=Ue._depth+Ue.title.standoff+sr*J:(Ue.side==="top"||Ue.side==="left")&&(cr=Ue._depth+Ue.title.standoff+sr*(W+tr*re));else{var Nt=Jt(Ue);if(Ue.type==="multicategory")cr=Ue._depth;else{var ir=1.5*sr;Nt&&(ir=.5*sr,Ue.ticks==="outside"&&(ir+=Ue.ticklen)),cr=10+ir+(Ue.linewidth?Ue.linewidth-1:0)}Nt||($t==="x"?cr+=Ue.side==="top"?sr*(Ue.showticklabels?1:0):sr*(Ue.showticklabels?1.5:.5):cr+=Ue.side==="right"?sr*(Ue.showticklabels?1:.5):sr*(Ue.showticklabels?.5:0))}var hr=$.getPxPosition(Ye,Ue),xr,vr,Hr;$t==="x"?(vr=Ue._offset+Ue._length/2,Hr=Ue.side==="top"?hr-cr:hr+cr):(Hr=Ue._offset+Ue._length/2,vr=Ue.side==="right"?hr+cr:hr-cr,xr={rotate:"-90",offset:0});var _r;if(Ue.type!=="multicategory"){var Dr=Ue._selections[Ue._id+"tick"];if(_r={selection:Dr,side:Ue.side},Dr&&Dr.node()&&Dr.node().parentNode){var an=a.getTranslate(Dr.node().parentNode);_r.offsetLeft=an.x,_r.offsetTop=an.y}Ue.title.hasOwnProperty("standoff")&&(_r.pad=0)}return Ue._titleStandoff=cr,r.draw(Ye,Dt+"title",{propContainer:Ue,propName:Ue._name+".title.text",placeholder:zt._dfltTitle[$t],avoid:_r,transform:xr,attributes:{x:vr,y:Hr,"text-anchor":"middle"}})}$.shouldShowZeroLine=function(Ye,Ue,zt){var Dt=S.simpleMap(Ue.range,Ue.r2l);return Dt[0]*Dt[1]<=0&&Ue.zeroline&&(Ue.type==="linear"||Ue.type==="-")&&!(Ue.rangebreaks&&Ue.maskBreaks(0)===I)&&(gt(Ue,0)||!Kt(Ye,Ue,zt,Dt)||Qt(Ye,Ue))},$.clipEnds=function(Ye,Ue){return Ue.filter(function(zt){return gt(Ye,zt.x)})};function gt(Ye,Ue){var zt=Ye.l2p(Ue);return zt>1&&zt1)for($t=1;$t=$t.min&&Ye<$t.max)return $t.max}return Ye}function Jt(Ye){return(Ye.ticklabelposition||"").indexOf("inside")!==-1}function ur(Ye,Ue){Jt(Ye._anchorAxis||{})&&Ye._hideCounterAxisInsideTickLabels&&Ye._hideCounterAxisInsideTickLabels(Ue)}function fr(Ye,Ue,zt,Dt){var $t=Ye.anchor!=="free"&&(Ye.overlaying===void 0||Ye.overlaying===!1)?Ye._id:Ye.overlaying,sr;Dt?sr=Ye.side==="right"?Ue:-Ue:sr=Ue,$t in zt||(zt[$t]={}),Ye.side in zt[$t]||(zt[$t][Ye.side]=0),zt[$t][Ye.side]+=sr}function dr(Ye,Ue){return Ye.autoshift?Ue[Ye.overlaying][Ye.side]:Ye.shift||0}},52976:function(G,H,e){var m=e(38248),P=e(3400),s=e(39032).BADNUM,L=P.isArrayOrTypedArray,S=P.isDateTime,v=P.cleanNumber,p=Math.round;G.exports=function(g,h,T){var c=g,i=T.noMultiCategory;if(L(c)&&!c.length)return"-";if(!i&&u(c))return"multicategory";if(i&&Array.isArray(c[0])){for(var d=[],x=0;xi*2}function n(l){return Math.max(1,(l-1)/1e3)}function f(l,g){for(var h=l.length,T=n(h),c=0,i=0,d={},x=0;xc*2}function u(l){return L(l[0])&&L(l[1])}},28336:function(G,H,e){var m=e(38248),P=e(24040),s=e(3400),L=e(31780),S=e(51272),v=e(94724),p=e(26332),r=e(25404),t=e(95936),a=e(42568),n=e(22416),f=e(42136),u=e(96312),l=e(78344),g=e(33816).WEEKDAY_PATTERN,h=e(33816).HOUR_PATTERN;G.exports=function(x,w,C,y,E){var A=y.letter,o=y.font||{},M=y.splomStash||{},b=C("visible",!y.visibleDflt),I=w._template||{},D=w.type||I.type||"-",N;if(D==="date"){var k=P.getComponentMethod("calendars","handleDefaults");k(x,w,"calendar",y.calendar),y.noTicklabelmode||(N=C("ticklabelmode"))}var O="";(!y.noTicklabelposition||D==="multicategory")&&(O=s.coerce(x,w,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:N==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),y.noTicklabeloverflow||C("ticklabeloverflow",O.indexOf("inside")!==-1?"hide past domain":D==="category"||D==="multicategory"?"allow":"hide past div"),l(w,E),u(x,w,C,y),n(x,w,C,y),D!=="category"&&!y.noHover&&C("hoverformat");var F=C("color"),z=F!==v.color.dflt?F:o.color,B=M.label||E._dfltTitle[A];if(a(x,w,C,D,y),!b)return w;C("title.text",B),s.coerceFont(C,"title.font",o,{overrideDflt:{size:s.bigFont(o.size),color:z}}),p(x,w,C,D);var W=y.hasMinor;if(W&&(L.newContainer(w,"minor"),p(x,w,C,D,{isMinor:!0})),t(x,w,C,D,y),r(x,w,C,y),W){var J=y.isMinor;y.isMinor=!0,r(x,w,C,y),y.isMinor=J}f(x,w,C,{dfltColor:F,bgColor:y.bgColor,showGrid:y.showGrid,hasMinor:W,attributes:v}),W&&!w.minor.ticks&&!w.minor.showgrid&&delete w.minor,(w.showline||w.ticks)&&C("mirror");var re=D==="multicategory";if(!y.noTickson&&(D==="category"||re)&&(w.ticks||w.showgrid)){var ne;re&&(ne="boundaries");var le=C("tickson",ne);le==="boundaries"&&delete w.ticklabelposition}if(re){var $=C("showdividers");$&&(C("dividercolor"),C("dividerwidth"))}if(D==="date")if(S(x,w,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),!w.rangebreaks.length)delete w.rangebreaks;else{for(var Z=0;Z=2){var A="",o,M;if(E.length===2){for(o=0;o<2;o++)if(M=i(E[o]),M){A=g;break}}var b=C("pattern",A);if(b===g)for(o=0;o<2;o++)M=i(E[o]),M&&(x.bounds[o]=E[o]=M-1);if(b)for(o=0;o<2;o++)switch(M=E[o],b){case g:if(!m(M)){x.enabled=!1;return}if(M=+M,M!==Math.floor(M)||M<0||M>=7){x.enabled=!1;return}x.bounds[o]=E[o]=M;break;case h:if(!m(M)){x.enabled=!1;return}if(M=+M,M<0||M>24){x.enabled=!1;return}x.bounds[o]=E[o]=M;break}if(w.autorange===!1){var I=w.range;if(I[0]I[1]){x.enabled=!1;return}}else if(E[0]>I[0]&&E[1]p?1:-1:+(L.substr(1)||1)-+(S.substr(1)||1)},H.ref2id=function(L){return/^[xyz]/.test(L)?L.split(" ")[0]:!1};function s(L,S){if(S&&S.length){for(var v=0;v0||m(r),a;t&&(a="array");var n=v("categoryorder",a),f;n==="array"&&(f=v("categoryarray")),!t&&n==="array"&&(n=S.categoryorder="trace"),n==="trace"?S._initialCategories=[]:n==="array"?S._initialCategories=f.slice():(f=P(S,p).sort(),n==="category ascending"?S._initialCategories=f:n==="category descending"&&(S._initialCategories=f.reverse()))}}},98728:function(G,H,e){var m=e(38248),P=e(3400),s=e(39032),L=s.ONEDAY,S=s.ONEWEEK;H.dtick=function(v,p){var r=p==="log",t=p==="date",a=p==="category",n=t?L:1;if(!v)return n;if(m(v))return v=Number(v),v<=0?n:a?Math.max(1,Math.round(v)):t?Math.max(.1,v):v;if(typeof v!="string"||!(t||r))return n;var f=v.charAt(0),u=v.substr(1);return u=m(u)?Number(u):0,u<=0||!(t&&f==="M"&&u===Math.round(u)||r&&f==="L"||r&&f==="D"&&(u===1||u===2))?n:v},H.tick0=function(v,p,r,t){if(p==="date")return P.cleanDate(v,P.dateTick0(r,t%S===0?1:0));if(!(t==="D1"||t==="D2"))return m(v)?Number(v):0}},33816:function(G,H,e){var m=e(53756).counter;G.exports={idRegex:{x:m("x","( domain)?"),y:m("y","( domain)?")},attrRegex:m("[xy]axis"),xAxisMatch:m("xaxis"),yAxisMatch:m("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},71888:function(G,H,e){var m=e(3400),P=e(19280),s=e(79811).id2name,L=e(94724),S=e(21160),v=e(78344),p=e(39032).ALMOST_EQUAL,r=e(84284).FROM_BL;H.handleDefaults=function(h,T,c){var i=c.axIds,d=c.axHasImage,x=T._axisConstraintGroups=[],w=T._axisMatchGroups=[],C,y,E,A,o,M,b,I;for(C=0;Cx?c.substr(x):i.substr(d))+w}function l(h,T){for(var c=T._size,i=c.h/c.w,d={},x=Object.keys(h),w=0;wp*I&&!O)){for(x=0;xZ&&tele&&(le=te);var ge=(le-ne)/(2*$);o/=ge,ne=y.l2r(ne),le=y.l2r(le),y.range=y._input.range=W=0){ir._fullLayout._deactivateShape(ir);return}var hr=ir._fullLayout.clickmode;if(Z(ir),tr===2&&!Se&&Ue(),Re)hr.indexOf("select")>-1&&E(Nt,ir,ot,Qe,fe.id,lt),hr.indexOf("event")>-1&&n.click(ir,Nt,fe.id);else if(tr===1&&Se){var xr=De?Me:Ie,vr=De==="s"||Fe==="w"?0:1,Hr=xr._name+".range["+vr+"]",_r=F(xr,vr),Dr="left",an="middle";if(xr.fixedrange)return;De?(an=De==="n"?"top":"bottom",xr.side==="right"&&(Dr="right")):Fe==="e"&&(Dr="right"),ir._context.showAxisRangeEntryBoxes&&m.select(st).call(r.makeEditable,{gd:ir,immediate:!0,background:ir._fullLayout.paper_bgcolor,text:String(_r),fill:xr.tickfont?xr.tickfont.color:"#444",horizontalAlign:Dr,verticalAlign:an}).on("edit",function(tn){var Sn=xr.d2r(tn);Sn!==void 0&&v.call("_guiRelayout",ir,Hr,Sn)})}}l.init(lt);var Tt,Rt,Xt,gr,gt,Kt,Qt,yr,Ot,ut;function at(tr,Nt,ir){var hr=st.getBoundingClientRect();Tt=Nt-hr.left,Rt=ir-hr.top,te._fullLayout._calcInverseTransform(te);var xr=P.apply3DTransform(te._fullLayout._invTransform)(Tt,Rt);Tt=xr[0],Rt=xr[1],Xt={l:Tt,r:Tt,w:0,t:Rt,b:Rt,h:0},gr=te._hmpixcount?te._hmlumcount/te._hmpixcount:L(te._fullLayout.plot_bgcolor).getLuminance(),gt="M0,0H"+vt+"V"+pt+"H0V0",Kt=!1,Qt="xy",ut=!1,yr=re(Te,gr,$e,ht,gt),Ot=ne(Te,$e,ht)}function xt(tr,Nt){if(te._transitioningWithDuration)return!1;var ir=Math.max(0,Math.min(vt,he*tr+Tt)),hr=Math.max(0,Math.min(pt,me*Nt+Rt)),xr=Math.abs(ir-Tt),vr=Math.abs(hr-Rt);Xt.l=Math.min(Tt,ir),Xt.r=Math.max(Tt,ir),Xt.t=Math.min(Rt,hr),Xt.b=Math.max(Rt,hr);function Hr(){Qt="",Xt.r=Xt.l,Xt.t=Xt.b,Ot.attr("d","M0,0Z")}if(wt.isSubplotConstrained)xr>b||vr>b?(Qt="xy",xr/vt>vr/pt?(vr=xr*pt/vt,Rt>hr?Xt.t=Rt-vr:Xt.b=Rt+vr):(xr=vr*vt/pt,Tt>ir?Xt.l=Tt-xr:Xt.r=Tt+xr),Ot.attr("d",oe(Xt))):Hr();else if(Ct.isSubplotConstrained)if(xr>b||vr>b){Qt="xy";var _r=Math.min(Xt.l/vt,(pt-Xt.b)/pt),Dr=Math.max(Xt.r/vt,(pt-Xt.t)/pt);Xt.l=_r*vt,Xt.r=Dr*vt,Xt.b=(1-_r)*pt,Xt.t=(1-Dr)*pt,Ot.attr("d",oe(Xt))}else Hr();else!ze||vr0){var tn;if(Ct.isSubplotConstrained||!rt&&ze.length===1){for(tn=0;tn1&&(Hr.maxallowed!==void 0&&We===(Hr.range[0]1&&(_r.maxallowed!==void 0&&Ge===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&Ge===(_r.range[0]<_r.range[1]?"s":"n"))&&(Yr=1,ln=0),!(!zr&&!Yr)){zr||(zr=1),Yr||(Yr=1);var fn=Hr._offset-Or/zr,Mn=_r._offset-ln/Yr;vr.clipRect.call(a.setTranslate,Or,ln).call(a.setScale,zr,Yr),vr.plot.call(a.setTranslate,fn,Mn).call(a.setScale,1/zr,1/Yr),(zr!==vr.xScaleFactor||Yr!==vr.yScaleFactor)&&(a.setPointGroupScale(vr.zoomScalePts,zr,Yr),a.setTextPointsScale(vr.zoomScaleTxt,zr,Yr)),a.hideOutsideRangePoints(vr.clipOnAxisFalseTraces,vr),vr.xScaleFactor=zr,vr.yScaleFactor=Yr}}}}function $t(tr,Nt,ir){return tr.fixedrange?0:We&&wt.xaHash[tr._id]?Nt:Ge&&(wt.isSubplotConstrained?wt.xaHash:wt.yaHash)[tr._id]?ir:0}function sr(tr,Nt){return Nt?(tr.range=tr._r.slice(),A(tr,Nt),cr(tr,Nt)):0}function cr(tr,Nt,ir){return tr._length*(1-Nt)*c[ir||tr.constraintoward||"middle"]}return st}function N(te,fe,ge,be){var xe=P.ensureSingle(te.draglayer,fe,ge,function(_e){_e.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",te.id)});return xe.call(u,be),xe.node()}function k(te,fe,ge,be,xe,_e,De){var Fe=N(te,"rect",fe,ge);return m.select(Fe).call(a.setRect,be,xe,_e,De),Fe}function O(te,fe){for(var ge=0;ge=0?Math.min(te,.9):1/(1/Math.max(te,-.3)+3.222))}function J(te,fe,ge){return te?te==="nsew"?ge?"":fe==="pan"?"move":"crosshair":te.toLowerCase()+"-resize":"pointer"}function re(te,fe,ge,be,xe){return te.append("path").attr("class","zoombox").style({fill:fe>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(ge,be)).attr("d",xe+"Z")}function ne(te,fe,ge){return te.append("path").attr("class","zoombox-corners").style({fill:t.background,stroke:t.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(fe,ge)).attr("d","M0,0Z")}function le(te,fe,ge,be,xe,_e){te.attr("d",be+"M"+ge.l+","+ge.t+"v"+ge.h+"h"+ge.w+"v-"+ge.h+"h-"+ge.w+"Z"),$(te,fe,xe,_e)}function $(te,fe,ge,be){ge||(te.transition().style("fill",be>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),fe.transition().style("opacity",1).duration(200))}function Z(te){m.select(te).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ie(te){I&&te.data&&te._context.showTips&&(P.notifier(P._(te,"Double-click to zoom back out"),"long"),I=!1)}function X(te,fe){return"M"+(te.l-.5)+","+(fe-b-.5)+"h-3v"+(2*b+1)+"h3ZM"+(te.r+.5)+","+(fe-b-.5)+"h3v"+(2*b+1)+"h-3Z"}function Q(te,fe){return"M"+(fe-b-.5)+","+(te.t-.5)+"v-3h"+(2*b+1)+"v3ZM"+(fe-b-.5)+","+(te.b+.5)+"v3h"+(2*b+1)+"v-3Z"}function oe(te){var fe=Math.floor(Math.min(te.b-te.t,te.r-te.l,b)/2);return"M"+(te.l-3.5)+","+(te.t-.5+fe)+"h3v"+-fe+"h"+fe+"v-3h-"+(fe+3)+"ZM"+(te.r+3.5)+","+(te.t-.5+fe)+"h-3v"+-fe+"h"+-fe+"v-3h"+(fe+3)+"ZM"+(te.r+3.5)+","+(te.b+.5-fe)+"h-3v"+fe+"h"+-fe+"v3h"+(fe+3)+"ZM"+(te.l-3.5)+","+(te.b+.5-fe)+"h3v"+fe+"h"+fe+"v3h-"+(fe+3)+"Z"}function Y(te,fe,ge,be,xe){for(var _e=!1,De={},Fe={},Te,Re,Se,Ie,Me=(xe||{}).xaHash,Ve=(xe||{}).yaHash,et=0;etC[1]-.000244140625&&(S.domain=l),P.noneOrAll(L.domain,S.domain,l),S.tickmode==="sync"&&(S.tickmode="auto")}return v("layer"),S}},42568:function(G,H,e){var m=e(85024);G.exports=function(s,L,S,v,p){p||(p={});var r=p.tickSuffixDflt,t=m(s),a=S("tickprefix");a&&S("showtickprefix",t);var n=S("ticksuffix",r);n&&S("showticksuffix",t)}},96312:function(G,H,e){var m=e(76808);G.exports=function(s,L,S,v){var p=L._template||{},r=L.type||p.type||"-";S("minallowed"),S("maxallowed");var t=S("range");if(!t){var a;!v.noInsiderange&&r!=="log"&&(a=S("insiderange"),a&&(a[0]===null||a[1]===null)&&(L.insiderange=!1,a=void 0),a&&(t=S("range",a)))}var n=L.getAutorangeDflt(t,v),f=S("autorange",n),u;t&&(t[0]===null&&t[1]===null||(t[0]===null||t[1]===null)&&(f==="reversed"||f===!0)||t[0]!==null&&(f==="min"||f==="max reversed")||t[1]!==null&&(f==="max"||f==="min reversed"))&&(t=void 0,delete L.range,L.autorange=!0,u=!0),u||(n=L.getAutorangeDflt(t,v),f=S("autorange",n)),f&&(m(S,f,t),(r==="linear"||r==="-")&&S("rangemode")),L.cleanRange()}},21160:function(G,H,e){var m=e(84284).FROM_BL;G.exports=function(s,L,S){S===void 0&&(S=m[s.constraintoward||"center"]);var v=[s.r2l(s.range[0]),s.r2l(s.range[1])],p=v[0]+(v[1]-v[0])*S;s.range=s._input.range=[s.l2r(p+(v[0]-p)*L),s.l2r(p+(v[1]-p)*L)],s.setScale()}},78344:function(G,H,e){var m=e(33428),P=e(94336).E9,s=e(3400),L=s.numberFormat,S=e(38248),v=s.cleanNumber,p=s.ms2DateTime,r=s.dateTime2ms,t=s.ensureNumber,a=s.isArrayOrTypedArray,n=e(39032),f=n.FP_SAFE,u=n.BADNUM,l=n.LOG_CLIP,g=n.ONEWEEK,h=n.ONEDAY,T=n.ONEHOUR,c=n.ONEMIN,i=n.ONESEC,d=e(79811),x=e(33816),w=x.HOUR_PATTERN,C=x.WEEKDAY_PATTERN;function y(A){return Math.pow(10,A)}function E(A){return A!=null}G.exports=function(o,M){M=M||{};var b=o._id||"x",I=b.charAt(0);function D(X,Q){if(X>0)return Math.log(X)/Math.LN10;if(X<=0&&Q&&o.range&&o.range.length===2){var oe=o.range[0],Y=o.range[1];return .5*(oe+Y-2*l*Math.abs(oe-Y))}else return u}function N(X,Q,oe,Y){if((Y||{}).msUTC&&S(X))return+X;var j=r(X,oe||o.calendar);if(j===u)if(S(X)){X=+X;var se=Math.floor(s.mod(X+.05,1)*10),te=Math.round(X-se/10);j=r(new Date(te))+se/10}else return u;return j}function k(X,Q,oe){return p(X,Q,oe||o.calendar)}function O(X){return o._categories[Math.round(X)]}function F(X){if(E(X)){if(o._categoriesMap===void 0&&(o._categoriesMap={}),o._categoriesMap[X]!==void 0)return o._categoriesMap[X];o._categories.push(typeof X=="number"?String(X):X);var Q=o._categories.length-1;return o._categoriesMap[X]=Q,Q}return u}function z(X,Q){for(var oe=new Array(Q),Y=0;Yo.range[1]&&(oe=!oe);for(var Y=oe?-1:1,j=Y*X,se=0,te=0;tege)se=te+1;else{se=j<(fe+ge)/2?te:te+1;break}}var be=o._B[se]||0;return isFinite(be)?re(X,o._m2,be):0},$=function(X){var Q=o._rangebreaks.length;if(!Q)return ne(X,o._m,o._b);for(var oe=0,Y=0;Yo._rangebreaks[Y].pmax&&(oe=Y+1);return ne(X,o._m2,o._B[oe])}}o.c2l=o.type==="log"?D:t,o.l2c=o.type==="log"?y:t,o.l2p=le,o.p2l=$,o.c2p=o.type==="log"?function(X,Q){return le(D(X,Q))}:le,o.p2c=o.type==="log"?function(X){return y($(X))}:$,["linear","-"].indexOf(o.type)!==-1?(o.d2r=o.r2d=o.d2c=o.r2c=o.d2l=o.r2l=v,o.c2d=o.c2r=o.l2d=o.l2r=t,o.d2p=o.r2p=function(X){return o.l2p(v(X))},o.p2d=o.p2r=$,o.cleanPos=t):o.type==="log"?(o.d2r=o.d2l=function(X,Q){return D(v(X),Q)},o.r2d=o.r2c=function(X){return y(v(X))},o.d2c=o.r2l=v,o.c2d=o.l2r=t,o.c2r=D,o.l2d=y,o.d2p=function(X,Q){return o.l2p(o.d2r(X,Q))},o.p2d=function(X){return y($(X))},o.r2p=function(X){return o.l2p(v(X))},o.p2r=$,o.cleanPos=t):o.type==="date"?(o.d2r=o.r2d=s.identity,o.d2c=o.r2c=o.d2l=o.r2l=N,o.c2d=o.c2r=o.l2d=o.l2r=k,o.d2p=o.r2p=function(X,Q,oe){return o.l2p(N(X,0,oe))},o.p2d=o.p2r=function(X,Q,oe){return k($(X),Q,oe)},o.cleanPos=function(X){return s.cleanDate(X,u,o.calendar)}):o.type==="category"?(o.d2c=o.d2l=F,o.r2d=o.c2d=o.l2d=O,o.d2r=o.d2l_noadd=W,o.r2c=function(X){var Q=J(X);return Q!==void 0?Q:o.fraction2r(.5)},o.l2r=o.c2r=t,o.r2l=J,o.d2p=function(X){return o.l2p(o.r2c(X))},o.p2d=function(X){return O($(X))},o.r2p=o.d2p,o.p2r=$,o.cleanPos=function(X){return typeof X=="string"&&X!==""?X:t(X)}):o.type==="multicategory"&&(o.r2d=o.c2d=o.l2d=O,o.d2r=o.d2l_noadd=W,o.r2c=function(X){var Q=W(X);return Q!==void 0?Q:o.fraction2r(.5)},o.r2c_just_indices=B,o.l2r=o.c2r=t,o.r2l=W,o.d2p=function(X){return o.l2p(o.r2c(X))},o.p2d=function(X){return O($(X))},o.r2p=o.d2p,o.p2r=$,o.cleanPos=function(X){return Array.isArray(X)||typeof X=="string"&&X!==""?X:t(X)},o.setupMultiCategory=function(X){var Q=o._traceIndices,oe,Y,j=o._matchGroup;if(j&&o._categories.length===0){for(var se in j)if(se!==b){var te=M[d.id2name(se)];Q=Q.concat(te._traceIndices)}}var fe=[[0,{}],[0,{}]],ge=[];for(oe=0;oete[1]&&(Y[se?0:1]=oe),Y[0]===Y[1]){var fe=o.l2r(Q),ge=o.l2r(oe);if(Q!==void 0){var be=fe+1;oe!==void 0&&(be=Math.min(be,ge)),Y[se?1:0]=be}if(oe!==void 0){var xe=ge+1;Q!==void 0&&(xe=Math.max(xe,fe)),Y[se?0:1]=xe}}}},o.cleanRange=function(X,Q){o._cleanRange(X,Q),o.limitRange(X)},o._cleanRange=function(X,Q){Q||(Q={}),X||(X="range");var oe=s.nestedProperty(o,X).get(),Y,j;if(o.type==="date"?j=s.dfltRange(o.calendar):I==="y"?j=x.DFLTRANGEY:o._name==="realaxis"?j=[0,1]:j=Q.dfltRange||x.DFLTRANGEX,j=j.slice(),(o.rangemode==="tozero"||o.rangemode==="nonnegative")&&(j[0]=0),!oe||oe.length!==2){s.nestedProperty(o,X).set(j);return}var se=oe[0]===null,te=oe[1]===null;for(o.type==="date"&&!o.autorange&&(oe[0]=s.cleanDate(oe[0],u,o.calendar),oe[1]=s.cleanDate(oe[1],u,o.calendar)),Y=0;Y<2;Y++)if(o.type==="date"){if(!s.isDateTime(oe[Y],o.calendar)){o[X]=j;break}if(o.r2l(oe[0])===o.r2l(oe[1])){var fe=s.constrain(o.r2l(oe[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);oe[0]=o.l2r(fe-1e3),oe[1]=o.l2r(fe+1e3);break}}else{if(!S(oe[Y]))if(!(se||te)&&S(oe[1-Y]))oe[Y]=oe[1-Y]*(Y?10:.1);else{o[X]=j;break}if(oe[Y]<-f?oe[Y]=-f:oe[Y]>f&&(oe[Y]=f),oe[0]===oe[1]){var ge=Math.max(1,Math.abs(oe[0]*1e-6));oe[0]-=ge,oe[1]+=ge}}},o.setScale=function(X){var Q=M._size;if(o.overlaying){var oe=d.getFromId({_fullLayout:M},o.overlaying);o.domain=oe.domain}var Y=X&&o._r?"_r":"range",j=o.calendar;o.cleanRange(Y);var se=o.r2l(o[Y][0],j),te=o.r2l(o[Y][1],j),fe=I==="y";if(fe?(o._offset=Q.t+(1-o.domain[1])*Q.h,o._length=Q.h*(o.domain[1]-o.domain[0]),o._m=o._length/(se-te),o._b=-o._m*te):(o._offset=Q.l+o.domain[0]*Q.w,o._length=Q.w*(o.domain[1]-o.domain[0]),o._m=o._length/(te-se),o._b=-o._m*se),o._rangebreaks=[],o._lBreaks=0,o._m2=0,o._B=[],o.rangebreaks){var ge,be;if(o._rangebreaks=o.locateBreaks(Math.min(se,te),Math.max(se,te)),o._rangebreaks.length){for(ge=0;gete&&(xe=!xe),xe&&o._rangebreaks.reverse();var _e=xe?-1:1;for(o._m2=_e*o._length/(Math.abs(te-se)-o._lBreaks),o._B.push(-o._m2*(fe?te:se)),ge=0;gej&&(j+=7,sej&&(j+=24,se=Y&&se=Y&&X=Qe.min&&(MeQe.max&&(Qe.max=Ve),et=!1)}et&&te.push({min:Me,max:Ve})}};for(oe=0;oe rect").call(L.setTranslate,0,0).call(L.setScale,1,1),w.plot.call(L.setTranslate,C._offset,y._offset).call(L.setScale,1,1);var E=w.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(L.setPointGroupScale,1,1),E.selectAll(".textpoint").call(L.setTextPointsScale,1,1),E.call(L.hideOutsideRangePoints,w)}function u(w,C){var y=w.plotinfo,E=y.xaxis,A=y.yaxis,o=E._length,M=A._length,b=!!w.xr1,I=!!w.yr1,D=[];if(b){var N=s.simpleMap(w.xr0,E.r2l),k=s.simpleMap(w.xr1,E.r2l),O=N[1]-N[0],F=k[1]-k[0];D[0]=(N[0]*(1-C)+C*k[0]-N[0])/(N[1]-N[0])*o,D[2]=o*(1-C+C*F/O),E.range[0]=E.l2r(N[0]*(1-C)+C*k[0]),E.range[1]=E.l2r(N[1]*(1-C)+C*k[1])}else D[0]=0,D[2]=o;if(I){var z=s.simpleMap(w.yr0,A.r2l),B=s.simpleMap(w.yr1,A.r2l),W=z[1]-z[0],J=B[1]-B[0];D[1]=(z[1]*(1-C)+C*B[1]-z[1])/(z[0]-z[1])*M,D[3]=M*(1-C+C*J/W),A.range[0]=E.l2r(z[0]*(1-C)+C*B[0]),A.range[1]=A.l2r(z[1]*(1-C)+C*B[1])}else D[1]=0,D[3]=M;S.drawOne(p,E,{skipTitle:!0}),S.drawOne(p,A,{skipTitle:!0}),S.redrawComponents(p,[E._id,A._id]);var re=b?o/D[2]:1,ne=I?M/D[3]:1,le=b?D[0]:0,$=I?D[1]:0,Z=b?D[0]/D[2]*o:0,ie=I?D[1]/D[3]*M:0,X=E._offset-Z,Q=A._offset-ie;y.clipRect.call(L.setTranslate,le,$).call(L.setScale,1/re,1/ne),y.plot.call(L.setTranslate,X,Q).call(L.setScale,re,ne),L.setPointGroupScale(y.zoomScalePts,1/re,1/ne),L.setTextPointsScale(y.zoomScaleTxt,1/re,1/ne)}var l;a&&(l=a());function g(){for(var w={},C=0;Ct.duration?(g(),i=window.cancelAnimationFrame(x)):i=window.requestAnimationFrame(x)}return T=Date.now(),i=window.requestAnimationFrame(x),Promise.resolve()}},14944:function(G,H,e){var m=e(24040).traceIs,P=e(52976);G.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var f=a("type",(n.splomStash||{}).type);f==="-"&&(s(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function s(p,r){if(p.type==="-"){var t=p._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var f=L(r,t,a);if(f){if(f.type==="histogram"&&a==={v:"y",h:"x"}[f.orientation||"v"]){p.type="linear";return}var u=a+"calendar",l=f[u],g={noMultiCategory:!m(f,"cartesian")||m(f,"noMultiCategory")};if(f.type==="box"&&f._hasPreCompStats&&a==={h:"x",v:"y"}[f.orientation||"v"]&&(g.noMultiCategory=!0),g.autotypenumbers=p.autotypenumbers,v(f,a)){var h=S(f),T=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(v(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function S(p){return{v:"x",h:"y"}[p.orientation||"v"]}function v(p,r){var t=S(p),a=m(p,"box-violin"),n=m(p._fullInput||{},"candlestick");return a&&!n&&r===t&&p[t]===void 0&&p[t+"0"]===void 0}},62460:function(G,H,e){var m=e(24040),P=e(3400);H.manageCommandObserver=function(r,t,a,n){var f={},u=!0;t&&t._commandObserver&&(f=t._commandObserver),f.cache||(f.cache={}),f.lookupTable={};var l=H.hasSimpleAPICommandBindings(r,a,f.lookupTable);if(t&&t._commandObserver){if(l)return f;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,f}if(l){s(r,l,f.cache),f.check=function(){if(u){var c=s(r,l,f.cache);return c.changed&&n&&f.lookupTable[c.value]!==void 0&&(f.disable(),Promise.resolve(n({value:c.value,type:l.type,prop:l.prop,traces:l.traces,index:f.lookupTable[c.value]})).then(f.enable,f.enable)),c.changed}};for(var g=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+f;P.isPlainObject(u)?p(u,t,l,n+1):t(l,f,u)}})}},86968:function(G,H,e){var m=e(92880).extendFlat;H.u=function(P,s){P=P||{},s=s||{};var L={valType:"info_array",editType:P.editType,items:[{valType:"number",min:0,max:1,editType:P.editType},{valType:"number",min:0,max:1,editType:P.editType}],dflt:[0,1]};P.name&&P.name+"",P.trace,s.description&&""+s.description;var S={x:m({},L,{}),y:m({},L,{}),editType:P.editType};return P.noGridCell||(S.row={valType:"integer",min:0,dflt:0,editType:P.editType},S.column={valType:"integer",min:0,dflt:0,editType:P.editType}),S},H.Q=function(P,s,L,S){var v=S&&S.x||[0,1],p=S&&S.y||[0,1],r=s.grid;if(r){var t=L("domain.column");t!==void 0&&(t0&&F._module.calcGeoJSON(O,I)}if(!D){var z=this.updateProjection(b,I);if(z)return;(!this.viewInitial||this.scope!==N.scope)&&this.saveViewInitial(N)}this.scope=N.scope,this.updateBaseLayers(I,N),this.updateDims(I,N),this.updateFx(I,N),f.generalUpdatePerTraceModule(this.graphDiv,this,b,N);var B=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=B.selectAll(".point"),this.dataPoints.text=B.selectAll("text"),this.dataPaths.line=B.selectAll(".js-line");var W=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=W.selectAll("path"),this._render()},E.updateProjection=function(b,I){var D=this.graphDiv,N=I[this.id],k=I._size,O=N.domain,F=N.projection,z=N.lonaxis,B=N.lataxis,W=z._ax,J=B._ax,re=this.projection=A(N),ne=[[k.l+k.w*O.x[0],k.t+k.h*(1-O.y[1])],[k.l+k.w*O.x[1],k.t+k.h*(1-O.y[0])]],le=N.center||{},$=F.rotation||{},Z=z.range||[],ie=B.range||[];if(N.fitbounds){W._length=ne[1][0]-ne[0][0],J._length=ne[1][1]-ne[0][1],W.range=l(D,W),J.range=l(D,J);var X=(W.range[0]+W.range[1])/2,Q=(J.range[0]+J.range[1])/2;if(N._isScoped)le={lon:X,lat:Q};else if(N._isClipped){le={lon:X,lat:Q},$={lon:X,lat:Q,roll:$.roll};var oe=F.type,Y=d.lonaxisSpan[oe]/2||180,j=d.lataxisSpan[oe]/2||90;Z=[X-Y,X+Y],ie=[Q-j,Q+j]}else le={lon:X,lat:Q},$={lon:X,lat:$.lat,roll:$.roll}}re.center([le.lon-$.lon,le.lat-$.lat]).rotate([-$.lon,-$.lat,$.roll]).parallels(F.parallels);var se=M(Z,ie);re.fitExtent(ne,se);var te=this.bounds=re.getBounds(se),fe=this.fitScale=re.scale(),ge=re.translate();if(N.fitbounds){var be=re.getBounds(M(W.range,J.range)),xe=Math.min((te[1][0]-te[0][0])/(be[1][0]-be[0][0]),(te[1][1]-te[0][1])/(be[1][1]-be[0][1]));isFinite(xe)?re.scale(xe*fe):p.warn("Something went wrong during"+this.id+"fitbounds computations.")}else re.scale(F.scale*fe);var _e=this.midPt=[(te[0][0]+te[1][0])/2,(te[0][1]+te[1][1])/2];if(re.translate([ge[0]+(_e[0]-ge[0]),ge[1]+(_e[1]-ge[1])]).clipExtent(te),N._isAlbersUsa){var De=re([le.lon,le.lat]),Fe=re.translate();re.translate([Fe[0]-(De[0]-Fe[0]),Fe[1]-(De[1]-Fe[1])])}},E.updateBaseLayers=function(b,I){var D=this,N=D.topojson,k=D.layers,O=D.basePaths;function F(ne){return ne==="lonaxis"||ne==="lataxis"}function z(ne){return!!d.lineLayers[ne]}function B(ne){return!!d.fillLayers[ne]}var W=this.hasChoropleth?d.layersForChoropleth:d.layers,J=W.filter(function(ne){return z(ne)||B(ne)?I["show"+ne]:F(ne)?I[ne].showgrid:!0}),re=D.framework.selectAll(".layer").data(J,String);re.exit().each(function(ne){delete k[ne],delete O[ne],m.select(this).remove()}),re.enter().append("g").attr("class",function(ne){return"layer "+ne}).each(function(ne){var le=k[ne]=m.select(this);ne==="bg"?D.bgRect=le.append("rect").style("pointer-events","all"):F(ne)?O[ne]=le.append("path").style("fill","none"):ne==="backplot"?le.append("g").classed("choroplethlayer",!0):ne==="frontplot"?le.append("g").classed("scatterlayer",!0):z(ne)?O[ne]=le.append("path").style("fill","none").style("stroke-miterlimit",2):B(ne)&&(O[ne]=le.append("path").style("stroke","none"))}),re.order(),re.each(function(ne){var le=O[ne],$=d.layerNameToAdjective[ne];ne==="frame"?le.datum(d.sphereSVG):z(ne)||B(ne)?le.datum(C(N,N.objects[ne])):F(ne)&&le.datum(o(ne,I,b)).call(t.stroke,I[ne].gridcolor).call(a.dashLine,I[ne].griddash,I[ne].gridwidth),z(ne)?le.call(t.stroke,I[$+"color"]).call(a.dashLine,"",I[$+"width"]):B(ne)&&le.call(t.fill,I[$+"color"])})},E.updateDims=function(b,I){var D=this.bounds,N=(I.framewidth||0)/2,k=D[0][0]-N,O=D[0][1]-N,F=D[1][0]-k+N,z=D[1][1]-O+N;a.setRect(this.clipRect,k,O,F,z),this.bgRect.call(a.setRect,k,O,F,z).call(t.fill,I.bgcolor),this.xaxis._offset=k,this.xaxis._length=F,this.yaxis._offset=O,this.yaxis._length=z},E.updateFx=function(b,I){var D=this,N=D.graphDiv,k=D.bgRect,O=b.dragmode,F=b.clickmode;if(D.isStatic)return;function z(){var re=D.viewInitial,ne={};for(var le in re)ne[D.id+"."+le]=re[le];v.call("_guiRelayout",N,ne),N.emit("plotly_doubleclick",null)}function B(re){return D.projection.invert([re[0]+D.xaxis._offset,re[1]+D.yaxis._offset])}var W=function(re,ne){if(ne.isRect){var le=re.range={};le[D.id]=[B([ne.xmin,ne.ymin]),B([ne.xmax,ne.ymax])]}else{var $=re.lassoPoints={};$[D.id]=ne.map(B)}},J={element:D.bgRect.node(),gd:N,plotinfo:{id:D.id,xaxis:D.xaxis,yaxis:D.yaxis,fillRangeItems:W},xaxes:[D.xaxis],yaxes:[D.yaxis],subplot:D.id,clickFn:function(re){re===2&&T(N)}};O==="pan"?(k.node().onmousedown=null,k.call(i(D,I)),k.on("dblclick.zoom",z),N._context._scrollZoom.geo||k.on("wheel.zoom",null)):(O==="select"||O==="lasso")&&(k.on(".zoom",null),J.prepFn=function(re,ne,le){h(re,ne,le,J,O)},g.init(J)),k.on("mousemove",function(){var re=D.projection.invert(p.getPositionFromD3Event());if(!re)return g.unhover(N,m.event);D.xaxis.p2c=function(){return re[0]},D.yaxis.p2c=function(){return re[1]},n.hover(N,m.event,D.id)}),k.on("mouseout",function(){N._dragging||g.unhover(N,m.event)}),k.on("click",function(){O!=="select"&&O!=="lasso"&&(F.indexOf("select")>-1&&c(m.event,N,[D.xaxis],[D.yaxis],D.id,J),F.indexOf("event")>-1&&n.click(N,m.event))})},E.makeFramework=function(){var b=this,I=b.graphDiv,D=I._fullLayout,N="clip"+D._uid+b.id;b.clipDef=D._clips.append("clipPath").attr("id",N),b.clipRect=b.clipDef.append("rect"),b.framework=m.select(b.container).append("g").attr("class","geo "+b.id).call(a.setClipUrl,N,I),b.project=function(k){var O=b.projection(k);return O?[O[0]-b.xaxis._offset,O[1]-b.yaxis._offset]:[null,null]},b.xaxis={_id:"x",c2p:function(k){return b.project(k)[0]}},b.yaxis={_id:"y",c2p:function(k){return b.project(k)[1]}},b.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},u.setConvert(b.mockAxis,D)},E.saveViewInitial=function(b){var I=b.center||{},D=b.projection,N=D.rotation||{};this.viewInitial={fitbounds:b.fitbounds,"projection.scale":D.scale};var k;b._isScoped?k={"center.lon":I.lon,"center.lat":I.lat}:b._isClipped?k={"projection.rotation.lon":N.lon,"projection.rotation.lat":N.lat}:k={"center.lon":I.lon,"center.lat":I.lat,"projection.rotation.lon":N.lon},p.extendFlat(this.viewInitial,k)},E.render=function(b){this._hasMarkerAngles&&b?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},E._render=function(){var b=this.projection,I=b.getPath(),D;function N(O){var F=b(O.lonlat);return F?r(F[0],F[1]):null}function k(O){return b.isLonLatOverEdges(O.lonlat)?"none":null}for(D in this.basePaths)this.basePaths[D].attr("d",I);for(D in this.dataPaths)this.dataPaths[D].attr("d",function(O){return I(O.geojson)});for(D in this.dataPoints)this.dataPoints[D].attr("display",k).attr("transform",N)};function A(b){var I=b.projection,D=I.type,N=d.projNames[D];N="geo"+p.titleCase(N);for(var k=P[N]||S[N],O=k(),F=b._isSatellite?Math.acos(1/I.distance)*180/Math.PI:b._isClipped?d.lonaxisSpan[D]/2:null,z=["center","rotate","parallels","clipExtent"],B=function(re){return re?O:[]},W=0;W$}else return!1},O.getPath=function(){return s().projection(O)},O.getBounds=function(re){return O.getPath().bounds(re)},O.precision(d.precision),b._isSatellite&&O.tilt(I.tilt).distance(I.distance),F&&O.clipAngle(F-d.clipPad),O}function o(b,I,D){var N=1e-6,k=2.5,O=I[b],F=d.scopeDefaults[I.scope],z,B,W;b==="lonaxis"?(z=F.lonaxisRange,B=F.lataxisRange,W=function(Q,oe){return[Q,oe]}):b==="lataxis"&&(z=F.lataxisRange,B=F.lonaxisRange,W=function(Q,oe){return[oe,Q]});var J={type:"linear",range:[z[0],z[1]-N],tick0:O.tick0,dtick:O.dtick};u.setConvert(J,D);var re=u.calcTicks(J);!I.isScoped&&b==="lonaxis"&&re.pop();for(var ne=re.length,le=new Array(ne),$=0;$0&&k<0&&(k+=360);var z=(k-N)/4;return{type:"Polygon",coordinates:[[[N,O],[N,F],[N+z,F],[N+2*z,F],[N+3*z,F],[k,F],[k,O],[k-z,O],[k-2*z,O],[k-3*z,O],[N,O]]]}}},10816:function(G,H,e){var m=e(84888).KY,P=e(3400).counterRegex,s=e(43520),L="geo",S=P(L),v={};v[L]={valType:"subplotid",dflt:L,editType:"calc"};function p(a){for(var n=a._fullLayout,f=a.calcdata,u=n._subplots[L],l=0;l0&&B<0&&(B+=360);var W=(z+B)/2,J;if(!c){var re=i?h.projRotate:[W,0,0];J=a("projection.rotation.lon",re[0]),a("projection.rotation.lat",re[1]),a("projection.rotation.roll",re[2]),E=a("showcoastlines",!i&&y),E&&(a("coastlinecolor"),a("coastlinewidth")),E=a("showocean",y?void 0:!1),E&&a("oceancolor")}var ne,le;if(c?(ne=-96.6,le=38.7):(ne=i?W:J,le=(F[0]+F[1])/2),a("center.lon",ne),a("center.lat",le),d&&(a("projection.tilt"),a("projection.distance")),x){var $=h.projParallels||[0,60];a("projection.parallels",$)}a("projection.scale"),E=a("showland",y?void 0:!1),E&&a("landcolor"),E=a("showlakes",y?void 0:!1),E&&a("lakecolor"),E=a("showrivers",y?void 0:!1),E&&(a("rivercolor"),a("riverwidth")),E=a("showcountries",i&&g!=="usa"&&y),E&&(a("countrycolor"),a("countrywidth")),(g==="usa"||g==="north america"&&l===50)&&(a("showsubunits",y),a("subunitcolor"),a("subunitwidth")),i||(E=a("showframe",y),E&&(a("framecolor"),a("framewidth"))),a("bgcolor");var Z=a("fitbounds");Z&&(delete t.projection.scale,i?(delete t.center.lon,delete t.center.lat):w?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}},79248:function(G,H,e){var m=e(33428),P=e(3400),s=e(24040),L=Math.PI/180,S=180/Math.PI,v={cursor:"pointer"},p={cursor:"auto"};function r(o,M){var b=o.projection,I;return M._isScoped?I=n:M._isClipped?I=u:I=f,I(o,b)}G.exports=r;function t(o,M){return m.behavior.zoom().translate(M.translate()).scale(M.scale())}function a(o,M,b){var I=o.id,D=o.graphDiv,N=D.layout,k=N[I],O=D._fullLayout,F=O[I],z={},B={};function W(J,re){z[I+"."+J]=P.nestedProperty(k,J).get(),s.call("_storeDirectGUIEdit",N,O._preGUI,z);var ne=P.nestedProperty(F,J);ne.get()!==re&&(ne.set(re),P.nestedProperty(k,J).set(re),B[I+"."+J]=re)}b(W),W("projection.scale",M.scale()/o.fitScale),W("fitbounds",!1),D.emit("plotly_relayout",B)}function n(o,M){var b=t(o,M);function I(){m.select(this).style(v)}function D(){M.scale(m.event.scale).translate(m.event.translate),o.render(!0);var O=M.invert(o.midPt);o.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":M.scale()/o.fitScale,"geo.center.lon":O[0],"geo.center.lat":O[1]})}function N(O){var F=M.invert(o.midPt);O("center.lon",F[0]),O("center.lat",F[1])}function k(){m.select(this).style(p),a(o,M,N)}return b.on("zoomstart",I).on("zoom",D).on("zoomend",k),b}function f(o,M){var b=t(o,M),I=2,D,N,k,O,F,z,B,W,J;function re(X){return M.invert(X)}function ne(X){var Q=re(X);if(!Q)return!0;var oe=M(Q);return Math.abs(oe[0]-X[0])>I||Math.abs(oe[1]-X[1])>I}function le(){m.select(this).style(v),D=m.mouse(this),N=M.rotate(),k=M.translate(),O=N,F=re(D)}function $(){if(z=m.mouse(this),ne(D)){b.scale(M.scale()),b.translate(M.translate());return}M.scale(m.event.scale),M.translate([k[0],m.event.translate[1]]),F?re(z)&&(W=re(z),B=[O[0]+(W[0]-F[0]),N[1],N[2]],M.rotate(B),O=B):(D=z,F=re(D)),J=!0,o.render(!0);var X=M.rotate(),Q=M.invert(o.midPt);o.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":M.scale()/o.fitScale,"geo.center.lon":Q[0],"geo.center.lat":Q[1],"geo.projection.rotation.lon":-X[0]})}function Z(){m.select(this).style(p),J&&a(o,M,ie)}function ie(X){var Q=M.rotate(),oe=M.invert(o.midPt);X("projection.rotation.lon",-Q[0]),X("center.lon",oe[0]),X("center.lat",oe[1])}return b.on("zoomstart",le).on("zoom",$).on("zoomend",Z),b}function u(o,M){M.rotate(),M.scale();var b=t(o,M),I=A(b,"zoomstart","zoom","zoomend"),D=0,N=b.on,k;b.on("zoomstart",function(){m.select(this).style(v);var W=m.mouse(this),J=M.rotate(),re=J,ne=M.translate(),le=g(J);k=l(M,W),N.call(b,"zoom",function(){var $=m.mouse(this);if(M.scale(m.event.scale),!k)W=$,k=l(M,W);else if(l(M,$)){M.rotate(J).translate(ne);var Z=l(M,$),ie=T(k,Z),X=w(h(le,ie)),Q=c(X,k,re);(!isFinite(Q[0])||!isFinite(Q[1])||!isFinite(Q[2]))&&(Q=re),M.rotate(Q),re=Q}F(I.of(this,arguments))}),O(I.of(this,arguments))}).on("zoomend",function(){m.select(this).style(p),N.call(b,"zoom",null),z(I.of(this,arguments)),a(o,M,B)}).on("zoom.redraw",function(){o.render(!0);var W=M.rotate();o.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":M.scale()/o.fitScale,"geo.projection.rotation.lon":-W[0],"geo.projection.rotation.lat":-W[1]})});function O(W){D++||W({type:"zoomstart"})}function F(W){W({type:"zoom"})}function z(W){--D||W({type:"zoomend"})}function B(W){var J=M.rotate();W("projection.rotation.lon",-J[0]),W("projection.rotation.lat",-J[1])}return m.rebind(b,I,"on")}function l(o,M){var b=o.invert(M);return b&&isFinite(b[0])&&isFinite(b[1])&&C(b)}function g(o){var M=.5*o[0]*L,b=.5*o[1]*L,I=.5*o[2]*L,D=Math.sin(M),N=Math.cos(M),k=Math.sin(b),O=Math.cos(b),F=Math.sin(I),z=Math.cos(I);return[N*O*z+D*k*F,D*O*z-N*k*F,N*k*z+D*O*F,N*O*F-D*k*z]}function h(o,M){var b=o[0],I=o[1],D=o[2],N=o[3],k=M[0],O=M[1],F=M[2],z=M[3];return[b*k-I*O-D*F-N*z,b*O+I*k+D*z-N*F,b*F-I*z+D*k+N*O,b*z+I*F-D*O+N*k]}function T(o,M){if(!(!o||!M)){var b=E(o,M),I=Math.sqrt(y(b,b)),D=.5*Math.acos(Math.max(-1,Math.min(1,y(o,M)))),N=Math.sin(D)/I;return I&&[Math.cos(D),b[2]*N,-b[1]*N,b[0]*N]}}function c(o,M,b){var I=x(M,2,o[0]);I=x(I,1,o[1]),I=x(I,0,o[2]-b[2]);var D=M[0],N=M[1],k=M[2],O=I[0],F=I[1],z=I[2],B=Math.atan2(N,D)*S,W=Math.sqrt(D*D+N*N),J,re;Math.abs(F)>W?(re=(F>0?90:-90)-B,J=0):(re=Math.asin(F/W)*S-B,J=Math.sqrt(W*W-F*F));var ne=180-re-2*B,le=(Math.atan2(z,O)-Math.atan2(k,J))*S,$=(Math.atan2(z,O)-Math.atan2(k,-J))*S,Z=i(b[0],b[1],re,le),ie=i(b[0],b[1],ne,$);return Z<=ie?[re,le,b[2]]:[ne,$,b[2]]}function i(o,M,b,I){var D=d(b-o),N=d(I-M);return Math.sqrt(D*D+N*N)}function d(o){return(o%360+540)%360-180}function x(o,M,b){var I=b*L,D=o.slice(),N=M===0?1:0,k=M===2?1:2,O=Math.cos(I),F=Math.sin(I);return D[N]=o[N]*O-o[k]*F,D[k]=o[k]*O+o[N]*F,D}function w(o){return[Math.atan2(2*(o[0]*o[1]+o[2]*o[3]),1-2*(o[1]*o[1]+o[2]*o[2]))*S,Math.asin(Math.max(-1,Math.min(1,2*(o[0]*o[2]-o[3]*o[1]))))*S,Math.atan2(2*(o[0]*o[3]+o[1]*o[2]),1-2*(o[2]*o[2]+o[3]*o[3]))*S]}function C(o){var M=o[0]*L,b=o[1]*L,I=Math.cos(b);return[I*Math.cos(M),I*Math.sin(M),Math.sin(b)]}function y(o,M){for(var b=0,I=0,D=o.length;IMath.abs(E)?(n.boxEnd[1]=n.boxStart[1]+Math.abs(y)*D*(E>=0?1:-1),n.boxEnd[1]c[3]&&(n.boxEnd[1]=c[3],n.boxEnd[0]=n.boxStart[0]+(c[3]-n.boxStart[1])/Math.abs(D))):(n.boxEnd[0]=n.boxStart[0]+Math.abs(E)/D*(y>=0?1:-1),n.boxEnd[0]c[2]&&(n.boxEnd[0]=c[2],n.boxEnd[1]=n.boxStart[1]+(c[2]-n.boxStart[0])*Math.abs(D)))}else b&&(n.boxEnd[0]=n.boxStart[0]),I&&(n.boxEnd[1]=n.boxStart[1])}else n.boxEnabled?(y=n.boxStart[0]!==n.boxEnd[0],E=n.boxStart[1]!==n.boxEnd[1],y||E?(y&&(A(0,n.boxStart[0],n.boxEnd[0]),r.xaxis.autorange=!1),E&&(A(1,n.boxStart[1],n.boxEnd[1]),r.yaxis.autorange=!1),r.relayoutCallback()):r.glplot.setDirty(),n.boxEnabled=!1,n.boxInited=!1):n.boxInited&&(n.boxInited=!1);break;case"pan":n.boxEnabled=!1,n.boxInited=!1,g?(n.panning||(n.dragStart[0]=h,n.dragStart[1]=T),Math.abs(n.dragStart[0]-h)1;function g(h){if(!l){var T=m.validate(n[h],v[h]);if(T)return n[h]}}L(n,f,u,{type:r,attributes:v,handleDefaults:t,fullLayout:f,font:f.font,fullData:u,getDfltFromLayout:g,autotypenumbersDflt:f.autotypenumbers,paper_bgcolor:f.paper_bgcolor,calendar:f.calendar})};function t(a,n,f,u){for(var l=f("bgcolor"),g=P.combine(l,u.paper_bgcolor),h=["up","center","eye"],T=0;T.999)&&(w="turntable")}else w="turntable";f("dragmode",w),f("hovermode",u.getDfltFromLayout("hovermode"))}},346:function(G,H,e){var m=e(86140),P=e(86968).u,s=e(92880).extendFlat,L=e(3400).counterRegex;function S(v,p,r){return{x:{valType:"number",dflt:v,editType:"camera"},y:{valType:"number",dflt:p,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}G.exports={_arrayAttrRegexps:[L("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:s(S(0,0,1),{}),center:s(S(0,0,0),{}),eye:s(S(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:P({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:m,yaxis:m,zaxis:m,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(G,H,e){var m=e(43080),P=["xaxis","yaxis","zaxis"];function s(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var L=s.prototype;L.merge=function(v){for(var p=0;p<3;++p){var r=v[P[p]];if(!r.visible){this.enabled[p]=!1,this.drawSides[p]=!1;continue}this.enabled[p]=r.showspikes,this.colors[p]=m(r.spikecolor),this.drawSides[p]=r.spikesides,this.lineWidth[p]=r.spikethickness}};function S(v){var p=new s;return p.merge(v),p}G.exports=S},87152:function(G,H,e){G.exports=S;var m=e(54460),P=e(3400),s=["xaxis","yaxis","zaxis"];function L(v){for(var p=new Array(3),r=0;r<3;++r){for(var t=v[r],a=new Array(t.length),n=0;n/g," "));a[n]=g,f.tickmode=u}}p.ticks=a;for(var n=0;n<3;++n){.5*(v.glplot.bounds[0][n]+v.glplot.bounds[1][n]);for(var h=0;h<2;++h)p.bounds[h][n]=v.glplot.bounds[h][n]}v.contourLevels=L(a)}},94424:function(G){function H(m,P){var s=[0,0,0,0],L,S;for(L=0;L<4;++L)for(S=0;S<4;++S)s[S]+=m[4*L+S]*P[L];return s}function e(m,P){var s=H(m.projection,H(m.view,H(m.model,[P[0],P[1],P[2],1])));return s}G.exports=e},98432:function(G,H,e){var m=e(67792).gl_plot3d,P=m.createCamera,s=m.createScene,L=e(5408),S=e(89184),v=e(24040),p=e(3400),r=p.preserveDrawingBuffer(),t=e(54460),a=e(93024),n=e(43080),f=e(16576),u=e(94424),l=e(44728),g=e(9020),h=e(87152),T=e(19280).applyAutorangeOptions,c,i,d=!1;function x(D,N){var k=document.createElement("div"),O=D.container;this.graphDiv=D.graphDiv;var F=document.createElementNS("http://www.w3.org/2000/svg","svg");F.style.position="absolute",F.style.top=F.style.left="0px",F.style.width=F.style.height="100%",F.style["z-index"]=20,F.style["pointer-events"]="none",k.appendChild(F),this.svgContainer=F,k.id=D.id,k.style.position="absolute",k.style.top=k.style.left="0px",k.style.width=k.style.height="100%",O.appendChild(k),this.fullLayout=N,this.id=D.id||"scene",this.fullSceneLayout=N[this.id],this.plotArgs=[[],{},{}],this.axesOptions=l(N,N[this.id]),this.spikeOptions=g(N[this.id]),this.container=k,this.staticMode=!!D.staticPlot,this.pixelRatio=this.pixelRatio||D.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=v.getComponentMethod("annotations3d","convert"),this.drawAnnotations=v.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var w=x.prototype;w.prepareOptions=function(){var D=this,N={canvas:D.canvas,gl:D.gl,glOptions:{preserveDrawingBuffer:r,premultipliedAlpha:!0,antialias:!0},container:D.container,axes:D.axesOptions,spikes:D.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:D.camera,pixelRatio:D.pixelRatio};if(D.staticMode){if(!i&&(c=document.createElement("canvas"),i=L({canvas:c,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!i))throw new Error("error creating static canvas/context for image server");N.gl=i,N.canvas=c}return N};var C=!0;w.tryCreatePlot=function(){var D=this,N=D.prepareOptions(),k=!0;try{D.glplot=s(N)}catch{if(D.staticMode||!C||r)k=!1;else{p.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{r=N.glOptions.preserveDrawingBuffer=!0,D.glplot=s(N)}catch{r=N.glOptions.preserveDrawingBuffer=!1,k=!1}}}return C=!1,k},w.initializeGLCamera=function(){var D=this,N=D.fullSceneLayout.camera,k=N.projection.type==="orthographic";D.camera=P(D.container,{center:[N.center.x,N.center.y,N.center.z],eye:[N.eye.x,N.eye.y,N.eye.z],up:[N.up.x,N.up.y,N.up.z],_ortho:k,zoomMin:.01,zoomMax:100,mode:"orbit"})},w.initializeGLPlot=function(){var D=this;D.initializeGLCamera();var N=D.tryCreatePlot();if(!N)return f(D);D.traces={},D.make4thDimension();var k=D.graphDiv,O=k.layout,F=function(){var B={};return D.isCameraChanged(O)&&(B[D.id+".camera"]=D.getCamera()),D.isAspectChanged(O)&&(B[D.id+".aspectratio"]=D.glplot.getAspectratio(),O[D.id].aspectmode!=="manual"&&(D.fullSceneLayout.aspectmode=O[D.id].aspectmode=B[D.id+".aspectmode"]="manual")),B},z=function(B){if(B.fullSceneLayout.dragmode!==!1){var W=F();B.saveLayout(O),B.graphDiv.emit("plotly_relayout",W)}};return D.glplot.canvas&&(D.glplot.canvas.addEventListener("mouseup",function(){z(D)}),D.glplot.canvas.addEventListener("touchstart",function(){d=!0}),D.glplot.canvas.addEventListener("wheel",function(B){if(k._context._scrollZoom.gl3d){if(D.camera._ortho){var W=B.deltaX>B.deltaY?1.1:.9090909090909091,J=D.glplot.getAspectratio();D.glplot.setAspectratio({x:W*J.x,y:W*J.y,z:W*J.z})}z(D)}},S?{passive:!1}:!1),D.glplot.canvas.addEventListener("mousemove",function(){if(D.fullSceneLayout.dragmode!==!1&&D.camera.mouseListener.buttons!==0){var B=F();D.graphDiv.emit("plotly_relayouting",B)}}),D.staticMode||D.glplot.canvas.addEventListener("webglcontextlost",function(B){k&&k.emit&&k.emit("plotly_webglcontextlost",{event:B,layer:D.id})},!1)),D.glplot.oncontextloss=function(){D.recoverContext()},D.glplot.onrender=function(){D.render()},!0},w.render=function(){var D=this,N=D.graphDiv,k,O=D.svgContainer,F=D.container.getBoundingClientRect();N._fullLayout._calcInverseTransform(N);var z=N._fullLayout._invScaleX,B=N._fullLayout._invScaleY,W=F.width*z,J=F.height*B;O.setAttributeNS(null,"viewBox","0 0 "+W+" "+J),O.setAttributeNS(null,"width",W),O.setAttributeNS(null,"height",J),h(D),D.glplot.axes.update(D.axesOptions);for(var re=Object.keys(D.traces),ne=null,le=D.glplot.selection,$=0;$")):k.type==="isosurface"||k.type==="volume"?(oe.valueLabel=t.hoverLabelText(D._mockAxis,D._mockAxis.d2l(le.traceCoordinate[3]),k.valuehoverformat),fe.push("value: "+oe.valueLabel),le.textLabel&&fe.push(le.textLabel),te=fe.join("
")):te=le.textLabel;var ge={x:le.traceCoordinate[0],y:le.traceCoordinate[1],z:le.traceCoordinate[2],data:X._input,fullData:X,curveNumber:X.index,pointNumber:Q};a.appendArrayPointValue(ge,X,Q),k._module.eventData&&(ge=X._module.eventData(ge,le,X,{},Q));var be={points:[ge]};if(D.fullSceneLayout.hovermode){var xe=[];a.loneHover({trace:X,x:(.5+.5*ie[0]/ie[3])*W,y:(.5-.5*ie[1]/ie[3])*J,xLabel:oe.xLabel,yLabel:oe.yLabel,zLabel:oe.zLabel,text:te,name:ne.name,color:a.castHoverOption(X,Q,"bgcolor")||ne.color,borderColor:a.castHoverOption(X,Q,"bordercolor"),fontFamily:a.castHoverOption(X,Q,"font.family"),fontSize:a.castHoverOption(X,Q,"font.size"),fontColor:a.castHoverOption(X,Q,"font.color"),nameLength:a.castHoverOption(X,Q,"namelength"),textAlign:a.castHoverOption(X,Q,"align"),hovertemplate:p.castOption(X,Q,"hovertemplate"),hovertemplateLabels:p.extendFlat({},ge,oe),eventData:[ge]},{container:O,gd:N,inOut_bbox:xe}),ge.bbox=xe[0]}le.distance<5&&(le.buttons||d)?N.emit("plotly_click",be):N.emit("plotly_hover",be),this.oldEventData=be}else a.loneUnhover(O),this.oldEventData&&N.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;D.drawAnnotations(D)},w.recoverContext=function(){var D=this;D.glplot.dispose();var N=function(){if(D.glplot.gl.isContextLost()){requestAnimationFrame(N);return}if(!D.initializeGLPlot()){p.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}D.plot.apply(D,D.plotArgs)};requestAnimationFrame(N)};var y=["xaxis","yaxis","zaxis"];function E(D,N,k){for(var O=D.fullSceneLayout,F=0;F<3;F++){var z=y[F],B=z.charAt(0),W=O[z],J=N[B],re=N[B+"calendar"],ne=N["_"+B+"length"];if(!p.isArrayOrTypedArray(J))k[0][F]=Math.min(k[0][F],0),k[1][F]=Math.max(k[1][F],ne-1);else for(var le,$=0;$<(ne||J.length);$++)if(p.isArrayOrTypedArray(J[$]))for(var Z=0;ZX[1][B])X[0][B]=-1,X[1][B]=1;else{var _e=X[1][B]-X[0][B];X[0][B]-=_e/32,X[1][B]+=_e/32}if(oe=[X[0][B],X[1][B]],oe=T(oe,J),X[0][B]=oe[0],X[1][B]=oe[1],J.isReversed()){var De=X[0][B];X[0][B]=X[1][B],X[1][B]=De}}else oe=J.range,X[0][B]=J.r2l(oe[0]),X[1][B]=J.r2l(oe[1]);X[0][B]===X[1][B]&&(X[0][B]-=1,X[1][B]+=1),J.range=[X[0][B],X[1][B]],J.limitRange(),O.glplot.setBounds(B,{min:J.range[0]*Z[B],max:J.range[1]*Z[B]})}var Fe,Te=ne.aspectmode;if(Te==="cube")Fe=[1,1,1];else if(Te==="manual"){var Re=ne.aspectratio;Fe=[Re.x,Re.y,Re.z]}else if(Te==="auto"||Te==="data"){var Se=[1,1,1];for(B=0;B<3;++B){J=ne[y[B]],re=J.type;var Ie=Q[re];Se[B]=Math.pow(Ie.acc,1/Ie.count)/Z[B]}Te==="data"||Math.max.apply(null,Se)/Math.min.apply(null,Se)<=4?Fe=Se:Fe=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");ne.aspectratio.x=le.aspectratio.x=Fe[0],ne.aspectratio.y=le.aspectratio.y=Fe[1],ne.aspectratio.z=le.aspectratio.z=Fe[2],O.glplot.setAspectratio(ne.aspectratio),O.viewInitial.aspectratio||(O.viewInitial.aspectratio={x:ne.aspectratio.x,y:ne.aspectratio.y,z:ne.aspectratio.z}),O.viewInitial.aspectmode||(O.viewInitial.aspectmode=ne.aspectmode);var Me=ne.domain||null,Ve=N._size||null;if(Me&&Ve){var et=O.container.style;et.position="absolute",et.left=Ve.l+Me.x[0]*Ve.w+"px",et.top=Ve.t+(1-Me.y[1])*Ve.h+"px",et.width=Ve.w*(Me.x[1]-Me.x[0])+"px",et.height=Ve.h*(Me.y[1]-Me.y[0])+"px"}O.glplot.redraw()}},w.destroy=function(){var D=this;D.glplot&&(D.camera.mouseListener.enabled=!1,D.container.removeEventListener("wheel",D.camera.wheelListener),D.camera=null,D.glplot.dispose(),D.container.parentNode.removeChild(D.container),D.glplot=null)};function o(D){return[[D.eye.x,D.eye.y,D.eye.z],[D.center.x,D.center.y,D.center.z],[D.up.x,D.up.y,D.up.z]]}function M(D){return{up:{x:D.up[0],y:D.up[1],z:D.up[2]},center:{x:D.center[0],y:D.center[1],z:D.center[2]},eye:{x:D.eye[0],y:D.eye[1],z:D.eye[2]},projection:{type:D._ortho===!0?"orthographic":"perspective"}}}w.getCamera=function(){var D=this;return D.camera.view.recalcMatrix(D.camera.view.lastT()),M(D.camera)},w.setViewport=function(D){var N=this,k=D.camera;N.camera.lookAt.apply(this,o(k)),N.glplot.setAspectratio(D.aspectratio);var O=k.projection.type==="orthographic",F=N.camera._ortho;O!==F&&(N.glplot.redraw(),N.glplot.clearRGBA(),N.glplot.dispose(),N.initializeGLPlot())},w.isCameraChanged=function(D){var N=this,k=N.getCamera(),O=p.nestedProperty(D,N.id+".camera"),F=O.get();function z(re,ne,le,$){var Z=["up","center","eye"],ie=["x","y","z"];return ne[Z[le]]&&re[Z[le]][ie[$]]===ne[Z[le]][ie[$]]}var B=!1;if(F===void 0)B=!0;else{for(var W=0;W<3;W++)for(var J=0;J<3;J++)if(!z(k,F,W,J)){B=!0;break}(!F.projection||k.projection&&k.projection.type!==F.projection.type)&&(B=!0)}return B},w.isAspectChanged=function(D){var N=this,k=N.glplot.getAspectratio(),O=p.nestedProperty(D,N.id+".aspectratio"),F=O.get();return F===void 0||F.x!==k.x||F.y!==k.y||F.z!==k.z},w.saveLayout=function(D){var N=this,k=N.fullLayout,O,F,z,B,W,J,re=N.isCameraChanged(D),ne=N.isAspectChanged(D),le=re||ne;if(le){var $={};if(re&&(O=N.getCamera(),F=p.nestedProperty(D,N.id+".camera"),z=F.get(),$[N.id+".camera"]=z),ne&&(B=N.glplot.getAspectratio(),W=p.nestedProperty(D,N.id+".aspectratio"),J=W.get(),$[N.id+".aspectratio"]=J),v.call("_storeDirectGUIEdit",D,k._preGUI,$),re){F.set(O);var Z=p.nestedProperty(k,N.id+".camera");Z.set(O)}if(ne){W.set(B);var ie=p.nestedProperty(k,N.id+".aspectratio");ie.set(B),N.glplot.redraw()}}return le},w.updateFx=function(D,N){var k=this,O=k.camera;if(O)if(D==="orbit")O.mode="orbit",O.keyBindingMode="rotate";else if(D==="turntable"){O.up=[0,0,1],O.mode="turntable",O.keyBindingMode="rotate";var F=k.graphDiv,z=F._fullLayout,B=k.fullSceneLayout.camera,W=B.up.x,J=B.up.y,re=B.up.z;if(re/Math.sqrt(W*W+J*J+re*re)<.999){var ne=k.id+".camera.up",le={x:0,y:0,z:1},$={};$[ne]=le;var Z=F.layout;v.call("_storeDirectGUIEdit",Z,z._preGUI,$),B.up=le,p.nestedProperty(Z,ne).set(le)}}else O.keyBindingMode=D;k.fullSceneLayout.hovermode=N};function b(D,N,k){for(var O=0,F=k-1;O0)for(var W=255/B,J=0;J<3;++J)D[z+J]=Math.min(W*D[z+J],255)}}w.toImage=function(D){var N=this;D||(D="png"),N.staticMode&&N.container.appendChild(c),N.glplot.redraw();var k=N.glplot.gl,O=k.drawingBufferWidth,F=k.drawingBufferHeight;k.bindFramebuffer(k.FRAMEBUFFER,null);var z=new Uint8Array(O*F*4);k.readPixels(0,0,O,F,k.RGBA,k.UNSIGNED_BYTE,z),b(z,O,F),I(z,O,F);var B=document.createElement("canvas");B.width=O,B.height=F;var W=B.getContext("2d",{willReadFrequently:!0}),J=W.createImageData(O,F);J.data.set(z),W.putImageData(J,0,0);var re;switch(D){case"jpeg":re=B.toDataURL("image/jpeg");break;case"webp":re=B.toDataURL("image/webp");break;default:re=B.toDataURL("image/png")}return N.staticMode&&N.container.removeChild(c),re},w.setConvert=function(){for(var D=this,N=0;N<3;N++){var k=D.fullSceneLayout[y[N]];t.setConvert(k,D.fullLayout),k.setScale=p.noop}},w.make4thDimension=function(){var D=this,N=D.graphDiv,k=N._fullLayout;D._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},t.setConvert(D._mockAxis,k)},G.exports=x},52094:function(G){G.exports=function(e,m,P,s){s=s||e.length;for(var L=new Array(s),S=0;SOpenStreetMap contributors',L=['© Carto',s].join(" "),S=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),v=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),p={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:s,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:L,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:L,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:S,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:S,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:v,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},r=m(p);G.exports={requiredVersion:P,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:p,styleValuesNonMapbox:r,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+P+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` `),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",r.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` `),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}},89032:function(G,H,e){var m=e(3400);G.exports=function(s,L){var S=s.split(" "),v=S[0],p=S[1],r=m.isArrayOrTypedArray(L)?m.mean(L):L,t=.5+r/100,a=1.5+r/100,n=["",""],f=[0,0];switch(v){case"top":n[0]="top",f[1]=-a;break;case"bottom":n[0]="bottom",f[1]=a;break}switch(p){case"left":n[1]="right",f[0]=-t;break;case"right":n[1]="left",f[0]=t;break}var u;return n[0]&&n[1]?u=n.join("-"):n[0]?u=n[0]:n[1]?u=n[1]:u="center",{anchor:u,offset:f}}},33688:function(G,H,e){var m=e(3480),P=e(3400),s=P.strTranslate,L=P.strScale,S=e(84888).KY,v=e(9616),p=e(33428),r=e(43616),t=e(72736),a=e(14440),n="mapbox",f=H.constants=e(47552);H.name=n,H.attr="subplot",H.idRoot=n,H.idRegex=H.attrRegex=P.counterRegex(n),H.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},H.layoutAttributes=e(5232),H.supplyLayoutDefaults=e(5976),H.plot=function(h){var T=h._fullLayout,c=h.calcdata,i=T._subplots[n];if(m.version!==f.requiredVersion)throw new Error(f.wrongVersionErrorMsg);var d=u(h,i);m.accessToken=d;for(var x=0;xN/2){var k=M.split("|").join("
");I.text(k).attr("data-unformatted",k).call(t.convertToTspans,g),D=r.bBox(I.node())}I.attr("transform",s(-3,-D.height+8)),b.insert("rect",".static-attribution").attr({x:-D.width-6,y:-D.height-3,width:D.width+6,height:D.height+3,fill:"rgba(255, 255, 255, 0.75)"});var O=1;D.width+6>N&&(O=N/(D.width+6));var F=[c.l+c.w*x.x[1],c.t+c.h*(1-x.y[0])];b.attr("transform",s(F[0],F[1])+L(O))}};function u(g,h){var T=g._fullLayout,c=g._context;if(c.mapboxAccessToken==="")return"";for(var i=[],d=[],x=!1,w=!1,C=0;C1&&P.warn(f.multipleTokensErrorMsg),i[0]):(d.length&&P.log(["Listed mapbox access token(s)",d.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function l(g){return typeof g=="string"&&(f.styleValuesMapbox.indexOf(g)!==-1||g.indexOf("mapbox://")===0||g.indexOf("stamen")===0)}H.updateFx=function(g){for(var h=g._fullLayout,T=h._subplots[n],c=0;c0){for(var f=0;f0}function r(a){var n={},f={};switch(a.type){case"circle":m.extendFlat(f,{"circle-radius":a.circle.radius,"circle-color":a.color,"circle-opacity":a.opacity});break;case"line":m.extendFlat(f,{"line-width":a.line.width,"line-color":a.color,"line-opacity":a.opacity,"line-dasharray":a.line.dash});break;case"fill":m.extendFlat(f,{"fill-color":a.color,"fill-outline-color":a.fill.outlinecolor,"fill-opacity":a.opacity});break;case"symbol":var u=a.symbol,l=s(u.textposition,u.iconsize);m.extendFlat(n,{"icon-image":u.icon+"-15","icon-size":u.iconsize/10,"text-field":u.text,"text-size":u.textfont.size,"text-anchor":l.anchor,"text-offset":l.offset,"symbol-placement":u.placement}),m.extendFlat(f,{"icon-color":a.color,"text-color":u.textfont.color,"text-opacity":a.opacity});break;case"raster":m.extendFlat(f,{"raster-fade-duration":0,"raster-opacity":a.opacity});break}return{layout:n,paint:f}}function t(a){var n=a.sourcetype,f=a.source,u={type:n},l;return n==="geojson"?l="data":n==="vector"?l=typeof f=="string"?"url":"tiles":n==="raster"?(l="tiles",u.tileSize=256):n==="image"&&(l="url",u.coordinates=a.coordinates),u[l]=f,a.sourceattribution&&(u.attribution=P(a.sourceattribution)),u}G.exports=function(n,f,u){var l=new S(n,f);return l.update(u),l}},5232:function(G,H,e){var m=e(3400),P=e(76308).defaultLine,s=e(86968).u,L=e(25376),S=e(52904).textposition,v=e(67824).overrideAll,p=e(31780).templatedArray,r=e(47552),t=L({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});t.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var a=G.exports=v({_arrayAttrRegexps:[m.counterRegex("mapbox",".layers",!0)],domain:s({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:r.styleValuesMapbox.concat(r.styleValuesNonMapbox),dflt:r.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:p("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:P},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:P}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:t,textposition:m.extendFlat({},S,{arrayOk:!1})}})},"plot","from-root");a.uirevision={valType:"any",editType:"none"}},5976:function(G,H,e){var m=e(3400),P=e(168),s=e(51272),L=e(5232);G.exports=function(r,t,a){P(r,t,a,{type:"mapbox",attributes:L,handleDefaults:S,partition:"y",accessToken:t._mapboxAccessToken})};function S(p,r,t,a){t("accesstoken",a.accessToken),t("style"),t("center.lon"),t("center.lat"),t("zoom"),t("bearing"),t("pitch");var n=t("bounds.west"),f=t("bounds.east"),u=t("bounds.south"),l=t("bounds.north");(n===void 0||f===void 0||u===void 0||l===void 0)&&delete r.bounds,s(p,r,{name:"layers",handleItemDefaults:v}),r._input=p}function v(p,r){function t(g,h){return m.coerce(p,r,L.layers,g,h)}var a=t("visible");if(a){var n=t("sourcetype"),f=n==="raster"||n==="image";t("source"),t("sourceattribution"),n==="vector"&&t("sourcelayer"),n==="image"&&t("coordinates");var u;f&&(u="raster");var l=t("type",u);f&&l!=="raster"&&(l=r.type="raster",m.log("Source types *raster* and *image* must drawn *raster* layer type.")),t("below"),t("color"),t("opacity"),t("minzoom"),t("maxzoom"),l==="circle"&&t("circle.radius"),l==="line"&&(t("line.width"),t("line.dash")),l==="fill"&&t("fill.outlinecolor"),l==="symbol"&&(t("symbol.icon"),t("symbol.iconsize"),t("symbol.text"),m.coerceFont(t,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),t("symbol.textposition"),t("symbol.placement"))}}},14440:function(G,H,e){var m=e(3480),P=e(3400),s=e(27144),L=e(24040),S=e(54460),v=e(86476),p=e(93024),r=e(72760),t=r.drawMode,a=r.selectMode,n=e(22676).prepSelect,f=e(22676).clearOutline,u=e(22676).clearSelectionsCache,l=e(22676).selectOnClick,g=e(47552),h=e(22360);function T(C,y){this.id=y,this.gd=C;var E=C._fullLayout,A=C._context;this.container=E._glcontainer.node(),this.isStatic=A.staticPlot,this.uid=E._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(E),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var c=T.prototype;c.plot=function(C,y,E){var A=this,o=y[A.id];A.map&&o.accesstoken!==A.accessToken&&(A.map.remove(),A.map=null,A.styleObj=null,A.traceHash={},A.layerList=[]);var M;A.map?M=new Promise(function(b,I){A.updateMap(C,y,b,I)}):M=new Promise(function(b,I){A.createMap(C,y,b,I)}),E.push(M)},c.createMap=function(C,y,E,A){var o=this,M=y[o.id],b=o.styleObj=d(M.style,y);o.accessToken=M.accesstoken;var I=M.bounds,D=I?[[I.west,I.south],[I.east,I.north]]:null,N=o.map=new m.Map({container:o.div,style:b.style,center:w(M.center),zoom:M.zoom,bearing:M.bearing,pitch:M.pitch,maxBounds:D,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new m.AttributionControl({compact:!0}));N._canvas.style.left="0px",N._canvas.style.top="0px",o.rejectOnError(A),o.isStatic||o.initFx(C,y);var k=[];k.push(new Promise(function(O){N.once("load",O)})),k=k.concat(s.fetchTraceGeoData(C)),Promise.all(k).then(function(){o.fillBelowLookup(C,y),o.updateData(C),o.updateLayout(y),o.resolveOnRender(E)}).catch(A)},c.updateMap=function(C,y,E,A){var o=this,M=o.map,b=y[this.id];o.rejectOnError(A);var I=[],D=d(b.style,y);JSON.stringify(o.styleObj)!==JSON.stringify(D)&&(o.styleObj=D,M.setStyle(D.style),o.traceHash={},I.push(new Promise(function(N){M.once("styledata",N)}))),I=I.concat(s.fetchTraceGeoData(C)),Promise.all(I).then(function(){o.fillBelowLookup(C,y),o.updateData(C),o.updateLayout(y),o.resolveOnRender(E)}).catch(A)},c.fillBelowLookup=function(C,y){var E=y[this.id],A=E.layers,o,M,b=this.belowLookup={},I=!1;for(o=0;o1)for(o=0;o-1&&l(D.originalEvent,A,[E.xaxis],[E.yaxis],E.id,I),N.indexOf("event")>-1&&p.click(A,D.originalEvent)}}},c.updateFx=function(C){var y=this,E=y.map,A=y.gd;if(y.isStatic)return;function o(D){var N=y.map.unproject(D);return[N.lng,N.lat]}var M=C.dragmode,b;b=function(D,N){if(N.isRect){var k=D.range={};k[y.id]=[o([N.xmin,N.ymin]),o([N.xmax,N.ymax])]}else{var O=D.lassoPoints={};O[y.id]=N.map(o)}};var I=y.dragOptions;y.dragOptions=P.extendDeep(I||{},{dragmode:C.dragmode,element:y.div,gd:A,plotinfo:{id:y.id,domain:C[y.id].domain,xaxis:y.xaxis,yaxis:y.yaxis,fillRangeItems:b},xaxes:[y.xaxis],yaxes:[y.yaxis],subplot:y.id}),E.off("click",y.onClickInPanHandler),a(M)||t(M)?(E.dragPan.disable(),E.on("zoomstart",y.clearOutline),y.dragOptions.prepFn=function(D,N,k){n(D,N,k,y.dragOptions,M)},v.init(y.dragOptions)):(E.dragPan.enable(),E.off("zoomstart",y.clearOutline),y.div.onmousedown=null,y.div.ontouchstart=null,y.div.removeEventListener("touchstart",y.div._ontouchstart),y.onClickInPanHandler=y.onClickInPanFn(y.dragOptions),E.on("click",y.onClickInPanHandler))},c.updateFramework=function(C){var y=C[this.id].domain,E=C._size,A=this.div.style;A.width=E.w*(y.x[1]-y.x[0])+"px",A.height=E.h*(y.y[1]-y.y[0])+"px",A.left=E.l+y.x[0]*E.w+"px",A.top=E.t+(1-y.y[1])*E.h+"px",this.xaxis._offset=E.l+y.x[0]*E.w,this.xaxis._length=E.w*(y.x[1]-y.x[0]),this.yaxis._offset=E.t+(1-y.y[1])*E.h,this.yaxis._length=E.h*(y.y[1]-y.y[0])},c.updateLayers=function(C){var y=C[this.id],E=y.layers,A=this.layerList,o;if(E.length!==A.length){for(o=0;o=Q.width-20?(j["text-anchor"]="start",j.x=5):(j["text-anchor"]="end",j.x=Q._paper.attr("width")-7),oe.attr(j);var se=oe.select(".js-link-to-tool"),te=oe.select(".js-link-spacer"),fe=oe.select(".js-sourcelinks");X._context.showSources&&X._context.showSources(X),X._context.showLink&&C(X,se),te.text(se.text()&&fe.text()?" - ":"")}};function C(X,Q){Q.text("");var oe=Q.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(X._context.linkText+" »");if(X._context.sendData)oe.on("click",function(){d.sendDataToCloud(X)});else{var Y=window.location.pathname.split("/"),j=window.location.search;oe.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+Y[2].split(".")[0]+"/"+Y[1]+j})}}d.sendDataToCloud=function(X){var Q=(window.PLOTLYENV||{}).BASE_URL||X._context.plotlyServerURL;if(Q){X.emit("plotly_beforeexport");var oe=m.select(X).append("div").attr("id","hiddenform").style("display","none"),Y=oe.append("form").attr({action:Q+"/external",method:"post",target:"_blank"}),j=Y.append("input").attr({type:"text",name:"data"});return j.node().value=d.graphJson(X,!1,"keepdata"),Y.node().submit(),oe.remove(),X.emit("plotly_afterexport"),!1}};var y=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],E=["year","month","dayMonth","dayMonthYear"];d.supplyDefaults=function(X,Q){var oe=Q&&Q.skipUpdateCalc,Y=X._fullLayout||{};if(Y._skipDefaults){delete Y._skipDefaults;return}var j=X._fullLayout={},se=X.layout||{},te=X._fullData||[],fe=X._fullData=[],ge=X.data||[],be=X.calcdata||[],xe=X._context||{},_e;X._transitionData||d.createTransitionData(X),j._dfltTitle={plot:i(X,"Click to enter Plot title"),x:i(X,"Click to enter X axis title"),y:i(X,"Click to enter Y axis title"),colorbar:i(X,"Click to enter Colorscale title"),annotation:i(X,"new text")},j._traceWord=i(X,"trace");var De=M(X,y);if(j._mapboxAccessToken=xe.mapboxAccessToken,Y._initialAutoSizeIsDone){var Fe=Y.width,Te=Y.height;d.supplyLayoutGlobalDefaults(se,j,De),se.width||(j.width=Fe),se.height||(j.height=Te),d.sanitizeMargins(j)}else{d.supplyLayoutGlobalDefaults(se,j,De);var Re=!se.width||!se.height,Se=j.autosize,Ie=xe.autosizable,Me=Re&&(Se||Ie);Me?d.plotAutoSize(X,se,j):Re&&d.sanitizeMargins(j),!Se&&Re&&(se.width=j.width,se.height=j.height)}j._d3locale=b(De,j.separators),j._extraFormat=M(X,E),j._initialAutoSizeIsDone=!0,j._dataLength=ge.length,j._modules=[],j._visibleModules=[],j._basePlotModules=[];var Ve=j._subplots=o(),et=j._splomAxes={x:{},y:{}},ot=j._splomSubplots={};j._splomGridDflt={},j._scatterStackOpts={},j._firstScatter={},j._alignmentOpts={},j._colorAxes={},j._requestRangeslider={},j._traceUids=A(te,ge),j._globalTransforms=(X._context||{}).globalTransforms,d.supplyDataDefaults(ge,fe,se,j);var Qe=Object.keys(et.x),$e=Object.keys(et.y);if(Qe.length>1&&$e.length>1){for(v.getComponentMethod("grid","sizeDefaults")(se,j),_e=0;_e15&&$e.length>15&&j.shapes.length===0&&j.images.length===0,d.linkSubplots(fe,j,te,Y),d.cleanPlot(fe,j,te,Y);var Ct=!!(Y._has&&Y._has("gl2d")),rt=!!(j._has&&j._has("gl2d")),ze=!!(Y._has&&Y._has("cartesian")),He=!!(j._has&&j._has("cartesian")),We=ze||Ct,Ge=He||rt;We&&!Ge?Y._bgLayer.remove():Ge&&!We&&(j._shouldCreateBgLayer=!0),Y._zoomlayer&&!X._dragging&&u({_fullLayout:Y}),I(fe,j),c(j,Y),v.getComponentMethod("colorscale","crossTraceDefaults")(fe,j),j._preGUI||(j._preGUI={}),j._tracePreGUI||(j._tracePreGUI={});var Le=j._tracePreGUI,Pe={},je;for(je in Le)Pe[je]="old";for(_e=0;_e0){var xe=1-2*se;te=Math.round(xe*te),fe=Math.round(xe*fe)}}var _e=d.layoutAttributes.width.min,De=d.layoutAttributes.height.min;te<_e&&(te=_e),fe1,Te=!oe.height&&Math.abs(Y.height-fe)>1;(Te||Fe)&&(Fe&&(Y.width=te),Te&&(Y.height=fe)),Q._initialAutoSize||(Q._initialAutoSize={width:te,height:fe}),d.sanitizeMargins(Y)},d.supplyLayoutModuleDefaults=function(X,Q,oe,Y){var j=v.componentsRegistry,se=Q._basePlotModules,te,fe,ge,be=v.subplotsRegistry.cartesian;for(te in j)ge=j[te],ge.includeBasePlot&&ge.includeBasePlot(X,Q);se.length||se.push(be),Q._has("cartesian")&&(v.getComponentMethod("grid","contentDefaults")(X,Q),be.finalizeSubplots(X,Q));for(var xe in Q._subplots)Q._subplots[xe].sort(t.subplotSort);for(fe=0;fe1&&(oe.l/=Se,oe.r/=Se)}if(De){var Ie=(oe.t+oe.b)/De;Ie>1&&(oe.t/=Ie,oe.b/=Ie)}var Me=oe.xl!==void 0?oe.xl:oe.x,Ve=oe.xr!==void 0?oe.xr:oe.x,et=oe.yt!==void 0?oe.yt:oe.y,ot=oe.yb!==void 0?oe.yb:oe.y;Fe[Q]={l:{val:Me,size:oe.l+Re},r:{val:Ve,size:oe.r+Re},b:{val:ot,size:oe.b+Re},t:{val:et,size:oe.t+Re}},Te[Q]=1}if(!Y._replotting)return d.doAutoMargin(X)}};function W(X){if("_redrawFromAutoMarginCount"in X._fullLayout)return!1;var Q=f.list(X,"",!0);for(var oe in Q)if(Q[oe].autoshift||Q[oe].shift)return!0;return!1}d.doAutoMargin=function(X){var Q=X._fullLayout,oe=Q.width,Y=Q.height;Q._size||(Q._size={}),F(Q);var j=Q._size,se=Q.margin,te={t:0,b:0,l:0,r:0},fe=t.extendFlat({},j),ge=se.l,be=se.r,xe=se.t,_e=se.b,De=Q._pushmargin,Fe=Q._pushmarginIds,Te=Q.minreducedwidth,Re=Q.minreducedheight;if(se.autoexpand!==!1){for(var Se in De)Fe[Se]||delete De[Se];var Ie=X._fullLayout._reservedMargin;for(var Me in Ie)for(var Ve in Ie[Me]){var et=Ie[Me][Ve];te[Ve]=Math.max(te[Ve],et)}De.base={l:{val:0,size:ge},r:{val:1,size:be},t:{val:1,size:xe},b:{val:0,size:_e}};for(var ot in te){var Qe=0;for(var $e in De)$e!=="base"&&L(De[$e][ot].size)&&(Qe=De[$e][ot].size>Qe?De[$e][ot].size:Qe);var ht=Math.max(0,se[ot]-Qe);te[ot]=Math.max(0,te[ot]-ht)}for(var vt in De){var pt=De[vt].l||{},wt=De[vt].b||{},Ct=pt.val,rt=pt.size,ze=wt.val,He=wt.size,We=oe-te.r-te.l,Ge=Y-te.t-te.b;for(var Le in De){if(L(rt)&&De[Le].r){var Pe=De[Le].r.val,je=De[Le].r.size;if(Pe>Ct){var Ce=(rt*Pe+(je-We)*Ct)/(Pe-Ct),he=(je*(1-Ct)+(rt-We)*(1-Pe))/(Pe-Ct);Ce+he>ge+be&&(ge=Ce,be=he)}}if(L(He)&&De[Le].t){var me=De[Le].t.val,Ne=De[Le].t.size;if(me>ze){var Ze=(He*me+(Ne-Ge)*ze)/(me-ze),st=(Ne*(1-ze)+(He-Ge)*(1-me))/(me-ze);Ze+st>_e+xe&&(_e=Ze,xe=st)}}}}}var lt=t.constrain(oe-se.l-se.r,z,Te),Wt=t.constrain(Y-se.t-se.b,B,Re),Zt=Math.max(0,oe-lt),Tt=Math.max(0,Y-Wt);if(Zt){var Rt=(ge+be)/Zt;Rt>1&&(ge/=Rt,be/=Rt)}if(Tt){var Xt=(_e+xe)/Tt;Xt>1&&(_e/=Xt,xe/=Xt)}if(j.l=Math.round(ge)+te.l,j.r=Math.round(be)+te.r,j.t=Math.round(xe)+te.t,j.b=Math.round(_e)+te.b,j.p=Math.round(se.pad),j.w=Math.round(oe)-j.l-j.r,j.h=Math.round(Y)-j.t-j.b,!Q._replotting&&(d.didMarginChange(fe,j)||W(X))){"_redrawFromAutoMarginCount"in Q?Q._redrawFromAutoMarginCount++:Q._redrawFromAutoMarginCount=1;var gr=3*(1+Object.keys(Fe).length);if(Q._redrawFromAutoMarginCount1)return!0}return!1},d.graphJson=function(X,Q,oe,Y,j,se){(j&&Q&&!X._fullData||j&&!Q&&!X._fullLayout)&&d.supplyDefaults(X);var te=j?X._fullData:X.data,fe=j?X._fullLayout:X.layout,ge=(X._transitionData||{})._frames;function be(De,Fe){if(typeof De=="function")return Fe?"_function_":null;if(t.isPlainObject(De)){var Te={},Re;return Object.keys(De).sort().forEach(function(Ve){if(["_","["].indexOf(Ve.charAt(0))===-1){if(typeof De[Ve]=="function"){Fe&&(Te[Ve]="_function");return}if(oe==="keepdata"){if(Ve.substr(Ve.length-3)==="src")return}else if(oe==="keepstream"){if(Re=De[Ve+"src"],typeof Re=="string"&&Re.indexOf(":")>0&&!t.isPlainObject(De.stream))return}else if(oe!=="keepall"&&(Re=De[Ve+"src"],typeof Re=="string"&&Re.indexOf(":")>0))return;Te[Ve]=be(De[Ve],Fe)}}),Te}var Se=Array.isArray(De),Ie=t.isTypedArray(De);if((Se||Ie)&&De.dtype&&De.shape){var Me=De.bdata;return be({dtype:De.dtype,shape:De.shape,bdata:t.isArrayBuffer(Me)?S.encode(Me):Me},Fe)}return Se?De.map(function(Ve){return be(Ve,Fe)}):Ie?t.simpleMap(De,t.identity):t.isJSDate(De)?t.ms2DateTimeLocal(+De):De}var xe={data:(te||[]).map(function(De){var Fe=be(De);return Q&&delete Fe.fit,Fe})};if(!Q&&(xe.layout=be(fe),j)){var _e=fe._size;xe.layout.computed={margin:{b:_e.b,l:_e.l,r:_e.r,t:_e.t}}}return ge&&(xe.frames=be(ge)),se&&(xe.config=be(X._context,!0)),Y==="object"?xe:JSON.stringify(xe)},d.modifyFrames=function(X,Q){var oe,Y,j,se=X._transitionData._frames,te=X._transitionData._frameHash;for(oe=0;oe0&&(X._transitioningWithDuration=!0),X._transitionData._interruptCallbacks.push(function(){Y=!0}),oe.redraw&&X._transitionData._interruptCallbacks.push(function(){return v.call("redraw",X)}),X._transitionData._interruptCallbacks.push(function(){X.emit("plotly_transitioninterrupted",[])});var De=0,Fe=0;function Te(){return De++,function(){Fe++,!Y&&Fe===De&&fe(_e)}}oe.runFn(Te),setTimeout(Te())})}function fe(_e){if(X._transitionData)return se(X._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(oe.redraw)return v.call("redraw",X)}).then(function(){X._transitioning=!1,X._transitioningWithDuration=!1,X.emit("plotly_transitioned",[])}).then(_e)}function ge(){if(X._transitionData)return X._transitioning=!1,j(X._transitionData._interruptCallbacks)}var be=[d.previousPromises,ge,oe.prepareFn,d.rehover,d.reselect,te],xe=t.syncOrAsync(be,X);return(!xe||!xe.then)&&(xe=Promise.resolve()),xe.then(function(){return X})}d.doCalcdata=function(X,Q){var oe=f.list(X),Y=X._fullData,j=X._fullLayout,se,te,fe,ge,be=new Array(Y.length),xe=(X.calcdata||[]).slice();for(X.calcdata=be,j._numBoxes=0,j._numViolins=0,j._violinScaleGroupStats={},X._hmpixcount=0,X._hmlumcount=0,j._piecolormap={},j._sunburstcolormap={},j._treemapcolormap={},j._iciclecolormap={},j._funnelareacolormap={},fe=0;fe=0;ge--)if(ot[ge].enabled){se._indexToPoints=ot[ge]._indexToPoints;break}te&&te.calc&&(et=te.calc(X,se))}(!Array.isArray(et)||!et[0])&&(et=[{x:n,y:n}]),et[0].t||(et[0].t={}),et[0].trace=se,be[Me]=et}}for(Z(oe,Y,j),fe=0;fe0?E:1/0},w=s(d,x),C=m.mod(w+1,d.length);return[d[w],d[C]]}function g(i){return Math.abs(i)>1e-10?i:0}function h(i,d,x){d=d||0,x=x||0;for(var w=i.length,C=new Array(w),y=0;yDe?(Fe=se,Te=se*De,Ie=(te-Te)/X.h/2,Re=[Y[0],Y[1]],Se=[j[0]+Ie,j[1]-Ie]):(Fe=te/De,Te=te,Ie=(se-Fe)/X.w/2,Re=[Y[0]+Ie,Y[1]-Ie],Se=[j[0],j[1]]),Z.xLength2=Fe,Z.yLength2=Te,Z.xDomain2=Re,Z.yDomain2=Se;var Me=Z.xOffset2=X.l+X.w*Re[0],Ve=Z.yOffset2=X.t+X.h*(1-Se[1]),et=Z.radius=Fe/be,ot=Z.innerRadius=Z.getHole($)*et,Qe=Z.cx=Me-et*ge[0],$e=Z.cy=Ve+et*ge[3],ht=Z.cxx=Qe-Me,vt=Z.cyy=$e-Ve,pt=Q.side,wt;pt==="counterclockwise"?(wt=pt,pt="top"):pt==="clockwise"&&(wt=pt,pt="bottom"),Z.radialAxis=Z.mockAxis(le,$,Q,{_id:"x",side:pt,_trueSide:wt,domain:[ot/X.w,et/X.w]}),Z.angularAxis=Z.mockAxis(le,$,oe,{side:"right",domain:[0,Math.PI],autorange:!1}),Z.doAutoRange(le,$),Z.updateAngularAxis(le,$),Z.updateRadialAxis(le,$),Z.updateRadialAxisTitle(le,$),Z.xaxis=Z.mockCartesianAxis(le,$,{_id:"x",domain:Re}),Z.yaxis=Z.mockCartesianAxis(le,$,{_id:"y",domain:Se});var Ct=Z.pathSubplot();Z.clipPaths.forTraces.select("path").attr("d",Ct).attr("transform",v(ht,vt)),ie.frontplot.attr("transform",v(Me,Ve)).call(r.setClipUrl,Z._hasClipOnAxisFalse?null:Z.clipIds.forTraces,Z.gd),ie.bg.attr("d",Ct).attr("transform",v(Qe,$e)).call(p.fill,$.bgcolor)},B.mockAxis=function(le,$,Z,ie){var X=L.extendFlat({},Z,ie);return f(X,$,le),X},B.mockCartesianAxis=function(le,$,Z){var ie=this,X=ie.isSmith,Q=Z._id,oe=L.extendFlat({type:"linear"},Z);n(oe,le);var Y={x:[0,2],y:[1,3]};return oe.setRange=function(){var j=ie.sectorBBox,se=Y[Q],te=ie.radialAxis._rl,fe=(te[1]-te[0])/(1-ie.getHole($));oe.range=[j[se[0]]*fe,j[se[1]]*fe]},oe.isPtWithinRange=Q==="x"&&!X?function(j){return ie.isPtInside(j)}:function(){return!0},oe.setRange(),oe.setScale(),oe},B.doAutoRange=function(le,$){var Z=this,ie=Z.gd,X=Z.radialAxis,Q=Z.getRadial($);u(ie,X);var oe=X.range;if(Q.range=oe.slice(),Q._input.range=oe.slice(),X._rl=[X.r2l(oe[0],null,"gregorian"),X.r2l(oe[1],null,"gregorian")],X.minallowed!==void 0){var Y=X.r2l(X.minallowed);X._rl[0]>X._rl[1]?X._rl[1]=Math.max(X._rl[1],Y):X._rl[0]=Math.max(X._rl[0],Y)}if(X.maxallowed!==void 0){var j=X.r2l(X.maxallowed);X._rl[0]90&&te<=270&&(fe.tickangle=180);var xe=be?function(et){var ot=D(Z,M([et.x,0]));return v(ot[0]-Y,ot[1]-j)}:function(et){return v(fe.l2p(et.x)+oe,0)},_e=be?function(et){return I(Z,et.x,-1/0,1/0)}:function(et){return Z.pathArc(fe.r2p(et.x)+oe)},De=W(se);if(Z.radialTickLayout!==De&&(X["radial-axis"].selectAll(".xtick").remove(),Z.radialTickLayout=De),ge){fe.setScale();var Fe=0,Te=be?(fe.tickvals||[]).filter(function(et){return et>=0}).map(function(et){return a.tickText(fe,et,!0,!1)}):a.calcTicks(fe),Re=be?Te:a.clipEnds(fe,Te),Se=a.getTickSigns(fe)[2];be&&((fe.ticks==="top"&&fe.side==="bottom"||fe.ticks==="bottom"&&fe.side==="top")&&(Se=-Se),fe.ticks==="top"&&fe.side==="top"&&(Fe=-fe.ticklen),fe.ticks==="bottom"&&fe.side==="bottom"&&(Fe=fe.ticklen)),a.drawTicks(ie,fe,{vals:Te,layer:X["radial-axis"],path:a.makeTickPath(fe,0,Se),transFn:xe,crisp:!1}),a.drawGrid(ie,fe,{vals:Re,layer:X["radial-grid"],path:_e,transFn:L.noop,crisp:!1}),a.drawLabels(ie,fe,{vals:Te,layer:X["radial-axis"],transFn:xe,labelFns:a.makeLabelFns(fe,Fe)})}var Ie=Z.radialAxisAngle=Z.vangles?F(re(O(se.angle),Z.vangles)):se.angle,Me=v(Y,j),Ve=Me+S(-Ie);ne(X["radial-axis"],ge&&(se.showticklabels||se.ticks),{transform:Ve}),ne(X["radial-grid"],ge&&se.showgrid,{transform:be?"":Me}),ne(X["radial-line"].select("line"),ge&&se.showline,{x1:be?-Q:oe,y1:0,x2:Q,y2:0,transform:Ve}).attr("stroke-width",se.linewidth).call(p.stroke,se.linecolor)},B.updateRadialAxisTitle=function(le,$,Z){if(!this.isSmith){var ie=this,X=ie.gd,Q=ie.radius,oe=ie.cx,Y=ie.cy,j=ie.getRadial($),se=ie.id+"title",te=0;if(j.title){var fe=r.bBox(ie.layers["radial-axis"].node()).height,ge=j.title.font.size,be=j.side;te=be==="top"?ge:be==="counterclockwise"?-(fe+ge*.4):fe+ge*.8}var xe=Z!==void 0?Z:ie.radialAxisAngle,_e=O(xe),De=Math.cos(_e),Fe=Math.sin(_e),Te=oe+Q/2*De+te*Fe,Re=Y-Q/2*Fe+te*De;ie.layers["radial-axis-title"]=T.draw(X,se,{propContainer:j,propName:ie.id+".radialaxis.title",placeholder:N(X,"Click to enter radial axis title"),attributes:{x:Te,y:Re,"text-anchor":"middle"},transform:{rotate:-xe}})}},B.updateAngularAxis=function(le,$){var Z=this,ie=Z.gd,X=Z.layers,Q=Z.radius,oe=Z.innerRadius,Y=Z.cx,j=Z.cy,se=Z.getAngular($),te=Z.angularAxis,fe=Z.isSmith;fe||(Z.fillViewInitialKey("angularaxis.rotation",se.rotation),te.setGeometry(),te.setScale());var ge=fe?function(ot){var Qe=D(Z,M([0,ot.x]));return Math.atan2(Qe[0]-Y,Qe[1]-j)-Math.PI/2}:function(ot){return te.t2g(ot.x)};te.type==="linear"&&te.thetaunit==="radians"&&(te.tick0=F(te.tick0),te.dtick=F(te.dtick));var be=function(ot){return v(Y+Q*Math.cos(ot),j-Q*Math.sin(ot))},xe=fe?function(ot){var Qe=D(Z,M([0,ot.x]));return v(Qe[0],Qe[1])}:function(ot){return be(ge(ot))},_e=fe?function(ot){var Qe=D(Z,M([0,ot.x])),$e=Math.atan2(Qe[0]-Y,Qe[1]-j)-Math.PI/2;return v(Qe[0],Qe[1])+S(-F($e))}:function(ot){var Qe=ge(ot);return be(Qe)+S(-F(Qe))},De=fe?function(ot){return b(Z,ot.x,0,1/0)}:function(ot){var Qe=ge(ot),$e=Math.cos(Qe),ht=Math.sin(Qe);return"M"+[Y+oe*$e,j-oe*ht]+"L"+[Y+Q*$e,j-Q*ht]},Fe=a.makeLabelFns(te,0),Te=Fe.labelStandoff,Re={};Re.xFn=function(ot){var Qe=ge(ot);return Math.cos(Qe)*Te},Re.yFn=function(ot){var Qe=ge(ot),$e=Math.sin(Qe)>0?.2:1;return-Math.sin(Qe)*(Te+ot.fontSize*$e)+Math.abs(Math.cos(Qe))*(ot.fontSize*y)},Re.anchorFn=function(ot){var Qe=ge(ot),$e=Math.cos(Qe);return Math.abs($e)<.1?"middle":$e>0?"start":"end"},Re.heightFn=function(ot,Qe,$e){var ht=ge(ot);return-.5*(1+Math.sin(ht))*$e};var Se=W(se);Z.angularTickLayout!==Se&&(X["angular-axis"].selectAll("."+te._id+"tick").remove(),Z.angularTickLayout=Se);var Ie=fe?[1/0].concat(te.tickvals||[]).map(function(ot){return a.tickText(te,ot,!0,!1)}):a.calcTicks(te);fe&&(Ie[0].text="∞",Ie[0].fontSize*=1.75);var Me;if($.gridshape==="linear"?(Me=Ie.map(ge),L.angleDelta(Me[0],Me[1])<0&&(Me=Me.slice().reverse())):Me=null,Z.vangles=Me,te.type==="category"&&(Ie=Ie.filter(function(ot){return L.isAngleInsideSector(ge(ot),Z.sectorInRad)})),te.visible){var Ve=te.ticks==="inside"?-1:1,et=(te.linewidth||1)/2;a.drawTicks(ie,te,{vals:Ie,layer:X["angular-axis"],path:"M"+Ve*et+",0h"+Ve*te.ticklen,transFn:_e,crisp:!1}),a.drawGrid(ie,te,{vals:Ie,layer:X["angular-grid"],path:De,transFn:L.noop,crisp:!1}),a.drawLabels(ie,te,{vals:Ie,layer:X["angular-axis"],repositionOnUpdate:!0,transFn:xe,labelFns:Re})}ne(X["angular-line"].select("path"),se.showline,{d:Z.pathSubplot(),transform:v(Y,j)}).attr("stroke-width",se.linewidth).call(p.stroke,se.linecolor)},B.updateFx=function(le,$){if(!this.gd._context.staticPlot){var Z=!this.isSmith;Z&&(this.updateAngularDrag(le),this.updateRadialDrag(le,$,0),this.updateRadialDrag(le,$,1)),this.updateHoverAndMainDrag(le)}},B.updateHoverAndMainDrag=function(le){var $=this,Z=$.isSmith,ie=$.gd,X=$.layers,Q=le._zoomlayer,oe=E.MINZOOM,Y=E.OFFEDGE,j=$.radius,se=$.innerRadius,te=$.cx,fe=$.cy,ge=$.cxx,be=$.cyy,xe=$.sectorInRad,_e=$.vangles,De=$.radialAxis,Fe=A.clampTiny,Te=A.findXYatLength,Re=A.findEnclosingVertexAngles,Se=E.cornerHalfWidth,Ie=E.cornerLen/2,Me,Ve,et=l.makeDragger(X,"path","maindrag",le.dragmode===!1?"none":"crosshair");m.select(et).attr("d",$.pathSubplot()).attr("transform",v(te,fe)),et.onmousemove=function(Tt){h.hover(ie,Tt,$.id),ie._fullLayout._lasthover=et,ie._fullLayout._hoversubplot=$.id},et.onmouseout=function(Tt){ie._dragging||g.unhover(ie,Tt)};var ot={element:et,gd:ie,subplot:$.id,plotinfo:{id:$.id,xaxis:$.xaxis,yaxis:$.yaxis},xaxes:[$.xaxis],yaxes:[$.yaxis]},Qe,$e,ht,vt,pt,wt,Ct,rt,ze;function He(Tt,Rt){return Math.sqrt(Tt*Tt+Rt*Rt)}function We(Tt,Rt){return He(Tt-ge,Rt-be)}function Ge(Tt,Rt){return Math.atan2(be-Rt,Tt-ge)}function Le(Tt,Rt){return[Tt*Math.cos(Rt),Tt*Math.sin(-Rt)]}function Pe(Tt,Rt){if(Tt===0)return $.pathSector(2*Se);var Xt=Ie/Tt,gr=Rt-Xt,gt=Rt+Xt,Kt=Math.max(0,Math.min(Tt,j)),Qt=Kt-Se,yr=Kt+Se;return"M"+Le(Qt,gr)+"A"+[Qt,Qt]+" 0,0,0 "+Le(Qt,gt)+"L"+Le(yr,gt)+"A"+[yr,yr]+" 0,0,1 "+Le(yr,gr)+"Z"}function je(Tt,Rt,Xt){if(Tt===0)return $.pathSector(2*Se);var gr=Le(Tt,Rt),gt=Le(Tt,Xt),Kt=Fe((gr[0]+gt[0])/2),Qt=Fe((gr[1]+gt[1])/2),yr,Ot;if(Kt&&Qt){var ut=Qt/Kt,at=-1/ut,xt=Te(Se,ut,Kt,Qt);yr=Te(Ie,at,xt[0][0],xt[0][1]),Ot=Te(Ie,at,xt[1][0],xt[1][1])}else{var At,Et;Qt?(At=Ie,Et=Se):(At=Se,Et=Ie),yr=[[Kt-At,Qt-Et],[Kt+At,Qt-Et]],Ot=[[Kt-At,Qt+Et],[Kt+At,Qt+Et]]}return"M"+yr.join("L")+"L"+Ot.reverse().join("L")+"Z"}function Ce(){ht=null,vt=null,pt=$.pathSubplot(),wt=!1;var Tt=ie._fullLayout[$.id];Ct=P(Tt.bgcolor).getLuminance(),rt=l.makeZoombox(Q,Ct,te,fe,pt),rt.attr("fill-rule","evenodd"),ze=l.makeCorners(Q,te,fe),d(ie)}function he(Tt,Rt){return Rt=Math.max(Math.min(Rt,j),se),Ttoe?(Tt-1&&Tt===1&&i(Rt,ie,[$.xaxis],[$.yaxis],$.id,ot),Xt.indexOf("event")>-1&&h.click(ie,Rt,$.id)}ot.prepFn=function(Tt,Rt,Xt){var gr=ie._fullLayout.dragmode,gt=et.getBoundingClientRect();ie._fullLayout._calcInverseTransform(ie);var Kt=ie._fullLayout._invTransform;Me=ie._fullLayout._invScaleX,Ve=ie._fullLayout._invScaleY;var Qt=L.apply3DTransform(Kt)(Rt-gt.left,Xt-gt.top);if(Qe=Qt[0],$e=Qt[1],_e){var yr=A.findPolygonOffset(j,xe[0],xe[1],_e);Qe+=ge+yr[0],$e+=be+yr[1]}switch(gr){case"zoom":ot.clickFn=Zt,Z||(_e?ot.moveFn=st:ot.moveFn=Ne,ot.doneFn=lt,Ce());break;case"select":case"lasso":c(Tt,Rt,Xt,ot,gr);break}},g.init(ot)},B.updateRadialDrag=function(le,$,Z){var ie=this,X=ie.gd,Q=ie.layers,oe=ie.radius,Y=ie.innerRadius,j=ie.cx,se=ie.cy,te=ie.radialAxis,fe=E.radialDragBoxSize,ge=fe/2;if(!te.visible)return;var be=O(ie.radialAxisAngle),xe=te._rl,_e=xe[0],De=xe[1],Fe=xe[Z],Te=.75*(xe[1]-xe[0])/(1-ie.getHole($))/oe,Re,Se,Ie;Z?(Re=j+(oe+ge)*Math.cos(be),Se=se-(oe+ge)*Math.sin(be),Ie="radialdrag"):(Re=j+(Y-ge)*Math.cos(be),Se=se-(Y-ge)*Math.sin(be),Ie="radialdrag-inner");var Me=l.makeRectDragger(Q,Ie,"crosshair",-ge,-ge,fe,fe),Ve={element:Me,gd:X};le.dragmode===!1&&(Ve.dragmode=!1),ne(m.select(Me),te.visible&&Y0!=(Z?Qe>_e:Qe=90||X>90&&Q>=450?be=1:Y<=0&&se<=0?be=0:be=Math.max(Y,se),X<=180&&Q>=180||X>180&&Q>=540?te=-1:oe>=0&&j>=0?te=0:te=Math.min(oe,j),X<=270&&Q>=270||X>270&&Q>=630?fe=-1:Y>=0&&se>=0?fe=0:fe=Math.min(Y,se),Q>=360?ge=1:oe<=0&&j<=0?ge=0:ge=Math.max(oe,j),[te,fe,ge,be]}function re(le,$){var Z=function(X){return L.angleDist(le,X)},ie=L.findIndexOfMin($,Z);return $[ie]}function ne(le,$,Z){return $?(le.attr("display",null),le.attr(Z)):le&&le.attr("display","none"),le}},57696:function(G,H,e){var m=e(3400),P=e(78344),s=m.deg2rad,L=m.rad2deg;G.exports=function(a,n,f){switch(P(a,f),a._id){case"x":case"radialaxis":S(a,n);break;case"angularaxis":r(a,n);break}};function S(t,a){var n=a._subplot;t.setGeometry=function(){var f=t._rl[0],u=t._rl[1],l=n.innerRadius,g=(n.radius-l)/(u-f),h=l/g,T=f>u?function(c){return c<=0}:function(c){return c>=0};t.c2g=function(c){var i=t.c2l(c)-f;return(T(i)?i:0)+h},t.g2c=function(c){return t.l2c(c+f-h)},t.g2p=function(c){return c*g},t.c2p=function(c){return t.g2p(t.c2g(c))}}}function v(t,a){return a==="degrees"?s(t):t}function p(t,a){return a==="degrees"?L(t):t}function r(t,a){var n=t.type;if(n==="linear"){var f=t.d2c,u=t.c2d;t.d2c=function(l,g){return v(f(l),g)},t.c2d=function(l,g){return u(p(l,g))}}t.makeCalcdata=function(l,g){var h=l[g],T=l._length,c,i,d=function(E){return t.d2c(E,l.thetaunit)};if(h)for(c=new Array(T),i=0;i0?1:0}function e(S){var v=S[0],p=S[1];if(!isFinite(v)||!isFinite(p))return[1,0];var r=(v+1)*(v+1)+p*p;return[(v*v+p*p-1)/r,2*p/r]}function m(S,v){var p=v[0],r=v[1];return[p*S.radius+S.cx,-r*S.radius+S.cy]}function P(S,v){return v*S.radius}function s(S,v,p,r){var t=m(S,e([p,v])),a=t[0],n=t[1],f=m(S,e([r,v])),u=f[0],l=f[1];if(v===0)return["M"+a+","+n,"L"+u+","+l].join(" ");var g=P(S,1/Math.abs(v));return["M"+a+","+n,"A"+g+","+g+" 0 0,"+(v<0?1:0)+" "+u+","+l].join(" ")}function L(S,v,p,r){var t=P(S,1/(v+1)),a=m(S,e([v,p])),n=a[0],f=a[1],u=m(S,e([v,r])),l=u[0],g=u[1];if(H(p)!==H(r)){var h=m(S,e([v,0])),T=h[0],c=h[1];return["M"+n+","+f,"A"+t+","+t+" 0 0,"+(00){for(var v=[],p=0;p=i&&(y.min=0,E.min=0,A.min=0,l.aaxis&&delete l.aaxis.min,l.baxis&&delete l.baxis.min,l.caxis&&delete l.caxis.min)}function u(l,g,h,T){var c=a[g._name];function i(o,M){return s.coerce(l,g,c,o,M)}i("uirevision",T.uirevision),g.type="linear";var d=i("color"),x=d!==c.color.dflt?d:h.font.color,w=g._name,C=w.charAt(0).toUpperCase(),y="Component "+C,E=i("title.text",y);g._hovertitle=E===y?E:C,s.coerceFont(i,"title.font",h.font,{overrideDflt:{size:s.bigFont(h.font.size),color:x}}),i("min"),r(l,g,i,"linear"),v(l,g,i,"linear"),S(l,g,i,"linear",{noAutotickangles:!0}),p(l,g,i,{outerTicks:!0});var A=i("showticklabels");A&&(s.coerceFont(i,"tickfont",h.font,{overrideDflt:{color:x}}),i("tickangle"),i("tickformat")),t(l,g,i,{dfltColor:d,bgColor:h.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:c}),i("hoverformat"),i("layer")}},24696:function(G,H,e){var m=e(33428),P=e(49760),s=e(24040),L=e(3400),S=L.strTranslate,v=L._,p=e(76308),r=e(43616),t=e(78344),a=e(92880).extendFlat,n=e(7316),f=e(54460),u=e(86476),l=e(93024),g=e(72760),h=g.freeMode,T=g.rectMode,c=e(81668),i=e(22676).prepSelect,d=e(22676).selectOnClick,x=e(22676).clearOutline,w=e(22676).clearSelectionsCache,C=e(33816);function y(F,z){this.id=F.id,this.graphDiv=F.graphDiv,this.init(z),this.makeFramework(z),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}G.exports=y;var E=y.prototype;E.init=function(F){this.container=F._ternarylayer,this.defs=F._defs,this.layoutId=F._uid,this.traceHash={},this.layers={}},E.plot=function(F,z){var B=this,W=z[B.id],J=z._size;B._hasClipOnAxisFalse=!1;for(var re=0;reA*Z?(te=Z,se=te*A):(se=$,te=se/A),fe=ne*se/$,ge=le*te/Z,Y=z.l+z.w*J-se/2,j=z.t+z.h*(1-re)-te/2,B.x0=Y,B.y0=j,B.w=se,B.h=te,B.sum=ie,B.xaxis={type:"linear",range:[X+2*oe-ie,ie-X-2*Q],domain:[J-fe/2,J+fe/2],_id:"x"},t(B.xaxis,B.graphDiv._fullLayout),B.xaxis.setScale(),B.xaxis.isPtWithinRange=function(Ve){return Ve.a>=B.aaxis.range[0]&&Ve.a<=B.aaxis.range[1]&&Ve.b>=B.baxis.range[1]&&Ve.b<=B.baxis.range[0]&&Ve.c>=B.caxis.range[1]&&Ve.c<=B.caxis.range[0]},B.yaxis={type:"linear",range:[X,ie-Q-oe],domain:[re-ge/2,re+ge/2],_id:"y"},t(B.yaxis,B.graphDiv._fullLayout),B.yaxis.setScale(),B.yaxis.isPtWithinRange=function(){return!0};var be=B.yaxis.domain[0],xe=B.aaxis=a({},F.aaxis,{range:[X,ie-Q-oe],side:"left",tickangle:(+F.aaxis.tickangle||0)-30,domain:[be,be+ge*A],anchor:"free",position:0,_id:"y",_length:se});t(xe,B.graphDiv._fullLayout),xe.setScale();var _e=B.baxis=a({},F.baxis,{range:[ie-X-oe,Q],side:"bottom",domain:B.xaxis.domain,anchor:"free",position:0,_id:"x",_length:se});t(_e,B.graphDiv._fullLayout),_e.setScale();var De=B.caxis=a({},F.caxis,{range:[ie-X-Q,oe],side:"right",tickangle:(+F.caxis.tickangle||0)+30,domain:[be,be+ge*A],anchor:"free",position:0,_id:"y",_length:se});t(De,B.graphDiv._fullLayout),De.setScale();var Fe="M"+Y+","+(j+te)+"h"+se+"l-"+se/2+",-"+te+"Z";B.clipDef.select("path").attr("d",Fe),B.layers.plotbg.select("path").attr("d",Fe);var Te="M0,"+te+"h"+se+"l-"+se/2+",-"+te+"Z";B.clipDefRelative.select("path").attr("d",Te);var Re=S(Y,j);B.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Re),B.clipDefRelative.select("path").attr("transform",null);var Se=S(Y-_e._offset,j+te);B.layers.baxis.attr("transform",Se),B.layers.bgrid.attr("transform",Se);var Ie=S(Y+se/2,j)+"rotate(30)"+S(0,-xe._offset);B.layers.aaxis.attr("transform",Ie),B.layers.agrid.attr("transform",Ie);var Me=S(Y+se/2,j)+"rotate(-30)"+S(0,-De._offset);B.layers.caxis.attr("transform",Me),B.layers.cgrid.attr("transform",Me),B.drawAxes(!0),B.layers.aline.select("path").attr("d",xe.showline?"M"+Y+","+(j+te)+"l"+se/2+",-"+te:"M0,0").call(p.stroke,xe.linecolor||"#000").style("stroke-width",(xe.linewidth||0)+"px"),B.layers.bline.select("path").attr("d",_e.showline?"M"+Y+","+(j+te)+"h"+se:"M0,0").call(p.stroke,_e.linecolor||"#000").style("stroke-width",(_e.linewidth||0)+"px"),B.layers.cline.select("path").attr("d",De.showline?"M"+(Y+se/2)+","+j+"l"+se/2+","+te:"M0,0").call(p.stroke,De.linecolor||"#000").style("stroke-width",(De.linewidth||0)+"px"),B.graphDiv._context.staticPlot||B.initInteractions(),r.setClipUrl(B.layers.frontplot,B._hasClipOnAxisFalse?null:B.clipId,B.graphDiv)},E.drawAxes=function(F){var z=this,B=z.graphDiv,W=z.id.substr(7)+"title",J=z.layers,re=z.aaxis,ne=z.baxis,le=z.caxis;if(z.drawAx(re),z.drawAx(ne),z.drawAx(le),F){var $=Math.max(re.showticklabels?re.tickfont.size/2:0,(le.showticklabels?le.tickfont.size*.75:0)+(le.ticks==="outside"?le.ticklen*.87:0)),Z=(ne.showticklabels?ne.tickfont.size:0)+(ne.ticks==="outside"?ne.ticklen:0)+3;J["a-title"]=c.draw(B,"a"+W,{propContainer:re,propName:z.id+".aaxis.title",placeholder:v(B,"Click to enter Component A title"),attributes:{x:z.x0+z.w/2,y:z.y0-re.title.font.size/3-$,"text-anchor":"middle"}}),J["b-title"]=c.draw(B,"b"+W,{propContainer:ne,propName:z.id+".baxis.title",placeholder:v(B,"Click to enter Component B title"),attributes:{x:z.x0-Z,y:z.y0+z.h+ne.title.font.size*.83+Z,"text-anchor":"middle"}}),J["c-title"]=c.draw(B,"c"+W,{propContainer:le,propName:z.id+".caxis.title",placeholder:v(B,"Click to enter Component C title"),attributes:{x:z.x0+z.w+Z,y:z.y0+z.h+le.title.font.size*.83+Z,"text-anchor":"middle"}})}},E.drawAx=function(F){var z=this,B=z.graphDiv,W=F._name,J=W.charAt(0),re=F._id,ne=z.layers[W],le=30,$=J+"tickLayout",Z=o(F);z[$]!==Z&&(ne.selectAll("."+re+"tick").remove(),z[$]=Z),F.setScale();var ie=f.calcTicks(F),X=f.clipEnds(F,ie),Q=f.makeTransTickFn(F),oe=f.getTickSigns(F)[2],Y=L.deg2rad(le),j=oe*(F.linewidth||1)/2,se=oe*F.ticklen,te=z.w,fe=z.h,ge=J==="b"?"M0,"+j+"l"+Math.sin(Y)*se+","+Math.cos(Y)*se:"M"+j+",0l"+Math.cos(Y)*se+","+-Math.sin(Y)*se,be={a:"M0,0l"+fe+",-"+te/2,b:"M0,0l-"+te/2+",-"+fe,c:"M0,0l-"+fe+","+te/2}[J];f.drawTicks(B,F,{vals:F.ticks==="inside"?X:ie,layer:ne,path:ge,transFn:Q,crisp:!1}),f.drawGrid(B,F,{vals:X,layer:z.layers[J+"grid"],path:be,transFn:Q,crisp:!1}),f.drawLabels(B,F,{vals:ie,layer:ne,transFn:Q,labelFns:f.makeLabelFns(F,0,le)})};function o(F){return F.ticks+String(F.ticklen)+String(F.showticklabels)}var M=C.MINZOOM/2+.87,b="m-0.87,.5h"+M+"v3h-"+(M+5.2)+"l"+(M/2+2.6)+",-"+(M*.87+4.5)+"l2.6,1.5l-"+M/2+","+M*.87+"Z",I="m0.87,.5h-"+M+"v3h"+(M+5.2)+"l-"+(M/2+2.6)+",-"+(M*.87+4.5)+"l-2.6,1.5l"+M/2+","+M*.87+"Z",D="m0,1l"+M/2+","+M*.87+"l2.6,-1.5l-"+(M/2+2.6)+",-"+(M*.87+4.5)+"l-"+(M/2+2.6)+","+(M*.87+4.5)+"l2.6,1.5l"+M/2+",-"+M*.87+"Z",N="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",k=!0;E.clearOutline=function(){w(this.dragOptions),x(this.dragOptions.gd)},E.initInteractions=function(){var F=this,z=F.layers.plotbg.select("path").node(),B=F.graphDiv,W=B._fullLayout._zoomlayer,J,re;this.dragOptions={element:z,gd:B,plotinfo:{id:F.id,domain:B._fullLayout[F.id].domain,xaxis:F.xaxis,yaxis:F.yaxis},subplot:F.id,prepFn:function(Se,Ie,Me){F.dragOptions.xaxes=[F.xaxis],F.dragOptions.yaxes=[F.yaxis],J=B._fullLayout._invScaleX,re=B._fullLayout._invScaleY;var Ve=F.dragOptions.dragmode=B._fullLayout.dragmode;h(Ve)?F.dragOptions.minDrag=1:F.dragOptions.minDrag=void 0,Ve==="zoom"?(F.dragOptions.moveFn=_e,F.dragOptions.clickFn=te,F.dragOptions.doneFn=De,fe(Se,Ie,Me)):Ve==="pan"?(F.dragOptions.moveFn=Te,F.dragOptions.clickFn=te,F.dragOptions.doneFn=Re,Fe(),F.clearOutline(B)):(T(Ve)||h(Ve))&&i(Se,Ie,Me,F.dragOptions,Ve)}};var ne,le,$,Z,ie,X,Q,oe,Y,j;function se(Se){var Ie={};return Ie[F.id+".aaxis.min"]=Se.a,Ie[F.id+".baxis.min"]=Se.b,Ie[F.id+".caxis.min"]=Se.c,Ie}function te(Se,Ie){var Me=B._fullLayout.clickmode;O(B),Se===2&&(B.emit("plotly_doubleclick",null),s.call("_guiRelayout",B,se({a:0,b:0,c:0}))),Me.indexOf("select")>-1&&Se===1&&d(Ie,B,[F.xaxis],[F.yaxis],F.id,F.dragOptions),Me.indexOf("event")>-1&&l.click(B,Ie,F.id)}function fe(Se,Ie,Me){var Ve=z.getBoundingClientRect();ne=Ie-Ve.left,le=Me-Ve.top,B._fullLayout._calcInverseTransform(B);var et=B._fullLayout._invTransform,ot=L.apply3DTransform(et)(ne,le);ne=ot[0],le=ot[1],$={a:F.aaxis.range[0],b:F.baxis.range[1],c:F.caxis.range[1]},ie=$,Z=F.aaxis.range[1]-$.a,X=P(F.graphDiv._fullLayout[F.id].bgcolor).getLuminance(),Q="M0,"+F.h+"L"+F.w/2+", 0L"+F.w+","+F.h+"Z",oe=!1,Y=W.append("path").attr("class","zoombox").attr("transform",S(F.x0,F.y0)).style({fill:X>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",Q),j=W.append("path").attr("class","zoombox-corners").attr("transform",S(F.x0,F.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),F.clearOutline(B)}function ge(Se,Ie){return 1-Ie/F.h}function be(Se,Ie){return 1-(Se+(F.h-Ie)/Math.sqrt(3))/F.w}function xe(Se,Ie){return(Se-(F.h-Ie)/Math.sqrt(3))/F.w}function _e(Se,Ie){var Me=ne+Se*J,Ve=le+Ie*re,et=Math.max(0,Math.min(1,ge(ne,le),ge(Me,Ve))),ot=Math.max(0,Math.min(1,be(ne,le),be(Me,Ve))),Qe=Math.max(0,Math.min(1,xe(ne,le),xe(Me,Ve))),$e=(et/2+Qe)*F.w,ht=(1-et/2-ot)*F.w,vt=($e+ht)/2,pt=ht-$e,wt=(1-et)*F.h,Ct=wt-pt/A;pt.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),j.transition().style("opacity",1).duration(200),oe=!0),B.emit("plotly_relayouting",se(ie))}function De(){O(B),ie!==$&&(s.call("_guiRelayout",B,se(ie)),k&&B.data&&B._context.showTips&&(L.notifier(v(B,"Double-click to zoom back out"),"long"),k=!1))}function Fe(){$={a:F.aaxis.range[0],b:F.baxis.range[1],c:F.caxis.range[1]},ie=$}function Te(Se,Ie){var Me=Se/F.xaxis._m,Ve=Ie/F.yaxis._m;ie={a:$.a-Ve,b:$.b+(Me+Ve)/2,c:$.c-(Me-Ve)/2};var et=[ie.a,ie.b,ie.c].sort(L.sorterAsc),ot={a:et.indexOf(ie.a),b:et.indexOf(ie.b),c:et.indexOf(ie.c)};et[0]<0&&(et[1]+et[0]/2<0?(et[2]+=et[0]+et[1],et[0]=et[1]=0):(et[2]+=et[0]/2,et[1]+=et[0]/2,et[0]=0),ie={a:et[ot.a],b:et[ot.b],c:et[ot.c]},Ie=($.a-ie.a)*F.yaxis._m,Se=($.c-ie.c-$.b+ie.b)*F.xaxis._m);var Qe=S(F.x0+Se,F.y0+Ie);F.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Qe);var $e=S(-Se,-Ie);F.clipDefRelative.select("path").attr("transform",$e),F.aaxis.range=[ie.a,F.sum-ie.b-ie.c],F.baxis.range=[F.sum-ie.a-ie.c,ie.b],F.caxis.range=[F.sum-ie.a-ie.b,ie.c],F.drawAxes(!1),F._hasClipOnAxisFalse&&F.plotContainer.select(".scatterlayer").selectAll(".trace").call(r.hideOutsideRangePoints,F),B.emit("plotly_relayouting",se(ie))}function Re(){s.call("_guiRelayout",B,se(ie))}z.onmousemove=function(Se){l.hover(B,Se,F.id),B._fullLayout._lasthover=z,B._fullLayout._hoversubplot=F.id},z.onmouseout=function(Se){B._dragging||u.unhover(B,Se)},u.init(this.dragOptions)};function O(F){m.select(F).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}},24040:function(G,H,e){var m=e(24248),P=e(16628),s=e(52416),L=e(63620),S=e(52200).addStyleRule,v=e(92880),p=e(45464),r=e(64859),t=v.extendFlat,a=v.extendDeepAll;H.modules={},H.allCategories={},H.allTypes=[],H.subplotsRegistry={},H.transformsRegistry={},H.componentsRegistry={},H.layoutArrayContainers=[],H.layoutArrayRegexes=[],H.traceLayoutAttributes={},H.localeRegistry={},H.apiMethodRegistry={},H.collectableSubplotTypes=null,H.register=function(w){if(H.collectableSubplotTypes=null,w)w&&!Array.isArray(w)&&(w=[w]);else throw new Error("No argument passed to Plotly.register.");for(var C=0;C-1}G.exports=function(r,t){var a,n=r.data,f=r.layout,u=L([],n),l=L({},f,S(t.tileClass)),g=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var h=Object.keys(l);for(a=0;a")!==-1?"":f.html(l).text()});return f.remove(),u}function a(n){return n.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}G.exports=function(f,u,l){var g=f._fullLayout,h=g._paper,T=g._toppaper,c=g.width,i=g.height,d;h.insert("rect",":first-child").call(s.setRect,0,0,c,i).call(L.fill,g.paper_bgcolor);var x=g._basePlotModules||[];for(d=0;dB+F||!m(z))}for(var J=0;J=0)return g}else if(typeof g=="string"&&(g=g.trim(),g.slice(-1)==="%"&&m(g.slice(0,-1))&&(g=+g.slice(0,-1),g>=0)))return g+"%"}function l(g,h,T,c,i,d){d=d||{};var x=d.moduleHasSelected!==!1,w=d.moduleHasUnselected!==!1,C=d.moduleHasConstrain!==!1,y=d.moduleHasCliponaxis!==!1,E=d.moduleHasTextangle!==!1,A=d.moduleHasInsideanchor!==!1,o=!!d.hasPathbar,M=Array.isArray(i)||i==="auto",b=M||i==="inside",I=M||i==="outside";if(b||I){var D=a(c,"textfont",T.font),N=P.extendFlat({},D),k=g.textfont&&g.textfont.color,O=!k;if(O&&delete N.color,a(c,"insidetextfont",N),o){var F=P.extendFlat({},D);O&&delete F.color,a(c,"pathbar.textfont",F)}I&&a(c,"outsidetextfont",D),x&&c("selected.textfont.color"),w&&c("unselected.textfont.color"),C&&c("constraintext"),y&&c("cliponaxis"),E&&c("textangle"),c("texttemplate")}b&&A&&c("insidetextanchor")}G.exports={supplyDefaults:n,crossTraceDefaults:f,handleText:l,validateCornerradius:u}},52160:function(G){G.exports=function(e,m,P){return e.x="xVal"in m?m.xVal:m.x,e.y="yVal"in m?m.yVal:m.y,m.xa&&(e.xaxis=m.xa),m.ya&&(e.yaxis=m.ya),P.orientation==="h"?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},60444:function(G,H,e){var m=e(38248),P=e(49760),s=e(3400).isArrayOrTypedArray;H.coerceString=function(L,S,v){if(typeof S=="string"){if(S||!L.noBlank)return S}else if((typeof S=="number"||S===!0)&&!L.strict)return String(S);return v!==void 0?v:L.dflt},H.coerceNumber=function(L,S,v){if(m(S)){S=+S;var p=L.min,r=L.max,t=p!==void 0&&Sr;if(!t)return S}return v!==void 0?v:L.dflt},H.coerceColor=function(L,S,v){return P(S).isValid()?S:v!==void 0?v:L.dflt},H.coerceEnumerated=function(L,S,v){return L.coerceNumber&&(S=+S),L.values.indexOf(S)!==-1?S:v!==void 0?v:L.dflt},H.getValue=function(L,S){var v;return s(L)?S0?ge+=be:y<0&&(ge-=be)}return ge}function le(fe){var ge=y,be=fe.b,xe=ne(fe);return m.inbox(be-ge,xe-ge,x+(xe-ge)/(xe-be)-1)}function $(fe){var ge=y,be=fe.b,xe=ne(fe);return m.inbox(be-ge,xe-ge,w+(xe-ge)/(xe-be)-1)}var Z=n[E+"a"],ie=n[A+"a"];b=Math.abs(Z.r2c(Z.range[1])-Z.r2c(Z.range[0]));function X(fe){return(o(fe)+M(fe))/2}var Q=m.getDistanceFunction(l,o,M,X);if(m.getClosest(h,Q,n),n.index!==!1&&h[n.index].p!==p){D||(z=function(fe){return Math.min(N(fe),fe.p-c.bargroupwidth/2)},B=function(fe){return Math.max(k(fe),fe.p+c.bargroupwidth/2)});var oe=n.index,Y=h[oe],j=T.base?Y.b+Y.s:Y.s;n[A+"0"]=n[A+"1"]=ie.c2p(Y[A],!0),n[A+"LabelVal"]=j;var se=c.extents[c.extents.round(Y.p)];n[E+"0"]=Z.c2p(i?z(Y):se[0],!0),n[E+"1"]=Z.c2p(i?B(Y):se[1],!0);var te=Y.orig_p!==void 0;return n[E+"LabelVal"]=te?Y.orig_p:Y.p,n.labelLabel=v(Z,n[E+"LabelVal"],T[E+"hoverformat"]),n.valueLabel=v(ie,n[A+"LabelVal"],T[A+"hoverformat"]),n.baseLabel=v(ie,Y.b,T[A+"hoverformat"]),n.spikeDistance=($(Y)+re(Y))/2,n[E+"Spike"]=Z.c2p(Y.p,!0),L(Y,T,n),n.hovertemplate=T.hovertemplate,n}}function a(n,f){var u=f.mcc||n.marker.color,l=f.mlcc||n.marker.line.color,g=S(n,f);if(s.opacity(u))return u;if(s.opacity(l)&&g)return l}G.exports={hoverPoints:r,hoverOnBars:t,getTraceColor:a}},51132:function(G,H,e){G.exports={attributes:e(20832),layoutAttributes:e(39324),supplyDefaults:e(31508).supplyDefaults,crossTraceDefaults:e(31508).crossTraceDefaults,supplyLayoutDefaults:e(37156),calc:e(71820),crossTraceCalc:e(96376).crossTraceCalc,colorbar:e(5528),arraysToCalcdata:e(84664),plot:e(98184).plot,style:e(60100).style,styleOnSelect:e(60100).styleOnSelect,hoverPoints:e(63400).hoverPoints,eventData:e(52160),selectPoints:e(45784),moduleType:"trace",name:"bar",basePlotModule:e(57952),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},39324:function(G){G.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}},37156:function(G,H,e){var m=e(24040),P=e(54460),s=e(3400),L=e(39324),S=e(31508).validateCornerradius;G.exports=function(v,p,r){function t(d,x){return s.coerce(v,p,L,d,x)}for(var a=!1,n=!1,f=!1,u={},l=t("barmode"),g=0;g0)-(J<0)}function C(J,re){return J0}function o(J,re,ne,le,$,Z){var ie=re.xaxis,X=re.yaxis,Q=J._fullLayout,oe=J._context.staticPlot;$||($={mode:Q.barmode,norm:Q.barmode,gap:Q.bargap,groupgap:Q.bargroupgap},n("bar",Q));var Y=s.makeTraceGroups(le,ne,"trace bars").each(function(j){var se=m.select(this),te=j[0].trace,fe=j[0].t,ge=te.type==="waterfall",be=te.type==="funnel",xe=te.type==="histogram",_e=te.type==="bar",De=_e||be,Fe=0;ge&&te.connector.visible&&te.connector.mode==="between"&&(Fe=te.connector.line.width/2);var Te=te.orientation==="h",Re=A($),Se=s.ensureSingle(se,"g","points"),Ie=x(te),Me=Se.selectAll("g.point").data(s.identity,Ie);Me.enter().append("g").classed("point",!0),Me.exit().remove(),Me.each(function(et,ot){var Qe=m.select(this),$e=y(et,ie,X,Te),ht=$e[0][0],vt=$e[0][1],pt=$e[1][0],wt=$e[1][1],Ct=(Te?vt-ht:wt-pt)===0;Ct&&De&&u.getLineWidth(te,et)&&(Ct=!1),Ct||(Ct=!P(ht)||!P(vt)||!P(pt)||!P(wt)),et.isBlank=Ct,Ct&&(Te?vt=ht:wt=pt),Fe&&!Ct&&(Te?(ht-=C(ht,vt)*Fe,vt+=C(ht,vt)*Fe):(pt-=C(pt,wt)*Fe,wt+=C(pt,wt)*Fe));var rt,ze;if(te.type==="waterfall"){if(!Ct){var He=te[et.dir].marker;rt=He.line.width,ze=He.color}}else rt=u.getLineWidth(te,et),ze=et.mc||te.marker.color;function We(at){var xt=m.round(rt/2%1,2);return $.gap===0&&$.groupgap===0?m.round(Math.round(at)-xt,2):at}function Ge(at,xt,At){return At&&at===xt?at:Math.abs(at-xt)>=2?We(at):at>xt?Math.ceil(at):Math.floor(at)}var Le=S.opacity(ze),Pe=Le<1||rt>.01?We:Ge;J._context.staticPlot||(ht=Pe(ht,vt,Te),vt=Pe(vt,ht,Te),pt=Pe(pt,wt,!Te),wt=Pe(wt,pt,!Te));var je=Te?ie.c2p:X.c2p,Ce;et.s0>0?Ce=et._sMax:et.s0<0?Ce=et._sMin:Ce=et.s1>0?et._sMax:et._sMin;function he(at,xt){if(!at)return 0;var At=Math.abs(Te?wt-pt:vt-ht),Et=Math.abs(Te?vt-ht:wt-pt),Vt=Pe(Math.abs(je(Ce,!0)-je(0,!0))),Bt=et.hasB?Math.min(At/2,Et/2):Math.min(At/2,Vt),Ut;if(xt==="%"){var Jt=Math.min(50,at);Ut=At*(Jt/100)}else Ut=at;return Pe(Math.max(Math.min(Ut,Bt),0))}var me=_e||xe?he(fe.cornerradiusvalue,fe.cornerradiusform):0,Ne,Ze,st="M"+ht+","+pt+"V"+wt+"H"+vt+"V"+pt+"Z",lt=0;if(me&&et.s){var Wt=w(et.s0)===0||w(et.s)===w(et.s0)?et.s1:et.s0;if(lt=Pe(et.hasB?0:Math.abs(je(Ce,!0)-je(Wt,!0))),lt0?Math.sqrt(lt*(2*me-lt)):0,gt=Zt>0?Math.max:Math.min;Ne="M"+ht+","+pt+"V"+(wt-Xt*Tt)+"H"+gt(vt-(me-lt)*Zt,ht)+"A "+me+","+me+" 0 0 "+Rt+" "+vt+","+(wt-me*Tt-gr)+"V"+(pt+me*Tt+gr)+"A "+me+","+me+" 0 0 "+Rt+" "+gt(vt-(me-lt)*Zt,ht)+","+(pt+Xt*Tt)+"Z"}else if(et.hasB)Ne="M"+(ht+me*Zt)+","+pt+"A "+me+","+me+" 0 0 "+Rt+" "+ht+","+(pt+me*Tt)+"V"+(wt-me*Tt)+"A "+me+","+me+" 0 0 "+Rt+" "+(ht+me*Zt)+","+wt+"H"+(vt-me*Zt)+"A "+me+","+me+" 0 0 "+Rt+" "+vt+","+(wt-me*Tt)+"V"+(pt+me*Tt)+"A "+me+","+me+" 0 0 "+Rt+" "+(vt-me*Zt)+","+pt+"Z";else{Ze=Math.abs(wt-pt)+lt;var Kt=Ze0?Math.sqrt(lt*(2*me-lt)):0,yr=Tt>0?Math.max:Math.min;Ne="M"+(ht+Kt*Zt)+","+pt+"V"+yr(wt-(me-lt)*Tt,pt)+"A "+me+","+me+" 0 0 "+Rt+" "+(ht+me*Zt-Qt)+","+wt+"H"+(vt-me*Zt+Qt)+"A "+me+","+me+" 0 0 "+Rt+" "+(vt-Kt*Zt)+","+yr(wt-(me-lt)*Tt,pt)+"V"+pt+"Z"}}else Ne=st}else Ne=st;var Ot=E(s.ensureSingle(Qe,"path"),Q,$,Z);if(Ot.style("vector-effect",oe?"none":"non-scaling-stroke").attr("d",isNaN((vt-ht)*(wt-pt))||Ct&&J._context.staticPlot?"M0,0Z":Ne).call(v.setClipUrl,re.layerClipId,J),!Q.uniformtext.mode&&Re){var ut=v.makePointStyleFns(te);v.singlePointStyle(et,Ot,te,ut,J)}M(J,re,Qe,j,ot,ht,vt,pt,wt,me,lt,$,Z),re.layerClipId&&v.hideOutsideRangePoint(et,Qe.select("text"),ie,X,te.xcalendar,te.ycalendar)});var Ve=te.cliponaxis===!1;v.setClipUrl(se,Ve?null:re.layerClipId,J)});p.getComponentMethod("errorbars","plot")(J,Y,re,$)}function M(J,re,ne,le,$,Z,ie,X,Q,oe,Y,j,se){var te=re.xaxis,fe=re.yaxis,ge=J._fullLayout,be;function xe(Ze,st,lt){var Wt=s.ensureSingle(Ze,"text").text(st).attr({class:"bartext bartext-"+be,"text-anchor":"middle","data-notex":1}).call(v.font,lt).call(L.convertToTspans,J);return Wt}var _e=le[0].trace,De=_e.orientation==="h",Fe=F(ge,le,$,te,fe);be=z(_e,$);var Te=j.mode==="stack"||j.mode==="relative",Re=le[$],Se=!Te||Re._outmost,Ie=Re.hasB,Me=oe&&oe-Y>i;if(!Fe||be==="none"||(Re.isBlank||Z===ie||X===Q)&&(be==="auto"||be==="inside")){ne.select("text").remove();return}var Ve=ge.font,et=f.getBarColor(le[$],_e),ot=f.getInsideTextFont(_e,$,Ve,et),Qe=f.getOutsideTextFont(_e,$,Ve),$e=_e.insidetextanchor||"end",ht=ne.datum();De?te.type==="log"&&ht.s0<=0&&(te.range[0]0&&We>0,Pe;Me?Ie?Pe=b(wt-2*oe,Ct,He,We,De)||b(wt,Ct-2*oe,He,We,De):De?Pe=b(wt-(oe-Y),Ct,He,We,De)||b(wt,Ct-2*(oe-Y),He,We,De):Pe=b(wt,Ct-(oe-Y),He,We,De)||b(wt-2*(oe-Y),Ct,He,We,De):Pe=b(wt,Ct,He,We,De),Le&&Pe?be="inside":(be="outside",rt.remove(),rt=null)}else be="inside";if(!rt){Ge=s.ensureUniformFontSize(J,be==="outside"?Qe:ot),rt=xe(ne,Fe,Ge);var je=rt.attr("transform");if(rt.attr("transform",""),ze=v.bBox(rt.node()),He=ze.width,We=ze.height,rt.attr("transform",je),He<=0||We<=0){rt.remove();return}}var Ce=_e.textangle,he,me;be==="outside"?(me=_e.constraintext==="both"||_e.constraintext==="outside",he=O(Z,ie,X,Q,ze,{isHorizontal:De,constrained:me,angle:Ce})):(me=_e.constraintext==="both"||_e.constraintext==="inside",he=N(Z,ie,X,Q,ze,{isHorizontal:De,constrained:me,angle:Ce,anchor:$e,hasB:Ie,r:oe,overhead:Y})),he.fontSize=Ge.size,a(_e.type==="histogram"?"bar":_e.type,he,ge),Re.transform=he;var Ne=E(rt,ge,j,se);s.setTransormAndDisplay(Ne,he)}function b(J,re,ne,le,$){if(J<0||re<0)return!1;var Z=ne<=J&&le<=re,ie=ne<=re&&le<=J,X=$?J>=ne*(re/le):re>=le*(J/ne);return Z||ie||X}function I(J){return J==="auto"?0:J}function D(J,re){var ne=Math.PI/180*re,le=Math.abs(Math.sin(ne)),$=Math.abs(Math.cos(ne));return{x:J.width*$+J.height*le,y:J.width*le+J.height*$}}function N(J,re,ne,le,$,Z){var ie=!!Z.isHorizontal,X=!!Z.constrained,Q=Z.angle||0,oe=Z.anchor,Y=oe==="end",j=oe==="start",se=Z.leftToRight||0,te=(se+1)/2,fe=1-te,ge=Z.hasB,be=Z.r,xe=Z.overhead,_e=$.width,De=$.height,Fe=Math.abs(re-J),Te=Math.abs(le-ne),Re=Fe>2*i&&Te>2*i?i:0;Fe-=2*Re,Te-=2*Re;var Se=I(Q);Q==="auto"&&!(_e<=Fe&&De<=Te)&&(_e>Fe||De>Te)&&(!(_e>Te||De>Fe)||_ei){var et=k(J,re,ne,le,Ie,be,xe,ie,ge);Me=et.scale,Ve=et.pad}else Me=1,X&&(Me=Math.min(1,Fe/Ie.x,Te/Ie.y)),Ve=0;var ot=$.left*fe+$.right*te,Qe=($.top+$.bottom)/2,$e=(J+i)*fe+(re-i)*te,ht=(ne+le)/2,vt=0,pt=0;if(j||Y){var wt=(ie?Ie.x:Ie.y)/2;be&&(Y||ge)&&(Re+=Ve);var Ct=ie?C(J,re):C(ne,le);ie?j?($e=J+Ct*Re,vt=-Ct*wt):($e=re-Ct*Re,vt=Ct*wt):j?(ht=ne+Ct*Re,pt=-Ct*wt):(ht=le-Ct*Re,pt=Ct*wt)}return{textX:ot,textY:Qe,targetX:$e,targetY:ht,anchorX:vt,anchorY:pt,scale:Me,rotate:Se}}function k(J,re,ne,le,$,Z,ie,X,Q){var oe=Math.max(0,Math.abs(re-J)-2*i),Y=Math.max(0,Math.abs(le-ne)-2*i),j=Z-i,se=ie?j-Math.sqrt(j*j-(j-ie)*(j-ie)):j,te=Q?j*2:X?j-ie:2*se,fe=Q?j*2:X?2*se:j-ie,ge,be,xe,_e,De;return $.y/$.x>=Y/(oe-te)?_e=Y/$.y:$.y/$.x<=(Y-fe)/oe?_e=oe/$.x:!Q&&X?(ge=$.x*$.x+$.y*$.y/4,be=-2*$.x*(oe-j)-$.y*(Y/2-j),xe=(oe-j)*(oe-j)+(Y/2-j)*(Y/2-j)-j*j,_e=(-be+Math.sqrt(be*be-4*ge*xe))/(2*ge)):Q?(ge=($.x*$.x+$.y*$.y)/4,be=-$.x*(oe/2-j)-$.y*(Y/2-j),xe=(oe/2-j)*(oe/2-j)+(Y/2-j)*(Y/2-j)-j*j,_e=(-be+Math.sqrt(be*be-4*ge*xe))/(2*ge)):(ge=$.x*$.x/4+$.y*$.y,be=-$.x*(oe/2-j)-2*$.y*(Y-j),xe=(oe/2-j)*(oe/2-j)+(Y-j)*(Y-j)-j*j,_e=(-be+Math.sqrt(be*be-4*ge*xe))/(2*ge)),_e=Math.min(1,_e),X?De=Math.max(0,j-Math.sqrt(Math.max(0,j*j-(j-(Y-$.y*_e)/2)*(j-(Y-$.y*_e)/2)))-ie):De=Math.max(0,j-Math.sqrt(Math.max(0,j*j-(j-(oe-$.x*_e)/2)*(j-(oe-$.x*_e)/2)))-ie),{scale:_e,pad:De}}function O(J,re,ne,le,$,Z){var ie=!!Z.isHorizontal,X=!!Z.constrained,Q=Z.angle||0,oe=$.width,Y=$.height,j=Math.abs(re-J),se=Math.abs(le-ne),te;ie?te=se>2*i?i:0:te=j>2*i?i:0;var fe=1;X&&(fe=ie?Math.min(1,se/Y):Math.min(1,j/oe));var ge=I(Q),be=D($,ge),xe=(ie?be.x:be.y)/2,_e=($.left+$.right)/2,De=($.top+$.bottom)/2,Fe=(J+re)/2,Te=(ne+le)/2,Re=0,Se=0,Ie=ie?C(re,J):C(ne,le);return ie?(Fe=re-Ie*te,Re=Ie*xe):(Te=le+Ie*te,Se=-Ie*xe),{textX:_e,textY:De,targetX:Fe,targetY:Te,anchorX:Re,anchorY:Se,scale:fe,rotate:ge}}function F(J,re,ne,le,$){var Z=re[0].trace,ie=Z.texttemplate,X;return ie?X=B(J,re,ne,le,$):Z.textinfo?X=W(re,ne,le,$):X=u.getValue(Z.text,ne),u.coerceString(h,X)}function z(J,re){var ne=u.getValue(J.textposition,re);return u.coerceEnumerated(T,ne)}function B(J,re,ne,le,$){var Z=re[0].trace,ie=s.castOption(Z,ne,"texttemplate");if(!ie)return"";var X=Z.type==="histogram",Q=Z.type==="waterfall",oe=Z.type==="funnel",Y=Z.orientation==="h",j,se,te,fe;Y?(j="y",se=$,te="x",fe=le):(j="x",se=le,te="y",fe=$);function ge(Re){return r(se,se.c2l(Re),!0).text}function be(Re){return r(fe,fe.c2l(Re),!0).text}var xe=re[ne],_e={};_e.label=xe.p,_e.labelLabel=_e[j+"Label"]=ge(xe.p);var De=s.castOption(Z,xe.i,"text");(De===0||De)&&(_e.text=De),_e.value=xe.s,_e.valueLabel=_e[te+"Label"]=be(xe.s);var Fe={};c(Fe,Z,xe.i),(X||Fe.x===void 0)&&(Fe.x=Y?_e.value:_e.label),(X||Fe.y===void 0)&&(Fe.y=Y?_e.label:_e.value),(X||Fe.xLabel===void 0)&&(Fe.xLabel=Y?_e.valueLabel:_e.labelLabel),(X||Fe.yLabel===void 0)&&(Fe.yLabel=Y?_e.labelLabel:_e.valueLabel),Q&&(_e.delta=+xe.rawS||xe.s,_e.deltaLabel=be(_e.delta),_e.final=xe.v,_e.finalLabel=be(_e.final),_e.initial=_e.final-_e.delta,_e.initialLabel=be(_e.initial)),oe&&(_e.value=xe.s,_e.valueLabel=be(_e.value),_e.percentInitial=xe.begR,_e.percentInitialLabel=s.formatPercent(xe.begR),_e.percentPrevious=xe.difR,_e.percentPreviousLabel=s.formatPercent(xe.difR),_e.percentTotal=xe.sumR,_e.percenTotalLabel=s.formatPercent(xe.sumR));var Te=s.castOption(Z,xe.i,"customdata");return Te&&(_e.customdata=Te),s.texttemplateString(ie,_e,J._d3locale,Fe,_e,Z._meta||{})}function W(J,re,ne,le){var $=J[0].trace,Z=$.orientation==="h",ie=$.type==="waterfall",X=$.type==="funnel";function Q(Te){var Re=Z?le:ne;return r(Re,Te,!0).text}function oe(Te){var Re=Z?ne:le;return r(Re,+Te,!0).text}var Y=$.textinfo,j=J[re],se=Y.split("+"),te=[],fe,ge=function(Te){return se.indexOf(Te)!==-1};if(ge("label")&&te.push(Q(J[re].p)),ge("text")&&(fe=s.castOption($,j.i,"text"),(fe===0||fe)&&te.push(fe)),ie){var be=+j.rawS||j.s,xe=j.v,_e=xe-be;ge("initial")&&te.push(oe(_e)),ge("delta")&&te.push(oe(be)),ge("final")&&te.push(oe(xe))}if(X){ge("value")&&te.push(oe(j.s));var De=0;ge("percent initial")&&De++,ge("percent previous")&&De++,ge("percent total")&&De++;var Fe=De>1;ge("percent initial")&&(fe=s.formatPercent(j.begR),Fe&&(fe+=" of initial"),te.push(fe)),ge("percent previous")&&(fe=s.formatPercent(j.difR),Fe&&(fe+=" of previous"),te.push(fe)),ge("percent total")&&(fe=s.formatPercent(j.sumR),Fe&&(fe+=" of total"),te.push(fe))}return te.join("
")}G.exports={plot:o,toMoveInsideBar:N}},45784:function(G){G.exports=function(m,P){var s=m.cd,L=m.xaxis,S=m.yaxis,v=s[0].trace,p=v.type==="funnel",r=v.orientation==="h",t=[],a;if(P===!1)for(a=0;a1||o.bargap===0&&o.bargroupgap===0&&!M[0].trace.marker.line.width)&&m.select(this).attr("shape-rendering","crispEdges")}),E.selectAll("g.points").each(function(M){var b=m.select(this),I=M[0].trace;u(b,I,y)}),S.getComponentMethod("errorbars","style")(E)}function u(y,E,A){s.pointStyle(y.selectAll("path"),E,A),l(y,E,A)}function l(y,E,A){y.selectAll("text").each(function(o){var M=m.select(this),b=L.ensureUniformFontSize(A,c(M,o,E,A));s.font(M,b)})}function g(y,E,A){var o=E[0].trace;o.selectedpoints?h(A,o,y):(u(A,o,y),S.getComponentMethod("errorbars","style")(A))}function h(y,E,A){s.selectedPointStyle(y.selectAll("path"),E),T(y.selectAll("text"),E,A)}function T(y,E,A){y.each(function(o){var M=m.select(this),b;if(o.selected){b=L.ensureUniformFontSize(A,c(M,o,E,A));var I=E.selected.textfont&&E.selected.textfont.color;I&&(b.color=I),s.font(M,b)}else s.selectedTextStyle(M,E)})}function c(y,E,A,o){var M=o._fullLayout.font,b=A.textfont;if(y.classed("bartext-inside")){var I=C(E,A);b=d(A,E.i,M,I)}else y.classed("bartext-outside")&&(b=x(A,E.i,M));return b}function i(y,E,A){return w(r,y.textfont,E,A)}function d(y,E,A,o){var M=i(y,E,A),b=y._input.textfont===void 0||y._input.textfont.color===void 0||Array.isArray(y.textfont.color)&&y.textfont.color[E]===void 0;return b&&(M={color:P.contrast(o),family:M.family,size:M.size,weight:M.weight,style:M.style,variant:M.variant,textcase:M.textcase,lineposition:M.lineposition,shadow:M.shadow}),w(t,y.insidetextfont,E,M)}function x(y,E,A){var o=i(y,E,A);return w(a,y.outsidetextfont,E,o)}function w(y,E,A,o){E=E||{};var M=n.getValue(E.family,A),b=n.getValue(E.size,A),I=n.getValue(E.color,A),D=n.getValue(E.weight,A),N=n.getValue(E.style,A),k=n.getValue(E.variant,A),O=n.getValue(E.textcase,A),F=n.getValue(E.lineposition,A),z=n.getValue(E.shadow,A);return{family:n.coerceString(y.family,M,o.family),size:n.coerceNumber(y.size,b,o.size),color:n.coerceColor(y.color,I,o.color),weight:n.coerceString(y.weight,D,o.weight),style:n.coerceString(y.style,N,o.style),variant:n.coerceString(y.variant,k,o.variant),textcase:n.coerceString(y.variant,O,o.textcase),lineposition:n.coerceString(y.variant,F,o.lineposition),shadow:n.coerceString(y.variant,z,o.shadow)}}function C(y,E){return E.type==="waterfall"?E[y.dir].marker.color:y.mcc||y.mc||E.marker.color}G.exports={style:f,styleTextPoints:l,styleOnSelect:g,getInsideTextFont:d,getOutsideTextFont:x,getBarColor:C,resizeText:v}},55592:function(G,H,e){var m=e(76308),P=e(94288).hasColorscale,s=e(27260),L=e(3400).coercePattern;G.exports=function(v,p,r,t,a){var n=r("marker.color",t),f=P(v,"marker");f&&s(v,p,a,r,{prefix:"marker.",cLetter:"c"}),r("marker.line.color",m.defaultLine),P(v,"marker.line")&&s(v,p,a,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width"),r("marker.opacity"),L(r,"marker.pattern",n,f),r("selected.marker.color"),r("unselected.marker.color")}},82744:function(G,H,e){var m=e(33428),P=e(3400);function s(p,r,t){var a=p._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var f=a.uniformtext.mode==="hide",u;switch(t){case"funnelarea":case"pie":case"sunburst":u="g.slice";break;case"treemap":case"icicle":u="g.slice, g.pathbar";break;default:u="g.points > g.point"}r.selectAll(u).each(function(l){var g=l.transform;if(g){g.scale=f&&g.hide?0:n/g.fontSize;var h=m.select(this).select("text");P.setTransormAndDisplay(h,g)}})}}function L(p,r,t){if(t.uniformtext.mode){var a=v(p),n=t.uniformtext.minsize,f=r.scale*r.fontSize;r.hide=fl.range[1]&&(x+=Math.PI);var w=function(A){return T(d,x,[A.rp0,A.rp1],[A.thetag0,A.thetag1],h)?c+Math.min(1,Math.abs(A.thetag1-A.thetag0)/i)-1+(A.rp1-d)/(A.rp1-A.rp0)-1:1/0};if(m.getClosest(n,w,r),r.index!==!1){var C=r.index,y=n[C];r.x0=r.x1=y.ct[0],r.y0=r.y1=y.ct[1];var E=P.extendFlat({},y,{r:y.s,theta:y.p});return L(y,f,r),S(E,f,u,r),r.hovertemplate=f.hovertemplate,r.color=s(f,y),r.xLabelVal=r.yLabelVal=void 0,y.s<0&&(r.idealAlign="left"),[r]}}},94456:function(G,H,e){G.exports={moduleType:"trace",name:"barpolar",basePlotModule:e(40872),categories:["polar","bar","showLegend"],attributes:e(78100),layoutAttributes:e(9320),supplyDefaults:e(70384),supplyLayoutDefaults:e(89580),calc:e(47056).calc,crossTraceCalc:e(47056).crossTraceCalc,plot:e(42040),colorbar:e(5528),formatLabels:e(22852),style:e(60100).style,styleOnSelect:e(60100).styleOnSelect,hoverPoints:e(68896),selectPoints:e(45784),meta:{}}},9320:function(G){G.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},89580:function(G,H,e){var m=e(3400),P=e(9320);G.exports=function(s,L,S){var v={},p;function r(n,f){return m.coerce(s[p]||{},L[p],P,n,f)}for(var t=0;t0?(l=f,g=u):(l=u,g=f);var h=S.findEnclosingVertexAngles(l,p.vangles)[0],T=S.findEnclosingVertexAngles(g,p.vangles)[1],c=[h,(l+g)/2,T];return S.pathPolygonAnnulus(a,n,l,g,c,r,t)}:function(a,n,f,u){return s.pathAnnulus(a,n,f,u,r,t)}}},63188:function(G,H,e){var m=e(98304),P=e(52904),s=e(20832),L=e(22548),S=e(29736).axisHoverFormat,v=e(21776).Ks,p=e(92880).extendFlat,r=P.marker,t=r.line;G.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:P.xperiod,yperiod:P.yperiod,xperiod0:P.xperiod0,yperiod0:P.yperiod0,xperiodalignment:P.xperiodalignment,yperiodalignment:P.yperiodalignment,xhoverformat:S("x"),yhoverformat:S("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:p({},r.symbol,{arrayOk:!1,editType:"plot"}),opacity:p({},r.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:p({},r.angle,{arrayOk:!1,editType:"calc"}),size:p({},r.size,{arrayOk:!1,editType:"calc"}),color:p({},r.color,{arrayOk:!1,editType:"style"}),line:{color:p({},t.color,{arrayOk:!1,dflt:L.defaultLine,editType:"style"}),width:p({},t.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:m(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:s.offsetgroup,alignmentgroup:s.alignmentgroup,selected:{marker:P.selected.marker,editType:"style"},unselected:{marker:P.unselected.marker,editType:"style"},text:p({},P.text,{}),hovertext:p({},P.hovertext,{}),hovertemplate:v({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:P.zorder}},62555:function(G,H,e){var m=e(38248),P=e(54460),s=e(1220),L=e(3400),S=e(39032).BADNUM,v=L._;G.exports=function(x,w){var C=x._fullLayout,y=P.getFromId(x,w.xaxis||"x"),E=P.getFromId(x,w.yaxis||"y"),A=[],o=w.type==="violin"?"_numViolins":"_numBoxes",M,b,I,D,N,k,O;w.orientation==="h"?(I=y,D="x",N=E,k="y",O=!!w.yperiodalignment):(I=E,D="y",N=y,k="x",O=!!w.xperiodalignment);var F=p(w,k,N,C[o]),z=F[0],B=F[1],W=L.distinctVals(z,N),J=W.vals,re=W.minDiff/2,ne,le,$,Z,ie,X,Q=(w.boxpoints||w.points)==="all"?L.identity:function(Ct){return Ct.vne.uf};if(w._hasPreCompStats){var oe=w[D],Y=function(Ct){return I.d2c((w[Ct]||[])[M])},j=1/0,se=-1/0;for(M=0;M=ne.q1&&ne.q3>=ne.med){var fe=Y("lowerfence");ne.lf=fe!==S&&fe<=ne.q1?fe:g(ne,$,Z);var ge=Y("upperfence");ne.uf=ge!==S&&ge>=ne.q3?ge:h(ne,$,Z);var be=Y("mean");ne.mean=be!==S?be:Z?L.mean($,Z):(ne.q1+ne.q3)/2;var xe=Y("sd");ne.sd=be!==S&&xe>=0?xe:Z?L.stdev($,Z,ne.mean):ne.q3-ne.q1,ne.lo=T(ne),ne.uo=c(ne);var _e=Y("notchspan");_e=_e!==S&&_e>0?_e:i(ne,Z),ne.ln=ne.med-_e,ne.un=ne.med+_e;var De=ne.lf,Fe=ne.uf;w.boxpoints&&$.length&&(De=Math.min(De,$[0]),Fe=Math.max(Fe,$[Z-1])),w.notched&&(De=Math.min(De,ne.ln),Fe=Math.max(Fe,ne.un)),ne.min=De,ne.max=Fe}else{L.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+ne.q1,"median = "+ne.med,"q3 = "+ne.q3].join(` -`));var Te;ne.med!==S?Te=ne.med:ne.q1!==S?ne.q3!==S?Te=(ne.q1+ne.q3)/2:Te=ne.q1:ne.q3!==S?Te=ne.q3:Te=0,ne.med=Te,ne.q1=ne.q3=Te,ne.lf=ne.uf=Te,ne.mean=ne.sd=Te,ne.ln=ne.un=Te,ne.min=ne.max=Te}j=Math.min(j,ne.min),se=Math.max(se,ne.max),ne.pts2=le.filter(Q),A.push(ne)}}w._extremes[I._id]=P.findExtremes(I,[j,se],{padded:!0})}else{var Re=I.makeCalcdata(w,D),Se=r(J,re),Ie=J.length,Me=t(Ie);for(M=0;M=0&&Ve0){if(ne={},ne.pos=ne[k]=J[M],le=ne.pts=Me[M].sort(u),$=ne[D]=le.map(l),Z=$.length,ne.min=$[0],ne.max=$[Z-1],ne.mean=L.mean($,Z),ne.sd=L.stdev($,Z,ne.mean)*w.sdmultiple,ne.med=L.interp($,.5),Z%2&&($e||ht)){var vt,pt;$e?(vt=$.slice(0,Z/2),pt=$.slice(Z/2+1)):ht&&(vt=$.slice(0,Z/2+1),pt=$.slice(Z/2)),ne.q1=L.interp(vt,.5),ne.q3=L.interp(pt,.5)}else ne.q1=L.interp($,.25),ne.q3=L.interp($,.75);ne.lf=g(ne,$,Z),ne.uf=h(ne,$,Z),ne.lo=T(ne),ne.uo=c(ne);var wt=i(ne,Z);ne.ln=ne.med-wt,ne.un=ne.med+wt,et=Math.min(et,ne.ln),ot=Math.max(ot,ne.un),ne.pts2=le.filter(Q),A.push(ne)}w.notched&&L.isTypedArray(Re)&&(Re=Array.from(Re)),w._extremes[I._id]=P.findExtremes(I,w.notched?Re.concat([et,ot]):Re,{padded:!0})}return f(A,w),A.length>0?(A[0].t={num:C[o],dPos:re,posLetter:k,valLetter:D,labels:{med:v(x,"median:"),min:v(x,"min:"),q1:v(x,"q1:"),q3:v(x,"q3:"),max:v(x,"max:"),mean:w.boxmean==="sd"||w.sizemode==="sd"?v(x,"mean ± σ:").replace("σ",w.sdmultiple===1?"σ":w.sdmultiple+"σ"):v(x,"mean:"),lf:v(x,"lower fence:"),uf:v(x,"upper fence:")}},C[o]++,A):[{t:{empty:!0}}]};function p(d,x,w,C){var y=x in d,E=x+"0"in d,A="d"+x in d;if(y||E&&A){var o=w.makeCalcdata(d,x),M=s(d,w,x,o).vals;return[M,o]}var b;E?b=d[x+"0"]:"name"in d&&(w.type==="category"||m(d.name)&&["linear","log"].indexOf(w.type)!==-1||L.isDateTime(d.name)&&w.type==="date")?b=d.name:b=C;for(var I=w.type==="multicategory"?w.r2c_just_indices(b):w.d2c(b,0,d[x+"calendar"]),D=d._length,N=new Array(D),k=0;k1,E=1-f[p+"gap"],A=1-f[p+"groupgap"];for(g=0;g0;if(I==="positive"?(ne=D*(b?1:.5),Z=$,le=Z=k):I==="negative"?(ne=Z=k,le=D*(b?1:.5),ie=$):(ne=le=D,Z=ie=$),se){var te=o.pointpos,fe=o.jitter,ge=o.marker.size/2,be=0;te+fe>=0&&(be=$*(te+fe),be>ne?(j=!0,oe=ge,X=be):be>Z&&(oe=ge,X=ne)),be<=ne&&(X=ne);var xe=0;te-fe<=0&&(xe=-$*(te-fe),xe>le?(j=!0,Y=ge,Q=xe):xe>ie&&(Y=ge,Q=le)),xe<=le&&(Q=le)}else X=ne,Q=le;var _e=new Array(T.length);for(h=0;h0?(I="v",E>0?D=Math.min(o,A):D=Math.min(A)):E>0?(I="h",D=Math.min(o)):D=0;if(!D){u.visible=!1;return}u._length=D;var z=l("orientation",I);u._hasPreCompStats?z==="v"&&E===0?(l("x0",0),l("dx",1)):z==="h"&&y===0&&(l("y0",0),l("dy",1)):z==="v"&&E===0?l("x0"):z==="h"&&y===0&&l("y0");var B=P.getComponentMethod("calendars","handleTraceDefaults");B(f,u,["x","y"],g)}function a(f,u,l,g){var h=g.prefix,T=m.coerce2(f,u,p,"marker.outliercolor"),c=l("marker.line.outliercolor"),i="outliers";u._hasPreCompStats?i="all":(T||c)&&(i="suspectedoutliers");var d=l(h+"points",i);d?(l("jitter",d==="all"?.3:0),l("pointpos",d==="all"?-1.5:0),l("marker.symbol"),l("marker.opacity"),l("marker.size"),l("marker.angle"),l("marker.color",u.line.color),l("marker.line.color"),l("marker.line.width"),d==="suspectedoutliers"&&(l("marker.line.outliercolor",u.marker.color),l("marker.line.outlierwidth")),l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size"),l("text"),l("hovertext")):delete u.marker;var x=l("hoveron");(x==="all"||x.indexOf("points")!==-1)&&l("hovertemplate"),m.coerceSelectionMarkerOpacity(u,l)}function n(f,u){var l,g;function h(i){return m.coerce(g._input,g,p,i)}for(var T=0;Tw.lo&&(z.so=!0)}return y});x.enter().append("path").classed("point",!0),x.exit().remove(),x.call(s.translatePoints,l,g)}function t(a,n,f,u){var l=n.val,g=n.pos,h=!!g.rangebreaks,T=u.bPos,c=u.bPosPxOffset||0,i=f.boxmean||(f.meanline||{}).visible,d,x;Array.isArray(u.bdPos)?(d=u.bdPos[0],x=u.bdPos[1]):(d=u.bdPos,x=u.bdPos);var w=a.selectAll("path.mean").data(f.type==="box"&&f.boxmean||f.type==="violin"&&f.box.visible&&f.meanline.visible?P.identity:[]);w.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),w.exit().remove(),w.each(function(C){var y=g.c2l(C.pos+T,!0),E=g.l2p(y-d)+c,A=g.l2p(y+x)+c,o=h?(E+A)/2:g.l2p(y)+c,M=l.c2p(C.mean,!0),b=l.c2p(C.mean-C.sd,!0),I=l.c2p(C.mean+C.sd,!0);f.orientation==="h"?m.select(this).attr("d","M"+M+","+E+"V"+A+(i==="sd"?"m0,0L"+b+","+o+"L"+M+","+E+"L"+I+","+o+"Z":"")):m.select(this).attr("d","M"+E+","+M+"H"+A+(i==="sd"?"m0,0L"+o+","+b+"L"+E+","+M+"L"+o+","+I+"Z":""))})}G.exports={plot:v,plotBoxAndWhiskers:p,plotPoints:r,plotBoxMean:t}},8264:function(G){G.exports=function(e,m){var P=e.cd,s=e.xaxis,L=e.yaxis,S=[],v,p;if(m===!1)for(v=0;v=10)return null;for(var S=1/0,v=-1/0,p=s.length,r=0;r0?Math.floor:Math.ceil,O=D>0?Math.ceil:Math.floor,F=D>0?Math.min:Math.max,z=D>0?Math.max:Math.min,B=k(b+N),W=O(I-N);f=M(b);var J=[[f]];for(v=B;v*D=0;L--)S[a-L]=e[n][L],v[a-L]=m[n][L];for(p.push({x:S,y:v,bicubic:r}),L=n,S=[],v=[];L>=0;L--)S[n-L]=e[L][0],v[n-L]=m[L][0];return p.push({x:S,y:v,bicubic:t}),p}},19216:function(G,H,e){var m=e(54460),P=e(92880).extendFlat;G.exports=function(L,S,v){var p,r,t,a,n,f,u,l,g,h,T,c,i,d,x=L["_"+S],w=L[S+"axis"],C=w._gridlines=[],y=w._minorgridlines=[],E=w._boundarylines=[],A=L["_"+v],o=L[v+"axis"];w.tickmode==="array"&&(w.tickvals=x.slice());var M=L._xctrl,b=L._yctrl,I=M[0].length,D=M.length,N=L._a.length,k=L._b.length;m.prepTicks(w),w.tickmode==="array"&&delete w.tickvals;var O=w.smoothing?3:1;function F(B){var W,J,re,ne,le,$,Z,ie,X,Q,oe,Y,j=[],se=[],te={};if(S==="b")for(J=L.b2j(B),re=Math.floor(Math.max(0,Math.min(k-2,J))),ne=J-re,te.length=k,te.crossLength=N,te.xy=function(fe){return L.evalxy([],fe,J)},te.dxy=function(fe,ge){return L.dxydi([],fe,re,ge,ne)},W=0;W0&&(X=L.dxydi([],W-1,re,0,ne),j.push(le[0]+X[0]/3),se.push(le[1]+X[1]/3),Q=L.dxydi([],W-1,re,1,ne),j.push(ie[0]-Q[0]/3),se.push(ie[1]-Q[1]/3)),j.push(ie[0]),se.push(ie[1]),le=ie;else for(W=L.a2i(B),$=Math.floor(Math.max(0,Math.min(N-2,W))),Z=W-$,te.length=N,te.crossLength=k,te.xy=function(fe){return L.evalxy([],W,fe)},te.dxy=function(fe,ge){return L.dxydj([],$,fe,Z,ge)},J=0;J0&&(oe=L.dxydj([],$,J-1,Z,0),j.push(le[0]+oe[0]/3),se.push(le[1]+oe[1]/3),Y=L.dxydj([],$,J-1,Z,1),j.push(ie[0]-Y[0]/3),se.push(ie[1]-Y[1]/3)),j.push(ie[0]),se.push(ie[1]),le=ie;return te.axisLetter=S,te.axis=w,te.crossAxis=o,te.value=B,te.constvar=v,te.index=l,te.x=j,te.y=se,te.smoothing=o.smoothing,te}function z(B){var W,J,re,ne,le,$=[],Z=[],ie={};if(ie.length=x.length,ie.crossLength=A.length,S==="b")for(re=Math.max(0,Math.min(k-2,B)),le=Math.min(1,Math.max(0,B-re)),ie.xy=function(X){return L.evalxy([],X,B)},ie.dxy=function(X,Q){return L.dxydi([],X,re,Q,le)},W=0;Wx.length-1)&&C.push(P(z(r),{color:w.gridcolor,width:w.gridwidth,dash:w.griddash}));for(l=f;lx.length-1)&&!(T<0||T>x.length-1))for(c=x[t],i=x[T],p=0;px[x.length-1])&&y.push(P(F(h),{color:w.minorgridcolor,width:w.minorgridwidth,dash:w.minorgriddash})));w.startline&&E.push(P(z(0),{color:w.startlinecolor,width:w.startlinewidth})),w.endline&&E.push(P(z(x.length-1),{color:w.endlinecolor,width:w.endlinewidth}))}else{for(a=5e-15,n=[Math.floor((x[x.length-1]-w.tick0)/w.dtick*(1+a)),Math.ceil((x[0]-w.tick0)/w.dtick/(1+a))].sort(function(B,W){return B-W}),f=n[0],u=n[1],l=f;l<=u;l++)g=w.tick0+w.dtick*l,C.push(P(F(g),{color:w.gridcolor,width:w.gridwidth,dash:w.griddash}));for(l=f-1;lx[x.length-1])&&y.push(P(F(h),{color:w.minorgridcolor,width:w.minorgridwidth,dash:w.minorgriddash}));w.startline&&E.push(P(F(x[0]),{color:w.startlinecolor,width:w.startlinewidth})),w.endline&&E.push(P(F(x[x.length-1]),{color:w.endlinecolor,width:w.endlinewidth}))}}},14724:function(G,H,e){var m=e(54460),P=e(92880).extendFlat;G.exports=function(L,S){var v,p,r,t,a,n=S._labels=[],f=S._gridlines;for(v=0;vL.length&&(s=s.slice(0,L.length)):s=[],v=0;v90&&(u-=180,r=-r),{angle:u,flip:r,p:e.c2p(s,m,P),offsetMultplier:t}}},164:function(G,H,e){var m=e(33428),P=e(43616),s=e(87072),L=e(53416),S=e(15584),v=e(72736),p=e(3400),r=p.strRotate,t=p.strTranslate,a=e(84284);G.exports=function(i,d,x,w){var C=i._context.staticPlot,y=d.xaxis,E=d.yaxis,A=i._fullLayout,o=A._clips;p.makeTraceGroups(w,x,"trace").each(function(M){var b=m.select(this),I=M[0],D=I.trace,N=D.aaxis,k=D.baxis,O=p.ensureSingle(b,"g","minorlayer"),F=p.ensureSingle(b,"g","majorlayer"),z=p.ensureSingle(b,"g","boundarylayer"),B=p.ensureSingle(b,"g","labellayer");b.style("opacity",D.opacity),f(y,E,F,N,"a",N._gridlines,!0),f(y,E,F,k,"b",k._gridlines,!0),f(y,E,O,N,"a",N._minorgridlines,!0),f(y,E,O,k,"b",k._minorgridlines,!0),f(y,E,z,N,"a-boundary",N._boundarylines,C),f(y,E,z,k,"b-boundary",k._boundarylines,C);var W=u(i,y,E,D,I,B,N._labels,"a-label"),J=u(i,y,E,D,I,B,k._labels,"b-label");l(i,B,D,I,y,E,W,J),n(D,I,o,y,E)})};function n(c,i,d,x,w){var C,y,E,A,o=d.select("#"+c._clipPathId);o.size()||(o=d.append("clipPath").classed("carpetclip",!0));var M=p.ensureSingle(o,"path","carpetboundary"),b=i.clipsegments,I=[];for(A=0;A0?"start":"end","data-notex":1}).call(P.font,b.font).text(b.text).call(v.convertToTspans,c),F=P.bBox(this);O.attr("transform",t(D.p[0],D.p[1])+r(D.angle)+t(b.axis.labelpadding*k,F.height*.3)),o=Math.max(o,F.width+b.axis.labelpadding)}),A.exit().remove(),M.maxExtent=o,M}function l(c,i,d,x,w,C,y,E){var A,o,M,b,I=p.aggNums(Math.min,null,d.a),D=p.aggNums(Math.max,null,d.a),N=p.aggNums(Math.min,null,d.b),k=p.aggNums(Math.max,null,d.b);A=.5*(I+D),o=N,M=d.ab2xy(A,o,!0),b=d.dxyda_rough(A,o),y.angle===void 0&&p.extendFlat(y,S(d,w,C,M,d.dxydb_rough(A,o))),T(c,i,d,x,M,b,d.aaxis,w,C,y,"a-title"),A=I,o=.5*(N+k),M=d.ab2xy(A,o,!0),b=d.dxydb_rough(A,o),E.angle===void 0&&p.extendFlat(E,S(d,w,C,M,d.dxyda_rough(A,o))),T(c,i,d,x,M,b,d.baxis,w,C,E,"b-title")}var g=a.LINE_SPACING,h=(1-a.MID_SHIFT)/g+1;function T(c,i,d,x,w,C,y,E,A,o,M){var b=[];y.title.text&&b.push(y.title.text);var I=i.selectAll("text."+M).data(b),D=o.maxExtent;I.enter().append("text").classed(M,!0),I.each(function(){var N=S(d,E,A,w,C);["start","both"].indexOf(y.showticklabels)===-1&&(D=0);var k=y.title.font.size;D+=k+y.title.offset;var O=o.angle+(o.flip<0?180:0),F=(O-N.angle+450)%360,z=F>90&&F<270,B=m.select(this);B.text(y.title.text).call(v.convertToTspans,c),z&&(D=(-v.lineCount(B)+h)*g*k-D),B.attr("transform",t(N.p[0],N.p[1])+r(N.angle)+t(0,D)).attr("text-anchor","middle").call(P.font,y.title.font)}),I.exit().remove()}},81e3:function(G,H,e){var m=e(24588),P=e(14952).findBin,s=e(30180),L=e(29056),S=e(26435),v=e(24464);G.exports=function(r){var t=r._a,a=r._b,n=t.length,f=a.length,u=r.aaxis,l=r.baxis,g=t[0],h=t[n-1],T=a[0],c=a[f-1],i=t[t.length-1]-t[0],d=a[a.length-1]-a[0],x=i*m.RELATIVE_CULL_TOLERANCE,w=d*m.RELATIVE_CULL_TOLERANCE;g-=x,h+=x,T-=w,c+=w,r.isVisible=function(C,y){return C>g&&CT&&yh||yc},r.setScale=function(){var C=r._x,y=r._y,E=s(r._xctrl,r._yctrl,C,y,u.smoothing,l.smoothing);r._xctrl=E[0],r._yctrl=E[1],r.evalxy=L([r._xctrl,r._yctrl],n,f,u.smoothing,l.smoothing),r.dxydi=S([r._xctrl,r._yctrl],u.smoothing,l.smoothing),r.dxydj=v([r._xctrl,r._yctrl],u.smoothing,l.smoothing)},r.i2a=function(C){var y=Math.max(0,Math.floor(C[0]),n-2),E=C[0]-y;return(1-E)*t[y]+E*t[y+1]},r.j2b=function(C){var y=Math.max(0,Math.floor(C[1]),n-2),E=C[1]-y;return(1-E)*a[y]+E*a[y+1]},r.ij2ab=function(C){return[r.i2a(C[0]),r.j2b(C[1])]},r.a2i=function(C){var y=Math.max(0,Math.min(P(C,t),n-2)),E=t[y],A=t[y+1];return Math.max(0,Math.min(n-1,y+(C-E)/(A-E)))},r.b2j=function(C){var y=Math.max(0,Math.min(P(C,a),f-2)),E=a[y],A=a[y+1];return Math.max(0,Math.min(f-1,y+(C-E)/(A-E)))},r.ab2ij=function(C){return[r.a2i(C[0]),r.b2j(C[1])]},r.i2c=function(C,y){return r.evalxy([],C,y)},r.ab2xy=function(C,y,E){if(!E&&(Ct[n-1]|ya[f-1]))return[!1,!1];var A=r.a2i(C),o=r.b2j(y),M=r.evalxy([],A,o);if(E){var b=0,I=0,D=[],N,k,O,F;Ct[n-1]?(N=n-2,k=1,b=(C-t[n-1])/(t[n-1]-t[n-2])):(N=Math.max(0,Math.min(n-2,Math.floor(A))),k=A-N),ya[f-1]?(O=f-2,F=1,I=(y-a[f-1])/(a[f-1]-a[f-2])):(O=Math.max(0,Math.min(f-2,Math.floor(o))),F=o-O),b&&(r.dxydi(D,N,O,k,F),M[0]+=D[0]*b,M[1]+=D[1]*b),I&&(r.dxydj(D,N,O,k,F),M[0]+=D[0]*I,M[1]+=D[1]*I)}return M},r.c2p=function(C,y,E){return[y.c2p(C[0]),E.c2p(C[1])]},r.p2x=function(C,y,E){return[y.p2c(C[0]),E.p2c(C[1])]},r.dadi=function(C){var y=Math.max(0,Math.min(t.length-2,C));return t[y+1]-t[y]},r.dbdj=function(C){var y=Math.max(0,Math.min(a.length-2,C));return a[y+1]-a[y]},r.dxyda=function(C,y,E,A){var o=r.dxydi(null,C,y,E,A),M=r.dadi(C,E);return[o[0]/M,o[1]/M]},r.dxydb=function(C,y,E,A){var o=r.dxydj(null,C,y,E,A),M=r.dbdj(y,A);return[o[0]/M,o[1]/M]},r.dxyda_rough=function(C,y,E){var A=i*(E||.1),o=r.ab2xy(C+A,y,!0),M=r.ab2xy(C-A,y,!0);return[(o[0]-M[0])*.5/A,(o[1]-M[1])*.5/A]},r.dxydb_rough=function(C,y,E){var A=d*(E||.1),o=r.ab2xy(C,y+A,!0),M=r.ab2xy(C,y-A,!0);return[(o[0]-M[0])*.5/A,(o[1]-M[1])*.5/A]},r.dpdx=function(C){return C._m},r.dpdy=function(C){return C._m}}},51512:function(G,H,e){var m=e(3400);G.exports=function(s,L,S){var v,p,r,t=[],a=[],n=s[0].length,f=s.length;function u(J,re){var ne=0,le,$=0;return J>0&&(le=s[re][J-1])!==void 0&&($++,ne+=le),J0&&(le=s[re-1][J])!==void 0&&($++,ne+=le),re0&&p0&&vA);return m.log("Smoother converged to",o,"after",b,"iterations"),s}},86411:function(G,H,e){var m=e(3400).isArray1D;G.exports=function(s,L,S){var v=S("x"),p=v&&v.length,r=S("y"),t=r&&r.length;if(!p&&!t)return!1;if(L._cheater=!v,(!p||m(v))&&(!t||m(r))){var a=p?v.length:1/0;t&&(a=Math.min(a,r.length)),L.a&&L.a.length&&(a=Math.min(a,L.a.length)),L.b&&L.b.length&&(a=Math.min(a,L.b.length)),L._length=a}else L._length=null;return!0}},83372:function(G,H,e){var m=e(21776).Ks,P=e(6096),s=e(49084),L=e(45464),S=e(22548).defaultLine,v=e(92880).extendFlat,p=P.marker.line;G.exports=v({locations:{valType:"data_array",editType:"calc"},locationmode:P.locationmode,z:{valType:"data_array",editType:"calc"},geojson:v({},P.geojson,{}),featureidkey:P.featureidkey,text:v({},P.text,{}),hovertext:v({},P.hovertext,{}),marker:{line:{color:v({},p.color,{dflt:S}),width:v({},p.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:P.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:P.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:v({},L.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:m(),showlegend:v({},L.showlegend,{dflt:!1})},s("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(G,H,e){var m=e(38248),P=e(39032).BADNUM,s=e(47128),L=e(20148),S=e(4500);function v(p){return p&&typeof p=="string"}G.exports=function(r,t){var a=t._length,n=new Array(a),f;t.geojson?f=function(T){return v(T)||m(T)}:f=v;for(var u=0;u")}}},54272:function(G,H,e){G.exports={attributes:e(83372),supplyDefaults:e(30972),colorbar:e(96288),calc:e(7924),calcGeoJSON:e(88364).calcGeoJSON,plot:e(88364).plot,style:e(7947).style,styleOnSelect:e(7947).styleOnSelect,hoverPoints:e(69224),eventData:e(52428),selectPoints:e(17328),moduleType:"trace",name:"choropleth",basePlotModule:e(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(G,H,e){var m=e(33428),P=e(3400),s=e(27144),L=e(59972).getTopojsonFeatures,S=e(19280).findExtremes,v=e(7947).style;function p(t,a,n){var f=a.layers.backplot.select(".choroplethlayer");P.makeTraceGroups(f,n,"trace choropleth").each(function(u){var l=m.select(this),g=l.selectAll("path.choroplethlocation").data(P.identity);g.enter().append("path").classed("choroplethlocation",!0),g.exit().remove(),v(t,u)})}function r(t,a){for(var n=t[0].trace,f=a[n.geo],u=f._subplot,l=n.locationmode,g=n._length,h=l==="geojson-id"?s.extractTraceFeature(t):L(n,u.topojson),T=[],c=[],i=0;i=0;L--){var S=s[L].id;if(typeof S=="string"&&S.indexOf("water")===0){for(var v=L+1;v=0;r--)v.removeLayer(p[r][1])},S.dispose=function(){var v=this.subplot.map;this._removeLayers(),v.removeSource(this.sourceId)},G.exports=function(p,r){var t=r[0].trace,a=new L(p,t.uid),n=a.sourceId,f=m(r),u=a.below=p.belowLookup["trace-"+t.uid];return p.map.addSource(n,{type:"geojson",data:f.geojson}),a._addLayers(f,u),r[0].trace._glTrace=a,a}},86040:function(G,H,e){var m=e(49084),P=e(29736).axisHoverFormat,s=e(21776).Ks,L=e(52948),S=e(45464),v=e(92880).extendFlat,p={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:s({editType:"calc"},{keys:["norm"]}),uhoverformat:P("u",1),vhoverformat:P("v",1),whoverformat:P("w",1),xhoverformat:P("x"),yhoverformat:P("y"),zhoverformat:P("z"),showlegend:v({},S.showlegend,{dflt:!1})};v(p,m("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var r=["opacity","lightposition","lighting"];r.forEach(function(t){p[t]=L[t]}),p.hoverinfo=v({},S.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),p.transforms=void 0,G.exports=p},83344:function(G,H,e){var m=e(47128);G.exports=function(s,L){for(var S=L.u,v=L.v,p=L.w,r=Math.min(L.x.length,L.y.length,L.z.length,S.length,v.length,p.length),t=-1/0,a=1/0,n=0;nS.level||S.starts.length&&L===S.level)}break;case"constraint":if(m.prefixBoundary=!1,m.edgepaths.length)return;var v=m.x.length,p=m.y.length,r=-1/0,t=1/0;for(s=0;s":a>r&&(m.prefixBoundary=!0);break;case"<":(ar||m.starts.length&&f===t)&&(m.prefixBoundary=!0);break;case"][":n=Math.min(a[0],a[1]),f=Math.max(a[0],a[1]),nr&&(m.prefixBoundary=!0);break}break}}},55296:function(G,H,e){var m=e(8932),P=e(41076),s=e(46960);function L(S,v,p){var r=v.contours,t=v.line,a=r.size||1,n=r.coloring,f=P(v,{isColorbar:!0});if(n==="heatmap"){var u=m.extractOpts(v);p._fillgradient=u.reversescale?m.flipScale(u.colorscale):u.colorscale,p._zrange=[u.min,u.max]}else n==="fill"&&(p._fillcolor=f);p._line={color:n==="lines"?f:t.color,width:r.showlines!==!1?t.width:0,dash:t.dash},p._levels={start:r.start,end:s(r),size:a}}G.exports={min:"zmin",max:"zmax",calc:L}},93252:function(G){G.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(G,H,e){var m=e(38248),P=e(17428),s=e(76308),L=s.addOpacity,S=s.opacity,v=e(69104),p=e(3400).isArrayOrTypedArray,r=v.CONSTRAINT_REDUCTION,t=v.COMPARISON_OPS2;G.exports=function(f,u,l,g,h,T){var c=u.contours,i,d,x,w=l("contours.operation");if(c._operation=r[w],a(l,c),w==="="?i=c.showlines=!0:(i=l("contours.showlines"),x=l("fillcolor",L((f.line||{}).color||h,.5))),i){var C=x&&S(x)?L(u.fillcolor,1):h;d=l("line.color",C),l("line.width",2),l("line.dash")}l("line.smoothing"),P(l,g,d,T)};function a(n,f){var u;t.indexOf(f.operation)===-1?(n("contours.value",[0,1]),p(f.value)?f.value.length>2?f.value=f.value.slice(2):f.length===0?f.value=[0,1]:f.length<2?(u=parseFloat(f.value[0]),f.value=[u,u+1]):f.value=[parseFloat(f.value[0]),parseFloat(f.value[1])]:m(f.value)&&(u=parseFloat(f.value),f.value=[u,u+1])):(n("contours.value",0),m(f.value)||(p(f.value)?f.value=parseFloat(f.value[0]):f.value=0))}},3212:function(G,H,e){var m=e(69104),P=e(38248);G.exports={"[]":L("[]"),"][":L("]["),">":S(">"),"<":S("<"),"=":S("=")};function s(v,p){var r=Array.isArray(p),t;function a(n){return P(n)?+n:null}return m.COMPARISON_OPS2.indexOf(v)!==-1?t=a(r?p[0]:p):m.INTERVAL_OPS.indexOf(v)!==-1?t=r?[a(p[0]),a(p[1])]:[a(p),a(p)]:m.SET_OPS.indexOf(v)!==-1&&(t=r?p.map(a):[a(p)]),t}function L(v){return function(p){p=s(v,p);var r=Math.min(p[0],p[1]),t=Math.max(p[0],p[1]);return{start:r,end:t,size:t-r}}}function S(v){return function(p){return p=s(v,p),{start:p,end:1/0,size:1/0}}}},84952:function(G){G.exports=function(e,m,P,s){var L=s("contours.start"),S=s("contours.end"),v=L===!1||S===!1,p=P("contours.size"),r;v?r=m.autocontour=!0:r=P("autocontour",!1),(r||!p)&&P("ncontours")}},82172:function(G,H,e){var m=e(3400);G.exports=function(s,L){var S,v,p,r=function(n){return n.reverse()},t=function(n){return n};switch(L){case"=":case"<":return s;case">":for(s.length!==1&&m.warn("Contour data invalid for the specified inequality operation."),v=s[0],S=0;S1e3){m.warn("Too many contours, clipping at 1000",S);break}return a}},46960:function(G){G.exports=function(e){return e.end+e.size/1e6}},88748:function(G,H,e){var m=e(3400),P=e(93252);G.exports=function(t,a,n){var f,u,l,g,h;for(a=a||.01,n=n||.01,l=0;l20?(l=P.CHOOSESADDLE[l][(g[0]||g[1])<0?0:1],r.crossings[u]=P.SADDLEREMAINDER[l]):delete r.crossings[u],g=P.NEWDELTA[l],!g){m.log("Found bad marching index:",l,t,r.level);break}h.push(p(r,t,g)),t[0]+=g[0],t[1]+=g[1],u=t.join(","),s(h[h.length-1],h[h.length-2],n,f)&&h.pop();var w=g[0]&&(t[0]<0||t[0]>c-2)||g[1]&&(t[1]<0||t[1]>T-2),C=t[0]===i[0]&&t[1]===i[1]&&g[0]===d[0]&&g[1]===d[1];if(C||a&&w)break;l=r.crossings[u]}x===1e4&&m.log("Infinite loop in contour?");var y=s(h[0],h[h.length-1],n,f),E=0,A=.2*r.smoothing,o=[],M=0,b,I,D,N,k,O,F,z,B,W,J;for(x=1;x=M;x--)if(b=o[x],b=M&&b+o[I]z&&B--,r.edgepaths[B]=J.concat(h,W));break}$||(r.edgepaths[z]=h.concat(W))}for(z=0;z20&&t?r===208||r===1114?n=a[0]===0?1:-1:f=a[1]===0?1:-1:P.BOTTOMSTART.indexOf(r)!==-1?f=1:P.LEFTSTART.indexOf(r)!==-1?n=1:P.TOPSTART.indexOf(r)!==-1?f=-1:n=-1,[n,f]}function p(r,t,a){var n=t[0]+Math.max(a[0],0),f=t[1]+Math.max(a[1],0),u=r.z[f][n],l=r.xaxis,g=r.yaxis;if(a[1]){var h=(r.level-u)/(r.z[f][n+1]-u),T=(h!==1?(1-h)*l.c2l(r.x[n]):0)+(h!==0?h*l.c2l(r.x[n+1]):0);return[l.c2p(l.l2c(T),!0),g.c2p(r.y[f],!0),n+h,f]}else{var c=(r.level-u)/(r.z[f+1][n]-u),i=(c!==1?(1-c)*g.c2l(r.y[f]):0)+(c!==0?c*g.c2l(r.y[f+1]):0);return[l.c2p(r.x[n],!0),g.c2p(g.l2c(i),!0),n,f+c]}}},38200:function(G,H,e){var m=e(76308),P=e(55512);G.exports=function(L,S,v,p,r){r||(r={}),r.isContour=!0;var t=P(L,S,v,p,r);return t&&t.forEach(function(a){var n=a.trace;n.contours.type==="constraint"&&(n.fillcolor&&m.opacity(n.fillcolor)?a.color=m.addOpacity(n.fillcolor,1):n.contours.showlines&&m.opacity(n.line.color)&&(a.color=m.addOpacity(n.line.color,1)))}),t}},66240:function(G,H,e){G.exports={attributes:e(67104),supplyDefaults:e(57004),calc:e(20688),plot:e(23676).plot,style:e(52440),colorbar:e(55296),hoverPoints:e(38200),moduleType:"trace",name:"contour",basePlotModule:e(57952),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},17428:function(G,H,e){var m=e(3400);G.exports=function(s,L,S,v){v||(v={});var p=s("contours.showlabels");if(p){var r=L.font;m.coerceFont(s,"contours.labelfont",r,{overrideDflt:{color:S}}),s("contours.labelformat")}v.hasHover!==!1&&s("zhoverformat")}},41076:function(G,H,e){var m=e(33428),P=e(8932),s=e(46960);G.exports=function(S){var v=S.contours,p=v.start,r=s(v),t=v.size||1,a=Math.floor((r-p)/t)+1,n=v.coloring==="lines"?0:1,f=P.extractOpts(S);isFinite(t)||(t=1,a=1);var u=f.reversescale?P.flipScale(f.colorscale):f.colorscale,l=u.length,g=new Array(l),h=new Array(l),T,c,i=f.min,d=f.max;if(v.coloring==="heatmap"){for(c=0;c=d)&&(p<=i&&(p=i),r>=d&&(r=d),a=Math.floor((r-p)/t)+1,n=0),c=0;ci&&(g.unshift(i),h.unshift(h[0])),g[g.length-1]s?0:1)+(L[0][1]>s?0:2)+(L[1][1]>s?0:4)+(L[1][0]>s?0:8);if(S===5||S===10){var v=(L[0][0]+L[0][1]+L[1][0]+L[1][1])/4;return s>v?S===5?713:1114:S===5?104:208}return S===15?0:S}},23676:function(G,H,e){var m=e(33428),P=e(3400),s=e(43616),L=e(8932),S=e(72736),v=e(54460),p=e(78344),r=e(41420),t=e(72424),a=e(88748),n=e(61512),f=e(82172),u=e(56008),l=e(93252),g=l.LABELOPTIMIZER;H.plot=function(y,E,A,o){var M=E.xaxis,b=E.yaxis;P.makeTraceGroups(o,A,"contour").each(function(I){var D=m.select(this),N=I[0],k=N.trace,O=N.x,F=N.y,z=k.contours,B=n(z,E,N),W=P.ensureSingle(D,"g","heatmapcoloring"),J=[];z.coloring==="heatmap"&&(J=[I]),r(y,E,J,W),t(B),a(B);var re=M.c2p(O[0],!0),ne=M.c2p(O[O.length-1],!0),le=b.c2p(F[0],!0),$=b.c2p(F[F.length-1],!0),Z=[[re,$],[ne,$],[ne,le],[re,le]],ie=B;z.type==="constraint"&&(ie=f(B,z._operation)),h(D,Z,z),T(D,ie,Z,z),i(D,B,y,N,z),x(D,E,y,N,Z)})};function h(C,y,E){var A=P.ensureSingle(C,"g","contourbg"),o=A.selectAll("path").data(E.coloring==="fill"?[0]:[]);o.enter().append("path"),o.exit().remove(),o.attr("d","M"+y.join("L")+"Z").style("stroke","none")}function T(C,y,E,A){var o=A.coloring==="fill"||A.type==="constraint"&&A._operation!=="=",M="M"+E.join("L")+"Z";o&&u(y,A);var b=P.ensureSingle(C,"g","contourfill"),I=b.selectAll("path").data(o?y:[]);I.enter().append("path"),I.exit().remove(),I.each(function(D){var N=(D.prefixBoundary?M:"")+c(D,E);N?m.select(this).attr("d",N).style("stroke","none"):m.select(this).remove()})}function c(C,y){var E="",A=0,o=C.edgepaths.map(function(re,ne){return ne}),M=!0,b,I,D,N,k,O;function F(re){return Math.abs(re[1]-y[0][1])<.01}function z(re){return Math.abs(re[1]-y[2][1])<.01}function B(re){return Math.abs(re[0]-y[0][0])<.01}function W(re){return Math.abs(re[0]-y[2][0])<.01}for(;o.length;){for(O=s.smoothopen(C.edgepaths[A],C.smoothing),E+=M?O:O.replace(/^M/,"L"),o.splice(o.indexOf(A),1),b=C.edgepaths[A][C.edgepaths[A].length-1],N=-1,D=0;D<4;D++){if(!b){P.log("Missing end?",A,C);break}for(F(b)&&!W(b)?I=y[1]:B(b)?I=y[0]:z(b)?I=y[3]:W(b)&&(I=y[2]),k=0;k=0&&(I=J,N=k):Math.abs(b[1]-I[1])<.01?Math.abs(b[1]-J[1])<.01&&(J[0]-b[0])*(I[0]-J[0])>=0&&(I=J,N=k):P.log("endpt to newendpt is not vert. or horz.",b,I,J)}if(b=I,N>=0)break;E+="L"+I}if(N===C.edgepaths.length){P.log("unclosed perimeter path");break}A=N,M=o.indexOf(A)===-1,M&&(A=o[0],E+="Z")}for(A=0;Ag.MAXCOST*2)break;F&&(I/=2),b=N-I/2,D=b+I*1.5}if(O<=g.MAXCOST)return k};function d(C,y,E,A){var o=y.width/2,M=y.height/2,b=C.x,I=C.y,D=C.theta,N=Math.cos(D)*o,k=Math.sin(D)*o,O=(b>A.center?A.right-b:b-A.left)/(N+Math.abs(Math.sin(D)*M)),F=(I>A.middle?A.bottom-I:I-A.top)/(Math.abs(k)+Math.cos(D)*M);if(O<1||F<1)return 1/0;var z=g.EDGECOST*(1/(O-1)+1/(F-1));z+=g.ANGLECOST*D*D;for(var B=b-N,W=I-k,J=b+N,re=I+k,ne=0;nep.end&&(p.start=p.end=(p.start+p.end)/2),S._input.contours||(S._input.contours={}),P.extendFlat(S._input.contours,{start:p.start,end:p.end,size:p.size}),S._input.autocontour=!0}else if(p.type!=="constraint"){var n=p.start,f=p.end,u=S._input.contours;if(n>f&&(p.start=u.start=f,f=p.end=u.end=n,n=p.start),!(p.size>0)){var l;n===f?l=1:l=s(n,f,S.ncontours).dtick,u.size=p.size=l}}};function s(L,S,v){var p={type:"linear",range:[L,S]};return m.autoTicks(p,(S-L)/(v||15)),p}},52440:function(G,H,e){var m=e(33428),P=e(43616),s=e(41648),L=e(41076);G.exports=function(v){var p=m.select(v).selectAll("g.contour");p.style("opacity",function(r){return r[0].trace.opacity}),p.each(function(r){var t=m.select(this),a=r[0].trace,n=a.contours,f=a.line,u=n.size||1,l=n.start,g=n.type==="constraint",h=!g&&n.coloring==="lines",T=!g&&n.coloring==="fill",c=h||T?L(a):null;t.selectAll("g.contourlevel").each(function(x){m.select(this).selectAll("path").call(P.lineGroupStyle,f.width,h?c(x.level):f.color,f.dash)});var i=n.labelfont;if(t.selectAll("g.contourlabels text").each(function(x){P.font(m.select(this),{weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow,family:i.family,size:i.size,color:i.color||(h?c(x.level):f.color)})}),g)t.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(T){var d;t.selectAll("g.contourfill path").style("fill",function(x){return d===void 0&&(d=x.level),c(x.level+.5*u)}),d===void 0&&(d=l),t.selectAll("g.contourbg path").style("fill",c(d-.5*u))}}),s(v)}},97680:function(G,H,e){var m=e(27260),P=e(17428);G.exports=function(L,S,v,p,r){var t=v("contours.coloring"),a,n="";t==="fill"&&(a=v("contours.showlines")),a!==!1&&(t!=="lines"&&(n=v("line.color","#000")),v("line.width",.5),v("line.dash")),t!=="none"&&(L.showlegend!==!0&&(S.showlegend=!1),S._dfltShowLegend=!1,m(L,S,p,v,{prefix:"",cLetter:"z"})),v("line.smoothing"),P(v,p,n,r)}},37960:function(G,H,e){var m=e(83328),P=e(67104),s=e(49084),L=e(92880).extendFlat,S=P.contours;G.exports=L({carpet:{valType:"string",editType:"calc"},z:m.z,a:m.x,a0:m.x0,da:m.dx,b:m.y,b0:m.y0,db:m.dy,text:m.text,hovertext:m.hovertext,transpose:m.transpose,atype:m.xtype,btype:m.ytype,fillcolor:P.fillcolor,autocontour:P.autocontour,ncontours:P.ncontours,contours:{type:S.type,start:S.start,end:S.end,size:S.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:S.showlines,showlabels:S.showlabels,labelfont:S.labelfont,labelformat:S.labelformat,operation:S.operation,value:S.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:P.line.color,width:P.line.width,dash:P.line.dash,smoothing:P.line.smoothing,editType:"plot"},zorder:P.zorder,transforms:void 0},s("",{cLetter:"z",autoColorDflt:!1}))},30572:function(G,H,e){var m=e(47128),P=e(3400),s=e(2872),L=e(26136),S=e(70448),v=e(11240),p=e(35744),r=e(3252),t=e(50948),a=e(54444);G.exports=function(u,l){var g=l._carpetTrace=t(u,l);if(!(!g||!g.visible||g.visible==="legendonly")){if(!l.a||!l.b){var h=u.data[g.index],T=u.data[l.index];T.a||(T.a=h.a),T.b||(T.b=h.b),r(T,l,l._defaultColor,u._fullLayout)}var c=n(u,l);return a(l,l._z),c}};function n(f,u){var l=u._carpetTrace,g=l.aaxis,h=l.baxis,T,c,i,d,x,w,C;g._minDtick=0,h._minDtick=0,P.isArray1D(u.z)&&s(u,g,h,"a","b",["z"]),T=u._a=u._a||u.a,d=u._b=u._b||u.b,T=T?g.makeCalcdata(u,"_a"):[],d=d?h.makeCalcdata(u,"_b"):[],c=u.a0||0,i=u.da||1,x=u.b0||0,w=u.db||1,C=u._z=L(u._z||u.z,u.transpose),u._emptypoints=v(C),S(C,u._emptypoints);var y=P.maxRowLength(C),E=u.xtype==="scaled"?"":T,A=p(u,E,c,i,y,g),o=u.ytype==="scaled"?"":d,M=p(u,o,x,w,C.length,h),b={a:A,b:M,z:C};return u.contours.type==="levels"&&u.contours.coloring!=="none"&&m(f,u,{vals:C,containerStr:"",cLetter:"z"}),[b]}},3252:function(G,H,e){var m=e(3400),P=e(51264),s=e(37960),L=e(95536),S=e(84952),v=e(97680);G.exports=function(r,t,a,n){function f(h,T){return m.coerce(r,t,s,h,T)}function u(h){return m.coerce2(r,t,s,h)}if(f("carpet"),r.a&&r.b){var l=P(r,t,f,n,"a","b");if(!l){t.visible=!1;return}f("text");var g=f("contours.type")==="constraint";g?L(r,t,f,n,a,{hasHover:!1}):(S(r,t,f,u),v(r,t,f,n,{hasHover:!1}))}else t._defaultColor=a,t._length=null;f("zorder")}},40448:function(G,H,e){G.exports={attributes:e(37960),supplyDefaults:e(3252),colorbar:e(55296),calc:e(30572),plot:e(94440),style:e(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:e(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(G,H,e){var m=e(33428),P=e(87072),s=e(53416),L=e(43616),S=e(3400),v=e(72424),p=e(88748),r=e(23676),t=e(93252),a=e(82172),n=e(61512),f=e(56008),u=e(50948),l=e(77712);G.exports=function(E,A,o,M){var b=A.xaxis,I=A.yaxis;S.makeTraceGroups(M,o,"contour").each(function(D){var N=m.select(this),k=D[0],O=k.trace,F=O._carpetTrace=u(E,O),z=E.calcdata[F.index][0];if(!F.visible||F.visible==="legendonly")return;var B=k.a,W=k.b,J=O.contours,re=n(J,A,k),ne=J.type==="constraint",le=J._operation,$=ne?le==="="?"lines":"fill":J.coloring;function Z(be){var xe=F.ab2xy(be[0],be[1],!0);return[b.c2p(xe[0]),I.c2p(xe[1])]}var ie=[[B[0],W[W.length-1]],[B[B.length-1],W[W.length-1]],[B[B.length-1],W[0]],[B[0],W[0]]];v(re);var X=(B[B.length-1]-B[0])*1e-8,Q=(W[W.length-1]-W[0])*1e-8;p(re,X,Q);var oe=re;J.type==="constraint"&&(oe=a(re,le)),g(re,Z);var Y,j,se,te,fe=[];for(te=z.clipsegments.length-1;te>=0;te--)Y=z.clipsegments[te],j=P([],Y.x,b.c2p),se=P([],Y.y,I.c2p),j.reverse(),se.reverse(),fe.push(s(j,se,Y.bicubic));var ge="M"+fe.join("L")+"Z";x(N,z.clipsegments,b,I,ne,$),w(O,N,b,I,oe,ie,Z,F,z,$,ge),h(N,re,E,k,J,A,F),L.setClipUrl(N,F._clipPathId,E)})};function g(y,E){var A,o,M,b,I,D,N,k,O;for(A=0;Are&&(o.max=re),o.len=o.max-o.min}function c(y,E,A){var o=y.getPointAtLength(E),M=y.getPointAtLength(A),b=M.x-o.x,I=M.y-o.y,D=Math.sqrt(b*b+I*I);return[b/D,I/D]}function i(y){var E=Math.sqrt(y[0]*y[0]+y[1]*y[1]);return[y[0]/E,y[1]/E]}function d(y,E){var A=Math.abs(y[0]*E[0]+y[1]*E[1]),o=Math.sqrt(1-A*A);return o/A}function x(y,E,A,o,M,b){var I,D,N,k,O=S.ensureSingle(y,"g","contourbg"),F=O.selectAll("path").data(b==="fill"&&!M?[0]:[]);F.enter().append("path"),F.exit().remove();var z=[];for(k=0;k=0&&(B=j,J=re):Math.abs(z[1]-B[1])<$?Math.abs(z[1]-j[1])<$&&(j[0]-z[0])*(B[0]-j[0])>=0&&(B=j,J=re):S.log("endpt to newendpt is not vert. or horz.",z,B,j)}if(J>=0)break;k+=oe(z,B),z=B}if(J===E.edgepaths.length){S.log("unclosed perimeter path");break}N=J,F=O.indexOf(N)===-1,F&&(N=O[0],k+=oe(z,B)+"Z",z=null)}for(N=0;N0?+h[l]:0),u.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:x})}}var C=L.extractOpts(t),y=C.reversescale?L.flipScale(C.colorscale):C.colorscale,E=y[0][1],A=s.opacity(E)<1?E:s.addOpacity(E,0),o=["interpolate",["linear"],["heatmap-density"],0,A];for(l=1;l=0;p--)S.removeLayer(v[p][1])},L.dispose=function(){var S=this.subplot.map;this._removeLayers(),S.removeSource(this.sourceId)},G.exports=function(v,p){var r=p[0].trace,t=new s(v,r.uid),a=t.sourceId,n=m(p),f=t.below=v.belowLookup["trace-"+r.uid];return v.map.addSource(a,{type:"geojson",data:n.geojson}),t._addLayers(n,f),t}},74248:function(G,H,e){var m=e(3400);G.exports=function(s,L){for(var S=0;S"),n.color=L(u,h),[n]}};function L(S,v){var p=S.marker,r=v.mc||p.color,t=v.mlc||p.line.color,a=v.mlw||p.line.width;if(m(r))return r;if(m(t)&&a)return t}},94704:function(G,H,e){G.exports={attributes:e(20088),layoutAttributes:e(7076),supplyDefaults:e(45432).supplyDefaults,crossTraceDefaults:e(45432).crossTraceDefaults,supplyLayoutDefaults:e(11631),calc:e(23096),crossTraceCalc:e(4804),plot:e(42200),style:e(44544).style,hoverPoints:e(31488),eventData:e(34580),selectPoints:e(45784),moduleType:"trace",name:"funnel",basePlotModule:e(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(G){G.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(G,H,e){var m=e(3400),P=e(7076);G.exports=function(s,L,S){var v=!1;function p(a,n){return m.coerce(s,L,P,a,n)}for(var r=0;r path").each(function(h){if(!h.isBlank){var T=g.marker;m.select(this).call(s.fill,h.mc||T.color).call(s.stroke,h.mlc||T.line.color).call(P.dashLine,T.line.dash,h.mlw||T.line.width).style("opacity",g.selectedpoints&&!h.selected?L:1)}}),p(l,g,t),l.selectAll(".regions").each(function(){m.select(this).selectAll("path").style("stroke-width",0).call(s.fill,g.connector.fillcolor)}),l.selectAll(".lines").each(function(){var h=g.connector.line;P.lineGroupStyle(m.select(this).selectAll("path"),h.width,h.color,h.dash)})})}G.exports={style:r}},22332:function(G,H,e){var m=e(74996),P=e(45464),s=e(86968).u,L=e(21776).Ks,S=e(21776).Gw,v=e(92880).extendFlat;G.exports={labels:m.labels,label0:m.label0,dlabel:m.dlabel,values:m.values,marker:{colors:m.marker.colors,line:{color:v({},m.marker.line.color,{dflt:null}),width:v({},m.marker.line.width,{dflt:1}),editType:"calc"},pattern:m.marker.pattern,editType:"calc"},text:m.text,hovertext:m.hovertext,scalegroup:v({},m.scalegroup,{}),textinfo:v({},m.textinfo,{flags:["label","text","value","percent"]}),texttemplate:S({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:v({},P.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:L({},{keys:["label","color","value","text","percent"]}),textposition:v({},m.textposition,{values:["inside","none"],dflt:"inside"}),textfont:m.textfont,insidetextfont:m.insidetextfont,title:{text:m.title.text,font:m.title.font,position:v({},m.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:s({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(G,H,e){var m=e(7316);H.name="funnelarea",H.plot=function(P,s,L,S){m.plotBasePlot(H.name,P,s,L,S)},H.clean=function(P,s,L,S){m.cleanBasePlot(H.name,P,s,L,S)}},54e3:function(G,H,e){var m=e(45768);function P(L,S){return m.calc(L,S)}function s(L){m.crossTraceCalc(L,{type:"funnelarea"})}G.exports={calc:P,crossTraceCalc:s}},92688:function(G,H,e){var m=e(3400),P=e(22332),s=e(86968).Q,L=e(31508).handleText,S=e(74174).handleLabelsAndValues,v=e(74174).handleMarkerDefaults;G.exports=function(r,t,a,n){function f(w,C){return m.coerce(r,t,P,w,C)}var u=f("labels"),l=f("values"),g=S(u,l),h=g.len;if(t._hasLabels=g.hasLabels,t._hasValues=g.hasValues,!t._hasLabels&&t._hasValues&&(f("label0"),f("dlabel")),!h){t.visible=!1;return}t._length=h,v(r,t,n,f),f("scalegroup");var T=f("text"),c=f("texttemplate"),i;if(c||(i=f("textinfo",Array.isArray(T)?"text+percent":"percent")),f("hovertext"),f("hovertemplate"),c||i&&i!=="none"){var d=f("textposition");L(r,t,n,f,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else i==="none"&&f("textposition","none");s(t,n,f);var x=f("title.text");x&&(f("title.position"),m.coerceFont(f,"title.font",n.font)),f("aspectratio"),f("baseratio")}},62396:function(G,H,e){G.exports={moduleType:"trace",name:"funnelarea",basePlotModule:e(91248),categories:["pie-like","funnelarea","showLegend"],attributes:e(22332),layoutAttributes:e(61280),supplyDefaults:e(92688),supplyLayoutDefaults:e(35384),calc:e(54e3).calc,crossTraceCalc:e(54e3).crossTraceCalc,plot:e(39472),style:e(62096),styleOne:e(10528),meta:{}}},61280:function(G,H,e){var m=e(85204).hiddenlabels;G.exports={hiddenlabels:m,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(G,H,e){var m=e(3400),P=e(61280);G.exports=function(L,S){function v(p,r){return m.coerce(L,S,P,p,r)}v("hiddenlabels"),v("funnelareacolorway",S.colorway),v("extendfunnelareacolors")}},39472:function(G,H,e){var m=e(33428),P=e(43616),s=e(3400),L=s.strScale,S=s.strTranslate,v=e(72736),p=e(98184),r=p.toMoveInsideBar,t=e(82744),a=t.recordMinTextSize,n=t.clearMinTextSize,f=e(69656),u=e(37820),l=u.attachFxHandlers,g=u.determineInsideTextFont,h=u.layoutAreas,T=u.prerenderTitles,c=u.positionTitleOutside,i=u.formatSliceLabel;G.exports=function(y,E){var A=y._context.staticPlot,o=y._fullLayout;n("funnelarea",o),T(E,y),h(E,o._size),s.makeTraceGroups(o._funnelarealayer,E,"trace").each(function(M){var b=m.select(this),I=M[0],D=I.trace;w(M),b.each(function(){var N=m.select(this).selectAll("g.slice").data(M);N.enter().append("g").classed("slice",!0),N.exit().remove(),N.each(function(O,F){if(O.hidden){m.select(this).selectAll("path,g").remove();return}O.pointNumber=O.i,O.curveNumber=D.index;var z=I.cx,B=I.cy,W=m.select(this),J=W.selectAll("path.surface").data([O]);J.enter().append("path").classed("surface",!0).style({"pointer-events":A?"none":"all"}),W.call(l,y,M);var re="M"+(z+O.TR[0])+","+(B+O.TR[1])+d(O.TR,O.BR)+d(O.BR,O.BL)+d(O.BL,O.TL)+"Z";J.attr("d",re),i(y,O,I);var ne=f.castOption(D.textposition,O.pts),le=W.selectAll("g.slicetext").data(O.text&&ne!=="none"?[0]:[]);le.enter().append("g").classed("slicetext",!0),le.exit().remove(),le.each(function(){var $=s.ensureSingle(m.select(this),"text","",function(se){se.attr("data-notex",1)}),Z=s.ensureUniformFontSize(y,g(D,O,o.font));$.text(O.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(P.font,Z).call(v.convertToTspans,y);var ie=P.bBox($.node()),X,Q,oe,Y=Math.min(O.BL[1],O.BR[1])+B,j=Math.max(O.TL[1],O.TR[1])+B;Q=Math.max(O.TL[0],O.BL[0])+z,oe=Math.min(O.TR[0],O.BR[0])+z,X=r(Q,oe,Y,j,ie,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),X.fontSize=Z.size,a(D.type,X,o),M[F].transform=X,s.setTransormAndDisplay($,X)})});var k=m.select(this).selectAll("g.titletext").data(D.title.text?[0]:[]);k.enter().append("g").classed("titletext",!0),k.exit().remove(),k.each(function(){var O=s.ensureSingle(m.select(this),"text","",function(B){B.attr("data-notex",1)}),F=D.title.text;D._meta&&(F=s.templateString(F,D._meta)),O.text(F).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(P.font,D.title.font).call(v.convertToTspans,y);var z=c(I,o._size);O.attr("transform",S(z.x,z.y)+L(Math.min(1,z.scale))+S(z.tx,z.ty))})})})};function d(C,y){var E=y[0]-C[0],A=y[1]-C[1];return"l"+E+","+A}function x(C,y){return[.5*(C[0]+y[0]),.5*(C[1]+y[1])]}function w(C){if(!C.length)return;var y=C[0],E=y.trace,A=E.aspectratio,o=E.baseratio;o>.999&&(o=.999);var M=Math.pow(o,2),b=y.vTotal,I=b*M/(1-M),D=b,N=I/b;function k(){var te=Math.sqrt(N);return{x:te,y:-te}}function O(){var te=k();return[te.x,te.y]}var F,z=[];z.push(O());var B,W;for(B=C.length-1;B>-1;B--)if(W=C[B],!W.hidden){var J=W.v/D;N+=J,z.push(O())}var re=1/0,ne=-1/0;for(B=0;B-1;B--)if(W=C[B],!W.hidden){Y+=1;var j=z[Y][0],se=z[Y][1];W.TL=[-j,se],W.TR=[j,se],W.BL=Q,W.BR=oe,W.pxmid=x(W.TR,W.BR),Q=W.TL,oe=W.TR}}},62096:function(G,H,e){var m=e(33428),P=e(10528),s=e(82744).resizeText;G.exports=function(S){var v=S._fullLayout._funnelarealayer.selectAll(".trace");s(S,v,"funnelarea"),v.each(function(p){var r=p[0],t=r.trace,a=m.select(this);a.style({opacity:t.opacity}),a.selectAll("path.surface").each(function(n){m.select(this).call(P,n,t,S)})})}},83328:function(G,H,e){var m=e(52904),P=e(45464),s=e(25376),L=e(29736).axisHoverFormat,S=e(21776).Ks,v=e(21776).Gw,p=e(49084),r=e(92880).extendFlat;G.exports=r({z:{valType:"data_array",editType:"calc"},x:r({},m.x,{impliedEdits:{xtype:"array"}}),x0:r({},m.x0,{impliedEdits:{xtype:"scaled"}}),dx:r({},m.dx,{impliedEdits:{xtype:"scaled"}}),y:r({},m.y,{impliedEdits:{ytype:"array"}}),y0:r({},m.y0,{impliedEdits:{ytype:"scaled"}}),dy:r({},m.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:r({},m.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:r({},m.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:r({},m.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:r({},m.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:r({},m.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:r({},m.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:L("x"),yhoverformat:L("y"),zhoverformat:L("z",1),hovertemplate:S(),texttemplate:v({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:s({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:r({},P.showlegend,{dflt:!1}),zorder:m.zorder},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},19512:function(G,H,e){var m=e(24040),P=e(3400),s=e(54460),L=e(1220),S=e(55480),v=e(47128),p=e(2872),r=e(26136),t=e(70448),a=e(11240),n=e(35744),f=e(39032).BADNUM;G.exports=function(h,T){var c=s.getFromId(h,T.xaxis||"x"),i=s.getFromId(h,T.yaxis||"y"),d=m.traceIs(T,"contour"),x=m.traceIs(T,"histogram"),w=m.traceIs(T,"gl2d"),C=d?"best":T.zsmooth,y,E,A,o,M,b,I,D,N,k,O;if(c._minDtick=0,i._minDtick=0,x)O=S(h,T),o=O.orig_x,y=O.x,E=O.x0,A=O.dx,D=O.orig_y,M=O.y,b=O.y0,I=O.dy,N=O.z;else{var F=T.z;P.isArray1D(F)?(p(T,c,i,"x","y",["z"]),y=T._x,M=T._y,F=T._z):(o=T.x?c.makeCalcdata(T,"x"):[],D=T.y?i.makeCalcdata(T,"y"):[],y=L(T,c,"x",o).vals,M=L(T,i,"y",D).vals,T._x=y,T._y=M),E=T.x0,A=T.dx,b=T.y0,I=T.dy,N=r(F,T,c,i)}(c.rangebreaks||i.rangebreaks)&&(N=l(y,M,N),x||(y=u(y),M=u(M),T._x=y,T._y=M)),!x&&(d||T.connectgaps)&&(T._emptypoints=a(N),t(N,T._emptypoints));function z(ie){C=T._input.zsmooth=T.zsmooth=!1,P.warn('cannot use zsmooth: "fast": '+ie)}function B(ie){if(ie.length>1){var X=(ie[ie.length-1]-ie[0])/(ie.length-1),Q=Math.abs(X/100);for(k=0;kQ)return!1}return!0}T._islinear=!1,c.type==="log"||i.type==="log"?C==="fast"&&z("log axis found"):B(y)?B(M)?T._islinear=!0:C==="fast"&&z("y scale is not linear"):C==="fast"&&z("x scale is not linear");var W=P.maxRowLength(N),J=T.xtype==="scaled"?"":y,re=n(T,J,E,A,W,c),ne=T.ytype==="scaled"?"":M,le=n(T,ne,b,I,N.length,i);w||(T._extremes[c._id]=s.findExtremes(c,re),T._extremes[i._id]=s.findExtremes(i,le));var $={x:re,y:le,z:N,text:T._text||T.text,hovertext:T._hovertext||T.hovertext};if(T.xperiodalignment&&o&&($.orig_x=o),T.yperiodalignment&&D&&($.orig_y=D),J&&J.length===re.length-1&&($.xCenter=J),ne&&ne.length===le.length-1&&($.yCenter=ne),x&&($.xRanges=O.xRanges,$.yRanges=O.yRanges,$.pts=O.pts),d||v(h,T,{vals:N,cLetter:"z"}),d&&T.contours&&T.contours.coloring==="heatmap"){var Z={type:T.type==="contour"?"heatmap":"histogram2d",xcalendar:T.xcalendar,ycalendar:T.ycalendar};$.xfill=n(Z,J,E,A,W,c),$.yfill=n(Z,ne,b,I,N.length,i)}return[$]};function u(g){for(var h=[],T=g.length,c=0;c=0;g--)l=v[g],f=l[0],u=l[1],h=((S[[f-1,u]]||t)[2]+(S[[f+1,u]]||t)[2]+(S[[f,u-1]]||t)[2]+(S[[f,u+1]]||t)[2])/20,h&&(T[l]=[f,u,h],v.splice(g,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(l in T)S[l]=T[l],L.push(T[l])}return L.sort(function(i,d){return d[2]-i[2]})}},55512:function(G,H,e){var m=e(93024),P=e(3400),s=P.isArrayOrTypedArray,L=e(54460),S=e(8932).extractOpts;G.exports=function(p,r,t,a,n){n||(n={});var f=n.isContour,u=p.cd[0],l=u.trace,g=p.xa,h=p.ya,T=u.x,c=u.y,i=u.z,d=u.xCenter,x=u.yCenter,w=u.zmask,C=l.zhoverformat,y=T,E=c,A,o,M,b;if(p.index!==!1){try{M=Math.round(p.index[1]),b=Math.round(p.index[0])}catch{P.error("Error hovering on heatmap, pointNumber must be [row,col], found:",p.index);return}if(M<0||M>=i[0].length||b<0||b>i.length)return}else{if(m.inbox(r-T[0],r-T[T.length-1],0)>0||m.inbox(t-c[0],t-c[c.length-1],0)>0)return;if(f){var I;for(y=[2*T[0]-T[1]],I=1;IP;a++)t=S(p,r,L(t));return t>P&&m.log("interp2d didn't converge quickly",t),p};function S(v,p,r){var t=0,a,n,f,u,l,g,h,T,c,i,d,x,w;for(u=0;ux&&(t=Math.max(t,Math.abs(v[n][f]-d)/(w-x))))}return t}},39096:function(G,H,e){var m=e(3400);G.exports=function(s,L){s("texttemplate");var S=m.extendFlat({},L.font,{color:"auto",size:"auto"});m.coerceFont(s,"textfont",S)}},35744:function(G,H,e){var m=e(24040),P=e(3400).isArrayOrTypedArray;G.exports=function(L,S,v,p,r,t){var a=[],n=m.traceIs(L,"contour"),f=m.traceIs(L,"histogram"),u=m.traceIs(L,"gl2d"),l,g,h,T=P(S)&&S.length>1;if(T&&!f&&t.type!=="category"){var c=S.length;if(c<=r){if(n||u)a=Array.from(S).slice(0,r);else if(r===1)t.type==="log"?a=[.5*S[0],2*S[0]]:a=[S[0]-.5,S[0]+.5];else if(t.type==="log"){for(a=[Math.pow(S[0],1.5)/Math.pow(S[1],.5)],h=1;h0;)Q=o.c2p(z[se]),se--;for(Q0;)j=M.c2p(B[se]),se--;j=o._length||Q<=0||Y>=M._length||j<=0;if(De){var Fe=I.selectAll("image").data([]);Fe.exit().remove(),i(I);return}var Te,Re;ge==="fast"?(Te=$,Re=le):(Te=xe,Re=_e);var Se=document.createElement("canvas");Se.width=Te,Se.height=Re;var Ie=Se.getContext("2d",{willReadFrequently:!0}),Me=n(N,{noNumericCheck:!0,returnArray:!0}),Ve,et;ge==="fast"?(Ve=Z?function(Or){return $-1-Or}:v.identity,et=ie?function(Or){return le-1-Or}:v.identity):(Ve=function(Or){return v.constrain(Math.round(o.c2p(z[Or])-X),0,xe)},et=function(Or){return v.constrain(Math.round(M.c2p(B[Or])-Y),0,_e)});var ot=et(0),Qe=[ot,ot],$e=Z?0:1,ht=ie?0:1,vt=0,pt=0,wt=0,Ct=0,rt,ze,He,We,Ge;function Le(Or,ln){if(Or!==void 0){var fn=Me(Or);return fn[0]=Math.round(fn[0]),fn[1]=Math.round(fn[1]),fn[2]=Math.round(fn[2]),vt+=ln,pt+=fn[0]*ln,wt+=fn[1]*ln,Ct+=fn[2]*ln,fn}return[0,0,0,0]}function Pe(Or,ln,fn,Mn){var Pn=Or[fn.bin0];if(Pn===void 0)return Le(void 0,1);var Vn=Or[fn.bin1],ia=ln[fn.bin0],ya=ln[fn.bin1],wa=Vn-Pn||0,Wn=ia-Pn||0,Qn;return Vn===void 0?ya===void 0?Qn=0:ia===void 0?Qn=2*(ya-Pn):Qn=(2*ya-ia-Pn)*2/3:ya===void 0?ia===void 0?Qn=0:Qn=(2*Pn-Vn-ia)*2/3:ia===void 0?Qn=(2*ya-Vn-Pn)*2/3:Qn=ya+Pn-Vn-ia,Le(Pn+fn.frac*wa+Mn.frac*(Wn+fn.frac*Qn))}if(ge!=="default"){var je=0,Ce;try{Ce=new Uint8Array(Te*Re*4)}catch{Ce=new Array(Te*Re*4)}if(ge==="smooth"){var he=W||z,me=J||B,Ne=new Array(he.length),Ze=new Array(me.length),st=new Array(xe),lt=W?x:d,Wt=J?x:d,Zt,Tt,Rt;for(se=0;sedr||dr>M._length))for(te=Ut;teUe||Ue>o._length)){var zt=r({x:Ye,y:fr},N,C._fullLayout);zt.x=Ye,zt.y=fr;var Dt=D.z[se][te];Dt===void 0?(zt.z="",zt.zLabel=""):(zt.z=Dt,zt.zLabel=S.tickText(xt,Dt,"hover").text);var $t=D.text&&D.text[se]&&D.text[se][te];($t===void 0||$t===!1)&&($t=""),zt.text=$t;var sr=v.texttemplateString(ut,zt,C._fullLayout._d3locale,zt,N._meta||{});if(sr){var cr=sr.split("
"),tr=cr.length,Nt=0;for(fe=0;fe0&&(r=!0);for(var f=0;fv){var p=v-L[P];return L[P]=v,p}}else return L[P]=v,v;return 0},max:function(P,s,L,S){var v=S[s];if(m(v))if(v=Number(v),m(L[P])){if(L[P]E&&EL){var M=A===P?1:6,b=A===P?"M12":"M1";return function(I,D){var N=T.c2d(I,P,c),k=N.indexOf("-",M);k>0&&(N=N.substr(0,k));var O=T.d2c(N,0,c);if(Op?u>L?u>P*1.1?P:u>s*1.1?s:L:u>S?S:u>v?v:p:Math.pow(10,Math.floor(Math.log(u)/Math.LN10))}function n(u,l,g,h,T,c){if(h&&u>L){var i=f(l,T,c),d=f(g,T,c),x=u===P?0:1;return i[x]!==d[x]}return Math.floor(g/u)-Math.floor(l/u)>.1}function f(u,l,g){var h=l.c2d(u,P,g).split("-");return h[0]===""&&(h.unshift(),h[0]="-"+h[0]),h}},35852:function(G,H,e){var m=e(38248),P=e(3400),s=e(24040),L=e(54460),S=e(84664),v=e(16964),p=e(10648),r=e(2e3),t=e(67712);function a(g,h){var T=[],c=[],i=h.orientation==="h",d=L.getFromId(g,i?h.yaxis:h.xaxis),x=i?"y":"x",w={x:"y",y:"x"}[x],C=h[x+"calendar"],y=h.cumulative,E,A=n(g,h,d,x),o=A[0],M=A[1],b=typeof o.size=="string",I=[],D=b?I:o,N=[],k=[],O=[],F=0,z=h.histnorm,B=h.histfunc,W=z.indexOf("density")!==-1,J,re,ne;y.enabled&&W&&(z=z.replace(/ ?density$/,""),W=!1);var le=B==="max"||B==="min",$=le?null:0,Z=v.count,ie=p[z],X=!1,Q=function(Ie){return d.r2c(Ie,0,C)},oe;for(P.isArrayOrTypedArray(h[w])&&B!=="count"&&(oe=h[w],X=B==="avg",Z=v[B]),E=Q(o.start),re=Q(o.end)+(E-L.tickIncrement(E,o.size,!1,C))/1e6;E=0&&ne=Te;E--)if(c[E]){Re=E;break}for(E=Te;E<=Re;E++)if(m(T[E])&&m(c[E])){var Se={p:T[E],s:c[E],b:0};y.enabled||(Se.pts=O[E],te?Se.ph0=Se.ph1=O[E].length?M[O[E][0]]:T[E]:(h._computePh=!0,Se.ph0=_e(I[E]),Se.ph1=_e(I[E+1],!0))),Fe.push(Se)}return Fe.length===1&&(Fe[0].width1=L.tickIncrement(Fe[0].p,o.size,!1,C)-Fe[0].p),S(Fe,h),P.isArrayOrTypedArray(h.selectedpoints)&&P.tagSelected(Fe,h,be),Fe}function n(g,h,T,c,i){var d=c+"bins",x=g._fullLayout,w=h["_"+c+"bingroup"],C=x._histogramBinOpts[w],y=x.barmode==="overlay",E,A,o,M,b,I,D,N=function(xe){return T.r2c(xe,0,M)},k=function(xe){return T.c2r(xe,0,M)},O=T.type==="date"?function(xe){return xe||xe===0?P.cleanDate(xe,null,M):null}:function(xe){return m(xe)?Number(xe):null};function F(xe,_e,De){_e[xe+"Found"]?(_e[xe]=O(_e[xe]),_e[xe]===null&&(_e[xe]=De[xe])):(I[xe]=_e[xe]=De[xe],P.nestedProperty(A[0],d+"."+xe).set(De[xe]))}if(h["_"+c+"autoBinFinished"])delete h["_"+c+"autoBinFinished"];else{A=C.traces;var z=[],B=!0,W=!1,J=!1;for(E=0;E"u"){if(i)return[ne,b,!0];ne=f(g,h,T,c,d)}D=o.cumulative||{},D.enabled&&D.currentbin!=="include"&&(D.direction==="decreasing"?ne.start=k(L.tickIncrement(N(ne.start),ne.size,!0,M)):ne.end=k(L.tickIncrement(N(ne.end),ne.size,!1,M))),C.size=ne.size,C.sizeFound||(I.size=ne.size,P.nestedProperty(A[0],d+".size").set(ne.size)),F("start",C,ne),F("end",C,ne)}b=h["_"+c+"pos0"],delete h["_"+c+"pos0"];var $=h._input[d]||{},Z=P.extendFlat({},C),ie=C.start,X=T.r2l($.start),Q=X!==void 0;if((C.startFound||Q)&&X!==T.r2l(ie)){var oe=Q?X:P.aggNums(Math.min,null,b),Y={type:T.type==="category"||T.type==="multicategory"?"linear":T.type,r2l:T.r2l,dtick:C.size,tick0:ie,calendar:M,range:[oe,L.tickIncrement(oe,C.size,!1,M)].map(T.l2r)},j=L.tickFirst(Y);j>T.r2l(oe)&&(j=L.tickIncrement(j,C.size,!0,M)),Z.start=T.l2r(j),Q||P.nestedProperty(h,d+".start").set(Z.start)}var se=C.end,te=T.r2l($.end),fe=te!==void 0;if((C.endFound||fe)&&te!==T.r2l(se)){var ge=fe?te:P.aggNums(Math.max,null,b);Z.end=T.l2r(ge),fe||P.nestedProperty(h,d+".start").set(Z.end)}var be="autobin"+c;return h._input[be]===!1&&(h._input[d]=P.extendFlat({},h[d]||{}),delete h._input[be],delete h[be]),[Z,b]}function f(g,h,T,c,i){var d=g._fullLayout,x=u(g,h),w=!1,C=1/0,y=[h],E,A,o;for(E=0;E=0;c--)w(c);else if(h==="increasing"){for(c=1;c=0;c--)g[c]+=g[c+1];T==="exclude"&&(g.push(0),g.shift())}}G.exports={calc:a,calcAllAutoBins:n}},73316:function(G){G.exports={eventDataKeys:["binNumber"]}},80536:function(G,H,e){var m=e(3400),P=e(79811),s=e(24040).traceIs,L=e(20011),S=e(31508).validateCornerradius,v=m.nestedProperty,p=e(71888).getAxisGroup,r=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],t=["x","y"];G.exports=function(n,f){var u=f._histogramBinOpts={},l=[],g={},h=[],T,c,i,d,x,w,C;function y(ne,le){return m.coerce(T._input,T,T._module.attributes,ne,le)}function E(ne){return ne.orientation==="v"?"x":"y"}function A(ne,le){var $=P.getFromTrace({_fullLayout:f},ne,le);return $.type}function o(ne,le,$){var Z=ne.uid+"__"+$;le||(le=Z);var ie=A(ne,$),X=ne[$+"calendar"]||"",Q=u[le],oe=!0;Q&&(ie===Q.axType&&X===Q.calendar?(oe=!1,Q.traces.push(ne),Q.dirs.push($)):(le=Z,ie!==Q.axType&&m.warn(["Attempted to group the bins of trace",ne.index,"set on a","type:"+ie,"axis","with bins on","type:"+Q.axType,"axis."].join(" ")),X!==Q.calendar&&m.warn(["Attempted to group the bins of trace",ne.index,"set with a",X,"calendar","with bins",Q.calendar?"on a "+Q.calendar+" calendar":"w/o a set calendar"].join(" ")))),oe&&(u[le]={traces:[ne],dirs:[$],axType:ie,calendar:ne[$+"calendar"]||""}),ne["_"+$+"bingroup"]=le}for(x=0;xN&&M.splice(N,M.length-N),D.length>N&&D.splice(N,D.length-N);var k=[],O=[],F=[],z=typeof o.size=="string",B=typeof I.size=="string",W=[],J=[],re=z?W:o,ne=B?J:I,le=0,$=[],Z=[],ie=u.histnorm,X=u.histfunc,Q=ie.indexOf("density")!==-1,oe=X==="max"||X==="min",Y=oe?null:0,j=s.count,se=L[ie],te=!1,fe=[],ge=[],be="z"in u?u.z:"marker"in u&&Array.isArray(u.marker.color)?u.marker.color:"";be&&X!=="count"&&(te=X==="avg",j=s[X]);var xe=o.size,_e=c(o.start),De=c(o.end)+(_e-P.tickIncrement(_e,xe,!1,h))/1e6;for(w=_e;w=0&&y=0&&E-1,flipY:O.tiling.flip.indexOf("y")>-1,orientation:O.tiling.orientation,pad:{inner:O.tiling.pad},maxDepth:O._maxDepth}),J=W.descendants(),re=1/0,ne=-1/0;J.forEach(function(X){var Q=X.depth;Q>=O._maxDepth?(X.x0=X.x1=(X.x0+X.x1)/2,X.y0=X.y1=(X.y0+X.y1)/2):(re=Math.min(re,Q),ne=Math.max(ne,Q))}),h=h.data(J,r.getPtId),O._maxVisibleLayers=isFinite(ne)?ne-re+1:0,h.enter().append("g").classed("slice",!0),A(h,n,I,[c,i],w),h.order();var le=null;if(E&&b){var $=r.getPtId(b);h.each(function(X){le===null&&r.getPtId(X)===$&&(le={x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1})})}var Z=function(){return le||{x0:0,x1:c,y0:0,y1:i}},ie=h;return E&&(ie=ie.transition().each("end",function(){var X=m.select(this);r.setSliceCursor(X,u,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),ie.each(function(X){X._x0=d(X.x0),X._x1=d(X.x1),X._y0=x(X.y0),X._y1=x(X.y1),X._hoverX=d(X.x1-O.tiling.pad),X._hoverY=x(B?X.y1-O.tiling.pad/2:X.y0+O.tiling.pad/2);var Q=m.select(this),oe=P.ensureSingle(Q,"path","surface",function(te){te.style("pointer-events",D?"none":"all")});E?oe.transition().attrTween("d",function(te){var fe=o(te,n,Z(),[c,i],{orientation:O.tiling.orientation,flipX:O.tiling.flip.indexOf("x")>-1,flipY:O.tiling.flip.indexOf("y")>-1});return function(ge){return w(fe(ge))}}):oe.attr("d",w),Q.call(t,g,u,l,{styleOne:v,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(r.setSliceCursor,u,{isTransitioning:u._transitioning}),oe.call(v,X,O,u,{hovered:!1}),X.x0===X.x1||X.y0===X.y1?X._text="":X._text=a(X,g,O,l,N)||"";var Y=P.ensureSingle(Q,"g","slicetext"),j=P.ensureSingle(Y,"text","",function(te){te.attr("data-notex",1)}),se=P.ensureUniformFontSize(u,r.determineTextFont(O,X,N.font));j.text(X._text||" ").classed("slicetext",!0).attr("text-anchor",z?"end":F?"start":"middle").call(s.font,se).call(L.convertToTspans,u),X.textBB=s.bBox(j.node()),X.transform=C(X,{fontSize:se.size}),X.transform.fontSize=se.size,E?j.transition().attrTween("transform",function(te){var fe=M(te,n,Z(),[c,i]);return function(ge){return y(fe(ge))}}):j.attr("transform",y(X))}),le}},29044:function(G,H,e){G.exports={moduleType:"trace",name:"icicle",basePlotModule:e(59564),categories:[],animatable:!0,attributes:e(97376),layoutAttributes:e(90676),supplyDefaults:e(7045),supplyLayoutDefaults:e(4304),calc:e(73876).r,crossTraceCalc:e(73876).q,plot:e(38364),style:e(47192).style,colorbar:e(5528),meta:{}}},90676:function(G){G.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(G,H,e){var m=e(3400),P=e(90676);G.exports=function(L,S){function v(p,r){return m.coerce(L,S,P,p,r)}v("iciclecolorway",S.colorway),v("extendiciclecolors")}},25132:function(G,H,e){var m=e(74148),P=e(83024);G.exports=function(L,S,v){var p=v.flipX,r=v.flipY,t=v.orientation==="h",a=v.maxDepth,n=S[0],f=S[1];a&&(n=(L.height+1)*S[0]/Math.min(L.height+1,a),f=(L.height+1)*S[1]/Math.min(L.height+1,a));var u=m.partition().padding(v.pad.inner).size(t?[S[1],n]:[S[0],f])(L);return(t||p||r)&&P(u,S,{swapXY:t,flipX:p,flipY:r}),u}},38364:function(G,H,e){var m=e(95808),P=e(67880);G.exports=function(L,S,v,p){return m(L,S,v,p,{type:"icicle",drawDescendants:P})}},47192:function(G,H,e){var m=e(33428),P=e(76308),s=e(3400),L=e(82744).resizeText,S=e(60404);function v(r){var t=r._fullLayout._iciclelayer.selectAll(".trace");L(r,t,"icicle"),t.each(function(a){var n=m.select(this),f=a[0],u=f.trace;n.style("opacity",u.opacity),n.selectAll("path.surface").each(function(l){m.select(this).call(p,l,u,r)})})}function p(r,t,a,n){var f=t.data.data,u=!t.children,l=f.i,g=s.castOption(a,l,"marker.line.color")||P.defaultLine,h=s.castOption(a,l,"marker.line.width")||0;r.call(S,t,a,n).style("stroke-width",h).call(P.stroke,g).style("opacity",u?a.leaf.opacity:null)}G.exports={style:v,styleOne:p}},95188:function(G,H,e){for(var m=e(45464),P=e(52904).zorder,s=e(21776).Ks,L=e(92880).extendFlat,S=e(47797).colormodel,v=["rgb","rgba","rgba256","hsl","hsla"],p=[],r=[],t=0;t0||m.inbox(r-t.y0,r-(t.y0+t.h*a.dy),0)>0)){var u=Math.floor((p-t.x0)/a.dx),l=Math.floor(Math.abs(r-t.y0)/a.dy),g;if(a._hasZ?g=t.z[l][u]:a._hasSource&&(g=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(u,l,1,1).data),!!g){var h=t.hi||a.hoverinfo,T;if(h){var c=h.split("+");c.indexOf("all")!==-1&&(c=["color"]),c.indexOf("color")!==-1&&(T=!0)}var i=L.colormodel[a.colormodel],d=i.colormodel||a.colormodel,x=d.length,w=a._scaler(g),C=i.suffix,y=[];(a.hovertemplate||T)&&(y.push("["+[w[0]+C[0],w[1]+C[1],w[2]+C[2]].join(", ")),x===4&&y.push(", "+w[3]+C[3]),y.push("]"),y=y.join(""),v.extraText=d.toUpperCase()+": "+y);var E;s(a.hovertext)&&s(a.hovertext[l])?E=a.hovertext[l][u]:s(a.text)&&s(a.text[l])&&(E=a.text[l][u]);var A=f.c2p(t.y0+(l+.5)*a.dy),o=t.x0+(u+.5)*a.dx,M=t.y0+(l+.5)*a.dy,b="["+g.slice(0,a.colormodel.length).join(", ")+"]";return[P.extendFlat(v,{index:[l,u],x0:n.c2p(t.x0+u*a.dx),x1:n.c2p(t.x0+(u+1)*a.dx),y0:A,y1:A,color:w,xVal:o,xLabelVal:o,yVal:M,yLabelVal:M,zLabelVal:b,text:E,hovertemplateLabels:{zLabel:b,colorLabel:y,"color[0]Label":w[0]+C[0],"color[1]Label":w[1]+C[1],"color[2]Label":w[2]+C[2],"color[3]Label":w[3]+C[3]}})]}}}},48928:function(G,H,e){G.exports={attributes:e(95188),supplyDefaults:e(13188),calc:e(93336),plot:e(63715),style:e(28576),hoverPoints:e(24892),eventData:e(79972),moduleType:"trace",name:"image",basePlotModule:e(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(G,H,e){var m=e(33428),P=e(3400),s=P.strTranslate,L=e(9616),S=e(47797),v=e(9188),p=e(2264).STYLE;G.exports=function(t,a,n,f){var u=a.xaxis,l=a.yaxis,g=!t._context._exportedPlot&&v();P.makeTraceGroups(f,n,"im").each(function(h){var T=m.select(this),c=h[0],i=c.trace,d=(i.zsmooth==="fast"||i.zsmooth===!1&&g)&&!i._hasZ&&i._hasSource&&u.type==="linear"&&l.type==="linear";i._realImage=d;var x=c.z,w=c.x0,C=c.y0,y=c.w,E=c.h,A=i.dx,o=i.dy,M,b,I,D,N,k;for(k=0;M===void 0&&k0;)b=u.c2p(w+k*A),k--;for(k=0;D===void 0&&k0;)N=l.c2p(C+k*o),k--;if(b$[0];if(Z||ie){var X=M+F/2,Q=D+z/2;ne+="transform:"+s(X+"px",Q+"px")+"scale("+(Z?-1:1)+","+(ie?-1:1)+")"+s(-X+"px",-Q+"px")+";"}}re.attr("style",ne);var oe=new Promise(function(Y){if(i._hasZ)Y();else if(i._hasSource)if(i._canvas&&i._canvas.el.width===y&&i._canvas.el.height===E&&i._canvas.source===i.source)Y();else{var j=document.createElement("canvas");j.width=y,j.height=E;var se=j.getContext("2d",{willReadFrequently:!0});i._image=i._image||new Image;var te=i._image;te.onload=function(){se.drawImage(te,0,0),i._canvas={el:j,source:i.source},Y()},te.setAttribute("src",i.source)}}).then(function(){var Y,j;if(i._hasZ)j=J(function(fe,ge){var be=x[ge][fe];return P.isTypedArray(be)&&(be=Array.from(be)),be}),Y=j.toDataURL("image/png");else if(i._hasSource)if(d)Y=i.source;else{var se=i._canvas.el.getContext("2d",{willReadFrequently:!0}),te=se.getImageData(0,0,y,E).data;j=J(function(fe,ge){var be=4*(ge*y+fe);return[te[be],te[be+1],te[be+2],te[be+3]]}),Y=j.toDataURL("image/png")}re.attr({"xlink:href":Y,height:z,width:F,x:M,y:D})});t._promises.push(oe)})}},28576:function(G,H,e){var m=e(33428);G.exports=function(s){m.select(s).selectAll(".im image").style("opacity",function(L){return L[0].trace.opacity})}},89864:function(G,H,e){var m=e(92880).extendFlat,P=e(92880).extendDeep,s=e(67824).overrideAll,L=e(25376),S=e(22548),v=e(86968).u,p=e(94724),r=e(31780).templatedArray,t=e(48164),a=e(29736).descriptionOnlyNumbers,n=L({editType:"plot",colorEditType:"plot"}),f={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:S.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},u={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},l=r("step",P({},f,{range:u}));G.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:v({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:m({},n,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:a("value")},font:m({},n,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:a("value")},increasing:{symbol:{valType:"string",dflt:t.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:t.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:t.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:t.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:m({},n,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:P({},f,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:S.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:s({range:u,visible:m({},p.visible,{dflt:!0}),tickmode:p.minor.tickmode,nticks:p.nticks,tick0:p.tick0,dtick:p.dtick,tickvals:p.tickvals,ticktext:p.ticktext,ticks:m({},p.ticks,{dflt:"outside"}),ticklen:p.ticklen,tickwidth:p.tickwidth,tickcolor:p.tickcolor,ticklabelstep:p.ticklabelstep,showticklabels:p.showticklabels,labelalias:p.labelalias,tickfont:L({}),tickangle:p.tickangle,tickformat:p.tickformat,tickformatstops:p.tickformatstops,tickprefix:p.tickprefix,showtickprefix:p.showtickprefix,ticksuffix:p.ticksuffix,showticksuffix:p.showticksuffix,separatethousands:p.separatethousands,exponentformat:p.exponentformat,minexponent:p.minexponent,showexponent:p.showexponent,editType:"plot"},"plot"),steps:l,threshold:{line:{color:m({},f.line.color,{}),width:m({},f.line.width,{dflt:1}),editType:"plot"},thickness:m({},f.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}},92728:function(G,H,e){var m=e(7316);H.name="indicator",H.plot=function(P,s,L,S){m.plotBasePlot(H.name,P,s,L,S)},H.clean=function(P,s,L,S){m.cleanBasePlot(H.name,P,s,L,S)}},79136:function(G){function H(e,m){var P=[],s=m.value;typeof m._lastValue!="number"&&(m._lastValue=m.value);var L=m._lastValue,S=L;return m._hasDelta&&typeof m.delta.reference=="number"&&(S=m.delta.reference),P[0]={y:s,lastY:L,delta:s-S,relativeDelta:(s-S)/S},P}G.exports={calc:H}},12096:function(G){G.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},20424:function(G,H,e){var m=e(3400),P=e(89864),s=e(86968).Q,L=e(31780),S=e(51272),v=e(12096),p=e(26332),r=e(25404),t=e(95936),a=e(42568);function n(u,l,g,h){function T(F,z){return m.coerce(u,l,P,F,z)}s(l,h,T),T("mode"),l._hasNumber=l.mode.indexOf("number")!==-1,l._hasDelta=l.mode.indexOf("delta")!==-1,l._hasGauge=l.mode.indexOf("gauge")!==-1;var c=T("value");l._range=[0,typeof c=="number"?1.5*c:1];var i=new Array(2),d;if(l._hasNumber){T("number.valueformat");var x=m.extendFlat({},h.font);x.size=void 0,m.coerceFont(T,"number.font",x),l.number.font.size===void 0&&(l.number.font.size=v.defaultNumberFontSize,i[0]=!0),T("number.prefix"),T("number.suffix"),d=l.number.font.size}var w;if(l._hasDelta){var C=m.extendFlat({},h.font);C.size=void 0,m.coerceFont(T,"delta.font",C),l.delta.font.size===void 0&&(l.delta.font.size=(l._hasNumber?.5:1)*(d||v.defaultNumberFontSize),i[1]=!0),T("delta.reference",l.value),T("delta.relative"),T("delta.valueformat",l.delta.relative?"2%":""),T("delta.increasing.symbol"),T("delta.increasing.color"),T("delta.decreasing.symbol"),T("delta.decreasing.color"),T("delta.position"),T("delta.prefix"),T("delta.suffix"),w=l.delta.font.size}l._scaleNumbers=(!l._hasNumber||i[0])&&(!l._hasDelta||i[1])||!1;var y=m.extendFlat({},h.font);y.size=.25*(d||w||v.defaultNumberFontSize),m.coerceFont(T,"title.font",y),T("title.text");var E,A,o,M;function b(F,z){return m.coerce(E,A,P.gauge,F,z)}function I(F,z){return m.coerce(o,M,P.gauge.axis,F,z)}if(l._hasGauge){E=u.gauge,E||(E={}),A=L.newContainer(l,"gauge"),b("shape");var D=l._isBullet=l.gauge.shape==="bullet";D||T("title.align","center");var N=l._isAngular=l.gauge.shape==="angular";N||T("align","center"),b("bgcolor",h.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var k=v.valueThickness*(l.gauge.shape==="bullet"?.5:1);b("bar.thickness",k),S(E,A,{name:"steps",handleItemDefaults:f}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),o={},E&&(o=E.axis||{}),M=L.newContainer(A,"axis"),I("visible"),l._range=I("range",l._range);var O={font:h.font,noAutotickangles:!0,outerTicks:!0};p(o,M,I,"linear"),a(o,M,I,"linear",O),t(o,M,I,"linear",O),r(o,M,I,O)}else T("title.align","center"),T("align","center"),l._isAngular=l._isBullet=!1;l._length=null}function f(u,l){function g(h,T){return m.coerce(u,l,P.gauge.steps,h,T)}g("color"),g("line.color"),g("line.width"),g("range"),g("thickness")}G.exports={supplyDefaults:n}},43480:function(G,H,e){G.exports={moduleType:"trace",name:"indicator",basePlotModule:e(92728),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:e(89864),supplyDefaults:e(20424).supplyDefaults,calc:e(79136).calc,plot:e(97864),meta:{}}},97864:function(G,H,e){var m=e(33428),P=e(67756).qy,s=e(67756).Gz,L=e(3400),S=L.strScale,v=L.strTranslate,p=L.rad2deg,r=e(84284).MID_SHIFT,t=e(43616),a=e(12096),n=e(72736),f=e(54460),u=e(28336),l=e(37668),g=e(94724),h=e(76308),T={left:"start",center:"middle",right:"end"},c={left:0,center:.5,right:1},i=/[yzafpnµmkMGTPEZY]/;function d(D){return D&&D.duration>0}G.exports=function(N,k,O,F){var z=N._fullLayout,B;d(O)&&F&&(B=F()),L.makeTraceGroups(z._indicatorlayer,k,"trace").each(function(W){var J=W[0],re=J.trace,ne=m.select(this),le=re._hasGauge,$=re._isAngular,Z=re._isBullet,ie=re.domain,X={w:z._size.w*(ie.x[1]-ie.x[0]),h:z._size.h*(ie.y[1]-ie.y[0]),l:z._size.l+z._size.w*ie.x[0],r:z._size.r+z._size.w*(1-ie.x[1]),t:z._size.t+z._size.h*(1-ie.y[1]),b:z._size.b+z._size.h*ie.y[0]},Q=X.l+X.w/2,oe=X.t+X.h/2,Y=Math.min(X.w/2,X.h),j=a.innerRadius*Y,se,te,fe,ge=re.align||"center";if(te=oe,!le)se=X.l+c[ge]*X.w,fe=function(Me){return o(Me,X.w,X.h)};else if($&&(se=Q,te=oe+Y/2,fe=function(Me){return M(Me,.9*j)}),Z){var be=a.bulletPadding,xe=1-a.bulletNumberDomainSize+be;se=X.l+(xe+(1-xe)*c[ge])*X.w,fe=function(Me){return o(Me,(a.bulletNumberDomainSize-be)*X.w,X.h)}}C(N,ne,W,{numbersX:se,numbersY:te,numbersScaler:fe,transitionOpts:O,onComplete:B});var _e,De;le&&(_e={range:re.gauge.axis.range,color:re.gauge.bgcolor,line:{color:re.gauge.bordercolor,width:0},thickness:1},De={range:re.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:re.gauge.bordercolor,width:re.gauge.borderwidth},thickness:1});var Fe=ne.selectAll("g.angular").data($?W:[]);Fe.exit().remove();var Te=ne.selectAll("g.angularaxis").data($?W:[]);Te.exit().remove(),$&&w(N,ne,W,{radius:Y,innerRadius:j,gauge:Fe,layer:Te,size:X,gaugeBg:_e,gaugeOutline:De,transitionOpts:O,onComplete:B});var Re=ne.selectAll("g.bullet").data(Z?W:[]);Re.exit().remove();var Se=ne.selectAll("g.bulletaxis").data(Z?W:[]);Se.exit().remove(),Z&&x(N,ne,W,{gauge:Re,layer:Se,size:X,gaugeBg:_e,gaugeOutline:De,transitionOpts:O,onComplete:B});var Ie=ne.selectAll("text.title").data(W);Ie.exit().remove(),Ie.enter().append("text").classed("title",!0),Ie.attr("text-anchor",function(){return Z?T.right:T[re.title.align]}).text(re.title.text).call(t.font,re.title.font).call(n.convertToTspans,N),Ie.attr("transform",function(){var Me=X.l+X.w*c[re.title.align],Ve,et=a.titlePadding,ot=t.bBox(Ie.node());if(le){if($)if(re.gauge.axis.visible){var Qe=t.bBox(Te.node());Ve=Qe.top-et-ot.bottom}else Ve=X.t+X.h/2-Y/2-ot.bottom-et;Z&&(Ve=te-(ot.top+ot.bottom)/2,Me=X.l-a.bulletPadding*X.w)}else Ve=re._numbersTop-et-ot.bottom;return v(Me,Ve)})})};function x(D,N,k,O){var F=k[0].trace,z=O.gauge,B=O.layer,W=O.gaugeBg,J=O.gaugeOutline,re=O.size,ne=F.domain,le=O.transitionOpts,$=O.onComplete,Z,ie,X,Q,oe;z.enter().append("g").classed("bullet",!0),z.attr("transform",v(re.l,re.t)),B.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),B.selectAll("g.xbulletaxistick,path,text").remove();var Y=re.h,j=F.gauge.bar.thickness*Y,se=ne.x[0],te=ne.x[0]+(ne.x[1]-ne.x[0])*(F._hasNumber||F._hasDelta?1-a.bulletNumberDomainSize:1);Z=A(D,F.gauge.axis),Z._id="xbulletaxis",Z.domain=[se,te],Z.setScale(),ie=f.calcTicks(Z),X=f.makeTransTickFn(Z),Q=f.getTickSigns(Z)[2],oe=re.t+re.h,Z.visible&&(f.drawTicks(D,Z,{vals:Z.ticks==="inside"?f.clipEnds(Z,ie):ie,layer:B,path:f.makeTickPath(Z,oe,Q),transFn:X}),f.drawLabels(D,Z,{vals:ie,layer:B,transFn:X,labelFns:f.makeLabelFns(Z,oe)}));function fe(Te){Te.attr("width",function(Re){return Math.max(0,Z.c2p(Re.range[1])-Z.c2p(Re.range[0]))}).attr("x",function(Re){return Z.c2p(Re.range[0])}).attr("y",function(Re){return .5*(1-Re.thickness)*Y}).attr("height",function(Re){return Re.thickness*Y})}var ge=[W].concat(F.gauge.steps),be=z.selectAll("g.bg-bullet").data(ge);be.enter().append("g").classed("bg-bullet",!0).append("rect"),be.select("rect").call(fe).call(y),be.exit().remove();var xe=z.selectAll("g.value-bullet").data([F.gauge.bar]);xe.enter().append("g").classed("value-bullet",!0).append("rect"),xe.select("rect").attr("height",j).attr("y",(Y-j)/2).call(y),d(le)?xe.select("rect").transition().duration(le.duration).ease(le.easing).each("end",function(){$&&$()}).each("interrupt",function(){$&&$()}).attr("width",Math.max(0,Z.c2p(Math.min(F.gauge.axis.range[1],k[0].y)))):xe.select("rect").attr("width",typeof k[0].y=="number"?Math.max(0,Z.c2p(Math.min(F.gauge.axis.range[1],k[0].y))):0),xe.exit().remove();var _e=k.filter(function(){return F.gauge.threshold.value||F.gauge.threshold.value===0}),De=z.selectAll("g.threshold-bullet").data(_e);De.enter().append("g").classed("threshold-bullet",!0).append("line"),De.select("line").attr("x1",Z.c2p(F.gauge.threshold.value)).attr("x2",Z.c2p(F.gauge.threshold.value)).attr("y1",(1-F.gauge.threshold.thickness)/2*Y).attr("y2",(1-(1-F.gauge.threshold.thickness)/2)*Y).call(h.stroke,F.gauge.threshold.line.color).style("stroke-width",F.gauge.threshold.line.width),De.exit().remove();var Fe=z.selectAll("g.gauge-outline").data([J]);Fe.enter().append("g").classed("gauge-outline",!0).append("rect"),Fe.select("rect").call(fe).call(y),Fe.exit().remove()}function w(D,N,k,O){var F=k[0].trace,z=O.size,B=O.radius,W=O.innerRadius,J=O.gaugeBg,re=O.gaugeOutline,ne=[z.l+z.w/2,z.t+z.h/2+B/2],le=O.gauge,$=O.layer,Z=O.transitionOpts,ie=O.onComplete,X=Math.PI/2;function Q($e){var ht=F.gauge.axis.range[0],vt=F.gauge.axis.range[1],pt=($e-ht)/(vt-ht)*Math.PI-X;return pt<-X?-X:pt>X?X:pt}function oe($e){return m.svg.arc().innerRadius((W+B)/2-$e/2*(B-W)).outerRadius((W+B)/2+$e/2*(B-W)).startAngle(-X)}function Y($e){$e.attr("d",function(ht){return oe(ht.thickness).startAngle(Q(ht.range[0])).endAngle(Q(ht.range[1]))()})}var j,se,te,fe;le.enter().append("g").classed("angular",!0),le.attr("transform",v(ne[0],ne[1])),$.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),$.selectAll("g.xangularaxistick,path,text").remove(),j=A(D,F.gauge.axis),j.type="linear",j.range=F.gauge.axis.range,j._id="xangularaxis",j.ticklabeloverflow="allow",j.setScale();var ge=function($e){return(j.range[0]-$e.x)/(j.range[1]-j.range[0])*Math.PI+Math.PI},be={},xe=f.makeLabelFns(j,0),_e=xe.labelStandoff;be.xFn=function($e){var ht=ge($e);return Math.cos(ht)*_e},be.yFn=function($e){var ht=ge($e),vt=Math.sin(ht)>0?.2:1;return-Math.sin(ht)*(_e+$e.fontSize*vt)+Math.abs(Math.cos(ht))*($e.fontSize*r)},be.anchorFn=function($e){var ht=ge($e),vt=Math.cos(ht);return Math.abs(vt)<.1?"middle":vt>0?"start":"end"},be.heightFn=function($e,ht,vt){var pt=ge($e);return-.5*(1+Math.sin(pt))*vt};var De=function($e){return v(ne[0]+B*Math.cos($e),ne[1]-B*Math.sin($e))};te=function($e){return De(ge($e))};var Fe=function($e){var ht=ge($e);return De(ht)+"rotate("+-p(ht)+")"};if(se=f.calcTicks(j),fe=f.getTickSigns(j)[2],j.visible){fe=j.ticks==="inside"?-1:1;var Te=(j.linewidth||1)/2;f.drawTicks(D,j,{vals:se,layer:$,path:"M"+fe*Te+",0h"+fe*j.ticklen,transFn:Fe}),f.drawLabels(D,j,{vals:se,layer:$,transFn:te,labelFns:be})}var Re=[J].concat(F.gauge.steps),Se=le.selectAll("g.bg-arc").data(Re);Se.enter().append("g").classed("bg-arc",!0).append("path"),Se.select("path").call(Y).call(y),Se.exit().remove();var Ie=oe(F.gauge.bar.thickness),Me=le.selectAll("g.value-arc").data([F.gauge.bar]);Me.enter().append("g").classed("value-arc",!0).append("path");var Ve=Me.select("path");d(Z)?(Ve.transition().duration(Z.duration).ease(Z.easing).each("end",function(){ie&&ie()}).each("interrupt",function(){ie&&ie()}).attrTween("d",E(Ie,Q(k[0].lastY),Q(k[0].y))),F._lastValue=k[0].y):Ve.attr("d",typeof k[0].y=="number"?Ie.endAngle(Q(k[0].y)):"M0,0Z"),Ve.call(y),Me.exit().remove(),Re=[];var et=F.gauge.threshold.value;(et||et===0)&&Re.push({range:[et,et],color:F.gauge.threshold.color,line:{color:F.gauge.threshold.line.color,width:F.gauge.threshold.line.width},thickness:F.gauge.threshold.thickness});var ot=le.selectAll("g.threshold-arc").data(Re);ot.enter().append("g").classed("threshold-arc",!0).append("path"),ot.select("path").call(Y).call(y),ot.exit().remove();var Qe=le.selectAll("g.gauge-outline").data([re]);Qe.enter().append("g").classed("gauge-outline",!0).append("path"),Qe.select("path").call(Y).call(y),Qe.exit().remove()}function C(D,N,k,O){var F=k[0].trace,z=O.numbersX,B=O.numbersY,W=F.align||"center",J=T[W],re=O.transitionOpts,ne=O.onComplete,le=L.ensureSingle(N,"g","numbers"),$,Z,ie,X=[];F._hasNumber&&X.push("number"),F._hasDelta&&(X.push("delta"),F.delta.position==="left"&&X.reverse());var Q=le.selectAll("text").data(X);Q.enter().append("text"),Q.attr("text-anchor",function(){return J}).attr("class",function(De){return De}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),Q.exit().remove();function oe(De,Fe,Te,Re){if(De.match("s")&&Te>=0!=Re>=0&&!Fe(Te).slice(-1).match(i)&&!Fe(Re).slice(-1).match(i)){var Se=De.slice().replace("s","f").replace(/\d+/,function(Me){return parseInt(Me)-1}),Ie=A(D,{tickformat:Se});return function(Me){return Math.abs(Me)<1?f.tickText(Ie,Me).text:Fe(Me)}}else return Fe}function Y(){var De=A(D,{tickformat:F.number.valueformat},F._range);De.setScale(),f.prepTicks(De);var Fe=function(Me){return f.tickText(De,Me).text},Te=F.number.suffix,Re=F.number.prefix,Se=le.select("text.number");function Ie(){var Me=typeof k[0].y=="number"?Re+Fe(k[0].y)+Te:"-";Se.text(Me).call(t.font,F.number.font).call(n.convertToTspans,D)}return d(re)?Se.transition().duration(re.duration).ease(re.easing).each("end",function(){Ie(),ne&&ne()}).each("interrupt",function(){Ie(),ne&&ne()}).attrTween("text",function(){var Me=m.select(this),Ve=s(k[0].lastY,k[0].y);F._lastValue=k[0].y;var et=oe(F.number.valueformat,Fe,k[0].lastY,k[0].y);return function(ot){Me.text(Re+et(Ve(ot))+Te)}}):Ie(),$=b(Re+Fe(k[0].y)+Te,F.number.font,J,D),Se}function j(){var De=A(D,{tickformat:F.delta.valueformat},F._range);De.setScale(),f.prepTicks(De);var Fe=function(ot){return f.tickText(De,ot).text},Te=F.delta.suffix,Re=F.delta.prefix,Se=function(ot){var Qe=F.delta.relative?ot.relativeDelta:ot.delta;return Qe},Ie=function(ot,Qe){return ot===0||typeof ot!="number"||isNaN(ot)?"-":(ot>0?F.delta.increasing.symbol:F.delta.decreasing.symbol)+Re+Qe(ot)+Te},Me=function(ot){return ot.delta>=0?F.delta.increasing.color:F.delta.decreasing.color};F._deltaLastValue===void 0&&(F._deltaLastValue=Se(k[0]));var Ve=le.select("text.delta");Ve.call(t.font,F.delta.font).call(h.fill,Me({delta:F._deltaLastValue}));function et(){Ve.text(Ie(Se(k[0]),Fe)).call(h.fill,Me(k[0])).call(n.convertToTspans,D)}return d(re)?Ve.transition().duration(re.duration).ease(re.easing).tween("text",function(){var ot=m.select(this),Qe=Se(k[0]),$e=F._deltaLastValue,ht=oe(F.delta.valueformat,Fe,$e,Qe),vt=s($e,Qe);return F._deltaLastValue=Qe,function(pt){ot.text(Ie(vt(pt),ht)),ot.call(h.fill,Me({delta:vt(pt)}))}}).each("end",function(){et(),ne&&ne()}).each("interrupt",function(){et(),ne&&ne()}):et(),Z=b(Ie(Se(k[0]),Fe),F.delta.font,J,D),Ve}var se=F.mode+F.align,te;if(F._hasDelta&&(te=j(),se+=F.delta.position+F.delta.font.size+F.delta.font.family+F.delta.valueformat,se+=F.delta.increasing.symbol+F.delta.decreasing.symbol,ie=Z),F._hasNumber&&(Y(),se+=F.number.font.size+F.number.font.family+F.number.valueformat+F.number.suffix+F.number.prefix,ie=$),F._hasDelta&&F._hasNumber){var fe=[($.left+$.right)/2,($.top+$.bottom)/2],ge=[(Z.left+Z.right)/2,(Z.top+Z.bottom)/2],be,xe,_e=.75*F.delta.font.size;F.delta.position==="left"&&(be=I(F,"deltaPos",0,-1*($.width*c[F.align]+Z.width*(1-c[F.align])+_e),se,Math.min),xe=fe[1]-ge[1],ie={width:$.width+Z.width+_e,height:Math.max($.height,Z.height),left:Z.left+be,right:$.right,top:Math.min($.top,Z.top+xe),bottom:Math.max($.bottom,Z.bottom+xe)}),F.delta.position==="right"&&(be=I(F,"deltaPos",0,$.width*(1-c[F.align])+Z.width*c[F.align]+_e,se,Math.max),xe=fe[1]-ge[1],ie={width:$.width+Z.width+_e,height:Math.max($.height,Z.height),left:$.left,right:Z.right+be,top:Math.min($.top,Z.top+xe),bottom:Math.max($.bottom,Z.bottom+xe)}),F.delta.position==="bottom"&&(be=null,xe=Z.height,ie={width:Math.max($.width,Z.width),height:$.height+Z.height,left:Math.min($.left,Z.left),right:Math.max($.right,Z.right),top:$.bottom-$.height,bottom:$.bottom+Z.height}),F.delta.position==="top"&&(be=null,xe=$.top,ie={width:Math.max($.width,Z.width),height:$.height+Z.height,left:Math.min($.left,Z.left),right:Math.max($.right,Z.right),top:$.bottom-$.height-Z.height,bottom:$.bottom}),te.attr({dx:be,dy:xe})}(F._hasNumber||F._hasDelta)&&le.attr("transform",function(){var De=O.numbersScaler(ie);se+=De[2];var Fe=I(F,"numbersScale",1,De[0],se,Math.min),Te;F._scaleNumbers||(Fe=1),F._isAngular?Te=B-Fe*ie.bottom:Te=B-Fe*(ie.top+ie.bottom)/2,F._numbersTop=Fe*ie.top+Te;var Re=ie[W];W==="center"&&(Re=(ie.left+ie.right)/2);var Se=z-Fe*Re;return Se=I(F,"numbersTranslate",0,Se,se,Math.max),v(Se,Te)+S(Fe)})}function y(D){D.each(function(N){h.stroke(m.select(this),N.line.color)}).each(function(N){h.fill(m.select(this),N.color)}).style("stroke-width",function(N){return N.line.width})}function E(D,N,k){return function(){var O=P(N,k);return function(F){return D.endAngle(O(F))()}}}function A(D,N,k){var O=D._fullLayout,F=L.extendFlat({type:"linear",ticks:"outside",range:k,showline:!0},N),z={type:"linear",_id:"x"+N._id},B={letter:"x",font:O.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function W(J,re){return L.coerce(F,z,g,J,re)}return u(F,z,W,B,O),l(F,z,W,B),z}function o(D,N,k){var O=Math.min(N/D.width,k/D.height);return[O,D,N+"x"+k]}function M(D,N){var k=Math.sqrt(D.width/2*(D.width/2)+D.height*D.height),O=N/k;return[O,D,N]}function b(D,N,k,O){var F=document.createElementNS("http://www.w3.org/2000/svg","text"),z=m.select(F);return z.text(D).attr("x",0).attr("y",0).attr("text-anchor",k).attr("data-unformatted",D).call(n.convertToTspans,O).call(t.font,N),t.bBox(z.node())}function I(D,N,k,O,F,z){var B="_cache"+N;D[B]&&D[B].key===F||(D[B]={key:F,value:k});var W=L.aggNums(z,null,[D[B].value,O],2);return D[B].value=W,W}},50048:function(G,H,e){var m=e(49084),P=e(29736).axisHoverFormat,s=e(21776).Ks,L=e(52948),S=e(45464),v=e(92880).extendFlat,p=e(67824).overrideAll;function r(n){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function t(n){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var a=G.exports=p(v({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:r(),y:r(),z:r()},caps:{x:t(),y:t(),z:t()},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:s(),xhoverformat:P("x"),yhoverformat:P("y"),zhoverformat:P("z"),valuehoverformat:P("value",1),showlegend:v({},S.showlegend,{dflt:!1})},m("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:L.opacity,lightposition:L.lightposition,lighting:L.lighting,flatshading:L.flatshading,contour:L.contour,hoverinfo:v({},S.hoverinfo)}),"calc","nested");a.flatshading.dflt=!0,a.lighting.facenormalsepsilon.dflt=0,a.x.editType=a.y.editType=a.z.editType=a.value.editType="calc+clearAxisTypes",a.transforms=void 0},62624:function(G,H,e){var m=e(47128),P=e(3832).processGrid,s=e(3832).filter;G.exports=function(S,v){v._len=Math.min(v.x.length,v.y.length,v.z.length,v.value.length),v._x=s(v.x,v._len),v._y=s(v.y,v._len),v._z=s(v.z,v._len),v._value=s(v.value,v._len);var p=P(v);v._gridFill=p.fill,v._Xs=p.Xs,v._Ys=p.Ys,v._Zs=p.Zs,v._len=p.len;for(var r=1/0,t=-1/0,a=0;a0;g--){var h=Math.min(l[g],l[g-1]),T=Math.max(l[g],l[g-1]);if(T>h&&h-1}function j(We,Ge){return We===null?Ge:We}function se(We,Ge,Le){re();var Pe=[Ge],je=[Le];if(X>=1)Pe=[Ge],je=[Le];else if(X>0){var Ce=oe(Ge,Le);Pe=Ce.xyzv,je=Ce.abc}for(var he=0;he-1?Le[Ne]:J(Ze,st,lt);Zt>-1?me[Ne]=Zt:me[Ne]=le(Ze,st,lt,j(We,Wt))}$(me[0],me[1],me[2])}}function te(We,Ge,Le){var Pe=function(je,Ce,he){se(We,[Ge[je],Ge[Ce],Ge[he]],[Le[je],Le[Ce],Le[he]])};Pe(0,1,2),Pe(2,3,0)}function fe(We,Ge,Le){var Pe=function(je,Ce,he){se(We,[Ge[je],Ge[Ce],Ge[he]],[Le[je],Le[Ce],Le[he]])};Pe(0,1,2),Pe(3,0,1),Pe(2,3,0),Pe(1,2,3)}function ge(We,Ge,Le,Pe){var je=We[3];jePe&&(je=Pe);for(var Ce=(We[3]-je)/(We[3]-Ge[3]+1e-9),he=[],me=0;me<4;me++)he[me]=(1-Ce)*We[me]+Ce*Ge[me];return he}function be(We,Ge,Le){return We>=Ge&&We<=Le}function xe(We){var Ge=.001*(O-k);return We>=k-Ge&&We<=O+Ge}function _e(We){for(var Ge=[],Le=0;Le<4;Le++){var Pe=We[Le];Ge.push([u._x[Pe],u._y[Pe],u._z[Pe],u._value[Pe]])}return Ge}var De=3;function Fe(We,Ge,Le,Pe,je,Ce){Ce||(Ce=1),Le=[-1,-1,-1];var he=!1,me=[be(Ge[0][3],Pe,je),be(Ge[1][3],Pe,je),be(Ge[2][3],Pe,je)];if(!me[0]&&!me[1]&&!me[2])return!1;var Ne=function(st,lt,Wt){return xe(lt[0][3])&&xe(lt[1][3])&&xe(lt[2][3])?(se(st,lt,Wt),!0):Ceme?[D,Ce]:[Ce,N];vt(Ge,Ne[0],Ne[1])}}var Ze=[[Math.min(k,N),Math.max(k,N)],[Math.min(D,O),Math.max(D,O)]];["x","y","z"].forEach(function(st){for(var lt=[],Wt=0;Wt0&&(gt.push(yr.id),st==="x"?Kt.push([yr.distRatio,0,0]):st==="y"?Kt.push([0,yr.distRatio,0]):Kt.push([0,0,yr.distRatio]))}else st==="x"?gr=rt(1,A-1):st==="y"?gr=rt(1,o-1):gr=rt(1,M-1);gt.length>0&&(st==="x"?lt[Zt]=pt(We,gt,Tt,Rt,Kt,lt[Zt]):st==="y"?lt[Zt]=wt(We,gt,Tt,Rt,Kt,lt[Zt]):lt[Zt]=Ct(We,gt,Tt,Rt,Kt,lt[Zt]),Zt++),gr.length>0&&(st==="x"?lt[Zt]=et(We,gr,Tt,Rt,lt[Zt]):st==="y"?lt[Zt]=ot(We,gr,Tt,Rt,lt[Zt]):lt[Zt]=Qe(We,gr,Tt,Rt,lt[Zt]),Zt++)}var Ot=u.caps[st];Ot.show&&Ot.fill&&(Q(Ot.fill),st==="x"?lt[Zt]=et(We,[0,A-1],Tt,Rt,lt[Zt]):st==="y"?lt[Zt]=ot(We,[0,o-1],Tt,Rt,lt[Zt]):lt[Zt]=Qe(We,[0,M-1],Tt,Rt,lt[Zt]),Zt++)}}),d===0&&ne(),u._meshX=F,u._meshY=z,u._meshZ=B,u._meshIntensity=W,u._Xs=C,u._Ys=y,u._Zs=E}return He(),u}function f(u,l){var g=u.glplot.gl,h=m({gl:g}),T=new r(u,h,l.uid);return h._trace=T,T.update(l),u.glplot.add(h),T}G.exports={findNearestOnAxis:p,generateIsoMeshes:n,createIsosurfaceTrace:f}},70548:function(G,H,e){var m=e(3400),P=e(24040),s=e(50048),L=e(27260);function S(p,r,t,a){function n(f,u){return m.coerce(p,r,s,f,u)}v(p,r,t,a,n)}function v(p,r,t,a,n){var f=n("isomin"),u=n("isomax");u!=null&&f!==void 0&&f!==null&&f>u&&(r.isomin=null,r.isomax=null);var l=n("x"),g=n("y"),h=n("z"),T=n("value");if(!l||!l.length||!g||!g.length||!h||!h.length||!T||!T.length){r.visible=!1;return}var c=P.getComponentMethod("calendars","handleTraceDefaults");c(p,r,["x","y","z"],a),n("valuehoverformat"),["x","y","z"].forEach(function(w){n(w+"hoverformat");var C="caps."+w,y=n(C+".show");y&&n(C+".fill");var E="slices."+w,A=n(E+".show");A&&(n(E+".fill"),n(E+".locations"))});var i=n("spaceframe.show");i&&n("spaceframe.fill");var d=n("surface.show");d&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var x=n("contour.show");x&&(n("contour.color"),n("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(w){n(w)}),L(p,r,a,n,{prefix:"",cLetter:"c"}),r._length=null}G.exports={supplyDefaults:S,supplyIsoDefaults:v}},6296:function(G,H,e){G.exports={attributes:e(50048),supplyDefaults:e(70548).supplyDefaults,calc:e(62624),colorbar:{min:"cmin",max:"cmax"},plot:e(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:e(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(G,H,e){var m=e(49084),P=e(29736).axisHoverFormat,s=e(21776).Ks,L=e(16716),S=e(45464),v=e(92880).extendFlat;G.exports=v({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:s({editType:"calc"}),xhoverformat:P("x"),yhoverformat:P("y"),zhoverformat:P("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},m("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:L.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:v({},L.contours.x.show,{}),color:L.contours.x.color,width:L.contours.x.width,editType:"calc"},lightposition:{x:v({},L.lightposition.x,{dflt:1e5}),y:v({},L.lightposition.y,{dflt:1e5}),z:v({},L.lightposition.z,{dflt:0}),editType:"calc"},lighting:v({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},L.lighting),hoverinfo:v({},S.hoverinfo,{editType:"calc"}),showlegend:v({},S.showlegend,{dflt:!1})})},1876:function(G,H,e){var m=e(47128);G.exports=function(s,L){L.intensity&&m(s,L,{vals:L.intensity,containerStr:"",cLetter:"c"})}},576:function(G,H,e){var m=e(67792).gl_mesh3d,P=e(67792).delaunay_triangulate,s=e(67792).alpha_shape,L=e(67792).convex_hull,S=e(33040).parseColorScale,v=e(3400).isArrayOrTypedArray,p=e(43080),r=e(8932).extractOpts,t=e(52094);function a(c,i,d){this.scene=c,this.uid=d,this.mesh=i,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var n=a.prototype;n.handlePick=function(c){if(c.object===this.mesh){var i=c.index=c.data.index;c.data._cellCenter?c.traceCoordinate=c.data.dataCoordinate:c.traceCoordinate=[this.data.x[i],this.data.y[i],this.data.z[i]];var d=this.data.hovertext||this.data.text;return v(d)&&d[i]!==void 0?c.textLabel=d[i]:d&&(c.textLabel=d),!0}};function f(c){for(var i=[],d=c.length,x=0;x=i-.5)return!1;return!0}n.update=function(c){var i=this.scene,d=i.fullSceneLayout;this.data=c;var x=c.x.length,w=t(u(d.xaxis,c.x,i.dataScale[0],c.xcalendar),u(d.yaxis,c.y,i.dataScale[1],c.ycalendar),u(d.zaxis,c.z,i.dataScale[2],c.zcalendar)),C;if(c.i&&c.j&&c.k){if(c.i.length!==c.j.length||c.j.length!==c.k.length||!h(c.i,x)||!h(c.j,x)||!h(c.k,x))return;C=t(l(c.i),l(c.j),l(c.k))}else c.alphahull===0?C=L(w):c.alphahull>0?C=s(c.alphahull,w):C=g(c.delaunayaxis,w);var y={positions:w,cells:C,lightPosition:[c.lightposition.x,c.lightposition.y,c.lightposition.z],ambient:c.lighting.ambient,diffuse:c.lighting.diffuse,specular:c.lighting.specular,roughness:c.lighting.roughness,fresnel:c.lighting.fresnel,vertexNormalsEpsilon:c.lighting.vertexnormalsepsilon,faceNormalsEpsilon:c.lighting.facenormalsepsilon,opacity:c.opacity,contourEnable:c.contour.show,contourColor:p(c.contour.color).slice(0,3),contourWidth:c.contour.width,useFacetNormals:c.flatshading};if(c.intensity){var E=r(c);this.color="#fff";var A=c.intensitymode;y[A+"Intensity"]=c.intensity,y[A+"IntensityBounds"]=[E.min,E.max],y.colormap=S(c)}else c.vertexcolor?(this.color=c.vertexcolor[0],y.vertexColors=f(c.vertexcolor)):c.facecolor?(this.color=c.facecolor[0],y.cellColors=f(c.facecolor)):(this.color=c.color,y.meshColor=p(c.color));this.mesh.update(y)},n.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function T(c,i){var d=c.glplot.gl,x=m({gl:d}),w=new a(c,x,i.uid);return x._trace=w,w.update(i),c.glplot.add(x),w}G.exports=T},74212:function(G,H,e){var m=e(24040),P=e(3400),s=e(27260),L=e(52948);G.exports=function(v,p,r,t){function a(g,h){return P.coerce(v,p,L,g,h)}function n(g){var h=g.map(function(T){var c=a(T);return c&&P.isArrayOrTypedArray(c)?c:null});return h.every(function(T){return T&&T.length===h[0].length})&&h}var f=n(["x","y","z"]);if(!f){p.visible=!1;return}if(n(["i","j","k"]),p.i&&(!p.j||!p.k)||p.j&&(!p.k||!p.i)||p.k&&(!p.i||!p.j)){p.visible=!1;return}var u=m.getComponentMethod("calendars","handleTraceDefaults");u(v,p,["x","y","z"],t),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(g){a(g)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in v?(a("intensity"),a("intensitymode"),s(v,p,t,a,{prefix:"",cLetter:"c"})):(p.showscale=!1,"facecolor"in v?a("facecolor"):"vertexcolor"in v?a("vertexcolor"):a("color",r)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),p._length=null}},7404:function(G,H,e){G.exports={attributes:e(52948),supplyDefaults:e(74212),calc:e(1876),colorbar:{min:"cmin",max:"cmax"},plot:e(576),moduleType:"trace",name:"mesh3d",basePlotModule:e(12536),categories:["gl3d","showLegend"],meta:{}}},20279:function(G,H,e){var m=e(3400).extendFlat,P=e(52904),s=e(29736).axisHoverFormat,L=e(98192).u,S=e(55756),v=e(48164),p=v.INCREASING.COLOR,r=v.DECREASING.COLOR,t=P.line;function a(n){return{line:{color:m({},t.color,{dflt:n}),width:t.width,dash:L,editType:"style"},editType:"style"}}G.exports={xperiod:P.xperiod,xperiod0:P.xperiod0,xperiodalignment:P.xperiodalignment,xhoverformat:s("x"),yhoverformat:s("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:m({},t.width,{}),dash:m({},L,{}),editType:"style"},increasing:a(p),decreasing:a(r),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:m({},S.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:P.zorder}},42812:function(G,H,e){var m=e(3400),P=m._,s=e(54460),L=e(1220),S=e(39032).BADNUM;function v(a,n){var f=s.getFromId(a,n.xaxis),u=s.getFromId(a,n.yaxis),l=t(a,f,n),g=n._minDiff;n._minDiff=null;var h=n._origX;n._origX=null;var T=n._xcalc;n._xcalc=null;var c=r(a,n,h,T,u,p);return n._extremes[f._id]=s.findExtremes(f,T,{vpad:g/2}),c.length?(m.extendFlat(c[0].t,{wHover:g/2,tickLen:l}),c):[{t:{empty:!0}}]}function p(a,n,f,u){return{o:a,h:n,l:f,c:u}}function r(a,n,f,u,l,g){for(var h=l.makeCalcdata(n,"open"),T=l.makeCalcdata(n,"high"),c=l.makeCalcdata(n,"low"),i=l.makeCalcdata(n,"close"),d=m.isArrayOrTypedArray(n.text),x=m.isArrayOrTypedArray(n.hovertext),w=!0,C=null,y=!!n.xperiodalignment,E=[],A=0;AC):w=D>M,C=D;var N=g(M,b,I,D);N.pos=o,N.yc=(M+D)/2,N.i=A,N.dir=w?"increasing":"decreasing",N.x=N.pos,N.y=[I,b],y&&(N.orig_p=f[A]),d&&(N.tx=n.text[A]),x&&(N.htx=n.hovertext[A]),E.push(N)}else E.push({pos:o,empty:!0})}return n._extremes[l._id]=s.findExtremes(l,m.concat(c,T),{padded:!0}),E.length&&(E[0].t={labels:{open:P(a,"open:")+" ",high:P(a,"high:")+" ",low:P(a,"low:")+" ",close:P(a,"close:")+" "}}),E}function t(a,n,f){var u=f._minDiff;if(!u){var l=a._fullData,g=[];u=1/0;var h;for(h=0;h"+i.labels[D]+m.hoverLabelText(T,N,c.yhoverformat)):(O=P.extendFlat({},x),O.y0=O.y1=k,O.yLabelVal=N,O.yLabel=i.labels[D]+m.hoverLabelText(T,N,c.yhoverformat),O.name="",d.push(O),b[N]=O)}return d}function n(f,u,l,g){var h=f.cd,T=f.ya,c=h[0].trace,i=h[0].t,d=t(f,u,l,g);if(!d)return[];var x=d.index,w=h[x],C=d.index=w.i,y=w.dir;function E(N){return i.labels[N]+m.hoverLabelText(T,c[N][C],c.yhoverformat)}var A=w.hi||c.hoverinfo,o=A.split("+"),M=A==="all",b=M||o.indexOf("y")!==-1,I=M||o.indexOf("text")!==-1,D=b?[E("open"),E("high"),E("low"),E("close")+" "+p[y]]:[];return I&&S(w,c,D),d.extraText=D.join("
"),d.y0=d.y1=T.c2p(w.yc,!0),[d]}G.exports={hoverPoints:r,hoverSplit:a,hoverOnPoints:n}},65456:function(G,H,e){G.exports={moduleType:"trace",name:"ohlc",basePlotModule:e(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:e(20279),supplyDefaults:e(23860),calc:e(42812).calc,plot:e(36664),style:e(14008),hoverPoints:e(18720).hoverPoints,selectPoints:e(97384)}},52744:function(G,H,e){var m=e(24040),P=e(3400);G.exports=function(L,S,v,p){var r=v("x"),t=v("open"),a=v("high"),n=v("low"),f=v("close");v("hoverlabel.split");var u=m.getComponentMethod("calendars","handleTraceDefaults");if(u(L,S,["x"],p),!!(t&&a&&n&&f)){var l=Math.min(t.length,a.length,n.length,f.length);return r&&(l=Math.min(l,P.minRowLength(r))),S._length=l,l}}},36664:function(G,H,e){var m=e(33428),P=e(3400);G.exports=function(L,S,v,p){var r=S.yaxis,t=S.xaxis,a=!!t.rangebreaks;P.makeTraceGroups(p,v,"trace ohlc").each(function(n){var f=m.select(this),u=n[0],l=u.t,g=u.trace;if(g.visible!==!0||l.empty){f.remove();return}var h=l.tickLen,T=f.selectAll("path").data(P.identity);T.enter().append("path"),T.exit().remove(),T.attr("d",function(c){if(c.empty)return"M0,0Z";var i=t.c2p(c.pos-h,!0),d=t.c2p(c.pos+h,!0),x=a?(i+d)/2:t.c2p(c.pos,!0),w=r.c2p(c.o,!0),C=r.c2p(c.h,!0),y=r.c2p(c.l,!0),E=r.c2p(c.c,!0);return"M"+i+","+w+"H"+x+"M"+x+","+C+"V"+y+"M"+d+","+E+"H"+x})})}},97384:function(G){G.exports=function(e,m){var P=e.cd,s=e.xaxis,L=e.yaxis,S=[],v,p=P[0].t.bPos||0;if(m===!1)for(v=0;v=c.length||i[c[d]]!==void 0)return!1;i[c[d]]=!0}return!0}},76671:function(G,H,e){var m=e(3400),P=e(94288).hasColorscale,s=e(27260),L=e(86968).Q,S=e(51272),v=e(72140),p=e(26284),r=e(38116).isTypedArraySpec;function t(n,f,u,l,g){g("line.shape"),g("line.hovertemplate");var h=g("line.color",l.colorway[0]);if(P(n,"line")&&m.isArrayOrTypedArray(h)){if(h.length)return g("line.colorscale"),s(n,f,l,g,{prefix:"line.",cLetter:"c"}),h.length;f.line.color=u}return 1/0}function a(n,f){function u(d,x){return m.coerce(n,f,v.dimensions,d,x)}var l=u("values"),g=u("visible");if(l&&l.length||(g=f.visible=!1),g){u("label"),u("displayindex",f._index);var h=n.categoryarray,T=m.isArrayOrTypedArray(h)&&h.length>0||r(h),c;T&&(c="array");var i=u("categoryorder",c);i==="array"?(u("categoryarray"),u("ticktext")):(delete n.categoryarray,delete n.ticktext),!T&&i==="array"&&(f.categoryorder="trace")}}G.exports=function(f,u,l,g){function h(d,x){return m.coerce(f,u,v,d,x)}var T=S(f,u,{name:"dimensions",handleItemDefaults:a}),c=t(f,u,l,g,h);L(u,g,h),(!Array.isArray(T)||!T.length)&&(u.visible=!1),p(u,T,"values",c),h("hoveron"),h("hovertemplate"),h("arrangement"),h("bundlecolors"),h("sortpaths"),h("counts");var i=g.font;m.coerceFont(h,"labelfont",i,{overrideDflt:{size:Math.round(i.size)}}),m.coerceFont(h,"tickfont",i,{autoShadowDflt:!0,overrideDflt:{size:Math.round(i.size/1.2)}})}},22020:function(G,H,e){G.exports={attributes:e(72140),supplyDefaults:e(76671),calc:e(69136),plot:e(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:e(91800),categories:["noOpacity"],meta:{}}},51036:function(G,H,e){var m=e(33428),P=e(67756).Gz,s=e(36424),L=e(93024),S=e(3400),v=S.strTranslate,p=e(43616),r=e(49760),t=e(72736);function a(X,Q,oe,Y){var j=Q._context.staticPlot,se=X.map(ne.bind(0,Q,oe)),te=Y.selectAll("g.parcatslayer").data([null]);te.enter().append("g").attr("class","parcatslayer").style("pointer-events",j?"none":"all");var fe=te.selectAll("g.trace.parcats").data(se,n),ge=fe.enter().append("g").attr("class","trace parcats");fe.attr("transform",function(Me){return v(Me.x,Me.y)}),ge.append("g").attr("class","paths");var be=fe.select("g.paths"),xe=be.selectAll("path.path").data(function(Me){return Me.paths},n);xe.attr("fill",function(Me){return Me.model.color});var _e=xe.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Me){return Me.model.color}).attr("fill-opacity",0);i(_e),xe.attr("d",function(Me){return Me.svgD}),_e.empty()||xe.sort(u),xe.exit().remove(),xe.on("mouseover",l).on("mouseout",g).on("click",c),ge.append("g").attr("class","dimensions");var De=fe.select("g.dimensions"),Fe=De.selectAll("g.dimension").data(function(Me){return Me.dimensions},n);Fe.enter().append("g").attr("class","dimension"),Fe.attr("transform",function(Me){return v(Me.x,0)}),Fe.exit().remove();var Te=Fe.selectAll("g.category").data(function(Me){return Me.categories},n),Re=Te.enter().append("g").attr("class","category");Te.attr("transform",function(Me){return v(0,Me.y)}),Re.append("rect").attr("class","catrect").attr("pointer-events","none"),Te.select("rect.catrect").attr("fill","none").attr("width",function(Me){return Me.width}).attr("height",function(Me){return Me.height}),w(Re);var Se=Te.selectAll("rect.bandrect").data(function(Me){return Me.bands},n);Se.each(function(){S.raiseToTop(this)}),Se.attr("fill",function(Me){return Me.color});var Ie=Se.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Me){return Me.color}).attr("fill-opacity",0);Se.attr("fill",function(Me){return Me.color}).attr("width",function(Me){return Me.width}).attr("height",function(Me){return Me.height}).attr("y",function(Me){return Me.y}).attr("cursor",function(Me){return Me.parcatsViewModel.arrangement==="fixed"?"default":Me.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),y(Ie),Se.exit().remove(),Re.append("text").attr("class","catlabel").attr("pointer-events","none"),Te.select("text.catlabel").attr("text-anchor",function(Me){return f(Me)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(Me){return f(Me)?Me.width+5:-5}).attr("y",function(Me){return Me.height/2}).text(function(Me){return Me.model.categoryLabel}).each(function(Me){p.font(m.select(this),Me.parcatsViewModel.categorylabelfont),t.convertToTspans(m.select(this),Q)}),Re.append("text").attr("class","dimlabel"),Te.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Me){return Me.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Me){return Me.width/2}).attr("y",-5).text(function(Me,Ve){return Ve===0?Me.parcatsViewModel.model.dimensions[Me.model.dimensionInd].dimensionLabel:null}).each(function(Me){p.font(m.select(this),Me.parcatsViewModel.labelfont)}),Te.selectAll("rect.bandrect").on("mouseover",k).on("mouseout",O),Te.exit().remove(),Fe.call(m.behavior.drag().origin(function(Me){return{x:Me.x,y:0}}).on("dragstart",F).on("drag",z).on("dragend",B)),fe.each(function(Me){Me.traceSelection=m.select(this),Me.pathSelection=m.select(this).selectAll("g.paths").selectAll("path.path"),Me.dimensionSelection=m.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),fe.exit().remove()}G.exports=function(X,Q,oe,Y){a(oe,X,Y,Q)};function n(X){return X.key}function f(X){var Q=X.parcatsViewModel.dimensions.length,oe=X.parcatsViewModel.dimensions[Q-1].model.dimensionInd;return X.model.dimensionInd===oe}function u(X,Q){return X.model.rawColor>Q.model.rawColor?1:X.model.rawColor"),Qe=m.mouse(j)[0];L.loneHover({trace:se,x:Te-fe.left+ge.left,y:Re-fe.top+ge.top,text:ot,color:X.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:Se,idealAlign:Qe1&&be.displayInd===ge.dimensions.length-1?(De=te.left,Fe="left"):(De=te.left+te.width,Fe="right");var Te=fe.model.count,Re=fe.model.categoryLabel,Se=Te/fe.parcatsViewModel.model.count,Ie={countLabel:Te,categoryLabel:Re,probabilityLabel:Se.toFixed(3)},Me=[];fe.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&Me.push(["Count:",Ie.countLabel].join(" ")),fe.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&Me.push(["P("+Ie.categoryLabel+"):",Ie.probabilityLabel].join(" "));var Ve=Me.join("
");return{trace:xe,x:Y*(De-Q.left),y:j*(_e-Q.top),text:Ve,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:Fe,hovertemplate:xe.hovertemplate,hovertemplateLabels:Ie,eventData:[{data:xe._input,fullData:xe,count:Te,category:Re,probability:Se}]}}function D(X,Q,oe){var Y=[];return m.select(oe.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var j=this;Y.push(I(X,Q,j))}),Y}function N(X,Q,oe){X._fullLayout._calcInverseTransform(X);var Y=X._fullLayout._invScaleX,j=X._fullLayout._invScaleY,se=oe.getBoundingClientRect(),te=m.select(oe).datum(),fe=te.categoryViewModel,ge=fe.parcatsViewModel,be=ge.model.dimensions[fe.model.dimensionInd],xe=ge.trace,_e=se.y+se.height/2,De,Fe;ge.dimensions.length>1&&be.displayInd===ge.dimensions.length-1?(De=se.left,Fe="left"):(De=se.left+se.width,Fe="right");var Te=fe.model.categoryLabel,Re=te.parcatsViewModel.model.count,Se=0;te.categoryViewModel.bands.forEach(function(pt){pt.color===te.color&&(Se+=pt.count)});var Ie=fe.model.count,Me=0;ge.pathSelection.each(function(pt){pt.model.color===te.color&&(Me+=pt.model.count)});var Ve=Se/Re,et=Se/Me,ot=Se/Ie,Qe={countLabel:Se,categoryLabel:Te,probabilityLabel:Ve.toFixed(3)},$e=[];fe.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&$e.push(["Count:",Qe.countLabel].join(" ")),fe.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&($e.push("P(color ∩ "+Te+"): "+Qe.probabilityLabel),$e.push("P("+Te+" | color): "+et.toFixed(3)),$e.push("P(color | "+Te+"): "+ot.toFixed(3)));var ht=$e.join("
"),vt=r.mostReadable(te.color,["black","white"]);return{trace:xe,x:Y*(De-Q.left),y:j*(_e-Q.top),text:ht,color:te.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:vt,fontSize:10,idealAlign:Fe,hovertemplate:xe.hovertemplate,hovertemplateLabels:Qe,eventData:[{data:xe._input,fullData:xe,category:Te,count:Re,probability:Ve,categorycount:Ie,colorcount:Me,bandcolorcount:Se}]}}function k(X){if(!X.parcatsViewModel.dragDimension&&X.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var Q=m.mouse(this)[1];if(Q<-1)return;var oe=X.parcatsViewModel.graphDiv,Y=oe._fullLayout,j=Y._paperdiv.node().getBoundingClientRect(),se=X.parcatsViewModel.hoveron,te=this;if(se==="color"?(o(te),b(te,"plotly_hover",m.event)):(A(te),M(te,"plotly_hover",m.event)),X.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var fe;se==="category"?fe=I(oe,j,te):se==="color"?fe=N(oe,j,te):se==="dimension"&&(fe=D(oe,j,te)),fe&&L.loneHover(fe,{container:Y._hoverlayer.node(),outerContainer:Y._paper.node(),gd:oe})}}}function O(X){var Q=X.parcatsViewModel;if(!Q.dragDimension&&(i(Q.pathSelection),w(Q.dimensionSelection.selectAll("g.category")),y(Q.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),L.loneUnhover(Q.graphDiv._fullLayout._hoverlayer.node()),Q.pathSelection.sort(u),Q.hoverinfoItems.indexOf("skip")===-1)){var oe=X.parcatsViewModel.hoveron,Y=this;oe==="color"?b(Y,"plotly_unhover",m.event):M(Y,"plotly_unhover",m.event)}}function F(X){X.parcatsViewModel.arrangement!=="fixed"&&(X.dragDimensionDisplayInd=X.model.displayInd,X.initialDragDimensionDisplayInds=X.parcatsViewModel.model.dimensions.map(function(Q){return Q.displayInd}),X.dragHasMoved=!1,X.dragCategoryDisplayInd=null,m.select(this).selectAll("g.category").select("rect.catrect").each(function(Q){var oe=m.mouse(this)[0],Y=m.mouse(this)[1];-2<=oe&&oe<=Q.width+2&&-2<=Y&&Y<=Q.height+2&&(X.dragCategoryDisplayInd=Q.model.displayInd,X.initialDragCategoryDisplayInds=X.model.categories.map(function(j){return j.displayInd}),Q.model.dragY=Q.y,S.raiseToTop(this.parentNode),m.select(this.parentNode).selectAll("rect.bandrect").each(function(j){j.yxe.y+xe.height/2&&(se.model.displayInd=xe.model.displayInd,xe.model.displayInd=fe),X.dragCategoryDisplayInd=se.model.displayInd}if(X.dragCategoryDisplayInd===null||X.parcatsViewModel.arrangement==="freeform"){j.model.dragX=m.event.x;var _e=X.parcatsViewModel.dimensions[oe],De=X.parcatsViewModel.dimensions[Y];_e!==void 0&&j.model.dragX<_e.x+_e.width&&(j.model.displayInd=_e.model.displayInd,_e.model.displayInd=Q),De!==void 0&&j.model.dragX+j.width>De.x&&(j.model.displayInd=De.model.displayInd,De.model.displayInd=X.dragDimensionDisplayInd),X.dragDimensionDisplayInd=j.model.displayInd}Z(X.parcatsViewModel),$(X.parcatsViewModel),re(X.parcatsViewModel),J(X.parcatsViewModel)}}function B(X){if(X.parcatsViewModel.arrangement!=="fixed"&&X.dragDimensionDisplayInd!==null){m.select(this).selectAll("text").attr("font-weight","normal");var Q={},oe=W(X.parcatsViewModel),Y=X.parcatsViewModel.model.dimensions.map(function(De){return De.displayInd}),j=X.initialDragDimensionDisplayInds.some(function(De,Fe){return De!==Y[Fe]});j&&Y.forEach(function(De,Fe){var Te=X.parcatsViewModel.model.dimensions[Fe].containerInd;Q["dimensions["+Te+"].displayindex"]=De});var se=!1;if(X.dragCategoryDisplayInd!==null){var te=X.model.categories.map(function(De){return De.displayInd});if(se=X.initialDragCategoryDisplayInds.some(function(De,Fe){return De!==te[Fe]}),se){var fe=X.model.categories.slice().sort(function(De,Fe){return De.displayInd-Fe.displayInd}),ge=fe.map(function(De){return De.categoryValue}),be=fe.map(function(De){return De.categoryLabel});Q["dimensions["+X.model.containerInd+"].categoryarray"]=[ge],Q["dimensions["+X.model.containerInd+"].ticktext"]=[be],Q["dimensions["+X.model.containerInd+"].categoryorder"]="array"}}if(X.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!X.dragHasMoved&&X.potentialClickBand&&(X.parcatsViewModel.hoveron==="color"?b(X.potentialClickBand,"plotly_click",m.event.sourceEvent):M(X.potentialClickBand,"plotly_click",m.event.sourceEvent)),X.model.dragX=null,X.dragCategoryDisplayInd!==null){var xe=X.parcatsViewModel.dimensions[X.dragDimensionDisplayInd].categories[X.dragCategoryDisplayInd];xe.model.dragY=null,X.dragCategoryDisplayInd=null}X.dragDimensionDisplayInd=null,X.parcatsViewModel.dragDimension=null,X.dragHasMoved=null,X.potentialClickBand=null,Z(X.parcatsViewModel),$(X.parcatsViewModel);var _e=m.transition().duration(300).ease("cubic-in-out");_e.each(function(){re(X.parcatsViewModel,!0),J(X.parcatsViewModel,!0)}).each("end",function(){(j||se)&&s.restyle(X.parcatsViewModel.graphDiv,Q,[oe])})}}function W(X){for(var Q,oe=X.graphDiv._fullData,Y=0;Y=0;ge--)be+="C"+te[ge]+","+(Q[ge+1]+Y)+" "+se[ge]+","+(Q[ge]+Y)+" "+(X[ge]+oe[ge])+","+(Q[ge]+Y),be+="l-"+oe[ge]+",0 ";return be+="Z",be}function $(X){var Q=X.dimensions,oe=X.model,Y=Q.map(function(rt){return rt.categories.map(function(ze){return ze.y})}),j=X.model.dimensions.map(function(rt){return rt.categories.map(function(ze){return ze.displayInd})}),se=X.model.dimensions.map(function(rt){return rt.displayInd}),te=X.dimensions.map(function(rt){return rt.model.dimensionInd}),fe=Q.map(function(rt){return rt.x}),ge=Q.map(function(rt){return rt.width}),be=[];for(var xe in oe.paths)oe.paths.hasOwnProperty(xe)&&be.push(oe.paths[xe]);function _e(rt){var ze=rt.categoryInds.map(function(We,Ge){return j[Ge][We]}),He=te.map(function(We){return ze[We]});return He}be.sort(function(rt,ze){var He=_e(rt),We=_e(ze);return X.sortpaths==="backward"&&(He.reverse(),We.reverse()),He.push(rt.valueInds[0]),We.push(ze.valueInds[0]),X.bundlecolors&&(He.unshift(rt.rawColor),We.unshift(ze.rawColor)),HeWe?1:0});for(var De=new Array(be.length),Fe=Q[0].model.count,Te=Q[0].categories.map(function(rt){return rt.height}).reduce(function(rt,ze){return rt+ze}),Re=0;Re0?Ie=Te*(Se.count/Fe):Ie=0;for(var Me=new Array(Y.length),Ve=0;Ve1?te=(X.width-2*oe-Y)/(j-1):te=0,fe=oe,ge=fe+te*se;var be=[],xe=X.model.maxCats,_e=Q.categories.length,De=8,Fe=Q.count,Te=X.height-De*(xe-1),Re,Se,Ie,Me,Ve,et=(xe-_e)*De/2,ot=Q.categories.map(function(Qe){return{displayInd:Qe.displayInd,categoryInd:Qe.categoryInd}});for(ot.sort(function(Qe,$e){return Qe.displayInd-$e.displayInd}),Ve=0;Ve<_e;Ve++)Me=ot[Ve].categoryInd,Se=Q.categories[Me],Fe>0?Re=Se.count/Fe*Te:Re=0,Ie={key:Se.valueInds[0],model:Se,width:Y,height:Re,y:Se.dragY!==null?Se.dragY:et,bands:[],parcatsViewModel:X},et=et+Re+De,be.push(Ie);return{key:Q.dimensionInd,x:Q.dragX!==null?Q.dragX:ge,y:0,width:Y,model:Q,categories:be,parcatsViewModel:X,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}},60268:function(G,H,e){var m=e(51036);G.exports=function(s,L,S,v){var p=s._fullLayout,r=p._paper,t=p._size;m(s,r,L,{width:t.w,height:t.h,margin:{t:t.t,r:t.r,b:t.b,l:t.l}},S,v)}},82296:function(G,H,e){var m=e(49084),P=e(94724),s=e(25376),L=e(86968).u,S=e(92880).extendFlat,v=e(31780).templatedArray;G.exports={domain:L({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:s({editType:"plot"}),tickfont:s({autoShadowDflt:!0,editType:"plot"}),rangefont:s({editType:"plot"}),dimensions:v("dimension",{label:{valType:"string",editType:"plot"},tickvals:S({},P.tickvals,{editType:"plot"}),ticktext:S({},P.ticktext,{editType:"plot"}),tickformat:S({},P.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:S({editType:"calc"},m("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(G,H,e){var m=e(30140),P=e(33428),s=e(71688).keyFun,L=e(71688).repeat,S=e(3400).sorterAsc,v=e(3400).strTranslate,p=m.bar.snapRatio;function r(B,W){return B*(1-p)+W*p}var t=m.bar.snapClose;function a(B,W){return B*(1-t)+W*t}function n(B,W,J,re){if(f(J,re))return J;var ne=B?-1:1,le=0,$=W.length-1;if(ne<0){var Z=le;le=$,$=Z}for(var ie=W[le],X=ie,Q=le;ne*Q=W[J][0]&&B<=W[J][1])return!0;return!1}function u(B){B.attr("x",-m.bar.captureWidth/2).attr("width",m.bar.captureWidth)}function l(B){B.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function g(B){if(!B.brush.filterSpecified)return"0,"+B.height;for(var W=h(B.brush.filter.getConsolidated(),B.height),J=[0],re,ne,le,$=W.length?W[0][0]:null,Z=0;ZB[1]+J||W=.9*B[1]+.1*B[0]?"n":W<=.9*B[0]+.1*B[1]?"s":"ns"}function c(){P.select(document.body).style("cursor",null)}function i(B){B.attr("stroke-dasharray",g)}function d(B,W){var J=P.select(B).selectAll(".highlight, .highlight-shadow"),re=W?J.transition().duration(m.bar.snapDuration).each("end",W):J;i(re)}function x(B,W){var J=B.brush,re=J.filterSpecified,ne=NaN,le={},$;if(re){var Z=B.height,ie=J.filter.getConsolidated(),X=h(ie,Z),Q=NaN,oe=NaN,Y=NaN;for($=0;$<=X.length;$++){var j=X[$];if(j&&j[0]<=W&&W<=j[1]){Q=$;break}else if(oe=$?$-1:NaN,j&&j[0]>W){Y=$;break}}if(ne=Q,isNaN(ne)&&(isNaN(oe)||isNaN(Y)?ne=isNaN(oe)?Y:oe:ne=W-X[oe][1]=be[0]&&ge<=be[1]){le.clickableOrdinalRange=be;break}}}return le}function w(B,W){P.event.sourceEvent.stopPropagation();var J=W.height-P.mouse(B)[1]-2*m.verticalPadding,re=W.unitToPaddedPx.invert(J),ne=W.brush,le=x(W,J),$=le.interval,Z=ne.svgBrush;if(Z.wasDragged=!1,Z.grabbingBar=le.region==="ns",Z.grabbingBar){var ie=$.map(W.unitToPaddedPx);Z.grabPoint=J-ie[0]-m.verticalPadding,Z.barLength=ie[1]-ie[0]}Z.clickableOrdinalRange=le.clickableOrdinalRange,Z.stayingIntervals=W.multiselect&&ne.filterSpecified?ne.filter.getConsolidated():[],$&&(Z.stayingIntervals=Z.stayingIntervals.filter(function(X){return X[0]!==$[0]&&X[1]!==$[1]})),Z.startExtent=le.region?$[le.region==="s"?1:0]:re,W.parent.inBrushDrag=!0,Z.brushStartCallback()}function C(B,W){P.event.sourceEvent.stopPropagation();var J=W.height-P.mouse(B)[1]-2*m.verticalPadding,re=W.brush.svgBrush;re.wasDragged=!0,re._dragging=!0,re.grabbingBar?re.newExtent=[J-re.grabPoint,J+re.barLength-re.grabPoint].map(W.unitToPaddedPx.invert):re.newExtent=[re.startExtent,W.unitToPaddedPx.invert(J)].sort(S),W.brush.filterSpecified=!0,re.extent=re.stayingIntervals.concat([re.newExtent]),re.brushCallback(W),d(B.parentNode)}function y(B,W){var J=W.brush,re=J.filter,ne=J.svgBrush;ne._dragging||(E(B,W),C(B,W),W.brush.svgBrush.wasDragged=!1),ne._dragging=!1;var le=P.event;le.sourceEvent.stopPropagation();var $=ne.grabbingBar;if(ne.grabbingBar=!1,ne.grabLocation=void 0,W.parent.inBrushDrag=!1,c(),!ne.wasDragged){ne.wasDragged=void 0,ne.clickableOrdinalRange?J.filterSpecified&&W.multiselect?ne.extent.push(ne.clickableOrdinalRange):(ne.extent=[ne.clickableOrdinalRange],J.filterSpecified=!0):$?(ne.extent=ne.stayingIntervals,ne.extent.length===0&&D(J)):D(J),ne.brushCallback(W),d(B.parentNode),ne.brushEndCallback(J.filterSpecified?re.getConsolidated():[]);return}var Z=function(){re.set(re.getConsolidated())};if(W.ordinal){var ie=W.unitTickvals;ie[ie.length-1]ne.newExtent[0];ne.extent=ne.stayingIntervals.concat(X?[ne.newExtent]:[]),ne.extent.length||D(J),ne.brushCallback(W),X?d(B.parentNode,Z):(Z(),d(B.parentNode))}else Z();ne.brushEndCallback(J.filterSpecified?re.getConsolidated():[])}function E(B,W){var J=W.height-P.mouse(B)[1]-2*m.verticalPadding,re=x(W,J),ne="crosshair";re.clickableOrdinalRange?ne="pointer":re.region&&(ne=re.region+"-resize"),P.select(document.body).style("cursor",ne)}function A(B){B.on("mousemove",function(W){P.event.preventDefault(),W.parent.inBrushDrag||E(this,W)}).on("mouseleave",function(W){W.parent.inBrushDrag||c()}).call(P.behavior.drag().on("dragstart",function(W){w(this,W)}).on("drag",function(W){C(this,W)}).on("dragend",function(W){y(this,W)}))}function o(B,W){return B[0]-W[0]}function M(B,W,J){var re=J._context.staticPlot,ne=B.selectAll(".background").data(L);ne.enter().append("rect").classed("background",!0).call(u).call(l).style("pointer-events",re?"none":"auto").attr("transform",v(0,m.verticalPadding)),ne.call(A).attr("height",function(Z){return Z.height-m.verticalPadding});var le=B.selectAll(".highlight-shadow").data(L);le.enter().append("line").classed("highlight-shadow",!0).attr("x",-m.bar.width/2).attr("stroke-width",m.bar.width+m.bar.strokeWidth).attr("stroke",W).attr("opacity",m.bar.strokeOpacity).attr("stroke-linecap","butt"),le.attr("y1",function(Z){return Z.height}).call(i);var $=B.selectAll(".highlight").data(L);$.enter().append("line").classed("highlight",!0).attr("x",-m.bar.width/2).attr("stroke-width",m.bar.width-m.bar.strokeWidth).attr("stroke",m.bar.fillColor).attr("opacity",m.bar.fillOpacity).attr("stroke-linecap","butt"),$.attr("y1",function(Z){return Z.height}).call(i)}function b(B,W,J){var re=B.selectAll("."+m.cn.axisBrush).data(L,s);re.enter().append("g").classed(m.cn.axisBrush,!0),M(re,W,J)}function I(B){return B.svgBrush.extent.map(function(W){return W.slice()})}function D(B){B.filterSpecified=!1,B.svgBrush.extent=[[-1/0,1/0]]}function N(B){return function(J){var re=J.brush,ne=I(re),le=ne.slice();re.filter.set(le),B()}}function k(B){for(var W=B.slice(),J=[],re,ne=W.shift();ne;){for(re=ne.slice();(ne=W.shift())&&ne[0]<=re[1];)re[1]=Math.max(re[1],ne[1]);J.push(re)}return J.length===1&&J[0][0]>J[0][1]&&(J=[]),J}function O(){var B=[],W,J;return{set:function(re){B=re.map(function(ne){return ne.slice().sort(S)}).sort(o),B.length===1&&B[0][0]===-1/0&&B[0][1]===1/0&&(B=[[0,-1]]),W=k(B),J=B.reduce(function(ne,le){return[Math.min(ne[0],le[0]),Math.max(ne[1],le[1])]},[1/0,-1/0])},get:function(){return B.slice()},getConsolidated:function(){return W},getBounds:function(){return J}}}function F(B,W,J,re,ne,le){var $=O();return $.set(J),{filter:$,filterSpecified:W,svgBrush:{extent:[],brushStartCallback:re,brushCallback:N(ne),brushEndCallback:le}}}function z(B,W){if(Array.isArray(B[0])?(B=B.map(function(re){return re.sort(S)}),W.multiselect?B=k(B.sort(o)):B=[B[0]]):B=[B.sort(S)],W.tickvals){var J=W.tickvals.slice().sort(S);if(B=B.map(function(re){var ne=[n(0,J,re[0],[]),n(1,J,re[1],[])];if(ne[1]>ne[0])return ne}).filter(function(re){return re}),!B.length)return}return B.length>1?B:B[0]}G.exports={makeBrush:F,ensureAxisBrush:b,cleanRanges:z}},61664:function(G,H,e){G.exports={attributes:e(82296),supplyDefaults:e(60664),calc:e(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:e(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(G,H,e){var m=e(33428),P=e(84888)._M,s=e(24196),L=e(9616);H.name="parcoords",H.plot=function(S){var v=P(S.calcdata,"parcoords")[0];v.length&&s(S,v)},H.clean=function(S,v,p,r){var t=r._has&&r._has("parcoords"),a=v._has&&v._has("parcoords");t&&!a&&(r._paperdiv.selectAll(".parcoords").remove(),r._glimages.selectAll("*").remove())},H.toSVG=function(S){var v=S._fullLayout._glimages,p=m.select(S).selectAll(".svg-container"),r=p.filter(function(a,n){return n===p.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function t(){var a=this,n=a.toDataURL("image/png"),f=v.append("svg:image");f.attr({xmlns:L.svg,"xlink:href":n,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}r.each(t),window.setTimeout(function(){m.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(G,H,e){var m=e(3400).isArrayOrTypedArray,P=e(8932),s=e(71688).wrap;G.exports=function(v,p){var r,t;return P.hasColorscale(p,"line")&&m(p.line.color)?(r=p.line.color,t=P.extractOpts(p.line).colorscale,P.calc(v,p,{vals:r,containerStr:"line",cLetter:"c"})):(r=L(p._length),t=[[0,p.line.color],[1,p.line.color]]),s({lineColor:r,cscale:t})};function L(S){for(var v=new Array(S),p=0;pt&&(m.log("parcoords traces support up to "+t+" dimensions at the moment"),i.splice(t));var d=S(l,g,{name:"dimensions",layout:T,handleItemDefaults:f}),x=n(l,g,h,T,c);L(g,T,c),(!Array.isArray(d)||!d.length)&&(g.visible=!1),a(g,d,"values",x);var w=m.extendFlat({},T.font,{size:Math.round(T.font.size/1.2)});m.coerceFont(c,"labelfont",w),m.coerceFont(c,"tickfont",w,{autoShadowDflt:!0}),m.coerceFont(c,"rangefont",w),c("labelangle"),c("labelside"),c("unselected.line.color"),c("unselected.line.opacity")}},95724:function(G,H,e){var m=e(3400).isTypedArray;H.convertTypedArray=function(P){return m(P)?Array.prototype.slice.call(P):P},H.isOrdinal=function(P){return!!P.tickvals},H.isVisible=function(P){return P.visible||!("visible"in P)}},29928:function(G,H,e){var m=e(61664);m.plot=e(24196),G.exports=m},51352:function(G,H,e){var m=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`));var Te;ne.med!==S?Te=ne.med:ne.q1!==S?ne.q3!==S?Te=(ne.q1+ne.q3)/2:Te=ne.q1:ne.q3!==S?Te=ne.q3:Te=0,ne.med=Te,ne.q1=ne.q3=Te,ne.lf=ne.uf=Te,ne.mean=ne.sd=Te,ne.ln=ne.un=Te,ne.min=ne.max=Te}j=Math.min(j,ne.min),se=Math.max(se,ne.max),ne.pts2=le.filter(Q),A.push(ne)}}w._extremes[I._id]=P.findExtremes(I,[j,se],{padded:!0})}else{var Re=I.makeCalcdata(w,D),Se=r(J,re),Ie=J.length,Me=t(Ie);for(M=0;M=0&&Ve0){if(ne={},ne.pos=ne[k]=J[M],le=ne.pts=Me[M].sort(u),$=ne[D]=le.map(l),Z=$.length,ne.min=$[0],ne.max=$[Z-1],ne.mean=L.mean($,Z),ne.sd=L.stdev($,Z,ne.mean)*w.sdmultiple,ne.med=L.interp($,.5),Z%2&&($e||ht)){var vt,pt;$e?(vt=$.slice(0,Z/2),pt=$.slice(Z/2+1)):ht&&(vt=$.slice(0,Z/2+1),pt=$.slice(Z/2)),ne.q1=L.interp(vt,.5),ne.q3=L.interp(pt,.5)}else ne.q1=L.interp($,.25),ne.q3=L.interp($,.75);ne.lf=g(ne,$,Z),ne.uf=h(ne,$,Z),ne.lo=T(ne),ne.uo=c(ne);var wt=i(ne,Z);ne.ln=ne.med-wt,ne.un=ne.med+wt,et=Math.min(et,ne.ln),ot=Math.max(ot,ne.un),ne.pts2=le.filter(Q),A.push(ne)}w.notched&&L.isTypedArray(Re)&&(Re=Array.from(Re)),w._extremes[I._id]=P.findExtremes(I,w.notched?Re.concat([et,ot]):Re,{padded:!0})}return f(A,w),A.length>0?(A[0].t={num:C[o],dPos:re,posLetter:k,valLetter:D,labels:{med:v(x,"median:"),min:v(x,"min:"),q1:v(x,"q1:"),q3:v(x,"q3:"),max:v(x,"max:"),mean:w.boxmean==="sd"||w.sizemode==="sd"?v(x,"mean ± σ:").replace("σ",w.sdmultiple===1?"σ":w.sdmultiple+"σ"):v(x,"mean:"),lf:v(x,"lower fence:"),uf:v(x,"upper fence:")}},C[o]++,A):[{t:{empty:!0}}]};function p(d,x,w,C){var y=x in d,E=x+"0"in d,A="d"+x in d;if(y||E&&A){var o=w.makeCalcdata(d,x),M=s(d,w,x,o).vals;return[M,o]}var b;E?b=d[x+"0"]:"name"in d&&(w.type==="category"||m(d.name)&&["linear","log"].indexOf(w.type)!==-1||L.isDateTime(d.name)&&w.type==="date")?b=d.name:b=C;for(var I=w.type==="multicategory"?w.r2c_just_indices(b):w.d2c(b,0,d[x+"calendar"]),D=d._length,N=new Array(D),k=0;k1,E=1-f[p+"gap"],A=1-f[p+"groupgap"];for(g=0;g0;if(I==="positive"?(ne=D*(b?1:.5),Z=$,le=Z=k):I==="negative"?(ne=Z=k,le=D*(b?1:.5),ie=$):(ne=le=D,Z=ie=$),se){var te=o.pointpos,fe=o.jitter,ge=o.marker.size/2,be=0;te+fe>=0&&(be=$*(te+fe),be>ne?(j=!0,oe=ge,X=be):be>Z&&(oe=ge,X=ne)),be<=ne&&(X=ne);var xe=0;te-fe<=0&&(xe=-$*(te-fe),xe>le?(j=!0,Y=ge,Q=xe):xe>ie&&(Y=ge,Q=le)),xe<=le&&(Q=le)}else X=ne,Q=le;var _e=new Array(T.length);for(h=0;h0?(I="v",E>0?D=Math.min(o,A):D=Math.min(A)):E>0?(I="h",D=Math.min(o)):D=0;if(!D){u.visible=!1;return}u._length=D;var z=l("orientation",I);u._hasPreCompStats?z==="v"&&E===0?(l("x0",0),l("dx",1)):z==="h"&&y===0&&(l("y0",0),l("dy",1)):z==="v"&&E===0?l("x0"):z==="h"&&y===0&&l("y0");var B=P.getComponentMethod("calendars","handleTraceDefaults");B(f,u,["x","y"],g)}function a(f,u,l,g){var h=g.prefix,T=m.coerce2(f,u,p,"marker.outliercolor"),c=l("marker.line.outliercolor"),i="outliers";u._hasPreCompStats?i="all":(T||c)&&(i="suspectedoutliers");var d=l(h+"points",i);d?(l("jitter",d==="all"?.3:0),l("pointpos",d==="all"?-1.5:0),l("marker.symbol"),l("marker.opacity"),l("marker.size"),l("marker.angle"),l("marker.color",u.line.color),l("marker.line.color"),l("marker.line.width"),d==="suspectedoutliers"&&(l("marker.line.outliercolor",u.marker.color),l("marker.line.outlierwidth")),l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size"),l("text"),l("hovertext")):delete u.marker;var x=l("hoveron");(x==="all"||x.indexOf("points")!==-1)&&l("hovertemplate"),m.coerceSelectionMarkerOpacity(u,l)}function n(f,u){var l,g;function h(i){return m.coerce(g._input,g,p,i)}for(var T=0;Tw.lo&&(z.so=!0)}return y});x.enter().append("path").classed("point",!0),x.exit().remove(),x.call(s.translatePoints,l,g)}function t(a,n,f,u){var l=n.val,g=n.pos,h=!!g.rangebreaks,T=u.bPos,c=u.bPosPxOffset||0,i=f.boxmean||(f.meanline||{}).visible,d,x;Array.isArray(u.bdPos)?(d=u.bdPos[0],x=u.bdPos[1]):(d=u.bdPos,x=u.bdPos);var w=a.selectAll("path.mean").data(f.type==="box"&&f.boxmean||f.type==="violin"&&f.box.visible&&f.meanline.visible?P.identity:[]);w.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),w.exit().remove(),w.each(function(C){var y=g.c2l(C.pos+T,!0),E=g.l2p(y-d)+c,A=g.l2p(y+x)+c,o=h?(E+A)/2:g.l2p(y)+c,M=l.c2p(C.mean,!0),b=l.c2p(C.mean-C.sd,!0),I=l.c2p(C.mean+C.sd,!0);f.orientation==="h"?m.select(this).attr("d","M"+M+","+E+"V"+A+(i==="sd"?"m0,0L"+b+","+o+"L"+M+","+E+"L"+I+","+o+"Z":"")):m.select(this).attr("d","M"+E+","+M+"H"+A+(i==="sd"?"m0,0L"+o+","+b+"L"+E+","+M+"L"+o+","+I+"Z":""))})}G.exports={plot:v,plotBoxAndWhiskers:p,plotPoints:r,plotBoxMean:t}},8264:function(G){G.exports=function(e,m){var P=e.cd,s=e.xaxis,L=e.yaxis,S=[],v,p;if(m===!1)for(v=0;v=10)return null;for(var S=1/0,v=-1/0,p=s.length,r=0;r0?Math.floor:Math.ceil,O=D>0?Math.ceil:Math.floor,F=D>0?Math.min:Math.max,z=D>0?Math.max:Math.min,B=k(b+N),W=O(I-N);f=M(b);var J=[[f]];for(v=B;v*D=0;L--)S[a-L]=e[n][L],v[a-L]=m[n][L];for(p.push({x:S,y:v,bicubic:r}),L=n,S=[],v=[];L>=0;L--)S[n-L]=e[L][0],v[n-L]=m[L][0];return p.push({x:S,y:v,bicubic:t}),p}},19216:function(G,H,e){var m=e(54460),P=e(92880).extendFlat;G.exports=function(L,S,v){var p,r,t,a,n,f,u,l,g,h,T,c,i,d,x=L["_"+S],w=L[S+"axis"],C=w._gridlines=[],y=w._minorgridlines=[],E=w._boundarylines=[],A=L["_"+v],o=L[v+"axis"];w.tickmode==="array"&&(w.tickvals=x.slice());var M=L._xctrl,b=L._yctrl,I=M[0].length,D=M.length,N=L._a.length,k=L._b.length;m.prepTicks(w),w.tickmode==="array"&&delete w.tickvals;var O=w.smoothing?3:1;function F(B){var W,J,re,ne,le,$,Z,ie,X,Q,oe,Y,j=[],se=[],te={};if(S==="b")for(J=L.b2j(B),re=Math.floor(Math.max(0,Math.min(k-2,J))),ne=J-re,te.length=k,te.crossLength=N,te.xy=function(fe){return L.evalxy([],fe,J)},te.dxy=function(fe,ge){return L.dxydi([],fe,re,ge,ne)},W=0;W0&&(X=L.dxydi([],W-1,re,0,ne),j.push(le[0]+X[0]/3),se.push(le[1]+X[1]/3),Q=L.dxydi([],W-1,re,1,ne),j.push(ie[0]-Q[0]/3),se.push(ie[1]-Q[1]/3)),j.push(ie[0]),se.push(ie[1]),le=ie;else for(W=L.a2i(B),$=Math.floor(Math.max(0,Math.min(N-2,W))),Z=W-$,te.length=N,te.crossLength=k,te.xy=function(fe){return L.evalxy([],W,fe)},te.dxy=function(fe,ge){return L.dxydj([],$,fe,Z,ge)},J=0;J0&&(oe=L.dxydj([],$,J-1,Z,0),j.push(le[0]+oe[0]/3),se.push(le[1]+oe[1]/3),Y=L.dxydj([],$,J-1,Z,1),j.push(ie[0]-Y[0]/3),se.push(ie[1]-Y[1]/3)),j.push(ie[0]),se.push(ie[1]),le=ie;return te.axisLetter=S,te.axis=w,te.crossAxis=o,te.value=B,te.constvar=v,te.index=l,te.x=j,te.y=se,te.smoothing=o.smoothing,te}function z(B){var W,J,re,ne,le,$=[],Z=[],ie={};if(ie.length=x.length,ie.crossLength=A.length,S==="b")for(re=Math.max(0,Math.min(k-2,B)),le=Math.min(1,Math.max(0,B-re)),ie.xy=function(X){return L.evalxy([],X,B)},ie.dxy=function(X,Q){return L.dxydi([],X,re,Q,le)},W=0;Wx.length-1)&&C.push(P(z(r),{color:w.gridcolor,width:w.gridwidth,dash:w.griddash}));for(l=f;lx.length-1)&&!(T<0||T>x.length-1))for(c=x[t],i=x[T],p=0;px[x.length-1])&&y.push(P(F(h),{color:w.minorgridcolor,width:w.minorgridwidth,dash:w.minorgriddash})));w.startline&&E.push(P(z(0),{color:w.startlinecolor,width:w.startlinewidth})),w.endline&&E.push(P(z(x.length-1),{color:w.endlinecolor,width:w.endlinewidth}))}else{for(a=5e-15,n=[Math.floor((x[x.length-1]-w.tick0)/w.dtick*(1+a)),Math.ceil((x[0]-w.tick0)/w.dtick/(1+a))].sort(function(B,W){return B-W}),f=n[0],u=n[1],l=f;l<=u;l++)g=w.tick0+w.dtick*l,C.push(P(F(g),{color:w.gridcolor,width:w.gridwidth,dash:w.griddash}));for(l=f-1;lx[x.length-1])&&y.push(P(F(h),{color:w.minorgridcolor,width:w.minorgridwidth,dash:w.minorgriddash}));w.startline&&E.push(P(F(x[0]),{color:w.startlinecolor,width:w.startlinewidth})),w.endline&&E.push(P(F(x[x.length-1]),{color:w.endlinecolor,width:w.endlinewidth}))}}},14724:function(G,H,e){var m=e(54460),P=e(92880).extendFlat;G.exports=function(L,S){var v,p,r,t,a,n=S._labels=[],f=S._gridlines;for(v=0;vL.length&&(s=s.slice(0,L.length)):s=[],v=0;v90&&(u-=180,r=-r),{angle:u,flip:r,p:e.c2p(s,m,P),offsetMultplier:t}}},164:function(G,H,e){var m=e(33428),P=e(43616),s=e(87072),L=e(53416),S=e(15584),v=e(72736),p=e(3400),r=p.strRotate,t=p.strTranslate,a=e(84284);G.exports=function(i,d,x,w){var C=i._context.staticPlot,y=d.xaxis,E=d.yaxis,A=i._fullLayout,o=A._clips;p.makeTraceGroups(w,x,"trace").each(function(M){var b=m.select(this),I=M[0],D=I.trace,N=D.aaxis,k=D.baxis,O=p.ensureSingle(b,"g","minorlayer"),F=p.ensureSingle(b,"g","majorlayer"),z=p.ensureSingle(b,"g","boundarylayer"),B=p.ensureSingle(b,"g","labellayer");b.style("opacity",D.opacity),f(y,E,F,N,"a",N._gridlines,!0),f(y,E,F,k,"b",k._gridlines,!0),f(y,E,O,N,"a",N._minorgridlines,!0),f(y,E,O,k,"b",k._minorgridlines,!0),f(y,E,z,N,"a-boundary",N._boundarylines,C),f(y,E,z,k,"b-boundary",k._boundarylines,C);var W=u(i,y,E,D,I,B,N._labels,"a-label"),J=u(i,y,E,D,I,B,k._labels,"b-label");l(i,B,D,I,y,E,W,J),n(D,I,o,y,E)})};function n(c,i,d,x,w){var C,y,E,A,o=d.select("#"+c._clipPathId);o.size()||(o=d.append("clipPath").classed("carpetclip",!0));var M=p.ensureSingle(o,"path","carpetboundary"),b=i.clipsegments,I=[];for(A=0;A0?"start":"end","data-notex":1}).call(P.font,b.font).text(b.text).call(v.convertToTspans,c),F=P.bBox(this);O.attr("transform",t(D.p[0],D.p[1])+r(D.angle)+t(b.axis.labelpadding*k,F.height*.3)),o=Math.max(o,F.width+b.axis.labelpadding)}),A.exit().remove(),M.maxExtent=o,M}function l(c,i,d,x,w,C,y,E){var A,o,M,b,I=p.aggNums(Math.min,null,d.a),D=p.aggNums(Math.max,null,d.a),N=p.aggNums(Math.min,null,d.b),k=p.aggNums(Math.max,null,d.b);A=.5*(I+D),o=N,M=d.ab2xy(A,o,!0),b=d.dxyda_rough(A,o),y.angle===void 0&&p.extendFlat(y,S(d,w,C,M,d.dxydb_rough(A,o))),T(c,i,d,x,M,b,d.aaxis,w,C,y,"a-title"),A=I,o=.5*(N+k),M=d.ab2xy(A,o,!0),b=d.dxydb_rough(A,o),E.angle===void 0&&p.extendFlat(E,S(d,w,C,M,d.dxyda_rough(A,o))),T(c,i,d,x,M,b,d.baxis,w,C,E,"b-title")}var g=a.LINE_SPACING,h=(1-a.MID_SHIFT)/g+1;function T(c,i,d,x,w,C,y,E,A,o,M){var b=[];y.title.text&&b.push(y.title.text);var I=i.selectAll("text."+M).data(b),D=o.maxExtent;I.enter().append("text").classed(M,!0),I.each(function(){var N=S(d,E,A,w,C);["start","both"].indexOf(y.showticklabels)===-1&&(D=0);var k=y.title.font.size;D+=k+y.title.offset;var O=o.angle+(o.flip<0?180:0),F=(O-N.angle+450)%360,z=F>90&&F<270,B=m.select(this);B.text(y.title.text).call(v.convertToTspans,c),z&&(D=(-v.lineCount(B)+h)*g*k-D),B.attr("transform",t(N.p[0],N.p[1])+r(N.angle)+t(0,D)).attr("text-anchor","middle").call(P.font,y.title.font)}),I.exit().remove()}},81e3:function(G,H,e){var m=e(24588),P=e(14952).findBin,s=e(30180),L=e(29056),S=e(26435),v=e(24464);G.exports=function(r){var t=r._a,a=r._b,n=t.length,f=a.length,u=r.aaxis,l=r.baxis,g=t[0],h=t[n-1],T=a[0],c=a[f-1],i=t[t.length-1]-t[0],d=a[a.length-1]-a[0],x=i*m.RELATIVE_CULL_TOLERANCE,w=d*m.RELATIVE_CULL_TOLERANCE;g-=x,h+=x,T-=w,c+=w,r.isVisible=function(C,y){return C>g&&CT&&yh||yc},r.setScale=function(){var C=r._x,y=r._y,E=s(r._xctrl,r._yctrl,C,y,u.smoothing,l.smoothing);r._xctrl=E[0],r._yctrl=E[1],r.evalxy=L([r._xctrl,r._yctrl],n,f,u.smoothing,l.smoothing),r.dxydi=S([r._xctrl,r._yctrl],u.smoothing,l.smoothing),r.dxydj=v([r._xctrl,r._yctrl],u.smoothing,l.smoothing)},r.i2a=function(C){var y=Math.max(0,Math.floor(C[0]),n-2),E=C[0]-y;return(1-E)*t[y]+E*t[y+1]},r.j2b=function(C){var y=Math.max(0,Math.floor(C[1]),n-2),E=C[1]-y;return(1-E)*a[y]+E*a[y+1]},r.ij2ab=function(C){return[r.i2a(C[0]),r.j2b(C[1])]},r.a2i=function(C){var y=Math.max(0,Math.min(P(C,t),n-2)),E=t[y],A=t[y+1];return Math.max(0,Math.min(n-1,y+(C-E)/(A-E)))},r.b2j=function(C){var y=Math.max(0,Math.min(P(C,a),f-2)),E=a[y],A=a[y+1];return Math.max(0,Math.min(f-1,y+(C-E)/(A-E)))},r.ab2ij=function(C){return[r.a2i(C[0]),r.b2j(C[1])]},r.i2c=function(C,y){return r.evalxy([],C,y)},r.ab2xy=function(C,y,E){if(!E&&(Ct[n-1]|ya[f-1]))return[!1,!1];var A=r.a2i(C),o=r.b2j(y),M=r.evalxy([],A,o);if(E){var b=0,I=0,D=[],N,k,O,F;Ct[n-1]?(N=n-2,k=1,b=(C-t[n-1])/(t[n-1]-t[n-2])):(N=Math.max(0,Math.min(n-2,Math.floor(A))),k=A-N),ya[f-1]?(O=f-2,F=1,I=(y-a[f-1])/(a[f-1]-a[f-2])):(O=Math.max(0,Math.min(f-2,Math.floor(o))),F=o-O),b&&(r.dxydi(D,N,O,k,F),M[0]+=D[0]*b,M[1]+=D[1]*b),I&&(r.dxydj(D,N,O,k,F),M[0]+=D[0]*I,M[1]+=D[1]*I)}return M},r.c2p=function(C,y,E){return[y.c2p(C[0]),E.c2p(C[1])]},r.p2x=function(C,y,E){return[y.p2c(C[0]),E.p2c(C[1])]},r.dadi=function(C){var y=Math.max(0,Math.min(t.length-2,C));return t[y+1]-t[y]},r.dbdj=function(C){var y=Math.max(0,Math.min(a.length-2,C));return a[y+1]-a[y]},r.dxyda=function(C,y,E,A){var o=r.dxydi(null,C,y,E,A),M=r.dadi(C,E);return[o[0]/M,o[1]/M]},r.dxydb=function(C,y,E,A){var o=r.dxydj(null,C,y,E,A),M=r.dbdj(y,A);return[o[0]/M,o[1]/M]},r.dxyda_rough=function(C,y,E){var A=i*(E||.1),o=r.ab2xy(C+A,y,!0),M=r.ab2xy(C-A,y,!0);return[(o[0]-M[0])*.5/A,(o[1]-M[1])*.5/A]},r.dxydb_rough=function(C,y,E){var A=d*(E||.1),o=r.ab2xy(C,y+A,!0),M=r.ab2xy(C,y-A,!0);return[(o[0]-M[0])*.5/A,(o[1]-M[1])*.5/A]},r.dpdx=function(C){return C._m},r.dpdy=function(C){return C._m}}},51512:function(G,H,e){var m=e(3400);G.exports=function(s,L,S){var v,p,r,t=[],a=[],n=s[0].length,f=s.length;function u(J,re){var ne=0,le,$=0;return J>0&&(le=s[re][J-1])!==void 0&&($++,ne+=le),J0&&(le=s[re-1][J])!==void 0&&($++,ne+=le),re0&&p0&&vA);return m.log("Smoother converged to",o,"after",b,"iterations"),s}},86411:function(G,H,e){var m=e(3400).isArray1D;G.exports=function(s,L,S){var v=S("x"),p=v&&v.length,r=S("y"),t=r&&r.length;if(!p&&!t)return!1;if(L._cheater=!v,(!p||m(v))&&(!t||m(r))){var a=p?v.length:1/0;t&&(a=Math.min(a,r.length)),L.a&&L.a.length&&(a=Math.min(a,L.a.length)),L.b&&L.b.length&&(a=Math.min(a,L.b.length)),L._length=a}else L._length=null;return!0}},83372:function(G,H,e){var m=e(21776).Ks,P=e(6096),s=e(49084),L=e(45464),S=e(22548).defaultLine,v=e(92880).extendFlat,p=P.marker.line;G.exports=v({locations:{valType:"data_array",editType:"calc"},locationmode:P.locationmode,z:{valType:"data_array",editType:"calc"},geojson:v({},P.geojson,{}),featureidkey:P.featureidkey,text:v({},P.text,{}),hovertext:v({},P.hovertext,{}),marker:{line:{color:v({},p.color,{dflt:S}),width:v({},p.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:P.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:P.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:v({},L.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:m(),showlegend:v({},L.showlegend,{dflt:!1})},s("",{cLetter:"z",editTypeOverride:"calc"}))},7924:function(G,H,e){var m=e(38248),P=e(39032).BADNUM,s=e(47128),L=e(20148),S=e(4500);function v(p){return p&&typeof p=="string"}G.exports=function(r,t){var a=t._length,n=new Array(a),f;t.geojson?f=function(T){return v(T)||m(T)}:f=v;for(var u=0;u")}}},54272:function(G,H,e){G.exports={attributes:e(83372),supplyDefaults:e(30972),colorbar:e(96288),calc:e(7924),calcGeoJSON:e(88364).calcGeoJSON,plot:e(88364).plot,style:e(7947).style,styleOnSelect:e(7947).styleOnSelect,hoverPoints:e(69224),eventData:e(52428),selectPoints:e(17328),moduleType:"trace",name:"choropleth",basePlotModule:e(10816),categories:["geo","noOpacity","showLegend"],meta:{}}},88364:function(G,H,e){var m=e(33428),P=e(3400),s=e(27144),L=e(59972).getTopojsonFeatures,S=e(19280).findExtremes,v=e(7947).style;function p(t,a,n){var f=a.layers.backplot.select(".choroplethlayer");P.makeTraceGroups(f,n,"trace choropleth").each(function(u){var l=m.select(this),g=l.selectAll("path.choroplethlocation").data(P.identity);g.enter().append("path").classed("choroplethlocation",!0),g.exit().remove(),v(t,u)})}function r(t,a){for(var n=t[0].trace,f=a[n.geo],u=f._subplot,l=n.locationmode,g=n._length,h=l==="geojson-id"?s.extractTraceFeature(t):L(n,u.topojson),T=[],c=[],i=0;i=0;L--){var S=s[L].id;if(typeof S=="string"&&S.indexOf("water")===0){for(var v=L+1;v=0;r--)v.removeLayer(p[r][1])},S.dispose=function(){var v=this.subplot.map;this._removeLayers(),v.removeSource(this.sourceId)},G.exports=function(p,r){var t=r[0].trace,a=new L(p,t.uid),n=a.sourceId,f=m(r),u=a.below=p.belowLookup["trace-"+t.uid];return p.map.addSource(n,{type:"geojson",data:f.geojson}),a._addLayers(f,u),r[0].trace._glTrace=a,a}},86040:function(G,H,e){var m=e(49084),P=e(29736).axisHoverFormat,s=e(21776).Ks,L=e(52948),S=e(45464),v=e(92880).extendFlat,p={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:s({editType:"calc"},{keys:["norm"]}),uhoverformat:P("u",1),vhoverformat:P("v",1),whoverformat:P("w",1),xhoverformat:P("x"),yhoverformat:P("y"),zhoverformat:P("z"),showlegend:v({},S.showlegend,{dflt:!1})};v(p,m("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var r=["opacity","lightposition","lighting"];r.forEach(function(t){p[t]=L[t]}),p.hoverinfo=v({},S.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),p.transforms=void 0,G.exports=p},83344:function(G,H,e){var m=e(47128);G.exports=function(s,L){for(var S=L.u,v=L.v,p=L.w,r=Math.min(L.x.length,L.y.length,L.z.length,S.length,v.length,p.length),t=-1/0,a=1/0,n=0;nS.level||S.starts.length&&L===S.level)}break;case"constraint":if(m.prefixBoundary=!1,m.edgepaths.length)return;var v=m.x.length,p=m.y.length,r=-1/0,t=1/0;for(s=0;s":a>r&&(m.prefixBoundary=!0);break;case"<":(ar||m.starts.length&&f===t)&&(m.prefixBoundary=!0);break;case"][":n=Math.min(a[0],a[1]),f=Math.max(a[0],a[1]),nr&&(m.prefixBoundary=!0);break}break}}},55296:function(G,H,e){var m=e(8932),P=e(41076),s=e(46960);function L(S,v,p){var r=v.contours,t=v.line,a=r.size||1,n=r.coloring,f=P(v,{isColorbar:!0});if(n==="heatmap"){var u=m.extractOpts(v);p._fillgradient=u.reversescale?m.flipScale(u.colorscale):u.colorscale,p._zrange=[u.min,u.max]}else n==="fill"&&(p._fillcolor=f);p._line={color:n==="lines"?f:t.color,width:r.showlines!==!1?t.width:0,dash:t.dash},p._levels={start:r.start,end:s(r),size:a}}G.exports={min:"zmin",max:"zmax",calc:L}},93252:function(G){G.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},95536:function(G,H,e){var m=e(38248),P=e(17428),s=e(76308),L=s.addOpacity,S=s.opacity,v=e(69104),p=e(3400).isArrayOrTypedArray,r=v.CONSTRAINT_REDUCTION,t=v.COMPARISON_OPS2;G.exports=function(f,u,l,g,h,T){var c=u.contours,i,d,x,w=l("contours.operation");if(c._operation=r[w],a(l,c),w==="="?i=c.showlines=!0:(i=l("contours.showlines"),x=l("fillcolor",L((f.line||{}).color||h,.5))),i){var C=x&&S(x)?L(u.fillcolor,1):h;d=l("line.color",C),l("line.width",2),l("line.dash")}l("line.smoothing"),P(l,g,d,T)};function a(n,f){var u;t.indexOf(f.operation)===-1?(n("contours.value",[0,1]),p(f.value)?f.value.length>2?f.value=f.value.slice(2):f.length===0?f.value=[0,1]:f.length<2?(u=parseFloat(f.value[0]),f.value=[u,u+1]):f.value=[parseFloat(f.value[0]),parseFloat(f.value[1])]:m(f.value)&&(u=parseFloat(f.value),f.value=[u,u+1])):(n("contours.value",0),m(f.value)||(p(f.value)?f.value=parseFloat(f.value[0]):f.value=0))}},3212:function(G,H,e){var m=e(69104),P=e(38248);G.exports={"[]":L("[]"),"][":L("]["),">":S(">"),"<":S("<"),"=":S("=")};function s(v,p){var r=Array.isArray(p),t;function a(n){return P(n)?+n:null}return m.COMPARISON_OPS2.indexOf(v)!==-1?t=a(r?p[0]:p):m.INTERVAL_OPS.indexOf(v)!==-1?t=r?[a(p[0]),a(p[1])]:[a(p),a(p)]:m.SET_OPS.indexOf(v)!==-1&&(t=r?p.map(a):[a(p)]),t}function L(v){return function(p){p=s(v,p);var r=Math.min(p[0],p[1]),t=Math.max(p[0],p[1]);return{start:r,end:t,size:t-r}}}function S(v){return function(p){return p=s(v,p),{start:p,end:1/0,size:1/0}}}},84952:function(G){G.exports=function(e,m,P,s){var L=s("contours.start"),S=s("contours.end"),v=L===!1||S===!1,p=P("contours.size"),r;v?r=m.autocontour=!0:r=P("autocontour",!1),(r||!p)&&P("ncontours")}},82172:function(G,H,e){var m=e(3400);G.exports=function(s,L){var S,v,p,r=function(n){return n.reverse()},t=function(n){return n};switch(L){case"=":case"<":return s;case">":for(s.length!==1&&m.warn("Contour data invalid for the specified inequality operation."),v=s[0],S=0;S1e3){m.warn("Too many contours, clipping at 1000",S);break}return a}},46960:function(G){G.exports=function(e){return e.end+e.size/1e6}},88748:function(G,H,e){var m=e(3400),P=e(93252);G.exports=function(t,a,n){var f,u,l,g,h;for(a=a||.01,n=n||.01,l=0;l20?(l=P.CHOOSESADDLE[l][(g[0]||g[1])<0?0:1],r.crossings[u]=P.SADDLEREMAINDER[l]):delete r.crossings[u],g=P.NEWDELTA[l],!g){m.log("Found bad marching index:",l,t,r.level);break}h.push(p(r,t,g)),t[0]+=g[0],t[1]+=g[1],u=t.join(","),s(h[h.length-1],h[h.length-2],n,f)&&h.pop();var w=g[0]&&(t[0]<0||t[0]>c-2)||g[1]&&(t[1]<0||t[1]>T-2),C=t[0]===i[0]&&t[1]===i[1]&&g[0]===d[0]&&g[1]===d[1];if(C||a&&w)break;l=r.crossings[u]}x===1e4&&m.log("Infinite loop in contour?");var y=s(h[0],h[h.length-1],n,f),E=0,A=.2*r.smoothing,o=[],M=0,b,I,D,N,k,O,F,z,B,W,J;for(x=1;x=M;x--)if(b=o[x],b=M&&b+o[I]z&&B--,r.edgepaths[B]=J.concat(h,W));break}$||(r.edgepaths[z]=h.concat(W))}for(z=0;z20&&t?r===208||r===1114?n=a[0]===0?1:-1:f=a[1]===0?1:-1:P.BOTTOMSTART.indexOf(r)!==-1?f=1:P.LEFTSTART.indexOf(r)!==-1?n=1:P.TOPSTART.indexOf(r)!==-1?f=-1:n=-1,[n,f]}function p(r,t,a){var n=t[0]+Math.max(a[0],0),f=t[1]+Math.max(a[1],0),u=r.z[f][n],l=r.xaxis,g=r.yaxis;if(a[1]){var h=(r.level-u)/(r.z[f][n+1]-u),T=(h!==1?(1-h)*l.c2l(r.x[n]):0)+(h!==0?h*l.c2l(r.x[n+1]):0);return[l.c2p(l.l2c(T),!0),g.c2p(r.y[f],!0),n+h,f]}else{var c=(r.level-u)/(r.z[f+1][n]-u),i=(c!==1?(1-c)*g.c2l(r.y[f]):0)+(c!==0?c*g.c2l(r.y[f+1]):0);return[l.c2p(r.x[n],!0),g.c2p(g.l2c(i),!0),n,f+c]}}},38200:function(G,H,e){var m=e(76308),P=e(55512);G.exports=function(L,S,v,p,r){r||(r={}),r.isContour=!0;var t=P(L,S,v,p,r);return t&&t.forEach(function(a){var n=a.trace;n.contours.type==="constraint"&&(n.fillcolor&&m.opacity(n.fillcolor)?a.color=m.addOpacity(n.fillcolor,1):n.contours.showlines&&m.opacity(n.line.color)&&(a.color=m.addOpacity(n.line.color,1)))}),t}},66240:function(G,H,e){G.exports={attributes:e(67104),supplyDefaults:e(57004),calc:e(20688),plot:e(23676).plot,style:e(52440),colorbar:e(55296),hoverPoints:e(38200),moduleType:"trace",name:"contour",basePlotModule:e(57952),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},17428:function(G,H,e){var m=e(3400);G.exports=function(s,L,S,v){v||(v={});var p=s("contours.showlabels");if(p){var r=L.font;m.coerceFont(s,"contours.labelfont",r,{overrideDflt:{color:S}}),s("contours.labelformat")}v.hasHover!==!1&&s("zhoverformat")}},41076:function(G,H,e){var m=e(33428),P=e(8932),s=e(46960);G.exports=function(S){var v=S.contours,p=v.start,r=s(v),t=v.size||1,a=Math.floor((r-p)/t)+1,n=v.coloring==="lines"?0:1,f=P.extractOpts(S);isFinite(t)||(t=1,a=1);var u=f.reversescale?P.flipScale(f.colorscale):f.colorscale,l=u.length,g=new Array(l),h=new Array(l),T,c,i=f.min,d=f.max;if(v.coloring==="heatmap"){for(c=0;c=d)&&(p<=i&&(p=i),r>=d&&(r=d),a=Math.floor((r-p)/t)+1,n=0),c=0;ci&&(g.unshift(i),h.unshift(h[0])),g[g.length-1]s?0:1)+(L[0][1]>s?0:2)+(L[1][1]>s?0:4)+(L[1][0]>s?0:8);if(S===5||S===10){var v=(L[0][0]+L[0][1]+L[1][0]+L[1][1])/4;return s>v?S===5?713:1114:S===5?104:208}return S===15?0:S}},23676:function(G,H,e){var m=e(33428),P=e(3400),s=e(43616),L=e(8932),S=e(72736),v=e(54460),p=e(78344),r=e(41420),t=e(72424),a=e(88748),n=e(61512),f=e(82172),u=e(56008),l=e(93252),g=l.LABELOPTIMIZER;H.plot=function(y,E,A,o){var M=E.xaxis,b=E.yaxis;P.makeTraceGroups(o,A,"contour").each(function(I){var D=m.select(this),N=I[0],k=N.trace,O=N.x,F=N.y,z=k.contours,B=n(z,E,N),W=P.ensureSingle(D,"g","heatmapcoloring"),J=[];z.coloring==="heatmap"&&(J=[I]),r(y,E,J,W),t(B),a(B);var re=M.c2p(O[0],!0),ne=M.c2p(O[O.length-1],!0),le=b.c2p(F[0],!0),$=b.c2p(F[F.length-1],!0),Z=[[re,$],[ne,$],[ne,le],[re,le]],ie=B;z.type==="constraint"&&(ie=f(B,z._operation)),h(D,Z,z),T(D,ie,Z,z),i(D,B,y,N,z),x(D,E,y,N,Z)})};function h(C,y,E){var A=P.ensureSingle(C,"g","contourbg"),o=A.selectAll("path").data(E.coloring==="fill"?[0]:[]);o.enter().append("path"),o.exit().remove(),o.attr("d","M"+y.join("L")+"Z").style("stroke","none")}function T(C,y,E,A){var o=A.coloring==="fill"||A.type==="constraint"&&A._operation!=="=",M="M"+E.join("L")+"Z";o&&u(y,A);var b=P.ensureSingle(C,"g","contourfill"),I=b.selectAll("path").data(o?y:[]);I.enter().append("path"),I.exit().remove(),I.each(function(D){var N=(D.prefixBoundary?M:"")+c(D,E);N?m.select(this).attr("d",N).style("stroke","none"):m.select(this).remove()})}function c(C,y){var E="",A=0,o=C.edgepaths.map(function(re,ne){return ne}),M=!0,b,I,D,N,k,O;function F(re){return Math.abs(re[1]-y[0][1])<.01}function z(re){return Math.abs(re[1]-y[2][1])<.01}function B(re){return Math.abs(re[0]-y[0][0])<.01}function W(re){return Math.abs(re[0]-y[2][0])<.01}for(;o.length;){for(O=s.smoothopen(C.edgepaths[A],C.smoothing),E+=M?O:O.replace(/^M/,"L"),o.splice(o.indexOf(A),1),b=C.edgepaths[A][C.edgepaths[A].length-1],N=-1,D=0;D<4;D++){if(!b){P.log("Missing end?",A,C);break}for(F(b)&&!W(b)?I=y[1]:B(b)?I=y[0]:z(b)?I=y[3]:W(b)&&(I=y[2]),k=0;k=0&&(I=J,N=k):Math.abs(b[1]-I[1])<.01?Math.abs(b[1]-J[1])<.01&&(J[0]-b[0])*(I[0]-J[0])>=0&&(I=J,N=k):P.log("endpt to newendpt is not vert. or horz.",b,I,J)}if(b=I,N>=0)break;E+="L"+I}if(N===C.edgepaths.length){P.log("unclosed perimeter path");break}A=N,M=o.indexOf(A)===-1,M&&(A=o[0],E+="Z")}for(A=0;Ag.MAXCOST*2)break;F&&(I/=2),b=N-I/2,D=b+I*1.5}if(O<=g.MAXCOST)return k};function d(C,y,E,A){var o=y.width/2,M=y.height/2,b=C.x,I=C.y,D=C.theta,N=Math.cos(D)*o,k=Math.sin(D)*o,O=(b>A.center?A.right-b:b-A.left)/(N+Math.abs(Math.sin(D)*M)),F=(I>A.middle?A.bottom-I:I-A.top)/(Math.abs(k)+Math.cos(D)*M);if(O<1||F<1)return 1/0;var z=g.EDGECOST*(1/(O-1)+1/(F-1));z+=g.ANGLECOST*D*D;for(var B=b-N,W=I-k,J=b+N,re=I+k,ne=0;nep.end&&(p.start=p.end=(p.start+p.end)/2),S._input.contours||(S._input.contours={}),P.extendFlat(S._input.contours,{start:p.start,end:p.end,size:p.size}),S._input.autocontour=!0}else if(p.type!=="constraint"){var n=p.start,f=p.end,u=S._input.contours;if(n>f&&(p.start=u.start=f,f=p.end=u.end=n,n=p.start),!(p.size>0)){var l;n===f?l=1:l=s(n,f,S.ncontours).dtick,u.size=p.size=l}}};function s(L,S,v){var p={type:"linear",range:[L,S]};return m.autoTicks(p,(S-L)/(v||15)),p}},52440:function(G,H,e){var m=e(33428),P=e(43616),s=e(41648),L=e(41076);G.exports=function(v){var p=m.select(v).selectAll("g.contour");p.style("opacity",function(r){return r[0].trace.opacity}),p.each(function(r){var t=m.select(this),a=r[0].trace,n=a.contours,f=a.line,u=n.size||1,l=n.start,g=n.type==="constraint",h=!g&&n.coloring==="lines",T=!g&&n.coloring==="fill",c=h||T?L(a):null;t.selectAll("g.contourlevel").each(function(x){m.select(this).selectAll("path").call(P.lineGroupStyle,f.width,h?c(x.level):f.color,f.dash)});var i=n.labelfont;if(t.selectAll("g.contourlabels text").each(function(x){P.font(m.select(this),{weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow,family:i.family,size:i.size,color:i.color||(h?c(x.level):f.color)})}),g)t.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(T){var d;t.selectAll("g.contourfill path").style("fill",function(x){return d===void 0&&(d=x.level),c(x.level+.5*u)}),d===void 0&&(d=l),t.selectAll("g.contourbg path").style("fill",c(d-.5*u))}}),s(v)}},97680:function(G,H,e){var m=e(27260),P=e(17428);G.exports=function(L,S,v,p,r){var t=v("contours.coloring"),a,n="";t==="fill"&&(a=v("contours.showlines")),a!==!1&&(t!=="lines"&&(n=v("line.color","#000")),v("line.width",.5),v("line.dash")),t!=="none"&&(L.showlegend!==!0&&(S.showlegend=!1),S._dfltShowLegend=!1,m(L,S,p,v,{prefix:"",cLetter:"z"})),v("line.smoothing"),P(v,p,n,r)}},37960:function(G,H,e){var m=e(83328),P=e(67104),s=e(49084),L=e(92880).extendFlat,S=P.contours;G.exports=L({carpet:{valType:"string",editType:"calc"},z:m.z,a:m.x,a0:m.x0,da:m.dx,b:m.y,b0:m.y0,db:m.dy,text:m.text,hovertext:m.hovertext,transpose:m.transpose,atype:m.xtype,btype:m.ytype,fillcolor:P.fillcolor,autocontour:P.autocontour,ncontours:P.ncontours,contours:{type:S.type,start:S.start,end:S.end,size:S.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:S.showlines,showlabels:S.showlabels,labelfont:S.labelfont,labelformat:S.labelformat,operation:S.operation,value:S.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:P.line.color,width:P.line.width,dash:P.line.dash,smoothing:P.line.smoothing,editType:"plot"},zorder:P.zorder,transforms:void 0},s("",{cLetter:"z",autoColorDflt:!1}))},30572:function(G,H,e){var m=e(47128),P=e(3400),s=e(2872),L=e(26136),S=e(70448),v=e(11240),p=e(35744),r=e(3252),t=e(50948),a=e(54444);G.exports=function(u,l){var g=l._carpetTrace=t(u,l);if(!(!g||!g.visible||g.visible==="legendonly")){if(!l.a||!l.b){var h=u.data[g.index],T=u.data[l.index];T.a||(T.a=h.a),T.b||(T.b=h.b),r(T,l,l._defaultColor,u._fullLayout)}var c=n(u,l);return a(l,l._z),c}};function n(f,u){var l=u._carpetTrace,g=l.aaxis,h=l.baxis,T,c,i,d,x,w,C;g._minDtick=0,h._minDtick=0,P.isArray1D(u.z)&&s(u,g,h,"a","b",["z"]),T=u._a=u._a||u.a,d=u._b=u._b||u.b,T=T?g.makeCalcdata(u,"_a"):[],d=d?h.makeCalcdata(u,"_b"):[],c=u.a0||0,i=u.da||1,x=u.b0||0,w=u.db||1,C=u._z=L(u._z||u.z,u.transpose),u._emptypoints=v(C),S(C,u._emptypoints);var y=P.maxRowLength(C),E=u.xtype==="scaled"?"":T,A=p(u,E,c,i,y,g),o=u.ytype==="scaled"?"":d,M=p(u,o,x,w,C.length,h),b={a:A,b:M,z:C};return u.contours.type==="levels"&&u.contours.coloring!=="none"&&m(f,u,{vals:C,containerStr:"",cLetter:"z"}),[b]}},3252:function(G,H,e){var m=e(3400),P=e(51264),s=e(37960),L=e(95536),S=e(84952),v=e(97680);G.exports=function(r,t,a,n){function f(h,T){return m.coerce(r,t,s,h,T)}function u(h){return m.coerce2(r,t,s,h)}if(f("carpet"),r.a&&r.b){var l=P(r,t,f,n,"a","b");if(!l){t.visible=!1;return}f("text");var g=f("contours.type")==="constraint";g?L(r,t,f,n,a,{hasHover:!1}):(S(r,t,f,u),v(r,t,f,n,{hasHover:!1}))}else t._defaultColor=a,t._length=null;f("zorder")}},40448:function(G,H,e){G.exports={attributes:e(37960),supplyDefaults:e(3252),colorbar:e(55296),calc:e(30572),plot:e(94440),style:e(52440),moduleType:"trace",name:"contourcarpet",basePlotModule:e(57952),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},94440:function(G,H,e){var m=e(33428),P=e(87072),s=e(53416),L=e(43616),S=e(3400),v=e(72424),p=e(88748),r=e(23676),t=e(93252),a=e(82172),n=e(61512),f=e(56008),u=e(50948),l=e(77712);G.exports=function(E,A,o,M){var b=A.xaxis,I=A.yaxis;S.makeTraceGroups(M,o,"contour").each(function(D){var N=m.select(this),k=D[0],O=k.trace,F=O._carpetTrace=u(E,O),z=E.calcdata[F.index][0];if(!F.visible||F.visible==="legendonly")return;var B=k.a,W=k.b,J=O.contours,re=n(J,A,k),ne=J.type==="constraint",le=J._operation,$=ne?le==="="?"lines":"fill":J.coloring;function Z(be){var xe=F.ab2xy(be[0],be[1],!0);return[b.c2p(xe[0]),I.c2p(xe[1])]}var ie=[[B[0],W[W.length-1]],[B[B.length-1],W[W.length-1]],[B[B.length-1],W[0]],[B[0],W[0]]];v(re);var X=(B[B.length-1]-B[0])*1e-8,Q=(W[W.length-1]-W[0])*1e-8;p(re,X,Q);var oe=re;J.type==="constraint"&&(oe=a(re,le)),g(re,Z);var Y,j,se,te,fe=[];for(te=z.clipsegments.length-1;te>=0;te--)Y=z.clipsegments[te],j=P([],Y.x,b.c2p),se=P([],Y.y,I.c2p),j.reverse(),se.reverse(),fe.push(s(j,se,Y.bicubic));var ge="M"+fe.join("L")+"Z";x(N,z.clipsegments,b,I,ne,$),w(O,N,b,I,oe,ie,Z,F,z,$,ge),h(N,re,E,k,J,A,F),L.setClipUrl(N,F._clipPathId,E)})};function g(y,E){var A,o,M,b,I,D,N,k,O;for(A=0;Are&&(o.max=re),o.len=o.max-o.min}function c(y,E,A){var o=y.getPointAtLength(E),M=y.getPointAtLength(A),b=M.x-o.x,I=M.y-o.y,D=Math.sqrt(b*b+I*I);return[b/D,I/D]}function i(y){var E=Math.sqrt(y[0]*y[0]+y[1]*y[1]);return[y[0]/E,y[1]/E]}function d(y,E){var A=Math.abs(y[0]*E[0]+y[1]*E[1]),o=Math.sqrt(1-A*A);return o/A}function x(y,E,A,o,M,b){var I,D,N,k,O=S.ensureSingle(y,"g","contourbg"),F=O.selectAll("path").data(b==="fill"&&!M?[0]:[]);F.enter().append("path"),F.exit().remove();var z=[];for(k=0;k=0&&(B=j,J=re):Math.abs(z[1]-B[1])<$?Math.abs(z[1]-j[1])<$&&(j[0]-z[0])*(B[0]-j[0])>=0&&(B=j,J=re):S.log("endpt to newendpt is not vert. or horz.",z,B,j)}if(J>=0)break;k+=oe(z,B),z=B}if(J===E.edgepaths.length){S.log("unclosed perimeter path");break}N=J,F=O.indexOf(N)===-1,F&&(N=O[0],k+=oe(z,B)+"Z",z=null)}for(N=0;N0?+h[l]:0),u.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:x})}}var C=L.extractOpts(t),y=C.reversescale?L.flipScale(C.colorscale):C.colorscale,E=y[0][1],A=s.opacity(E)<1?E:s.addOpacity(E,0),o=["interpolate",["linear"],["heatmap-density"],0,A];for(l=1;l=0;p--)S.removeLayer(v[p][1])},L.dispose=function(){var S=this.subplot.map;this._removeLayers(),S.removeSource(this.sourceId)},G.exports=function(v,p){var r=p[0].trace,t=new s(v,r.uid),a=t.sourceId,n=m(p),f=t.below=v.belowLookup["trace-"+r.uid];return v.map.addSource(a,{type:"geojson",data:n.geojson}),t._addLayers(n,f),t}},74248:function(G,H,e){var m=e(3400);G.exports=function(s,L){for(var S=0;S"),n.color=L(u,h),[n]}};function L(S,v){var p=S.marker,r=v.mc||p.color,t=v.mlc||p.line.color,a=v.mlw||p.line.width;if(m(r))return r;if(m(t)&&a)return t}},94704:function(G,H,e){G.exports={attributes:e(20088),layoutAttributes:e(7076),supplyDefaults:e(45432).supplyDefaults,crossTraceDefaults:e(45432).crossTraceDefaults,supplyLayoutDefaults:e(11631),calc:e(23096),crossTraceCalc:e(4804),plot:e(42200),style:e(44544).style,hoverPoints:e(31488),eventData:e(34580),selectPoints:e(45784),moduleType:"trace",name:"funnel",basePlotModule:e(57952),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},7076:function(G){G.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},11631:function(G,H,e){var m=e(3400),P=e(7076);G.exports=function(s,L,S){var v=!1;function p(a,n){return m.coerce(s,L,P,a,n)}for(var r=0;r path").each(function(h){if(!h.isBlank){var T=g.marker;m.select(this).call(s.fill,h.mc||T.color).call(s.stroke,h.mlc||T.line.color).call(P.dashLine,T.line.dash,h.mlw||T.line.width).style("opacity",g.selectedpoints&&!h.selected?L:1)}}),p(l,g,t),l.selectAll(".regions").each(function(){m.select(this).selectAll("path").style("stroke-width",0).call(s.fill,g.connector.fillcolor)}),l.selectAll(".lines").each(function(){var h=g.connector.line;P.lineGroupStyle(m.select(this).selectAll("path"),h.width,h.color,h.dash)})})}G.exports={style:r}},22332:function(G,H,e){var m=e(74996),P=e(45464),s=e(86968).u,L=e(21776).Ks,S=e(21776).Gw,v=e(92880).extendFlat;G.exports={labels:m.labels,label0:m.label0,dlabel:m.dlabel,values:m.values,marker:{colors:m.marker.colors,line:{color:v({},m.marker.line.color,{dflt:null}),width:v({},m.marker.line.width,{dflt:1}),editType:"calc"},pattern:m.marker.pattern,editType:"calc"},text:m.text,hovertext:m.hovertext,scalegroup:v({},m.scalegroup,{}),textinfo:v({},m.textinfo,{flags:["label","text","value","percent"]}),texttemplate:S({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:v({},P.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:L({},{keys:["label","color","value","text","percent"]}),textposition:v({},m.textposition,{values:["inside","none"],dflt:"inside"}),textfont:m.textfont,insidetextfont:m.insidetextfont,title:{text:m.title.text,font:m.title.font,position:v({},m.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:s({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},91248:function(G,H,e){var m=e(7316);H.name="funnelarea",H.plot=function(P,s,L,S){m.plotBasePlot(H.name,P,s,L,S)},H.clean=function(P,s,L,S){m.cleanBasePlot(H.name,P,s,L,S)}},54e3:function(G,H,e){var m=e(45768);function P(L,S){return m.calc(L,S)}function s(L){m.crossTraceCalc(L,{type:"funnelarea"})}G.exports={calc:P,crossTraceCalc:s}},92688:function(G,H,e){var m=e(3400),P=e(22332),s=e(86968).Q,L=e(31508).handleText,S=e(74174).handleLabelsAndValues,v=e(74174).handleMarkerDefaults;G.exports=function(r,t,a,n){function f(w,C){return m.coerce(r,t,P,w,C)}var u=f("labels"),l=f("values"),g=S(u,l),h=g.len;if(t._hasLabels=g.hasLabels,t._hasValues=g.hasValues,!t._hasLabels&&t._hasValues&&(f("label0"),f("dlabel")),!h){t.visible=!1;return}t._length=h,v(r,t,n,f),f("scalegroup");var T=f("text"),c=f("texttemplate"),i;if(c||(i=f("textinfo",Array.isArray(T)?"text+percent":"percent")),f("hovertext"),f("hovertemplate"),c||i&&i!=="none"){var d=f("textposition");L(r,t,n,f,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else i==="none"&&f("textposition","none");s(t,n,f);var x=f("title.text");x&&(f("title.position"),m.coerceFont(f,"title.font",n.font)),f("aspectratio"),f("baseratio")}},62396:function(G,H,e){G.exports={moduleType:"trace",name:"funnelarea",basePlotModule:e(91248),categories:["pie-like","funnelarea","showLegend"],attributes:e(22332),layoutAttributes:e(61280),supplyDefaults:e(92688),supplyLayoutDefaults:e(35384),calc:e(54e3).calc,crossTraceCalc:e(54e3).crossTraceCalc,plot:e(39472),style:e(62096),styleOne:e(10528),meta:{}}},61280:function(G,H,e){var m=e(85204).hiddenlabels;G.exports={hiddenlabels:m,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},35384:function(G,H,e){var m=e(3400),P=e(61280);G.exports=function(L,S){function v(p,r){return m.coerce(L,S,P,p,r)}v("hiddenlabels"),v("funnelareacolorway",S.colorway),v("extendfunnelareacolors")}},39472:function(G,H,e){var m=e(33428),P=e(43616),s=e(3400),L=s.strScale,S=s.strTranslate,v=e(72736),p=e(98184),r=p.toMoveInsideBar,t=e(82744),a=t.recordMinTextSize,n=t.clearMinTextSize,f=e(69656),u=e(37820),l=u.attachFxHandlers,g=u.determineInsideTextFont,h=u.layoutAreas,T=u.prerenderTitles,c=u.positionTitleOutside,i=u.formatSliceLabel;G.exports=function(y,E){var A=y._context.staticPlot,o=y._fullLayout;n("funnelarea",o),T(E,y),h(E,o._size),s.makeTraceGroups(o._funnelarealayer,E,"trace").each(function(M){var b=m.select(this),I=M[0],D=I.trace;w(M),b.each(function(){var N=m.select(this).selectAll("g.slice").data(M);N.enter().append("g").classed("slice",!0),N.exit().remove(),N.each(function(O,F){if(O.hidden){m.select(this).selectAll("path,g").remove();return}O.pointNumber=O.i,O.curveNumber=D.index;var z=I.cx,B=I.cy,W=m.select(this),J=W.selectAll("path.surface").data([O]);J.enter().append("path").classed("surface",!0).style({"pointer-events":A?"none":"all"}),W.call(l,y,M);var re="M"+(z+O.TR[0])+","+(B+O.TR[1])+d(O.TR,O.BR)+d(O.BR,O.BL)+d(O.BL,O.TL)+"Z";J.attr("d",re),i(y,O,I);var ne=f.castOption(D.textposition,O.pts),le=W.selectAll("g.slicetext").data(O.text&&ne!=="none"?[0]:[]);le.enter().append("g").classed("slicetext",!0),le.exit().remove(),le.each(function(){var $=s.ensureSingle(m.select(this),"text","",function(se){se.attr("data-notex",1)}),Z=s.ensureUniformFontSize(y,g(D,O,o.font));$.text(O.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(P.font,Z).call(v.convertToTspans,y);var ie=P.bBox($.node()),X,Q,oe,Y=Math.min(O.BL[1],O.BR[1])+B,j=Math.max(O.TL[1],O.TR[1])+B;Q=Math.max(O.TL[0],O.BL[0])+z,oe=Math.min(O.TR[0],O.BR[0])+z,X=r(Q,oe,Y,j,ie,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),X.fontSize=Z.size,a(D.type,X,o),M[F].transform=X,s.setTransormAndDisplay($,X)})});var k=m.select(this).selectAll("g.titletext").data(D.title.text?[0]:[]);k.enter().append("g").classed("titletext",!0),k.exit().remove(),k.each(function(){var O=s.ensureSingle(m.select(this),"text","",function(B){B.attr("data-notex",1)}),F=D.title.text;D._meta&&(F=s.templateString(F,D._meta)),O.text(F).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(P.font,D.title.font).call(v.convertToTspans,y);var z=c(I,o._size);O.attr("transform",S(z.x,z.y)+L(Math.min(1,z.scale))+S(z.tx,z.ty))})})})};function d(C,y){var E=y[0]-C[0],A=y[1]-C[1];return"l"+E+","+A}function x(C,y){return[.5*(C[0]+y[0]),.5*(C[1]+y[1])]}function w(C){if(!C.length)return;var y=C[0],E=y.trace,A=E.aspectratio,o=E.baseratio;o>.999&&(o=.999);var M=Math.pow(o,2),b=y.vTotal,I=b*M/(1-M),D=b,N=I/b;function k(){var te=Math.sqrt(N);return{x:te,y:-te}}function O(){var te=k();return[te.x,te.y]}var F,z=[];z.push(O());var B,W;for(B=C.length-1;B>-1;B--)if(W=C[B],!W.hidden){var J=W.v/D;N+=J,z.push(O())}var re=1/0,ne=-1/0;for(B=0;B-1;B--)if(W=C[B],!W.hidden){Y+=1;var j=z[Y][0],se=z[Y][1];W.TL=[-j,se],W.TR=[j,se],W.BL=Q,W.BR=oe,W.pxmid=x(W.TR,W.BR),Q=W.TL,oe=W.TR}}},62096:function(G,H,e){var m=e(33428),P=e(10528),s=e(82744).resizeText;G.exports=function(S){var v=S._fullLayout._funnelarealayer.selectAll(".trace");s(S,v,"funnelarea"),v.each(function(p){var r=p[0],t=r.trace,a=m.select(this);a.style({opacity:t.opacity}),a.selectAll("path.surface").each(function(n){m.select(this).call(P,n,t,S)})})}},83328:function(G,H,e){var m=e(52904),P=e(45464),s=e(25376),L=e(29736).axisHoverFormat,S=e(21776).Ks,v=e(21776).Gw,p=e(49084),r=e(92880).extendFlat;G.exports=r({z:{valType:"data_array",editType:"calc"},x:r({},m.x,{impliedEdits:{xtype:"array"}}),x0:r({},m.x0,{impliedEdits:{xtype:"scaled"}}),dx:r({},m.dx,{impliedEdits:{xtype:"scaled"}}),y:r({},m.y,{impliedEdits:{ytype:"array"}}),y0:r({},m.y0,{impliedEdits:{ytype:"scaled"}}),dy:r({},m.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:r({},m.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:r({},m.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:r({},m.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:r({},m.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:r({},m.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:r({},m.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:L("x"),yhoverformat:L("y"),zhoverformat:L("z",1),hovertemplate:S(),texttemplate:v({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:s({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:r({},P.showlegend,{dflt:!1}),zorder:m.zorder},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},19512:function(G,H,e){var m=e(24040),P=e(3400),s=e(54460),L=e(1220),S=e(55480),v=e(47128),p=e(2872),r=e(26136),t=e(70448),a=e(11240),n=e(35744),f=e(39032).BADNUM;G.exports=function(h,T){var c=s.getFromId(h,T.xaxis||"x"),i=s.getFromId(h,T.yaxis||"y"),d=m.traceIs(T,"contour"),x=m.traceIs(T,"histogram"),w=m.traceIs(T,"gl2d"),C=d?"best":T.zsmooth,y,E,A,o,M,b,I,D,N,k,O;if(c._minDtick=0,i._minDtick=0,x)O=S(h,T),o=O.orig_x,y=O.x,E=O.x0,A=O.dx,D=O.orig_y,M=O.y,b=O.y0,I=O.dy,N=O.z;else{var F=T.z;P.isArray1D(F)?(p(T,c,i,"x","y",["z"]),y=T._x,M=T._y,F=T._z):(o=T.x?c.makeCalcdata(T,"x"):[],D=T.y?i.makeCalcdata(T,"y"):[],y=L(T,c,"x",o).vals,M=L(T,i,"y",D).vals,T._x=y,T._y=M),E=T.x0,A=T.dx,b=T.y0,I=T.dy,N=r(F,T,c,i)}(c.rangebreaks||i.rangebreaks)&&(N=l(y,M,N),x||(y=u(y),M=u(M),T._x=y,T._y=M)),!x&&(d||T.connectgaps)&&(T._emptypoints=a(N),t(N,T._emptypoints));function z(ie){C=T._input.zsmooth=T.zsmooth=!1,P.warn('cannot use zsmooth: "fast": '+ie)}function B(ie){if(ie.length>1){var X=(ie[ie.length-1]-ie[0])/(ie.length-1),Q=Math.abs(X/100);for(k=0;kQ)return!1}return!0}T._islinear=!1,c.type==="log"||i.type==="log"?C==="fast"&&z("log axis found"):B(y)?B(M)?T._islinear=!0:C==="fast"&&z("y scale is not linear"):C==="fast"&&z("x scale is not linear");var W=P.maxRowLength(N),J=T.xtype==="scaled"?"":y,re=n(T,J,E,A,W,c),ne=T.ytype==="scaled"?"":M,le=n(T,ne,b,I,N.length,i);w||(T._extremes[c._id]=s.findExtremes(c,re),T._extremes[i._id]=s.findExtremes(i,le));var $={x:re,y:le,z:N,text:T._text||T.text,hovertext:T._hovertext||T.hovertext};if(T.xperiodalignment&&o&&($.orig_x=o),T.yperiodalignment&&D&&($.orig_y=D),J&&J.length===re.length-1&&($.xCenter=J),ne&&ne.length===le.length-1&&($.yCenter=ne),x&&($.xRanges=O.xRanges,$.yRanges=O.yRanges,$.pts=O.pts),d||v(h,T,{vals:N,cLetter:"z"}),d&&T.contours&&T.contours.coloring==="heatmap"){var Z={type:T.type==="contour"?"heatmap":"histogram2d",xcalendar:T.xcalendar,ycalendar:T.ycalendar};$.xfill=n(Z,J,E,A,W,c),$.yfill=n(Z,ne,b,I,N.length,i)}return[$]};function u(g){for(var h=[],T=g.length,c=0;c=0;g--)l=v[g],f=l[0],u=l[1],h=((S[[f-1,u]]||t)[2]+(S[[f+1,u]]||t)[2]+(S[[f,u-1]]||t)[2]+(S[[f,u+1]]||t)[2])/20,h&&(T[l]=[f,u,h],v.splice(g,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(l in T)S[l]=T[l],L.push(T[l])}return L.sort(function(i,d){return d[2]-i[2]})}},55512:function(G,H,e){var m=e(93024),P=e(3400),s=P.isArrayOrTypedArray,L=e(54460),S=e(8932).extractOpts;G.exports=function(p,r,t,a,n){n||(n={});var f=n.isContour,u=p.cd[0],l=u.trace,g=p.xa,h=p.ya,T=u.x,c=u.y,i=u.z,d=u.xCenter,x=u.yCenter,w=u.zmask,C=l.zhoverformat,y=T,E=c,A,o,M,b;if(p.index!==!1){try{M=Math.round(p.index[1]),b=Math.round(p.index[0])}catch{P.error("Error hovering on heatmap, pointNumber must be [row,col], found:",p.index);return}if(M<0||M>=i[0].length||b<0||b>i.length)return}else{if(m.inbox(r-T[0],r-T[T.length-1],0)>0||m.inbox(t-c[0],t-c[c.length-1],0)>0)return;if(f){var I;for(y=[2*T[0]-T[1]],I=1;IP;a++)t=S(p,r,L(t));return t>P&&m.log("interp2d didn't converge quickly",t),p};function S(v,p,r){var t=0,a,n,f,u,l,g,h,T,c,i,d,x,w;for(u=0;ux&&(t=Math.max(t,Math.abs(v[n][f]-d)/(w-x))))}return t}},39096:function(G,H,e){var m=e(3400);G.exports=function(s,L){s("texttemplate");var S=m.extendFlat({},L.font,{color:"auto",size:"auto"});m.coerceFont(s,"textfont",S)}},35744:function(G,H,e){var m=e(24040),P=e(3400).isArrayOrTypedArray;G.exports=function(L,S,v,p,r,t){var a=[],n=m.traceIs(L,"contour"),f=m.traceIs(L,"histogram"),u=m.traceIs(L,"gl2d"),l,g,h,T=P(S)&&S.length>1;if(T&&!f&&t.type!=="category"){var c=S.length;if(c<=r){if(n||u)a=Array.from(S).slice(0,r);else if(r===1)t.type==="log"?a=[.5*S[0],2*S[0]]:a=[S[0]-.5,S[0]+.5];else if(t.type==="log"){for(a=[Math.pow(S[0],1.5)/Math.pow(S[1],.5)],h=1;h0;)Q=o.c2p(z[se]),se--;for(Q0;)j=M.c2p(B[se]),se--;j=o._length||Q<=0||Y>=M._length||j<=0;if(De){var Fe=I.selectAll("image").data([]);Fe.exit().remove(),i(I);return}var Te,Re;ge==="fast"?(Te=$,Re=le):(Te=xe,Re=_e);var Se=document.createElement("canvas");Se.width=Te,Se.height=Re;var Ie=Se.getContext("2d",{willReadFrequently:!0}),Me=n(N,{noNumericCheck:!0,returnArray:!0}),Ve,et;ge==="fast"?(Ve=Z?function(Or){return $-1-Or}:v.identity,et=ie?function(Or){return le-1-Or}:v.identity):(Ve=function(Or){return v.constrain(Math.round(o.c2p(z[Or])-X),0,xe)},et=function(Or){return v.constrain(Math.round(M.c2p(B[Or])-Y),0,_e)});var ot=et(0),Qe=[ot,ot],$e=Z?0:1,ht=ie?0:1,vt=0,pt=0,wt=0,Ct=0,rt,ze,He,We,Ge;function Le(Or,ln){if(Or!==void 0){var fn=Me(Or);return fn[0]=Math.round(fn[0]),fn[1]=Math.round(fn[1]),fn[2]=Math.round(fn[2]),vt+=ln,pt+=fn[0]*ln,wt+=fn[1]*ln,Ct+=fn[2]*ln,fn}return[0,0,0,0]}function Pe(Or,ln,fn,Mn){var Pn=Or[fn.bin0];if(Pn===void 0)return Le(void 0,1);var Vn=Or[fn.bin1],ia=ln[fn.bin0],ya=ln[fn.bin1],wa=Vn-Pn||0,Wn=ia-Pn||0,Qn;return Vn===void 0?ya===void 0?Qn=0:ia===void 0?Qn=2*(ya-Pn):Qn=(2*ya-ia-Pn)*2/3:ya===void 0?ia===void 0?Qn=0:Qn=(2*Pn-Vn-ia)*2/3:ia===void 0?Qn=(2*ya-Vn-Pn)*2/3:Qn=ya+Pn-Vn-ia,Le(Pn+fn.frac*wa+Mn.frac*(Wn+fn.frac*Qn))}if(ge!=="default"){var je=0,Ce;try{Ce=new Uint8Array(Te*Re*4)}catch{Ce=new Array(Te*Re*4)}if(ge==="smooth"){var he=W||z,me=J||B,Ne=new Array(he.length),Ze=new Array(me.length),st=new Array(xe),lt=W?x:d,Wt=J?x:d,Zt,Tt,Rt;for(se=0;sedr||dr>M._length))for(te=Ut;teUe||Ue>o._length)){var zt=r({x:Ye,y:fr},N,C._fullLayout);zt.x=Ye,zt.y=fr;var Dt=D.z[se][te];Dt===void 0?(zt.z="",zt.zLabel=""):(zt.z=Dt,zt.zLabel=S.tickText(xt,Dt,"hover").text);var $t=D.text&&D.text[se]&&D.text[se][te];($t===void 0||$t===!1)&&($t=""),zt.text=$t;var sr=v.texttemplateString(ut,zt,C._fullLayout._d3locale,zt,N._meta||{});if(sr){var cr=sr.split("
"),tr=cr.length,Nt=0;for(fe=0;fe0&&(r=!0);for(var f=0;fv){var p=v-L[P];return L[P]=v,p}}else return L[P]=v,v;return 0},max:function(P,s,L,S){var v=S[s];if(m(v))if(v=Number(v),m(L[P])){if(L[P]E&&EL){var M=A===P?1:6,b=A===P?"M12":"M1";return function(I,D){var N=T.c2d(I,P,c),k=N.indexOf("-",M);k>0&&(N=N.substr(0,k));var O=T.d2c(N,0,c);if(Op?u>L?u>P*1.1?P:u>s*1.1?s:L:u>S?S:u>v?v:p:Math.pow(10,Math.floor(Math.log(u)/Math.LN10))}function n(u,l,g,h,T,c){if(h&&u>L){var i=f(l,T,c),d=f(g,T,c),x=u===P?0:1;return i[x]!==d[x]}return Math.floor(g/u)-Math.floor(l/u)>.1}function f(u,l,g){var h=l.c2d(u,P,g).split("-");return h[0]===""&&(h.unshift(),h[0]="-"+h[0]),h}},35852:function(G,H,e){var m=e(38248),P=e(3400),s=e(24040),L=e(54460),S=e(84664),v=e(16964),p=e(10648),r=e(2e3),t=e(67712);function a(g,h){var T=[],c=[],i=h.orientation==="h",d=L.getFromId(g,i?h.yaxis:h.xaxis),x=i?"y":"x",w={x:"y",y:"x"}[x],C=h[x+"calendar"],y=h.cumulative,E,A=n(g,h,d,x),o=A[0],M=A[1],b=typeof o.size=="string",I=[],D=b?I:o,N=[],k=[],O=[],F=0,z=h.histnorm,B=h.histfunc,W=z.indexOf("density")!==-1,J,re,ne;y.enabled&&W&&(z=z.replace(/ ?density$/,""),W=!1);var le=B==="max"||B==="min",$=le?null:0,Z=v.count,ie=p[z],X=!1,Q=function(Ie){return d.r2c(Ie,0,C)},oe;for(P.isArrayOrTypedArray(h[w])&&B!=="count"&&(oe=h[w],X=B==="avg",Z=v[B]),E=Q(o.start),re=Q(o.end)+(E-L.tickIncrement(E,o.size,!1,C))/1e6;E=0&&ne=Te;E--)if(c[E]){Re=E;break}for(E=Te;E<=Re;E++)if(m(T[E])&&m(c[E])){var Se={p:T[E],s:c[E],b:0};y.enabled||(Se.pts=O[E],te?Se.ph0=Se.ph1=O[E].length?M[O[E][0]]:T[E]:(h._computePh=!0,Se.ph0=_e(I[E]),Se.ph1=_e(I[E+1],!0))),Fe.push(Se)}return Fe.length===1&&(Fe[0].width1=L.tickIncrement(Fe[0].p,o.size,!1,C)-Fe[0].p),S(Fe,h),P.isArrayOrTypedArray(h.selectedpoints)&&P.tagSelected(Fe,h,be),Fe}function n(g,h,T,c,i){var d=c+"bins",x=g._fullLayout,w=h["_"+c+"bingroup"],C=x._histogramBinOpts[w],y=x.barmode==="overlay",E,A,o,M,b,I,D,N=function(xe){return T.r2c(xe,0,M)},k=function(xe){return T.c2r(xe,0,M)},O=T.type==="date"?function(xe){return xe||xe===0?P.cleanDate(xe,null,M):null}:function(xe){return m(xe)?Number(xe):null};function F(xe,_e,De){_e[xe+"Found"]?(_e[xe]=O(_e[xe]),_e[xe]===null&&(_e[xe]=De[xe])):(I[xe]=_e[xe]=De[xe],P.nestedProperty(A[0],d+"."+xe).set(De[xe]))}if(h["_"+c+"autoBinFinished"])delete h["_"+c+"autoBinFinished"];else{A=C.traces;var z=[],B=!0,W=!1,J=!1;for(E=0;E"u"){if(i)return[ne,b,!0];ne=f(g,h,T,c,d)}D=o.cumulative||{},D.enabled&&D.currentbin!=="include"&&(D.direction==="decreasing"?ne.start=k(L.tickIncrement(N(ne.start),ne.size,!0,M)):ne.end=k(L.tickIncrement(N(ne.end),ne.size,!1,M))),C.size=ne.size,C.sizeFound||(I.size=ne.size,P.nestedProperty(A[0],d+".size").set(ne.size)),F("start",C,ne),F("end",C,ne)}b=h["_"+c+"pos0"],delete h["_"+c+"pos0"];var $=h._input[d]||{},Z=P.extendFlat({},C),ie=C.start,X=T.r2l($.start),Q=X!==void 0;if((C.startFound||Q)&&X!==T.r2l(ie)){var oe=Q?X:P.aggNums(Math.min,null,b),Y={type:T.type==="category"||T.type==="multicategory"?"linear":T.type,r2l:T.r2l,dtick:C.size,tick0:ie,calendar:M,range:[oe,L.tickIncrement(oe,C.size,!1,M)].map(T.l2r)},j=L.tickFirst(Y);j>T.r2l(oe)&&(j=L.tickIncrement(j,C.size,!0,M)),Z.start=T.l2r(j),Q||P.nestedProperty(h,d+".start").set(Z.start)}var se=C.end,te=T.r2l($.end),fe=te!==void 0;if((C.endFound||fe)&&te!==T.r2l(se)){var ge=fe?te:P.aggNums(Math.max,null,b);Z.end=T.l2r(ge),fe||P.nestedProperty(h,d+".start").set(Z.end)}var be="autobin"+c;return h._input[be]===!1&&(h._input[d]=P.extendFlat({},h[d]||{}),delete h._input[be],delete h[be]),[Z,b]}function f(g,h,T,c,i){var d=g._fullLayout,x=u(g,h),w=!1,C=1/0,y=[h],E,A,o;for(E=0;E=0;c--)w(c);else if(h==="increasing"){for(c=1;c=0;c--)g[c]+=g[c+1];T==="exclude"&&(g.push(0),g.shift())}}G.exports={calc:a,calcAllAutoBins:n}},73316:function(G){G.exports={eventDataKeys:["binNumber"]}},80536:function(G,H,e){var m=e(3400),P=e(79811),s=e(24040).traceIs,L=e(20011),S=e(31508).validateCornerradius,v=m.nestedProperty,p=e(71888).getAxisGroup,r=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],t=["x","y"];G.exports=function(n,f){var u=f._histogramBinOpts={},l=[],g={},h=[],T,c,i,d,x,w,C;function y(ne,le){return m.coerce(T._input,T,T._module.attributes,ne,le)}function E(ne){return ne.orientation==="v"?"x":"y"}function A(ne,le){var $=P.getFromTrace({_fullLayout:f},ne,le);return $.type}function o(ne,le,$){var Z=ne.uid+"__"+$;le||(le=Z);var ie=A(ne,$),X=ne[$+"calendar"]||"",Q=u[le],oe=!0;Q&&(ie===Q.axType&&X===Q.calendar?(oe=!1,Q.traces.push(ne),Q.dirs.push($)):(le=Z,ie!==Q.axType&&m.warn(["Attempted to group the bins of trace",ne.index,"set on a","type:"+ie,"axis","with bins on","type:"+Q.axType,"axis."].join(" ")),X!==Q.calendar&&m.warn(["Attempted to group the bins of trace",ne.index,"set with a",X,"calendar","with bins",Q.calendar?"on a "+Q.calendar+" calendar":"w/o a set calendar"].join(" ")))),oe&&(u[le]={traces:[ne],dirs:[$],axType:ie,calendar:ne[$+"calendar"]||""}),ne["_"+$+"bingroup"]=le}for(x=0;xN&&M.splice(N,M.length-N),D.length>N&&D.splice(N,D.length-N);var k=[],O=[],F=[],z=typeof o.size=="string",B=typeof I.size=="string",W=[],J=[],re=z?W:o,ne=B?J:I,le=0,$=[],Z=[],ie=u.histnorm,X=u.histfunc,Q=ie.indexOf("density")!==-1,oe=X==="max"||X==="min",Y=oe?null:0,j=s.count,se=L[ie],te=!1,fe=[],ge=[],be="z"in u?u.z:"marker"in u&&Array.isArray(u.marker.color)?u.marker.color:"";be&&X!=="count"&&(te=X==="avg",j=s[X]);var xe=o.size,_e=c(o.start),De=c(o.end)+(_e-P.tickIncrement(_e,xe,!1,h))/1e6;for(w=_e;w=0&&y=0&&E-1,flipY:O.tiling.flip.indexOf("y")>-1,orientation:O.tiling.orientation,pad:{inner:O.tiling.pad},maxDepth:O._maxDepth}),J=W.descendants(),re=1/0,ne=-1/0;J.forEach(function(X){var Q=X.depth;Q>=O._maxDepth?(X.x0=X.x1=(X.x0+X.x1)/2,X.y0=X.y1=(X.y0+X.y1)/2):(re=Math.min(re,Q),ne=Math.max(ne,Q))}),h=h.data(J,r.getPtId),O._maxVisibleLayers=isFinite(ne)?ne-re+1:0,h.enter().append("g").classed("slice",!0),A(h,n,I,[c,i],w),h.order();var le=null;if(E&&b){var $=r.getPtId(b);h.each(function(X){le===null&&r.getPtId(X)===$&&(le={x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1})})}var Z=function(){return le||{x0:0,x1:c,y0:0,y1:i}},ie=h;return E&&(ie=ie.transition().each("end",function(){var X=m.select(this);r.setSliceCursor(X,u,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),ie.each(function(X){X._x0=d(X.x0),X._x1=d(X.x1),X._y0=x(X.y0),X._y1=x(X.y1),X._hoverX=d(X.x1-O.tiling.pad),X._hoverY=x(B?X.y1-O.tiling.pad/2:X.y0+O.tiling.pad/2);var Q=m.select(this),oe=P.ensureSingle(Q,"path","surface",function(te){te.style("pointer-events",D?"none":"all")});E?oe.transition().attrTween("d",function(te){var fe=o(te,n,Z(),[c,i],{orientation:O.tiling.orientation,flipX:O.tiling.flip.indexOf("x")>-1,flipY:O.tiling.flip.indexOf("y")>-1});return function(ge){return w(fe(ge))}}):oe.attr("d",w),Q.call(t,g,u,l,{styleOne:v,eventDataKeys:p.eventDataKeys,transitionTime:p.CLICK_TRANSITION_TIME,transitionEasing:p.CLICK_TRANSITION_EASING}).call(r.setSliceCursor,u,{isTransitioning:u._transitioning}),oe.call(v,X,O,u,{hovered:!1}),X.x0===X.x1||X.y0===X.y1?X._text="":X._text=a(X,g,O,l,N)||"";var Y=P.ensureSingle(Q,"g","slicetext"),j=P.ensureSingle(Y,"text","",function(te){te.attr("data-notex",1)}),se=P.ensureUniformFontSize(u,r.determineTextFont(O,X,N.font));j.text(X._text||" ").classed("slicetext",!0).attr("text-anchor",z?"end":F?"start":"middle").call(s.font,se).call(L.convertToTspans,u),X.textBB=s.bBox(j.node()),X.transform=C(X,{fontSize:se.size}),X.transform.fontSize=se.size,E?j.transition().attrTween("transform",function(te){var fe=M(te,n,Z(),[c,i]);return function(ge){return y(fe(ge))}}):j.attr("transform",y(X))}),le}},29044:function(G,H,e){G.exports={moduleType:"trace",name:"icicle",basePlotModule:e(59564),categories:[],animatable:!0,attributes:e(97376),layoutAttributes:e(90676),supplyDefaults:e(7045),supplyLayoutDefaults:e(4304),calc:e(73876).r,crossTraceCalc:e(73876).q,plot:e(38364),style:e(47192).style,colorbar:e(5528),meta:{}}},90676:function(G){G.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},4304:function(G,H,e){var m=e(3400),P=e(90676);G.exports=function(L,S){function v(p,r){return m.coerce(L,S,P,p,r)}v("iciclecolorway",S.colorway),v("extendiciclecolors")}},25132:function(G,H,e){var m=e(74148),P=e(83024);G.exports=function(L,S,v){var p=v.flipX,r=v.flipY,t=v.orientation==="h",a=v.maxDepth,n=S[0],f=S[1];a&&(n=(L.height+1)*S[0]/Math.min(L.height+1,a),f=(L.height+1)*S[1]/Math.min(L.height+1,a));var u=m.partition().padding(v.pad.inner).size(t?[S[1],n]:[S[0],f])(L);return(t||p||r)&&P(u,S,{swapXY:t,flipX:p,flipY:r}),u}},38364:function(G,H,e){var m=e(95808),P=e(67880);G.exports=function(L,S,v,p){return m(L,S,v,p,{type:"icicle",drawDescendants:P})}},47192:function(G,H,e){var m=e(33428),P=e(76308),s=e(3400),L=e(82744).resizeText,S=e(60404);function v(r){var t=r._fullLayout._iciclelayer.selectAll(".trace");L(r,t,"icicle"),t.each(function(a){var n=m.select(this),f=a[0],u=f.trace;n.style("opacity",u.opacity),n.selectAll("path.surface").each(function(l){m.select(this).call(p,l,u,r)})})}function p(r,t,a,n){var f=t.data.data,u=!t.children,l=f.i,g=s.castOption(a,l,"marker.line.color")||P.defaultLine,h=s.castOption(a,l,"marker.line.width")||0;r.call(S,t,a,n).style("stroke-width",h).call(P.stroke,g).style("opacity",u?a.leaf.opacity:null)}G.exports={style:v,styleOne:p}},95188:function(G,H,e){for(var m=e(45464),P=e(52904).zorder,s=e(21776).Ks,L=e(92880).extendFlat,S=e(47797).colormodel,v=["rgb","rgba","rgba256","hsl","hsla"],p=[],r=[],t=0;t0||m.inbox(r-t.y0,r-(t.y0+t.h*a.dy),0)>0)){var u=Math.floor((p-t.x0)/a.dx),l=Math.floor(Math.abs(r-t.y0)/a.dy),g;if(a._hasZ?g=t.z[l][u]:a._hasSource&&(g=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(u,l,1,1).data),!!g){var h=t.hi||a.hoverinfo,T;if(h){var c=h.split("+");c.indexOf("all")!==-1&&(c=["color"]),c.indexOf("color")!==-1&&(T=!0)}var i=L.colormodel[a.colormodel],d=i.colormodel||a.colormodel,x=d.length,w=a._scaler(g),C=i.suffix,y=[];(a.hovertemplate||T)&&(y.push("["+[w[0]+C[0],w[1]+C[1],w[2]+C[2]].join(", ")),x===4&&y.push(", "+w[3]+C[3]),y.push("]"),y=y.join(""),v.extraText=d.toUpperCase()+": "+y);var E;s(a.hovertext)&&s(a.hovertext[l])?E=a.hovertext[l][u]:s(a.text)&&s(a.text[l])&&(E=a.text[l][u]);var A=f.c2p(t.y0+(l+.5)*a.dy),o=t.x0+(u+.5)*a.dx,M=t.y0+(l+.5)*a.dy,b="["+g.slice(0,a.colormodel.length).join(", ")+"]";return[P.extendFlat(v,{index:[l,u],x0:n.c2p(t.x0+u*a.dx),x1:n.c2p(t.x0+(u+1)*a.dx),y0:A,y1:A,color:w,xVal:o,xLabelVal:o,yVal:M,yLabelVal:M,zLabelVal:b,text:E,hovertemplateLabels:{zLabel:b,colorLabel:y,"color[0]Label":w[0]+C[0],"color[1]Label":w[1]+C[1],"color[2]Label":w[2]+C[2],"color[3]Label":w[3]+C[3]}})]}}}},48928:function(G,H,e){G.exports={attributes:e(95188),supplyDefaults:e(13188),calc:e(93336),plot:e(63715),style:e(28576),hoverPoints:e(24892),eventData:e(79972),moduleType:"trace",name:"image",basePlotModule:e(57952),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},63715:function(G,H,e){var m=e(33428),P=e(3400),s=P.strTranslate,L=e(9616),S=e(47797),v=e(9188),p=e(2264).STYLE;G.exports=function(t,a,n,f){var u=a.xaxis,l=a.yaxis,g=!t._context._exportedPlot&&v();P.makeTraceGroups(f,n,"im").each(function(h){var T=m.select(this),c=h[0],i=c.trace,d=(i.zsmooth==="fast"||i.zsmooth===!1&&g)&&!i._hasZ&&i._hasSource&&u.type==="linear"&&l.type==="linear";i._realImage=d;var x=c.z,w=c.x0,C=c.y0,y=c.w,E=c.h,A=i.dx,o=i.dy,M,b,I,D,N,k;for(k=0;M===void 0&&k0;)b=u.c2p(w+k*A),k--;for(k=0;D===void 0&&k0;)N=l.c2p(C+k*o),k--;if(b$[0];if(Z||ie){var X=M+F/2,Q=D+z/2;ne+="transform:"+s(X+"px",Q+"px")+"scale("+(Z?-1:1)+","+(ie?-1:1)+")"+s(-X+"px",-Q+"px")+";"}}re.attr("style",ne);var oe=new Promise(function(Y){if(i._hasZ)Y();else if(i._hasSource)if(i._canvas&&i._canvas.el.width===y&&i._canvas.el.height===E&&i._canvas.source===i.source)Y();else{var j=document.createElement("canvas");j.width=y,j.height=E;var se=j.getContext("2d",{willReadFrequently:!0});i._image=i._image||new Image;var te=i._image;te.onload=function(){se.drawImage(te,0,0),i._canvas={el:j,source:i.source},Y()},te.setAttribute("src",i.source)}}).then(function(){var Y,j;if(i._hasZ)j=J(function(fe,ge){var be=x[ge][fe];return P.isTypedArray(be)&&(be=Array.from(be)),be}),Y=j.toDataURL("image/png");else if(i._hasSource)if(d)Y=i.source;else{var se=i._canvas.el.getContext("2d",{willReadFrequently:!0}),te=se.getImageData(0,0,y,E).data;j=J(function(fe,ge){var be=4*(ge*y+fe);return[te[be],te[be+1],te[be+2],te[be+3]]}),Y=j.toDataURL("image/png")}re.attr({"xlink:href":Y,height:z,width:F,x:M,y:D})});t._promises.push(oe)})}},28576:function(G,H,e){var m=e(33428);G.exports=function(s){m.select(s).selectAll(".im image").style("opacity",function(L){return L[0].trace.opacity})}},89864:function(G,H,e){var m=e(92880).extendFlat,P=e(92880).extendDeep,s=e(67824).overrideAll,L=e(25376),S=e(22548),v=e(86968).u,p=e(94724),r=e(31780).templatedArray,t=e(48164),a=e(29736).descriptionOnlyNumbers,n=L({editType:"plot",colorEditType:"plot"}),f={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:S.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},u={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},l=r("step",P({},f,{range:u}));G.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:v({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:m({},n,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:a("value")},font:m({},n,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:a("value")},increasing:{symbol:{valType:"string",dflt:t.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:t.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:t.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:t.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:m({},n,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:P({},f,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:S.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:s({range:u,visible:m({},p.visible,{dflt:!0}),tickmode:p.minor.tickmode,nticks:p.nticks,tick0:p.tick0,dtick:p.dtick,tickvals:p.tickvals,ticktext:p.ticktext,ticks:m({},p.ticks,{dflt:"outside"}),ticklen:p.ticklen,tickwidth:p.tickwidth,tickcolor:p.tickcolor,ticklabelstep:p.ticklabelstep,showticklabels:p.showticklabels,labelalias:p.labelalias,tickfont:L({}),tickangle:p.tickangle,tickformat:p.tickformat,tickformatstops:p.tickformatstops,tickprefix:p.tickprefix,showtickprefix:p.showtickprefix,ticksuffix:p.ticksuffix,showticksuffix:p.showticksuffix,separatethousands:p.separatethousands,exponentformat:p.exponentformat,minexponent:p.minexponent,showexponent:p.showexponent,editType:"plot"},"plot"),steps:l,threshold:{line:{color:m({},f.line.color,{}),width:m({},f.line.width,{dflt:1}),editType:"plot"},thickness:m({},f.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}},92728:function(G,H,e){var m=e(7316);H.name="indicator",H.plot=function(P,s,L,S){m.plotBasePlot(H.name,P,s,L,S)},H.clean=function(P,s,L,S){m.cleanBasePlot(H.name,P,s,L,S)}},79136:function(G){function H(e,m){var P=[],s=m.value;typeof m._lastValue!="number"&&(m._lastValue=m.value);var L=m._lastValue,S=L;return m._hasDelta&&typeof m.delta.reference=="number"&&(S=m.delta.reference),P[0]={y:s,lastY:L,delta:s-S,relativeDelta:(s-S)/S},P}G.exports={calc:H}},12096:function(G){G.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},20424:function(G,H,e){var m=e(3400),P=e(89864),s=e(86968).Q,L=e(31780),S=e(51272),v=e(12096),p=e(26332),r=e(25404),t=e(95936),a=e(42568);function n(u,l,g,h){function T(F,z){return m.coerce(u,l,P,F,z)}s(l,h,T),T("mode"),l._hasNumber=l.mode.indexOf("number")!==-1,l._hasDelta=l.mode.indexOf("delta")!==-1,l._hasGauge=l.mode.indexOf("gauge")!==-1;var c=T("value");l._range=[0,typeof c=="number"?1.5*c:1];var i=new Array(2),d;if(l._hasNumber){T("number.valueformat");var x=m.extendFlat({},h.font);x.size=void 0,m.coerceFont(T,"number.font",x),l.number.font.size===void 0&&(l.number.font.size=v.defaultNumberFontSize,i[0]=!0),T("number.prefix"),T("number.suffix"),d=l.number.font.size}var w;if(l._hasDelta){var C=m.extendFlat({},h.font);C.size=void 0,m.coerceFont(T,"delta.font",C),l.delta.font.size===void 0&&(l.delta.font.size=(l._hasNumber?.5:1)*(d||v.defaultNumberFontSize),i[1]=!0),T("delta.reference",l.value),T("delta.relative"),T("delta.valueformat",l.delta.relative?"2%":""),T("delta.increasing.symbol"),T("delta.increasing.color"),T("delta.decreasing.symbol"),T("delta.decreasing.color"),T("delta.position"),T("delta.prefix"),T("delta.suffix"),w=l.delta.font.size}l._scaleNumbers=(!l._hasNumber||i[0])&&(!l._hasDelta||i[1])||!1;var y=m.extendFlat({},h.font);y.size=.25*(d||w||v.defaultNumberFontSize),m.coerceFont(T,"title.font",y),T("title.text");var E,A,o,M;function b(F,z){return m.coerce(E,A,P.gauge,F,z)}function I(F,z){return m.coerce(o,M,P.gauge.axis,F,z)}if(l._hasGauge){E=u.gauge,E||(E={}),A=L.newContainer(l,"gauge"),b("shape");var D=l._isBullet=l.gauge.shape==="bullet";D||T("title.align","center");var N=l._isAngular=l.gauge.shape==="angular";N||T("align","center"),b("bgcolor",h.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var k=v.valueThickness*(l.gauge.shape==="bullet"?.5:1);b("bar.thickness",k),S(E,A,{name:"steps",handleItemDefaults:f}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),o={},E&&(o=E.axis||{}),M=L.newContainer(A,"axis"),I("visible"),l._range=I("range",l._range);var O={font:h.font,noAutotickangles:!0,outerTicks:!0};p(o,M,I,"linear"),a(o,M,I,"linear",O),t(o,M,I,"linear",O),r(o,M,I,O)}else T("title.align","center"),T("align","center"),l._isAngular=l._isBullet=!1;l._length=null}function f(u,l){function g(h,T){return m.coerce(u,l,P.gauge.steps,h,T)}g("color"),g("line.color"),g("line.width"),g("range"),g("thickness")}G.exports={supplyDefaults:n}},43480:function(G,H,e){G.exports={moduleType:"trace",name:"indicator",basePlotModule:e(92728),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:e(89864),supplyDefaults:e(20424).supplyDefaults,calc:e(79136).calc,plot:e(97864),meta:{}}},97864:function(G,H,e){var m=e(33428),P=e(67756).qy,s=e(67756).Gz,L=e(3400),S=L.strScale,v=L.strTranslate,p=L.rad2deg,r=e(84284).MID_SHIFT,t=e(43616),a=e(12096),n=e(72736),f=e(54460),u=e(28336),l=e(37668),g=e(94724),h=e(76308),T={left:"start",center:"middle",right:"end"},c={left:0,center:.5,right:1},i=/[yzafpnµmkMGTPEZY]/;function d(D){return D&&D.duration>0}G.exports=function(N,k,O,F){var z=N._fullLayout,B;d(O)&&F&&(B=F()),L.makeTraceGroups(z._indicatorlayer,k,"trace").each(function(W){var J=W[0],re=J.trace,ne=m.select(this),le=re._hasGauge,$=re._isAngular,Z=re._isBullet,ie=re.domain,X={w:z._size.w*(ie.x[1]-ie.x[0]),h:z._size.h*(ie.y[1]-ie.y[0]),l:z._size.l+z._size.w*ie.x[0],r:z._size.r+z._size.w*(1-ie.x[1]),t:z._size.t+z._size.h*(1-ie.y[1]),b:z._size.b+z._size.h*ie.y[0]},Q=X.l+X.w/2,oe=X.t+X.h/2,Y=Math.min(X.w/2,X.h),j=a.innerRadius*Y,se,te,fe,ge=re.align||"center";if(te=oe,!le)se=X.l+c[ge]*X.w,fe=function(Me){return o(Me,X.w,X.h)};else if($&&(se=Q,te=oe+Y/2,fe=function(Me){return M(Me,.9*j)}),Z){var be=a.bulletPadding,xe=1-a.bulletNumberDomainSize+be;se=X.l+(xe+(1-xe)*c[ge])*X.w,fe=function(Me){return o(Me,(a.bulletNumberDomainSize-be)*X.w,X.h)}}C(N,ne,W,{numbersX:se,numbersY:te,numbersScaler:fe,transitionOpts:O,onComplete:B});var _e,De;le&&(_e={range:re.gauge.axis.range,color:re.gauge.bgcolor,line:{color:re.gauge.bordercolor,width:0},thickness:1},De={range:re.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:re.gauge.bordercolor,width:re.gauge.borderwidth},thickness:1});var Fe=ne.selectAll("g.angular").data($?W:[]);Fe.exit().remove();var Te=ne.selectAll("g.angularaxis").data($?W:[]);Te.exit().remove(),$&&w(N,ne,W,{radius:Y,innerRadius:j,gauge:Fe,layer:Te,size:X,gaugeBg:_e,gaugeOutline:De,transitionOpts:O,onComplete:B});var Re=ne.selectAll("g.bullet").data(Z?W:[]);Re.exit().remove();var Se=ne.selectAll("g.bulletaxis").data(Z?W:[]);Se.exit().remove(),Z&&x(N,ne,W,{gauge:Re,layer:Se,size:X,gaugeBg:_e,gaugeOutline:De,transitionOpts:O,onComplete:B});var Ie=ne.selectAll("text.title").data(W);Ie.exit().remove(),Ie.enter().append("text").classed("title",!0),Ie.attr("text-anchor",function(){return Z?T.right:T[re.title.align]}).text(re.title.text).call(t.font,re.title.font).call(n.convertToTspans,N),Ie.attr("transform",function(){var Me=X.l+X.w*c[re.title.align],Ve,et=a.titlePadding,ot=t.bBox(Ie.node());if(le){if($)if(re.gauge.axis.visible){var Qe=t.bBox(Te.node());Ve=Qe.top-et-ot.bottom}else Ve=X.t+X.h/2-Y/2-ot.bottom-et;Z&&(Ve=te-(ot.top+ot.bottom)/2,Me=X.l-a.bulletPadding*X.w)}else Ve=re._numbersTop-et-ot.bottom;return v(Me,Ve)})})};function x(D,N,k,O){var F=k[0].trace,z=O.gauge,B=O.layer,W=O.gaugeBg,J=O.gaugeOutline,re=O.size,ne=F.domain,le=O.transitionOpts,$=O.onComplete,Z,ie,X,Q,oe;z.enter().append("g").classed("bullet",!0),z.attr("transform",v(re.l,re.t)),B.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),B.selectAll("g.xbulletaxistick,path,text").remove();var Y=re.h,j=F.gauge.bar.thickness*Y,se=ne.x[0],te=ne.x[0]+(ne.x[1]-ne.x[0])*(F._hasNumber||F._hasDelta?1-a.bulletNumberDomainSize:1);Z=A(D,F.gauge.axis),Z._id="xbulletaxis",Z.domain=[se,te],Z.setScale(),ie=f.calcTicks(Z),X=f.makeTransTickFn(Z),Q=f.getTickSigns(Z)[2],oe=re.t+re.h,Z.visible&&(f.drawTicks(D,Z,{vals:Z.ticks==="inside"?f.clipEnds(Z,ie):ie,layer:B,path:f.makeTickPath(Z,oe,Q),transFn:X}),f.drawLabels(D,Z,{vals:ie,layer:B,transFn:X,labelFns:f.makeLabelFns(Z,oe)}));function fe(Te){Te.attr("width",function(Re){return Math.max(0,Z.c2p(Re.range[1])-Z.c2p(Re.range[0]))}).attr("x",function(Re){return Z.c2p(Re.range[0])}).attr("y",function(Re){return .5*(1-Re.thickness)*Y}).attr("height",function(Re){return Re.thickness*Y})}var ge=[W].concat(F.gauge.steps),be=z.selectAll("g.bg-bullet").data(ge);be.enter().append("g").classed("bg-bullet",!0).append("rect"),be.select("rect").call(fe).call(y),be.exit().remove();var xe=z.selectAll("g.value-bullet").data([F.gauge.bar]);xe.enter().append("g").classed("value-bullet",!0).append("rect"),xe.select("rect").attr("height",j).attr("y",(Y-j)/2).call(y),d(le)?xe.select("rect").transition().duration(le.duration).ease(le.easing).each("end",function(){$&&$()}).each("interrupt",function(){$&&$()}).attr("width",Math.max(0,Z.c2p(Math.min(F.gauge.axis.range[1],k[0].y)))):xe.select("rect").attr("width",typeof k[0].y=="number"?Math.max(0,Z.c2p(Math.min(F.gauge.axis.range[1],k[0].y))):0),xe.exit().remove();var _e=k.filter(function(){return F.gauge.threshold.value||F.gauge.threshold.value===0}),De=z.selectAll("g.threshold-bullet").data(_e);De.enter().append("g").classed("threshold-bullet",!0).append("line"),De.select("line").attr("x1",Z.c2p(F.gauge.threshold.value)).attr("x2",Z.c2p(F.gauge.threshold.value)).attr("y1",(1-F.gauge.threshold.thickness)/2*Y).attr("y2",(1-(1-F.gauge.threshold.thickness)/2)*Y).call(h.stroke,F.gauge.threshold.line.color).style("stroke-width",F.gauge.threshold.line.width),De.exit().remove();var Fe=z.selectAll("g.gauge-outline").data([J]);Fe.enter().append("g").classed("gauge-outline",!0).append("rect"),Fe.select("rect").call(fe).call(y),Fe.exit().remove()}function w(D,N,k,O){var F=k[0].trace,z=O.size,B=O.radius,W=O.innerRadius,J=O.gaugeBg,re=O.gaugeOutline,ne=[z.l+z.w/2,z.t+z.h/2+B/2],le=O.gauge,$=O.layer,Z=O.transitionOpts,ie=O.onComplete,X=Math.PI/2;function Q($e){var ht=F.gauge.axis.range[0],vt=F.gauge.axis.range[1],pt=($e-ht)/(vt-ht)*Math.PI-X;return pt<-X?-X:pt>X?X:pt}function oe($e){return m.svg.arc().innerRadius((W+B)/2-$e/2*(B-W)).outerRadius((W+B)/2+$e/2*(B-W)).startAngle(-X)}function Y($e){$e.attr("d",function(ht){return oe(ht.thickness).startAngle(Q(ht.range[0])).endAngle(Q(ht.range[1]))()})}var j,se,te,fe;le.enter().append("g").classed("angular",!0),le.attr("transform",v(ne[0],ne[1])),$.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),$.selectAll("g.xangularaxistick,path,text").remove(),j=A(D,F.gauge.axis),j.type="linear",j.range=F.gauge.axis.range,j._id="xangularaxis",j.ticklabeloverflow="allow",j.setScale();var ge=function($e){return(j.range[0]-$e.x)/(j.range[1]-j.range[0])*Math.PI+Math.PI},be={},xe=f.makeLabelFns(j,0),_e=xe.labelStandoff;be.xFn=function($e){var ht=ge($e);return Math.cos(ht)*_e},be.yFn=function($e){var ht=ge($e),vt=Math.sin(ht)>0?.2:1;return-Math.sin(ht)*(_e+$e.fontSize*vt)+Math.abs(Math.cos(ht))*($e.fontSize*r)},be.anchorFn=function($e){var ht=ge($e),vt=Math.cos(ht);return Math.abs(vt)<.1?"middle":vt>0?"start":"end"},be.heightFn=function($e,ht,vt){var pt=ge($e);return-.5*(1+Math.sin(pt))*vt};var De=function($e){return v(ne[0]+B*Math.cos($e),ne[1]-B*Math.sin($e))};te=function($e){return De(ge($e))};var Fe=function($e){var ht=ge($e);return De(ht)+"rotate("+-p(ht)+")"};if(se=f.calcTicks(j),fe=f.getTickSigns(j)[2],j.visible){fe=j.ticks==="inside"?-1:1;var Te=(j.linewidth||1)/2;f.drawTicks(D,j,{vals:se,layer:$,path:"M"+fe*Te+",0h"+fe*j.ticklen,transFn:Fe}),f.drawLabels(D,j,{vals:se,layer:$,transFn:te,labelFns:be})}var Re=[J].concat(F.gauge.steps),Se=le.selectAll("g.bg-arc").data(Re);Se.enter().append("g").classed("bg-arc",!0).append("path"),Se.select("path").call(Y).call(y),Se.exit().remove();var Ie=oe(F.gauge.bar.thickness),Me=le.selectAll("g.value-arc").data([F.gauge.bar]);Me.enter().append("g").classed("value-arc",!0).append("path");var Ve=Me.select("path");d(Z)?(Ve.transition().duration(Z.duration).ease(Z.easing).each("end",function(){ie&&ie()}).each("interrupt",function(){ie&&ie()}).attrTween("d",E(Ie,Q(k[0].lastY),Q(k[0].y))),F._lastValue=k[0].y):Ve.attr("d",typeof k[0].y=="number"?Ie.endAngle(Q(k[0].y)):"M0,0Z"),Ve.call(y),Me.exit().remove(),Re=[];var et=F.gauge.threshold.value;(et||et===0)&&Re.push({range:[et,et],color:F.gauge.threshold.color,line:{color:F.gauge.threshold.line.color,width:F.gauge.threshold.line.width},thickness:F.gauge.threshold.thickness});var ot=le.selectAll("g.threshold-arc").data(Re);ot.enter().append("g").classed("threshold-arc",!0).append("path"),ot.select("path").call(Y).call(y),ot.exit().remove();var Qe=le.selectAll("g.gauge-outline").data([re]);Qe.enter().append("g").classed("gauge-outline",!0).append("path"),Qe.select("path").call(Y).call(y),Qe.exit().remove()}function C(D,N,k,O){var F=k[0].trace,z=O.numbersX,B=O.numbersY,W=F.align||"center",J=T[W],re=O.transitionOpts,ne=O.onComplete,le=L.ensureSingle(N,"g","numbers"),$,Z,ie,X=[];F._hasNumber&&X.push("number"),F._hasDelta&&(X.push("delta"),F.delta.position==="left"&&X.reverse());var Q=le.selectAll("text").data(X);Q.enter().append("text"),Q.attr("text-anchor",function(){return J}).attr("class",function(De){return De}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),Q.exit().remove();function oe(De,Fe,Te,Re){if(De.match("s")&&Te>=0!=Re>=0&&!Fe(Te).slice(-1).match(i)&&!Fe(Re).slice(-1).match(i)){var Se=De.slice().replace("s","f").replace(/\d+/,function(Me){return parseInt(Me)-1}),Ie=A(D,{tickformat:Se});return function(Me){return Math.abs(Me)<1?f.tickText(Ie,Me).text:Fe(Me)}}else return Fe}function Y(){var De=A(D,{tickformat:F.number.valueformat},F._range);De.setScale(),f.prepTicks(De);var Fe=function(Me){return f.tickText(De,Me).text},Te=F.number.suffix,Re=F.number.prefix,Se=le.select("text.number");function Ie(){var Me=typeof k[0].y=="number"?Re+Fe(k[0].y)+Te:"-";Se.text(Me).call(t.font,F.number.font).call(n.convertToTspans,D)}return d(re)?Se.transition().duration(re.duration).ease(re.easing).each("end",function(){Ie(),ne&&ne()}).each("interrupt",function(){Ie(),ne&&ne()}).attrTween("text",function(){var Me=m.select(this),Ve=s(k[0].lastY,k[0].y);F._lastValue=k[0].y;var et=oe(F.number.valueformat,Fe,k[0].lastY,k[0].y);return function(ot){Me.text(Re+et(Ve(ot))+Te)}}):Ie(),$=b(Re+Fe(k[0].y)+Te,F.number.font,J,D),Se}function j(){var De=A(D,{tickformat:F.delta.valueformat},F._range);De.setScale(),f.prepTicks(De);var Fe=function(ot){return f.tickText(De,ot).text},Te=F.delta.suffix,Re=F.delta.prefix,Se=function(ot){var Qe=F.delta.relative?ot.relativeDelta:ot.delta;return Qe},Ie=function(ot,Qe){return ot===0||typeof ot!="number"||isNaN(ot)?"-":(ot>0?F.delta.increasing.symbol:F.delta.decreasing.symbol)+Re+Qe(ot)+Te},Me=function(ot){return ot.delta>=0?F.delta.increasing.color:F.delta.decreasing.color};F._deltaLastValue===void 0&&(F._deltaLastValue=Se(k[0]));var Ve=le.select("text.delta");Ve.call(t.font,F.delta.font).call(h.fill,Me({delta:F._deltaLastValue}));function et(){Ve.text(Ie(Se(k[0]),Fe)).call(h.fill,Me(k[0])).call(n.convertToTspans,D)}return d(re)?Ve.transition().duration(re.duration).ease(re.easing).tween("text",function(){var ot=m.select(this),Qe=Se(k[0]),$e=F._deltaLastValue,ht=oe(F.delta.valueformat,Fe,$e,Qe),vt=s($e,Qe);return F._deltaLastValue=Qe,function(pt){ot.text(Ie(vt(pt),ht)),ot.call(h.fill,Me({delta:vt(pt)}))}}).each("end",function(){et(),ne&&ne()}).each("interrupt",function(){et(),ne&&ne()}):et(),Z=b(Ie(Se(k[0]),Fe),F.delta.font,J,D),Ve}var se=F.mode+F.align,te;if(F._hasDelta&&(te=j(),se+=F.delta.position+F.delta.font.size+F.delta.font.family+F.delta.valueformat,se+=F.delta.increasing.symbol+F.delta.decreasing.symbol,ie=Z),F._hasNumber&&(Y(),se+=F.number.font.size+F.number.font.family+F.number.valueformat+F.number.suffix+F.number.prefix,ie=$),F._hasDelta&&F._hasNumber){var fe=[($.left+$.right)/2,($.top+$.bottom)/2],ge=[(Z.left+Z.right)/2,(Z.top+Z.bottom)/2],be,xe,_e=.75*F.delta.font.size;F.delta.position==="left"&&(be=I(F,"deltaPos",0,-1*($.width*c[F.align]+Z.width*(1-c[F.align])+_e),se,Math.min),xe=fe[1]-ge[1],ie={width:$.width+Z.width+_e,height:Math.max($.height,Z.height),left:Z.left+be,right:$.right,top:Math.min($.top,Z.top+xe),bottom:Math.max($.bottom,Z.bottom+xe)}),F.delta.position==="right"&&(be=I(F,"deltaPos",0,$.width*(1-c[F.align])+Z.width*c[F.align]+_e,se,Math.max),xe=fe[1]-ge[1],ie={width:$.width+Z.width+_e,height:Math.max($.height,Z.height),left:$.left,right:Z.right+be,top:Math.min($.top,Z.top+xe),bottom:Math.max($.bottom,Z.bottom+xe)}),F.delta.position==="bottom"&&(be=null,xe=Z.height,ie={width:Math.max($.width,Z.width),height:$.height+Z.height,left:Math.min($.left,Z.left),right:Math.max($.right,Z.right),top:$.bottom-$.height,bottom:$.bottom+Z.height}),F.delta.position==="top"&&(be=null,xe=$.top,ie={width:Math.max($.width,Z.width),height:$.height+Z.height,left:Math.min($.left,Z.left),right:Math.max($.right,Z.right),top:$.bottom-$.height-Z.height,bottom:$.bottom}),te.attr({dx:be,dy:xe})}(F._hasNumber||F._hasDelta)&&le.attr("transform",function(){var De=O.numbersScaler(ie);se+=De[2];var Fe=I(F,"numbersScale",1,De[0],se,Math.min),Te;F._scaleNumbers||(Fe=1),F._isAngular?Te=B-Fe*ie.bottom:Te=B-Fe*(ie.top+ie.bottom)/2,F._numbersTop=Fe*ie.top+Te;var Re=ie[W];W==="center"&&(Re=(ie.left+ie.right)/2);var Se=z-Fe*Re;return Se=I(F,"numbersTranslate",0,Se,se,Math.max),v(Se,Te)+S(Fe)})}function y(D){D.each(function(N){h.stroke(m.select(this),N.line.color)}).each(function(N){h.fill(m.select(this),N.color)}).style("stroke-width",function(N){return N.line.width})}function E(D,N,k){return function(){var O=P(N,k);return function(F){return D.endAngle(O(F))()}}}function A(D,N,k){var O=D._fullLayout,F=L.extendFlat({type:"linear",ticks:"outside",range:k,showline:!0},N),z={type:"linear",_id:"x"+N._id},B={letter:"x",font:O.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function W(J,re){return L.coerce(F,z,g,J,re)}return u(F,z,W,B,O),l(F,z,W,B),z}function o(D,N,k){var O=Math.min(N/D.width,k/D.height);return[O,D,N+"x"+k]}function M(D,N){var k=Math.sqrt(D.width/2*(D.width/2)+D.height*D.height),O=N/k;return[O,D,N]}function b(D,N,k,O){var F=document.createElementNS("http://www.w3.org/2000/svg","text"),z=m.select(F);return z.text(D).attr("x",0).attr("y",0).attr("text-anchor",k).attr("data-unformatted",D).call(n.convertToTspans,O).call(t.font,N),t.bBox(z.node())}function I(D,N,k,O,F,z){var B="_cache"+N;D[B]&&D[B].key===F||(D[B]={key:F,value:k});var W=L.aggNums(z,null,[D[B].value,O],2);return D[B].value=W,W}},50048:function(G,H,e){var m=e(49084),P=e(29736).axisHoverFormat,s=e(21776).Ks,L=e(52948),S=e(45464),v=e(92880).extendFlat,p=e(67824).overrideAll;function r(n){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function t(n){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var a=G.exports=p(v({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:r(),y:r(),z:r()},caps:{x:t(),y:t(),z:t()},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:s(),xhoverformat:P("x"),yhoverformat:P("y"),zhoverformat:P("z"),valuehoverformat:P("value",1),showlegend:v({},S.showlegend,{dflt:!1})},m("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:L.opacity,lightposition:L.lightposition,lighting:L.lighting,flatshading:L.flatshading,contour:L.contour,hoverinfo:v({},S.hoverinfo)}),"calc","nested");a.flatshading.dflt=!0,a.lighting.facenormalsepsilon.dflt=0,a.x.editType=a.y.editType=a.z.editType=a.value.editType="calc+clearAxisTypes",a.transforms=void 0},62624:function(G,H,e){var m=e(47128),P=e(3832).processGrid,s=e(3832).filter;G.exports=function(S,v){v._len=Math.min(v.x.length,v.y.length,v.z.length,v.value.length),v._x=s(v.x,v._len),v._y=s(v.y,v._len),v._z=s(v.z,v._len),v._value=s(v.value,v._len);var p=P(v);v._gridFill=p.fill,v._Xs=p.Xs,v._Ys=p.Ys,v._Zs=p.Zs,v._len=p.len;for(var r=1/0,t=-1/0,a=0;a0;g--){var h=Math.min(l[g],l[g-1]),T=Math.max(l[g],l[g-1]);if(T>h&&h-1}function j(We,Ge){return We===null?Ge:We}function se(We,Ge,Le){re();var Pe=[Ge],je=[Le];if(X>=1)Pe=[Ge],je=[Le];else if(X>0){var Ce=oe(Ge,Le);Pe=Ce.xyzv,je=Ce.abc}for(var he=0;he-1?Le[Ne]:J(Ze,st,lt);Zt>-1?me[Ne]=Zt:me[Ne]=le(Ze,st,lt,j(We,Wt))}$(me[0],me[1],me[2])}}function te(We,Ge,Le){var Pe=function(je,Ce,he){se(We,[Ge[je],Ge[Ce],Ge[he]],[Le[je],Le[Ce],Le[he]])};Pe(0,1,2),Pe(2,3,0)}function fe(We,Ge,Le){var Pe=function(je,Ce,he){se(We,[Ge[je],Ge[Ce],Ge[he]],[Le[je],Le[Ce],Le[he]])};Pe(0,1,2),Pe(3,0,1),Pe(2,3,0),Pe(1,2,3)}function ge(We,Ge,Le,Pe){var je=We[3];jePe&&(je=Pe);for(var Ce=(We[3]-je)/(We[3]-Ge[3]+1e-9),he=[],me=0;me<4;me++)he[me]=(1-Ce)*We[me]+Ce*Ge[me];return he}function be(We,Ge,Le){return We>=Ge&&We<=Le}function xe(We){var Ge=.001*(O-k);return We>=k-Ge&&We<=O+Ge}function _e(We){for(var Ge=[],Le=0;Le<4;Le++){var Pe=We[Le];Ge.push([u._x[Pe],u._y[Pe],u._z[Pe],u._value[Pe]])}return Ge}var De=3;function Fe(We,Ge,Le,Pe,je,Ce){Ce||(Ce=1),Le=[-1,-1,-1];var he=!1,me=[be(Ge[0][3],Pe,je),be(Ge[1][3],Pe,je),be(Ge[2][3],Pe,je)];if(!me[0]&&!me[1]&&!me[2])return!1;var Ne=function(st,lt,Wt){return xe(lt[0][3])&&xe(lt[1][3])&&xe(lt[2][3])?(se(st,lt,Wt),!0):Ceme?[D,Ce]:[Ce,N];vt(Ge,Ne[0],Ne[1])}}var Ze=[[Math.min(k,N),Math.max(k,N)],[Math.min(D,O),Math.max(D,O)]];["x","y","z"].forEach(function(st){for(var lt=[],Wt=0;Wt0&&(gt.push(yr.id),st==="x"?Kt.push([yr.distRatio,0,0]):st==="y"?Kt.push([0,yr.distRatio,0]):Kt.push([0,0,yr.distRatio]))}else st==="x"?gr=rt(1,A-1):st==="y"?gr=rt(1,o-1):gr=rt(1,M-1);gt.length>0&&(st==="x"?lt[Zt]=pt(We,gt,Tt,Rt,Kt,lt[Zt]):st==="y"?lt[Zt]=wt(We,gt,Tt,Rt,Kt,lt[Zt]):lt[Zt]=Ct(We,gt,Tt,Rt,Kt,lt[Zt]),Zt++),gr.length>0&&(st==="x"?lt[Zt]=et(We,gr,Tt,Rt,lt[Zt]):st==="y"?lt[Zt]=ot(We,gr,Tt,Rt,lt[Zt]):lt[Zt]=Qe(We,gr,Tt,Rt,lt[Zt]),Zt++)}var Ot=u.caps[st];Ot.show&&Ot.fill&&(Q(Ot.fill),st==="x"?lt[Zt]=et(We,[0,A-1],Tt,Rt,lt[Zt]):st==="y"?lt[Zt]=ot(We,[0,o-1],Tt,Rt,lt[Zt]):lt[Zt]=Qe(We,[0,M-1],Tt,Rt,lt[Zt]),Zt++)}}),d===0&&ne(),u._meshX=F,u._meshY=z,u._meshZ=B,u._meshIntensity=W,u._Xs=C,u._Ys=y,u._Zs=E}return He(),u}function f(u,l){var g=u.glplot.gl,h=m({gl:g}),T=new r(u,h,l.uid);return h._trace=T,T.update(l),u.glplot.add(h),T}G.exports={findNearestOnAxis:p,generateIsoMeshes:n,createIsosurfaceTrace:f}},70548:function(G,H,e){var m=e(3400),P=e(24040),s=e(50048),L=e(27260);function S(p,r,t,a){function n(f,u){return m.coerce(p,r,s,f,u)}v(p,r,t,a,n)}function v(p,r,t,a,n){var f=n("isomin"),u=n("isomax");u!=null&&f!==void 0&&f!==null&&f>u&&(r.isomin=null,r.isomax=null);var l=n("x"),g=n("y"),h=n("z"),T=n("value");if(!l||!l.length||!g||!g.length||!h||!h.length||!T||!T.length){r.visible=!1;return}var c=P.getComponentMethod("calendars","handleTraceDefaults");c(p,r,["x","y","z"],a),n("valuehoverformat"),["x","y","z"].forEach(function(w){n(w+"hoverformat");var C="caps."+w,y=n(C+".show");y&&n(C+".fill");var E="slices."+w,A=n(E+".show");A&&(n(E+".fill"),n(E+".locations"))});var i=n("spaceframe.show");i&&n("spaceframe.fill");var d=n("surface.show");d&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var x=n("contour.show");x&&(n("contour.color"),n("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(w){n(w)}),L(p,r,a,n,{prefix:"",cLetter:"c"}),r._length=null}G.exports={supplyDefaults:S,supplyIsoDefaults:v}},6296:function(G,H,e){G.exports={attributes:e(50048),supplyDefaults:e(70548).supplyDefaults,calc:e(62624),colorbar:{min:"cmin",max:"cmax"},plot:e(31460).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:e(12536),categories:["gl3d","showLegend"],meta:{}}},52948:function(G,H,e){var m=e(49084),P=e(29736).axisHoverFormat,s=e(21776).Ks,L=e(16716),S=e(45464),v=e(92880).extendFlat;G.exports=v({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:s({editType:"calc"}),xhoverformat:P("x"),yhoverformat:P("y"),zhoverformat:P("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},m("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:L.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:v({},L.contours.x.show,{}),color:L.contours.x.color,width:L.contours.x.width,editType:"calc"},lightposition:{x:v({},L.lightposition.x,{dflt:1e5}),y:v({},L.lightposition.y,{dflt:1e5}),z:v({},L.lightposition.z,{dflt:0}),editType:"calc"},lighting:v({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},L.lighting),hoverinfo:v({},S.hoverinfo,{editType:"calc"}),showlegend:v({},S.showlegend,{dflt:!1})})},1876:function(G,H,e){var m=e(47128);G.exports=function(s,L){L.intensity&&m(s,L,{vals:L.intensity,containerStr:"",cLetter:"c"})}},576:function(G,H,e){var m=e(67792).gl_mesh3d,P=e(67792).delaunay_triangulate,s=e(67792).alpha_shape,L=e(67792).convex_hull,S=e(33040).parseColorScale,v=e(3400).isArrayOrTypedArray,p=e(43080),r=e(8932).extractOpts,t=e(52094);function a(c,i,d){this.scene=c,this.uid=d,this.mesh=i,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var n=a.prototype;n.handlePick=function(c){if(c.object===this.mesh){var i=c.index=c.data.index;c.data._cellCenter?c.traceCoordinate=c.data.dataCoordinate:c.traceCoordinate=[this.data.x[i],this.data.y[i],this.data.z[i]];var d=this.data.hovertext||this.data.text;return v(d)&&d[i]!==void 0?c.textLabel=d[i]:d&&(c.textLabel=d),!0}};function f(c){for(var i=[],d=c.length,x=0;x=i-.5)return!1;return!0}n.update=function(c){var i=this.scene,d=i.fullSceneLayout;this.data=c;var x=c.x.length,w=t(u(d.xaxis,c.x,i.dataScale[0],c.xcalendar),u(d.yaxis,c.y,i.dataScale[1],c.ycalendar),u(d.zaxis,c.z,i.dataScale[2],c.zcalendar)),C;if(c.i&&c.j&&c.k){if(c.i.length!==c.j.length||c.j.length!==c.k.length||!h(c.i,x)||!h(c.j,x)||!h(c.k,x))return;C=t(l(c.i),l(c.j),l(c.k))}else c.alphahull===0?C=L(w):c.alphahull>0?C=s(c.alphahull,w):C=g(c.delaunayaxis,w);var y={positions:w,cells:C,lightPosition:[c.lightposition.x,c.lightposition.y,c.lightposition.z],ambient:c.lighting.ambient,diffuse:c.lighting.diffuse,specular:c.lighting.specular,roughness:c.lighting.roughness,fresnel:c.lighting.fresnel,vertexNormalsEpsilon:c.lighting.vertexnormalsepsilon,faceNormalsEpsilon:c.lighting.facenormalsepsilon,opacity:c.opacity,contourEnable:c.contour.show,contourColor:p(c.contour.color).slice(0,3),contourWidth:c.contour.width,useFacetNormals:c.flatshading};if(c.intensity){var E=r(c);this.color="#fff";var A=c.intensitymode;y[A+"Intensity"]=c.intensity,y[A+"IntensityBounds"]=[E.min,E.max],y.colormap=S(c)}else c.vertexcolor?(this.color=c.vertexcolor[0],y.vertexColors=f(c.vertexcolor)):c.facecolor?(this.color=c.facecolor[0],y.cellColors=f(c.facecolor)):(this.color=c.color,y.meshColor=p(c.color));this.mesh.update(y)},n.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function T(c,i){var d=c.glplot.gl,x=m({gl:d}),w=new a(c,x,i.uid);return x._trace=w,w.update(i),c.glplot.add(x),w}G.exports=T},74212:function(G,H,e){var m=e(24040),P=e(3400),s=e(27260),L=e(52948);G.exports=function(v,p,r,t){function a(g,h){return P.coerce(v,p,L,g,h)}function n(g){var h=g.map(function(T){var c=a(T);return c&&P.isArrayOrTypedArray(c)?c:null});return h.every(function(T){return T&&T.length===h[0].length})&&h}var f=n(["x","y","z"]);if(!f){p.visible=!1;return}if(n(["i","j","k"]),p.i&&(!p.j||!p.k)||p.j&&(!p.k||!p.i)||p.k&&(!p.i||!p.j)){p.visible=!1;return}var u=m.getComponentMethod("calendars","handleTraceDefaults");u(v,p,["x","y","z"],t),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(g){a(g)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in v?(a("intensity"),a("intensitymode"),s(v,p,t,a,{prefix:"",cLetter:"c"})):(p.showscale=!1,"facecolor"in v?a("facecolor"):"vertexcolor"in v?a("vertexcolor"):a("color",r)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),p._length=null}},7404:function(G,H,e){G.exports={attributes:e(52948),supplyDefaults:e(74212),calc:e(1876),colorbar:{min:"cmin",max:"cmax"},plot:e(576),moduleType:"trace",name:"mesh3d",basePlotModule:e(12536),categories:["gl3d","showLegend"],meta:{}}},20279:function(G,H,e){var m=e(3400).extendFlat,P=e(52904),s=e(29736).axisHoverFormat,L=e(98192).u,S=e(55756),v=e(48164),p=v.INCREASING.COLOR,r=v.DECREASING.COLOR,t=P.line;function a(n){return{line:{color:m({},t.color,{dflt:n}),width:t.width,dash:L,editType:"style"},editType:"style"}}G.exports={xperiod:P.xperiod,xperiod0:P.xperiod0,xperiodalignment:P.xperiodalignment,xhoverformat:s("x"),yhoverformat:s("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:m({},t.width,{}),dash:m({},L,{}),editType:"style"},increasing:a(p),decreasing:a(r),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:m({},S.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:P.zorder}},42812:function(G,H,e){var m=e(3400),P=m._,s=e(54460),L=e(1220),S=e(39032).BADNUM;function v(a,n){var f=s.getFromId(a,n.xaxis),u=s.getFromId(a,n.yaxis),l=t(a,f,n),g=n._minDiff;n._minDiff=null;var h=n._origX;n._origX=null;var T=n._xcalc;n._xcalc=null;var c=r(a,n,h,T,u,p);return n._extremes[f._id]=s.findExtremes(f,T,{vpad:g/2}),c.length?(m.extendFlat(c[0].t,{wHover:g/2,tickLen:l}),c):[{t:{empty:!0}}]}function p(a,n,f,u){return{o:a,h:n,l:f,c:u}}function r(a,n,f,u,l,g){for(var h=l.makeCalcdata(n,"open"),T=l.makeCalcdata(n,"high"),c=l.makeCalcdata(n,"low"),i=l.makeCalcdata(n,"close"),d=m.isArrayOrTypedArray(n.text),x=m.isArrayOrTypedArray(n.hovertext),w=!0,C=null,y=!!n.xperiodalignment,E=[],A=0;AC):w=D>M,C=D;var N=g(M,b,I,D);N.pos=o,N.yc=(M+D)/2,N.i=A,N.dir=w?"increasing":"decreasing",N.x=N.pos,N.y=[I,b],y&&(N.orig_p=f[A]),d&&(N.tx=n.text[A]),x&&(N.htx=n.hovertext[A]),E.push(N)}else E.push({pos:o,empty:!0})}return n._extremes[l._id]=s.findExtremes(l,m.concat(c,T),{padded:!0}),E.length&&(E[0].t={labels:{open:P(a,"open:")+" ",high:P(a,"high:")+" ",low:P(a,"low:")+" ",close:P(a,"close:")+" "}}),E}function t(a,n,f){var u=f._minDiff;if(!u){var l=a._fullData,g=[];u=1/0;var h;for(h=0;h"+i.labels[D]+m.hoverLabelText(T,N,c.yhoverformat)):(O=P.extendFlat({},x),O.y0=O.y1=k,O.yLabelVal=N,O.yLabel=i.labels[D]+m.hoverLabelText(T,N,c.yhoverformat),O.name="",d.push(O),b[N]=O)}return d}function n(f,u,l,g){var h=f.cd,T=f.ya,c=h[0].trace,i=h[0].t,d=t(f,u,l,g);if(!d)return[];var x=d.index,w=h[x],C=d.index=w.i,y=w.dir;function E(N){return i.labels[N]+m.hoverLabelText(T,c[N][C],c.yhoverformat)}var A=w.hi||c.hoverinfo,o=A.split("+"),M=A==="all",b=M||o.indexOf("y")!==-1,I=M||o.indexOf("text")!==-1,D=b?[E("open"),E("high"),E("low"),E("close")+" "+p[y]]:[];return I&&S(w,c,D),d.extraText=D.join("
"),d.y0=d.y1=T.c2p(w.yc,!0),[d]}G.exports={hoverPoints:r,hoverSplit:a,hoverOnPoints:n}},65456:function(G,H,e){G.exports={moduleType:"trace",name:"ohlc",basePlotModule:e(57952),categories:["cartesian","svg","showLegend"],meta:{},attributes:e(20279),supplyDefaults:e(23860),calc:e(42812).calc,plot:e(36664),style:e(14008),hoverPoints:e(18720).hoverPoints,selectPoints:e(97384)}},52744:function(G,H,e){var m=e(24040),P=e(3400);G.exports=function(L,S,v,p){var r=v("x"),t=v("open"),a=v("high"),n=v("low"),f=v("close");v("hoverlabel.split");var u=m.getComponentMethod("calendars","handleTraceDefaults");if(u(L,S,["x"],p),!!(t&&a&&n&&f)){var l=Math.min(t.length,a.length,n.length,f.length);return r&&(l=Math.min(l,P.minRowLength(r))),S._length=l,l}}},36664:function(G,H,e){var m=e(33428),P=e(3400);G.exports=function(L,S,v,p){var r=S.yaxis,t=S.xaxis,a=!!t.rangebreaks;P.makeTraceGroups(p,v,"trace ohlc").each(function(n){var f=m.select(this),u=n[0],l=u.t,g=u.trace;if(g.visible!==!0||l.empty){f.remove();return}var h=l.tickLen,T=f.selectAll("path").data(P.identity);T.enter().append("path"),T.exit().remove(),T.attr("d",function(c){if(c.empty)return"M0,0Z";var i=t.c2p(c.pos-h,!0),d=t.c2p(c.pos+h,!0),x=a?(i+d)/2:t.c2p(c.pos,!0),w=r.c2p(c.o,!0),C=r.c2p(c.h,!0),y=r.c2p(c.l,!0),E=r.c2p(c.c,!0);return"M"+i+","+w+"H"+x+"M"+x+","+C+"V"+y+"M"+d+","+E+"H"+x})})}},97384:function(G){G.exports=function(e,m){var P=e.cd,s=e.xaxis,L=e.yaxis,S=[],v,p=P[0].t.bPos||0;if(m===!1)for(v=0;v=c.length||i[c[d]]!==void 0)return!1;i[c[d]]=!0}return!0}},76671:function(G,H,e){var m=e(3400),P=e(94288).hasColorscale,s=e(27260),L=e(86968).Q,S=e(51272),v=e(72140),p=e(26284),r=e(38116).isTypedArraySpec;function t(n,f,u,l,g){g("line.shape"),g("line.hovertemplate");var h=g("line.color",l.colorway[0]);if(P(n,"line")&&m.isArrayOrTypedArray(h)){if(h.length)return g("line.colorscale"),s(n,f,l,g,{prefix:"line.",cLetter:"c"}),h.length;f.line.color=u}return 1/0}function a(n,f){function u(d,x){return m.coerce(n,f,v.dimensions,d,x)}var l=u("values"),g=u("visible");if(l&&l.length||(g=f.visible=!1),g){u("label"),u("displayindex",f._index);var h=n.categoryarray,T=m.isArrayOrTypedArray(h)&&h.length>0||r(h),c;T&&(c="array");var i=u("categoryorder",c);i==="array"?(u("categoryarray"),u("ticktext")):(delete n.categoryarray,delete n.ticktext),!T&&i==="array"&&(f.categoryorder="trace")}}G.exports=function(f,u,l,g){function h(d,x){return m.coerce(f,u,v,d,x)}var T=S(f,u,{name:"dimensions",handleItemDefaults:a}),c=t(f,u,l,g,h);L(u,g,h),(!Array.isArray(T)||!T.length)&&(u.visible=!1),p(u,T,"values",c),h("hoveron"),h("hovertemplate"),h("arrangement"),h("bundlecolors"),h("sortpaths"),h("counts");var i=g.font;m.coerceFont(h,"labelfont",i,{overrideDflt:{size:Math.round(i.size)}}),m.coerceFont(h,"tickfont",i,{autoShadowDflt:!0,overrideDflt:{size:Math.round(i.size/1.2)}})}},22020:function(G,H,e){G.exports={attributes:e(72140),supplyDefaults:e(76671),calc:e(69136),plot:e(60268),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:e(91800),categories:["noOpacity"],meta:{}}},51036:function(G,H,e){var m=e(33428),P=e(67756).Gz,s=e(36424),L=e(93024),S=e(3400),v=S.strTranslate,p=e(43616),r=e(49760),t=e(72736);function a(X,Q,oe,Y){var j=Q._context.staticPlot,se=X.map(ne.bind(0,Q,oe)),te=Y.selectAll("g.parcatslayer").data([null]);te.enter().append("g").attr("class","parcatslayer").style("pointer-events",j?"none":"all");var fe=te.selectAll("g.trace.parcats").data(se,n),ge=fe.enter().append("g").attr("class","trace parcats");fe.attr("transform",function(Me){return v(Me.x,Me.y)}),ge.append("g").attr("class","paths");var be=fe.select("g.paths"),xe=be.selectAll("path.path").data(function(Me){return Me.paths},n);xe.attr("fill",function(Me){return Me.model.color});var _e=xe.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(Me){return Me.model.color}).attr("fill-opacity",0);i(_e),xe.attr("d",function(Me){return Me.svgD}),_e.empty()||xe.sort(u),xe.exit().remove(),xe.on("mouseover",l).on("mouseout",g).on("click",c),ge.append("g").attr("class","dimensions");var De=fe.select("g.dimensions"),Fe=De.selectAll("g.dimension").data(function(Me){return Me.dimensions},n);Fe.enter().append("g").attr("class","dimension"),Fe.attr("transform",function(Me){return v(Me.x,0)}),Fe.exit().remove();var Te=Fe.selectAll("g.category").data(function(Me){return Me.categories},n),Re=Te.enter().append("g").attr("class","category");Te.attr("transform",function(Me){return v(0,Me.y)}),Re.append("rect").attr("class","catrect").attr("pointer-events","none"),Te.select("rect.catrect").attr("fill","none").attr("width",function(Me){return Me.width}).attr("height",function(Me){return Me.height}),w(Re);var Se=Te.selectAll("rect.bandrect").data(function(Me){return Me.bands},n);Se.each(function(){S.raiseToTop(this)}),Se.attr("fill",function(Me){return Me.color});var Ie=Se.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(Me){return Me.color}).attr("fill-opacity",0);Se.attr("fill",function(Me){return Me.color}).attr("width",function(Me){return Me.width}).attr("height",function(Me){return Me.height}).attr("y",function(Me){return Me.y}).attr("cursor",function(Me){return Me.parcatsViewModel.arrangement==="fixed"?"default":Me.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),y(Ie),Se.exit().remove(),Re.append("text").attr("class","catlabel").attr("pointer-events","none"),Te.select("text.catlabel").attr("text-anchor",function(Me){return f(Me)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(Me){return f(Me)?Me.width+5:-5}).attr("y",function(Me){return Me.height/2}).text(function(Me){return Me.model.categoryLabel}).each(function(Me){p.font(m.select(this),Me.parcatsViewModel.categorylabelfont),t.convertToTspans(m.select(this),Q)}),Re.append("text").attr("class","dimlabel"),Te.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(Me){return Me.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(Me){return Me.width/2}).attr("y",-5).text(function(Me,Ve){return Ve===0?Me.parcatsViewModel.model.dimensions[Me.model.dimensionInd].dimensionLabel:null}).each(function(Me){p.font(m.select(this),Me.parcatsViewModel.labelfont)}),Te.selectAll("rect.bandrect").on("mouseover",k).on("mouseout",O),Te.exit().remove(),Fe.call(m.behavior.drag().origin(function(Me){return{x:Me.x,y:0}}).on("dragstart",F).on("drag",z).on("dragend",B)),fe.each(function(Me){Me.traceSelection=m.select(this),Me.pathSelection=m.select(this).selectAll("g.paths").selectAll("path.path"),Me.dimensionSelection=m.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),fe.exit().remove()}G.exports=function(X,Q,oe,Y){a(oe,X,Y,Q)};function n(X){return X.key}function f(X){var Q=X.parcatsViewModel.dimensions.length,oe=X.parcatsViewModel.dimensions[Q-1].model.dimensionInd;return X.model.dimensionInd===oe}function u(X,Q){return X.model.rawColor>Q.model.rawColor?1:X.model.rawColor"),Qe=m.mouse(j)[0];L.loneHover({trace:se,x:Te-fe.left+ge.left,y:Re-fe.top+ge.top,text:ot,color:X.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:Se,idealAlign:Qe1&&be.displayInd===ge.dimensions.length-1?(De=te.left,Fe="left"):(De=te.left+te.width,Fe="right");var Te=fe.model.count,Re=fe.model.categoryLabel,Se=Te/fe.parcatsViewModel.model.count,Ie={countLabel:Te,categoryLabel:Re,probabilityLabel:Se.toFixed(3)},Me=[];fe.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&Me.push(["Count:",Ie.countLabel].join(" ")),fe.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&Me.push(["P("+Ie.categoryLabel+"):",Ie.probabilityLabel].join(" "));var Ve=Me.join("
");return{trace:xe,x:Y*(De-Q.left),y:j*(_e-Q.top),text:Ve,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:Fe,hovertemplate:xe.hovertemplate,hovertemplateLabels:Ie,eventData:[{data:xe._input,fullData:xe,count:Te,category:Re,probability:Se}]}}function D(X,Q,oe){var Y=[];return m.select(oe.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var j=this;Y.push(I(X,Q,j))}),Y}function N(X,Q,oe){X._fullLayout._calcInverseTransform(X);var Y=X._fullLayout._invScaleX,j=X._fullLayout._invScaleY,se=oe.getBoundingClientRect(),te=m.select(oe).datum(),fe=te.categoryViewModel,ge=fe.parcatsViewModel,be=ge.model.dimensions[fe.model.dimensionInd],xe=ge.trace,_e=se.y+se.height/2,De,Fe;ge.dimensions.length>1&&be.displayInd===ge.dimensions.length-1?(De=se.left,Fe="left"):(De=se.left+se.width,Fe="right");var Te=fe.model.categoryLabel,Re=te.parcatsViewModel.model.count,Se=0;te.categoryViewModel.bands.forEach(function(pt){pt.color===te.color&&(Se+=pt.count)});var Ie=fe.model.count,Me=0;ge.pathSelection.each(function(pt){pt.model.color===te.color&&(Me+=pt.model.count)});var Ve=Se/Re,et=Se/Me,ot=Se/Ie,Qe={countLabel:Se,categoryLabel:Te,probabilityLabel:Ve.toFixed(3)},$e=[];fe.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&$e.push(["Count:",Qe.countLabel].join(" ")),fe.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&($e.push("P(color ∩ "+Te+"): "+Qe.probabilityLabel),$e.push("P("+Te+" | color): "+et.toFixed(3)),$e.push("P(color | "+Te+"): "+ot.toFixed(3)));var ht=$e.join("
"),vt=r.mostReadable(te.color,["black","white"]);return{trace:xe,x:Y*(De-Q.left),y:j*(_e-Q.top),text:ht,color:te.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:vt,fontSize:10,idealAlign:Fe,hovertemplate:xe.hovertemplate,hovertemplateLabels:Qe,eventData:[{data:xe._input,fullData:xe,category:Te,count:Re,probability:Ve,categorycount:Ie,colorcount:Me,bandcolorcount:Se}]}}function k(X){if(!X.parcatsViewModel.dragDimension&&X.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var Q=m.mouse(this)[1];if(Q<-1)return;var oe=X.parcatsViewModel.graphDiv,Y=oe._fullLayout,j=Y._paperdiv.node().getBoundingClientRect(),se=X.parcatsViewModel.hoveron,te=this;if(se==="color"?(o(te),b(te,"plotly_hover",m.event)):(A(te),M(te,"plotly_hover",m.event)),X.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var fe;se==="category"?fe=I(oe,j,te):se==="color"?fe=N(oe,j,te):se==="dimension"&&(fe=D(oe,j,te)),fe&&L.loneHover(fe,{container:Y._hoverlayer.node(),outerContainer:Y._paper.node(),gd:oe})}}}function O(X){var Q=X.parcatsViewModel;if(!Q.dragDimension&&(i(Q.pathSelection),w(Q.dimensionSelection.selectAll("g.category")),y(Q.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),L.loneUnhover(Q.graphDiv._fullLayout._hoverlayer.node()),Q.pathSelection.sort(u),Q.hoverinfoItems.indexOf("skip")===-1)){var oe=X.parcatsViewModel.hoveron,Y=this;oe==="color"?b(Y,"plotly_unhover",m.event):M(Y,"plotly_unhover",m.event)}}function F(X){X.parcatsViewModel.arrangement!=="fixed"&&(X.dragDimensionDisplayInd=X.model.displayInd,X.initialDragDimensionDisplayInds=X.parcatsViewModel.model.dimensions.map(function(Q){return Q.displayInd}),X.dragHasMoved=!1,X.dragCategoryDisplayInd=null,m.select(this).selectAll("g.category").select("rect.catrect").each(function(Q){var oe=m.mouse(this)[0],Y=m.mouse(this)[1];-2<=oe&&oe<=Q.width+2&&-2<=Y&&Y<=Q.height+2&&(X.dragCategoryDisplayInd=Q.model.displayInd,X.initialDragCategoryDisplayInds=X.model.categories.map(function(j){return j.displayInd}),Q.model.dragY=Q.y,S.raiseToTop(this.parentNode),m.select(this.parentNode).selectAll("rect.bandrect").each(function(j){j.yxe.y+xe.height/2&&(se.model.displayInd=xe.model.displayInd,xe.model.displayInd=fe),X.dragCategoryDisplayInd=se.model.displayInd}if(X.dragCategoryDisplayInd===null||X.parcatsViewModel.arrangement==="freeform"){j.model.dragX=m.event.x;var _e=X.parcatsViewModel.dimensions[oe],De=X.parcatsViewModel.dimensions[Y];_e!==void 0&&j.model.dragX<_e.x+_e.width&&(j.model.displayInd=_e.model.displayInd,_e.model.displayInd=Q),De!==void 0&&j.model.dragX+j.width>De.x&&(j.model.displayInd=De.model.displayInd,De.model.displayInd=X.dragDimensionDisplayInd),X.dragDimensionDisplayInd=j.model.displayInd}Z(X.parcatsViewModel),$(X.parcatsViewModel),re(X.parcatsViewModel),J(X.parcatsViewModel)}}function B(X){if(X.parcatsViewModel.arrangement!=="fixed"&&X.dragDimensionDisplayInd!==null){m.select(this).selectAll("text").attr("font-weight","normal");var Q={},oe=W(X.parcatsViewModel),Y=X.parcatsViewModel.model.dimensions.map(function(De){return De.displayInd}),j=X.initialDragDimensionDisplayInds.some(function(De,Fe){return De!==Y[Fe]});j&&Y.forEach(function(De,Fe){var Te=X.parcatsViewModel.model.dimensions[Fe].containerInd;Q["dimensions["+Te+"].displayindex"]=De});var se=!1;if(X.dragCategoryDisplayInd!==null){var te=X.model.categories.map(function(De){return De.displayInd});if(se=X.initialDragCategoryDisplayInds.some(function(De,Fe){return De!==te[Fe]}),se){var fe=X.model.categories.slice().sort(function(De,Fe){return De.displayInd-Fe.displayInd}),ge=fe.map(function(De){return De.categoryValue}),be=fe.map(function(De){return De.categoryLabel});Q["dimensions["+X.model.containerInd+"].categoryarray"]=[ge],Q["dimensions["+X.model.containerInd+"].ticktext"]=[be],Q["dimensions["+X.model.containerInd+"].categoryorder"]="array"}}if(X.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!X.dragHasMoved&&X.potentialClickBand&&(X.parcatsViewModel.hoveron==="color"?b(X.potentialClickBand,"plotly_click",m.event.sourceEvent):M(X.potentialClickBand,"plotly_click",m.event.sourceEvent)),X.model.dragX=null,X.dragCategoryDisplayInd!==null){var xe=X.parcatsViewModel.dimensions[X.dragDimensionDisplayInd].categories[X.dragCategoryDisplayInd];xe.model.dragY=null,X.dragCategoryDisplayInd=null}X.dragDimensionDisplayInd=null,X.parcatsViewModel.dragDimension=null,X.dragHasMoved=null,X.potentialClickBand=null,Z(X.parcatsViewModel),$(X.parcatsViewModel);var _e=m.transition().duration(300).ease("cubic-in-out");_e.each(function(){re(X.parcatsViewModel,!0),J(X.parcatsViewModel,!0)}).each("end",function(){(j||se)&&s.restyle(X.parcatsViewModel.graphDiv,Q,[oe])})}}function W(X){for(var Q,oe=X.graphDiv._fullData,Y=0;Y=0;ge--)be+="C"+te[ge]+","+(Q[ge+1]+Y)+" "+se[ge]+","+(Q[ge]+Y)+" "+(X[ge]+oe[ge])+","+(Q[ge]+Y),be+="l-"+oe[ge]+",0 ";return be+="Z",be}function $(X){var Q=X.dimensions,oe=X.model,Y=Q.map(function(rt){return rt.categories.map(function(ze){return ze.y})}),j=X.model.dimensions.map(function(rt){return rt.categories.map(function(ze){return ze.displayInd})}),se=X.model.dimensions.map(function(rt){return rt.displayInd}),te=X.dimensions.map(function(rt){return rt.model.dimensionInd}),fe=Q.map(function(rt){return rt.x}),ge=Q.map(function(rt){return rt.width}),be=[];for(var xe in oe.paths)oe.paths.hasOwnProperty(xe)&&be.push(oe.paths[xe]);function _e(rt){var ze=rt.categoryInds.map(function(We,Ge){return j[Ge][We]}),He=te.map(function(We){return ze[We]});return He}be.sort(function(rt,ze){var He=_e(rt),We=_e(ze);return X.sortpaths==="backward"&&(He.reverse(),We.reverse()),He.push(rt.valueInds[0]),We.push(ze.valueInds[0]),X.bundlecolors&&(He.unshift(rt.rawColor),We.unshift(ze.rawColor)),HeWe?1:0});for(var De=new Array(be.length),Fe=Q[0].model.count,Te=Q[0].categories.map(function(rt){return rt.height}).reduce(function(rt,ze){return rt+ze}),Re=0;Re0?Ie=Te*(Se.count/Fe):Ie=0;for(var Me=new Array(Y.length),Ve=0;Ve1?te=(X.width-2*oe-Y)/(j-1):te=0,fe=oe,ge=fe+te*se;var be=[],xe=X.model.maxCats,_e=Q.categories.length,De=8,Fe=Q.count,Te=X.height-De*(xe-1),Re,Se,Ie,Me,Ve,et=(xe-_e)*De/2,ot=Q.categories.map(function(Qe){return{displayInd:Qe.displayInd,categoryInd:Qe.categoryInd}});for(ot.sort(function(Qe,$e){return Qe.displayInd-$e.displayInd}),Ve=0;Ve<_e;Ve++)Me=ot[Ve].categoryInd,Se=Q.categories[Me],Fe>0?Re=Se.count/Fe*Te:Re=0,Ie={key:Se.valueInds[0],model:Se,width:Y,height:Re,y:Se.dragY!==null?Se.dragY:et,bands:[],parcatsViewModel:X},et=et+Re+De,be.push(Ie);return{key:Q.dimensionInd,x:Q.dragX!==null?Q.dragX:ge,y:0,width:Y,model:Q,categories:be,parcatsViewModel:X,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}},60268:function(G,H,e){var m=e(51036);G.exports=function(s,L,S,v){var p=s._fullLayout,r=p._paper,t=p._size;m(s,r,L,{width:t.w,height:t.h,margin:{t:t.t,r:t.r,b:t.b,l:t.l}},S,v)}},82296:function(G,H,e){var m=e(49084),P=e(94724),s=e(25376),L=e(86968).u,S=e(92880).extendFlat,v=e(31780).templatedArray;G.exports={domain:L({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:s({editType:"plot"}),tickfont:s({autoShadowDflt:!0,editType:"plot"}),rangefont:s({editType:"plot"}),dimensions:v("dimension",{label:{valType:"string",editType:"plot"},tickvals:S({},P.tickvals,{editType:"plot"}),ticktext:S({},P.ticktext,{editType:"plot"}),tickformat:S({},P.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:S({editType:"calc"},m("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}},71864:function(G,H,e){var m=e(30140),P=e(33428),s=e(71688).keyFun,L=e(71688).repeat,S=e(3400).sorterAsc,v=e(3400).strTranslate,p=m.bar.snapRatio;function r(B,W){return B*(1-p)+W*p}var t=m.bar.snapClose;function a(B,W){return B*(1-t)+W*t}function n(B,W,J,re){if(f(J,re))return J;var ne=B?-1:1,le=0,$=W.length-1;if(ne<0){var Z=le;le=$,$=Z}for(var ie=W[le],X=ie,Q=le;ne*Q=W[J][0]&&B<=W[J][1])return!0;return!1}function u(B){B.attr("x",-m.bar.captureWidth/2).attr("width",m.bar.captureWidth)}function l(B){B.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function g(B){if(!B.brush.filterSpecified)return"0,"+B.height;for(var W=h(B.brush.filter.getConsolidated(),B.height),J=[0],re,ne,le,$=W.length?W[0][0]:null,Z=0;ZB[1]+J||W=.9*B[1]+.1*B[0]?"n":W<=.9*B[0]+.1*B[1]?"s":"ns"}function c(){P.select(document.body).style("cursor",null)}function i(B){B.attr("stroke-dasharray",g)}function d(B,W){var J=P.select(B).selectAll(".highlight, .highlight-shadow"),re=W?J.transition().duration(m.bar.snapDuration).each("end",W):J;i(re)}function x(B,W){var J=B.brush,re=J.filterSpecified,ne=NaN,le={},$;if(re){var Z=B.height,ie=J.filter.getConsolidated(),X=h(ie,Z),Q=NaN,oe=NaN,Y=NaN;for($=0;$<=X.length;$++){var j=X[$];if(j&&j[0]<=W&&W<=j[1]){Q=$;break}else if(oe=$?$-1:NaN,j&&j[0]>W){Y=$;break}}if(ne=Q,isNaN(ne)&&(isNaN(oe)||isNaN(Y)?ne=isNaN(oe)?Y:oe:ne=W-X[oe][1]=be[0]&&ge<=be[1]){le.clickableOrdinalRange=be;break}}}return le}function w(B,W){P.event.sourceEvent.stopPropagation();var J=W.height-P.mouse(B)[1]-2*m.verticalPadding,re=W.unitToPaddedPx.invert(J),ne=W.brush,le=x(W,J),$=le.interval,Z=ne.svgBrush;if(Z.wasDragged=!1,Z.grabbingBar=le.region==="ns",Z.grabbingBar){var ie=$.map(W.unitToPaddedPx);Z.grabPoint=J-ie[0]-m.verticalPadding,Z.barLength=ie[1]-ie[0]}Z.clickableOrdinalRange=le.clickableOrdinalRange,Z.stayingIntervals=W.multiselect&&ne.filterSpecified?ne.filter.getConsolidated():[],$&&(Z.stayingIntervals=Z.stayingIntervals.filter(function(X){return X[0]!==$[0]&&X[1]!==$[1]})),Z.startExtent=le.region?$[le.region==="s"?1:0]:re,W.parent.inBrushDrag=!0,Z.brushStartCallback()}function C(B,W){P.event.sourceEvent.stopPropagation();var J=W.height-P.mouse(B)[1]-2*m.verticalPadding,re=W.brush.svgBrush;re.wasDragged=!0,re._dragging=!0,re.grabbingBar?re.newExtent=[J-re.grabPoint,J+re.barLength-re.grabPoint].map(W.unitToPaddedPx.invert):re.newExtent=[re.startExtent,W.unitToPaddedPx.invert(J)].sort(S),W.brush.filterSpecified=!0,re.extent=re.stayingIntervals.concat([re.newExtent]),re.brushCallback(W),d(B.parentNode)}function y(B,W){var J=W.brush,re=J.filter,ne=J.svgBrush;ne._dragging||(E(B,W),C(B,W),W.brush.svgBrush.wasDragged=!1),ne._dragging=!1;var le=P.event;le.sourceEvent.stopPropagation();var $=ne.grabbingBar;if(ne.grabbingBar=!1,ne.grabLocation=void 0,W.parent.inBrushDrag=!1,c(),!ne.wasDragged){ne.wasDragged=void 0,ne.clickableOrdinalRange?J.filterSpecified&&W.multiselect?ne.extent.push(ne.clickableOrdinalRange):(ne.extent=[ne.clickableOrdinalRange],J.filterSpecified=!0):$?(ne.extent=ne.stayingIntervals,ne.extent.length===0&&D(J)):D(J),ne.brushCallback(W),d(B.parentNode),ne.brushEndCallback(J.filterSpecified?re.getConsolidated():[]);return}var Z=function(){re.set(re.getConsolidated())};if(W.ordinal){var ie=W.unitTickvals;ie[ie.length-1]ne.newExtent[0];ne.extent=ne.stayingIntervals.concat(X?[ne.newExtent]:[]),ne.extent.length||D(J),ne.brushCallback(W),X?d(B.parentNode,Z):(Z(),d(B.parentNode))}else Z();ne.brushEndCallback(J.filterSpecified?re.getConsolidated():[])}function E(B,W){var J=W.height-P.mouse(B)[1]-2*m.verticalPadding,re=x(W,J),ne="crosshair";re.clickableOrdinalRange?ne="pointer":re.region&&(ne=re.region+"-resize"),P.select(document.body).style("cursor",ne)}function A(B){B.on("mousemove",function(W){P.event.preventDefault(),W.parent.inBrushDrag||E(this,W)}).on("mouseleave",function(W){W.parent.inBrushDrag||c()}).call(P.behavior.drag().on("dragstart",function(W){w(this,W)}).on("drag",function(W){C(this,W)}).on("dragend",function(W){y(this,W)}))}function o(B,W){return B[0]-W[0]}function M(B,W,J){var re=J._context.staticPlot,ne=B.selectAll(".background").data(L);ne.enter().append("rect").classed("background",!0).call(u).call(l).style("pointer-events",re?"none":"auto").attr("transform",v(0,m.verticalPadding)),ne.call(A).attr("height",function(Z){return Z.height-m.verticalPadding});var le=B.selectAll(".highlight-shadow").data(L);le.enter().append("line").classed("highlight-shadow",!0).attr("x",-m.bar.width/2).attr("stroke-width",m.bar.width+m.bar.strokeWidth).attr("stroke",W).attr("opacity",m.bar.strokeOpacity).attr("stroke-linecap","butt"),le.attr("y1",function(Z){return Z.height}).call(i);var $=B.selectAll(".highlight").data(L);$.enter().append("line").classed("highlight",!0).attr("x",-m.bar.width/2).attr("stroke-width",m.bar.width-m.bar.strokeWidth).attr("stroke",m.bar.fillColor).attr("opacity",m.bar.fillOpacity).attr("stroke-linecap","butt"),$.attr("y1",function(Z){return Z.height}).call(i)}function b(B,W,J){var re=B.selectAll("."+m.cn.axisBrush).data(L,s);re.enter().append("g").classed(m.cn.axisBrush,!0),M(re,W,J)}function I(B){return B.svgBrush.extent.map(function(W){return W.slice()})}function D(B){B.filterSpecified=!1,B.svgBrush.extent=[[-1/0,1/0]]}function N(B){return function(J){var re=J.brush,ne=I(re),le=ne.slice();re.filter.set(le),B()}}function k(B){for(var W=B.slice(),J=[],re,ne=W.shift();ne;){for(re=ne.slice();(ne=W.shift())&&ne[0]<=re[1];)re[1]=Math.max(re[1],ne[1]);J.push(re)}return J.length===1&&J[0][0]>J[0][1]&&(J=[]),J}function O(){var B=[],W,J;return{set:function(re){B=re.map(function(ne){return ne.slice().sort(S)}).sort(o),B.length===1&&B[0][0]===-1/0&&B[0][1]===1/0&&(B=[[0,-1]]),W=k(B),J=B.reduce(function(ne,le){return[Math.min(ne[0],le[0]),Math.max(ne[1],le[1])]},[1/0,-1/0])},get:function(){return B.slice()},getConsolidated:function(){return W},getBounds:function(){return J}}}function F(B,W,J,re,ne,le){var $=O();return $.set(J),{filter:$,filterSpecified:W,svgBrush:{extent:[],brushStartCallback:re,brushCallback:N(ne),brushEndCallback:le}}}function z(B,W){if(Array.isArray(B[0])?(B=B.map(function(re){return re.sort(S)}),W.multiselect?B=k(B.sort(o)):B=[B[0]]):B=[B.sort(S)],W.tickvals){var J=W.tickvals.slice().sort(S);if(B=B.map(function(re){var ne=[n(0,J,re[0],[]),n(1,J,re[1],[])];if(ne[1]>ne[0])return ne}).filter(function(re){return re}),!B.length)return}return B.length>1?B:B[0]}G.exports={makeBrush:F,ensureAxisBrush:b,cleanRanges:z}},61664:function(G,H,e){G.exports={attributes:e(82296),supplyDefaults:e(60664),calc:e(95044),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:e(19976),categories:["gl","regl","noOpacity","noHover"],meta:{}}},19976:function(G,H,e){var m=e(33428),P=e(84888)._M,s=e(24196),L=e(9616);H.name="parcoords",H.plot=function(S){var v=P(S.calcdata,"parcoords")[0];v.length&&s(S,v)},H.clean=function(S,v,p,r){var t=r._has&&r._has("parcoords"),a=v._has&&v._has("parcoords");t&&!a&&(r._paperdiv.selectAll(".parcoords").remove(),r._glimages.selectAll("*").remove())},H.toSVG=function(S){var v=S._fullLayout._glimages,p=m.select(S).selectAll(".svg-container"),r=p.filter(function(a,n){return n===p.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function t(){var a=this,n=a.toDataURL("image/png"),f=v.append("svg:image");f.attr({xmlns:L.svg,"xlink:href":n,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}r.each(t),window.setTimeout(function(){m.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}},95044:function(G,H,e){var m=e(3400).isArrayOrTypedArray,P=e(8932),s=e(71688).wrap;G.exports=function(v,p){var r,t;return P.hasColorscale(p,"line")&&m(p.line.color)?(r=p.line.color,t=P.extractOpts(p.line).colorscale,P.calc(v,p,{vals:r,containerStr:"line",cLetter:"c"})):(r=L(p._length),t=[[0,p.line.color],[1,p.line.color]]),s({lineColor:r,cscale:t})};function L(S){for(var v=new Array(S),p=0;pt&&(m.log("parcoords traces support up to "+t+" dimensions at the moment"),i.splice(t));var d=S(l,g,{name:"dimensions",layout:T,handleItemDefaults:f}),x=n(l,g,h,T,c);L(g,T,c),(!Array.isArray(d)||!d.length)&&(g.visible=!1),a(g,d,"values",x);var w=m.extendFlat({},T.font,{size:Math.round(T.font.size/1.2)});m.coerceFont(c,"labelfont",w),m.coerceFont(c,"tickfont",w,{autoShadowDflt:!0}),m.coerceFont(c,"rangefont",w),c("labelangle"),c("labelside"),c("unselected.line.color"),c("unselected.line.opacity")}},95724:function(G,H,e){var m=e(3400).isTypedArray;H.convertTypedArray=function(P){return m(P)?Array.prototype.slice.call(P):P},H.isOrdinal=function(P){return!!P.tickvals},H.isVisible=function(P){return P.visible||!("visible"in P)}},29928:function(G,H,e){var m=e(61664);m.plot=e(24196),G.exports=m},51352:function(G,H,e){var m=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` `),P=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` `),s=e(30140).maxDimensionCount,L=e(3400),S=1e-6,v=2048,p=new Uint8Array(4),r=new Uint8Array(4),t={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function a(y){y.read({x:0,y:0,width:1,height:1,data:p})}function n(y,E,A,o,M){var b=y._gl;b.enable(b.SCISSOR_TEST),b.scissor(E,A,o,M),y.clear({color:[0,0,0,0],depth:1})}function f(y,E,A,o,M,b){var I=b.key;function D(N){var k=Math.min(o,M-N*o);N===0&&(window.cancelAnimationFrame(A.currentRafs[I]),delete A.currentRafs[I],n(y,b.scissorX,b.scissorY,b.scissorWidth,b.viewBoxSize[1])),!A.clearOnly&&(b.count=2*k,b.offset=2*N*o,E(b),N*o+k>>8*E)%256/255}function h(y,E,A){for(var o=new Array(y*(s+4)),M=0,b=0;bxe&&(xe=oe[te].dim1.canvasX,ge=te);se===0&&n(M,0,0,k.canvasWidth,k.canvasHeight);var _e=$(A);for(te=0;tete._length&&(Re=Re.slice(0,te._length));var Se=te.tickvals,Ie;function Me($e,ht){return{val:$e,text:Ie[ht]}}function Ve($e,ht){return $e.val-ht.val}if(s(Se)&&Se.length){P.isTypedArray(Se)&&(Se=Array.from(Se)),Ie=te.ticktext,!s(Ie)||!Ie.length?Ie=Se.map(L(te.tickformat)):Ie.length>Se.length?Ie=Ie.slice(0,Se.length):Se.length>Ie.length&&(Se=Se.slice(0,Ie.length));for(var et=1;et=ht||Ct>=vt)return;var rt=Qe.lineLayer.readPixel(wt,vt-1-Ct),ze=rt[3]!==0,He=ze?rt[2]+256*(rt[1]+256*rt[0]):null,We={x:wt,y:Ct,clientX:$e.clientX,clientY:$e.clientY,dataIndex:Qe.model.key,curveNumber:He};He!==ge&&(ze?Z.hover(We):Z.unhover&&Z.unhover(We),ge=He)}}),fe.style("opacity",function(Qe){return Qe.pick?0:1}),Q.style("background","rgba(255, 255, 255, 0)");var xe=Q.selectAll("."+T.cn.parcoords).data(te,u);xe.exit().remove(),xe.enter().append("g").classed(T.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),xe.attr("transform",function(Qe){return r(Qe.model.translateX,Qe.model.translateY)});var _e=xe.selectAll("."+T.cn.parcoordsControlView).data(l,u);_e.enter().append("g").classed(T.cn.parcoordsControlView,!0),_e.attr("transform",function(Qe){return r(Qe.model.pad.l,Qe.model.pad.t)});var De=_e.selectAll("."+T.cn.yAxis).data(function(Qe){return Qe.dimensions},u);De.enter().append("g").classed(T.cn.yAxis,!0),_e.each(function(Qe){z(De,Qe,Y)}),fe.each(function(Qe){if(Qe.viewModel){!Qe.lineLayer||Z?Qe.lineLayer=i(this,Qe):Qe.lineLayer.update(Qe),(Qe.key||Qe.key===0)&&(Qe.viewModel[Qe.key]=Qe.lineLayer);var $e=!Qe.context||Z;Qe.lineLayer.render(Qe.viewModel.panels,$e)}}),De.attr("transform",function(Qe){return r(Qe.xScale(Qe.xIndex),0)}),De.call(m.behavior.drag().origin(function(Qe){return Qe}).on("drag",function(Qe){var $e=Qe.parent;se.linePickActive(!1),Qe.x=Math.max(-T.overdrag,Math.min(Qe.model.width+T.overdrag,m.event.x)),Qe.canvasX=Qe.x*Qe.model.canvasPixelRatio,De.sort(function(ht,vt){return ht.x-vt.x}).each(function(ht,vt){ht.xIndex=vt,ht.x=Qe===ht?ht.x:ht.xScale(ht.xIndex),ht.canvasX=ht.x*ht.model.canvasPixelRatio}),z(De,$e,Y),De.filter(function(ht){return Math.abs(Qe.xIndex-ht.xIndex)!==0}).attr("transform",function(ht){return r(ht.xScale(ht.xIndex),0)}),m.select(this).attr("transform",r(Qe.x,0)),De.each(function(ht,vt,pt){pt===Qe.parent.key&&($e.dimensions[vt]=ht)}),$e.contextLayer&&$e.contextLayer.render($e.panels,!1,!I($e)),$e.focusLayer.render&&$e.focusLayer.render($e.panels)}).on("dragend",function(Qe){var $e=Qe.parent;Qe.x=Qe.xScale(Qe.xIndex),Qe.canvasX=Qe.x*Qe.model.canvasPixelRatio,z(De,$e,Y),m.select(this).attr("transform",function(ht){return r(ht.x,0)}),$e.contextLayer&&$e.contextLayer.render($e.panels,!1,!I($e)),$e.focusLayer&&$e.focusLayer.render($e.panels),$e.pickLayer&&$e.pickLayer.render($e.panels,!0),se.linePickActive(!0),Z&&Z.axesMoved&&Z.axesMoved($e.key,$e.dimensions.map(function(ht){return ht.crossfilterDimensionIndex}))})),De.exit().remove();var Fe=De.selectAll("."+T.cn.axisOverlays).data(l,u);Fe.enter().append("g").classed(T.cn.axisOverlays,!0),Fe.selectAll("."+T.cn.axis).remove();var Te=Fe.selectAll("."+T.cn.axis).data(l,u);Te.enter().append("g").classed(T.cn.axis,!0),Te.each(function(Qe){var $e=Qe.model.height/Qe.model.tickDistance,ht=Qe.domainScale,vt=ht.domain();m.select(this).call(m.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks($e,Qe.tickFormat).tickValues(Qe.ordinal?vt:null).tickFormat(function(pt){return h.isOrdinal(Qe)?pt:W(Qe.model.dimensions[Qe.visibleIndex],pt)}).scale(ht)),a.font(Te.selectAll("text"),Qe.model.tickFont)}),Te.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),Te.selectAll("text").style("cursor","default");var Re=Fe.selectAll("."+T.cn.axisHeading).data(l,u);Re.enter().append("g").classed(T.cn.axisHeading,!0);var Se=Re.selectAll("."+T.cn.axisTitle).data(l,u);Se.enter().append("text").classed(T.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",ie?"none":"auto"),Se.text(function(Qe){return Qe.label}).each(function(Qe){var $e=m.select(this);a.font($e,Qe.model.labelFont),t.convertToTspans($e,ne)}).attr("transform",function(Qe){var $e=F(Qe.model.labelAngle,Qe.model.labelSide),ht=T.axisTitleOffset;return($e.dir>0?"":r(0,2*ht+Qe.model.height))+p($e.degrees)+r(-ht*$e.dx,-ht*$e.dy)}).attr("text-anchor",function(Qe){var $e=F(Qe.model.labelAngle,Qe.model.labelSide),ht=Math.abs($e.dx),vt=Math.abs($e.dy);return 2*ht>vt?$e.dir*$e.dx<0?"start":"end":"middle"});var Ie=Fe.selectAll("."+T.cn.axisExtent).data(l,u);Ie.enter().append("g").classed(T.cn.axisExtent,!0);var Me=Ie.selectAll("."+T.cn.axisExtentTop).data(l,u);Me.enter().append("g").classed(T.cn.axisExtentTop,!0),Me.attr("transform",r(0,-T.axisExtentOffset));var Ve=Me.selectAll("."+T.cn.axisExtentTopText).data(l,u);Ve.enter().append("text").classed(T.cn.axisExtentTopText,!0).call(k),Ve.text(function(Qe){return J(Qe,!0)}).each(function(Qe){a.font(m.select(this),Qe.model.rangeFont)});var et=Ie.selectAll("."+T.cn.axisExtentBottom).data(l,u);et.enter().append("g").classed(T.cn.axisExtentBottom,!0),et.attr("transform",function(Qe){return r(0,Qe.model.height+T.axisExtentOffset)});var ot=et.selectAll("."+T.cn.axisExtentBottomText).data(l,u);ot.enter().append("text").classed(T.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(k),ot.text(function(Qe){return J(Qe,!1)}).each(function(Qe){a.font(m.select(this),Qe.model.rangeFont)}),c.ensureAxisBrush(Fe,j,ne)}},24196:function(G,H,e){var m=e(36336),P=e(5048),s=e(95724).isVisible,L={};function S(r,t,a){var n=t.indexOf(a),f=r.indexOf(n);return f===-1&&(f+=t.length),f}function v(r,t){return function(n,f){return S(r,t,n)-S(r,t,f)}}var p=G.exports=function(t,a){var n=t._fullLayout,f=P(t,[],L);if(f){var u={},l={},g={},h={},T=n._size;a.forEach(function(w,C){var y=w[0].trace;g[C]=y.index;var E=h[C]=y._fullInput.index;u[C]=t.data[E].dimensions,l[C]=t.data[E].dimensions.slice()});var c=function(w,C,y){var E=l[w][C],A=y.map(function(N){return N.slice()}),o="dimensions["+C+"].constraintrange",M=n._tracePreGUI[t._fullData[g[w]]._fullInput.uid];if(M[o]===void 0){var b=E.constraintrange;M[o]=b||null}var I=t._fullData[g[w]].dimensions[C];A.length?(A.length===1&&(A=A[0]),E.constraintrange=A,I.constraintrange=A.slice(),A=[A]):(delete E.constraintrange,delete I.constraintrange,A=null);var D={};D[o]=A,t.emit("plotly_restyle",[D,[h[w]]])},i=function(w){t.emit("plotly_hover",w)},d=function(w){t.emit("plotly_unhover",w)},x=function(w,C){var y=v(C,l[w].filter(s));u[w].sort(y),l[w].filter(function(E){return!s(E)}).sort(function(E){return l[w].indexOf(E)}).forEach(function(E){u[w].splice(u[w].indexOf(E),1),u[w].splice(l[w].indexOf(E),0,E)}),t.emit("plotly_restyle",[{dimensions:[u[w]]},[h[w]]])};m(t,a,{width:T.w,height:T.h,margin:{t:T.t,r:T.r,b:T.b,l:T.l}},{filterChanged:c,hover:i,unhover:d,axesMoved:x})}};p.reglPrecompiled=L},74996:function(G,H,e){var m=e(45464),P=e(86968).u,s=e(25376),L=e(22548),S=e(21776).Ks,v=e(21776).Gw,p=e(92880).extendFlat,r=e(98192).c,t=s({editType:"plot",arrayOk:!0,colorEditType:"plot"});G.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:L.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:r,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:p({},m.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:S({},{keys:["label","color","value","percent","text"]}),texttemplate:v({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:p({},t,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:p({},t,{}),outsidetextfont:p({},t,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:p({},t,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:P({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:p({},t,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},80036:function(G,H,e){var m=e(7316);H.name="pie",H.plot=function(P,s,L,S){m.plotBasePlot(H.name,P,s,L,S)},H.clean=function(P,s,L,S){m.cleanBasePlot(H.name,P,s,L,S)}},45768:function(G,H,e){var m=e(38248),P=e(49760),s=e(76308),L={};function S(t,a){var n=[],f=t._fullLayout,u=f.hiddenlabels||[],l=a.labels,g=a.marker.colors||[],h=a.values,T=a._length,c=a._hasValues&&T,i,d;if(a.dlabel)for(l=new Array(T),i=0;i=0});var b=a.type==="funnelarea"?y:a.sort;return b&&n.sort(function(I,D){return D.v-I.v}),n[0]&&(n[0].vTotal=C),n}function v(t){return function(n,f){return!n||(n=P(n),!n.isValid())?!1:(n=s.addOpacity(n,n.getAlpha()),t[f]||(t[f]=n),n)}}function p(t,a){var n=(a||{}).type;n||(n="pie");var f=t._fullLayout,u=t.calcdata,l=f[n+"colorway"],g=f["_"+n+"colormap"];f["extend"+n+"colors"]&&(l=r(l,L));for(var h=0,T=0;T0){g=!0;break}}g||(l=0)}return{hasLabels:f,hasValues:u,len:l}}function r(a,n,f,u,l){var g=u("marker.line.width");g&&u("marker.line.color",l?void 0:f.paper_bgcolor);var h=u("marker.colors");v(u,"marker.pattern",h),a.marker&&!n.marker.pattern.fgcolor&&(n.marker.pattern.fgcolor=a.marker.colors),n.marker.pattern.bgcolor||(n.marker.pattern.bgcolor=f.paper_bgcolor)}function t(a,n,f,u){function l(M,b){return P.coerce(a,n,s,M,b)}var g=l("labels"),h=l("values"),T=p(g,h),c=T.len;if(n._hasLabels=T.hasLabels,n._hasValues=T.hasValues,!n._hasLabels&&n._hasValues&&(l("label0"),l("dlabel")),!c){n.visible=!1;return}n._length=c,r(a,n,u,l,!0),l("scalegroup");var i=l("text"),d=l("texttemplate"),x;if(d||(x=l("textinfo",P.isArrayOrTypedArray(i)?"text+percent":"percent")),l("hovertext"),l("hovertemplate"),d||x&&x!=="none"){var w=l("textposition");S(a,n,u,l,w,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var C=Array.isArray(w)||w==="auto",y=C||w==="outside";y&&l("automargin"),(w==="inside"||w==="auto"||Array.isArray(w))&&l("insidetextorientation")}else x==="none"&&l("textposition","none");L(n,u,l);var E=l("hole"),A=l("title.text");if(A){var o=l("title.position",E?"middle center":"top center");!E&&o==="middle center"&&(n.title.position="top center"),P.coerceFont(l,"title.font",u.font)}l("sort"),l("direction"),l("rotation"),l("pull")}G.exports={handleLabelsAndValues:p,handleMarkerDefaults:r,supplyDefaults:t}},53644:function(G,H,e){var m=e(10624).appendArrayMultiPointValues;G.exports=function(s,L){var S={curveNumber:L.index,pointNumbers:s.pts,data:L._input,fullData:L,label:s.label,color:s.color,value:s.v,percent:s.percent,text:s.text,bbox:s.bbox,v:s.v};return s.pts.length===1&&(S.pointNumber=S.i=s.pts[0]),m(S,L,s.pts),L.type==="funnelarea"&&(delete S.v,delete S.i),S}},21552:function(G,H,e){var m=e(43616),P=e(76308);G.exports=function(L,S,v,p){var r=v.marker.pattern;r&&r.shape?m.pointStyle(L,v,p,S):P.fill(L,S.color)}},69656:function(G,H,e){var m=e(3400);function P(s){return s.indexOf("e")!==-1?s.replace(/[.]?0+e/,"e"):s.indexOf(".")!==-1?s.replace(/[.]?0+$/,""):s}H.formatPiePercent=function(L,S){var v=P((L*100).toPrecision(3));return m.numSeparate(v,S)+"%"},H.formatPieValue=function(L,S){var v=P(L.toPrecision(10));return m.numSeparate(v,S)},H.getFirstFilled=function(L,S){if(m.isArrayOrTypedArray(L))for(var v=0;v0&&(et+=ht*Me.pxmid[0],ot+=ht*Me.pxmid[1])}Me.cxFinal=et,Me.cyFinal=ot;function vt(We,Ge,Le,Pe){var je=Pe*(Ge[0]-We[0]),Ce=Pe*(Ge[1]-We[1]);return"a"+Pe*te.r+","+Pe*te.r+" 0 "+Me.largeArc+(Le?" 1 ":" 0 ")+je+","+Ce}var pt=fe.hole;if(Me.v===te.vTotal){var wt="M"+(et+Me.px0[0])+","+(ot+Me.px0[1])+vt(Me.px0,Me.pxmid,!0,1)+vt(Me.pxmid,Me.px0,!0,1)+"Z";pt?$e.attr("d","M"+(et+pt*Me.px0[0])+","+(ot+pt*Me.px0[1])+vt(Me.px0,Me.pxmid,!1,pt)+vt(Me.pxmid,Me.px0,!1,pt)+"Z"+wt):$e.attr("d",wt)}else{var Ct=vt(Me.px0,Me.px1,!0,1);if(pt){var rt=1-pt;$e.attr("d","M"+(et+pt*Me.px1[0])+","+(ot+pt*Me.px1[1])+vt(Me.px1,Me.px0,!1,pt)+"l"+rt*Me.px0[0]+","+rt*Me.px0[1]+Ct+"Z")}else $e.attr("d","M"+et+","+ot+"l"+Me.px0[0]+","+Me.px0[1]+Ct+"Z")}le(Z,Me,te);var ze=l.castOption(fe.textposition,Me.pts),He=Qe.selectAll("g.slicetext").data(Me.text&&ze!=="none"?[0]:[]);He.enter().append("g").classed("slicetext",!0),He.exit().remove(),He.each(function(){var We=v.ensureSingle(m.select(this),"text","",function(Ne){Ne.attr("data-notex",1)}),Ge=v.ensureUniformFontSize(Z,ze==="outside"?d(fe,Me,Q.font):x(fe,Me,Q.font));We.text(Me.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(S.font,Ge).call(t.convertToTspans,Z);var Le=S.bBox(We.node()),Pe;if(ze==="outside")Pe=D(Le,Me);else if(Pe=C(Le,Me,te),ze==="auto"&&Pe.scale<1){var je=v.ensureUniformFontSize(Z,fe.outsidetextfont);We.call(S.font,je),Le=S.bBox(We.node()),Pe=D(Le,Me)}var Ce=Pe.textPosAngle,he=Ce===void 0?Me.pxmid:ne(te.r,Ce);if(Pe.targetX=et+he[0]*Pe.rCenter+(Pe.x||0),Pe.targetY=ot+he[1]*Pe.rCenter+(Pe.y||0),$(Pe,Le),Pe.outside){var me=Pe.targetY;Me.yLabelMin=me-Le.height/2,Me.yLabelMid=me,Me.yLabelMax=me+Le.height/2,Me.labelExtraX=0,Me.labelExtraY=0,xe=!0}Pe.fontSize=Ge.size,n(fe.type,Pe,Q),j[Ve].transform=Pe,v.setTransormAndDisplay(We,Pe)})});var _e=m.select(this).selectAll("g.titletext").data(fe.title.text?[0]:[]);if(_e.enter().append("g").classed("titletext",!0),_e.exit().remove(),_e.each(function(){var Me=v.ensureSingle(m.select(this),"text","",function(ot){ot.attr("data-notex",1)}),Ve=fe.title.text;fe._meta&&(Ve=v.templateString(Ve,fe._meta)),Me.text(Ve).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(S.font,fe.title.font).call(t.convertToTspans,Z);var et;fe.title.position==="middle center"?et=N(te):et=k(te,oe),Me.attr("transform",r(et.x,et.y)+p(Math.min(1,et.scale))+r(et.tx,et.ty))}),xe&&B(be,fe),c(ge,fe),xe&&fe.automargin){var De=S.bBox(se.node()),Fe=fe.domain,Te=oe.w*(Fe.x[1]-Fe.x[0]),Re=oe.h*(Fe.y[1]-Fe.y[0]),Se=(.5*Te-te.r)/oe.w,Ie=(.5*Re-te.r)/oe.h;P.autoMargin(Z,"pie."+fe.uid+".automargin",{xl:Fe.x[0]-Se,xr:Fe.x[1]+Se,yb:Fe.y[0]-Ie,yt:Fe.y[1]+Ie,l:Math.max(te.cx-te.r-De.left,0),r:Math.max(De.right-(te.cx+te.r),0),b:Math.max(De.bottom-(te.cy+te.r),0),t:Math.max(te.cy-te.r-De.top,0),pad:5})}})});setTimeout(function(){Y.selectAll("tspan").each(function(){var j=m.select(this);j.attr("dy")&&j.attr("dy",j.attr("dy"))})},0)}function c(Z,ie){Z.each(function(X){var Q=m.select(this);if(!X.labelExtraX&&!X.labelExtraY){Q.select("path.textline").remove();return}var oe=Q.select("g.slicetext text");X.transform.targetX+=X.labelExtraX,X.transform.targetY+=X.labelExtraY,v.setTransormAndDisplay(oe,X.transform);var Y=X.cxFinal+X.pxmid[0],j=X.cyFinal+X.pxmid[1],se="M"+Y+","+j,te=(X.yLabelMax-X.yLabelMin)*(X.pxmid[0]<0?-1:1)/4;if(X.labelExtraX){var fe=X.labelExtraX*X.pxmid[1]/X.pxmid[0],ge=X.yLabelMid+X.labelExtraY-(X.cyFinal+X.pxmid[1]);Math.abs(fe)>Math.abs(ge)?se+="l"+ge*X.pxmid[0]/X.pxmid[1]+","+ge+"H"+(Y+X.labelExtraX+te):se+="l"+X.labelExtraX+","+fe+"v"+(ge-fe)+"h"+te}else se+="V"+(X.yLabelMid+X.labelExtraY)+"h"+te;v.ensureSingle(Q,"path","textline").call(L.stroke,ie.outsidetextfont.color).attr({"stroke-width":Math.min(2,ie.outsidetextfont.size/8),d:se,fill:"none"})})}function i(Z,ie,X){var Q=X[0],oe=Q.cx,Y=Q.cy,j=Q.trace,se=j.type==="funnelarea";"_hasHoverLabel"in j||(j._hasHoverLabel=!1),"_hasHoverEvent"in j||(j._hasHoverEvent=!1),Z.on("mouseover",function(te){var fe=ie._fullLayout,ge=ie._fullData[j.index];if(!(ie._dragging||fe.hovermode===!1)){var be=ge.hoverinfo;if(Array.isArray(be)&&(be=s.castHoverinfo({hoverinfo:[l.castOption(be,te.pts)],_module:j._module},fe,0)),be==="all"&&(be="label+text+value+percent+name"),ge.hovertemplate||be!=="none"&&be!=="skip"&&be){var xe=te.rInscribed||0,_e=oe+te.pxmid[0]*(1-xe),De=Y+te.pxmid[1]*(1-xe),Fe=fe.separators,Te=[];if(be&&be.indexOf("label")!==-1&&Te.push(te.label),te.text=l.castOption(ge.hovertext||ge.text,te.pts),be&&be.indexOf("text")!==-1){var Re=te.text;v.isValidTextValue(Re)&&Te.push(Re)}te.value=te.v,te.valueLabel=l.formatPieValue(te.v,Fe),be&&be.indexOf("value")!==-1&&Te.push(te.valueLabel),te.percent=te.v/Q.vTotal,te.percentLabel=l.formatPiePercent(te.percent,Fe),be&&be.indexOf("percent")!==-1&&Te.push(te.percentLabel);var Se=ge.hoverlabel,Ie=Se.font,Me=[];s.loneHover({trace:j,x0:_e-xe*Q.r,x1:_e+xe*Q.r,y:De,_x0:se?oe+te.TL[0]:_e-xe*Q.r,_x1:se?oe+te.TR[0]:_e+xe*Q.r,_y0:se?Y+te.TL[1]:De-xe*Q.r,_y1:se?Y+te.BL[1]:De+xe*Q.r,text:Te.join("
"),name:ge.hovertemplate||be.indexOf("name")!==-1?ge.name:void 0,idealAlign:te.pxmid[0]<0?"left":"right",color:l.castOption(Se.bgcolor,te.pts)||te.color,borderColor:l.castOption(Se.bordercolor,te.pts),fontFamily:l.castOption(Ie.family,te.pts),fontSize:l.castOption(Ie.size,te.pts),fontColor:l.castOption(Ie.color,te.pts),nameLength:l.castOption(Se.namelength,te.pts),textAlign:l.castOption(Se.align,te.pts),hovertemplate:l.castOption(ge.hovertemplate,te.pts),hovertemplateLabels:te,eventData:[g(te,ge)]},{container:fe._hoverlayer.node(),outerContainer:fe._paper.node(),gd:ie,inOut_bbox:Me}),te.bbox=Me[0],j._hasHoverLabel=!0}j._hasHoverEvent=!0,ie.emit("plotly_hover",{points:[g(te,ge)],event:m.event})}}),Z.on("mouseout",function(te){var fe=ie._fullLayout,ge=ie._fullData[j.index],be=m.select(this).datum();j._hasHoverEvent&&(te.originalEvent=m.event,ie.emit("plotly_unhover",{points:[g(be,ge)],event:m.event}),j._hasHoverEvent=!1),j._hasHoverLabel&&(s.loneUnhover(fe._hoverlayer.node()),j._hasHoverLabel=!1)}),Z.on("click",function(te){var fe=ie._fullLayout,ge=ie._fullData[j.index];ie._dragging||fe.hovermode===!1||(ie._hoverdata=[g(te,ge)],s.click(ie,m.event))})}function d(Z,ie,X){var Q=l.castOption(Z.outsidetextfont.color,ie.pts)||l.castOption(Z.textfont.color,ie.pts)||X.color,oe=l.castOption(Z.outsidetextfont.family,ie.pts)||l.castOption(Z.textfont.family,ie.pts)||X.family,Y=l.castOption(Z.outsidetextfont.size,ie.pts)||l.castOption(Z.textfont.size,ie.pts)||X.size,j=l.castOption(Z.outsidetextfont.weight,ie.pts)||l.castOption(Z.textfont.weight,ie.pts)||X.weight,se=l.castOption(Z.outsidetextfont.style,ie.pts)||l.castOption(Z.textfont.style,ie.pts)||X.style,te=l.castOption(Z.outsidetextfont.variant,ie.pts)||l.castOption(Z.textfont.variant,ie.pts)||X.variant,fe=l.castOption(Z.outsidetextfont.textcase,ie.pts)||l.castOption(Z.textfont.textcase,ie.pts)||X.textcase,ge=l.castOption(Z.outsidetextfont.lineposition,ie.pts)||l.castOption(Z.textfont.lineposition,ie.pts)||X.lineposition,be=l.castOption(Z.outsidetextfont.shadow,ie.pts)||l.castOption(Z.textfont.shadow,ie.pts)||X.shadow;return{color:Q,family:oe,size:Y,weight:j,style:se,variant:te,textcase:fe,lineposition:ge,shadow:be}}function x(Z,ie,X){var Q=l.castOption(Z.insidetextfont.color,ie.pts);!Q&&Z._input.textfont&&(Q=l.castOption(Z._input.textfont.color,ie.pts));var oe=l.castOption(Z.insidetextfont.family,ie.pts)||l.castOption(Z.textfont.family,ie.pts)||X.family,Y=l.castOption(Z.insidetextfont.size,ie.pts)||l.castOption(Z.textfont.size,ie.pts)||X.size,j=l.castOption(Z.insidetextfont.weight,ie.pts)||l.castOption(Z.textfont.weight,ie.pts)||X.weight,se=l.castOption(Z.insidetextfont.style,ie.pts)||l.castOption(Z.textfont.style,ie.pts)||X.style,te=l.castOption(Z.insidetextfont.variant,ie.pts)||l.castOption(Z.textfont.variant,ie.pts)||X.variant,fe=l.castOption(Z.insidetextfont.textcase,ie.pts)||l.castOption(Z.textfont.textcase,ie.pts)||X.textcase,ge=l.castOption(Z.insidetextfont.lineposition,ie.pts)||l.castOption(Z.textfont.lineposition,ie.pts)||X.lineposition,be=l.castOption(Z.insidetextfont.shadow,ie.pts)||l.castOption(Z.textfont.shadow,ie.pts)||X.shadow;return{color:Q||L.contrast(ie.color),family:oe,size:Y,weight:j,style:se,variant:te,textcase:fe,lineposition:ge,shadow:be}}function w(Z,ie){for(var X,Q,oe=0;oe=-4;Se-=2)Re(Math.PI*Se,"tan");for(Se=4;Se>=-4;Se-=2)Re(Math.PI*(Se+1),"tan")}if(be||_e){for(Se=4;Se>=-4;Se-=2)Re(Math.PI*(Se+1.5),"rad");for(Se=4;Se>=-4;Se-=2)Re(Math.PI*(Se+.5),"rad")}}if(se||De||be){var Ie=Math.sqrt(Z.width*Z.width+Z.height*Z.height);if(Te={scale:oe*Q*2/Ie,rCenter:1-oe,rotate:0},Te.textPosAngle=(ie.startangle+ie.stopangle)/2,Te.scale>=1)return Te;Fe.push(Te)}(De||_e)&&(Te=E(Z,Q,j,te,fe),Te.textPosAngle=(ie.startangle+ie.stopangle)/2,Fe.push(Te)),(De||xe)&&(Te=A(Z,Q,j,te,fe),Te.textPosAngle=(ie.startangle+ie.stopangle)/2,Fe.push(Te));for(var Me=0,Ve=0,et=0;et=1)break}return Fe[Me]}function y(Z,ie){var X=Z.startangle,Q=Z.stopangle;return X>ie&&ie>Q||X0?1:-1)/2,y:Y/(1+X*X/(Q*Q)),outside:!0}}function N(Z){var ie=Math.sqrt(Z.titleBox.width*Z.titleBox.width+Z.titleBox.height*Z.titleBox.height);return{x:Z.cx,y:Z.cy,scale:Z.trace.hole*Z.r*2/ie,tx:0,ty:-Z.titleBox.height/2+Z.trace.title.font.size}}function k(Z,ie){var X=1,Q=1,oe,Y=Z.trace,j={x:Z.cx,y:Z.cy},se={tx:0,ty:0};se.ty+=Y.title.font.size,oe=z(Y),Y.title.position.indexOf("top")!==-1?(j.y-=(1+oe)*Z.r,se.ty-=Z.titleBox.height):Y.title.position.indexOf("bottom")!==-1&&(j.y+=(1+oe)*Z.r);var te=O(Z.r,Z.trace.aspectratio),fe=ie.w*(Y.domain.x[1]-Y.domain.x[0])/2;return Y.title.position.indexOf("left")!==-1?(fe=fe+te,j.x-=(1+oe)*te,se.tx+=Z.titleBox.width/2):Y.title.position.indexOf("center")!==-1?fe*=2:Y.title.position.indexOf("right")!==-1&&(fe=fe+te,j.x+=(1+oe)*te,se.tx-=Z.titleBox.width/2),X=fe/Z.titleBox.width,Q=F(Z,ie)/Z.titleBox.height,{x:j.x,y:j.y,scale:Math.min(X,Q),tx:se.tx,ty:se.ty}}function O(Z,ie){return Z/(ie===void 0?1:ie)}function F(Z,ie){var X=Z.trace,Q=ie.h*(X.domain.y[1]-X.domain.y[0]);return Math.min(Z.titleBox.height,Q/2)}function z(Z){var ie=Z.pull;if(!ie)return 0;var X;if(v.isArrayOrTypedArray(ie))for(ie=0,X=0;Xie&&(ie=Z.pull[X]);return ie}function B(Z,ie){var X,Q,oe,Y,j,se,te,fe,ge,be,xe,_e,De;function Fe(Ie,Me){return Ie.pxmid[1]-Me.pxmid[1]}function Te(Ie,Me){return Me.pxmid[1]-Ie.pxmid[1]}function Re(Ie,Me){Me||(Me={});var Ve=Me.labelExtraY+(Q?Me.yLabelMax:Me.yLabelMin),et=Q?Ie.yLabelMin:Ie.yLabelMax,ot=Q?Ie.yLabelMax:Ie.yLabelMin,Qe=Ie.cyFinal+j(Ie.px0[1],Ie.px1[1]),$e=Ve-et,ht,vt,pt,wt,Ct,rt;if($e*te>0&&(Ie.labelExtraY=$e),!!v.isArrayOrTypedArray(ie.pull))for(vt=0;vt=(l.castOption(ie.pull,pt.pts)||0))&&((Ie.pxmid[1]-pt.pxmid[1])*te>0?(wt=pt.cyFinal+j(pt.px0[1],pt.px1[1]),$e=wt-et-Ie.labelExtraY,$e*te>0&&(Ie.labelExtraY+=$e)):(ot+Ie.labelExtraY-Qe)*te>0&&(ht=3*se*Math.abs(vt-be.indexOf(Ie)),Ct=pt.cxFinal+Y(pt.px0[0],pt.px1[0]),rt=Ct+ht-(Ie.cxFinal+Ie.pxmid[0])-Ie.labelExtraX,rt*se>0&&(Ie.labelExtraX+=rt)))}for(Q=0;Q<2;Q++)for(oe=Q?Fe:Te,j=Q?Math.max:Math.min,te=Q?1:-1,X=0;X<2;X++){for(Y=X?Math.max:Math.min,se=X?1:-1,fe=Z[Q][X],fe.sort(oe),ge=Z[1-Q][X],be=ge.concat(fe),_e=[],xe=0;xe1?(fe=X.r,ge=fe/oe.aspectratio):(ge=X.r,fe=ge*oe.aspectratio),fe*=(1+oe.baseratio)/2,te=fe*ge}j=Math.min(j,te/X.vTotal)}for(Q=0;Qie.vTotal/2?1:0,fe.halfangle=Math.PI*Math.min(fe.v/ie.vTotal,.5),fe.ring=1-Q.hole,fe.rInscribed=I(fe,ie))}function ne(Z,ie){return[Z*Math.sin(ie),-Z*Math.cos(ie)]}function le(Z,ie,X){var Q=Z._fullLayout,oe=X.trace,Y=oe.texttemplate,j=oe.textinfo;if(!Y&&j&&j!=="none"){var se=j.split("+"),te=function(Me){return se.indexOf(Me)!==-1},fe=te("label"),ge=te("text"),be=te("value"),xe=te("percent"),_e=Q.separators,De;if(De=fe?[ie.label]:[],ge){var Fe=l.getFirstFilled(oe.text,ie.pts);h(Fe)&&De.push(Fe)}be&&De.push(l.formatPieValue(ie.v,_e)),xe&&De.push(l.formatPiePercent(ie.v/X.vTotal,_e)),ie.text=De.join("
")}function Te(Me){return{label:Me.label,value:Me.v,valueLabel:l.formatPieValue(Me.v,Q.separators),percent:Me.v/X.vTotal,percentLabel:l.formatPiePercent(Me.v/X.vTotal,Q.separators),color:Me.color,text:Me.text,customdata:v.castOption(oe,Me.i,"customdata")}}if(Y){var Re=v.castOption(oe,ie.i,"texttemplate");if(!Re)ie.text="";else{var Se=Te(ie),Ie=l.getFirstFilled(oe.text,ie.pts);(h(Ie)||Ie==="")&&(Se.text=Ie),ie.text=v.texttemplateString(Re,Se,Z._fullLayout._d3locale,Se,oe._meta||{})}}}function $(Z,ie){var X=Z.rotate*Math.PI/180,Q=Math.cos(X),oe=Math.sin(X),Y=(ie.left+ie.right)/2,j=(ie.top+ie.bottom)/2;Z.textX=Y*Q-j*oe,Z.textY=Y*oe+j*Q,Z.noCenter=!0}G.exports={plot:T,formatSliceLabel:le,transformInsideText:C,determineInsideTextFont:x,positionTitleOutside:k,prerenderTitles:w,layoutAreas:W,attachFxHandlers:i,computeTransform:$}},22152:function(G,H,e){var m=e(33428),P=e(10528),s=e(82744).resizeText;G.exports=function(S){var v=S._fullLayout._pielayer.selectAll(".trace");s(S,v,"pie"),v.each(function(p){var r=p[0],t=r.trace,a=m.select(this);a.style({opacity:t.opacity}),a.selectAll("path.surface").each(function(n){m.select(this).call(P,n,t,S)})})}},10528:function(G,H,e){var m=e(76308),P=e(69656).castOption,s=e(21552);G.exports=function(S,v,p,r){var t=p.marker.line,a=P(t.color,v.pts)||m.defaultLine,n=P(t.width,v.pts)||0;S.call(s,v,p,r).style("stroke-width",n).call(m.stroke,a)}},35484:function(G,H,e){var m=e(52904);G.exports={x:m.x,y:m.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:m.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},11072:function(G,H,e){var m=e(67792).gl_pointcloud2d,P=e(3400).isArrayOrTypedArray,s=e(43080),L=e(19280).findExtremes,S=e(44928);function v(t,a){this.scene=t,this.uid=a,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=m(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var p=v.prototype;p.handlePick=function(t){var a=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[a*2],this.pickXYData[a*2+1]]:[this.pickXData[a],this.pickYData[a]],textLabel:P(this.textLabels)?this.textLabels[a]:this.textLabels,color:this.color,name:this.name,pointIndex:a,hoverinfo:this.hoverinfo}},p.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=S(t,{})},p.updateFast=function(t){var a=this.xData=this.pickXData=t.x,n=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,u=t.xbounds&&t.ybounds,l=t.indices,g,h,T,c=this.bounds,i,d,x;if(f){if(T=f,g=f.length>>>1,u)c[0]=t.xbounds[0],c[2]=t.xbounds[1],c[1]=t.ybounds[0],c[3]=t.ybounds[1];else for(x=0;xc[2]&&(c[2]=i),dc[3]&&(c[3]=d);if(l)h=l;else for(h=new Int32Array(g),x=0;xc[2]&&(c[2]=i),dc[3]&&(c[3]=d);this.idToIndex=h,this.pointcloudOptions.idToIndex=h,this.pointcloudOptions.positions=T;var w=s(t.marker.color),C=s(t.marker.border.color),y=t.opacity*t.marker.opacity;w[3]*=y,this.pointcloudOptions.color=w;var E=t.marker.blend;if(E===null){var A=100;E=a.lengthC&&(C=n.source[i]),n.target[i]>C&&(C=n.target[i]);var y=C+1;t.node._count=y;var E,A=t.node.groups,o={};for(i=0;i0&&S(k,y)&&S(O,y)&&!(o.hasOwnProperty(k)&&o.hasOwnProperty(O)&&o[k]===o[O])){o.hasOwnProperty(O)&&(O=o[O]),o.hasOwnProperty(k)&&(k=o[k]),k=+k,O=+O,h[k]=h[O]=!0;var F="";n.label&&n.label[i]&&(F=n.label[i]);var z=null;F&&T.hasOwnProperty(F)&&(z=T[F]),f.push({pointNumber:i,label:F,color:u?n.color[i]:n.color,hovercolor:l?n.hovercolor[i]:n.hovercolor,customdata:g?n.customdata[i]:n.customdata,concentrationscale:z,source:k,target:O,value:+N}),D.source.push(k),D.target.push(O)}}var B=y+A.length,W=L(a.color),J=L(a.customdata),re=[];for(i=0;iy-1,childrenNodes:[],pointNumber:i,label:ne,color:W?a.color[i]:a.color,customdata:J?a.customdata[i]:a.customdata})}var le=!1;return r(B,D.source,D.target)&&(le=!0),{circular:le,links:f,nodes:re,groups:A,groupLookup:o}}function r(t,a,n){for(var f=P.init2dArray(t,0),u=0;u1})}G.exports=function(a,n){var f=p(n);return s({circular:f.circular,_nodes:f.nodes,_links:f.links,_groups:f.groups,_groupLookup:f.groupLookup})}},11820:function(G){G.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}},47140:function(G,H,e){var m=e(3400),P=e(41440),s=e(76308),L=e(49760),S=e(86968).Q,v=e(16132),p=e(31780),r=e(51272);G.exports=function(n,f,u,l){function g(I,D){return m.coerce(n,f,P,I,D)}var h=m.extendDeep(l.hoverlabel,n.hoverlabel),T=n.node,c=p.newContainer(f,"node");function i(I,D){return m.coerce(T,c,P.node,I,D)}i("label"),i("groups"),i("x"),i("y"),i("pad"),i("thickness"),i("line.color"),i("line.width"),i("hoverinfo",n.hoverinfo),v(T,c,i,h),i("hovertemplate"),i("align");var d=l.colorway,x=function(I){return d[I%d.length]};i("color",c.label.map(function(I,D){return s.addOpacity(x(D),.8)})),i("customdata");var w=n.link||{},C=p.newContainer(f,"link");function y(I,D){return m.coerce(w,C,P.link,I,D)}y("label"),y("arrowlen"),y("source"),y("target"),y("value"),y("line.color"),y("line.width"),y("hoverinfo",n.hoverinfo),v(w,C,y,h),y("hovertemplate");var E=L(l.paper_bgcolor).getLuminance()<.333,A=E?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",o=y("color",A);function M(I){var D=L(I);if(!D.isValid())return I;var N=D.getAlpha();return N<=.8?D.setAlpha(N+.2):D=E?D.brighten():D.darken(),D.toRgbString()}y("hovercolor",Array.isArray(o)?o.map(M):M(o)),y("customdata"),r(w,C,{name:"colorscales",handleItemDefaults:t}),S(f,l,g),g("orientation"),g("valueformat"),g("valuesuffix");var b;c.x.length&&c.y.length&&(b="freeform"),g("arrangement",b),m.coerceFont(g,"textfont",l.font,{autoShadowDflt:!0}),f._length=null};function t(a,n){function f(u,l){return m.coerce(a,n,P.link.colorscales,u,l)}f("label"),f("cmin"),f("cmax"),f("colorscale")}},45499:function(G,H,e){G.exports={attributes:e(41440),supplyDefaults:e(47140),calc:e(48068),plot:e(59596),moduleType:"trace",name:"sankey",basePlotModule:e(10760),selectPoints:e(81128),categories:["noOpacity"],meta:{}}},59596:function(G,H,e){var m=e(33428),P=e(3400),s=P.numberFormat,L=e(83248),S=e(93024),v=e(76308),p=e(11820).cn,r=P._;function t(d){return d!==""}function a(d,x){return d.filter(function(w){return w.key===x.traceId})}function n(d,x){m.select(d).select("path").style("fill-opacity",x),m.select(d).select("rect").style("fill-opacity",x)}function f(d){m.select(d).select("text.name").style("fill","black")}function u(d){return function(x){return d.node.sourceLinks.indexOf(x.link)!==-1||d.node.targetLinks.indexOf(x.link)!==-1}}function l(d){return function(x){return x.node.sourceLinks.indexOf(d.link)!==-1||x.node.targetLinks.indexOf(d.link)!==-1}}function g(d,x,w){x&&w&&a(w,x).selectAll("."+p.sankeyLink).filter(u(x)).call(T.bind(0,x,w,!1))}function h(d,x,w){x&&w&&a(w,x).selectAll("."+p.sankeyLink).filter(u(x)).call(c.bind(0,x,w,!1))}function T(d,x,w,C){C.style("fill",function(y){if(!y.link.concentrationscale)return y.tinyColorHoverHue}).style("fill-opacity",function(y){if(!y.link.concentrationscale)return y.tinyColorHoverAlpha}),C.each(function(y){var E=y.link.label;E!==""&&a(x,d).selectAll("."+p.sankeyLink).filter(function(A){return A.link.label===E}).style("fill",function(A){if(!A.link.concentrationscale)return A.tinyColorHoverHue}).style("fill-opacity",function(A){if(!A.link.concentrationscale)return A.tinyColorHoverAlpha})}),w&&a(x,d).selectAll("."+p.sankeyNode).filter(l(d)).call(g)}function c(d,x,w,C){C.style("fill",function(y){return y.tinyColorHue}).style("fill-opacity",function(y){return y.tinyColorAlpha}),C.each(function(y){var E=y.link.label;E!==""&&a(x,d).selectAll("."+p.sankeyLink).filter(function(A){return A.link.label===E}).style("fill",function(A){return A.tinyColorHue}).style("fill-opacity",function(A){return A.tinyColorAlpha})}),w&&a(x,d).selectAll(p.sankeyNode).filter(l(d)).call(h)}function i(d,x){var w=d.hoverlabel||{},C=P.nestedProperty(w,x).get();return Array.isArray(C)?!1:C}G.exports=function(x,w){for(var C=x._fullLayout,y=C._paper,E=C._size,A=0;A"),color:i($,"bgcolor")||v.addOpacity(oe.color,1),borderColor:i($,"bordercolor"),fontFamily:i($,"font.family"),fontSize:i($,"font.size"),fontColor:i($,"font.color"),fontWeight:i($,"font.weight"),fontStyle:i($,"font.style"),fontVariant:i($,"font.variant"),fontTextcase:i($,"font.textcase"),fontLineposition:i($,"font.lineposition"),fontShadow:i($,"font.shadow"),nameLength:i($,"namelength"),textAlign:i($,"align"),idealAlign:m.event.x"),color:i($,"bgcolor")||le.tinyColorHue,borderColor:i($,"bordercolor"),fontFamily:i($,"font.family"),fontSize:i($,"font.size"),fontColor:i($,"font.color"),fontWeight:i($,"font.weight"),fontStyle:i($,"font.style"),fontVariant:i($,"font.variant"),fontTextcase:i($,"font.textcase"),fontLineposition:i($,"font.lineposition"),fontShadow:i($,"font.shadow"),nameLength:i($,"namelength"),textAlign:i($,"align"),idealAlign:"left",hovertemplate:$.hovertemplate,hovertemplateLabels:j,eventData:[le.node]},{container:C._hoverlayer.node(),outerContainer:C._paper.node(),gd:x});n(fe,.85),f(fe)}}},re=function(ne,le,$){x._fullLayout.hovermode!==!1&&(m.select(ne).call(h,le,$),le.node.trace.node.hoverinfo!=="skip"&&(le.node.fullData=le.node.trace,x.emit("plotly_unhover",{event:m.event,points:[le.node]})),S.loneUnhover(C._hoverlayer.node()))};L(x,y,w,{width:E.w,height:E.h,margin:{t:E.t,r:E.r,b:E.b,l:E.l}},{linkEvents:{hover:b,follow:F,unhover:z,select:M},nodeEvents:{hover:W,follow:J,unhover:re,select:B}})}},83248:function(G,H,e){var m=e(49812),P=e(67756).Gz,s=e(33428),L=e(26800),S=e(48932),v=e(11820),p=e(49760),r=e(76308),t=e(43616),a=e(3400),n=a.strTranslate,f=a.strRotate,u=e(71688),l=u.keyFun,g=u.repeat,h=u.unwrap,T=e(72736),c=e(24040),i=e(84284),d=i.CAP_SHIFT,x=i.LINE_SPACING,w=3;function C(ie,X,Q){var oe=h(X),Y=oe.trace,j=Y.domain,se=Y.orientation==="h",te=Y.node.pad,fe=Y.node.thickness,ge={justify:L.sankeyJustify,left:L.sankeyLeft,right:L.sankeyRight,center:L.sankeyCenter}[Y.node.align],be=ie.width*(j.x[1]-j.x[0]),xe=ie.height*(j.y[1]-j.y[0]),_e=oe._nodes,De=oe._links,Fe=oe.circular,Te;Fe?Te=S.sankeyCircular().circularLinkGap(0):Te=L.sankey(),Te.iterations(v.sankeyIterations).size(se?[be,xe]:[xe,be]).nodeWidth(fe).nodePadding(te).nodeId(function(rt){return rt.pointNumber}).nodeAlign(ge).nodes(_e).links(De);var Re=Te();Te.nodePadding()=Ge||(We=Ge-He.y0,We>1e-6&&(He.y0+=We,He.y1+=We)),Ge=He.y1+te})}function vt(rt){var ze=rt.map(function(Ce,he){return{x0:Ce.x0,index:he}}).sort(function(Ce,he){return Ce.x0-he.x0}),He=[],We=-1,Ge,Le=-1/0,Pe;for(Se=0;SeLe+fe&&(We+=1,Ge=je.x0),Le=je.x0,He[We]||(He[We]=[]),He[We].push(je),Pe=Ge-je.x0,je.x0+=Pe,je.x1+=Pe}return He}if(Y.node.x.length&&Y.node.y.length){for(Se=0;Se0?"L"+Y.targetX+" "+Y.targetY:"")+"Z":Q="M "+(Y.targetX-X)+" "+(Y.targetY-oe)+" L"+(Y.rightInnerExtent-X)+" "+(Y.targetY-oe)+"A"+(Y.rightLargeArcRadius+oe)+" "+(Y.rightSmallArcRadius+oe)+" 0 0 0 "+(Y.rightFullExtent-oe-X)+" "+(Y.targetY+Y.rightSmallArcRadius)+"L"+(Y.rightFullExtent-oe-X)+" "+Y.verticalRightInnerExtent+"A"+(Y.rightLargeArcRadius+oe)+" "+(Y.rightLargeArcRadius+oe)+" 0 0 0 "+(Y.rightInnerExtent-X)+" "+(Y.verticalFullExtent+oe)+"L"+Y.leftInnerExtent+" "+(Y.verticalFullExtent+oe)+"A"+(Y.leftLargeArcRadius+oe)+" "+(Y.leftLargeArcRadius+oe)+" 0 0 0 "+(Y.leftFullExtent+oe)+" "+Y.verticalLeftInnerExtent+"L"+(Y.leftFullExtent+oe)+" "+(Y.sourceY+Y.leftSmallArcRadius)+"A"+(Y.leftLargeArcRadius+oe)+" "+(Y.leftSmallArcRadius+oe)+" 0 0 0 "+Y.leftInnerExtent+" "+(Y.sourceY-oe)+"L"+Y.sourceX+" "+(Y.sourceY-oe)+"L"+Y.sourceX+" "+(Y.sourceY+oe)+"L"+Y.leftInnerExtent+" "+(Y.sourceY+oe)+"A"+(Y.leftLargeArcRadius-oe)+" "+(Y.leftSmallArcRadius-oe)+" 0 0 1 "+(Y.leftFullExtent-oe)+" "+(Y.sourceY+Y.leftSmallArcRadius)+"L"+(Y.leftFullExtent-oe)+" "+Y.verticalLeftInnerExtent+"A"+(Y.leftLargeArcRadius-oe)+" "+(Y.leftLargeArcRadius-oe)+" 0 0 1 "+Y.leftInnerExtent+" "+(Y.verticalFullExtent-oe)+"L"+(Y.rightInnerExtent-X)+" "+(Y.verticalFullExtent-oe)+"A"+(Y.rightLargeArcRadius-oe)+" "+(Y.rightLargeArcRadius-oe)+" 0 0 1 "+(Y.rightFullExtent+oe-X)+" "+Y.verticalRightInnerExtent+"L"+(Y.rightFullExtent+oe-X)+" "+(Y.targetY+Y.rightSmallArcRadius)+"A"+(Y.rightLargeArcRadius-oe)+" "+(Y.rightSmallArcRadius-oe)+" 0 0 1 "+(Y.rightInnerExtent-X)+" "+(Y.targetY+oe)+"L"+(Y.targetX-X)+" "+(Y.targetY+oe)+(X>0?"L"+Y.targetX+" "+Y.targetY:"")+"Z",Q}function A(){var ie=.5;function X(Q){var oe=Q.linkArrowLength;if(Q.link.circular)return E(Q.link,oe);var Y=Math.abs((Q.link.target.x0-Q.link.source.x1)/2);oe>Y&&(oe=Y);var j=Q.link.source.x1,se=Q.link.target.x0-oe,te=P(j,se),fe=te(ie),ge=te(1-ie),be=Q.link.y0-Q.link.width/2,xe=Q.link.y0+Q.link.width/2,_e=Q.link.y1-Q.link.width/2,De=Q.link.y1+Q.link.width/2,Fe="M"+j+","+be,Te="C"+fe+","+be+" "+ge+","+_e+" "+se+","+_e,Re="C"+ge+","+De+" "+fe+","+xe+" "+j+","+xe,Se=oe>0?"L"+(se+oe)+","+(_e+Q.link.width/2):"";return Se+="L"+se+","+De,Fe+Te+Se+Re+"Z"}return X}function o(ie,X){var Q=p(X.color),oe=v.nodePadAcross,Y=ie.nodePad/2;X.dx=X.x1-X.x0,X.dy=X.y1-X.y0;var j=X.dx,se=Math.max(.5,X.dy),te="node_"+X.pointNumber;return X.group&&(te=a.randstr()),X.trace=ie.trace,X.curveNumber=ie.trace.index,{index:X.pointNumber,key:te,partOfGroup:X.partOfGroup||!1,group:X.group,traceId:ie.key,trace:ie.trace,node:X,nodePad:ie.nodePad,nodeLineColor:ie.nodeLineColor,nodeLineWidth:ie.nodeLineWidth,textFont:ie.textFont,size:ie.horizontal?ie.height:ie.width,visibleWidth:Math.ceil(j),visibleHeight:se,zoneX:-oe,zoneY:-Y,zoneWidth:j+2*oe,zoneHeight:se+2*Y,labelY:ie.horizontal?X.dy/2+1:X.dx/2+1,left:X.originalLayer===1,sizeAcross:ie.width,forceLayouts:ie.forceLayouts,horizontal:ie.horizontal,darkBackground:Q.getBrightness()<=128,tinyColorHue:r.tinyRGB(Q),tinyColorAlpha:Q.getAlpha(),valueFormat:ie.valueFormat,valueSuffix:ie.valueSuffix,sankey:ie.sankey,graph:ie.graph,arrangement:ie.arrangement,uniqueNodeLabelPathId:[ie.guid,ie.key,te].join("_"),interactionState:ie.interactionState,figure:ie}}function M(ie){ie.attr("transform",function(X){return n(X.node.x0.toFixed(3),X.node.y0.toFixed(3))})}function b(ie){ie.call(M)}function I(ie,X){ie.call(b),X.attr("d",A())}function D(ie){ie.attr("width",function(X){return X.node.x1-X.node.x0}).attr("height",function(X){return X.visibleHeight})}function N(ie){return ie.link.width>1||ie.linkLineWidth>0}function k(ie){var X=n(ie.translateX,ie.translateY);return X+(ie.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function O(ie,X,Q){ie.on(".basic",null).on("mouseover.basic",function(oe){!oe.interactionState.dragInProgress&&!oe.partOfGroup&&(Q.hover(this,oe,X),oe.interactionState.hovered=[this,oe])}).on("mousemove.basic",function(oe){!oe.interactionState.dragInProgress&&!oe.partOfGroup&&(Q.follow(this,oe),oe.interactionState.hovered=[this,oe])}).on("mouseout.basic",function(oe){!oe.interactionState.dragInProgress&&!oe.partOfGroup&&(Q.unhover(this,oe,X),oe.interactionState.hovered=!1)}).on("click.basic",function(oe){oe.interactionState.hovered&&(Q.unhover(this,oe,X),oe.interactionState.hovered=!1),!oe.interactionState.dragInProgress&&!oe.partOfGroup&&Q.select(this,oe,X)})}function F(ie,X,Q,oe){var Y=s.behavior.drag().origin(function(j){return{x:j.node.x0+j.visibleWidth/2,y:j.node.y0+j.visibleHeight/2}}).on("dragstart",function(j){if(j.arrangement!=="fixed"&&(a.ensureSingle(oe._fullLayout._infolayer,"g","dragcover",function(te){oe._fullLayout._dragCover=te}),a.raiseToTop(this),j.interactionState.dragInProgress=j.node,ne(j.node),j.interactionState.hovered&&(Q.nodeEvents.unhover.apply(0,j.interactionState.hovered),j.interactionState.hovered=!1),j.arrangement==="snap")){var se=j.traceId+"|"+j.key;j.forceLayouts[se]?j.forceLayouts[se].alpha(1):z(ie,se,j),B(ie,X,j,se,oe)}}).on("drag",function(j){if(j.arrangement!=="fixed"){var se=s.event.x,te=s.event.y;j.arrangement==="snap"?(j.node.x0=se-j.visibleWidth/2,j.node.x1=se+j.visibleWidth/2,j.node.y0=te-j.visibleHeight/2,j.node.y1=te+j.visibleHeight/2):(j.arrangement==="freeform"&&(j.node.x0=se-j.visibleWidth/2,j.node.x1=se+j.visibleWidth/2),te=Math.max(0,Math.min(j.size-j.visibleHeight/2,te)),j.node.y0=te-j.visibleHeight/2,j.node.y1=te+j.visibleHeight/2),ne(j.node),j.arrangement!=="snap"&&(j.sankey.update(j.graph),I(ie.filter(le(j)),X))}}).on("dragend",function(j){if(j.arrangement!=="fixed"){j.interactionState.dragInProgress=!1;for(var se=0;se0)window.requestAnimationFrame(j);else{var fe=Q.node.originalX;Q.node.x0=fe-Q.visibleWidth/2,Q.node.x1=fe+Q.visibleWidth/2,J(Q,Y)}})}function W(ie,X,Q,oe){return function(){for(var j=0,se=0;se0&&oe.forceLayouts[X].alpha(0)}}function J(ie,X){for(var Q=[],oe=[],Y=0;Yk&&M[F].gap;)F--;for(B=M[F].s,O=M.length-1;O>F;O--)M[O].s=B;for(;kD[h]&&h=0;u--){var l=S[u];if(l.type==="scatter"&&l.xaxis===n.xaxis&&l.yaxis===n.yaxis){l.opacity=void 0;break}}}}}},18800:function(G,H,e){var m=e(3400),P=e(24040),s=e(52904),L=e(88200),S=e(43028),v=e(43980),p=e(31147),r=e(43912),t=e(74428),a=e(66828),n=e(11731),f=e(124),u=e(70840),l=e(3400).coercePattern;G.exports=function(h,T,c,i){function d(M,b){return m.coerce(h,T,s,M,b)}var x=v(h,T,i,d);if(x||(T.visible=!1),!!T.visible){p(h,T,i,d),d("xhoverformat"),d("yhoverformat"),d("zorder");var w=r(h,T,i,d);i.scattermode==="group"&&T.orientation===void 0&&d("orientation","v");var C=!w&&x=Math.min(ne,le)&&h<=Math.max(ne,le)?0:1/0}var $=Math.max(3,re.mrc||0),Z=1-1/$,ie=Math.abs(l.c2p(re.x)-h);return ie<$?Z*ie/$:ie-$+Z},y=function(re){if(w){var ne=g.c2p(re.yStart),le=g.c2p(re.yEnd);return T>=Math.min(ne,le)&&T<=Math.max(ne,le)?0:1/0}var $=Math.max(3,re.mrc||0),Z=1-1/$,ie=Math.abs(g.c2p(re.y)-T);return ie<$?Z*ie/$:ie-$+Z},E=function(re){var ne=Math.max(d,re.mrc||0),le=l.c2p(re.x)-h,$=g.c2p(re.y)-T;return Math.max(Math.sqrt(le*le+$*$)-ne,1-d/ne)},A=P.getDistanceFunction(n,C,y,E);if(P.getClosest(f,A,r),r.index!==!1){var o=f[r.index],M=l.c2p(o.x,!0),b=g.c2p(o.y,!0),I=o.mrc||1;r.index=o.i;var D=f[0].t.orientation,N=D&&(o.sNorm||o.s),k=D==="h"?N:o.orig_x!==void 0?o.orig_x:o.x,O=D==="v"?N:o.orig_y!==void 0?o.orig_y:o.y;return m.extendFlat(r,{color:L(u,o),x0:M-I,x1:M+I,xLabelVal:k,y0:b-I,y1:b+I,yLabelVal:O,spikeDistance:E(o),hovertemplate:u.hovertemplate}),v(o,u,r),s.getComponentMethod("errorbars","hoverInfo")(o,u,r),[r]}}function F(re){if(!re)return!1;var ne=re.node();try{var le=new DOMPoint(c[0],c[1]);return ne.isPointInFill(le)}catch{var $=ne.ownerSVGElement.createSVGPoint();return $.x=c[0],$.y=c[1],ne.isPointInFill($)}}function z(re){var ne,le=[],$=1/0,Z=-1/0,ie=1/0,X=-1/0,Q;for(ne=0;neQ!=be>=Q&&(te=j[Y-1][0],fe=j[Y][0],be-ge&&(se=te+(fe-te)*(Q-ge)/(be-ge),$=Math.min($,se),Z=Math.max(Z,se)));return $=Math.max($,0),Z=Math.min(Z,l._length),{x0:$,x1:Z,y0:Q,y1:Q}}if(i.indexOf("fills")!==-1&&u._fillElement){var B=F(u._fillElement)&&!F(u._fillExclusionElement);if(B){var W=z(u._polygons);W===null&&(W={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var J=S.defaultLine;return S.opacity(u.fillcolor)?J=u.fillcolor:S.opacity((u.line||{}).color)&&(J=u.line.color),m.extendFlat(r,{distance:r.maxHoverDistance,x0:W.x0,x1:W.x1,y0:W.y0,y1:W.y1,color:J,hovertemplate:!1}),delete r.index,u.text&&!m.isArrayOrTypedArray(u.text)?r.text=String(u.text):r.text=u.name,[r]}}}},65875:function(G,H,e){var m=e(43028);G.exports={hasLines:m.hasLines,hasMarkers:m.hasMarkers,hasText:m.hasText,isBubble:m.isBubble,attributes:e(52904),layoutAttributes:e(55308),supplyDefaults:e(18800),crossTraceDefaults:e(35036),supplyLayoutDefaults:e(59748),calc:e(16356).calc,crossTraceCalc:e(96664),arraysToCalcdata:e(20148),plot:e(96504),colorbar:e(5528),formatLabels:e(76688),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(98723),selectPoints:e(91560),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e(57952),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},55308:function(G){G.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},59748:function(G,H,e){var m=e(3400),P=e(55308);G.exports=function(s,L){function S(p,r){return m.coerce(s,L,P,p,r)}var v=L.barmode==="group";L.scattermode==="group"&&S("scattergap",v?L.bargap:.2)}},66828:function(G,H,e){var m=e(3400).isArrayOrTypedArray,P=e(94288).hasColorscale,s=e(27260);G.exports=function(S,v,p,r,t,a){a||(a={});var n=(S.marker||{}).color;if(n&&n._inputArray&&(n=n._inputArray),t("line.color",p),P(S,"line"))s(S,v,r,t,{prefix:"line.",cLetter:"c"});else{var f=(m(n)?!1:n)||p;t("line.color",f)}t("line.width"),a.noDash||t("line.dash"),a.backoff&&t("line.backoff")}},52340:function(G,H,e){var m=e(43616),P=e(39032),s=P.BADNUM,L=P.LOG_CLIP,S=L+.5,v=L-.5,p=e(3400),r=p.segmentsIntersect,t=p.constrain,a=e(88200);G.exports=function(f,u){var l=u.trace||{},g=u.xaxis,h=u.yaxis,T=g.type==="log",c=h.type==="log",i=g._length,d=h._length,x=u.backoff,w=l.marker,C=u.connectGaps,y=u.baseTolerance,E=u.shape,A=E==="linear",o=l.fill&&l.fill!=="none",M=[],b=a.minTolerance,I=f.length,D=new Array(I),N=0,k,O,F,z,B,W,J,re,ne,le,$,Z,ie,X,Q,oe;function Y(st){var lt=f[st];if(!lt)return!1;var Wt=u.linearized?g.l2p(lt.x):g.c2p(lt.x),Zt=u.linearized?h.l2p(lt.y):h.c2p(lt.y);if(Wt===s){if(T&&(Wt=g.c2p(lt.x,!0)),Wt===s)return!1;c&&Zt===s&&(Wt*=Math.abs(g._m*d*(g._m>0?S:v)/(h._m*i*(h._m>0?S:v)))),Wt*=1e3}if(Zt===s){if(c&&(Zt=h.c2p(lt.y,!0)),Zt===s)return!1;Zt*=1e3}return[Wt,Zt]}function j(st,lt,Wt,Zt){var Tt=Wt-st,Rt=Zt-lt,Xt=.5-st,gr=.5-lt,gt=Tt*Tt+Rt*Rt,Kt=Tt*Xt+Rt*gr;if(Kt>0&&Kt1||Math.abs(Xt.y-Wt[0][1])>1)&&(Xt=[Xt.x,Xt.y],Zt&&ge(Xt,st)_e||st[1]Fe)return[t(st[0],xe,_e),t(st[1],De,Fe)]}function $e(st,lt){if(st[0]===lt[0]&&(st[0]===xe||st[0]===_e)||st[1]===lt[1]&&(st[1]===De||st[1]===Fe))return!0}function ht(st,lt){var Wt=[],Zt=Qe(st),Tt=Qe(lt);return Zt&&Tt&&$e(Zt,Tt)||(Zt&&Wt.push(Zt),Tt&&Wt.push(Tt)),Wt}function vt(st,lt,Wt){return function(Zt,Tt){var Rt=Qe(Zt),Xt=Qe(Tt),gr=[];if(Rt&&Xt&&$e(Rt,Xt))return gr;Rt&&gr.push(Rt),Xt&&gr.push(Xt);var gt=2*p.constrain((Zt[st]+Tt[st])/2,lt,Wt)-((Rt||Zt)[st]+(Xt||Tt)[st]);if(gt){var Kt;Rt&&Xt?Kt=gt>0==Rt[st]>Xt[st]?Rt:Xt:Kt=Rt||Xt,Kt[st]+=gt}return gr}}var pt;E==="linear"||E==="spline"?pt=ot:E==="hv"||E==="vh"?pt=ht:E==="hvh"?pt=vt(0,xe,_e):E==="vhv"&&(pt=vt(1,De,Fe));function wt(st,lt){var Wt=lt[0]-st[0],Zt=(lt[1]-st[1])/Wt,Tt=(st[1]*lt[0]-lt[1]*st[0])/Wt;return Tt>0?[Zt>0?xe:_e,Fe]:[Zt>0?_e:xe,De]}function Ct(st){var lt=st[0],Wt=st[1],Zt=lt===D[N-1][0],Tt=Wt===D[N-1][1];if(!(Zt&&Tt))if(N>1){var Rt=lt===D[N-2][0],Xt=Wt===D[N-2][1];Zt&&(lt===xe||lt===_e)&&Rt?Xt?N--:D[N-1]=st:Tt&&(Wt===De||Wt===Fe)&&Xt?Rt?N--:D[N-1]=st:D[N++]=st}else D[N++]=st}function rt(st){D[N-1][0]!==st[0]&&D[N-1][1]!==st[1]&&Ct([Ie,Me]),Ct(st),Ve=null,Ie=Me=0}var ze=p.isArrayOrTypedArray(w);function He(st){if(st&&x&&(st.i=k,st.d=f,st.trace=l,st.marker=ze?w[st.i]:w,st.backoff=x),se=st[0]/i,te=st[1]/d,Re=st[0]_e?_e:0,Se=st[1]Fe?Fe:0,Re||Se){if(!N)D[N++]=[Re||st[0],Se||st[1]];else if(Ve){var lt=pt(Ve,st);lt.length>1&&(rt(lt[0]),D[N++]=lt[1])}else et=pt(D[N-1],st)[0],D[N++]=et;var Wt=D[N-1];Re&&Se&&(Wt[0]!==Re||Wt[1]!==Se)?(Ve&&(Ie!==Re&&Me!==Se?Ct(Ie&&Me?wt(Ve,st):[Ie||Re,Me||Se]):Ie&&Me&&Ct([Ie,Me])),Ct([Re,Se])):Ie-Re&&Me-Se&&Ct([Re||Ie,Se||Me]),Ve=st,Ie=Re,Me=Se}else Ve&&rt(pt(Ve,st)[0]),D[N++]=st}for(k=0;kfe(W,We))break;F=W,ie=ne[0]*re[0]+ne[1]*re[1],ie>$?($=ie,z=W,J=!1):ie=f.length||!W)break;He(W),O=W}}Ve&&Ct([Ie||Ve[0],Me||Ve[1]]),M.push(D.slice(0,N))}var Ge=E.slice(E.length-1);if(x&&Ge!=="h"&&Ge!=="v"){for(var Le=!1,Pe=-1,je=[],Ce=0;Ce=0?r=u:(r=u=f,f++),r0?Math.max(a,p):0}}},5528:function(G){G.exports={container:"marker",min:"cmin",max:"cmax"}},74428:function(G,H,e){var m=e(76308),P=e(94288).hasColorscale,s=e(27260),L=e(43028);G.exports=function(v,p,r,t,a,n){var f=L.isBubble(v),u=(v.line||{}).color,l;if(n=n||{},u&&(r=u),a("marker.symbol"),a("marker.opacity",f?.7:1),a("marker.size"),n.noAngle||(a("marker.angle"),n.noAngleRef||a("marker.angleref"),n.noStandOff||a("marker.standoff")),a("marker.color",r),P(v,"marker")&&s(v,p,t,a,{prefix:"marker.",cLetter:"c"}),n.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),n.noLine||(u&&!Array.isArray(u)&&p.marker.color!==u?l=u:f?l=m.background:l=m.defaultLine,a("marker.line.color",l),P(v,"marker.line")&&s(v,p,t,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",f?1:0)),f&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),n.gradient){var g=a("marker.gradient.type");g!=="none"&&a("marker.gradient.color")}}},31147:function(G,H,e){var m=e(3400).dateTick0,P=e(39032),s=P.ONEWEEK;function L(S,v){return S%s===0?m(v,1):m(v,0)}G.exports=function(v,p,r,t,a){if(a||(a={x:!0,y:!0}),a.x){var n=t("xperiod");n&&(t("xperiod0",L(n,p.xcalendar)),t("xperiodalignment"))}if(a.y){var f=t("yperiod");f&&(t("yperiod0",L(f,p.ycalendar)),t("yperiodalignment"))}}},96504:function(G,H,e){var m=e(33428),P=e(24040),s=e(3400),L=s.ensureSingle,S=s.identity,v=e(43616),p=e(43028),r=e(52340),t=e(14328),a=e(92065).tester;G.exports=function(g,h,T,c,i,d){var x,w,C=!i,y=!!i&&i.duration>0,E=t(g,h,T);if(x=c.selectAll("g.trace").data(E,function(o){return o[0].trace.uid}),x.enter().append("g").attr("class",function(o){return"trace scatter trace"+o[0].trace.uid}).style("stroke-miterlimit",2),x.order(),n(g,x,h),y){d&&(w=d());var A=m.transition().duration(i.duration).ease(i.easing).each("end",function(){w&&w()}).each("interrupt",function(){w&&w()});A.each(function(){c.selectAll("g.trace").each(function(o,M){f(g,M,h,o,E,this,i)})})}else x.each(function(o,M){f(g,M,h,o,E,this,i)});C&&x.exit().remove(),c.selectAll("path:not([d])").remove()};function n(l,g,h){g.each(function(T){var c=L(m.select(this),"g","fills");v.setClipUrl(c,h.layerClipId,l);var i=T[0].trace,d=[];i._ownfill&&d.push("_ownFill"),i._nexttrace&&d.push("_nextFill");var x=c.selectAll("g").data(d,S);x.enter().append("g"),x.exit().each(function(w){i[w]=null}).remove(),x.order().each(function(w){i[w]=L(m.select(this),"path","js-fill")})})}function f(l,g,h,T,c,i,d){var x=l._context.staticPlot,w;u(l,g,h,T,c);var C=!!d&&d.duration>0;function y(Ct){return C?Ct.transition():Ct}var E=h.xaxis,A=h.yaxis,o=T[0].trace,M=o.line,b=m.select(i),I=L(b,"g","errorbars"),D=L(b,"g","lines"),N=L(b,"g","points"),k=L(b,"g","text");if(P.getComponentMethod("errorbars","plot")(l,I,h,d),o.visible!==!0)return;y(b).style("opacity",o.opacity);var O,F,z=o.fill.charAt(o.fill.length-1);z!=="x"&&z!=="y"&&(z="");var B,W;z==="y"?(B=1,W=A.c2p(0,!0)):z==="x"&&(B=0,W=E.c2p(0,!0)),T[0][h.isRangePlot?"nodeRangePlot3":"node3"]=b;var J="",re=[],ne=o._prevtrace,le=null,$=null;ne&&(J=ne._prevRevpath||"",F=ne._nextFill,re=ne._ownPolygons,le=ne._fillsegments,$=ne._fillElement);var Z,ie,X="",Q="",oe,Y,j,se,te,fe,ge=[];o._polygons=[];var be=[],xe=[],_e=s.noop;if(O=o._ownFill,p.hasLines(o)||o.fill!=="none"){F&&F.datum(T),["hv","vh","hvh","vhv"].indexOf(M.shape)!==-1?(oe=v.steps(M.shape),Y=v.steps(M.shape.split("").reverse().join(""))):M.shape==="spline"?oe=Y=function(Ct){var rt=Ct[Ct.length-1];return Ct.length>1&&Ct[0][0]===rt[0]&&Ct[0][1]===rt[1]?v.smoothclosed(Ct.slice(1),M.smoothing):v.smoothopen(Ct,M.smoothing)}:oe=Y=function(Ct){return"M"+Ct.join("L")},j=function(Ct){return Y(Ct.reverse())},xe=r(T,{xaxis:E,yaxis:A,trace:o,connectGaps:o.connectgaps,baseTolerance:Math.max(M.width||1,3)/4,shape:M.shape,backoff:M.backoff,simplify:M.simplify,fill:o.fill}),be=new Array(xe.length);var De=0;for(w=0;w=x[0]&&b.x<=x[1]&&b.y>=w[0]&&b.y<=w[1]}),A=Math.ceil(E.length/y),o=0;c.forEach(function(b,I){var D=b[0].trace;p.hasMarkers(D)&&D.marker.maxdisplayed>0&&I0){var h=r.c2l(l);r._lowerLogErrorBound||(r._lowerLogErrorBound=h),r._lowerErrorBound=Math.min(r._lowerLogErrorBound,h)}}else a[n]=[-f[0]*p,f[1]*p]}return a}function s(S){for(var v=0;v-1?-1:b.indexOf("right")>-1?1:0}function d(b){return b==null?0:b.indexOf("top")>-1?-1:b.indexOf("bottom")>-1?1:0}function x(b){var I=0,D=0,N=[I,D];if(Array.isArray(b))for(var k=0;k=0){var W=T(z.position,z.delaunayColor,z.delaunayAxis);W.opacity=b.opacity,this.delaunayMesh?this.delaunayMesh.update(W):(W.gl=I,this.delaunayMesh=L(W),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},h.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function M(b,I){var D=new g(b,I.uid);return D.update(I),D}G.exports=M},83484:function(G,H,e){var m=e(24040),P=e(3400),s=e(43028),L=e(74428),S=e(66828),v=e(124),p=e(91592);G.exports=function(a,n,f,u){function l(w,C){return P.coerce(a,n,p,w,C)}var g=r(a,n,l,u);if(!g){n.visible=!1;return}l("text"),l("hovertext"),l("hovertemplate"),l("xhoverformat"),l("yhoverformat"),l("zhoverformat"),l("mode"),s.hasMarkers(n)&&L(a,n,f,u,l,{noSelect:!0,noAngle:!0}),s.hasLines(n)&&(l("connectgaps"),S(a,n,f,u,l)),s.hasText(n)&&(l("texttemplate"),v(a,n,u,l,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var h=(n.line||{}).color,T=(n.marker||{}).color;l("surfaceaxis")>=0&&l("surfacecolor",h||T);for(var c=["x","y","z"],i=0;i<3;++i){var d="projection."+c[i];l(d+".show")&&(l(d+".opacity"),l(d+".scale"))}var x=m.getComponentMethod("errorbars","supplyDefaults");x(a,n,h||T||f,{axis:"z"}),x(a,n,h||T||f,{axis:"y",inherit:"z"}),x(a,n,h||T||f,{axis:"x",inherit:"z"})};function r(t,a,n,f){var u=0,l=n("x"),g=n("y"),h=n("z"),T=m.getComponentMethod("calendars","handleTraceDefaults");return T(t,a,["x","y","z"],f),l&&g&&h&&(u=Math.min(l.length,g.length,h.length),a._length=a._xlength=a._ylength=a._zlength=u),u}},3296:function(G,H,e){G.exports={plot:e(41064),attributes:e(91592),markerSymbols:e(87792),supplyDefaults:e(83484),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:e(41484),moduleType:"trace",name:"scatter3d",basePlotModule:e(12536),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},90372:function(G,H,e){var m=e(98304),P=e(52904),s=e(45464),L=e(21776).Ks,S=e(21776).Gw,v=e(49084),p=e(92880).extendFlat,r=P.marker,t=P.line,a=r.line;G.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:p({},P.mode,{dflt:"markers"}),text:p({},P.text,{}),texttemplate:S({editType:"plot"},{keys:["a","b","text"]}),hovertext:p({},P.hovertext,{}),line:{color:t.color,width:t.width,dash:t.dash,backoff:t.backoff,shape:p({},t.shape,{values:["linear","spline"]}),smoothing:t.smoothing,editType:"calc"},connectgaps:P.connectgaps,fill:p({},P.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:m(),marker:p({symbol:r.symbol,opacity:r.opacity,maxdisplayed:r.maxdisplayed,angle:r.angle,angleref:r.angleref,standoff:r.standoff,size:r.size,sizeref:r.sizeref,sizemin:r.sizemin,sizemode:r.sizemode,line:p({width:a.width,editType:"calc"},v("marker.line")),gradient:r.gradient,editType:"calc"},v("marker")),textfont:P.textfont,textposition:P.textposition,selected:P.selected,unselected:P.unselected,hoverinfo:p({},s.hoverinfo,{flags:["a","b","text","name"]}),hoveron:P.hoveron,hovertemplate:L(),zorder:P.zorder}},48228:function(G,H,e){var m=e(38248),P=e(90136),s=e(20148),L=e(4500),S=e(16356).calcMarkerSize,v=e(50948);G.exports=function(r,t){var a=t._carpetTrace=v(r,t);if(!(!a||!a.visible||a.visible==="legendonly")){var n;t.xaxis=a.xaxis,t.yaxis=a.yaxis;var f=t._length,u=new Array(f),l,g,h=!1;for(n=0;n0?y=w.labelprefix.replace(/ = $/,""):y=w._hovertitle,c.push(y+": "+C.toFixed(3)+w.labelsuffix)}if(!g.hovertemplate){var d=l.hi||g.hoverinfo,x=d.split("+");x.indexOf("all")!==-1&&(x=["a","b","text"]),x.indexOf("a")!==-1&&i(h.aaxis,l.a),x.indexOf("b")!==-1&&i(h.baxis,l.b),c.push("y: "+t.yLabel),x.indexOf("text")!==-1&&P(l,g,c),t.extraText=c.join("
")}return r}},4184:function(G,H,e){G.exports={attributes:e(90372),supplyDefaults:e(6176),colorbar:e(5528),formatLabels:e(52364),calc:e(48228),plot:e(20036),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(58960),selectPoints:e(91560),eventData:e(89307),moduleType:"trace",name:"scattercarpet",basePlotModule:e(57952),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},20036:function(G,H,e){var m=e(96504),P=e(54460),s=e(43616);G.exports=function(S,v,p,r){var t,a,n,f=p[0][0].carpet,u=P.getFromId(S,f.xaxis||"x"),l=P.getFromId(S,f.yaxis||"y"),g={xaxis:u,yaxis:l,plot:v.plot};for(t=0;t")}},36952:function(G,H,e){G.exports={attributes:e(6096),supplyDefaults:e(86188),colorbar:e(5528),formatLabels:e(56696),calc:e(25212),calcGeoJSON:e(48691).calcGeoJSON,plot:e(48691).plot,style:e(25064),styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(64292),eventData:e(58544),selectPoints:e(8796),moduleType:"trace",name:"scattergeo",basePlotModule:e(10816),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},48691:function(G,H,e){var m=e(33428),P=e(3400),s=e(59972).getTopojsonFeatures,L=e(44808),S=e(27144),v=e(19280).findExtremes,p=e(39032).BADNUM,r=e(16356).calcMarkerSize,t=e(43028),a=e(25064);function n(u,l,g){var h=l.layers.frontplot.select(".scatterlayer"),T=P.makeTraceGroups(h,g,"trace scattergeo");function c(i,d){i.lonlat[0]===p&&m.select(d).remove()}T.selectAll("*").remove(),T.each(function(i){var d=m.select(this),x=i[0].trace;if(t.hasLines(x)||x.fill!=="none"){var w=L.calcTraceToLineCoords(i),C=x.fill!=="none"?L.makePolygon(w):L.makeLine(w);d.selectAll("path.js-line").data([{geojson:C,trace:x}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}t.hasMarkers(x)&&d.selectAll("path.point").data(P.identity).enter().append("path").classed("point",!0).each(function(y){c(y,this)}),t.hasText(x)&&d.selectAll("g").data(P.identity).enter().append("g").append("text").each(function(y){c(y,this)}),a(u,i)})}function f(u,l){var g=u[0].trace,h=l[g.geo],T=h._subplot,c=g._length,i,d;if(P.isArrayOrTypedArray(g.locations)){var x=g.locationmode,w=x==="geojson-id"?S.extractTraceFeature(u):s(g,T.topojson);for(i=0;i=l,A=y*2,o={},M,b=x.makeCalcdata(i,"x"),I=w.makeCalcdata(i,"y"),D=S(i,x,"x",b),N=S(i,w,"y",I),k=D.vals,O=N.vals;i._x=k,i._y=O,i.xperiodalignment&&(i._origX=b,i._xStarts=D.starts,i._xEnds=D.ends),i.yperiodalignment&&(i._origY=I,i._yStarts=N.starts,i._yEnds=N.ends);var F=new Array(A),z=new Array(y);for(M=0;M1&&P.extendFlat(C.line,n.linePositions(T,i,d)),C.errorX||C.errorY){var y=n.errorBarPositions(T,i,d,x,w);C.errorX&&P.extendFlat(C.errorX,y.x),C.errorY&&P.extendFlat(C.errorY,y.y)}return C.text&&(P.extendFlat(C.text,{positions:d},n.textPosition(T,i,C.text,C.marker)),P.extendFlat(C.textSel,{positions:d},n.textPosition(T,i,C.text,C.markerSel)),P.extendFlat(C.textUnsel,{positions:d},n.textPosition(T,i,C.text,C.markerUnsel))),C}},67072:function(G){var H=20;G.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:H,SYMBOL_STROKE:H/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},84236:function(G,H,e){var m=e(38248),P=e(20472),s=e(72160),L=e(24040),S=e(3400),v=S.isArrayOrTypedArray,p=e(43616),r=e(79811),t=e(33040).formatColor,a=e(43028),n=e(7152),f=e(80088),u=e(67072),l=e(13448).DESELECTDIM,g={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},h=e(10624).appendArrayPointValue;function T(k,O){var F,z={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},B=k._context.plotGlPixelRatio;if(O.visible!==!0)return z;if(a.hasText(O)&&(z.text=c(k,O),z.textSel=w(k,O,O.selected),z.textUnsel=w(k,O,O.unselected)),a.hasMarkers(O)&&(z.marker=d(k,O),z.markerSel=x(k,O,O.selected),z.markerUnsel=x(k,O,O.unselected),!O.unselected&&v(O.marker.opacity))){var W=O.marker.opacity;for(z.markerUnsel.opacity=new Array(W.length),F=0;F500?"bold":"normal":k}function d(k,O){var F=O._length,z=O.marker,B={},W,J=v(z.symbol),re=v(z.angle),ne=v(z.color),le=v(z.line.color),$=v(z.opacity),Z=v(z.size),ie=v(z.line.width),X;if(J||(X=f.isOpenSymbol(z.symbol)),J||ne||le||$||re){B.symbols=new Array(F),B.angles=new Array(F),B.colors=new Array(F),B.borderColors=new Array(F);var Q=z.symbol,oe=z.angle,Y=t(z,z.opacity,F),j=t(z.line,z.opacity,F);if(!v(j[0])){var se=j;for(j=Array(F),W=0;Wu.TOO_MANY_POINTS||a.hasMarkers(O)?"rect":"round";if(le&&O.connectgaps){var Z=W[0],ie=W[1];for(J=0;J1?ne[J]:ne[0]:ne,X=v(le)?le.length>1?le[J]:le[0]:le,Q=g[ie],oe=g[X],Y=$?$/.8+1:0,j=-oe*Y-oe*.5;W.offset[J]=[Q*Y/Z,j/Z]}}return W}G.exports={style:T,markerStyle:d,markerSelection:x,linePositions:I,errorBarPositions:D,textPosition:N}},80220:function(G,H,e){var m=e(3400),P=e(24040),s=e(80088),L=e(2876),S=e(88200),v=e(43028),p=e(43980),r=e(31147),t=e(74428),a=e(66828),n=e(70840),f=e(124);G.exports=function(l,g,h,T){function c(A,o){return m.coerce(l,g,L,A,o)}var i=l.marker?s.isOpenSymbol(l.marker.symbol):!1,d=v.isBubble(l),x=p(l,g,T,c);if(!x){g.visible=!1;return}r(l,g,T,c),c("xhoverformat"),c("yhoverformat");var w=x100},H.isDotSymbol=function(P){return typeof P=="string"?m.DOT_RE.test(P):P>200}},41272:function(G,H,e){var m=e(24040),P=e(3400),s=e(44928);function L(v,p,r,t){var a=v.cd,n=a[0].t,f=a[0].trace,u=v.xa,l=v.ya,g=n.x,h=n.y,T=u.c2p(p),c=l.c2p(r),i=v.distance,d;if(n.tree){var x=u.p2c(T-i),w=u.p2c(T+i),C=l.p2c(c-i),y=l.p2c(c+i);t==="x"?d=n.tree.range(Math.min(x,w),Math.min(l._rl[0],l._rl[1]),Math.max(x,w),Math.max(l._rl[0],l._rl[1])):d=n.tree.range(Math.min(x,w),Math.min(C,y),Math.max(x,w),Math.max(C,y))}else d=n.ids;var E,A,o,M,b,I,D,N,k,O=i;if(t==="x"){var F=!!f.xperiodalignment,z=!!f.yperiodalignment;for(b=0;b=Math.min(B,W)&&T<=Math.max(B,W)?0:1/0}if(I=Math.min(J,re)&&c<=Math.max(J,re)?0:1/0}k=Math.sqrt(I*I+D*D),A=d[b]}}}else for(b=d.length-1;b>-1;b--)E=d[b],o=g[E],M=h[E],I=u.c2p(o)-T,D=l.c2p(M)-c,N=Math.sqrt(I*I+D*D),Ni.glText.length){var o=E-i.glText.length;for(w=0;wse&&(isNaN(j[te])||isNaN(j[te+1]));)te-=2;Y.positions=j.slice(se,te+2)}return Y}),i.line2d.update(i.lineOptions)),i.error2d){var I=(i.errorXOptions||[]).concat(i.errorYOptions||[]);i.error2d.update(I)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=S.repeat(null,E),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(Y,j){var se=T[j];if(!(!Y||!se||!se[0]||!se[0].trace)){var te=se[0],fe=te.trace,ge=te.t,be=i.lineOptions[j],xe,_e,De=[];fe._ownfill&&De.push(j),fe._nexttrace&&De.push(j+1),De.length&&(i.fillOrder[j]=De);var Fe=[],Te=be&&be.positions||ge.positions,Re,Se;if(fe.fill==="tozeroy"){for(Re=0;ReRe&&isNaN(Te[Se+1]);)Se-=2;Te[Re+1]!==0&&(Fe=[Te[Re],0]),Fe=Fe.concat(Te.slice(Re,Se+2)),Te[Se+1]!==0&&(Fe=Fe.concat([Te[Se],0]))}else if(fe.fill==="tozerox"){for(Re=0;ReRe&&isNaN(Te[Se]);)Se-=2;Te[Re]!==0&&(Fe=[0,Te[Re+1]]),Fe=Fe.concat(Te.slice(Re,Se+2)),Te[Se]!==0&&(Fe=Fe.concat([0,Te[Se+1]]))}else if(fe.fill==="toself"||fe.fill==="tonext"){for(Fe=[],xe=0,Y.splitNull=!0,_e=0;_e-1;for(w=0;w850?b+=" Black":A>750?b+=" Extra Bold":A>650?b+=" Bold":A>550?b+=" Semi Bold":A>450?b+=" Medium":A>350?b+=" Regular":A>250?b+=" Light":A>150?b+=" Extra Light":b+=" Thin"):o.slice(0,2).join(" ")==="Open Sans"?(b="Open Sans",A>750?b+=" Extrabold":A>650?b+=" Bold":A>550?b+=" Semibold":A>350?b+=" Regular":b+=" Light"):o.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(b="Klokantech Noto Sans",o[3]==="CJK"&&(b+=" CJK"),b+=A>500?" Bold":" Regular")),M&&(b+=" Italic"),b==="Open Sans Regular Italic"?b="Open Sans Italic":b==="Open Sans Regular Bold"?b="Open Sans Bold":b==="Open Sans Regular Bold Italic"?b="Open Sans Bold Italic":b==="Klokantech Noto Sans Regular Italic"&&(b="Klokantech Noto Sans Italic"),t(b)||(b=y);var I=b.split(", ");return I}},15752:function(G,H,e){var m=e(3400),P=e(43028),s=e(74428),L=e(66828),S=e(124),v=e(70840),p=e(31512),r=e(79732).isSupportedFont;G.exports=function(n,f,u,l){function g(o,M){return m.coerce(n,f,p,o,M)}function h(o,M){return m.coerce2(n,f,p,o,M)}var T=t(n,f,g);if(!T){f.visible=!1;return}if(g("text"),g("texttemplate"),g("hovertext"),g("hovertemplate"),g("mode"),g("below"),P.hasMarkers(f)){s(n,f,u,l,g,{noLine:!0,noAngle:!0}),g("marker.allowoverlap"),g("marker.angle");var c=f.marker;c.symbol!=="circle"&&(m.isArrayOrTypedArray(c.size)&&(c.size=c.size[0]),m.isArrayOrTypedArray(c.color)&&(c.color=c.color[0]))}P.hasLines(f)&&(L(n,f,u,l,g,{noDash:!0}),g("connectgaps"));var i=h("cluster.maxzoom"),d=h("cluster.step"),x=h("cluster.color",f.marker&&f.marker.color||u),w=h("cluster.size"),C=h("cluster.opacity"),y=i!==!1||d!==!1||x!==!1||w!==!1||C!==!1,E=g("cluster.enabled",y);if(E||P.hasText(f)){var A=l.font.family;S(n,f,l,g,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:r(A)?A:"Open Sans Regular",weight:l.font.weight,style:l.font.style,size:l.font.size,color:l.font.color}})}g("fill"),f.fill!=="none"&&v(n,f,u,g),m.coerceSelectionMarkerOpacity(f,g)};function t(a,n,f){var u=f("lon")||[],l=f("lat")||[],g=Math.min(u.length,l.length);return n._length=g,g}},37920:function(G){G.exports=function(e,m){return e.lon=m.lon,e.lat=m.lat,e}},11960:function(G,H,e){var m=e(54460);G.exports=function(s,L,S){var v={},p=S[L.subplot]._subplot,r=p.mockAxis,t=s.lonlat;return v.lonLabel=m.tickText(r,r.c2l(t[0]),!0).text,v.latLabel=m.tickText(r,r.c2l(t[1]),!0).text,v}},63312:function(G,H,e){var m=e(93024),P=e(3400),s=e(44928),L=P.fillText,S=e(39032).BADNUM,v=e(47552).traceLayerPrefix;function p(t,a,n){var f=t.cd,u=f[0].trace,l=t.xa,g=t.ya,h=t.subplot,T=[],c=v+u.uid+"-circle",i=u.cluster&&u.cluster.enabled;if(i){var d=h.map.queryRenderedFeatures(null,{layers:[c]});T=d.map(function(k){return k.id})}var x=a>=0?Math.floor((a+180)/360):Math.ceil((a-180)/360),w=x*360,C=a-w;function y(k){var O=k.lonlat;if(O[0]===S||i&&T.indexOf(k.i+1)===-1)return 1/0;var F=P.modHalf(O[0],360),z=O[1],B=h.project([F,z]),W=B.x-l.c2p([C,z]),J=B.y-g.c2p([F,n]),re=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(W*W+J*J)-re,1-3/re)}if(m.getClosest(f,y,t),t.index!==!1){var E=f[t.index],A=E.lonlat,o=[P.modHalf(A[0],360)+w,A[1]],M=l.c2p(o),b=g.c2p(o),I=E.mrc||1;t.x0=M-I,t.x1=M+I,t.y0=b-I,t.y1=b+I;var D={};D[u.subplot]={_subplot:h};var N=u._module.formatLabels(E,u,D);return t.lonLabel=N.lonLabel,t.latLabel=N.latLabel,t.color=s(u,E),t.extraText=r(u,E,f[0].t.labels),t.hovertemplate=u.hovertemplate,[t]}}function r(t,a,n){if(t.hovertemplate)return;var f=a.hi||t.hoverinfo,u=f.split("+"),l=u.indexOf("all")!==-1,g=u.indexOf("lon")!==-1,h=u.indexOf("lat")!==-1,T=a.lonlat,c=[];function i(d){return d+"°"}return l||g&&h?c.push("("+i(T[1])+", "+i(T[0])+")"):g?c.push(n.lon+i(T[0])):h&&c.push(n.lat+i(T[1])),(l||u.indexOf("text")!==-1)&&L(a,t,c),c.join("
")}G.exports={hoverPoints:p,getExtraText:r}},11572:function(G,H,e){G.exports={attributes:e(31512),supplyDefaults:e(15752),colorbar:e(5528),formatLabels:e(11960),calc:e(25212),plot:e(9660),hoverPoints:e(63312).hoverPoints,eventData:e(37920),selectPoints:e(404),styleOnSelect:function(m,P){if(P){var s=P[0].trace;s._glTrace.update(P)}},moduleType:"trace",name:"scattermapbox",basePlotModule:e(33688),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},9660:function(G,H,e){var m=e(3400),P=e(59392),s=e(47552).traceLayerPrefix,L={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function S(p,r,t,a){this.type="scattermapbox",this.subplot=p,this.uid=r,this.clusterEnabled=t,this.isHidden=a,this.sourceIds={fill:"source-"+r+"-fill",line:"source-"+r+"-line",circle:"source-"+r+"-circle",symbol:"source-"+r+"-symbol",cluster:"source-"+r+"-circle",clusterCount:"source-"+r+"-circle"},this.layerIds={fill:s+r+"-fill",line:s+r+"-line",circle:s+r+"-circle",symbol:s+r+"-symbol",cluster:s+r+"-cluster",clusterCount:s+r+"-cluster-count"},this.below=null}var v=S.prototype;v.addSource=function(p,r,t){var a={type:"geojson",data:r.geojson};t&&t.enabled&&m.extendFlat(a,{cluster:!0,clusterMaxZoom:t.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[p]);n?n.setData(r.geojson):this.subplot.map.addSource(this.sourceIds[p],a)},v.setSourceData=function(p,r){this.subplot.map.getSource(this.sourceIds[p]).setData(r.geojson)},v.addLayer=function(p,r,t){var a={type:r.type,id:this.layerIds[p],source:this.sourceIds[p],layout:r.layout,paint:r.paint};r.filter&&(a.filter=r.filter);for(var n=this.layerIds[p],f,u=this.subplot.getMapLayers(),l=0;l=0;M--){var b=o[M];n.removeLayer(h.layerIds[b])}A||n.removeSource(h.sourceIds.circle)}function i(A){for(var o=L.nonCluster,M=0;M=0;M--){var b=o[M];n.removeLayer(h.layerIds[b]),A||n.removeSource(h.sourceIds[b])}}function x(A){g?c(A):d(A)}function w(A){l?T(A):i(A)}function C(){for(var A=l?L.cluster:L.nonCluster,o=0;o=0;a--){var n=t[a];r.removeLayer(this.layerIds[n]),r.removeSource(this.sourceIds[n])}},G.exports=function(r,t){var a=t[0].trace,n=a.cluster&&a.cluster.enabled,f=a.visible!==!0,u=new S(r,a.uid,n,f),l=P(r.gd,t),g=u.below=r.belowLookup["trace-"+a.uid],h,T,c;if(n)for(u.addSource("circle",l.circle,a.cluster),h=0;h")}}G.exports={hoverPoints:P,makeHoverPointText:s}},76924:function(G,H,e){G.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:e(40872),categories:["polar","symbols","showLegend","scatter-like"],attributes:e(8319),supplyDefaults:e(85968).supplyDefaults,colorbar:e(5528),formatLabels:e(22852),calc:e(58320),plot:e(43456),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(8504).hoverPoints,selectPoints:e(91560),meta:{}}},43456:function(G,H,e){var m=e(96504),P=e(39032).BADNUM;G.exports=function(L,S,v){for(var p=S.layers.frontplot.select("g.scatterlayer"),r=S.xaxis,t=S.yaxis,a={xaxis:r,yaxis:t,plot:S.framework,layerClipId:S._hasClipOnAxisFalse?S.clipIds.forTraces:null},n=S.radialAxis,f=S.angularAxis,u=0;u=p&&(C.marker.cluster=i.tree),C.marker&&(C.markerSel.positions=C.markerUnsel.positions=C.marker.positions=o),C.line&&o.length>1&&v.extendFlat(C.line,S.linePositions(a,c,o)),C.text&&(v.extendFlat(C.text,{positions:o},S.textPosition(a,c,C.text,C.marker)),v.extendFlat(C.textSel,{positions:o},S.textPosition(a,c,C.text,C.markerSel)),v.extendFlat(C.textUnsel,{positions:o},S.textPosition(a,c,C.text,C.markerUnsel))),C.fill&&!g.fill2d&&(g.fill2d=!0),C.marker&&!g.scatter2d&&(g.scatter2d=!0),C.line&&!g.line2d&&(g.line2d=!0),C.text&&!g.glText&&(g.glText=!0),g.lineOptions.push(C.line),g.fillOptions.push(C.fill),g.markerOptions.push(C.marker),g.markerSelectedOptions.push(C.markerSel),g.markerUnselectedOptions.push(C.markerUnsel),g.textOptions.push(C.text),g.textSelectedOptions.push(C.textSel),g.textUnselectedOptions.push(C.textUnsel),g.selectBatch.push([]),g.unselectBatch.push([]),i.x=M,i.y=b,i.rawx=M,i.rawy=b,i.r=x,i.theta=w,i.positions=o,i._scene=g,i.index=g.count,g.count++}}),s(a,n,f)}},G.exports.reglPrecompiled=r},69496:function(G,H,e){var m=e(21776).Ks,P=e(21776).Gw,s=e(92880).extendFlat,L=e(98304),S=e(52904),v=e(45464),p=S.line;G.exports={mode:S.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:S.text,texttemplate:P({editType:"plot"},{keys:["real","imag","text"]}),hovertext:S.hovertext,line:{color:p.color,width:p.width,dash:p.dash,backoff:p.backoff,shape:s({},p.shape,{values:["linear","spline"]}),smoothing:p.smoothing,editType:"calc"},connectgaps:S.connectgaps,marker:S.marker,cliponaxis:s({},S.cliponaxis,{dflt:!1}),textposition:S.textposition,textfont:S.textfont,fill:s({},S.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:L(),hoverinfo:s({},v.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:S.hoveron,hovertemplate:m(),selected:S.selected,unselected:S.unselected}},47507:function(G,H,e){var m=e(38248),P=e(39032).BADNUM,s=e(90136),L=e(20148),S=e(4500),v=e(16356).calcMarkerSize;G.exports=function(r,t){for(var a=r._fullLayout,n=t.subplot,f=a[n].realaxis,u=a[n].imaginaryaxis,l=f.makeCalcdata(t,"real"),g=u.makeCalcdata(t,"imag"),h=t._length,T=new Array(h),c=0;c")}}G.exports={hoverPoints:P,makeHoverPointText:s}},95443:function(G,H,e){G.exports={moduleType:"trace",name:"scattersmith",basePlotModule:e(47788),categories:["smith","symbols","showLegend","scatter-like"],attributes:e(69496),supplyDefaults:e(76716),colorbar:e(5528),formatLabels:e(49504),calc:e(47507),plot:e(34927),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(25292).hoverPoints,selectPoints:e(91560),meta:{}}},34927:function(G,H,e){var m=e(96504),P=e(39032).BADNUM,s=e(36416),L=s.smith;G.exports=function(v,p,r){for(var t=p.layers.frontplot.select("g.scatterlayer"),a=p.xaxis,n=p.yaxis,f={xaxis:a,yaxis:n,plot:p.framework,layerClipId:p._hasClipOnAxisFalse?p.clipIds.forTraces:null},u=0;u"),r.hovertemplate=l.hovertemplate,p}},34864:function(G,H,e){G.exports={attributes:e(5896),supplyDefaults:e(84256),colorbar:e(5528),formatLabels:e(90404),calc:e(34335),plot:e(88776),style:e(49224).style,styleOnSelect:e(49224).styleOnSelect,hoverPoints:e(26596),selectPoints:e(91560),eventData:e(97476),moduleType:"trace",name:"scatterternary",basePlotModule:e(19352),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},88776:function(G,H,e){var m=e(96504);G.exports=function(s,L,S){var v=L.plotContainer;v.select(".scatterlayer").selectAll("*").remove();for(var p=L.xaxis,r=L.yaxis,t={xaxis:p,yaxis:r,plot:v,layerClipId:L._hasClipOnAxisFalse?L.clipIdRelative:null},a=L.layers.frontplot.select("g.scatterlayer"),n=0;na,M;for(o?M=h.sizeAvg||Math.max(h.size,3):M=s(u,g),x=0;xd&&h||i-1,k=L(h)||!!a.selectedpoints||N,O=!0;if(k){var F=a._length;if(a.selectedpoints){f.selectBatch=a.selectedpoints;var z=a.selectedpoints,B={};for(i=0;i1&&(A=r[n-1],M=t[n-1],I=a[n-1]),f=0;fA?"-":"+")+"x"),x=x.replace("y",(o>M?"-":"+")+"y"),x=x.replace("z",(b>I?"-":"+")+"z");var O=function(){n=0,D=[],N=[],k=[]};(!n||n2?h=l.slice(1,g-1):g===2?h=[(l[0]+l[1])/2]:h=l,h}function n(l){var g=l.length;return g===1?[.5,.5]:[l[1]-l[0],l[g-1]-l[g-2]]}function f(l,g){var h=l.fullSceneLayout,T=l.dataScale,c=g._len,i={};function d(le,$){var Z=h[$],ie=T[p[$]];return s.simpleMap(le,function(X){return Z.d2l(X)*ie})}if(i.vectors=v(d(g._u,"xaxis"),d(g._v,"yaxis"),d(g._w,"zaxis"),c),!c)return{positions:[],cells:[]};var x=d(g._Xs,"xaxis"),w=d(g._Ys,"yaxis"),C=d(g._Zs,"zaxis");i.meshgrid=[x,w,C],i.gridFill=g._gridFill;var y=g._slen;if(y)i.startingPositions=v(d(g._startsX,"xaxis"),d(g._startsY,"yaxis"),d(g._startsZ,"zaxis"));else{for(var E=w[0],A=a(x),o=a(C),M=new Array(A.length*o.length),b=0,I=0;I=0},M,b,I;T?(M=Math.min(h.length,i.length),b=function(X){return A(h[X])&&o(X)},I=function(X){return String(h[X])}):(M=Math.min(c.length,i.length),b=function(X){return A(c[X])&&o(X)},I=function(X){return String(c[X])}),x&&(M=Math.min(M,d.length));for(var D=0;D1){for(var B=s.randstr(),W=0;W * @license MIT - */function m(rt,ze){if(!(rt instanceof ze))throw new TypeError("Cannot call a class as a function")}function P(rt,ze){for(var He=0;He"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return ze=r(ze),p(rt,We()?Reflect.construct(ze,[],r(rt).constructor):ze.apply(rt,He))}function p(rt,ze){if(ze&&(f(ze)==="object"||typeof ze=="function"))return ze;if(ze!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t(rt)}function r(rt){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(He){return He.__proto__||Object.getPrototypeOf(He)},r(rt)}function t(rt){if(rt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return rt}function a(rt,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Super expression must either be null or a function");rt.prototype=Object.create(ze&&ze.prototype,{constructor:{value:rt,writable:!0,configurable:!0}}),Object.defineProperty(rt,"prototype",{writable:!1}),ze&&n(rt,ze)}function n(rt,ze){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(We,Ge){return We.__proto__=Ge,We},n(rt,ze)}function f(rt){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},f(rt)}var u=e(59968),l=e(35984),g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;H.Buffer=i,H.SlowBuffer=I,H.INSPECT_MAX_BYTES=50;var h=2147483647;H.kMaxLength=h,i.TYPED_ARRAY_SUPPORT=T(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function T(){try{var rt=new Uint8Array(1),ze={foo:function(){return 42}};return Object.setPrototypeOf(ze,Uint8Array.prototype),Object.setPrototypeOf(rt,ze),rt.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function c(rt){if(rt>h)throw new RangeError('The value "'+rt+'" is invalid for option "size"');var ze=new Uint8Array(rt);return Object.setPrototypeOf(ze,i.prototype),ze}function i(rt,ze,He){if(typeof rt=="number"){if(typeof ze=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(rt)}return d(rt,ze,He)}i.poolSize=8192;function d(rt,ze,He){if(typeof rt=="string")return y(rt,ze);if(ArrayBuffer.isView(rt))return A(rt);if(rt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(rt));if(ht(rt,ArrayBuffer)||rt&&ht(rt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ht(rt,SharedArrayBuffer)||rt&&ht(rt.buffer,SharedArrayBuffer)))return o(rt,ze,He);if(typeof rt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=rt.valueOf&&rt.valueOf();if(We!=null&&We!==rt)return i.from(We,ze,He);var Ge=M(rt);if(Ge)return Ge;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof rt[Symbol.toPrimitive]=="function")return i.from(rt[Symbol.toPrimitive]("string"),ze,He);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(rt))}i.from=function(rt,ze,He){return d(rt,ze,He)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function x(rt){if(typeof rt!="number")throw new TypeError('"size" argument must be of type number');if(rt<0)throw new RangeError('The value "'+rt+'" is invalid for option "size"')}function w(rt,ze,He){return x(rt),rt<=0?c(rt):ze!==void 0?typeof He=="string"?c(rt).fill(ze,He):c(rt).fill(ze):c(rt)}i.alloc=function(rt,ze,He){return w(rt,ze,He)};function C(rt){return x(rt),c(rt<0?0:b(rt)|0)}i.allocUnsafe=function(rt){return C(rt)},i.allocUnsafeSlow=function(rt){return C(rt)};function y(rt,ze){if((typeof ze!="string"||ze==="")&&(ze="utf8"),!i.isEncoding(ze))throw new TypeError("Unknown encoding: "+ze);var He=D(rt,ze)|0,We=c(He),Ge=We.write(rt,ze);return Ge!==He&&(We=We.slice(0,Ge)),We}function E(rt){for(var ze=rt.length<0?0:b(rt.length)|0,He=c(ze),We=0;We=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return rt|0}function I(rt){return+rt!=rt&&(rt=0),i.alloc(+rt)}i.isBuffer=function(ze){return ze!=null&&ze._isBuffer===!0&&ze!==i.prototype},i.compare=function(ze,He){if(ht(ze,Uint8Array)&&(ze=i.from(ze,ze.offset,ze.byteLength)),ht(He,Uint8Array)&&(He=i.from(He,He.offset,He.byteLength)),!i.isBuffer(ze)||!i.isBuffer(He))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ze===He)return 0;for(var We=ze.length,Ge=He.length,Le=0,Pe=Math.min(We,Ge);LeGe.length?(i.isBuffer(Pe)||(Pe=i.from(Pe)),Pe.copy(Ge,Le)):Uint8Array.prototype.set.call(Ge,Pe,Le);else if(i.isBuffer(Pe))Pe.copy(Ge,Le);else throw new TypeError('"list" argument must be an Array of Buffers');Le+=Pe.length}return Ge};function D(rt,ze){if(i.isBuffer(rt))return rt.length;if(ArrayBuffer.isView(rt)||ht(rt,ArrayBuffer))return rt.byteLength;if(typeof rt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(rt));var He=rt.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&He===0)return 0;for(var Ge=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return He;case"utf8":case"utf-8":return Ve(rt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He*2;case"hex":return He>>>1;case"base64":return Qe(rt).length;default:if(Ge)return We?-1:Ve(rt).length;ze=(""+ze).toLowerCase(),Ge=!0}}i.byteLength=D;function N(rt,ze,He){var We=!1;if((ze===void 0||ze<0)&&(ze=0),ze>this.length||((He===void 0||He>this.length)&&(He=this.length),He<=0)||(He>>>=0,ze>>>=0,He<=ze))return"";for(rt||(rt="utf8");;)switch(rt){case"hex":return Q(this,ze,He);case"utf8":case"utf-8":return le(this,ze,He);case"ascii":return ie(this,ze,He);case"latin1":case"binary":return X(this,ze,He);case"base64":return ne(this,ze,He);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,ze,He);default:if(We)throw new TypeError("Unknown encoding: "+rt);rt=(rt+"").toLowerCase(),We=!0}}i.prototype._isBuffer=!0;function k(rt,ze,He){var We=rt[ze];rt[ze]=rt[He],rt[He]=We}i.prototype.swap16=function(){var ze=this.length;if(ze%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var He=0;HeHe&&(ze+=" ... "),""},g&&(i.prototype[g]=i.prototype.inspect),i.prototype.compare=function(ze,He,We,Ge,Le){if(ht(ze,Uint8Array)&&(ze=i.from(ze,ze.offset,ze.byteLength)),!i.isBuffer(ze))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(ze));if(He===void 0&&(He=0),We===void 0&&(We=ze?ze.length:0),Ge===void 0&&(Ge=0),Le===void 0&&(Le=this.length),He<0||We>ze.length||Ge<0||Le>this.length)throw new RangeError("out of range index");if(Ge>=Le&&He>=We)return 0;if(Ge>=Le)return-1;if(He>=We)return 1;if(He>>>=0,We>>>=0,Ge>>>=0,Le>>>=0,this===ze)return 0;for(var Pe=Le-Ge,je=We-He,Ce=Math.min(Pe,je),he=this.slice(Ge,Le),me=ze.slice(He,We),Ne=0;Ne2147483647?He=2147483647:He<-2147483648&&(He=-2147483648),He=+He,vt(He)&&(He=Ge?0:rt.length-1),He<0&&(He=rt.length+He),He>=rt.length){if(Ge)return-1;He=rt.length-1}else if(He<0)if(Ge)He=0;else return-1;if(typeof ze=="string"&&(ze=i.from(ze,We)),i.isBuffer(ze))return ze.length===0?-1:F(rt,ze,He,We,Ge);if(typeof ze=="number")return ze=ze&255,typeof Uint8Array.prototype.indexOf=="function"?Ge?Uint8Array.prototype.indexOf.call(rt,ze,He):Uint8Array.prototype.lastIndexOf.call(rt,ze,He):F(rt,[ze],He,We,Ge);throw new TypeError("val must be string, number or Buffer")}function F(rt,ze,He,We,Ge){var Le=1,Pe=rt.length,je=ze.length;if(We!==void 0&&(We=String(We).toLowerCase(),We==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(rt.length<2||ze.length<2)return-1;Le=2,Pe/=2,je/=2,He/=2}function Ce(st,lt){return Le===1?st[lt]:st.readUInt16BE(lt*Le)}var he;if(Ge){var me=-1;for(he=He;hePe&&(He=Pe-je),he=He;he>=0;he--){for(var Ne=!0,Ze=0;ZeGe&&(We=Ge)):We=Ge;var Le=ze.length;We>Le/2&&(We=Le/2);var Pe;for(Pe=0;Pe>>0,isFinite(We)?(We=We>>>0,Ge===void 0&&(Ge="utf8")):(Ge=We,We=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Le=this.length-He;if((We===void 0||We>Le)&&(We=Le),ze.length>0&&(We<0||He<0)||He>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ge||(Ge="utf8");for(var Pe=!1;;)switch(Ge){case"hex":return z(this,ze,He,We);case"utf8":case"utf-8":return B(this,ze,He,We);case"ascii":case"latin1":case"binary":return W(this,ze,He,We);case"base64":return J(this,ze,He,We);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,ze,He,We);default:if(Pe)throw new TypeError("Unknown encoding: "+Ge);Ge=(""+Ge).toLowerCase(),Pe=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(rt,ze,He){return ze===0&&He===rt.length?u.fromByteArray(rt):u.fromByteArray(rt.slice(ze,He))}function le(rt,ze,He){He=Math.min(rt.length,He);for(var We=[],Ge=ze;Ge239?4:Le>223?3:Le>191?2:1;if(Ge+je<=He){var Ce=void 0,he=void 0,me=void 0,Ne=void 0;switch(je){case 1:Le<128&&(Pe=Le);break;case 2:Ce=rt[Ge+1],(Ce&192)===128&&(Ne=(Le&31)<<6|Ce&63,Ne>127&&(Pe=Ne));break;case 3:Ce=rt[Ge+1],he=rt[Ge+2],(Ce&192)===128&&(he&192)===128&&(Ne=(Le&15)<<12|(Ce&63)<<6|he&63,Ne>2047&&(Ne<55296||Ne>57343)&&(Pe=Ne));break;case 4:Ce=rt[Ge+1],he=rt[Ge+2],me=rt[Ge+3],(Ce&192)===128&&(he&192)===128&&(me&192)===128&&(Ne=(Le&15)<<18|(Ce&63)<<12|(he&63)<<6|me&63,Ne>65535&&Ne<1114112&&(Pe=Ne))}}Pe===null?(Pe=65533,je=1):Pe>65535&&(Pe-=65536,We.push(Pe>>>10&1023|55296),Pe=56320|Pe&1023),We.push(Pe),Ge+=je}return Z(We)}var $=4096;function Z(rt){var ze=rt.length;if(ze<=$)return String.fromCharCode.apply(String,rt);for(var He="",We=0;WeWe)&&(He=We);for(var Ge="",Le=ze;LeWe&&(ze=We),He<0?(He+=We,He<0&&(He=0)):He>We&&(He=We),HeHe)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(ze,He,We){ze=ze>>>0,He=He>>>0,We||Y(ze,He,this.length);for(var Ge=this[ze],Le=1,Pe=0;++Pe>>0,He=He>>>0,We||Y(ze,He,this.length);for(var Ge=this[ze+--He],Le=1;He>0&&(Le*=256);)Ge+=this[ze+--He]*Le;return Ge},i.prototype.readUint8=i.prototype.readUInt8=function(ze,He){return ze=ze>>>0,He||Y(ze,1,this.length),this[ze]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(ze,He){return ze=ze>>>0,He||Y(ze,2,this.length),this[ze]|this[ze+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(ze,He){return ze=ze>>>0,He||Y(ze,2,this.length),this[ze]<<8|this[ze+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),(this[ze]|this[ze+1]<<8|this[ze+2]<<16)+this[ze+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),this[ze]*16777216+(this[ze+1]<<16|this[ze+2]<<8|this[ze+3])},i.prototype.readBigUInt64LE=wt(function(ze){ze=ze>>>0,Re(ze,"offset");var He=this[ze],We=this[ze+7];(He===void 0||We===void 0)&&Se(ze,this.length-8);var Ge=He+this[++ze]*Math.pow(2,8)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,24),Le=this[++ze]+this[++ze]*Math.pow(2,8)+this[++ze]*Math.pow(2,16)+We*Math.pow(2,24);return BigInt(Ge)+(BigInt(Le)<>>0,Re(ze,"offset");var He=this[ze],We=this[ze+7];(He===void 0||We===void 0)&&Se(ze,this.length-8);var Ge=He*Math.pow(2,24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+this[++ze],Le=this[++ze]*Math.pow(2,24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+We;return(BigInt(Ge)<>>0,He=He>>>0,We||Y(ze,He,this.length);for(var Ge=this[ze],Le=1,Pe=0;++Pe=Le&&(Ge-=Math.pow(2,8*He)),Ge},i.prototype.readIntBE=function(ze,He,We){ze=ze>>>0,He=He>>>0,We||Y(ze,He,this.length);for(var Ge=He,Le=1,Pe=this[ze+--Ge];Ge>0&&(Le*=256);)Pe+=this[ze+--Ge]*Le;return Le*=128,Pe>=Le&&(Pe-=Math.pow(2,8*He)),Pe},i.prototype.readInt8=function(ze,He){return ze=ze>>>0,He||Y(ze,1,this.length),this[ze]&128?(255-this[ze]+1)*-1:this[ze]},i.prototype.readInt16LE=function(ze,He){ze=ze>>>0,He||Y(ze,2,this.length);var We=this[ze]|this[ze+1]<<8;return We&32768?We|4294901760:We},i.prototype.readInt16BE=function(ze,He){ze=ze>>>0,He||Y(ze,2,this.length);var We=this[ze+1]|this[ze]<<8;return We&32768?We|4294901760:We},i.prototype.readInt32LE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),this[ze]|this[ze+1]<<8|this[ze+2]<<16|this[ze+3]<<24},i.prototype.readInt32BE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),this[ze]<<24|this[ze+1]<<16|this[ze+2]<<8|this[ze+3]},i.prototype.readBigInt64LE=wt(function(ze){ze=ze>>>0,Re(ze,"offset");var He=this[ze],We=this[ze+7];(He===void 0||We===void 0)&&Se(ze,this.length-8);var Ge=this[ze+4]+this[ze+5]*Math.pow(2,8)+this[ze+6]*Math.pow(2,16)+(We<<24);return(BigInt(Ge)<>>0,Re(ze,"offset");var He=this[ze],We=this[ze+7];(He===void 0||We===void 0)&&Se(ze,this.length-8);var Ge=(He<<24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+this[++ze];return(BigInt(Ge)<>>0,He||Y(ze,4,this.length),l.read(this,ze,!0,23,4)},i.prototype.readFloatBE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),l.read(this,ze,!1,23,4)},i.prototype.readDoubleLE=function(ze,He){return ze=ze>>>0,He||Y(ze,8,this.length),l.read(this,ze,!0,52,8)},i.prototype.readDoubleBE=function(ze,He){return ze=ze>>>0,He||Y(ze,8,this.length),l.read(this,ze,!1,52,8)};function j(rt,ze,He,We,Ge,Le){if(!i.isBuffer(rt))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>Ge||zert.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(ze,He,We,Ge){if(ze=+ze,He=He>>>0,We=We>>>0,!Ge){var Le=Math.pow(2,8*We)-1;j(this,ze,He,We,Le,0)}var Pe=1,je=0;for(this[He]=ze&255;++je>>0,We=We>>>0,!Ge){var Le=Math.pow(2,8*We)-1;j(this,ze,He,We,Le,0)}var Pe=We-1,je=1;for(this[He+Pe]=ze&255;--Pe>=0&&(je*=256);)this[He+Pe]=ze/je&255;return He+We},i.prototype.writeUint8=i.prototype.writeUInt8=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,1,255,0),this[He]=ze&255,He+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,2,65535,0),this[He]=ze&255,this[He+1]=ze>>>8,He+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,2,65535,0),this[He]=ze>>>8,this[He+1]=ze&255,He+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,4,4294967295,0),this[He+3]=ze>>>24,this[He+2]=ze>>>16,this[He+1]=ze>>>8,this[He]=ze&255,He+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,4,4294967295,0),this[He]=ze>>>24,this[He+1]=ze>>>16,this[He+2]=ze>>>8,this[He+3]=ze&255,He+4};function se(rt,ze,He,We,Ge){Te(ze,We,Ge,rt,He,7);var Le=Number(ze&BigInt(4294967295));rt[He++]=Le,Le=Le>>8,rt[He++]=Le,Le=Le>>8,rt[He++]=Le,Le=Le>>8,rt[He++]=Le;var Pe=Number(ze>>BigInt(32)&BigInt(4294967295));return rt[He++]=Pe,Pe=Pe>>8,rt[He++]=Pe,Pe=Pe>>8,rt[He++]=Pe,Pe=Pe>>8,rt[He++]=Pe,He}function te(rt,ze,He,We,Ge){Te(ze,We,Ge,rt,He,7);var Le=Number(ze&BigInt(4294967295));rt[He+7]=Le,Le=Le>>8,rt[He+6]=Le,Le=Le>>8,rt[He+5]=Le,Le=Le>>8,rt[He+4]=Le;var Pe=Number(ze>>BigInt(32)&BigInt(4294967295));return rt[He+3]=Pe,Pe=Pe>>8,rt[He+2]=Pe,Pe=Pe>>8,rt[He+1]=Pe,Pe=Pe>>8,rt[He]=Pe,He+8}i.prototype.writeBigUInt64LE=wt(function(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return se(this,ze,He,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=wt(function(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return te(this,ze,He,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(ze,He,We,Ge){if(ze=+ze,He=He>>>0,!Ge){var Le=Math.pow(2,8*We-1);j(this,ze,He,We,Le-1,-Le)}var Pe=0,je=1,Ce=0;for(this[He]=ze&255;++Pe>0)-Ce&255;return He+We},i.prototype.writeIntBE=function(ze,He,We,Ge){if(ze=+ze,He=He>>>0,!Ge){var Le=Math.pow(2,8*We-1);j(this,ze,He,We,Le-1,-Le)}var Pe=We-1,je=1,Ce=0;for(this[He+Pe]=ze&255;--Pe>=0&&(je*=256);)ze<0&&Ce===0&&this[He+Pe+1]!==0&&(Ce=1),this[He+Pe]=(ze/je>>0)-Ce&255;return He+We},i.prototype.writeInt8=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,1,127,-128),ze<0&&(ze=255+ze+1),this[He]=ze&255,He+1},i.prototype.writeInt16LE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,2,32767,-32768),this[He]=ze&255,this[He+1]=ze>>>8,He+2},i.prototype.writeInt16BE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,2,32767,-32768),this[He]=ze>>>8,this[He+1]=ze&255,He+2},i.prototype.writeInt32LE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,4,2147483647,-2147483648),this[He]=ze&255,this[He+1]=ze>>>8,this[He+2]=ze>>>16,this[He+3]=ze>>>24,He+4},i.prototype.writeInt32BE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,4,2147483647,-2147483648),ze<0&&(ze=4294967295+ze+1),this[He]=ze>>>24,this[He+1]=ze>>>16,this[He+2]=ze>>>8,this[He+3]=ze&255,He+4},i.prototype.writeBigInt64LE=wt(function(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return se(this,ze,He,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=wt(function(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return te(this,ze,He,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fe(rt,ze,He,We,Ge,Le){if(He+We>rt.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("Index out of range")}function ge(rt,ze,He,We,Ge){return ze=+ze,He=He>>>0,Ge||fe(rt,ze,He,4),l.write(rt,ze,He,We,23,4),He+4}i.prototype.writeFloatLE=function(ze,He,We){return ge(this,ze,He,!0,We)},i.prototype.writeFloatBE=function(ze,He,We){return ge(this,ze,He,!1,We)};function be(rt,ze,He,We,Ge){return ze=+ze,He=He>>>0,Ge||fe(rt,ze,He,8),l.write(rt,ze,He,We,52,8),He+8}i.prototype.writeDoubleLE=function(ze,He,We){return be(this,ze,He,!0,We)},i.prototype.writeDoubleBE=function(ze,He,We){return be(this,ze,He,!1,We)},i.prototype.copy=function(ze,He,We,Ge){if(!i.isBuffer(ze))throw new TypeError("argument should be a Buffer");if(We||(We=0),!Ge&&Ge!==0&&(Ge=this.length),He>=ze.length&&(He=ze.length),He||(He=0),Ge>0&&Ge=this.length)throw new RangeError("Index out of range");if(Ge<0)throw new RangeError("sourceEnd out of bounds");Ge>this.length&&(Ge=this.length),ze.length-He>>0,We=We===void 0?this.length:We>>>0,ze||(ze=0);var Pe;if(typeof ze=="number")for(Pe=He;PeMath.pow(2,32)?Ge=De(String(He)):typeof He=="bigint"&&(Ge=String(He),(He>Math.pow(BigInt(2),BigInt(32))||He<-Math.pow(BigInt(2),BigInt(32)))&&(Ge=De(Ge)),Ge+="n"),We+=" It must be ".concat(ze,". Received ").concat(Ge),We},RangeError);function De(rt){for(var ze="",He=rt.length,We=rt[0]==="-"?1:0;He>=We+4;He-=3)ze="_".concat(rt.slice(He-3,He)).concat(ze);return"".concat(rt.slice(0,He)).concat(ze)}function Fe(rt,ze,He){Re(ze,"offset"),(rt[ze]===void 0||rt[ze+He]===void 0)&&Se(ze,rt.length-(He+1))}function Te(rt,ze,He,We,Ge,Le){if(rt>He||rt= 0".concat(Pe," and < 2").concat(Pe," ** ").concat((Le+1)*8).concat(Pe):je=">= -(2".concat(Pe," ** ").concat((Le+1)*8-1).concat(Pe,") and < 2 ** ")+"".concat((Le+1)*8-1).concat(Pe),new xe.ERR_OUT_OF_RANGE("value",je,rt)}Fe(We,Ge,Le)}function Re(rt,ze){if(typeof rt!="number")throw new xe.ERR_INVALID_ARG_TYPE(ze,"number",rt)}function Se(rt,ze,He){throw Math.floor(rt)!==rt?(Re(rt,He),new xe.ERR_OUT_OF_RANGE("offset","an integer",rt)):ze<0?new xe.ERR_BUFFER_OUT_OF_BOUNDS:new xe.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ze),rt)}var Ie=/[^+/0-9A-Za-z-_]/g;function Me(rt){if(rt=rt.split("=")[0],rt=rt.trim().replace(Ie,""),rt.length<2)return"";for(;rt.length%4!==0;)rt=rt+"=";return rt}function Ve(rt,ze){ze=ze||1/0;for(var He,We=rt.length,Ge=null,Le=[],Pe=0;Pe55295&&He<57344){if(!Ge){if(He>56319){(ze-=3)>-1&&Le.push(239,191,189);continue}else if(Pe+1===We){(ze-=3)>-1&&Le.push(239,191,189);continue}Ge=He;continue}if(He<56320){(ze-=3)>-1&&Le.push(239,191,189),Ge=He;continue}He=(Ge-55296<<10|He-56320)+65536}else Ge&&(ze-=3)>-1&&Le.push(239,191,189);if(Ge=null,He<128){if((ze-=1)<0)break;Le.push(He)}else if(He<2048){if((ze-=2)<0)break;Le.push(He>>6|192,He&63|128)}else if(He<65536){if((ze-=3)<0)break;Le.push(He>>12|224,He>>6&63|128,He&63|128)}else if(He<1114112){if((ze-=4)<0)break;Le.push(He>>18|240,He>>12&63|128,He>>6&63|128,He&63|128)}else throw new Error("Invalid code point")}return Le}function et(rt){for(var ze=[],He=0;He>8,Ge=He%256,Le.push(Ge),Le.push(We);return Le}function Qe(rt){return u.toByteArray(Me(rt))}function $e(rt,ze,He,We){var Ge;for(Ge=0;Ge=ze.length||Ge>=rt.length);++Ge)ze[Ge+He]=rt[Ge];return Ge}function ht(rt,ze){return rt instanceof ze||rt!=null&&rt.constructor!=null&&rt.constructor.name!=null&&rt.constructor.name===ze.name}function vt(rt){return rt!==rt}var pt=function(){for(var rt="0123456789abcdef",ze=new Array(256),He=0;He<16;++He)for(var We=He*16,Ge=0;Ge<16;++Ge)ze[We+Ge]=rt[He]+rt[Ge];return ze}();function wt(rt){return typeof BigInt>"u"?Ct:rt}function Ct(){throw new Error("BigInt not supported")}},25928:function(G){G.exports=P,G.exports.isMobile=P,G.exports.default=P;var H=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e=/CrOS/,m=/android|ipad|playbook|silk/i;function P(s){s||(s={});var L=s.ua;if(!L&&typeof navigator<"u"&&(L=navigator.userAgent),L&&L.headers&&typeof L.headers["user-agent"]=="string"&&(L=L.headers["user-agent"]),typeof L!="string")return!1;var S=H.test(L)&&!e.test(L)||!!s.tablet&&m.test(L);return!S&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&L.indexOf("Macintosh")!==-1&&L.indexOf("Safari")!==-1&&(S=!0),S}},48932:function(G,H,e){e.r(H),e.d(H,{sankeyCenter:function(){return a},sankeyCircular:function(){return M},sankeyJustify:function(){return t},sankeyLeft:function(){return p},sankeyRight:function(){return r}});var m=e(84706),P=e(34712),s=e(10132),L=e(6688),S=e.n(L);function v(xe){return xe.target.depth}function p(xe){return xe.depth}function r(xe,_e){return _e-1-xe.height}function t(xe,_e){return xe.sourceLinks.length?xe.depth:_e-1}function a(xe){return xe.targetLinks.length?xe.depth:xe.sourceLinks.length?(0,m.SY)(xe.sourceLinks,v)-1:0}function n(xe){return function(){return xe}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(xe){return typeof xe}:function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe};function u(xe,_e){return g(xe.source,_e.source)||xe.index-_e.index}function l(xe,_e){return g(xe.target,_e.target)||xe.index-_e.index}function g(xe,_e){return xe.partOfCycle===_e.partOfCycle?xe.y0-_e.y0:xe.circularLinkType==="top"||_e.circularLinkType==="bottom"?-1:1}function h(xe){return xe.value}function T(xe){return(xe.y0+xe.y1)/2}function c(xe){return T(xe.source)}function i(xe){return T(xe.target)}function d(xe){return xe.index}function x(xe){return xe.nodes}function w(xe){return xe.links}function C(xe,_e){var De=xe.get(_e);if(!De)throw new Error("missing: "+_e);return De}function y(xe,_e){return _e(xe)}var E=25,A=10,o=.3;function M(){var xe=0,_e=0,De=1,Fe=1,Te=24,Re,Se=d,Ie=t,Me=x,Ve=w,et=32,ot=2,Qe,$e=null;function ht(){var We={nodes:Me.apply(null,arguments),links:Ve.apply(null,arguments)};vt(We),b(We,Se,$e),pt(We),rt(We),I(We,Se),ze(We,et,Se),He(We);for(var Ge=4,Le=0;Le"u"?"undefined":f(je))!=="object"&&(je=Le.source=C(Ge,je)),(typeof Ce>"u"?"undefined":f(Ce))!=="object"&&(Ce=Le.target=C(Ge,Ce)),je.sourceLinks.push(Le),Ce.targetLinks.push(Le)}),We}function pt(We){We.nodes.forEach(function(Ge){Ge.partOfCycle=!1,Ge.value=Math.max((0,m.oh)(Ge.sourceLinks,h),(0,m.oh)(Ge.targetLinks,h)),Ge.sourceLinks.forEach(function(Le){Le.circular&&(Ge.partOfCycle=!0,Ge.circularLinkType=Le.circularLinkType)}),Ge.targetLinks.forEach(function(Le){Le.circular&&(Ge.partOfCycle=!0,Ge.circularLinkType=Le.circularLinkType)})})}function wt(We){var Ge=0,Le=0,Pe=0,je=0,Ce=(0,m.kv)(We.nodes,function(he){return he.column});return We.links.forEach(function(he){he.circular&&(he.circularLinkType=="top"?Ge=Ge+he.width:Le=Le+he.width,he.target.column==0&&(je=je+he.width),he.source.column==Ce&&(Pe=Pe+he.width))}),Ge=Ge>0?Ge+E+A:Ge,Le=Le>0?Le+E+A:Le,Pe=Pe>0?Pe+E+A:Pe,je=je>0?je+E+A:je,{top:Ge,bottom:Le,left:je,right:Pe}}function Ct(We,Ge){var Le=(0,m.kv)(We.nodes,function(Ze){return Ze.column}),Pe=De-xe,je=Fe-_e,Ce=Pe+Ge.right+Ge.left,he=je+Ge.top+Ge.bottom,me=Pe/Ce,Ne=je/he;return xe=xe*me+Ge.left,De=Ge.right==0?De:De*me,_e=_e*Ne+Ge.top,Fe=Fe*Ne,We.nodes.forEach(function(Ze){Ze.x0=xe+Ze.column*((De-xe-Te)/Le),Ze.x1=Ze.x0+Te}),Ne}function rt(We){var Ge,Le,Pe;for(Ge=We.nodes,Le=[],Pe=0;Ge.length;++Pe,Ge=Le,Le=[])Ge.forEach(function(je){je.depth=Pe,je.sourceLinks.forEach(function(Ce){Le.indexOf(Ce.target)<0&&!Ce.circular&&Le.push(Ce.target)})});for(Ge=We.nodes,Le=[],Pe=0;Ge.length;++Pe,Ge=Le,Le=[])Ge.forEach(function(je){je.height=Pe,je.targetLinks.forEach(function(Ce){Le.indexOf(Ce.source)<0&&!Ce.circular&&Le.push(Ce.source)})});We.nodes.forEach(function(je){je.column=Math.floor(Ie.call(null,je,Pe))})}function ze(We,Ge,Le){var Pe=(0,P.UJ)().key(function(Ze){return Ze.column}).sortKeys(m.XE).entries(We.nodes).map(function(Ze){return Ze.values});he(Le),Ne();for(var je=1,Ce=Ge;Ce>0;--Ce)me(je*=.99,Le),Ne();function he(Ze){if(Qe){var st=1/0;Pe.forEach(function(Tt){var Rt=Fe*Qe/(Tt.length+1);st=Rt0))if(Tt==0&&Zt==1)Xt=Rt.y1-Rt.y0,Rt.y0=Fe/2-Xt/2,Rt.y1=Fe/2+Xt/2;else if(Tt==lt-1&&Zt==1)Xt=Rt.y1-Rt.y0,Rt.y0=Fe/2-Xt/2,Rt.y1=Fe/2+Xt/2;else{var gr=0,gt=(0,m.mo)(Rt.sourceLinks,i),Kt=(0,m.mo)(Rt.targetLinks,c);gt&&Kt?gr=(gt+Kt)/2:gr=gt||Kt;var Qt=(gr-T(Rt))*Ze;Rt.y0+=Qt,Rt.y1+=Qt}})})}function Ne(){Pe.forEach(function(Ze){var st,lt,Wt=_e,Zt=Ze.length,Tt;for(Ze.sort(g),Tt=0;Tt0&&(st.y0+=lt,st.y1+=lt),Wt=st.y1+Re;if(lt=Wt-Re-Fe,lt>0)for(Wt=st.y0-=lt,st.y1-=lt,Tt=Zt-2;Tt>=0;--Tt)st=Ze[Tt],lt=st.y1+Re-Wt,lt>0&&(st.y0-=lt,st.y1-=lt),Wt=st.y0})}}function He(We){We.nodes.forEach(function(Ge){Ge.sourceLinks.sort(l),Ge.targetLinks.sort(u)}),We.nodes.forEach(function(Ge){var Le=Ge.y0,Pe=Le,je=Ge.y1,Ce=je;Ge.sourceLinks.forEach(function(he){he.circular?(he.y0=je-he.width/2,je=je-he.width):(he.y0=Le+he.width/2,Le+=he.width)}),Ge.targetLinks.forEach(function(he){he.circular?(he.y1=Ce-he.width/2,Ce=Ce-he.width):(he.y1=Pe+he.width/2,Pe+=he.width)})})}return ht}function b(xe,_e,De){var Fe=0;if(De===null){for(var Te=[],Re=0;Re_e.source.column)}function k(xe,_e){var De=0;xe.sourceLinks.forEach(function(Te){De=Te.circular&&!ge(Te,_e)?De+1:De});var Fe=0;return xe.targetLinks.forEach(function(Te){Fe=Te.circular&&!ge(Te,_e)?Fe+1:Fe}),De+Fe}function O(xe){var _e=xe.source.sourceLinks,De=0;_e.forEach(function(Re){De=Re.circular?De+1:De});var Fe=xe.target.targetLinks,Te=0;return Fe.forEach(function(Re){Te=Re.circular?Te+1:Te}),!(De>1||Te>1)}function F(xe,_e,De){return xe.sort(W),xe.forEach(function(Fe,Te){var Re=0;if(ge(Fe,De)&&O(Fe))Fe.circularPathData.verticalBuffer=Re+Fe.width/2;else{var Se=0;for(Se;SeRe?Ie:Re}Fe.circularPathData.verticalBuffer=Re+Fe.width/2}}),xe}function z(xe,_e,De,Fe){var Te=5,Re=(0,m.SY)(xe.links,function(Me){return Me.source.y0});xe.links.forEach(function(Me){Me.circular&&(Me.circularPathData={})});var Se=xe.links.filter(function(Me){return Me.circularLinkType=="top"});F(Se,_e,Fe);var Ie=xe.links.filter(function(Me){return Me.circularLinkType=="bottom"});F(Ie,_e,Fe),xe.links.forEach(function(Me){if(Me.circular){if(Me.circularPathData.arcRadius=Me.width+A,Me.circularPathData.leftNodeBuffer=Te,Me.circularPathData.rightNodeBuffer=Te,Me.circularPathData.sourceWidth=Me.source.x1-Me.source.x0,Me.circularPathData.sourceX=Me.source.x0+Me.circularPathData.sourceWidth,Me.circularPathData.targetX=Me.target.x0,Me.circularPathData.sourceY=Me.y0,Me.circularPathData.targetY=Me.y1,ge(Me,Fe)&&O(Me))Me.circularPathData.leftSmallArcRadius=A+Me.width/2,Me.circularPathData.leftLargeArcRadius=A+Me.width/2,Me.circularPathData.rightSmallArcRadius=A+Me.width/2,Me.circularPathData.rightLargeArcRadius=A+Me.width/2,Me.circularLinkType=="bottom"?(Me.circularPathData.verticalFullExtent=Me.source.y1+E+Me.circularPathData.verticalBuffer,Me.circularPathData.verticalLeftInnerExtent=Me.circularPathData.verticalFullExtent-Me.circularPathData.leftLargeArcRadius,Me.circularPathData.verticalRightInnerExtent=Me.circularPathData.verticalFullExtent-Me.circularPathData.rightLargeArcRadius):(Me.circularPathData.verticalFullExtent=Me.source.y0-E-Me.circularPathData.verticalBuffer,Me.circularPathData.verticalLeftInnerExtent=Me.circularPathData.verticalFullExtent+Me.circularPathData.leftLargeArcRadius,Me.circularPathData.verticalRightInnerExtent=Me.circularPathData.verticalFullExtent+Me.circularPathData.rightLargeArcRadius);else{var Ve=Me.source.column,et=Me.circularLinkType,ot=xe.links.filter(function(ht){return ht.source.column==Ve&&ht.circularLinkType==et});Me.circularLinkType=="bottom"?ot.sort(re):ot.sort(J);var Qe=0;ot.forEach(function(ht,vt){ht.circularLinkID==Me.circularLinkID&&(Me.circularPathData.leftSmallArcRadius=A+Me.width/2+Qe,Me.circularPathData.leftLargeArcRadius=A+Me.width/2+vt*_e+Qe),Qe=Qe+ht.width}),Ve=Me.target.column,ot=xe.links.filter(function(ht){return ht.target.column==Ve&&ht.circularLinkType==et}),Me.circularLinkType=="bottom"?ot.sort(le):ot.sort(ne),Qe=0,ot.forEach(function(ht,vt){ht.circularLinkID==Me.circularLinkID&&(Me.circularPathData.rightSmallArcRadius=A+Me.width/2+Qe,Me.circularPathData.rightLargeArcRadius=A+Me.width/2+vt*_e+Qe),Qe=Qe+ht.width}),Me.circularLinkType=="bottom"?(Me.circularPathData.verticalFullExtent=Math.max(De,Me.source.y1,Me.target.y1)+E+Me.circularPathData.verticalBuffer,Me.circularPathData.verticalLeftInnerExtent=Me.circularPathData.verticalFullExtent-Me.circularPathData.leftLargeArcRadius,Me.circularPathData.verticalRightInnerExtent=Me.circularPathData.verticalFullExtent-Me.circularPathData.rightLargeArcRadius):(Me.circularPathData.verticalFullExtent=Re-E-Me.circularPathData.verticalBuffer,Me.circularPathData.verticalLeftInnerExtent=Me.circularPathData.verticalFullExtent+Me.circularPathData.leftLargeArcRadius,Me.circularPathData.verticalRightInnerExtent=Me.circularPathData.verticalFullExtent+Me.circularPathData.rightLargeArcRadius)}Me.circularPathData.leftInnerExtent=Me.circularPathData.sourceX+Me.circularPathData.leftNodeBuffer,Me.circularPathData.rightInnerExtent=Me.circularPathData.targetX-Me.circularPathData.rightNodeBuffer,Me.circularPathData.leftFullExtent=Me.circularPathData.sourceX+Me.circularPathData.leftLargeArcRadius+Me.circularPathData.leftNodeBuffer,Me.circularPathData.rightFullExtent=Me.circularPathData.targetX-Me.circularPathData.rightLargeArcRadius-Me.circularPathData.rightNodeBuffer}if(Me.circular)Me.path=B(Me);else{var $e=(0,s.ak)().source(function(ht){var vt=ht.source.x0+(ht.source.x1-ht.source.x0),pt=ht.y0;return[vt,pt]}).target(function(ht){var vt=ht.target.x0,pt=ht.y1;return[vt,pt]});Me.path=$e(Me)}})}function B(xe){var _e="";return xe.circularLinkType=="top"?_e="M"+xe.circularPathData.sourceX+" "+xe.circularPathData.sourceY+" L"+xe.circularPathData.leftInnerExtent+" "+xe.circularPathData.sourceY+" A"+xe.circularPathData.leftLargeArcRadius+" "+xe.circularPathData.leftSmallArcRadius+" 0 0 0 "+xe.circularPathData.leftFullExtent+" "+(xe.circularPathData.sourceY-xe.circularPathData.leftSmallArcRadius)+" L"+xe.circularPathData.leftFullExtent+" "+xe.circularPathData.verticalLeftInnerExtent+" A"+xe.circularPathData.leftLargeArcRadius+" "+xe.circularPathData.leftLargeArcRadius+" 0 0 0 "+xe.circularPathData.leftInnerExtent+" "+xe.circularPathData.verticalFullExtent+" L"+xe.circularPathData.rightInnerExtent+" "+xe.circularPathData.verticalFullExtent+" A"+xe.circularPathData.rightLargeArcRadius+" "+xe.circularPathData.rightLargeArcRadius+" 0 0 0 "+xe.circularPathData.rightFullExtent+" "+xe.circularPathData.verticalRightInnerExtent+" L"+xe.circularPathData.rightFullExtent+" "+(xe.circularPathData.targetY-xe.circularPathData.rightSmallArcRadius)+" A"+xe.circularPathData.rightLargeArcRadius+" "+xe.circularPathData.rightSmallArcRadius+" 0 0 0 "+xe.circularPathData.rightInnerExtent+" "+xe.circularPathData.targetY+" L"+xe.circularPathData.targetX+" "+xe.circularPathData.targetY:_e="M"+xe.circularPathData.sourceX+" "+xe.circularPathData.sourceY+" L"+xe.circularPathData.leftInnerExtent+" "+xe.circularPathData.sourceY+" A"+xe.circularPathData.leftLargeArcRadius+" "+xe.circularPathData.leftSmallArcRadius+" 0 0 1 "+xe.circularPathData.leftFullExtent+" "+(xe.circularPathData.sourceY+xe.circularPathData.leftSmallArcRadius)+" L"+xe.circularPathData.leftFullExtent+" "+xe.circularPathData.verticalLeftInnerExtent+" A"+xe.circularPathData.leftLargeArcRadius+" "+xe.circularPathData.leftLargeArcRadius+" 0 0 1 "+xe.circularPathData.leftInnerExtent+" "+xe.circularPathData.verticalFullExtent+" L"+xe.circularPathData.rightInnerExtent+" "+xe.circularPathData.verticalFullExtent+" A"+xe.circularPathData.rightLargeArcRadius+" "+xe.circularPathData.rightLargeArcRadius+" 0 0 1 "+xe.circularPathData.rightFullExtent+" "+xe.circularPathData.verticalRightInnerExtent+" L"+xe.circularPathData.rightFullExtent+" "+(xe.circularPathData.targetY+xe.circularPathData.rightSmallArcRadius)+" A"+xe.circularPathData.rightLargeArcRadius+" "+xe.circularPathData.rightSmallArcRadius+" 0 0 1 "+xe.circularPathData.rightInnerExtent+" "+xe.circularPathData.targetY+" L"+xe.circularPathData.targetX+" "+xe.circularPathData.targetY,_e}function W(xe,_e){return $(xe)==$(_e)?xe.circularLinkType=="bottom"?re(xe,_e):J(xe,_e):$(_e)-$(xe)}function J(xe,_e){return xe.y0-_e.y0}function re(xe,_e){return _e.y0-xe.y0}function ne(xe,_e){return xe.y1-_e.y1}function le(xe,_e){return _e.y1-xe.y1}function $(xe){return xe.target.column-xe.source.column}function Z(xe){return xe.target.x0-xe.source.x1}function ie(xe,_e){var De=D(xe),Fe=Z(_e)/Math.tan(De),Te=fe(xe)=="up"?xe.y1+Fe:xe.y1-Fe;return Te}function X(xe,_e){var De=D(xe),Fe=Z(_e)/Math.tan(De),Te=fe(xe)=="up"?xe.y1-Fe:xe.y1+Fe;return Te}function Q(xe,_e,De,Fe){xe.links.forEach(function(Te){if(!Te.circular&&Te.target.column-Te.source.column>1){var Re=Te.source.column+1,Se=Te.target.column-1,Ie=1,Me=Se-Re+1;for(Ie=1;Re<=Se;Re++,Ie++)xe.nodes.forEach(function(Ve){if(Ve.column==Re){var et=Ie/(Me+1),ot=Math.pow(1-et,3),Qe=3*et*Math.pow(1-et,2),$e=3*Math.pow(et,2)*(1-et),ht=Math.pow(et,3),vt=ot*Te.y0+Qe*Te.y0+$e*Te.y1+ht*Te.y1,pt=vt-Te.width/2,wt=vt+Te.width/2,Ct;pt>Ve.y0&&ptVe.y0&&wtVe.y1&&Y(rt,Ct,_e,De)})):ptVe.y1&&(Ct=wt-Ve.y0+10,Ve=Y(Ve,Ct,_e,De),xe.nodes.forEach(function(rt){y(rt,Fe)==y(Ve,Fe)||rt.column!=Ve.column||rt.y0Ve.y1&&Y(rt,Ct,_e,De)}))}})}})}function oe(xe,_e){return xe.y0>_e.y0&&xe.y0<_e.y1||xe.y1>_e.y0&&xe.y1<_e.y1?!0:xe.y0<_e.y0&&xe.y1>_e.y1}function Y(xe,_e,De,Fe){return xe.y0+_e>=De&&xe.y1+_e<=Fe&&(xe.y0=xe.y0+_e,xe.y1=xe.y1+_e,xe.targetLinks.forEach(function(Te){Te.y1=Te.y1+_e}),xe.sourceLinks.forEach(function(Te){Te.y0=Te.y0+_e})),xe}function j(xe,_e,De,Fe){xe.nodes.forEach(function(Te){Fe&&Te.y+(Te.y1-Te.y0)>_e&&(Te.y=Te.y-(Te.y+(Te.y1-Te.y0)-_e));var Re=xe.links.filter(function(Me){return y(Me.source,De)==y(Te,De)}),Se=Re.length;Se>1&&Re.sort(function(Me,Ve){if(!Me.circular&&!Ve.circular){if(Me.target.column==Ve.target.column)return Me.y1-Ve.y1;if(te(Me,Ve)){if(Me.target.column>Ve.target.column){var et=X(Ve,Me);return Me.y1-et}if(Ve.target.column>Me.target.column){var ot=X(Me,Ve);return ot-Ve.y1}}else return Me.y1-Ve.y1}if(Me.circular&&!Ve.circular)return Me.circularLinkType=="top"?-1:1;if(Ve.circular&&!Me.circular)return Ve.circularLinkType=="top"?1:-1;if(Me.circular&&Ve.circular)return Me.circularLinkType===Ve.circularLinkType&&Me.circularLinkType=="top"?Me.target.column===Ve.target.column?Me.target.y1-Ve.target.y1:Ve.target.column-Me.target.column:Me.circularLinkType===Ve.circularLinkType&&Me.circularLinkType=="bottom"?Me.target.column===Ve.target.column?Ve.target.y1-Me.target.y1:Me.target.column-Ve.target.column:Me.circularLinkType=="top"?-1:1});var Ie=Te.y0;Re.forEach(function(Me){Me.y0=Ie+Me.width/2,Ie=Ie+Me.width}),Re.forEach(function(Me,Ve){if(Me.circularLinkType=="bottom"){var et=Ve+1,ot=0;for(et;et1&&Te.sort(function(Ie,Me){if(!Ie.circular&&!Me.circular){if(Ie.source.column==Me.source.column)return Ie.y0-Me.y0;if(te(Ie,Me)){if(Me.source.column0?"up":"down"}function ge(xe,_e){return y(xe.source,_e)==y(xe.target,_e)}function be(xe,_e,De){var Fe=xe.nodes,Te=xe.links,Re=!1,Se=!1;if(Te.forEach(function(Qe){Qe.circularLinkType=="top"?Re=!0:Qe.circularLinkType=="bottom"&&(Se=!0)}),Re==!1||Se==!1){var Ie=(0,m.SY)(Fe,function(Qe){return Qe.y0}),Me=(0,m.kv)(Fe,function(Qe){return Qe.y1}),Ve=Me-Ie,et=De-_e,ot=et/Ve;Fe.forEach(function(Qe){var $e=(Qe.y1-Qe.y0)*ot;Qe.y0=(Qe.y0-Ie)*ot,Qe.y1=Qe.y0+$e}),Te.forEach(function(Qe){Qe.y0=(Qe.y0-Ie)*ot,Qe.y1=(Qe.y1-Ie)*ot,Qe.width=Qe.width*ot})}}},26800:function(G,H,e){e.r(H),e.d(H,{sankey:function(){return d},sankeyCenter:function(){return p},sankeyJustify:function(){return v},sankeyLeft:function(){return L},sankeyLinkHorizontal:function(){return y},sankeyRight:function(){return S}});var m=e(84706),P=e(34712);function s(E){return E.target.depth}function L(E){return E.depth}function S(E,A){return A-1-E.height}function v(E,A){return E.sourceLinks.length?E.depth:A-1}function p(E){return E.targetLinks.length?E.depth:E.sourceLinks.length?(0,m.SY)(E.sourceLinks,s)-1:0}function r(E){return function(){return E}}function t(E,A){return n(E.source,A.source)||E.index-A.index}function a(E,A){return n(E.target,A.target)||E.index-A.index}function n(E,A){return E.y0-A.y0}function f(E){return E.value}function u(E){return(E.y0+E.y1)/2}function l(E){return u(E.source)*E.value}function g(E){return u(E.target)*E.value}function h(E){return E.index}function T(E){return E.nodes}function c(E){return E.links}function i(E,A){var o=E.get(A);if(!o)throw new Error("missing: "+A);return o}function d(){var E=0,A=0,o=1,M=1,b=24,I=8,D=h,N=v,k=T,O=c,F=32,z=2/3;function B(){var $={nodes:k.apply(null,arguments),links:O.apply(null,arguments)};return W($),J($),re($),ne($),le($),$}B.update=function($){return le($),$},B.nodeId=function($){return arguments.length?(D=typeof $=="function"?$:r($),B):D},B.nodeAlign=function($){return arguments.length?(N=typeof $=="function"?$:r($),B):N},B.nodeWidth=function($){return arguments.length?(b=+$,B):b},B.nodePadding=function($){return arguments.length?(I=+$,B):I},B.nodes=function($){return arguments.length?(k=typeof $=="function"?$:r($),B):k},B.links=function($){return arguments.length?(O=typeof $=="function"?$:r($),B):O},B.size=function($){return arguments.length?(E=A=0,o=+$[0],M=+$[1],B):[o-E,M-A]},B.extent=function($){return arguments.length?(E=+$[0][0],o=+$[1][0],A=+$[0][1],M=+$[1][1],B):[[E,A],[o,M]]},B.iterations=function($){return arguments.length?(F=+$,B):F};function W($){$.nodes.forEach(function(ie,X){ie.index=X,ie.sourceLinks=[],ie.targetLinks=[]});var Z=(0,P.kH)($.nodes,D);$.links.forEach(function(ie,X){ie.index=X;var Q=ie.source,oe=ie.target;typeof Q!="object"&&(Q=ie.source=i(Z,Q)),typeof oe!="object"&&(oe=ie.target=i(Z,oe)),Q.sourceLinks.push(ie),oe.targetLinks.push(ie)})}function J($){$.nodes.forEach(function(Z){Z.value=Math.max((0,m.oh)(Z.sourceLinks,f),(0,m.oh)(Z.targetLinks,f))})}function re($){var Z,ie,X;for(Z=$.nodes,ie=[],X=0;Z.length;++X,Z=ie,ie=[])Z.forEach(function(oe){oe.depth=X,oe.sourceLinks.forEach(function(Y){ie.indexOf(Y.target)<0&&ie.push(Y.target)})});for(Z=$.nodes,ie=[],X=0;Z.length;++X,Z=ie,ie=[])Z.forEach(function(oe){oe.height=X,oe.targetLinks.forEach(function(Y){ie.indexOf(Y.source)<0&&ie.push(Y.source)})});var Q=(o-E-b)/(X-1);$.nodes.forEach(function(oe){oe.x1=(oe.x0=E+Math.max(0,Math.min(X-1,Math.floor(N.call(null,oe,X))))*Q)+b})}function ne($){var Z=(0,P.UJ)().key(function(se){return se.x0}).sortKeys(m.XE).entries($.nodes).map(function(se){return se.values});Q(),j();for(var ie=1,X=F;X>0;--X)Y(ie*=.99),j(),oe(ie),j();function Q(){var se=(0,m.kv)(Z,function(ge){return ge.length}),te=z*(M-A)/(se-1);I>te&&(I=te);var fe=(0,m.SY)(Z,function(ge){return(M-A-(ge.length-1)*I)/(0,m.oh)(ge,f)});Z.forEach(function(ge){ge.forEach(function(be,xe){be.y1=(be.y0=xe)+be.value*fe})}),$.links.forEach(function(ge){ge.width=ge.value*fe})}function oe(se){Z.forEach(function(te){te.forEach(function(fe){if(fe.targetLinks.length){var ge=((0,m.oh)(fe.targetLinks,l)/(0,m.oh)(fe.targetLinks,f)-u(fe))*se;fe.y0+=ge,fe.y1+=ge}})})}function Y(se){Z.slice().reverse().forEach(function(te){te.forEach(function(fe){if(fe.sourceLinks.length){var ge=((0,m.oh)(fe.sourceLinks,g)/(0,m.oh)(fe.sourceLinks,f)-u(fe))*se;fe.y0+=ge,fe.y1+=ge}})})}function j(){Z.forEach(function(se){var te,fe,ge=A,be=se.length,xe;for(se.sort(n),xe=0;xe0&&(te.y0+=fe,te.y1+=fe),ge=te.y1+I;if(fe=ge-I-M,fe>0)for(ge=te.y0-=fe,te.y1-=fe,xe=be-2;xe>=0;--xe)te=se[xe],fe=te.y1+I-ge,fe>0&&(te.y0-=fe,te.y1-=fe),ge=te.y0})}}function le($){$.nodes.forEach(function(Z){Z.sourceLinks.sort(a),Z.targetLinks.sort(t)}),$.nodes.forEach(function(Z){var ie=Z.y0,X=ie;Z.sourceLinks.forEach(function(Q){Q.y0=ie+Q.width/2,ie+=Q.width}),Z.targetLinks.forEach(function(Q){Q.y1=X+Q.width/2,X+=Q.width})})}return B}var x=e(10132);function w(E){return[E.source.x1,E.y0]}function C(E){return[E.target.x0,E.y1]}function y(){return(0,x.ak)().source(w).target(C)}},33428:function(G,H,e){var m,P;(function(){var s={version:"3.8.2"},L=[].slice,S=function(ue){return L.call(ue)},v=self.document;function p(ue){return ue&&(ue.ownerDocument||ue.document||ue).documentElement}function r(ue){return ue&&(ue.ownerDocument&&ue.ownerDocument.defaultView||ue.document&&ue||ue.defaultView)}if(v)try{S(v.documentElement.childNodes)[0].nodeType}catch{S=function(Ae){for(var Be=Ae.length,qe=new Array(Be);Be--;)qe[Be]=Ae[Be];return qe}}if(Date.now||(Date.now=function(){return+new Date}),v)try{v.createElement("DIV").style.setProperty("opacity",0,"")}catch{var t=this.Element.prototype,a=t.setAttribute,n=t.setAttributeNS,f=this.CSSStyleDeclaration.prototype,u=f.setProperty;t.setAttribute=function(Ae,Be){a.call(this,Ae,Be+"")},t.setAttributeNS=function(Ae,Be,qe){n.call(this,Ae,Be,qe+"")},f.setProperty=function(Ae,Be,qe){u.call(this,Ae,Be+"",qe)}}s.ascending=l;function l(ue,Ae){return ueAe?1:ue>=Ae?0:NaN}s.descending=function(ue,Ae){return Aeue?1:Ae>=ue?0:NaN},s.min=function(ue,Ae){var Be=-1,qe=ue.length,nt,ct;if(arguments.length===1){for(;++Be=ct){nt=ct;break}for(;++Bect&&(nt=ct)}else{for(;++Be=ct){nt=ct;break}for(;++Bect&&(nt=ct)}return nt},s.max=function(ue,Ae){var Be=-1,qe=ue.length,nt,ct;if(arguments.length===1){for(;++Be=ct){nt=ct;break}for(;++Bent&&(nt=ct)}else{for(;++Be=ct){nt=ct;break}for(;++Bent&&(nt=ct)}return nt},s.extent=function(ue,Ae){var Be=-1,qe=ue.length,nt,ct,Pt;if(arguments.length===1){for(;++Be=ct){nt=Pt=ct;break}for(;++Bect&&(nt=ct),Pt=ct){nt=Pt=ct;break}for(;++Bect&&(nt=ct),Pt1)return Pt/(Gt-1)},s.deviation=function(){var ue=s.variance.apply(this,arguments);return ue&&Math.sqrt(ue)};function T(ue){return{left:function(Ae,Be,qe,nt){for(arguments.length<3&&(qe=0),arguments.length<4&&(nt=Ae.length);qe>>1;ue(Ae[ct],Be)<0?qe=ct+1:nt=ct}return qe},right:function(Ae,Be,qe,nt){for(arguments.length<3&&(qe=0),arguments.length<4&&(nt=Ae.length);qe>>1;ue(Ae[ct],Be)>0?nt=ct:qe=ct+1}return qe}}}var c=T(l);s.bisectLeft=c.left,s.bisect=s.bisectRight=c.right,s.bisector=function(ue){return T(ue.length===1?function(Ae,Be){return l(ue(Ae),Be)}:ue)},s.shuffle=function(ue,Ae,Be){(qe=arguments.length)<3&&(Be=ue.length,qe<2&&(Ae=0));for(var qe=Be-Ae,nt,ct;qe;)ct=Math.random()*qe--|0,nt=ue[qe+Ae],ue[qe+Ae]=ue[ct+Ae],ue[ct+Ae]=nt;return ue},s.permute=function(ue,Ae){for(var Be=Ae.length,qe=new Array(Be);Be--;)qe[Be]=ue[Ae[Be]];return qe},s.pairs=function(ue){for(var Ae=0,Be=ue.length-1,qe=ue[0],nt=new Array(Be<0?0:Be);Ae=0;)for(Pt=ue[Ae],Be=Pt.length;--Be>=0;)ct[--nt]=Pt[Be];return ct};var d=Math.abs;s.range=function(ue,Ae,Be){if(arguments.length<3&&(Be=1,arguments.length<2&&(Ae=ue,ue=0)),(Ae-ue)/Be===1/0)throw new Error("infinite range");var qe=[],nt=x(d(Be)),ct=-1,Pt;if(ue*=nt,Ae*=nt,Be*=nt,Be<0)for(;(Pt=ue+Be*++ct)>Ae;)qe.push(Pt/nt);else for(;(Pt=ue+Be*++ct)=Ae.length)return nt?nt.call(ue,Gt):qe?Gt.sort(qe):Gt;for(var rr=-1,Cr=Gt.length,Lr=Ae[Yt++],$r,sn,_r,Vr=new C,Kr;++rr=Ae.length)return St;var Yt=[],rr=Be[Gt++];return St.forEach(function(Cr,Lr){Yt.push({key:Cr,values:Pt(Lr,Gt)})}),rr?Yt.sort(function(Cr,Lr){return rr(Cr.key,Lr.key)}):Yt}return ue.map=function(St,Gt){return ct(Gt,St,0)},ue.entries=function(St){return Pt(ct(s.map,St,0),0)},ue.key=function(St){return Ae.push(St),ue},ue.sortKeys=function(St){return Be[Ae.length-1]=St,ue},ue.sortValues=function(St){return qe=St,ue},ue.rollup=function(St){return nt=St,ue},ue},s.set=function(ue){var Ae=new k;if(ue)for(var Be=0,qe=ue.length;Be=0&&(qe=ue.slice(Be+1),ue=ue.slice(0,Be)),ue)return arguments.length<2?this[ue].on(qe):this[ue].on(qe,Ae);if(arguments.length===2){if(Ae==null)for(ue in this)this.hasOwnProperty(ue)&&this[ue].on(qe,null);return this}};function re(ue){var Ae=[],Be=new C;function qe(){for(var nt=Ae,ct=-1,Pt=nt.length,St;++ct=0&&(Be=ue.slice(0,Ae))!=="xmlns"&&(ue=ue.slice(Ae+1)),ge.hasOwnProperty(Be)?{space:ge[Be],local:ue}:ue}},j.attr=function(ue,Ae){if(arguments.length<2){if(typeof ue=="string"){var Be=this.node();return ue=s.ns.qualify(ue),ue.local?Be.getAttributeNS(ue.space,ue.local):Be.getAttribute(ue)}for(Ae in ue)this.each(be(Ae,ue[Ae]));return this}return this.each(be(ue,Ae))};function be(ue,Ae){ue=s.ns.qualify(ue);function Be(){this.removeAttribute(ue)}function qe(){this.removeAttributeNS(ue.space,ue.local)}function nt(){this.setAttribute(ue,Ae)}function ct(){this.setAttributeNS(ue.space,ue.local,Ae)}function Pt(){var Gt=Ae.apply(this,arguments);Gt==null?this.removeAttribute(ue):this.setAttribute(ue,Gt)}function St(){var Gt=Ae.apply(this,arguments);Gt==null?this.removeAttributeNS(ue.space,ue.local):this.setAttributeNS(ue.space,ue.local,Gt)}return Ae==null?ue.local?qe:Be:typeof Ae=="function"?ue.local?St:Pt:ue.local?ct:nt}function xe(ue){return ue.trim().replace(/\s+/g," ")}j.classed=function(ue,Ae){if(arguments.length<2){if(typeof ue=="string"){var Be=this.node(),qe=(ue=De(ue)).length,nt=-1;if(Ae=Be.classList){for(;++nt=0;)(ct=Be[qe])&&(nt&&nt!==ct.nextSibling&&nt.parentNode.insertBefore(ct,nt),nt=ct);return this},j.sort=function(ue){ue=ot.apply(this,arguments);for(var Ae=-1,Be=this.length;++Ae=Ae&&(Ae=nt+1);!(Gt=Pt[Ae])&&++Ae0&&(ue=ue.slice(0,nt));var Pt=wt.get(ue);Pt&&(ue=Pt,ct=rt);function St(){var rr=this[qe];rr&&(this.removeEventListener(ue,rr,rr.$),delete this[qe])}function Gt(){var rr=ct(Ae,S(arguments));St.call(this),this.addEventListener(ue,this[qe]=rr,rr.$=Be),rr._=Ae}function Yt(){var rr=new RegExp("^__on([^.]+)"+s.requote(ue)+"$"),Cr;for(var Lr in this)if(Cr=Lr.match(rr)){var $r=this[Lr];this.removeEventListener(Cr[1],$r,$r.$),delete this[Lr]}}return nt?Ae?Gt:St:Ae?W:Yt}var wt=s.map({mouseenter:"mouseover",mouseleave:"mouseout"});v&&wt.forEach(function(ue){"on"+ue in v&&wt.remove(ue)});function Ct(ue,Ae){return function(Be){var qe=s.event;s.event=Be,Ae[0]=this.__data__;try{ue.apply(this,Ae)}finally{s.event=qe}}}function rt(ue,Ae){var Be=Ct(ue,Ae);return function(qe){var nt=this,ct=qe.relatedTarget;(!ct||ct!==nt&&!(ct.compareDocumentPosition(nt)&8))&&Be.call(nt,qe)}}var ze,He=0;function We(ue){var Ae=".dragsuppress-"+ ++He,Be="click"+Ae,qe=s.select(r(ue)).on("touchmove"+Ae,ne).on("dragstart"+Ae,ne).on("selectstart"+Ae,ne);if(ze==null&&(ze="onselectstart"in ue?!1:z(ue.style,"userSelect")),ze){var nt=p(ue).style,ct=nt[ze];nt[ze]="none"}return function(Pt){if(qe.on(Ae,null),ze&&(nt[ze]=ct),Pt){var St=function(){qe.on(Be,null)};qe.on(Be,function(){ne(),St()},!0),setTimeout(St,0)}}}s.mouse=function(ue){return Le(ue,le())};var Ge=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Le(ue,Ae){Ae.changedTouches&&(Ae=Ae.changedTouches[0]);var Be=ue.ownerSVGElement||ue;if(Be.createSVGPoint){var qe=Be.createSVGPoint();if(Ge<0){var nt=r(ue);if(nt.scrollX||nt.scrollY){Be=s.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var ct=Be[0][0].getScreenCTM();Ge=!(ct.f||ct.e),Be.remove()}}return Ge?(qe.x=Ae.pageX,qe.y=Ae.pageY):(qe.x=Ae.clientX,qe.y=Ae.clientY),qe=qe.matrixTransform(ue.getScreenCTM().inverse()),[qe.x,qe.y]}var Pt=ue.getBoundingClientRect();return[Ae.clientX-Pt.left-ue.clientLeft,Ae.clientY-Pt.top-ue.clientTop]}s.touch=function(ue,Ae,Be){if(arguments.length<3&&(Be=Ae,Ae=le().changedTouches),Ae){for(var qe=0,nt=Ae.length,ct;qe1?Ze:ue<-1?-Ze:Math.asin(ue)}function Tt(ue){return((ue=Math.exp(ue))-1/ue)/2}function Rt(ue){return((ue=Math.exp(ue))+1/ue)/2}function Xt(ue){return((ue=Math.exp(2*ue))-1)/(ue+1)}var gr=Math.SQRT2,gt=2,Kt=4;s.interpolateZoom=function(ue,Ae){var Be=ue[0],qe=ue[1],nt=ue[2],ct=Ae[0],Pt=Ae[1],St=Ae[2],Gt=ct-Be,Yt=Pt-qe,rr=Gt*Gt+Yt*Yt,Cr,Lr;if(rr0&&(qn=qn.transition().duration(Pt)),qn.call(pn.event)}function oa(){Vr&&Vr.domain(_r.range().map(function(qn){return(qn-ue.x)/ue.k}).map(_r.invert)),hn&&hn.domain(Kr.range().map(function(qn){return(qn-ue.y)/ue.k}).map(Kr.invert))}function ca(qn){St++||qn({type:"zoomstart"})}function Ua(qn){oa(),qn({type:"zoom",scale:ue.k,translate:[ue.x,ue.y]})}function Ea(qn){--St||(qn({type:"zoomend"}),Be=null)}function Oa(){var qn=this,Ha=sn.of(qn,arguments),Sa=0,Ja=s.select(r(qn)).on(Yt,$i).on(rr,qi),wi=rn(s.mouse(qn)),oi=We(qn);Ft.call(qn),ca(Ha);function $i(){Sa=1,fa(s.mouse(qn),wi),Ua(Ha)}function qi(){Ja.on(Yt,null).on(rr,null),oi(Sa),Ea(Ha)}}function ii(){var qn=this,Ha=sn.of(qn,arguments),Sa={},Ja=0,wi,oi=".zoom-"+s.event.changedTouches[0].identifier,$i="touchmove"+oi,qi="touchend"+oi,ao=[],Ti=s.select(qn),go=We(qn);La(),ca(Ha),Ti.on(Gt,null).on(Lr,La);function la(){var io=s.touches(qn);return wi=ue.k,io.forEach(function(hi){hi.identifier in Sa&&(Sa[hi.identifier]=rn(hi))}),io}function La(){var io=s.event.target;s.select(io).on($i,Ro).on(qi,Fo),ao.push(io);for(var hi=s.event.changedTouches,Wi=0,Ni=hi.length;Wi1){var Li=ps[0],Gl=ps[1],Qa=Li[0]-Gl[0],Pi=Li[1]-Gl[1];Ja=Qa*Qa+Pi*Pi}}function Ro(){var io=s.touches(qn),hi,Wi,Ni,ps;Ft.call(qn);for(var Ds=0,Li=io.length;Ds1?1:Ae,Be=Be<0?0:Be>1?1:Be,nt=Be<=.5?Be*(1+Ae):Be+Ae-Be*Ae,qe=2*Be-nt;function ct(St){return St>360?St-=360:St<0&&(St+=360),St<60?qe+(nt-qe)*St/60:St<180?nt:St<240?qe+(nt-qe)*(240-St)/60:qe}function Pt(St){return Math.round(ct(St)*255)}return new cr(Pt(ue+120),Pt(ue),Pt(ue-120))}s.hcl=Et;function Et(ue,Ae,Be){return this instanceof Et?(this.h=+ue,this.c=+Ae,void(this.l=+Be)):arguments.length<2?ue instanceof Et?new Et(ue.h,ue.c,ue.l):ue instanceof Ut?zt(ue.l,ue.a,ue.b):zt((ue=Hr((ue=s.rgb(ue)).r,ue.g,ue.b)).l,ue.a,ue.b):new Et(ue,Ae,Be)}var Vt=Et.prototype=new ut;Vt.brighter=function(ue){return new Et(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?ue:1)))},Vt.darker=function(ue){return new Et(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?ue:1)))},Vt.rgb=function(){return Bt(this.h,this.c,this.l).rgb()};function Bt(ue,Ae,Be){return isNaN(ue)&&(ue=0),isNaN(Ae)&&(Ae=0),new Ut(Be,Math.cos(ue*=st)*Ae,Math.sin(ue)*Ae)}s.lab=Ut;function Ut(ue,Ae,Be){return this instanceof Ut?(this.l=+ue,this.a=+Ae,void(this.b=+Be)):arguments.length<2?ue instanceof Ut?new Ut(ue.l,ue.a,ue.b):ue instanceof Et?Bt(ue.h,ue.c,ue.l):Hr((ue=cr(ue)).r,ue.g,ue.b):new Ut(ue,Ae,Be)}var Jt=18,ur=.95047,fr=1,dr=1.08883,Ye=Ut.prototype=new ut;Ye.brighter=function(ue){return new Ut(Math.min(100,this.l+Jt*(arguments.length?ue:1)),this.a,this.b)},Ye.darker=function(ue){return new Ut(Math.max(0,this.l-Jt*(arguments.length?ue:1)),this.a,this.b)},Ye.rgb=function(){return Ue(this.l,this.a,this.b)};function Ue(ue,Ae,Be){var qe=(ue+16)/116,nt=qe+Ae/500,ct=qe-Be/200;return nt=Dt(nt)*ur,qe=Dt(qe)*fr,ct=Dt(ct)*dr,new cr(sr(3.2404542*nt-1.5371385*qe-.4985314*ct),sr(-.969266*nt+1.8760108*qe+.041556*ct),sr(.0556434*nt-.2040259*qe+1.0572252*ct))}function zt(ue,Ae,Be){return ue>0?new Et(Math.atan2(Be,Ae)*lt,Math.sqrt(Ae*Ae+Be*Be),ue):new Et(NaN,NaN,ue)}function Dt(ue){return ue>.206893034?ue*ue*ue:(ue-.13793103448275862)/7.787037}function $t(ue){return ue>.008856?Math.pow(ue,.3333333333333333):7.787037*ue+.13793103448275862}function sr(ue){return Math.round(255*(ue<=.00304?12.92*ue:1.055*Math.pow(ue,.4166666666666667)-.055))}s.rgb=cr;function cr(ue,Ae,Be){return this instanceof cr?(this.r=~~ue,this.g=~~Ae,void(this.b=~~Be)):arguments.length<2?ue instanceof cr?new cr(ue.r,ue.g,ue.b):xr(""+ue,cr,At):new cr(ue,Ae,Be)}function tr(ue){return new cr(ue>>16,ue>>8&255,ue&255)}function Nt(ue){return tr(ue)+""}var ir=cr.prototype=new ut;ir.brighter=function(ue){ue=Math.pow(.7,arguments.length?ue:1);var Ae=this.r,Be=this.g,qe=this.b,nt=30;return!Ae&&!Be&&!qe?new cr(nt,nt,nt):(Ae&&Ae>4,qe=qe>>4|qe,nt=Gt&240,nt=nt>>4|nt,ct=Gt&15,ct=ct<<4|ct):ue.length===7&&(qe=(Gt&16711680)>>16,nt=(Gt&65280)>>8,ct=Gt&255)),Ae(qe,nt,ct))}function vr(ue,Ae,Be){var qe=Math.min(ue/=255,Ae/=255,Be/=255),nt=Math.max(ue,Ae,Be),ct=nt-qe,Pt,St,Gt=(nt+qe)/2;return ct?(St=Gt<.5?ct/(nt+qe):ct/(2-nt-qe),ue==nt?Pt=(Ae-Be)/ct+(Ae0&&Gt<1?0:Pt),new at(Pt,St,Gt)}function Hr(ue,Ae,Be){ue=Pr(ue),Ae=Pr(Ae),Be=Pr(Be);var qe=$t((.4124564*ue+.3575761*Ae+.1804375*Be)/ur),nt=$t((.2126729*ue+.7151522*Ae+.072175*Be)/fr),ct=$t((.0193339*ue+.119192*Ae+.9503041*Be)/dr);return Ut(116*nt-16,500*(qe-nt),200*(nt-ct))}function Pr(ue){return(ue/=255)<=.04045?ue/12.92:Math.pow((ue+.055)/1.055,2.4)}function Rr(ue){var Ae=parseFloat(ue);return ue.charAt(ue.length-1)==="%"?Math.round(Ae*2.55):Ae}var an=s.map({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});an.forEach(function(ue,Ae){an.set(ue,tr(Ae))});function tn(ue){return typeof ue=="function"?ue:function(){return ue}}s.functor=tn,s.xhr=Sn(O);function Sn(ue){return function(Ae,Be,qe){return arguments.length===2&&typeof Be=="function"&&(qe=Be,Be=null),Tn(Ae,Be,ue,qe)}}function Tn(ue,Ae,Be,qe){var nt={},ct=s.dispatch("beforesend","progress","load","error"),Pt={},St=new XMLHttpRequest,Gt=null;self.XDomainRequest&&!("withCredentials"in St)&&/^(http(s)?:)?\/\//.test(ue)&&(St=new XDomainRequest),"onload"in St?St.onload=St.onerror=Yt:St.onreadystatechange=function(){St.readyState>3&&Yt()};function Yt(){var rr=St.status,Cr;if(!rr&&zr(St)||rr>=200&&rr<300||rr===304){try{Cr=Be.call(nt,St)}catch(Lr){ct.error.call(nt,Lr);return}ct.load.call(nt,Cr)}else ct.error.call(nt,St)}return St.onprogress=function(rr){var Cr=s.event;s.event=rr;try{ct.progress.call(nt,St)}finally{s.event=Cr}},nt.header=function(rr,Cr){return rr=(rr+"").toLowerCase(),arguments.length<2?Pt[rr]:(Cr==null?delete Pt[rr]:Pt[rr]=Cr+"",nt)},nt.mimeType=function(rr){return arguments.length?(Ae=rr==null?null:rr+"",nt):Ae},nt.responseType=function(rr){return arguments.length?(Gt=rr,nt):Gt},nt.response=function(rr){return Be=rr,nt},["get","post"].forEach(function(rr){nt[rr]=function(){return nt.send.apply(nt,[rr].concat(S(arguments)))}}),nt.send=function(rr,Cr,Lr){if(arguments.length===2&&typeof Cr=="function"&&(Lr=Cr,Cr=null),St.open(rr,ue,!0),Ae!=null&&!("accept"in Pt)&&(Pt.accept=Ae+",*/*"),St.setRequestHeader)for(var $r in Pt)St.setRequestHeader($r,Pt[$r]);return Ae!=null&&St.overrideMimeType&&St.overrideMimeType(Ae),Gt!=null&&(St.responseType=Gt),Lr!=null&&nt.on("error",Lr).on("load",function(sn){Lr(null,sn)}),ct.beforesend.call(nt,St),St.send(Cr??null),nt},nt.abort=function(){return St.abort(),nt},s.rebind(nt,ct,"on"),qe==null?nt:nt.get(Tr(qe))}function Tr(ue){return ue.length===1?function(Ae,Be){ue(Ae==null?Be:null)}:ue}function zr(ue){var Ae=ue.responseType;return Ae&&Ae!=="text"?ue.response:ue.responseText}s.dsv=function(ue,Ae){var Be=new RegExp('["'+ue+` -]`),qe=ue.charCodeAt(0);function nt(Yt,rr,Cr){arguments.length<3&&(Cr=rr,rr=null);var Lr=Tn(Yt,Ae,rr==null?ct:Pt(rr),Cr);return Lr.row=function($r){return arguments.length?Lr.response((rr=$r)==null?ct:Pt($r)):rr},Lr}function ct(Yt){return nt.parse(Yt.responseText)}function Pt(Yt){return function(rr){return nt.parse(rr.responseText,Yt)}}nt.parse=function(Yt,rr){var Cr;return nt.parseRows(Yt,function(Lr,$r){if(Cr)return Cr(Lr,$r-1);var sn=function(_r){for(var Vr={},Kr=Lr.length,hn=0;hn=sn)return Lr;if(hn)return hn=!1,Cr;var Hn=_r;if(Yt.charCodeAt(Hn)===34){for(var ra=Hn;ra++"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}return ze=r(ze),p(rt,We()?Reflect.construct(ze,[],r(rt).constructor):ze.apply(rt,He))}function p(rt,ze){if(ze&&(f(ze)==="object"||typeof ze=="function"))return ze;if(ze!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t(rt)}function r(rt){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(He){return He.__proto__||Object.getPrototypeOf(He)},r(rt)}function t(rt){if(rt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return rt}function a(rt,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Super expression must either be null or a function");rt.prototype=Object.create(ze&&ze.prototype,{constructor:{value:rt,writable:!0,configurable:!0}}),Object.defineProperty(rt,"prototype",{writable:!1}),ze&&n(rt,ze)}function n(rt,ze){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(We,Ge){return We.__proto__=Ge,We},n(rt,ze)}function f(rt){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ze){return typeof ze}:function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},f(rt)}var u=e(59968),l=e(35984),g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;H.Buffer=i,H.SlowBuffer=I,H.INSPECT_MAX_BYTES=50;var h=2147483647;H.kMaxLength=h,i.TYPED_ARRAY_SUPPORT=T(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function T(){try{var rt=new Uint8Array(1),ze={foo:function(){return 42}};return Object.setPrototypeOf(ze,Uint8Array.prototype),Object.setPrototypeOf(rt,ze),rt.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function c(rt){if(rt>h)throw new RangeError('The value "'+rt+'" is invalid for option "size"');var ze=new Uint8Array(rt);return Object.setPrototypeOf(ze,i.prototype),ze}function i(rt,ze,He){if(typeof rt=="number"){if(typeof ze=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(rt)}return d(rt,ze,He)}i.poolSize=8192;function d(rt,ze,He){if(typeof rt=="string")return y(rt,ze);if(ArrayBuffer.isView(rt))return A(rt);if(rt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(rt));if(ht(rt,ArrayBuffer)||rt&&ht(rt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ht(rt,SharedArrayBuffer)||rt&&ht(rt.buffer,SharedArrayBuffer)))return o(rt,ze,He);if(typeof rt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=rt.valueOf&&rt.valueOf();if(We!=null&&We!==rt)return i.from(We,ze,He);var Ge=M(rt);if(Ge)return Ge;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof rt[Symbol.toPrimitive]=="function")return i.from(rt[Symbol.toPrimitive]("string"),ze,He);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(rt))}i.from=function(rt,ze,He){return d(rt,ze,He)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function x(rt){if(typeof rt!="number")throw new TypeError('"size" argument must be of type number');if(rt<0)throw new RangeError('The value "'+rt+'" is invalid for option "size"')}function w(rt,ze,He){return x(rt),rt<=0?c(rt):ze!==void 0?typeof He=="string"?c(rt).fill(ze,He):c(rt).fill(ze):c(rt)}i.alloc=function(rt,ze,He){return w(rt,ze,He)};function C(rt){return x(rt),c(rt<0?0:b(rt)|0)}i.allocUnsafe=function(rt){return C(rt)},i.allocUnsafeSlow=function(rt){return C(rt)};function y(rt,ze){if((typeof ze!="string"||ze==="")&&(ze="utf8"),!i.isEncoding(ze))throw new TypeError("Unknown encoding: "+ze);var He=D(rt,ze)|0,We=c(He),Ge=We.write(rt,ze);return Ge!==He&&(We=We.slice(0,Ge)),We}function E(rt){for(var ze=rt.length<0?0:b(rt.length)|0,He=c(ze),We=0;We=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return rt|0}function I(rt){return+rt!=rt&&(rt=0),i.alloc(+rt)}i.isBuffer=function(ze){return ze!=null&&ze._isBuffer===!0&&ze!==i.prototype},i.compare=function(ze,He){if(ht(ze,Uint8Array)&&(ze=i.from(ze,ze.offset,ze.byteLength)),ht(He,Uint8Array)&&(He=i.from(He,He.offset,He.byteLength)),!i.isBuffer(ze)||!i.isBuffer(He))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ze===He)return 0;for(var We=ze.length,Ge=He.length,Le=0,Pe=Math.min(We,Ge);LeGe.length?(i.isBuffer(Pe)||(Pe=i.from(Pe)),Pe.copy(Ge,Le)):Uint8Array.prototype.set.call(Ge,Pe,Le);else if(i.isBuffer(Pe))Pe.copy(Ge,Le);else throw new TypeError('"list" argument must be an Array of Buffers');Le+=Pe.length}return Ge};function D(rt,ze){if(i.isBuffer(rt))return rt.length;if(ArrayBuffer.isView(rt)||ht(rt,ArrayBuffer))return rt.byteLength;if(typeof rt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(rt));var He=rt.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&He===0)return 0;for(var Ge=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return He;case"utf8":case"utf-8":return Ve(rt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He*2;case"hex":return He>>>1;case"base64":return Qe(rt).length;default:if(Ge)return We?-1:Ve(rt).length;ze=(""+ze).toLowerCase(),Ge=!0}}i.byteLength=D;function N(rt,ze,He){var We=!1;if((ze===void 0||ze<0)&&(ze=0),ze>this.length||((He===void 0||He>this.length)&&(He=this.length),He<=0)||(He>>>=0,ze>>>=0,He<=ze))return"";for(rt||(rt="utf8");;)switch(rt){case"hex":return Q(this,ze,He);case"utf8":case"utf-8":return le(this,ze,He);case"ascii":return ie(this,ze,He);case"latin1":case"binary":return X(this,ze,He);case"base64":return ne(this,ze,He);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,ze,He);default:if(We)throw new TypeError("Unknown encoding: "+rt);rt=(rt+"").toLowerCase(),We=!0}}i.prototype._isBuffer=!0;function k(rt,ze,He){var We=rt[ze];rt[ze]=rt[He],rt[He]=We}i.prototype.swap16=function(){var ze=this.length;if(ze%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var He=0;HeHe&&(ze+=" ... "),""},g&&(i.prototype[g]=i.prototype.inspect),i.prototype.compare=function(ze,He,We,Ge,Le){if(ht(ze,Uint8Array)&&(ze=i.from(ze,ze.offset,ze.byteLength)),!i.isBuffer(ze))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(ze));if(He===void 0&&(He=0),We===void 0&&(We=ze?ze.length:0),Ge===void 0&&(Ge=0),Le===void 0&&(Le=this.length),He<0||We>ze.length||Ge<0||Le>this.length)throw new RangeError("out of range index");if(Ge>=Le&&He>=We)return 0;if(Ge>=Le)return-1;if(He>=We)return 1;if(He>>>=0,We>>>=0,Ge>>>=0,Le>>>=0,this===ze)return 0;for(var Pe=Le-Ge,je=We-He,Ce=Math.min(Pe,je),he=this.slice(Ge,Le),me=ze.slice(He,We),Ne=0;Ne2147483647?He=2147483647:He<-2147483648&&(He=-2147483648),He=+He,vt(He)&&(He=Ge?0:rt.length-1),He<0&&(He=rt.length+He),He>=rt.length){if(Ge)return-1;He=rt.length-1}else if(He<0)if(Ge)He=0;else return-1;if(typeof ze=="string"&&(ze=i.from(ze,We)),i.isBuffer(ze))return ze.length===0?-1:F(rt,ze,He,We,Ge);if(typeof ze=="number")return ze=ze&255,typeof Uint8Array.prototype.indexOf=="function"?Ge?Uint8Array.prototype.indexOf.call(rt,ze,He):Uint8Array.prototype.lastIndexOf.call(rt,ze,He):F(rt,[ze],He,We,Ge);throw new TypeError("val must be string, number or Buffer")}function F(rt,ze,He,We,Ge){var Le=1,Pe=rt.length,je=ze.length;if(We!==void 0&&(We=String(We).toLowerCase(),We==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(rt.length<2||ze.length<2)return-1;Le=2,Pe/=2,je/=2,He/=2}function Ce(st,lt){return Le===1?st[lt]:st.readUInt16BE(lt*Le)}var he;if(Ge){var me=-1;for(he=He;hePe&&(He=Pe-je),he=He;he>=0;he--){for(var Ne=!0,Ze=0;ZeGe&&(We=Ge)):We=Ge;var Le=ze.length;We>Le/2&&(We=Le/2);var Pe;for(Pe=0;Pe>>0,isFinite(We)?(We=We>>>0,Ge===void 0&&(Ge="utf8")):(Ge=We,We=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Le=this.length-He;if((We===void 0||We>Le)&&(We=Le),ze.length>0&&(We<0||He<0)||He>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ge||(Ge="utf8");for(var Pe=!1;;)switch(Ge){case"hex":return z(this,ze,He,We);case"utf8":case"utf-8":return B(this,ze,He,We);case"ascii":case"latin1":case"binary":return W(this,ze,He,We);case"base64":return J(this,ze,He,We);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,ze,He,We);default:if(Pe)throw new TypeError("Unknown encoding: "+Ge);Ge=(""+Ge).toLowerCase(),Pe=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(rt,ze,He){return ze===0&&He===rt.length?u.fromByteArray(rt):u.fromByteArray(rt.slice(ze,He))}function le(rt,ze,He){He=Math.min(rt.length,He);for(var We=[],Ge=ze;Ge239?4:Le>223?3:Le>191?2:1;if(Ge+je<=He){var Ce=void 0,he=void 0,me=void 0,Ne=void 0;switch(je){case 1:Le<128&&(Pe=Le);break;case 2:Ce=rt[Ge+1],(Ce&192)===128&&(Ne=(Le&31)<<6|Ce&63,Ne>127&&(Pe=Ne));break;case 3:Ce=rt[Ge+1],he=rt[Ge+2],(Ce&192)===128&&(he&192)===128&&(Ne=(Le&15)<<12|(Ce&63)<<6|he&63,Ne>2047&&(Ne<55296||Ne>57343)&&(Pe=Ne));break;case 4:Ce=rt[Ge+1],he=rt[Ge+2],me=rt[Ge+3],(Ce&192)===128&&(he&192)===128&&(me&192)===128&&(Ne=(Le&15)<<18|(Ce&63)<<12|(he&63)<<6|me&63,Ne>65535&&Ne<1114112&&(Pe=Ne))}}Pe===null?(Pe=65533,je=1):Pe>65535&&(Pe-=65536,We.push(Pe>>>10&1023|55296),Pe=56320|Pe&1023),We.push(Pe),Ge+=je}return Z(We)}var $=4096;function Z(rt){var ze=rt.length;if(ze<=$)return String.fromCharCode.apply(String,rt);for(var He="",We=0;WeWe)&&(He=We);for(var Ge="",Le=ze;LeWe&&(ze=We),He<0?(He+=We,He<0&&(He=0)):He>We&&(He=We),HeHe)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(ze,He,We){ze=ze>>>0,He=He>>>0,We||Y(ze,He,this.length);for(var Ge=this[ze],Le=1,Pe=0;++Pe>>0,He=He>>>0,We||Y(ze,He,this.length);for(var Ge=this[ze+--He],Le=1;He>0&&(Le*=256);)Ge+=this[ze+--He]*Le;return Ge},i.prototype.readUint8=i.prototype.readUInt8=function(ze,He){return ze=ze>>>0,He||Y(ze,1,this.length),this[ze]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(ze,He){return ze=ze>>>0,He||Y(ze,2,this.length),this[ze]|this[ze+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(ze,He){return ze=ze>>>0,He||Y(ze,2,this.length),this[ze]<<8|this[ze+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),(this[ze]|this[ze+1]<<8|this[ze+2]<<16)+this[ze+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),this[ze]*16777216+(this[ze+1]<<16|this[ze+2]<<8|this[ze+3])},i.prototype.readBigUInt64LE=wt(function(ze){ze=ze>>>0,Re(ze,"offset");var He=this[ze],We=this[ze+7];(He===void 0||We===void 0)&&Se(ze,this.length-8);var Ge=He+this[++ze]*Math.pow(2,8)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,24),Le=this[++ze]+this[++ze]*Math.pow(2,8)+this[++ze]*Math.pow(2,16)+We*Math.pow(2,24);return BigInt(Ge)+(BigInt(Le)<>>0,Re(ze,"offset");var He=this[ze],We=this[ze+7];(He===void 0||We===void 0)&&Se(ze,this.length-8);var Ge=He*Math.pow(2,24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+this[++ze],Le=this[++ze]*Math.pow(2,24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+We;return(BigInt(Ge)<>>0,He=He>>>0,We||Y(ze,He,this.length);for(var Ge=this[ze],Le=1,Pe=0;++Pe=Le&&(Ge-=Math.pow(2,8*He)),Ge},i.prototype.readIntBE=function(ze,He,We){ze=ze>>>0,He=He>>>0,We||Y(ze,He,this.length);for(var Ge=He,Le=1,Pe=this[ze+--Ge];Ge>0&&(Le*=256);)Pe+=this[ze+--Ge]*Le;return Le*=128,Pe>=Le&&(Pe-=Math.pow(2,8*He)),Pe},i.prototype.readInt8=function(ze,He){return ze=ze>>>0,He||Y(ze,1,this.length),this[ze]&128?(255-this[ze]+1)*-1:this[ze]},i.prototype.readInt16LE=function(ze,He){ze=ze>>>0,He||Y(ze,2,this.length);var We=this[ze]|this[ze+1]<<8;return We&32768?We|4294901760:We},i.prototype.readInt16BE=function(ze,He){ze=ze>>>0,He||Y(ze,2,this.length);var We=this[ze+1]|this[ze]<<8;return We&32768?We|4294901760:We},i.prototype.readInt32LE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),this[ze]|this[ze+1]<<8|this[ze+2]<<16|this[ze+3]<<24},i.prototype.readInt32BE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),this[ze]<<24|this[ze+1]<<16|this[ze+2]<<8|this[ze+3]},i.prototype.readBigInt64LE=wt(function(ze){ze=ze>>>0,Re(ze,"offset");var He=this[ze],We=this[ze+7];(He===void 0||We===void 0)&&Se(ze,this.length-8);var Ge=this[ze+4]+this[ze+5]*Math.pow(2,8)+this[ze+6]*Math.pow(2,16)+(We<<24);return(BigInt(Ge)<>>0,Re(ze,"offset");var He=this[ze],We=this[ze+7];(He===void 0||We===void 0)&&Se(ze,this.length-8);var Ge=(He<<24)+this[++ze]*Math.pow(2,16)+this[++ze]*Math.pow(2,8)+this[++ze];return(BigInt(Ge)<>>0,He||Y(ze,4,this.length),l.read(this,ze,!0,23,4)},i.prototype.readFloatBE=function(ze,He){return ze=ze>>>0,He||Y(ze,4,this.length),l.read(this,ze,!1,23,4)},i.prototype.readDoubleLE=function(ze,He){return ze=ze>>>0,He||Y(ze,8,this.length),l.read(this,ze,!0,52,8)},i.prototype.readDoubleBE=function(ze,He){return ze=ze>>>0,He||Y(ze,8,this.length),l.read(this,ze,!1,52,8)};function j(rt,ze,He,We,Ge,Le){if(!i.isBuffer(rt))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>Ge||zert.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(ze,He,We,Ge){if(ze=+ze,He=He>>>0,We=We>>>0,!Ge){var Le=Math.pow(2,8*We)-1;j(this,ze,He,We,Le,0)}var Pe=1,je=0;for(this[He]=ze&255;++je>>0,We=We>>>0,!Ge){var Le=Math.pow(2,8*We)-1;j(this,ze,He,We,Le,0)}var Pe=We-1,je=1;for(this[He+Pe]=ze&255;--Pe>=0&&(je*=256);)this[He+Pe]=ze/je&255;return He+We},i.prototype.writeUint8=i.prototype.writeUInt8=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,1,255,0),this[He]=ze&255,He+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,2,65535,0),this[He]=ze&255,this[He+1]=ze>>>8,He+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,2,65535,0),this[He]=ze>>>8,this[He+1]=ze&255,He+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,4,4294967295,0),this[He+3]=ze>>>24,this[He+2]=ze>>>16,this[He+1]=ze>>>8,this[He]=ze&255,He+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,4,4294967295,0),this[He]=ze>>>24,this[He+1]=ze>>>16,this[He+2]=ze>>>8,this[He+3]=ze&255,He+4};function se(rt,ze,He,We,Ge){Te(ze,We,Ge,rt,He,7);var Le=Number(ze&BigInt(4294967295));rt[He++]=Le,Le=Le>>8,rt[He++]=Le,Le=Le>>8,rt[He++]=Le,Le=Le>>8,rt[He++]=Le;var Pe=Number(ze>>BigInt(32)&BigInt(4294967295));return rt[He++]=Pe,Pe=Pe>>8,rt[He++]=Pe,Pe=Pe>>8,rt[He++]=Pe,Pe=Pe>>8,rt[He++]=Pe,He}function te(rt,ze,He,We,Ge){Te(ze,We,Ge,rt,He,7);var Le=Number(ze&BigInt(4294967295));rt[He+7]=Le,Le=Le>>8,rt[He+6]=Le,Le=Le>>8,rt[He+5]=Le,Le=Le>>8,rt[He+4]=Le;var Pe=Number(ze>>BigInt(32)&BigInt(4294967295));return rt[He+3]=Pe,Pe=Pe>>8,rt[He+2]=Pe,Pe=Pe>>8,rt[He+1]=Pe,Pe=Pe>>8,rt[He]=Pe,He+8}i.prototype.writeBigUInt64LE=wt(function(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return se(this,ze,He,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=wt(function(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return te(this,ze,He,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(ze,He,We,Ge){if(ze=+ze,He=He>>>0,!Ge){var Le=Math.pow(2,8*We-1);j(this,ze,He,We,Le-1,-Le)}var Pe=0,je=1,Ce=0;for(this[He]=ze&255;++Pe>0)-Ce&255;return He+We},i.prototype.writeIntBE=function(ze,He,We,Ge){if(ze=+ze,He=He>>>0,!Ge){var Le=Math.pow(2,8*We-1);j(this,ze,He,We,Le-1,-Le)}var Pe=We-1,je=1,Ce=0;for(this[He+Pe]=ze&255;--Pe>=0&&(je*=256);)ze<0&&Ce===0&&this[He+Pe+1]!==0&&(Ce=1),this[He+Pe]=(ze/je>>0)-Ce&255;return He+We},i.prototype.writeInt8=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,1,127,-128),ze<0&&(ze=255+ze+1),this[He]=ze&255,He+1},i.prototype.writeInt16LE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,2,32767,-32768),this[He]=ze&255,this[He+1]=ze>>>8,He+2},i.prototype.writeInt16BE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,2,32767,-32768),this[He]=ze>>>8,this[He+1]=ze&255,He+2},i.prototype.writeInt32LE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,4,2147483647,-2147483648),this[He]=ze&255,this[He+1]=ze>>>8,this[He+2]=ze>>>16,this[He+3]=ze>>>24,He+4},i.prototype.writeInt32BE=function(ze,He,We){return ze=+ze,He=He>>>0,We||j(this,ze,He,4,2147483647,-2147483648),ze<0&&(ze=4294967295+ze+1),this[He]=ze>>>24,this[He+1]=ze>>>16,this[He+2]=ze>>>8,this[He+3]=ze&255,He+4},i.prototype.writeBigInt64LE=wt(function(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return se(this,ze,He,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=wt(function(ze){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return te(this,ze,He,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fe(rt,ze,He,We,Ge,Le){if(He+We>rt.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("Index out of range")}function ge(rt,ze,He,We,Ge){return ze=+ze,He=He>>>0,Ge||fe(rt,ze,He,4),l.write(rt,ze,He,We,23,4),He+4}i.prototype.writeFloatLE=function(ze,He,We){return ge(this,ze,He,!0,We)},i.prototype.writeFloatBE=function(ze,He,We){return ge(this,ze,He,!1,We)};function be(rt,ze,He,We,Ge){return ze=+ze,He=He>>>0,Ge||fe(rt,ze,He,8),l.write(rt,ze,He,We,52,8),He+8}i.prototype.writeDoubleLE=function(ze,He,We){return be(this,ze,He,!0,We)},i.prototype.writeDoubleBE=function(ze,He,We){return be(this,ze,He,!1,We)},i.prototype.copy=function(ze,He,We,Ge){if(!i.isBuffer(ze))throw new TypeError("argument should be a Buffer");if(We||(We=0),!Ge&&Ge!==0&&(Ge=this.length),He>=ze.length&&(He=ze.length),He||(He=0),Ge>0&&Ge=this.length)throw new RangeError("Index out of range");if(Ge<0)throw new RangeError("sourceEnd out of bounds");Ge>this.length&&(Ge=this.length),ze.length-He>>0,We=We===void 0?this.length:We>>>0,ze||(ze=0);var Pe;if(typeof ze=="number")for(Pe=He;PeMath.pow(2,32)?Ge=De(String(He)):typeof He=="bigint"&&(Ge=String(He),(He>Math.pow(BigInt(2),BigInt(32))||He<-Math.pow(BigInt(2),BigInt(32)))&&(Ge=De(Ge)),Ge+="n"),We+=" It must be ".concat(ze,". Received ").concat(Ge),We},RangeError);function De(rt){for(var ze="",He=rt.length,We=rt[0]==="-"?1:0;He>=We+4;He-=3)ze="_".concat(rt.slice(He-3,He)).concat(ze);return"".concat(rt.slice(0,He)).concat(ze)}function Fe(rt,ze,He){Re(ze,"offset"),(rt[ze]===void 0||rt[ze+He]===void 0)&&Se(ze,rt.length-(He+1))}function Te(rt,ze,He,We,Ge,Le){if(rt>He||rt= 0".concat(Pe," and < 2").concat(Pe," ** ").concat((Le+1)*8).concat(Pe):je=">= -(2".concat(Pe," ** ").concat((Le+1)*8-1).concat(Pe,") and < 2 ** ")+"".concat((Le+1)*8-1).concat(Pe),new xe.ERR_OUT_OF_RANGE("value",je,rt)}Fe(We,Ge,Le)}function Re(rt,ze){if(typeof rt!="number")throw new xe.ERR_INVALID_ARG_TYPE(ze,"number",rt)}function Se(rt,ze,He){throw Math.floor(rt)!==rt?(Re(rt,He),new xe.ERR_OUT_OF_RANGE("offset","an integer",rt)):ze<0?new xe.ERR_BUFFER_OUT_OF_BOUNDS:new xe.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ze),rt)}var Ie=/[^+/0-9A-Za-z-_]/g;function Me(rt){if(rt=rt.split("=")[0],rt=rt.trim().replace(Ie,""),rt.length<2)return"";for(;rt.length%4!==0;)rt=rt+"=";return rt}function Ve(rt,ze){ze=ze||1/0;for(var He,We=rt.length,Ge=null,Le=[],Pe=0;Pe55295&&He<57344){if(!Ge){if(He>56319){(ze-=3)>-1&&Le.push(239,191,189);continue}else if(Pe+1===We){(ze-=3)>-1&&Le.push(239,191,189);continue}Ge=He;continue}if(He<56320){(ze-=3)>-1&&Le.push(239,191,189),Ge=He;continue}He=(Ge-55296<<10|He-56320)+65536}else Ge&&(ze-=3)>-1&&Le.push(239,191,189);if(Ge=null,He<128){if((ze-=1)<0)break;Le.push(He)}else if(He<2048){if((ze-=2)<0)break;Le.push(He>>6|192,He&63|128)}else if(He<65536){if((ze-=3)<0)break;Le.push(He>>12|224,He>>6&63|128,He&63|128)}else if(He<1114112){if((ze-=4)<0)break;Le.push(He>>18|240,He>>12&63|128,He>>6&63|128,He&63|128)}else throw new Error("Invalid code point")}return Le}function et(rt){for(var ze=[],He=0;He>8,Ge=He%256,Le.push(Ge),Le.push(We);return Le}function Qe(rt){return u.toByteArray(Me(rt))}function $e(rt,ze,He,We){var Ge;for(Ge=0;Ge=ze.length||Ge>=rt.length);++Ge)ze[Ge+He]=rt[Ge];return Ge}function ht(rt,ze){return rt instanceof ze||rt!=null&&rt.constructor!=null&&rt.constructor.name!=null&&rt.constructor.name===ze.name}function vt(rt){return rt!==rt}var pt=function(){for(var rt="0123456789abcdef",ze=new Array(256),He=0;He<16;++He)for(var We=He*16,Ge=0;Ge<16;++Ge)ze[We+Ge]=rt[He]+rt[Ge];return ze}();function wt(rt){return typeof BigInt>"u"?Ct:rt}function Ct(){throw new Error("BigInt not supported")}},25928:function(G){G.exports=P,G.exports.isMobile=P,G.exports.default=P;var H=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e=/CrOS/,m=/android|ipad|playbook|silk/i;function P(s){s||(s={});var L=s.ua;if(!L&&typeof navigator<"u"&&(L=navigator.userAgent),L&&L.headers&&typeof L.headers["user-agent"]=="string"&&(L=L.headers["user-agent"]),typeof L!="string")return!1;var S=H.test(L)&&!e.test(L)||!!s.tablet&&m.test(L);return!S&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&L.indexOf("Macintosh")!==-1&&L.indexOf("Safari")!==-1&&(S=!0),S}},48932:function(G,H,e){e.r(H),e.d(H,{sankeyCenter:function(){return a},sankeyCircular:function(){return M},sankeyJustify:function(){return t},sankeyLeft:function(){return p},sankeyRight:function(){return r}});var m=e(84706),P=e(34712),s=e(10132),L=e(6688),S=e.n(L);function v(xe){return xe.target.depth}function p(xe){return xe.depth}function r(xe,_e){return _e-1-xe.height}function t(xe,_e){return xe.sourceLinks.length?xe.depth:_e-1}function a(xe){return xe.targetLinks.length?xe.depth:xe.sourceLinks.length?(0,m.SY)(xe.sourceLinks,v)-1:0}function n(xe){return function(){return xe}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(xe){return typeof xe}:function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe};function u(xe,_e){return g(xe.source,_e.source)||xe.index-_e.index}function l(xe,_e){return g(xe.target,_e.target)||xe.index-_e.index}function g(xe,_e){return xe.partOfCycle===_e.partOfCycle?xe.y0-_e.y0:xe.circularLinkType==="top"||_e.circularLinkType==="bottom"?-1:1}function h(xe){return xe.value}function T(xe){return(xe.y0+xe.y1)/2}function c(xe){return T(xe.source)}function i(xe){return T(xe.target)}function d(xe){return xe.index}function x(xe){return xe.nodes}function w(xe){return xe.links}function C(xe,_e){var De=xe.get(_e);if(!De)throw new Error("missing: "+_e);return De}function y(xe,_e){return _e(xe)}var E=25,A=10,o=.3;function M(){var xe=0,_e=0,De=1,Fe=1,Te=24,Re,Se=d,Ie=t,Me=x,Ve=w,et=32,ot=2,Qe,$e=null;function ht(){var We={nodes:Me.apply(null,arguments),links:Ve.apply(null,arguments)};vt(We),b(We,Se,$e),pt(We),rt(We),I(We,Se),ze(We,et,Se),He(We);for(var Ge=4,Le=0;Le"u"?"undefined":f(je))!=="object"&&(je=Le.source=C(Ge,je)),(typeof Ce>"u"?"undefined":f(Ce))!=="object"&&(Ce=Le.target=C(Ge,Ce)),je.sourceLinks.push(Le),Ce.targetLinks.push(Le)}),We}function pt(We){We.nodes.forEach(function(Ge){Ge.partOfCycle=!1,Ge.value=Math.max((0,m.oh)(Ge.sourceLinks,h),(0,m.oh)(Ge.targetLinks,h)),Ge.sourceLinks.forEach(function(Le){Le.circular&&(Ge.partOfCycle=!0,Ge.circularLinkType=Le.circularLinkType)}),Ge.targetLinks.forEach(function(Le){Le.circular&&(Ge.partOfCycle=!0,Ge.circularLinkType=Le.circularLinkType)})})}function wt(We){var Ge=0,Le=0,Pe=0,je=0,Ce=(0,m.kv)(We.nodes,function(he){return he.column});return We.links.forEach(function(he){he.circular&&(he.circularLinkType=="top"?Ge=Ge+he.width:Le=Le+he.width,he.target.column==0&&(je=je+he.width),he.source.column==Ce&&(Pe=Pe+he.width))}),Ge=Ge>0?Ge+E+A:Ge,Le=Le>0?Le+E+A:Le,Pe=Pe>0?Pe+E+A:Pe,je=je>0?je+E+A:je,{top:Ge,bottom:Le,left:je,right:Pe}}function Ct(We,Ge){var Le=(0,m.kv)(We.nodes,function(Ze){return Ze.column}),Pe=De-xe,je=Fe-_e,Ce=Pe+Ge.right+Ge.left,he=je+Ge.top+Ge.bottom,me=Pe/Ce,Ne=je/he;return xe=xe*me+Ge.left,De=Ge.right==0?De:De*me,_e=_e*Ne+Ge.top,Fe=Fe*Ne,We.nodes.forEach(function(Ze){Ze.x0=xe+Ze.column*((De-xe-Te)/Le),Ze.x1=Ze.x0+Te}),Ne}function rt(We){var Ge,Le,Pe;for(Ge=We.nodes,Le=[],Pe=0;Ge.length;++Pe,Ge=Le,Le=[])Ge.forEach(function(je){je.depth=Pe,je.sourceLinks.forEach(function(Ce){Le.indexOf(Ce.target)<0&&!Ce.circular&&Le.push(Ce.target)})});for(Ge=We.nodes,Le=[],Pe=0;Ge.length;++Pe,Ge=Le,Le=[])Ge.forEach(function(je){je.height=Pe,je.targetLinks.forEach(function(Ce){Le.indexOf(Ce.source)<0&&!Ce.circular&&Le.push(Ce.source)})});We.nodes.forEach(function(je){je.column=Math.floor(Ie.call(null,je,Pe))})}function ze(We,Ge,Le){var Pe=(0,P.UJ)().key(function(Ze){return Ze.column}).sortKeys(m.XE).entries(We.nodes).map(function(Ze){return Ze.values});he(Le),Ne();for(var je=1,Ce=Ge;Ce>0;--Ce)me(je*=.99,Le),Ne();function he(Ze){if(Qe){var st=1/0;Pe.forEach(function(Tt){var Rt=Fe*Qe/(Tt.length+1);st=Rt0))if(Tt==0&&Zt==1)Xt=Rt.y1-Rt.y0,Rt.y0=Fe/2-Xt/2,Rt.y1=Fe/2+Xt/2;else if(Tt==lt-1&&Zt==1)Xt=Rt.y1-Rt.y0,Rt.y0=Fe/2-Xt/2,Rt.y1=Fe/2+Xt/2;else{var gr=0,gt=(0,m.mo)(Rt.sourceLinks,i),Kt=(0,m.mo)(Rt.targetLinks,c);gt&&Kt?gr=(gt+Kt)/2:gr=gt||Kt;var Qt=(gr-T(Rt))*Ze;Rt.y0+=Qt,Rt.y1+=Qt}})})}function Ne(){Pe.forEach(function(Ze){var st,lt,Wt=_e,Zt=Ze.length,Tt;for(Ze.sort(g),Tt=0;Tt0&&(st.y0+=lt,st.y1+=lt),Wt=st.y1+Re;if(lt=Wt-Re-Fe,lt>0)for(Wt=st.y0-=lt,st.y1-=lt,Tt=Zt-2;Tt>=0;--Tt)st=Ze[Tt],lt=st.y1+Re-Wt,lt>0&&(st.y0-=lt,st.y1-=lt),Wt=st.y0})}}function He(We){We.nodes.forEach(function(Ge){Ge.sourceLinks.sort(l),Ge.targetLinks.sort(u)}),We.nodes.forEach(function(Ge){var Le=Ge.y0,Pe=Le,je=Ge.y1,Ce=je;Ge.sourceLinks.forEach(function(he){he.circular?(he.y0=je-he.width/2,je=je-he.width):(he.y0=Le+he.width/2,Le+=he.width)}),Ge.targetLinks.forEach(function(he){he.circular?(he.y1=Ce-he.width/2,Ce=Ce-he.width):(he.y1=Pe+he.width/2,Pe+=he.width)})})}return ht}function b(xe,_e,De){var Fe=0;if(De===null){for(var Te=[],Re=0;Re_e.source.column)}function k(xe,_e){var De=0;xe.sourceLinks.forEach(function(Te){De=Te.circular&&!ge(Te,_e)?De+1:De});var Fe=0;return xe.targetLinks.forEach(function(Te){Fe=Te.circular&&!ge(Te,_e)?Fe+1:Fe}),De+Fe}function O(xe){var _e=xe.source.sourceLinks,De=0;_e.forEach(function(Re){De=Re.circular?De+1:De});var Fe=xe.target.targetLinks,Te=0;return Fe.forEach(function(Re){Te=Re.circular?Te+1:Te}),!(De>1||Te>1)}function F(xe,_e,De){return xe.sort(W),xe.forEach(function(Fe,Te){var Re=0;if(ge(Fe,De)&&O(Fe))Fe.circularPathData.verticalBuffer=Re+Fe.width/2;else{var Se=0;for(Se;SeRe?Ie:Re}Fe.circularPathData.verticalBuffer=Re+Fe.width/2}}),xe}function z(xe,_e,De,Fe){var Te=5,Re=(0,m.SY)(xe.links,function(Me){return Me.source.y0});xe.links.forEach(function(Me){Me.circular&&(Me.circularPathData={})});var Se=xe.links.filter(function(Me){return Me.circularLinkType=="top"});F(Se,_e,Fe);var Ie=xe.links.filter(function(Me){return Me.circularLinkType=="bottom"});F(Ie,_e,Fe),xe.links.forEach(function(Me){if(Me.circular){if(Me.circularPathData.arcRadius=Me.width+A,Me.circularPathData.leftNodeBuffer=Te,Me.circularPathData.rightNodeBuffer=Te,Me.circularPathData.sourceWidth=Me.source.x1-Me.source.x0,Me.circularPathData.sourceX=Me.source.x0+Me.circularPathData.sourceWidth,Me.circularPathData.targetX=Me.target.x0,Me.circularPathData.sourceY=Me.y0,Me.circularPathData.targetY=Me.y1,ge(Me,Fe)&&O(Me))Me.circularPathData.leftSmallArcRadius=A+Me.width/2,Me.circularPathData.leftLargeArcRadius=A+Me.width/2,Me.circularPathData.rightSmallArcRadius=A+Me.width/2,Me.circularPathData.rightLargeArcRadius=A+Me.width/2,Me.circularLinkType=="bottom"?(Me.circularPathData.verticalFullExtent=Me.source.y1+E+Me.circularPathData.verticalBuffer,Me.circularPathData.verticalLeftInnerExtent=Me.circularPathData.verticalFullExtent-Me.circularPathData.leftLargeArcRadius,Me.circularPathData.verticalRightInnerExtent=Me.circularPathData.verticalFullExtent-Me.circularPathData.rightLargeArcRadius):(Me.circularPathData.verticalFullExtent=Me.source.y0-E-Me.circularPathData.verticalBuffer,Me.circularPathData.verticalLeftInnerExtent=Me.circularPathData.verticalFullExtent+Me.circularPathData.leftLargeArcRadius,Me.circularPathData.verticalRightInnerExtent=Me.circularPathData.verticalFullExtent+Me.circularPathData.rightLargeArcRadius);else{var Ve=Me.source.column,et=Me.circularLinkType,ot=xe.links.filter(function(ht){return ht.source.column==Ve&&ht.circularLinkType==et});Me.circularLinkType=="bottom"?ot.sort(re):ot.sort(J);var Qe=0;ot.forEach(function(ht,vt){ht.circularLinkID==Me.circularLinkID&&(Me.circularPathData.leftSmallArcRadius=A+Me.width/2+Qe,Me.circularPathData.leftLargeArcRadius=A+Me.width/2+vt*_e+Qe),Qe=Qe+ht.width}),Ve=Me.target.column,ot=xe.links.filter(function(ht){return ht.target.column==Ve&&ht.circularLinkType==et}),Me.circularLinkType=="bottom"?ot.sort(le):ot.sort(ne),Qe=0,ot.forEach(function(ht,vt){ht.circularLinkID==Me.circularLinkID&&(Me.circularPathData.rightSmallArcRadius=A+Me.width/2+Qe,Me.circularPathData.rightLargeArcRadius=A+Me.width/2+vt*_e+Qe),Qe=Qe+ht.width}),Me.circularLinkType=="bottom"?(Me.circularPathData.verticalFullExtent=Math.max(De,Me.source.y1,Me.target.y1)+E+Me.circularPathData.verticalBuffer,Me.circularPathData.verticalLeftInnerExtent=Me.circularPathData.verticalFullExtent-Me.circularPathData.leftLargeArcRadius,Me.circularPathData.verticalRightInnerExtent=Me.circularPathData.verticalFullExtent-Me.circularPathData.rightLargeArcRadius):(Me.circularPathData.verticalFullExtent=Re-E-Me.circularPathData.verticalBuffer,Me.circularPathData.verticalLeftInnerExtent=Me.circularPathData.verticalFullExtent+Me.circularPathData.leftLargeArcRadius,Me.circularPathData.verticalRightInnerExtent=Me.circularPathData.verticalFullExtent+Me.circularPathData.rightLargeArcRadius)}Me.circularPathData.leftInnerExtent=Me.circularPathData.sourceX+Me.circularPathData.leftNodeBuffer,Me.circularPathData.rightInnerExtent=Me.circularPathData.targetX-Me.circularPathData.rightNodeBuffer,Me.circularPathData.leftFullExtent=Me.circularPathData.sourceX+Me.circularPathData.leftLargeArcRadius+Me.circularPathData.leftNodeBuffer,Me.circularPathData.rightFullExtent=Me.circularPathData.targetX-Me.circularPathData.rightLargeArcRadius-Me.circularPathData.rightNodeBuffer}if(Me.circular)Me.path=B(Me);else{var $e=(0,s.ak)().source(function(ht){var vt=ht.source.x0+(ht.source.x1-ht.source.x0),pt=ht.y0;return[vt,pt]}).target(function(ht){var vt=ht.target.x0,pt=ht.y1;return[vt,pt]});Me.path=$e(Me)}})}function B(xe){var _e="";return xe.circularLinkType=="top"?_e="M"+xe.circularPathData.sourceX+" "+xe.circularPathData.sourceY+" L"+xe.circularPathData.leftInnerExtent+" "+xe.circularPathData.sourceY+" A"+xe.circularPathData.leftLargeArcRadius+" "+xe.circularPathData.leftSmallArcRadius+" 0 0 0 "+xe.circularPathData.leftFullExtent+" "+(xe.circularPathData.sourceY-xe.circularPathData.leftSmallArcRadius)+" L"+xe.circularPathData.leftFullExtent+" "+xe.circularPathData.verticalLeftInnerExtent+" A"+xe.circularPathData.leftLargeArcRadius+" "+xe.circularPathData.leftLargeArcRadius+" 0 0 0 "+xe.circularPathData.leftInnerExtent+" "+xe.circularPathData.verticalFullExtent+" L"+xe.circularPathData.rightInnerExtent+" "+xe.circularPathData.verticalFullExtent+" A"+xe.circularPathData.rightLargeArcRadius+" "+xe.circularPathData.rightLargeArcRadius+" 0 0 0 "+xe.circularPathData.rightFullExtent+" "+xe.circularPathData.verticalRightInnerExtent+" L"+xe.circularPathData.rightFullExtent+" "+(xe.circularPathData.targetY-xe.circularPathData.rightSmallArcRadius)+" A"+xe.circularPathData.rightLargeArcRadius+" "+xe.circularPathData.rightSmallArcRadius+" 0 0 0 "+xe.circularPathData.rightInnerExtent+" "+xe.circularPathData.targetY+" L"+xe.circularPathData.targetX+" "+xe.circularPathData.targetY:_e="M"+xe.circularPathData.sourceX+" "+xe.circularPathData.sourceY+" L"+xe.circularPathData.leftInnerExtent+" "+xe.circularPathData.sourceY+" A"+xe.circularPathData.leftLargeArcRadius+" "+xe.circularPathData.leftSmallArcRadius+" 0 0 1 "+xe.circularPathData.leftFullExtent+" "+(xe.circularPathData.sourceY+xe.circularPathData.leftSmallArcRadius)+" L"+xe.circularPathData.leftFullExtent+" "+xe.circularPathData.verticalLeftInnerExtent+" A"+xe.circularPathData.leftLargeArcRadius+" "+xe.circularPathData.leftLargeArcRadius+" 0 0 1 "+xe.circularPathData.leftInnerExtent+" "+xe.circularPathData.verticalFullExtent+" L"+xe.circularPathData.rightInnerExtent+" "+xe.circularPathData.verticalFullExtent+" A"+xe.circularPathData.rightLargeArcRadius+" "+xe.circularPathData.rightLargeArcRadius+" 0 0 1 "+xe.circularPathData.rightFullExtent+" "+xe.circularPathData.verticalRightInnerExtent+" L"+xe.circularPathData.rightFullExtent+" "+(xe.circularPathData.targetY+xe.circularPathData.rightSmallArcRadius)+" A"+xe.circularPathData.rightLargeArcRadius+" "+xe.circularPathData.rightSmallArcRadius+" 0 0 1 "+xe.circularPathData.rightInnerExtent+" "+xe.circularPathData.targetY+" L"+xe.circularPathData.targetX+" "+xe.circularPathData.targetY,_e}function W(xe,_e){return $(xe)==$(_e)?xe.circularLinkType=="bottom"?re(xe,_e):J(xe,_e):$(_e)-$(xe)}function J(xe,_e){return xe.y0-_e.y0}function re(xe,_e){return _e.y0-xe.y0}function ne(xe,_e){return xe.y1-_e.y1}function le(xe,_e){return _e.y1-xe.y1}function $(xe){return xe.target.column-xe.source.column}function Z(xe){return xe.target.x0-xe.source.x1}function ie(xe,_e){var De=D(xe),Fe=Z(_e)/Math.tan(De),Te=fe(xe)=="up"?xe.y1+Fe:xe.y1-Fe;return Te}function X(xe,_e){var De=D(xe),Fe=Z(_e)/Math.tan(De),Te=fe(xe)=="up"?xe.y1-Fe:xe.y1+Fe;return Te}function Q(xe,_e,De,Fe){xe.links.forEach(function(Te){if(!Te.circular&&Te.target.column-Te.source.column>1){var Re=Te.source.column+1,Se=Te.target.column-1,Ie=1,Me=Se-Re+1;for(Ie=1;Re<=Se;Re++,Ie++)xe.nodes.forEach(function(Ve){if(Ve.column==Re){var et=Ie/(Me+1),ot=Math.pow(1-et,3),Qe=3*et*Math.pow(1-et,2),$e=3*Math.pow(et,2)*(1-et),ht=Math.pow(et,3),vt=ot*Te.y0+Qe*Te.y0+$e*Te.y1+ht*Te.y1,pt=vt-Te.width/2,wt=vt+Te.width/2,Ct;pt>Ve.y0&&ptVe.y0&&wtVe.y1&&Y(rt,Ct,_e,De)})):ptVe.y1&&(Ct=wt-Ve.y0+10,Ve=Y(Ve,Ct,_e,De),xe.nodes.forEach(function(rt){y(rt,Fe)==y(Ve,Fe)||rt.column!=Ve.column||rt.y0Ve.y1&&Y(rt,Ct,_e,De)}))}})}})}function oe(xe,_e){return xe.y0>_e.y0&&xe.y0<_e.y1||xe.y1>_e.y0&&xe.y1<_e.y1?!0:xe.y0<_e.y0&&xe.y1>_e.y1}function Y(xe,_e,De,Fe){return xe.y0+_e>=De&&xe.y1+_e<=Fe&&(xe.y0=xe.y0+_e,xe.y1=xe.y1+_e,xe.targetLinks.forEach(function(Te){Te.y1=Te.y1+_e}),xe.sourceLinks.forEach(function(Te){Te.y0=Te.y0+_e})),xe}function j(xe,_e,De,Fe){xe.nodes.forEach(function(Te){Fe&&Te.y+(Te.y1-Te.y0)>_e&&(Te.y=Te.y-(Te.y+(Te.y1-Te.y0)-_e));var Re=xe.links.filter(function(Me){return y(Me.source,De)==y(Te,De)}),Se=Re.length;Se>1&&Re.sort(function(Me,Ve){if(!Me.circular&&!Ve.circular){if(Me.target.column==Ve.target.column)return Me.y1-Ve.y1;if(te(Me,Ve)){if(Me.target.column>Ve.target.column){var et=X(Ve,Me);return Me.y1-et}if(Ve.target.column>Me.target.column){var ot=X(Me,Ve);return ot-Ve.y1}}else return Me.y1-Ve.y1}if(Me.circular&&!Ve.circular)return Me.circularLinkType=="top"?-1:1;if(Ve.circular&&!Me.circular)return Ve.circularLinkType=="top"?1:-1;if(Me.circular&&Ve.circular)return Me.circularLinkType===Ve.circularLinkType&&Me.circularLinkType=="top"?Me.target.column===Ve.target.column?Me.target.y1-Ve.target.y1:Ve.target.column-Me.target.column:Me.circularLinkType===Ve.circularLinkType&&Me.circularLinkType=="bottom"?Me.target.column===Ve.target.column?Ve.target.y1-Me.target.y1:Me.target.column-Ve.target.column:Me.circularLinkType=="top"?-1:1});var Ie=Te.y0;Re.forEach(function(Me){Me.y0=Ie+Me.width/2,Ie=Ie+Me.width}),Re.forEach(function(Me,Ve){if(Me.circularLinkType=="bottom"){var et=Ve+1,ot=0;for(et;et1&&Te.sort(function(Ie,Me){if(!Ie.circular&&!Me.circular){if(Ie.source.column==Me.source.column)return Ie.y0-Me.y0;if(te(Ie,Me)){if(Me.source.column0?"up":"down"}function ge(xe,_e){return y(xe.source,_e)==y(xe.target,_e)}function be(xe,_e,De){var Fe=xe.nodes,Te=xe.links,Re=!1,Se=!1;if(Te.forEach(function(Qe){Qe.circularLinkType=="top"?Re=!0:Qe.circularLinkType=="bottom"&&(Se=!0)}),Re==!1||Se==!1){var Ie=(0,m.SY)(Fe,function(Qe){return Qe.y0}),Me=(0,m.kv)(Fe,function(Qe){return Qe.y1}),Ve=Me-Ie,et=De-_e,ot=et/Ve;Fe.forEach(function(Qe){var $e=(Qe.y1-Qe.y0)*ot;Qe.y0=(Qe.y0-Ie)*ot,Qe.y1=Qe.y0+$e}),Te.forEach(function(Qe){Qe.y0=(Qe.y0-Ie)*ot,Qe.y1=(Qe.y1-Ie)*ot,Qe.width=Qe.width*ot})}}},26800:function(G,H,e){e.r(H),e.d(H,{sankey:function(){return d},sankeyCenter:function(){return p},sankeyJustify:function(){return v},sankeyLeft:function(){return L},sankeyLinkHorizontal:function(){return y},sankeyRight:function(){return S}});var m=e(84706),P=e(34712);function s(E){return E.target.depth}function L(E){return E.depth}function S(E,A){return A-1-E.height}function v(E,A){return E.sourceLinks.length?E.depth:A-1}function p(E){return E.targetLinks.length?E.depth:E.sourceLinks.length?(0,m.SY)(E.sourceLinks,s)-1:0}function r(E){return function(){return E}}function t(E,A){return n(E.source,A.source)||E.index-A.index}function a(E,A){return n(E.target,A.target)||E.index-A.index}function n(E,A){return E.y0-A.y0}function f(E){return E.value}function u(E){return(E.y0+E.y1)/2}function l(E){return u(E.source)*E.value}function g(E){return u(E.target)*E.value}function h(E){return E.index}function T(E){return E.nodes}function c(E){return E.links}function i(E,A){var o=E.get(A);if(!o)throw new Error("missing: "+A);return o}function d(){var E=0,A=0,o=1,M=1,b=24,I=8,D=h,N=v,k=T,O=c,F=32,z=2/3;function B(){var $={nodes:k.apply(null,arguments),links:O.apply(null,arguments)};return W($),J($),re($),ne($),le($),$}B.update=function($){return le($),$},B.nodeId=function($){return arguments.length?(D=typeof $=="function"?$:r($),B):D},B.nodeAlign=function($){return arguments.length?(N=typeof $=="function"?$:r($),B):N},B.nodeWidth=function($){return arguments.length?(b=+$,B):b},B.nodePadding=function($){return arguments.length?(I=+$,B):I},B.nodes=function($){return arguments.length?(k=typeof $=="function"?$:r($),B):k},B.links=function($){return arguments.length?(O=typeof $=="function"?$:r($),B):O},B.size=function($){return arguments.length?(E=A=0,o=+$[0],M=+$[1],B):[o-E,M-A]},B.extent=function($){return arguments.length?(E=+$[0][0],o=+$[1][0],A=+$[0][1],M=+$[1][1],B):[[E,A],[o,M]]},B.iterations=function($){return arguments.length?(F=+$,B):F};function W($){$.nodes.forEach(function(ie,X){ie.index=X,ie.sourceLinks=[],ie.targetLinks=[]});var Z=(0,P.kH)($.nodes,D);$.links.forEach(function(ie,X){ie.index=X;var Q=ie.source,oe=ie.target;typeof Q!="object"&&(Q=ie.source=i(Z,Q)),typeof oe!="object"&&(oe=ie.target=i(Z,oe)),Q.sourceLinks.push(ie),oe.targetLinks.push(ie)})}function J($){$.nodes.forEach(function(Z){Z.value=Math.max((0,m.oh)(Z.sourceLinks,f),(0,m.oh)(Z.targetLinks,f))})}function re($){var Z,ie,X;for(Z=$.nodes,ie=[],X=0;Z.length;++X,Z=ie,ie=[])Z.forEach(function(oe){oe.depth=X,oe.sourceLinks.forEach(function(Y){ie.indexOf(Y.target)<0&&ie.push(Y.target)})});for(Z=$.nodes,ie=[],X=0;Z.length;++X,Z=ie,ie=[])Z.forEach(function(oe){oe.height=X,oe.targetLinks.forEach(function(Y){ie.indexOf(Y.source)<0&&ie.push(Y.source)})});var Q=(o-E-b)/(X-1);$.nodes.forEach(function(oe){oe.x1=(oe.x0=E+Math.max(0,Math.min(X-1,Math.floor(N.call(null,oe,X))))*Q)+b})}function ne($){var Z=(0,P.UJ)().key(function(se){return se.x0}).sortKeys(m.XE).entries($.nodes).map(function(se){return se.values});Q(),j();for(var ie=1,X=F;X>0;--X)Y(ie*=.99),j(),oe(ie),j();function Q(){var se=(0,m.kv)(Z,function(ge){return ge.length}),te=z*(M-A)/(se-1);I>te&&(I=te);var fe=(0,m.SY)(Z,function(ge){return(M-A-(ge.length-1)*I)/(0,m.oh)(ge,f)});Z.forEach(function(ge){ge.forEach(function(be,xe){be.y1=(be.y0=xe)+be.value*fe})}),$.links.forEach(function(ge){ge.width=ge.value*fe})}function oe(se){Z.forEach(function(te){te.forEach(function(fe){if(fe.targetLinks.length){var ge=((0,m.oh)(fe.targetLinks,l)/(0,m.oh)(fe.targetLinks,f)-u(fe))*se;fe.y0+=ge,fe.y1+=ge}})})}function Y(se){Z.slice().reverse().forEach(function(te){te.forEach(function(fe){if(fe.sourceLinks.length){var ge=((0,m.oh)(fe.sourceLinks,g)/(0,m.oh)(fe.sourceLinks,f)-u(fe))*se;fe.y0+=ge,fe.y1+=ge}})})}function j(){Z.forEach(function(se){var te,fe,ge=A,be=se.length,xe;for(se.sort(n),xe=0;xe0&&(te.y0+=fe,te.y1+=fe),ge=te.y1+I;if(fe=ge-I-M,fe>0)for(ge=te.y0-=fe,te.y1-=fe,xe=be-2;xe>=0;--xe)te=se[xe],fe=te.y1+I-ge,fe>0&&(te.y0-=fe,te.y1-=fe),ge=te.y0})}}function le($){$.nodes.forEach(function(Z){Z.sourceLinks.sort(a),Z.targetLinks.sort(t)}),$.nodes.forEach(function(Z){var ie=Z.y0,X=ie;Z.sourceLinks.forEach(function(Q){Q.y0=ie+Q.width/2,ie+=Q.width}),Z.targetLinks.forEach(function(Q){Q.y1=X+Q.width/2,X+=Q.width})})}return B}var x=e(10132);function w(E){return[E.source.x1,E.y0]}function C(E){return[E.target.x0,E.y1]}function y(){return(0,x.ak)().source(w).target(C)}},33428:function(G,H,e){var m,P;(function(){var s={version:"3.8.2"},L=[].slice,S=function(ue){return L.call(ue)},v=self.document;function p(ue){return ue&&(ue.ownerDocument||ue.document||ue).documentElement}function r(ue){return ue&&(ue.ownerDocument&&ue.ownerDocument.defaultView||ue.document&&ue||ue.defaultView)}if(v)try{S(v.documentElement.childNodes)[0].nodeType}catch{S=function(Ae){for(var Be=Ae.length,qe=new Array(Be);Be--;)qe[Be]=Ae[Be];return qe}}if(Date.now||(Date.now=function(){return+new Date}),v)try{v.createElement("DIV").style.setProperty("opacity",0,"")}catch{var t=this.Element.prototype,a=t.setAttribute,n=t.setAttributeNS,f=this.CSSStyleDeclaration.prototype,u=f.setProperty;t.setAttribute=function(Ae,Be){a.call(this,Ae,Be+"")},t.setAttributeNS=function(Ae,Be,qe){n.call(this,Ae,Be,qe+"")},f.setProperty=function(Ae,Be,qe){u.call(this,Ae,Be+"",qe)}}s.ascending=l;function l(ue,Ae){return ueAe?1:ue>=Ae?0:NaN}s.descending=function(ue,Ae){return Aeue?1:Ae>=ue?0:NaN},s.min=function(ue,Ae){var Be=-1,qe=ue.length,nt,ct;if(arguments.length===1){for(;++Be=ct){nt=ct;break}for(;++Bect&&(nt=ct)}else{for(;++Be=ct){nt=ct;break}for(;++Bect&&(nt=ct)}return nt},s.max=function(ue,Ae){var Be=-1,qe=ue.length,nt,ct;if(arguments.length===1){for(;++Be=ct){nt=ct;break}for(;++Bent&&(nt=ct)}else{for(;++Be=ct){nt=ct;break}for(;++Bent&&(nt=ct)}return nt},s.extent=function(ue,Ae){var Be=-1,qe=ue.length,nt,ct,Pt;if(arguments.length===1){for(;++Be=ct){nt=Pt=ct;break}for(;++Bect&&(nt=ct),Pt=ct){nt=Pt=ct;break}for(;++Bect&&(nt=ct),Pt1)return Pt/(Gt-1)},s.deviation=function(){var ue=s.variance.apply(this,arguments);return ue&&Math.sqrt(ue)};function T(ue){return{left:function(Ae,Be,qe,nt){for(arguments.length<3&&(qe=0),arguments.length<4&&(nt=Ae.length);qe>>1;ue(Ae[ct],Be)<0?qe=ct+1:nt=ct}return qe},right:function(Ae,Be,qe,nt){for(arguments.length<3&&(qe=0),arguments.length<4&&(nt=Ae.length);qe>>1;ue(Ae[ct],Be)>0?nt=ct:qe=ct+1}return qe}}}var c=T(l);s.bisectLeft=c.left,s.bisect=s.bisectRight=c.right,s.bisector=function(ue){return T(ue.length===1?function(Ae,Be){return l(ue(Ae),Be)}:ue)},s.shuffle=function(ue,Ae,Be){(qe=arguments.length)<3&&(Be=ue.length,qe<2&&(Ae=0));for(var qe=Be-Ae,nt,ct;qe;)ct=Math.random()*qe--|0,nt=ue[qe+Ae],ue[qe+Ae]=ue[ct+Ae],ue[ct+Ae]=nt;return ue},s.permute=function(ue,Ae){for(var Be=Ae.length,qe=new Array(Be);Be--;)qe[Be]=ue[Ae[Be]];return qe},s.pairs=function(ue){for(var Ae=0,Be=ue.length-1,qe=ue[0],nt=new Array(Be<0?0:Be);Ae=0;)for(Pt=ue[Ae],Be=Pt.length;--Be>=0;)ct[--nt]=Pt[Be];return ct};var d=Math.abs;s.range=function(ue,Ae,Be){if(arguments.length<3&&(Be=1,arguments.length<2&&(Ae=ue,ue=0)),(Ae-ue)/Be===1/0)throw new Error("infinite range");var qe=[],nt=x(d(Be)),ct=-1,Pt;if(ue*=nt,Ae*=nt,Be*=nt,Be<0)for(;(Pt=ue+Be*++ct)>Ae;)qe.push(Pt/nt);else for(;(Pt=ue+Be*++ct)=Ae.length)return nt?nt.call(ue,Gt):qe?Gt.sort(qe):Gt;for(var rr=-1,Cr=Gt.length,Lr=Ae[Yt++],$r,sn,Rr,Vr=new C,Kr;++rr=Ae.length)return St;var Yt=[],rr=Be[Gt++];return St.forEach(function(Cr,Lr){Yt.push({key:Cr,values:Pt(Lr,Gt)})}),rr?Yt.sort(function(Cr,Lr){return rr(Cr.key,Lr.key)}):Yt}return ue.map=function(St,Gt){return ct(Gt,St,0)},ue.entries=function(St){return Pt(ct(s.map,St,0),0)},ue.key=function(St){return Ae.push(St),ue},ue.sortKeys=function(St){return Be[Ae.length-1]=St,ue},ue.sortValues=function(St){return qe=St,ue},ue.rollup=function(St){return nt=St,ue},ue},s.set=function(ue){var Ae=new k;if(ue)for(var Be=0,qe=ue.length;Be=0&&(qe=ue.slice(Be+1),ue=ue.slice(0,Be)),ue)return arguments.length<2?this[ue].on(qe):this[ue].on(qe,Ae);if(arguments.length===2){if(Ae==null)for(ue in this)this.hasOwnProperty(ue)&&this[ue].on(qe,null);return this}};function re(ue){var Ae=[],Be=new C;function qe(){for(var nt=Ae,ct=-1,Pt=nt.length,St;++ct=0&&(Be=ue.slice(0,Ae))!=="xmlns"&&(ue=ue.slice(Ae+1)),ge.hasOwnProperty(Be)?{space:ge[Be],local:ue}:ue}},j.attr=function(ue,Ae){if(arguments.length<2){if(typeof ue=="string"){var Be=this.node();return ue=s.ns.qualify(ue),ue.local?Be.getAttributeNS(ue.space,ue.local):Be.getAttribute(ue)}for(Ae in ue)this.each(be(Ae,ue[Ae]));return this}return this.each(be(ue,Ae))};function be(ue,Ae){ue=s.ns.qualify(ue);function Be(){this.removeAttribute(ue)}function qe(){this.removeAttributeNS(ue.space,ue.local)}function nt(){this.setAttribute(ue,Ae)}function ct(){this.setAttributeNS(ue.space,ue.local,Ae)}function Pt(){var Gt=Ae.apply(this,arguments);Gt==null?this.removeAttribute(ue):this.setAttribute(ue,Gt)}function St(){var Gt=Ae.apply(this,arguments);Gt==null?this.removeAttributeNS(ue.space,ue.local):this.setAttributeNS(ue.space,ue.local,Gt)}return Ae==null?ue.local?qe:Be:typeof Ae=="function"?ue.local?St:Pt:ue.local?ct:nt}function xe(ue){return ue.trim().replace(/\s+/g," ")}j.classed=function(ue,Ae){if(arguments.length<2){if(typeof ue=="string"){var Be=this.node(),qe=(ue=De(ue)).length,nt=-1;if(Ae=Be.classList){for(;++nt=0;)(ct=Be[qe])&&(nt&&nt!==ct.nextSibling&&nt.parentNode.insertBefore(ct,nt),nt=ct);return this},j.sort=function(ue){ue=ot.apply(this,arguments);for(var Ae=-1,Be=this.length;++Ae=Ae&&(Ae=nt+1);!(Gt=Pt[Ae])&&++Ae0&&(ue=ue.slice(0,nt));var Pt=wt.get(ue);Pt&&(ue=Pt,ct=rt);function St(){var rr=this[qe];rr&&(this.removeEventListener(ue,rr,rr.$),delete this[qe])}function Gt(){var rr=ct(Ae,S(arguments));St.call(this),this.addEventListener(ue,this[qe]=rr,rr.$=Be),rr._=Ae}function Yt(){var rr=new RegExp("^__on([^.]+)"+s.requote(ue)+"$"),Cr;for(var Lr in this)if(Cr=Lr.match(rr)){var $r=this[Lr];this.removeEventListener(Cr[1],$r,$r.$),delete this[Lr]}}return nt?Ae?Gt:St:Ae?W:Yt}var wt=s.map({mouseenter:"mouseover",mouseleave:"mouseout"});v&&wt.forEach(function(ue){"on"+ue in v&&wt.remove(ue)});function Ct(ue,Ae){return function(Be){var qe=s.event;s.event=Be,Ae[0]=this.__data__;try{ue.apply(this,Ae)}finally{s.event=qe}}}function rt(ue,Ae){var Be=Ct(ue,Ae);return function(qe){var nt=this,ct=qe.relatedTarget;(!ct||ct!==nt&&!(ct.compareDocumentPosition(nt)&8))&&Be.call(nt,qe)}}var ze,He=0;function We(ue){var Ae=".dragsuppress-"+ ++He,Be="click"+Ae,qe=s.select(r(ue)).on("touchmove"+Ae,ne).on("dragstart"+Ae,ne).on("selectstart"+Ae,ne);if(ze==null&&(ze="onselectstart"in ue?!1:z(ue.style,"userSelect")),ze){var nt=p(ue).style,ct=nt[ze];nt[ze]="none"}return function(Pt){if(qe.on(Ae,null),ze&&(nt[ze]=ct),Pt){var St=function(){qe.on(Be,null)};qe.on(Be,function(){ne(),St()},!0),setTimeout(St,0)}}}s.mouse=function(ue){return Le(ue,le())};var Ge=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Le(ue,Ae){Ae.changedTouches&&(Ae=Ae.changedTouches[0]);var Be=ue.ownerSVGElement||ue;if(Be.createSVGPoint){var qe=Be.createSVGPoint();if(Ge<0){var nt=r(ue);if(nt.scrollX||nt.scrollY){Be=s.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var ct=Be[0][0].getScreenCTM();Ge=!(ct.f||ct.e),Be.remove()}}return Ge?(qe.x=Ae.pageX,qe.y=Ae.pageY):(qe.x=Ae.clientX,qe.y=Ae.clientY),qe=qe.matrixTransform(ue.getScreenCTM().inverse()),[qe.x,qe.y]}var Pt=ue.getBoundingClientRect();return[Ae.clientX-Pt.left-ue.clientLeft,Ae.clientY-Pt.top-ue.clientTop]}s.touch=function(ue,Ae,Be){if(arguments.length<3&&(Be=Ae,Ae=le().changedTouches),Ae){for(var qe=0,nt=Ae.length,ct;qe1?Ze:ue<-1?-Ze:Math.asin(ue)}function Tt(ue){return((ue=Math.exp(ue))-1/ue)/2}function Rt(ue){return((ue=Math.exp(ue))+1/ue)/2}function Xt(ue){return((ue=Math.exp(2*ue))-1)/(ue+1)}var gr=Math.SQRT2,gt=2,Kt=4;s.interpolateZoom=function(ue,Ae){var Be=ue[0],qe=ue[1],nt=ue[2],ct=Ae[0],Pt=Ae[1],St=Ae[2],Gt=ct-Be,Yt=Pt-qe,rr=Gt*Gt+Yt*Yt,Cr,Lr;if(rr0&&(qn=qn.transition().duration(Pt)),qn.call(pn.event)}function oa(){Vr&&Vr.domain(Rr.range().map(function(qn){return(qn-ue.x)/ue.k}).map(Rr.invert)),hn&&hn.domain(Kr.range().map(function(qn){return(qn-ue.y)/ue.k}).map(Kr.invert))}function ca(qn){St++||qn({type:"zoomstart"})}function Ua(qn){oa(),qn({type:"zoom",scale:ue.k,translate:[ue.x,ue.y]})}function Ea(qn){--St||(qn({type:"zoomend"}),Be=null)}function Oa(){var qn=this,Ha=sn.of(qn,arguments),Sa=0,Ja=s.select(r(qn)).on(Yt,$i).on(rr,qi),wi=rn(s.mouse(qn)),oi=We(qn);Ft.call(qn),ca(Ha);function $i(){Sa=1,fa(s.mouse(qn),wi),Ua(Ha)}function qi(){Ja.on(Yt,null).on(rr,null),oi(Sa),Ea(Ha)}}function ii(){var qn=this,Ha=sn.of(qn,arguments),Sa={},Ja=0,wi,oi=".zoom-"+s.event.changedTouches[0].identifier,$i="touchmove"+oi,qi="touchend"+oi,ao=[],Ti=s.select(qn),go=We(qn);La(),ca(Ha),Ti.on(Gt,null).on(Lr,La);function la(){var io=s.touches(qn);return wi=ue.k,io.forEach(function(hi){hi.identifier in Sa&&(Sa[hi.identifier]=rn(hi))}),io}function La(){var io=s.event.target;s.select(io).on($i,Ro).on(qi,Fo),ao.push(io);for(var hi=s.event.changedTouches,Wi=0,Ni=hi.length;Wi1){var Li=ps[0],Gl=ps[1],Qa=Li[0]-Gl[0],Pi=Li[1]-Gl[1];Ja=Qa*Qa+Pi*Pi}}function Ro(){var io=s.touches(qn),hi,Wi,Ni,ps;Ft.call(qn);for(var Ds=0,Li=io.length;Ds1?1:Ae,Be=Be<0?0:Be>1?1:Be,nt=Be<=.5?Be*(1+Ae):Be+Ae-Be*Ae,qe=2*Be-nt;function ct(St){return St>360?St-=360:St<0&&(St+=360),St<60?qe+(nt-qe)*St/60:St<180?nt:St<240?qe+(nt-qe)*(240-St)/60:qe}function Pt(St){return Math.round(ct(St)*255)}return new cr(Pt(ue+120),Pt(ue),Pt(ue-120))}s.hcl=Et;function Et(ue,Ae,Be){return this instanceof Et?(this.h=+ue,this.c=+Ae,void(this.l=+Be)):arguments.length<2?ue instanceof Et?new Et(ue.h,ue.c,ue.l):ue instanceof Ut?zt(ue.l,ue.a,ue.b):zt((ue=Hr((ue=s.rgb(ue)).r,ue.g,ue.b)).l,ue.a,ue.b):new Et(ue,Ae,Be)}var Vt=Et.prototype=new ut;Vt.brighter=function(ue){return new Et(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?ue:1)))},Vt.darker=function(ue){return new Et(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?ue:1)))},Vt.rgb=function(){return Bt(this.h,this.c,this.l).rgb()};function Bt(ue,Ae,Be){return isNaN(ue)&&(ue=0),isNaN(Ae)&&(Ae=0),new Ut(Be,Math.cos(ue*=st)*Ae,Math.sin(ue)*Ae)}s.lab=Ut;function Ut(ue,Ae,Be){return this instanceof Ut?(this.l=+ue,this.a=+Ae,void(this.b=+Be)):arguments.length<2?ue instanceof Ut?new Ut(ue.l,ue.a,ue.b):ue instanceof Et?Bt(ue.h,ue.c,ue.l):Hr((ue=cr(ue)).r,ue.g,ue.b):new Ut(ue,Ae,Be)}var Jt=18,ur=.95047,fr=1,dr=1.08883,Ye=Ut.prototype=new ut;Ye.brighter=function(ue){return new Ut(Math.min(100,this.l+Jt*(arguments.length?ue:1)),this.a,this.b)},Ye.darker=function(ue){return new Ut(Math.max(0,this.l-Jt*(arguments.length?ue:1)),this.a,this.b)},Ye.rgb=function(){return Ue(this.l,this.a,this.b)};function Ue(ue,Ae,Be){var qe=(ue+16)/116,nt=qe+Ae/500,ct=qe-Be/200;return nt=Dt(nt)*ur,qe=Dt(qe)*fr,ct=Dt(ct)*dr,new cr(sr(3.2404542*nt-1.5371385*qe-.4985314*ct),sr(-.969266*nt+1.8760108*qe+.041556*ct),sr(.0556434*nt-.2040259*qe+1.0572252*ct))}function zt(ue,Ae,Be){return ue>0?new Et(Math.atan2(Be,Ae)*lt,Math.sqrt(Ae*Ae+Be*Be),ue):new Et(NaN,NaN,ue)}function Dt(ue){return ue>.206893034?ue*ue*ue:(ue-.13793103448275862)/7.787037}function $t(ue){return ue>.008856?Math.pow(ue,.3333333333333333):7.787037*ue+.13793103448275862}function sr(ue){return Math.round(255*(ue<=.00304?12.92*ue:1.055*Math.pow(ue,.4166666666666667)-.055))}s.rgb=cr;function cr(ue,Ae,Be){return this instanceof cr?(this.r=~~ue,this.g=~~Ae,void(this.b=~~Be)):arguments.length<2?ue instanceof cr?new cr(ue.r,ue.g,ue.b):xr(""+ue,cr,At):new cr(ue,Ae,Be)}function tr(ue){return new cr(ue>>16,ue>>8&255,ue&255)}function Nt(ue){return tr(ue)+""}var ir=cr.prototype=new ut;ir.brighter=function(ue){ue=Math.pow(.7,arguments.length?ue:1);var Ae=this.r,Be=this.g,qe=this.b,nt=30;return!Ae&&!Be&&!qe?new cr(nt,nt,nt):(Ae&&Ae>4,qe=qe>>4|qe,nt=Gt&240,nt=nt>>4|nt,ct=Gt&15,ct=ct<<4|ct):ue.length===7&&(qe=(Gt&16711680)>>16,nt=(Gt&65280)>>8,ct=Gt&255)),Ae(qe,nt,ct))}function vr(ue,Ae,Be){var qe=Math.min(ue/=255,Ae/=255,Be/=255),nt=Math.max(ue,Ae,Be),ct=nt-qe,Pt,St,Gt=(nt+qe)/2;return ct?(St=Gt<.5?ct/(nt+qe):ct/(2-nt-qe),ue==nt?Pt=(Ae-Be)/ct+(Ae0&&Gt<1?0:Pt),new at(Pt,St,Gt)}function Hr(ue,Ae,Be){ue=_r(ue),Ae=_r(Ae),Be=_r(Be);var qe=$t((.4124564*ue+.3575761*Ae+.1804375*Be)/ur),nt=$t((.2126729*ue+.7151522*Ae+.072175*Be)/fr),ct=$t((.0193339*ue+.119192*Ae+.9503041*Be)/dr);return Ut(116*nt-16,500*(qe-nt),200*(nt-ct))}function _r(ue){return(ue/=255)<=.04045?ue/12.92:Math.pow((ue+.055)/1.055,2.4)}function Dr(ue){var Ae=parseFloat(ue);return ue.charAt(ue.length-1)==="%"?Math.round(Ae*2.55):Ae}var an=s.map({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});an.forEach(function(ue,Ae){an.set(ue,tr(Ae))});function tn(ue){return typeof ue=="function"?ue:function(){return ue}}s.functor=tn,s.xhr=Sn(O);function Sn(ue){return function(Ae,Be,qe){return arguments.length===2&&typeof Be=="function"&&(qe=Be,Be=null),Tn(Ae,Be,ue,qe)}}function Tn(ue,Ae,Be,qe){var nt={},ct=s.dispatch("beforesend","progress","load","error"),Pt={},St=new XMLHttpRequest,Gt=null;self.XDomainRequest&&!("withCredentials"in St)&&/^(http(s)?:)?\/\//.test(ue)&&(St=new XDomainRequest),"onload"in St?St.onload=St.onerror=Yt:St.onreadystatechange=function(){St.readyState>3&&Yt()};function Yt(){var rr=St.status,Cr;if(!rr&&zr(St)||rr>=200&&rr<300||rr===304){try{Cr=Be.call(nt,St)}catch(Lr){ct.error.call(nt,Lr);return}ct.load.call(nt,Cr)}else ct.error.call(nt,St)}return St.onprogress=function(rr){var Cr=s.event;s.event=rr;try{ct.progress.call(nt,St)}finally{s.event=Cr}},nt.header=function(rr,Cr){return rr=(rr+"").toLowerCase(),arguments.length<2?Pt[rr]:(Cr==null?delete Pt[rr]:Pt[rr]=Cr+"",nt)},nt.mimeType=function(rr){return arguments.length?(Ae=rr==null?null:rr+"",nt):Ae},nt.responseType=function(rr){return arguments.length?(Gt=rr,nt):Gt},nt.response=function(rr){return Be=rr,nt},["get","post"].forEach(function(rr){nt[rr]=function(){return nt.send.apply(nt,[rr].concat(S(arguments)))}}),nt.send=function(rr,Cr,Lr){if(arguments.length===2&&typeof Cr=="function"&&(Lr=Cr,Cr=null),St.open(rr,ue,!0),Ae!=null&&!("accept"in Pt)&&(Pt.accept=Ae+",*/*"),St.setRequestHeader)for(var $r in Pt)St.setRequestHeader($r,Pt[$r]);return Ae!=null&&St.overrideMimeType&&St.overrideMimeType(Ae),Gt!=null&&(St.responseType=Gt),Lr!=null&&nt.on("error",Lr).on("load",function(sn){Lr(null,sn)}),ct.beforesend.call(nt,St),St.send(Cr??null),nt},nt.abort=function(){return St.abort(),nt},s.rebind(nt,ct,"on"),qe==null?nt:nt.get(Tr(qe))}function Tr(ue){return ue.length===1?function(Ae,Be){ue(Ae==null?Be:null)}:ue}function zr(ue){var Ae=ue.responseType;return Ae&&Ae!=="text"?ue.response:ue.responseText}s.dsv=function(ue,Ae){var Be=new RegExp('["'+ue+` +]`),qe=ue.charCodeAt(0);function nt(Yt,rr,Cr){arguments.length<3&&(Cr=rr,rr=null);var Lr=Tn(Yt,Ae,rr==null?ct:Pt(rr),Cr);return Lr.row=function($r){return arguments.length?Lr.response((rr=$r)==null?ct:Pt($r)):rr},Lr}function ct(Yt){return nt.parse(Yt.responseText)}function Pt(Yt){return function(rr){return nt.parse(rr.responseText,Yt)}}nt.parse=function(Yt,rr){var Cr;return nt.parseRows(Yt,function(Lr,$r){if(Cr)return Cr(Lr,$r-1);var sn=function(Rr){for(var Vr={},Kr=Lr.length,hn=0;hn=sn)return Lr;if(hn)return hn=!1,Cr;var Hn=Rr;if(Yt.charCodeAt(Hn)===34){for(var ra=Hn;ra++24?(isFinite(Ae)&&(clearTimeout(fn),fn=setTimeout(Vn,Ae)),ln=0):(ln=1,Mn(Vn))}s.timer.flush=function(){ia(),ya()};function ia(){for(var ue=Date.now(),Ae=Yr;Ae;)ue>=Ae.t&&Ae.c(ue-Ae.t)&&(Ae.c=null),Ae=Ae.n;return ue}function ya(){for(var ue,Ae=Yr,Be=1/0;Ae;)Ae.c?(Ae.t=0;--St)_r.push(nt[Yt[Cr[St]][2]]);for(St=+$r;St1&&Wt(ue[Be[qe-2]],ue[Be[qe-1]],ue[nt])<=0;)--qe;Be[qe++]=nt}return Be.slice(0,qe)}function mr(ue,Ae){return ue[0]-Ae[0]||ue[1]-Ae[1]}s.geom.polygon=function(ue){return ie(ue,en),ue};var en=s.geom.polygon.prototype=[];en.area=function(){for(var ue=-1,Ae=this.length,Be,qe=this[Ae-1],nt=0;++ueje)St=St.L;else if(Pt=Ae-un(St,Be),Pt>je){if(!St.R){qe=St;break}St=St.R}else{ct>-je?(qe=St.P,nt=St):Pt>-je?(qe=St,nt=St.N):qe=nt=St;break}var Gt=Ar(ue);if(Fn.insert(qe,Gt),!(!qe&&!nt)){if(qe===nt){zn(qe),nt=Ar(qe.site),Fn.insert(Gt,nt),Gt.edge=nt.edge=sa(qe.site,Gt.site),wn(qe),wn(nt);return}if(!nt){Gt.edge=sa(qe.site,Gt.site);return}zn(qe),zn(nt);var Yt=qe.site,rr=Yt.x,Cr=Yt.y,Lr=ue.x-rr,$r=ue.y-Cr,sn=nt.site,_r=sn.x-rr,Vr=sn.y-Cr,Kr=2*(Lr*Vr-$r*_r),hn=Lr*Lr+$r*$r,pn=_r*_r+Vr*Vr,rn={x:(Vr*hn-$r*pn)/Kr+rr,y:(Lr*pn-_r*hn)/Kr+Cr};_a(nt.edge,Yt,sn,rn),Gt.edge=sa(Yt,ue,null,rn),nt.edge=sa(ue,sn,null,rn),wn(qe),wn(nt)}}function gn(ue,Ae){var Be=ue.site,qe=Be.x,nt=Be.y,ct=nt-Ae;if(!ct)return qe;var Pt=ue.P;if(!Pt)return-1/0;Be=Pt.site;var St=Be.x,Gt=Be.y,Yt=Gt-Ae;if(!Yt)return St;var rr=St-qe,Cr=1/ct-1/Yt,Lr=rr/Yt;return Cr?(-Lr+Math.sqrt(Lr*Lr-2*Cr*(rr*rr/(-2*Yt)-Gt+Yt/2+nt-ct/2)))/Cr+qe:(qe+St)/2}function un(ue,Ae){var Be=ue.N;if(Be)return gn(Be,Ae);var qe=ue.site;return qe.y===Ae?qe.x:1/0}function Er(ue){this.site=ue,this.edges=[]}Er.prototype.prepare=function(){for(var ue=this.edges,Ae=ue.length,Be;Ae--;)Be=ue[Ae].edge,(!Be.b||!Be.a)&&ue.splice(Ae,1);return ue.sort(Gr),ue.length};function Zr(ue){for(var Ae=ue[0][0],Be=ue[1][0],qe=ue[0][1],nt=ue[1][1],ct,Pt,St,Gt,Yt=An,rr=Yt.length,Cr,Lr,$r,sn,_r,Vr;rr--;)if(Cr=Yt[rr],!(!Cr||!Cr.prepare()))for($r=Cr.edges,sn=$r.length,Lr=0;Lrje||d(Gt-Pt)>je)&&($r.splice(Lr,0,new gi(ga(Cr.site,Vr,d(St-Ae)je?{x:Ae,y:d(ct-Ae)je?{x:d(Pt-nt)je?{x:Be,y:d(ct-Be)je?{x:d(Pt-qe)=-Ce)){var Lr=Gt*Gt+Yt*Yt,$r=rr*rr+Vr*Vr,sn=(Vr*Lr-Yt*$r)/Cr,_r=(Gt*$r-rr*Lr)/Cr,Vr=_r+St,Kr=Mr.pop()||new qr;Kr.arc=ue,Kr.site=nt,Kr.x=sn+Pt,Kr.y=Vr+Math.sqrt(sn*sn+_r*_r),Kr.cy=Vr,ue.circle=Kr;for(var hn=null,pn=Ia._;pn;)if(Kr.y0)){if(_r/=$r,$r<0){if(_r0){if(_r>Lr)return;_r>Cr&&(Cr=_r)}if(_r=Be-St,!(!$r&&_r<0)){if(_r/=$r,$r<0){if(_r>Lr)return;_r>Cr&&(Cr=_r)}else if($r>0){if(_r0)){if(_r/=sn,sn<0){if(_r0){if(_r>Lr)return;_r>Cr&&(Cr=_r)}if(_r=qe-Gt,!(!sn&&_r<0)){if(_r/=sn,sn<0){if(_r>Lr)return;_r>Cr&&(Cr=_r)}else if(sn>0){if(_r0&&(nt.a={x:St+Cr*$r,y:Gt+Cr*sn}),Lr<1&&(nt.b={x:St+Lr*$r,y:Gt+Lr*sn}),nt}}}}}}function Un(ue){for(var Ae=bn,Be=En(ue[0][0],ue[0][1],ue[1][0],ue[1][1]),qe=Ae.length,nt;qe--;)nt=Ae[qe],(!Nn(nt,ue)||!Be(nt)||d(nt.a.x-nt.b.x)=ct)return;if(rr>Lr){if(!qe)qe={x:sn,y:Pt};else if(qe.y>=St)return;Be={x:sn,y:St}}else{if(!qe)qe={x:sn,y:St};else if(qe.y1)if(rr>Lr){if(!qe)qe={x:(Pt-Kr)/Vr,y:Pt};else if(qe.y>=St)return;Be={x:(St-Kr)/Vr,y:St}}else{if(!qe)qe={x:(St-Kr)/Vr,y:St};else if(qe.y=ct)return;Be={x:ct,y:Vr*ct+Kr}}else{if(!qe)qe={x:ct,y:Vr*ct+Kr};else if(qe.x=rr&&Kr.x<=Lr&&Kr.y>=Cr&&Kr.y<=$r?[[rr,$r],[Lr,$r],[Lr,Cr],[rr,Cr]]:[];hn.point=Gt[_r]}),Yt}function St(Gt){return Gt.map(function(Yt,rr){return{x:Math.round(qe(Yt,rr)/je)*je,y:Math.round(nt(Yt,rr)/je)*je,i:rr}})}return Pt.links=function(Gt){return af(St(Gt)).edges.filter(function(Yt){return Yt.l&&Yt.r}).map(function(Yt){return{source:Gt[Yt.l.i],target:Gt[Yt.r.i]}})},Pt.triangles=function(Gt){var Yt=[];return af(St(Gt)).cells.forEach(function(rr,Cr){for(var Lr=rr.site,$r=rr.edges.sort(Gr),sn=-1,_r=$r.length,Vr,Kr=$r[_r-1].edge,hn=Kr.l===Lr?Kr.r:Kr.l;++sn<_r;)Vr=hn,Kr=$r[sn].edge,hn=Kr.l===Lr?Kr.r:Kr.l,Crpn&&(pn=rr.x),rr.y>rn&&(rn=rr.y),$r.push(rr.x),sn.push(rr.y);else for(_r=0;_rpn&&(pn=Hn),ra>rn&&(rn=ra),$r.push(Hn),sn.push(ra)}var fa=pn-Kr,ea=rn-hn;fa>ea?rn=hn+fa:pn=Kr+ea;function oa(Ea,Oa,ii,Fi,ci,qn,Ha,Sa){if(!(isNaN(ii)||isNaN(Fi)))if(Ea.leaf){var Ja=Ea.x,wi=Ea.y;if(Ja!=null)if(d(Ja-ii)+d(wi-Fi)<.01)ca(Ea,Oa,ii,Fi,ci,qn,Ha,Sa);else{var oi=Ea.point;Ea.x=Ea.y=Ea.point=null,ca(Ea,oi,Ja,wi,ci,qn,Ha,Sa),ca(Ea,Oa,ii,Fi,ci,qn,Ha,Sa)}else Ea.x=ii,Ea.y=Fi,Ea.point=Oa}else ca(Ea,Oa,ii,Fi,ci,qn,Ha,Sa)}function ca(Ea,Oa,ii,Fi,ci,qn,Ha,Sa){var Ja=(ci+Ha)*.5,wi=(qn+Sa)*.5,oi=ii>=Ja,$i=Fi>=wi,qi=$i<<1|oi;Ea.leaf=!1,Ea=Ea.nodes[qi]||(Ea.nodes[qi]=bo()),oi?ci=Ja:Ha=Ja,$i?qn=wi:Sa=wi,oa(Ea,Oa,ii,Fi,ci,qn,Ha,Sa)}var Ua=bo();if(Ua.add=function(Ea){oa(Ua,Ea,+Cr(Ea,++_r),+Lr(Ea,_r),Kr,hn,pn,rn)},Ua.visit=function(Ea){Ml(Ea,Ua,Kr,hn,pn,rn)},Ua.find=function(Ea){return Iu(Ua,Ea[0],Ea[1],Kr,hn,pn,rn)},_r=-1,Ae==null){for(;++_rct||Lr>Pt||$r=Hn,ea=Be>=ra,oa=ea<<1|fa,ca=oa+4;oaBe&&(ct=Ae.slice(Be,ct),St[Pt]?St[Pt]+=ct:St[++Pt]=ct),(qe=qe[0])===(nt=nt[0])?St[Pt]?St[Pt]+=nt:St[++Pt]=nt:(St[++Pt]=null,Gt.push({i:Pt,x:Oi(qe,nt)})),Be=ro.lastIndex;return Be=0&&!(qe=s.interpolators[Be](ue,Ae)););return qe}s.interpolators=[function(ue,Ae){var Be=typeof Ae;return(Be==="string"?an.has(Ae.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Ae)?Ii:Hi:Ae instanceof ut?Ii:Array.isArray(Ae)?zo:Be==="object"&&isNaN(Ae)?El:Oi)(ue,Ae)}],s.interpolateArray=zo;function zo(ue,Ae){var Be=[],qe=[],nt=ue.length,ct=Ae.length,Pt=Math.min(ue.length,Ae.length),St;for(St=0;St=0?ue.slice(0,Ae):ue,qe=Ae>=0?ue.slice(Ae+1):"in";return Be=Lo.get(Be)||Hf,qe=jc.get(qe)||O,cs(qe(Be.apply(null,L.call(arguments,1))))};function cs(ue){return function(Ae){return Ae<=0?0:Ae>=1?1:ue(Ae)}}function Ji(ue){return function(Ae){return 1-ue(1-Ae)}}function sf(ue){return function(Ae){return .5*(Ae<.5?ue(2*Ae):2-ue(2-2*Ae))}}function Bs(ue){return ue*ue}function hs(ue){return ue*ue*ue}function lf(ue){if(ue<=0)return 0;if(ue>=1)return 1;var Ae=ue*ue,Be=Ae*ue;return 4*(ue<.5?Be:3*(ue-Ae)+Be-.75)}function Gf(ue){return function(Ae){return Math.pow(Ae,ue)}}function Xc(ue){return 1-Math.cos(ue*Ze)}function ku(ue){return Math.pow(2,10*(ue-1))}function Zc(ue){return 1-Math.sqrt(1-ue*ue)}function Kc(ue,Ae){var Be;return arguments.length<2&&(Ae=.45),arguments.length?Be=Ae/me*Math.asin(1/ue):(ue=1,Be=Ae/4),function(qe){return 1+ue*Math.pow(2,-10*qe)*Math.sin((qe-Be)*me/Ae)}}function Jc(ue){return ue||(ue=1.70158),function(Ae){return Ae*Ae*((ue+1)*Ae-ue)}}function uf(ue){return ue<.36363636363636365?7.5625*ue*ue:ue<.7272727272727273?7.5625*(ue-=.5454545454545454)*ue+.75:ue<.9090909090909091?7.5625*(ue-=.8181818181818182)*ue+.9375:7.5625*(ue-=.9545454545454546)*ue+.984375}s.interpolateHcl=Qc;function Qc(ue,Ae){ue=s.hcl(ue),Ae=s.hcl(Ae);var Be=ue.h,qe=ue.c,nt=ue.l,ct=Ae.h-Be,Pt=Ae.c-qe,St=Ae.l-nt;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?Ae.c:qe),isNaN(ct)?(ct=0,Be=isNaN(Be)?Ae.h:Be):ct>180?ct-=360:ct<-180&&(ct+=360),function(Gt){return Bt(Be+ct*Gt,qe+Pt*Gt,nt+St*Gt)+""}}s.interpolateHsl=$c;function $c(ue,Ae){ue=s.hsl(ue),Ae=s.hsl(Ae);var Be=ue.h,qe=ue.s,nt=ue.l,ct=Ae.h-Be,Pt=Ae.s-qe,St=Ae.l-nt;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?Ae.s:qe),isNaN(ct)?(ct=0,Be=isNaN(Be)?Ae.h:Be):ct>180?ct-=360:ct<-180&&(ct+=360),function(Gt){return At(Be+ct*Gt,qe+Pt*Gt,nt+St*Gt)+""}}s.interpolateLab=Wf;function Wf(ue,Ae){ue=s.lab(ue),Ae=s.lab(Ae);var Be=ue.l,qe=ue.a,nt=ue.b,ct=Ae.l-Be,Pt=Ae.a-qe,St=Ae.b-nt;return function(Gt){return Ue(Be+ct*Gt,qe+Pt*Gt,nt+St*Gt)+""}}s.interpolateRound=Yf;function Yf(ue,Ae){return Ae-=ue,function(Be){return Math.round(ue+Ae*Be)}}s.transform=function(ue){var Ae=v.createElementNS(s.ns.prefix.svg,"g");return(s.transform=function(Be){if(Be!=null){Ae.setAttribute("transform",Be);var qe=Ae.transform.baseVal.consolidate()}return new al(qe?qe.matrix:jf)})(ue)};function al(ue){var Ae=[ue.a,ue.b],Be=[ue.c,ue.d],qe=tu(Ae),nt=Ll(Ae,Be),ct=tu(ru(Be,Ae,-nt))||0;Ae[0]*Be[1]180?Ae+=360:Ae-ue>180&&(ue+=360),qe.push({i:Be.push(Ms(Be)+"rotate(",null,")")-2,x:Oi(ue,Ae)})):Ae&&Be.push(Ms(Be)+"rotate("+Ae+")")}function Xf(ue,Ae,Be,qe){ue!==Ae?qe.push({i:Be.push(Ms(Be)+"skewX(",null,")")-2,x:Oi(ue,Ae)}):Ae&&Be.push(Ms(Be)+"skewX("+Ae+")")}function Zf(ue,Ae,Be,qe){if(ue[0]!==Ae[0]||ue[1]!==Ae[1]){var nt=Be.push(Ms(Be)+"scale(",null,",",null,")");qe.push({i:nt-4,x:Oi(ue[0],Ae[0])},{i:nt-2,x:Oi(ue[1],Ae[1])})}else(Ae[0]!==1||Ae[1]!==1)&&Be.push(Ms(Be)+"scale("+Ae+")")}function Ou(ue,Ae){var Be=[],qe=[];return ue=s.transform(ue),Ae=s.transform(Ae),qc(ue.translate,Ae.translate,Be,qe),zu(ue.rotate,Ae.rotate,Be,qe),Xf(ue.skew,Ae.skew,Be,qe),Zf(ue.scale,Ae.scale,Be,qe),ue=Ae=null,function(nt){for(var ct=-1,Pt=qe.length,St;++ct0?ct=rn:(Be.c=null,Be.t=NaN,Be=null,Ae.end({type:"end",alpha:ct=0})):rn>0&&(Ae.start({type:"start",alpha:ct=rn}),Be=Pn(ue.tick)),ue):ct},ue.start=function(){var rn,Hn=$r.length,ra=sn.length,fa=qe[0],ea=qe[1],oa,ca;for(rn=0;rn=0;)ct.push(rr=Yt[Gt]),rr.parent=St,rr.depth=St.depth+1;Be&&(St.value=0),St.children=Yt}else Be&&(St.value=+Be.call(qe,St,St.depth)||0),delete St.children;return Po(nt,function(Cr){var Lr,$r;ue&&(Lr=Cr.children)&&Lr.sort(ue),Be&&($r=Cr.parent)&&($r.value+=Cr.value)}),Pt}return qe.sort=function(nt){return arguments.length?(ue=nt,qe):ue},qe.children=function(nt){return arguments.length?(Ae=nt,qe):Ae},qe.value=function(nt){return arguments.length?(Be=nt,qe):Be},qe.revalue=function(nt){return Be&&(Dl(nt,function(ct){ct.children&&(ct.value=0)}),Po(nt,function(ct){var Pt;ct.children||(ct.value=+Be.call(qe,ct,ct.depth)||0),(Pt=ct.parent)&&(Pt.value+=ct.value)})),nt},qe};function Rl(ue,Ae){return s.rebind(ue,Ae,"sort","children","value"),ue.nodes=ue,ue.links=th,ue}function Dl(ue,Ae){for(var Be=[ue];(ue=Be.pop())!=null;)if(Ae(ue),(nt=ue.children)&&(qe=nt.length))for(var qe,nt;--qe>=0;)Be.push(nt[qe])}function Po(ue,Ae){for(var Be=[ue],qe=[];(ue=Be.pop())!=null;)if(qe.push(ue),(Pt=ue.children)&&(ct=Pt.length))for(var nt=-1,ct,Pt;++ntnt&&(nt=St),qe.push(St)}for(Pt=0;Ptqe&&(Be=Ae,qe=nt);return Be}function Jf(ue){return ue.reduce(Jo,0)}function Jo(ue,Ae){return ue+Ae[1]}s.layout.histogram=function(){var ue=!0,Ae=Number,Be=ol,qe=Qf;function nt(ct,Lr){for(var St=[],Gt=ct.map(Ae,this),Yt=Be.call(this,Gt,Lr),rr=qe.call(this,Yt,Gt,Lr),Cr,Lr=-1,$r=Gt.length,sn=rr.length-1,_r=ue?1:1/$r,Vr;++Lr0)for(Lr=-1;++Lr<$r;)Vr=Gt[Lr],Vr>=Yt[0]&&Vr<=Yt[1]&&(Cr=St[s.bisect(rr,Vr,1,sn)-1],Cr.y+=_r,Cr.push(ct[Lr]));return St}return nt.value=function(ct){return arguments.length?(Ae=ct,nt):Ae},nt.range=function(ct){return arguments.length?(Be=tn(ct),nt):Be},nt.bins=function(ct){return arguments.length?(qe=typeof ct=="number"?function(Pt){return pf(Pt,ct)}:tn(ct),nt):qe},nt.frequency=function(ct){return arguments.length?(ue=!!ct,nt):ue},nt};function Qf(ue,Ae){return pf(ue,Math.ceil(Math.log(Ae.length)/Math.LN2+1))}function pf(ue,Ae){for(var Be=-1,qe=+ue[0],nt=(ue[1]-qe)/Ae,ct=[];++Be<=Ae;)ct[Be]=nt*Be+qe;return ct}function ol(ue){return[s.min(ue),s.max(ue)]}s.layout.pack=function(){var ue=s.layout.hierarchy().sort(Vs),Ae=0,Be=[1,1],qe;function nt(ct,Pt){var St=ue.call(this,ct,Pt),Gt=St[0],Yt=Be[0],rr=Be[1],Cr=qe==null?Math.sqrt:typeof qe=="function"?qe:function(){return qe};if(Gt.x=Gt.y=0,Po(Gt,function($r){$r.r=+Cr($r.value)}),Po(Gt,Qo),Ae){var Lr=Ae*(qe?1:Math.max(2*Gt.r/Yt,2*Gt.r/rr))/2;Po(Gt,function($r){$r.r+=Lr}),Po(Gt,Qo),Po(Gt,function($r){$r.r-=Lr})}return Hs(Gt,Yt/2,rr/2,qe?1:1/Math.max(2*Gt.r/Yt,2*Gt.r/rr)),St}return nt.size=function(ct){return arguments.length?(Be=ct,nt):Be},nt.radius=function(ct){return arguments.length?(qe=ct==null||typeof ct=="function"?ct:+ct,nt):qe},nt.padding=function(ct){return arguments.length?(Ae=+ct,nt):Ae},Rl(nt,ue)};function Vs(ue,Ae){return ue.value-Ae.value}function Hu(ue,Ae){var Be=ue._pack_next;ue._pack_next=Ae,Ae._pack_prev=ue,Ae._pack_next=Be,Be._pack_prev=Ae}function ki(ue,Ae){ue._pack_next=Ae,Ae._pack_prev=ue}function iu(ue,Ae){var Be=Ae.x-ue.x,qe=Ae.y-ue.y,nt=ue.r+Ae.r;return .999*nt*nt>Be*Be+qe*qe}function Qo(ue){if(!(Ae=ue.children)||!(Lr=Ae.length))return;var Ae,Be=1/0,qe=-1/0,nt=1/0,ct=-1/0,Pt,St,Gt,Yt,rr,Cr,Lr;function $r(rn){Be=Math.min(rn.x-rn.r,Be),qe=Math.max(rn.x+rn.r,qe),nt=Math.min(rn.y-rn.r,nt),ct=Math.max(rn.y+rn.r,ct)}if(Ae.forEach(Es),Pt=Ae[0],Pt.x=-Pt.r,Pt.y=0,$r(Pt),Lr>1&&(St=Ae[1],St.x=St.r,St.y=0,$r(St),Lr>2))for(Gt=Ae[2],$o(Pt,St,Gt),$r(Gt),Hu(Pt,Gt),Pt._pack_prev=Gt,Hu(Gt,St),St=Pt._pack_next,Yt=3;YtVr.x&&(Vr=Hn),Hn.depth>Kr.depth&&(Kr=Hn)});var hn=Ae(_r,Vr)/2-_r.x,pn=Be[0]/(Vr.x+Ae(Vr,_r)/2+hn),rn=Be[1]/(Kr.depth||1);Dl($r,function(Hn){Hn.x=(Hn.x+hn)*pn,Hn.y=Hn.depth*rn})}return Lr}function ct(rr){for(var Cr={A:null,children:[rr]},Lr=[Cr],$r;($r=Lr.pop())!=null;)for(var sn=$r.children,_r,Vr=0,Kr=sn.length;Vr0&&(ou(nh(_r,rr,Lr),rr,Hn),Kr+=Hn,hn+=Hn),pn+=_r.m,Kr+=$r.m,rn+=Vr.m,hn+=sn.m;_r&&!Vo(sn)&&(sn.t=_r,sn.m+=pn-hn),$r&&!qo(Vr)&&(Vr.t=$r,Vr.m+=Kr-rn,Lr=rr)}return Lr}function Yt(rr){rr.x*=Be[0],rr.y=rr.depth*Be[1]}return nt.separation=function(rr){return arguments.length?(Ae=rr,nt):Ae},nt.size=function(rr){return arguments.length?(qe=(Be=rr)==null?Yt:null,nt):qe?null:Be},nt.nodeSize=function(rr){return arguments.length?(qe=(Be=rr)==null?null:Yt,nt):qe?Be:null},Rl(nt,ue)};function Cs(ue,Ae){return ue.parent==Ae.parent?1:2}function qo(ue){var Ae=ue.children;return Ae.length?Ae[0]:ue.t}function Vo(ue){var Ae=ue.children,Be;return(Be=Ae.length)?Ae[Be-1]:ue.t}function ou(ue,Ae,Be){var qe=Be/(Ae.i-ue.i);Ae.c-=qe,Ae.s+=Be,ue.c+=qe,Ae.z+=Be,Ae.m+=Be}function rh(ue){for(var Ae=0,Be=0,qe=ue.children,nt=qe.length,ct;--nt>=0;)ct=qe[nt],ct.z+=Ae,ct.m+=Ae,Ae+=ct.s+(Be+=ct.c)}function nh(ue,Ae,Be){return ue.a.parent===Ae.parent?ue.a:Be}s.layout.cluster=function(){var ue=s.layout.hierarchy().sort(null).value(null),Ae=Cs,Be=[1,1],qe=!1;function nt(ct,Pt){var St=ue.call(this,ct,Pt),Gt=St[0],Yt,rr=0;Po(Gt,function(_r){var Vr=_r.children;Vr&&Vr.length?(_r.x=ih(Vr),_r.y=ah(Vr)):(_r.x=Yt?rr+=Ae(_r,Yt):0,_r.y=0,Yt=_r)});var Cr=gf(Gt),Lr=$f(Gt),$r=Cr.x-Ae(Cr,Lr)/2,sn=Lr.x+Ae(Lr,Cr)/2;return Po(Gt,qe?function(_r){_r.x=(_r.x-Gt.x)*Be[0],_r.y=(Gt.y-_r.y)*Be[1]}:function(_r){_r.x=(_r.x-$r)/(sn-$r)*Be[0],_r.y=(1-(Gt.y?_r.y/Gt.y:1))*Be[1]}),St}return nt.separation=function(ct){return arguments.length?(Ae=ct,nt):Ae},nt.size=function(ct){return arguments.length?(qe=(Be=ct)==null,nt):qe?null:Be},nt.nodeSize=function(ct){return arguments.length?(qe=(Be=ct)!=null,nt):qe?Be:null},Rl(nt,ue)};function ah(ue){return 1+s.max(ue,function(Ae){return Ae.y})}function ih(ue){return ue.reduce(function(Ae,Be){return Ae+Be.x},0)/ue.length}function gf(ue){var Ae=ue.children;return Ae&&Ae.length?gf(Ae[0]):ue}function $f(ue){var Ae=ue.children,Be;return Ae&&(Be=Ae.length)?$f(Ae[Be-1]):ue}s.layout.treemap=function(){var ue=s.layout.hierarchy(),Ae=Math.round,Be=[1,1],qe=null,nt=zl,ct=!1,Pt,St="squarify",Gt=.5*(1+Math.sqrt(5));function Yt(_r,Vr){for(var Kr=-1,hn=_r.length,pn,rn;++Kr0;)hn.push(rn=pn[ea-1]),hn.area+=rn.area,St!=="squarify"||(ra=Lr(hn,fa))<=Hn?(pn.pop(),Hn=ra):(hn.area-=hn.pop().area,$r(hn,fa,Kr,!1),fa=Math.min(Kr.dx,Kr.dy),hn.length=hn.area=0,Hn=1/0);hn.length&&($r(hn,fa,Kr,!0),hn.length=hn.area=0),Vr.forEach(rr)}}function Cr(_r){var Vr=_r.children;if(Vr&&Vr.length){var Kr=nt(_r),hn=Vr.slice(),pn,rn=[];for(Yt(hn,Kr.dx*Kr.dy/_r.value),rn.area=0;pn=hn.pop();)rn.push(pn),rn.area+=pn.area,pn.z!=null&&($r(rn,pn.z?Kr.dx:Kr.dy,Kr,!hn.length),rn.length=rn.area=0);Vr.forEach(Cr)}}function Lr(_r,Vr){for(var Kr=_r.area,hn,pn=0,rn=1/0,Hn=-1,ra=_r.length;++Hnpn&&(pn=hn));return Kr*=Kr,Vr*=Vr,Kr?Math.max(Vr*pn*Gt/Kr,Kr/(Vr*rn*Gt)):1/0}function $r(_r,Vr,Kr,hn){var pn=-1,rn=_r.length,Hn=Kr.x,ra=Kr.y,fa=Vr?Ae(_r.area/Vr):0,ea;if(Vr==Kr.dx){for((hn||fa>Kr.dy)&&(fa=Kr.dy);++pnKr.dx)&&(fa=Kr.dx);++pn1);return ue+Ae*qe*Math.sqrt(-2*Math.log(ct)/ct)}},logNormal:function(){var ue=s.random.normal.apply(s,arguments);return function(){return Math.exp(ue())}},bates:function(ue){var Ae=s.random.irwinHall(ue);return function(){return Ae()/ue}},irwinHall:function(ue){return function(){for(var Ae=0,Be=0;Be2?ec:qf,Yt=qe?Pl:Zo;return nt=Gt(ue,Ae,Yt,Be),ct=Gt(Ae,ue,Yt,no),St}function St(Gt){return nt(Gt)}return St.invert=function(Gt){return ct(Gt)},St.domain=function(Gt){return arguments.length?(ue=Gt.map(Number),Pt()):ue},St.range=function(Gt){return arguments.length?(Ae=Gt,Pt()):Ae},St.rangeRound=function(Gt){return St.range(Gt).interpolate(Yf)},St.clamp=function(Gt){return arguments.length?(qe=Gt,Pt()):qe},St.interpolate=function(Gt){return arguments.length?(Be=Gt,Pt()):Be},St.ticks=function(Gt){return es(ue,Gt)},St.tickFormat=function(Gt,Yt){return d3_scale_linearTickFormat(ue,Gt,Yt)},St.nice=function(Gt){return rc(ue,Gt),Pt()},St.copy=function(){return tc(ue,Ae,Be,qe)},Pt()}function yf(ue,Ae){return s.rebind(ue,Ae,"range","rangeRound","interpolate","clamp")}function rc(ue,Ae){return su(ue,Ls(wo(ue,Ae)[2])),su(ue,Ls(wo(ue,Ae)[2])),ue}function wo(ue,Ae){Ae==null&&(Ae=10);var Be=Oo(ue),qe=Be[1]-Be[0],nt=Math.pow(10,Math.floor(Math.log(qe/Ae)/Math.LN10)),ct=Ae/qe*nt;return ct<=.15?nt*=10:ct<=.35?nt*=5:ct<=.75&&(nt*=2),Be[0]=Math.ceil(Be[0]/nt)*nt,Be[1]=Math.floor(Be[1]/nt)*nt+nt*.5,Be[2]=nt,Be}function es(ue,Ae){return s.range.apply(s,wo(ue,Ae))}s.scale.log=function(){return Gs(s.scale.linear().domain([0,1]),10,!0,[1,10])};function Gs(ue,Ae,Be,qe){function nt(St){return(Be?Math.log(St<0?0:St):-Math.log(St>0?0:-St))/Math.log(Ae)}function ct(St){return Be?Math.pow(Ae,St):-Math.pow(Ae,-St)}function Pt(St){return ue(nt(St))}return Pt.invert=function(St){return ct(ue.invert(St))},Pt.domain=function(St){return arguments.length?(Be=St[0]>=0,ue.domain((qe=St.map(Number)).map(nt)),Pt):qe},Pt.base=function(St){return arguments.length?(Ae=+St,ue.domain(qe.map(nt)),Pt):Ae},Pt.nice=function(){var St=su(qe.map(nt),Be?Math:Fl);return ue.domain(St),qe=St.map(ct),Pt},Pt.ticks=function(){var St=Oo(qe),Gt=[],Yt=St[0],rr=St[1],Cr=Math.floor(nt(Yt)),Lr=Math.ceil(nt(rr)),$r=Ae%1?2:Ae;if(isFinite(Lr-Cr)){if(Be){for(;Cr0;sn--)Gt.push(ct(Cr)*sn);for(Cr=0;Gt[Cr]rr;Lr--);Gt=Gt.slice(Cr,Lr)}return Gt},Pt.copy=function(){return Gs(ue.copy(),Ae,Be,qe)},yf(Pt,ue)}var Fl={floor:function(ue){return-Math.ceil(-ue)},ceil:function(ue){return-Math.floor(-ue)}};s.scale.pow=function(){return Gu(s.scale.linear(),1,[0,1])};function Gu(ue,Ae,Be){var qe=ll(Ae),nt=ll(1/Ae);function ct(Pt){return ue(qe(Pt))}return ct.invert=function(Pt){return nt(ue.invert(Pt))},ct.domain=function(Pt){return arguments.length?(ue.domain((Be=Pt.map(Number)).map(qe)),ct):Be},ct.ticks=function(Pt){return es(Be,Pt)},ct.tickFormat=function(Pt,St){return d3_scale_linearTickFormat(Be,Pt,St)},ct.nice=function(Pt){return ct.domain(rc(Be,Pt))},ct.exponent=function(Pt){return arguments.length?(qe=ll(Ae=Pt),nt=ll(1/Ae),ue.domain(Be.map(qe)),ct):Ae},ct.copy=function(){return Gu(ue.copy(),Ae,Be)},yf(ct,ue)}function ll(ue){return function(Ae){return Ae<0?-Math.pow(-Ae,ue):Math.pow(Ae,ue)}}s.scale.sqrt=function(){return s.scale.pow().exponent(.5)},s.scale.ordinal=function(){return ul([],{t:"range",a:[[]]})};function ul(ue,Ae){var Be,qe,nt;function ct(St){return qe[((Be.get(St)||(Ae.t==="range"?Be.set(St,ue.push(St)):NaN))-1)%qe.length]}function Pt(St,Gt){return s.range(ue.length).map(function(Yt){return St+Gt*Yt})}return ct.domain=function(St){if(!arguments.length)return ue;ue=[],Be=new C;for(var Gt=-1,Yt=St.length,rr;++Gt0?Be[ct-1]:ue[0],ctLr?0:1;if(rr=Ne)return Gt(rr,sn)+(Yt?Gt(Yt,1-sn):"")+"Z";var _r,Vr,Kr,hn,pn=0,rn=0,Hn,ra,fa,ea,oa,ca,Ua,Ea,Oa=[];if((hn=(+Pt.apply(this,arguments)||0)/2)&&(Kr=qe===Wu?Math.sqrt(Yt*Yt+rr*rr):+qe.apply(this,arguments),sn||(rn*=-1),rr&&(rn=Zt(Kr/rr*Math.sin(hn))),Yt&&(pn=Zt(Kr/Yt*Math.sin(hn)))),rr){Hn=rr*Math.cos(Cr+rn),ra=rr*Math.sin(Cr+rn),fa=rr*Math.cos(Lr-rn),ea=rr*Math.sin(Lr-rn);var ii=Math.abs(Lr-Cr-2*rn)<=he?0:1;if(rn&&fu(Hn,ra,fa,ea)===sn^ii){var Fi=(Cr+Lr)/2;Hn=rr*Math.cos(Fi),ra=rr*Math.sin(Fi),fa=ea=null}}else Hn=ra=0;if(Yt){oa=Yt*Math.cos(Lr-pn),ca=Yt*Math.sin(Lr-pn),Ua=Yt*Math.cos(Cr+pn),Ea=Yt*Math.sin(Cr+pn);var ci=Math.abs(Cr-Lr+2*pn)<=he?0:1;if(pn&&fu(oa,ca,Ua,Ea)===1-sn^ci){var qn=(Cr+Lr)/2;oa=Yt*Math.cos(qn),ca=Yt*Math.sin(qn),Ua=Ea=null}}else oa=ca=0;if($r>je&&(_r=Math.min(Math.abs(rr-Yt)/2,+Be.apply(this,arguments)))>.001){Vr=Yt0?0:1}function cu(ue,Ae,Be,qe,nt){var ct=ue[0]-Ae[0],Pt=ue[1]-Ae[1],St=(nt?qe:-qe)/Math.sqrt(ct*ct+Pt*Pt),Gt=St*Pt,Yt=-St*ct,rr=ue[0]+Gt,Cr=ue[1]+Yt,Lr=Ae[0]+Gt,$r=Ae[1]+Yt,sn=(rr+Lr)/2,_r=(Cr+$r)/2,Vr=Lr-rr,Kr=$r-Cr,hn=Vr*Vr+Kr*Kr,pn=Be-qe,rn=rr*$r-Lr*Cr,Hn=(Kr<0?-1:1)*Math.sqrt(Math.max(0,pn*pn*hn-rn*rn)),ra=(rn*Kr-Vr*Hn)/hn,fa=(-rn*Vr-Kr*Hn)/hn,ea=(rn*Kr+Vr*Hn)/hn,oa=(-rn*Vr+Kr*Hn)/hn,ca=ra-sn,Ua=fa-_r,Ea=ea-sn,Oa=oa-_r;return ca*ca+Ua*Ua>Ea*Ea+Oa*Oa&&(ra=ea,fa=oa),[[ra-Gt,fa-Yt],[ra*Be/pn,fa*Be/pn]]}function Ys(){return!0}function hu(ue){var Ae=wa,Be=Wn,qe=Ys,nt=Gi,ct=nt.key,Pt=.7;function St(Gt){var Yt=[],rr=[],Cr=-1,Lr=Gt.length,$r,sn=tn(Ae),_r=tn(Be);function Vr(){Yt.push("M",nt(ue(rr),Pt))}for(;++Cr1?ue.join("L"):ue+"Z"}function ds(ue){return ue.join("L")+"Z"}function xf(ue){for(var Ae=0,Be=ue.length,qe=ue[0],nt=[qe[0],",",qe[1]];++Ae1&&nt.push("H",qe[0]),nt.join("")}function fl(ue){for(var Ae=0,Be=ue.length,qe=ue[0],nt=[qe[0],",",qe[1]];++Ae1){St=Ae[1],ct=ue[Gt],Gt++,qe+="C"+(nt[0]+Pt[0])+","+(nt[1]+Pt[1])+","+(ct[0]-St[0])+","+(ct[1]-St[1])+","+ct[0]+","+ct[1];for(var Yt=2;Yt9&&(ct=Be*3/Math.sqrt(ct),Pt[St]=ct*qe,Pt[St+1]=ct*nt));for(St=-1;++St<=Gt;)ct=(ue[Math.min(Gt,St+1)][0]-ue[Math.max(0,St-1)][0])/(6*(1+Pt[St]*Pt[St])),Ae.push([ct||0,Pt[St]*ct||0]);return Ae}function Zu(ue){return ue.length<3?Gi(ue):ue[0]+po(ue,yu(ue))}s.svg.line.radial=function(){var ue=hu(sc);return ue.radius=ue.x,delete ue.x,ue.angle=ue.y,delete ue.y,ue};function sc(ue){for(var Ae,Be=-1,qe=ue.length,nt,ct;++Behe)+",1 "+Cr}function Yt(rr,Cr,Lr,$r){return"Q 0,0 "+$r}return ct.radius=function(rr){return arguments.length?(Be=tn(rr),ct):Be},ct.source=function(rr){return arguments.length?(ue=tn(rr),ct):ue},ct.target=function(rr){return arguments.length?(Ae=tn(rr),ct):Ae},ct.startAngle=function(rr){return arguments.length?(qe=tn(rr),ct):qe},ct.endAngle=function(rr){return arguments.length?(nt=tn(rr),ct):nt},ct};function Tf(ue){return ue.radius}s.svg.diagonal=function(){var ue=wf,Ae=cl,Be=xu;function qe(nt,ct){var Pt=ue.call(this,nt,ct),St=Ae.call(this,nt,ct),Gt=(Pt.y+St.y)/2,Yt=[Pt,{x:Pt.x,y:Gt},{x:St.x,y:Gt},St];return Yt=Yt.map(Be),"M"+Yt[0]+"C"+Yt[1]+" "+Yt[2]+" "+Yt[3]}return qe.source=function(nt){return arguments.length?(ue=tn(nt),qe):ue},qe.target=function(nt){return arguments.length?(Ae=tn(nt),qe):Ae},qe.projection=function(nt){return arguments.length?(Be=nt,qe):Be},qe};function xu(ue){return[ue.x,ue.y]}s.svg.diagonal.radial=function(){var ue=s.svg.diagonal(),Ae=xu,Be=ue.projection;return ue.projection=function(qe){return arguments.length?Be(lc(Ae=qe)):Ae},ue};function lc(ue){return function(){var Ae=ue.apply(this,arguments),Be=Ae[0],qe=Ae[1]-Ze;return[Be*Math.cos(qe),Be*Math.sin(qe)]}}s.svg.symbol=function(){var ue=it,Ae=Ke;function Be(qe,nt){return(bt.get(ue.call(this,qe,nt))||yt)(Ae.call(this,qe,nt))}return Be.type=function(qe){return arguments.length?(ue=tn(qe),Be):ue},Be.size=function(qe){return arguments.length?(Ae=tn(qe),Be):Ae},Be};function Ke(){return 64}function it(){return"circle"}function yt(ue){var Ae=Math.sqrt(ue/he);return"M0,"+Ae+"A"+Ae+","+Ae+" 0 1,1 0,"+-Ae+"A"+Ae+","+Ae+" 0 1,1 0,"+Ae+"Z"}var bt=s.map({circle:yt,cross:function(ue){var Ae=Math.sqrt(ue/5)/2;return"M"+-3*Ae+","+-Ae+"H"+-Ae+"V"+-3*Ae+"H"+Ae+"V"+-Ae+"H"+3*Ae+"V"+Ae+"H"+Ae+"V"+3*Ae+"H"+-Ae+"V"+Ae+"H"+-3*Ae+"Z"},diamond:function(ue){var Ae=Math.sqrt(ue/(2*It)),Be=Ae*It;return"M0,"+-Ae+"L"+Be+",0 0,"+Ae+" "+-Be+",0Z"},square:function(ue){var Ae=Math.sqrt(ue)/2;return"M"+-Ae+","+-Ae+"L"+Ae+","+-Ae+" "+Ae+","+Ae+" "+-Ae+","+Ae+"Z"},"triangle-down":function(ue){var Ae=Math.sqrt(ue/kt),Be=Ae*kt/2;return"M0,"+Be+"L"+Ae+","+-Be+" "+-Ae+","+-Be+"Z"},"triangle-up":function(ue){var Ae=Math.sqrt(ue/kt),Be=Ae*kt/2;return"M0,"+-Be+"L"+Ae+","+Be+" "+-Ae+","+Be+"Z"}});s.svg.symbolTypes=bt.keys();var kt=Math.sqrt(3),It=Math.tan(30*st);j.transition=function(ue){for(var Ae=Dr||++Sr,Be=_n(ue),qe=[],nt,ct,Pt=Ur||{time:Date.now(),ease:lf,delay:0,duration:250},St=-1,Gt=this.length;++St0;)Cr[--hn].call(ue,Kr);if(Vr>=1)return Pt.event&&Pt.event.end.call(ue,ue.__data__,Ae),--ct.count?delete ct[qe]:delete ue[Be],1}Pt||(St=nt.time,Gt=Pn(Lr,0,St),Pt=ct[qe]={tween:new C,time:St,timer:Gt,delay:nt.delay,duration:nt.duration,ease:nt.ease,index:Ae},nt=null,++ct.count)}s.svg.axis=function(){var ue=s.scale.linear(),Ae=Kn,Be=6,qe=6,nt=3,ct=[10],Pt=null,St;function Gt(Yt){Yt.each(function(){var rr=s.select(this),Cr=this.__chart__||ue,Lr=this.__chart__=ue.copy(),$r=Pt??(Lr.ticks?Lr.ticks.apply(Lr,ct):Lr.domain()),sn=St??(Lr.tickFormat?Lr.tickFormat.apply(Lr,ct):O),_r=rr.selectAll(".tick").data($r,Lr),Vr=_r.enter().insert("g",".domain").attr("class","tick").style("opacity",je),Kr=s.transition(_r.exit()).style("opacity",je).remove(),hn=s.transition(_r.order()).style("opacity",1),pn=Math.max(Be,0)+nt,rn,Hn=Ol(Lr),ra=rr.selectAll(".domain").data([0]),fa=(ra.enter().append("path").attr("class","domain"),s.transition(ra));Vr.append("line"),Vr.append("text");var ea=Vr.select("line"),oa=hn.select("line"),ca=_r.select("text").text(sn),Ua=Vr.select("text"),Ea=hn.select("text"),Oa=Ae==="top"||Ae==="left"?-1:1,ii,Fi,ci,qn;if(Ae==="bottom"||Ae==="top"?(rn=Da,ii="x",ci="y",Fi="x2",qn="y2",ca.attr("dy",Oa<0?"0em":".71em").style("text-anchor","middle"),fa.attr("d","M"+Hn[0]+","+Oa*qe+"V0H"+Hn[1]+"V"+Oa*qe)):(rn=ka,ii="y",ci="x",Fi="y2",qn="x2",ca.attr("dy",".32em").style("text-anchor",Oa<0?"end":"start"),fa.attr("d","M"+Oa*qe+","+Hn[0]+"H0V"+Hn[1]+"H"+Oa*qe)),ea.attr(qn,Oa*Be),Ua.attr(ci,Oa*pn),oa.attr(Fi,0).attr(qn,Oa*Be),Ea.attr(ii,0).attr(ci,Oa*pn),Lr.rangeBand){var Ha=Lr,Sa=Ha.rangeBand()/2;Cr=Lr=function(Ja){return Ha(Ja)+Sa}}else Cr.rangeBand?Cr=Lr:Kr.call(rn,Lr,Cr);Vr.call(rn,Cr,Lr),hn.call(rn,Lr,Lr)})}return Gt.scale=function(Yt){return arguments.length?(ue=Yt,Gt):ue},Gt.orient=function(Yt){return arguments.length?(Ae=Yt in Ra?Yt+"":Kn,Gt):Ae},Gt.ticks=function(){return arguments.length?(ct=S(arguments),Gt):ct},Gt.tickValues=function(Yt){return arguments.length?(Pt=Yt,Gt):Pt},Gt.tickFormat=function(Yt){return arguments.length?(St=Yt,Gt):St},Gt.tickSize=function(Yt){var rr=arguments.length;return rr?(Be=+Yt,qe=+arguments[rr-1],Gt):Be},Gt.innerTickSize=function(Yt){return arguments.length?(Be=+Yt,Gt):Be},Gt.outerTickSize=function(Yt){return arguments.length?(qe=+Yt,Gt):qe},Gt.tickPadding=function(Yt){return arguments.length?(nt=+Yt,Gt):nt},Gt.tickSubdivide=function(){return arguments.length&&Gt},Gt};var Kn="bottom",Ra={top:1,right:1,bottom:1,left:1};function Da(ue,Ae,Be){ue.attr("transform",function(qe){var nt=Ae(qe);return"translate("+(isFinite(nt)?nt:Be(qe))+",0)"})}function ka(ue,Ae,Be){ue.attr("transform",function(qe){var nt=Ae(qe);return"translate(0,"+(isFinite(nt)?nt:Be(qe))+")"})}s.svg.brush=function(){var ue=$(rr,"brushstart","brush","brushend"),Ae=null,Be=null,qe=[0,0],nt=[0,0],ct,Pt,St=!0,Gt=!0,Yt=Ka[0];function rr(_r){_r.each(function(){var Vr=s.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",sn).on("touchstart.brush",sn),Kr=Vr.selectAll(".background").data([0]);Kr.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Vr.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var hn=Vr.selectAll(".resize").data(Yt,O);hn.exit().remove(),hn.enter().append("g").attr("class",function(ra){return"resize "+ra}).style("cursor",function(ra){return Na[ra]}).append("rect").attr("x",function(ra){return/[ew]$/.test(ra)?-3:null}).attr("y",function(ra){return/^[ns]/.test(ra)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),hn.style("display",rr.empty()?"none":null);var pn=s.transition(Vr),rn=s.transition(Kr),Hn;Ae&&(Hn=Ol(Ae),rn.attr("x",Hn[0]).attr("width",Hn[1]-Hn[0]),Lr(pn)),Be&&(Hn=Ol(Be),rn.attr("y",Hn[0]).attr("height",Hn[1]-Hn[0]),$r(pn)),Cr(pn)})}rr.event=function(_r){_r.each(function(){var Vr=ue.of(this,arguments),Kr={x:qe,y:nt,i:ct,j:Pt},hn=this.__chart__||Kr;this.__chart__=Kr,Dr?s.select(this).transition().each("start.brush",function(){ct=hn.i,Pt=hn.j,qe=hn.x,nt=hn.y,Vr({type:"brushstart"})}).tween("brush:brush",function(){var pn=zo(qe,Kr.x),rn=zo(nt,Kr.y);return ct=Pt=null,function(Hn){qe=Kr.x=pn(Hn),nt=Kr.y=rn(Hn),Vr({type:"brush",mode:"resize"})}}).each("end.brush",function(){ct=Kr.i,Pt=Kr.j,Vr({type:"brush",mode:"resize"}),Vr({type:"brushend"})}):(Vr({type:"brushstart"}),Vr({type:"brush",mode:"resize"}),Vr({type:"brushend"}))})};function Cr(_r){_r.selectAll(".resize").attr("transform",function(Vr){return"translate("+qe[+/e$/.test(Vr)]+","+nt[+/^s/.test(Vr)]+")"})}function Lr(_r){_r.select(".extent").attr("x",qe[0]),_r.selectAll(".extent,.n>rect,.s>rect").attr("width",qe[1]-qe[0])}function $r(_r){_r.select(".extent").attr("y",nt[0]),_r.selectAll(".extent,.e>rect,.w>rect").attr("height",nt[1]-nt[0])}function sn(){var _r=this,Vr=s.select(s.event.target),Kr=ue.of(_r,arguments),hn=s.select(_r),pn=Vr.datum(),rn=!/^(n|s)$/.test(pn)&&Ae,Hn=!/^(e|w)$/.test(pn)&&Be,ra=Vr.classed("extent"),fa=We(_r),ea,oa=s.mouse(_r),ca,Ua=s.select(r(_r)).on("keydown.brush",ii).on("keyup.brush",Fi);if(s.event.changedTouches?Ua.on("touchmove.brush",ci).on("touchend.brush",Ha):Ua.on("mousemove.brush",ci).on("mouseup.brush",Ha),hn.interrupt().selectAll("*").interrupt(),ra)oa[0]=qe[0]-oa[0],oa[1]=nt[0]-oa[1];else if(pn){var Ea=+/w$/.test(pn),Oa=+/^n/.test(pn);ca=[qe[1-Ea]-oa[0],nt[1-Oa]-oa[1]],oa[0]=qe[Ea],oa[1]=nt[Oa]}else s.event.altKey&&(ea=oa.slice());hn.style("pointer-events","none").selectAll(".resize").style("display",null),s.select("body").style("cursor",Vr.style("cursor")),Kr({type:"brushstart"}),ci();function ii(){s.event.keyCode==32&&(ra||(ea=null,oa[0]-=qe[1],oa[1]-=nt[1],ra=2),ne())}function Fi(){s.event.keyCode==32&&ra==2&&(oa[0]+=qe[1],oa[1]+=nt[1],ra=0,ne())}function ci(){var Sa=s.mouse(_r),Ja=!1;ca&&(Sa[0]+=ca[0],Sa[1]+=ca[1]),ra||(s.event.altKey?(ea||(ea=[(qe[0]+qe[1])/2,(nt[0]+nt[1])/2]),oa[0]=qe[+(Sa[0]"u"&&(R=1e-6);var U,ae,ve,we,Ee;for(ve=_,Ee=0;Ee<8;Ee++){if(we=this.sampleCurveX(ve)-_,Math.abs(we)ae)return ae;for(;Uwe?U=ve:ae=ve,ve=(ae-U)*.5+U}return ve},p.prototype.solve=function(_,R){return this.sampleCurveY(this.solveCurveX(_,R))};var r=t;function t(_,R){this.x=_,this.y=R}t.prototype={clone:function(){return new t(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,R){return this.clone()._rotateAround(_,R)},matMult:function(_){return this.clone()._matMult(_)},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(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var R=_.x-this.x,U=_.y-this.y;return R*R+U*U},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,R){return Math.atan2(this.x*R-this.y*_,this.x*_+this.y*R)},_matMult:function(_){var R=_[0]*this.x+_[1]*this.y,U=_[2]*this.x+_[3]*this.y;return this.x=R,this.y=U,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var R=Math.cos(_),U=Math.sin(_),ae=R*this.x-U*this.y,ve=U*this.x+R*this.y;return this.x=ae,this.y=ve,this},_rotateAround:function(_,R){var U=Math.cos(_),ae=Math.sin(_),ve=R.x+U*(this.x-R.x)-ae*(this.y-R.y),we=R.y+ae*(this.x-R.x)+U*(this.y-R.y);return this.x=ve,this.y=we,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},t.convert=function(_){return _ instanceof t?_:Array.isArray(_)?new t(_[0],_[1]):_};var a=typeof self<"u"?self:{};function n(_,R){if(Array.isArray(_)){if(!Array.isArray(R)||_.length!==R.length)return!1;for(var U=0;U<_.length;U++)if(!n(_[U],R[U]))return!1;return!0}if(typeof _=="object"&&_!==null&&R!==null){if(typeof R!="object")return!1;var ae=Object.keys(_);if(ae.length!==Object.keys(R).length)return!1;for(var ve in _)if(!n(_[ve],R[ve]))return!1;return!0}return _===R}var f=Math.pow(2,53)-1;function u(_){if(_<=0)return 0;if(_>=1)return 1;var R=_*_,U=R*_;return 4*(_<.5?U:3*(_-R)+U-.75)}function l(_,R,U,ae){var ve=new v(_,R,U,ae);return function(we){return ve.solve(we)}}var g=l(.25,.1,.25,1);function h(_,R,U){return Math.min(U,Math.max(R,_))}function T(_,R,U){var ae=U-R,ve=((_-R)%ae+ae)%ae+R;return ve===R?U:ve}function c(_,R,U){if(!_.length)return U(null,[]);var ae=_.length,ve=new Array(_.length),we=null;_.forEach(function(Ee,Je){R(Ee,function(dt,Mt){dt&&(we=dt),ve[Je]=Mt,--ae===0&&U(we,ve)})})}function i(_){var R=[];for(var U in _)R.push(_[U]);return R}function d(_,R){var U=[];for(var ae in _)ae in R||U.push(ae);return U}function x(_){for(var R=[],U=arguments.length-1;U-- >0;)R[U]=arguments[U+1];for(var ae=0,ve=R;ae>R/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,_)}return _()}function A(_){return _<=1?1:Math.pow(2,Math.ceil(Math.log(_)/Math.LN2))}function o(_){return _?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_):!1}function M(_,R){_.forEach(function(U){R[U]&&(R[U]=R[U].bind(R))})}function b(_,R){return _.indexOf(R,_.length-R.length)!==-1}function I(_,R,U){var ae={};for(var ve in _)ae[ve]=R.call(U||this,_[ve],ve,_);return ae}function D(_,R,U){var ae={};for(var ve in _)R.call(U||this,_[ve],ve,_)&&(ae[ve]=_[ve]);return ae}function N(_){return Array.isArray(_)?_.map(N):typeof _=="object"&&_?I(_,N):_}function k(_,R){for(var U=0;U<_.length;U++)if(R.indexOf(_[U])>=0)return!0;return!1}var O={};function F(_){O[_]||(typeof console<"u"&&console.warn(_),O[_]=!0)}function z(_,R,U){return(U.y-_.y)*(R.x-_.x)>(R.y-_.y)*(U.x-_.x)}function B(_){for(var R=0,U=0,ae=_.length,ve=ae-1,we=void 0,Ee=void 0;U@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,U={};if(_.replace(R,function(ve,we,Ee,Je){var dt=Ee||Je;return U[we]=dt?dt.toLowerCase():!0,""}),U["max-age"]){var ae=parseInt(U["max-age"],10);isNaN(ae)?delete U["max-age"]:U["max-age"]=ae}return U}var ne=null;function le(_){if(ne==null){var R=_.navigator?_.navigator.userAgent:null;ne=!!_.safari||!!(R&&(/\b(iPad|iPhone|iPod)\b/.test(R)||R.match("Safari")&&!R.match("Chrome")))}return ne}function $(_){try{var R=a[_];return R.setItem("_mapbox_test_",1),R.removeItem("_mapbox_test_"),!0}catch{return!1}}function Z(_){return a.btoa(encodeURIComponent(_).replace(/%([0-9A-F]{2})/g,function(R,U){return String.fromCharCode(+("0x"+U))}))}function ie(_){return decodeURIComponent(a.atob(_).split("").map(function(R){return"%"+("00"+R.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var X=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),Q=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,oe=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,Y,j,se={now:X,frame:function(R){var U=Q(R);return{cancel:function(){return oe(U)}}},getImageData:function(R,U){U===void 0&&(U=0);var ae=a.document.createElement("canvas"),ve=ae.getContext("2d");if(!ve)throw new Error("failed to create canvas 2d context");return ae.width=R.width,ae.height=R.height,ve.drawImage(R,0,0,R.width,R.height),ve.getImageData(-U,-U,R.width+2*U,R.height+2*U)},resolveURL:function(R){return Y||(Y=a.document.createElement("a")),Y.href=R,Y.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return a.matchMedia?(j==null&&(j=a.matchMedia("(prefers-reduced-motion: reduce)")),j.matches):!1}},te={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"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},fe={supported:!1,testSupport:De},ge,be=!1,xe,_e=!1;a.document&&(xe=a.document.createElement("img"),xe.onload=function(){ge&&Fe(ge),ge=null,_e=!0},xe.onerror=function(){be=!0,ge=null},xe.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function De(_){be||!xe||(_e?Fe(_):ge=_)}function Fe(_){var R=_.createTexture();_.bindTexture(_.TEXTURE_2D,R);try{if(_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,xe),_.isContextLost())return;fe.supported=!0}catch{}_.deleteTexture(R),be=!0}var Te="01";function Re(){for(var _="1",R="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",U="",ae=0;ae<10;ae++)U+=R[Math.floor(Math.random()*62)];var ve=12*60*60*1e3,we=[_,Te,U].join(""),Ee=Date.now()+ve;return{token:we,tokenExpiresAt:Ee}}var Se=function(R,U){this._transformRequestFn=R,this._customAccessToken=U,this._createSkuToken()};Se.prototype._createSkuToken=function(){var R=Re();this._skuToken=R.token,this._skuTokenExpiresAt=R.tokenExpiresAt},Se.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Se.prototype.transformRequest=function(R,U){return this._transformRequestFn?this._transformRequestFn(R,U)||{url:R}:{url:R}},Se.prototype.normalizeStyleURL=function(R,U){if(!Ie(R))return R;var ae=$e(R);return ae.path="/styles/v1"+ae.path,this._makeAPIURL(ae,this._customAccessToken||U)},Se.prototype.normalizeGlyphsURL=function(R,U){if(!Ie(R))return R;var ae=$e(R);return ae.path="/fonts/v1"+ae.path,this._makeAPIURL(ae,this._customAccessToken||U)},Se.prototype.normalizeSourceURL=function(R,U){if(!Ie(R))return R;var ae=$e(R);return ae.path="/v4/"+ae.authority+".json",ae.params.push("secure"),this._makeAPIURL(ae,this._customAccessToken||U)},Se.prototype.normalizeSpriteURL=function(R,U,ae,ve){var we=$e(R);return Ie(R)?(we.path="/styles/v1"+we.path+"/sprite"+U+ae,this._makeAPIURL(we,this._customAccessToken||ve)):(we.path+=""+U+ae,ht(we))},Se.prototype.normalizeTileURL=function(R,U){if(this._isSkuTokenExpired()&&this._createSkuToken(),R&&!Ie(R))return R;var ae=$e(R),ve=/(\.(png|jpg)\d*)(?=$)/,we=/^.+\/v4\//,Ee=se.devicePixelRatio>=2||U===512?"@2x":"",Je=fe.supported?".webp":"$1";ae.path=ae.path.replace(ve,""+Ee+Je),ae.path=ae.path.replace(we,"/"),ae.path="/v4"+ae.path;var dt=this._customAccessToken||ot(ae.params)||te.ACCESS_TOKEN;return te.REQUIRE_ACCESS_TOKEN&&dt&&this._skuToken&&ae.params.push("sku="+this._skuToken),this._makeAPIURL(ae,dt)},Se.prototype.canonicalizeTileURL=function(R,U){var ae="/v4/",ve=/\.[\w]+$/,we=$e(R);if(!we.path.match(/(^\/v4\/)/)||!we.path.match(ve))return R;var Ee="mapbox://tiles/";Ee+=we.path.replace(ae,"");var Je=we.params;return U&&(Je=Je.filter(function(dt){return!dt.match(/^access_token=/)})),Je.length&&(Ee+="?"+Je.join("&")),Ee},Se.prototype.canonicalizeTileset=function(R,U){for(var ae=U?Ie(U):!1,ve=[],we=0,Ee=R.tiles||[];we=0&&R.params.splice(we,1)}if(ve.path!=="/"&&(R.path=""+ve.path+R.path),!te.REQUIRE_ACCESS_TOKEN)return ht(R);if(U=U||te.ACCESS_TOKEN,!U)throw new Error("An API access token is required to use Mapbox GL. "+ae);if(U[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ae);return R.params=R.params.filter(function(Ee){return Ee.indexOf("access_token")===-1}),R.params.push("access_token="+U),ht(R)};function Ie(_){return _.indexOf("mapbox:")===0}var Me=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ve(_){return Me.test(_)}function et(_){return _.indexOf("sku=")>0&&Ve(_)}function ot(_){for(var R=0,U=_;R=1&&a.localStorage.setItem(U,JSON.stringify(this.eventData))}catch{F("Unable to write to LocalStorage")}},wt.prototype.processRequests=function(R){},wt.prototype.postEvent=function(R,U,ae,ve){var we=this;if(te.EVENTS_URL){var Ee=$e(te.EVENTS_URL);Ee.params.push("access_token="+(ve||te.ACCESS_TOKEN||""));var Je={event:this.type,created:new Date(R).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:S,skuId:Te,userId:this.anonId},dt=U?x(Je,U):Je,Mt={url:ht(Ee),headers:{"Content-Type":"text/plain"},body:JSON.stringify([dt])};this.pendingRequest=Ut(Mt,function(_t){we.pendingRequest=null,ae(_t),we.saveEventData(),we.processRequests(ve)})}},wt.prototype.queueRequest=function(R,U){this.queue.push(R),this.processRequests(U)};var Ct=function(_){function R(){_.call(this,"map.load"),this.success={},this.skuToken=""}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.postMapLoadEvent=function(ae,ve,we,Ee){this.skuToken=we,(te.EVENTS_URL&&Ee||te.ACCESS_TOKEN&&Array.isArray(ae)&&ae.some(function(Je){return Ie(Je)||Ve(Je)}))&&this.queueRequest({id:ve,timestamp:Date.now()},Ee)},R.prototype.processRequests=function(ae){var ve=this;if(!(this.pendingRequest||this.queue.length===0)){var we=this.queue.shift(),Ee=we.id,Je=we.timestamp;Ee&&this.success[Ee]||(this.anonId||this.fetchEventData(),o(this.anonId)||(this.anonId=E()),this.postEvent(Je,{skuToken:this.skuToken},function(dt){dt||Ee&&(ve.success[Ee]=!0)},ae))}},R}(wt),rt=function(_){function R(U){_.call(this,"appUserTurnstile"),this._customAccessToken=U}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.postTurnstileEvent=function(ae,ve){te.EVENTS_URL&&te.ACCESS_TOKEN&&Array.isArray(ae)&&ae.some(function(we){return Ie(we)||Ve(we)})&&this.queueRequest(Date.now(),ve)},R.prototype.processRequests=function(ae){var ve=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var we=pt(te.ACCESS_TOKEN),Ee=we?we.u:te.ACCESS_TOKEN,Je=Ee!==this.eventData.tokenU;o(this.anonId)||(this.anonId=E(),Je=!0);var dt=this.queue.shift();if(this.eventData.lastSuccess){var Mt=new Date(this.eventData.lastSuccess),_t=new Date(dt),jt=(dt-this.eventData.lastSuccess)/(24*60*60*1e3);Je=Je||jt>=1||jt<-1||Mt.getDate()!==_t.getDate()}else Je=!0;if(!Je)return this.processRequests();this.postEvent(dt,{"enabled.telemetry":!1},function(nr){nr||(ve.eventData.lastSuccess=dt,ve.eventData.tokenU=Ee)},ae)}},R}(wt),ze=new rt,He=ze.postTurnstileEvent.bind(ze),We=new Ct,Ge=We.postMapLoadEvent.bind(We),Le="mapbox-tiles",Pe=500,je=50,Ce=1e3*60*7,he;function me(){a.caches&&!he&&(he=a.caches.open(Le))}var Ne;function Ze(_,R){if(Ne===void 0)try{new Response(new ReadableStream),Ne=!0}catch{Ne=!1}Ne?R(_.body):_.blob().then(R)}function st(_,R,U){if(me(),!!he){var ae={status:R.status,statusText:R.statusText,headers:new a.Headers};R.headers.forEach(function(Ee,Je){return ae.headers.set(Je,Ee)});var ve=re(R.headers.get("Cache-Control")||"");if(!ve["no-store"]){ve["max-age"]&&ae.headers.set("Expires",new Date(U+ve["max-age"]*1e3).toUTCString());var we=new Date(ae.headers.get("Expires")).getTime()-U;weDate.now()&&!U["no-cache"]}var Tt=1/0;function Rt(_){Tt++,Tt>je&&(_.getActor().send("enforceCacheSizeLimit",Pe),Tt=0)}function Xt(_){me(),he&&he.then(function(R){R.keys().then(function(U){for(var ae=0;ae=200&&U.status<300||U.status===0)&&U.response!==null){var ve=U.response;if(_.type==="json")try{ve=JSON.parse(U.response)}catch(we){return R(we)}R(null,ve,U.getResponseHeader("Cache-Control"),U.getResponseHeader("Expires"))}else R(new Ot(U.statusText,U.status,_.url))},U.send(_.body),{cancel:function(){return U.abort()}}}var Et=function(_,R){if(!at(_.url)){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return xt(_,R);if(J()&&self.worker&&self.worker.actor){var U=!0;return self.worker.actor.send("getResource",_,R,void 0,U)}}return At(_,R)},Vt=function(_,R){return Et(x(_,{type:"json"}),R)},Bt=function(_,R){return Et(x(_,{type:"arrayBuffer"}),R)},Ut=function(_,R){return Et(x(_,{method:"POST"}),R)};function Jt(_){var R=a.document.createElement("a");return R.href=_,R.protocol===a.document.location.protocol&&R.host===a.document.location.host}var ur="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function fr(_,R,U,ae){var ve=new a.Image,we=a.URL;ve.onload=function(){R(null,ve),we.revokeObjectURL(ve.src),ve.onload=null,a.requestAnimationFrame(function(){ve.src=ur})},ve.onerror=function(){return R(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var Ee=new a.Blob([new Uint8Array(_)],{type:"image/png"});ve.cacheControl=U,ve.expires=ae,ve.src=_.byteLength?we.createObjectURL(Ee):ur}function dr(_,R){var U=new a.Blob([new Uint8Array(_)],{type:"image/png"});a.createImageBitmap(U).then(function(ae){R(null,ae)}).catch(function(ae){R(new Error("Could not load image because of "+ae.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Ye,Ue,zt=function(){Ye=[],Ue=0};zt();var Dt=function(_,R){if(fe.supported&&(_.headers||(_.headers={}),_.headers.accept="image/webp,*/*"),Ue>=te.MAX_PARALLEL_IMAGE_REQUESTS){var U={requestParameters:_,callback:R,cancelled:!1,cancel:function(){this.cancelled=!0}};return Ye.push(U),U}Ue++;var ae=!1,ve=function(){if(!ae)for(ae=!0,Ue--;Ye.length&&Ue0||this._oneTimeListeners&&this._oneTimeListeners[R]&&this._oneTimeListeners[R].length>0||this._eventedParent&&this._eventedParent.listens(R)},ir.prototype.setEventedParent=function(R,U){return this._eventedParent=R,this._eventedParentData=U,this};var hr=8,xr={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"}},vr={"*":{type:"source"}},Hr=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Pr={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:"*"}},Rr={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:"*"}},an={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:"*"}},tn={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"}},Sn={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"}}},Tn={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"}}},Tr={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"}},zr=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Yr={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Or={"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"}},ln={"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"}},fn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Mn={"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"}},Pn={"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"}},Vn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ia={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ya={type:"array",value:"*"},wa={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Wn={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Qn={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},mr={type:"array",value:"*",minimum:1},en={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}},Jr=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],vn={"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"}},On={"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"}},bn={"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"}},An={"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"}},Fn={"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"}},$n={"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"}},ha={"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"}},Ia={"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"}},Mr={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Fr={"*":{type:"string"}},Ar={$version:hr,$root:xr,sources:vr,source:Hr,source_vector:Pr,source_raster:Rr,source_raster_dem:an,source_geojson:tn,source_video:Sn,source_image:Tn,layer:Tr,layout:zr,layout_background:Yr,layout_fill:Or,layout_circle:ln,layout_heatmap:fn,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:Mn,layout_symbol:Pn,layout_raster:Vn,layout_hillshade:ia,filter:ya,filter_operator:wa,geometry_type:Wn,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:Qn,expression:mr,light:en,paint:Jr,paint_fill:vn,"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:On,paint_circle:bn,paint_heatmap:An,paint_symbol:Fn,paint_raster:$n,paint_hillshade:ha,paint_background:Ia,transition:Mr,"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:Fr},Nr=function(R,U,ae,ve){this.message=(R?R+": ":"")+ae,ve&&(this.identifier=ve),U!=null&&U.__line__&&(this.line=U.__line__)};function mn(_){var R=_.key,U=_.value;return U?[new Nr(R,U,"constants have been deprecated as of v8")]:[]}function Rn(_){for(var R=[],U=arguments.length-1;U-- >0;)R[U]=arguments[U+1];for(var ae=0,ve=R;ae":_.itemType.kind==="value"?"array":"array<"+R+">"}else return _.kind}var ko=[Gr,qr,wn,zn,En,ga,Un,gi(Nn),_a];function Co(_,R){if(R.kind==="error")return null;if(_.kind==="array"){if(R.kind==="array"&&(R.N===0&&R.itemType.kind==="value"||!Co(_.itemType,R.itemType))&&(typeof _.N!="number"||_.N===R.N))return null}else{if(_.kind===R.kind)return null;if(_.kind==="value")for(var U=0,ae=ko;U255?255:Mt}function ve(Mt){return Mt<0?0:Mt>1?1:Mt}function we(Mt){return Mt[Mt.length-1]==="%"?ae(parseFloat(Mt)/100*255):ae(parseInt(Mt))}function Ee(Mt){return Mt[Mt.length-1]==="%"?ve(parseFloat(Mt)/100):ve(parseFloat(Mt))}function Je(Mt,_t,jt){return jt<0?jt+=1:jt>1&&(jt-=1),jt*6<1?Mt+(_t-Mt)*jt*6:jt*2<1?_t:jt*3<2?Mt+(_t-Mt)*(2/3-jt)*6:Mt}function dt(Mt){var _t=Mt.replace(/ /g,"").toLowerCase();if(_t in U)return U[_t].slice();if(_t[0]==="#"){if(_t.length===4){var jt=parseInt(_t.substr(1),16);return jt>=0&&jt<=4095?[(jt&3840)>>4|(jt&3840)>>8,jt&240|(jt&240)>>4,jt&15|(jt&15)<<4,1]:null}else if(_t.length===7){var jt=parseInt(_t.substr(1),16);return jt>=0&&jt<=16777215?[(jt&16711680)>>16,(jt&65280)>>8,jt&255,1]:null}return null}var nr=_t.indexOf("("),er=_t.indexOf(")");if(nr!==-1&&er+1===_t.length){var br=_t.substr(0,nr),Br=_t.substr(nr+1,er-(nr+1)).split(","),cn=1;switch(br){case"rgba":if(Br.length!==4)return null;cn=Ee(Br.pop());case"rgb":return Br.length!==3?null:[we(Br[0]),we(Br[1]),we(Br[2]),cn];case"hsla":if(Br.length!==4)return null;cn=Ee(Br.pop());case"hsl":if(Br.length!==3)return null;var nn=(parseFloat(Br[0])%360+360)%360/360,Ln=Ee(Br[1]),yn=Ee(Br[2]),Cn=yn<=.5?yn*(Ln+1):yn+Ln-yn*Ln,kn=yn*2-Cn;return[ae(Je(kn,Cn,nn+1/3)*255),ae(Je(kn,Cn,nn)*255),ae(Je(kn,Cn,nn-1/3)*255),cn];default:return null}}return null}try{R.parseCSSColor=dt}catch{}}),Vf=af.parseCSSColor,ti=function(R,U,ae,ve){ve===void 0&&(ve=1),this.r=R,this.g=U,this.b=ae,this.a=ve};ti.parse=function(R){if(R){if(R instanceof ti)return R;if(typeof R=="string"){var U=Vf(R);if(U)return new ti(U[0]/255*U[3],U[1]/255*U[3],U[2]/255*U[3],U[3])}}},ti.prototype.toString=function(){var R=this.toArray(),U=R[0],ae=R[1],ve=R[2],we=R[3];return"rgba("+Math.round(U)+","+Math.round(ae)+","+Math.round(ve)+","+we+")"},ti.prototype.toArray=function(){var R=this,U=R.r,ae=R.g,ve=R.b,we=R.a;return we===0?[0,0,0,0]:[U*255/we,ae*255/we,ve*255/we,we]},ti.black=new ti(0,0,0,1),ti.white=new ti(1,1,1,1),ti.transparent=new ti(0,0,0,0),ti.red=new ti(1,0,0,1);var eu=function(R,U,ae){R?this.sensitivity=U?"variant":"case":this.sensitivity=U?"accent":"base",this.locale=ae,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};eu.prototype.compare=function(R,U){return this.collator.compare(R,U)},eu.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var of=function(R,U,ae,ve,we){this.text=R,this.image=U,this.scale=ae,this.fontStack=ve,this.textColor=we},Ki=function(R){this.sections=R};Ki.fromString=function(R){return new Ki([new of(R,null,null,null,null)])},Ki.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(R){return R.text.length!==0||R.image&&R.image.name.length!==0})},Ki.factory=function(R){return R instanceof Ki?R:Ki.fromString(R)},Ki.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(R){return R.text}).join("")},Ki.prototype.serialize=function(){for(var R=["format"],U=0,ae=this.sections;U=0&&_<=255&&typeof R=="number"&&R>=0&&R<=255&&typeof U=="number"&&U>=0&&U<=255)){var ve=typeof ae=="number"?[_,R,U,ae]:[_,R,U];return"Invalid rgba value ["+ve.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof ae>"u"||typeof ae=="number"&&ae>=0&&ae<=1?null:"Invalid rgba value ["+[_,R,U,ae].join(", ")+"]: 'a' must be between 0 and 1."}function Iu(_){if(_===null)return!0;if(typeof _=="string")return!0;if(typeof _=="boolean")return!0;if(typeof _=="number")return!0;if(_ instanceof ti)return!0;if(_ instanceof eu)return!0;if(_ instanceof Ki)return!0;if(_ instanceof bo)return!0;if(Array.isArray(_)){for(var R=0,U=_;R2){var Je=R[1];if(typeof Je!="string"||!(Je in Cl)||Je==="object")return U.error('The item type argument of "array" must be one of string, number, boolean',1);Ee=Cl[Je],ae++}else Ee=Nn;var dt;if(R.length>3){if(R[2]!==null&&(typeof R[2]!="number"||R[2]<0||R[2]!==Math.floor(R[2])))return U.error('The length argument to "array" must be a positive integer literal',2);dt=R[2],ae++}ve=gi(Ee,dt)}else ve=Cl[we];for(var Mt=[];ae1)&&U.push(ve)}}return U.concat(this.args.map(function(we){return we.serialize()}))};var no=function(R){this.type=ga,this.sections=R};no.parse=function(R,U){if(R.length<2)return U.error("Expected at least one argument.");var ae=R[1];if(!Array.isArray(ae)&&typeof ae=="object")return U.error("First argument must be an image or text section.");for(var ve=[],we=!1,Ee=1;Ee<=R.length-1;++Ee){var Je=R[Ee];if(we&&typeof Je=="object"&&!Array.isArray(Je)){we=!1;var dt=null;if(Je["font-scale"]&&(dt=U.parse(Je["font-scale"],1,qr),!dt))return null;var Mt=null;if(Je["text-font"]&&(Mt=U.parse(Je["text-font"],1,gi(wn)),!Mt))return null;var _t=null;if(Je["text-color"]&&(_t=U.parse(Je["text-color"],1,En),!_t))return null;var jt=ve[ve.length-1];jt.scale=dt,jt.font=Mt,jt.textColor=_t}else{var nr=U.parse(R[Ee],1,Nn);if(!nr)return null;var er=nr.type.kind;if(er!=="string"&&er!=="value"&&er!=="null"&&er!=="resolvedImage")return U.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");we=!0,ve.push({content:nr,scale:null,font:null,textColor:null})}}return new no(ve)},no.prototype.evaluate=function(R){var U=function(ae){var ve=ae.content.evaluate(R);return Ii(ve)===_a?new of("",ve,null,null,null):new of(El(ve),null,ae.scale?ae.scale.evaluate(R):null,ae.font?ae.font.evaluate(R).join(","):null,ae.textColor?ae.textColor.evaluate(R):null)};return new Ki(this.sections.map(U))},no.prototype.eachChild=function(R){for(var U=0,ae=this.sections;U-1),ae},zo.prototype.eachChild=function(R){R(this.input)},zo.prototype.outputDefined=function(){return!1},zo.prototype.serialize=function(){return["image",this.input.serialize()]};var Hf={"to-boolean":zn,"to-color":En,"to-number":qr,"to-string":wn},Lo=function(R,U){this.type=R,this.args=U};Lo.parse=function(R,U){if(R.length<2)return U.error("Expected at least one argument.");var ae=R[0];if((ae==="to-boolean"||ae==="to-string")&&R.length!==2)return U.error("Expected one argument.");for(var ve=Hf[ae],we=[],Ee=1;Ee4?ae="Invalid rbga value "+JSON.stringify(U)+": expected an array containing either three or four numeric values.":ae=Ml(U[0],U[1],U[2],U[3]),!ae))return new ti(U[0]/255,U[1]/255,U[2]/255,U[3])}throw new Hi(ae||"Could not parse color from value '"+(typeof U=="string"?U:String(JSON.stringify(U)))+"'")}else if(this.type.kind==="number"){for(var dt=null,Mt=0,_t=this.args;Mt<_t.length;Mt+=1){var jt=_t[Mt];if(dt=jt.evaluate(R),dt===null)return 0;var nr=Number(dt);if(!isNaN(nr))return nr}throw new Hi("Could not convert "+JSON.stringify(dt)+" to number.")}else return this.type.kind==="formatted"?Ki.fromString(El(this.args[0].evaluate(R))):this.type.kind==="resolvedImage"?bo.fromString(El(this.args[0].evaluate(R))):El(this.args[0].evaluate(R))},Lo.prototype.eachChild=function(R){this.args.forEach(R)},Lo.prototype.outputDefined=function(){return this.args.every(function(R){return R.outputDefined()})},Lo.prototype.serialize=function(){if(this.type.kind==="formatted")return new no([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new zo(this.args[0]).serialize();var R=["to-"+this.type.kind];return this.eachChild(function(U){R.push(U.serialize())}),R};var jc=["Unknown","Point","LineString","Polygon"],cs=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};cs.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},cs.prototype.geometryType=function(){return this.feature?typeof this.feature.type=="number"?jc[this.feature.type]:this.feature.type:null},cs.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},cs.prototype.canonicalID=function(){return this.canonical},cs.prototype.properties=function(){return this.feature&&this.feature.properties||{}},cs.prototype.parseColor=function(R){var U=this._parseColorCache[R];return U||(U=this._parseColorCache[R]=ti.parse(R)),U};var Ji=function(R,U,ae,ve){this.name=R,this.type=U,this._evaluate=ae,this.args=ve};Ji.prototype.evaluate=function(R){return this._evaluate(R,this.args)},Ji.prototype.eachChild=function(R){this.args.forEach(R)},Ji.prototype.outputDefined=function(){return!1},Ji.prototype.serialize=function(){return[this.name].concat(this.args.map(function(R){return R.serialize()}))},Ji.parse=function(R,U){var ae,ve=R[0],we=Ji.definitions[ve];if(!we)return U.error('Unknown expression "'+ve+'". If you wanted a literal array, use ["literal", [...]].',0);for(var Ee=Array.isArray(we)?we[0]:we.type,Je=Array.isArray(we)?[[we[1],we[2]]]:we.overloads,dt=Je.filter(function(Aa){var Ca=Aa[0];return!Array.isArray(Ca)||Ca.length===R.length-1}),Mt=null,_t=0,jt=dt;_t=R[2]||_[1]<=R[1]||_[3]>=R[3])}function Zc(_,R){var U=Gf(_[0]),ae=Xc(_[1]),ve=Math.pow(2,R.z);return[Math.round(U*ve*hs),Math.round(ae*ve*hs)]}function Kc(_,R,U){var ae=_[0]-R[0],ve=_[1]-R[1],we=_[0]-U[0],Ee=_[1]-U[1];return ae*Ee-we*ve===0&&ae*we<=0&&ve*Ee<=0}function Jc(_,R,U){return R[1]>_[1]!=U[1]>_[1]&&_[0]<(U[0]-R[0])*(_[1]-R[1])/(U[1]-R[1])+R[0]}function uf(_,R){for(var U=!1,ae=0,ve=R.length;ae0&&jt<0||_t<0&&jt>0}function Yf(_,R,U,ae){var ve=[R[0]-_[0],R[1]-_[1]],we=[ae[0]-U[0],ae[1]-U[1]];return $c(we,ve)===0?!1:!!(Wf(_,R,U,ae)&&Wf(U,ae,_,R))}function al(_,R,U){for(var ae=0,ve=U;aeU[2]){var ve=ae*.5,we=_[0]-U[0]>ve?-ae:U[0]-_[0]>ve?ae:0;we===0&&(we=_[0]-U[2]>ve?-ae:U[2]-_[0]>ve?ae:0),_[0]+=we}lf(R,_)}function qc(_){_[0]=_[1]=1/0,_[2]=_[3]=-1/0}function zu(_,R,U,ae){for(var ve=Math.pow(2,ae.z)*hs,we=[ae.x*hs,ae.y*hs],Ee=[],Je=0,dt=_;Je=0)return!1;var U=!0;return _.eachChild(function(ae){U&&!nu(ae,R)&&(U=!1)}),U}var Us=function(R,U){this.type=U.type,this.name=R,this.boundExpression=U};Us.parse=function(R,U){if(R.length!==2||typeof R[1]!="string")return U.error("'var' expression requires exactly one string literal argument.");var ae=R[1];return U.scope.has(ae)?new Us(ae,U.scope.get(ae)):U.error('Unknown variable "'+ae+'". Make sure "'+ae+'" has been bound in an enclosing "let" expression before using it.',1)},Us.prototype.evaluate=function(R){return this.boundExpression.evaluate(R)},Us.prototype.eachChild=function(){},Us.prototype.outputDefined=function(){return!1},Us.prototype.serialize=function(){return["var",this.name]};var vs=function(R,U,ae,ve,we){U===void 0&&(U=[]),ve===void 0&&(ve=new Zr),we===void 0&&(we=[]),this.registry=R,this.path=U,this.key=U.map(function(Ee){return"["+Ee+"]"}).join(""),this.scope=ve,this.errors=we,this.expectedType=ae};vs.prototype.parse=function(R,U,ae,ve,we){return we===void 0&&(we={}),U?this.concat(U,ae,ve)._parse(R,we):this._parse(R,we)},vs.prototype._parse=function(R,U){(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number")&&(R=["literal",R]);function ae(_t,jt,nr){return nr==="assert"?new ro(jt,[_t]):nr==="coerce"?new Lo(jt,[_t]):_t}if(Array.isArray(R)){if(R.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var ve=R[0];if(typeof ve!="string")return this.error("Expression name must be a string, but found "+typeof ve+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var we=this.registry[ve];if(we){var Ee=we.parse(R,this);if(!Ee)return null;if(this.expectedType){var Je=this.expectedType,dt=Ee.type;if((Je.kind==="string"||Je.kind==="number"||Je.kind==="boolean"||Je.kind==="object"||Je.kind==="array")&&dt.kind==="value")Ee=ae(Ee,Je,U.typeAnnotation||"assert");else if((Je.kind==="color"||Je.kind==="formatted"||Je.kind==="resolvedImage")&&(dt.kind==="value"||dt.kind==="string"))Ee=ae(Ee,Je,U.typeAnnotation||"coerce");else if(this.checkSubtype(Je,dt))return null}if(!(Ee instanceof Oi)&&Ee.type.kind!=="resolvedImage"&&ff(Ee)){var Mt=new cs;try{Ee=new Oi(Ee.type,Ee.evaluate(Mt))}catch(_t){return this.error(_t.message),null}}return Ee}return this.error('Unknown expression "'+ve+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof R>"u"?this.error("'undefined' value invalid. Use null instead."):typeof R=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof R+" instead.")},vs.prototype.concat=function(R,U,ae){var ve=typeof R=="number"?this.path.concat(R):this.path,we=ae?this.scope.concat(ae):this.scope;return new vs(this.registry,ve,U||null,we,this.errors)},vs.prototype.error=function(R){for(var U=[],ae=arguments.length-1;ae-- >0;)U[ae]=arguments[ae+1];var ve=""+this.key+U.map(function(we){return"["+we+"]"}).join("");this.errors.push(new Er(ve,R))},vs.prototype.checkSubtype=function(R,U){var ae=Co(R,U);return ae&&this.error(ae),ae};function ff(_){if(_ instanceof Us)return ff(_.boundExpression);if(_ instanceof Ji&&_.name==="error")return!1;if(_ instanceof Bs)return!1;if(_ instanceof Zo)return!1;var R=_ instanceof Lo||_ instanceof ro,U=!0;return _.eachChild(function(ae){R?U=U&&ff(ae):U=U&&ae instanceof Oi}),U?Pl(_)&&nu(_,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function _l(_,R){for(var U=_.length-1,ae=0,ve=U,we=0,Ee,Je;ae<=ve;)if(we=Math.floor((ae+ve)/2),Ee=_[we],Je=_[we+1],Ee<=R){if(we===U||RR)ve=we-1;else throw new Hi("Input is not a number.");return 0}var Ko=function(R,U,ae){this.type=R,this.input=U,this.labels=[],this.outputs=[];for(var ve=0,we=ae;ve=Je)return U.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Mt);var jt=U.parse(dt,_t,we);if(!jt)return null;we=we||jt.type,ve.push([Je,jt])}return new Ko(we,ae,ve)},Ko.prototype.evaluate=function(R){var U=this.labels,ae=this.outputs;if(U.length===1)return ae[0].evaluate(R);var ve=this.input.evaluate(R);if(ve<=U[0])return ae[0].evaluate(R);var we=U.length;if(ve>=U[we-1])return ae[we-1].evaluate(R);var Ee=_l(U,ve);return ae[Ee].evaluate(R)},Ko.prototype.eachChild=function(R){R(this.input);for(var U=0,ae=this.outputs;U0&&R.push(this.labels[U]),R.push(this.outputs[U].serialize());return R};function _i(_,R,U){return _*(1-U)+R*U}function cf(_,R,U){return new ti(_i(_.r,R.r,U),_i(_.g,R.g,U),_i(_.b,R.b,U),_i(_.a,R.a,U))}function eh(_,R,U){return _.map(function(ae,ve){return _i(ae,R[ve],U)})}var Fu=Object.freeze({__proto__:null,number:_i,color:cf,array:eh}),Rl=.95047,Dl=1,Po=1.08883,Nu=4/29,Il=6/29,Bu=3*Il*Il,th=Il*Il*Il,Kf=Math.PI/180,hf=180/Math.PI;function vf(_){return _>th?Math.pow(_,.3333333333333333):_/Bu+Nu}function df(_){return _>Il?_*_*_:Bu*(_-Nu)}function kl(_){return 255*(_<=.0031308?12.92*_:1.055*Math.pow(_,.4166666666666667)-.055)}function Uu(_){return _/=255,_<=.04045?_/12.92:Math.pow((_+.055)/1.055,2.4)}function au(_){var R=Uu(_.r),U=Uu(_.g),ae=Uu(_.b),ve=vf((.4124564*R+.3575761*U+.1804375*ae)/Rl),we=vf((.2126729*R+.7151522*U+.072175*ae)/Dl),Ee=vf((.0193339*R+.119192*U+.9503041*ae)/Po);return{l:116*we-16,a:500*(ve-we),b:200*(we-Ee),alpha:_.a}}function Vu(_){var R=(_.l+16)/116,U=isNaN(_.a)?R:R+_.a/500,ae=isNaN(_.b)?R:R-_.b/200;return R=Dl*df(R),U=Rl*df(U),ae=Po*df(ae),new ti(kl(3.2404542*U-1.5371385*R-.4985314*ae),kl(-.969266*U+1.8760108*R+.041556*ae),kl(.0556434*U-.2040259*R+1.0572252*ae),_.alpha)}function yi(_,R,U){return{l:_i(_.l,R.l,U),a:_i(_.a,R.a,U),b:_i(_.b,R.b,U),alpha:_i(_.alpha,R.alpha,U)}}function Jf(_){var R=au(_),U=R.l,ae=R.a,ve=R.b,we=Math.atan2(ve,ae)*hf;return{h:we<0?we+360:we,c:Math.sqrt(ae*ae+ve*ve),l:U,alpha:_.a}}function Jo(_){var R=_.h*Kf,U=_.c,ae=_.l;return Vu({l:ae,a:Math.cos(R)*U,b:Math.sin(R)*U,alpha:_.alpha})}function Qf(_,R,U){var ae=R-_;return _+U*(ae>180||ae<-180?ae-360*Math.round(ae/360):ae)}function pf(_,R,U){return{h:Qf(_.h,R.h,U),c:_i(_.c,R.c,U),l:_i(_.l,R.l,U),alpha:_i(_.alpha,R.alpha,U)}}var ol={forward:au,reverse:Vu,interpolate:yi},Vs={forward:Jf,reverse:Jo,interpolate:pf},Hu=Object.freeze({__proto__:null,lab:ol,hcl:Vs}),ki=function(R,U,ae,ve,we){this.type=R,this.operator=U,this.interpolation=ae,this.input=ve,this.labels=[],this.outputs=[];for(var Ee=0,Je=we;Ee1}))return U.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ve={name:"cubic-bezier",controlPoints:dt}}else return U.error("Unknown interpolation type "+String(ve[0]),1,0);if(R.length-1<4)return U.error("Expected at least 4 arguments, but found only "+(R.length-1)+".");if((R.length-1)%2!==0)return U.error("Expected an even number of arguments.");if(we=U.parse(we,2,qr),!we)return null;var Mt=[],_t=null;ae==="interpolate-hcl"||ae==="interpolate-lab"?_t=En:U.expectedType&&U.expectedType.kind!=="value"&&(_t=U.expectedType);for(var jt=0;jt=nr)return U.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',br);var cn=U.parse(er,Br,_t);if(!cn)return null;_t=_t||cn.type,Mt.push([nr,cn])}return _t.kind!=="number"&&_t.kind!=="color"&&!(_t.kind==="array"&&_t.itemType.kind==="number"&&typeof _t.N=="number")?U.error("Type "+ai(_t)+" is not interpolatable."):new ki(_t,ae,ve,we,Mt)},ki.prototype.evaluate=function(R){var U=this.labels,ae=this.outputs;if(U.length===1)return ae[0].evaluate(R);var ve=this.input.evaluate(R);if(ve<=U[0])return ae[0].evaluate(R);var we=U.length;if(ve>=U[we-1])return ae[we-1].evaluate(R);var Ee=_l(U,ve),Je=U[Ee],dt=U[Ee+1],Mt=ki.interpolationFactor(this.interpolation,ve,Je,dt),_t=ae[Ee].evaluate(R),jt=ae[Ee+1].evaluate(R);return this.operator==="interpolate"?Fu[this.type.kind.toLowerCase()](_t,jt,Mt):this.operator==="interpolate-hcl"?Vs.reverse(Vs.interpolate(Vs.forward(_t),Vs.forward(jt),Mt)):ol.reverse(ol.interpolate(ol.forward(_t),ol.forward(jt),Mt))},ki.prototype.eachChild=function(R){R(this.input);for(var U=0,ae=this.outputs;U=ae.length)throw new Hi("Array index out of bounds: "+U+" > "+(ae.length-1)+".");if(U!==Math.floor(U))throw new Hi("Array index must be an integer, but found "+U+" instead.");return ae[U]},sl.prototype.eachChild=function(R){R(this.index),R(this.input)},sl.prototype.outputDefined=function(){return!1},sl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Hs=function(R,U){this.type=zn,this.needle=R,this.haystack=U};Hs.parse=function(R,U){if(R.length!==3)return U.error("Expected 2 arguments, but found "+(R.length-1)+" instead.");var ae=U.parse(R[1],1,Nn),ve=U.parse(R[2],2,Nn);return!ae||!ve?null:to(ae.type,[zn,wn,qr,Gr,Nn])?new Hs(ae,ve):U.error("Expected first argument to be of type boolean, string, number or null, but found "+ai(ae.type)+" instead")},Hs.prototype.evaluate=function(R){var U=this.needle.evaluate(R),ae=this.haystack.evaluate(R);if(!ae)return!1;if(!Sl(U,["boolean","string","number","null"]))throw new Hi("Expected first argument to be of type boolean, string, number or null, but found "+ai(Ii(U))+" instead.");if(!Sl(ae,["string","array"]))throw new Hi("Expected second argument to be of type array or string, but found "+ai(Ii(ae))+" instead.");return ae.indexOf(U)>=0},Hs.prototype.eachChild=function(R){R(this.needle),R(this.haystack)},Hs.prototype.outputDefined=function(){return!0},Hs.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var $o=function(R,U,ae){this.type=qr,this.needle=R,this.haystack=U,this.fromIndex=ae};$o.parse=function(R,U){if(R.length<=2||R.length>=5)return U.error("Expected 3 or 4 arguments, but found "+(R.length-1)+" instead.");var ae=U.parse(R[1],1,Nn),ve=U.parse(R[2],2,Nn);if(!ae||!ve)return null;if(!to(ae.type,[zn,wn,qr,Gr,Nn]))return U.error("Expected first argument to be of type boolean, string, number or null, but found "+ai(ae.type)+" instead");if(R.length===4){var we=U.parse(R[3],3,qr);return we?new $o(ae,ve,we):null}else return new $o(ae,ve)},$o.prototype.evaluate=function(R){var U=this.needle.evaluate(R),ae=this.haystack.evaluate(R);if(!Sl(U,["boolean","string","number","null"]))throw new Hi("Expected first argument to be of type boolean, string, number or null, but found "+ai(Ii(U))+" instead.");if(!Sl(ae,["string","array"]))throw new Hi("Expected second argument to be of type array or string, but found "+ai(Ii(ae))+" instead.");if(this.fromIndex){var ve=this.fromIndex.evaluate(R);return ae.indexOf(U,ve)}return ae.indexOf(U)},$o.prototype.eachChild=function(R){R(this.needle),R(this.haystack),this.fromIndex&&R(this.fromIndex)},$o.prototype.outputDefined=function(){return!1},$o.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var R=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),R]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Cs=function(R,U,ae,ve,we,Ee){this.inputType=R,this.type=U,this.input=ae,this.cases=ve,this.outputs=we,this.otherwise=Ee};Cs.parse=function(R,U){if(R.length<5)return U.error("Expected at least 4 arguments, but found only "+(R.length-1)+".");if(R.length%2!==1)return U.error("Expected an even number of arguments.");var ae,ve;U.expectedType&&U.expectedType.kind!=="value"&&(ve=U.expectedType);for(var we={},Ee=[],Je=2;JeNumber.MAX_SAFE_INTEGER)return _t.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof er=="number"&&Math.floor(er)!==er)return _t.error("Numeric branch labels must be integer values.");if(!ae)ae=Ii(er);else if(_t.checkSubtype(ae,Ii(er)))return null;if(typeof we[String(er)]<"u")return _t.error("Branch labels must be unique.");we[String(er)]=Ee.length}var br=U.parse(Mt,Je,ve);if(!br)return null;ve=ve||br.type,Ee.push(br)}var Br=U.parse(R[1],1,Nn);if(!Br)return null;var cn=U.parse(R[R.length-1],R.length-1,ve);return!cn||Br.type.kind!=="value"&&U.concat(1).checkSubtype(ae,Br.type)?null:new Cs(ae,ve,Br,we,Ee,cn)},Cs.prototype.evaluate=function(R){var U=this.input.evaluate(R),ae=Ii(U)===this.inputType&&this.outputs[this.cases[U]]||this.otherwise;return ae.evaluate(R)},Cs.prototype.eachChild=function(R){R(this.input),this.outputs.forEach(R),R(this.otherwise)},Cs.prototype.outputDefined=function(){return this.outputs.every(function(R){return R.outputDefined()})&&this.otherwise.outputDefined()},Cs.prototype.serialize=function(){for(var R=this,U=["match",this.input.serialize()],ae=Object.keys(this.cases).sort(),ve=[],we={},Ee=0,Je=ae;Ee=5)return U.error("Expected 3 or 4 arguments, but found "+(R.length-1)+" instead.");var ae=U.parse(R[1],1,Nn),ve=U.parse(R[2],2,qr);if(!ae||!ve)return null;if(!to(ae.type,[gi(Nn),wn,Nn]))return U.error("Expected first argument to be of type array or string, but found "+ai(ae.type)+" instead");if(R.length===4){var we=U.parse(R[3],3,qr);return we?new Vo(ae.type,ae,ve,we):null}else return new Vo(ae.type,ae,ve)},Vo.prototype.evaluate=function(R){var U=this.input.evaluate(R),ae=this.beginIndex.evaluate(R);if(!Sl(U,["string","array"]))throw new Hi("Expected first argument to be of type array or string, but found "+ai(Ii(U))+" instead.");if(this.endIndex){var ve=this.endIndex.evaluate(R);return U.slice(ae,ve)}return U.slice(ae)},Vo.prototype.eachChild=function(R){R(this.input),R(this.beginIndex),this.endIndex&&R(this.endIndex)},Vo.prototype.outputDefined=function(){return!1},Vo.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var R=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),R]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function ou(_,R){return _==="=="||_==="!="?R.kind==="boolean"||R.kind==="string"||R.kind==="number"||R.kind==="null"||R.kind==="value":R.kind==="string"||R.kind==="number"||R.kind==="value"}function rh(_,R,U){return R===U}function nh(_,R,U){return R!==U}function ah(_,R,U){return RU}function gf(_,R,U){return R<=U}function $f(_,R,U){return R>=U}function zl(_,R,U,ae){return ae.compare(R,U)===0}function Qi(_,R,U,ae){return!zl(_,R,U,ae)}function Oo(_,R,U,ae){return ae.compare(R,U)<0}function Ol(_,R,U,ae){return ae.compare(R,U)>0}function qf(_,R,U,ae){return ae.compare(R,U)<=0}function su(_,R,U,ae){return ae.compare(R,U)>=0}function Ls(_,R,U){var ae=_!=="=="&&_!=="!=";return function(){function ve(we,Ee,Je){this.type=zn,this.lhs=we,this.rhs=Ee,this.collator=Je,this.hasUntypedArgument=we.type.kind==="value"||Ee.type.kind==="value"}return ve.parse=function(Ee,Je){if(Ee.length!==3&&Ee.length!==4)return Je.error("Expected two or three arguments.");var dt=Ee[0],Mt=Je.parse(Ee[1],1,Nn);if(!Mt)return null;if(!ou(dt,Mt.type))return Je.concat(1).error('"'+dt+`" comparisons are not supported for type '`+ai(Mt.type)+"'.");var _t=Je.parse(Ee[2],2,Nn);if(!_t)return null;if(!ou(dt,_t.type))return Je.concat(2).error('"'+dt+`" comparisons are not supported for type '`+ai(_t.type)+"'.");if(Mt.type.kind!==_t.type.kind&&Mt.type.kind!=="value"&&_t.type.kind!=="value")return Je.error("Cannot compare types '"+ai(Mt.type)+"' and '"+ai(_t.type)+"'.");ae&&(Mt.type.kind==="value"&&_t.type.kind!=="value"?Mt=new ro(_t.type,[Mt]):Mt.type.kind!=="value"&&_t.type.kind==="value"&&(_t=new ro(Mt.type,[_t])));var jt=null;if(Ee.length===4){if(Mt.type.kind!=="string"&&_t.type.kind!=="string"&&Mt.type.kind!=="value"&&_t.type.kind!=="value")return Je.error("Cannot use collator to compare non-string types.");if(jt=Je.parse(Ee[3],3,sa),!jt)return null}return new ve(Mt,_t,jt)},ve.prototype.evaluate=function(Ee){var Je=this.lhs.evaluate(Ee),dt=this.rhs.evaluate(Ee);if(ae&&this.hasUntypedArgument){var Mt=Ii(Je),_t=Ii(dt);if(Mt.kind!==_t.kind||!(Mt.kind==="string"||Mt.kind==="number"))throw new Hi('Expected arguments for "'+_+'" to be (string, string) or (number, number), but found ('+Mt.kind+", "+_t.kind+") instead.")}if(this.collator&&!ae&&this.hasUntypedArgument){var jt=Ii(Je),nr=Ii(dt);if(jt.kind!=="string"||nr.kind!=="string")return R(Ee,Je,dt)}return this.collator?U(Ee,Je,dt,this.collator.evaluate(Ee)):R(Ee,Je,dt)},ve.prototype.eachChild=function(Ee){Ee(this.lhs),Ee(this.rhs),this.collator&&Ee(this.collator)},ve.prototype.outputDefined=function(){return!0},ve.prototype.serialize=function(){var Ee=[_];return this.eachChild(function(Je){Ee.push(Je.serialize())}),Ee},ve}()}var oh=Ls("==",rh,zl),ec=Ls("!=",nh,Qi),tc=Ls("<",ah,Oo),yf=Ls(">",ih,Ol),rc=Ls("<=",gf,qf),wo=Ls(">=",$f,su),es=function(R,U,ae,ve,we){this.type=wn,this.number=R,this.locale=U,this.currency=ae,this.minFractionDigits=ve,this.maxFractionDigits=we};es.parse=function(R,U){if(R.length!==3)return U.error("Expected two arguments.");var ae=U.parse(R[1],1,qr);if(!ae)return null;var ve=R[2];if(typeof ve!="object"||Array.isArray(ve))return U.error("NumberFormat options argument must be an object.");var we=null;if(ve.locale&&(we=U.parse(ve.locale,1,wn),!we))return null;var Ee=null;if(ve.currency&&(Ee=U.parse(ve.currency,1,wn),!Ee))return null;var Je=null;if(ve["min-fraction-digits"]&&(Je=U.parse(ve["min-fraction-digits"],1,qr),!Je))return null;var dt=null;return ve["max-fraction-digits"]&&(dt=U.parse(ve["max-fraction-digits"],1,qr),!dt)?null:new es(ae,we,Ee,Je,dt)},es.prototype.evaluate=function(R){return new Intl.NumberFormat(this.locale?this.locale.evaluate(R):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(R):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(R):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(R):void 0}).format(this.number.evaluate(R))},es.prototype.eachChild=function(R){R(this.number),this.locale&&R(this.locale),this.currency&&R(this.currency),this.minFractionDigits&&R(this.minFractionDigits),this.maxFractionDigits&&R(this.maxFractionDigits)},es.prototype.outputDefined=function(){return!1},es.prototype.serialize=function(){var R={};return this.locale&&(R.locale=this.locale.serialize()),this.currency&&(R.currency=this.currency.serialize()),this.minFractionDigits&&(R["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(R["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),R]};var Gs=function(R){this.type=qr,this.input=R};Gs.parse=function(R,U){if(R.length!==2)return U.error("Expected 1 argument, but found "+(R.length-1)+" instead.");var ae=U.parse(R[1],1);return ae?ae.type.kind!=="array"&&ae.type.kind!=="string"&&ae.type.kind!=="value"?U.error("Expected argument of type string or array, but found "+ai(ae.type)+" instead."):new Gs(ae):null},Gs.prototype.evaluate=function(R){var U=this.input.evaluate(R);if(typeof U=="string")return U.length;if(Array.isArray(U))return U.length;throw new Hi("Expected value to be of type string or array, but found "+ai(Ii(U))+" instead.")},Gs.prototype.eachChild=function(R){R(this.input)},Gs.prototype.outputDefined=function(){return!1},Gs.prototype.serialize=function(){var R=["length"];return this.eachChild(function(U){R.push(U.serialize())}),R};var Fl={"==":oh,"!=":ec,">":yf,"<":tc,">=":wo,"<=":rc,array:ro,at:sl,boolean:ro,case:qo,coalesce:Qo,collator:Bs,format:no,image:zo,in:Hs,"index-of":$o,interpolate:ki,"interpolate-hcl":ki,"interpolate-lab":ki,length:Gs,let:Es,literal:Oi,match:Cs,number:ro,"number-format":es,object:ro,slice:Vo,step:Ko,string:ro,"to-boolean":Lo,"to-color":Lo,"to-number":Lo,"to-string":Lo,var:Us,within:Zo};function Gu(_,R){var U=R[0],ae=R[1],ve=R[2],we=R[3];U=U.evaluate(_),ae=ae.evaluate(_),ve=ve.evaluate(_);var Ee=we?we.evaluate(_):1,Je=Ml(U,ae,ve,Ee);if(Je)throw new Hi(Je);return new ti(U/255*Ee,ae/255*Ee,ve/255*Ee,Ee)}function ll(_,R){return _ in R}function ul(_,R){var U=R[_];return typeof U>"u"?null:U}function nc(_,R,U,ae){for(;U<=ae;){var ve=U+ae>>1;if(R[ve]===_)return!0;R[ve]>_?ae=ve-1:U=ve+1}return!1}function Ps(_){return{type:_}}Ji.register(Fl,{error:[va,[wn],function(_,R){var U=R[0];throw new Hi(U.evaluate(_))}],typeof:[wn,[Nn],function(_,R){var U=R[0];return ai(Ii(U.evaluate(_)))}],"to-rgba":[gi(qr,4),[En],function(_,R){var U=R[0];return U.evaluate(_).toArray()}],rgb:[En,[qr,qr,qr],Gu],rgba:[En,[qr,qr,qr,qr],Gu],has:{type:zn,overloads:[[[wn],function(_,R){var U=R[0];return ll(U.evaluate(_),_.properties())}],[[wn,Un],function(_,R){var U=R[0],ae=R[1];return ll(U.evaluate(_),ae.evaluate(_))}]]},get:{type:Nn,overloads:[[[wn],function(_,R){var U=R[0];return ul(U.evaluate(_),_.properties())}],[[wn,Un],function(_,R){var U=R[0],ae=R[1];return ul(U.evaluate(_),ae.evaluate(_))}]]},"feature-state":[Nn,[wn],function(_,R){var U=R[0];return ul(U.evaluate(_),_.featureState||{})}],properties:[Un,[],function(_){return _.properties()}],"geometry-type":[wn,[],function(_){return _.geometryType()}],id:[Nn,[],function(_){return _.id()}],zoom:[qr,[],function(_){return _.globals.zoom}],"heatmap-density":[qr,[],function(_){return _.globals.heatmapDensity||0}],"line-progress":[qr,[],function(_){return _.globals.lineProgress||0}],accumulated:[Nn,[],function(_){return _.globals.accumulated===void 0?null:_.globals.accumulated}],"+":[qr,Ps(qr),function(_,R){for(var U=0,ae=0,ve=R;ae":[zn,[wn,Nn],function(_,R){var U=R[0],ae=R[1],ve=_.properties()[U.value],we=ae.value;return typeof ve==typeof we&&ve>we}],"filter-id->":[zn,[Nn],function(_,R){var U=R[0],ae=_.id(),ve=U.value;return typeof ae==typeof ve&&ae>ve}],"filter-<=":[zn,[wn,Nn],function(_,R){var U=R[0],ae=R[1],ve=_.properties()[U.value],we=ae.value;return typeof ve==typeof we&&ve<=we}],"filter-id-<=":[zn,[Nn],function(_,R){var U=R[0],ae=_.id(),ve=U.value;return typeof ae==typeof ve&&ae<=ve}],"filter->=":[zn,[wn,Nn],function(_,R){var U=R[0],ae=R[1],ve=_.properties()[U.value],we=ae.value;return typeof ve==typeof we&&ve>=we}],"filter-id->=":[zn,[Nn],function(_,R){var U=R[0],ae=_.id(),ve=U.value;return typeof ae==typeof ve&&ae>=ve}],"filter-has":[zn,[Nn],function(_,R){var U=R[0];return U.value in _.properties()}],"filter-has-id":[zn,[],function(_){return _.id()!==null&&_.id()!==void 0}],"filter-type-in":[zn,[gi(wn)],function(_,R){var U=R[0];return U.value.indexOf(_.geometryType())>=0}],"filter-id-in":[zn,[gi(Nn)],function(_,R){var U=R[0];return U.value.indexOf(_.id())>=0}],"filter-in-small":[zn,[wn,gi(Nn)],function(_,R){var U=R[0],ae=R[1];return ae.value.indexOf(_.properties()[U.value])>=0}],"filter-in-large":[zn,[wn,gi(Nn)],function(_,R){var U=R[0],ae=R[1];return nc(_.properties()[U.value],ae.value,0,ae.value.length-1)}],all:{type:zn,overloads:[[[zn,zn],function(_,R){var U=R[0],ae=R[1];return U.evaluate(_)&&ae.evaluate(_)}],[Ps(zn),function(_,R){for(var U=0,ae=R;U-1}function Bl(_){return!!_.expression&&_.expression.interpolated}function vi(_){return _ instanceof Number?"number":_ instanceof String?"string":_ instanceof Boolean?"boolean":Array.isArray(_)?"array":_===null?"null":typeof _}function Ul(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)}function Wu(_){return _}function ac(_,R){var U=R.type==="color",ae=_.stops&&typeof _.stops[0][0]=="object",ve=ae||_.property!==void 0,we=ae||!ve,Ee=_.type||(Bl(R)?"exponential":"interval");if(U&&(_=Rn({},_),_.stops&&(_.stops=_.stops.map(function(ta){return[ta[0],ti.parse(ta[1])]})),_.default?_.default=ti.parse(_.default):_.default=ti.parse(R.default)),_.colorSpace&&_.colorSpace!=="rgb"&&!Hu[_.colorSpace])throw new Error("Unknown color space: "+_.colorSpace);var Je,dt,Mt;if(Ee==="exponential")Je=mf;else if(Ee==="interval")Je=Yu;else if(Ee==="categorical"){Je=uu,dt=Object.create(null);for(var _t=0,jt=_.stops;_t=_.stops[ae-1][0])return _.stops[ae-1][1];var ve=_l(_.stops.map(function(we){return we[0]}),U);return _.stops[ve][1]}function mf(_,R,U){var ae=_.base!==void 0?_.base:1;if(vi(U)!=="number")return Vl(_.default,R.default);var ve=_.stops.length;if(ve===1||U<=_.stops[0][0])return _.stops[0][1];if(U>=_.stops[ve-1][0])return _.stops[ve-1][1];var we=_l(_.stops.map(function(jt){return jt[0]}),U),Ee=cu(U,ae,_.stops[we][0],_.stops[we+1][0]),Je=_.stops[we][1],dt=_.stops[we+1][1],Mt=Fu[R.type]||Wu;if(_.colorSpace&&_.colorSpace!=="rgb"){var _t=Hu[_.colorSpace];Mt=function(jt,nr){return _t.reverse(_t.interpolate(_t.forward(jt),_t.forward(nr),Ee))}}return typeof Je.evaluate=="function"?{evaluate:function(){for(var nr=[],er=arguments.length;er--;)nr[er]=arguments[er];var br=Je.evaluate.apply(void 0,nr),Br=dt.evaluate.apply(void 0,nr);if(!(br===void 0||Br===void 0))return Mt(br,Br,Ee)}}:Mt(Je,dt,Ee)}function fu(_,R,U){return R.type==="color"?U=ti.parse(U):R.type==="formatted"?U=Ki.fromString(U.toString()):R.type==="resolvedImage"?U=bo.fromString(U.toString()):vi(U)!==R.type&&(R.type!=="enum"||!R.values[U])&&(U=void 0),Vl(U,_.default,R.default)}function cu(_,R,U,ae){var ve=ae-U,we=_-U;return ve===0?0:R===1?we/ve:(Math.pow(R,we)-1)/(Math.pow(R,ve)-1)}var Ys=function(R,U){this.expression=R,this._warningHistory={},this._evaluator=new cs,this._defaultValue=U?ic(U):null,this._enumValues=U&&U.type==="enum"?U.values:null};Ys.prototype.evaluateWithoutErrorHandling=function(R,U,ae,ve,we,Ee){return this._evaluator.globals=R,this._evaluator.feature=U,this._evaluator.featureState=ae,this._evaluator.canonical=ve,this._evaluator.availableImages=we||null,this._evaluator.formattedSection=Ee,this.expression.evaluate(this._evaluator)},Ys.prototype.evaluate=function(R,U,ae,ve,we,Ee){this._evaluator.globals=R,this._evaluator.feature=U||null,this._evaluator.featureState=ae||null,this._evaluator.canonical=ve,this._evaluator.availableImages=we||null,this._evaluator.formattedSection=Ee||null;try{var Je=this.expression.evaluate(this._evaluator);if(Je==null||typeof Je=="number"&&Je!==Je)return this._defaultValue;if(this._enumValues&&!(Je in this._enumValues))throw new Hi("Expected value to be one of "+Object.keys(this._enumValues).map(function(dt){return JSON.stringify(dt)}).join(", ")+", but found "+JSON.stringify(Je)+" instead.");return Je}catch(dt){return this._warningHistory[dt.message]||(this._warningHistory[dt.message]=!0,typeof console<"u"&&console.warn(dt.message)),this._defaultValue}};function hu(_){return Array.isArray(_)&&_.length>0&&typeof _[0]=="string"&&_[0]in Fl}function js(_,R){var U=new vs(Fl,[],R?sh(R):void 0),ae=U.parse(_,void 0,void 0,void 0,R&&R.type==="string"?{typeAnnotation:"coerce"}:void 0);return ae?Nl(new Ys(ae,R)):Ws(U.errors)}var Gi=function(R,U){this.kind=R,this._styleExpression=U,this.isStateDependent=R!=="constant"&&!il(U.expression)};Gi.prototype.evaluateWithoutErrorHandling=function(R,U,ae,ve,we,Ee){return this._styleExpression.evaluateWithoutErrorHandling(R,U,ae,ve,we,Ee)},Gi.prototype.evaluate=function(R,U,ae,ve,we,Ee){return this._styleExpression.evaluate(R,U,ae,ve,we,Ee)};var ds=function(R,U,ae,ve){this.kind=R,this.zoomStops=ae,this._styleExpression=U,this.isStateDependent=R!=="camera"&&!il(U.expression),this.interpolationType=ve};ds.prototype.evaluateWithoutErrorHandling=function(R,U,ae,ve,we,Ee){return this._styleExpression.evaluateWithoutErrorHandling(R,U,ae,ve,we,Ee)},ds.prototype.evaluate=function(R,U,ae,ve,we,Ee){return this._styleExpression.evaluate(R,U,ae,ve,we,Ee)},ds.prototype.interpolationFactor=function(R,U,ae){return this.interpolationType?ki.interpolationFactor(this.interpolationType,R,U,ae):0};function xf(_,R){if(_=js(_,R),_.result==="error")return _;var U=_.value.expression,ae=Pl(U);if(!ae&&!_s(R))return Ws([new Er("","data expressions not supported")]);var ve=nu(U,["zoom"]);if(!ve&&!lu(R))return Ws([new Er("","zoom expressions not supported")]);var we=vu(U);if(!we&&!ve)return Ws([new Er("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(we instanceof Er)return Ws([we]);if(we instanceof ki&&!Bl(R))return Ws([new Er("",'"interpolate" expressions cannot be used with this property')]);if(!we)return Nl(ae?new Gi("constant",_.value):new Gi("source",_.value));var Ee=we instanceof ki?we.interpolation:void 0;return Nl(ae?new ds("camera",_.value,we.labels,Ee):new ds("composite",_.value,we.labels,Ee))}var fl=function(R,U){this._parameters=R,this._specification=U,Rn(this,ac(this._parameters,this._specification))};fl.deserialize=function(R){return new fl(R._parameters,R._specification)},fl.serialize=function(R){return{_parameters:R._parameters,_specification:R._specification}};function ju(_,R){if(Ul(_))return new fl(_,R);if(hu(_)){var U=xf(_,R);if(U.result==="error")throw new Error(U.value.map(function(ve){return ve.key+": "+ve.message}).join(", "));return U.value}else{var ae=_;return typeof _=="string"&&R.type==="color"&&(ae=ti.parse(_)),{kind:"constant",evaluate:function(){return ae}}}}function vu(_){var R=null;if(_ instanceof Es)R=vu(_.result);else if(_ instanceof Qo)for(var U=0,ae=_.args;Uae.maximum?[new Nr(R,U,U+" is greater than the maximum value "+ae.maximum)]:[]}function oc(_){var R=_.valueSpec,U=gn(_.value.type),ae,ve={},we,Ee,Je=U!=="categorical"&&_.value.property===void 0,dt=!Je,Mt=vi(_.value.stops)==="array"&&vi(_.value.stops[0])==="array"&&vi(_.value.stops[0][0])==="object",_t=po({key:_.key,value:_.value,valueSpec:_.styleSpec.function,style:_.style,styleSpec:_.styleSpec,objectElementValidators:{stops:jt,default:br}});return U==="identity"&&Je&&_t.push(new Nr(_.key,_.value,'missing required property "property"')),U!=="identity"&&!_.value.stops&&_t.push(new Nr(_.key,_.value,'missing required property "stops"')),U==="exponential"&&_.valueSpec.expression&&!Bl(_.valueSpec)&&_t.push(new Nr(_.key,_.value,"exponential functions not supported")),_.styleSpec.$version>=8&&(dt&&!_s(_.valueSpec)?_t.push(new Nr(_.key,_.value,"property functions not supported")):Je&&!lu(_.valueSpec)&&_t.push(new Nr(_.key,_.value,"zoom functions not supported"))),(U==="categorical"||Mt)&&_.value.property===void 0&&_t.push(new Nr(_.key,_.value,'"property" property is required')),_t;function jt(Br){if(U==="identity")return[new Nr(Br.key,Br.value,'identity function may not have a "stops" property')];var cn=[],nn=Br.value;return cn=cn.concat(du({key:Br.key,value:nn,valueSpec:Br.valueSpec,style:Br.style,styleSpec:Br.styleSpec,arrayElementValidator:nr})),vi(nn)==="array"&&nn.length===0&&cn.push(new Nr(Br.key,nn,"array must have at least one stop")),cn}function nr(Br){var cn=[],nn=Br.value,Ln=Br.key;if(vi(nn)!=="array")return[new Nr(Ln,nn,"array expected, "+vi(nn)+" found")];if(nn.length!==2)return[new Nr(Ln,nn,"array length 2 expected, length "+nn.length+" found")];if(Mt){if(vi(nn[0])!=="object")return[new Nr(Ln,nn,"object expected, "+vi(nn[0])+" found")];if(nn[0].zoom===void 0)return[new Nr(Ln,nn,"object stop key must have zoom")];if(nn[0].value===void 0)return[new Nr(Ln,nn,"object stop key must have value")];if(Ee&&Ee>gn(nn[0].zoom))return[new Nr(Ln,nn[0].zoom,"stop zoom values must appear in ascending order")];gn(nn[0].zoom)!==Ee&&(Ee=gn(nn[0].zoom),we=void 0,ve={}),cn=cn.concat(po({key:Ln+"[0]",value:nn[0],valueSpec:{zoom:{}},style:Br.style,styleSpec:Br.styleSpec,objectElementValidators:{zoom:Hl,value:er}}))}else cn=cn.concat(er({key:Ln+"[0]",value:nn[0],valueSpec:{},style:Br.style,styleSpec:Br.styleSpec},nn));return hu(un(nn[1]))?cn.concat([new Nr(Ln+"[1]",nn[1],"expressions are not allowed in function stops.")]):cn.concat(Dr({key:Ln+"[1]",value:nn[1],valueSpec:R,style:Br.style,styleSpec:Br.styleSpec}))}function er(Br,cn){var nn=vi(Br.value),Ln=gn(Br.value),yn=Br.value!==null?Br.value:cn;if(!ae)ae=nn;else if(nn!==ae)return[new Nr(Br.key,yn,nn+" stop domain type must match previous stop domain type "+ae)];if(nn!=="number"&&nn!=="string"&&nn!=="boolean")return[new Nr(Br.key,yn,"stop domain value must be a number, string, or boolean")];if(nn!=="number"&&U!=="categorical"){var Cn="number expected, "+nn+" found";return _s(R)&&U===void 0&&(Cn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Nr(Br.key,yn,Cn)]}return U==="categorical"&&nn==="number"&&(!isFinite(Ln)||Math.floor(Ln)!==Ln)?[new Nr(Br.key,yn,"integer expected, found "+Ln)]:U!=="categorical"&&nn==="number"&&we!==void 0&&Ln=2&&_[1]!=="$id"&&_[1]!=="$type";case"in":return _.length>=3&&(typeof _[1]!="string"||Array.isArray(_[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return _.length!==3||Array.isArray(_[1])||Array.isArray(_[2]);case"any":case"all":for(var R=0,U=_.slice(1);RR?1:0}function gu(_){if(!Array.isArray(_))return!1;if(_[0]==="within")return!0;for(var R=1;R<_.length;R++)if(gu(_[R]))return!0;return!1}function yu(_){if(!_)return!0;var R=_[0];if(_.length<=1)return R!=="any";var U=R==="=="?Zu(_[1],_[2],"=="):R==="!="?cl(Zu(_[1],_[2],"==")):R==="<"||R===">"||R==="<="||R===">="?Zu(_[1],_[2],R):R==="any"?sc(_.slice(1)):R==="all"?["all"].concat(_.slice(1).map(yu)):R==="none"?["all"].concat(_.slice(1).map(yu).map(cl)):R==="in"?mu(_[1],_.slice(2)):R==="!in"?cl(mu(_[1],_.slice(2))):R==="has"?wf(_[1]):R==="!has"?cl(wf(_[1])):R==="within"?_:!0;return U}function Zu(_,R,U){switch(_){case"$type":return["filter-type-"+U,R];case"$id":return["filter-id-"+U,R];default:return["filter-"+U,_,R]}}function sc(_){return["any"].concat(_.map(yu))}function mu(_,R){if(R.length===0)return!1;switch(_){case"$type":return["filter-type-in",["literal",R]];case"$id":return["filter-id-in",["literal",R]];default:return R.length>200&&!R.some(function(U){return typeof U!=typeof R[0]})?["filter-in-large",_,["literal",R.sort(bf)]]:["filter-in-small",_,["literal",R]]}}function wf(_){switch(_){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",_]}}function cl(_){return["!",_]}function Tf(_){return Xu(un(_.value))?Xs(Rn({},_,{expressionContext:"filter",valueSpec:{value:"boolean"}})):xu(_)}function xu(_){var R=_.value,U=_.key;if(vi(R)!=="array")return[new Nr(U,R,"array expected, "+vi(R)+" found")];var ae=_.styleSpec,ve,we=[];if(R.length<1)return[new Nr(U,R,"filter array must have at least 1 element")];switch(we=we.concat(pu({key:U+"[0]",value:R[0],valueSpec:ae.filter_operator,style:_.style,styleSpec:_.styleSpec})),gn(R[0])){case"<":case"<=":case">":case">=":R.length>=2&&gn(R[1])==="$type"&&we.push(new Nr(U,R,'"$type" cannot be use with operator "'+R[0]+'"'));case"==":case"!=":R.length!==3&&we.push(new Nr(U,R,'filter array for operator "'+R[0]+'" must have 3 elements'));case"in":case"!in":R.length>=2&&(ve=vi(R[1]),ve!=="string"&&we.push(new Nr(U+"[1]",R[1],"string expected, "+ve+" found")));for(var Ee=2;Ee=_t[er+0]&&ae>=_t[er+1])?(Ee[nr]=!0,we.push(Mt[nr])):Ee[nr]=!1}}},di.prototype._forEachCell=function(_,R,U,ae,ve,we,Ee,Je){for(var dt=this._convertToCellCoord(_),Mt=this._convertToCellCoord(R),_t=this._convertToCellCoord(U),jt=this._convertToCellCoord(ae),nr=dt;nr<=_t;nr++)for(var er=Mt;er<=jt;er++){var br=this.d*er+nr;if(!(Je&&!Je(this._convertFromCellCoord(nr),this._convertFromCellCoord(er),this._convertFromCellCoord(nr+1),this._convertFromCellCoord(er+1)))&&ve.call(this,_,R,U,ae,br,we,Ee,Je))return}},di.prototype._convertFromCellCoord=function(_){return(_-this.padding)/this.scale},di.prototype._convertToCellCoord=function(_){return Math.max(0,Math.min(this.d-1,Math.floor(_*this.scale)+this.padding))},di.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var _=this.cells,R=Ka+this.cells.length+1+1,U=0,ae=0;ae=0)){var jt=_[_t];Mt[_t]=Ae[dt].shallow.indexOf(_t)>=0?jt:Pt(jt,R)}_ instanceof Error&&(Mt.message=_.message)}if(Mt.$name)throw new Error("$name property is reserved for worker serialization logic.");return dt!=="Object"&&(Mt.$name=dt),Mt}throw new Error("can't serialize object of type "+typeof _)}function St(_){if(_==null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||_ instanceof Boolean||_ instanceof Number||_ instanceof String||_ instanceof Date||_ instanceof RegExp||nt(_)||ct(_)||ArrayBuffer.isView(_)||_ instanceof zi)return _;if(Array.isArray(_))return _.map(St);if(typeof _=="object"){var R=_.$name||"Object",U=Ae[R],ae=U.klass;if(!ae)throw new Error("can't deserialize unregistered class "+R);if(ae.deserialize)return ae.deserialize(_);for(var ve=Object.create(ae.prototype),we=0,Ee=Object.keys(_);we=0?dt:St(dt)}}return ve}throw new Error("can't deserialize object of type "+typeof _)}var Gt=function(){this.first=!0};Gt.prototype.update=function(R,U){var ae=Math.floor(R);return this.first?(this.first=!1,this.lastIntegerZoom=ae,this.lastIntegerZoomTime=0,this.lastZoom=R,this.lastFloorZoom=ae,!0):(this.lastFloorZoom>ae?(this.lastIntegerZoom=ae+1,this.lastIntegerZoomTime=U):this.lastFloorZoom=128&&_<=255},Arabic:function(_){return _>=1536&&_<=1791},"Arabic Supplement":function(_){return _>=1872&&_<=1919},"Arabic Extended-A":function(_){return _>=2208&&_<=2303},"Hangul Jamo":function(_){return _>=4352&&_<=4607},"Unified Canadian Aboriginal Syllabics":function(_){return _>=5120&&_<=5759},Khmer:function(_){return _>=6016&&_<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(_){return _>=6320&&_<=6399},"General Punctuation":function(_){return _>=8192&&_<=8303},"Letterlike Symbols":function(_){return _>=8448&&_<=8527},"Number Forms":function(_){return _>=8528&&_<=8591},"Miscellaneous Technical":function(_){return _>=8960&&_<=9215},"Control Pictures":function(_){return _>=9216&&_<=9279},"Optical Character Recognition":function(_){return _>=9280&&_<=9311},"Enclosed Alphanumerics":function(_){return _>=9312&&_<=9471},"Geometric Shapes":function(_){return _>=9632&&_<=9727},"Miscellaneous Symbols":function(_){return _>=9728&&_<=9983},"Miscellaneous Symbols and Arrows":function(_){return _>=11008&&_<=11263},"CJK Radicals Supplement":function(_){return _>=11904&&_<=12031},"Kangxi Radicals":function(_){return _>=12032&&_<=12255},"Ideographic Description Characters":function(_){return _>=12272&&_<=12287},"CJK Symbols and Punctuation":function(_){return _>=12288&&_<=12351},Hiragana:function(_){return _>=12352&&_<=12447},Katakana:function(_){return _>=12448&&_<=12543},Bopomofo:function(_){return _>=12544&&_<=12591},"Hangul Compatibility Jamo":function(_){return _>=12592&&_<=12687},Kanbun:function(_){return _>=12688&&_<=12703},"Bopomofo Extended":function(_){return _>=12704&&_<=12735},"CJK Strokes":function(_){return _>=12736&&_<=12783},"Katakana Phonetic Extensions":function(_){return _>=12784&&_<=12799},"Enclosed CJK Letters and Months":function(_){return _>=12800&&_<=13055},"CJK Compatibility":function(_){return _>=13056&&_<=13311},"CJK Unified Ideographs Extension A":function(_){return _>=13312&&_<=19903},"Yijing Hexagram Symbols":function(_){return _>=19904&&_<=19967},"CJK Unified Ideographs":function(_){return _>=19968&&_<=40959},"Yi Syllables":function(_){return _>=40960&&_<=42127},"Yi Radicals":function(_){return _>=42128&&_<=42191},"Hangul Jamo Extended-A":function(_){return _>=43360&&_<=43391},"Hangul Syllables":function(_){return _>=44032&&_<=55215},"Hangul Jamo Extended-B":function(_){return _>=55216&&_<=55295},"Private Use Area":function(_){return _>=57344&&_<=63743},"CJK Compatibility Ideographs":function(_){return _>=63744&&_<=64255},"Arabic Presentation Forms-A":function(_){return _>=64336&&_<=65023},"Vertical Forms":function(_){return _>=65040&&_<=65055},"CJK Compatibility Forms":function(_){return _>=65072&&_<=65103},"Small Form Variants":function(_){return _>=65104&&_<=65135},"Arabic Presentation Forms-B":function(_){return _>=65136&&_<=65279},"Halfwidth and Fullwidth Forms":function(_){return _>=65280&&_<=65519}};function rr(_){for(var R=0,U=_;R=65097&&_<=65103)||Yt["CJK Compatibility Ideographs"](_)||Yt["CJK Compatibility"](_)||Yt["CJK Radicals Supplement"](_)||Yt["CJK Strokes"](_)||Yt["CJK Symbols and Punctuation"](_)&&!(_>=12296&&_<=12305)&&!(_>=12308&&_<=12319)&&_!==12336||Yt["CJK Unified Ideographs Extension A"](_)||Yt["CJK Unified Ideographs"](_)||Yt["Enclosed CJK Letters and Months"](_)||Yt["Hangul Compatibility Jamo"](_)||Yt["Hangul Jamo Extended-A"](_)||Yt["Hangul Jamo Extended-B"](_)||Yt["Hangul Jamo"](_)||Yt["Hangul Syllables"](_)||Yt.Hiragana(_)||Yt["Ideographic Description Characters"](_)||Yt.Kanbun(_)||Yt["Kangxi Radicals"](_)||Yt["Katakana Phonetic Extensions"](_)||Yt.Katakana(_)&&_!==12540||Yt["Halfwidth and Fullwidth Forms"](_)&&_!==65288&&_!==65289&&_!==65293&&!(_>=65306&&_<=65310)&&_!==65339&&_!==65341&&_!==65343&&!(_>=65371&&_<=65503)&&_!==65507&&!(_>=65512&&_<=65519)||Yt["Small Form Variants"](_)&&!(_>=65112&&_<=65118)&&!(_>=65123&&_<=65126)||Yt["Unified Canadian Aboriginal Syllabics"](_)||Yt["Unified Canadian Aboriginal Syllabics Extended"](_)||Yt["Vertical Forms"](_)||Yt["Yijing Hexagram Symbols"](_)||Yt["Yi Syllables"](_)||Yt["Yi Radicals"](_))}function _r(_){return!!(Yt["Latin-1 Supplement"](_)&&(_===167||_===169||_===174||_===177||_===188||_===189||_===190||_===215||_===247)||Yt["General Punctuation"](_)&&(_===8214||_===8224||_===8225||_===8240||_===8241||_===8251||_===8252||_===8258||_===8263||_===8264||_===8265||_===8273)||Yt["Letterlike Symbols"](_)||Yt["Number Forms"](_)||Yt["Miscellaneous Technical"](_)&&(_>=8960&&_<=8967||_>=8972&&_<=8991||_>=8996&&_<=9e3||_===9003||_>=9085&&_<=9114||_>=9150&&_<=9165||_===9167||_>=9169&&_<=9179||_>=9186&&_<=9215)||Yt["Control Pictures"](_)&&_!==9251||Yt["Optical Character Recognition"](_)||Yt["Enclosed Alphanumerics"](_)||Yt["Geometric Shapes"](_)||Yt["Miscellaneous Symbols"](_)&&!(_>=9754&&_<=9759)||Yt["Miscellaneous Symbols and Arrows"](_)&&(_>=11026&&_<=11055||_>=11088&&_<=11097||_>=11192&&_<=11243)||Yt["CJK Symbols and Punctuation"](_)||Yt.Katakana(_)||Yt["Private Use Area"](_)||Yt["CJK Compatibility Forms"](_)||Yt["Small Form Variants"](_)||Yt["Halfwidth and Fullwidth Forms"](_)||_===8734||_===8756||_===8757||_>=9984&&_<=10087||_>=10102&&_<=10131||_===65532||_===65533)}function Vr(_){return!(sn(_)||_r(_))}function Kr(_){return Yt.Arabic(_)||Yt["Arabic Supplement"](_)||Yt["Arabic Extended-A"](_)||Yt["Arabic Presentation Forms-A"](_)||Yt["Arabic Presentation Forms-B"](_)}function hn(_){return _>=1424&&_<=2303||Yt["Arabic Presentation Forms-A"](_)||Yt["Arabic Presentation Forms-B"](_)}function pn(_,R){return!(!R&&hn(_)||_>=2304&&_<=3583||_>=3840&&_<=4255||Yt.Khmer(_))}function rn(_){for(var R=0,U=_;R-1&&(ea=ra.error),fa&&fa(_)};function Ua(){Ea.fire(new tr("pluginStateChange",{pluginStatus:ea,pluginURL:oa}))}var Ea=new ir,Oa=function(){return ea},ii=function(_){return _({pluginStatus:ea,pluginURL:oa}),Ea.on("pluginStateChange",_),_},Fi=function(_,R,U){if(U===void 0&&(U=!1),ea===ra.deferred||ea===ra.loading||ea===ra.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");oa=se.resolveURL(_),ea=ra.deferred,fa=R,Ua(),U||ci()},ci=function(){if(ea!==ra.deferred||!oa)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ea=ra.loading,Ua(),oa&&Bt({url:oa},function(_){_?ca(_):(ea=ra.loaded,Ua())})},qn={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ea===ra.loaded||qn.applyArabicShaping!=null},isLoading:function(){return ea===ra.loading},setState:function(R){ea=R.pluginStatus,oa=R.pluginURL},isParsed:function(){return qn.applyArabicShaping!=null&&qn.processBidirectionalText!=null&&qn.processStyledBidirectionalText!=null},getPluginURL:function(){return oa}},Ha=function(){!qn.isLoading()&&!qn.isLoaded()&&Oa()==="deferred"&&ci()},Sa=function(R,U){this.zoom=R,U?(this.now=U.now,this.fadeDuration=U.fadeDuration,this.zoomHistory=U.zoomHistory,this.transition=U.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Gt,this.transition={})};Sa.prototype.isSupportedScript=function(R){return Hn(R,qn.isLoaded())},Sa.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Sa.prototype.getCrossfadeParameters=function(){var R=this.zoom,U=R-Math.floor(R),ae=this.crossFadingFactor();return R>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:U+(1-U)*ae}:{fromScale:.5,toScale:1,t:1-(1-ae)*U}};var Ja=function(R,U){this.property=R,this.value=U,this.expression=ju(U===void 0?R.specification.default:U,R.specification)};Ja.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ja.prototype.possiblyEvaluate=function(R,U,ae){return this.property.possiblyEvaluate(this,R,U,ae)};var wi=function(R){this.property=R,this.value=new Ja(R,void 0)};wi.prototype.transitioned=function(R,U){return new $i(this.property,this.value,U,x({},R.transition,this.transition),R.now)},wi.prototype.untransitioned=function(){return new $i(this.property,this.value,null,{},0)};var oi=function(R){this._properties=R,this._values=Object.create(R.defaultTransitionablePropertyValues)};oi.prototype.getValue=function(R){return N(this._values[R].value.value)},oi.prototype.setValue=function(R,U){this._values.hasOwnProperty(R)||(this._values[R]=new wi(this._values[R].property)),this._values[R].value=new Ja(this._values[R].property,U===null?void 0:N(U))},oi.prototype.getTransition=function(R){return N(this._values[R].transition)},oi.prototype.setTransition=function(R,U){this._values.hasOwnProperty(R)||(this._values[R]=new wi(this._values[R].property)),this._values[R].transition=N(U)||void 0},oi.prototype.serialize=function(){for(var R={},U=0,ae=Object.keys(this._values);Uthis.end)return this.prior=null,we;if(this.value.isDataDriven())return this.prior=null,we;if(veEe.zoomHistory.lastIntegerZoom?{from:ae,to:ve}:{from:we,to:ve}},R.prototype.interpolate=function(ae){return ae},R}(La),Fo=function(R){this.specification=R};Fo.prototype.possiblyEvaluate=function(R,U,ae,ve){if(R.value!==void 0)if(R.expression.kind==="constant"){var we=R.expression.evaluate(U,null,{},ae,ve);return this._calculate(we,we,we,U)}else return this._calculate(R.expression.evaluate(new Sa(Math.floor(U.zoom-1),U)),R.expression.evaluate(new Sa(Math.floor(U.zoom),U)),R.expression.evaluate(new Sa(Math.floor(U.zoom+1),U)),U)},Fo.prototype._calculate=function(R,U,ae,ve){var we=ve.zoom;return we>ve.zoomHistory.lastIntegerZoom?{from:R,to:U}:{from:ae,to:U}},Fo.prototype.interpolate=function(R){return R};var io=function(R){this.specification=R};io.prototype.possiblyEvaluate=function(R,U,ae,ve){return!!R.expression.evaluate(U,null,{},ae,ve)},io.prototype.interpolate=function(){return!1};var hi=function(R){this.properties=R,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var U in R){var ae=R[U];ae.specification.overridable&&this.overridableProperties.push(U);var ve=this.defaultPropertyValues[U]=new Ja(ae,void 0),we=this.defaultTransitionablePropertyValues[U]=new wi(ae);this.defaultTransitioningPropertyValues[U]=we.untransitioned(),this.defaultPossiblyEvaluatedValues[U]=ve.possiblyEvaluate({})}};Be("DataDrivenProperty",La),Be("DataConstantProperty",la),Be("CrossFadedDataDrivenProperty",Ro),Be("CrossFadedProperty",Fo),Be("ColorRampProperty",io);var Wi="-transition",Ni=function(_){function R(U,ae){if(_.call(this),this.id=U.id,this.type=U.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},U.type!=="custom"&&(U=U,this.metadata=U.metadata,this.minzoom=U.minzoom,this.maxzoom=U.maxzoom,U.type!=="background"&&(this.source=U.source,this.sourceLayer=U["source-layer"],this.filter=U.filter),ae.layout&&(this._unevaluatedLayout=new ao(ae.layout)),ae.paint)){this._transitionablePaint=new oi(ae.paint);for(var ve in U.paint)this.setPaintProperty(ve,U.paint[ve],{validate:!1});for(var we in U.layout)this.setLayoutProperty(we,U.layout[we],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new go(ae.paint)}}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},R.prototype.getLayoutProperty=function(ae){return ae==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ae)},R.prototype.setLayoutProperty=function(ae,ve,we){if(we===void 0&&(we={}),ve!=null){var Ee="layers."+this.id+".layout."+ae;if(this._validate(Da,Ee,ae,ve,we))return}if(ae==="visibility"){this.visibility=ve;return}this._unevaluatedLayout.setValue(ae,ve)},R.prototype.getPaintProperty=function(ae){return b(ae,Wi)?this._transitionablePaint.getTransition(ae.slice(0,-Wi.length)):this._transitionablePaint.getValue(ae)},R.prototype.setPaintProperty=function(ae,ve,we){if(we===void 0&&(we={}),ve!=null){var Ee="layers."+this.id+".paint."+ae;if(this._validate(Ra,Ee,ae,ve,we))return!1}if(b(ae,Wi))return this._transitionablePaint.setTransition(ae.slice(0,-Wi.length),ve||void 0),!1;var Je=this._transitionablePaint._values[ae],dt=Je.property.specification["property-type"]==="cross-faded-data-driven",Mt=Je.value.isDataDriven(),_t=Je.value;this._transitionablePaint.setValue(ae,ve),this._handleSpecialPaintPropertyUpdate(ae);var jt=this._transitionablePaint._values[ae].value,nr=jt.isDataDriven();return nr||Mt||dt||this._handleOverridablePaintPropertyUpdate(ae,_t,jt)},R.prototype._handleSpecialPaintPropertyUpdate=function(ae){},R.prototype._handleOverridablePaintPropertyUpdate=function(ae,ve,we){return!1},R.prototype.isHidden=function(ae){return this.minzoom&&ae=this.maxzoom?!0:this.visibility==="none"},R.prototype.updateTransitions=function(ae){this._transitioningPaint=this._transitionablePaint.transitioned(ae,this._transitioningPaint)},R.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},R.prototype.recalculate=function(ae,ve){ae.getCrossfadeParameters&&(this._crossfadeParameters=ae.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ae,void 0,ve)),this.paint=this._transitioningPaint.possiblyEvaluate(ae,void 0,ve)},R.prototype.serialize=function(){var ae={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&&(ae.layout=ae.layout||{},ae.layout.visibility=this.visibility),D(ae,function(ve,we){return ve!==void 0&&!(we==="layout"&&!Object.keys(ve).length)&&!(we==="paint"&&!Object.keys(ve).length)})},R.prototype._validate=function(ae,ve,we,Ee,Je){return Je===void 0&&(Je={}),Je&&Je.validate===!1?!1:ka(this,ae.call(Dn,{key:ve,layerType:this.type,objectKey:we,value:Ee,styleSpec:Ar,style:{glyphs:!0,sprite:!0}}))},R.prototype.is3D=function(){return!1},R.prototype.isTileClipped=function(){return!1},R.prototype.hasOffscreenPass=function(){return!1},R.prototype.resize=function(){},R.prototype.isStateDependent=function(){for(var ae in this.paint._values){var ve=this.paint.get(ae);if(!(!(ve instanceof Ti)||!_s(ve.property.specification))&&(ve.value.kind==="source"||ve.value.kind==="composite")&&ve.value.isStateDependent)return!0}return!1},R}(ir),ps={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ds=function(R,U){this._structArray=R,this._pos1=U*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Li=128,Gl=5,Qa=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qa.serialize=function(R,U){return R._trim(),U&&(R.isTransferred=!0,U.push(R.arrayBuffer)),{length:R.length,arrayBuffer:R.arrayBuffer}},Qa.deserialize=function(R){var U=Object.create(this.prototype);return U.arrayBuffer=R.arrayBuffer,U.length=R.length,U.capacity=R.arrayBuffer.byteLength/U.bytesPerElement,U._refreshViews(),U},Qa.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qa.prototype.clear=function(){this.length=0},Qa.prototype.resize=function(R){this.reserve(R),this.length=R},Qa.prototype.reserve=function(R){if(R>this.capacity){this.capacity=Math.max(R,Math.floor(this.capacity*Gl),Li),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var U=this.uint8;this._refreshViews(),U&&this.uint8.set(U)}},Qa.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Pi(_,R){R===void 0&&(R=1);var U=0,ae=0,ve=_.map(function(Ee){var Je=uh(Ee.type),dt=U=Jd(U,Math.max(R,Je)),Mt=Ee.components||1;return ae=Math.max(ae,Je),U+=Je*Mt,{name:Ee.name,type:Ee.type,components:Mt,offset:dt}}),we=Jd(U,Math.max(ae,R));return{members:ve,size:we,alignment:R}}function uh(_){return ps[_].BYTES_PER_ELEMENT}function Jd(_,R){return Math.ceil(_/R)*R}var Af=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var we=this.length;return this.resize(we+1),this.emplace(we,ae,ve)},R.prototype.emplace=function(ae,ve,we){var Ee=ae*2;return this.int16[Ee+0]=ve,this.int16[Ee+1]=we,ae},R}(Qa);Af.prototype.bytesPerElement=4,Be("StructArrayLayout2i4",Af);var Fv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee){var Je=this.length;return this.resize(Je+1),this.emplace(Je,ae,ve,we,Ee)},R.prototype.emplace=function(ae,ve,we,Ee,Je){var dt=ae*4;return this.int16[dt+0]=ve,this.int16[dt+1]=we,this.int16[dt+2]=Ee,this.int16[dt+3]=Je,ae},R}(Qa);Fv.prototype.bytesPerElement=8,Be("StructArrayLayout4i8",Fv);var Ku=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt){var Mt=this.length;return this.resize(Mt+1),this.emplace(Mt,ae,ve,we,Ee,Je,dt)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt){var _t=ae*6;return this.int16[_t+0]=ve,this.int16[_t+1]=we,this.int16[_t+2]=Ee,this.int16[_t+3]=Je,this.int16[_t+4]=dt,this.int16[_t+5]=Mt,ae},R}(Qa);Ku.prototype.bytesPerElement=12,Be("StructArrayLayout2i4i12",Ku);var uc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt){var Mt=this.length;return this.resize(Mt+1),this.emplace(Mt,ae,ve,we,Ee,Je,dt)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt){var _t=ae*4,jt=ae*8;return this.int16[_t+0]=ve,this.int16[_t+1]=we,this.uint8[jt+4]=Ee,this.uint8[jt+5]=Je,this.uint8[jt+6]=dt,this.uint8[jt+7]=Mt,ae},R}(Qa);uc.prototype.bytesPerElement=8,Be("StructArrayLayout2i4ub8",uc);var fc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var we=this.length;return this.resize(we+1),this.emplace(we,ae,ve)},R.prototype.emplace=function(ae,ve,we){var Ee=ae*2;return this.float32[Ee+0]=ve,this.float32[Ee+1]=we,ae},R}(Qa);fc.prototype.bytesPerElement=8,Be("StructArrayLayout2f8",fc);var ts=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr){var er=this.length;return this.resize(er+1),this.emplace(er,ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er){var br=ae*10;return this.uint16[br+0]=ve,this.uint16[br+1]=we,this.uint16[br+2]=Ee,this.uint16[br+3]=Je,this.uint16[br+4]=dt,this.uint16[br+5]=Mt,this.uint16[br+6]=_t,this.uint16[br+7]=jt,this.uint16[br+8]=nr,this.uint16[br+9]=er,ae},R}(Qa);ts.prototype.bytesPerElement=20,Be("StructArrayLayout10ui20",ts);var Ju=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br){var Br=this.length;return this.resize(Br+1),this.emplace(Br,ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br){var cn=ae*12;return this.int16[cn+0]=ve,this.int16[cn+1]=we,this.int16[cn+2]=Ee,this.int16[cn+3]=Je,this.uint16[cn+4]=dt,this.uint16[cn+5]=Mt,this.uint16[cn+6]=_t,this.uint16[cn+7]=jt,this.int16[cn+8]=nr,this.int16[cn+9]=er,this.int16[cn+10]=br,this.int16[cn+11]=Br,ae},R}(Qa);Ju.prototype.bytesPerElement=24,Be("StructArrayLayout4i4ui4i24",Ju);var Nv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we){var Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,ae,ve,we)},R.prototype.emplace=function(ae,ve,we,Ee){var Je=ae*3;return this.float32[Je+0]=ve,this.float32[Je+1]=we,this.float32[Je+2]=Ee,ae},R}(Qa);Nv.prototype.bytesPerElement=12,Be("StructArrayLayout3f12",Nv);var Bv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var we=ae*1;return this.uint32[we+0]=ve,ae},R}(Qa);Bv.prototype.bytesPerElement=4,Be("StructArrayLayout1ul4",Bv);var fh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.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)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt){var nr=this.length;return this.resize(nr+1),this.emplace(nr,ae,ve,we,Ee,Je,dt,Mt,_t,jt)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr){var er=ae*10,br=ae*5;return this.int16[er+0]=ve,this.int16[er+1]=we,this.int16[er+2]=Ee,this.int16[er+3]=Je,this.int16[er+4]=dt,this.int16[er+5]=Mt,this.uint32[br+3]=_t,this.uint16[er+8]=jt,this.uint16[er+9]=nr,ae},R}(Qa);fh.prototype.bytesPerElement=20,Be("StructArrayLayout6i1ul2ui20",fh);var kh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt){var Mt=this.length;return this.resize(Mt+1),this.emplace(Mt,ae,ve,we,Ee,Je,dt)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt){var _t=ae*6;return this.int16[_t+0]=ve,this.int16[_t+1]=we,this.int16[_t+2]=Ee,this.int16[_t+3]=Je,this.int16[_t+4]=dt,this.int16[_t+5]=Mt,ae},R}(Qa);kh.prototype.bytesPerElement=12,Be("StructArrayLayout2i2i2i12",kh);var bu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je){var dt=this.length;return this.resize(dt+1),this.emplace(dt,ae,ve,we,Ee,Je)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt){var Mt=ae*4,_t=ae*8;return this.float32[Mt+0]=ve,this.float32[Mt+1]=we,this.float32[Mt+2]=Ee,this.int16[_t+6]=Je,this.int16[_t+7]=dt,ae},R}(Qa);bu.prototype.bytesPerElement=16,Be("StructArrayLayout2f1f2i16",bu);var gs=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee){var Je=this.length;return this.resize(Je+1),this.emplace(Je,ae,ve,we,Ee)},R.prototype.emplace=function(ae,ve,we,Ee,Je){var dt=ae*12,Mt=ae*3;return this.uint8[dt+0]=ve,this.uint8[dt+1]=we,this.float32[Mt+1]=Ee,this.float32[Mt+2]=Je,ae},R}(Qa);gs.prototype.bytesPerElement=12,Be("StructArrayLayout2ub2f12",gs);var wu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we){var Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,ae,ve,we)},R.prototype.emplace=function(ae,ve,we,Ee){var Je=ae*3;return this.uint16[Je+0]=ve,this.uint16[Je+1]=we,this.uint16[Je+2]=Ee,ae},R}(Qa);wu.prototype.bytesPerElement=6,Be("StructArrayLayout3ui6",wu);var ch=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.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)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn){var Cn=this.length;return this.resize(Cn+1),this.emplace(Cn,ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn,Cn){var kn=ae*24,jn=ae*12,aa=ae*48;return this.int16[kn+0]=ve,this.int16[kn+1]=we,this.uint16[kn+2]=Ee,this.uint16[kn+3]=Je,this.uint32[jn+2]=dt,this.uint32[jn+3]=Mt,this.uint32[jn+4]=_t,this.uint16[kn+10]=jt,this.uint16[kn+11]=nr,this.uint16[kn+12]=er,this.float32[jn+7]=br,this.float32[jn+8]=Br,this.uint8[aa+36]=cn,this.uint8[aa+37]=nn,this.uint8[aa+38]=Ln,this.uint32[jn+10]=yn,this.int16[kn+22]=Cn,ae},R}(Qa);ch.prototype.bytesPerElement=48,Be("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ch);var zh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.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)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn,Cn,kn,jn,aa,ta,Ta,pa,ba,Va,Aa,Ca){var ja=this.length;return this.resize(ja+1),this.emplace(ja,ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn,Cn,kn,jn,aa,ta,Ta,pa,ba,Va,Aa,Ca)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn,Cn,kn,jn,aa,ta,Ta,pa,ba,Va,Aa,Ca,ja){var Ba=ae*34,li=ae*17;return this.int16[Ba+0]=ve,this.int16[Ba+1]=we,this.int16[Ba+2]=Ee,this.int16[Ba+3]=Je,this.int16[Ba+4]=dt,this.int16[Ba+5]=Mt,this.int16[Ba+6]=_t,this.int16[Ba+7]=jt,this.uint16[Ba+8]=nr,this.uint16[Ba+9]=er,this.uint16[Ba+10]=br,this.uint16[Ba+11]=Br,this.uint16[Ba+12]=cn,this.uint16[Ba+13]=nn,this.uint16[Ba+14]=Ln,this.uint16[Ba+15]=yn,this.uint16[Ba+16]=Cn,this.uint16[Ba+17]=kn,this.uint16[Ba+18]=jn,this.uint16[Ba+19]=aa,this.uint16[Ba+20]=ta,this.uint16[Ba+21]=Ta,this.uint16[Ba+22]=pa,this.uint32[li+12]=ba,this.float32[li+13]=Va,this.float32[li+14]=Aa,this.float32[li+15]=Ca,this.float32[li+16]=ja,ae},R}(Qa);zh.prototype.bytesPerElement=68,Be("StructArrayLayout8i15ui1ul4f68",zh);var cc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var we=ae*1;return this.float32[we+0]=ve,ae},R}(Qa);cc.prototype.bytesPerElement=4,Be("StructArrayLayout1f4",cc);var Uv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we){var Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,ae,ve,we)},R.prototype.emplace=function(ae,ve,we,Ee){var Je=ae*3;return this.int16[Je+0]=ve,this.int16[Je+1]=we,this.int16[Je+2]=Ee,ae},R}(Qa);Uv.prototype.bytesPerElement=6,Be("StructArrayLayout3i6",Uv);var Qu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we){var Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,ae,ve,we)},R.prototype.emplace=function(ae,ve,we,Ee){var Je=ae*2,dt=ae*4;return this.uint32[Je+0]=ve,this.uint16[dt+2]=we,this.uint16[dt+3]=Ee,ae},R}(Qa);Qu.prototype.bytesPerElement=8,Be("StructArrayLayout1ul2ui8",Qu);var hh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var we=this.length;return this.resize(we+1),this.emplace(we,ae,ve)},R.prototype.emplace=function(ae,ve,we){var Ee=ae*2;return this.uint16[Ee+0]=ve,this.uint16[Ee+1]=we,ae},R}(Qa);hh.prototype.bytesPerElement=4,Be("StructArrayLayout2ui4",hh);var hc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var we=ae*1;return this.uint16[we+0]=ve,ae},R}(Qa);hc.prototype.bytesPerElement=2,Be("StructArrayLayout1ui2",hc);var Sf=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee){var Je=this.length;return this.resize(Je+1),this.emplace(Je,ae,ve,we,Ee)},R.prototype.emplace=function(ae,ve,we,Ee,Je){var dt=ae*4;return this.float32[dt+0]=ve,this.float32[dt+1]=we,this.float32[dt+2]=Ee,this.float32[dt+3]=Je,ae},R}(Qa);Sf.prototype.bytesPerElement=16,Be("StructArrayLayout4f16",Sf);var Qd=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R;var U={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 U.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},U.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},U.x1.get=function(){return this._structArray.int16[this._pos2+2]},U.y1.get=function(){return this._structArray.int16[this._pos2+3]},U.x2.get=function(){return this._structArray.int16[this._pos2+4]},U.y2.get=function(){return this._structArray.int16[this._pos2+5]},U.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},U.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},U.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},U.anchorPoint.get=function(){return new r(this.anchorPointX,this.anchorPointY)},Object.defineProperties(R.prototype,U),R}(Ds);Qd.prototype.size=20;var Vv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new Qd(this,ae)},R}(fh);Be("CollisionBoxArray",Vv);var Mf=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R;var U={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 U.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},U.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},U.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},U.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},U.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},U.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},U.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},U.segment.get=function(){return this._structArray.uint16[this._pos2+10]},U.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},U.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},U.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},U.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},U.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},U.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},U.placedOrientation.set=function(ae){this._structArray.uint8[this._pos1+37]=ae},U.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},U.hidden.set=function(ae){this._structArray.uint8[this._pos1+38]=ae},U.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},U.crossTileID.set=function(ae){this._structArray.uint32[this._pos4+10]=ae},U.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(R.prototype,U),R}(Ds);Mf.prototype.size=48;var Hv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new Mf(this,ae)},R}(ch);Be("PlacedSymbolArray",Hv);var vc=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R;var U={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 U.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},U.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},U.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},U.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},U.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},U.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},U.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},U.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},U.key.get=function(){return this._structArray.uint16[this._pos2+8]},U.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},U.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},U.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},U.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},U.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},U.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},U.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},U.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},U.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},U.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},U.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},U.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},U.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},U.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},U.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},U.crossTileID.set=function(ae){this._structArray.uint32[this._pos4+12]=ae},U.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},U.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},U.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},U.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(R.prototype,U),R}(Ds);vc.prototype.size=68;var $d=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new vc(this,ae)},R}(zh);Be("SymbolInstanceArray",$d);var qd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.getoffsetX=function(ae){return this.float32[ae*1+0]},R}(cc);Be("GlyphOffsetArray",qd);var hl=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.getx=function(ae){return this.int16[ae*3+0]},R.prototype.gety=function(ae){return this.int16[ae*3+1]},R.prototype.gettileUnitDistanceFromAnchor=function(ae){return this.int16[ae*3+2]},R}(Uv);Be("SymbolLineVertexArray",hl);var ep=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R;var U={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return U.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},U.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},U.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(R.prototype,U),R}(Ds);ep.prototype.size=8;var tp=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new ep(this,ae)},R}(Qu);Be("FeatureIndexArray",tp);var G0=Pi([{name:"a_pos",components:2,type:"Int16"}],4),rp=G0.members,oo=function(R){R===void 0&&(R=[]),this.segments=R};oo.prototype.prepareSegment=function(R,U,ae,ve){var we=this.segments[this.segments.length-1];return R>oo.MAX_VERTEX_ARRAY_LENGTH&&F("Max vertices per segment is "+oo.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+R),(!we||we.vertexLength+R>oo.MAX_VERTEX_ARRAY_LENGTH||we.sortKey!==ve)&&(we={vertexOffset:U.length,primitiveOffset:ae.length,vertexLength:0,primitiveLength:0},ve!==void 0&&(we.sortKey=ve),this.segments.push(we)),we},oo.prototype.get=function(){return this.segments},oo.prototype.destroy=function(){for(var R=0,U=this.segments;R>>16)*dt&65535)<<16)&4294967295,_t=_t<<15|_t>>>17,_t=(_t&65535)*Mt+(((_t>>>16)*Mt&65535)<<16)&4294967295,Ee^=_t,Ee=Ee<<13|Ee>>>19,Je=(Ee&65535)*5+(((Ee>>>16)*5&65535)<<16)&4294967295,Ee=(Je&65535)+27492+(((Je>>>16)+58964&65535)<<16);switch(_t=0,ve){case 3:_t^=(U.charCodeAt(jt+2)&255)<<16;case 2:_t^=(U.charCodeAt(jt+1)&255)<<8;case 1:_t^=U.charCodeAt(jt)&255,_t=(_t&65535)*dt+(((_t>>>16)*dt&65535)<<16)&4294967295,_t=_t<<15|_t>>>17,_t=(_t&65535)*Mt+(((_t>>>16)*Mt&65535)<<16)&4294967295,Ee^=_t}return Ee^=U.length,Ee^=Ee>>>16,Ee=(Ee&65535)*2246822507+(((Ee>>>16)*2246822507&65535)<<16)&4294967295,Ee^=Ee>>>13,Ee=(Ee&65535)*3266489909+(((Ee>>>16)*3266489909&65535)<<16)&4294967295,Ee^=Ee>>>16,Ee>>>0}_.exports=R}),ee=L(function(_){function R(U,ae){for(var ve=U.length,we=ae^ve,Ee=0,Je;ve>=4;)Je=U.charCodeAt(Ee)&255|(U.charCodeAt(++Ee)&255)<<8|(U.charCodeAt(++Ee)&255)<<16|(U.charCodeAt(++Ee)&255)<<24,Je=(Je&65535)*1540483477+(((Je>>>16)*1540483477&65535)<<16),Je^=Je>>>24,Je=(Je&65535)*1540483477+(((Je>>>16)*1540483477&65535)<<16),we=(we&65535)*1540483477+(((we>>>16)*1540483477&65535)<<16)^Je,ve-=4,++Ee;switch(ve){case 3:we^=(U.charCodeAt(Ee+2)&255)<<16;case 2:we^=(U.charCodeAt(Ee+1)&255)<<8;case 1:we^=U.charCodeAt(Ee)&255,we=(we&65535)*1540483477+(((we>>>16)*1540483477&65535)<<16)}return we^=we>>>13,we=(we&65535)*1540483477+(((we>>>16)*1540483477&65535)<<16),we^=we>>>15,we>>>0}_.exports=R}),pe=de,Oe=de,Xe=ee;pe.murmur3=Oe,pe.murmur2=Xe;var ft=function(){this.ids=[],this.positions=[],this.indexed=!1};ft.prototype.add=function(R,U,ae,ve){this.ids.push(Ht(R)),this.positions.push(U,ae,ve)},ft.prototype.getPositions=function(R){for(var U=Ht(R),ae=0,ve=this.ids.length-1;ae>1;this.ids[we]>=U?ve=we:ae=we+1}for(var Ee=[];this.ids[ae]===U;){var Je=this.positions[3*ae],dt=this.positions[3*ae+1],Mt=this.positions[3*ae+2];Ee.push({index:Je,start:dt,end:Mt}),ae++}return Ee},ft.serialize=function(R,U){var ae=new Float64Array(R.ids),ve=new Uint32Array(R.positions);return qt(ae,ve,0,ae.length-1),U&&U.push(ae.buffer,ve.buffer),{ids:ae,positions:ve}},ft.deserialize=function(R){var U=new ft;return U.ids=R.ids,U.positions=R.positions,U.indexed=!0,U};var Lt=Math.pow(2,53)-1;function Ht(_){var R=+_;return!isNaN(R)&&R<=Lt?R:pe(String(_))}function qt(_,R,U,ae){for(;U>1],we=U-1,Ee=ae+1;;){do we++;while(_[we]ve);if(we>=Ee)break;lr(_,we,Ee),lr(R,3*we,3*Ee),lr(R,3*we+1,3*Ee+1),lr(R,3*we+2,3*Ee+2)}Ee-UEe.x+1||dtEe.y+1)&&F("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return U}function Si(_,R){return{type:_.type,id:_.id,properties:_.properties,geometry:R?ri(_):[]}}function $a(_,R,U,ae,ve){_.emplaceBack(R*2+(ae+1)/2,U*2+(ve+1)/2)}var mi=function(R){this.zoom=R.zoom,this.overscaling=R.overscaling,this.layers=R.layers,this.layerIds=this.layers.map(function(U){return U.id}),this.index=R.index,this.hasPattern=!1,this.layoutVertexArray=new Af,this.indexArray=new wu,this.segments=new oo,this.programConfigurations=new da(R.layers,R.zoom),this.stateDependentLayerIds=this.layers.filter(function(U){return U.isStateDependent()}).map(function(U){return U.id})};mi.prototype.populate=function(R,U,ae){var ve=this.layers[0],we=[],Ee=null;ve.type==="circle"&&(Ee=ve.layout.get("circle-sort-key"));for(var Je=0,dt=R;Je=Ma||nr<0||nr>=Ma)){var er=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,R.sortKey),br=er.vertexLength;$a(this.layoutVertexArray,jt,nr,-1,-1),$a(this.layoutVertexArray,jt,nr,1,-1),$a(this.layoutVertexArray,jt,nr,1,1),$a(this.layoutVertexArray,jt,nr,-1,1),this.indexArray.emplaceBack(br,br+1,br+2),this.indexArray.emplaceBack(br,br+3,br+2),er.vertexLength+=4,er.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,R,ae,{},ve)},Be("CircleBucket",mi,{omit:["layers"]});function Wa(_,R){for(var U=0;U<_.length;U++)if(rs(R,_[U]))return!0;for(var ae=0;ae=3){for(var we=0;we1){if(Js(_,R))return!0;for(var ae=0;ae1?_.distSqr(U):_.distSqr(U.sub(R)._mult(ve)._add(R))}function Yl(_,R){for(var U=!1,ae,ve,we,Ee=0;Ee<_.length;Ee++){ae=_[Ee];for(var Je=0,dt=ae.length-1;JeR.y!=we.y>R.y&&R.x<(we.x-ve.x)*(R.y-ve.y)/(we.y-ve.y)+ve.x&&(U=!U)}return U}function rs(_,R){for(var U=!1,ae=0,ve=_.length-1;ae<_.length;ve=ae++){var we=_[ae],Ee=_[ve];we.y>R.y!=Ee.y>R.y&&R.x<(Ee.x-we.x)*(R.y-we.y)/(Ee.y-we.y)+we.x&&(U=!U)}return U}function jl(_,R,U,ae,ve){for(var we=0,Ee=_;we=Je.x&&ve>=Je.y)return!0}var dt=[new r(R,U),new r(R,ve),new r(ae,ve),new r(ae,U)];if(_.length>2)for(var Mt=0,_t=dt;Mt<_t.length;Mt+=1){var jt=_t[Mt];if(rs(_,jt))return!0}for(var nr=0;nr<_.length-1;nr++){var er=_[nr],br=_[nr+1];if(ys(er,br,dt))return!0}return!1}function ys(_,R,U){var ae=U[0],ve=U[2];if(_.xve.x&&R.x>ve.x||_.yve.y&&R.y>ve.y)return!1;var we=z(_,R,U[0]);return we!==z(_,R,U[1])||we!==z(_,R,U[2])||we!==z(_,R,U[3])}function ns(_,R,U){var ae=R.paint.get(_).value;return ae.kind==="constant"?ae.value:U.programConfigurations.get(R.id).getMaxValue(_)}function dl(_){return Math.sqrt(_[0]*_[0]+_[1]*_[1])}function Tu(_,R,U,ae,ve){if(!R[0]&&!R[1])return _;var we=r.convert(R)._mult(ve);U==="viewport"&&we._rotate(-ae);for(var Ee=[],Je=0;Je<_.length;Je++){var dt=_[Je];Ee.push(dt.sub(we))}return Ee}var pl=new hi({"circle-sort-key":new La(Ar.layout_circle["circle-sort-key"])}),Oh=new hi({"circle-radius":new La(Ar.paint_circle["circle-radius"]),"circle-color":new La(Ar.paint_circle["circle-color"]),"circle-blur":new La(Ar.paint_circle["circle-blur"]),"circle-opacity":new La(Ar.paint_circle["circle-opacity"]),"circle-translate":new la(Ar.paint_circle["circle-translate"]),"circle-translate-anchor":new la(Ar.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new la(Ar.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new la(Ar.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new La(Ar.paint_circle["circle-stroke-width"]),"circle-stroke-color":new La(Ar.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new La(Ar.paint_circle["circle-stroke-opacity"])}),dc={paint:Oh,layout:pl},To=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var _=arguments,R=0,U=arguments.length;U--;)R+=_[U]*_[U];return Math.sqrt(R)});function Fh(){var _=new To(4);return To!=Float32Array&&(_[1]=0,_[2]=0),_[0]=1,_[3]=1,_}function vh(_,R,U){var ae=R[0],ve=R[1],we=R[2],Ee=R[3],Je=Math.sin(U),dt=Math.cos(U);return _[0]=ae*dt+we*Je,_[1]=ve*dt+Ee*Je,_[2]=ae*-Je+we*dt,_[3]=ve*-Je+Ee*dt,_}function Ho(){var _=new To(9);return To!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[5]=0,_[6]=0,_[7]=0),_[0]=1,_[4]=1,_[8]=1,_}function pc(_,R){var U=Math.sin(R),ae=Math.cos(R);return _[0]=ae,_[1]=U,_[2]=0,_[3]=-U,_[4]=ae,_[5]=0,_[6]=0,_[7]=0,_[8]=1,_}function Nh(){var _=new To(16);return To!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=0,_[12]=0,_[13]=0,_[14]=0),_[0]=1,_[5]=1,_[10]=1,_[15]=1,_}function Bh(_){var R=new To(16);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R[3]=_[3],R[4]=_[4],R[5]=_[5],R[6]=_[6],R[7]=_[7],R[8]=_[8],R[9]=_[9],R[10]=_[10],R[11]=_[11],R[12]=_[12],R[13]=_[13],R[14]=_[14],R[15]=_[15],R}function Uh(_){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=1,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=1,_[11]=0,_[12]=0,_[13]=0,_[14]=0,_[15]=1,_}function gc(_,R){var U=R[0],ae=R[1],ve=R[2],we=R[3],Ee=R[4],Je=R[5],dt=R[6],Mt=R[7],_t=R[8],jt=R[9],nr=R[10],er=R[11],br=R[12],Br=R[13],cn=R[14],nn=R[15],Ln=U*Je-ae*Ee,yn=U*dt-ve*Ee,Cn=U*Mt-we*Ee,kn=ae*dt-ve*Je,jn=ae*Mt-we*Je,aa=ve*Mt-we*dt,ta=_t*Br-jt*br,Ta=_t*cn-nr*br,pa=_t*nn-er*br,ba=jt*cn-nr*Br,Va=jt*nn-er*Br,Aa=nr*nn-er*cn,Ca=Ln*Aa-yn*Va+Cn*ba+kn*pa-jn*Ta+aa*ta;return Ca?(Ca=1/Ca,_[0]=(Je*Aa-dt*Va+Mt*ba)*Ca,_[1]=(ve*Va-ae*Aa-we*ba)*Ca,_[2]=(Br*aa-cn*jn+nn*kn)*Ca,_[3]=(nr*jn-jt*aa-er*kn)*Ca,_[4]=(dt*pa-Ee*Aa-Mt*Ta)*Ca,_[5]=(U*Aa-ve*pa+we*Ta)*Ca,_[6]=(cn*Cn-br*aa-nn*yn)*Ca,_[7]=(_t*aa-nr*Cn+er*yn)*Ca,_[8]=(Ee*Va-Je*pa+Mt*ta)*Ca,_[9]=(ae*pa-U*Va-we*ta)*Ca,_[10]=(br*jn-Br*Cn+nn*Ln)*Ca,_[11]=(jt*Cn-_t*jn-er*Ln)*Ca,_[12]=(Je*Ta-Ee*ba-dt*ta)*Ca,_[13]=(U*ba-ae*Ta+ve*ta)*Ca,_[14]=(Br*yn-br*kn-cn*Ln)*Ca,_[15]=(_t*kn-jt*yn+nr*Ln)*Ca,_):null}function yc(_,R,U){var ae=R[0],ve=R[1],we=R[2],Ee=R[3],Je=R[4],dt=R[5],Mt=R[6],_t=R[7],jt=R[8],nr=R[9],er=R[10],br=R[11],Br=R[12],cn=R[13],nn=R[14],Ln=R[15],yn=U[0],Cn=U[1],kn=U[2],jn=U[3];return _[0]=yn*ae+Cn*Je+kn*jt+jn*Br,_[1]=yn*ve+Cn*dt+kn*nr+jn*cn,_[2]=yn*we+Cn*Mt+kn*er+jn*nn,_[3]=yn*Ee+Cn*_t+kn*br+jn*Ln,yn=U[4],Cn=U[5],kn=U[6],jn=U[7],_[4]=yn*ae+Cn*Je+kn*jt+jn*Br,_[5]=yn*ve+Cn*dt+kn*nr+jn*cn,_[6]=yn*we+Cn*Mt+kn*er+jn*nn,_[7]=yn*Ee+Cn*_t+kn*br+jn*Ln,yn=U[8],Cn=U[9],kn=U[10],jn=U[11],_[8]=yn*ae+Cn*Je+kn*jt+jn*Br,_[9]=yn*ve+Cn*dt+kn*nr+jn*cn,_[10]=yn*we+Cn*Mt+kn*er+jn*nn,_[11]=yn*Ee+Cn*_t+kn*br+jn*Ln,yn=U[12],Cn=U[13],kn=U[14],jn=U[15],_[12]=yn*ae+Cn*Je+kn*jt+jn*Br,_[13]=yn*ve+Cn*dt+kn*nr+jn*cn,_[14]=yn*we+Cn*Mt+kn*er+jn*nn,_[15]=yn*Ee+Cn*_t+kn*br+jn*Ln,_}function Yi(_,R,U){var ae=U[0],ve=U[1],we=U[2],Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn;return R===_?(_[12]=R[0]*ae+R[4]*ve+R[8]*we+R[12],_[13]=R[1]*ae+R[5]*ve+R[9]*we+R[13],_[14]=R[2]*ae+R[6]*ve+R[10]*we+R[14],_[15]=R[3]*ae+R[7]*ve+R[11]*we+R[15]):(Ee=R[0],Je=R[1],dt=R[2],Mt=R[3],_t=R[4],jt=R[5],nr=R[6],er=R[7],br=R[8],Br=R[9],cn=R[10],nn=R[11],_[0]=Ee,_[1]=Je,_[2]=dt,_[3]=Mt,_[4]=_t,_[5]=jt,_[6]=nr,_[7]=er,_[8]=br,_[9]=Br,_[10]=cn,_[11]=nn,_[12]=Ee*ae+_t*ve+br*we+R[12],_[13]=Je*ae+jt*ve+Br*we+R[13],_[14]=dt*ae+nr*ve+cn*we+R[14],_[15]=Mt*ae+er*ve+nn*we+R[15]),_}function ms(_,R,U){var ae=U[0],ve=U[1],we=U[2];return _[0]=R[0]*ae,_[1]=R[1]*ae,_[2]=R[2]*ae,_[3]=R[3]*ae,_[4]=R[4]*ve,_[5]=R[5]*ve,_[6]=R[6]*ve,_[7]=R[7]*ve,_[8]=R[8]*we,_[9]=R[9]*we,_[10]=R[10]*we,_[11]=R[11]*we,_[12]=R[12],_[13]=R[13],_[14]=R[14],_[15]=R[15],_}function xs(_,R,U){var ae=Math.sin(U),ve=Math.cos(U),we=R[4],Ee=R[5],Je=R[6],dt=R[7],Mt=R[8],_t=R[9],jt=R[10],nr=R[11];return R!==_&&(_[0]=R[0],_[1]=R[1],_[2]=R[2],_[3]=R[3],_[12]=R[12],_[13]=R[13],_[14]=R[14],_[15]=R[15]),_[4]=we*ve+Mt*ae,_[5]=Ee*ve+_t*ae,_[6]=Je*ve+jt*ae,_[7]=dt*ve+nr*ae,_[8]=Mt*ve-we*ae,_[9]=_t*ve-Ee*ae,_[10]=jt*ve-Je*ae,_[11]=nr*ve-dt*ae,_}function Vh(_,R,U){var ae=Math.sin(U),ve=Math.cos(U),we=R[0],Ee=R[1],Je=R[2],dt=R[3],Mt=R[4],_t=R[5],jt=R[6],nr=R[7];return R!==_&&(_[8]=R[8],_[9]=R[9],_[10]=R[10],_[11]=R[11],_[12]=R[12],_[13]=R[13],_[14]=R[14],_[15]=R[15]),_[0]=we*ve+Mt*ae,_[1]=Ee*ve+_t*ae,_[2]=Je*ve+jt*ae,_[3]=dt*ve+nr*ae,_[4]=Mt*ve-we*ae,_[5]=_t*ve-Ee*ae,_[6]=jt*ve-Je*ae,_[7]=nr*ve-dt*ae,_}function Gv(_,R,U,ae,ve){var we=1/Math.tan(R/2),Ee;return _[0]=we/U,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=we,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=-1,_[12]=0,_[13]=0,_[15]=0,ve!=null&&ve!==1/0?(Ee=1/(ae-ve),_[10]=(ve+ae)*Ee,_[14]=2*ve*ae*Ee):(_[10]=-1,_[14]=-2*ae),_}function W0(_,R,U,ae,ve,we,Ee){var Je=1/(R-U),dt=1/(ae-ve),Mt=1/(we-Ee);return _[0]=-2*Je,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=-2*dt,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=2*Mt,_[11]=0,_[12]=(R+U)*Je,_[13]=(ve+ae)*dt,_[14]=(Ee+we)*Mt,_[15]=1,_}var Y0=yc;function dh(){var _=new To(3);return To!=Float32Array&&(_[0]=0,_[1]=0,_[2]=0),_}function j0(_){var R=new To(3);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R}function Hh(_,R,U){return _[0]=R[0]+U[0],_[1]=R[1]+U[1],_[2]=R[2]+U[2],_}function X0(_,R,U){return _[0]=R[0]-U[0],_[1]=R[1]-U[1],_[2]=R[2]-U[2],_}function Z0(_,R,U){return _[0]=R[0]*U,_[1]=R[1]*U,_[2]=R[2]*U,_}function Wv(_,R){var U=R[0],ae=R[1],ve=R[2],we=U*U+ae*ae+ve*ve;return we>0&&(we=1/Math.sqrt(we)),_[0]=R[0]*we,_[1]=R[1]*we,_[2]=R[2]*we,_}function Uw(_,R){return _[0]*R[0]+_[1]*R[1]+_[2]*R[2]}function Vw(_,R,U){var ae=R[0],ve=R[1],we=R[2],Ee=U[0],Je=U[1],dt=U[2];return _[0]=ve*dt-we*Je,_[1]=we*Ee-ae*dt,_[2]=ae*Je-ve*Ee,_}function Hw(_,R,U){var ae=R[0],ve=R[1],we=R[2];return _[0]=ae*U[0]+ve*U[3]+we*U[6],_[1]=ae*U[1]+ve*U[4]+we*U[7],_[2]=ae*U[2]+ve*U[5]+we*U[8],_}var Gw=X0;(function(){var _=dh();return function(R,U,ae,ve,we,Ee){var Je,dt;for(U||(U=3),ae||(ae=0),ve?dt=Math.min(ve*U+ae,R.length):dt=R.length,Je=ae;Je_.width||ve.height>_.height||U.x>_.width-ve.width||U.y>_.height-ve.height)throw new RangeError("out of range source coordinates for image copy");if(ve.width>R.width||ve.height>R.height||ae.x>R.width-ve.width||ae.y>R.height-ve.height)throw new RangeError("out of range destination coordinates for image copy");for(var Ee=_.data,Je=R.data,dt=0;dt80*U){Je=Mt=_[0],dt=_t=_[1];for(var br=U;brMt&&(Mt=jt),nr>_t&&(_t=nr);er=Math.max(Mt-Je,_t-dt),er=er!==0?1/er:0}return Yv(we,Ee,U,Je,dt,er),Ee}function Vm(_,R,U,ae,ve){var we,Ee;if(ve===eg(_,R,U,ae)>0)for(we=R;we=R;we-=ae)Ee=Wm(we,_[we],_[we+1],Ee);return Ee&&ip(Ee,Ee.next)&&(Xv(Ee),Ee=Ee.next),Ee}function mc(_,R){if(!_)return _;R||(R=_);var U=_,ae;do if(ae=!1,!U.steiner&&(ip(U,U.next)||so(U.prev,U,U.next)===0)){if(Xv(U),U=R=U.prev,U===U.next)break;ae=!0}else U=U.next;while(ae||U!==R);return R}function Yv(_,R,U,ae,ve,we,Ee){if(_){!Ee&&we&&g2(_,ae,ve,we);for(var Je=_,dt,Mt;_.prev!==_.next;){if(dt=_.prev,Mt=_.next,we?l2(_,ae,ve,we):s2(_)){R.push(dt.i/U),R.push(_.i/U),R.push(Mt.i/U),Xv(_),_=Mt.next,Je=Mt.next;continue}if(_=Mt,_===Je){Ee?Ee===1?(_=u2(mc(_),R,U),Yv(_,R,U,ae,ve,we,2)):Ee===2&&f2(_,R,U,ae,ve,we):Yv(mc(_),R,U,ae,ve,we,1);break}}}}function s2(_){var R=_.prev,U=_,ae=_.next;if(so(R,U,ae)>=0)return!1;for(var ve=_.next.next;ve!==_.prev;){if(Gh(R.x,R.y,U.x,U.y,ae.x,ae.y,ve.x,ve.y)&&so(ve.prev,ve,ve.next)>=0)return!1;ve=ve.next}return!0}function l2(_,R,U,ae){var ve=_.prev,we=_,Ee=_.next;if(so(ve,we,Ee)>=0)return!1;for(var Je=ve.xwe.x?ve.x>Ee.x?ve.x:Ee.x:we.x>Ee.x?we.x:Ee.x,_t=ve.y>we.y?ve.y>Ee.y?ve.y:Ee.y:we.y>Ee.y?we.y:Ee.y,jt=$0(Je,dt,R,U,ae),nr=$0(Mt,_t,R,U,ae),er=_.prevZ,br=_.nextZ;er&&er.z>=jt&&br&&br.z<=nr;){if(er!==_.prev&&er!==_.next&&Gh(ve.x,ve.y,we.x,we.y,Ee.x,Ee.y,er.x,er.y)&&so(er.prev,er,er.next)>=0||(er=er.prevZ,br!==_.prev&&br!==_.next&&Gh(ve.x,ve.y,we.x,we.y,Ee.x,Ee.y,br.x,br.y)&&so(br.prev,br,br.next)>=0))return!1;br=br.nextZ}for(;er&&er.z>=jt;){if(er!==_.prev&&er!==_.next&&Gh(ve.x,ve.y,we.x,we.y,Ee.x,Ee.y,er.x,er.y)&&so(er.prev,er,er.next)>=0)return!1;er=er.prevZ}for(;br&&br.z<=nr;){if(br!==_.prev&&br!==_.next&&Gh(ve.x,ve.y,we.x,we.y,Ee.x,Ee.y,br.x,br.y)&&so(br.prev,br,br.next)>=0)return!1;br=br.nextZ}return!0}function u2(_,R,U){var ae=_;do{var ve=ae.prev,we=ae.next.next;!ip(ve,we)&&Hm(ve,ae,ae.next,we)&&jv(ve,we)&&jv(we,ve)&&(R.push(ve.i/U),R.push(ae.i/U),R.push(we.i/U),Xv(ae),Xv(ae.next),ae=_=we),ae=ae.next}while(ae!==_);return mc(ae)}function f2(_,R,U,ae,ve,we){var Ee=_;do{for(var Je=Ee.next.next;Je!==Ee.prev;){if(Ee.i!==Je.i&&x2(Ee,Je)){var dt=Gm(Ee,Je);Ee=mc(Ee,Ee.next),dt=mc(dt,dt.next),Yv(Ee,R,U,ae,ve,we),Yv(dt,R,U,ae,ve,we);return}Je=Je.next}Ee=Ee.next}while(Ee!==_)}function c2(_,R,U,ae){var ve=[],we,Ee,Je,dt,Mt;for(we=0,Ee=R.length;we=U.next.y&&U.next.y!==U.y){var Je=U.x+(ve-U.y)*(U.next.x-U.x)/(U.next.y-U.y);if(Je<=ae&&Je>we){if(we=Je,Je===ae){if(ve===U.y)return U;if(ve===U.next.y)return U.next}Ee=U.x=U.x&&U.x>=Mt&&ae!==U.x&&Gh(ve<_t?ae:we,ve,Mt,_t,ve<_t?we:ae,ve,U.x,U.y)&&(nr=Math.abs(ve-U.y)/(ae-U.x),jv(U,_)&&(nrEe.x||U.x===Ee.x&&p2(Ee,U)))&&(Ee=U,jt=nr)),U=U.next;while(U!==dt);return Ee}function p2(_,R){return so(_.prev,_,R.prev)<0&&so(R.next,_,_.next)<0}function g2(_,R,U,ae){var ve=_;do ve.z===null&&(ve.z=$0(ve.x,ve.y,R,U,ae)),ve.prevZ=ve.prev,ve.nextZ=ve.next,ve=ve.next;while(ve!==_);ve.prevZ.nextZ=null,ve.prevZ=null,y2(ve)}function y2(_){var R,U,ae,ve,we,Ee,Je,dt,Mt=1;do{for(U=_,_=null,we=null,Ee=0;U;){for(Ee++,ae=U,Je=0,R=0;R0||dt>0&&ae;)Je!==0&&(dt===0||!ae||U.z<=ae.z)?(ve=U,U=U.nextZ,Je--):(ve=ae,ae=ae.nextZ,dt--),we?we.nextZ=ve:_=ve,ve.prevZ=we,we=ve;U=ae}we.nextZ=null,Mt*=2}while(Ee>1);return _}function $0(_,R,U,ae,ve){return _=32767*(_-U)*ve,R=32767*(R-ae)*ve,_=(_|_<<8)&16711935,_=(_|_<<4)&252645135,_=(_|_<<2)&858993459,_=(_|_<<1)&1431655765,R=(R|R<<8)&16711935,R=(R|R<<4)&252645135,R=(R|R<<2)&858993459,R=(R|R<<1)&1431655765,_|R<<1}function m2(_){var R=_,U=_;do(R.x=0&&(_-Ee)*(ae-Je)-(U-Ee)*(R-Je)>=0&&(U-Ee)*(we-Je)-(ve-Ee)*(ae-Je)>=0}function x2(_,R){return _.next.i!==R.i&&_.prev.i!==R.i&&!b2(_,R)&&(jv(_,R)&&jv(R,_)&&w2(_,R)&&(so(_.prev,_,R.prev)||so(_,R.prev,R))||ip(_,R)&&so(_.prev,_,_.next)>0&&so(R.prev,R,R.next)>0)}function so(_,R,U){return(R.y-_.y)*(U.x-R.x)-(R.x-_.x)*(U.y-R.y)}function ip(_,R){return _.x===R.x&&_.y===R.y}function Hm(_,R,U,ae){var ve=sp(so(_,R,U)),we=sp(so(_,R,ae)),Ee=sp(so(U,ae,_)),Je=sp(so(U,ae,R));return!!(ve!==we&&Ee!==Je||ve===0&&op(_,U,R)||we===0&&op(_,ae,R)||Ee===0&&op(U,_,ae)||Je===0&&op(U,R,ae))}function op(_,R,U){return R.x<=Math.max(_.x,U.x)&&R.x>=Math.min(_.x,U.x)&&R.y<=Math.max(_.y,U.y)&&R.y>=Math.min(_.y,U.y)}function sp(_){return _>0?1:_<0?-1:0}function b2(_,R){var U=_;do{if(U.i!==_.i&&U.next.i!==_.i&&U.i!==R.i&&U.next.i!==R.i&&Hm(U,U.next,_,R))return!0;U=U.next}while(U!==_);return!1}function jv(_,R){return so(_.prev,_,_.next)<0?so(_,R,_.next)>=0&&so(_,_.prev,R)>=0:so(_,R,_.prev)<0||so(_,_.next,R)<0}function w2(_,R){var U=_,ae=!1,ve=(_.x+R.x)/2,we=(_.y+R.y)/2;do U.y>we!=U.next.y>we&&U.next.y!==U.y&&ve<(U.next.x-U.x)*(we-U.y)/(U.next.y-U.y)+U.x&&(ae=!ae),U=U.next;while(U!==_);return ae}function Gm(_,R){var U=new q0(_.i,_.x,_.y),ae=new q0(R.i,R.x,R.y),ve=_.next,we=R.prev;return _.next=R,R.prev=_,U.next=ve,ve.prev=U,ae.next=U,U.prev=ae,we.next=ae,ae.prev=we,ae}function Wm(_,R,U,ae){var ve=new q0(_,R,U);return ae?(ve.next=ae.next,ve.prev=ae,ae.next.prev=ve,ae.next=ve):(ve.prev=ve,ve.next=ve),ve}function Xv(_){_.next.prev=_.prev,_.prev.next=_.next,_.prevZ&&(_.prevZ.nextZ=_.nextZ),_.nextZ&&(_.nextZ.prevZ=_.prevZ)}function q0(_,R,U){this.i=_,this.x=R,this.y=U,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}ap.deviation=function(_,R,U,ae){var ve=R&&R.length,we=ve?R[0]*U:_.length,Ee=Math.abs(eg(_,0,we,U));if(ve)for(var Je=0,dt=R.length;Je0&&(ae+=_[ve-1].length,U.holes.push(ae))}return U},Q0.default=o2;function T2(_,R,U,ae,ve){Ym(_,R,U,ae||_.length-1,ve||A2)}function Ym(_,R,U,ae,ve){for(;ae>U;){if(ae-U>600){var we=ae-U+1,Ee=R-U+1,Je=Math.log(we),dt=.5*Math.exp(2*Je/3),Mt=.5*Math.sqrt(Je*dt*(we-dt)/we)*(Ee-we/2<0?-1:1),_t=Math.max(U,Math.floor(R-Ee*dt/we+Mt)),jt=Math.min(ae,Math.floor(R+(we-Ee)*dt/we+Mt));Ym(_,R,_t,jt,ve)}var nr=_[R],er=U,br=ae;for(Zv(_,U,R),ve(_[ae],nr)>0&&Zv(_,U,ae);er0;)br--}ve(_[U],nr)===0?Zv(_,U,br):(br++,Zv(_,br,ae)),br<=R&&(U=br+1),R<=br&&(ae=br-1)}}function Zv(_,R,U){var ae=_[R];_[R]=_[U],_[U]=ae}function A2(_,R){return _R?1:0}function tg(_,R){var U=_.length;if(U<=1)return[_];for(var ae=[],ve,we,Ee=0;Ee1)for(var dt=0;dt>3}if(ae--,U===1||U===2)ve+=_.readSVarint(),we+=_.readSVarint(),U===1&&(Je&&Ee.push(Je),Je=[]),Je.push(new r(ve,we));else if(U===7)Je&&Je.push(Je[0].clone());else throw new Error("unknown command "+U)}return Je&&Ee.push(Je),Ee},Wh.prototype.bbox=function(){var _=this._pbf;_.pos=this._geometry;for(var R=_.readVarint()+_.pos,U=1,ae=0,ve=0,we=0,Ee=1/0,Je=-1/0,dt=1/0,Mt=-1/0;_.pos>3}if(ae--,U===1||U===2)ve+=_.readSVarint(),we+=_.readSVarint(),veJe&&(Je=ve),weMt&&(Mt=we);else if(U!==7)throw new Error("unknown command "+U)}return[Ee,dt,Je,Mt]},Wh.prototype.toGeoJSON=function(_,R,U){var ae=this.extent*Math.pow(2,U),ve=this.extent*_,we=this.extent*R,Ee=this.loadGeometry(),Je=Wh.types[this.type],dt,Mt;function _t(er){for(var br=0;br>3;R=ae===1?_.readString():ae===2?_.readFloat():ae===3?_.readDouble():ae===4?_.readVarint64():ae===5?_.readVarint():ae===6?_.readSVarint():ae===7?_.readBoolean():null}return R}Zm.prototype.feature=function(_){if(_<0||_>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[_];var R=this._pbf.readVarint()+this._pbf.pos;return new jm(this._pbf,R,this.extent,this._keys,this._values)};var N2=B2;function B2(_,R){this.layers=_.readFields(U2,{},R)}function U2(_,R,U){if(_===3){var ae=new Xm(U,U.readVarint()+U.pos);ae.length&&(R[ae.name]=ae)}}var V2=N2,H2=jm,G2=Xm,Yh={VectorTile:V2,VectorTileFeature:H2,VectorTileLayer:G2},W2=Yh.VectorTileFeature.types,Y2=500,ag=Math.pow(2,13);function Kv(_,R,U,ae,ve,we,Ee,Je){_.emplaceBack(R,U,Math.floor(ae*ag)*2+Ee,ve*ag*2,we*ag*2,Math.round(Je))}var Su=function(R){this.zoom=R.zoom,this.overscaling=R.overscaling,this.layers=R.layers,this.layerIds=this.layers.map(function(U){return U.id}),this.index=R.index,this.hasPattern=!1,this.layoutVertexArray=new Ku,this.indexArray=new wu,this.programConfigurations=new da(R.layers,R.zoom),this.segments=new oo,this.stateDependentLayerIds=this.layers.filter(function(U){return U.isStateDependent()}).map(function(U){return U.id})};Su.prototype.populate=function(R,U,ae){this.features=[],this.hasPattern=rg("fill-extrusion",this.layers,U);for(var ve=0,we=R;ve=1){var Cn=cn[Ln-1];if(!j2(yn,Cn)){er.vertexLength+4>oo.MAX_VERTEX_ARRAY_LENGTH&&(er=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var kn=yn.sub(Cn)._perp()._unit(),jn=Cn.dist(yn);nn+jn>32768&&(nn=0),Kv(this.layoutVertexArray,yn.x,yn.y,kn.x,kn.y,0,0,nn),Kv(this.layoutVertexArray,yn.x,yn.y,kn.x,kn.y,0,1,nn),nn+=jn,Kv(this.layoutVertexArray,Cn.x,Cn.y,kn.x,kn.y,0,0,nn),Kv(this.layoutVertexArray,Cn.x,Cn.y,kn.x,kn.y,0,1,nn);var aa=er.vertexLength;this.indexArray.emplaceBack(aa,aa+2,aa+1),this.indexArray.emplaceBack(aa+1,aa+2,aa+3),er.vertexLength+=4,er.primitiveLength+=2}}}}if(er.vertexLength+Mt>oo.MAX_VERTEX_ARRAY_LENGTH&&(er=this.segments.prepareSegment(Mt,this.layoutVertexArray,this.indexArray)),W2[R.type]==="Polygon"){for(var ta=[],Ta=[],pa=er.vertexLength,ba=0,Va=dt;baMa)||_.y===R.y&&(_.y<0||_.y>Ma)}function X2(_){return _.every(function(R){return R.x<0})||_.every(function(R){return R.x>Ma})||_.every(function(R){return R.y<0})||_.every(function(R){return R.y>Ma})}var Z2=new hi({"fill-extrusion-opacity":new la(Ar["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new La(Ar["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new la(Ar["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new la(Ar["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ro(Ar["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new La(Ar["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new La(Ar["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new la(Ar["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),K2={paint:Z2},J2=function(_){function R(U){_.call(this,U,K2)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.createBucket=function(ae){return new Su(ae)},R.prototype.queryRadius=function(){return dl(this.paint.get("fill-extrusion-translate"))},R.prototype.is3D=function(){return!0},R.prototype.queryIntersectsFeature=function(ae,ve,we,Ee,Je,dt,Mt,_t){var jt=Tu(ae,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),dt.angle,Mt),nr=this.paint.get("fill-extrusion-height").evaluate(ve,we),er=this.paint.get("fill-extrusion-base").evaluate(ve,we),br=q2(jt,_t,dt,0),Br=$2(Ee,er,nr,_t),cn=Br[0],nn=Br[1];return Q2(cn,nn,br)},R}(Ni);function Jv(_,R){return _.x*R.x+_.y*R.y}function Km(_,R){if(_.length===1){for(var U=0,ae=R[U++],ve;!ve||ae.equals(ve);)if(ve=R[U++],!ve)return 1/0;for(;U=2&&R[Mt-1].equals(R[Mt-2]);)Mt--;for(var _t=0;_t0;if(ta&&Ln>_t){var pa=er.dist(br);if(pa>2*jt){var ba=er.sub(er.sub(br)._mult(jt/pa)._round());this.updateDistance(br,ba),this.addCurrentVertex(ba,cn,0,0,nr),br=ba}}var Va=br&&Br,Aa=Va?ae:dt?"butt":ve;if(Va&&Aa==="round"&&(jnwe&&(Aa="bevel"),Aa==="bevel"&&(jn>2&&(Aa="flipbevel"),jn100)yn=nn.mult(-1);else{var Ca=jn*cn.add(nn).mag()/cn.sub(nn).mag();yn._perp()._mult(Ca*(Ta?-1:1))}this.addCurrentVertex(er,yn,0,0,nr),this.addCurrentVertex(er,yn.mult(-1),0,0,nr)}else if(Aa==="bevel"||Aa==="fakeround"){var ja=-Math.sqrt(jn*jn-1),Ba=Ta?ja:0,li=Ta?0:ja;if(br&&this.addCurrentVertex(er,cn,Ba,li,nr),Aa==="fakeround")for(var bi=Math.round(aa*180/Math.PI/s4),ui=1;ui2*jt){var fo=er.add(Br.sub(er)._mult(jt/So)._round());this.updateDistance(er,fo),this.addCurrentVertex(fo,nn,0,0,nr),er=fo}}}}},as.prototype.addCurrentVertex=function(R,U,ae,ve,we,Ee){Ee===void 0&&(Ee=!1);var Je=U.x+U.y*ae,dt=U.y-U.x*ae,Mt=-U.x+U.y*ve,_t=-U.y-U.x*ve;this.addHalfVertex(R,Je,dt,Ee,!1,ae,we),this.addHalfVertex(R,Mt,_t,Ee,!0,-ve,we),this.distance>$m/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(R,U,ae,ve,we,Ee))},as.prototype.addHalfVertex=function(R,U,ae,ve,we,Ee,Je){var dt=R.x,Mt=R.y,_t=this.lineClips?this.scaledDistance*($m-1):this.scaledDistance,jt=_t*Qm;if(this.layoutVertexArray.emplaceBack((dt<<1)+(ve?1:0),(Mt<<1)+(we?1:0),Math.round(Jm*U)+128,Math.round(Jm*ae)+128,(Ee===0?0:Ee<0?-1:1)+1|(jt&63)<<2,jt>>6),this.lineClips){var nr=this.scaledDistance-this.lineClips.start,er=this.lineClips.end-this.lineClips.start,br=nr/er;this.layoutVertexArray2.emplaceBack(br,this.lineClipsArray.length)}var Br=Je.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Br),Je.primitiveLength++),we?this.e2=Br:this.e1=Br},as.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},as.prototype.updateDistance=function(R,U){this.distance+=R.dist(U),this.updateScaledDistance()},Be("LineBucket",as,{omit:["layers","patternFeatures"]});var u4=new hi({"line-cap":new la(Ar.layout_line["line-cap"]),"line-join":new La(Ar.layout_line["line-join"]),"line-miter-limit":new la(Ar.layout_line["line-miter-limit"]),"line-round-limit":new la(Ar.layout_line["line-round-limit"]),"line-sort-key":new La(Ar.layout_line["line-sort-key"])}),f4=new hi({"line-opacity":new La(Ar.paint_line["line-opacity"]),"line-color":new La(Ar.paint_line["line-color"]),"line-translate":new la(Ar.paint_line["line-translate"]),"line-translate-anchor":new la(Ar.paint_line["line-translate-anchor"]),"line-width":new La(Ar.paint_line["line-width"]),"line-gap-width":new La(Ar.paint_line["line-gap-width"]),"line-offset":new La(Ar.paint_line["line-offset"]),"line-blur":new La(Ar.paint_line["line-blur"]),"line-dasharray":new Fo(Ar.paint_line["line-dasharray"]),"line-pattern":new Ro(Ar.paint_line["line-pattern"]),"line-gradient":new io(Ar.paint_line["line-gradient"])}),qm={paint:f4,layout:u4},c4=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.possiblyEvaluate=function(ae,ve){return ve=new Sa(Math.floor(ve.zoom),{now:ve.now,fadeDuration:ve.fadeDuration,zoomHistory:ve.zoomHistory,transition:ve.transition}),_.prototype.possiblyEvaluate.call(this,ae,ve)},R.prototype.evaluate=function(ae,ve,we,Ee){return ve=x({},ve,{zoom:Math.floor(ve.zoom)}),_.prototype.evaluate.call(this,ae,ve,we,Ee)},R}(La),e1=new c4(qm.paint.properties["line-width"].specification);e1.useIntegerZoom=!0;var h4=function(_){function R(U){_.call(this,U,qm),this.gradientVersion=0}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._handleSpecialPaintPropertyUpdate=function(ae){if(ae==="line-gradient"){var ve=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=ve._styleExpression.expression instanceof Ko,this.gradientVersion=(this.gradientVersion+1)%f}},R.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},R.prototype.recalculate=function(ae,ve){_.prototype.recalculate.call(this,ae,ve),this.paint._values["line-floorwidth"]=e1.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ae)},R.prototype.createBucket=function(ae){return new as(ae)},R.prototype.queryRadius=function(ae){var ve=ae,we=t1(ns("line-width",this,ve),ns("line-gap-width",this,ve)),Ee=ns("line-offset",this,ve);return we/2+Math.abs(Ee)+dl(this.paint.get("line-translate"))},R.prototype.queryIntersectsFeature=function(ae,ve,we,Ee,Je,dt,Mt){var _t=Tu(ae,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),dt.angle,Mt),jt=Mt/2*t1(this.paint.get("line-width").evaluate(ve,we),this.paint.get("line-gap-width").evaluate(ve,we)),nr=this.paint.get("line-offset").evaluate(ve,we);return nr&&(Ee=v4(Ee,nr*Mt)),yo(_t,Ee,jt)},R.prototype.isTileClipped=function(){return!0},R}(Ni);function t1(_,R){return R>0?R+2*_:_}function v4(_,R){for(var U=[],ae=new r(0,0),ve=0;ve<_.length;ve++){for(var we=_[ve],Ee=[],Je=0;Je":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function w4(_){for(var R="",U=0;U<_.length;U++){var ae=_.charCodeAt(U+1)||null,ve=_.charCodeAt(U-1)||null,we=(!ae||!Vr(ae)||Qv[_[U+1]])&&(!ve||!Vr(ve)||Qv[_[U-1]]);we&&Qv[_[U]]?R+=Qv[_[U]]:R+=_[U]}return R}var Do=24,T4=function(_,R,U,ae,ve){var we,Ee,Je=ve*8-ae-1,dt=(1<>1,_t=-7,jt=U?ve-1:0,nr=U?-1:1,er=_[R+jt];for(jt+=nr,we=er&(1<<-_t)-1,er>>=-_t,_t+=Je;_t>0;we=we*256+_[R+jt],jt+=nr,_t-=8);for(Ee=we&(1<<-_t)-1,we>>=-_t,_t+=ae;_t>0;Ee=Ee*256+_[R+jt],jt+=nr,_t-=8);if(we===0)we=1-Mt;else{if(we===dt)return Ee?NaN:(er?-1:1)*(1/0);Ee=Ee+Math.pow(2,ae),we=we-Mt}return(er?-1:1)*Ee*Math.pow(2,we-ae)},A4=function(_,R,U,ae,ve,we){var Ee,Je,dt,Mt=we*8-ve-1,_t=(1<>1,nr=ve===23?Math.pow(2,-24)-Math.pow(2,-77):0,er=ae?0:we-1,br=ae?1:-1,Br=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(Je=isNaN(R)?1:0,Ee=_t):(Ee=Math.floor(Math.log(R)/Math.LN2),R*(dt=Math.pow(2,-Ee))<1&&(Ee--,dt*=2),Ee+jt>=1?R+=nr/dt:R+=nr*Math.pow(2,1-jt),R*dt>=2&&(Ee++,dt/=2),Ee+jt>=_t?(Je=0,Ee=_t):Ee+jt>=1?(Je=(R*dt-1)*Math.pow(2,ve),Ee=Ee+jt):(Je=R*Math.pow(2,jt-1)*Math.pow(2,ve),Ee=0));ve>=8;_[U+er]=Je&255,er+=br,Je/=256,ve-=8);for(Ee=Ee<0;_[U+er]=Ee&255,er+=br,Ee/=256,Mt-=8);_[U+er-br]|=Br*128},lp={read:T4,write:A4},up=Ei;function Ei(_){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(_)?_:new Uint8Array(_||0),this.pos=0,this.type=0,this.length=this.buf.length}Ei.Varint=0,Ei.Fixed64=1,Ei.Bytes=2,Ei.Fixed32=5;var ig=65536*65536,n1=1/ig,S4=12,a1=typeof TextDecoder>"u"?null:new TextDecoder("utf8");Ei.prototype={destroy:function(){this.buf=null},readFields:function(_,R,U){for(U=U||this.length;this.pos>3,we=this.pos;this.type=ae&7,_(ve,R,this),this.pos===we&&this.skip(ae)}return R},readMessage:function(_,R){return this.readFields(_,R,this.readVarint()+this.pos)},readFixed32:function(){var _=fp(this.buf,this.pos);return this.pos+=4,_},readSFixed32:function(){var _=o1(this.buf,this.pos);return this.pos+=4,_},readFixed64:function(){var _=fp(this.buf,this.pos)+fp(this.buf,this.pos+4)*ig;return this.pos+=8,_},readSFixed64:function(){var _=fp(this.buf,this.pos)+o1(this.buf,this.pos+4)*ig;return this.pos+=8,_},readFloat:function(){var _=lp.read(this.buf,this.pos,!0,23,4);return this.pos+=4,_},readDouble:function(){var _=lp.read(this.buf,this.pos,!0,52,8);return this.pos+=8,_},readVarint:function(_){var R=this.buf,U,ae;return ae=R[this.pos++],U=ae&127,ae<128||(ae=R[this.pos++],U|=(ae&127)<<7,ae<128)||(ae=R[this.pos++],U|=(ae&127)<<14,ae<128)||(ae=R[this.pos++],U|=(ae&127)<<21,ae<128)?U:(ae=R[this.pos],U|=(ae&15)<<28,M4(U,_,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var _=this.readVarint();return _%2===1?(_+1)/-2:_/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var _=this.readVarint()+this.pos,R=this.pos;return this.pos=_,_-R>=S4&&a1?B4(this.buf,R,_):N4(this.buf,R,_)},readBytes:function(){var _=this.readVarint()+this.pos,R=this.buf.subarray(this.pos,_);return this.pos=_,R},readPackedVarint:function(_,R){if(this.type!==Ei.Bytes)return _.push(this.readVarint(R));var U=Cf(this);for(_=_||[];this.pos127;);else if(R===Ei.Bytes)this.pos=this.readVarint()+this.pos;else if(R===Ei.Fixed32)this.pos+=4;else if(R===Ei.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+R)},writeTag:function(_,R){this.writeVarint(_<<3|R)},realloc:function(_){for(var R=this.length||16;R268435455||_<0){E4(_,this);return}this.realloc(4),this.buf[this.pos++]=_&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=(_>>>=7)&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=(_>>>=7)&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=_>>>7&127)))},writeSVarint:function(_){this.writeVarint(_<0?-_*2-1:_*2)},writeBoolean:function(_){this.writeVarint(!!_)},writeString:function(_){_=String(_),this.realloc(_.length*4),this.pos++;var R=this.pos;this.pos=U4(this.buf,_,this.pos);var U=this.pos-R;U>=128&&i1(R,U,this),this.pos=R-1,this.writeVarint(U),this.pos+=U},writeFloat:function(_){this.realloc(4),lp.write(this.buf,_,this.pos,!0,23,4),this.pos+=4},writeDouble:function(_){this.realloc(8),lp.write(this.buf,_,this.pos,!0,52,8),this.pos+=8},writeBytes:function(_){var R=_.length;this.writeVarint(R),this.realloc(R);for(var U=0;U=128&&i1(U,ae,this),this.pos=U-1,this.writeVarint(ae),this.pos+=ae},writeMessage:function(_,R,U){this.writeTag(_,Ei.Bytes),this.writeRawMessage(R,U)},writePackedVarint:function(_,R){R.length&&this.writeMessage(_,P4,R)},writePackedSVarint:function(_,R){R.length&&this.writeMessage(_,_4,R)},writePackedBoolean:function(_,R){R.length&&this.writeMessage(_,I4,R)},writePackedFloat:function(_,R){R.length&&this.writeMessage(_,R4,R)},writePackedDouble:function(_,R){R.length&&this.writeMessage(_,D4,R)},writePackedFixed32:function(_,R){R.length&&this.writeMessage(_,k4,R)},writePackedSFixed32:function(_,R){R.length&&this.writeMessage(_,z4,R)},writePackedFixed64:function(_,R){R.length&&this.writeMessage(_,O4,R)},writePackedSFixed64:function(_,R){R.length&&this.writeMessage(_,F4,R)},writeBytesField:function(_,R){this.writeTag(_,Ei.Bytes),this.writeBytes(R)},writeFixed32Field:function(_,R){this.writeTag(_,Ei.Fixed32),this.writeFixed32(R)},writeSFixed32Field:function(_,R){this.writeTag(_,Ei.Fixed32),this.writeSFixed32(R)},writeFixed64Field:function(_,R){this.writeTag(_,Ei.Fixed64),this.writeFixed64(R)},writeSFixed64Field:function(_,R){this.writeTag(_,Ei.Fixed64),this.writeSFixed64(R)},writeVarintField:function(_,R){this.writeTag(_,Ei.Varint),this.writeVarint(R)},writeSVarintField:function(_,R){this.writeTag(_,Ei.Varint),this.writeSVarint(R)},writeStringField:function(_,R){this.writeTag(_,Ei.Bytes),this.writeString(R)},writeFloatField:function(_,R){this.writeTag(_,Ei.Fixed32),this.writeFloat(R)},writeDoubleField:function(_,R){this.writeTag(_,Ei.Fixed64),this.writeDouble(R)},writeBooleanField:function(_,R){this.writeVarintField(_,!!R)}};function M4(_,R,U){var ae=U.buf,ve,we;if(we=ae[U.pos++],ve=(we&112)>>4,we<128||(we=ae[U.pos++],ve|=(we&127)<<3,we<128)||(we=ae[U.pos++],ve|=(we&127)<<10,we<128)||(we=ae[U.pos++],ve|=(we&127)<<17,we<128)||(we=ae[U.pos++],ve|=(we&127)<<24,we<128)||(we=ae[U.pos++],ve|=(we&1)<<31,we<128))return jh(_,ve,R);throw new Error("Expected varint not more than 10 bytes")}function Cf(_){return _.type===Ei.Bytes?_.readVarint()+_.pos:_.pos+1}function jh(_,R,U){return U?R*4294967296+(_>>>0):(R>>>0)*4294967296+(_>>>0)}function E4(_,R){var U,ae;if(_>=0?(U=_%4294967296|0,ae=_/4294967296|0):(U=~(-_%4294967296),ae=~(-_/4294967296),U^4294967295?U=U+1|0:(U=0,ae=ae+1|0)),_>=18446744073709552e3||_<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");R.realloc(10),C4(U,ae,R),L4(ae,R)}function C4(_,R,U){U.buf[U.pos++]=_&127|128,_>>>=7,U.buf[U.pos++]=_&127|128,_>>>=7,U.buf[U.pos++]=_&127|128,_>>>=7,U.buf[U.pos++]=_&127|128,_>>>=7,U.buf[U.pos]=_&127}function L4(_,R){var U=(_&7)<<4;R.buf[R.pos++]|=U|((_>>>=3)?128:0),_&&(R.buf[R.pos++]=_&127|((_>>>=7)?128:0),_&&(R.buf[R.pos++]=_&127|((_>>>=7)?128:0),_&&(R.buf[R.pos++]=_&127|((_>>>=7)?128:0),_&&(R.buf[R.pos++]=_&127|((_>>>=7)?128:0),_&&(R.buf[R.pos++]=_&127)))))}function i1(_,R,U){var ae=R<=16383?1:R<=2097151?2:R<=268435455?3:Math.floor(Math.log(R)/(Math.LN2*7));U.realloc(ae);for(var ve=U.pos-1;ve>=_;ve--)U.buf[ve+ae]=U.buf[ve]}function P4(_,R){for(var U=0;U<_.length;U++)R.writeVarint(_[U])}function _4(_,R){for(var U=0;U<_.length;U++)R.writeSVarint(_[U])}function R4(_,R){for(var U=0;U<_.length;U++)R.writeFloat(_[U])}function D4(_,R){for(var U=0;U<_.length;U++)R.writeDouble(_[U])}function I4(_,R){for(var U=0;U<_.length;U++)R.writeBoolean(_[U])}function k4(_,R){for(var U=0;U<_.length;U++)R.writeFixed32(_[U])}function z4(_,R){for(var U=0;U<_.length;U++)R.writeSFixed32(_[U])}function O4(_,R){for(var U=0;U<_.length;U++)R.writeFixed64(_[U])}function F4(_,R){for(var U=0;U<_.length;U++)R.writeSFixed64(_[U])}function fp(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+_[R+3]*16777216}function Xh(_,R,U){_[U]=R,_[U+1]=R>>>8,_[U+2]=R>>>16,_[U+3]=R>>>24}function o1(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+(_[R+3]<<24)}function N4(_,R,U){for(var ae="",ve=R;ve239?4:we>223?3:we>191?2:1;if(ve+Je>U)break;var dt,Mt,_t;Je===1?we<128&&(Ee=we):Je===2?(dt=_[ve+1],(dt&192)===128&&(Ee=(we&31)<<6|dt&63,Ee<=127&&(Ee=null))):Je===3?(dt=_[ve+1],Mt=_[ve+2],(dt&192)===128&&(Mt&192)===128&&(Ee=(we&15)<<12|(dt&63)<<6|Mt&63,(Ee<=2047||Ee>=55296&&Ee<=57343)&&(Ee=null))):Je===4&&(dt=_[ve+1],Mt=_[ve+2],_t=_[ve+3],(dt&192)===128&&(Mt&192)===128&&(_t&192)===128&&(Ee=(we&15)<<18|(dt&63)<<12|(Mt&63)<<6|_t&63,(Ee<=65535||Ee>=1114112)&&(Ee=null))),Ee===null?(Ee=65533,Je=1):Ee>65535&&(Ee-=65536,ae+=String.fromCharCode(Ee>>>10&1023|55296),Ee=56320|Ee&1023),ae+=String.fromCharCode(Ee),ve+=Je}return ae}function B4(_,R,U){return a1.decode(_.subarray(R,U))}function U4(_,R,U){for(var ae=0,ve,we;ae55295&&ve<57344)if(we)if(ve<56320){_[U++]=239,_[U++]=191,_[U++]=189,we=ve;continue}else ve=we-55296<<10|ve-56320|65536,we=null;else{ve>56319||ae+1===R.length?(_[U++]=239,_[U++]=191,_[U++]=189):we=ve;continue}else we&&(_[U++]=239,_[U++]=191,_[U++]=189,we=null);ve<128?_[U++]=ve:(ve<2048?_[U++]=ve>>6|192:(ve<65536?_[U++]=ve>>12|224:(_[U++]=ve>>18|240,_[U++]=ve>>12&63|128),_[U++]=ve>>6&63|128),_[U++]=ve&63|128)}return U}var og=3;function V4(_,R,U){_===1&&U.readMessage(H4,R)}function H4(_,R,U){if(_===3){var ae=U.readMessage(G4,{}),ve=ae.id,we=ae.bitmap,Ee=ae.width,Je=ae.height,dt=ae.left,Mt=ae.top,_t=ae.advance;R.push({id:ve,bitmap:new ph({width:Ee+2*og,height:Je+2*og},we),metrics:{width:Ee,height:Je,left:dt,top:Mt,advance:_t}})}}function G4(_,R,U){_===1?R.id=U.readVarint():_===2?R.bitmap=U.readBytes():_===3?R.width=U.readVarint():_===4?R.height=U.readVarint():_===5?R.left=U.readSVarint():_===6?R.top=U.readSVarint():_===7&&(R.advance=U.readVarint())}function W4(_){return new up(_).readFields(V4,[])}var s1=og;function l1(_){for(var R=0,U=0,ae=0,ve=_;ae=0;er--){var br=Je[er];if(!(nr.w>br.w||nr.h>br.h)){if(nr.x=br.x,nr.y=br.y,Mt=Math.max(Mt,nr.y+nr.h),dt=Math.max(dt,nr.x+nr.w),nr.w===br.w&&nr.h===br.h){var Br=Je.pop();er=0&&ve>=R&&$u[this.text.charCodeAt(ve)];ve--)ae--;this.text=this.text.substring(R,ae),this.sectionIndex=this.sectionIndex.slice(R,ae)},Go.prototype.substring=function(R,U){var ae=new Go;return ae.text=this.text.substring(R,U),ae.sectionIndex=this.sectionIndex.slice(R,U),ae.sections=this.sections,ae},Go.prototype.toString=function(){return this.text},Go.prototype.getMaxScale=function(){var R=this;return this.sectionIndex.reduce(function(U,ae){return Math.max(U,R.sections[ae].scale)},0)},Go.prototype.addTextSection=function(R,U){this.text+=R.text,this.sections.push(Zh.forText(R.scale,R.fontStack||U));for(var ae=this.sections.length-1,ve=0;ve=f1?null:++this.imageSectionID:(this.imageSectionID=u1,this.imageSectionID)};function j4(_,R){for(var U=[],ae=_.text,ve=0,we=0,Ee=R;we=0,_t=0,jt=0;jt<_.length();jt++){var nr=_.getSection(jt),er=_.getCharCode(jt);if($u[er]||(_t+=c1(er,nr,ae,ve,R,Ee)),jt<_.length()-1){var br=$r(er);(ks[er]||br||nr.imageName)&&Je.push(v1(jt+1,_t,dt,Je,Z4(er,_.getCharCode(jt+1),br&&Mt),!1))}}return d1(v1(_.length(),_t,dt,Je,0,!0))}function lg(_){var R=.5,U=.5;switch(_){case"right":case"top-right":case"bottom-right":R=1;break;case"left":case"top-left":case"bottom-left":R=0;break}switch(_){case"bottom":case"bottom-right":case"bottom-left":U=1;break;case"top":case"top-right":case"top-left":U=0;break}return{horizontalAlign:R,verticalAlign:U}}function K4(_,R,U,ae,ve,we,Ee,Je,dt,Mt,_t,jt){for(var nr=0,er=ed,br=0,Br=0,cn=Je==="right"?1:Je==="left"?0:.5,nn=0,Ln=0,yn=ve;Ln0&&fo>Ta&&(Ta=fo)}else{var fi=U[ba.fontStack],ni=fi&&fi[Aa];if(ni&&ni.rect)Ba=ni.rect,ja=ni.metrics;else{var Mi=R[ba.fontStack],Ci=Mi&&Mi[Aa];if(!Ci)continue;ja=Ci.metrics}Ca=(kn-ba.scale)*Do}ui?(_.verticalizable=!0,ta.push({glyph:Aa,imageName:li,x:nr,y:er+Ca,vertical:ui,scale:ba.scale,fontStack:ba.fontStack,sectionIndex:Va,metrics:ja,rect:Ba}),nr+=bi*ba.scale+Mt):(ta.push({glyph:Aa,imageName:li,x:nr,y:er+Ca,vertical:ui,scale:ba.scale,fontStack:ba.fontStack,sectionIndex:Va,metrics:ja,rect:Ba}),nr+=ja.advance*ba.scale+Mt)}if(ta.length!==0){var Wo=nr-Mt;br=Math.max(Wo,br),J4(ta,0,ta.length-1,cn,Ta)}nr=0;var Yo=we*kn+Ta;aa.lineOffset=Math.max(Ta,jn),er+=Yo,Br=Math.max(Yo,Br),++nn}var Mo=er-ed,is=lg(Ee),os=is.horizontalAlign,mo=is.verticalAlign;Q4(_.positionedLines,cn,os,mo,br,Br,we,Mo,ve.length),_.top+=-mo*Mo,_.bottom=_.top+Mo,_.left+=-os*br,_.right=_.left+br}function J4(_,R,U,ae,ve){if(!(!ae&&!ve))for(var we=_[U],Ee=we.metrics.advance*we.scale,Je=(_[U].x+Ee)*ae,dt=R;dt<=U;dt++)_[dt].x-=Je,_[dt].y+=ve}function Q4(_,R,U,ae,ve,we,Ee,Je,dt){var Mt=(R-U)*ve,_t=0;we!==Ee?_t=-Je*ae-ed:_t=(-ae*dt+.5)*Ee;for(var jt=0,nr=_;jt-U/2;){if(Ee--,Ee<0)return!1;Je-=_[Ee].dist(we),we=_[Ee]}Je+=_[Ee].dist(_[Ee+1]),Ee++;for(var dt=[],Mt=0;Jeae;)Mt-=dt.shift().angleDelta;if(Mt>ve)return!1;Ee++,Je+=jt.dist(nr)}return!0}function x1(_){for(var R=0,U=0;U<_.length-1;U++)R+=_[U].dist(_[U+1]);return R}function b1(_,R,U){return _?.6*R*U:0}function w1(_,R){return Math.max(_?_.right-_.left:0,R?R.right-R.left:0)}function eT(_,R,U,ae,ve,we){for(var Ee=b1(U,ve,we),Je=w1(U,ae)*we,dt=0,Mt=x1(_)/2,_t=0;_t<_.length-1;_t++){var jt=_[_t],nr=_[_t+1],er=jt.dist(nr);if(dt+er>Mt){var br=(Mt-dt)/er,Br=_i(jt.x,nr.x,br),cn=_i(jt.y,nr.y,br),nn=new Kh(Br,cn,nr.angleTo(jt),_t);return nn._round(),!Ee||m1(_,nn,Je,Ee,R)?nn:void 0}dt+=er}}function tT(_,R,U,ae,ve,we,Ee,Je,dt){var Mt=b1(ae,we,Ee),_t=w1(ae,ve),jt=_t*Ee,nr=_[0].x===0||_[0].x===dt||_[0].y===0||_[0].y===dt;R-jt=0&&Cn=0&&kn=0&&nr+Mt<=_t){var jn=new Kh(Cn,kn,Ln,br);jn._round(),(!ae||m1(_,jn,we,ae,ve))&&er.push(jn)}}jt+=nn}return!Je&&!er.length&&!Ee&&(er=T1(_,jt/2,U,ae,ve,we,Ee,!0,dt)),er}function A1(_,R,U,ae,ve){for(var we=[],Ee=0;Ee<_.length;Ee++)for(var Je=_[Ee],dt=void 0,Mt=0;Mt=ae&&jt.x>=ae)&&(_t.x>=ae?_t=new r(ae,_t.y+(jt.y-_t.y)*((ae-_t.x)/(jt.x-_t.x)))._round():jt.x>=ae&&(jt=new r(ae,_t.y+(jt.y-_t.y)*((ae-_t.x)/(jt.x-_t.x)))._round()),!(_t.y>=ve&&jt.y>=ve)&&(_t.y>=ve?_t=new r(_t.x+(jt.x-_t.x)*((ve-_t.y)/(jt.y-_t.y)),ve)._round():jt.y>=ve&&(jt=new r(_t.x+(jt.x-_t.x)*((ve-_t.y)/(jt.y-_t.y)),ve)._round()),(!dt||!_t.equals(dt[dt.length-1]))&&(dt=[_t],we.push(dt)),dt.push(jt)))))}return we}var Jh=Is;function S1(_,R,U,ae){var ve=[],we=_.image,Ee=we.pixelRatio,Je=we.paddedRect.w-2*Jh,dt=we.paddedRect.h-2*Jh,Mt=_.right-_.left,_t=_.bottom-_.top,jt=we.stretchX||[[0,Je]],nr=we.stretchY||[[0,dt]],er=function(fi,ni){return fi+ni[1]-ni[0]},br=jt.reduce(er,0),Br=nr.reduce(er,0),cn=Je-br,nn=dt-Br,Ln=0,yn=br,Cn=0,kn=Br,jn=0,aa=cn,ta=0,Ta=nn;if(we.content&&ae){var pa=we.content;Ln=vp(jt,0,pa[0]),Cn=vp(nr,0,pa[1]),yn=vp(jt,pa[0],pa[2]),kn=vp(nr,pa[1],pa[3]),jn=pa[0]-Ln,ta=pa[1]-Cn,aa=pa[2]-pa[0]-yn,Ta=pa[3]-pa[1]-kn}var ba=function(fi,ni,Mi,Ci){var Ui=dp(fi.stretch-Ln,yn,Mt,_.left),ji=pp(fi.fixed-jn,aa,fi.stretch,br),So=dp(ni.stretch-Cn,kn,_t,_.top),fo=pp(ni.fixed-ta,Ta,ni.stretch,Br),Wo=dp(Mi.stretch-Ln,yn,Mt,_.left),Yo=pp(Mi.fixed-jn,aa,Mi.stretch,br),Mo=dp(Ci.stretch-Cn,kn,_t,_.top),is=pp(Ci.fixed-ta,Ta,Ci.stretch,Br),os=new r(Ui,So),mo=new r(Wo,So),ss=new r(Wo,Mo),$s=new r(Ui,Mo),_f=new r(ji/Ee,fo/Ee),wc=new r(Yo/Ee,is/Ee),Tc=R*Math.PI/180;if(Tc){var Ac=Math.sin(Tc),av=Math.cos(Tc),Xl=[av,-Ac,Ac,av];os._matMult(Xl),mo._matMult(Xl),$s._matMult(Xl),ss._matMult(Xl)}var wp=fi.stretch+fi.fixed,yg=Mi.stretch+Mi.fixed,Tp=ni.stretch+ni.fixed,mg=Ci.stretch+Ci.fixed,yl={x:we.paddedRect.x+Jh+wp,y:we.paddedRect.y+Jh+Tp,w:yg-wp,h:mg-Tp},iv=aa/Ee/Mt,Ap=Ta/Ee/_t;return{tl:os,tr:mo,bl:$s,br:ss,tex:yl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:_f,pixelOffsetBR:wc,minFontScaleX:iv,minFontScaleY:Ap,isSDF:U}};if(!ae||!we.stretchX&&!we.stretchY)ve.push(ba({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Je+1},{fixed:0,stretch:dt+1}));else for(var Va=M1(jt,cn,br),Aa=M1(nr,nn,Br),Ca=0;Ca0&&(br=Math.max(10,br),this.circleDiameter=br)}else{var Br=Ee.top*Je-dt,cn=Ee.bottom*Je+dt,nn=Ee.left*Je-dt,Ln=Ee.right*Je+dt,yn=Ee.collisionPadding;if(yn&&(nn-=yn[0]*Je,Br-=yn[1]*Je,Ln+=yn[2]*Je,cn+=yn[3]*Je),_t){var Cn=new r(nn,Br),kn=new r(Ln,Br),jn=new r(nn,cn),aa=new r(Ln,cn),ta=_t*Math.PI/180;Cn._rotate(ta),kn._rotate(ta),jn._rotate(ta),aa._rotate(ta),nn=Math.min(Cn.x,kn.x,jn.x,aa.x),Ln=Math.max(Cn.x,kn.x,jn.x,aa.x),Br=Math.min(Cn.y,kn.y,jn.y,aa.y),cn=Math.max(Cn.y,kn.y,jn.y,aa.y)}R.emplaceBack(U.x,U.y,nn,Br,Ln,cn,ae,ve,we)}this.boxEndIndex=R.length},Qh=function(R,U){if(R===void 0&&(R=[]),U===void 0&&(U=nT),this.data=R,this.length=this.data.length,this.compare=U,this.length>0)for(var ae=(this.length>>1)-1;ae>=0;ae--)this._down(ae)};Qh.prototype.push=function(R){this.data.push(R),this.length++,this._up(this.length-1)},Qh.prototype.pop=function(){if(this.length!==0){var R=this.data[0],U=this.data.pop();return this.length--,this.length>0&&(this.data[0]=U,this._down(0)),R}},Qh.prototype.peek=function(){return this.data[0]},Qh.prototype._up=function(R){for(var U=this,ae=U.data,ve=U.compare,we=ae[R];R>0;){var Ee=R-1>>1,Je=ae[Ee];if(ve(we,Je)>=0)break;ae[R]=Je,R=Ee}ae[R]=we},Qh.prototype._down=function(R){for(var U=this,ae=U.data,ve=U.compare,we=this.length>>1,Ee=ae[R];R=0)break;ae[R]=dt,R=Je}ae[R]=Ee};function nT(_,R){return _R?1:0}function aT(_,R,U){U===void 0&&(U=!1);for(var ae=1/0,ve=1/0,we=-1/0,Ee=-1/0,Je=_[0],dt=0;dtwe)&&(we=Mt.x),(!dt||Mt.y>Ee)&&(Ee=Mt.y)}var _t=we-ae,jt=Ee-ve,nr=Math.min(_t,jt),er=nr/2,br=new Qh([],iT);if(nr===0)return new r(ae,ve);for(var Br=ae;Brnn.d||!nn.d)&&(nn=yn,U&&console.log("found best %d after %d probes",Math.round(1e4*yn.d)/1e4,Ln)),!(yn.max-nn.d<=R)&&(er=yn.h/2,br.push(new $h(yn.p.x-er,yn.p.y-er,er,_)),br.push(new $h(yn.p.x+er,yn.p.y-er,er,_)),br.push(new $h(yn.p.x-er,yn.p.y+er,er,_)),br.push(new $h(yn.p.x+er,yn.p.y+er,er,_)),Ln+=4)}return U&&(console.log("num probes: "+Ln),console.log("best distance: "+nn.d)),nn.p}function iT(_,R){return R.max-_.max}function $h(_,R,U,ae){this.p=new r(_,R),this.h=U,this.d=oT(this.p,ae),this.max=this.d+this.h*Math.SQRT2}function oT(_,R){for(var U=!1,ae=1/0,ve=0;ve_.y!=_t.y>_.y&&_.x<(_t.x-Mt.x)*(_.y-Mt.y)/(_t.y-Mt.y)+Mt.x&&(U=!U),ae=Math.min(ae,Ef(_,Mt,_t))}return(U?1:-1)*Math.sqrt(ae)}function sT(_){for(var R=0,U=0,ae=0,ve=_[0],we=0,Ee=ve.length,Je=Ee-1;we=Ma||Xl.y<0||Xl.y>=Ma||fT(_,Xl,av,U,ae,ve,Aa,_.layers[0],_.collisionBoxArray,R.index,R.sourceLayerIndex,_.index,nn,kn,ta,dt,yn,jn,Ta,er,R,we,Mt,_t,Ee)};if(pa==="line")for(var ja=0,Ba=A1(R.geometry,0,0,Ma,Ma);ja1){var So=eT(ji,aa,U.vertical||br,ae,Br,Ln);So&&Ca(ji,So)}}else if(R.type==="Polygon")for(var fo=0,Wo=tg(R.geometry,0);foxc&&F(_.layerIds[0]+': Value for "text-size" is >= '+td+'. Reduce your "text-size".')):cn.kind==="composite"&&(nn=[Mu*er.compositeTextSizes[0].evaluate(Ee,{},br),Mu*er.compositeTextSizes[1].evaluate(Ee,{},br)],(nn[0]>xc||nn[1]>xc)&&F(_.layerIds[0]+': Value for "text-size" is >= '+td+'. Reduce your "text-size".')),_.addSymbols(_.text,Br,nn,Je,we,Ee,Mt,R,dt.lineStartIndex,dt.lineLength,nr,br);for(var Ln=0,yn=_t;Lnxc&&F(_.layerIds[0]+': Value for "icon-size" is >= '+td+'. Reduce your "icon-size".')):os.kind==="composite"&&(mo=[Mu*kn.compositeIconSizes[0].evaluate(Cn,{},aa),Mu*kn.compositeIconSizes[1].evaluate(Cn,{},aa)],(mo[0]>xc||mo[1]>xc)&&F(_.layerIds[0]+': Value for "icon-size" is >= '+td+'. Reduce your "icon-size".')),_.addSymbols(_.icon,Mo,mo,yn,Ln,Cn,!1,R,pa.lineStartIndex,pa.lineLength,-1,aa),ui=_.icon.placedSymbolArray.length-1,is&&(Ba=is.length*4,_.addSymbols(_.icon,is,mo,yn,Ln,Cn,Qs.vertical,R,pa.lineStartIndex,pa.lineLength,-1,aa),fi=_.icon.placedSymbolArray.length-1)}for(var ss in ae.horizontal){var $s=ae.horizontal[ss];if(!ba){Mi=pe($s.text);var _f=Je.layout.get("text-rotate").evaluate(Cn,{},aa);ba=new gp(dt,R,Mt,_t,jt,$s,nr,er,br,_f)}var wc=$s.positionedLines.length===1;if(li+=C1(_,R,$s,we,Je,br,Cn,Br,pa,ae.vertical?Qs.horizontal:Qs.horizontalOnly,wc?Object.keys(ae.horizontal):[ss],ni,ui,kn,aa),wc)break}ae.vertical&&(bi+=C1(_,R,ae.vertical,we,Je,br,Cn,Br,pa,Qs.vertical,["vertical"],ni,fi,kn,aa));var Tc=ba?ba.boxStartIndex:_.collisionBoxArray.length,Ac=ba?ba.boxEndIndex:_.collisionBoxArray.length,av=Aa?Aa.boxStartIndex:_.collisionBoxArray.length,Xl=Aa?Aa.boxEndIndex:_.collisionBoxArray.length,wp=Va?Va.boxStartIndex:_.collisionBoxArray.length,yg=Va?Va.boxEndIndex:_.collisionBoxArray.length,Tp=Ca?Ca.boxStartIndex:_.collisionBoxArray.length,mg=Ca?Ca.boxEndIndex:_.collisionBoxArray.length,yl=-1,iv=function(ad,W1){return ad&&ad.circleDiameter?Math.max(ad.circleDiameter,W1):W1};yl=iv(ba,yl),yl=iv(Aa,yl),yl=iv(Va,yl),yl=iv(Ca,yl);var Ap=yl>-1?1:0;Ap&&(yl*=ta/Do),_.glyphOffsetArray.length>=xi.MAX_GLYPHS&&F("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Cn.sortKey!==void 0&&_.addToSortKeyRanges(_.symbolInstances.length,Cn.sortKey),_.symbolInstances.emplaceBack(R.x,R.y,ni.right>=0?ni.right:-1,ni.center>=0?ni.center:-1,ni.left>=0?ni.left:-1,ni.vertical||-1,ui,fi,Mi,Tc,Ac,av,Xl,wp,yg,Tp,mg,Mt,li,bi,ja,Ba,Ap,0,nr,Ci,Ui,yl)}function cT(_,R,U,ae){var ve=_.compareText;if(!(R in ve))ve[R]=[];else for(var we=ve[R],Ee=we.length-1;Ee>=0;Ee--)if(ae.dist(we[Ee])0)&&(Ee.value.kind!=="constant"||Ee.value.value.length>0),_t=dt.value.kind!=="constant"||!!dt.value.value||Object.keys(dt.parameters).length>0,jt=we.get("symbol-sort-key");if(this.features=[],!(!Mt&&!_t)){for(var nr=U.iconDependencies,er=U.glyphDependencies,br=U.availableImages,Br=new Sa(this.zoom),cn=0,nn=R;cn=0;for(var bi=0,ui=Ta.sections;bi=0;dt--)Ee[dt]={x:U[dt].x,y:U[dt].y,tileUnitDistanceFromAnchor:we},dt>0&&(we+=U[dt-1].dist(U[dt]));for(var Mt=0;Mt0},xi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},xi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},xi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},xi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},xi.prototype.addIndicesForPlacedSymbol=function(R,U){for(var ae=R.placedSymbolArray.get(U),ve=ae.vertexStartIndex+ae.numGlyphs*4,we=ae.vertexStartIndex;we1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(R),this.sortedAngle=R,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ae=0,ve=this.symbolInstanceIndexes;ae=0&&Mt.indexOf(Je)===dt&&U.addIndicesForPlacedSymbol(U.text,Je)}),Ee.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Ee.verticalPlacedTextSymbolIndex),Ee.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Ee.placedIconSymbolIndex),Ee.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Ee.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Be("SymbolBucket",xi,{omit:["layers","collisionBoxArray","features","compareText"]}),xi.MAX_GLYPHS=65535,xi.addDynamicAttributes=hg;function pT(_,R){return R.replace(/{([^{}]+)}/g,function(U,ae){return ae in _?String(_[ae]):""})}var gT=new hi({"symbol-placement":new la(Ar.layout_symbol["symbol-placement"]),"symbol-spacing":new la(Ar.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new la(Ar.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new La(Ar.layout_symbol["symbol-sort-key"]),"symbol-z-order":new la(Ar.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new la(Ar.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new la(Ar.layout_symbol["icon-ignore-placement"]),"icon-optional":new la(Ar.layout_symbol["icon-optional"]),"icon-rotation-alignment":new la(Ar.layout_symbol["icon-rotation-alignment"]),"icon-size":new La(Ar.layout_symbol["icon-size"]),"icon-text-fit":new la(Ar.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new la(Ar.layout_symbol["icon-text-fit-padding"]),"icon-image":new La(Ar.layout_symbol["icon-image"]),"icon-rotate":new La(Ar.layout_symbol["icon-rotate"]),"icon-padding":new la(Ar.layout_symbol["icon-padding"]),"icon-keep-upright":new la(Ar.layout_symbol["icon-keep-upright"]),"icon-offset":new La(Ar.layout_symbol["icon-offset"]),"icon-anchor":new La(Ar.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new la(Ar.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new la(Ar.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new la(Ar.layout_symbol["text-rotation-alignment"]),"text-field":new La(Ar.layout_symbol["text-field"]),"text-font":new La(Ar.layout_symbol["text-font"]),"text-size":new La(Ar.layout_symbol["text-size"]),"text-max-width":new La(Ar.layout_symbol["text-max-width"]),"text-line-height":new la(Ar.layout_symbol["text-line-height"]),"text-letter-spacing":new La(Ar.layout_symbol["text-letter-spacing"]),"text-justify":new La(Ar.layout_symbol["text-justify"]),"text-radial-offset":new La(Ar.layout_symbol["text-radial-offset"]),"text-variable-anchor":new la(Ar.layout_symbol["text-variable-anchor"]),"text-anchor":new La(Ar.layout_symbol["text-anchor"]),"text-max-angle":new la(Ar.layout_symbol["text-max-angle"]),"text-writing-mode":new la(Ar.layout_symbol["text-writing-mode"]),"text-rotate":new La(Ar.layout_symbol["text-rotate"]),"text-padding":new la(Ar.layout_symbol["text-padding"]),"text-keep-upright":new la(Ar.layout_symbol["text-keep-upright"]),"text-transform":new La(Ar.layout_symbol["text-transform"]),"text-offset":new La(Ar.layout_symbol["text-offset"]),"text-allow-overlap":new la(Ar.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new la(Ar.layout_symbol["text-ignore-placement"]),"text-optional":new la(Ar.layout_symbol["text-optional"])}),yT=new hi({"icon-opacity":new La(Ar.paint_symbol["icon-opacity"]),"icon-color":new La(Ar.paint_symbol["icon-color"]),"icon-halo-color":new La(Ar.paint_symbol["icon-halo-color"]),"icon-halo-width":new La(Ar.paint_symbol["icon-halo-width"]),"icon-halo-blur":new La(Ar.paint_symbol["icon-halo-blur"]),"icon-translate":new la(Ar.paint_symbol["icon-translate"]),"icon-translate-anchor":new la(Ar.paint_symbol["icon-translate-anchor"]),"text-opacity":new La(Ar.paint_symbol["text-opacity"]),"text-color":new La(Ar.paint_symbol["text-color"],{runtimeType:En,getOverride:function(_){return _.textColor},hasOverride:function(_){return!!_.textColor}}),"text-halo-color":new La(Ar.paint_symbol["text-halo-color"]),"text-halo-width":new La(Ar.paint_symbol["text-halo-width"]),"text-halo-blur":new La(Ar.paint_symbol["text-halo-blur"]),"text-translate":new la(Ar.paint_symbol["text-translate"]),"text-translate-anchor":new la(Ar.paint_symbol["text-translate-anchor"])}),vg={paint:yT,layout:gT},tv=function(R){this.type=R.property.overrides?R.property.overrides.runtimeType:Gr,this.defaultValue=R};tv.prototype.evaluate=function(R){if(R.formattedSection){var U=this.defaultValue.property.overrides;if(U&&U.hasOverride(R.formattedSection))return U.getOverride(R.formattedSection)}return R.feature&&R.featureState?this.defaultValue.evaluate(R.feature,R.featureState):this.defaultValue.property.specification.default},tv.prototype.eachChild=function(R){if(!this.defaultValue.isConstant()){var U=this.defaultValue.value;R(U._styleExpression.expression)}},tv.prototype.outputDefined=function(){return!1},tv.prototype.serialize=function(){return null},Be("FormatSectionOverride",tv,{omit:["defaultValue"]});var mT=function(_){function R(U){_.call(this,U,vg)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.recalculate=function(ae,ve){if(_.prototype.recalculate.call(this,ae,ve),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var we=this.layout.get("text-writing-mode");if(we){for(var Ee=[],Je=0,dt=we;Je",targetMapId:ve,sourceMapId:Ee.mapId})}}},rv.prototype.receive=function(R){var U=R.data,ae=U.id;if(ae&&!(U.targetMapId&&this.mapId!==U.targetMapId))if(U.type===""){delete this.tasks[ae];var ve=this.cancelCallbacks[ae];delete this.cancelCallbacks[ae],ve&&ve()}else J()||U.mustQueue?(this.tasks[ae]=U,this.taskQueue.push(ae),this.invoker.trigger()):this.processTask(ae,U)},rv.prototype.process=function(){if(this.taskQueue.length){var R=this.taskQueue.shift(),U=this.tasks[R];delete this.tasks[R],this.taskQueue.length&&this.invoker.trigger(),U&&this.processTask(R,U)}},rv.prototype.processTask=function(R,U){var ae=this;if(U.type===""){var ve=this.callbacks[R];delete this.callbacks[R],ve&&(U.error?ve(St(U.error)):ve(null,St(U.data)))}else{var we=!1,Ee=le(this.globalScope)?void 0:[],Je=U.hasCallback?function(nr,er){we=!0,delete ae.cancelCallbacks[R],ae.target.postMessage({id:R,type:"",sourceMapId:ae.mapId,error:nr?Pt(nr):null,data:Pt(er,Ee)},Ee)}:function(nr){we=!0},dt=null,Mt=St(U.data);if(this.parent[U.type])dt=this.parent[U.type](U.sourceMapId,Mt,Je);else if(this.parent.getWorkerSource){var _t=U.type.split("."),jt=this.parent.getWorkerSource(U.sourceMapId,_t[0],Mt.source);dt=jt[_t[1]](Mt,Je)}else Je(new Error("Could not find function "+U.type));!we&&dt&&dt.cancel&&(this.cancelCallbacks[R]=dt.cancel)}},rv.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function PT(_,R,U){R=Math.pow(2,U)-R-1;var ae=I1(_*256,R*256,U),ve=I1((_+1)*256,(R+1)*256,U);return ae[0]+","+ae[1]+","+ve[0]+","+ve[1]}function I1(_,R,U){var ae=2*Math.PI*6378137/256/Math.pow(2,U),ve=_*ae-2*Math.PI*6378137/2,we=R*ae-2*Math.PI*6378137/2;return[ve,we]}var lo=function(R,U){R&&(U?this.setSouthWest(R).setNorthEast(U):R.length===4?this.setSouthWest([R[0],R[1]]).setNorthEast([R[2],R[3]]):this.setSouthWest(R[0]).setNorthEast(R[1]))};lo.prototype.setNorthEast=function(R){return this._ne=R instanceof Ri?new Ri(R.lng,R.lat):Ri.convert(R),this},lo.prototype.setSouthWest=function(R){return this._sw=R instanceof Ri?new Ri(R.lng,R.lat):Ri.convert(R),this},lo.prototype.extend=function(R){var U=this._sw,ae=this._ne,ve,we;if(R instanceof Ri)ve=R,we=R;else if(R instanceof lo){if(ve=R._sw,we=R._ne,!ve||!we)return this}else{if(Array.isArray(R))if(R.length===4||R.every(Array.isArray)){var Ee=R;return this.extend(lo.convert(Ee))}else{var Je=R;return this.extend(Ri.convert(Je))}return this}return!U&&!ae?(this._sw=new Ri(ve.lng,ve.lat),this._ne=new Ri(we.lng,we.lat)):(U.lng=Math.min(ve.lng,U.lng),U.lat=Math.min(ve.lat,U.lat),ae.lng=Math.max(we.lng,ae.lng),ae.lat=Math.max(we.lat,ae.lat)),this},lo.prototype.getCenter=function(){return new Ri((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lo.prototype.getSouthWest=function(){return this._sw},lo.prototype.getNorthEast=function(){return this._ne},lo.prototype.getNorthWest=function(){return new Ri(this.getWest(),this.getNorth())},lo.prototype.getSouthEast=function(){return new Ri(this.getEast(),this.getSouth())},lo.prototype.getWest=function(){return this._sw.lng},lo.prototype.getSouth=function(){return this._sw.lat},lo.prototype.getEast=function(){return this._ne.lng},lo.prototype.getNorth=function(){return this._ne.lat},lo.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lo.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lo.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lo.prototype.contains=function(R){var U=Ri.convert(R),ae=U.lng,ve=U.lat,we=this._sw.lat<=ve&&ve<=this._ne.lat,Ee=this._sw.lng<=ae&&ae<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Ee=this._sw.lng>=ae&&ae>=this._ne.lng),we&&Ee},lo.convert=function(R){return!R||R instanceof lo?R:new lo(R)};var k1=63710088e-1,Ri=function(R,U){if(isNaN(R)||isNaN(U))throw new Error("Invalid LngLat object: ("+R+", "+U+")");if(this.lng=+R,this.lat=+U,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Ri.prototype.wrap=function(){return new Ri(T(this.lng,-180,180),this.lat)},Ri.prototype.toArray=function(){return[this.lng,this.lat]},Ri.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Ri.prototype.distanceTo=function(R){var U=Math.PI/180,ae=this.lat*U,ve=R.lat*U,we=Math.sin(ae)*Math.sin(ve)+Math.cos(ae)*Math.cos(ve)*Math.cos((R.lng-this.lng)*U),Ee=k1*Math.acos(Math.min(we,1));return Ee},Ri.prototype.toBounds=function(R){R===void 0&&(R=0);var U=40075017,ae=360*R/U,ve=ae/Math.cos(Math.PI/180*this.lat);return new lo(new Ri(this.lng-ve,this.lat-ae),new Ri(this.lng+ve,this.lat+ae))},Ri.convert=function(R){if(R instanceof Ri)return R;if(Array.isArray(R)&&(R.length===2||R.length===3))return new Ri(Number(R[0]),Number(R[1]));if(!Array.isArray(R)&&typeof R=="object"&&R!==null)return new Ri(Number("lng"in R?R.lng:R.lon),Number(R.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var z1=2*Math.PI*k1;function O1(_){return z1*Math.cos(_*Math.PI/180)}function F1(_){return(180+_)/360}function N1(_){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_*Math.PI/360)))/360}function B1(_,R){return _/O1(R)}function _T(_){return _*360-180}function pg(_){var R=180-_*360;return 360/Math.PI*Math.atan(Math.exp(R*Math.PI/180))-90}function RT(_,R){return _*O1(pg(R))}function DT(_){return 1/Math.cos(_*Math.PI/180)}var yh=function(R,U,ae){ae===void 0&&(ae=0),this.x=+R,this.y=+U,this.z=+ae};yh.fromLngLat=function(R,U){U===void 0&&(U=0);var ae=Ri.convert(R);return new yh(F1(ae.lng),N1(ae.lat),B1(U,ae.lat))},yh.prototype.toLngLat=function(){return new Ri(_T(this.x),pg(this.y))},yh.prototype.toAltitude=function(){return RT(this.z,this.y)},yh.prototype.meterInMercatorCoordinateUnits=function(){return 1/z1*DT(pg(this.y))};var mh=function(R,U,ae){this.z=R,this.x=U,this.y=ae,this.key=nd(0,R,R,U,ae)};mh.prototype.equals=function(R){return this.z===R.z&&this.x===R.x&&this.y===R.y},mh.prototype.url=function(R,U){var ae=PT(this.x,this.y,this.z),ve=IT(this.z,this.x,this.y);return R[(this.x+this.y)%R.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(U==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",ve).replace("{bbox-epsg-3857}",ae)},mh.prototype.getTilePoint=function(R){var U=Math.pow(2,this.z);return new r((R.x*U-this.x)*Ma,(R.y*U-this.y)*Ma)},mh.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var U1=function(R,U){this.wrap=R,this.canonical=U,this.key=nd(R,U.z,U.z,U.x,U.y)},uo=function(R,U,ae,ve,we){this.overscaledZ=R,this.wrap=U,this.canonical=new mh(ae,+ve,+we),this.key=nd(U,R,ae,ve,we)};uo.prototype.equals=function(R){return this.overscaledZ===R.overscaledZ&&this.wrap===R.wrap&&this.canonical.equals(R.canonical)},uo.prototype.scaledTo=function(R){var U=this.canonical.z-R;return R>this.canonical.z?new uo(R,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uo(R,this.wrap,R,this.canonical.x>>U,this.canonical.y>>U)},uo.prototype.calculateScaledKey=function(R,U){var ae=this.canonical.z-R;return R>this.canonical.z?nd(this.wrap*+U,R,this.canonical.z,this.canonical.x,this.canonical.y):nd(this.wrap*+U,R,R,this.canonical.x>>ae,this.canonical.y>>ae)},uo.prototype.isChildOf=function(R){if(R.wrap!==this.wrap)return!1;var U=this.canonical.z-R.canonical.z;return R.overscaledZ===0||R.overscaledZ>U&&R.canonical.y===this.canonical.y>>U},uo.prototype.children=function(R){if(this.overscaledZ>=R)return[new uo(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var U=this.canonical.z+1,ae=this.canonical.x*2,ve=this.canonical.y*2;return[new uo(U,this.wrap,U,ae,ve),new uo(U,this.wrap,U,ae+1,ve),new uo(U,this.wrap,U,ae,ve+1),new uo(U,this.wrap,U,ae+1,ve+1)]},uo.prototype.isLessThan=function(R){return this.wrapR.wrap?!1:this.overscaledZR.overscaledZ?!1:this.canonical.xR.canonical.x?!1:this.canonical.y0;we--)ve=1<=this.dim+1||U<-1||U>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(U+1)*this.stride+(R+1)},Lf.prototype._unpackMapbox=function(R,U,ae){return(R*256*256+U*256+ae)/10-1e4},Lf.prototype._unpackTerrarium=function(R,U,ae){return R*256+U+ae/256-32768},Lf.prototype.getPixels=function(){return new bs({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Lf.prototype.backfillBorder=function(R,U,ae){if(this.dim!==R.dim)throw new Error("dem dimension mismatch");var ve=U*this.dim,we=U*this.dim+this.dim,Ee=ae*this.dim,Je=ae*this.dim+this.dim;switch(U){case-1:ve=we-1;break;case 1:we=ve+1;break}switch(ae){case-1:Ee=Je-1;break;case 1:Je=Ee+1;break}for(var dt=-U*this.dim,Mt=-ae*this.dim,_t=Ee;_t=0&&jt[3]>=0&&dt.insert(Je,jt[0],jt[1],jt[2],jt[3])}},Pf.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Yh.VectorTile(new up(this.rawTileData)).layers,this.sourceLayerCoder=new xp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Pf.prototype.query=function(R,U,ae,ve){var we=this;this.loadVTLayers();for(var Ee=R.params||{},Je=Ma/R.tileSize/R.scale,dt=Zs(Ee.filter),Mt=R.queryGeometry,_t=R.queryPadding*Je,jt=H1(Mt),nr=this.grid.query(jt.minX-_t,jt.minY-_t,jt.maxX+_t,jt.maxY+_t),er=H1(R.cameraQueryGeometry),br=this.grid3D.query(er.minX-_t,er.minY-_t,er.maxX+_t,er.maxY+_t,function(jn,aa,ta,Ta){return jl(R.cameraQueryGeometry,jn-_t,aa-_t,ta+_t,Ta+_t)}),Br=0,cn=br;Brve)we=!1;else if(!U)we=!0;else if(this.expirationTime=hr.maxzoom)&&hr.visibility!=="none"){n(ir,this.zoom,At);var xr=ur[hr.id]=hr.createBucket({index:Jt.bucketLayerIDs.length,layers:ir,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:zt,sourceID:this.source});xr.populate(Dt,fr,this.tileID.canonical),Jt.bucketLayerIDs.push(ir.map(function(Tr){return Tr.id}))}}}}var vr,Hr,Pr,Rr,an=s.mapObject(fr.glyphDependencies,function(Tr){return Object.keys(Tr).map(Number)});Object.keys(an).length?Et.send("getGlyphs",{uid:this.uid,stacks:an},function(Tr,zr){vr||(vr=Tr,Hr=zr,Tn.call(Bt))}):Hr={};var tn=Object.keys(fr.iconDependencies);tn.length?Et.send("getImages",{icons:tn,source:this.source,tileID:this.tileID,type:"icons"},function(Tr,zr){vr||(vr=Tr,Pr=zr,Tn.call(Bt))}):Pr={};var Sn=Object.keys(fr.patternDependencies);Sn.length?Et.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(Tr,zr){vr||(vr=Tr,Rr=zr,Tn.call(Bt))}):Rr={},Tn.call(this);function Tn(){if(vr)return Vt(vr);if(Hr&&Pr&&Rr){var Tr=new t(Hr),zr=new s.ImageAtlas(Pr,Rr);for(var Yr in ur){var Or=ur[Yr];Or instanceof s.SymbolBucket?(n(Or.layers,this.zoom,At),s.performSymbolLayout(Or,Hr,Tr.positions,Pr,zr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Or.hasPattern&&(Or instanceof s.LineBucket||Or instanceof s.FillBucket||Or instanceof s.FillExtrusionBucket)&&(n(Or.layers,this.zoom,At),Or.addFeatures(fr,this.tileID.canonical,zr.patternPositions))}this.status="done",Vt(null,{buckets:s.values(ur).filter(function(ln){return!ln.isEmpty()}),featureIndex:Jt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Tr.image,imageAtlas:zr,glyphMap:this.returnDependencies?Hr:null,iconMap:this.returnDependencies?Pr:null,glyphPositions:this.returnDependencies?Tr.positions:null})}}};function n(ut,at,xt){for(var At=new s.EvaluationParameters(at),Et=0,Vt=ut;Et=0!=!!at&&ut.reverse()}var d=s.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(at){this._feature=at,this.extent=s.EXTENT,this.type=at.type,this.properties=at.tags,"id"in at&&!isNaN(at.id)&&(this.id=parseInt(at.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var at=[],xt=0,At=this._feature.geometry;xt"u"&&(At.push(Ut),Jt=At.length-1,Vt[Ut]=Jt),at.writeVarint(Jt);var ur=xt.properties[Ut],fr=typeof ur;fr!=="string"&&fr!=="boolean"&&fr!=="number"&&(ur=JSON.stringify(ur));var dr=fr+":"+ur,Ye=Bt[dr];typeof Ye>"u"&&(Et.push(ur),Ye=Et.length-1,Bt[dr]=Ye),at.writeVarint(Ye)}}function B(ut,at){return(at<<3)+(ut&7)}function W(ut){return ut<<1^ut>>31}function J(ut,at){for(var xt=ut.loadGeometry(),At=ut.type,Et=0,Vt=0,Bt=xt.length,Ut=0;Ut>1;le(ut,at,Bt,At,Et,Vt%2),ne(ut,at,xt,At,Bt-1,Vt+1),ne(ut,at,xt,Bt+1,Et,Vt+1)}}function le(ut,at,xt,At,Et,Vt){for(;Et>At;){if(Et-At>600){var Bt=Et-At+1,Ut=xt-At+1,Jt=Math.log(Bt),ur=.5*Math.exp(2*Jt/3),fr=.5*Math.sqrt(Jt*ur*(Bt-ur)/Bt)*(Ut-Bt/2<0?-1:1),dr=Math.max(At,Math.floor(xt-Ut*ur/Bt+fr)),Ye=Math.min(Et,Math.floor(xt+(Bt-Ut)*ur/Bt+fr));le(ut,at,xt,dr,Ye,Vt)}var Ue=at[2*xt+Vt],zt=At,Dt=Et;for($(ut,at,At,xt),at[2*Et+Vt]>Ue&&$(ut,at,At,Et);ztUe;)Dt--}at[2*At+Vt]===Ue?$(ut,at,At,Dt):(Dt++,$(ut,at,Dt,Et)),Dt<=xt&&(At=Dt+1),xt<=Dt&&(Et=Dt-1)}}function $(ut,at,xt,At){Z(ut,xt,At),Z(at,2*xt,2*At),Z(at,2*xt+1,2*At+1)}function Z(ut,at,xt){var At=ut[at];ut[at]=ut[xt],ut[xt]=At}function ie(ut,at,xt,At,Et,Vt,Bt){for(var Ut=[0,ut.length-1,0],Jt=[],ur,fr;Ut.length;){var dr=Ut.pop(),Ye=Ut.pop(),Ue=Ut.pop();if(Ye-Ue<=Bt){for(var zt=Ue;zt<=Ye;zt++)ur=at[2*zt],fr=at[2*zt+1],ur>=xt&&ur<=Et&&fr>=At&&fr<=Vt&&Jt.push(ut[zt]);continue}var Dt=Math.floor((Ue+Ye)/2);ur=at[2*Dt],fr=at[2*Dt+1],ur>=xt&&ur<=Et&&fr>=At&&fr<=Vt&&Jt.push(ut[Dt]);var $t=(dr+1)%2;(dr===0?xt<=ur:At<=fr)&&(Ut.push(Ue),Ut.push(Dt-1),Ut.push($t)),(dr===0?Et>=ur:Vt>=fr)&&(Ut.push(Dt+1),Ut.push(Ye),Ut.push($t))}return Jt}function X(ut,at,xt,At,Et,Vt){for(var Bt=[0,ut.length-1,0],Ut=[],Jt=Et*Et;Bt.length;){var ur=Bt.pop(),fr=Bt.pop(),dr=Bt.pop();if(fr-dr<=Vt){for(var Ye=dr;Ye<=fr;Ye++)Q(at[2*Ye],at[2*Ye+1],xt,At)<=Jt&&Ut.push(ut[Ye]);continue}var Ue=Math.floor((dr+fr)/2),zt=at[2*Ue],Dt=at[2*Ue+1];Q(zt,Dt,xt,At)<=Jt&&Ut.push(ut[Ue]);var $t=(ur+1)%2;(ur===0?xt-Et<=zt:At-Et<=Dt)&&(Bt.push(dr),Bt.push(Ue-1),Bt.push($t)),(ur===0?xt+Et>=zt:At+Et>=Dt)&&(Bt.push(Ue+1),Bt.push(fr),Bt.push($t))}return Ut}function Q(ut,at,xt,At){var Et=ut-xt,Vt=at-At;return Et*Et+Vt*Vt}var oe=function(ut){return ut[0]},Y=function(ut){return ut[1]},j=function(at,xt,At,Et,Vt){xt===void 0&&(xt=oe),At===void 0&&(At=Y),Et===void 0&&(Et=64),Vt===void 0&&(Vt=Float64Array),this.nodeSize=Et,this.points=at;for(var Bt=at.length<65536?Uint16Array:Uint32Array,Ut=this.ids=new Bt(at.length),Jt=this.coords=new Vt(at.length*2),ur=0;ur=Et;fr--){var dr=+Date.now();Jt=this._cluster(Jt,fr),this.trees[fr]=new j(Jt,Se,Ie,Bt,Float32Array),At&&console.log("z%d: %d clusters in %dms",fr,Jt.length,+Date.now()-dr)}return At&&console.timeEnd("total time"),this},te.prototype.getClusters=function(at,xt){var At=((at[0]+180)%360+360)%360-180,Et=Math.max(-90,Math.min(90,at[1])),Vt=at[2]===180?180:((at[2]+180)%360+360)%360-180,Bt=Math.max(-90,Math.min(90,at[3]));if(at[2]-at[0]>=360)At=-180,Vt=180;else if(At>Vt){var Ut=this.getClusters([At,Et,180,Bt],xt),Jt=this.getClusters([-180,Et,Vt,Bt],xt);return Ut.concat(Jt)}for(var ur=this.trees[this._limitZoom(xt)],fr=ur.range(_e(At),De(Bt),_e(Vt),De(Et)),dr=[],Ye=0,Ue=fr;Yext&&(Dt+=tr.numPoints||1)}if(Dt>=Jt){for(var Nt=dr.x*zt,ir=dr.y*zt,hr=Ut&&zt>1?this._map(dr,!0):null,xr=(fr<<5)+(xt+1)+this.points.length,vr=0,Hr=Ue;vr1)for(var tn=0,Sn=Ue;tn>5},te.prototype._getOriginZoom=function(at){return(at-this.points.length)%32},te.prototype._map=function(at,xt){if(at.numPoints)return xt?Re({},at.properties):at.properties;var At=this.points[at.index].properties,Et=this.options.map(At);return xt&&Et===At?Re({},Et):Et};function fe(ut,at,xt,At,Et){return{x:ut,y:at,zoom:1/0,id:xt,parentId:-1,numPoints:At,properties:Et}}function ge(ut,at){var xt=ut.geometry.coordinates,At=xt[0],Et=xt[1];return{x:_e(At),y:De(Et),zoom:1/0,index:at,parentId:-1}}function be(ut){return{type:"Feature",id:ut.id,properties:xe(ut),geometry:{type:"Point",coordinates:[Fe(ut.x),Te(ut.y)]}}}function xe(ut){var at=ut.numPoints,xt=at>=1e4?Math.round(at/1e3)+"k":at>=1e3?Math.round(at/100)/10+"k":at;return Re(Re({},ut.properties),{cluster:!0,cluster_id:ut.id,point_count:at,point_count_abbreviated:xt})}function _e(ut){return ut/360+.5}function De(ut){var at=Math.sin(ut*Math.PI/180),xt=.5-.25*Math.log((1+at)/(1-at))/Math.PI;return xt<0?0:xt>1?1:xt}function Fe(ut){return(ut-.5)*360}function Te(ut){var at=(180-ut*360)*Math.PI/180;return 360*Math.atan(Math.exp(at))/Math.PI-90}function Re(ut,at){for(var xt in at)ut[xt]=at[xt];return ut}function Se(ut){return ut.x}function Ie(ut){return ut.y}function Me(ut,at,xt,At){for(var Et=At,Vt=xt-at>>1,Bt=xt-at,Ut,Jt=ut[at],ur=ut[at+1],fr=ut[xt],dr=ut[xt+1],Ye=at+3;YeEt)Ut=Ye,Et=Ue;else if(Ue===Et){var zt=Math.abs(Ye-Vt);ztAt&&(Ut-at>3&&Me(ut,at,Ut,At),ut[Ut+2]=Et,xt-Ut>3&&Me(ut,Ut,xt,At))}function Ve(ut,at,xt,At,Et,Vt){var Bt=Et-xt,Ut=Vt-At;if(Bt!==0||Ut!==0){var Jt=((ut-xt)*Bt+(at-At)*Ut)/(Bt*Bt+Ut*Ut);Jt>1?(xt=Et,At=Vt):Jt>0&&(xt+=Bt*Jt,At+=Ut*Jt)}return Bt=ut-xt,Ut=at-At,Bt*Bt+Ut*Ut}function et(ut,at,xt,At){var Et={id:typeof ut>"u"?null:ut,type:at,geometry:xt,tags:At,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ot(Et),Et}function ot(ut){var at=ut.geometry,xt=ut.type;if(xt==="Point"||xt==="MultiPoint"||xt==="LineString")Qe(ut,at);else if(xt==="Polygon"||xt==="MultiLineString")for(var At=0;At0&&(At?Bt+=(Et*ur-Jt*Vt)/2:Bt+=Math.sqrt(Math.pow(Jt-Et,2)+Math.pow(ur-Vt,2))),Et=Jt,Vt=ur}var fr=at.length-3;at[2]=1,Me(at,0,fr,xt),at[fr+2]=1,at.size=Math.abs(Bt),at.start=0,at.end=at.size}function wt(ut,at,xt,At){for(var Et=0;Et1?1:xt}function ze(ut,at,xt,At,Et,Vt,Bt,Ut){if(xt/=at,At/=at,Vt>=xt&&Bt=At)return null;for(var Jt=[],ur=0;ur=xt&&zt=At)continue;var Dt=[];if(Ye==="Point"||Ye==="MultiPoint")He(dr,Dt,xt,At,Et);else if(Ye==="LineString")We(dr,Dt,xt,At,Et,!1,Ut.lineMetrics);else if(Ye==="MultiLineString")Le(dr,Dt,xt,At,Et,!1);else if(Ye==="Polygon")Le(dr,Dt,xt,At,Et,!0);else if(Ye==="MultiPolygon")for(var $t=0;$t=xt&&Bt<=At&&(at.push(ut[Vt]),at.push(ut[Vt+1]),at.push(ut[Vt+2]))}}function We(ut,at,xt,At,Et,Vt,Bt){for(var Ut=Ge(ut),Jt=Et===0?je:Ce,ur=ut.start,fr,dr,Ye=0;Yext&&(dr=Jt(Ut,Ue,zt,$t,sr,xt),Bt&&(Ut.start=ur+fr*dr)):cr>At?tr=xt&&(dr=Jt(Ut,Ue,zt,$t,sr,xt),Nt=!0),tr>At&&cr<=At&&(dr=Jt(Ut,Ue,zt,$t,sr,At),Nt=!0),!Vt&&Nt&&(Bt&&(Ut.end=ur+fr*dr),at.push(Ut),Ut=Ge(ut)),Bt&&(ur+=fr)}var ir=ut.length-3;Ue=ut[ir],zt=ut[ir+1],Dt=ut[ir+2],cr=Et===0?Ue:zt,cr>=xt&&cr<=At&&Pe(Ut,Ue,zt,Dt),ir=Ut.length-3,Vt&&ir>=3&&(Ut[ir]!==Ut[0]||Ut[ir+1]!==Ut[1])&&Pe(Ut,Ut[0],Ut[1],Ut[2]),Ut.length&&at.push(Ut)}function Ge(ut){var at=[];return at.size=ut.size,at.start=ut.start,at.end=ut.end,at}function Le(ut,at,xt,At,Et,Vt){for(var Bt=0;BtBt.maxX&&(Bt.maxX=fr),dr>Bt.maxY&&(Bt.maxY=dr)}return Bt}function Wt(ut,at,xt,At){var Et=at.geometry,Vt=at.type,Bt=[];if(Vt==="Point"||Vt==="MultiPoint")for(var Ut=0;Ut0&&at.size<(Et?Bt:At)){xt.numPoints+=at.length/3;return}for(var Ut=[],Jt=0;JtBt)&&(xt.numSimplified++,Ut.push(at[Jt]),Ut.push(at[Jt+1])),xt.numPoints++;Et&&Tt(Ut,Vt),ut.push(Ut)}function Tt(ut,at){for(var xt=0,At=0,Et=ut.length,Vt=Et-2;At0===at)for(At=0,Et=ut.length;At24)throw new Error("maxZoom should be in the 0-24 range");if(at.promoteId&&at.generateId)throw new Error("promoteId and generateId cannot be used together.");var At=$e(ut,at);this.tiles={},this.tileCoords=[],xt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",at.indexMaxZoom,at.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),At=he(At,at),At.length&&this.splitTile(At,0,0,0),xt&&(At.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)))}Xt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Xt.prototype.splitTile=function(ut,at,xt,At,Et,Vt,Bt){for(var Ut=[ut,at,xt,At],Jt=this.options,ur=Jt.debug;Ut.length;){At=Ut.pop(),xt=Ut.pop(),at=Ut.pop(),ut=Ut.pop();var fr=1<1&&console.time("creation"),Ye=this.tiles[dr]=lt(ut,at,xt,At,Jt),this.tileCoords.push({z:at,x:xt,y:At}),ur)){ur>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",at,xt,At,Ye.numFeatures,Ye.numPoints,Ye.numSimplified),console.timeEnd("creation"));var Ue="z"+at;this.stats[Ue]=(this.stats[Ue]||0)+1,this.total++}if(Ye.source=ut,Et){if(at===Jt.maxZoom||at===Et)continue;var zt=1<1&&console.time("clipping");var Dt=.5*Jt.buffer/Jt.extent,$t=.5-Dt,sr=.5+Dt,cr=1+Dt,tr,Nt,ir,hr,xr,vr;tr=Nt=ir=hr=null,xr=ze(ut,fr,xt-Dt,xt+sr,0,Ye.minX,Ye.maxX,Jt),vr=ze(ut,fr,xt+$t,xt+cr,0,Ye.minX,Ye.maxX,Jt),ut=null,xr&&(tr=ze(xr,fr,At-Dt,At+sr,1,Ye.minY,Ye.maxY,Jt),Nt=ze(xr,fr,At+$t,At+cr,1,Ye.minY,Ye.maxY,Jt),xr=null),vr&&(ir=ze(vr,fr,At-Dt,At+sr,1,Ye.minY,Ye.maxY,Jt),hr=ze(vr,fr,At+$t,At+cr,1,Ye.minY,Ye.maxY,Jt),vr=null),ur>1&&console.timeEnd("clipping"),Ut.push(tr||[],at+1,xt*2,At*2),Ut.push(Nt||[],at+1,xt*2,At*2+1),Ut.push(ir||[],at+1,xt*2+1,At*2),Ut.push(hr||[],at+1,xt*2+1,At*2+1)}}},Xt.prototype.getTile=function(ut,at,xt){var At=this.options,Et=At.extent,Vt=At.debug;if(ut<0||ut>24)return null;var Bt=1<1&&console.log("drilling down to z%d-%d-%d",ut,at,xt);for(var Jt=ut,ur=at,fr=xt,dr;!dr&&Jt>0;)Jt--,ur=Math.floor(ur/2),fr=Math.floor(fr/2),dr=this.tiles[gr(Jt,ur,fr)];return!dr||!dr.source?null:(Vt>1&&console.log("found parent tile z%d-%d-%d",Jt,ur,fr),Vt>1&&console.time("drilling down"),this.splitTile(dr.source,Jt,ur,fr,ut,at,xt),Vt>1&&console.timeEnd("drilling down"),this.tiles[Ut]?Ze(this.tiles[Ut],Et):null)};function gr(ut,at,xt){return((1<=0?0:ce.button},S.remove=function(ce){ce.parentNode&&ce.parentNode.removeChild(ce)};function l(ce,K,de){var ee,pe,Oe,Xe=s.browser.devicePixelRatio>1?"@2x":"",ft=s.getJSON(K.transformRequest(K.normalizeSpriteURL(ce,Xe,".json"),s.ResourceType.SpriteJSON),function(qt,lr){ft=null,Oe||(Oe=qt,ee=lr,Ht())}),Lt=s.getImage(K.transformRequest(K.normalizeSpriteURL(ce,Xe,".png"),s.ResourceType.SpriteImage),function(qt,lr){Lt=null,Oe||(Oe=qt,pe=lr,Ht())});function Ht(){if(Oe)de(Oe);else if(ee&&pe){var qt=s.browser.getImageData(pe),lr={};for(var or in ee){var kr=ee[or],Xr=kr.width,jr=kr.height,Wr=kr.x,Qr=kr.y,dn=kr.sdf,In=kr.pixelRatio,Bn=kr.stretchX,Xn=kr.stretchY,Zn=kr.content,Yn=new s.RGBAImage({width:Xr,height:jr});s.RGBAImage.copy(qt,Yn,{x:Wr,y:Qr},{x:0,y:0},{width:Xr,height:jr}),lr[or]={data:Yn,pixelRatio:In,sdf:dn,stretchX:Bn,stretchY:Xn,content:Zn}}de(null,lr)}}return{cancel:function(){ft&&(ft.cancel(),ft=null),Lt&&(Lt.cancel(),Lt=null)}}}function g(ce){var K=ce.userImage;if(K&&K.render){var de=K.render();if(de)return ce.data.replace(new Uint8Array(K.data.buffer)),!0}return!1}var h=1,T=function(ce){function K(){ce.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new s.RGBAImage({width:1,height:1}),this.dirty=!0}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.isLoaded=function(){return this.loaded},K.prototype.setLoaded=function(ee){if(this.loaded!==ee&&(this.loaded=ee,ee)){for(var pe=0,Oe=this.requestors;pe=0?1.2:1))}w.prototype.draw=function(ce){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(ce,this.buffer,this.middle);for(var K=this.ctx.getImageData(0,0,this.size,this.size),de=new Uint8ClampedArray(this.size*this.size),ee=0;ee65535){qt(new Error("glyphs > 65535 not supported"));return}if(kr.ranges[jr]){qt(null,{stack:lr,id:or,glyph:Xr});return}var Wr=kr.requests[jr];Wr||(Wr=kr.requests[jr]=[],E.loadGlyphRange(lr,jr,ee.url,ee.requestManager,function(Qr,dn){if(dn){for(var In in dn)ee._doesCharSupportLocalGlyph(+In)||(kr.glyphs[+In]=dn[+In]);kr.ranges[jr]=!0}for(var Bn=0,Xn=Wr;Bn1&&(Ht=K[++Lt]);var lr=Math.abs(qt-Ht.left),or=Math.abs(qt-Ht.right),kr=Math.min(lr,or),Xr=void 0,jr=Oe/ee*(pe+1);if(Ht.isDash){var Wr=pe-Math.abs(jr);Xr=Math.sqrt(kr*kr+Wr*Wr)}else Xr=pe-Math.sqrt(kr*kr+jr*jr);this.data[ft+qt]=Math.max(0,Math.min(255,Xr+128))}},I.prototype.addRegularDash=function(K){for(var de=K.length-1;de>=0;--de){var ee=K[de],pe=K[de+1];ee.zeroLength?K.splice(de,1):pe&&pe.isDash===ee.isDash&&(pe.left=ee.left,K.splice(de,1))}var Oe=K[0],Xe=K[K.length-1];Oe.isDash===Xe.isDash&&(Oe.left=Xe.left-this.width,Xe.right=Oe.right+this.width);for(var ft=this.width*this.nextRow,Lt=0,Ht=K[Lt],qt=0;qt1&&(Ht=K[++Lt]);var lr=Math.abs(qt-Ht.left),or=Math.abs(qt-Ht.right),kr=Math.min(lr,or),Xr=Ht.isDash?kr:-kr;this.data[ft+qt]=Math.max(0,Math.min(255,Xr+128))}},I.prototype.addDash=function(K,de){var ee=de?7:0,pe=2*ee+1;if(this.nextRow+pe>this.height)return s.warnOnce("LineAtlas out of space"),null;for(var Oe=0,Xe=0;Xe=ee.minX&&K.x=ee.minY&&K.y0&&(qt[new s.OverscaledTileID(ee.overscaledZ,ft,pe.z,Xe,pe.y-1).key]={backfilled:!1},qt[new s.OverscaledTileID(ee.overscaledZ,ee.wrap,pe.z,pe.x,pe.y-1).key]={backfilled:!1},qt[new s.OverscaledTileID(ee.overscaledZ,Ht,pe.z,Lt,pe.y-1).key]={backfilled:!1}),pe.y+10&&(Oe.resourceTiming=ee._resourceTiming,ee._resourceTiming=[]),ee.fire(new s.Event("data",Oe))})},K.prototype.onAdd=function(ee){this.map=ee,this.load()},K.prototype.setData=function(ee){var pe=this;return this._data=ee,this.fire(new s.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Oe){if(Oe){pe.fire(new s.ErrorEvent(Oe));return}var Xe={dataType:"source",sourceDataType:"content"};pe._collectResourceTiming&&pe._resourceTiming&&pe._resourceTiming.length>0&&(Xe.resourceTiming=pe._resourceTiming,pe._resourceTiming=[]),pe.fire(new s.Event("data",Xe))}),this},K.prototype.getClusterExpansionZoom=function(ee,pe){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ee,source:this.id},pe),this},K.prototype.getClusterChildren=function(ee,pe){return this.actor.send("geojson.getClusterChildren",{clusterId:ee,source:this.id},pe),this},K.prototype.getClusterLeaves=function(ee,pe,Oe,Xe){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ee,limit:pe,offset:Oe},Xe),this},K.prototype._updateWorkerData=function(ee){var pe=this;this._loaded=!1;var Oe=s.extend({},this.workerOptions),Xe=this._data;typeof Xe=="string"?(Oe.request=this.map._requestManager.transformRequest(s.browser.resolveURL(Xe),s.ResourceType.Source),Oe.request.collectResourceTiming=this._collectResourceTiming):Oe.data=JSON.stringify(Xe),this.actor.send(this.type+".loadData",Oe,function(ft,Lt){pe._removed||Lt&&Lt.abandoned||(pe._loaded=!0,Lt&&Lt.resourceTiming&&Lt.resourceTiming[pe.id]&&(pe._resourceTiming=Lt.resourceTiming[pe.id].slice(0)),pe.actor.send(pe.type+".coalesce",{source:Oe.source},null),ee(ft))})},K.prototype.loaded=function(){return this._loaded},K.prototype.loadTile=function(ee,pe){var Oe=this,Xe=ee.actor?"reloadTile":"loadTile";ee.actor=this.actor;var ft={type:this.type,uid:ee.uid,tileID:ee.tileID,zoom:ee.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:s.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ee.request=this.actor.send(Xe,ft,function(Lt,Ht){return delete ee.request,ee.unloadVectorData(),ee.aborted?pe(null):Lt?pe(Lt):(ee.loadVectorData(Ht,Oe.map.painter,Xe==="reloadTile"),pe(null))})},K.prototype.abortTile=function(ee){ee.request&&(ee.request.cancel(),delete ee.request),ee.aborted=!0},K.prototype.unloadTile=function(ee){ee.unloadVectorData(),this.actor.send("removeTile",{uid:ee.uid,type:this.type,source:this.id})},K.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},K.prototype.serialize=function(){return s.extend({},this._options,{type:this.type,data:this._data})},K.prototype.hasTransition=function(){return!1},K}(s.Evented),W=s.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),J=function(ce){function K(de,ee,pe,Oe){ce.call(this),this.id=de,this.dispatcher=pe,this.coordinates=ee.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Oe),this.options=ee}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.load=function(ee,pe){var Oe=this;this._loaded=!1,this.fire(new s.Event("dataloading",{dataType:"source"})),this.url=this.options.url,s.getImage(this.map._requestManager.transformRequest(this.url,s.ResourceType.Image),function(Xe,ft){Oe._loaded=!0,Xe?Oe.fire(new s.ErrorEvent(Xe)):ft&&(Oe.image=ft,ee&&(Oe.coordinates=ee),pe&&pe(),Oe._finishLoading())})},K.prototype.loaded=function(){return this._loaded},K.prototype.updateImage=function(ee){var pe=this;return!this.image||!ee.url?this:(this.options.url=ee.url,this.load(ee.coordinates,function(){pe.texture=null}),this)},K.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new s.Event("data",{dataType:"source",sourceDataType:"metadata"})))},K.prototype.onAdd=function(ee){this.map=ee,this.load()},K.prototype.setCoordinates=function(ee){var pe=this;this.coordinates=ee;var Oe=ee.map(s.MercatorCoordinate.fromLngLat);this.tileID=re(Oe),this.minzoom=this.maxzoom=this.tileID.z;var Xe=Oe.map(function(ft){return pe.tileID.getTilePoint(ft)._round()});return this._boundsArray=new s.StructArrayLayout4i8,this._boundsArray.emplaceBack(Xe[0].x,Xe[0].y,0,0),this._boundsArray.emplaceBack(Xe[1].x,Xe[1].y,s.EXTENT,0),this._boundsArray.emplaceBack(Xe[3].x,Xe[3].y,0,s.EXTENT),this._boundsArray.emplaceBack(Xe[2].x,Xe[2].y,s.EXTENT,s.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new s.Event("data",{dataType:"source",sourceDataType:"content"})),this},K.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var ee=this.map.painter.context,pe=ee.gl;this.boundsBuffer||(this.boundsBuffer=ee.createVertexBuffer(this._boundsArray,W.members)),this.boundsSegments||(this.boundsSegments=s.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new s.Texture(ee,this.image,pe.RGBA),this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE));for(var Oe in this.tiles){var Xe=this.tiles[Oe];Xe.state!=="loaded"&&(Xe.state="loaded",Xe.texture=this.texture)}}},K.prototype.loadTile=function(ee,pe){this.tileID&&this.tileID.equals(ee.tileID.canonical)?(this.tiles[String(ee.tileID.wrap)]=ee,ee.buckets={},pe(null)):(ee.state="errored",pe(null))},K.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},K.prototype.hasTransition=function(){return!1},K}(s.Evented);function re(ce){for(var K=1/0,de=1/0,ee=-1/0,pe=-1/0,Oe=0,Xe=ce;Oepe.end(0)?this.fire(new s.ErrorEvent(new s.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+pe.start(0)+" and "+pe.end(0)+"-second mark."))):this.video.currentTime=ee}},K.prototype.getVideo=function(){return this.video},K.prototype.onAdd=function(ee){this.map||(this.map=ee,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},K.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ee=this.map.painter.context,pe=ee.gl;this.boundsBuffer||(this.boundsBuffer=ee.createVertexBuffer(this._boundsArray,W.members)),this.boundsSegments||(this.boundsSegments=s.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE),pe.texSubImage2D(pe.TEXTURE_2D,0,0,0,pe.RGBA,pe.UNSIGNED_BYTE,this.video)):(this.texture=new s.Texture(ee,this.video,pe.RGBA),this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE));for(var Oe in this.tiles){var Xe=this.tiles[Oe];Xe.state!=="loaded"&&(Xe.state="loaded",Xe.texture=this.texture)}}},K.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},K.prototype.hasTransition=function(){return this.video&&!this.video.paused},K}(J),le=function(ce){function K(de,ee,pe,Oe){ce.call(this,de,ee,pe,Oe),ee.coordinates?(!Array.isArray(ee.coordinates)||ee.coordinates.length!==4||ee.coordinates.some(function(Xe){return!Array.isArray(Xe)||Xe.length!==2||Xe.some(function(ft){return typeof ft!="number"})}))&&this.fire(new s.ErrorEvent(new s.ValidationError("sources."+de,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new s.ErrorEvent(new s.ValidationError("sources."+de,null,'missing required property "coordinates"'))),ee.animate&&typeof ee.animate!="boolean"&&this.fire(new s.ErrorEvent(new s.ValidationError("sources."+de,null,'optional "animate" property must be a boolean value'))),ee.canvas?typeof ee.canvas!="string"&&!(ee.canvas instanceof s.window.HTMLCanvasElement)&&this.fire(new s.ErrorEvent(new s.ValidationError("sources."+de,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 s.ErrorEvent(new s.ValidationError("sources."+de,null,'missing required property "canvas"'))),this.options=ee,this.animate=ee.animate!==void 0?ee.animate:!0}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof s.window.HTMLCanvasElement?this.options.canvas:s.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new s.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},K.prototype.getCanvas=function(){return this.canvas},K.prototype.onAdd=function(ee){this.map=ee,this.load(),this.canvas&&this.animate&&this.play()},K.prototype.onRemove=function(){this.pause()},K.prototype.prepare=function(){var ee=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ee=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ee=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var pe=this.map.painter.context,Oe=pe.gl;this.boundsBuffer||(this.boundsBuffer=pe.createVertexBuffer(this._boundsArray,W.members)),this.boundsSegments||(this.boundsSegments=s.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ee||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new s.Texture(pe,this.canvas,Oe.RGBA,{premultiply:!0});for(var Xe in this.tiles){var ft=this.tiles[Xe];ft.state!=="loaded"&&(ft.state="loaded",ft.texture=this.texture)}}},K.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},K.prototype.hasTransition=function(){return this._playing},K.prototype._hasInvalidDimensions=function(){for(var ee=0,pe=[this.canvas.width,this.canvas.height];eethis.max){var ft=this._getAndRemoveByKey(this.order[0]);ft&&this.onRemove(ft)}return this},ge.prototype.has=function(K){return K.wrapped().key in this.data},ge.prototype.getAndRemove=function(K){return this.has(K)?this._getAndRemoveByKey(K.wrapped().key):null},ge.prototype._getAndRemoveByKey=function(K){var de=this.data[K].shift();return de.timeout&&clearTimeout(de.timeout),this.data[K].length===0&&delete this.data[K],this.order.splice(this.order.indexOf(K),1),de.value},ge.prototype.getByKey=function(K){var de=this.data[K];return de?de[0].value:null},ge.prototype.get=function(K){if(!this.has(K))return null;var de=this.data[K.wrapped().key][0];return de.value},ge.prototype.remove=function(K,de){if(!this.has(K))return this;var ee=K.wrapped().key,pe=de===void 0?0:this.data[ee].indexOf(de),Oe=this.data[ee][pe];return this.data[ee].splice(pe,1),Oe.timeout&&clearTimeout(Oe.timeout),this.data[ee].length===0&&delete this.data[ee],this.onRemove(Oe.value),this.order.splice(this.order.indexOf(ee),1),this},ge.prototype.setMaxSize=function(K){for(this.max=K;this.order.length>this.max;){var de=this._getAndRemoveByKey(this.order[0]);de&&this.onRemove(de)}return this},ge.prototype.filter=function(K){var de=[];for(var ee in this.data)for(var pe=0,Oe=this.data[ee];pe1||(Math.abs(lr)>1&&(Math.abs(lr+kr)===1?lr+=kr:Math.abs(lr-kr)===1&&(lr-=kr)),!(!qt.dem||!Ht.dem)&&(Ht.dem.backfillBorder(qt.dem,lr,or),Ht.neighboringTiles&&Ht.neighboringTiles[Xr]&&(Ht.neighboringTiles[Xr].backfilled=!0)))}},K.prototype.getTile=function(ee){return this.getTileByID(ee.key)},K.prototype.getTileByID=function(ee){return this._tiles[ee]},K.prototype._retainLoadedChildren=function(ee,pe,Oe,Xe){for(var ft in this._tiles){var Lt=this._tiles[ft];if(!(Xe[ft]||!Lt.hasData()||Lt.tileID.overscaledZ<=pe||Lt.tileID.overscaledZ>Oe)){for(var Ht=Lt.tileID;Lt&&Lt.tileID.overscaledZ>pe+1;){var qt=Lt.tileID.scaledTo(Lt.tileID.overscaledZ-1);Lt=this._tiles[qt.key],Lt&&Lt.hasData()&&(Ht=qt)}for(var lr=Ht;lr.overscaledZ>pe;)if(lr=lr.scaledTo(lr.overscaledZ-1),ee[lr.key]){Xe[Ht.key]=Ht;break}}}},K.prototype.findLoadedParent=function(ee,pe){if(ee.key in this._loadedParentTiles){var Oe=this._loadedParentTiles[ee.key];return Oe&&Oe.tileID.overscaledZ>=pe?Oe:null}for(var Xe=ee.overscaledZ-1;Xe>=pe;Xe--){var ft=ee.scaledTo(Xe),Lt=this._getLoadedTile(ft);if(Lt)return Lt}},K.prototype._getLoadedTile=function(ee){var pe=this._tiles[ee.key];if(pe&&pe.hasData())return pe;var Oe=this._cache.getByKey(ee.wrapped().key);return Oe},K.prototype.updateCacheSize=function(ee){var pe=Math.ceil(ee.width/this._source.tileSize)+1,Oe=Math.ceil(ee.height/this._source.tileSize)+1,Xe=pe*Oe,ft=5,Lt=Math.floor(Xe*ft),Ht=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Lt):Lt;this._cache.setMaxSize(Ht)},K.prototype.handleWrapJump=function(ee){var pe=this._prevLng===void 0?ee:this._prevLng,Oe=ee-pe,Xe=Oe/360,ft=Math.round(Xe);if(this._prevLng=ee,ft){var Lt={};for(var Ht in this._tiles){var qt=this._tiles[Ht];qt.tileID=qt.tileID.unwrapTo(qt.tileID.wrap+ft),Lt[qt.tileID.key]=qt}this._tiles=Lt;for(var lr in this._timers)clearTimeout(this._timers[lr]),delete this._timers[lr];for(var or in this._tiles){var kr=this._tiles[or];this._setTileReloadTimer(or,kr)}}},K.prototype.update=function(ee){var pe=this;if(this.transform=ee,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(ee),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var Oe;this.used?this._source.tileID?Oe=ee.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(ua){return new s.OverscaledTileID(ua.canonical.z,ua.wrap,ua.canonical.z,ua.canonical.x,ua.canonical.y)}):(Oe=ee.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Oe=Oe.filter(function(ua){return pe._source.hasTile(ua)}))):Oe=[];var Xe=ee.coveringZoomLevel(this._source),ft=Math.max(Xe-K.maxOverzooming,this._source.minzoom),Lt=Math.max(Xe+K.maxUnderzooming,this._source.minzoom),Ht=this._updateRetainedTiles(Oe,Xe);if(Jt(this._source.type)){for(var qt={},lr={},or=Object.keys(Ht),kr=0,Xr=or;krthis._source.maxzoom){var dn=Wr.children(this._source.maxzoom)[0],In=this.getTile(dn);if(In&&In.hasData()){Oe[dn.key]=dn;continue}}else{var Bn=Wr.children(this._source.maxzoom);if(Oe[Bn[0].key]&&Oe[Bn[1].key]&&Oe[Bn[2].key]&&Oe[Bn[3].key])continue}for(var Xn=Qr.wasRequested(),Zn=Wr.overscaledZ-1;Zn>=ft;--Zn){var Yn=Wr.scaledTo(Zn);if(Xe[Yn.key]||(Xe[Yn.key]=!0,Qr=this.getTile(Yn),!Qr&&Xn&&(Qr=this._addTile(Yn)),Qr&&(Oe[Yn.key]=Yn,Xn=Qr.wasRequested(),Qr.hasData())))break}}}return Oe},K.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var ee in this._tiles){for(var pe=[],Oe=void 0,Xe=this._tiles[ee].tileID;Xe.overscaledZ>0;){if(Xe.key in this._loadedParentTiles){Oe=this._loadedParentTiles[Xe.key];break}pe.push(Xe.key);var ft=Xe.scaledTo(Xe.overscaledZ-1);if(Oe=this._getLoadedTile(ft),Oe)break;Xe=ft}for(var Lt=0,Ht=pe;Lt0)&&(pe.hasData()&&pe.state!=="reloading"?this._cache.add(pe.tileID,pe,pe.getExpiryTimeout()):(pe.aborted=!0,this._abortTile(pe),this._unloadTile(pe))))},K.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var ee in this._tiles)this._removeTile(ee);this._cache.reset()},K.prototype.tilesIn=function(ee,pe,Oe){var Xe=this,ft=[],Lt=this.transform;if(!Lt)return ft;for(var Ht=Oe?Lt.getCameraQueryGeometry(ee):ee,qt=ee.map(function(Zn){return Lt.pointCoordinate(Zn)}),lr=Ht.map(function(Zn){return Lt.pointCoordinate(Zn)}),or=this.getIds(),kr=1/0,Xr=1/0,jr=-1/0,Wr=-1/0,Qr=0,dn=lr;Qr=0&&xa[1].y+ua>=0){var da=qt.map(function(qa){return Jn.getTilePoint(qa)}),Fa=lr.map(function(qa){return Jn.getTilePoint(qa)});ft.push({tile:Yn,tileID:Jn,queryGeometry:da,cameraQueryGeometry:Fa,scale:na})}}},Xn=0;Xn=s.browser.now())return!0}return!1},K.prototype.setFeatureState=function(ee,pe,Oe){ee=ee||"_geojsonTileLayer",this._state.updateState(ee,pe,Oe)},K.prototype.removeFeatureState=function(ee,pe,Oe){ee=ee||"_geojsonTileLayer",this._state.removeFeatureState(ee,pe,Oe)},K.prototype.getFeatureState=function(ee,pe){return ee=ee||"_geojsonTileLayer",this._state.getState(ee,pe)},K.prototype.setDependencies=function(ee,pe,Oe){var Xe=this._tiles[ee];Xe&&Xe.setDependencies(pe,Oe)},K.prototype.reloadTilesForDependencies=function(ee,pe){for(var Oe in this._tiles){var Xe=this._tiles[Oe];Xe.hasDependency(ee,pe)&&this._reloadTile(Oe,"reloading")}this._cache.filter(function(ft){return!ft.hasDependency(ee,pe)})},K}(s.Evented);Bt.maxOverzooming=10,Bt.maxUnderzooming=3;function Ut(ce,K){var de=Math.abs(ce.wrap*2)-+(ce.wrap<0),ee=Math.abs(K.wrap*2)-+(K.wrap<0);return ce.overscaledZ-K.overscaledZ||ee-de||K.canonical.y-ce.canonical.y||K.canonical.x-ce.canonical.x}function Jt(ce){return ce==="raster"||ce==="image"||ce==="video"}function ur(){return new s.window.Worker(oo.workerUrl)}var fr="mapboxgl_preloaded_worker_pool",dr=function(){this.active={}};dr.prototype.acquire=function(K){if(!this.workers)for(this.workers=[];this.workers.length0?(pe-Xe)/ft:0;return this.points[Oe].mult(1-Lt).add(this.points[de].mult(Lt))};var Tr=function(K,de,ee){var pe=this.boxCells=[],Oe=this.circleCells=[];this.xCellCount=Math.ceil(K/ee),this.yCellCount=Math.ceil(de/ee);for(var Xe=0;Xethis.width||pe<0||de>this.height)return Oe?!1:[];var ft=[];if(K<=0&&de<=0&&this.width<=ee&&this.height<=pe){if(Oe)return!0;for(var Lt=0;Lt0:ft}},Tr.prototype._queryCircle=function(K,de,ee,pe,Oe){var Xe=K-ee,ft=K+ee,Lt=de-ee,Ht=de+ee;if(ft<0||Xe>this.width||Ht<0||Lt>this.height)return pe?!1:[];var qt=[],lr={hitTest:pe,circle:{x:K,y:de,radius:ee},seenUids:{box:{},circle:{}}};return this._forEachCell(Xe,Lt,ft,Ht,this._queryCellCircle,qt,lr,Oe),pe?qt.length>0:qt},Tr.prototype.query=function(K,de,ee,pe,Oe){return this._query(K,de,ee,pe,!1,Oe)},Tr.prototype.hitTest=function(K,de,ee,pe,Oe){return this._query(K,de,ee,pe,!0,Oe)},Tr.prototype.hitTestCircle=function(K,de,ee,pe){return this._queryCircle(K,de,ee,!0,pe)},Tr.prototype._queryCell=function(K,de,ee,pe,Oe,Xe,ft,Lt){var Ht=ft.seenUids,qt=this.boxCells[Oe];if(qt!==null)for(var lr=this.bboxes,or=0,kr=qt;or=lr[jr+0]&&pe>=lr[jr+1]&&(!Lt||Lt(this.boxKeys[Xr]))){if(ft.hitTest)return Xe.push(!0),!0;Xe.push({key:this.boxKeys[Xr],x1:lr[jr],y1:lr[jr+1],x2:lr[jr+2],y2:lr[jr+3]})}}}var Wr=this.circleCells[Oe];if(Wr!==null)for(var Qr=this.circles,dn=0,In=Wr;dnft*ft+Lt*Lt},Tr.prototype._circleAndRectCollide=function(K,de,ee,pe,Oe,Xe,ft){var Lt=(Xe-pe)/2,Ht=Math.abs(K-(pe+Lt));if(Ht>Lt+ee)return!1;var qt=(ft-Oe)/2,lr=Math.abs(de-(Oe+qt));if(lr>qt+ee)return!1;if(Ht<=Lt||lr<=qt)return!0;var or=Ht-Lt,kr=lr-qt;return or*or+kr*kr<=ee*ee};function zr(ce,K,de,ee,pe){var Oe=s.create();return K?(s.scale(Oe,Oe,[1/pe,1/pe,1]),de||s.rotateZ(Oe,Oe,ee.angle)):s.multiply(Oe,ee.labelPlaneMatrix,ce),Oe}function Yr(ce,K,de,ee,pe){if(K){var Oe=s.clone(ce);return s.scale(Oe,Oe,[pe,pe,1]),de||s.rotateZ(Oe,Oe,-ee.angle),Oe}else return ee.glCoordMatrix}function Or(ce,K){var de=[ce.x,ce.y,0,1];mr(de,de,K);var ee=de[3];return{point:new s.Point(de[0]/ee,de[1]/ee),signedDistanceFromCamera:ee}}function ln(ce,K){return .5+.5*(ce/K)}function fn(ce,K){var de=ce[0]/ce[3],ee=ce[1]/ce[3],pe=de>=-K[0]&&de<=K[0]&&ee>=-K[1]&&ee<=K[1];return pe}function Mn(ce,K,de,ee,pe,Oe,Xe,ft){var Lt=ee?ce.textSizeData:ce.iconSizeData,Ht=s.evaluateSizeForZoom(Lt,de.transform.zoom),qt=[256/de.width*2+1,256/de.height*2+1],lr=ee?ce.text.dynamicLayoutVertexArray:ce.icon.dynamicLayoutVertexArray;lr.clear();for(var or=ce.lineVertexArray,kr=ee?ce.text.placedSymbolArray:ce.icon.placedSymbolArray,Xr=de.transform.width/de.transform.height,jr=!1,Wr=0;WrOe)return{useVertical:!0}}return(ce===s.WritingMode.vertical?K.yde.x)?{needsFlipping:!0}:null}function ia(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht,qt,lr,or,kr){var Xr=K/24,jr=ce.lineOffsetX*Xr,Wr=ce.lineOffsetY*Xr,Qr;if(ce.numGlyphs>1){var dn=ce.glyphStartIndex+ce.numGlyphs,In=ce.lineStartIndex,Bn=ce.lineStartIndex+ce.lineLength,Xn=Pn(Xr,ft,jr,Wr,de,qt,lr,ce,Lt,Oe,or);if(!Xn)return{notEnoughRoom:!0};var Zn=Or(Xn.first.point,Xe).point,Yn=Or(Xn.last.point,Xe).point;if(ee&&!de){var Jn=Vn(ce.writingMode,Zn,Yn,kr);if(Jn)return Jn}Qr=[Xn.first];for(var na=ce.glyphStartIndex+1;na0?Fa.point:ya(lr,da,ua,1,pe),Xa=Vn(ce.writingMode,ua,qa,kr);if(Xa)return Xa}var Ma=wa(Xr*ft.getoffsetX(ce.glyphStartIndex),jr,Wr,de,qt,lr,ce.segment,ce.lineStartIndex,ce.lineStartIndex+ce.lineLength,Lt,Oe,or);if(!Ma)return{notEnoughRoom:!0};Qr=[Ma]}for(var Za=0,Ga=Qr;Za0?1:-1,Xr=0;ee&&(kr*=-1,Xr=Math.PI),kr<0&&(Xr+=Math.PI);for(var jr=kr>0?ft+Xe:ft+Xe+1,Wr=pe,Qr=pe,dn=0,In=0,Bn=Math.abs(or),Xn=[];dn+In<=Bn;){if(jr+=kr,jr=Lt)return null;if(Qr=Wr,Xn.push(Wr),Wr=lr[jr],Wr===void 0){var Zn=new s.Point(Ht.getx(jr),Ht.gety(jr)),Yn=Or(Zn,qt);if(Yn.signedDistanceFromCamera>0)Wr=lr[jr]=Yn.point;else{var Jn=jr-kr,na=dn===0?Oe:new s.Point(Ht.getx(Jn),Ht.gety(Jn));Wr=ya(na,Zn,Qr,Bn-dn+1,qt)}}dn+=In,In=Qr.dist(Wr)}var ua=(Bn-dn)/In,xa=Wr.sub(Qr),da=xa.mult(ua)._add(Qr);da._add(xa._unit()._perp()._mult(de*kr));var Fa=Xr+Math.atan2(Wr.y-Qr.y,Wr.x-Qr.x);return Xn.push(da),{point:da,angle:Fa,path:Xn}}var Wn=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Qn(ce,K){for(var de=0;de=1;si--)Ga.push(Ma.path[si]);for(var ri=1;ri0){for(var Wa=Ga[0].clone(),ei=Ga[0].clone(),Bi=1;Bi=Fa.x&&ei.x<=qa.x&&Wa.y>=Fa.y&&ei.y<=qa.y?mi=[Ga]:ei.xqa.x||ei.yqa.y?mi=[]:mi=s.clipLine([Ga],Fa.x,Fa.y,qa.x,qa.y)}for(var yo=0,Ks=mi;yo=this.screenRightBoundary||pethis.screenBottomBoundary},Jr.prototype.isInsideGrid=function(K,de,ee,pe){return ee>=0&&K=0&&de0){var Bn;return this.prevPlacement&&this.prevPlacement.variableOffsets[or.crossTileID]&&this.prevPlacement.placements[or.crossTileID]&&this.prevPlacement.placements[or.crossTileID].text&&(Bn=this.prevPlacement.variableOffsets[or.crossTileID].anchor),this.variableOffsets[or.crossTileID]={textOffset:Wr,width:ee,height:pe,anchor:K,textBoxScale:Oe,prevAnchor:Bn},this.markUsedJustification(kr,K,or,Xr),kr.allowVerticalPlacement&&(this.markUsedOrientation(kr,Xr,or),this.placedOrientations[or.crossTileID]=Xr),{shift:Qr,placedGlyphBoxes:dn}}},Fr.prototype.placeLayerBucketPart=function(K,de,ee){var pe=this,Oe=K.parameters,Xe=Oe.bucket,ft=Oe.layout,Lt=Oe.posMatrix,Ht=Oe.textLabelPlaneMatrix,qt=Oe.labelToScreenMatrix,lr=Oe.textPixelRatio,or=Oe.holdingForFade,kr=Oe.collisionBoxArray,Xr=Oe.partiallyEvaluatedTextSize,jr=Oe.collisionGroup,Wr=ft.get("text-optional"),Qr=ft.get("icon-optional"),dn=ft.get("text-allow-overlap"),In=ft.get("icon-allow-overlap"),Bn=ft.get("text-rotation-alignment")==="map",Xn=ft.get("text-pitch-alignment")==="map",Zn=ft.get("icon-text-fit")!=="none",Yn=ft.get("symbol-z-order")==="viewport-y",Jn=dn&&(In||!Xe.hasIconData()||Qr),na=In&&(dn||!Xe.hasTextData()||Wr);!Xe.collisionArrays&&kr&&Xe.deserializeCollisionBoxes(kr);var ua=function(Ma,Za){if(!de[Ma.crossTileID]){if(or){pe.placements[Ma.crossTileID]=new An(!1,!1,!1);return}var Ga=!1,si=!1,ri=!0,Si=null,$a={box:null,offscreen:null},mi={box:null,offscreen:null},Wa=null,ei=null,Bi=null,yo=0,Ks=0,Js=0;Za.textFeatureIndex?yo=Za.textFeatureIndex:Ma.useRuntimeCollisionCircles&&(yo=Ma.featureIndex),Za.verticalTextFeatureIndex&&(Ks=Za.verticalTextFeatureIndex);var vl=Za.textBox;if(vl){var Wl=function(Yi){var ms=s.WritingMode.horizontal;if(Xe.allowVerticalPlacement&&!Yi&&pe.prevPlacement){var xs=pe.prevPlacement.placedOrientations[Ma.crossTileID];xs&&(pe.placedOrientations[Ma.crossTileID]=xs,ms=xs,pe.markUsedOrientation(Xe,ms,Ma))}return ms},Ef=function(Yi,ms){if(Xe.allowVerticalPlacement&&Ma.numVerticalGlyphVertices>0&&Za.verticalTextBox)for(var xs=0,Vh=Xe.writingModes;xs0&&(ys=ys.filter(function(Yi){return Yi!==ns.anchor}),ys.unshift(ns.anchor))}var dl=function(Yi,ms,xs){for(var Vh=Yi.x2-Yi.x1,Gv=Yi.y2-Yi.y1,W0=Ma.textBoxScale,Y0=Zn&&!In?ms:null,dh={box:[],offscreen:!1},j0=dn?ys.length*2:ys.length,Hh=0;Hh=ys.length,Wv=pe.attemptAnchorPlacement(X0,Yi,Vh,Gv,W0,Bn,Xn,lr,Lt,jr,Z0,Ma,Xe,xs,Y0);if(Wv&&(dh=Wv.placedGlyphBoxes,dh&&dh.box&&dh.box.length)){Ga=!0,Si=Wv.shift;break}}return dh},Tu=function(){return dl(vl,Za.iconBox,s.WritingMode.horizontal)},pl=function(){var Yi=Za.verticalTextBox,ms=$a&&$a.box&&$a.box.length;return Xe.allowVerticalPlacement&&!ms&&Ma.numVerticalGlyphVertices>0&&Yi?dl(Yi,Za.verticalIconBox,s.WritingMode.vertical):{box:null,offscreen:null}};Ef(Tu,pl),$a&&(Ga=$a.box,ri=$a.offscreen);var Oh=Wl($a&&$a.box);if(!Ga&&pe.prevPlacement){var dc=pe.prevPlacement.variableOffsets[Ma.crossTileID];dc&&(pe.variableOffsets[Ma.crossTileID]=dc,pe.markUsedJustification(Xe,dc.anchor,Ma,Oh))}}else{var Yl=function(Yi,ms){var xs=pe.collisionIndex.placeCollisionBox(Yi,dn,lr,Lt,jr.predicate);return xs&&xs.box&&xs.box.length&&(pe.markUsedOrientation(Xe,ms,Ma),pe.placedOrientations[Ma.crossTileID]=ms),xs},rs=function(){return Yl(vl,s.WritingMode.horizontal)},jl=function(){var Yi=Za.verticalTextBox;return Xe.allowVerticalPlacement&&Ma.numVerticalGlyphVertices>0&&Yi?Yl(Yi,s.WritingMode.vertical):{box:null,offscreen:null}};Ef(rs,jl),Wl($a&&$a.box&&$a.box.length)}}if(Wa=$a,Ga=Wa&&Wa.box&&Wa.box.length>0,ri=Wa&&Wa.offscreen,Ma.useRuntimeCollisionCircles){var To=Xe.text.placedSymbolArray.get(Ma.centerJustifiedTextSymbolIndex),Fh=s.evaluateSizeForFeature(Xe.textSizeData,Xr,To),vh=ft.get("text-padding"),Ho=Ma.collisionCircleDiameter;ei=pe.collisionIndex.placeCollisionCircles(dn,To,Xe.lineVertexArray,Xe.glyphOffsetArray,Fh,Lt,Ht,qt,ee,Xn,jr.predicate,Ho,vh),Ga=dn||ei.circles.length>0&&!ei.collisionDetected,ri=ri&&ei.offscreen}if(Za.iconFeatureIndex&&(Js=Za.iconFeatureIndex),Za.iconBox){var pc=function(Yi){var ms=Zn&&Si?Mr(Yi,Si.x,Si.y,Bn,Xn,pe.transform.angle):Yi;return pe.collisionIndex.placeCollisionBox(ms,In,lr,Lt,jr.predicate)};mi&&mi.box&&mi.box.length&&Za.verticalIconBox?(Bi=pc(Za.verticalIconBox),si=Bi.box.length>0):(Bi=pc(Za.iconBox),si=Bi.box.length>0),ri=ri&&Bi.offscreen}var Nh=Wr||Ma.numHorizontalGlyphVertices===0&&Ma.numVerticalGlyphVertices===0,Bh=Qr||Ma.numIconVertices===0;if(!Nh&&!Bh?si=Ga=si&&Ga:Bh?Nh||(si=si&&Ga):Ga=si&&Ga,Ga&&Wa&&Wa.box&&(mi&&mi.box&&Ks?pe.collisionIndex.insertCollisionBox(Wa.box,ft.get("text-ignore-placement"),Xe.bucketInstanceId,Ks,jr.ID):pe.collisionIndex.insertCollisionBox(Wa.box,ft.get("text-ignore-placement"),Xe.bucketInstanceId,yo,jr.ID)),si&&Bi&&pe.collisionIndex.insertCollisionBox(Bi.box,ft.get("icon-ignore-placement"),Xe.bucketInstanceId,Js,jr.ID),ei&&(Ga&&pe.collisionIndex.insertCollisionCircles(ei.circles,ft.get("text-ignore-placement"),Xe.bucketInstanceId,yo,jr.ID),ee)){var Uh=Xe.bucketInstanceId,gc=pe.collisionCircleArrays[Uh];gc===void 0&&(gc=pe.collisionCircleArrays[Uh]=new Fn);for(var yc=0;yc=0;--da){var Fa=xa[da];ua(Xe.symbolInstances.get(Fa),Xe.collisionArrays[Fa])}else for(var qa=K.symbolInstanceStart;qa=0&&(Xe>=0&&qt!==Xe?K.text.placedSymbolArray.get(qt).crossTileID=0:K.text.placedSymbolArray.get(qt).crossTileID=ee.crossTileID)}},Fr.prototype.markUsedOrientation=function(K,de,ee){for(var pe=de===s.WritingMode.horizontal||de===s.WritingMode.horizontalOnly?de:0,Oe=de===s.WritingMode.vertical?de:0,Xe=[ee.leftJustifiedTextSymbolIndex,ee.centerJustifiedTextSymbolIndex,ee.rightJustifiedTextSymbolIndex],ft=0,Lt=Xe;ft0||Xn>0,ua=In.numIconVertices>0,xa=pe.placedOrientations[In.crossTileID],da=xa===s.WritingMode.vertical,Fa=xa===s.WritingMode.horizontal||xa===s.WritingMode.horizontalOnly;if(na){var qa=Gr(Jn.text),Xa=da?qr:qa;Xr(K.text,Bn,Xa);var Ma=Fa?qr:qa;Xr(K.text,Xn,Ma);var Za=Jn.text.isHidden();[In.rightJustifiedTextSymbolIndex,In.centerJustifiedTextSymbolIndex,In.leftJustifiedTextSymbolIndex].forEach(function(Js){Js>=0&&(K.text.placedSymbolArray.get(Js).hidden=Za||da?1:0)}),In.verticalPlacedTextSymbolIndex>=0&&(K.text.placedSymbolArray.get(In.verticalPlacedTextSymbolIndex).hidden=Za||Fa?1:0);var Ga=pe.variableOffsets[In.crossTileID];Ga&&pe.markUsedJustification(K,Ga.anchor,In,xa);var si=pe.placedOrientations[In.crossTileID];si&&(pe.markUsedJustification(K,"left",In,si),pe.markUsedOrientation(K,si,In))}if(ua){var ri=Gr(Jn.icon),Si=!(or&&In.verticalPlacedIconSymbolIndex&&da);if(In.placedIconSymbolIndex>=0){var $a=Si?ri:qr;Xr(K.icon,In.numIconVertices,$a),K.icon.placedSymbolArray.get(In.placedIconSymbolIndex).hidden=Jn.icon.isHidden()}if(In.verticalPlacedIconSymbolIndex>=0){var mi=Si?qr:ri;Xr(K.icon,In.numVerticalIconVertices,mi),K.icon.placedSymbolArray.get(In.verticalPlacedIconSymbolIndex).hidden=Jn.icon.isHidden()}}if(K.hasIconCollisionBoxData()||K.hasTextCollisionBoxData()){var Wa=K.collisionArrays[dn];if(Wa){var ei=new s.Point(0,0);if(Wa.textBox||Wa.verticalTextBox){var Bi=!0;if(Ht){var yo=pe.variableOffsets[Zn];yo?(ei=Ia(yo.anchor,yo.width,yo.height,yo.textOffset,yo.textBoxScale),qt&&ei._rotate(lr?pe.transform.angle:-pe.transform.angle)):Bi=!1}Wa.textBox&&Ar(K.textCollisionBox.collisionVertexArray,Jn.text.placed,!Bi||da,ei.x,ei.y),Wa.verticalTextBox&&Ar(K.textCollisionBox.collisionVertexArray,Jn.text.placed,!Bi||Fa,ei.x,ei.y)}var Ks=!!(!Fa&&Wa.verticalIconBox);Wa.iconBox&&Ar(K.iconCollisionBox.collisionVertexArray,Jn.icon.placed,Ks,or?ei.x:0,or?ei.y:0),Wa.verticalIconBox&&Ar(K.iconCollisionBox.collisionVertexArray,Jn.icon.placed,!Ks,or?ei.x:0,or?ei.y:0)}}},Wr=0;WrK},Fr.prototype.setStale=function(){this.stale=!0};function Ar(ce,K,de,ee,pe){ce.emplaceBack(K?1:0,de?1:0,ee||0,pe||0),ce.emplaceBack(K?1:0,de?1:0,ee||0,pe||0),ce.emplaceBack(K?1:0,de?1:0,ee||0,pe||0),ce.emplaceBack(K?1:0,de?1:0,ee||0,pe||0)}var Nr=Math.pow(2,25),mn=Math.pow(2,24),Rn=Math.pow(2,17),gn=Math.pow(2,16),un=Math.pow(2,9),Er=Math.pow(2,8),Zr=Math.pow(2,1);function Gr(ce){if(ce.opacity===0&&!ce.placed)return 0;if(ce.opacity===1&&ce.placed)return 4294967295;var K=ce.placed?1:0,de=Math.floor(ce.opacity*127);return de*Nr+K*mn+de*Rn+K*gn+de*un+K*Er+de*Zr+K}var qr=0,wn=function(K){this._sortAcrossTiles=K.layout.get("symbol-z-order")!=="viewport-y"&&K.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};wn.prototype.continuePlacement=function(K,de,ee,pe,Oe){for(var Xe=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var ft=K[this._currentPlacementIndex],Lt=de[ft],Ht=this.placement.collisionIndex.transform.zoom;if(Lt.type==="symbol"&&(!Lt.minzoom||Lt.minzoom<=Ht)&&(!Lt.maxzoom||Lt.maxzoom>Ht)){this._inProgressLayer||(this._inProgressLayer=new wn(Lt));var qt=this._inProgressLayer.continuePlacement(ee[Lt.source],this.placement,this._showCollisionBoxes,Lt,Xe);if(qt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},zn.prototype.commit=function(K){return this.placement.commit(K),this.placement};var En=512/s.EXTENT/2,Un=function(K,de,ee){this.tileID=K,this.indexedSymbolInstances={},this.bucketInstanceId=ee;for(var pe=0;peK.overscaledZ)for(var Ht in Lt){var qt=Lt[Ht];qt.tileID.isChildOf(K)&&qt.findMatches(de.symbolInstances,K,Xe)}else{var lr=K.scaledTo(Number(ft)),or=Lt[lr.key];or&&or.findMatches(de.symbolInstances,K,Xe)}}for(var kr=0;kr0)throw new Error("Unimplemented: "+Xe.map(function(ft){return ft.command}).join(", ")+".");return Oe.forEach(function(ft){ft.command!=="setTransition"&&pe[ft.command].apply(pe,ft.args)}),this.stylesheet=ee,!0},K.prototype.addImage=function(ee,pe){if(this.getImage(ee))return this.fire(new s.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ee,pe),this._afterImageUpdated(ee)},K.prototype.updateImage=function(ee,pe){this.imageManager.updateImage(ee,pe)},K.prototype.getImage=function(ee){return this.imageManager.getImage(ee)},K.prototype.removeImage=function(ee){if(!this.getImage(ee))return this.fire(new s.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ee),this._afterImageUpdated(ee)},K.prototype._afterImageUpdated=function(ee){this._availableImages=this.imageManager.listImages(),this._changedImages[ee]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new s.Event("data",{dataType:"style"}))},K.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},K.prototype.addSource=function(ee,pe,Oe){var Xe=this;if(Oe===void 0&&(Oe={}),this._checkLoaded(),this.sourceCaches[ee]!==void 0)throw new Error("There is already a source with this ID");if(!pe.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(pe).join(", ")+".");var ft=["vector","raster","geojson","video","image"],Lt=ft.indexOf(pe.type)>=0;if(!(Lt&&this._validate(s.validateStyle.source,"sources."+ee,pe,null,Oe))){this.map&&this.map._collectResourceTiming&&(pe.collectResourceTiming=!0);var Ht=this.sourceCaches[ee]=new Bt(ee,pe,this.dispatcher);Ht.style=this,Ht.setEventedParent(this,function(){return{isSourceLoaded:Xe.loaded(),source:Ht.serialize(),sourceId:ee}}),Ht.onAdd(this.map),this._changed=!0}},K.prototype.removeSource=function(ee){if(this._checkLoaded(),this.sourceCaches[ee]===void 0)throw new Error("There is no source with this ID");for(var pe in this._layers)if(this._layers[pe].source===ee)return this.fire(new s.ErrorEvent(new Error('Source "'+ee+'" cannot be removed while layer "'+pe+'" is using it.')));var Oe=this.sourceCaches[ee];delete this.sourceCaches[ee],delete this._updatedSources[ee],Oe.fire(new s.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ee})),Oe.setEventedParent(null),Oe.clearTiles(),Oe.onRemove&&Oe.onRemove(this.map),this._changed=!0},K.prototype.setGeoJSONSourceData=function(ee,pe){this._checkLoaded();var Oe=this.sourceCaches[ee].getSource();Oe.setData(pe),this._changed=!0},K.prototype.getSource=function(ee){return this.sourceCaches[ee]&&this.sourceCaches[ee].getSource()},K.prototype.addLayer=function(ee,pe,Oe){Oe===void 0&&(Oe={}),this._checkLoaded();var Xe=ee.id;if(this.getLayer(Xe)){this.fire(new s.ErrorEvent(new Error('Layer with id "'+Xe+'" already exists on this map')));return}var ft;if(ee.type==="custom"){if(ga(this,s.validateCustomStyleLayer(ee)))return;ft=s.createStyleLayer(ee)}else{if(typeof ee.source=="object"&&(this.addSource(Xe,ee.source),ee=s.clone$1(ee),ee=s.extend(ee,{source:Xe})),this._validate(s.validateStyle.layer,"layers."+Xe,ee,{arrayIndex:-1},Oe))return;ft=s.createStyleLayer(ee),this._validateLayer(ft),ft.setEventedParent(this,{layer:{id:Xe}}),this._serializedLayers[ft.id]=ft.serialize()}var Lt=pe?this._order.indexOf(pe):this._order.length;if(pe&&Lt===-1){this.fire(new s.ErrorEvent(new Error('Layer with id "'+pe+'" does not exist on this map.')));return}if(this._order.splice(Lt,0,Xe),this._layerOrderChanged=!0,this._layers[Xe]=ft,this._removedLayers[Xe]&&ft.source&&ft.type!=="custom"){var Ht=this._removedLayers[Xe];delete this._removedLayers[Xe],Ht.type!==ft.type?this._updatedSources[ft.source]="clear":(this._updatedSources[ft.source]="reload",this.sourceCaches[ft.source].pause())}this._updateLayer(ft),ft.onAdd&&ft.onAdd(this.map)},K.prototype.moveLayer=function(ee,pe){this._checkLoaded(),this._changed=!0;var Oe=this._layers[ee];if(!Oe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be moved.")));return}if(ee!==pe){var Xe=this._order.indexOf(ee);this._order.splice(Xe,1);var ft=pe?this._order.indexOf(pe):this._order.length;if(pe&&ft===-1){this.fire(new s.ErrorEvent(new Error('Layer with id "'+pe+'" does not exist on this map.')));return}this._order.splice(ft,0,ee),this._layerOrderChanged=!0}},K.prototype.removeLayer=function(ee){this._checkLoaded();var pe=this._layers[ee];if(!pe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be removed.")));return}pe.setEventedParent(null);var Oe=this._order.indexOf(ee);this._order.splice(Oe,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ee]=pe,delete this._layers[ee],delete this._serializedLayers[ee],delete this._updatedLayers[ee],delete this._updatedPaintProps[ee],pe.onRemove&&pe.onRemove(this.map)},K.prototype.getLayer=function(ee){return this._layers[ee]},K.prototype.hasLayer=function(ee){return ee in this._layers},K.prototype.setLayerZoomRange=function(ee,pe,Oe){this._checkLoaded();var Xe=this.getLayer(ee);if(!Xe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot have zoom extent.")));return}Xe.minzoom===pe&&Xe.maxzoom===Oe||(pe!=null&&(Xe.minzoom=pe),Oe!=null&&(Xe.maxzoom=Oe),this._updateLayer(Xe))},K.prototype.setFilter=function(ee,pe,Oe){Oe===void 0&&(Oe={}),this._checkLoaded();var Xe=this.getLayer(ee);if(!Xe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be filtered.")));return}if(!s.deepEqual(Xe.filter,pe)){if(pe==null){Xe.filter=void 0,this._updateLayer(Xe);return}this._validate(s.validateStyle.filter,"layers."+Xe.id+".filter",pe,null,Oe)||(Xe.filter=s.clone$1(pe),this._updateLayer(Xe))}},K.prototype.getFilter=function(ee){return s.clone$1(this.getLayer(ee).filter)},K.prototype.setLayoutProperty=function(ee,pe,Oe,Xe){Xe===void 0&&(Xe={}),this._checkLoaded();var ft=this.getLayer(ee);if(!ft){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be styled.")));return}s.deepEqual(ft.getLayoutProperty(pe),Oe)||(ft.setLayoutProperty(pe,Oe,Xe),this._updateLayer(ft))},K.prototype.getLayoutProperty=function(ee,pe){var Oe=this.getLayer(ee);if(!Oe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style.")));return}return Oe.getLayoutProperty(pe)},K.prototype.setPaintProperty=function(ee,pe,Oe,Xe){Xe===void 0&&(Xe={}),this._checkLoaded();var ft=this.getLayer(ee);if(!ft){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be styled.")));return}if(!s.deepEqual(ft.getPaintProperty(pe),Oe)){var Lt=ft.setPaintProperty(pe,Oe,Xe);Lt&&this._updateLayer(ft),this._changed=!0,this._updatedPaintProps[ee]=!0}},K.prototype.getPaintProperty=function(ee,pe){return this.getLayer(ee).getPaintProperty(pe)},K.prototype.setFeatureState=function(ee,pe){this._checkLoaded();var Oe=ee.source,Xe=ee.sourceLayer,ft=this.sourceCaches[Oe];if(ft===void 0){this.fire(new s.ErrorEvent(new Error("The source '"+Oe+"' does not exist in the map's style.")));return}var Lt=ft.getSource().type;if(Lt==="geojson"&&Xe){this.fire(new s.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Lt==="vector"&&!Xe){this.fire(new s.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}ee.id===void 0&&this.fire(new s.ErrorEvent(new Error("The feature id parameter must be provided."))),ft.setFeatureState(Xe,ee.id,pe)},K.prototype.removeFeatureState=function(ee,pe){this._checkLoaded();var Oe=ee.source,Xe=this.sourceCaches[Oe];if(Xe===void 0){this.fire(new s.ErrorEvent(new Error("The source '"+Oe+"' does not exist in the map's style.")));return}var ft=Xe.getSource().type,Lt=ft==="vector"?ee.sourceLayer:void 0;if(ft==="vector"&&!Lt){this.fire(new s.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(pe&&typeof ee.id!="string"&&typeof ee.id!="number"){this.fire(new s.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}Xe.removeFeatureState(Lt,ee.id,pe)},K.prototype.getFeatureState=function(ee){this._checkLoaded();var pe=ee.source,Oe=ee.sourceLayer,Xe=this.sourceCaches[pe];if(Xe===void 0){this.fire(new s.ErrorEvent(new Error("The source '"+pe+"' does not exist in the map's style.")));return}var ft=Xe.getSource().type;if(ft==="vector"&&!Oe){this.fire(new s.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return ee.id===void 0&&this.fire(new s.ErrorEvent(new Error("The feature id parameter must be provided."))),Xe.getFeatureState(Oe,ee.id)},K.prototype.getTransition=function(){return s.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},K.prototype.serialize=function(){return s.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:s.mapObject(this.sourceCaches,function(ee){return ee.serialize()}),layers:this._serializeLayers(this._order)},function(ee){return ee!==void 0})},K.prototype._updateLayer=function(ee){this._updatedLayers[ee.id]=!0,ee.source&&!this._updatedSources[ee.source]&&this.sourceCaches[ee.source].getSource().type!=="raster"&&(this._updatedSources[ee.source]="reload",this.sourceCaches[ee.source].pause()),this._changed=!0},K.prototype._flattenAndSortRenderedFeatures=function(ee){for(var pe=this,Oe=function(Fa){return pe._layers[Fa].type==="fill-extrusion"},Xe={},ft=[],Lt=this._order.length-1;Lt>=0;Lt--){var Ht=this._order[Lt];if(Oe(Ht)){Xe[Ht]=Lt;for(var qt=0,lr=ee;qt=0;dn--){var In=this._order[dn];if(Oe(In))for(var Bn=ft.length-1;Bn>=0;Bn--){var Xn=ft[Bn].feature;if(Xe[Xn.layer.id]24?(isFinite(Ae)&&(clearTimeout(fn),fn=setTimeout(Vn,Ae)),ln=0):(ln=1,Mn(Vn))}s.timer.flush=function(){ia(),ya()};function ia(){for(var ue=Date.now(),Ae=Yr;Ae;)ue>=Ae.t&&Ae.c(ue-Ae.t)&&(Ae.c=null),Ae=Ae.n;return ue}function ya(){for(var ue,Ae=Yr,Be=1/0;Ae;)Ae.c?(Ae.t=0;--St)Rr.push(nt[Yt[Cr[St]][2]]);for(St=+$r;St1&&Wt(ue[Be[qe-2]],ue[Be[qe-1]],ue[nt])<=0;)--qe;Be[qe++]=nt}return Be.slice(0,qe)}function mr(ue,Ae){return ue[0]-Ae[0]||ue[1]-Ae[1]}s.geom.polygon=function(ue){return ie(ue,en),ue};var en=s.geom.polygon.prototype=[];en.area=function(){for(var ue=-1,Ae=this.length,Be,qe=this[Ae-1],nt=0;++ueje)St=St.L;else if(Pt=Ae-un(St,Be),Pt>je){if(!St.R){qe=St;break}St=St.R}else{ct>-je?(qe=St.P,nt=St):Pt>-je?(qe=St,nt=St.N):qe=nt=St;break}var Gt=Ar(ue);if(Fn.insert(qe,Gt),!(!qe&&!nt)){if(qe===nt){zn(qe),nt=Ar(qe.site),Fn.insert(Gt,nt),Gt.edge=nt.edge=sa(qe.site,Gt.site),wn(qe),wn(nt);return}if(!nt){Gt.edge=sa(qe.site,Gt.site);return}zn(qe),zn(nt);var Yt=qe.site,rr=Yt.x,Cr=Yt.y,Lr=ue.x-rr,$r=ue.y-Cr,sn=nt.site,Rr=sn.x-rr,Vr=sn.y-Cr,Kr=2*(Lr*Vr-$r*Rr),hn=Lr*Lr+$r*$r,pn=Rr*Rr+Vr*Vr,rn={x:(Vr*hn-$r*pn)/Kr+rr,y:(Lr*pn-Rr*hn)/Kr+Cr};_a(nt.edge,Yt,sn,rn),Gt.edge=sa(Yt,ue,null,rn),nt.edge=sa(ue,sn,null,rn),wn(qe),wn(nt)}}function gn(ue,Ae){var Be=ue.site,qe=Be.x,nt=Be.y,ct=nt-Ae;if(!ct)return qe;var Pt=ue.P;if(!Pt)return-1/0;Be=Pt.site;var St=Be.x,Gt=Be.y,Yt=Gt-Ae;if(!Yt)return St;var rr=St-qe,Cr=1/ct-1/Yt,Lr=rr/Yt;return Cr?(-Lr+Math.sqrt(Lr*Lr-2*Cr*(rr*rr/(-2*Yt)-Gt+Yt/2+nt-ct/2)))/Cr+qe:(qe+St)/2}function un(ue,Ae){var Be=ue.N;if(Be)return gn(Be,Ae);var qe=ue.site;return qe.y===Ae?qe.x:1/0}function Er(ue){this.site=ue,this.edges=[]}Er.prototype.prepare=function(){for(var ue=this.edges,Ae=ue.length,Be;Ae--;)Be=ue[Ae].edge,(!Be.b||!Be.a)&&ue.splice(Ae,1);return ue.sort(Gr),ue.length};function Zr(ue){for(var Ae=ue[0][0],Be=ue[1][0],qe=ue[0][1],nt=ue[1][1],ct,Pt,St,Gt,Yt=An,rr=Yt.length,Cr,Lr,$r,sn,Rr,Vr;rr--;)if(Cr=Yt[rr],!(!Cr||!Cr.prepare()))for($r=Cr.edges,sn=$r.length,Lr=0;Lrje||d(Gt-Pt)>je)&&($r.splice(Lr,0,new gi(ga(Cr.site,Vr,d(St-Ae)je?{x:Ae,y:d(ct-Ae)je?{x:d(Pt-nt)je?{x:Be,y:d(ct-Be)je?{x:d(Pt-qe)=-Ce)){var Lr=Gt*Gt+Yt*Yt,$r=rr*rr+Vr*Vr,sn=(Vr*Lr-Yt*$r)/Cr,Rr=(Gt*$r-rr*Lr)/Cr,Vr=Rr+St,Kr=Mr.pop()||new qr;Kr.arc=ue,Kr.site=nt,Kr.x=sn+Pt,Kr.y=Vr+Math.sqrt(sn*sn+Rr*Rr),Kr.cy=Vr,ue.circle=Kr;for(var hn=null,pn=Ia._;pn;)if(Kr.y0)){if(Rr/=$r,$r<0){if(Rr0){if(Rr>Lr)return;Rr>Cr&&(Cr=Rr)}if(Rr=Be-St,!(!$r&&Rr<0)){if(Rr/=$r,$r<0){if(Rr>Lr)return;Rr>Cr&&(Cr=Rr)}else if($r>0){if(Rr0)){if(Rr/=sn,sn<0){if(Rr0){if(Rr>Lr)return;Rr>Cr&&(Cr=Rr)}if(Rr=qe-Gt,!(!sn&&Rr<0)){if(Rr/=sn,sn<0){if(Rr>Lr)return;Rr>Cr&&(Cr=Rr)}else if(sn>0){if(Rr0&&(nt.a={x:St+Cr*$r,y:Gt+Cr*sn}),Lr<1&&(nt.b={x:St+Lr*$r,y:Gt+Lr*sn}),nt}}}}}}function Un(ue){for(var Ae=bn,Be=En(ue[0][0],ue[0][1],ue[1][0],ue[1][1]),qe=Ae.length,nt;qe--;)nt=Ae[qe],(!Nn(nt,ue)||!Be(nt)||d(nt.a.x-nt.b.x)=ct)return;if(rr>Lr){if(!qe)qe={x:sn,y:Pt};else if(qe.y>=St)return;Be={x:sn,y:St}}else{if(!qe)qe={x:sn,y:St};else if(qe.y1)if(rr>Lr){if(!qe)qe={x:(Pt-Kr)/Vr,y:Pt};else if(qe.y>=St)return;Be={x:(St-Kr)/Vr,y:St}}else{if(!qe)qe={x:(St-Kr)/Vr,y:St};else if(qe.y=ct)return;Be={x:ct,y:Vr*ct+Kr}}else{if(!qe)qe={x:ct,y:Vr*ct+Kr};else if(qe.x=rr&&Kr.x<=Lr&&Kr.y>=Cr&&Kr.y<=$r?[[rr,$r],[Lr,$r],[Lr,Cr],[rr,Cr]]:[];hn.point=Gt[Rr]}),Yt}function St(Gt){return Gt.map(function(Yt,rr){return{x:Math.round(qe(Yt,rr)/je)*je,y:Math.round(nt(Yt,rr)/je)*je,i:rr}})}return Pt.links=function(Gt){return af(St(Gt)).edges.filter(function(Yt){return Yt.l&&Yt.r}).map(function(Yt){return{source:Gt[Yt.l.i],target:Gt[Yt.r.i]}})},Pt.triangles=function(Gt){var Yt=[];return af(St(Gt)).cells.forEach(function(rr,Cr){for(var Lr=rr.site,$r=rr.edges.sort(Gr),sn=-1,Rr=$r.length,Vr,Kr=$r[Rr-1].edge,hn=Kr.l===Lr?Kr.r:Kr.l;++snpn&&(pn=rr.x),rr.y>rn&&(rn=rr.y),$r.push(rr.x),sn.push(rr.y);else for(Rr=0;Rrpn&&(pn=Hn),ra>rn&&(rn=ra),$r.push(Hn),sn.push(ra)}var fa=pn-Kr,ea=rn-hn;fa>ea?rn=hn+fa:pn=Kr+ea;function oa(Ea,Oa,ii,Fi,ci,qn,Ha,Sa){if(!(isNaN(ii)||isNaN(Fi)))if(Ea.leaf){var Ja=Ea.x,wi=Ea.y;if(Ja!=null)if(d(Ja-ii)+d(wi-Fi)<.01)ca(Ea,Oa,ii,Fi,ci,qn,Ha,Sa);else{var oi=Ea.point;Ea.x=Ea.y=Ea.point=null,ca(Ea,oi,Ja,wi,ci,qn,Ha,Sa),ca(Ea,Oa,ii,Fi,ci,qn,Ha,Sa)}else Ea.x=ii,Ea.y=Fi,Ea.point=Oa}else ca(Ea,Oa,ii,Fi,ci,qn,Ha,Sa)}function ca(Ea,Oa,ii,Fi,ci,qn,Ha,Sa){var Ja=(ci+Ha)*.5,wi=(qn+Sa)*.5,oi=ii>=Ja,$i=Fi>=wi,qi=$i<<1|oi;Ea.leaf=!1,Ea=Ea.nodes[qi]||(Ea.nodes[qi]=bo()),oi?ci=Ja:Ha=Ja,$i?qn=wi:Sa=wi,oa(Ea,Oa,ii,Fi,ci,qn,Ha,Sa)}var Ua=bo();if(Ua.add=function(Ea){oa(Ua,Ea,+Cr(Ea,++Rr),+Lr(Ea,Rr),Kr,hn,pn,rn)},Ua.visit=function(Ea){Ml(Ea,Ua,Kr,hn,pn,rn)},Ua.find=function(Ea){return Iu(Ua,Ea[0],Ea[1],Kr,hn,pn,rn)},Rr=-1,Ae==null){for(;++Rrct||Lr>Pt||$r=Hn,ea=Be>=ra,oa=ea<<1|fa,ca=oa+4;oaBe&&(ct=Ae.slice(Be,ct),St[Pt]?St[Pt]+=ct:St[++Pt]=ct),(qe=qe[0])===(nt=nt[0])?St[Pt]?St[Pt]+=nt:St[++Pt]=nt:(St[++Pt]=null,Gt.push({i:Pt,x:Oi(qe,nt)})),Be=ro.lastIndex;return Be=0&&!(qe=s.interpolators[Be](ue,Ae)););return qe}s.interpolators=[function(ue,Ae){var Be=typeof Ae;return(Be==="string"?an.has(Ae.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Ae)?Ii:Hi:Ae instanceof ut?Ii:Array.isArray(Ae)?zo:Be==="object"&&isNaN(Ae)?El:Oi)(ue,Ae)}],s.interpolateArray=zo;function zo(ue,Ae){var Be=[],qe=[],nt=ue.length,ct=Ae.length,Pt=Math.min(ue.length,Ae.length),St;for(St=0;St=0?ue.slice(0,Ae):ue,qe=Ae>=0?ue.slice(Ae+1):"in";return Be=Lo.get(Be)||Hf,qe=jc.get(qe)||O,cs(qe(Be.apply(null,L.call(arguments,1))))};function cs(ue){return function(Ae){return Ae<=0?0:Ae>=1?1:ue(Ae)}}function Ji(ue){return function(Ae){return 1-ue(1-Ae)}}function sf(ue){return function(Ae){return .5*(Ae<.5?ue(2*Ae):2-ue(2-2*Ae))}}function Bs(ue){return ue*ue}function hs(ue){return ue*ue*ue}function lf(ue){if(ue<=0)return 0;if(ue>=1)return 1;var Ae=ue*ue,Be=Ae*ue;return 4*(ue<.5?Be:3*(ue-Ae)+Be-.75)}function Gf(ue){return function(Ae){return Math.pow(Ae,ue)}}function Xc(ue){return 1-Math.cos(ue*Ze)}function ku(ue){return Math.pow(2,10*(ue-1))}function Zc(ue){return 1-Math.sqrt(1-ue*ue)}function Kc(ue,Ae){var Be;return arguments.length<2&&(Ae=.45),arguments.length?Be=Ae/me*Math.asin(1/ue):(ue=1,Be=Ae/4),function(qe){return 1+ue*Math.pow(2,-10*qe)*Math.sin((qe-Be)*me/Ae)}}function Jc(ue){return ue||(ue=1.70158),function(Ae){return Ae*Ae*((ue+1)*Ae-ue)}}function uf(ue){return ue<.36363636363636365?7.5625*ue*ue:ue<.7272727272727273?7.5625*(ue-=.5454545454545454)*ue+.75:ue<.9090909090909091?7.5625*(ue-=.8181818181818182)*ue+.9375:7.5625*(ue-=.9545454545454546)*ue+.984375}s.interpolateHcl=Qc;function Qc(ue,Ae){ue=s.hcl(ue),Ae=s.hcl(Ae);var Be=ue.h,qe=ue.c,nt=ue.l,ct=Ae.h-Be,Pt=Ae.c-qe,St=Ae.l-nt;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?Ae.c:qe),isNaN(ct)?(ct=0,Be=isNaN(Be)?Ae.h:Be):ct>180?ct-=360:ct<-180&&(ct+=360),function(Gt){return Bt(Be+ct*Gt,qe+Pt*Gt,nt+St*Gt)+""}}s.interpolateHsl=$c;function $c(ue,Ae){ue=s.hsl(ue),Ae=s.hsl(Ae);var Be=ue.h,qe=ue.s,nt=ue.l,ct=Ae.h-Be,Pt=Ae.s-qe,St=Ae.l-nt;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?Ae.s:qe),isNaN(ct)?(ct=0,Be=isNaN(Be)?Ae.h:Be):ct>180?ct-=360:ct<-180&&(ct+=360),function(Gt){return At(Be+ct*Gt,qe+Pt*Gt,nt+St*Gt)+""}}s.interpolateLab=Wf;function Wf(ue,Ae){ue=s.lab(ue),Ae=s.lab(Ae);var Be=ue.l,qe=ue.a,nt=ue.b,ct=Ae.l-Be,Pt=Ae.a-qe,St=Ae.b-nt;return function(Gt){return Ue(Be+ct*Gt,qe+Pt*Gt,nt+St*Gt)+""}}s.interpolateRound=Yf;function Yf(ue,Ae){return Ae-=ue,function(Be){return Math.round(ue+Ae*Be)}}s.transform=function(ue){var Ae=v.createElementNS(s.ns.prefix.svg,"g");return(s.transform=function(Be){if(Be!=null){Ae.setAttribute("transform",Be);var qe=Ae.transform.baseVal.consolidate()}return new al(qe?qe.matrix:jf)})(ue)};function al(ue){var Ae=[ue.a,ue.b],Be=[ue.c,ue.d],qe=tu(Ae),nt=Ll(Ae,Be),ct=tu(ru(Be,Ae,-nt))||0;Ae[0]*Be[1]180?Ae+=360:Ae-ue>180&&(ue+=360),qe.push({i:Be.push(Ms(Be)+"rotate(",null,")")-2,x:Oi(ue,Ae)})):Ae&&Be.push(Ms(Be)+"rotate("+Ae+")")}function Xf(ue,Ae,Be,qe){ue!==Ae?qe.push({i:Be.push(Ms(Be)+"skewX(",null,")")-2,x:Oi(ue,Ae)}):Ae&&Be.push(Ms(Be)+"skewX("+Ae+")")}function Zf(ue,Ae,Be,qe){if(ue[0]!==Ae[0]||ue[1]!==Ae[1]){var nt=Be.push(Ms(Be)+"scale(",null,",",null,")");qe.push({i:nt-4,x:Oi(ue[0],Ae[0])},{i:nt-2,x:Oi(ue[1],Ae[1])})}else(Ae[0]!==1||Ae[1]!==1)&&Be.push(Ms(Be)+"scale("+Ae+")")}function Ou(ue,Ae){var Be=[],qe=[];return ue=s.transform(ue),Ae=s.transform(Ae),qc(ue.translate,Ae.translate,Be,qe),zu(ue.rotate,Ae.rotate,Be,qe),Xf(ue.skew,Ae.skew,Be,qe),Zf(ue.scale,Ae.scale,Be,qe),ue=Ae=null,function(nt){for(var ct=-1,Pt=qe.length,St;++ct0?ct=rn:(Be.c=null,Be.t=NaN,Be=null,Ae.end({type:"end",alpha:ct=0})):rn>0&&(Ae.start({type:"start",alpha:ct=rn}),Be=Pn(ue.tick)),ue):ct},ue.start=function(){var rn,Hn=$r.length,ra=sn.length,fa=qe[0],ea=qe[1],oa,ca;for(rn=0;rn=0;)ct.push(rr=Yt[Gt]),rr.parent=St,rr.depth=St.depth+1;Be&&(St.value=0),St.children=Yt}else Be&&(St.value=+Be.call(qe,St,St.depth)||0),delete St.children;return Po(nt,function(Cr){var Lr,$r;ue&&(Lr=Cr.children)&&Lr.sort(ue),Be&&($r=Cr.parent)&&($r.value+=Cr.value)}),Pt}return qe.sort=function(nt){return arguments.length?(ue=nt,qe):ue},qe.children=function(nt){return arguments.length?(Ae=nt,qe):Ae},qe.value=function(nt){return arguments.length?(Be=nt,qe):Be},qe.revalue=function(nt){return Be&&(Dl(nt,function(ct){ct.children&&(ct.value=0)}),Po(nt,function(ct){var Pt;ct.children||(ct.value=+Be.call(qe,ct,ct.depth)||0),(Pt=ct.parent)&&(Pt.value+=ct.value)})),nt},qe};function Rl(ue,Ae){return s.rebind(ue,Ae,"sort","children","value"),ue.nodes=ue,ue.links=th,ue}function Dl(ue,Ae){for(var Be=[ue];(ue=Be.pop())!=null;)if(Ae(ue),(nt=ue.children)&&(qe=nt.length))for(var qe,nt;--qe>=0;)Be.push(nt[qe])}function Po(ue,Ae){for(var Be=[ue],qe=[];(ue=Be.pop())!=null;)if(qe.push(ue),(Pt=ue.children)&&(ct=Pt.length))for(var nt=-1,ct,Pt;++ntnt&&(nt=St),qe.push(St)}for(Pt=0;Ptqe&&(Be=Ae,qe=nt);return Be}function Jf(ue){return ue.reduce(Jo,0)}function Jo(ue,Ae){return ue+Ae[1]}s.layout.histogram=function(){var ue=!0,Ae=Number,Be=ol,qe=Qf;function nt(ct,Lr){for(var St=[],Gt=ct.map(Ae,this),Yt=Be.call(this,Gt,Lr),rr=qe.call(this,Yt,Gt,Lr),Cr,Lr=-1,$r=Gt.length,sn=rr.length-1,Rr=ue?1:1/$r,Vr;++Lr0)for(Lr=-1;++Lr<$r;)Vr=Gt[Lr],Vr>=Yt[0]&&Vr<=Yt[1]&&(Cr=St[s.bisect(rr,Vr,1,sn)-1],Cr.y+=Rr,Cr.push(ct[Lr]));return St}return nt.value=function(ct){return arguments.length?(Ae=ct,nt):Ae},nt.range=function(ct){return arguments.length?(Be=tn(ct),nt):Be},nt.bins=function(ct){return arguments.length?(qe=typeof ct=="number"?function(Pt){return pf(Pt,ct)}:tn(ct),nt):qe},nt.frequency=function(ct){return arguments.length?(ue=!!ct,nt):ue},nt};function Qf(ue,Ae){return pf(ue,Math.ceil(Math.log(Ae.length)/Math.LN2+1))}function pf(ue,Ae){for(var Be=-1,qe=+ue[0],nt=(ue[1]-qe)/Ae,ct=[];++Be<=Ae;)ct[Be]=nt*Be+qe;return ct}function ol(ue){return[s.min(ue),s.max(ue)]}s.layout.pack=function(){var ue=s.layout.hierarchy().sort(Vs),Ae=0,Be=[1,1],qe;function nt(ct,Pt){var St=ue.call(this,ct,Pt),Gt=St[0],Yt=Be[0],rr=Be[1],Cr=qe==null?Math.sqrt:typeof qe=="function"?qe:function(){return qe};if(Gt.x=Gt.y=0,Po(Gt,function($r){$r.r=+Cr($r.value)}),Po(Gt,Qo),Ae){var Lr=Ae*(qe?1:Math.max(2*Gt.r/Yt,2*Gt.r/rr))/2;Po(Gt,function($r){$r.r+=Lr}),Po(Gt,Qo),Po(Gt,function($r){$r.r-=Lr})}return Hs(Gt,Yt/2,rr/2,qe?1:1/Math.max(2*Gt.r/Yt,2*Gt.r/rr)),St}return nt.size=function(ct){return arguments.length?(Be=ct,nt):Be},nt.radius=function(ct){return arguments.length?(qe=ct==null||typeof ct=="function"?ct:+ct,nt):qe},nt.padding=function(ct){return arguments.length?(Ae=+ct,nt):Ae},Rl(nt,ue)};function Vs(ue,Ae){return ue.value-Ae.value}function Hu(ue,Ae){var Be=ue._pack_next;ue._pack_next=Ae,Ae._pack_prev=ue,Ae._pack_next=Be,Be._pack_prev=Ae}function ki(ue,Ae){ue._pack_next=Ae,Ae._pack_prev=ue}function iu(ue,Ae){var Be=Ae.x-ue.x,qe=Ae.y-ue.y,nt=ue.r+Ae.r;return .999*nt*nt>Be*Be+qe*qe}function Qo(ue){if(!(Ae=ue.children)||!(Lr=Ae.length))return;var Ae,Be=1/0,qe=-1/0,nt=1/0,ct=-1/0,Pt,St,Gt,Yt,rr,Cr,Lr;function $r(rn){Be=Math.min(rn.x-rn.r,Be),qe=Math.max(rn.x+rn.r,qe),nt=Math.min(rn.y-rn.r,nt),ct=Math.max(rn.y+rn.r,ct)}if(Ae.forEach(Es),Pt=Ae[0],Pt.x=-Pt.r,Pt.y=0,$r(Pt),Lr>1&&(St=Ae[1],St.x=St.r,St.y=0,$r(St),Lr>2))for(Gt=Ae[2],$o(Pt,St,Gt),$r(Gt),Hu(Pt,Gt),Pt._pack_prev=Gt,Hu(Gt,St),St=Pt._pack_next,Yt=3;YtVr.x&&(Vr=Hn),Hn.depth>Kr.depth&&(Kr=Hn)});var hn=Ae(Rr,Vr)/2-Rr.x,pn=Be[0]/(Vr.x+Ae(Vr,Rr)/2+hn),rn=Be[1]/(Kr.depth||1);Dl($r,function(Hn){Hn.x=(Hn.x+hn)*pn,Hn.y=Hn.depth*rn})}return Lr}function ct(rr){for(var Cr={A:null,children:[rr]},Lr=[Cr],$r;($r=Lr.pop())!=null;)for(var sn=$r.children,Rr,Vr=0,Kr=sn.length;Vr0&&(ou(nh(Rr,rr,Lr),rr,Hn),Kr+=Hn,hn+=Hn),pn+=Rr.m,Kr+=$r.m,rn+=Vr.m,hn+=sn.m;Rr&&!Vo(sn)&&(sn.t=Rr,sn.m+=pn-hn),$r&&!qo(Vr)&&(Vr.t=$r,Vr.m+=Kr-rn,Lr=rr)}return Lr}function Yt(rr){rr.x*=Be[0],rr.y=rr.depth*Be[1]}return nt.separation=function(rr){return arguments.length?(Ae=rr,nt):Ae},nt.size=function(rr){return arguments.length?(qe=(Be=rr)==null?Yt:null,nt):qe?null:Be},nt.nodeSize=function(rr){return arguments.length?(qe=(Be=rr)==null?null:Yt,nt):qe?Be:null},Rl(nt,ue)};function Cs(ue,Ae){return ue.parent==Ae.parent?1:2}function qo(ue){var Ae=ue.children;return Ae.length?Ae[0]:ue.t}function Vo(ue){var Ae=ue.children,Be;return(Be=Ae.length)?Ae[Be-1]:ue.t}function ou(ue,Ae,Be){var qe=Be/(Ae.i-ue.i);Ae.c-=qe,Ae.s+=Be,ue.c+=qe,Ae.z+=Be,Ae.m+=Be}function rh(ue){for(var Ae=0,Be=0,qe=ue.children,nt=qe.length,ct;--nt>=0;)ct=qe[nt],ct.z+=Ae,ct.m+=Ae,Ae+=ct.s+(Be+=ct.c)}function nh(ue,Ae,Be){return ue.a.parent===Ae.parent?ue.a:Be}s.layout.cluster=function(){var ue=s.layout.hierarchy().sort(null).value(null),Ae=Cs,Be=[1,1],qe=!1;function nt(ct,Pt){var St=ue.call(this,ct,Pt),Gt=St[0],Yt,rr=0;Po(Gt,function(Rr){var Vr=Rr.children;Vr&&Vr.length?(Rr.x=ih(Vr),Rr.y=ah(Vr)):(Rr.x=Yt?rr+=Ae(Rr,Yt):0,Rr.y=0,Yt=Rr)});var Cr=gf(Gt),Lr=$f(Gt),$r=Cr.x-Ae(Cr,Lr)/2,sn=Lr.x+Ae(Lr,Cr)/2;return Po(Gt,qe?function(Rr){Rr.x=(Rr.x-Gt.x)*Be[0],Rr.y=(Gt.y-Rr.y)*Be[1]}:function(Rr){Rr.x=(Rr.x-$r)/(sn-$r)*Be[0],Rr.y=(1-(Gt.y?Rr.y/Gt.y:1))*Be[1]}),St}return nt.separation=function(ct){return arguments.length?(Ae=ct,nt):Ae},nt.size=function(ct){return arguments.length?(qe=(Be=ct)==null,nt):qe?null:Be},nt.nodeSize=function(ct){return arguments.length?(qe=(Be=ct)!=null,nt):qe?Be:null},Rl(nt,ue)};function ah(ue){return 1+s.max(ue,function(Ae){return Ae.y})}function ih(ue){return ue.reduce(function(Ae,Be){return Ae+Be.x},0)/ue.length}function gf(ue){var Ae=ue.children;return Ae&&Ae.length?gf(Ae[0]):ue}function $f(ue){var Ae=ue.children,Be;return Ae&&(Be=Ae.length)?$f(Ae[Be-1]):ue}s.layout.treemap=function(){var ue=s.layout.hierarchy(),Ae=Math.round,Be=[1,1],qe=null,nt=zl,ct=!1,Pt,St="squarify",Gt=.5*(1+Math.sqrt(5));function Yt(Rr,Vr){for(var Kr=-1,hn=Rr.length,pn,rn;++Kr0;)hn.push(rn=pn[ea-1]),hn.area+=rn.area,St!=="squarify"||(ra=Lr(hn,fa))<=Hn?(pn.pop(),Hn=ra):(hn.area-=hn.pop().area,$r(hn,fa,Kr,!1),fa=Math.min(Kr.dx,Kr.dy),hn.length=hn.area=0,Hn=1/0);hn.length&&($r(hn,fa,Kr,!0),hn.length=hn.area=0),Vr.forEach(rr)}}function Cr(Rr){var Vr=Rr.children;if(Vr&&Vr.length){var Kr=nt(Rr),hn=Vr.slice(),pn,rn=[];for(Yt(hn,Kr.dx*Kr.dy/Rr.value),rn.area=0;pn=hn.pop();)rn.push(pn),rn.area+=pn.area,pn.z!=null&&($r(rn,pn.z?Kr.dx:Kr.dy,Kr,!hn.length),rn.length=rn.area=0);Vr.forEach(Cr)}}function Lr(Rr,Vr){for(var Kr=Rr.area,hn,pn=0,rn=1/0,Hn=-1,ra=Rr.length;++Hnpn&&(pn=hn));return Kr*=Kr,Vr*=Vr,Kr?Math.max(Vr*pn*Gt/Kr,Kr/(Vr*rn*Gt)):1/0}function $r(Rr,Vr,Kr,hn){var pn=-1,rn=Rr.length,Hn=Kr.x,ra=Kr.y,fa=Vr?Ae(Rr.area/Vr):0,ea;if(Vr==Kr.dx){for((hn||fa>Kr.dy)&&(fa=Kr.dy);++pnKr.dx)&&(fa=Kr.dx);++pn1);return ue+Ae*qe*Math.sqrt(-2*Math.log(ct)/ct)}},logNormal:function(){var ue=s.random.normal.apply(s,arguments);return function(){return Math.exp(ue())}},bates:function(ue){var Ae=s.random.irwinHall(ue);return function(){return Ae()/ue}},irwinHall:function(ue){return function(){for(var Ae=0,Be=0;Be2?ec:qf,Yt=qe?Pl:Zo;return nt=Gt(ue,Ae,Yt,Be),ct=Gt(Ae,ue,Yt,no),St}function St(Gt){return nt(Gt)}return St.invert=function(Gt){return ct(Gt)},St.domain=function(Gt){return arguments.length?(ue=Gt.map(Number),Pt()):ue},St.range=function(Gt){return arguments.length?(Ae=Gt,Pt()):Ae},St.rangeRound=function(Gt){return St.range(Gt).interpolate(Yf)},St.clamp=function(Gt){return arguments.length?(qe=Gt,Pt()):qe},St.interpolate=function(Gt){return arguments.length?(Be=Gt,Pt()):Be},St.ticks=function(Gt){return es(ue,Gt)},St.tickFormat=function(Gt,Yt){return d3_scale_linearTickFormat(ue,Gt,Yt)},St.nice=function(Gt){return rc(ue,Gt),Pt()},St.copy=function(){return tc(ue,Ae,Be,qe)},Pt()}function yf(ue,Ae){return s.rebind(ue,Ae,"range","rangeRound","interpolate","clamp")}function rc(ue,Ae){return su(ue,Ls(wo(ue,Ae)[2])),su(ue,Ls(wo(ue,Ae)[2])),ue}function wo(ue,Ae){Ae==null&&(Ae=10);var Be=Oo(ue),qe=Be[1]-Be[0],nt=Math.pow(10,Math.floor(Math.log(qe/Ae)/Math.LN10)),ct=Ae/qe*nt;return ct<=.15?nt*=10:ct<=.35?nt*=5:ct<=.75&&(nt*=2),Be[0]=Math.ceil(Be[0]/nt)*nt,Be[1]=Math.floor(Be[1]/nt)*nt+nt*.5,Be[2]=nt,Be}function es(ue,Ae){return s.range.apply(s,wo(ue,Ae))}s.scale.log=function(){return Gs(s.scale.linear().domain([0,1]),10,!0,[1,10])};function Gs(ue,Ae,Be,qe){function nt(St){return(Be?Math.log(St<0?0:St):-Math.log(St>0?0:-St))/Math.log(Ae)}function ct(St){return Be?Math.pow(Ae,St):-Math.pow(Ae,-St)}function Pt(St){return ue(nt(St))}return Pt.invert=function(St){return ct(ue.invert(St))},Pt.domain=function(St){return arguments.length?(Be=St[0]>=0,ue.domain((qe=St.map(Number)).map(nt)),Pt):qe},Pt.base=function(St){return arguments.length?(Ae=+St,ue.domain(qe.map(nt)),Pt):Ae},Pt.nice=function(){var St=su(qe.map(nt),Be?Math:Fl);return ue.domain(St),qe=St.map(ct),Pt},Pt.ticks=function(){var St=Oo(qe),Gt=[],Yt=St[0],rr=St[1],Cr=Math.floor(nt(Yt)),Lr=Math.ceil(nt(rr)),$r=Ae%1?2:Ae;if(isFinite(Lr-Cr)){if(Be){for(;Cr0;sn--)Gt.push(ct(Cr)*sn);for(Cr=0;Gt[Cr]rr;Lr--);Gt=Gt.slice(Cr,Lr)}return Gt},Pt.copy=function(){return Gs(ue.copy(),Ae,Be,qe)},yf(Pt,ue)}var Fl={floor:function(ue){return-Math.ceil(-ue)},ceil:function(ue){return-Math.floor(-ue)}};s.scale.pow=function(){return Gu(s.scale.linear(),1,[0,1])};function Gu(ue,Ae,Be){var qe=ll(Ae),nt=ll(1/Ae);function ct(Pt){return ue(qe(Pt))}return ct.invert=function(Pt){return nt(ue.invert(Pt))},ct.domain=function(Pt){return arguments.length?(ue.domain((Be=Pt.map(Number)).map(qe)),ct):Be},ct.ticks=function(Pt){return es(Be,Pt)},ct.tickFormat=function(Pt,St){return d3_scale_linearTickFormat(Be,Pt,St)},ct.nice=function(Pt){return ct.domain(rc(Be,Pt))},ct.exponent=function(Pt){return arguments.length?(qe=ll(Ae=Pt),nt=ll(1/Ae),ue.domain(Be.map(qe)),ct):Ae},ct.copy=function(){return Gu(ue.copy(),Ae,Be)},yf(ct,ue)}function ll(ue){return function(Ae){return Ae<0?-Math.pow(-Ae,ue):Math.pow(Ae,ue)}}s.scale.sqrt=function(){return s.scale.pow().exponent(.5)},s.scale.ordinal=function(){return ul([],{t:"range",a:[[]]})};function ul(ue,Ae){var Be,qe,nt;function ct(St){return qe[((Be.get(St)||(Ae.t==="range"?Be.set(St,ue.push(St)):NaN))-1)%qe.length]}function Pt(St,Gt){return s.range(ue.length).map(function(Yt){return St+Gt*Yt})}return ct.domain=function(St){if(!arguments.length)return ue;ue=[],Be=new C;for(var Gt=-1,Yt=St.length,rr;++Gt0?Be[ct-1]:ue[0],ctLr?0:1;if(rr=Ne)return Gt(rr,sn)+(Yt?Gt(Yt,1-sn):"")+"Z";var Rr,Vr,Kr,hn,pn=0,rn=0,Hn,ra,fa,ea,oa,ca,Ua,Ea,Oa=[];if((hn=(+Pt.apply(this,arguments)||0)/2)&&(Kr=qe===Wu?Math.sqrt(Yt*Yt+rr*rr):+qe.apply(this,arguments),sn||(rn*=-1),rr&&(rn=Zt(Kr/rr*Math.sin(hn))),Yt&&(pn=Zt(Kr/Yt*Math.sin(hn)))),rr){Hn=rr*Math.cos(Cr+rn),ra=rr*Math.sin(Cr+rn),fa=rr*Math.cos(Lr-rn),ea=rr*Math.sin(Lr-rn);var ii=Math.abs(Lr-Cr-2*rn)<=he?0:1;if(rn&&fu(Hn,ra,fa,ea)===sn^ii){var Fi=(Cr+Lr)/2;Hn=rr*Math.cos(Fi),ra=rr*Math.sin(Fi),fa=ea=null}}else Hn=ra=0;if(Yt){oa=Yt*Math.cos(Lr-pn),ca=Yt*Math.sin(Lr-pn),Ua=Yt*Math.cos(Cr+pn),Ea=Yt*Math.sin(Cr+pn);var ci=Math.abs(Cr-Lr+2*pn)<=he?0:1;if(pn&&fu(oa,ca,Ua,Ea)===1-sn^ci){var qn=(Cr+Lr)/2;oa=Yt*Math.cos(qn),ca=Yt*Math.sin(qn),Ua=Ea=null}}else oa=ca=0;if($r>je&&(Rr=Math.min(Math.abs(rr-Yt)/2,+Be.apply(this,arguments)))>.001){Vr=Yt0?0:1}function cu(ue,Ae,Be,qe,nt){var ct=ue[0]-Ae[0],Pt=ue[1]-Ae[1],St=(nt?qe:-qe)/Math.sqrt(ct*ct+Pt*Pt),Gt=St*Pt,Yt=-St*ct,rr=ue[0]+Gt,Cr=ue[1]+Yt,Lr=Ae[0]+Gt,$r=Ae[1]+Yt,sn=(rr+Lr)/2,Rr=(Cr+$r)/2,Vr=Lr-rr,Kr=$r-Cr,hn=Vr*Vr+Kr*Kr,pn=Be-qe,rn=rr*$r-Lr*Cr,Hn=(Kr<0?-1:1)*Math.sqrt(Math.max(0,pn*pn*hn-rn*rn)),ra=(rn*Kr-Vr*Hn)/hn,fa=(-rn*Vr-Kr*Hn)/hn,ea=(rn*Kr+Vr*Hn)/hn,oa=(-rn*Vr+Kr*Hn)/hn,ca=ra-sn,Ua=fa-Rr,Ea=ea-sn,Oa=oa-Rr;return ca*ca+Ua*Ua>Ea*Ea+Oa*Oa&&(ra=ea,fa=oa),[[ra-Gt,fa-Yt],[ra*Be/pn,fa*Be/pn]]}function Ys(){return!0}function hu(ue){var Ae=wa,Be=Wn,qe=Ys,nt=Gi,ct=nt.key,Pt=.7;function St(Gt){var Yt=[],rr=[],Cr=-1,Lr=Gt.length,$r,sn=tn(Ae),Rr=tn(Be);function Vr(){Yt.push("M",nt(ue(rr),Pt))}for(;++Cr1?ue.join("L"):ue+"Z"}function ds(ue){return ue.join("L")+"Z"}function xf(ue){for(var Ae=0,Be=ue.length,qe=ue[0],nt=[qe[0],",",qe[1]];++Ae1&&nt.push("H",qe[0]),nt.join("")}function fl(ue){for(var Ae=0,Be=ue.length,qe=ue[0],nt=[qe[0],",",qe[1]];++Ae1){St=Ae[1],ct=ue[Gt],Gt++,qe+="C"+(nt[0]+Pt[0])+","+(nt[1]+Pt[1])+","+(ct[0]-St[0])+","+(ct[1]-St[1])+","+ct[0]+","+ct[1];for(var Yt=2;Yt9&&(ct=Be*3/Math.sqrt(ct),Pt[St]=ct*qe,Pt[St+1]=ct*nt));for(St=-1;++St<=Gt;)ct=(ue[Math.min(Gt,St+1)][0]-ue[Math.max(0,St-1)][0])/(6*(1+Pt[St]*Pt[St])),Ae.push([ct||0,Pt[St]*ct||0]);return Ae}function Zu(ue){return ue.length<3?Gi(ue):ue[0]+po(ue,yu(ue))}s.svg.line.radial=function(){var ue=hu(sc);return ue.radius=ue.x,delete ue.x,ue.angle=ue.y,delete ue.y,ue};function sc(ue){for(var Ae,Be=-1,qe=ue.length,nt,ct;++Behe)+",1 "+Cr}function Yt(rr,Cr,Lr,$r){return"Q 0,0 "+$r}return ct.radius=function(rr){return arguments.length?(Be=tn(rr),ct):Be},ct.source=function(rr){return arguments.length?(ue=tn(rr),ct):ue},ct.target=function(rr){return arguments.length?(Ae=tn(rr),ct):Ae},ct.startAngle=function(rr){return arguments.length?(qe=tn(rr),ct):qe},ct.endAngle=function(rr){return arguments.length?(nt=tn(rr),ct):nt},ct};function Tf(ue){return ue.radius}s.svg.diagonal=function(){var ue=wf,Ae=cl,Be=xu;function qe(nt,ct){var Pt=ue.call(this,nt,ct),St=Ae.call(this,nt,ct),Gt=(Pt.y+St.y)/2,Yt=[Pt,{x:Pt.x,y:Gt},{x:St.x,y:Gt},St];return Yt=Yt.map(Be),"M"+Yt[0]+"C"+Yt[1]+" "+Yt[2]+" "+Yt[3]}return qe.source=function(nt){return arguments.length?(ue=tn(nt),qe):ue},qe.target=function(nt){return arguments.length?(Ae=tn(nt),qe):Ae},qe.projection=function(nt){return arguments.length?(Be=nt,qe):Be},qe};function xu(ue){return[ue.x,ue.y]}s.svg.diagonal.radial=function(){var ue=s.svg.diagonal(),Ae=xu,Be=ue.projection;return ue.projection=function(qe){return arguments.length?Be(lc(Ae=qe)):Ae},ue};function lc(ue){return function(){var Ae=ue.apply(this,arguments),Be=Ae[0],qe=Ae[1]-Ze;return[Be*Math.cos(qe),Be*Math.sin(qe)]}}s.svg.symbol=function(){var ue=it,Ae=Ke;function Be(qe,nt){return(bt.get(ue.call(this,qe,nt))||yt)(Ae.call(this,qe,nt))}return Be.type=function(qe){return arguments.length?(ue=tn(qe),Be):ue},Be.size=function(qe){return arguments.length?(Ae=tn(qe),Be):Ae},Be};function Ke(){return 64}function it(){return"circle"}function yt(ue){var Ae=Math.sqrt(ue/he);return"M0,"+Ae+"A"+Ae+","+Ae+" 0 1,1 0,"+-Ae+"A"+Ae+","+Ae+" 0 1,1 0,"+Ae+"Z"}var bt=s.map({circle:yt,cross:function(ue){var Ae=Math.sqrt(ue/5)/2;return"M"+-3*Ae+","+-Ae+"H"+-Ae+"V"+-3*Ae+"H"+Ae+"V"+-Ae+"H"+3*Ae+"V"+Ae+"H"+Ae+"V"+3*Ae+"H"+-Ae+"V"+Ae+"H"+-3*Ae+"Z"},diamond:function(ue){var Ae=Math.sqrt(ue/(2*It)),Be=Ae*It;return"M0,"+-Ae+"L"+Be+",0 0,"+Ae+" "+-Be+",0Z"},square:function(ue){var Ae=Math.sqrt(ue)/2;return"M"+-Ae+","+-Ae+"L"+Ae+","+-Ae+" "+Ae+","+Ae+" "+-Ae+","+Ae+"Z"},"triangle-down":function(ue){var Ae=Math.sqrt(ue/kt),Be=Ae*kt/2;return"M0,"+Be+"L"+Ae+","+-Be+" "+-Ae+","+-Be+"Z"},"triangle-up":function(ue){var Ae=Math.sqrt(ue/kt),Be=Ae*kt/2;return"M0,"+-Be+"L"+Ae+","+Be+" "+-Ae+","+Be+"Z"}});s.svg.symbolTypes=bt.keys();var kt=Math.sqrt(3),It=Math.tan(30*st);j.transition=function(ue){for(var Ae=Ir||++Sr,Be=_n(ue),qe=[],nt,ct,Pt=Ur||{time:Date.now(),ease:lf,delay:0,duration:250},St=-1,Gt=this.length;++St0;)Cr[--hn].call(ue,Kr);if(Vr>=1)return Pt.event&&Pt.event.end.call(ue,ue.__data__,Ae),--ct.count?delete ct[qe]:delete ue[Be],1}Pt||(St=nt.time,Gt=Pn(Lr,0,St),Pt=ct[qe]={tween:new C,time:St,timer:Gt,delay:nt.delay,duration:nt.duration,ease:nt.ease,index:Ae},nt=null,++ct.count)}s.svg.axis=function(){var ue=s.scale.linear(),Ae=Kn,Be=6,qe=6,nt=3,ct=[10],Pt=null,St;function Gt(Yt){Yt.each(function(){var rr=s.select(this),Cr=this.__chart__||ue,Lr=this.__chart__=ue.copy(),$r=Pt??(Lr.ticks?Lr.ticks.apply(Lr,ct):Lr.domain()),sn=St??(Lr.tickFormat?Lr.tickFormat.apply(Lr,ct):O),Rr=rr.selectAll(".tick").data($r,Lr),Vr=Rr.enter().insert("g",".domain").attr("class","tick").style("opacity",je),Kr=s.transition(Rr.exit()).style("opacity",je).remove(),hn=s.transition(Rr.order()).style("opacity",1),pn=Math.max(Be,0)+nt,rn,Hn=Ol(Lr),ra=rr.selectAll(".domain").data([0]),fa=(ra.enter().append("path").attr("class","domain"),s.transition(ra));Vr.append("line"),Vr.append("text");var ea=Vr.select("line"),oa=hn.select("line"),ca=Rr.select("text").text(sn),Ua=Vr.select("text"),Ea=hn.select("text"),Oa=Ae==="top"||Ae==="left"?-1:1,ii,Fi,ci,qn;if(Ae==="bottom"||Ae==="top"?(rn=Da,ii="x",ci="y",Fi="x2",qn="y2",ca.attr("dy",Oa<0?"0em":".71em").style("text-anchor","middle"),fa.attr("d","M"+Hn[0]+","+Oa*qe+"V0H"+Hn[1]+"V"+Oa*qe)):(rn=ka,ii="y",ci="x",Fi="y2",qn="x2",ca.attr("dy",".32em").style("text-anchor",Oa<0?"end":"start"),fa.attr("d","M"+Oa*qe+","+Hn[0]+"H0V"+Hn[1]+"H"+Oa*qe)),ea.attr(qn,Oa*Be),Ua.attr(ci,Oa*pn),oa.attr(Fi,0).attr(qn,Oa*Be),Ea.attr(ii,0).attr(ci,Oa*pn),Lr.rangeBand){var Ha=Lr,Sa=Ha.rangeBand()/2;Cr=Lr=function(Ja){return Ha(Ja)+Sa}}else Cr.rangeBand?Cr=Lr:Kr.call(rn,Lr,Cr);Vr.call(rn,Cr,Lr),hn.call(rn,Lr,Lr)})}return Gt.scale=function(Yt){return arguments.length?(ue=Yt,Gt):ue},Gt.orient=function(Yt){return arguments.length?(Ae=Yt in Ra?Yt+"":Kn,Gt):Ae},Gt.ticks=function(){return arguments.length?(ct=S(arguments),Gt):ct},Gt.tickValues=function(Yt){return arguments.length?(Pt=Yt,Gt):Pt},Gt.tickFormat=function(Yt){return arguments.length?(St=Yt,Gt):St},Gt.tickSize=function(Yt){var rr=arguments.length;return rr?(Be=+Yt,qe=+arguments[rr-1],Gt):Be},Gt.innerTickSize=function(Yt){return arguments.length?(Be=+Yt,Gt):Be},Gt.outerTickSize=function(Yt){return arguments.length?(qe=+Yt,Gt):qe},Gt.tickPadding=function(Yt){return arguments.length?(nt=+Yt,Gt):nt},Gt.tickSubdivide=function(){return arguments.length&&Gt},Gt};var Kn="bottom",Ra={top:1,right:1,bottom:1,left:1};function Da(ue,Ae,Be){ue.attr("transform",function(qe){var nt=Ae(qe);return"translate("+(isFinite(nt)?nt:Be(qe))+",0)"})}function ka(ue,Ae,Be){ue.attr("transform",function(qe){var nt=Ae(qe);return"translate(0,"+(isFinite(nt)?nt:Be(qe))+")"})}s.svg.brush=function(){var ue=$(rr,"brushstart","brush","brushend"),Ae=null,Be=null,qe=[0,0],nt=[0,0],ct,Pt,St=!0,Gt=!0,Yt=Ka[0];function rr(Rr){Rr.each(function(){var Vr=s.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",sn).on("touchstart.brush",sn),Kr=Vr.selectAll(".background").data([0]);Kr.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Vr.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var hn=Vr.selectAll(".resize").data(Yt,O);hn.exit().remove(),hn.enter().append("g").attr("class",function(ra){return"resize "+ra}).style("cursor",function(ra){return Na[ra]}).append("rect").attr("x",function(ra){return/[ew]$/.test(ra)?-3:null}).attr("y",function(ra){return/^[ns]/.test(ra)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),hn.style("display",rr.empty()?"none":null);var pn=s.transition(Vr),rn=s.transition(Kr),Hn;Ae&&(Hn=Ol(Ae),rn.attr("x",Hn[0]).attr("width",Hn[1]-Hn[0]),Lr(pn)),Be&&(Hn=Ol(Be),rn.attr("y",Hn[0]).attr("height",Hn[1]-Hn[0]),$r(pn)),Cr(pn)})}rr.event=function(Rr){Rr.each(function(){var Vr=ue.of(this,arguments),Kr={x:qe,y:nt,i:ct,j:Pt},hn=this.__chart__||Kr;this.__chart__=Kr,Ir?s.select(this).transition().each("start.brush",function(){ct=hn.i,Pt=hn.j,qe=hn.x,nt=hn.y,Vr({type:"brushstart"})}).tween("brush:brush",function(){var pn=zo(qe,Kr.x),rn=zo(nt,Kr.y);return ct=Pt=null,function(Hn){qe=Kr.x=pn(Hn),nt=Kr.y=rn(Hn),Vr({type:"brush",mode:"resize"})}}).each("end.brush",function(){ct=Kr.i,Pt=Kr.j,Vr({type:"brush",mode:"resize"}),Vr({type:"brushend"})}):(Vr({type:"brushstart"}),Vr({type:"brush",mode:"resize"}),Vr({type:"brushend"}))})};function Cr(Rr){Rr.selectAll(".resize").attr("transform",function(Vr){return"translate("+qe[+/e$/.test(Vr)]+","+nt[+/^s/.test(Vr)]+")"})}function Lr(Rr){Rr.select(".extent").attr("x",qe[0]),Rr.selectAll(".extent,.n>rect,.s>rect").attr("width",qe[1]-qe[0])}function $r(Rr){Rr.select(".extent").attr("y",nt[0]),Rr.selectAll(".extent,.e>rect,.w>rect").attr("height",nt[1]-nt[0])}function sn(){var Rr=this,Vr=s.select(s.event.target),Kr=ue.of(Rr,arguments),hn=s.select(Rr),pn=Vr.datum(),rn=!/^(n|s)$/.test(pn)&&Ae,Hn=!/^(e|w)$/.test(pn)&&Be,ra=Vr.classed("extent"),fa=We(Rr),ea,oa=s.mouse(Rr),ca,Ua=s.select(r(Rr)).on("keydown.brush",ii).on("keyup.brush",Fi);if(s.event.changedTouches?Ua.on("touchmove.brush",ci).on("touchend.brush",Ha):Ua.on("mousemove.brush",ci).on("mouseup.brush",Ha),hn.interrupt().selectAll("*").interrupt(),ra)oa[0]=qe[0]-oa[0],oa[1]=nt[0]-oa[1];else if(pn){var Ea=+/w$/.test(pn),Oa=+/^n/.test(pn);ca=[qe[1-Ea]-oa[0],nt[1-Oa]-oa[1]],oa[0]=qe[Ea],oa[1]=nt[Oa]}else s.event.altKey&&(ea=oa.slice());hn.style("pointer-events","none").selectAll(".resize").style("display",null),s.select("body").style("cursor",Vr.style("cursor")),Kr({type:"brushstart"}),ci();function ii(){s.event.keyCode==32&&(ra||(ea=null,oa[0]-=qe[1],oa[1]-=nt[1],ra=2),ne())}function Fi(){s.event.keyCode==32&&ra==2&&(oa[0]+=qe[1],oa[1]+=nt[1],ra=0,ne())}function ci(){var Sa=s.mouse(Rr),Ja=!1;ca&&(Sa[0]+=ca[0],Sa[1]+=ca[1]),ra||(s.event.altKey?(ea||(ea=[(qe[0]+qe[1])/2,(nt[0]+nt[1])/2]),oa[0]=qe[+(Sa[0]"u"&&(R=1e-6);var U,ae,ve,we,Ee;for(ve=_,Ee=0;Ee<8;Ee++){if(we=this.sampleCurveX(ve)-_,Math.abs(we)ae)return ae;for(;Uwe?U=ve:ae=ve,ve=(ae-U)*.5+U}return ve},p.prototype.solve=function(_,R){return this.sampleCurveY(this.solveCurveX(_,R))};var r=t;function t(_,R){this.x=_,this.y=R}t.prototype={clone:function(){return new t(this.x,this.y)},add:function(_){return this.clone()._add(_)},sub:function(_){return this.clone()._sub(_)},multByPoint:function(_){return this.clone()._multByPoint(_)},divByPoint:function(_){return this.clone()._divByPoint(_)},mult:function(_){return this.clone()._mult(_)},div:function(_){return this.clone()._div(_)},rotate:function(_){return this.clone()._rotate(_)},rotateAround:function(_,R){return this.clone()._rotateAround(_,R)},matMult:function(_){return this.clone()._matMult(_)},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(_){return this.x===_.x&&this.y===_.y},dist:function(_){return Math.sqrt(this.distSqr(_))},distSqr:function(_){var R=_.x-this.x,U=_.y-this.y;return R*R+U*U},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(_){return Math.atan2(this.y-_.y,this.x-_.x)},angleWith:function(_){return this.angleWithSep(_.x,_.y)},angleWithSep:function(_,R){return Math.atan2(this.x*R-this.y*_,this.x*_+this.y*R)},_matMult:function(_){var R=_[0]*this.x+_[1]*this.y,U=_[2]*this.x+_[3]*this.y;return this.x=R,this.y=U,this},_add:function(_){return this.x+=_.x,this.y+=_.y,this},_sub:function(_){return this.x-=_.x,this.y-=_.y,this},_mult:function(_){return this.x*=_,this.y*=_,this},_div:function(_){return this.x/=_,this.y/=_,this},_multByPoint:function(_){return this.x*=_.x,this.y*=_.y,this},_divByPoint:function(_){return this.x/=_.x,this.y/=_.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var _=this.y;return this.y=this.x,this.x=-_,this},_rotate:function(_){var R=Math.cos(_),U=Math.sin(_),ae=R*this.x-U*this.y,ve=U*this.x+R*this.y;return this.x=ae,this.y=ve,this},_rotateAround:function(_,R){var U=Math.cos(_),ae=Math.sin(_),ve=R.x+U*(this.x-R.x)-ae*(this.y-R.y),we=R.y+ae*(this.x-R.x)+U*(this.y-R.y);return this.x=ve,this.y=we,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},t.convert=function(_){return _ instanceof t?_:Array.isArray(_)?new t(_[0],_[1]):_};var a=typeof self<"u"?self:{};function n(_,R){if(Array.isArray(_)){if(!Array.isArray(R)||_.length!==R.length)return!1;for(var U=0;U<_.length;U++)if(!n(_[U],R[U]))return!1;return!0}if(typeof _=="object"&&_!==null&&R!==null){if(typeof R!="object")return!1;var ae=Object.keys(_);if(ae.length!==Object.keys(R).length)return!1;for(var ve in _)if(!n(_[ve],R[ve]))return!1;return!0}return _===R}var f=Math.pow(2,53)-1;function u(_){if(_<=0)return 0;if(_>=1)return 1;var R=_*_,U=R*_;return 4*(_<.5?U:3*(_-R)+U-.75)}function l(_,R,U,ae){var ve=new v(_,R,U,ae);return function(we){return ve.solve(we)}}var g=l(.25,.1,.25,1);function h(_,R,U){return Math.min(U,Math.max(R,_))}function T(_,R,U){var ae=U-R,ve=((_-R)%ae+ae)%ae+R;return ve===R?U:ve}function c(_,R,U){if(!_.length)return U(null,[]);var ae=_.length,ve=new Array(_.length),we=null;_.forEach(function(Ee,Je){R(Ee,function(dt,Mt){dt&&(we=dt),ve[Je]=Mt,--ae===0&&U(we,ve)})})}function i(_){var R=[];for(var U in _)R.push(_[U]);return R}function d(_,R){var U=[];for(var ae in _)ae in R||U.push(ae);return U}function x(_){for(var R=[],U=arguments.length-1;U-- >0;)R[U]=arguments[U+1];for(var ae=0,ve=R;ae>R/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,_)}return _()}function A(_){return _<=1?1:Math.pow(2,Math.ceil(Math.log(_)/Math.LN2))}function o(_){return _?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_):!1}function M(_,R){_.forEach(function(U){R[U]&&(R[U]=R[U].bind(R))})}function b(_,R){return _.indexOf(R,_.length-R.length)!==-1}function I(_,R,U){var ae={};for(var ve in _)ae[ve]=R.call(U||this,_[ve],ve,_);return ae}function D(_,R,U){var ae={};for(var ve in _)R.call(U||this,_[ve],ve,_)&&(ae[ve]=_[ve]);return ae}function N(_){return Array.isArray(_)?_.map(N):typeof _=="object"&&_?I(_,N):_}function k(_,R){for(var U=0;U<_.length;U++)if(R.indexOf(_[U])>=0)return!0;return!1}var O={};function F(_){O[_]||(typeof console<"u"&&console.warn(_),O[_]=!0)}function z(_,R,U){return(U.y-_.y)*(R.x-_.x)>(R.y-_.y)*(U.x-_.x)}function B(_){for(var R=0,U=0,ae=_.length,ve=ae-1,we=void 0,Ee=void 0;U@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,U={};if(_.replace(R,function(ve,we,Ee,Je){var dt=Ee||Je;return U[we]=dt?dt.toLowerCase():!0,""}),U["max-age"]){var ae=parseInt(U["max-age"],10);isNaN(ae)?delete U["max-age"]:U["max-age"]=ae}return U}var ne=null;function le(_){if(ne==null){var R=_.navigator?_.navigator.userAgent:null;ne=!!_.safari||!!(R&&(/\b(iPad|iPhone|iPod)\b/.test(R)||R.match("Safari")&&!R.match("Chrome")))}return ne}function $(_){try{var R=a[_];return R.setItem("_mapbox_test_",1),R.removeItem("_mapbox_test_"),!0}catch{return!1}}function Z(_){return a.btoa(encodeURIComponent(_).replace(/%([0-9A-F]{2})/g,function(R,U){return String.fromCharCode(+("0x"+U))}))}function ie(_){return decodeURIComponent(a.atob(_).split("").map(function(R){return"%"+("00"+R.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var X=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),Q=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,oe=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,Y,j,se={now:X,frame:function(R){var U=Q(R);return{cancel:function(){return oe(U)}}},getImageData:function(R,U){U===void 0&&(U=0);var ae=a.document.createElement("canvas"),ve=ae.getContext("2d");if(!ve)throw new Error("failed to create canvas 2d context");return ae.width=R.width,ae.height=R.height,ve.drawImage(R,0,0,R.width,R.height),ve.getImageData(-U,-U,R.width+2*U,R.height+2*U)},resolveURL:function(R){return Y||(Y=a.document.createElement("a")),Y.href=R,Y.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return a.matchMedia?(j==null&&(j=a.matchMedia("(prefers-reduced-motion: reduce)")),j.matches):!1}},te={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"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},fe={supported:!1,testSupport:De},ge,be=!1,xe,_e=!1;a.document&&(xe=a.document.createElement("img"),xe.onload=function(){ge&&Fe(ge),ge=null,_e=!0},xe.onerror=function(){be=!0,ge=null},xe.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function De(_){be||!xe||(_e?Fe(_):ge=_)}function Fe(_){var R=_.createTexture();_.bindTexture(_.TEXTURE_2D,R);try{if(_.texImage2D(_.TEXTURE_2D,0,_.RGBA,_.RGBA,_.UNSIGNED_BYTE,xe),_.isContextLost())return;fe.supported=!0}catch{}_.deleteTexture(R),be=!0}var Te="01";function Re(){for(var _="1",R="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",U="",ae=0;ae<10;ae++)U+=R[Math.floor(Math.random()*62)];var ve=12*60*60*1e3,we=[_,Te,U].join(""),Ee=Date.now()+ve;return{token:we,tokenExpiresAt:Ee}}var Se=function(R,U){this._transformRequestFn=R,this._customAccessToken=U,this._createSkuToken()};Se.prototype._createSkuToken=function(){var R=Re();this._skuToken=R.token,this._skuTokenExpiresAt=R.tokenExpiresAt},Se.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Se.prototype.transformRequest=function(R,U){return this._transformRequestFn?this._transformRequestFn(R,U)||{url:R}:{url:R}},Se.prototype.normalizeStyleURL=function(R,U){if(!Ie(R))return R;var ae=$e(R);return ae.path="/styles/v1"+ae.path,this._makeAPIURL(ae,this._customAccessToken||U)},Se.prototype.normalizeGlyphsURL=function(R,U){if(!Ie(R))return R;var ae=$e(R);return ae.path="/fonts/v1"+ae.path,this._makeAPIURL(ae,this._customAccessToken||U)},Se.prototype.normalizeSourceURL=function(R,U){if(!Ie(R))return R;var ae=$e(R);return ae.path="/v4/"+ae.authority+".json",ae.params.push("secure"),this._makeAPIURL(ae,this._customAccessToken||U)},Se.prototype.normalizeSpriteURL=function(R,U,ae,ve){var we=$e(R);return Ie(R)?(we.path="/styles/v1"+we.path+"/sprite"+U+ae,this._makeAPIURL(we,this._customAccessToken||ve)):(we.path+=""+U+ae,ht(we))},Se.prototype.normalizeTileURL=function(R,U){if(this._isSkuTokenExpired()&&this._createSkuToken(),R&&!Ie(R))return R;var ae=$e(R),ve=/(\.(png|jpg)\d*)(?=$)/,we=/^.+\/v4\//,Ee=se.devicePixelRatio>=2||U===512?"@2x":"",Je=fe.supported?".webp":"$1";ae.path=ae.path.replace(ve,""+Ee+Je),ae.path=ae.path.replace(we,"/"),ae.path="/v4"+ae.path;var dt=this._customAccessToken||ot(ae.params)||te.ACCESS_TOKEN;return te.REQUIRE_ACCESS_TOKEN&&dt&&this._skuToken&&ae.params.push("sku="+this._skuToken),this._makeAPIURL(ae,dt)},Se.prototype.canonicalizeTileURL=function(R,U){var ae="/v4/",ve=/\.[\w]+$/,we=$e(R);if(!we.path.match(/(^\/v4\/)/)||!we.path.match(ve))return R;var Ee="mapbox://tiles/";Ee+=we.path.replace(ae,"");var Je=we.params;return U&&(Je=Je.filter(function(dt){return!dt.match(/^access_token=/)})),Je.length&&(Ee+="?"+Je.join("&")),Ee},Se.prototype.canonicalizeTileset=function(R,U){for(var ae=U?Ie(U):!1,ve=[],we=0,Ee=R.tiles||[];we=0&&R.params.splice(we,1)}if(ve.path!=="/"&&(R.path=""+ve.path+R.path),!te.REQUIRE_ACCESS_TOKEN)return ht(R);if(U=U||te.ACCESS_TOKEN,!U)throw new Error("An API access token is required to use Mapbox GL. "+ae);if(U[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ae);return R.params=R.params.filter(function(Ee){return Ee.indexOf("access_token")===-1}),R.params.push("access_token="+U),ht(R)};function Ie(_){return _.indexOf("mapbox:")===0}var Me=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ve(_){return Me.test(_)}function et(_){return _.indexOf("sku=")>0&&Ve(_)}function ot(_){for(var R=0,U=_;R=1&&a.localStorage.setItem(U,JSON.stringify(this.eventData))}catch{F("Unable to write to LocalStorage")}},wt.prototype.processRequests=function(R){},wt.prototype.postEvent=function(R,U,ae,ve){var we=this;if(te.EVENTS_URL){var Ee=$e(te.EVENTS_URL);Ee.params.push("access_token="+(ve||te.ACCESS_TOKEN||""));var Je={event:this.type,created:new Date(R).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:S,skuId:Te,userId:this.anonId},dt=U?x(Je,U):Je,Mt={url:ht(Ee),headers:{"Content-Type":"text/plain"},body:JSON.stringify([dt])};this.pendingRequest=Ut(Mt,function(_t){we.pendingRequest=null,ae(_t),we.saveEventData(),we.processRequests(ve)})}},wt.prototype.queueRequest=function(R,U){this.queue.push(R),this.processRequests(U)};var Ct=function(_){function R(){_.call(this,"map.load"),this.success={},this.skuToken=""}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.postMapLoadEvent=function(ae,ve,we,Ee){this.skuToken=we,(te.EVENTS_URL&&Ee||te.ACCESS_TOKEN&&Array.isArray(ae)&&ae.some(function(Je){return Ie(Je)||Ve(Je)}))&&this.queueRequest({id:ve,timestamp:Date.now()},Ee)},R.prototype.processRequests=function(ae){var ve=this;if(!(this.pendingRequest||this.queue.length===0)){var we=this.queue.shift(),Ee=we.id,Je=we.timestamp;Ee&&this.success[Ee]||(this.anonId||this.fetchEventData(),o(this.anonId)||(this.anonId=E()),this.postEvent(Je,{skuToken:this.skuToken},function(dt){dt||Ee&&(ve.success[Ee]=!0)},ae))}},R}(wt),rt=function(_){function R(U){_.call(this,"appUserTurnstile"),this._customAccessToken=U}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.postTurnstileEvent=function(ae,ve){te.EVENTS_URL&&te.ACCESS_TOKEN&&Array.isArray(ae)&&ae.some(function(we){return Ie(we)||Ve(we)})&&this.queueRequest(Date.now(),ve)},R.prototype.processRequests=function(ae){var ve=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var we=pt(te.ACCESS_TOKEN),Ee=we?we.u:te.ACCESS_TOKEN,Je=Ee!==this.eventData.tokenU;o(this.anonId)||(this.anonId=E(),Je=!0);var dt=this.queue.shift();if(this.eventData.lastSuccess){var Mt=new Date(this.eventData.lastSuccess),_t=new Date(dt),jt=(dt-this.eventData.lastSuccess)/(24*60*60*1e3);Je=Je||jt>=1||jt<-1||Mt.getDate()!==_t.getDate()}else Je=!0;if(!Je)return this.processRequests();this.postEvent(dt,{"enabled.telemetry":!1},function(nr){nr||(ve.eventData.lastSuccess=dt,ve.eventData.tokenU=Ee)},ae)}},R}(wt),ze=new rt,He=ze.postTurnstileEvent.bind(ze),We=new Ct,Ge=We.postMapLoadEvent.bind(We),Le="mapbox-tiles",Pe=500,je=50,Ce=1e3*60*7,he;function me(){a.caches&&!he&&(he=a.caches.open(Le))}var Ne;function Ze(_,R){if(Ne===void 0)try{new Response(new ReadableStream),Ne=!0}catch{Ne=!1}Ne?R(_.body):_.blob().then(R)}function st(_,R,U){if(me(),!!he){var ae={status:R.status,statusText:R.statusText,headers:new a.Headers};R.headers.forEach(function(Ee,Je){return ae.headers.set(Je,Ee)});var ve=re(R.headers.get("Cache-Control")||"");if(!ve["no-store"]){ve["max-age"]&&ae.headers.set("Expires",new Date(U+ve["max-age"]*1e3).toUTCString());var we=new Date(ae.headers.get("Expires")).getTime()-U;weDate.now()&&!U["no-cache"]}var Tt=1/0;function Rt(_){Tt++,Tt>je&&(_.getActor().send("enforceCacheSizeLimit",Pe),Tt=0)}function Xt(_){me(),he&&he.then(function(R){R.keys().then(function(U){for(var ae=0;ae=200&&U.status<300||U.status===0)&&U.response!==null){var ve=U.response;if(_.type==="json")try{ve=JSON.parse(U.response)}catch(we){return R(we)}R(null,ve,U.getResponseHeader("Cache-Control"),U.getResponseHeader("Expires"))}else R(new Ot(U.statusText,U.status,_.url))},U.send(_.body),{cancel:function(){return U.abort()}}}var Et=function(_,R){if(!at(_.url)){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return xt(_,R);if(J()&&self.worker&&self.worker.actor){var U=!0;return self.worker.actor.send("getResource",_,R,void 0,U)}}return At(_,R)},Vt=function(_,R){return Et(x(_,{type:"json"}),R)},Bt=function(_,R){return Et(x(_,{type:"arrayBuffer"}),R)},Ut=function(_,R){return Et(x(_,{method:"POST"}),R)};function Jt(_){var R=a.document.createElement("a");return R.href=_,R.protocol===a.document.location.protocol&&R.host===a.document.location.host}var ur="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function fr(_,R,U,ae){var ve=new a.Image,we=a.URL;ve.onload=function(){R(null,ve),we.revokeObjectURL(ve.src),ve.onload=null,a.requestAnimationFrame(function(){ve.src=ur})},ve.onerror=function(){return R(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var Ee=new a.Blob([new Uint8Array(_)],{type:"image/png"});ve.cacheControl=U,ve.expires=ae,ve.src=_.byteLength?we.createObjectURL(Ee):ur}function dr(_,R){var U=new a.Blob([new Uint8Array(_)],{type:"image/png"});a.createImageBitmap(U).then(function(ae){R(null,ae)}).catch(function(ae){R(new Error("Could not load image because of "+ae.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Ye,Ue,zt=function(){Ye=[],Ue=0};zt();var Dt=function(_,R){if(fe.supported&&(_.headers||(_.headers={}),_.headers.accept="image/webp,*/*"),Ue>=te.MAX_PARALLEL_IMAGE_REQUESTS){var U={requestParameters:_,callback:R,cancelled:!1,cancel:function(){this.cancelled=!0}};return Ye.push(U),U}Ue++;var ae=!1,ve=function(){if(!ae)for(ae=!0,Ue--;Ye.length&&Ue0||this._oneTimeListeners&&this._oneTimeListeners[R]&&this._oneTimeListeners[R].length>0||this._eventedParent&&this._eventedParent.listens(R)},ir.prototype.setEventedParent=function(R,U){return this._eventedParent=R,this._eventedParentData=U,this};var hr=8,xr={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"}},vr={"*":{type:"source"}},Hr=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],_r={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:"*"}},Dr={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:"*"}},an={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:"*"}},tn={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"}},Sn={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"}}},Tn={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"}}},Tr={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"}},zr=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Yr={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Or={"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"}},ln={"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"}},fn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Mn={"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"}},Pn={"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"}},Vn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ia={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ya={type:"array",value:"*"},wa={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Wn={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Qn={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},mr={type:"array",value:"*",minimum:1},en={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}},Jr=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],vn={"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"}},On={"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"}},bn={"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"}},An={"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"}},Fn={"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"}},$n={"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"}},ha={"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"}},Ia={"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"}},Mr={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Fr={"*":{type:"string"}},Ar={$version:hr,$root:xr,sources:vr,source:Hr,source_vector:_r,source_raster:Dr,source_raster_dem:an,source_geojson:tn,source_video:Sn,source_image:Tn,layer:Tr,layout:zr,layout_background:Yr,layout_fill:Or,layout_circle:ln,layout_heatmap:fn,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:Mn,layout_symbol:Pn,layout_raster:Vn,layout_hillshade:ia,filter:ya,filter_operator:wa,geometry_type:Wn,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:Qn,expression:mr,light:en,paint:Jr,paint_fill:vn,"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:On,paint_circle:bn,paint_heatmap:An,paint_symbol:Fn,paint_raster:$n,paint_hillshade:ha,paint_background:Ia,transition:Mr,"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:Fr},Nr=function(R,U,ae,ve){this.message=(R?R+": ":"")+ae,ve&&(this.identifier=ve),U!=null&&U.__line__&&(this.line=U.__line__)};function mn(_){var R=_.key,U=_.value;return U?[new Nr(R,U,"constants have been deprecated as of v8")]:[]}function Rn(_){for(var R=[],U=arguments.length-1;U-- >0;)R[U]=arguments[U+1];for(var ae=0,ve=R;ae":_.itemType.kind==="value"?"array":"array<"+R+">"}else return _.kind}var ko=[Gr,qr,wn,zn,En,ga,Un,gi(Nn),_a];function Co(_,R){if(R.kind==="error")return null;if(_.kind==="array"){if(R.kind==="array"&&(R.N===0&&R.itemType.kind==="value"||!Co(_.itemType,R.itemType))&&(typeof _.N!="number"||_.N===R.N))return null}else{if(_.kind===R.kind)return null;if(_.kind==="value")for(var U=0,ae=ko;U255?255:Mt}function ve(Mt){return Mt<0?0:Mt>1?1:Mt}function we(Mt){return Mt[Mt.length-1]==="%"?ae(parseFloat(Mt)/100*255):ae(parseInt(Mt))}function Ee(Mt){return Mt[Mt.length-1]==="%"?ve(parseFloat(Mt)/100):ve(parseFloat(Mt))}function Je(Mt,_t,jt){return jt<0?jt+=1:jt>1&&(jt-=1),jt*6<1?Mt+(_t-Mt)*jt*6:jt*2<1?_t:jt*3<2?Mt+(_t-Mt)*(2/3-jt)*6:Mt}function dt(Mt){var _t=Mt.replace(/ /g,"").toLowerCase();if(_t in U)return U[_t].slice();if(_t[0]==="#"){if(_t.length===4){var jt=parseInt(_t.substr(1),16);return jt>=0&&jt<=4095?[(jt&3840)>>4|(jt&3840)>>8,jt&240|(jt&240)>>4,jt&15|(jt&15)<<4,1]:null}else if(_t.length===7){var jt=parseInt(_t.substr(1),16);return jt>=0&&jt<=16777215?[(jt&16711680)>>16,(jt&65280)>>8,jt&255,1]:null}return null}var nr=_t.indexOf("("),er=_t.indexOf(")");if(nr!==-1&&er+1===_t.length){var br=_t.substr(0,nr),Br=_t.substr(nr+1,er-(nr+1)).split(","),cn=1;switch(br){case"rgba":if(Br.length!==4)return null;cn=Ee(Br.pop());case"rgb":return Br.length!==3?null:[we(Br[0]),we(Br[1]),we(Br[2]),cn];case"hsla":if(Br.length!==4)return null;cn=Ee(Br.pop());case"hsl":if(Br.length!==3)return null;var nn=(parseFloat(Br[0])%360+360)%360/360,Ln=Ee(Br[1]),yn=Ee(Br[2]),Cn=yn<=.5?yn*(Ln+1):yn+Ln-yn*Ln,kn=yn*2-Cn;return[ae(Je(kn,Cn,nn+1/3)*255),ae(Je(kn,Cn,nn)*255),ae(Je(kn,Cn,nn-1/3)*255),cn];default:return null}}return null}try{R.parseCSSColor=dt}catch{}}),Vf=af.parseCSSColor,ti=function(R,U,ae,ve){ve===void 0&&(ve=1),this.r=R,this.g=U,this.b=ae,this.a=ve};ti.parse=function(R){if(R){if(R instanceof ti)return R;if(typeof R=="string"){var U=Vf(R);if(U)return new ti(U[0]/255*U[3],U[1]/255*U[3],U[2]/255*U[3],U[3])}}},ti.prototype.toString=function(){var R=this.toArray(),U=R[0],ae=R[1],ve=R[2],we=R[3];return"rgba("+Math.round(U)+","+Math.round(ae)+","+Math.round(ve)+","+we+")"},ti.prototype.toArray=function(){var R=this,U=R.r,ae=R.g,ve=R.b,we=R.a;return we===0?[0,0,0,0]:[U*255/we,ae*255/we,ve*255/we,we]},ti.black=new ti(0,0,0,1),ti.white=new ti(1,1,1,1),ti.transparent=new ti(0,0,0,0),ti.red=new ti(1,0,0,1);var eu=function(R,U,ae){R?this.sensitivity=U?"variant":"case":this.sensitivity=U?"accent":"base",this.locale=ae,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};eu.prototype.compare=function(R,U){return this.collator.compare(R,U)},eu.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var of=function(R,U,ae,ve,we){this.text=R,this.image=U,this.scale=ae,this.fontStack=ve,this.textColor=we},Ki=function(R){this.sections=R};Ki.fromString=function(R){return new Ki([new of(R,null,null,null,null)])},Ki.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(R){return R.text.length!==0||R.image&&R.image.name.length!==0})},Ki.factory=function(R){return R instanceof Ki?R:Ki.fromString(R)},Ki.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(R){return R.text}).join("")},Ki.prototype.serialize=function(){for(var R=["format"],U=0,ae=this.sections;U=0&&_<=255&&typeof R=="number"&&R>=0&&R<=255&&typeof U=="number"&&U>=0&&U<=255)){var ve=typeof ae=="number"?[_,R,U,ae]:[_,R,U];return"Invalid rgba value ["+ve.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof ae>"u"||typeof ae=="number"&&ae>=0&&ae<=1?null:"Invalid rgba value ["+[_,R,U,ae].join(", ")+"]: 'a' must be between 0 and 1."}function Iu(_){if(_===null)return!0;if(typeof _=="string")return!0;if(typeof _=="boolean")return!0;if(typeof _=="number")return!0;if(_ instanceof ti)return!0;if(_ instanceof eu)return!0;if(_ instanceof Ki)return!0;if(_ instanceof bo)return!0;if(Array.isArray(_)){for(var R=0,U=_;R2){var Je=R[1];if(typeof Je!="string"||!(Je in Cl)||Je==="object")return U.error('The item type argument of "array" must be one of string, number, boolean',1);Ee=Cl[Je],ae++}else Ee=Nn;var dt;if(R.length>3){if(R[2]!==null&&(typeof R[2]!="number"||R[2]<0||R[2]!==Math.floor(R[2])))return U.error('The length argument to "array" must be a positive integer literal',2);dt=R[2],ae++}ve=gi(Ee,dt)}else ve=Cl[we];for(var Mt=[];ae1)&&U.push(ve)}}return U.concat(this.args.map(function(we){return we.serialize()}))};var no=function(R){this.type=ga,this.sections=R};no.parse=function(R,U){if(R.length<2)return U.error("Expected at least one argument.");var ae=R[1];if(!Array.isArray(ae)&&typeof ae=="object")return U.error("First argument must be an image or text section.");for(var ve=[],we=!1,Ee=1;Ee<=R.length-1;++Ee){var Je=R[Ee];if(we&&typeof Je=="object"&&!Array.isArray(Je)){we=!1;var dt=null;if(Je["font-scale"]&&(dt=U.parse(Je["font-scale"],1,qr),!dt))return null;var Mt=null;if(Je["text-font"]&&(Mt=U.parse(Je["text-font"],1,gi(wn)),!Mt))return null;var _t=null;if(Je["text-color"]&&(_t=U.parse(Je["text-color"],1,En),!_t))return null;var jt=ve[ve.length-1];jt.scale=dt,jt.font=Mt,jt.textColor=_t}else{var nr=U.parse(R[Ee],1,Nn);if(!nr)return null;var er=nr.type.kind;if(er!=="string"&&er!=="value"&&er!=="null"&&er!=="resolvedImage")return U.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");we=!0,ve.push({content:nr,scale:null,font:null,textColor:null})}}return new no(ve)},no.prototype.evaluate=function(R){var U=function(ae){var ve=ae.content.evaluate(R);return Ii(ve)===_a?new of("",ve,null,null,null):new of(El(ve),null,ae.scale?ae.scale.evaluate(R):null,ae.font?ae.font.evaluate(R).join(","):null,ae.textColor?ae.textColor.evaluate(R):null)};return new Ki(this.sections.map(U))},no.prototype.eachChild=function(R){for(var U=0,ae=this.sections;U-1),ae},zo.prototype.eachChild=function(R){R(this.input)},zo.prototype.outputDefined=function(){return!1},zo.prototype.serialize=function(){return["image",this.input.serialize()]};var Hf={"to-boolean":zn,"to-color":En,"to-number":qr,"to-string":wn},Lo=function(R,U){this.type=R,this.args=U};Lo.parse=function(R,U){if(R.length<2)return U.error("Expected at least one argument.");var ae=R[0];if((ae==="to-boolean"||ae==="to-string")&&R.length!==2)return U.error("Expected one argument.");for(var ve=Hf[ae],we=[],Ee=1;Ee4?ae="Invalid rbga value "+JSON.stringify(U)+": expected an array containing either three or four numeric values.":ae=Ml(U[0],U[1],U[2],U[3]),!ae))return new ti(U[0]/255,U[1]/255,U[2]/255,U[3])}throw new Hi(ae||"Could not parse color from value '"+(typeof U=="string"?U:String(JSON.stringify(U)))+"'")}else if(this.type.kind==="number"){for(var dt=null,Mt=0,_t=this.args;Mt<_t.length;Mt+=1){var jt=_t[Mt];if(dt=jt.evaluate(R),dt===null)return 0;var nr=Number(dt);if(!isNaN(nr))return nr}throw new Hi("Could not convert "+JSON.stringify(dt)+" to number.")}else return this.type.kind==="formatted"?Ki.fromString(El(this.args[0].evaluate(R))):this.type.kind==="resolvedImage"?bo.fromString(El(this.args[0].evaluate(R))):El(this.args[0].evaluate(R))},Lo.prototype.eachChild=function(R){this.args.forEach(R)},Lo.prototype.outputDefined=function(){return this.args.every(function(R){return R.outputDefined()})},Lo.prototype.serialize=function(){if(this.type.kind==="formatted")return new no([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new zo(this.args[0]).serialize();var R=["to-"+this.type.kind];return this.eachChild(function(U){R.push(U.serialize())}),R};var jc=["Unknown","Point","LineString","Polygon"],cs=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};cs.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},cs.prototype.geometryType=function(){return this.feature?typeof this.feature.type=="number"?jc[this.feature.type]:this.feature.type:null},cs.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},cs.prototype.canonicalID=function(){return this.canonical},cs.prototype.properties=function(){return this.feature&&this.feature.properties||{}},cs.prototype.parseColor=function(R){var U=this._parseColorCache[R];return U||(U=this._parseColorCache[R]=ti.parse(R)),U};var Ji=function(R,U,ae,ve){this.name=R,this.type=U,this._evaluate=ae,this.args=ve};Ji.prototype.evaluate=function(R){return this._evaluate(R,this.args)},Ji.prototype.eachChild=function(R){this.args.forEach(R)},Ji.prototype.outputDefined=function(){return!1},Ji.prototype.serialize=function(){return[this.name].concat(this.args.map(function(R){return R.serialize()}))},Ji.parse=function(R,U){var ae,ve=R[0],we=Ji.definitions[ve];if(!we)return U.error('Unknown expression "'+ve+'". If you wanted a literal array, use ["literal", [...]].',0);for(var Ee=Array.isArray(we)?we[0]:we.type,Je=Array.isArray(we)?[[we[1],we[2]]]:we.overloads,dt=Je.filter(function(Aa){var Ca=Aa[0];return!Array.isArray(Ca)||Ca.length===R.length-1}),Mt=null,_t=0,jt=dt;_t=R[2]||_[1]<=R[1]||_[3]>=R[3])}function Zc(_,R){var U=Gf(_[0]),ae=Xc(_[1]),ve=Math.pow(2,R.z);return[Math.round(U*ve*hs),Math.round(ae*ve*hs)]}function Kc(_,R,U){var ae=_[0]-R[0],ve=_[1]-R[1],we=_[0]-U[0],Ee=_[1]-U[1];return ae*Ee-we*ve===0&&ae*we<=0&&ve*Ee<=0}function Jc(_,R,U){return R[1]>_[1]!=U[1]>_[1]&&_[0]<(U[0]-R[0])*(_[1]-R[1])/(U[1]-R[1])+R[0]}function uf(_,R){for(var U=!1,ae=0,ve=R.length;ae0&&jt<0||_t<0&&jt>0}function Yf(_,R,U,ae){var ve=[R[0]-_[0],R[1]-_[1]],we=[ae[0]-U[0],ae[1]-U[1]];return $c(we,ve)===0?!1:!!(Wf(_,R,U,ae)&&Wf(U,ae,_,R))}function al(_,R,U){for(var ae=0,ve=U;aeU[2]){var ve=ae*.5,we=_[0]-U[0]>ve?-ae:U[0]-_[0]>ve?ae:0;we===0&&(we=_[0]-U[2]>ve?-ae:U[2]-_[0]>ve?ae:0),_[0]+=we}lf(R,_)}function qc(_){_[0]=_[1]=1/0,_[2]=_[3]=-1/0}function zu(_,R,U,ae){for(var ve=Math.pow(2,ae.z)*hs,we=[ae.x*hs,ae.y*hs],Ee=[],Je=0,dt=_;Je=0)return!1;var U=!0;return _.eachChild(function(ae){U&&!nu(ae,R)&&(U=!1)}),U}var Us=function(R,U){this.type=U.type,this.name=R,this.boundExpression=U};Us.parse=function(R,U){if(R.length!==2||typeof R[1]!="string")return U.error("'var' expression requires exactly one string literal argument.");var ae=R[1];return U.scope.has(ae)?new Us(ae,U.scope.get(ae)):U.error('Unknown variable "'+ae+'". Make sure "'+ae+'" has been bound in an enclosing "let" expression before using it.',1)},Us.prototype.evaluate=function(R){return this.boundExpression.evaluate(R)},Us.prototype.eachChild=function(){},Us.prototype.outputDefined=function(){return!1},Us.prototype.serialize=function(){return["var",this.name]};var vs=function(R,U,ae,ve,we){U===void 0&&(U=[]),ve===void 0&&(ve=new Zr),we===void 0&&(we=[]),this.registry=R,this.path=U,this.key=U.map(function(Ee){return"["+Ee+"]"}).join(""),this.scope=ve,this.errors=we,this.expectedType=ae};vs.prototype.parse=function(R,U,ae,ve,we){return we===void 0&&(we={}),U?this.concat(U,ae,ve)._parse(R,we):this._parse(R,we)},vs.prototype._parse=function(R,U){(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number")&&(R=["literal",R]);function ae(_t,jt,nr){return nr==="assert"?new ro(jt,[_t]):nr==="coerce"?new Lo(jt,[_t]):_t}if(Array.isArray(R)){if(R.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var ve=R[0];if(typeof ve!="string")return this.error("Expression name must be a string, but found "+typeof ve+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var we=this.registry[ve];if(we){var Ee=we.parse(R,this);if(!Ee)return null;if(this.expectedType){var Je=this.expectedType,dt=Ee.type;if((Je.kind==="string"||Je.kind==="number"||Je.kind==="boolean"||Je.kind==="object"||Je.kind==="array")&&dt.kind==="value")Ee=ae(Ee,Je,U.typeAnnotation||"assert");else if((Je.kind==="color"||Je.kind==="formatted"||Je.kind==="resolvedImage")&&(dt.kind==="value"||dt.kind==="string"))Ee=ae(Ee,Je,U.typeAnnotation||"coerce");else if(this.checkSubtype(Je,dt))return null}if(!(Ee instanceof Oi)&&Ee.type.kind!=="resolvedImage"&&ff(Ee)){var Mt=new cs;try{Ee=new Oi(Ee.type,Ee.evaluate(Mt))}catch(_t){return this.error(_t.message),null}}return Ee}return this.error('Unknown expression "'+ve+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof R>"u"?this.error("'undefined' value invalid. Use null instead."):typeof R=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof R+" instead.")},vs.prototype.concat=function(R,U,ae){var ve=typeof R=="number"?this.path.concat(R):this.path,we=ae?this.scope.concat(ae):this.scope;return new vs(this.registry,ve,U||null,we,this.errors)},vs.prototype.error=function(R){for(var U=[],ae=arguments.length-1;ae-- >0;)U[ae]=arguments[ae+1];var ve=""+this.key+U.map(function(we){return"["+we+"]"}).join("");this.errors.push(new Er(ve,R))},vs.prototype.checkSubtype=function(R,U){var ae=Co(R,U);return ae&&this.error(ae),ae};function ff(_){if(_ instanceof Us)return ff(_.boundExpression);if(_ instanceof Ji&&_.name==="error")return!1;if(_ instanceof Bs)return!1;if(_ instanceof Zo)return!1;var R=_ instanceof Lo||_ instanceof ro,U=!0;return _.eachChild(function(ae){R?U=U&&ff(ae):U=U&&ae instanceof Oi}),U?Pl(_)&&nu(_,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function _l(_,R){for(var U=_.length-1,ae=0,ve=U,we=0,Ee,Je;ae<=ve;)if(we=Math.floor((ae+ve)/2),Ee=_[we],Je=_[we+1],Ee<=R){if(we===U||RR)ve=we-1;else throw new Hi("Input is not a number.");return 0}var Ko=function(R,U,ae){this.type=R,this.input=U,this.labels=[],this.outputs=[];for(var ve=0,we=ae;ve=Je)return U.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Mt);var jt=U.parse(dt,_t,we);if(!jt)return null;we=we||jt.type,ve.push([Je,jt])}return new Ko(we,ae,ve)},Ko.prototype.evaluate=function(R){var U=this.labels,ae=this.outputs;if(U.length===1)return ae[0].evaluate(R);var ve=this.input.evaluate(R);if(ve<=U[0])return ae[0].evaluate(R);var we=U.length;if(ve>=U[we-1])return ae[we-1].evaluate(R);var Ee=_l(U,ve);return ae[Ee].evaluate(R)},Ko.prototype.eachChild=function(R){R(this.input);for(var U=0,ae=this.outputs;U0&&R.push(this.labels[U]),R.push(this.outputs[U].serialize());return R};function _i(_,R,U){return _*(1-U)+R*U}function cf(_,R,U){return new ti(_i(_.r,R.r,U),_i(_.g,R.g,U),_i(_.b,R.b,U),_i(_.a,R.a,U))}function eh(_,R,U){return _.map(function(ae,ve){return _i(ae,R[ve],U)})}var Fu=Object.freeze({__proto__:null,number:_i,color:cf,array:eh}),Rl=.95047,Dl=1,Po=1.08883,Nu=4/29,Il=6/29,Bu=3*Il*Il,th=Il*Il*Il,Kf=Math.PI/180,hf=180/Math.PI;function vf(_){return _>th?Math.pow(_,.3333333333333333):_/Bu+Nu}function df(_){return _>Il?_*_*_:Bu*(_-Nu)}function kl(_){return 255*(_<=.0031308?12.92*_:1.055*Math.pow(_,.4166666666666667)-.055)}function Uu(_){return _/=255,_<=.04045?_/12.92:Math.pow((_+.055)/1.055,2.4)}function au(_){var R=Uu(_.r),U=Uu(_.g),ae=Uu(_.b),ve=vf((.4124564*R+.3575761*U+.1804375*ae)/Rl),we=vf((.2126729*R+.7151522*U+.072175*ae)/Dl),Ee=vf((.0193339*R+.119192*U+.9503041*ae)/Po);return{l:116*we-16,a:500*(ve-we),b:200*(we-Ee),alpha:_.a}}function Vu(_){var R=(_.l+16)/116,U=isNaN(_.a)?R:R+_.a/500,ae=isNaN(_.b)?R:R-_.b/200;return R=Dl*df(R),U=Rl*df(U),ae=Po*df(ae),new ti(kl(3.2404542*U-1.5371385*R-.4985314*ae),kl(-.969266*U+1.8760108*R+.041556*ae),kl(.0556434*U-.2040259*R+1.0572252*ae),_.alpha)}function yi(_,R,U){return{l:_i(_.l,R.l,U),a:_i(_.a,R.a,U),b:_i(_.b,R.b,U),alpha:_i(_.alpha,R.alpha,U)}}function Jf(_){var R=au(_),U=R.l,ae=R.a,ve=R.b,we=Math.atan2(ve,ae)*hf;return{h:we<0?we+360:we,c:Math.sqrt(ae*ae+ve*ve),l:U,alpha:_.a}}function Jo(_){var R=_.h*Kf,U=_.c,ae=_.l;return Vu({l:ae,a:Math.cos(R)*U,b:Math.sin(R)*U,alpha:_.alpha})}function Qf(_,R,U){var ae=R-_;return _+U*(ae>180||ae<-180?ae-360*Math.round(ae/360):ae)}function pf(_,R,U){return{h:Qf(_.h,R.h,U),c:_i(_.c,R.c,U),l:_i(_.l,R.l,U),alpha:_i(_.alpha,R.alpha,U)}}var ol={forward:au,reverse:Vu,interpolate:yi},Vs={forward:Jf,reverse:Jo,interpolate:pf},Hu=Object.freeze({__proto__:null,lab:ol,hcl:Vs}),ki=function(R,U,ae,ve,we){this.type=R,this.operator=U,this.interpolation=ae,this.input=ve,this.labels=[],this.outputs=[];for(var Ee=0,Je=we;Ee1}))return U.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ve={name:"cubic-bezier",controlPoints:dt}}else return U.error("Unknown interpolation type "+String(ve[0]),1,0);if(R.length-1<4)return U.error("Expected at least 4 arguments, but found only "+(R.length-1)+".");if((R.length-1)%2!==0)return U.error("Expected an even number of arguments.");if(we=U.parse(we,2,qr),!we)return null;var Mt=[],_t=null;ae==="interpolate-hcl"||ae==="interpolate-lab"?_t=En:U.expectedType&&U.expectedType.kind!=="value"&&(_t=U.expectedType);for(var jt=0;jt=nr)return U.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',br);var cn=U.parse(er,Br,_t);if(!cn)return null;_t=_t||cn.type,Mt.push([nr,cn])}return _t.kind!=="number"&&_t.kind!=="color"&&!(_t.kind==="array"&&_t.itemType.kind==="number"&&typeof _t.N=="number")?U.error("Type "+ai(_t)+" is not interpolatable."):new ki(_t,ae,ve,we,Mt)},ki.prototype.evaluate=function(R){var U=this.labels,ae=this.outputs;if(U.length===1)return ae[0].evaluate(R);var ve=this.input.evaluate(R);if(ve<=U[0])return ae[0].evaluate(R);var we=U.length;if(ve>=U[we-1])return ae[we-1].evaluate(R);var Ee=_l(U,ve),Je=U[Ee],dt=U[Ee+1],Mt=ki.interpolationFactor(this.interpolation,ve,Je,dt),_t=ae[Ee].evaluate(R),jt=ae[Ee+1].evaluate(R);return this.operator==="interpolate"?Fu[this.type.kind.toLowerCase()](_t,jt,Mt):this.operator==="interpolate-hcl"?Vs.reverse(Vs.interpolate(Vs.forward(_t),Vs.forward(jt),Mt)):ol.reverse(ol.interpolate(ol.forward(_t),ol.forward(jt),Mt))},ki.prototype.eachChild=function(R){R(this.input);for(var U=0,ae=this.outputs;U=ae.length)throw new Hi("Array index out of bounds: "+U+" > "+(ae.length-1)+".");if(U!==Math.floor(U))throw new Hi("Array index must be an integer, but found "+U+" instead.");return ae[U]},sl.prototype.eachChild=function(R){R(this.index),R(this.input)},sl.prototype.outputDefined=function(){return!1},sl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Hs=function(R,U){this.type=zn,this.needle=R,this.haystack=U};Hs.parse=function(R,U){if(R.length!==3)return U.error("Expected 2 arguments, but found "+(R.length-1)+" instead.");var ae=U.parse(R[1],1,Nn),ve=U.parse(R[2],2,Nn);return!ae||!ve?null:to(ae.type,[zn,wn,qr,Gr,Nn])?new Hs(ae,ve):U.error("Expected first argument to be of type boolean, string, number or null, but found "+ai(ae.type)+" instead")},Hs.prototype.evaluate=function(R){var U=this.needle.evaluate(R),ae=this.haystack.evaluate(R);if(!ae)return!1;if(!Sl(U,["boolean","string","number","null"]))throw new Hi("Expected first argument to be of type boolean, string, number or null, but found "+ai(Ii(U))+" instead.");if(!Sl(ae,["string","array"]))throw new Hi("Expected second argument to be of type array or string, but found "+ai(Ii(ae))+" instead.");return ae.indexOf(U)>=0},Hs.prototype.eachChild=function(R){R(this.needle),R(this.haystack)},Hs.prototype.outputDefined=function(){return!0},Hs.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var $o=function(R,U,ae){this.type=qr,this.needle=R,this.haystack=U,this.fromIndex=ae};$o.parse=function(R,U){if(R.length<=2||R.length>=5)return U.error("Expected 3 or 4 arguments, but found "+(R.length-1)+" instead.");var ae=U.parse(R[1],1,Nn),ve=U.parse(R[2],2,Nn);if(!ae||!ve)return null;if(!to(ae.type,[zn,wn,qr,Gr,Nn]))return U.error("Expected first argument to be of type boolean, string, number or null, but found "+ai(ae.type)+" instead");if(R.length===4){var we=U.parse(R[3],3,qr);return we?new $o(ae,ve,we):null}else return new $o(ae,ve)},$o.prototype.evaluate=function(R){var U=this.needle.evaluate(R),ae=this.haystack.evaluate(R);if(!Sl(U,["boolean","string","number","null"]))throw new Hi("Expected first argument to be of type boolean, string, number or null, but found "+ai(Ii(U))+" instead.");if(!Sl(ae,["string","array"]))throw new Hi("Expected second argument to be of type array or string, but found "+ai(Ii(ae))+" instead.");if(this.fromIndex){var ve=this.fromIndex.evaluate(R);return ae.indexOf(U,ve)}return ae.indexOf(U)},$o.prototype.eachChild=function(R){R(this.needle),R(this.haystack),this.fromIndex&&R(this.fromIndex)},$o.prototype.outputDefined=function(){return!1},$o.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var R=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),R]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Cs=function(R,U,ae,ve,we,Ee){this.inputType=R,this.type=U,this.input=ae,this.cases=ve,this.outputs=we,this.otherwise=Ee};Cs.parse=function(R,U){if(R.length<5)return U.error("Expected at least 4 arguments, but found only "+(R.length-1)+".");if(R.length%2!==1)return U.error("Expected an even number of arguments.");var ae,ve;U.expectedType&&U.expectedType.kind!=="value"&&(ve=U.expectedType);for(var we={},Ee=[],Je=2;JeNumber.MAX_SAFE_INTEGER)return _t.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof er=="number"&&Math.floor(er)!==er)return _t.error("Numeric branch labels must be integer values.");if(!ae)ae=Ii(er);else if(_t.checkSubtype(ae,Ii(er)))return null;if(typeof we[String(er)]<"u")return _t.error("Branch labels must be unique.");we[String(er)]=Ee.length}var br=U.parse(Mt,Je,ve);if(!br)return null;ve=ve||br.type,Ee.push(br)}var Br=U.parse(R[1],1,Nn);if(!Br)return null;var cn=U.parse(R[R.length-1],R.length-1,ve);return!cn||Br.type.kind!=="value"&&U.concat(1).checkSubtype(ae,Br.type)?null:new Cs(ae,ve,Br,we,Ee,cn)},Cs.prototype.evaluate=function(R){var U=this.input.evaluate(R),ae=Ii(U)===this.inputType&&this.outputs[this.cases[U]]||this.otherwise;return ae.evaluate(R)},Cs.prototype.eachChild=function(R){R(this.input),this.outputs.forEach(R),R(this.otherwise)},Cs.prototype.outputDefined=function(){return this.outputs.every(function(R){return R.outputDefined()})&&this.otherwise.outputDefined()},Cs.prototype.serialize=function(){for(var R=this,U=["match",this.input.serialize()],ae=Object.keys(this.cases).sort(),ve=[],we={},Ee=0,Je=ae;Ee=5)return U.error("Expected 3 or 4 arguments, but found "+(R.length-1)+" instead.");var ae=U.parse(R[1],1,Nn),ve=U.parse(R[2],2,qr);if(!ae||!ve)return null;if(!to(ae.type,[gi(Nn),wn,Nn]))return U.error("Expected first argument to be of type array or string, but found "+ai(ae.type)+" instead");if(R.length===4){var we=U.parse(R[3],3,qr);return we?new Vo(ae.type,ae,ve,we):null}else return new Vo(ae.type,ae,ve)},Vo.prototype.evaluate=function(R){var U=this.input.evaluate(R),ae=this.beginIndex.evaluate(R);if(!Sl(U,["string","array"]))throw new Hi("Expected first argument to be of type array or string, but found "+ai(Ii(U))+" instead.");if(this.endIndex){var ve=this.endIndex.evaluate(R);return U.slice(ae,ve)}return U.slice(ae)},Vo.prototype.eachChild=function(R){R(this.input),R(this.beginIndex),this.endIndex&&R(this.endIndex)},Vo.prototype.outputDefined=function(){return!1},Vo.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var R=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),R]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function ou(_,R){return _==="=="||_==="!="?R.kind==="boolean"||R.kind==="string"||R.kind==="number"||R.kind==="null"||R.kind==="value":R.kind==="string"||R.kind==="number"||R.kind==="value"}function rh(_,R,U){return R===U}function nh(_,R,U){return R!==U}function ah(_,R,U){return RU}function gf(_,R,U){return R<=U}function $f(_,R,U){return R>=U}function zl(_,R,U,ae){return ae.compare(R,U)===0}function Qi(_,R,U,ae){return!zl(_,R,U,ae)}function Oo(_,R,U,ae){return ae.compare(R,U)<0}function Ol(_,R,U,ae){return ae.compare(R,U)>0}function qf(_,R,U,ae){return ae.compare(R,U)<=0}function su(_,R,U,ae){return ae.compare(R,U)>=0}function Ls(_,R,U){var ae=_!=="=="&&_!=="!=";return function(){function ve(we,Ee,Je){this.type=zn,this.lhs=we,this.rhs=Ee,this.collator=Je,this.hasUntypedArgument=we.type.kind==="value"||Ee.type.kind==="value"}return ve.parse=function(Ee,Je){if(Ee.length!==3&&Ee.length!==4)return Je.error("Expected two or three arguments.");var dt=Ee[0],Mt=Je.parse(Ee[1],1,Nn);if(!Mt)return null;if(!ou(dt,Mt.type))return Je.concat(1).error('"'+dt+`" comparisons are not supported for type '`+ai(Mt.type)+"'.");var _t=Je.parse(Ee[2],2,Nn);if(!_t)return null;if(!ou(dt,_t.type))return Je.concat(2).error('"'+dt+`" comparisons are not supported for type '`+ai(_t.type)+"'.");if(Mt.type.kind!==_t.type.kind&&Mt.type.kind!=="value"&&_t.type.kind!=="value")return Je.error("Cannot compare types '"+ai(Mt.type)+"' and '"+ai(_t.type)+"'.");ae&&(Mt.type.kind==="value"&&_t.type.kind!=="value"?Mt=new ro(_t.type,[Mt]):Mt.type.kind!=="value"&&_t.type.kind==="value"&&(_t=new ro(Mt.type,[_t])));var jt=null;if(Ee.length===4){if(Mt.type.kind!=="string"&&_t.type.kind!=="string"&&Mt.type.kind!=="value"&&_t.type.kind!=="value")return Je.error("Cannot use collator to compare non-string types.");if(jt=Je.parse(Ee[3],3,sa),!jt)return null}return new ve(Mt,_t,jt)},ve.prototype.evaluate=function(Ee){var Je=this.lhs.evaluate(Ee),dt=this.rhs.evaluate(Ee);if(ae&&this.hasUntypedArgument){var Mt=Ii(Je),_t=Ii(dt);if(Mt.kind!==_t.kind||!(Mt.kind==="string"||Mt.kind==="number"))throw new Hi('Expected arguments for "'+_+'" to be (string, string) or (number, number), but found ('+Mt.kind+", "+_t.kind+") instead.")}if(this.collator&&!ae&&this.hasUntypedArgument){var jt=Ii(Je),nr=Ii(dt);if(jt.kind!=="string"||nr.kind!=="string")return R(Ee,Je,dt)}return this.collator?U(Ee,Je,dt,this.collator.evaluate(Ee)):R(Ee,Je,dt)},ve.prototype.eachChild=function(Ee){Ee(this.lhs),Ee(this.rhs),this.collator&&Ee(this.collator)},ve.prototype.outputDefined=function(){return!0},ve.prototype.serialize=function(){var Ee=[_];return this.eachChild(function(Je){Ee.push(Je.serialize())}),Ee},ve}()}var oh=Ls("==",rh,zl),ec=Ls("!=",nh,Qi),tc=Ls("<",ah,Oo),yf=Ls(">",ih,Ol),rc=Ls("<=",gf,qf),wo=Ls(">=",$f,su),es=function(R,U,ae,ve,we){this.type=wn,this.number=R,this.locale=U,this.currency=ae,this.minFractionDigits=ve,this.maxFractionDigits=we};es.parse=function(R,U){if(R.length!==3)return U.error("Expected two arguments.");var ae=U.parse(R[1],1,qr);if(!ae)return null;var ve=R[2];if(typeof ve!="object"||Array.isArray(ve))return U.error("NumberFormat options argument must be an object.");var we=null;if(ve.locale&&(we=U.parse(ve.locale,1,wn),!we))return null;var Ee=null;if(ve.currency&&(Ee=U.parse(ve.currency,1,wn),!Ee))return null;var Je=null;if(ve["min-fraction-digits"]&&(Je=U.parse(ve["min-fraction-digits"],1,qr),!Je))return null;var dt=null;return ve["max-fraction-digits"]&&(dt=U.parse(ve["max-fraction-digits"],1,qr),!dt)?null:new es(ae,we,Ee,Je,dt)},es.prototype.evaluate=function(R){return new Intl.NumberFormat(this.locale?this.locale.evaluate(R):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(R):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(R):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(R):void 0}).format(this.number.evaluate(R))},es.prototype.eachChild=function(R){R(this.number),this.locale&&R(this.locale),this.currency&&R(this.currency),this.minFractionDigits&&R(this.minFractionDigits),this.maxFractionDigits&&R(this.maxFractionDigits)},es.prototype.outputDefined=function(){return!1},es.prototype.serialize=function(){var R={};return this.locale&&(R.locale=this.locale.serialize()),this.currency&&(R.currency=this.currency.serialize()),this.minFractionDigits&&(R["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(R["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),R]};var Gs=function(R){this.type=qr,this.input=R};Gs.parse=function(R,U){if(R.length!==2)return U.error("Expected 1 argument, but found "+(R.length-1)+" instead.");var ae=U.parse(R[1],1);return ae?ae.type.kind!=="array"&&ae.type.kind!=="string"&&ae.type.kind!=="value"?U.error("Expected argument of type string or array, but found "+ai(ae.type)+" instead."):new Gs(ae):null},Gs.prototype.evaluate=function(R){var U=this.input.evaluate(R);if(typeof U=="string")return U.length;if(Array.isArray(U))return U.length;throw new Hi("Expected value to be of type string or array, but found "+ai(Ii(U))+" instead.")},Gs.prototype.eachChild=function(R){R(this.input)},Gs.prototype.outputDefined=function(){return!1},Gs.prototype.serialize=function(){var R=["length"];return this.eachChild(function(U){R.push(U.serialize())}),R};var Fl={"==":oh,"!=":ec,">":yf,"<":tc,">=":wo,"<=":rc,array:ro,at:sl,boolean:ro,case:qo,coalesce:Qo,collator:Bs,format:no,image:zo,in:Hs,"index-of":$o,interpolate:ki,"interpolate-hcl":ki,"interpolate-lab":ki,length:Gs,let:Es,literal:Oi,match:Cs,number:ro,"number-format":es,object:ro,slice:Vo,step:Ko,string:ro,"to-boolean":Lo,"to-color":Lo,"to-number":Lo,"to-string":Lo,var:Us,within:Zo};function Gu(_,R){var U=R[0],ae=R[1],ve=R[2],we=R[3];U=U.evaluate(_),ae=ae.evaluate(_),ve=ve.evaluate(_);var Ee=we?we.evaluate(_):1,Je=Ml(U,ae,ve,Ee);if(Je)throw new Hi(Je);return new ti(U/255*Ee,ae/255*Ee,ve/255*Ee,Ee)}function ll(_,R){return _ in R}function ul(_,R){var U=R[_];return typeof U>"u"?null:U}function nc(_,R,U,ae){for(;U<=ae;){var ve=U+ae>>1;if(R[ve]===_)return!0;R[ve]>_?ae=ve-1:U=ve+1}return!1}function Ps(_){return{type:_}}Ji.register(Fl,{error:[va,[wn],function(_,R){var U=R[0];throw new Hi(U.evaluate(_))}],typeof:[wn,[Nn],function(_,R){var U=R[0];return ai(Ii(U.evaluate(_)))}],"to-rgba":[gi(qr,4),[En],function(_,R){var U=R[0];return U.evaluate(_).toArray()}],rgb:[En,[qr,qr,qr],Gu],rgba:[En,[qr,qr,qr,qr],Gu],has:{type:zn,overloads:[[[wn],function(_,R){var U=R[0];return ll(U.evaluate(_),_.properties())}],[[wn,Un],function(_,R){var U=R[0],ae=R[1];return ll(U.evaluate(_),ae.evaluate(_))}]]},get:{type:Nn,overloads:[[[wn],function(_,R){var U=R[0];return ul(U.evaluate(_),_.properties())}],[[wn,Un],function(_,R){var U=R[0],ae=R[1];return ul(U.evaluate(_),ae.evaluate(_))}]]},"feature-state":[Nn,[wn],function(_,R){var U=R[0];return ul(U.evaluate(_),_.featureState||{})}],properties:[Un,[],function(_){return _.properties()}],"geometry-type":[wn,[],function(_){return _.geometryType()}],id:[Nn,[],function(_){return _.id()}],zoom:[qr,[],function(_){return _.globals.zoom}],"heatmap-density":[qr,[],function(_){return _.globals.heatmapDensity||0}],"line-progress":[qr,[],function(_){return _.globals.lineProgress||0}],accumulated:[Nn,[],function(_){return _.globals.accumulated===void 0?null:_.globals.accumulated}],"+":[qr,Ps(qr),function(_,R){for(var U=0,ae=0,ve=R;ae":[zn,[wn,Nn],function(_,R){var U=R[0],ae=R[1],ve=_.properties()[U.value],we=ae.value;return typeof ve==typeof we&&ve>we}],"filter-id->":[zn,[Nn],function(_,R){var U=R[0],ae=_.id(),ve=U.value;return typeof ae==typeof ve&&ae>ve}],"filter-<=":[zn,[wn,Nn],function(_,R){var U=R[0],ae=R[1],ve=_.properties()[U.value],we=ae.value;return typeof ve==typeof we&&ve<=we}],"filter-id-<=":[zn,[Nn],function(_,R){var U=R[0],ae=_.id(),ve=U.value;return typeof ae==typeof ve&&ae<=ve}],"filter->=":[zn,[wn,Nn],function(_,R){var U=R[0],ae=R[1],ve=_.properties()[U.value],we=ae.value;return typeof ve==typeof we&&ve>=we}],"filter-id->=":[zn,[Nn],function(_,R){var U=R[0],ae=_.id(),ve=U.value;return typeof ae==typeof ve&&ae>=ve}],"filter-has":[zn,[Nn],function(_,R){var U=R[0];return U.value in _.properties()}],"filter-has-id":[zn,[],function(_){return _.id()!==null&&_.id()!==void 0}],"filter-type-in":[zn,[gi(wn)],function(_,R){var U=R[0];return U.value.indexOf(_.geometryType())>=0}],"filter-id-in":[zn,[gi(Nn)],function(_,R){var U=R[0];return U.value.indexOf(_.id())>=0}],"filter-in-small":[zn,[wn,gi(Nn)],function(_,R){var U=R[0],ae=R[1];return ae.value.indexOf(_.properties()[U.value])>=0}],"filter-in-large":[zn,[wn,gi(Nn)],function(_,R){var U=R[0],ae=R[1];return nc(_.properties()[U.value],ae.value,0,ae.value.length-1)}],all:{type:zn,overloads:[[[zn,zn],function(_,R){var U=R[0],ae=R[1];return U.evaluate(_)&&ae.evaluate(_)}],[Ps(zn),function(_,R){for(var U=0,ae=R;U-1}function Bl(_){return!!_.expression&&_.expression.interpolated}function vi(_){return _ instanceof Number?"number":_ instanceof String?"string":_ instanceof Boolean?"boolean":Array.isArray(_)?"array":_===null?"null":typeof _}function Ul(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)}function Wu(_){return _}function ac(_,R){var U=R.type==="color",ae=_.stops&&typeof _.stops[0][0]=="object",ve=ae||_.property!==void 0,we=ae||!ve,Ee=_.type||(Bl(R)?"exponential":"interval");if(U&&(_=Rn({},_),_.stops&&(_.stops=_.stops.map(function(ta){return[ta[0],ti.parse(ta[1])]})),_.default?_.default=ti.parse(_.default):_.default=ti.parse(R.default)),_.colorSpace&&_.colorSpace!=="rgb"&&!Hu[_.colorSpace])throw new Error("Unknown color space: "+_.colorSpace);var Je,dt,Mt;if(Ee==="exponential")Je=mf;else if(Ee==="interval")Je=Yu;else if(Ee==="categorical"){Je=uu,dt=Object.create(null);for(var _t=0,jt=_.stops;_t=_.stops[ae-1][0])return _.stops[ae-1][1];var ve=_l(_.stops.map(function(we){return we[0]}),U);return _.stops[ve][1]}function mf(_,R,U){var ae=_.base!==void 0?_.base:1;if(vi(U)!=="number")return Vl(_.default,R.default);var ve=_.stops.length;if(ve===1||U<=_.stops[0][0])return _.stops[0][1];if(U>=_.stops[ve-1][0])return _.stops[ve-1][1];var we=_l(_.stops.map(function(jt){return jt[0]}),U),Ee=cu(U,ae,_.stops[we][0],_.stops[we+1][0]),Je=_.stops[we][1],dt=_.stops[we+1][1],Mt=Fu[R.type]||Wu;if(_.colorSpace&&_.colorSpace!=="rgb"){var _t=Hu[_.colorSpace];Mt=function(jt,nr){return _t.reverse(_t.interpolate(_t.forward(jt),_t.forward(nr),Ee))}}return typeof Je.evaluate=="function"?{evaluate:function(){for(var nr=[],er=arguments.length;er--;)nr[er]=arguments[er];var br=Je.evaluate.apply(void 0,nr),Br=dt.evaluate.apply(void 0,nr);if(!(br===void 0||Br===void 0))return Mt(br,Br,Ee)}}:Mt(Je,dt,Ee)}function fu(_,R,U){return R.type==="color"?U=ti.parse(U):R.type==="formatted"?U=Ki.fromString(U.toString()):R.type==="resolvedImage"?U=bo.fromString(U.toString()):vi(U)!==R.type&&(R.type!=="enum"||!R.values[U])&&(U=void 0),Vl(U,_.default,R.default)}function cu(_,R,U,ae){var ve=ae-U,we=_-U;return ve===0?0:R===1?we/ve:(Math.pow(R,we)-1)/(Math.pow(R,ve)-1)}var Ys=function(R,U){this.expression=R,this._warningHistory={},this._evaluator=new cs,this._defaultValue=U?ic(U):null,this._enumValues=U&&U.type==="enum"?U.values:null};Ys.prototype.evaluateWithoutErrorHandling=function(R,U,ae,ve,we,Ee){return this._evaluator.globals=R,this._evaluator.feature=U,this._evaluator.featureState=ae,this._evaluator.canonical=ve,this._evaluator.availableImages=we||null,this._evaluator.formattedSection=Ee,this.expression.evaluate(this._evaluator)},Ys.prototype.evaluate=function(R,U,ae,ve,we,Ee){this._evaluator.globals=R,this._evaluator.feature=U||null,this._evaluator.featureState=ae||null,this._evaluator.canonical=ve,this._evaluator.availableImages=we||null,this._evaluator.formattedSection=Ee||null;try{var Je=this.expression.evaluate(this._evaluator);if(Je==null||typeof Je=="number"&&Je!==Je)return this._defaultValue;if(this._enumValues&&!(Je in this._enumValues))throw new Hi("Expected value to be one of "+Object.keys(this._enumValues).map(function(dt){return JSON.stringify(dt)}).join(", ")+", but found "+JSON.stringify(Je)+" instead.");return Je}catch(dt){return this._warningHistory[dt.message]||(this._warningHistory[dt.message]=!0,typeof console<"u"&&console.warn(dt.message)),this._defaultValue}};function hu(_){return Array.isArray(_)&&_.length>0&&typeof _[0]=="string"&&_[0]in Fl}function js(_,R){var U=new vs(Fl,[],R?sh(R):void 0),ae=U.parse(_,void 0,void 0,void 0,R&&R.type==="string"?{typeAnnotation:"coerce"}:void 0);return ae?Nl(new Ys(ae,R)):Ws(U.errors)}var Gi=function(R,U){this.kind=R,this._styleExpression=U,this.isStateDependent=R!=="constant"&&!il(U.expression)};Gi.prototype.evaluateWithoutErrorHandling=function(R,U,ae,ve,we,Ee){return this._styleExpression.evaluateWithoutErrorHandling(R,U,ae,ve,we,Ee)},Gi.prototype.evaluate=function(R,U,ae,ve,we,Ee){return this._styleExpression.evaluate(R,U,ae,ve,we,Ee)};var ds=function(R,U,ae,ve){this.kind=R,this.zoomStops=ae,this._styleExpression=U,this.isStateDependent=R!=="camera"&&!il(U.expression),this.interpolationType=ve};ds.prototype.evaluateWithoutErrorHandling=function(R,U,ae,ve,we,Ee){return this._styleExpression.evaluateWithoutErrorHandling(R,U,ae,ve,we,Ee)},ds.prototype.evaluate=function(R,U,ae,ve,we,Ee){return this._styleExpression.evaluate(R,U,ae,ve,we,Ee)},ds.prototype.interpolationFactor=function(R,U,ae){return this.interpolationType?ki.interpolationFactor(this.interpolationType,R,U,ae):0};function xf(_,R){if(_=js(_,R),_.result==="error")return _;var U=_.value.expression,ae=Pl(U);if(!ae&&!_s(R))return Ws([new Er("","data expressions not supported")]);var ve=nu(U,["zoom"]);if(!ve&&!lu(R))return Ws([new Er("","zoom expressions not supported")]);var we=vu(U);if(!we&&!ve)return Ws([new Er("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(we instanceof Er)return Ws([we]);if(we instanceof ki&&!Bl(R))return Ws([new Er("",'"interpolate" expressions cannot be used with this property')]);if(!we)return Nl(ae?new Gi("constant",_.value):new Gi("source",_.value));var Ee=we instanceof ki?we.interpolation:void 0;return Nl(ae?new ds("camera",_.value,we.labels,Ee):new ds("composite",_.value,we.labels,Ee))}var fl=function(R,U){this._parameters=R,this._specification=U,Rn(this,ac(this._parameters,this._specification))};fl.deserialize=function(R){return new fl(R._parameters,R._specification)},fl.serialize=function(R){return{_parameters:R._parameters,_specification:R._specification}};function ju(_,R){if(Ul(_))return new fl(_,R);if(hu(_)){var U=xf(_,R);if(U.result==="error")throw new Error(U.value.map(function(ve){return ve.key+": "+ve.message}).join(", "));return U.value}else{var ae=_;return typeof _=="string"&&R.type==="color"&&(ae=ti.parse(_)),{kind:"constant",evaluate:function(){return ae}}}}function vu(_){var R=null;if(_ instanceof Es)R=vu(_.result);else if(_ instanceof Qo)for(var U=0,ae=_.args;Uae.maximum?[new Nr(R,U,U+" is greater than the maximum value "+ae.maximum)]:[]}function oc(_){var R=_.valueSpec,U=gn(_.value.type),ae,ve={},we,Ee,Je=U!=="categorical"&&_.value.property===void 0,dt=!Je,Mt=vi(_.value.stops)==="array"&&vi(_.value.stops[0])==="array"&&vi(_.value.stops[0][0])==="object",_t=po({key:_.key,value:_.value,valueSpec:_.styleSpec.function,style:_.style,styleSpec:_.styleSpec,objectElementValidators:{stops:jt,default:br}});return U==="identity"&&Je&&_t.push(new Nr(_.key,_.value,'missing required property "property"')),U!=="identity"&&!_.value.stops&&_t.push(new Nr(_.key,_.value,'missing required property "stops"')),U==="exponential"&&_.valueSpec.expression&&!Bl(_.valueSpec)&&_t.push(new Nr(_.key,_.value,"exponential functions not supported")),_.styleSpec.$version>=8&&(dt&&!_s(_.valueSpec)?_t.push(new Nr(_.key,_.value,"property functions not supported")):Je&&!lu(_.valueSpec)&&_t.push(new Nr(_.key,_.value,"zoom functions not supported"))),(U==="categorical"||Mt)&&_.value.property===void 0&&_t.push(new Nr(_.key,_.value,'"property" property is required')),_t;function jt(Br){if(U==="identity")return[new Nr(Br.key,Br.value,'identity function may not have a "stops" property')];var cn=[],nn=Br.value;return cn=cn.concat(du({key:Br.key,value:nn,valueSpec:Br.valueSpec,style:Br.style,styleSpec:Br.styleSpec,arrayElementValidator:nr})),vi(nn)==="array"&&nn.length===0&&cn.push(new Nr(Br.key,nn,"array must have at least one stop")),cn}function nr(Br){var cn=[],nn=Br.value,Ln=Br.key;if(vi(nn)!=="array")return[new Nr(Ln,nn,"array expected, "+vi(nn)+" found")];if(nn.length!==2)return[new Nr(Ln,nn,"array length 2 expected, length "+nn.length+" found")];if(Mt){if(vi(nn[0])!=="object")return[new Nr(Ln,nn,"object expected, "+vi(nn[0])+" found")];if(nn[0].zoom===void 0)return[new Nr(Ln,nn,"object stop key must have zoom")];if(nn[0].value===void 0)return[new Nr(Ln,nn,"object stop key must have value")];if(Ee&&Ee>gn(nn[0].zoom))return[new Nr(Ln,nn[0].zoom,"stop zoom values must appear in ascending order")];gn(nn[0].zoom)!==Ee&&(Ee=gn(nn[0].zoom),we=void 0,ve={}),cn=cn.concat(po({key:Ln+"[0]",value:nn[0],valueSpec:{zoom:{}},style:Br.style,styleSpec:Br.styleSpec,objectElementValidators:{zoom:Hl,value:er}}))}else cn=cn.concat(er({key:Ln+"[0]",value:nn[0],valueSpec:{},style:Br.style,styleSpec:Br.styleSpec},nn));return hu(un(nn[1]))?cn.concat([new Nr(Ln+"[1]",nn[1],"expressions are not allowed in function stops.")]):cn.concat(Ir({key:Ln+"[1]",value:nn[1],valueSpec:R,style:Br.style,styleSpec:Br.styleSpec}))}function er(Br,cn){var nn=vi(Br.value),Ln=gn(Br.value),yn=Br.value!==null?Br.value:cn;if(!ae)ae=nn;else if(nn!==ae)return[new Nr(Br.key,yn,nn+" stop domain type must match previous stop domain type "+ae)];if(nn!=="number"&&nn!=="string"&&nn!=="boolean")return[new Nr(Br.key,yn,"stop domain value must be a number, string, or boolean")];if(nn!=="number"&&U!=="categorical"){var Cn="number expected, "+nn+" found";return _s(R)&&U===void 0&&(Cn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Nr(Br.key,yn,Cn)]}return U==="categorical"&&nn==="number"&&(!isFinite(Ln)||Math.floor(Ln)!==Ln)?[new Nr(Br.key,yn,"integer expected, found "+Ln)]:U!=="categorical"&&nn==="number"&&we!==void 0&&Ln=2&&_[1]!=="$id"&&_[1]!=="$type";case"in":return _.length>=3&&(typeof _[1]!="string"||Array.isArray(_[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return _.length!==3||Array.isArray(_[1])||Array.isArray(_[2]);case"any":case"all":for(var R=0,U=_.slice(1);RR?1:0}function gu(_){if(!Array.isArray(_))return!1;if(_[0]==="within")return!0;for(var R=1;R<_.length;R++)if(gu(_[R]))return!0;return!1}function yu(_){if(!_)return!0;var R=_[0];if(_.length<=1)return R!=="any";var U=R==="=="?Zu(_[1],_[2],"=="):R==="!="?cl(Zu(_[1],_[2],"==")):R==="<"||R===">"||R==="<="||R===">="?Zu(_[1],_[2],R):R==="any"?sc(_.slice(1)):R==="all"?["all"].concat(_.slice(1).map(yu)):R==="none"?["all"].concat(_.slice(1).map(yu).map(cl)):R==="in"?mu(_[1],_.slice(2)):R==="!in"?cl(mu(_[1],_.slice(2))):R==="has"?wf(_[1]):R==="!has"?cl(wf(_[1])):R==="within"?_:!0;return U}function Zu(_,R,U){switch(_){case"$type":return["filter-type-"+U,R];case"$id":return["filter-id-"+U,R];default:return["filter-"+U,_,R]}}function sc(_){return["any"].concat(_.map(yu))}function mu(_,R){if(R.length===0)return!1;switch(_){case"$type":return["filter-type-in",["literal",R]];case"$id":return["filter-id-in",["literal",R]];default:return R.length>200&&!R.some(function(U){return typeof U!=typeof R[0]})?["filter-in-large",_,["literal",R.sort(bf)]]:["filter-in-small",_,["literal",R]]}}function wf(_){switch(_){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",_]}}function cl(_){return["!",_]}function Tf(_){return Xu(un(_.value))?Xs(Rn({},_,{expressionContext:"filter",valueSpec:{value:"boolean"}})):xu(_)}function xu(_){var R=_.value,U=_.key;if(vi(R)!=="array")return[new Nr(U,R,"array expected, "+vi(R)+" found")];var ae=_.styleSpec,ve,we=[];if(R.length<1)return[new Nr(U,R,"filter array must have at least 1 element")];switch(we=we.concat(pu({key:U+"[0]",value:R[0],valueSpec:ae.filter_operator,style:_.style,styleSpec:_.styleSpec})),gn(R[0])){case"<":case"<=":case">":case">=":R.length>=2&&gn(R[1])==="$type"&&we.push(new Nr(U,R,'"$type" cannot be use with operator "'+R[0]+'"'));case"==":case"!=":R.length!==3&&we.push(new Nr(U,R,'filter array for operator "'+R[0]+'" must have 3 elements'));case"in":case"!in":R.length>=2&&(ve=vi(R[1]),ve!=="string"&&we.push(new Nr(U+"[1]",R[1],"string expected, "+ve+" found")));for(var Ee=2;Ee=_t[er+0]&&ae>=_t[er+1])?(Ee[nr]=!0,we.push(Mt[nr])):Ee[nr]=!1}}},di.prototype._forEachCell=function(_,R,U,ae,ve,we,Ee,Je){for(var dt=this._convertToCellCoord(_),Mt=this._convertToCellCoord(R),_t=this._convertToCellCoord(U),jt=this._convertToCellCoord(ae),nr=dt;nr<=_t;nr++)for(var er=Mt;er<=jt;er++){var br=this.d*er+nr;if(!(Je&&!Je(this._convertFromCellCoord(nr),this._convertFromCellCoord(er),this._convertFromCellCoord(nr+1),this._convertFromCellCoord(er+1)))&&ve.call(this,_,R,U,ae,br,we,Ee,Je))return}},di.prototype._convertFromCellCoord=function(_){return(_-this.padding)/this.scale},di.prototype._convertToCellCoord=function(_){return Math.max(0,Math.min(this.d-1,Math.floor(_*this.scale)+this.padding))},di.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var _=this.cells,R=Ka+this.cells.length+1+1,U=0,ae=0;ae=0)){var jt=_[_t];Mt[_t]=Ae[dt].shallow.indexOf(_t)>=0?jt:Pt(jt,R)}_ instanceof Error&&(Mt.message=_.message)}if(Mt.$name)throw new Error("$name property is reserved for worker serialization logic.");return dt!=="Object"&&(Mt.$name=dt),Mt}throw new Error("can't serialize object of type "+typeof _)}function St(_){if(_==null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||_ instanceof Boolean||_ instanceof Number||_ instanceof String||_ instanceof Date||_ instanceof RegExp||nt(_)||ct(_)||ArrayBuffer.isView(_)||_ instanceof zi)return _;if(Array.isArray(_))return _.map(St);if(typeof _=="object"){var R=_.$name||"Object",U=Ae[R],ae=U.klass;if(!ae)throw new Error("can't deserialize unregistered class "+R);if(ae.deserialize)return ae.deserialize(_);for(var ve=Object.create(ae.prototype),we=0,Ee=Object.keys(_);we=0?dt:St(dt)}}return ve}throw new Error("can't deserialize object of type "+typeof _)}var Gt=function(){this.first=!0};Gt.prototype.update=function(R,U){var ae=Math.floor(R);return this.first?(this.first=!1,this.lastIntegerZoom=ae,this.lastIntegerZoomTime=0,this.lastZoom=R,this.lastFloorZoom=ae,!0):(this.lastFloorZoom>ae?(this.lastIntegerZoom=ae+1,this.lastIntegerZoomTime=U):this.lastFloorZoom=128&&_<=255},Arabic:function(_){return _>=1536&&_<=1791},"Arabic Supplement":function(_){return _>=1872&&_<=1919},"Arabic Extended-A":function(_){return _>=2208&&_<=2303},"Hangul Jamo":function(_){return _>=4352&&_<=4607},"Unified Canadian Aboriginal Syllabics":function(_){return _>=5120&&_<=5759},Khmer:function(_){return _>=6016&&_<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(_){return _>=6320&&_<=6399},"General Punctuation":function(_){return _>=8192&&_<=8303},"Letterlike Symbols":function(_){return _>=8448&&_<=8527},"Number Forms":function(_){return _>=8528&&_<=8591},"Miscellaneous Technical":function(_){return _>=8960&&_<=9215},"Control Pictures":function(_){return _>=9216&&_<=9279},"Optical Character Recognition":function(_){return _>=9280&&_<=9311},"Enclosed Alphanumerics":function(_){return _>=9312&&_<=9471},"Geometric Shapes":function(_){return _>=9632&&_<=9727},"Miscellaneous Symbols":function(_){return _>=9728&&_<=9983},"Miscellaneous Symbols and Arrows":function(_){return _>=11008&&_<=11263},"CJK Radicals Supplement":function(_){return _>=11904&&_<=12031},"Kangxi Radicals":function(_){return _>=12032&&_<=12255},"Ideographic Description Characters":function(_){return _>=12272&&_<=12287},"CJK Symbols and Punctuation":function(_){return _>=12288&&_<=12351},Hiragana:function(_){return _>=12352&&_<=12447},Katakana:function(_){return _>=12448&&_<=12543},Bopomofo:function(_){return _>=12544&&_<=12591},"Hangul Compatibility Jamo":function(_){return _>=12592&&_<=12687},Kanbun:function(_){return _>=12688&&_<=12703},"Bopomofo Extended":function(_){return _>=12704&&_<=12735},"CJK Strokes":function(_){return _>=12736&&_<=12783},"Katakana Phonetic Extensions":function(_){return _>=12784&&_<=12799},"Enclosed CJK Letters and Months":function(_){return _>=12800&&_<=13055},"CJK Compatibility":function(_){return _>=13056&&_<=13311},"CJK Unified Ideographs Extension A":function(_){return _>=13312&&_<=19903},"Yijing Hexagram Symbols":function(_){return _>=19904&&_<=19967},"CJK Unified Ideographs":function(_){return _>=19968&&_<=40959},"Yi Syllables":function(_){return _>=40960&&_<=42127},"Yi Radicals":function(_){return _>=42128&&_<=42191},"Hangul Jamo Extended-A":function(_){return _>=43360&&_<=43391},"Hangul Syllables":function(_){return _>=44032&&_<=55215},"Hangul Jamo Extended-B":function(_){return _>=55216&&_<=55295},"Private Use Area":function(_){return _>=57344&&_<=63743},"CJK Compatibility Ideographs":function(_){return _>=63744&&_<=64255},"Arabic Presentation Forms-A":function(_){return _>=64336&&_<=65023},"Vertical Forms":function(_){return _>=65040&&_<=65055},"CJK Compatibility Forms":function(_){return _>=65072&&_<=65103},"Small Form Variants":function(_){return _>=65104&&_<=65135},"Arabic Presentation Forms-B":function(_){return _>=65136&&_<=65279},"Halfwidth and Fullwidth Forms":function(_){return _>=65280&&_<=65519}};function rr(_){for(var R=0,U=_;R=65097&&_<=65103)||Yt["CJK Compatibility Ideographs"](_)||Yt["CJK Compatibility"](_)||Yt["CJK Radicals Supplement"](_)||Yt["CJK Strokes"](_)||Yt["CJK Symbols and Punctuation"](_)&&!(_>=12296&&_<=12305)&&!(_>=12308&&_<=12319)&&_!==12336||Yt["CJK Unified Ideographs Extension A"](_)||Yt["CJK Unified Ideographs"](_)||Yt["Enclosed CJK Letters and Months"](_)||Yt["Hangul Compatibility Jamo"](_)||Yt["Hangul Jamo Extended-A"](_)||Yt["Hangul Jamo Extended-B"](_)||Yt["Hangul Jamo"](_)||Yt["Hangul Syllables"](_)||Yt.Hiragana(_)||Yt["Ideographic Description Characters"](_)||Yt.Kanbun(_)||Yt["Kangxi Radicals"](_)||Yt["Katakana Phonetic Extensions"](_)||Yt.Katakana(_)&&_!==12540||Yt["Halfwidth and Fullwidth Forms"](_)&&_!==65288&&_!==65289&&_!==65293&&!(_>=65306&&_<=65310)&&_!==65339&&_!==65341&&_!==65343&&!(_>=65371&&_<=65503)&&_!==65507&&!(_>=65512&&_<=65519)||Yt["Small Form Variants"](_)&&!(_>=65112&&_<=65118)&&!(_>=65123&&_<=65126)||Yt["Unified Canadian Aboriginal Syllabics"](_)||Yt["Unified Canadian Aboriginal Syllabics Extended"](_)||Yt["Vertical Forms"](_)||Yt["Yijing Hexagram Symbols"](_)||Yt["Yi Syllables"](_)||Yt["Yi Radicals"](_))}function Rr(_){return!!(Yt["Latin-1 Supplement"](_)&&(_===167||_===169||_===174||_===177||_===188||_===189||_===190||_===215||_===247)||Yt["General Punctuation"](_)&&(_===8214||_===8224||_===8225||_===8240||_===8241||_===8251||_===8252||_===8258||_===8263||_===8264||_===8265||_===8273)||Yt["Letterlike Symbols"](_)||Yt["Number Forms"](_)||Yt["Miscellaneous Technical"](_)&&(_>=8960&&_<=8967||_>=8972&&_<=8991||_>=8996&&_<=9e3||_===9003||_>=9085&&_<=9114||_>=9150&&_<=9165||_===9167||_>=9169&&_<=9179||_>=9186&&_<=9215)||Yt["Control Pictures"](_)&&_!==9251||Yt["Optical Character Recognition"](_)||Yt["Enclosed Alphanumerics"](_)||Yt["Geometric Shapes"](_)||Yt["Miscellaneous Symbols"](_)&&!(_>=9754&&_<=9759)||Yt["Miscellaneous Symbols and Arrows"](_)&&(_>=11026&&_<=11055||_>=11088&&_<=11097||_>=11192&&_<=11243)||Yt["CJK Symbols and Punctuation"](_)||Yt.Katakana(_)||Yt["Private Use Area"](_)||Yt["CJK Compatibility Forms"](_)||Yt["Small Form Variants"](_)||Yt["Halfwidth and Fullwidth Forms"](_)||_===8734||_===8756||_===8757||_>=9984&&_<=10087||_>=10102&&_<=10131||_===65532||_===65533)}function Vr(_){return!(sn(_)||Rr(_))}function Kr(_){return Yt.Arabic(_)||Yt["Arabic Supplement"](_)||Yt["Arabic Extended-A"](_)||Yt["Arabic Presentation Forms-A"](_)||Yt["Arabic Presentation Forms-B"](_)}function hn(_){return _>=1424&&_<=2303||Yt["Arabic Presentation Forms-A"](_)||Yt["Arabic Presentation Forms-B"](_)}function pn(_,R){return!(!R&&hn(_)||_>=2304&&_<=3583||_>=3840&&_<=4255||Yt.Khmer(_))}function rn(_){for(var R=0,U=_;R-1&&(ea=ra.error),fa&&fa(_)};function Ua(){Ea.fire(new tr("pluginStateChange",{pluginStatus:ea,pluginURL:oa}))}var Ea=new ir,Oa=function(){return ea},ii=function(_){return _({pluginStatus:ea,pluginURL:oa}),Ea.on("pluginStateChange",_),_},Fi=function(_,R,U){if(U===void 0&&(U=!1),ea===ra.deferred||ea===ra.loading||ea===ra.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");oa=se.resolveURL(_),ea=ra.deferred,fa=R,Ua(),U||ci()},ci=function(){if(ea!==ra.deferred||!oa)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ea=ra.loading,Ua(),oa&&Bt({url:oa},function(_){_?ca(_):(ea=ra.loaded,Ua())})},qn={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ea===ra.loaded||qn.applyArabicShaping!=null},isLoading:function(){return ea===ra.loading},setState:function(R){ea=R.pluginStatus,oa=R.pluginURL},isParsed:function(){return qn.applyArabicShaping!=null&&qn.processBidirectionalText!=null&&qn.processStyledBidirectionalText!=null},getPluginURL:function(){return oa}},Ha=function(){!qn.isLoading()&&!qn.isLoaded()&&Oa()==="deferred"&&ci()},Sa=function(R,U){this.zoom=R,U?(this.now=U.now,this.fadeDuration=U.fadeDuration,this.zoomHistory=U.zoomHistory,this.transition=U.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Gt,this.transition={})};Sa.prototype.isSupportedScript=function(R){return Hn(R,qn.isLoaded())},Sa.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Sa.prototype.getCrossfadeParameters=function(){var R=this.zoom,U=R-Math.floor(R),ae=this.crossFadingFactor();return R>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:U+(1-U)*ae}:{fromScale:.5,toScale:1,t:1-(1-ae)*U}};var Ja=function(R,U){this.property=R,this.value=U,this.expression=ju(U===void 0?R.specification.default:U,R.specification)};Ja.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ja.prototype.possiblyEvaluate=function(R,U,ae){return this.property.possiblyEvaluate(this,R,U,ae)};var wi=function(R){this.property=R,this.value=new Ja(R,void 0)};wi.prototype.transitioned=function(R,U){return new $i(this.property,this.value,U,x({},R.transition,this.transition),R.now)},wi.prototype.untransitioned=function(){return new $i(this.property,this.value,null,{},0)};var oi=function(R){this._properties=R,this._values=Object.create(R.defaultTransitionablePropertyValues)};oi.prototype.getValue=function(R){return N(this._values[R].value.value)},oi.prototype.setValue=function(R,U){this._values.hasOwnProperty(R)||(this._values[R]=new wi(this._values[R].property)),this._values[R].value=new Ja(this._values[R].property,U===null?void 0:N(U))},oi.prototype.getTransition=function(R){return N(this._values[R].transition)},oi.prototype.setTransition=function(R,U){this._values.hasOwnProperty(R)||(this._values[R]=new wi(this._values[R].property)),this._values[R].transition=N(U)||void 0},oi.prototype.serialize=function(){for(var R={},U=0,ae=Object.keys(this._values);Uthis.end)return this.prior=null,we;if(this.value.isDataDriven())return this.prior=null,we;if(veEe.zoomHistory.lastIntegerZoom?{from:ae,to:ve}:{from:we,to:ve}},R.prototype.interpolate=function(ae){return ae},R}(La),Fo=function(R){this.specification=R};Fo.prototype.possiblyEvaluate=function(R,U,ae,ve){if(R.value!==void 0)if(R.expression.kind==="constant"){var we=R.expression.evaluate(U,null,{},ae,ve);return this._calculate(we,we,we,U)}else return this._calculate(R.expression.evaluate(new Sa(Math.floor(U.zoom-1),U)),R.expression.evaluate(new Sa(Math.floor(U.zoom),U)),R.expression.evaluate(new Sa(Math.floor(U.zoom+1),U)),U)},Fo.prototype._calculate=function(R,U,ae,ve){var we=ve.zoom;return we>ve.zoomHistory.lastIntegerZoom?{from:R,to:U}:{from:ae,to:U}},Fo.prototype.interpolate=function(R){return R};var io=function(R){this.specification=R};io.prototype.possiblyEvaluate=function(R,U,ae,ve){return!!R.expression.evaluate(U,null,{},ae,ve)},io.prototype.interpolate=function(){return!1};var hi=function(R){this.properties=R,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var U in R){var ae=R[U];ae.specification.overridable&&this.overridableProperties.push(U);var ve=this.defaultPropertyValues[U]=new Ja(ae,void 0),we=this.defaultTransitionablePropertyValues[U]=new wi(ae);this.defaultTransitioningPropertyValues[U]=we.untransitioned(),this.defaultPossiblyEvaluatedValues[U]=ve.possiblyEvaluate({})}};Be("DataDrivenProperty",La),Be("DataConstantProperty",la),Be("CrossFadedDataDrivenProperty",Ro),Be("CrossFadedProperty",Fo),Be("ColorRampProperty",io);var Wi="-transition",Ni=function(_){function R(U,ae){if(_.call(this),this.id=U.id,this.type=U.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},U.type!=="custom"&&(U=U,this.metadata=U.metadata,this.minzoom=U.minzoom,this.maxzoom=U.maxzoom,U.type!=="background"&&(this.source=U.source,this.sourceLayer=U["source-layer"],this.filter=U.filter),ae.layout&&(this._unevaluatedLayout=new ao(ae.layout)),ae.paint)){this._transitionablePaint=new oi(ae.paint);for(var ve in U.paint)this.setPaintProperty(ve,U.paint[ve],{validate:!1});for(var we in U.layout)this.setLayoutProperty(we,U.layout[we],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new go(ae.paint)}}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},R.prototype.getLayoutProperty=function(ae){return ae==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ae)},R.prototype.setLayoutProperty=function(ae,ve,we){if(we===void 0&&(we={}),ve!=null){var Ee="layers."+this.id+".layout."+ae;if(this._validate(Da,Ee,ae,ve,we))return}if(ae==="visibility"){this.visibility=ve;return}this._unevaluatedLayout.setValue(ae,ve)},R.prototype.getPaintProperty=function(ae){return b(ae,Wi)?this._transitionablePaint.getTransition(ae.slice(0,-Wi.length)):this._transitionablePaint.getValue(ae)},R.prototype.setPaintProperty=function(ae,ve,we){if(we===void 0&&(we={}),ve!=null){var Ee="layers."+this.id+".paint."+ae;if(this._validate(Ra,Ee,ae,ve,we))return!1}if(b(ae,Wi))return this._transitionablePaint.setTransition(ae.slice(0,-Wi.length),ve||void 0),!1;var Je=this._transitionablePaint._values[ae],dt=Je.property.specification["property-type"]==="cross-faded-data-driven",Mt=Je.value.isDataDriven(),_t=Je.value;this._transitionablePaint.setValue(ae,ve),this._handleSpecialPaintPropertyUpdate(ae);var jt=this._transitionablePaint._values[ae].value,nr=jt.isDataDriven();return nr||Mt||dt||this._handleOverridablePaintPropertyUpdate(ae,_t,jt)},R.prototype._handleSpecialPaintPropertyUpdate=function(ae){},R.prototype._handleOverridablePaintPropertyUpdate=function(ae,ve,we){return!1},R.prototype.isHidden=function(ae){return this.minzoom&&ae=this.maxzoom?!0:this.visibility==="none"},R.prototype.updateTransitions=function(ae){this._transitioningPaint=this._transitionablePaint.transitioned(ae,this._transitioningPaint)},R.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},R.prototype.recalculate=function(ae,ve){ae.getCrossfadeParameters&&(this._crossfadeParameters=ae.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ae,void 0,ve)),this.paint=this._transitioningPaint.possiblyEvaluate(ae,void 0,ve)},R.prototype.serialize=function(){var ae={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&&(ae.layout=ae.layout||{},ae.layout.visibility=this.visibility),D(ae,function(ve,we){return ve!==void 0&&!(we==="layout"&&!Object.keys(ve).length)&&!(we==="paint"&&!Object.keys(ve).length)})},R.prototype._validate=function(ae,ve,we,Ee,Je){return Je===void 0&&(Je={}),Je&&Je.validate===!1?!1:ka(this,ae.call(Dn,{key:ve,layerType:this.type,objectKey:we,value:Ee,styleSpec:Ar,style:{glyphs:!0,sprite:!0}}))},R.prototype.is3D=function(){return!1},R.prototype.isTileClipped=function(){return!1},R.prototype.hasOffscreenPass=function(){return!1},R.prototype.resize=function(){},R.prototype.isStateDependent=function(){for(var ae in this.paint._values){var ve=this.paint.get(ae);if(!(!(ve instanceof Ti)||!_s(ve.property.specification))&&(ve.value.kind==="source"||ve.value.kind==="composite")&&ve.value.isStateDependent)return!0}return!1},R}(ir),ps={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ds=function(R,U){this._structArray=R,this._pos1=U*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Li=128,Gl=5,Qa=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qa.serialize=function(R,U){return R._trim(),U&&(R.isTransferred=!0,U.push(R.arrayBuffer)),{length:R.length,arrayBuffer:R.arrayBuffer}},Qa.deserialize=function(R){var U=Object.create(this.prototype);return U.arrayBuffer=R.arrayBuffer,U.length=R.length,U.capacity=R.arrayBuffer.byteLength/U.bytesPerElement,U._refreshViews(),U},Qa.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qa.prototype.clear=function(){this.length=0},Qa.prototype.resize=function(R){this.reserve(R),this.length=R},Qa.prototype.reserve=function(R){if(R>this.capacity){this.capacity=Math.max(R,Math.floor(this.capacity*Gl),Li),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var U=this.uint8;this._refreshViews(),U&&this.uint8.set(U)}},Qa.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Pi(_,R){R===void 0&&(R=1);var U=0,ae=0,ve=_.map(function(Ee){var Je=uh(Ee.type),dt=U=Jd(U,Math.max(R,Je)),Mt=Ee.components||1;return ae=Math.max(ae,Je),U+=Je*Mt,{name:Ee.name,type:Ee.type,components:Mt,offset:dt}}),we=Jd(U,Math.max(ae,R));return{members:ve,size:we,alignment:R}}function uh(_){return ps[_].BYTES_PER_ELEMENT}function Jd(_,R){return Math.ceil(_/R)*R}var Af=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var we=this.length;return this.resize(we+1),this.emplace(we,ae,ve)},R.prototype.emplace=function(ae,ve,we){var Ee=ae*2;return this.int16[Ee+0]=ve,this.int16[Ee+1]=we,ae},R}(Qa);Af.prototype.bytesPerElement=4,Be("StructArrayLayout2i4",Af);var Fv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee){var Je=this.length;return this.resize(Je+1),this.emplace(Je,ae,ve,we,Ee)},R.prototype.emplace=function(ae,ve,we,Ee,Je){var dt=ae*4;return this.int16[dt+0]=ve,this.int16[dt+1]=we,this.int16[dt+2]=Ee,this.int16[dt+3]=Je,ae},R}(Qa);Fv.prototype.bytesPerElement=8,Be("StructArrayLayout4i8",Fv);var Ku=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt){var Mt=this.length;return this.resize(Mt+1),this.emplace(Mt,ae,ve,we,Ee,Je,dt)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt){var _t=ae*6;return this.int16[_t+0]=ve,this.int16[_t+1]=we,this.int16[_t+2]=Ee,this.int16[_t+3]=Je,this.int16[_t+4]=dt,this.int16[_t+5]=Mt,ae},R}(Qa);Ku.prototype.bytesPerElement=12,Be("StructArrayLayout2i4i12",Ku);var uc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt){var Mt=this.length;return this.resize(Mt+1),this.emplace(Mt,ae,ve,we,Ee,Je,dt)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt){var _t=ae*4,jt=ae*8;return this.int16[_t+0]=ve,this.int16[_t+1]=we,this.uint8[jt+4]=Ee,this.uint8[jt+5]=Je,this.uint8[jt+6]=dt,this.uint8[jt+7]=Mt,ae},R}(Qa);uc.prototype.bytesPerElement=8,Be("StructArrayLayout2i4ub8",uc);var fc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var we=this.length;return this.resize(we+1),this.emplace(we,ae,ve)},R.prototype.emplace=function(ae,ve,we){var Ee=ae*2;return this.float32[Ee+0]=ve,this.float32[Ee+1]=we,ae},R}(Qa);fc.prototype.bytesPerElement=8,Be("StructArrayLayout2f8",fc);var ts=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr){var er=this.length;return this.resize(er+1),this.emplace(er,ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er){var br=ae*10;return this.uint16[br+0]=ve,this.uint16[br+1]=we,this.uint16[br+2]=Ee,this.uint16[br+3]=Je,this.uint16[br+4]=dt,this.uint16[br+5]=Mt,this.uint16[br+6]=_t,this.uint16[br+7]=jt,this.uint16[br+8]=nr,this.uint16[br+9]=er,ae},R}(Qa);ts.prototype.bytesPerElement=20,Be("StructArrayLayout10ui20",ts);var Ju=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br){var Br=this.length;return this.resize(Br+1),this.emplace(Br,ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br){var cn=ae*12;return this.int16[cn+0]=ve,this.int16[cn+1]=we,this.int16[cn+2]=Ee,this.int16[cn+3]=Je,this.uint16[cn+4]=dt,this.uint16[cn+5]=Mt,this.uint16[cn+6]=_t,this.uint16[cn+7]=jt,this.int16[cn+8]=nr,this.int16[cn+9]=er,this.int16[cn+10]=br,this.int16[cn+11]=Br,ae},R}(Qa);Ju.prototype.bytesPerElement=24,Be("StructArrayLayout4i4ui4i24",Ju);var Nv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we){var Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,ae,ve,we)},R.prototype.emplace=function(ae,ve,we,Ee){var Je=ae*3;return this.float32[Je+0]=ve,this.float32[Je+1]=we,this.float32[Je+2]=Ee,ae},R}(Qa);Nv.prototype.bytesPerElement=12,Be("StructArrayLayout3f12",Nv);var Bv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var we=ae*1;return this.uint32[we+0]=ve,ae},R}(Qa);Bv.prototype.bytesPerElement=4,Be("StructArrayLayout1ul4",Bv);var fh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.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)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt){var nr=this.length;return this.resize(nr+1),this.emplace(nr,ae,ve,we,Ee,Je,dt,Mt,_t,jt)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr){var er=ae*10,br=ae*5;return this.int16[er+0]=ve,this.int16[er+1]=we,this.int16[er+2]=Ee,this.int16[er+3]=Je,this.int16[er+4]=dt,this.int16[er+5]=Mt,this.uint32[br+3]=_t,this.uint16[er+8]=jt,this.uint16[er+9]=nr,ae},R}(Qa);fh.prototype.bytesPerElement=20,Be("StructArrayLayout6i1ul2ui20",fh);var kh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt){var Mt=this.length;return this.resize(Mt+1),this.emplace(Mt,ae,ve,we,Ee,Je,dt)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt){var _t=ae*6;return this.int16[_t+0]=ve,this.int16[_t+1]=we,this.int16[_t+2]=Ee,this.int16[_t+3]=Je,this.int16[_t+4]=dt,this.int16[_t+5]=Mt,ae},R}(Qa);kh.prototype.bytesPerElement=12,Be("StructArrayLayout2i2i2i12",kh);var bu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je){var dt=this.length;return this.resize(dt+1),this.emplace(dt,ae,ve,we,Ee,Je)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt){var Mt=ae*4,_t=ae*8;return this.float32[Mt+0]=ve,this.float32[Mt+1]=we,this.float32[Mt+2]=Ee,this.int16[_t+6]=Je,this.int16[_t+7]=dt,ae},R}(Qa);bu.prototype.bytesPerElement=16,Be("StructArrayLayout2f1f2i16",bu);var gs=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee){var Je=this.length;return this.resize(Je+1),this.emplace(Je,ae,ve,we,Ee)},R.prototype.emplace=function(ae,ve,we,Ee,Je){var dt=ae*12,Mt=ae*3;return this.uint8[dt+0]=ve,this.uint8[dt+1]=we,this.float32[Mt+1]=Ee,this.float32[Mt+2]=Je,ae},R}(Qa);gs.prototype.bytesPerElement=12,Be("StructArrayLayout2ub2f12",gs);var wu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we){var Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,ae,ve,we)},R.prototype.emplace=function(ae,ve,we,Ee){var Je=ae*3;return this.uint16[Je+0]=ve,this.uint16[Je+1]=we,this.uint16[Je+2]=Ee,ae},R}(Qa);wu.prototype.bytesPerElement=6,Be("StructArrayLayout3ui6",wu);var ch=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.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)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn){var Cn=this.length;return this.resize(Cn+1),this.emplace(Cn,ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn,Cn){var kn=ae*24,jn=ae*12,aa=ae*48;return this.int16[kn+0]=ve,this.int16[kn+1]=we,this.uint16[kn+2]=Ee,this.uint16[kn+3]=Je,this.uint32[jn+2]=dt,this.uint32[jn+3]=Mt,this.uint32[jn+4]=_t,this.uint16[kn+10]=jt,this.uint16[kn+11]=nr,this.uint16[kn+12]=er,this.float32[jn+7]=br,this.float32[jn+8]=Br,this.uint8[aa+36]=cn,this.uint8[aa+37]=nn,this.uint8[aa+38]=Ln,this.uint32[jn+10]=yn,this.int16[kn+22]=Cn,ae},R}(Qa);ch.prototype.bytesPerElement=48,Be("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",ch);var zh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.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)},R.prototype.emplaceBack=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn,Cn,kn,jn,aa,ta,Ta,pa,ba,Va,Aa,Ca){var ja=this.length;return this.resize(ja+1),this.emplace(ja,ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn,Cn,kn,jn,aa,ta,Ta,pa,ba,Va,Aa,Ca)},R.prototype.emplace=function(ae,ve,we,Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn,Ln,yn,Cn,kn,jn,aa,ta,Ta,pa,ba,Va,Aa,Ca,ja){var Ba=ae*34,li=ae*17;return this.int16[Ba+0]=ve,this.int16[Ba+1]=we,this.int16[Ba+2]=Ee,this.int16[Ba+3]=Je,this.int16[Ba+4]=dt,this.int16[Ba+5]=Mt,this.int16[Ba+6]=_t,this.int16[Ba+7]=jt,this.uint16[Ba+8]=nr,this.uint16[Ba+9]=er,this.uint16[Ba+10]=br,this.uint16[Ba+11]=Br,this.uint16[Ba+12]=cn,this.uint16[Ba+13]=nn,this.uint16[Ba+14]=Ln,this.uint16[Ba+15]=yn,this.uint16[Ba+16]=Cn,this.uint16[Ba+17]=kn,this.uint16[Ba+18]=jn,this.uint16[Ba+19]=aa,this.uint16[Ba+20]=ta,this.uint16[Ba+21]=Ta,this.uint16[Ba+22]=pa,this.uint32[li+12]=ba,this.float32[li+13]=Va,this.float32[li+14]=Aa,this.float32[li+15]=Ca,this.float32[li+16]=ja,ae},R}(Qa);zh.prototype.bytesPerElement=68,Be("StructArrayLayout8i15ui1ul4f68",zh);var cc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var we=ae*1;return this.float32[we+0]=ve,ae},R}(Qa);cc.prototype.bytesPerElement=4,Be("StructArrayLayout1f4",cc);var Uv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we){var Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,ae,ve,we)},R.prototype.emplace=function(ae,ve,we,Ee){var Je=ae*3;return this.int16[Je+0]=ve,this.int16[Je+1]=we,this.int16[Je+2]=Ee,ae},R}(Qa);Uv.prototype.bytesPerElement=6,Be("StructArrayLayout3i6",Uv);var Qu=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we){var Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,ae,ve,we)},R.prototype.emplace=function(ae,ve,we,Ee){var Je=ae*2,dt=ae*4;return this.uint32[Je+0]=ve,this.uint16[dt+2]=we,this.uint16[dt+3]=Ee,ae},R}(Qa);Qu.prototype.bytesPerElement=8,Be("StructArrayLayout1ul2ui8",Qu);var hh=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve){var we=this.length;return this.resize(we+1),this.emplace(we,ae,ve)},R.prototype.emplace=function(ae,ve,we){var Ee=ae*2;return this.uint16[Ee+0]=ve,this.uint16[Ee+1]=we,ae},R}(Qa);hh.prototype.bytesPerElement=4,Be("StructArrayLayout2ui4",hh);var hc=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae){var ve=this.length;return this.resize(ve+1),this.emplace(ve,ae)},R.prototype.emplace=function(ae,ve){var we=ae*1;return this.uint16[we+0]=ve,ae},R}(Qa);hc.prototype.bytesPerElement=2,Be("StructArrayLayout1ui2",hc);var Sf=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(ae,ve,we,Ee){var Je=this.length;return this.resize(Je+1),this.emplace(Je,ae,ve,we,Ee)},R.prototype.emplace=function(ae,ve,we,Ee,Je){var dt=ae*4;return this.float32[dt+0]=ve,this.float32[dt+1]=we,this.float32[dt+2]=Ee,this.float32[dt+3]=Je,ae},R}(Qa);Sf.prototype.bytesPerElement=16,Be("StructArrayLayout4f16",Sf);var Qd=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R;var U={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 U.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},U.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},U.x1.get=function(){return this._structArray.int16[this._pos2+2]},U.y1.get=function(){return this._structArray.int16[this._pos2+3]},U.x2.get=function(){return this._structArray.int16[this._pos2+4]},U.y2.get=function(){return this._structArray.int16[this._pos2+5]},U.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},U.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},U.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},U.anchorPoint.get=function(){return new r(this.anchorPointX,this.anchorPointY)},Object.defineProperties(R.prototype,U),R}(Ds);Qd.prototype.size=20;var Vv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new Qd(this,ae)},R}(fh);Be("CollisionBoxArray",Vv);var Mf=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R;var U={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 U.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},U.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},U.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},U.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},U.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},U.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},U.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},U.segment.get=function(){return this._structArray.uint16[this._pos2+10]},U.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},U.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},U.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},U.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},U.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},U.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},U.placedOrientation.set=function(ae){this._structArray.uint8[this._pos1+37]=ae},U.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},U.hidden.set=function(ae){this._structArray.uint8[this._pos1+38]=ae},U.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},U.crossTileID.set=function(ae){this._structArray.uint32[this._pos4+10]=ae},U.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(R.prototype,U),R}(Ds);Mf.prototype.size=48;var Hv=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new Mf(this,ae)},R}(ch);Be("PlacedSymbolArray",Hv);var vc=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R;var U={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 U.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},U.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},U.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},U.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},U.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},U.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},U.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},U.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},U.key.get=function(){return this._structArray.uint16[this._pos2+8]},U.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},U.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},U.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},U.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},U.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},U.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},U.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},U.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},U.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},U.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},U.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},U.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},U.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},U.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},U.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},U.crossTileID.set=function(ae){this._structArray.uint32[this._pos4+12]=ae},U.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},U.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},U.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},U.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(R.prototype,U),R}(Ds);vc.prototype.size=68;var $d=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new vc(this,ae)},R}(zh);Be("SymbolInstanceArray",$d);var qd=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.getoffsetX=function(ae){return this.float32[ae*1+0]},R}(cc);Be("GlyphOffsetArray",qd);var hl=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.getx=function(ae){return this.int16[ae*3+0]},R.prototype.gety=function(ae){return this.int16[ae*3+1]},R.prototype.gettileUnitDistanceFromAnchor=function(ae){return this.int16[ae*3+2]},R}(Uv);Be("SymbolLineVertexArray",hl);var ep=function(_){function R(){_.apply(this,arguments)}_&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R;var U={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return U.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},U.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},U.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(R.prototype,U),R}(Ds);ep.prototype.size=8;var tp=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.get=function(ae){return new ep(this,ae)},R}(Qu);Be("FeatureIndexArray",tp);var G0=Pi([{name:"a_pos",components:2,type:"Int16"}],4),rp=G0.members,oo=function(R){R===void 0&&(R=[]),this.segments=R};oo.prototype.prepareSegment=function(R,U,ae,ve){var we=this.segments[this.segments.length-1];return R>oo.MAX_VERTEX_ARRAY_LENGTH&&F("Max vertices per segment is "+oo.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+R),(!we||we.vertexLength+R>oo.MAX_VERTEX_ARRAY_LENGTH||we.sortKey!==ve)&&(we={vertexOffset:U.length,primitiveOffset:ae.length,vertexLength:0,primitiveLength:0},ve!==void 0&&(we.sortKey=ve),this.segments.push(we)),we},oo.prototype.get=function(){return this.segments},oo.prototype.destroy=function(){for(var R=0,U=this.segments;R>>16)*dt&65535)<<16)&4294967295,_t=_t<<15|_t>>>17,_t=(_t&65535)*Mt+(((_t>>>16)*Mt&65535)<<16)&4294967295,Ee^=_t,Ee=Ee<<13|Ee>>>19,Je=(Ee&65535)*5+(((Ee>>>16)*5&65535)<<16)&4294967295,Ee=(Je&65535)+27492+(((Je>>>16)+58964&65535)<<16);switch(_t=0,ve){case 3:_t^=(U.charCodeAt(jt+2)&255)<<16;case 2:_t^=(U.charCodeAt(jt+1)&255)<<8;case 1:_t^=U.charCodeAt(jt)&255,_t=(_t&65535)*dt+(((_t>>>16)*dt&65535)<<16)&4294967295,_t=_t<<15|_t>>>17,_t=(_t&65535)*Mt+(((_t>>>16)*Mt&65535)<<16)&4294967295,Ee^=_t}return Ee^=U.length,Ee^=Ee>>>16,Ee=(Ee&65535)*2246822507+(((Ee>>>16)*2246822507&65535)<<16)&4294967295,Ee^=Ee>>>13,Ee=(Ee&65535)*3266489909+(((Ee>>>16)*3266489909&65535)<<16)&4294967295,Ee^=Ee>>>16,Ee>>>0}_.exports=R}),ee=L(function(_){function R(U,ae){for(var ve=U.length,we=ae^ve,Ee=0,Je;ve>=4;)Je=U.charCodeAt(Ee)&255|(U.charCodeAt(++Ee)&255)<<8|(U.charCodeAt(++Ee)&255)<<16|(U.charCodeAt(++Ee)&255)<<24,Je=(Je&65535)*1540483477+(((Je>>>16)*1540483477&65535)<<16),Je^=Je>>>24,Je=(Je&65535)*1540483477+(((Je>>>16)*1540483477&65535)<<16),we=(we&65535)*1540483477+(((we>>>16)*1540483477&65535)<<16)^Je,ve-=4,++Ee;switch(ve){case 3:we^=(U.charCodeAt(Ee+2)&255)<<16;case 2:we^=(U.charCodeAt(Ee+1)&255)<<8;case 1:we^=U.charCodeAt(Ee)&255,we=(we&65535)*1540483477+(((we>>>16)*1540483477&65535)<<16)}return we^=we>>>13,we=(we&65535)*1540483477+(((we>>>16)*1540483477&65535)<<16),we^=we>>>15,we>>>0}_.exports=R}),pe=de,Oe=de,Xe=ee;pe.murmur3=Oe,pe.murmur2=Xe;var ft=function(){this.ids=[],this.positions=[],this.indexed=!1};ft.prototype.add=function(R,U,ae,ve){this.ids.push(Ht(R)),this.positions.push(U,ae,ve)},ft.prototype.getPositions=function(R){for(var U=Ht(R),ae=0,ve=this.ids.length-1;ae>1;this.ids[we]>=U?ve=we:ae=we+1}for(var Ee=[];this.ids[ae]===U;){var Je=this.positions[3*ae],dt=this.positions[3*ae+1],Mt=this.positions[3*ae+2];Ee.push({index:Je,start:dt,end:Mt}),ae++}return Ee},ft.serialize=function(R,U){var ae=new Float64Array(R.ids),ve=new Uint32Array(R.positions);return qt(ae,ve,0,ae.length-1),U&&U.push(ae.buffer,ve.buffer),{ids:ae,positions:ve}},ft.deserialize=function(R){var U=new ft;return U.ids=R.ids,U.positions=R.positions,U.indexed=!0,U};var Lt=Math.pow(2,53)-1;function Ht(_){var R=+_;return!isNaN(R)&&R<=Lt?R:pe(String(_))}function qt(_,R,U,ae){for(;U>1],we=U-1,Ee=ae+1;;){do we++;while(_[we]ve);if(we>=Ee)break;lr(_,we,Ee),lr(R,3*we,3*Ee),lr(R,3*we+1,3*Ee+1),lr(R,3*we+2,3*Ee+2)}Ee-UEe.x+1||dtEe.y+1)&&F("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return U}function Si(_,R){return{type:_.type,id:_.id,properties:_.properties,geometry:R?ri(_):[]}}function $a(_,R,U,ae,ve){_.emplaceBack(R*2+(ae+1)/2,U*2+(ve+1)/2)}var mi=function(R){this.zoom=R.zoom,this.overscaling=R.overscaling,this.layers=R.layers,this.layerIds=this.layers.map(function(U){return U.id}),this.index=R.index,this.hasPattern=!1,this.layoutVertexArray=new Af,this.indexArray=new wu,this.segments=new oo,this.programConfigurations=new da(R.layers,R.zoom),this.stateDependentLayerIds=this.layers.filter(function(U){return U.isStateDependent()}).map(function(U){return U.id})};mi.prototype.populate=function(R,U,ae){var ve=this.layers[0],we=[],Ee=null;ve.type==="circle"&&(Ee=ve.layout.get("circle-sort-key"));for(var Je=0,dt=R;Je=Ma||nr<0||nr>=Ma)){var er=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,R.sortKey),br=er.vertexLength;$a(this.layoutVertexArray,jt,nr,-1,-1),$a(this.layoutVertexArray,jt,nr,1,-1),$a(this.layoutVertexArray,jt,nr,1,1),$a(this.layoutVertexArray,jt,nr,-1,1),this.indexArray.emplaceBack(br,br+1,br+2),this.indexArray.emplaceBack(br,br+3,br+2),er.vertexLength+=4,er.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,R,ae,{},ve)},Be("CircleBucket",mi,{omit:["layers"]});function Wa(_,R){for(var U=0;U<_.length;U++)if(rs(R,_[U]))return!0;for(var ae=0;ae=3){for(var we=0;we1){if(Js(_,R))return!0;for(var ae=0;ae1?_.distSqr(U):_.distSqr(U.sub(R)._mult(ve)._add(R))}function Yl(_,R){for(var U=!1,ae,ve,we,Ee=0;Ee<_.length;Ee++){ae=_[Ee];for(var Je=0,dt=ae.length-1;JeR.y!=we.y>R.y&&R.x<(we.x-ve.x)*(R.y-ve.y)/(we.y-ve.y)+ve.x&&(U=!U)}return U}function rs(_,R){for(var U=!1,ae=0,ve=_.length-1;ae<_.length;ve=ae++){var we=_[ae],Ee=_[ve];we.y>R.y!=Ee.y>R.y&&R.x<(Ee.x-we.x)*(R.y-we.y)/(Ee.y-we.y)+we.x&&(U=!U)}return U}function jl(_,R,U,ae,ve){for(var we=0,Ee=_;we=Je.x&&ve>=Je.y)return!0}var dt=[new r(R,U),new r(R,ve),new r(ae,ve),new r(ae,U)];if(_.length>2)for(var Mt=0,_t=dt;Mt<_t.length;Mt+=1){var jt=_t[Mt];if(rs(_,jt))return!0}for(var nr=0;nr<_.length-1;nr++){var er=_[nr],br=_[nr+1];if(ys(er,br,dt))return!0}return!1}function ys(_,R,U){var ae=U[0],ve=U[2];if(_.xve.x&&R.x>ve.x||_.yve.y&&R.y>ve.y)return!1;var we=z(_,R,U[0]);return we!==z(_,R,U[1])||we!==z(_,R,U[2])||we!==z(_,R,U[3])}function ns(_,R,U){var ae=R.paint.get(_).value;return ae.kind==="constant"?ae.value:U.programConfigurations.get(R.id).getMaxValue(_)}function dl(_){return Math.sqrt(_[0]*_[0]+_[1]*_[1])}function Tu(_,R,U,ae,ve){if(!R[0]&&!R[1])return _;var we=r.convert(R)._mult(ve);U==="viewport"&&we._rotate(-ae);for(var Ee=[],Je=0;Je<_.length;Je++){var dt=_[Je];Ee.push(dt.sub(we))}return Ee}var pl=new hi({"circle-sort-key":new La(Ar.layout_circle["circle-sort-key"])}),Oh=new hi({"circle-radius":new La(Ar.paint_circle["circle-radius"]),"circle-color":new La(Ar.paint_circle["circle-color"]),"circle-blur":new La(Ar.paint_circle["circle-blur"]),"circle-opacity":new La(Ar.paint_circle["circle-opacity"]),"circle-translate":new la(Ar.paint_circle["circle-translate"]),"circle-translate-anchor":new la(Ar.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new la(Ar.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new la(Ar.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new La(Ar.paint_circle["circle-stroke-width"]),"circle-stroke-color":new La(Ar.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new La(Ar.paint_circle["circle-stroke-opacity"])}),dc={paint:Oh,layout:pl},To=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var _=arguments,R=0,U=arguments.length;U--;)R+=_[U]*_[U];return Math.sqrt(R)});function Fh(){var _=new To(4);return To!=Float32Array&&(_[1]=0,_[2]=0),_[0]=1,_[3]=1,_}function vh(_,R,U){var ae=R[0],ve=R[1],we=R[2],Ee=R[3],Je=Math.sin(U),dt=Math.cos(U);return _[0]=ae*dt+we*Je,_[1]=ve*dt+Ee*Je,_[2]=ae*-Je+we*dt,_[3]=ve*-Je+Ee*dt,_}function Ho(){var _=new To(9);return To!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[5]=0,_[6]=0,_[7]=0),_[0]=1,_[4]=1,_[8]=1,_}function pc(_,R){var U=Math.sin(R),ae=Math.cos(R);return _[0]=ae,_[1]=U,_[2]=0,_[3]=-U,_[4]=ae,_[5]=0,_[6]=0,_[7]=0,_[8]=1,_}function Nh(){var _=new To(16);return To!=Float32Array&&(_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=0,_[12]=0,_[13]=0,_[14]=0),_[0]=1,_[5]=1,_[10]=1,_[15]=1,_}function Bh(_){var R=new To(16);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R[3]=_[3],R[4]=_[4],R[5]=_[5],R[6]=_[6],R[7]=_[7],R[8]=_[8],R[9]=_[9],R[10]=_[10],R[11]=_[11],R[12]=_[12],R[13]=_[13],R[14]=_[14],R[15]=_[15],R}function Uh(_){return _[0]=1,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=1,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=1,_[11]=0,_[12]=0,_[13]=0,_[14]=0,_[15]=1,_}function gc(_,R){var U=R[0],ae=R[1],ve=R[2],we=R[3],Ee=R[4],Je=R[5],dt=R[6],Mt=R[7],_t=R[8],jt=R[9],nr=R[10],er=R[11],br=R[12],Br=R[13],cn=R[14],nn=R[15],Ln=U*Je-ae*Ee,yn=U*dt-ve*Ee,Cn=U*Mt-we*Ee,kn=ae*dt-ve*Je,jn=ae*Mt-we*Je,aa=ve*Mt-we*dt,ta=_t*Br-jt*br,Ta=_t*cn-nr*br,pa=_t*nn-er*br,ba=jt*cn-nr*Br,Va=jt*nn-er*Br,Aa=nr*nn-er*cn,Ca=Ln*Aa-yn*Va+Cn*ba+kn*pa-jn*Ta+aa*ta;return Ca?(Ca=1/Ca,_[0]=(Je*Aa-dt*Va+Mt*ba)*Ca,_[1]=(ve*Va-ae*Aa-we*ba)*Ca,_[2]=(Br*aa-cn*jn+nn*kn)*Ca,_[3]=(nr*jn-jt*aa-er*kn)*Ca,_[4]=(dt*pa-Ee*Aa-Mt*Ta)*Ca,_[5]=(U*Aa-ve*pa+we*Ta)*Ca,_[6]=(cn*Cn-br*aa-nn*yn)*Ca,_[7]=(_t*aa-nr*Cn+er*yn)*Ca,_[8]=(Ee*Va-Je*pa+Mt*ta)*Ca,_[9]=(ae*pa-U*Va-we*ta)*Ca,_[10]=(br*jn-Br*Cn+nn*Ln)*Ca,_[11]=(jt*Cn-_t*jn-er*Ln)*Ca,_[12]=(Je*Ta-Ee*ba-dt*ta)*Ca,_[13]=(U*ba-ae*Ta+ve*ta)*Ca,_[14]=(Br*yn-br*kn-cn*Ln)*Ca,_[15]=(_t*kn-jt*yn+nr*Ln)*Ca,_):null}function yc(_,R,U){var ae=R[0],ve=R[1],we=R[2],Ee=R[3],Je=R[4],dt=R[5],Mt=R[6],_t=R[7],jt=R[8],nr=R[9],er=R[10],br=R[11],Br=R[12],cn=R[13],nn=R[14],Ln=R[15],yn=U[0],Cn=U[1],kn=U[2],jn=U[3];return _[0]=yn*ae+Cn*Je+kn*jt+jn*Br,_[1]=yn*ve+Cn*dt+kn*nr+jn*cn,_[2]=yn*we+Cn*Mt+kn*er+jn*nn,_[3]=yn*Ee+Cn*_t+kn*br+jn*Ln,yn=U[4],Cn=U[5],kn=U[6],jn=U[7],_[4]=yn*ae+Cn*Je+kn*jt+jn*Br,_[5]=yn*ve+Cn*dt+kn*nr+jn*cn,_[6]=yn*we+Cn*Mt+kn*er+jn*nn,_[7]=yn*Ee+Cn*_t+kn*br+jn*Ln,yn=U[8],Cn=U[9],kn=U[10],jn=U[11],_[8]=yn*ae+Cn*Je+kn*jt+jn*Br,_[9]=yn*ve+Cn*dt+kn*nr+jn*cn,_[10]=yn*we+Cn*Mt+kn*er+jn*nn,_[11]=yn*Ee+Cn*_t+kn*br+jn*Ln,yn=U[12],Cn=U[13],kn=U[14],jn=U[15],_[12]=yn*ae+Cn*Je+kn*jt+jn*Br,_[13]=yn*ve+Cn*dt+kn*nr+jn*cn,_[14]=yn*we+Cn*Mt+kn*er+jn*nn,_[15]=yn*Ee+Cn*_t+kn*br+jn*Ln,_}function Yi(_,R,U){var ae=U[0],ve=U[1],we=U[2],Ee,Je,dt,Mt,_t,jt,nr,er,br,Br,cn,nn;return R===_?(_[12]=R[0]*ae+R[4]*ve+R[8]*we+R[12],_[13]=R[1]*ae+R[5]*ve+R[9]*we+R[13],_[14]=R[2]*ae+R[6]*ve+R[10]*we+R[14],_[15]=R[3]*ae+R[7]*ve+R[11]*we+R[15]):(Ee=R[0],Je=R[1],dt=R[2],Mt=R[3],_t=R[4],jt=R[5],nr=R[6],er=R[7],br=R[8],Br=R[9],cn=R[10],nn=R[11],_[0]=Ee,_[1]=Je,_[2]=dt,_[3]=Mt,_[4]=_t,_[5]=jt,_[6]=nr,_[7]=er,_[8]=br,_[9]=Br,_[10]=cn,_[11]=nn,_[12]=Ee*ae+_t*ve+br*we+R[12],_[13]=Je*ae+jt*ve+Br*we+R[13],_[14]=dt*ae+nr*ve+cn*we+R[14],_[15]=Mt*ae+er*ve+nn*we+R[15]),_}function ms(_,R,U){var ae=U[0],ve=U[1],we=U[2];return _[0]=R[0]*ae,_[1]=R[1]*ae,_[2]=R[2]*ae,_[3]=R[3]*ae,_[4]=R[4]*ve,_[5]=R[5]*ve,_[6]=R[6]*ve,_[7]=R[7]*ve,_[8]=R[8]*we,_[9]=R[9]*we,_[10]=R[10]*we,_[11]=R[11]*we,_[12]=R[12],_[13]=R[13],_[14]=R[14],_[15]=R[15],_}function xs(_,R,U){var ae=Math.sin(U),ve=Math.cos(U),we=R[4],Ee=R[5],Je=R[6],dt=R[7],Mt=R[8],_t=R[9],jt=R[10],nr=R[11];return R!==_&&(_[0]=R[0],_[1]=R[1],_[2]=R[2],_[3]=R[3],_[12]=R[12],_[13]=R[13],_[14]=R[14],_[15]=R[15]),_[4]=we*ve+Mt*ae,_[5]=Ee*ve+_t*ae,_[6]=Je*ve+jt*ae,_[7]=dt*ve+nr*ae,_[8]=Mt*ve-we*ae,_[9]=_t*ve-Ee*ae,_[10]=jt*ve-Je*ae,_[11]=nr*ve-dt*ae,_}function Vh(_,R,U){var ae=Math.sin(U),ve=Math.cos(U),we=R[0],Ee=R[1],Je=R[2],dt=R[3],Mt=R[4],_t=R[5],jt=R[6],nr=R[7];return R!==_&&(_[8]=R[8],_[9]=R[9],_[10]=R[10],_[11]=R[11],_[12]=R[12],_[13]=R[13],_[14]=R[14],_[15]=R[15]),_[0]=we*ve+Mt*ae,_[1]=Ee*ve+_t*ae,_[2]=Je*ve+jt*ae,_[3]=dt*ve+nr*ae,_[4]=Mt*ve-we*ae,_[5]=_t*ve-Ee*ae,_[6]=jt*ve-Je*ae,_[7]=nr*ve-dt*ae,_}function Gv(_,R,U,ae,ve){var we=1/Math.tan(R/2),Ee;return _[0]=we/U,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=we,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[11]=-1,_[12]=0,_[13]=0,_[15]=0,ve!=null&&ve!==1/0?(Ee=1/(ae-ve),_[10]=(ve+ae)*Ee,_[14]=2*ve*ae*Ee):(_[10]=-1,_[14]=-2*ae),_}function W0(_,R,U,ae,ve,we,Ee){var Je=1/(R-U),dt=1/(ae-ve),Mt=1/(we-Ee);return _[0]=-2*Je,_[1]=0,_[2]=0,_[3]=0,_[4]=0,_[5]=-2*dt,_[6]=0,_[7]=0,_[8]=0,_[9]=0,_[10]=2*Mt,_[11]=0,_[12]=(R+U)*Je,_[13]=(ve+ae)*dt,_[14]=(Ee+we)*Mt,_[15]=1,_}var Y0=yc;function dh(){var _=new To(3);return To!=Float32Array&&(_[0]=0,_[1]=0,_[2]=0),_}function j0(_){var R=new To(3);return R[0]=_[0],R[1]=_[1],R[2]=_[2],R}function Hh(_,R,U){return _[0]=R[0]+U[0],_[1]=R[1]+U[1],_[2]=R[2]+U[2],_}function X0(_,R,U){return _[0]=R[0]-U[0],_[1]=R[1]-U[1],_[2]=R[2]-U[2],_}function Z0(_,R,U){return _[0]=R[0]*U,_[1]=R[1]*U,_[2]=R[2]*U,_}function Wv(_,R){var U=R[0],ae=R[1],ve=R[2],we=U*U+ae*ae+ve*ve;return we>0&&(we=1/Math.sqrt(we)),_[0]=R[0]*we,_[1]=R[1]*we,_[2]=R[2]*we,_}function Uw(_,R){return _[0]*R[0]+_[1]*R[1]+_[2]*R[2]}function Vw(_,R,U){var ae=R[0],ve=R[1],we=R[2],Ee=U[0],Je=U[1],dt=U[2];return _[0]=ve*dt-we*Je,_[1]=we*Ee-ae*dt,_[2]=ae*Je-ve*Ee,_}function Hw(_,R,U){var ae=R[0],ve=R[1],we=R[2];return _[0]=ae*U[0]+ve*U[3]+we*U[6],_[1]=ae*U[1]+ve*U[4]+we*U[7],_[2]=ae*U[2]+ve*U[5]+we*U[8],_}var Gw=X0;(function(){var _=dh();return function(R,U,ae,ve,we,Ee){var Je,dt;for(U||(U=3),ae||(ae=0),ve?dt=Math.min(ve*U+ae,R.length):dt=R.length,Je=ae;Je_.width||ve.height>_.height||U.x>_.width-ve.width||U.y>_.height-ve.height)throw new RangeError("out of range source coordinates for image copy");if(ve.width>R.width||ve.height>R.height||ae.x>R.width-ve.width||ae.y>R.height-ve.height)throw new RangeError("out of range destination coordinates for image copy");for(var Ee=_.data,Je=R.data,dt=0;dt80*U){Je=Mt=_[0],dt=_t=_[1];for(var br=U;brMt&&(Mt=jt),nr>_t&&(_t=nr);er=Math.max(Mt-Je,_t-dt),er=er!==0?1/er:0}return Yv(we,Ee,U,Je,dt,er),Ee}function Vm(_,R,U,ae,ve){var we,Ee;if(ve===eg(_,R,U,ae)>0)for(we=R;we=R;we-=ae)Ee=Wm(we,_[we],_[we+1],Ee);return Ee&&ip(Ee,Ee.next)&&(Xv(Ee),Ee=Ee.next),Ee}function mc(_,R){if(!_)return _;R||(R=_);var U=_,ae;do if(ae=!1,!U.steiner&&(ip(U,U.next)||so(U.prev,U,U.next)===0)){if(Xv(U),U=R=U.prev,U===U.next)break;ae=!0}else U=U.next;while(ae||U!==R);return R}function Yv(_,R,U,ae,ve,we,Ee){if(_){!Ee&&we&&g2(_,ae,ve,we);for(var Je=_,dt,Mt;_.prev!==_.next;){if(dt=_.prev,Mt=_.next,we?l2(_,ae,ve,we):s2(_)){R.push(dt.i/U),R.push(_.i/U),R.push(Mt.i/U),Xv(_),_=Mt.next,Je=Mt.next;continue}if(_=Mt,_===Je){Ee?Ee===1?(_=u2(mc(_),R,U),Yv(_,R,U,ae,ve,we,2)):Ee===2&&f2(_,R,U,ae,ve,we):Yv(mc(_),R,U,ae,ve,we,1);break}}}}function s2(_){var R=_.prev,U=_,ae=_.next;if(so(R,U,ae)>=0)return!1;for(var ve=_.next.next;ve!==_.prev;){if(Gh(R.x,R.y,U.x,U.y,ae.x,ae.y,ve.x,ve.y)&&so(ve.prev,ve,ve.next)>=0)return!1;ve=ve.next}return!0}function l2(_,R,U,ae){var ve=_.prev,we=_,Ee=_.next;if(so(ve,we,Ee)>=0)return!1;for(var Je=ve.xwe.x?ve.x>Ee.x?ve.x:Ee.x:we.x>Ee.x?we.x:Ee.x,_t=ve.y>we.y?ve.y>Ee.y?ve.y:Ee.y:we.y>Ee.y?we.y:Ee.y,jt=$0(Je,dt,R,U,ae),nr=$0(Mt,_t,R,U,ae),er=_.prevZ,br=_.nextZ;er&&er.z>=jt&&br&&br.z<=nr;){if(er!==_.prev&&er!==_.next&&Gh(ve.x,ve.y,we.x,we.y,Ee.x,Ee.y,er.x,er.y)&&so(er.prev,er,er.next)>=0||(er=er.prevZ,br!==_.prev&&br!==_.next&&Gh(ve.x,ve.y,we.x,we.y,Ee.x,Ee.y,br.x,br.y)&&so(br.prev,br,br.next)>=0))return!1;br=br.nextZ}for(;er&&er.z>=jt;){if(er!==_.prev&&er!==_.next&&Gh(ve.x,ve.y,we.x,we.y,Ee.x,Ee.y,er.x,er.y)&&so(er.prev,er,er.next)>=0)return!1;er=er.prevZ}for(;br&&br.z<=nr;){if(br!==_.prev&&br!==_.next&&Gh(ve.x,ve.y,we.x,we.y,Ee.x,Ee.y,br.x,br.y)&&so(br.prev,br,br.next)>=0)return!1;br=br.nextZ}return!0}function u2(_,R,U){var ae=_;do{var ve=ae.prev,we=ae.next.next;!ip(ve,we)&&Hm(ve,ae,ae.next,we)&&jv(ve,we)&&jv(we,ve)&&(R.push(ve.i/U),R.push(ae.i/U),R.push(we.i/U),Xv(ae),Xv(ae.next),ae=_=we),ae=ae.next}while(ae!==_);return mc(ae)}function f2(_,R,U,ae,ve,we){var Ee=_;do{for(var Je=Ee.next.next;Je!==Ee.prev;){if(Ee.i!==Je.i&&x2(Ee,Je)){var dt=Gm(Ee,Je);Ee=mc(Ee,Ee.next),dt=mc(dt,dt.next),Yv(Ee,R,U,ae,ve,we),Yv(dt,R,U,ae,ve,we);return}Je=Je.next}Ee=Ee.next}while(Ee!==_)}function c2(_,R,U,ae){var ve=[],we,Ee,Je,dt,Mt;for(we=0,Ee=R.length;we=U.next.y&&U.next.y!==U.y){var Je=U.x+(ve-U.y)*(U.next.x-U.x)/(U.next.y-U.y);if(Je<=ae&&Je>we){if(we=Je,Je===ae){if(ve===U.y)return U;if(ve===U.next.y)return U.next}Ee=U.x=U.x&&U.x>=Mt&&ae!==U.x&&Gh(ve<_t?ae:we,ve,Mt,_t,ve<_t?we:ae,ve,U.x,U.y)&&(nr=Math.abs(ve-U.y)/(ae-U.x),jv(U,_)&&(nrEe.x||U.x===Ee.x&&p2(Ee,U)))&&(Ee=U,jt=nr)),U=U.next;while(U!==dt);return Ee}function p2(_,R){return so(_.prev,_,R.prev)<0&&so(R.next,_,_.next)<0}function g2(_,R,U,ae){var ve=_;do ve.z===null&&(ve.z=$0(ve.x,ve.y,R,U,ae)),ve.prevZ=ve.prev,ve.nextZ=ve.next,ve=ve.next;while(ve!==_);ve.prevZ.nextZ=null,ve.prevZ=null,y2(ve)}function y2(_){var R,U,ae,ve,we,Ee,Je,dt,Mt=1;do{for(U=_,_=null,we=null,Ee=0;U;){for(Ee++,ae=U,Je=0,R=0;R0||dt>0&&ae;)Je!==0&&(dt===0||!ae||U.z<=ae.z)?(ve=U,U=U.nextZ,Je--):(ve=ae,ae=ae.nextZ,dt--),we?we.nextZ=ve:_=ve,ve.prevZ=we,we=ve;U=ae}we.nextZ=null,Mt*=2}while(Ee>1);return _}function $0(_,R,U,ae,ve){return _=32767*(_-U)*ve,R=32767*(R-ae)*ve,_=(_|_<<8)&16711935,_=(_|_<<4)&252645135,_=(_|_<<2)&858993459,_=(_|_<<1)&1431655765,R=(R|R<<8)&16711935,R=(R|R<<4)&252645135,R=(R|R<<2)&858993459,R=(R|R<<1)&1431655765,_|R<<1}function m2(_){var R=_,U=_;do(R.x=0&&(_-Ee)*(ae-Je)-(U-Ee)*(R-Je)>=0&&(U-Ee)*(we-Je)-(ve-Ee)*(ae-Je)>=0}function x2(_,R){return _.next.i!==R.i&&_.prev.i!==R.i&&!b2(_,R)&&(jv(_,R)&&jv(R,_)&&w2(_,R)&&(so(_.prev,_,R.prev)||so(_,R.prev,R))||ip(_,R)&&so(_.prev,_,_.next)>0&&so(R.prev,R,R.next)>0)}function so(_,R,U){return(R.y-_.y)*(U.x-R.x)-(R.x-_.x)*(U.y-R.y)}function ip(_,R){return _.x===R.x&&_.y===R.y}function Hm(_,R,U,ae){var ve=sp(so(_,R,U)),we=sp(so(_,R,ae)),Ee=sp(so(U,ae,_)),Je=sp(so(U,ae,R));return!!(ve!==we&&Ee!==Je||ve===0&&op(_,U,R)||we===0&&op(_,ae,R)||Ee===0&&op(U,_,ae)||Je===0&&op(U,R,ae))}function op(_,R,U){return R.x<=Math.max(_.x,U.x)&&R.x>=Math.min(_.x,U.x)&&R.y<=Math.max(_.y,U.y)&&R.y>=Math.min(_.y,U.y)}function sp(_){return _>0?1:_<0?-1:0}function b2(_,R){var U=_;do{if(U.i!==_.i&&U.next.i!==_.i&&U.i!==R.i&&U.next.i!==R.i&&Hm(U,U.next,_,R))return!0;U=U.next}while(U!==_);return!1}function jv(_,R){return so(_.prev,_,_.next)<0?so(_,R,_.next)>=0&&so(_,_.prev,R)>=0:so(_,R,_.prev)<0||so(_,_.next,R)<0}function w2(_,R){var U=_,ae=!1,ve=(_.x+R.x)/2,we=(_.y+R.y)/2;do U.y>we!=U.next.y>we&&U.next.y!==U.y&&ve<(U.next.x-U.x)*(we-U.y)/(U.next.y-U.y)+U.x&&(ae=!ae),U=U.next;while(U!==_);return ae}function Gm(_,R){var U=new q0(_.i,_.x,_.y),ae=new q0(R.i,R.x,R.y),ve=_.next,we=R.prev;return _.next=R,R.prev=_,U.next=ve,ve.prev=U,ae.next=U,U.prev=ae,we.next=ae,ae.prev=we,ae}function Wm(_,R,U,ae){var ve=new q0(_,R,U);return ae?(ve.next=ae.next,ve.prev=ae,ae.next.prev=ve,ae.next=ve):(ve.prev=ve,ve.next=ve),ve}function Xv(_){_.next.prev=_.prev,_.prev.next=_.next,_.prevZ&&(_.prevZ.nextZ=_.nextZ),_.nextZ&&(_.nextZ.prevZ=_.prevZ)}function q0(_,R,U){this.i=_,this.x=R,this.y=U,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}ap.deviation=function(_,R,U,ae){var ve=R&&R.length,we=ve?R[0]*U:_.length,Ee=Math.abs(eg(_,0,we,U));if(ve)for(var Je=0,dt=R.length;Je0&&(ae+=_[ve-1].length,U.holes.push(ae))}return U},Q0.default=o2;function T2(_,R,U,ae,ve){Ym(_,R,U,ae||_.length-1,ve||A2)}function Ym(_,R,U,ae,ve){for(;ae>U;){if(ae-U>600){var we=ae-U+1,Ee=R-U+1,Je=Math.log(we),dt=.5*Math.exp(2*Je/3),Mt=.5*Math.sqrt(Je*dt*(we-dt)/we)*(Ee-we/2<0?-1:1),_t=Math.max(U,Math.floor(R-Ee*dt/we+Mt)),jt=Math.min(ae,Math.floor(R+(we-Ee)*dt/we+Mt));Ym(_,R,_t,jt,ve)}var nr=_[R],er=U,br=ae;for(Zv(_,U,R),ve(_[ae],nr)>0&&Zv(_,U,ae);er0;)br--}ve(_[U],nr)===0?Zv(_,U,br):(br++,Zv(_,br,ae)),br<=R&&(U=br+1),R<=br&&(ae=br-1)}}function Zv(_,R,U){var ae=_[R];_[R]=_[U],_[U]=ae}function A2(_,R){return _R?1:0}function tg(_,R){var U=_.length;if(U<=1)return[_];for(var ae=[],ve,we,Ee=0;Ee1)for(var dt=0;dt>3}if(ae--,U===1||U===2)ve+=_.readSVarint(),we+=_.readSVarint(),U===1&&(Je&&Ee.push(Je),Je=[]),Je.push(new r(ve,we));else if(U===7)Je&&Je.push(Je[0].clone());else throw new Error("unknown command "+U)}return Je&&Ee.push(Je),Ee},Wh.prototype.bbox=function(){var _=this._pbf;_.pos=this._geometry;for(var R=_.readVarint()+_.pos,U=1,ae=0,ve=0,we=0,Ee=1/0,Je=-1/0,dt=1/0,Mt=-1/0;_.pos>3}if(ae--,U===1||U===2)ve+=_.readSVarint(),we+=_.readSVarint(),veJe&&(Je=ve),weMt&&(Mt=we);else if(U!==7)throw new Error("unknown command "+U)}return[Ee,dt,Je,Mt]},Wh.prototype.toGeoJSON=function(_,R,U){var ae=this.extent*Math.pow(2,U),ve=this.extent*_,we=this.extent*R,Ee=this.loadGeometry(),Je=Wh.types[this.type],dt,Mt;function _t(er){for(var br=0;br>3;R=ae===1?_.readString():ae===2?_.readFloat():ae===3?_.readDouble():ae===4?_.readVarint64():ae===5?_.readVarint():ae===6?_.readSVarint():ae===7?_.readBoolean():null}return R}Zm.prototype.feature=function(_){if(_<0||_>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[_];var R=this._pbf.readVarint()+this._pbf.pos;return new jm(this._pbf,R,this.extent,this._keys,this._values)};var N2=B2;function B2(_,R){this.layers=_.readFields(U2,{},R)}function U2(_,R,U){if(_===3){var ae=new Xm(U,U.readVarint()+U.pos);ae.length&&(R[ae.name]=ae)}}var V2=N2,H2=jm,G2=Xm,Yh={VectorTile:V2,VectorTileFeature:H2,VectorTileLayer:G2},W2=Yh.VectorTileFeature.types,Y2=500,ag=Math.pow(2,13);function Kv(_,R,U,ae,ve,we,Ee,Je){_.emplaceBack(R,U,Math.floor(ae*ag)*2+Ee,ve*ag*2,we*ag*2,Math.round(Je))}var Su=function(R){this.zoom=R.zoom,this.overscaling=R.overscaling,this.layers=R.layers,this.layerIds=this.layers.map(function(U){return U.id}),this.index=R.index,this.hasPattern=!1,this.layoutVertexArray=new Ku,this.indexArray=new wu,this.programConfigurations=new da(R.layers,R.zoom),this.segments=new oo,this.stateDependentLayerIds=this.layers.filter(function(U){return U.isStateDependent()}).map(function(U){return U.id})};Su.prototype.populate=function(R,U,ae){this.features=[],this.hasPattern=rg("fill-extrusion",this.layers,U);for(var ve=0,we=R;ve=1){var Cn=cn[Ln-1];if(!j2(yn,Cn)){er.vertexLength+4>oo.MAX_VERTEX_ARRAY_LENGTH&&(er=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var kn=yn.sub(Cn)._perp()._unit(),jn=Cn.dist(yn);nn+jn>32768&&(nn=0),Kv(this.layoutVertexArray,yn.x,yn.y,kn.x,kn.y,0,0,nn),Kv(this.layoutVertexArray,yn.x,yn.y,kn.x,kn.y,0,1,nn),nn+=jn,Kv(this.layoutVertexArray,Cn.x,Cn.y,kn.x,kn.y,0,0,nn),Kv(this.layoutVertexArray,Cn.x,Cn.y,kn.x,kn.y,0,1,nn);var aa=er.vertexLength;this.indexArray.emplaceBack(aa,aa+2,aa+1),this.indexArray.emplaceBack(aa+1,aa+2,aa+3),er.vertexLength+=4,er.primitiveLength+=2}}}}if(er.vertexLength+Mt>oo.MAX_VERTEX_ARRAY_LENGTH&&(er=this.segments.prepareSegment(Mt,this.layoutVertexArray,this.indexArray)),W2[R.type]==="Polygon"){for(var ta=[],Ta=[],pa=er.vertexLength,ba=0,Va=dt;baMa)||_.y===R.y&&(_.y<0||_.y>Ma)}function X2(_){return _.every(function(R){return R.x<0})||_.every(function(R){return R.x>Ma})||_.every(function(R){return R.y<0})||_.every(function(R){return R.y>Ma})}var Z2=new hi({"fill-extrusion-opacity":new la(Ar["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new La(Ar["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new la(Ar["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new la(Ar["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ro(Ar["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new La(Ar["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new La(Ar["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new la(Ar["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),K2={paint:Z2},J2=function(_){function R(U){_.call(this,U,K2)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.createBucket=function(ae){return new Su(ae)},R.prototype.queryRadius=function(){return dl(this.paint.get("fill-extrusion-translate"))},R.prototype.is3D=function(){return!0},R.prototype.queryIntersectsFeature=function(ae,ve,we,Ee,Je,dt,Mt,_t){var jt=Tu(ae,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),dt.angle,Mt),nr=this.paint.get("fill-extrusion-height").evaluate(ve,we),er=this.paint.get("fill-extrusion-base").evaluate(ve,we),br=q2(jt,_t,dt,0),Br=$2(Ee,er,nr,_t),cn=Br[0],nn=Br[1];return Q2(cn,nn,br)},R}(Ni);function Jv(_,R){return _.x*R.x+_.y*R.y}function Km(_,R){if(_.length===1){for(var U=0,ae=R[U++],ve;!ve||ae.equals(ve);)if(ve=R[U++],!ve)return 1/0;for(;U=2&&R[Mt-1].equals(R[Mt-2]);)Mt--;for(var _t=0;_t0;if(ta&&Ln>_t){var pa=er.dist(br);if(pa>2*jt){var ba=er.sub(er.sub(br)._mult(jt/pa)._round());this.updateDistance(br,ba),this.addCurrentVertex(ba,cn,0,0,nr),br=ba}}var Va=br&&Br,Aa=Va?ae:dt?"butt":ve;if(Va&&Aa==="round"&&(jnwe&&(Aa="bevel"),Aa==="bevel"&&(jn>2&&(Aa="flipbevel"),jn100)yn=nn.mult(-1);else{var Ca=jn*cn.add(nn).mag()/cn.sub(nn).mag();yn._perp()._mult(Ca*(Ta?-1:1))}this.addCurrentVertex(er,yn,0,0,nr),this.addCurrentVertex(er,yn.mult(-1),0,0,nr)}else if(Aa==="bevel"||Aa==="fakeround"){var ja=-Math.sqrt(jn*jn-1),Ba=Ta?ja:0,li=Ta?0:ja;if(br&&this.addCurrentVertex(er,cn,Ba,li,nr),Aa==="fakeround")for(var bi=Math.round(aa*180/Math.PI/s4),ui=1;ui2*jt){var fo=er.add(Br.sub(er)._mult(jt/So)._round());this.updateDistance(er,fo),this.addCurrentVertex(fo,nn,0,0,nr),er=fo}}}}},as.prototype.addCurrentVertex=function(R,U,ae,ve,we,Ee){Ee===void 0&&(Ee=!1);var Je=U.x+U.y*ae,dt=U.y-U.x*ae,Mt=-U.x+U.y*ve,_t=-U.y-U.x*ve;this.addHalfVertex(R,Je,dt,Ee,!1,ae,we),this.addHalfVertex(R,Mt,_t,Ee,!0,-ve,we),this.distance>$m/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(R,U,ae,ve,we,Ee))},as.prototype.addHalfVertex=function(R,U,ae,ve,we,Ee,Je){var dt=R.x,Mt=R.y,_t=this.lineClips?this.scaledDistance*($m-1):this.scaledDistance,jt=_t*Qm;if(this.layoutVertexArray.emplaceBack((dt<<1)+(ve?1:0),(Mt<<1)+(we?1:0),Math.round(Jm*U)+128,Math.round(Jm*ae)+128,(Ee===0?0:Ee<0?-1:1)+1|(jt&63)<<2,jt>>6),this.lineClips){var nr=this.scaledDistance-this.lineClips.start,er=this.lineClips.end-this.lineClips.start,br=nr/er;this.layoutVertexArray2.emplaceBack(br,this.lineClipsArray.length)}var Br=Je.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Br),Je.primitiveLength++),we?this.e2=Br:this.e1=Br},as.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},as.prototype.updateDistance=function(R,U){this.distance+=R.dist(U),this.updateScaledDistance()},Be("LineBucket",as,{omit:["layers","patternFeatures"]});var u4=new hi({"line-cap":new la(Ar.layout_line["line-cap"]),"line-join":new La(Ar.layout_line["line-join"]),"line-miter-limit":new la(Ar.layout_line["line-miter-limit"]),"line-round-limit":new la(Ar.layout_line["line-round-limit"]),"line-sort-key":new La(Ar.layout_line["line-sort-key"])}),f4=new hi({"line-opacity":new La(Ar.paint_line["line-opacity"]),"line-color":new La(Ar.paint_line["line-color"]),"line-translate":new la(Ar.paint_line["line-translate"]),"line-translate-anchor":new la(Ar.paint_line["line-translate-anchor"]),"line-width":new La(Ar.paint_line["line-width"]),"line-gap-width":new La(Ar.paint_line["line-gap-width"]),"line-offset":new La(Ar.paint_line["line-offset"]),"line-blur":new La(Ar.paint_line["line-blur"]),"line-dasharray":new Fo(Ar.paint_line["line-dasharray"]),"line-pattern":new Ro(Ar.paint_line["line-pattern"]),"line-gradient":new io(Ar.paint_line["line-gradient"])}),qm={paint:f4,layout:u4},c4=function(_){function R(){_.apply(this,arguments)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.possiblyEvaluate=function(ae,ve){return ve=new Sa(Math.floor(ve.zoom),{now:ve.now,fadeDuration:ve.fadeDuration,zoomHistory:ve.zoomHistory,transition:ve.transition}),_.prototype.possiblyEvaluate.call(this,ae,ve)},R.prototype.evaluate=function(ae,ve,we,Ee){return ve=x({},ve,{zoom:Math.floor(ve.zoom)}),_.prototype.evaluate.call(this,ae,ve,we,Ee)},R}(La),e1=new c4(qm.paint.properties["line-width"].specification);e1.useIntegerZoom=!0;var h4=function(_){function R(U){_.call(this,U,qm),this.gradientVersion=0}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype._handleSpecialPaintPropertyUpdate=function(ae){if(ae==="line-gradient"){var ve=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=ve._styleExpression.expression instanceof Ko,this.gradientVersion=(this.gradientVersion+1)%f}},R.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},R.prototype.recalculate=function(ae,ve){_.prototype.recalculate.call(this,ae,ve),this.paint._values["line-floorwidth"]=e1.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ae)},R.prototype.createBucket=function(ae){return new as(ae)},R.prototype.queryRadius=function(ae){var ve=ae,we=t1(ns("line-width",this,ve),ns("line-gap-width",this,ve)),Ee=ns("line-offset",this,ve);return we/2+Math.abs(Ee)+dl(this.paint.get("line-translate"))},R.prototype.queryIntersectsFeature=function(ae,ve,we,Ee,Je,dt,Mt){var _t=Tu(ae,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),dt.angle,Mt),jt=Mt/2*t1(this.paint.get("line-width").evaluate(ve,we),this.paint.get("line-gap-width").evaluate(ve,we)),nr=this.paint.get("line-offset").evaluate(ve,we);return nr&&(Ee=v4(Ee,nr*Mt)),yo(_t,Ee,jt)},R.prototype.isTileClipped=function(){return!0},R}(Ni);function t1(_,R){return R>0?R+2*_:_}function v4(_,R){for(var U=[],ae=new r(0,0),ve=0;ve<_.length;ve++){for(var we=_[ve],Ee=[],Je=0;Je":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function w4(_){for(var R="",U=0;U<_.length;U++){var ae=_.charCodeAt(U+1)||null,ve=_.charCodeAt(U-1)||null,we=(!ae||!Vr(ae)||Qv[_[U+1]])&&(!ve||!Vr(ve)||Qv[_[U-1]]);we&&Qv[_[U]]?R+=Qv[_[U]]:R+=_[U]}return R}var Do=24,T4=function(_,R,U,ae,ve){var we,Ee,Je=ve*8-ae-1,dt=(1<>1,_t=-7,jt=U?ve-1:0,nr=U?-1:1,er=_[R+jt];for(jt+=nr,we=er&(1<<-_t)-1,er>>=-_t,_t+=Je;_t>0;we=we*256+_[R+jt],jt+=nr,_t-=8);for(Ee=we&(1<<-_t)-1,we>>=-_t,_t+=ae;_t>0;Ee=Ee*256+_[R+jt],jt+=nr,_t-=8);if(we===0)we=1-Mt;else{if(we===dt)return Ee?NaN:(er?-1:1)*(1/0);Ee=Ee+Math.pow(2,ae),we=we-Mt}return(er?-1:1)*Ee*Math.pow(2,we-ae)},A4=function(_,R,U,ae,ve,we){var Ee,Je,dt,Mt=we*8-ve-1,_t=(1<>1,nr=ve===23?Math.pow(2,-24)-Math.pow(2,-77):0,er=ae?0:we-1,br=ae?1:-1,Br=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(Je=isNaN(R)?1:0,Ee=_t):(Ee=Math.floor(Math.log(R)/Math.LN2),R*(dt=Math.pow(2,-Ee))<1&&(Ee--,dt*=2),Ee+jt>=1?R+=nr/dt:R+=nr*Math.pow(2,1-jt),R*dt>=2&&(Ee++,dt/=2),Ee+jt>=_t?(Je=0,Ee=_t):Ee+jt>=1?(Je=(R*dt-1)*Math.pow(2,ve),Ee=Ee+jt):(Je=R*Math.pow(2,jt-1)*Math.pow(2,ve),Ee=0));ve>=8;_[U+er]=Je&255,er+=br,Je/=256,ve-=8);for(Ee=Ee<0;_[U+er]=Ee&255,er+=br,Ee/=256,Mt-=8);_[U+er-br]|=Br*128},lp={read:T4,write:A4},up=Ei;function Ei(_){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(_)?_:new Uint8Array(_||0),this.pos=0,this.type=0,this.length=this.buf.length}Ei.Varint=0,Ei.Fixed64=1,Ei.Bytes=2,Ei.Fixed32=5;var ig=65536*65536,n1=1/ig,S4=12,a1=typeof TextDecoder>"u"?null:new TextDecoder("utf8");Ei.prototype={destroy:function(){this.buf=null},readFields:function(_,R,U){for(U=U||this.length;this.pos>3,we=this.pos;this.type=ae&7,_(ve,R,this),this.pos===we&&this.skip(ae)}return R},readMessage:function(_,R){return this.readFields(_,R,this.readVarint()+this.pos)},readFixed32:function(){var _=fp(this.buf,this.pos);return this.pos+=4,_},readSFixed32:function(){var _=o1(this.buf,this.pos);return this.pos+=4,_},readFixed64:function(){var _=fp(this.buf,this.pos)+fp(this.buf,this.pos+4)*ig;return this.pos+=8,_},readSFixed64:function(){var _=fp(this.buf,this.pos)+o1(this.buf,this.pos+4)*ig;return this.pos+=8,_},readFloat:function(){var _=lp.read(this.buf,this.pos,!0,23,4);return this.pos+=4,_},readDouble:function(){var _=lp.read(this.buf,this.pos,!0,52,8);return this.pos+=8,_},readVarint:function(_){var R=this.buf,U,ae;return ae=R[this.pos++],U=ae&127,ae<128||(ae=R[this.pos++],U|=(ae&127)<<7,ae<128)||(ae=R[this.pos++],U|=(ae&127)<<14,ae<128)||(ae=R[this.pos++],U|=(ae&127)<<21,ae<128)?U:(ae=R[this.pos],U|=(ae&15)<<28,M4(U,_,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var _=this.readVarint();return _%2===1?(_+1)/-2:_/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var _=this.readVarint()+this.pos,R=this.pos;return this.pos=_,_-R>=S4&&a1?B4(this.buf,R,_):N4(this.buf,R,_)},readBytes:function(){var _=this.readVarint()+this.pos,R=this.buf.subarray(this.pos,_);return this.pos=_,R},readPackedVarint:function(_,R){if(this.type!==Ei.Bytes)return _.push(this.readVarint(R));var U=Cf(this);for(_=_||[];this.pos127;);else if(R===Ei.Bytes)this.pos=this.readVarint()+this.pos;else if(R===Ei.Fixed32)this.pos+=4;else if(R===Ei.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+R)},writeTag:function(_,R){this.writeVarint(_<<3|R)},realloc:function(_){for(var R=this.length||16;R268435455||_<0){E4(_,this);return}this.realloc(4),this.buf[this.pos++]=_&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=(_>>>=7)&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=(_>>>=7)&127|(_>127?128:0),!(_<=127)&&(this.buf[this.pos++]=_>>>7&127)))},writeSVarint:function(_){this.writeVarint(_<0?-_*2-1:_*2)},writeBoolean:function(_){this.writeVarint(!!_)},writeString:function(_){_=String(_),this.realloc(_.length*4),this.pos++;var R=this.pos;this.pos=U4(this.buf,_,this.pos);var U=this.pos-R;U>=128&&i1(R,U,this),this.pos=R-1,this.writeVarint(U),this.pos+=U},writeFloat:function(_){this.realloc(4),lp.write(this.buf,_,this.pos,!0,23,4),this.pos+=4},writeDouble:function(_){this.realloc(8),lp.write(this.buf,_,this.pos,!0,52,8),this.pos+=8},writeBytes:function(_){var R=_.length;this.writeVarint(R),this.realloc(R);for(var U=0;U=128&&i1(U,ae,this),this.pos=U-1,this.writeVarint(ae),this.pos+=ae},writeMessage:function(_,R,U){this.writeTag(_,Ei.Bytes),this.writeRawMessage(R,U)},writePackedVarint:function(_,R){R.length&&this.writeMessage(_,P4,R)},writePackedSVarint:function(_,R){R.length&&this.writeMessage(_,_4,R)},writePackedBoolean:function(_,R){R.length&&this.writeMessage(_,I4,R)},writePackedFloat:function(_,R){R.length&&this.writeMessage(_,R4,R)},writePackedDouble:function(_,R){R.length&&this.writeMessage(_,D4,R)},writePackedFixed32:function(_,R){R.length&&this.writeMessage(_,k4,R)},writePackedSFixed32:function(_,R){R.length&&this.writeMessage(_,z4,R)},writePackedFixed64:function(_,R){R.length&&this.writeMessage(_,O4,R)},writePackedSFixed64:function(_,R){R.length&&this.writeMessage(_,F4,R)},writeBytesField:function(_,R){this.writeTag(_,Ei.Bytes),this.writeBytes(R)},writeFixed32Field:function(_,R){this.writeTag(_,Ei.Fixed32),this.writeFixed32(R)},writeSFixed32Field:function(_,R){this.writeTag(_,Ei.Fixed32),this.writeSFixed32(R)},writeFixed64Field:function(_,R){this.writeTag(_,Ei.Fixed64),this.writeFixed64(R)},writeSFixed64Field:function(_,R){this.writeTag(_,Ei.Fixed64),this.writeSFixed64(R)},writeVarintField:function(_,R){this.writeTag(_,Ei.Varint),this.writeVarint(R)},writeSVarintField:function(_,R){this.writeTag(_,Ei.Varint),this.writeSVarint(R)},writeStringField:function(_,R){this.writeTag(_,Ei.Bytes),this.writeString(R)},writeFloatField:function(_,R){this.writeTag(_,Ei.Fixed32),this.writeFloat(R)},writeDoubleField:function(_,R){this.writeTag(_,Ei.Fixed64),this.writeDouble(R)},writeBooleanField:function(_,R){this.writeVarintField(_,!!R)}};function M4(_,R,U){var ae=U.buf,ve,we;if(we=ae[U.pos++],ve=(we&112)>>4,we<128||(we=ae[U.pos++],ve|=(we&127)<<3,we<128)||(we=ae[U.pos++],ve|=(we&127)<<10,we<128)||(we=ae[U.pos++],ve|=(we&127)<<17,we<128)||(we=ae[U.pos++],ve|=(we&127)<<24,we<128)||(we=ae[U.pos++],ve|=(we&1)<<31,we<128))return jh(_,ve,R);throw new Error("Expected varint not more than 10 bytes")}function Cf(_){return _.type===Ei.Bytes?_.readVarint()+_.pos:_.pos+1}function jh(_,R,U){return U?R*4294967296+(_>>>0):(R>>>0)*4294967296+(_>>>0)}function E4(_,R){var U,ae;if(_>=0?(U=_%4294967296|0,ae=_/4294967296|0):(U=~(-_%4294967296),ae=~(-_/4294967296),U^4294967295?U=U+1|0:(U=0,ae=ae+1|0)),_>=18446744073709552e3||_<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");R.realloc(10),C4(U,ae,R),L4(ae,R)}function C4(_,R,U){U.buf[U.pos++]=_&127|128,_>>>=7,U.buf[U.pos++]=_&127|128,_>>>=7,U.buf[U.pos++]=_&127|128,_>>>=7,U.buf[U.pos++]=_&127|128,_>>>=7,U.buf[U.pos]=_&127}function L4(_,R){var U=(_&7)<<4;R.buf[R.pos++]|=U|((_>>>=3)?128:0),_&&(R.buf[R.pos++]=_&127|((_>>>=7)?128:0),_&&(R.buf[R.pos++]=_&127|((_>>>=7)?128:0),_&&(R.buf[R.pos++]=_&127|((_>>>=7)?128:0),_&&(R.buf[R.pos++]=_&127|((_>>>=7)?128:0),_&&(R.buf[R.pos++]=_&127)))))}function i1(_,R,U){var ae=R<=16383?1:R<=2097151?2:R<=268435455?3:Math.floor(Math.log(R)/(Math.LN2*7));U.realloc(ae);for(var ve=U.pos-1;ve>=_;ve--)U.buf[ve+ae]=U.buf[ve]}function P4(_,R){for(var U=0;U<_.length;U++)R.writeVarint(_[U])}function _4(_,R){for(var U=0;U<_.length;U++)R.writeSVarint(_[U])}function R4(_,R){for(var U=0;U<_.length;U++)R.writeFloat(_[U])}function D4(_,R){for(var U=0;U<_.length;U++)R.writeDouble(_[U])}function I4(_,R){for(var U=0;U<_.length;U++)R.writeBoolean(_[U])}function k4(_,R){for(var U=0;U<_.length;U++)R.writeFixed32(_[U])}function z4(_,R){for(var U=0;U<_.length;U++)R.writeSFixed32(_[U])}function O4(_,R){for(var U=0;U<_.length;U++)R.writeFixed64(_[U])}function F4(_,R){for(var U=0;U<_.length;U++)R.writeSFixed64(_[U])}function fp(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+_[R+3]*16777216}function Xh(_,R,U){_[U]=R,_[U+1]=R>>>8,_[U+2]=R>>>16,_[U+3]=R>>>24}function o1(_,R){return(_[R]|_[R+1]<<8|_[R+2]<<16)+(_[R+3]<<24)}function N4(_,R,U){for(var ae="",ve=R;ve239?4:we>223?3:we>191?2:1;if(ve+Je>U)break;var dt,Mt,_t;Je===1?we<128&&(Ee=we):Je===2?(dt=_[ve+1],(dt&192)===128&&(Ee=(we&31)<<6|dt&63,Ee<=127&&(Ee=null))):Je===3?(dt=_[ve+1],Mt=_[ve+2],(dt&192)===128&&(Mt&192)===128&&(Ee=(we&15)<<12|(dt&63)<<6|Mt&63,(Ee<=2047||Ee>=55296&&Ee<=57343)&&(Ee=null))):Je===4&&(dt=_[ve+1],Mt=_[ve+2],_t=_[ve+3],(dt&192)===128&&(Mt&192)===128&&(_t&192)===128&&(Ee=(we&15)<<18|(dt&63)<<12|(Mt&63)<<6|_t&63,(Ee<=65535||Ee>=1114112)&&(Ee=null))),Ee===null?(Ee=65533,Je=1):Ee>65535&&(Ee-=65536,ae+=String.fromCharCode(Ee>>>10&1023|55296),Ee=56320|Ee&1023),ae+=String.fromCharCode(Ee),ve+=Je}return ae}function B4(_,R,U){return a1.decode(_.subarray(R,U))}function U4(_,R,U){for(var ae=0,ve,we;ae55295&&ve<57344)if(we)if(ve<56320){_[U++]=239,_[U++]=191,_[U++]=189,we=ve;continue}else ve=we-55296<<10|ve-56320|65536,we=null;else{ve>56319||ae+1===R.length?(_[U++]=239,_[U++]=191,_[U++]=189):we=ve;continue}else we&&(_[U++]=239,_[U++]=191,_[U++]=189,we=null);ve<128?_[U++]=ve:(ve<2048?_[U++]=ve>>6|192:(ve<65536?_[U++]=ve>>12|224:(_[U++]=ve>>18|240,_[U++]=ve>>12&63|128),_[U++]=ve>>6&63|128),_[U++]=ve&63|128)}return U}var og=3;function V4(_,R,U){_===1&&U.readMessage(H4,R)}function H4(_,R,U){if(_===3){var ae=U.readMessage(G4,{}),ve=ae.id,we=ae.bitmap,Ee=ae.width,Je=ae.height,dt=ae.left,Mt=ae.top,_t=ae.advance;R.push({id:ve,bitmap:new ph({width:Ee+2*og,height:Je+2*og},we),metrics:{width:Ee,height:Je,left:dt,top:Mt,advance:_t}})}}function G4(_,R,U){_===1?R.id=U.readVarint():_===2?R.bitmap=U.readBytes():_===3?R.width=U.readVarint():_===4?R.height=U.readVarint():_===5?R.left=U.readSVarint():_===6?R.top=U.readSVarint():_===7&&(R.advance=U.readVarint())}function W4(_){return new up(_).readFields(V4,[])}var s1=og;function l1(_){for(var R=0,U=0,ae=0,ve=_;ae=0;er--){var br=Je[er];if(!(nr.w>br.w||nr.h>br.h)){if(nr.x=br.x,nr.y=br.y,Mt=Math.max(Mt,nr.y+nr.h),dt=Math.max(dt,nr.x+nr.w),nr.w===br.w&&nr.h===br.h){var Br=Je.pop();er=0&&ve>=R&&$u[this.text.charCodeAt(ve)];ve--)ae--;this.text=this.text.substring(R,ae),this.sectionIndex=this.sectionIndex.slice(R,ae)},Go.prototype.substring=function(R,U){var ae=new Go;return ae.text=this.text.substring(R,U),ae.sectionIndex=this.sectionIndex.slice(R,U),ae.sections=this.sections,ae},Go.prototype.toString=function(){return this.text},Go.prototype.getMaxScale=function(){var R=this;return this.sectionIndex.reduce(function(U,ae){return Math.max(U,R.sections[ae].scale)},0)},Go.prototype.addTextSection=function(R,U){this.text+=R.text,this.sections.push(Zh.forText(R.scale,R.fontStack||U));for(var ae=this.sections.length-1,ve=0;ve=f1?null:++this.imageSectionID:(this.imageSectionID=u1,this.imageSectionID)};function j4(_,R){for(var U=[],ae=_.text,ve=0,we=0,Ee=R;we=0,_t=0,jt=0;jt<_.length();jt++){var nr=_.getSection(jt),er=_.getCharCode(jt);if($u[er]||(_t+=c1(er,nr,ae,ve,R,Ee)),jt<_.length()-1){var br=$r(er);(ks[er]||br||nr.imageName)&&Je.push(v1(jt+1,_t,dt,Je,Z4(er,_.getCharCode(jt+1),br&&Mt),!1))}}return d1(v1(_.length(),_t,dt,Je,0,!0))}function lg(_){var R=.5,U=.5;switch(_){case"right":case"top-right":case"bottom-right":R=1;break;case"left":case"top-left":case"bottom-left":R=0;break}switch(_){case"bottom":case"bottom-right":case"bottom-left":U=1;break;case"top":case"top-right":case"top-left":U=0;break}return{horizontalAlign:R,verticalAlign:U}}function K4(_,R,U,ae,ve,we,Ee,Je,dt,Mt,_t,jt){for(var nr=0,er=ed,br=0,Br=0,cn=Je==="right"?1:Je==="left"?0:.5,nn=0,Ln=0,yn=ve;Ln0&&fo>Ta&&(Ta=fo)}else{var fi=U[ba.fontStack],ni=fi&&fi[Aa];if(ni&&ni.rect)Ba=ni.rect,ja=ni.metrics;else{var Mi=R[ba.fontStack],Ci=Mi&&Mi[Aa];if(!Ci)continue;ja=Ci.metrics}Ca=(kn-ba.scale)*Do}ui?(_.verticalizable=!0,ta.push({glyph:Aa,imageName:li,x:nr,y:er+Ca,vertical:ui,scale:ba.scale,fontStack:ba.fontStack,sectionIndex:Va,metrics:ja,rect:Ba}),nr+=bi*ba.scale+Mt):(ta.push({glyph:Aa,imageName:li,x:nr,y:er+Ca,vertical:ui,scale:ba.scale,fontStack:ba.fontStack,sectionIndex:Va,metrics:ja,rect:Ba}),nr+=ja.advance*ba.scale+Mt)}if(ta.length!==0){var Wo=nr-Mt;br=Math.max(Wo,br),J4(ta,0,ta.length-1,cn,Ta)}nr=0;var Yo=we*kn+Ta;aa.lineOffset=Math.max(Ta,jn),er+=Yo,Br=Math.max(Yo,Br),++nn}var Mo=er-ed,is=lg(Ee),os=is.horizontalAlign,mo=is.verticalAlign;Q4(_.positionedLines,cn,os,mo,br,Br,we,Mo,ve.length),_.top+=-mo*Mo,_.bottom=_.top+Mo,_.left+=-os*br,_.right=_.left+br}function J4(_,R,U,ae,ve){if(!(!ae&&!ve))for(var we=_[U],Ee=we.metrics.advance*we.scale,Je=(_[U].x+Ee)*ae,dt=R;dt<=U;dt++)_[dt].x-=Je,_[dt].y+=ve}function Q4(_,R,U,ae,ve,we,Ee,Je,dt){var Mt=(R-U)*ve,_t=0;we!==Ee?_t=-Je*ae-ed:_t=(-ae*dt+.5)*Ee;for(var jt=0,nr=_;jt-U/2;){if(Ee--,Ee<0)return!1;Je-=_[Ee].dist(we),we=_[Ee]}Je+=_[Ee].dist(_[Ee+1]),Ee++;for(var dt=[],Mt=0;Jeae;)Mt-=dt.shift().angleDelta;if(Mt>ve)return!1;Ee++,Je+=jt.dist(nr)}return!0}function x1(_){for(var R=0,U=0;U<_.length-1;U++)R+=_[U].dist(_[U+1]);return R}function b1(_,R,U){return _?.6*R*U:0}function w1(_,R){return Math.max(_?_.right-_.left:0,R?R.right-R.left:0)}function eT(_,R,U,ae,ve,we){for(var Ee=b1(U,ve,we),Je=w1(U,ae)*we,dt=0,Mt=x1(_)/2,_t=0;_t<_.length-1;_t++){var jt=_[_t],nr=_[_t+1],er=jt.dist(nr);if(dt+er>Mt){var br=(Mt-dt)/er,Br=_i(jt.x,nr.x,br),cn=_i(jt.y,nr.y,br),nn=new Kh(Br,cn,nr.angleTo(jt),_t);return nn._round(),!Ee||m1(_,nn,Je,Ee,R)?nn:void 0}dt+=er}}function tT(_,R,U,ae,ve,we,Ee,Je,dt){var Mt=b1(ae,we,Ee),_t=w1(ae,ve),jt=_t*Ee,nr=_[0].x===0||_[0].x===dt||_[0].y===0||_[0].y===dt;R-jt=0&&Cn=0&&kn=0&&nr+Mt<=_t){var jn=new Kh(Cn,kn,Ln,br);jn._round(),(!ae||m1(_,jn,we,ae,ve))&&er.push(jn)}}jt+=nn}return!Je&&!er.length&&!Ee&&(er=T1(_,jt/2,U,ae,ve,we,Ee,!0,dt)),er}function A1(_,R,U,ae,ve){for(var we=[],Ee=0;Ee<_.length;Ee++)for(var Je=_[Ee],dt=void 0,Mt=0;Mt=ae&&jt.x>=ae)&&(_t.x>=ae?_t=new r(ae,_t.y+(jt.y-_t.y)*((ae-_t.x)/(jt.x-_t.x)))._round():jt.x>=ae&&(jt=new r(ae,_t.y+(jt.y-_t.y)*((ae-_t.x)/(jt.x-_t.x)))._round()),!(_t.y>=ve&&jt.y>=ve)&&(_t.y>=ve?_t=new r(_t.x+(jt.x-_t.x)*((ve-_t.y)/(jt.y-_t.y)),ve)._round():jt.y>=ve&&(jt=new r(_t.x+(jt.x-_t.x)*((ve-_t.y)/(jt.y-_t.y)),ve)._round()),(!dt||!_t.equals(dt[dt.length-1]))&&(dt=[_t],we.push(dt)),dt.push(jt)))))}return we}var Jh=Is;function S1(_,R,U,ae){var ve=[],we=_.image,Ee=we.pixelRatio,Je=we.paddedRect.w-2*Jh,dt=we.paddedRect.h-2*Jh,Mt=_.right-_.left,_t=_.bottom-_.top,jt=we.stretchX||[[0,Je]],nr=we.stretchY||[[0,dt]],er=function(fi,ni){return fi+ni[1]-ni[0]},br=jt.reduce(er,0),Br=nr.reduce(er,0),cn=Je-br,nn=dt-Br,Ln=0,yn=br,Cn=0,kn=Br,jn=0,aa=cn,ta=0,Ta=nn;if(we.content&&ae){var pa=we.content;Ln=vp(jt,0,pa[0]),Cn=vp(nr,0,pa[1]),yn=vp(jt,pa[0],pa[2]),kn=vp(nr,pa[1],pa[3]),jn=pa[0]-Ln,ta=pa[1]-Cn,aa=pa[2]-pa[0]-yn,Ta=pa[3]-pa[1]-kn}var ba=function(fi,ni,Mi,Ci){var Ui=dp(fi.stretch-Ln,yn,Mt,_.left),ji=pp(fi.fixed-jn,aa,fi.stretch,br),So=dp(ni.stretch-Cn,kn,_t,_.top),fo=pp(ni.fixed-ta,Ta,ni.stretch,Br),Wo=dp(Mi.stretch-Ln,yn,Mt,_.left),Yo=pp(Mi.fixed-jn,aa,Mi.stretch,br),Mo=dp(Ci.stretch-Cn,kn,_t,_.top),is=pp(Ci.fixed-ta,Ta,Ci.stretch,Br),os=new r(Ui,So),mo=new r(Wo,So),ss=new r(Wo,Mo),$s=new r(Ui,Mo),_f=new r(ji/Ee,fo/Ee),wc=new r(Yo/Ee,is/Ee),Tc=R*Math.PI/180;if(Tc){var Ac=Math.sin(Tc),av=Math.cos(Tc),Xl=[av,-Ac,Ac,av];os._matMult(Xl),mo._matMult(Xl),$s._matMult(Xl),ss._matMult(Xl)}var wp=fi.stretch+fi.fixed,yg=Mi.stretch+Mi.fixed,Tp=ni.stretch+ni.fixed,mg=Ci.stretch+Ci.fixed,yl={x:we.paddedRect.x+Jh+wp,y:we.paddedRect.y+Jh+Tp,w:yg-wp,h:mg-Tp},iv=aa/Ee/Mt,Ap=Ta/Ee/_t;return{tl:os,tr:mo,bl:$s,br:ss,tex:yl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:_f,pixelOffsetBR:wc,minFontScaleX:iv,minFontScaleY:Ap,isSDF:U}};if(!ae||!we.stretchX&&!we.stretchY)ve.push(ba({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Je+1},{fixed:0,stretch:dt+1}));else for(var Va=M1(jt,cn,br),Aa=M1(nr,nn,Br),Ca=0;Ca0&&(br=Math.max(10,br),this.circleDiameter=br)}else{var Br=Ee.top*Je-dt,cn=Ee.bottom*Je+dt,nn=Ee.left*Je-dt,Ln=Ee.right*Je+dt,yn=Ee.collisionPadding;if(yn&&(nn-=yn[0]*Je,Br-=yn[1]*Je,Ln+=yn[2]*Je,cn+=yn[3]*Je),_t){var Cn=new r(nn,Br),kn=new r(Ln,Br),jn=new r(nn,cn),aa=new r(Ln,cn),ta=_t*Math.PI/180;Cn._rotate(ta),kn._rotate(ta),jn._rotate(ta),aa._rotate(ta),nn=Math.min(Cn.x,kn.x,jn.x,aa.x),Ln=Math.max(Cn.x,kn.x,jn.x,aa.x),Br=Math.min(Cn.y,kn.y,jn.y,aa.y),cn=Math.max(Cn.y,kn.y,jn.y,aa.y)}R.emplaceBack(U.x,U.y,nn,Br,Ln,cn,ae,ve,we)}this.boxEndIndex=R.length},Qh=function(R,U){if(R===void 0&&(R=[]),U===void 0&&(U=nT),this.data=R,this.length=this.data.length,this.compare=U,this.length>0)for(var ae=(this.length>>1)-1;ae>=0;ae--)this._down(ae)};Qh.prototype.push=function(R){this.data.push(R),this.length++,this._up(this.length-1)},Qh.prototype.pop=function(){if(this.length!==0){var R=this.data[0],U=this.data.pop();return this.length--,this.length>0&&(this.data[0]=U,this._down(0)),R}},Qh.prototype.peek=function(){return this.data[0]},Qh.prototype._up=function(R){for(var U=this,ae=U.data,ve=U.compare,we=ae[R];R>0;){var Ee=R-1>>1,Je=ae[Ee];if(ve(we,Je)>=0)break;ae[R]=Je,R=Ee}ae[R]=we},Qh.prototype._down=function(R){for(var U=this,ae=U.data,ve=U.compare,we=this.length>>1,Ee=ae[R];R=0)break;ae[R]=dt,R=Je}ae[R]=Ee};function nT(_,R){return _R?1:0}function aT(_,R,U){U===void 0&&(U=!1);for(var ae=1/0,ve=1/0,we=-1/0,Ee=-1/0,Je=_[0],dt=0;dtwe)&&(we=Mt.x),(!dt||Mt.y>Ee)&&(Ee=Mt.y)}var _t=we-ae,jt=Ee-ve,nr=Math.min(_t,jt),er=nr/2,br=new Qh([],iT);if(nr===0)return new r(ae,ve);for(var Br=ae;Brnn.d||!nn.d)&&(nn=yn,U&&console.log("found best %d after %d probes",Math.round(1e4*yn.d)/1e4,Ln)),!(yn.max-nn.d<=R)&&(er=yn.h/2,br.push(new $h(yn.p.x-er,yn.p.y-er,er,_)),br.push(new $h(yn.p.x+er,yn.p.y-er,er,_)),br.push(new $h(yn.p.x-er,yn.p.y+er,er,_)),br.push(new $h(yn.p.x+er,yn.p.y+er,er,_)),Ln+=4)}return U&&(console.log("num probes: "+Ln),console.log("best distance: "+nn.d)),nn.p}function iT(_,R){return R.max-_.max}function $h(_,R,U,ae){this.p=new r(_,R),this.h=U,this.d=oT(this.p,ae),this.max=this.d+this.h*Math.SQRT2}function oT(_,R){for(var U=!1,ae=1/0,ve=0;ve_.y!=_t.y>_.y&&_.x<(_t.x-Mt.x)*(_.y-Mt.y)/(_t.y-Mt.y)+Mt.x&&(U=!U),ae=Math.min(ae,Ef(_,Mt,_t))}return(U?1:-1)*Math.sqrt(ae)}function sT(_){for(var R=0,U=0,ae=0,ve=_[0],we=0,Ee=ve.length,Je=Ee-1;we=Ma||Xl.y<0||Xl.y>=Ma||fT(_,Xl,av,U,ae,ve,Aa,_.layers[0],_.collisionBoxArray,R.index,R.sourceLayerIndex,_.index,nn,kn,ta,dt,yn,jn,Ta,er,R,we,Mt,_t,Ee)};if(pa==="line")for(var ja=0,Ba=A1(R.geometry,0,0,Ma,Ma);ja1){var So=eT(ji,aa,U.vertical||br,ae,Br,Ln);So&&Ca(ji,So)}}else if(R.type==="Polygon")for(var fo=0,Wo=tg(R.geometry,0);foxc&&F(_.layerIds[0]+': Value for "text-size" is >= '+td+'. Reduce your "text-size".')):cn.kind==="composite"&&(nn=[Mu*er.compositeTextSizes[0].evaluate(Ee,{},br),Mu*er.compositeTextSizes[1].evaluate(Ee,{},br)],(nn[0]>xc||nn[1]>xc)&&F(_.layerIds[0]+': Value for "text-size" is >= '+td+'. Reduce your "text-size".')),_.addSymbols(_.text,Br,nn,Je,we,Ee,Mt,R,dt.lineStartIndex,dt.lineLength,nr,br);for(var Ln=0,yn=_t;Lnxc&&F(_.layerIds[0]+': Value for "icon-size" is >= '+td+'. Reduce your "icon-size".')):os.kind==="composite"&&(mo=[Mu*kn.compositeIconSizes[0].evaluate(Cn,{},aa),Mu*kn.compositeIconSizes[1].evaluate(Cn,{},aa)],(mo[0]>xc||mo[1]>xc)&&F(_.layerIds[0]+': Value for "icon-size" is >= '+td+'. Reduce your "icon-size".')),_.addSymbols(_.icon,Mo,mo,yn,Ln,Cn,!1,R,pa.lineStartIndex,pa.lineLength,-1,aa),ui=_.icon.placedSymbolArray.length-1,is&&(Ba=is.length*4,_.addSymbols(_.icon,is,mo,yn,Ln,Cn,Qs.vertical,R,pa.lineStartIndex,pa.lineLength,-1,aa),fi=_.icon.placedSymbolArray.length-1)}for(var ss in ae.horizontal){var $s=ae.horizontal[ss];if(!ba){Mi=pe($s.text);var _f=Je.layout.get("text-rotate").evaluate(Cn,{},aa);ba=new gp(dt,R,Mt,_t,jt,$s,nr,er,br,_f)}var wc=$s.positionedLines.length===1;if(li+=C1(_,R,$s,we,Je,br,Cn,Br,pa,ae.vertical?Qs.horizontal:Qs.horizontalOnly,wc?Object.keys(ae.horizontal):[ss],ni,ui,kn,aa),wc)break}ae.vertical&&(bi+=C1(_,R,ae.vertical,we,Je,br,Cn,Br,pa,Qs.vertical,["vertical"],ni,fi,kn,aa));var Tc=ba?ba.boxStartIndex:_.collisionBoxArray.length,Ac=ba?ba.boxEndIndex:_.collisionBoxArray.length,av=Aa?Aa.boxStartIndex:_.collisionBoxArray.length,Xl=Aa?Aa.boxEndIndex:_.collisionBoxArray.length,wp=Va?Va.boxStartIndex:_.collisionBoxArray.length,yg=Va?Va.boxEndIndex:_.collisionBoxArray.length,Tp=Ca?Ca.boxStartIndex:_.collisionBoxArray.length,mg=Ca?Ca.boxEndIndex:_.collisionBoxArray.length,yl=-1,iv=function(ad,W1){return ad&&ad.circleDiameter?Math.max(ad.circleDiameter,W1):W1};yl=iv(ba,yl),yl=iv(Aa,yl),yl=iv(Va,yl),yl=iv(Ca,yl);var Ap=yl>-1?1:0;Ap&&(yl*=ta/Do),_.glyphOffsetArray.length>=xi.MAX_GLYPHS&&F("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Cn.sortKey!==void 0&&_.addToSortKeyRanges(_.symbolInstances.length,Cn.sortKey),_.symbolInstances.emplaceBack(R.x,R.y,ni.right>=0?ni.right:-1,ni.center>=0?ni.center:-1,ni.left>=0?ni.left:-1,ni.vertical||-1,ui,fi,Mi,Tc,Ac,av,Xl,wp,yg,Tp,mg,Mt,li,bi,ja,Ba,Ap,0,nr,Ci,Ui,yl)}function cT(_,R,U,ae){var ve=_.compareText;if(!(R in ve))ve[R]=[];else for(var we=ve[R],Ee=we.length-1;Ee>=0;Ee--)if(ae.dist(we[Ee])0)&&(Ee.value.kind!=="constant"||Ee.value.value.length>0),_t=dt.value.kind!=="constant"||!!dt.value.value||Object.keys(dt.parameters).length>0,jt=we.get("symbol-sort-key");if(this.features=[],!(!Mt&&!_t)){for(var nr=U.iconDependencies,er=U.glyphDependencies,br=U.availableImages,Br=new Sa(this.zoom),cn=0,nn=R;cn=0;for(var bi=0,ui=Ta.sections;bi=0;dt--)Ee[dt]={x:U[dt].x,y:U[dt].y,tileUnitDistanceFromAnchor:we},dt>0&&(we+=U[dt-1].dist(U[dt]));for(var Mt=0;Mt0},xi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},xi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},xi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},xi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},xi.prototype.addIndicesForPlacedSymbol=function(R,U){for(var ae=R.placedSymbolArray.get(U),ve=ae.vertexStartIndex+ae.numGlyphs*4,we=ae.vertexStartIndex;we1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(R),this.sortedAngle=R,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ae=0,ve=this.symbolInstanceIndexes;ae=0&&Mt.indexOf(Je)===dt&&U.addIndicesForPlacedSymbol(U.text,Je)}),Ee.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Ee.verticalPlacedTextSymbolIndex),Ee.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Ee.placedIconSymbolIndex),Ee.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Ee.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Be("SymbolBucket",xi,{omit:["layers","collisionBoxArray","features","compareText"]}),xi.MAX_GLYPHS=65535,xi.addDynamicAttributes=hg;function pT(_,R){return R.replace(/{([^{}]+)}/g,function(U,ae){return ae in _?String(_[ae]):""})}var gT=new hi({"symbol-placement":new la(Ar.layout_symbol["symbol-placement"]),"symbol-spacing":new la(Ar.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new la(Ar.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new La(Ar.layout_symbol["symbol-sort-key"]),"symbol-z-order":new la(Ar.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new la(Ar.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new la(Ar.layout_symbol["icon-ignore-placement"]),"icon-optional":new la(Ar.layout_symbol["icon-optional"]),"icon-rotation-alignment":new la(Ar.layout_symbol["icon-rotation-alignment"]),"icon-size":new La(Ar.layout_symbol["icon-size"]),"icon-text-fit":new la(Ar.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new la(Ar.layout_symbol["icon-text-fit-padding"]),"icon-image":new La(Ar.layout_symbol["icon-image"]),"icon-rotate":new La(Ar.layout_symbol["icon-rotate"]),"icon-padding":new la(Ar.layout_symbol["icon-padding"]),"icon-keep-upright":new la(Ar.layout_symbol["icon-keep-upright"]),"icon-offset":new La(Ar.layout_symbol["icon-offset"]),"icon-anchor":new La(Ar.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new la(Ar.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new la(Ar.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new la(Ar.layout_symbol["text-rotation-alignment"]),"text-field":new La(Ar.layout_symbol["text-field"]),"text-font":new La(Ar.layout_symbol["text-font"]),"text-size":new La(Ar.layout_symbol["text-size"]),"text-max-width":new La(Ar.layout_symbol["text-max-width"]),"text-line-height":new la(Ar.layout_symbol["text-line-height"]),"text-letter-spacing":new La(Ar.layout_symbol["text-letter-spacing"]),"text-justify":new La(Ar.layout_symbol["text-justify"]),"text-radial-offset":new La(Ar.layout_symbol["text-radial-offset"]),"text-variable-anchor":new la(Ar.layout_symbol["text-variable-anchor"]),"text-anchor":new La(Ar.layout_symbol["text-anchor"]),"text-max-angle":new la(Ar.layout_symbol["text-max-angle"]),"text-writing-mode":new la(Ar.layout_symbol["text-writing-mode"]),"text-rotate":new La(Ar.layout_symbol["text-rotate"]),"text-padding":new la(Ar.layout_symbol["text-padding"]),"text-keep-upright":new la(Ar.layout_symbol["text-keep-upright"]),"text-transform":new La(Ar.layout_symbol["text-transform"]),"text-offset":new La(Ar.layout_symbol["text-offset"]),"text-allow-overlap":new la(Ar.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new la(Ar.layout_symbol["text-ignore-placement"]),"text-optional":new la(Ar.layout_symbol["text-optional"])}),yT=new hi({"icon-opacity":new La(Ar.paint_symbol["icon-opacity"]),"icon-color":new La(Ar.paint_symbol["icon-color"]),"icon-halo-color":new La(Ar.paint_symbol["icon-halo-color"]),"icon-halo-width":new La(Ar.paint_symbol["icon-halo-width"]),"icon-halo-blur":new La(Ar.paint_symbol["icon-halo-blur"]),"icon-translate":new la(Ar.paint_symbol["icon-translate"]),"icon-translate-anchor":new la(Ar.paint_symbol["icon-translate-anchor"]),"text-opacity":new La(Ar.paint_symbol["text-opacity"]),"text-color":new La(Ar.paint_symbol["text-color"],{runtimeType:En,getOverride:function(_){return _.textColor},hasOverride:function(_){return!!_.textColor}}),"text-halo-color":new La(Ar.paint_symbol["text-halo-color"]),"text-halo-width":new La(Ar.paint_symbol["text-halo-width"]),"text-halo-blur":new La(Ar.paint_symbol["text-halo-blur"]),"text-translate":new la(Ar.paint_symbol["text-translate"]),"text-translate-anchor":new la(Ar.paint_symbol["text-translate-anchor"])}),vg={paint:yT,layout:gT},tv=function(R){this.type=R.property.overrides?R.property.overrides.runtimeType:Gr,this.defaultValue=R};tv.prototype.evaluate=function(R){if(R.formattedSection){var U=this.defaultValue.property.overrides;if(U&&U.hasOverride(R.formattedSection))return U.getOverride(R.formattedSection)}return R.feature&&R.featureState?this.defaultValue.evaluate(R.feature,R.featureState):this.defaultValue.property.specification.default},tv.prototype.eachChild=function(R){if(!this.defaultValue.isConstant()){var U=this.defaultValue.value;R(U._styleExpression.expression)}},tv.prototype.outputDefined=function(){return!1},tv.prototype.serialize=function(){return null},Be("FormatSectionOverride",tv,{omit:["defaultValue"]});var mT=function(_){function R(U){_.call(this,U,vg)}return _&&(R.__proto__=_),R.prototype=Object.create(_&&_.prototype),R.prototype.constructor=R,R.prototype.recalculate=function(ae,ve){if(_.prototype.recalculate.call(this,ae,ve),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var we=this.layout.get("text-writing-mode");if(we){for(var Ee=[],Je=0,dt=we;Je",targetMapId:ve,sourceMapId:Ee.mapId})}}},rv.prototype.receive=function(R){var U=R.data,ae=U.id;if(ae&&!(U.targetMapId&&this.mapId!==U.targetMapId))if(U.type===""){delete this.tasks[ae];var ve=this.cancelCallbacks[ae];delete this.cancelCallbacks[ae],ve&&ve()}else J()||U.mustQueue?(this.tasks[ae]=U,this.taskQueue.push(ae),this.invoker.trigger()):this.processTask(ae,U)},rv.prototype.process=function(){if(this.taskQueue.length){var R=this.taskQueue.shift(),U=this.tasks[R];delete this.tasks[R],this.taskQueue.length&&this.invoker.trigger(),U&&this.processTask(R,U)}},rv.prototype.processTask=function(R,U){var ae=this;if(U.type===""){var ve=this.callbacks[R];delete this.callbacks[R],ve&&(U.error?ve(St(U.error)):ve(null,St(U.data)))}else{var we=!1,Ee=le(this.globalScope)?void 0:[],Je=U.hasCallback?function(nr,er){we=!0,delete ae.cancelCallbacks[R],ae.target.postMessage({id:R,type:"",sourceMapId:ae.mapId,error:nr?Pt(nr):null,data:Pt(er,Ee)},Ee)}:function(nr){we=!0},dt=null,Mt=St(U.data);if(this.parent[U.type])dt=this.parent[U.type](U.sourceMapId,Mt,Je);else if(this.parent.getWorkerSource){var _t=U.type.split("."),jt=this.parent.getWorkerSource(U.sourceMapId,_t[0],Mt.source);dt=jt[_t[1]](Mt,Je)}else Je(new Error("Could not find function "+U.type));!we&&dt&&dt.cancel&&(this.cancelCallbacks[R]=dt.cancel)}},rv.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function PT(_,R,U){R=Math.pow(2,U)-R-1;var ae=I1(_*256,R*256,U),ve=I1((_+1)*256,(R+1)*256,U);return ae[0]+","+ae[1]+","+ve[0]+","+ve[1]}function I1(_,R,U){var ae=2*Math.PI*6378137/256/Math.pow(2,U),ve=_*ae-2*Math.PI*6378137/2,we=R*ae-2*Math.PI*6378137/2;return[ve,we]}var lo=function(R,U){R&&(U?this.setSouthWest(R).setNorthEast(U):R.length===4?this.setSouthWest([R[0],R[1]]).setNorthEast([R[2],R[3]]):this.setSouthWest(R[0]).setNorthEast(R[1]))};lo.prototype.setNorthEast=function(R){return this._ne=R instanceof Ri?new Ri(R.lng,R.lat):Ri.convert(R),this},lo.prototype.setSouthWest=function(R){return this._sw=R instanceof Ri?new Ri(R.lng,R.lat):Ri.convert(R),this},lo.prototype.extend=function(R){var U=this._sw,ae=this._ne,ve,we;if(R instanceof Ri)ve=R,we=R;else if(R instanceof lo){if(ve=R._sw,we=R._ne,!ve||!we)return this}else{if(Array.isArray(R))if(R.length===4||R.every(Array.isArray)){var Ee=R;return this.extend(lo.convert(Ee))}else{var Je=R;return this.extend(Ri.convert(Je))}return this}return!U&&!ae?(this._sw=new Ri(ve.lng,ve.lat),this._ne=new Ri(we.lng,we.lat)):(U.lng=Math.min(ve.lng,U.lng),U.lat=Math.min(ve.lat,U.lat),ae.lng=Math.max(we.lng,ae.lng),ae.lat=Math.max(we.lat,ae.lat)),this},lo.prototype.getCenter=function(){return new Ri((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lo.prototype.getSouthWest=function(){return this._sw},lo.prototype.getNorthEast=function(){return this._ne},lo.prototype.getNorthWest=function(){return new Ri(this.getWest(),this.getNorth())},lo.prototype.getSouthEast=function(){return new Ri(this.getEast(),this.getSouth())},lo.prototype.getWest=function(){return this._sw.lng},lo.prototype.getSouth=function(){return this._sw.lat},lo.prototype.getEast=function(){return this._ne.lng},lo.prototype.getNorth=function(){return this._ne.lat},lo.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lo.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lo.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lo.prototype.contains=function(R){var U=Ri.convert(R),ae=U.lng,ve=U.lat,we=this._sw.lat<=ve&&ve<=this._ne.lat,Ee=this._sw.lng<=ae&&ae<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Ee=this._sw.lng>=ae&&ae>=this._ne.lng),we&&Ee},lo.convert=function(R){return!R||R instanceof lo?R:new lo(R)};var k1=63710088e-1,Ri=function(R,U){if(isNaN(R)||isNaN(U))throw new Error("Invalid LngLat object: ("+R+", "+U+")");if(this.lng=+R,this.lat=+U,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Ri.prototype.wrap=function(){return new Ri(T(this.lng,-180,180),this.lat)},Ri.prototype.toArray=function(){return[this.lng,this.lat]},Ri.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Ri.prototype.distanceTo=function(R){var U=Math.PI/180,ae=this.lat*U,ve=R.lat*U,we=Math.sin(ae)*Math.sin(ve)+Math.cos(ae)*Math.cos(ve)*Math.cos((R.lng-this.lng)*U),Ee=k1*Math.acos(Math.min(we,1));return Ee},Ri.prototype.toBounds=function(R){R===void 0&&(R=0);var U=40075017,ae=360*R/U,ve=ae/Math.cos(Math.PI/180*this.lat);return new lo(new Ri(this.lng-ve,this.lat-ae),new Ri(this.lng+ve,this.lat+ae))},Ri.convert=function(R){if(R instanceof Ri)return R;if(Array.isArray(R)&&(R.length===2||R.length===3))return new Ri(Number(R[0]),Number(R[1]));if(!Array.isArray(R)&&typeof R=="object"&&R!==null)return new Ri(Number("lng"in R?R.lng:R.lon),Number(R.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var z1=2*Math.PI*k1;function O1(_){return z1*Math.cos(_*Math.PI/180)}function F1(_){return(180+_)/360}function N1(_){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+_*Math.PI/360)))/360}function B1(_,R){return _/O1(R)}function _T(_){return _*360-180}function pg(_){var R=180-_*360;return 360/Math.PI*Math.atan(Math.exp(R*Math.PI/180))-90}function RT(_,R){return _*O1(pg(R))}function DT(_){return 1/Math.cos(_*Math.PI/180)}var yh=function(R,U,ae){ae===void 0&&(ae=0),this.x=+R,this.y=+U,this.z=+ae};yh.fromLngLat=function(R,U){U===void 0&&(U=0);var ae=Ri.convert(R);return new yh(F1(ae.lng),N1(ae.lat),B1(U,ae.lat))},yh.prototype.toLngLat=function(){return new Ri(_T(this.x),pg(this.y))},yh.prototype.toAltitude=function(){return RT(this.z,this.y)},yh.prototype.meterInMercatorCoordinateUnits=function(){return 1/z1*DT(pg(this.y))};var mh=function(R,U,ae){this.z=R,this.x=U,this.y=ae,this.key=nd(0,R,R,U,ae)};mh.prototype.equals=function(R){return this.z===R.z&&this.x===R.x&&this.y===R.y},mh.prototype.url=function(R,U){var ae=PT(this.x,this.y,this.z),ve=IT(this.z,this.x,this.y);return R[(this.x+this.y)%R.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(U==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",ve).replace("{bbox-epsg-3857}",ae)},mh.prototype.getTilePoint=function(R){var U=Math.pow(2,this.z);return new r((R.x*U-this.x)*Ma,(R.y*U-this.y)*Ma)},mh.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var U1=function(R,U){this.wrap=R,this.canonical=U,this.key=nd(R,U.z,U.z,U.x,U.y)},uo=function(R,U,ae,ve,we){this.overscaledZ=R,this.wrap=U,this.canonical=new mh(ae,+ve,+we),this.key=nd(U,R,ae,ve,we)};uo.prototype.equals=function(R){return this.overscaledZ===R.overscaledZ&&this.wrap===R.wrap&&this.canonical.equals(R.canonical)},uo.prototype.scaledTo=function(R){var U=this.canonical.z-R;return R>this.canonical.z?new uo(R,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uo(R,this.wrap,R,this.canonical.x>>U,this.canonical.y>>U)},uo.prototype.calculateScaledKey=function(R,U){var ae=this.canonical.z-R;return R>this.canonical.z?nd(this.wrap*+U,R,this.canonical.z,this.canonical.x,this.canonical.y):nd(this.wrap*+U,R,R,this.canonical.x>>ae,this.canonical.y>>ae)},uo.prototype.isChildOf=function(R){if(R.wrap!==this.wrap)return!1;var U=this.canonical.z-R.canonical.z;return R.overscaledZ===0||R.overscaledZ>U&&R.canonical.y===this.canonical.y>>U},uo.prototype.children=function(R){if(this.overscaledZ>=R)return[new uo(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var U=this.canonical.z+1,ae=this.canonical.x*2,ve=this.canonical.y*2;return[new uo(U,this.wrap,U,ae,ve),new uo(U,this.wrap,U,ae+1,ve),new uo(U,this.wrap,U,ae,ve+1),new uo(U,this.wrap,U,ae+1,ve+1)]},uo.prototype.isLessThan=function(R){return this.wrapR.wrap?!1:this.overscaledZR.overscaledZ?!1:this.canonical.xR.canonical.x?!1:this.canonical.y0;we--)ve=1<=this.dim+1||U<-1||U>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(U+1)*this.stride+(R+1)},Lf.prototype._unpackMapbox=function(R,U,ae){return(R*256*256+U*256+ae)/10-1e4},Lf.prototype._unpackTerrarium=function(R,U,ae){return R*256+U+ae/256-32768},Lf.prototype.getPixels=function(){return new bs({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Lf.prototype.backfillBorder=function(R,U,ae){if(this.dim!==R.dim)throw new Error("dem dimension mismatch");var ve=U*this.dim,we=U*this.dim+this.dim,Ee=ae*this.dim,Je=ae*this.dim+this.dim;switch(U){case-1:ve=we-1;break;case 1:we=ve+1;break}switch(ae){case-1:Ee=Je-1;break;case 1:Je=Ee+1;break}for(var dt=-U*this.dim,Mt=-ae*this.dim,_t=Ee;_t=0&&jt[3]>=0&&dt.insert(Je,jt[0],jt[1],jt[2],jt[3])}},Pf.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Yh.VectorTile(new up(this.rawTileData)).layers,this.sourceLayerCoder=new xp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Pf.prototype.query=function(R,U,ae,ve){var we=this;this.loadVTLayers();for(var Ee=R.params||{},Je=Ma/R.tileSize/R.scale,dt=Zs(Ee.filter),Mt=R.queryGeometry,_t=R.queryPadding*Je,jt=H1(Mt),nr=this.grid.query(jt.minX-_t,jt.minY-_t,jt.maxX+_t,jt.maxY+_t),er=H1(R.cameraQueryGeometry),br=this.grid3D.query(er.minX-_t,er.minY-_t,er.maxX+_t,er.maxY+_t,function(jn,aa,ta,Ta){return jl(R.cameraQueryGeometry,jn-_t,aa-_t,ta+_t,Ta+_t)}),Br=0,cn=br;Brve)we=!1;else if(!U)we=!0;else if(this.expirationTime=hr.maxzoom)&&hr.visibility!=="none"){n(ir,this.zoom,At);var xr=ur[hr.id]=hr.createBucket({index:Jt.bucketLayerIDs.length,layers:ir,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:zt,sourceID:this.source});xr.populate(Dt,fr,this.tileID.canonical),Jt.bucketLayerIDs.push(ir.map(function(Tr){return Tr.id}))}}}}var vr,Hr,_r,Dr,an=s.mapObject(fr.glyphDependencies,function(Tr){return Object.keys(Tr).map(Number)});Object.keys(an).length?Et.send("getGlyphs",{uid:this.uid,stacks:an},function(Tr,zr){vr||(vr=Tr,Hr=zr,Tn.call(Bt))}):Hr={};var tn=Object.keys(fr.iconDependencies);tn.length?Et.send("getImages",{icons:tn,source:this.source,tileID:this.tileID,type:"icons"},function(Tr,zr){vr||(vr=Tr,_r=zr,Tn.call(Bt))}):_r={};var Sn=Object.keys(fr.patternDependencies);Sn.length?Et.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(Tr,zr){vr||(vr=Tr,Dr=zr,Tn.call(Bt))}):Dr={},Tn.call(this);function Tn(){if(vr)return Vt(vr);if(Hr&&_r&&Dr){var Tr=new t(Hr),zr=new s.ImageAtlas(_r,Dr);for(var Yr in ur){var Or=ur[Yr];Or instanceof s.SymbolBucket?(n(Or.layers,this.zoom,At),s.performSymbolLayout(Or,Hr,Tr.positions,_r,zr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Or.hasPattern&&(Or instanceof s.LineBucket||Or instanceof s.FillBucket||Or instanceof s.FillExtrusionBucket)&&(n(Or.layers,this.zoom,At),Or.addFeatures(fr,this.tileID.canonical,zr.patternPositions))}this.status="done",Vt(null,{buckets:s.values(ur).filter(function(ln){return!ln.isEmpty()}),featureIndex:Jt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Tr.image,imageAtlas:zr,glyphMap:this.returnDependencies?Hr:null,iconMap:this.returnDependencies?_r:null,glyphPositions:this.returnDependencies?Tr.positions:null})}}};function n(ut,at,xt){for(var At=new s.EvaluationParameters(at),Et=0,Vt=ut;Et=0!=!!at&&ut.reverse()}var d=s.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(at){this._feature=at,this.extent=s.EXTENT,this.type=at.type,this.properties=at.tags,"id"in at&&!isNaN(at.id)&&(this.id=parseInt(at.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var at=[],xt=0,At=this._feature.geometry;xt"u"&&(At.push(Ut),Jt=At.length-1,Vt[Ut]=Jt),at.writeVarint(Jt);var ur=xt.properties[Ut],fr=typeof ur;fr!=="string"&&fr!=="boolean"&&fr!=="number"&&(ur=JSON.stringify(ur));var dr=fr+":"+ur,Ye=Bt[dr];typeof Ye>"u"&&(Et.push(ur),Ye=Et.length-1,Bt[dr]=Ye),at.writeVarint(Ye)}}function B(ut,at){return(at<<3)+(ut&7)}function W(ut){return ut<<1^ut>>31}function J(ut,at){for(var xt=ut.loadGeometry(),At=ut.type,Et=0,Vt=0,Bt=xt.length,Ut=0;Ut>1;le(ut,at,Bt,At,Et,Vt%2),ne(ut,at,xt,At,Bt-1,Vt+1),ne(ut,at,xt,Bt+1,Et,Vt+1)}}function le(ut,at,xt,At,Et,Vt){for(;Et>At;){if(Et-At>600){var Bt=Et-At+1,Ut=xt-At+1,Jt=Math.log(Bt),ur=.5*Math.exp(2*Jt/3),fr=.5*Math.sqrt(Jt*ur*(Bt-ur)/Bt)*(Ut-Bt/2<0?-1:1),dr=Math.max(At,Math.floor(xt-Ut*ur/Bt+fr)),Ye=Math.min(Et,Math.floor(xt+(Bt-Ut)*ur/Bt+fr));le(ut,at,xt,dr,Ye,Vt)}var Ue=at[2*xt+Vt],zt=At,Dt=Et;for($(ut,at,At,xt),at[2*Et+Vt]>Ue&&$(ut,at,At,Et);ztUe;)Dt--}at[2*At+Vt]===Ue?$(ut,at,At,Dt):(Dt++,$(ut,at,Dt,Et)),Dt<=xt&&(At=Dt+1),xt<=Dt&&(Et=Dt-1)}}function $(ut,at,xt,At){Z(ut,xt,At),Z(at,2*xt,2*At),Z(at,2*xt+1,2*At+1)}function Z(ut,at,xt){var At=ut[at];ut[at]=ut[xt],ut[xt]=At}function ie(ut,at,xt,At,Et,Vt,Bt){for(var Ut=[0,ut.length-1,0],Jt=[],ur,fr;Ut.length;){var dr=Ut.pop(),Ye=Ut.pop(),Ue=Ut.pop();if(Ye-Ue<=Bt){for(var zt=Ue;zt<=Ye;zt++)ur=at[2*zt],fr=at[2*zt+1],ur>=xt&&ur<=Et&&fr>=At&&fr<=Vt&&Jt.push(ut[zt]);continue}var Dt=Math.floor((Ue+Ye)/2);ur=at[2*Dt],fr=at[2*Dt+1],ur>=xt&&ur<=Et&&fr>=At&&fr<=Vt&&Jt.push(ut[Dt]);var $t=(dr+1)%2;(dr===0?xt<=ur:At<=fr)&&(Ut.push(Ue),Ut.push(Dt-1),Ut.push($t)),(dr===0?Et>=ur:Vt>=fr)&&(Ut.push(Dt+1),Ut.push(Ye),Ut.push($t))}return Jt}function X(ut,at,xt,At,Et,Vt){for(var Bt=[0,ut.length-1,0],Ut=[],Jt=Et*Et;Bt.length;){var ur=Bt.pop(),fr=Bt.pop(),dr=Bt.pop();if(fr-dr<=Vt){for(var Ye=dr;Ye<=fr;Ye++)Q(at[2*Ye],at[2*Ye+1],xt,At)<=Jt&&Ut.push(ut[Ye]);continue}var Ue=Math.floor((dr+fr)/2),zt=at[2*Ue],Dt=at[2*Ue+1];Q(zt,Dt,xt,At)<=Jt&&Ut.push(ut[Ue]);var $t=(ur+1)%2;(ur===0?xt-Et<=zt:At-Et<=Dt)&&(Bt.push(dr),Bt.push(Ue-1),Bt.push($t)),(ur===0?xt+Et>=zt:At+Et>=Dt)&&(Bt.push(Ue+1),Bt.push(fr),Bt.push($t))}return Ut}function Q(ut,at,xt,At){var Et=ut-xt,Vt=at-At;return Et*Et+Vt*Vt}var oe=function(ut){return ut[0]},Y=function(ut){return ut[1]},j=function(at,xt,At,Et,Vt){xt===void 0&&(xt=oe),At===void 0&&(At=Y),Et===void 0&&(Et=64),Vt===void 0&&(Vt=Float64Array),this.nodeSize=Et,this.points=at;for(var Bt=at.length<65536?Uint16Array:Uint32Array,Ut=this.ids=new Bt(at.length),Jt=this.coords=new Vt(at.length*2),ur=0;ur=Et;fr--){var dr=+Date.now();Jt=this._cluster(Jt,fr),this.trees[fr]=new j(Jt,Se,Ie,Bt,Float32Array),At&&console.log("z%d: %d clusters in %dms",fr,Jt.length,+Date.now()-dr)}return At&&console.timeEnd("total time"),this},te.prototype.getClusters=function(at,xt){var At=((at[0]+180)%360+360)%360-180,Et=Math.max(-90,Math.min(90,at[1])),Vt=at[2]===180?180:((at[2]+180)%360+360)%360-180,Bt=Math.max(-90,Math.min(90,at[3]));if(at[2]-at[0]>=360)At=-180,Vt=180;else if(At>Vt){var Ut=this.getClusters([At,Et,180,Bt],xt),Jt=this.getClusters([-180,Et,Vt,Bt],xt);return Ut.concat(Jt)}for(var ur=this.trees[this._limitZoom(xt)],fr=ur.range(_e(At),De(Bt),_e(Vt),De(Et)),dr=[],Ye=0,Ue=fr;Yext&&(Dt+=tr.numPoints||1)}if(Dt>=Jt){for(var Nt=dr.x*zt,ir=dr.y*zt,hr=Ut&&zt>1?this._map(dr,!0):null,xr=(fr<<5)+(xt+1)+this.points.length,vr=0,Hr=Ue;vr1)for(var tn=0,Sn=Ue;tn>5},te.prototype._getOriginZoom=function(at){return(at-this.points.length)%32},te.prototype._map=function(at,xt){if(at.numPoints)return xt?Re({},at.properties):at.properties;var At=this.points[at.index].properties,Et=this.options.map(At);return xt&&Et===At?Re({},Et):Et};function fe(ut,at,xt,At,Et){return{x:ut,y:at,zoom:1/0,id:xt,parentId:-1,numPoints:At,properties:Et}}function ge(ut,at){var xt=ut.geometry.coordinates,At=xt[0],Et=xt[1];return{x:_e(At),y:De(Et),zoom:1/0,index:at,parentId:-1}}function be(ut){return{type:"Feature",id:ut.id,properties:xe(ut),geometry:{type:"Point",coordinates:[Fe(ut.x),Te(ut.y)]}}}function xe(ut){var at=ut.numPoints,xt=at>=1e4?Math.round(at/1e3)+"k":at>=1e3?Math.round(at/100)/10+"k":at;return Re(Re({},ut.properties),{cluster:!0,cluster_id:ut.id,point_count:at,point_count_abbreviated:xt})}function _e(ut){return ut/360+.5}function De(ut){var at=Math.sin(ut*Math.PI/180),xt=.5-.25*Math.log((1+at)/(1-at))/Math.PI;return xt<0?0:xt>1?1:xt}function Fe(ut){return(ut-.5)*360}function Te(ut){var at=(180-ut*360)*Math.PI/180;return 360*Math.atan(Math.exp(at))/Math.PI-90}function Re(ut,at){for(var xt in at)ut[xt]=at[xt];return ut}function Se(ut){return ut.x}function Ie(ut){return ut.y}function Me(ut,at,xt,At){for(var Et=At,Vt=xt-at>>1,Bt=xt-at,Ut,Jt=ut[at],ur=ut[at+1],fr=ut[xt],dr=ut[xt+1],Ye=at+3;YeEt)Ut=Ye,Et=Ue;else if(Ue===Et){var zt=Math.abs(Ye-Vt);ztAt&&(Ut-at>3&&Me(ut,at,Ut,At),ut[Ut+2]=Et,xt-Ut>3&&Me(ut,Ut,xt,At))}function Ve(ut,at,xt,At,Et,Vt){var Bt=Et-xt,Ut=Vt-At;if(Bt!==0||Ut!==0){var Jt=((ut-xt)*Bt+(at-At)*Ut)/(Bt*Bt+Ut*Ut);Jt>1?(xt=Et,At=Vt):Jt>0&&(xt+=Bt*Jt,At+=Ut*Jt)}return Bt=ut-xt,Ut=at-At,Bt*Bt+Ut*Ut}function et(ut,at,xt,At){var Et={id:typeof ut>"u"?null:ut,type:at,geometry:xt,tags:At,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ot(Et),Et}function ot(ut){var at=ut.geometry,xt=ut.type;if(xt==="Point"||xt==="MultiPoint"||xt==="LineString")Qe(ut,at);else if(xt==="Polygon"||xt==="MultiLineString")for(var At=0;At0&&(At?Bt+=(Et*ur-Jt*Vt)/2:Bt+=Math.sqrt(Math.pow(Jt-Et,2)+Math.pow(ur-Vt,2))),Et=Jt,Vt=ur}var fr=at.length-3;at[2]=1,Me(at,0,fr,xt),at[fr+2]=1,at.size=Math.abs(Bt),at.start=0,at.end=at.size}function wt(ut,at,xt,At){for(var Et=0;Et1?1:xt}function ze(ut,at,xt,At,Et,Vt,Bt,Ut){if(xt/=at,At/=at,Vt>=xt&&Bt=At)return null;for(var Jt=[],ur=0;ur=xt&&zt=At)continue;var Dt=[];if(Ye==="Point"||Ye==="MultiPoint")He(dr,Dt,xt,At,Et);else if(Ye==="LineString")We(dr,Dt,xt,At,Et,!1,Ut.lineMetrics);else if(Ye==="MultiLineString")Le(dr,Dt,xt,At,Et,!1);else if(Ye==="Polygon")Le(dr,Dt,xt,At,Et,!0);else if(Ye==="MultiPolygon")for(var $t=0;$t=xt&&Bt<=At&&(at.push(ut[Vt]),at.push(ut[Vt+1]),at.push(ut[Vt+2]))}}function We(ut,at,xt,At,Et,Vt,Bt){for(var Ut=Ge(ut),Jt=Et===0?je:Ce,ur=ut.start,fr,dr,Ye=0;Yext&&(dr=Jt(Ut,Ue,zt,$t,sr,xt),Bt&&(Ut.start=ur+fr*dr)):cr>At?tr=xt&&(dr=Jt(Ut,Ue,zt,$t,sr,xt),Nt=!0),tr>At&&cr<=At&&(dr=Jt(Ut,Ue,zt,$t,sr,At),Nt=!0),!Vt&&Nt&&(Bt&&(Ut.end=ur+fr*dr),at.push(Ut),Ut=Ge(ut)),Bt&&(ur+=fr)}var ir=ut.length-3;Ue=ut[ir],zt=ut[ir+1],Dt=ut[ir+2],cr=Et===0?Ue:zt,cr>=xt&&cr<=At&&Pe(Ut,Ue,zt,Dt),ir=Ut.length-3,Vt&&ir>=3&&(Ut[ir]!==Ut[0]||Ut[ir+1]!==Ut[1])&&Pe(Ut,Ut[0],Ut[1],Ut[2]),Ut.length&&at.push(Ut)}function Ge(ut){var at=[];return at.size=ut.size,at.start=ut.start,at.end=ut.end,at}function Le(ut,at,xt,At,Et,Vt){for(var Bt=0;BtBt.maxX&&(Bt.maxX=fr),dr>Bt.maxY&&(Bt.maxY=dr)}return Bt}function Wt(ut,at,xt,At){var Et=at.geometry,Vt=at.type,Bt=[];if(Vt==="Point"||Vt==="MultiPoint")for(var Ut=0;Ut0&&at.size<(Et?Bt:At)){xt.numPoints+=at.length/3;return}for(var Ut=[],Jt=0;JtBt)&&(xt.numSimplified++,Ut.push(at[Jt]),Ut.push(at[Jt+1])),xt.numPoints++;Et&&Tt(Ut,Vt),ut.push(Ut)}function Tt(ut,at){for(var xt=0,At=0,Et=ut.length,Vt=Et-2;At0===at)for(At=0,Et=ut.length;At24)throw new Error("maxZoom should be in the 0-24 range");if(at.promoteId&&at.generateId)throw new Error("promoteId and generateId cannot be used together.");var At=$e(ut,at);this.tiles={},this.tileCoords=[],xt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",at.indexMaxZoom,at.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),At=he(At,at),At.length&&this.splitTile(At,0,0,0),xt&&(At.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)))}Xt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Xt.prototype.splitTile=function(ut,at,xt,At,Et,Vt,Bt){for(var Ut=[ut,at,xt,At],Jt=this.options,ur=Jt.debug;Ut.length;){At=Ut.pop(),xt=Ut.pop(),at=Ut.pop(),ut=Ut.pop();var fr=1<1&&console.time("creation"),Ye=this.tiles[dr]=lt(ut,at,xt,At,Jt),this.tileCoords.push({z:at,x:xt,y:At}),ur)){ur>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",at,xt,At,Ye.numFeatures,Ye.numPoints,Ye.numSimplified),console.timeEnd("creation"));var Ue="z"+at;this.stats[Ue]=(this.stats[Ue]||0)+1,this.total++}if(Ye.source=ut,Et){if(at===Jt.maxZoom||at===Et)continue;var zt=1<1&&console.time("clipping");var Dt=.5*Jt.buffer/Jt.extent,$t=.5-Dt,sr=.5+Dt,cr=1+Dt,tr,Nt,ir,hr,xr,vr;tr=Nt=ir=hr=null,xr=ze(ut,fr,xt-Dt,xt+sr,0,Ye.minX,Ye.maxX,Jt),vr=ze(ut,fr,xt+$t,xt+cr,0,Ye.minX,Ye.maxX,Jt),ut=null,xr&&(tr=ze(xr,fr,At-Dt,At+sr,1,Ye.minY,Ye.maxY,Jt),Nt=ze(xr,fr,At+$t,At+cr,1,Ye.minY,Ye.maxY,Jt),xr=null),vr&&(ir=ze(vr,fr,At-Dt,At+sr,1,Ye.minY,Ye.maxY,Jt),hr=ze(vr,fr,At+$t,At+cr,1,Ye.minY,Ye.maxY,Jt),vr=null),ur>1&&console.timeEnd("clipping"),Ut.push(tr||[],at+1,xt*2,At*2),Ut.push(Nt||[],at+1,xt*2,At*2+1),Ut.push(ir||[],at+1,xt*2+1,At*2),Ut.push(hr||[],at+1,xt*2+1,At*2+1)}}},Xt.prototype.getTile=function(ut,at,xt){var At=this.options,Et=At.extent,Vt=At.debug;if(ut<0||ut>24)return null;var Bt=1<1&&console.log("drilling down to z%d-%d-%d",ut,at,xt);for(var Jt=ut,ur=at,fr=xt,dr;!dr&&Jt>0;)Jt--,ur=Math.floor(ur/2),fr=Math.floor(fr/2),dr=this.tiles[gr(Jt,ur,fr)];return!dr||!dr.source?null:(Vt>1&&console.log("found parent tile z%d-%d-%d",Jt,ur,fr),Vt>1&&console.time("drilling down"),this.splitTile(dr.source,Jt,ur,fr,ut,at,xt),Vt>1&&console.timeEnd("drilling down"),this.tiles[Ut]?Ze(this.tiles[Ut],Et):null)};function gr(ut,at,xt){return((1<=0?0:ce.button},S.remove=function(ce){ce.parentNode&&ce.parentNode.removeChild(ce)};function l(ce,K,de){var ee,pe,Oe,Xe=s.browser.devicePixelRatio>1?"@2x":"",ft=s.getJSON(K.transformRequest(K.normalizeSpriteURL(ce,Xe,".json"),s.ResourceType.SpriteJSON),function(qt,lr){ft=null,Oe||(Oe=qt,ee=lr,Ht())}),Lt=s.getImage(K.transformRequest(K.normalizeSpriteURL(ce,Xe,".png"),s.ResourceType.SpriteImage),function(qt,lr){Lt=null,Oe||(Oe=qt,pe=lr,Ht())});function Ht(){if(Oe)de(Oe);else if(ee&&pe){var qt=s.browser.getImageData(pe),lr={};for(var or in ee){var kr=ee[or],Xr=kr.width,jr=kr.height,Wr=kr.x,Qr=kr.y,dn=kr.sdf,In=kr.pixelRatio,Bn=kr.stretchX,Xn=kr.stretchY,Zn=kr.content,Yn=new s.RGBAImage({width:Xr,height:jr});s.RGBAImage.copy(qt,Yn,{x:Wr,y:Qr},{x:0,y:0},{width:Xr,height:jr}),lr[or]={data:Yn,pixelRatio:In,sdf:dn,stretchX:Bn,stretchY:Xn,content:Zn}}de(null,lr)}}return{cancel:function(){ft&&(ft.cancel(),ft=null),Lt&&(Lt.cancel(),Lt=null)}}}function g(ce){var K=ce.userImage;if(K&&K.render){var de=K.render();if(de)return ce.data.replace(new Uint8Array(K.data.buffer)),!0}return!1}var h=1,T=function(ce){function K(){ce.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new s.RGBAImage({width:1,height:1}),this.dirty=!0}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.isLoaded=function(){return this.loaded},K.prototype.setLoaded=function(ee){if(this.loaded!==ee&&(this.loaded=ee,ee)){for(var pe=0,Oe=this.requestors;pe=0?1.2:1))}w.prototype.draw=function(ce){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(ce,this.buffer,this.middle);for(var K=this.ctx.getImageData(0,0,this.size,this.size),de=new Uint8ClampedArray(this.size*this.size),ee=0;ee65535){qt(new Error("glyphs > 65535 not supported"));return}if(kr.ranges[jr]){qt(null,{stack:lr,id:or,glyph:Xr});return}var Wr=kr.requests[jr];Wr||(Wr=kr.requests[jr]=[],E.loadGlyphRange(lr,jr,ee.url,ee.requestManager,function(Qr,dn){if(dn){for(var In in dn)ee._doesCharSupportLocalGlyph(+In)||(kr.glyphs[+In]=dn[+In]);kr.ranges[jr]=!0}for(var Bn=0,Xn=Wr;Bn1&&(Ht=K[++Lt]);var lr=Math.abs(qt-Ht.left),or=Math.abs(qt-Ht.right),kr=Math.min(lr,or),Xr=void 0,jr=Oe/ee*(pe+1);if(Ht.isDash){var Wr=pe-Math.abs(jr);Xr=Math.sqrt(kr*kr+Wr*Wr)}else Xr=pe-Math.sqrt(kr*kr+jr*jr);this.data[ft+qt]=Math.max(0,Math.min(255,Xr+128))}},I.prototype.addRegularDash=function(K){for(var de=K.length-1;de>=0;--de){var ee=K[de],pe=K[de+1];ee.zeroLength?K.splice(de,1):pe&&pe.isDash===ee.isDash&&(pe.left=ee.left,K.splice(de,1))}var Oe=K[0],Xe=K[K.length-1];Oe.isDash===Xe.isDash&&(Oe.left=Xe.left-this.width,Xe.right=Oe.right+this.width);for(var ft=this.width*this.nextRow,Lt=0,Ht=K[Lt],qt=0;qt1&&(Ht=K[++Lt]);var lr=Math.abs(qt-Ht.left),or=Math.abs(qt-Ht.right),kr=Math.min(lr,or),Xr=Ht.isDash?kr:-kr;this.data[ft+qt]=Math.max(0,Math.min(255,Xr+128))}},I.prototype.addDash=function(K,de){var ee=de?7:0,pe=2*ee+1;if(this.nextRow+pe>this.height)return s.warnOnce("LineAtlas out of space"),null;for(var Oe=0,Xe=0;Xe=ee.minX&&K.x=ee.minY&&K.y0&&(qt[new s.OverscaledTileID(ee.overscaledZ,ft,pe.z,Xe,pe.y-1).key]={backfilled:!1},qt[new s.OverscaledTileID(ee.overscaledZ,ee.wrap,pe.z,pe.x,pe.y-1).key]={backfilled:!1},qt[new s.OverscaledTileID(ee.overscaledZ,Ht,pe.z,Lt,pe.y-1).key]={backfilled:!1}),pe.y+10&&(Oe.resourceTiming=ee._resourceTiming,ee._resourceTiming=[]),ee.fire(new s.Event("data",Oe))})},K.prototype.onAdd=function(ee){this.map=ee,this.load()},K.prototype.setData=function(ee){var pe=this;return this._data=ee,this.fire(new s.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Oe){if(Oe){pe.fire(new s.ErrorEvent(Oe));return}var Xe={dataType:"source",sourceDataType:"content"};pe._collectResourceTiming&&pe._resourceTiming&&pe._resourceTiming.length>0&&(Xe.resourceTiming=pe._resourceTiming,pe._resourceTiming=[]),pe.fire(new s.Event("data",Xe))}),this},K.prototype.getClusterExpansionZoom=function(ee,pe){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ee,source:this.id},pe),this},K.prototype.getClusterChildren=function(ee,pe){return this.actor.send("geojson.getClusterChildren",{clusterId:ee,source:this.id},pe),this},K.prototype.getClusterLeaves=function(ee,pe,Oe,Xe){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ee,limit:pe,offset:Oe},Xe),this},K.prototype._updateWorkerData=function(ee){var pe=this;this._loaded=!1;var Oe=s.extend({},this.workerOptions),Xe=this._data;typeof Xe=="string"?(Oe.request=this.map._requestManager.transformRequest(s.browser.resolveURL(Xe),s.ResourceType.Source),Oe.request.collectResourceTiming=this._collectResourceTiming):Oe.data=JSON.stringify(Xe),this.actor.send(this.type+".loadData",Oe,function(ft,Lt){pe._removed||Lt&&Lt.abandoned||(pe._loaded=!0,Lt&&Lt.resourceTiming&&Lt.resourceTiming[pe.id]&&(pe._resourceTiming=Lt.resourceTiming[pe.id].slice(0)),pe.actor.send(pe.type+".coalesce",{source:Oe.source},null),ee(ft))})},K.prototype.loaded=function(){return this._loaded},K.prototype.loadTile=function(ee,pe){var Oe=this,Xe=ee.actor?"reloadTile":"loadTile";ee.actor=this.actor;var ft={type:this.type,uid:ee.uid,tileID:ee.tileID,zoom:ee.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:s.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ee.request=this.actor.send(Xe,ft,function(Lt,Ht){return delete ee.request,ee.unloadVectorData(),ee.aborted?pe(null):Lt?pe(Lt):(ee.loadVectorData(Ht,Oe.map.painter,Xe==="reloadTile"),pe(null))})},K.prototype.abortTile=function(ee){ee.request&&(ee.request.cancel(),delete ee.request),ee.aborted=!0},K.prototype.unloadTile=function(ee){ee.unloadVectorData(),this.actor.send("removeTile",{uid:ee.uid,type:this.type,source:this.id})},K.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},K.prototype.serialize=function(){return s.extend({},this._options,{type:this.type,data:this._data})},K.prototype.hasTransition=function(){return!1},K}(s.Evented),W=s.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),J=function(ce){function K(de,ee,pe,Oe){ce.call(this),this.id=de,this.dispatcher=pe,this.coordinates=ee.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Oe),this.options=ee}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.load=function(ee,pe){var Oe=this;this._loaded=!1,this.fire(new s.Event("dataloading",{dataType:"source"})),this.url=this.options.url,s.getImage(this.map._requestManager.transformRequest(this.url,s.ResourceType.Image),function(Xe,ft){Oe._loaded=!0,Xe?Oe.fire(new s.ErrorEvent(Xe)):ft&&(Oe.image=ft,ee&&(Oe.coordinates=ee),pe&&pe(),Oe._finishLoading())})},K.prototype.loaded=function(){return this._loaded},K.prototype.updateImage=function(ee){var pe=this;return!this.image||!ee.url?this:(this.options.url=ee.url,this.load(ee.coordinates,function(){pe.texture=null}),this)},K.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new s.Event("data",{dataType:"source",sourceDataType:"metadata"})))},K.prototype.onAdd=function(ee){this.map=ee,this.load()},K.prototype.setCoordinates=function(ee){var pe=this;this.coordinates=ee;var Oe=ee.map(s.MercatorCoordinate.fromLngLat);this.tileID=re(Oe),this.minzoom=this.maxzoom=this.tileID.z;var Xe=Oe.map(function(ft){return pe.tileID.getTilePoint(ft)._round()});return this._boundsArray=new s.StructArrayLayout4i8,this._boundsArray.emplaceBack(Xe[0].x,Xe[0].y,0,0),this._boundsArray.emplaceBack(Xe[1].x,Xe[1].y,s.EXTENT,0),this._boundsArray.emplaceBack(Xe[3].x,Xe[3].y,0,s.EXTENT),this._boundsArray.emplaceBack(Xe[2].x,Xe[2].y,s.EXTENT,s.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new s.Event("data",{dataType:"source",sourceDataType:"content"})),this},K.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var ee=this.map.painter.context,pe=ee.gl;this.boundsBuffer||(this.boundsBuffer=ee.createVertexBuffer(this._boundsArray,W.members)),this.boundsSegments||(this.boundsSegments=s.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new s.Texture(ee,this.image,pe.RGBA),this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE));for(var Oe in this.tiles){var Xe=this.tiles[Oe];Xe.state!=="loaded"&&(Xe.state="loaded",Xe.texture=this.texture)}}},K.prototype.loadTile=function(ee,pe){this.tileID&&this.tileID.equals(ee.tileID.canonical)?(this.tiles[String(ee.tileID.wrap)]=ee,ee.buckets={},pe(null)):(ee.state="errored",pe(null))},K.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},K.prototype.hasTransition=function(){return!1},K}(s.Evented);function re(ce){for(var K=1/0,de=1/0,ee=-1/0,pe=-1/0,Oe=0,Xe=ce;Oepe.end(0)?this.fire(new s.ErrorEvent(new s.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+pe.start(0)+" and "+pe.end(0)+"-second mark."))):this.video.currentTime=ee}},K.prototype.getVideo=function(){return this.video},K.prototype.onAdd=function(ee){this.map||(this.map=ee,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},K.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ee=this.map.painter.context,pe=ee.gl;this.boundsBuffer||(this.boundsBuffer=ee.createVertexBuffer(this._boundsArray,W.members)),this.boundsSegments||(this.boundsSegments=s.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE),pe.texSubImage2D(pe.TEXTURE_2D,0,0,0,pe.RGBA,pe.UNSIGNED_BYTE,this.video)):(this.texture=new s.Texture(ee,this.video,pe.RGBA),this.texture.bind(pe.LINEAR,pe.CLAMP_TO_EDGE));for(var Oe in this.tiles){var Xe=this.tiles[Oe];Xe.state!=="loaded"&&(Xe.state="loaded",Xe.texture=this.texture)}}},K.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},K.prototype.hasTransition=function(){return this.video&&!this.video.paused},K}(J),le=function(ce){function K(de,ee,pe,Oe){ce.call(this,de,ee,pe,Oe),ee.coordinates?(!Array.isArray(ee.coordinates)||ee.coordinates.length!==4||ee.coordinates.some(function(Xe){return!Array.isArray(Xe)||Xe.length!==2||Xe.some(function(ft){return typeof ft!="number"})}))&&this.fire(new s.ErrorEvent(new s.ValidationError("sources."+de,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new s.ErrorEvent(new s.ValidationError("sources."+de,null,'missing required property "coordinates"'))),ee.animate&&typeof ee.animate!="boolean"&&this.fire(new s.ErrorEvent(new s.ValidationError("sources."+de,null,'optional "animate" property must be a boolean value'))),ee.canvas?typeof ee.canvas!="string"&&!(ee.canvas instanceof s.window.HTMLCanvasElement)&&this.fire(new s.ErrorEvent(new s.ValidationError("sources."+de,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 s.ErrorEvent(new s.ValidationError("sources."+de,null,'missing required property "canvas"'))),this.options=ee,this.animate=ee.animate!==void 0?ee.animate:!0}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof s.window.HTMLCanvasElement?this.options.canvas:s.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new s.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},K.prototype.getCanvas=function(){return this.canvas},K.prototype.onAdd=function(ee){this.map=ee,this.load(),this.canvas&&this.animate&&this.play()},K.prototype.onRemove=function(){this.pause()},K.prototype.prepare=function(){var ee=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ee=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ee=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var pe=this.map.painter.context,Oe=pe.gl;this.boundsBuffer||(this.boundsBuffer=pe.createVertexBuffer(this._boundsArray,W.members)),this.boundsSegments||(this.boundsSegments=s.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ee||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new s.Texture(pe,this.canvas,Oe.RGBA,{premultiply:!0});for(var Xe in this.tiles){var ft=this.tiles[Xe];ft.state!=="loaded"&&(ft.state="loaded",ft.texture=this.texture)}}},K.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},K.prototype.hasTransition=function(){return this._playing},K.prototype._hasInvalidDimensions=function(){for(var ee=0,pe=[this.canvas.width,this.canvas.height];eethis.max){var ft=this._getAndRemoveByKey(this.order[0]);ft&&this.onRemove(ft)}return this},ge.prototype.has=function(K){return K.wrapped().key in this.data},ge.prototype.getAndRemove=function(K){return this.has(K)?this._getAndRemoveByKey(K.wrapped().key):null},ge.prototype._getAndRemoveByKey=function(K){var de=this.data[K].shift();return de.timeout&&clearTimeout(de.timeout),this.data[K].length===0&&delete this.data[K],this.order.splice(this.order.indexOf(K),1),de.value},ge.prototype.getByKey=function(K){var de=this.data[K];return de?de[0].value:null},ge.prototype.get=function(K){if(!this.has(K))return null;var de=this.data[K.wrapped().key][0];return de.value},ge.prototype.remove=function(K,de){if(!this.has(K))return this;var ee=K.wrapped().key,pe=de===void 0?0:this.data[ee].indexOf(de),Oe=this.data[ee][pe];return this.data[ee].splice(pe,1),Oe.timeout&&clearTimeout(Oe.timeout),this.data[ee].length===0&&delete this.data[ee],this.onRemove(Oe.value),this.order.splice(this.order.indexOf(ee),1),this},ge.prototype.setMaxSize=function(K){for(this.max=K;this.order.length>this.max;){var de=this._getAndRemoveByKey(this.order[0]);de&&this.onRemove(de)}return this},ge.prototype.filter=function(K){var de=[];for(var ee in this.data)for(var pe=0,Oe=this.data[ee];pe1||(Math.abs(lr)>1&&(Math.abs(lr+kr)===1?lr+=kr:Math.abs(lr-kr)===1&&(lr-=kr)),!(!qt.dem||!Ht.dem)&&(Ht.dem.backfillBorder(qt.dem,lr,or),Ht.neighboringTiles&&Ht.neighboringTiles[Xr]&&(Ht.neighboringTiles[Xr].backfilled=!0)))}},K.prototype.getTile=function(ee){return this.getTileByID(ee.key)},K.prototype.getTileByID=function(ee){return this._tiles[ee]},K.prototype._retainLoadedChildren=function(ee,pe,Oe,Xe){for(var ft in this._tiles){var Lt=this._tiles[ft];if(!(Xe[ft]||!Lt.hasData()||Lt.tileID.overscaledZ<=pe||Lt.tileID.overscaledZ>Oe)){for(var Ht=Lt.tileID;Lt&&Lt.tileID.overscaledZ>pe+1;){var qt=Lt.tileID.scaledTo(Lt.tileID.overscaledZ-1);Lt=this._tiles[qt.key],Lt&&Lt.hasData()&&(Ht=qt)}for(var lr=Ht;lr.overscaledZ>pe;)if(lr=lr.scaledTo(lr.overscaledZ-1),ee[lr.key]){Xe[Ht.key]=Ht;break}}}},K.prototype.findLoadedParent=function(ee,pe){if(ee.key in this._loadedParentTiles){var Oe=this._loadedParentTiles[ee.key];return Oe&&Oe.tileID.overscaledZ>=pe?Oe:null}for(var Xe=ee.overscaledZ-1;Xe>=pe;Xe--){var ft=ee.scaledTo(Xe),Lt=this._getLoadedTile(ft);if(Lt)return Lt}},K.prototype._getLoadedTile=function(ee){var pe=this._tiles[ee.key];if(pe&&pe.hasData())return pe;var Oe=this._cache.getByKey(ee.wrapped().key);return Oe},K.prototype.updateCacheSize=function(ee){var pe=Math.ceil(ee.width/this._source.tileSize)+1,Oe=Math.ceil(ee.height/this._source.tileSize)+1,Xe=pe*Oe,ft=5,Lt=Math.floor(Xe*ft),Ht=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Lt):Lt;this._cache.setMaxSize(Ht)},K.prototype.handleWrapJump=function(ee){var pe=this._prevLng===void 0?ee:this._prevLng,Oe=ee-pe,Xe=Oe/360,ft=Math.round(Xe);if(this._prevLng=ee,ft){var Lt={};for(var Ht in this._tiles){var qt=this._tiles[Ht];qt.tileID=qt.tileID.unwrapTo(qt.tileID.wrap+ft),Lt[qt.tileID.key]=qt}this._tiles=Lt;for(var lr in this._timers)clearTimeout(this._timers[lr]),delete this._timers[lr];for(var or in this._tiles){var kr=this._tiles[or];this._setTileReloadTimer(or,kr)}}},K.prototype.update=function(ee){var pe=this;if(this.transform=ee,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(ee),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var Oe;this.used?this._source.tileID?Oe=ee.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(ua){return new s.OverscaledTileID(ua.canonical.z,ua.wrap,ua.canonical.z,ua.canonical.x,ua.canonical.y)}):(Oe=ee.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Oe=Oe.filter(function(ua){return pe._source.hasTile(ua)}))):Oe=[];var Xe=ee.coveringZoomLevel(this._source),ft=Math.max(Xe-K.maxOverzooming,this._source.minzoom),Lt=Math.max(Xe+K.maxUnderzooming,this._source.minzoom),Ht=this._updateRetainedTiles(Oe,Xe);if(Jt(this._source.type)){for(var qt={},lr={},or=Object.keys(Ht),kr=0,Xr=or;krthis._source.maxzoom){var dn=Wr.children(this._source.maxzoom)[0],In=this.getTile(dn);if(In&&In.hasData()){Oe[dn.key]=dn;continue}}else{var Bn=Wr.children(this._source.maxzoom);if(Oe[Bn[0].key]&&Oe[Bn[1].key]&&Oe[Bn[2].key]&&Oe[Bn[3].key])continue}for(var Xn=Qr.wasRequested(),Zn=Wr.overscaledZ-1;Zn>=ft;--Zn){var Yn=Wr.scaledTo(Zn);if(Xe[Yn.key]||(Xe[Yn.key]=!0,Qr=this.getTile(Yn),!Qr&&Xn&&(Qr=this._addTile(Yn)),Qr&&(Oe[Yn.key]=Yn,Xn=Qr.wasRequested(),Qr.hasData())))break}}}return Oe},K.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var ee in this._tiles){for(var pe=[],Oe=void 0,Xe=this._tiles[ee].tileID;Xe.overscaledZ>0;){if(Xe.key in this._loadedParentTiles){Oe=this._loadedParentTiles[Xe.key];break}pe.push(Xe.key);var ft=Xe.scaledTo(Xe.overscaledZ-1);if(Oe=this._getLoadedTile(ft),Oe)break;Xe=ft}for(var Lt=0,Ht=pe;Lt0)&&(pe.hasData()&&pe.state!=="reloading"?this._cache.add(pe.tileID,pe,pe.getExpiryTimeout()):(pe.aborted=!0,this._abortTile(pe),this._unloadTile(pe))))},K.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var ee in this._tiles)this._removeTile(ee);this._cache.reset()},K.prototype.tilesIn=function(ee,pe,Oe){var Xe=this,ft=[],Lt=this.transform;if(!Lt)return ft;for(var Ht=Oe?Lt.getCameraQueryGeometry(ee):ee,qt=ee.map(function(Zn){return Lt.pointCoordinate(Zn)}),lr=Ht.map(function(Zn){return Lt.pointCoordinate(Zn)}),or=this.getIds(),kr=1/0,Xr=1/0,jr=-1/0,Wr=-1/0,Qr=0,dn=lr;Qr=0&&xa[1].y+ua>=0){var da=qt.map(function(qa){return Jn.getTilePoint(qa)}),Fa=lr.map(function(qa){return Jn.getTilePoint(qa)});ft.push({tile:Yn,tileID:Jn,queryGeometry:da,cameraQueryGeometry:Fa,scale:na})}}},Xn=0;Xn=s.browser.now())return!0}return!1},K.prototype.setFeatureState=function(ee,pe,Oe){ee=ee||"_geojsonTileLayer",this._state.updateState(ee,pe,Oe)},K.prototype.removeFeatureState=function(ee,pe,Oe){ee=ee||"_geojsonTileLayer",this._state.removeFeatureState(ee,pe,Oe)},K.prototype.getFeatureState=function(ee,pe){return ee=ee||"_geojsonTileLayer",this._state.getState(ee,pe)},K.prototype.setDependencies=function(ee,pe,Oe){var Xe=this._tiles[ee];Xe&&Xe.setDependencies(pe,Oe)},K.prototype.reloadTilesForDependencies=function(ee,pe){for(var Oe in this._tiles){var Xe=this._tiles[Oe];Xe.hasDependency(ee,pe)&&this._reloadTile(Oe,"reloading")}this._cache.filter(function(ft){return!ft.hasDependency(ee,pe)})},K}(s.Evented);Bt.maxOverzooming=10,Bt.maxUnderzooming=3;function Ut(ce,K){var de=Math.abs(ce.wrap*2)-+(ce.wrap<0),ee=Math.abs(K.wrap*2)-+(K.wrap<0);return ce.overscaledZ-K.overscaledZ||ee-de||K.canonical.y-ce.canonical.y||K.canonical.x-ce.canonical.x}function Jt(ce){return ce==="raster"||ce==="image"||ce==="video"}function ur(){return new s.window.Worker(oo.workerUrl)}var fr="mapboxgl_preloaded_worker_pool",dr=function(){this.active={}};dr.prototype.acquire=function(K){if(!this.workers)for(this.workers=[];this.workers.length0?(pe-Xe)/ft:0;return this.points[Oe].mult(1-Lt).add(this.points[de].mult(Lt))};var Tr=function(K,de,ee){var pe=this.boxCells=[],Oe=this.circleCells=[];this.xCellCount=Math.ceil(K/ee),this.yCellCount=Math.ceil(de/ee);for(var Xe=0;Xethis.width||pe<0||de>this.height)return Oe?!1:[];var ft=[];if(K<=0&&de<=0&&this.width<=ee&&this.height<=pe){if(Oe)return!0;for(var Lt=0;Lt0:ft}},Tr.prototype._queryCircle=function(K,de,ee,pe,Oe){var Xe=K-ee,ft=K+ee,Lt=de-ee,Ht=de+ee;if(ft<0||Xe>this.width||Ht<0||Lt>this.height)return pe?!1:[];var qt=[],lr={hitTest:pe,circle:{x:K,y:de,radius:ee},seenUids:{box:{},circle:{}}};return this._forEachCell(Xe,Lt,ft,Ht,this._queryCellCircle,qt,lr,Oe),pe?qt.length>0:qt},Tr.prototype.query=function(K,de,ee,pe,Oe){return this._query(K,de,ee,pe,!1,Oe)},Tr.prototype.hitTest=function(K,de,ee,pe,Oe){return this._query(K,de,ee,pe,!0,Oe)},Tr.prototype.hitTestCircle=function(K,de,ee,pe){return this._queryCircle(K,de,ee,!0,pe)},Tr.prototype._queryCell=function(K,de,ee,pe,Oe,Xe,ft,Lt){var Ht=ft.seenUids,qt=this.boxCells[Oe];if(qt!==null)for(var lr=this.bboxes,or=0,kr=qt;or=lr[jr+0]&&pe>=lr[jr+1]&&(!Lt||Lt(this.boxKeys[Xr]))){if(ft.hitTest)return Xe.push(!0),!0;Xe.push({key:this.boxKeys[Xr],x1:lr[jr],y1:lr[jr+1],x2:lr[jr+2],y2:lr[jr+3]})}}}var Wr=this.circleCells[Oe];if(Wr!==null)for(var Qr=this.circles,dn=0,In=Wr;dnft*ft+Lt*Lt},Tr.prototype._circleAndRectCollide=function(K,de,ee,pe,Oe,Xe,ft){var Lt=(Xe-pe)/2,Ht=Math.abs(K-(pe+Lt));if(Ht>Lt+ee)return!1;var qt=(ft-Oe)/2,lr=Math.abs(de-(Oe+qt));if(lr>qt+ee)return!1;if(Ht<=Lt||lr<=qt)return!0;var or=Ht-Lt,kr=lr-qt;return or*or+kr*kr<=ee*ee};function zr(ce,K,de,ee,pe){var Oe=s.create();return K?(s.scale(Oe,Oe,[1/pe,1/pe,1]),de||s.rotateZ(Oe,Oe,ee.angle)):s.multiply(Oe,ee.labelPlaneMatrix,ce),Oe}function Yr(ce,K,de,ee,pe){if(K){var Oe=s.clone(ce);return s.scale(Oe,Oe,[pe,pe,1]),de||s.rotateZ(Oe,Oe,-ee.angle),Oe}else return ee.glCoordMatrix}function Or(ce,K){var de=[ce.x,ce.y,0,1];mr(de,de,K);var ee=de[3];return{point:new s.Point(de[0]/ee,de[1]/ee),signedDistanceFromCamera:ee}}function ln(ce,K){return .5+.5*(ce/K)}function fn(ce,K){var de=ce[0]/ce[3],ee=ce[1]/ce[3],pe=de>=-K[0]&&de<=K[0]&&ee>=-K[1]&&ee<=K[1];return pe}function Mn(ce,K,de,ee,pe,Oe,Xe,ft){var Lt=ee?ce.textSizeData:ce.iconSizeData,Ht=s.evaluateSizeForZoom(Lt,de.transform.zoom),qt=[256/de.width*2+1,256/de.height*2+1],lr=ee?ce.text.dynamicLayoutVertexArray:ce.icon.dynamicLayoutVertexArray;lr.clear();for(var or=ce.lineVertexArray,kr=ee?ce.text.placedSymbolArray:ce.icon.placedSymbolArray,Xr=de.transform.width/de.transform.height,jr=!1,Wr=0;WrOe)return{useVertical:!0}}return(ce===s.WritingMode.vertical?K.yde.x)?{needsFlipping:!0}:null}function ia(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht,qt,lr,or,kr){var Xr=K/24,jr=ce.lineOffsetX*Xr,Wr=ce.lineOffsetY*Xr,Qr;if(ce.numGlyphs>1){var dn=ce.glyphStartIndex+ce.numGlyphs,In=ce.lineStartIndex,Bn=ce.lineStartIndex+ce.lineLength,Xn=Pn(Xr,ft,jr,Wr,de,qt,lr,ce,Lt,Oe,or);if(!Xn)return{notEnoughRoom:!0};var Zn=Or(Xn.first.point,Xe).point,Yn=Or(Xn.last.point,Xe).point;if(ee&&!de){var Jn=Vn(ce.writingMode,Zn,Yn,kr);if(Jn)return Jn}Qr=[Xn.first];for(var na=ce.glyphStartIndex+1;na0?Fa.point:ya(lr,da,ua,1,pe),Xa=Vn(ce.writingMode,ua,qa,kr);if(Xa)return Xa}var Ma=wa(Xr*ft.getoffsetX(ce.glyphStartIndex),jr,Wr,de,qt,lr,ce.segment,ce.lineStartIndex,ce.lineStartIndex+ce.lineLength,Lt,Oe,or);if(!Ma)return{notEnoughRoom:!0};Qr=[Ma]}for(var Za=0,Ga=Qr;Za0?1:-1,Xr=0;ee&&(kr*=-1,Xr=Math.PI),kr<0&&(Xr+=Math.PI);for(var jr=kr>0?ft+Xe:ft+Xe+1,Wr=pe,Qr=pe,dn=0,In=0,Bn=Math.abs(or),Xn=[];dn+In<=Bn;){if(jr+=kr,jr=Lt)return null;if(Qr=Wr,Xn.push(Wr),Wr=lr[jr],Wr===void 0){var Zn=new s.Point(Ht.getx(jr),Ht.gety(jr)),Yn=Or(Zn,qt);if(Yn.signedDistanceFromCamera>0)Wr=lr[jr]=Yn.point;else{var Jn=jr-kr,na=dn===0?Oe:new s.Point(Ht.getx(Jn),Ht.gety(Jn));Wr=ya(na,Zn,Qr,Bn-dn+1,qt)}}dn+=In,In=Qr.dist(Wr)}var ua=(Bn-dn)/In,xa=Wr.sub(Qr),da=xa.mult(ua)._add(Qr);da._add(xa._unit()._perp()._mult(de*kr));var Fa=Xr+Math.atan2(Wr.y-Qr.y,Wr.x-Qr.x);return Xn.push(da),{point:da,angle:Fa,path:Xn}}var Wn=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Qn(ce,K){for(var de=0;de=1;si--)Ga.push(Ma.path[si]);for(var ri=1;ri0){for(var Wa=Ga[0].clone(),ei=Ga[0].clone(),Bi=1;Bi=Fa.x&&ei.x<=qa.x&&Wa.y>=Fa.y&&ei.y<=qa.y?mi=[Ga]:ei.xqa.x||ei.yqa.y?mi=[]:mi=s.clipLine([Ga],Fa.x,Fa.y,qa.x,qa.y)}for(var yo=0,Ks=mi;yo=this.screenRightBoundary||pethis.screenBottomBoundary},Jr.prototype.isInsideGrid=function(K,de,ee,pe){return ee>=0&&K=0&&de0){var Bn;return this.prevPlacement&&this.prevPlacement.variableOffsets[or.crossTileID]&&this.prevPlacement.placements[or.crossTileID]&&this.prevPlacement.placements[or.crossTileID].text&&(Bn=this.prevPlacement.variableOffsets[or.crossTileID].anchor),this.variableOffsets[or.crossTileID]={textOffset:Wr,width:ee,height:pe,anchor:K,textBoxScale:Oe,prevAnchor:Bn},this.markUsedJustification(kr,K,or,Xr),kr.allowVerticalPlacement&&(this.markUsedOrientation(kr,Xr,or),this.placedOrientations[or.crossTileID]=Xr),{shift:Qr,placedGlyphBoxes:dn}}},Fr.prototype.placeLayerBucketPart=function(K,de,ee){var pe=this,Oe=K.parameters,Xe=Oe.bucket,ft=Oe.layout,Lt=Oe.posMatrix,Ht=Oe.textLabelPlaneMatrix,qt=Oe.labelToScreenMatrix,lr=Oe.textPixelRatio,or=Oe.holdingForFade,kr=Oe.collisionBoxArray,Xr=Oe.partiallyEvaluatedTextSize,jr=Oe.collisionGroup,Wr=ft.get("text-optional"),Qr=ft.get("icon-optional"),dn=ft.get("text-allow-overlap"),In=ft.get("icon-allow-overlap"),Bn=ft.get("text-rotation-alignment")==="map",Xn=ft.get("text-pitch-alignment")==="map",Zn=ft.get("icon-text-fit")!=="none",Yn=ft.get("symbol-z-order")==="viewport-y",Jn=dn&&(In||!Xe.hasIconData()||Qr),na=In&&(dn||!Xe.hasTextData()||Wr);!Xe.collisionArrays&&kr&&Xe.deserializeCollisionBoxes(kr);var ua=function(Ma,Za){if(!de[Ma.crossTileID]){if(or){pe.placements[Ma.crossTileID]=new An(!1,!1,!1);return}var Ga=!1,si=!1,ri=!0,Si=null,$a={box:null,offscreen:null},mi={box:null,offscreen:null},Wa=null,ei=null,Bi=null,yo=0,Ks=0,Js=0;Za.textFeatureIndex?yo=Za.textFeatureIndex:Ma.useRuntimeCollisionCircles&&(yo=Ma.featureIndex),Za.verticalTextFeatureIndex&&(Ks=Za.verticalTextFeatureIndex);var vl=Za.textBox;if(vl){var Wl=function(Yi){var ms=s.WritingMode.horizontal;if(Xe.allowVerticalPlacement&&!Yi&&pe.prevPlacement){var xs=pe.prevPlacement.placedOrientations[Ma.crossTileID];xs&&(pe.placedOrientations[Ma.crossTileID]=xs,ms=xs,pe.markUsedOrientation(Xe,ms,Ma))}return ms},Ef=function(Yi,ms){if(Xe.allowVerticalPlacement&&Ma.numVerticalGlyphVertices>0&&Za.verticalTextBox)for(var xs=0,Vh=Xe.writingModes;xs0&&(ys=ys.filter(function(Yi){return Yi!==ns.anchor}),ys.unshift(ns.anchor))}var dl=function(Yi,ms,xs){for(var Vh=Yi.x2-Yi.x1,Gv=Yi.y2-Yi.y1,W0=Ma.textBoxScale,Y0=Zn&&!In?ms:null,dh={box:[],offscreen:!1},j0=dn?ys.length*2:ys.length,Hh=0;Hh=ys.length,Wv=pe.attemptAnchorPlacement(X0,Yi,Vh,Gv,W0,Bn,Xn,lr,Lt,jr,Z0,Ma,Xe,xs,Y0);if(Wv&&(dh=Wv.placedGlyphBoxes,dh&&dh.box&&dh.box.length)){Ga=!0,Si=Wv.shift;break}}return dh},Tu=function(){return dl(vl,Za.iconBox,s.WritingMode.horizontal)},pl=function(){var Yi=Za.verticalTextBox,ms=$a&&$a.box&&$a.box.length;return Xe.allowVerticalPlacement&&!ms&&Ma.numVerticalGlyphVertices>0&&Yi?dl(Yi,Za.verticalIconBox,s.WritingMode.vertical):{box:null,offscreen:null}};Ef(Tu,pl),$a&&(Ga=$a.box,ri=$a.offscreen);var Oh=Wl($a&&$a.box);if(!Ga&&pe.prevPlacement){var dc=pe.prevPlacement.variableOffsets[Ma.crossTileID];dc&&(pe.variableOffsets[Ma.crossTileID]=dc,pe.markUsedJustification(Xe,dc.anchor,Ma,Oh))}}else{var Yl=function(Yi,ms){var xs=pe.collisionIndex.placeCollisionBox(Yi,dn,lr,Lt,jr.predicate);return xs&&xs.box&&xs.box.length&&(pe.markUsedOrientation(Xe,ms,Ma),pe.placedOrientations[Ma.crossTileID]=ms),xs},rs=function(){return Yl(vl,s.WritingMode.horizontal)},jl=function(){var Yi=Za.verticalTextBox;return Xe.allowVerticalPlacement&&Ma.numVerticalGlyphVertices>0&&Yi?Yl(Yi,s.WritingMode.vertical):{box:null,offscreen:null}};Ef(rs,jl),Wl($a&&$a.box&&$a.box.length)}}if(Wa=$a,Ga=Wa&&Wa.box&&Wa.box.length>0,ri=Wa&&Wa.offscreen,Ma.useRuntimeCollisionCircles){var To=Xe.text.placedSymbolArray.get(Ma.centerJustifiedTextSymbolIndex),Fh=s.evaluateSizeForFeature(Xe.textSizeData,Xr,To),vh=ft.get("text-padding"),Ho=Ma.collisionCircleDiameter;ei=pe.collisionIndex.placeCollisionCircles(dn,To,Xe.lineVertexArray,Xe.glyphOffsetArray,Fh,Lt,Ht,qt,ee,Xn,jr.predicate,Ho,vh),Ga=dn||ei.circles.length>0&&!ei.collisionDetected,ri=ri&&ei.offscreen}if(Za.iconFeatureIndex&&(Js=Za.iconFeatureIndex),Za.iconBox){var pc=function(Yi){var ms=Zn&&Si?Mr(Yi,Si.x,Si.y,Bn,Xn,pe.transform.angle):Yi;return pe.collisionIndex.placeCollisionBox(ms,In,lr,Lt,jr.predicate)};mi&&mi.box&&mi.box.length&&Za.verticalIconBox?(Bi=pc(Za.verticalIconBox),si=Bi.box.length>0):(Bi=pc(Za.iconBox),si=Bi.box.length>0),ri=ri&&Bi.offscreen}var Nh=Wr||Ma.numHorizontalGlyphVertices===0&&Ma.numVerticalGlyphVertices===0,Bh=Qr||Ma.numIconVertices===0;if(!Nh&&!Bh?si=Ga=si&&Ga:Bh?Nh||(si=si&&Ga):Ga=si&&Ga,Ga&&Wa&&Wa.box&&(mi&&mi.box&&Ks?pe.collisionIndex.insertCollisionBox(Wa.box,ft.get("text-ignore-placement"),Xe.bucketInstanceId,Ks,jr.ID):pe.collisionIndex.insertCollisionBox(Wa.box,ft.get("text-ignore-placement"),Xe.bucketInstanceId,yo,jr.ID)),si&&Bi&&pe.collisionIndex.insertCollisionBox(Bi.box,ft.get("icon-ignore-placement"),Xe.bucketInstanceId,Js,jr.ID),ei&&(Ga&&pe.collisionIndex.insertCollisionCircles(ei.circles,ft.get("text-ignore-placement"),Xe.bucketInstanceId,yo,jr.ID),ee)){var Uh=Xe.bucketInstanceId,gc=pe.collisionCircleArrays[Uh];gc===void 0&&(gc=pe.collisionCircleArrays[Uh]=new Fn);for(var yc=0;yc=0;--da){var Fa=xa[da];ua(Xe.symbolInstances.get(Fa),Xe.collisionArrays[Fa])}else for(var qa=K.symbolInstanceStart;qa=0&&(Xe>=0&&qt!==Xe?K.text.placedSymbolArray.get(qt).crossTileID=0:K.text.placedSymbolArray.get(qt).crossTileID=ee.crossTileID)}},Fr.prototype.markUsedOrientation=function(K,de,ee){for(var pe=de===s.WritingMode.horizontal||de===s.WritingMode.horizontalOnly?de:0,Oe=de===s.WritingMode.vertical?de:0,Xe=[ee.leftJustifiedTextSymbolIndex,ee.centerJustifiedTextSymbolIndex,ee.rightJustifiedTextSymbolIndex],ft=0,Lt=Xe;ft0||Xn>0,ua=In.numIconVertices>0,xa=pe.placedOrientations[In.crossTileID],da=xa===s.WritingMode.vertical,Fa=xa===s.WritingMode.horizontal||xa===s.WritingMode.horizontalOnly;if(na){var qa=Gr(Jn.text),Xa=da?qr:qa;Xr(K.text,Bn,Xa);var Ma=Fa?qr:qa;Xr(K.text,Xn,Ma);var Za=Jn.text.isHidden();[In.rightJustifiedTextSymbolIndex,In.centerJustifiedTextSymbolIndex,In.leftJustifiedTextSymbolIndex].forEach(function(Js){Js>=0&&(K.text.placedSymbolArray.get(Js).hidden=Za||da?1:0)}),In.verticalPlacedTextSymbolIndex>=0&&(K.text.placedSymbolArray.get(In.verticalPlacedTextSymbolIndex).hidden=Za||Fa?1:0);var Ga=pe.variableOffsets[In.crossTileID];Ga&&pe.markUsedJustification(K,Ga.anchor,In,xa);var si=pe.placedOrientations[In.crossTileID];si&&(pe.markUsedJustification(K,"left",In,si),pe.markUsedOrientation(K,si,In))}if(ua){var ri=Gr(Jn.icon),Si=!(or&&In.verticalPlacedIconSymbolIndex&&da);if(In.placedIconSymbolIndex>=0){var $a=Si?ri:qr;Xr(K.icon,In.numIconVertices,$a),K.icon.placedSymbolArray.get(In.placedIconSymbolIndex).hidden=Jn.icon.isHidden()}if(In.verticalPlacedIconSymbolIndex>=0){var mi=Si?qr:ri;Xr(K.icon,In.numVerticalIconVertices,mi),K.icon.placedSymbolArray.get(In.verticalPlacedIconSymbolIndex).hidden=Jn.icon.isHidden()}}if(K.hasIconCollisionBoxData()||K.hasTextCollisionBoxData()){var Wa=K.collisionArrays[dn];if(Wa){var ei=new s.Point(0,0);if(Wa.textBox||Wa.verticalTextBox){var Bi=!0;if(Ht){var yo=pe.variableOffsets[Zn];yo?(ei=Ia(yo.anchor,yo.width,yo.height,yo.textOffset,yo.textBoxScale),qt&&ei._rotate(lr?pe.transform.angle:-pe.transform.angle)):Bi=!1}Wa.textBox&&Ar(K.textCollisionBox.collisionVertexArray,Jn.text.placed,!Bi||da,ei.x,ei.y),Wa.verticalTextBox&&Ar(K.textCollisionBox.collisionVertexArray,Jn.text.placed,!Bi||Fa,ei.x,ei.y)}var Ks=!!(!Fa&&Wa.verticalIconBox);Wa.iconBox&&Ar(K.iconCollisionBox.collisionVertexArray,Jn.icon.placed,Ks,or?ei.x:0,or?ei.y:0),Wa.verticalIconBox&&Ar(K.iconCollisionBox.collisionVertexArray,Jn.icon.placed,!Ks,or?ei.x:0,or?ei.y:0)}}},Wr=0;WrK},Fr.prototype.setStale=function(){this.stale=!0};function Ar(ce,K,de,ee,pe){ce.emplaceBack(K?1:0,de?1:0,ee||0,pe||0),ce.emplaceBack(K?1:0,de?1:0,ee||0,pe||0),ce.emplaceBack(K?1:0,de?1:0,ee||0,pe||0),ce.emplaceBack(K?1:0,de?1:0,ee||0,pe||0)}var Nr=Math.pow(2,25),mn=Math.pow(2,24),Rn=Math.pow(2,17),gn=Math.pow(2,16),un=Math.pow(2,9),Er=Math.pow(2,8),Zr=Math.pow(2,1);function Gr(ce){if(ce.opacity===0&&!ce.placed)return 0;if(ce.opacity===1&&ce.placed)return 4294967295;var K=ce.placed?1:0,de=Math.floor(ce.opacity*127);return de*Nr+K*mn+de*Rn+K*gn+de*un+K*Er+de*Zr+K}var qr=0,wn=function(K){this._sortAcrossTiles=K.layout.get("symbol-z-order")!=="viewport-y"&&K.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};wn.prototype.continuePlacement=function(K,de,ee,pe,Oe){for(var Xe=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var ft=K[this._currentPlacementIndex],Lt=de[ft],Ht=this.placement.collisionIndex.transform.zoom;if(Lt.type==="symbol"&&(!Lt.minzoom||Lt.minzoom<=Ht)&&(!Lt.maxzoom||Lt.maxzoom>Ht)){this._inProgressLayer||(this._inProgressLayer=new wn(Lt));var qt=this._inProgressLayer.continuePlacement(ee[Lt.source],this.placement,this._showCollisionBoxes,Lt,Xe);if(qt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},zn.prototype.commit=function(K){return this.placement.commit(K),this.placement};var En=512/s.EXTENT/2,Un=function(K,de,ee){this.tileID=K,this.indexedSymbolInstances={},this.bucketInstanceId=ee;for(var pe=0;peK.overscaledZ)for(var Ht in Lt){var qt=Lt[Ht];qt.tileID.isChildOf(K)&&qt.findMatches(de.symbolInstances,K,Xe)}else{var lr=K.scaledTo(Number(ft)),or=Lt[lr.key];or&&or.findMatches(de.symbolInstances,K,Xe)}}for(var kr=0;kr0)throw new Error("Unimplemented: "+Xe.map(function(ft){return ft.command}).join(", ")+".");return Oe.forEach(function(ft){ft.command!=="setTransition"&&pe[ft.command].apply(pe,ft.args)}),this.stylesheet=ee,!0},K.prototype.addImage=function(ee,pe){if(this.getImage(ee))return this.fire(new s.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ee,pe),this._afterImageUpdated(ee)},K.prototype.updateImage=function(ee,pe){this.imageManager.updateImage(ee,pe)},K.prototype.getImage=function(ee){return this.imageManager.getImage(ee)},K.prototype.removeImage=function(ee){if(!this.getImage(ee))return this.fire(new s.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ee),this._afterImageUpdated(ee)},K.prototype._afterImageUpdated=function(ee){this._availableImages=this.imageManager.listImages(),this._changedImages[ee]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new s.Event("data",{dataType:"style"}))},K.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},K.prototype.addSource=function(ee,pe,Oe){var Xe=this;if(Oe===void 0&&(Oe={}),this._checkLoaded(),this.sourceCaches[ee]!==void 0)throw new Error("There is already a source with this ID");if(!pe.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(pe).join(", ")+".");var ft=["vector","raster","geojson","video","image"],Lt=ft.indexOf(pe.type)>=0;if(!(Lt&&this._validate(s.validateStyle.source,"sources."+ee,pe,null,Oe))){this.map&&this.map._collectResourceTiming&&(pe.collectResourceTiming=!0);var Ht=this.sourceCaches[ee]=new Bt(ee,pe,this.dispatcher);Ht.style=this,Ht.setEventedParent(this,function(){return{isSourceLoaded:Xe.loaded(),source:Ht.serialize(),sourceId:ee}}),Ht.onAdd(this.map),this._changed=!0}},K.prototype.removeSource=function(ee){if(this._checkLoaded(),this.sourceCaches[ee]===void 0)throw new Error("There is no source with this ID");for(var pe in this._layers)if(this._layers[pe].source===ee)return this.fire(new s.ErrorEvent(new Error('Source "'+ee+'" cannot be removed while layer "'+pe+'" is using it.')));var Oe=this.sourceCaches[ee];delete this.sourceCaches[ee],delete this._updatedSources[ee],Oe.fire(new s.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ee})),Oe.setEventedParent(null),Oe.clearTiles(),Oe.onRemove&&Oe.onRemove(this.map),this._changed=!0},K.prototype.setGeoJSONSourceData=function(ee,pe){this._checkLoaded();var Oe=this.sourceCaches[ee].getSource();Oe.setData(pe),this._changed=!0},K.prototype.getSource=function(ee){return this.sourceCaches[ee]&&this.sourceCaches[ee].getSource()},K.prototype.addLayer=function(ee,pe,Oe){Oe===void 0&&(Oe={}),this._checkLoaded();var Xe=ee.id;if(this.getLayer(Xe)){this.fire(new s.ErrorEvent(new Error('Layer with id "'+Xe+'" already exists on this map')));return}var ft;if(ee.type==="custom"){if(ga(this,s.validateCustomStyleLayer(ee)))return;ft=s.createStyleLayer(ee)}else{if(typeof ee.source=="object"&&(this.addSource(Xe,ee.source),ee=s.clone$1(ee),ee=s.extend(ee,{source:Xe})),this._validate(s.validateStyle.layer,"layers."+Xe,ee,{arrayIndex:-1},Oe))return;ft=s.createStyleLayer(ee),this._validateLayer(ft),ft.setEventedParent(this,{layer:{id:Xe}}),this._serializedLayers[ft.id]=ft.serialize()}var Lt=pe?this._order.indexOf(pe):this._order.length;if(pe&&Lt===-1){this.fire(new s.ErrorEvent(new Error('Layer with id "'+pe+'" does not exist on this map.')));return}if(this._order.splice(Lt,0,Xe),this._layerOrderChanged=!0,this._layers[Xe]=ft,this._removedLayers[Xe]&&ft.source&&ft.type!=="custom"){var Ht=this._removedLayers[Xe];delete this._removedLayers[Xe],Ht.type!==ft.type?this._updatedSources[ft.source]="clear":(this._updatedSources[ft.source]="reload",this.sourceCaches[ft.source].pause())}this._updateLayer(ft),ft.onAdd&&ft.onAdd(this.map)},K.prototype.moveLayer=function(ee,pe){this._checkLoaded(),this._changed=!0;var Oe=this._layers[ee];if(!Oe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be moved.")));return}if(ee!==pe){var Xe=this._order.indexOf(ee);this._order.splice(Xe,1);var ft=pe?this._order.indexOf(pe):this._order.length;if(pe&&ft===-1){this.fire(new s.ErrorEvent(new Error('Layer with id "'+pe+'" does not exist on this map.')));return}this._order.splice(ft,0,ee),this._layerOrderChanged=!0}},K.prototype.removeLayer=function(ee){this._checkLoaded();var pe=this._layers[ee];if(!pe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be removed.")));return}pe.setEventedParent(null);var Oe=this._order.indexOf(ee);this._order.splice(Oe,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ee]=pe,delete this._layers[ee],delete this._serializedLayers[ee],delete this._updatedLayers[ee],delete this._updatedPaintProps[ee],pe.onRemove&&pe.onRemove(this.map)},K.prototype.getLayer=function(ee){return this._layers[ee]},K.prototype.hasLayer=function(ee){return ee in this._layers},K.prototype.setLayerZoomRange=function(ee,pe,Oe){this._checkLoaded();var Xe=this.getLayer(ee);if(!Xe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot have zoom extent.")));return}Xe.minzoom===pe&&Xe.maxzoom===Oe||(pe!=null&&(Xe.minzoom=pe),Oe!=null&&(Xe.maxzoom=Oe),this._updateLayer(Xe))},K.prototype.setFilter=function(ee,pe,Oe){Oe===void 0&&(Oe={}),this._checkLoaded();var Xe=this.getLayer(ee);if(!Xe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be filtered.")));return}if(!s.deepEqual(Xe.filter,pe)){if(pe==null){Xe.filter=void 0,this._updateLayer(Xe);return}this._validate(s.validateStyle.filter,"layers."+Xe.id+".filter",pe,null,Oe)||(Xe.filter=s.clone$1(pe),this._updateLayer(Xe))}},K.prototype.getFilter=function(ee){return s.clone$1(this.getLayer(ee).filter)},K.prototype.setLayoutProperty=function(ee,pe,Oe,Xe){Xe===void 0&&(Xe={}),this._checkLoaded();var ft=this.getLayer(ee);if(!ft){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be styled.")));return}s.deepEqual(ft.getLayoutProperty(pe),Oe)||(ft.setLayoutProperty(pe,Oe,Xe),this._updateLayer(ft))},K.prototype.getLayoutProperty=function(ee,pe){var Oe=this.getLayer(ee);if(!Oe){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style.")));return}return Oe.getLayoutProperty(pe)},K.prototype.setPaintProperty=function(ee,pe,Oe,Xe){Xe===void 0&&(Xe={}),this._checkLoaded();var ft=this.getLayer(ee);if(!ft){this.fire(new s.ErrorEvent(new Error("The layer '"+ee+"' does not exist in the map's style and cannot be styled.")));return}if(!s.deepEqual(ft.getPaintProperty(pe),Oe)){var Lt=ft.setPaintProperty(pe,Oe,Xe);Lt&&this._updateLayer(ft),this._changed=!0,this._updatedPaintProps[ee]=!0}},K.prototype.getPaintProperty=function(ee,pe){return this.getLayer(ee).getPaintProperty(pe)},K.prototype.setFeatureState=function(ee,pe){this._checkLoaded();var Oe=ee.source,Xe=ee.sourceLayer,ft=this.sourceCaches[Oe];if(ft===void 0){this.fire(new s.ErrorEvent(new Error("The source '"+Oe+"' does not exist in the map's style.")));return}var Lt=ft.getSource().type;if(Lt==="geojson"&&Xe){this.fire(new s.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Lt==="vector"&&!Xe){this.fire(new s.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}ee.id===void 0&&this.fire(new s.ErrorEvent(new Error("The feature id parameter must be provided."))),ft.setFeatureState(Xe,ee.id,pe)},K.prototype.removeFeatureState=function(ee,pe){this._checkLoaded();var Oe=ee.source,Xe=this.sourceCaches[Oe];if(Xe===void 0){this.fire(new s.ErrorEvent(new Error("The source '"+Oe+"' does not exist in the map's style.")));return}var ft=Xe.getSource().type,Lt=ft==="vector"?ee.sourceLayer:void 0;if(ft==="vector"&&!Lt){this.fire(new s.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(pe&&typeof ee.id!="string"&&typeof ee.id!="number"){this.fire(new s.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}Xe.removeFeatureState(Lt,ee.id,pe)},K.prototype.getFeatureState=function(ee){this._checkLoaded();var pe=ee.source,Oe=ee.sourceLayer,Xe=this.sourceCaches[pe];if(Xe===void 0){this.fire(new s.ErrorEvent(new Error("The source '"+pe+"' does not exist in the map's style.")));return}var ft=Xe.getSource().type;if(ft==="vector"&&!Oe){this.fire(new s.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return ee.id===void 0&&this.fire(new s.ErrorEvent(new Error("The feature id parameter must be provided."))),Xe.getFeatureState(Oe,ee.id)},K.prototype.getTransition=function(){return s.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},K.prototype.serialize=function(){return s.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:s.mapObject(this.sourceCaches,function(ee){return ee.serialize()}),layers:this._serializeLayers(this._order)},function(ee){return ee!==void 0})},K.prototype._updateLayer=function(ee){this._updatedLayers[ee.id]=!0,ee.source&&!this._updatedSources[ee.source]&&this.sourceCaches[ee.source].getSource().type!=="raster"&&(this._updatedSources[ee.source]="reload",this.sourceCaches[ee.source].pause()),this._changed=!0},K.prototype._flattenAndSortRenderedFeatures=function(ee){for(var pe=this,Oe=function(Fa){return pe._layers[Fa].type==="fill-extrusion"},Xe={},ft=[],Lt=this._order.length-1;Lt>=0;Lt--){var Ht=this._order[Lt];if(Oe(Ht)){Xe[Ht]=Lt;for(var qt=0,lr=ee;qt=0;dn--){var In=this._order[dn];if(Oe(In))for(var Bn=ft.length-1;Bn>=0;Bn--){var Xn=ft[Bn].feature;if(Xe[Xn.layer.id]>16,ft>>16],u_pixel_coord_lower:[Xe&65535,ft&65535]}}function Vs(ce,K,de,ee){var pe=de.imageManager.getPattern(ce.from.toString()),Oe=de.imageManager.getPattern(ce.to.toString()),Xe=de.imageManager.getPixelSize(),ft=Xe.width,Lt=Xe.height,Ht=Math.pow(2,ee.tileID.overscaledZ),qt=ee.tileSize*Math.pow(2,de.transform.tileZoom)/Ht,lr=qt*(ee.tileID.canonical.x+ee.tileID.wrap*Ht),or=qt*ee.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:pe.tl,u_pattern_br_a:pe.br,u_pattern_tl_b:Oe.tl,u_pattern_br_b:Oe.br,u_texsize:[ft,Lt],u_mix:K.t,u_pattern_size_a:pe.displaySize,u_pattern_size_b:Oe.displaySize,u_scale_a:K.fromScale,u_scale_b:K.toScale,u_tile_units_to_pixels:1/vn(ee,1,de.transform.tileZoom),u_pixel_coord_upper:[lr>>16,or>>16],u_pixel_coord_lower:[lr&65535,or&65535]}}var Hu=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_lightpos:new s.Uniform3f(ce,K.u_lightpos),u_lightintensity:new s.Uniform1f(ce,K.u_lightintensity),u_lightcolor:new s.Uniform3f(ce,K.u_lightcolor),u_vertical_gradient:new s.Uniform1f(ce,K.u_vertical_gradient),u_opacity:new s.Uniform1f(ce,K.u_opacity)}},ki=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_lightpos:new s.Uniform3f(ce,K.u_lightpos),u_lightintensity:new s.Uniform1f(ce,K.u_lightintensity),u_lightcolor:new s.Uniform3f(ce,K.u_lightcolor),u_vertical_gradient:new s.Uniform1f(ce,K.u_vertical_gradient),u_height_factor:new s.Uniform1f(ce,K.u_height_factor),u_image:new s.Uniform1i(ce,K.u_image),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_pixel_coord_upper:new s.Uniform2f(ce,K.u_pixel_coord_upper),u_pixel_coord_lower:new s.Uniform2f(ce,K.u_pixel_coord_lower),u_scale:new s.Uniform3f(ce,K.u_scale),u_fade:new s.Uniform1f(ce,K.u_fade),u_opacity:new s.Uniform1f(ce,K.u_opacity)}},iu=function(ce,K,de,ee){var pe=K.style.light,Oe=pe.properties.get("position"),Xe=[Oe.x,Oe.y,Oe.z],ft=s.create$1();pe.properties.get("anchor")==="viewport"&&s.fromRotation(ft,-K.transform.angle),s.transformMat3(Xe,Xe,ft);var Lt=pe.properties.get("color");return{u_matrix:ce,u_lightpos:Xe,u_lightintensity:pe.properties.get("intensity"),u_lightcolor:[Lt.r,Lt.g,Lt.b],u_vertical_gradient:+de,u_opacity:ee}},Qo=function(ce,K,de,ee,pe,Oe,Xe){return s.extend(iu(ce,K,de,ee),ol(Oe,K,Xe),{u_height_factor:-Math.pow(2,pe.overscaledZ)/Xe.tileSize/8})},Es=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix)}},sl=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_image:new s.Uniform1i(ce,K.u_image),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_pixel_coord_upper:new s.Uniform2f(ce,K.u_pixel_coord_upper),u_pixel_coord_lower:new s.Uniform2f(ce,K.u_pixel_coord_lower),u_scale:new s.Uniform3f(ce,K.u_scale),u_fade:new s.Uniform1f(ce,K.u_fade)}},Hs=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_world:new s.Uniform2f(ce,K.u_world)}},$o=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_world:new s.Uniform2f(ce,K.u_world),u_image:new s.Uniform1i(ce,K.u_image),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_pixel_coord_upper:new s.Uniform2f(ce,K.u_pixel_coord_upper),u_pixel_coord_lower:new s.Uniform2f(ce,K.u_pixel_coord_lower),u_scale:new s.Uniform3f(ce,K.u_scale),u_fade:new s.Uniform1f(ce,K.u_fade)}},Cs=function(ce){return{u_matrix:ce}},qo=function(ce,K,de,ee){return s.extend(Cs(ce),ol(de,K,ee))},Vo=function(ce,K){return{u_matrix:ce,u_world:K}},ou=function(ce,K,de,ee,pe){return s.extend(qo(ce,K,de,ee),{u_world:pe})},rh=function(ce,K){return{u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_scale_with_map:new s.Uniform1i(ce,K.u_scale_with_map),u_pitch_with_map:new s.Uniform1i(ce,K.u_pitch_with_map),u_extrude_scale:new s.Uniform2f(ce,K.u_extrude_scale),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix)}},nh=function(ce,K,de,ee){var pe=ce.transform,Oe,Xe;if(ee.paint.get("circle-pitch-alignment")==="map"){var ft=vn(de,1,pe.zoom);Oe=!0,Xe=[ft,ft]}else Oe=!1,Xe=pe.pixelsToGLUnits;return{u_camera_to_center_distance:pe.cameraToCenterDistance,u_scale_with_map:+(ee.paint.get("circle-pitch-scale")==="map"),u_matrix:ce.translatePosMatrix(K.posMatrix,de,ee.paint.get("circle-translate"),ee.paint.get("circle-translate-anchor")),u_pitch_with_map:+Oe,u_device_pixel_ratio:s.browser.devicePixelRatio,u_extrude_scale:Xe}},ah=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_pixels_to_tile_units:new s.Uniform1f(ce,K.u_pixels_to_tile_units),u_extrude_scale:new s.Uniform2f(ce,K.u_extrude_scale),u_overscale_factor:new s.Uniform1f(ce,K.u_overscale_factor)}},ih=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_inv_matrix:new s.UniformMatrix4f(ce,K.u_inv_matrix),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_viewport_size:new s.Uniform2f(ce,K.u_viewport_size)}},gf=function(ce,K,de){var ee=vn(de,1,K.zoom),pe=Math.pow(2,K.zoom-de.tileID.overscaledZ),Oe=de.tileID.overscaleFactor();return{u_matrix:ce,u_camera_to_center_distance:K.cameraToCenterDistance,u_pixels_to_tile_units:ee,u_extrude_scale:[K.pixelsToGLUnits[0]/(ee*pe),K.pixelsToGLUnits[1]/(ee*pe)],u_overscale_factor:Oe}},$f=function(ce,K,de){return{u_matrix:ce,u_inv_matrix:K,u_camera_to_center_distance:de.cameraToCenterDistance,u_viewport_size:[de.width,de.height]}},zl=function(ce,K){return{u_color:new s.UniformColor(ce,K.u_color),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_overlay:new s.Uniform1i(ce,K.u_overlay),u_overlay_scale:new s.Uniform1f(ce,K.u_overlay_scale)}},Qi=function(ce,K,de){return de===void 0&&(de=1),{u_matrix:ce,u_color:K,u_overlay:0,u_overlay_scale:de}},Oo=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix)}},Ol=function(ce){return{u_matrix:ce}},qf=function(ce,K){return{u_extrude_scale:new s.Uniform1f(ce,K.u_extrude_scale),u_intensity:new s.Uniform1f(ce,K.u_intensity),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix)}},su=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_world:new s.Uniform2f(ce,K.u_world),u_image:new s.Uniform1i(ce,K.u_image),u_color_ramp:new s.Uniform1i(ce,K.u_color_ramp),u_opacity:new s.Uniform1f(ce,K.u_opacity)}},Ls=function(ce,K,de,ee){return{u_matrix:ce,u_extrude_scale:vn(K,1,de),u_intensity:ee}},oh=function(ce,K,de,ee){var pe=s.create();s.ortho(pe,0,ce.width,ce.height,0,0,1);var Oe=ce.context.gl;return{u_matrix:pe,u_world:[Oe.drawingBufferWidth,Oe.drawingBufferHeight],u_image:de,u_color_ramp:ee,u_opacity:K.paint.get("heatmap-opacity")}},ec=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_image:new s.Uniform1i(ce,K.u_image),u_latrange:new s.Uniform2f(ce,K.u_latrange),u_light:new s.Uniform2f(ce,K.u_light),u_shadow:new s.UniformColor(ce,K.u_shadow),u_highlight:new s.UniformColor(ce,K.u_highlight),u_accent:new s.UniformColor(ce,K.u_accent)}},tc=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_image:new s.Uniform1i(ce,K.u_image),u_dimension:new s.Uniform2f(ce,K.u_dimension),u_zoom:new s.Uniform1f(ce,K.u_zoom),u_unpack:new s.Uniform4f(ce,K.u_unpack)}},yf=function(ce,K,de){var ee=de.paint.get("hillshade-shadow-color"),pe=de.paint.get("hillshade-highlight-color"),Oe=de.paint.get("hillshade-accent-color"),Xe=de.paint.get("hillshade-illumination-direction")*(Math.PI/180);de.paint.get("hillshade-illumination-anchor")==="viewport"&&(Xe-=ce.transform.angle);var ft=!ce.options.moving;return{u_matrix:ce.transform.calculatePosMatrix(K.tileID.toUnwrapped(),ft),u_image:0,u_latrange:wo(ce,K.tileID),u_light:[de.paint.get("hillshade-exaggeration"),Xe],u_shadow:ee,u_highlight:pe,u_accent:Oe}},rc=function(ce,K){var de=K.stride,ee=s.create();return s.ortho(ee,0,s.EXTENT,-s.EXTENT,0,0,1),s.translate(ee,ee,[0,-s.EXTENT,0]),{u_matrix:ee,u_image:1,u_dimension:[de,de],u_zoom:ce.overscaledZ,u_unpack:K.getUnpackVector()}};function wo(ce,K){var de=Math.pow(2,K.canonical.z),ee=K.canonical.y;return[new s.MercatorCoordinate(0,ee/de).toLngLat().lat,new s.MercatorCoordinate(0,(ee+1)/de).toLngLat().lat]}var es=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_ratio:new s.Uniform1f(ce,K.u_ratio),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_units_to_pixels:new s.Uniform2f(ce,K.u_units_to_pixels)}},Gs=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_ratio:new s.Uniform1f(ce,K.u_ratio),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_units_to_pixels:new s.Uniform2f(ce,K.u_units_to_pixels),u_image:new s.Uniform1i(ce,K.u_image),u_image_height:new s.Uniform1f(ce,K.u_image_height)}},Fl=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_ratio:new s.Uniform1f(ce,K.u_ratio),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_image:new s.Uniform1i(ce,K.u_image),u_units_to_pixels:new s.Uniform2f(ce,K.u_units_to_pixels),u_scale:new s.Uniform3f(ce,K.u_scale),u_fade:new s.Uniform1f(ce,K.u_fade)}},Gu=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_ratio:new s.Uniform1f(ce,K.u_ratio),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_units_to_pixels:new s.Uniform2f(ce,K.u_units_to_pixels),u_patternscale_a:new s.Uniform2f(ce,K.u_patternscale_a),u_patternscale_b:new s.Uniform2f(ce,K.u_patternscale_b),u_sdfgamma:new s.Uniform1f(ce,K.u_sdfgamma),u_image:new s.Uniform1i(ce,K.u_image),u_tex_y_a:new s.Uniform1f(ce,K.u_tex_y_a),u_tex_y_b:new s.Uniform1f(ce,K.u_tex_y_b),u_mix:new s.Uniform1f(ce,K.u_mix)}},ll=function(ce,K,de){var ee=ce.transform;return{u_matrix:Ws(ce,K,de),u_ratio:1/vn(K,1,ee.zoom),u_device_pixel_ratio:s.browser.devicePixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},ul=function(ce,K,de,ee){return s.extend(ll(ce,K,de),{u_image:0,u_image_height:ee})},nc=function(ce,K,de,ee){var pe=ce.transform,Oe=Nl(K,pe);return{u_matrix:Ws(ce,K,de),u_texsize:K.imageAtlasTexture.size,u_ratio:1/vn(K,1,pe.zoom),u_device_pixel_ratio:s.browser.devicePixelRatio,u_image:0,u_scale:[Oe,ee.fromScale,ee.toScale],u_fade:ee.t,u_units_to_pixels:[1/pe.pixelsToGLUnits[0],1/pe.pixelsToGLUnits[1]]}},Ps=function(ce,K,de,ee,pe){var Oe=ce.transform,Xe=ce.lineAtlas,ft=Nl(K,Oe),Lt=de.layout.get("line-cap")==="round",Ht=Xe.getDash(ee.from,Lt),qt=Xe.getDash(ee.to,Lt),lr=Ht.width*pe.fromScale,or=qt.width*pe.toScale;return s.extend(ll(ce,K,de),{u_patternscale_a:[ft/lr,-Ht.height/2],u_patternscale_b:[ft/or,-qt.height/2],u_sdfgamma:Xe.width/(Math.min(lr,or)*256*s.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Ht.y,u_tex_y_b:qt.y,u_mix:pe.t})};function Nl(ce,K){return 1/vn(ce,1,K.tileZoom)}function Ws(ce,K,de){return ce.translatePosMatrix(K.tileID.posMatrix,K,de.paint.get("line-translate"),de.paint.get("line-translate-anchor"))}var _s=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_tl_parent:new s.Uniform2f(ce,K.u_tl_parent),u_scale_parent:new s.Uniform1f(ce,K.u_scale_parent),u_buffer_scale:new s.Uniform1f(ce,K.u_buffer_scale),u_fade_t:new s.Uniform1f(ce,K.u_fade_t),u_opacity:new s.Uniform1f(ce,K.u_opacity),u_image0:new s.Uniform1i(ce,K.u_image0),u_image1:new s.Uniform1i(ce,K.u_image1),u_brightness_low:new s.Uniform1f(ce,K.u_brightness_low),u_brightness_high:new s.Uniform1f(ce,K.u_brightness_high),u_saturation_factor:new s.Uniform1f(ce,K.u_saturation_factor),u_contrast_factor:new s.Uniform1f(ce,K.u_contrast_factor),u_spin_weights:new s.Uniform3f(ce,K.u_spin_weights)}},lu=function(ce,K,de,ee,pe){return{u_matrix:ce,u_tl_parent:K,u_scale_parent:de,u_buffer_scale:1,u_fade_t:ee.mix,u_opacity:ee.opacity*pe.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:pe.paint.get("raster-brightness-min"),u_brightness_high:pe.paint.get("raster-brightness-max"),u_saturation_factor:Ul(pe.paint.get("raster-saturation")),u_contrast_factor:vi(pe.paint.get("raster-contrast")),u_spin_weights:Bl(pe.paint.get("raster-hue-rotate"))}};function Bl(ce){ce*=Math.PI/180;var K=Math.sin(ce),de=Math.cos(ce);return[(2*de+1)/3,(-Math.sqrt(3)*K-de+1)/3,(Math.sqrt(3)*K-de+1)/3]}function vi(ce){return ce>0?1/(1-ce):1+ce}function Ul(ce){return ce>0?1-1/(1.001-ce):-ce}var Wu=function(ce,K){return{u_is_size_zoom_constant:new s.Uniform1i(ce,K.u_is_size_zoom_constant),u_is_size_feature_constant:new s.Uniform1i(ce,K.u_is_size_feature_constant),u_size_t:new s.Uniform1f(ce,K.u_size_t),u_size:new s.Uniform1f(ce,K.u_size),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_pitch:new s.Uniform1f(ce,K.u_pitch),u_rotate_symbol:new s.Uniform1i(ce,K.u_rotate_symbol),u_aspect_ratio:new s.Uniform1f(ce,K.u_aspect_ratio),u_fade_change:new s.Uniform1f(ce,K.u_fade_change),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_label_plane_matrix:new s.UniformMatrix4f(ce,K.u_label_plane_matrix),u_coord_matrix:new s.UniformMatrix4f(ce,K.u_coord_matrix),u_is_text:new s.Uniform1i(ce,K.u_is_text),u_pitch_with_map:new s.Uniform1i(ce,K.u_pitch_with_map),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_texture:new s.Uniform1i(ce,K.u_texture)}},ac=function(ce,K){return{u_is_size_zoom_constant:new s.Uniform1i(ce,K.u_is_size_zoom_constant),u_is_size_feature_constant:new s.Uniform1i(ce,K.u_is_size_feature_constant),u_size_t:new s.Uniform1f(ce,K.u_size_t),u_size:new s.Uniform1f(ce,K.u_size),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_pitch:new s.Uniform1f(ce,K.u_pitch),u_rotate_symbol:new s.Uniform1i(ce,K.u_rotate_symbol),u_aspect_ratio:new s.Uniform1f(ce,K.u_aspect_ratio),u_fade_change:new s.Uniform1f(ce,K.u_fade_change),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_label_plane_matrix:new s.UniformMatrix4f(ce,K.u_label_plane_matrix),u_coord_matrix:new s.UniformMatrix4f(ce,K.u_coord_matrix),u_is_text:new s.Uniform1i(ce,K.u_is_text),u_pitch_with_map:new s.Uniform1i(ce,K.u_pitch_with_map),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_texture:new s.Uniform1i(ce,K.u_texture),u_gamma_scale:new s.Uniform1f(ce,K.u_gamma_scale),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_is_halo:new s.Uniform1i(ce,K.u_is_halo)}},Vl=function(ce,K){return{u_is_size_zoom_constant:new s.Uniform1i(ce,K.u_is_size_zoom_constant),u_is_size_feature_constant:new s.Uniform1i(ce,K.u_is_size_feature_constant),u_size_t:new s.Uniform1f(ce,K.u_size_t),u_size:new s.Uniform1f(ce,K.u_size),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_pitch:new s.Uniform1f(ce,K.u_pitch),u_rotate_symbol:new s.Uniform1i(ce,K.u_rotate_symbol),u_aspect_ratio:new s.Uniform1f(ce,K.u_aspect_ratio),u_fade_change:new s.Uniform1f(ce,K.u_fade_change),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_label_plane_matrix:new s.UniformMatrix4f(ce,K.u_label_plane_matrix),u_coord_matrix:new s.UniformMatrix4f(ce,K.u_coord_matrix),u_is_text:new s.Uniform1i(ce,K.u_is_text),u_pitch_with_map:new s.Uniform1i(ce,K.u_pitch_with_map),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_texsize_icon:new s.Uniform2f(ce,K.u_texsize_icon),u_texture:new s.Uniform1i(ce,K.u_texture),u_texture_icon:new s.Uniform1i(ce,K.u_texture_icon),u_gamma_scale:new s.Uniform1f(ce,K.u_gamma_scale),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_is_halo:new s.Uniform1i(ce,K.u_is_halo)}},uu=function(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht){var qt=pe.transform;return{u_is_size_zoom_constant:+(ce==="constant"||ce==="source"),u_is_size_feature_constant:+(ce==="constant"||ce==="camera"),u_size_t:K?K.uSizeT:0,u_size:K?K.uSize:0,u_camera_to_center_distance:qt.cameraToCenterDistance,u_pitch:qt.pitch/360*2*Math.PI,u_rotate_symbol:+de,u_aspect_ratio:qt.width/qt.height,u_fade_change:pe.options.fadeDuration?pe.symbolFadeChange:1,u_matrix:Oe,u_label_plane_matrix:Xe,u_coord_matrix:ft,u_is_text:+Lt,u_pitch_with_map:+ee,u_texsize:Ht,u_texture:0}},Yu=function(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht,qt){var lr=pe.transform;return s.extend(uu(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht),{u_gamma_scale:ee?Math.cos(lr._pitch)*lr.cameraToCenterDistance:1,u_device_pixel_ratio:s.browser.devicePixelRatio,u_is_halo:+qt})},mf=function(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht){return s.extend(Yu(ce,K,de,ee,pe,Oe,Xe,ft,!0,Lt,!0),{u_texsize_icon:Ht,u_texture_icon:1})},fu=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_opacity:new s.Uniform1f(ce,K.u_opacity),u_color:new s.UniformColor(ce,K.u_color)}},cu=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_opacity:new s.Uniform1f(ce,K.u_opacity),u_image:new s.Uniform1i(ce,K.u_image),u_pattern_tl_a:new s.Uniform2f(ce,K.u_pattern_tl_a),u_pattern_br_a:new s.Uniform2f(ce,K.u_pattern_br_a),u_pattern_tl_b:new s.Uniform2f(ce,K.u_pattern_tl_b),u_pattern_br_b:new s.Uniform2f(ce,K.u_pattern_br_b),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_mix:new s.Uniform1f(ce,K.u_mix),u_pattern_size_a:new s.Uniform2f(ce,K.u_pattern_size_a),u_pattern_size_b:new s.Uniform2f(ce,K.u_pattern_size_b),u_scale_a:new s.Uniform1f(ce,K.u_scale_a),u_scale_b:new s.Uniform1f(ce,K.u_scale_b),u_pixel_coord_upper:new s.Uniform2f(ce,K.u_pixel_coord_upper),u_pixel_coord_lower:new s.Uniform2f(ce,K.u_pixel_coord_lower),u_tile_units_to_pixels:new s.Uniform1f(ce,K.u_tile_units_to_pixels)}},Ys=function(ce,K,de){return{u_matrix:ce,u_opacity:K,u_color:de}},hu=function(ce,K,de,ee,pe,Oe){return s.extend(Vs(ee,Oe,de,pe),{u_matrix:ce,u_opacity:K})},js={fillExtrusion:Hu,fillExtrusionPattern:ki,fill:Es,fillPattern:sl,fillOutline:Hs,fillOutlinePattern:$o,circle:rh,collisionBox:ah,collisionCircle:ih,debug:zl,clippingMask:Oo,heatmap:qf,heatmapTexture:su,hillshade:ec,hillshadePrepare:tc,line:es,lineGradient:Gs,linePattern:Fl,lineSDF:Gu,raster:_s,symbolIcon:Wu,symbolSDF:ac,symbolTextAndIcon:Vl,background:fu,backgroundPattern:cu},Gi;function ds(ce,K,de,ee,pe,Oe,Xe){for(var ft=ce.context,Lt=ft.gl,Ht=ce.useProgram("collisionBox"),qt=[],lr=0,or=0,kr=0;kr0){var Bn=s.create(),Xn=Qr;s.mul(Bn,Wr.placementInvProjMatrix,ce.transform.glCoordMatrix),s.mul(Bn,Bn,Wr.placementViewportMatrix),qt.push({circleArray:In,circleOffset:or,transform:Xn,invTransform:Bn}),lr+=In.length/4,or=lr}dn&&Ht.draw(ft,Lt.LINES,gr.disabled,Qt.disabled,ce.colorModeForRenderPass(),Et.disabled,gf(Qr,ce.transform,jr),de.id,dn.layoutVertexBuffer,dn.indexBuffer,dn.segments,null,ce.transform.zoom,null,null,dn.collisionVertexBuffer)}}if(!(!Xe||!qt.length)){var Zn=ce.useProgram("collisionCircle"),Yn=new s.StructArrayLayout2f1f2i16;Yn.resize(lr*4),Yn._trim();for(var Jn=0,na=0,ua=qt;na=0&&(Xr[Wr.associatedIconIndex]={shiftedAnchor:Fa,angle:qa})}}if(qt){kr.clear();for(var Ma=ce.icon.placedSymbolArray,Za=0;Za0){var Xe=s.browser.now(),ft=(Xe-ce.timeAdded)/Oe,Lt=K?(Xe-K.timeAdded)/Oe:-1,Ht=de.getSource(),qt=pe.coveringZoomLevel({tileSize:Ht.tileSize,roundZoom:Ht.roundZoom}),lr=!K||Math.abs(K.tileID.overscaledZ-qt)>Math.abs(ce.tileID.overscaledZ-qt),or=lr&&ce.refreshedUponExpiration?1:s.clamp(lr?ft:1-Lt,0,1);return ce.refreshedUponExpiration&&ft>=1&&(ce.refreshedUponExpiration=!1),K?{opacity:1,mix:1-or}:{opacity:or,mix:0}}else return{opacity:1,mix:0}}function cl(ce,K,de){var ee=de.paint.get("background-color"),pe=de.paint.get("background-opacity");if(pe!==0){var Oe=ce.context,Xe=Oe.gl,ft=ce.transform,Lt=ft.tileSize,Ht=de.paint.get("background-pattern");if(!ce.isPatternMissing(Ht)){var qt=!Ht&&ee.a===1&&pe===1&&ce.opaquePassEnabledForLayer()?"opaque":"translucent";if(ce.renderPass===qt){var lr=Qt.disabled,or=ce.depthModeForSublayer(0,qt==="opaque"?gr.ReadWrite:gr.ReadOnly),kr=ce.colorModeForRenderPass(),Xr=ce.useProgram(Ht?"backgroundPattern":"background"),jr=ft.coveringTiles({tileSize:Lt});Ht&&(Oe.activeTexture.set(Xe.TEXTURE0),ce.imageManager.bind(ce.context));for(var Wr=de.getCrossfadeParameters(),Qr=0,dn=jr;Qr "+de.overscaledZ);var Qr=Wr+" "+kr+"kb";ar(ce,Qr),Xe.draw(ee,pe.TRIANGLES,ft,Lt,at.alphaBlended,Et.disabled,Qi(Oe,s.Color.transparent,jr),qt,ce.debugBuffer,ce.quadTriangleIndexBuffer,ce.debugSegments)}function ar(ce,K){ce.initDebugOverlayCanvas();var de=ce.debugOverlayCanvas,ee=ce.context.gl,pe=ce.debugOverlayCanvas.getContext("2d");pe.clearRect(0,0,de.width,de.height),pe.shadowColor="white",pe.shadowBlur=2,pe.lineWidth=1.5,pe.strokeStyle="white",pe.textBaseline="top",pe.font="bold 36px Open Sans, sans-serif",pe.fillText(K,5,5),pe.strokeText(K,5,5),ce.debugOverlayTexture.update(de),ce.debugOverlayTexture.bind(ee.LINEAR,ee.CLAMP_TO_EDGE)}function Sr(ce,K,de){var ee=ce.context,pe=de.implementation;if(ce.renderPass==="offscreen"){var Oe=pe.prerender;Oe&&(ce.setCustomLayerDefaults(),ee.setColorMode(ce.colorModeForRenderPass()),Oe.call(pe,ee.gl,ce.transform.customLayerMatrix()),ee.setDirty(),ce.setBaseState())}else if(ce.renderPass==="translucent"){ce.setCustomLayerDefaults(),ee.setColorMode(ce.colorModeForRenderPass()),ee.setStencilMode(Qt.disabled);var Xe=pe.renderingMode==="3d"?new gr(ce.context.gl.LEQUAL,gr.ReadWrite,ce.depthRangeFor3D):ce.depthModeForSublayer(0,gr.ReadOnly);ee.setDepthMode(Xe),pe.render(ee.gl,ce.transform.customLayerMatrix()),ee.setDirty(),ce.setBaseState(),ee.bindFramebuffer.set(null)}}var Dr={symbol:ju,circle:oc,heatmap:Xs,line:Xu,fill:Rs,"fill-extrusion":bf,hillshade:yu,raster:mu,background:cl,debug:pr,custom:Sr},Ur=function(K,de){this.context=new Vt(K),this.transform=de,this._tileTextures={},this.setup(),this.numSublayers=Bt.maxUnderzooming+Bt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new sa,this.gpuTimers={}};Ur.prototype.resize=function(K,de){if(this.width=K*s.browser.devicePixelRatio,this.height=de*s.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var ee=0,pe=this.style._order;ee256&&this.clearStencil(),ee.setColorMode(at.disabled),ee.setDepthMode(gr.disabled);var Oe=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Xe=0,ft=de;Xe256&&this.clearStencil();var K=this.nextStencilID++,de=this.context.gl;return new Qt({func:de.NOTEQUAL,mask:255},K,255,de.KEEP,de.KEEP,de.REPLACE)},Ur.prototype.stencilModeForClipping=function(K){var de=this.context.gl;return new Qt({func:de.EQUAL,mask:255},this._tileClippingMaskIDs[K.key],0,de.KEEP,de.KEEP,de.REPLACE)},Ur.prototype.stencilConfigForOverlap=function(K){var de,ee=this.context.gl,pe=K.sort(function(Ht,qt){return qt.overscaledZ-Ht.overscaledZ}),Oe=pe[pe.length-1].overscaledZ,Xe=pe[0].overscaledZ-Oe+1;if(Xe>1){this.currentStencilSource=void 0,this.nextStencilID+Xe>256&&this.clearStencil();for(var ft={},Lt=0;Lt=0;this.currentLayer--){var Bn=this.style._layers[pe[this.currentLayer]],Xn=Oe[Bn.source],Zn=Lt[Bn.source];this._renderTileClippingMasks(Bn,Zn),this.renderLayer(this,Xn,Bn,Zn)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?de.pop():null},Ur.prototype.isPatternMissing=function(K){if(!K)return!1;if(!K.from||!K.to)return!0;var de=this.imageManager.getPattern(K.from.toString()),ee=this.imageManager.getPattern(K.to.toString());return!de||!ee},Ur.prototype.useProgram=function(K,de){this.cache=this.cache||{};var ee=""+K+(de?de.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ee]||(this.cache[ee]=new pf(this.context,K,Jf[K],de,js[K],this._showOverdrawInspector)),this.cache[ee]},Ur.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()},Ur.prototype.setBaseState=function(){var K=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(K.FUNC_ADD)},Ur.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=s.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var K=this.context.gl;this.debugOverlayTexture=new s.Texture(this.context,this.debugOverlayCanvas,K.RGBA)}},Ur.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var on=function(K,de){this.points=K,this.planes=de};on.fromInvProjectionMatrix=function(K,de,ee){var pe=[[-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]],Oe=Math.pow(2,ee),Xe=pe.map(function(Ht){return s.transformMat4([],Ht,K)}).map(function(Ht){return s.scale$1([],Ht,1/Ht[3]/de*Oe)}),ft=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Lt=ft.map(function(Ht){var qt=s.sub([],Xe[Ht[0]],Xe[Ht[1]]),lr=s.sub([],Xe[Ht[2]],Xe[Ht[1]]),or=s.normalize([],s.cross([],qt,lr)),kr=-s.dot(or,Xe[Ht[1]]);return or.concat(kr)});return new on(Xe,Lt)};var xn=function(K,de){this.min=K,this.max=de,this.center=s.scale$2([],s.add([],this.min,this.max),.5)};xn.prototype.quadrant=function(K){for(var de=[K%2===0,K<2],ee=s.clone$2(this.min),pe=s.clone$2(this.max),Oe=0;Oe=0;if(Xe===0)return 0;Xe!==de.length&&(ee=!1)}if(ee)return 2;for(var Lt=0;Lt<3;Lt++){for(var Ht=Number.MAX_VALUE,qt=-Number.MAX_VALUE,lr=0;lrthis.max[Lt]-this.min[Lt])return 0}return 1};var _n=function(K,de,ee,pe){if(K===void 0&&(K=0),de===void 0&&(de=0),ee===void 0&&(ee=0),pe===void 0&&(pe=0),isNaN(K)||K<0||isNaN(de)||de<0||isNaN(ee)||ee<0||isNaN(pe)||pe<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=K,this.bottom=de,this.left=ee,this.right=pe};_n.prototype.interpolate=function(K,de,ee){return de.top!=null&&K.top!=null&&(this.top=s.number(K.top,de.top,ee)),de.bottom!=null&&K.bottom!=null&&(this.bottom=s.number(K.bottom,de.bottom,ee)),de.left!=null&&K.left!=null&&(this.left=s.number(K.left,de.left,ee)),de.right!=null&&K.right!=null&&(this.right=s.number(K.right,de.right,ee)),this},_n.prototype.getCenter=function(K,de){var ee=s.clamp((this.left+K-this.right)/2,0,K),pe=s.clamp((this.top+de-this.bottom)/2,0,de);return new s.Point(ee,pe)},_n.prototype.equals=function(K){return this.top===K.top&&this.bottom===K.bottom&&this.left===K.left&&this.right===K.right},_n.prototype.clone=function(){return new _n(this.top,this.bottom,this.left,this.right)},_n.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Dn=function(K,de,ee,pe,Oe){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Oe===void 0?!0:Oe,this._minZoom=K||0,this._maxZoom=de||22,this._minPitch=ee??0,this._maxPitch=pe??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new s.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _n,this._posMatrixCache={},this._alignedPosMatrixCache={}},Kn={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}};Dn.prototype.clone=function(){var K=new Dn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return K.tileSize=this.tileSize,K.latRange=this.latRange,K.width=this.width,K.height=this.height,K._center=this._center,K.zoom=this.zoom,K.angle=this.angle,K._fov=this._fov,K._pitch=this._pitch,K._unmodified=this._unmodified,K._edgeInsets=this._edgeInsets.clone(),K._calcMatrices(),K},Kn.minZoom.get=function(){return this._minZoom},Kn.minZoom.set=function(ce){this._minZoom!==ce&&(this._minZoom=ce,this.zoom=Math.max(this.zoom,ce))},Kn.maxZoom.get=function(){return this._maxZoom},Kn.maxZoom.set=function(ce){this._maxZoom!==ce&&(this._maxZoom=ce,this.zoom=Math.min(this.zoom,ce))},Kn.minPitch.get=function(){return this._minPitch},Kn.minPitch.set=function(ce){this._minPitch!==ce&&(this._minPitch=ce,this.pitch=Math.max(this.pitch,ce))},Kn.maxPitch.get=function(){return this._maxPitch},Kn.maxPitch.set=function(ce){this._maxPitch!==ce&&(this._maxPitch=ce,this.pitch=Math.min(this.pitch,ce))},Kn.renderWorldCopies.get=function(){return this._renderWorldCopies},Kn.renderWorldCopies.set=function(ce){ce===void 0?ce=!0:ce===null&&(ce=!1),this._renderWorldCopies=ce},Kn.worldSize.get=function(){return this.tileSize*this.scale},Kn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Kn.size.get=function(){return new s.Point(this.width,this.height)},Kn.bearing.get=function(){return-this.angle/Math.PI*180},Kn.bearing.set=function(ce){var K=-s.wrap(ce,-180,180)*Math.PI/180;this.angle!==K&&(this._unmodified=!1,this.angle=K,this._calcMatrices(),this.rotationMatrix=s.create$2(),s.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Kn.pitch.get=function(){return this._pitch/Math.PI*180},Kn.pitch.set=function(ce){var K=s.clamp(ce,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==K&&(this._unmodified=!1,this._pitch=K,this._calcMatrices())},Kn.fov.get=function(){return this._fov/Math.PI*180},Kn.fov.set=function(ce){ce=Math.max(.01,Math.min(60,ce)),this._fov!==ce&&(this._unmodified=!1,this._fov=ce/180*Math.PI,this._calcMatrices())},Kn.zoom.get=function(){return this._zoom},Kn.zoom.set=function(ce){var K=Math.min(Math.max(ce,this.minZoom),this.maxZoom);this._zoom!==K&&(this._unmodified=!1,this._zoom=K,this.scale=this.zoomScale(K),this.tileZoom=Math.floor(K),this.zoomFraction=K-this.tileZoom,this._constrain(),this._calcMatrices())},Kn.center.get=function(){return this._center},Kn.center.set=function(ce){ce.lat===this._center.lat&&ce.lng===this._center.lng||(this._unmodified=!1,this._center=ce,this._constrain(),this._calcMatrices())},Kn.padding.get=function(){return this._edgeInsets.toJSON()},Kn.padding.set=function(ce){this._edgeInsets.equals(ce)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,ce,1),this._calcMatrices())},Kn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Dn.prototype.isPaddingEqual=function(K){return this._edgeInsets.equals(K)},Dn.prototype.interpolatePadding=function(K,de,ee){this._unmodified=!1,this._edgeInsets.interpolate(K,de,ee),this._constrain(),this._calcMatrices()},Dn.prototype.coveringZoomLevel=function(K){var de=(K.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/K.tileSize));return Math.max(0,de)},Dn.prototype.getVisibleUnwrappedCoordinates=function(K){var de=[new s.UnwrappedTileID(0,K)];if(this._renderWorldCopies)for(var ee=this.pointCoordinate(new s.Point(0,0)),pe=this.pointCoordinate(new s.Point(this.width,0)),Oe=this.pointCoordinate(new s.Point(this.width,this.height)),Xe=this.pointCoordinate(new s.Point(0,this.height)),ft=Math.floor(Math.min(ee.x,pe.x,Oe.x,Xe.x)),Lt=Math.floor(Math.max(ee.x,pe.x,Oe.x,Xe.x)),Ht=1,qt=ft-Ht;qt<=Lt+Ht;qt++)qt!==0&&de.push(new s.UnwrappedTileID(qt,K));return de},Dn.prototype.coveringTiles=function(K){var de=this.coveringZoomLevel(K),ee=de;if(K.minzoom!==void 0&&deK.maxzoom&&(de=K.maxzoom);var pe=s.MercatorCoordinate.fromLngLat(this.center),Oe=Math.pow(2,de),Xe=[Oe*pe.x,Oe*pe.y,0],ft=on.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,de),Lt=K.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Lt=de);var Ht=3,qt=function(da){return{aabb:new xn([da*Oe,0,0],[(da+1)*Oe,Oe,0]),zoom:0,x:0,y:0,wrap:da,fullyVisible:!1}},lr=[],or=[],kr=de,Xr=K.reparseOverscaled?ee:de;if(this._renderWorldCopies)for(var jr=1;jr<=3;jr++)lr.push(qt(-jr)),lr.push(qt(jr));for(lr.push(qt(0));lr.length>0;){var Wr=lr.pop(),Qr=Wr.x,dn=Wr.y,In=Wr.fullyVisible;if(!In){var Bn=Wr.aabb.intersects(ft);if(Bn===0)continue;In=Bn===2}var Xn=Wr.aabb.distanceX(Xe),Zn=Wr.aabb.distanceY(Xe),Yn=Math.max(Math.abs(Xn),Math.abs(Zn)),Jn=Ht+(1<Jn&&Wr.zoom>=Lt){or.push({tileID:new s.OverscaledTileID(Wr.zoom===kr?Xr:Wr.zoom,Wr.wrap,Wr.zoom,Qr,dn),distanceSq:s.sqrLen([Xe[0]-.5-Qr,Xe[1]-.5-dn])});continue}for(var na=0;na<4;na++){var ua=(Qr<<1)+na%2,xa=(dn<<1)+(na>>1);lr.push({aabb:Wr.aabb.quadrant(na),zoom:Wr.zoom+1,x:ua,y:xa,wrap:Wr.wrap,fullyVisible:In})}}return or.sort(function(da,Fa){return da.distanceSq-Fa.distanceSq}).map(function(da){return da.tileID})},Dn.prototype.resize=function(K,de){this.width=K,this.height=de,this.pixelsToGLUnits=[2/K,-2/de],this._constrain(),this._calcMatrices()},Kn.unmodified.get=function(){return this._unmodified},Dn.prototype.zoomScale=function(K){return Math.pow(2,K)},Dn.prototype.scaleZoom=function(K){return Math.log(K)/Math.LN2},Dn.prototype.project=function(K){var de=s.clamp(K.lat,-this.maxValidLatitude,this.maxValidLatitude);return new s.Point(s.mercatorXfromLng(K.lng)*this.worldSize,s.mercatorYfromLat(de)*this.worldSize)},Dn.prototype.unproject=function(K){return new s.MercatorCoordinate(K.x/this.worldSize,K.y/this.worldSize).toLngLat()},Kn.point.get=function(){return this.project(this.center)},Dn.prototype.setLocationAtPoint=function(K,de){var ee=this.pointCoordinate(de),pe=this.pointCoordinate(this.centerPoint),Oe=this.locationCoordinate(K),Xe=new s.MercatorCoordinate(Oe.x-(ee.x-pe.x),Oe.y-(ee.y-pe.y));this.center=this.coordinateLocation(Xe),this._renderWorldCopies&&(this.center=this.center.wrap())},Dn.prototype.locationPoint=function(K){return this.coordinatePoint(this.locationCoordinate(K))},Dn.prototype.pointLocation=function(K){return this.coordinateLocation(this.pointCoordinate(K))},Dn.prototype.locationCoordinate=function(K){return s.MercatorCoordinate.fromLngLat(K)},Dn.prototype.coordinateLocation=function(K){return K.toLngLat()},Dn.prototype.pointCoordinate=function(K){var de=0,ee=[K.x,K.y,0,1],pe=[K.x,K.y,1,1];s.transformMat4(ee,ee,this.pixelMatrixInverse),s.transformMat4(pe,pe,this.pixelMatrixInverse);var Oe=ee[3],Xe=pe[3],ft=ee[0]/Oe,Lt=pe[0]/Xe,Ht=ee[1]/Oe,qt=pe[1]/Xe,lr=ee[2]/Oe,or=pe[2]/Xe,kr=lr===or?0:(de-lr)/(or-lr);return new s.MercatorCoordinate(s.number(ft,Lt,kr)/this.worldSize,s.number(Ht,qt,kr)/this.worldSize)},Dn.prototype.coordinatePoint=function(K){var de=[K.x*this.worldSize,K.y*this.worldSize,0,1];return s.transformMat4(de,de,this.pixelMatrix),new s.Point(de[0]/de[3],de[1]/de[3])},Dn.prototype.getBounds=function(){return new s.LngLatBounds().extend(this.pointLocation(new s.Point(0,0))).extend(this.pointLocation(new s.Point(this.width,0))).extend(this.pointLocation(new s.Point(this.width,this.height))).extend(this.pointLocation(new s.Point(0,this.height)))},Dn.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new s.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},Dn.prototype.setMaxBounds=function(K){K?(this.lngRange=[K.getWest(),K.getEast()],this.latRange=[K.getSouth(),K.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Dn.prototype.calculatePosMatrix=function(K,de){de===void 0&&(de=!1);var ee=K.key,pe=de?this._alignedPosMatrixCache:this._posMatrixCache;if(pe[ee])return pe[ee];var Oe=K.canonical,Xe=this.worldSize/this.zoomScale(Oe.z),ft=Oe.x+Math.pow(2,Oe.z)*K.wrap,Lt=s.identity(new Float64Array(16));return s.translate(Lt,Lt,[ft*Xe,Oe.y*Xe,0]),s.scale(Lt,Lt,[Xe/s.EXTENT,Xe/s.EXTENT,1]),s.multiply(Lt,de?this.alignedProjMatrix:this.projMatrix,Lt),pe[ee]=new Float32Array(Lt),pe[ee]},Dn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Dn.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var K=-90,de=90,ee=-180,pe=180,Oe,Xe,ft,Lt,Ht=this.size,qt=this._unmodified;if(this.latRange){var lr=this.latRange;K=s.mercatorYfromLat(lr[1])*this.worldSize,de=s.mercatorYfromLat(lr[0])*this.worldSize,Oe=de-Kde&&(Lt=de-Wr)}if(this.lngRange){var Qr=kr.x,dn=Ht.x/2;Qr-dnpe&&(ft=pe-dn)}(ft!==void 0||Lt!==void 0)&&(this.center=this.unproject(new s.Point(ft!==void 0?ft:kr.x,Lt!==void 0?Lt:kr.y))),this._unmodified=qt,this._constraining=!1}},Dn.prototype._calcMatrices=function(){if(this.height){var K=this._fov/2,de=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(K)*this.height;var ee=Math.PI/2+this._pitch,pe=this._fov*(.5+de.y/this.height),Oe=Math.sin(pe)*this.cameraToCenterDistance/Math.sin(s.clamp(Math.PI-ee-pe,.01,Math.PI-.01)),Xe=this.point,ft=Xe.x,Lt=Xe.y,Ht=Math.cos(Math.PI/2-this._pitch)*Oe+this.cameraToCenterDistance,qt=Ht*1.01,lr=this.height/50,or=new Float64Array(16);s.perspective(or,this._fov,this.width/this.height,lr,qt),or[8]=-de.x*2/this.width,or[9]=de.y*2/this.height,s.scale(or,or,[1,-1,1]),s.translate(or,or,[0,0,-this.cameraToCenterDistance]),s.rotateX(or,or,this._pitch),s.rotateZ(or,or,this.angle),s.translate(or,or,[-ft,-Lt,0]),this.mercatorMatrix=s.scale([],or,[this.worldSize,this.worldSize,this.worldSize]),s.scale(or,or,[1,1,s.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=or,this.invProjMatrix=s.invert([],this.projMatrix);var kr=this.width%2/2,Xr=this.height%2/2,jr=Math.cos(this.angle),Wr=Math.sin(this.angle),Qr=ft-Math.round(ft)+jr*kr+Wr*Xr,dn=Lt-Math.round(Lt)+jr*Xr+Wr*kr,In=new Float64Array(or);if(s.translate(In,In,[Qr>.5?Qr-1:Qr,dn>.5?dn-1:dn,0]),this.alignedProjMatrix=In,or=s.create(),s.scale(or,or,[this.width/2,-this.height/2,1]),s.translate(or,or,[1,-1,0]),this.labelPlaneMatrix=or,or=s.create(),s.scale(or,or,[1,-1,1]),s.translate(or,or,[-1,-1,0]),s.scale(or,or,[2/this.width,2/this.height,1]),this.glCoordMatrix=or,this.pixelMatrix=s.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),or=s.invert(new Float64Array(16),this.pixelMatrix),!or)throw new Error("failed to invert matrix");this.pixelMatrixInverse=or,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Dn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var K=this.pointCoordinate(new s.Point(0,0)),de=[K.x*this.worldSize,K.y*this.worldSize,0,1],ee=s.transformMat4(de,de,this.pixelMatrix);return ee[3]/this.cameraToCenterDistance},Dn.prototype.getCameraPoint=function(){var K=this._pitch,de=Math.tan(K)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new s.Point(0,de))},Dn.prototype.getCameraQueryGeometry=function(K){var de=this.getCameraPoint();if(K.length===1)return[K[0],de];for(var ee=de.x,pe=de.y,Oe=de.x,Xe=de.y,ft=0,Lt=K;ft=3&&!K.some(function(ee){return isNaN(ee)})){var de=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(K[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+K[2],+K[1]],zoom:+K[0],bearing:de,pitch:+(K[4]||0)}),!0}return!1},Da.prototype._updateHashUnthrottled=function(){var K=s.window.location.href.replace(/(#.+)?$/,this.getHashString());try{s.window.history.replaceState(s.window.history.state,null,K)}catch{}};var ka={linearity:.3,easing:s.bezier(0,0,.3,1)},Na=s.extend({deceleration:2500,maxSpeed:1400},ka),Ka=s.extend({deceleration:20,maxSpeed:1400},ka),di=s.extend({deceleration:1e3,maxSpeed:360},ka),zi=s.extend({deceleration:1e3,maxSpeed:90},ka),ue=function(K){this._map=K,this.clear()};ue.prototype.clear=function(){this._inertiaBuffer=[]},ue.prototype.record=function(K){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:s.browser.now(),settings:K})},ue.prototype._drainInertiaBuffer=function(){for(var K=this._inertiaBuffer,de=s.browser.now(),ee=160;K.length>0&&de-K[0].time>ee;)K.shift()},ue.prototype._onMoveEnd=function(K){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var de={zoom:0,bearing:0,pitch:0,pan:new s.Point(0,0),pinchAround:void 0,around:void 0},ee=0,pe=this._inertiaBuffer;ee=this._clickTolerance||this._map.fire(new qe(K.type,this._map,K))},Pt.prototype.dblclick=function(K){return this._firePreventable(new qe(K.type,this._map,K))},Pt.prototype.mouseover=function(K){this._map.fire(new qe(K.type,this._map,K))},Pt.prototype.mouseout=function(K){this._map.fire(new qe(K.type,this._map,K))},Pt.prototype.touchstart=function(K){return this._firePreventable(new nt(K.type,this._map,K))},Pt.prototype.touchmove=function(K){this._map.fire(new nt(K.type,this._map,K))},Pt.prototype.touchend=function(K){this._map.fire(new nt(K.type,this._map,K))},Pt.prototype.touchcancel=function(K){this._map.fire(new nt(K.type,this._map,K))},Pt.prototype._firePreventable=function(K){if(this._map.fire(K),K.defaultPrevented)return{}},Pt.prototype.isEnabled=function(){return!0},Pt.prototype.isActive=function(){return!1},Pt.prototype.enable=function(){},Pt.prototype.disable=function(){};var St=function(K){this._map=K};St.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},St.prototype.mousemove=function(K){this._map.fire(new qe(K.type,this._map,K))},St.prototype.mousedown=function(){this._delayContextMenu=!0},St.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new qe("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},St.prototype.contextmenu=function(K){this._delayContextMenu?this._contextMenuEvent=K:this._map.fire(new qe(K.type,this._map,K)),this._map.listens("contextmenu")&&K.preventDefault()},St.prototype.isEnabled=function(){return!0},St.prototype.isActive=function(){return!1},St.prototype.enable=function(){},St.prototype.disable=function(){};var Gt=function(K,de){this._map=K,this._el=K.getCanvasContainer(),this._container=K.getContainer(),this._clickTolerance=de.clickTolerance||1};Gt.prototype.isEnabled=function(){return!!this._enabled},Gt.prototype.isActive=function(){return!!this._active},Gt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Gt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Gt.prototype.mousedown=function(K,de){this.isEnabled()&&K.shiftKey&&K.button===0&&(S.disableDrag(),this._startPos=this._lastPos=de,this._active=!0)},Gt.prototype.mousemoveWindow=function(K,de){if(this._active){var ee=de;if(!(this._lastPos.equals(ee)||!this._box&&ee.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=K.timeStamp),ee.length===this.numTouches&&(this.centroid=rr(de),this.touches=Yt(ee,de)))},sn.prototype.touchmove=function(K,de,ee){if(!(this.aborted||!this.centroid)){var pe=Yt(ee,de);for(var Oe in this.touches){var Xe=this.touches[Oe],ft=pe[Oe];(!ft||ft.dist(Xe)>$r)&&(this.aborted=!0)}}},sn.prototype.touchend=function(K,de,ee){if((!this.centroid||K.timeStamp-this.startTime>Lr)&&(this.aborted=!0),ee.length===0){var pe=!this.aborted&&this.centroid;if(this.reset(),pe)return pe}};var _r=function(K){this.singleTap=new sn(K),this.numTaps=K.numTaps,this.reset()};_r.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_r.prototype.touchstart=function(K,de,ee){this.singleTap.touchstart(K,de,ee)},_r.prototype.touchmove=function(K,de,ee){this.singleTap.touchmove(K,de,ee)},_r.prototype.touchend=function(K,de,ee){var pe=this.singleTap.touchend(K,de,ee);if(pe){var Oe=K.timeStamp-this.lastTime0&&(this._active=!0);var pe=Yt(ee,de),Oe=new s.Point(0,0),Xe=new s.Point(0,0),ft=0;for(var Lt in pe){var Ht=pe[Lt],qt=this._touches[Lt];qt&&(Oe._add(Ht),Xe._add(Ht.sub(qt)),ft++,pe[Lt]=Ht)}if(this._touches=pe,!(ftMath.abs(ce.x)}var Sa=100,Ja=function(ce){function K(){ce.apply(this,arguments)}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.reset=function(){ce.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},K.prototype._start=function(ee){this._lastPoints=ee,Ha(ee[0].sub(ee[1]))&&(this._valid=!1)},K.prototype._move=function(ee,pe,Oe){var Xe=ee[0].sub(this._lastPoints[0]),ft=ee[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Xe,ft,Oe.timeStamp),!!this._valid){this._lastPoints=ee,this._active=!0;var Lt=(Xe.y+ft.y)/2,Ht=-.5;return{pitchDelta:Lt*Ht}}},K.prototype.gestureBeginsVertically=function(ee,pe,Oe){if(this._valid!==void 0)return this._valid;var Xe=2,ft=ee.mag()>=Xe,Lt=pe.mag()>=Xe;if(!(!ft&&!Lt)){if(!ft||!Lt)return this._firstMove===void 0&&(this._firstMove=Oe),Oe-this._firstMove0==pe.y>0;return Ha(ee)&&Ha(pe)&&Ht}},K}(ca),wi={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var K=wi;this._panStep=K.panStep,this._bearingStep=K.bearingStep,this._pitchStep=K.pitchStep,this._rotationDisabled=!1};oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(K){var de=this;if(!(K.altKey||K.ctrlKey||K.metaKey)){var ee=0,pe=0,Oe=0,Xe=0,ft=0;switch(K.keyCode){case 61:case 107:case 171:case 187:ee=1;break;case 189:case 109:case 173:ee=-1;break;case 37:K.shiftKey?pe=-1:(K.preventDefault(),Xe=-1);break;case 39:K.shiftKey?pe=1:(K.preventDefault(),Xe=1);break;case 38:K.shiftKey?Oe=1:(K.preventDefault(),ft=-1);break;case 40:K.shiftKey?Oe=-1:(K.preventDefault(),ft=1);break;default:return}return this._rotationDisabled&&(pe=0,Oe=0),{cameraAnimation:function(Lt){var Ht=Lt.getZoom();Lt.easeTo({duration:300,easeId:"keyboardHandler",easing:$i,zoom:ee?Math.round(Ht)+ee*(K.shiftKey?2:1):Ht,bearing:Lt.getBearing()+pe*de._bearingStep,pitch:Lt.getPitch()+Oe*de._pitchStep,offset:[-Xe*de._panStep,-ft*de._panStep],center:Lt.getCenter()},{originalEvent:K})}}}},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};function $i(ce){return ce*(2-ce)}var qi=4.000244140625,ao=1/100,Ti=1/450,go=2,la=function(K,de){this._map=K,this._el=K.getCanvasContainer(),this._handler=de,this._delta=0,this._defaultZoomRate=ao,this._wheelZoomRate=Ti,s.bindAll(["_onTimeout"],this)};la.prototype.setZoomRate=function(K){this._defaultZoomRate=K},la.prototype.setWheelZoomRate=function(K){this._wheelZoomRate=K},la.prototype.isEnabled=function(){return!!this._enabled},la.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},la.prototype.isZooming=function(){return!!this._zooming},la.prototype.enable=function(K){this.isEnabled()||(this._enabled=!0,this._aroundCenter=K&&K.around==="center")},la.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},la.prototype.wheel=function(K){if(this.isEnabled()){var de=K.deltaMode===s.window.WheelEvent.DOM_DELTA_LINE?K.deltaY*40:K.deltaY,ee=s.browser.now(),pe=ee-(this._lastWheelEventTime||0);this._lastWheelEventTime=ee,de!==0&&de%qi===0?this._type="wheel":de!==0&&Math.abs(de)<4?this._type="trackpad":pe>400?(this._type=null,this._lastValue=de,this._timeout=setTimeout(this._onTimeout,40,K)):this._type||(this._type=Math.abs(pe*de)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,de+=this._lastValue)),K.shiftKey&&de&&(de=de/4),this._type&&(this._lastWheelEvent=K,this._delta-=de,this._active||this._start(K)),K.preventDefault()}},la.prototype._onTimeout=function(K){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(K)},la.prototype._start=function(K){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 de=S.mousePos(this._el,K);this._around=s.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(de)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},la.prototype.renderFrame=function(){var K=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var de=this._map.transform;if(this._delta!==0){var ee=this._type==="wheel"&&Math.abs(this._delta)>qi?this._wheelZoomRate:this._defaultZoomRate,pe=go/(1+Math.exp(-Math.abs(this._delta*ee)));this._delta<0&&pe!==0&&(pe=1/pe);var Oe=typeof this._targetZoom=="number"?de.zoomScale(this._targetZoom):de.scale;this._targetZoom=Math.min(de.maxZoom,Math.max(de.minZoom,de.scaleZoom(Oe*pe))),this._type==="wheel"&&(this._startZoom=de.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Xe=typeof this._targetZoom=="number"?this._targetZoom:de.zoom,ft=this._startZoom,Lt=this._easing,Ht=!1,qt;if(this._type==="wheel"&&ft&&Lt){var lr=Math.min((s.browser.now()-this._lastWheelEventTime)/200,1),or=Lt(lr);qt=s.number(ft,Xe,or),lr<1?this._frameId||(this._frameId=!0):Ht=!0}else qt=Xe,Ht=!0;return this._active=!0,Ht&&(this._active=!1,this._finishTimeout=setTimeout(function(){K._zooming=!1,K._handler._triggerRenderFrame(),delete K._targetZoom,delete K._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ht,zoomDelta:qt-de.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},la.prototype._smoothOutEasing=function(K){var de=s.ease;if(this._prevEase){var ee=this._prevEase,pe=(s.browser.now()-ee.start)/ee.duration,Oe=ee.easing(pe+.01)-ee.easing(pe),Xe=.27/Math.sqrt(Oe*Oe+1e-4)*.01,ft=Math.sqrt(.27*.27-Xe*Xe);de=s.bezier(Xe,ft,.25,1)}return this._prevEase={start:s.browser.now(),duration:K,easing:de},de},la.prototype.reset=function(){this._active=!1};var La=function(K,de){this._clickZoom=K,this._tapZoom=de};La.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},La.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},La.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},La.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ro=function(){this.reset()};Ro.prototype.reset=function(){this._active=!1},Ro.prototype.dblclick=function(K,de){return K.preventDefault(),{cameraAnimation:function(ee){ee.easeTo({duration:300,zoom:ee.getZoom()+(K.shiftKey?-1:1),around:ee.unproject(de)},{originalEvent:K})}}},Ro.prototype.enable=function(){this._enabled=!0},Ro.prototype.disable=function(){this._enabled=!1,this.reset()},Ro.prototype.isEnabled=function(){return this._enabled},Ro.prototype.isActive=function(){return this._active};var Fo=function(){this._tap=new _r({numTouches:1,numTaps:1}),this.reset()};Fo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Fo.prototype.touchstart=function(K,de,ee){this._swipePoint||(this._tapTime&&K.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?ee.length>0&&(this._swipePoint=de[0],this._swipeTouch=ee[0].identifier):this._tap.touchstart(K,de,ee))},Fo.prototype.touchmove=function(K,de,ee){if(!this._tapTime)this._tap.touchmove(K,de,ee);else if(this._swipePoint){if(ee[0].identifier!==this._swipeTouch)return;var pe=de[0],Oe=pe.y-this._swipePoint.y;return this._swipePoint=pe,K.preventDefault(),this._active=!0,{zoomDelta:Oe/128}}},Fo.prototype.touchend=function(K,de,ee){if(this._tapTime)this._swipePoint&&ee.length===0&&this.reset();else{var pe=this._tap.touchend(K,de,ee);pe&&(this._tapTime=K.timeStamp)}},Fo.prototype.touchcancel=function(){this.reset()},Fo.prototype.enable=function(){this._enabled=!0},Fo.prototype.disable=function(){this._enabled=!1,this.reset()},Fo.prototype.isEnabled=function(){return this._enabled},Fo.prototype.isActive=function(){return this._active};var io=function(K,de,ee){this._el=K,this._mousePan=de,this._touchPan=ee};io.prototype.enable=function(K){this._inertiaOptions=K||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},io.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},io.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},io.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var hi=function(K,de,ee){this._pitchWithRotate=K.pitchWithRotate,this._mouseRotate=de,this._mousePitch=ee};hi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},hi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},hi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},hi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Wi=function(K,de,ee,pe){this._el=K,this._touchZoom=de,this._touchRotate=ee,this._tapDragZoom=pe,this._rotationDisabled=!1,this._enabled=!0};Wi.prototype.enable=function(K){this._touchZoom.enable(K),this._rotationDisabled||this._touchRotate.enable(K),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Wi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Wi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Wi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Wi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Wi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Ni=function(ce){return ce.zoom||ce.drag||ce.pitch||ce.rotate},ps=function(ce){function K(){ce.apply(this,arguments)}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K}(s.Event);function Ds(ce){return ce.panDelta&&ce.panDelta.mag()||ce.zoomDelta||ce.bearingDelta||ce.pitchDelta}var Li=function(K,de){this._map=K,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ue(K),this._bearingSnap=de.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(de),s.bindAll(["handleEvent","handleWindowEvent"],this);var ee=this._el;this._listeners=[[ee,"touchstart",{passive:!0}],[ee,"touchmove",{passive:!1}],[ee,"touchend",void 0],[ee,"touchcancel",void 0],[ee,"mousedown",void 0],[ee,"mousemove",void 0],[ee,"mouseup",void 0],[s.window.document,"mousemove",{capture:!0}],[s.window.document,"mouseup",void 0],[ee,"mouseover",void 0],[ee,"mouseout",void 0],[ee,"dblclick",void 0],[ee,"click",void 0],[ee,"keydown",{capture:!1}],[ee,"keyup",void 0],[ee,"wheel",{passive:!1}],[ee,"contextmenu",void 0],[s.window,"blur",void 0]];for(var pe=0,Oe=this._listeners;peft?Math.min(2,Xn):Math.max(.5,Xn),da=Math.pow(xa,1-na),Fa=Xe.unproject(In.add(Bn.mult(na*da)).mult(ua));Xe.setLocationAtPoint(Xe.renderWorldCopies?Fa.wrap():Fa,Wr)}Oe._fireMoveEvents(pe)},function(na){Oe._afterEase(pe,na)},ee),this},K.prototype._prepareEase=function(ee,pe,Oe){Oe===void 0&&(Oe={}),this._moving=!0,!pe&&!Oe.moving&&this.fire(new s.Event("movestart",ee)),this._zooming&&!Oe.zooming&&this.fire(new s.Event("zoomstart",ee)),this._rotating&&!Oe.rotating&&this.fire(new s.Event("rotatestart",ee)),this._pitching&&!Oe.pitching&&this.fire(new s.Event("pitchstart",ee))},K.prototype._fireMoveEvents=function(ee){this.fire(new s.Event("move",ee)),this._zooming&&this.fire(new s.Event("zoom",ee)),this._rotating&&this.fire(new s.Event("rotate",ee)),this._pitching&&this.fire(new s.Event("pitch",ee))},K.prototype._afterEase=function(ee,pe){if(!(this._easeId&&pe&&this._easeId===pe)){delete this._easeId;var Oe=this._zooming,Xe=this._rotating,ft=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Oe&&this.fire(new s.Event("zoomend",ee)),Xe&&this.fire(new s.Event("rotateend",ee)),ft&&this.fire(new s.Event("pitchend",ee)),this.fire(new s.Event("moveend",ee))}},K.prototype.flyTo=function(ee,pe){var Oe=this;if(!ee.essential&&s.browser.prefersReducedMotion){var Xe=s.pick(ee,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Xe,pe)}this.stop(),ee=s.extend({offset:[0,0],speed:1.2,curve:1.42,easing:s.ease},ee);var ft=this.transform,Lt=this.getZoom(),Ht=this.getBearing(),qt=this.getPitch(),lr=this.getPadding(),or="zoom"in ee?s.clamp(+ee.zoom,ft.minZoom,ft.maxZoom):Lt,kr="bearing"in ee?this._normalizeBearing(ee.bearing,Ht):Ht,Xr="pitch"in ee?+ee.pitch:qt,jr="padding"in ee?ee.padding:ft.padding,Wr=ft.zoomScale(or-Lt),Qr=s.Point.convert(ee.offset),dn=ft.centerPoint.add(Qr),In=ft.pointLocation(dn),Bn=s.LngLat.convert(ee.center||In);this._normalizeCenter(Bn);var Xn=ft.project(In),Zn=ft.project(Bn).sub(Xn),Yn=ee.curve,Jn=Math.max(ft.width,ft.height),na=Jn/Wr,ua=Zn.mag();if("minZoom"in ee){var xa=s.clamp(Math.min(ee.minZoom,Lt,or),ft.minZoom,ft.maxZoom),da=Jn/ft.zoomScale(xa-Lt);Yn=Math.sqrt(da/ua*2)}var Fa=Yn*Yn;function qa(Wa){var ei=(na*na-Jn*Jn+(Wa?-1:1)*Fa*Fa*ua*ua)/(2*(Wa?na:Jn)*Fa*ua);return Math.log(Math.sqrt(ei*ei+1)-ei)}function Xa(Wa){return(Math.exp(Wa)-Math.exp(-Wa))/2}function Ma(Wa){return(Math.exp(Wa)+Math.exp(-Wa))/2}function Za(Wa){return Xa(Wa)/Ma(Wa)}var Ga=qa(0),si=function(Wa){return Ma(Ga)/Ma(Ga+Yn*Wa)},ri=function(Wa){return Jn*((Ma(Ga)*Za(Ga+Yn*Wa)-Xa(Ga))/Fa)/ua},Si=(qa(1)-Ga)/Yn;if(Math.abs(ua)<1e-6||!isFinite(Si)){if(Math.abs(Jn-na)<1e-6)return this.easeTo(ee,pe);var $a=naee.maxDuration&&(ee.duration=0),this._zooming=!0,this._rotating=Ht!==kr,this._pitching=Xr!==qt,this._padding=!ft.isPaddingEqual(jr),this._prepareEase(pe,!1),this._ease(function(Wa){var ei=Wa*Si,Bi=1/si(ei);ft.zoom=Wa===1?or:Lt+ft.scaleZoom(Bi),Oe._rotating&&(ft.bearing=s.number(Ht,kr,Wa)),Oe._pitching&&(ft.pitch=s.number(qt,Xr,Wa)),Oe._padding&&(ft.interpolatePadding(lr,jr,Wa),dn=ft.centerPoint.add(Qr));var yo=Wa===1?Bn:ft.unproject(Xn.add(Zn.mult(ri(ei))).mult(Bi));ft.setLocationAtPoint(ft.renderWorldCopies?yo.wrap():yo,dn),Oe._fireMoveEvents(pe)},function(){return Oe._afterEase(pe)},ee),this},K.prototype.isEasing=function(){return!!this._easeFrameId},K.prototype.stop=function(){return this._stop()},K.prototype._stop=function(ee,pe){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Oe=this._onEaseEnd;delete this._onEaseEnd,Oe.call(this,pe)}if(!ee){var Xe=this.handlers;Xe&&Xe.stop(!1)}return this},K.prototype._ease=function(ee,pe,Oe){Oe.animate===!1||Oe.duration===0?(ee(1),pe()):(this._easeStart=s.browser.now(),this._easeOptions=Oe,this._onEaseFrame=ee,this._onEaseEnd=pe,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},K.prototype._renderFrameCallback=function(){var ee=Math.min((s.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ee)),ee<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},K.prototype._normalizeBearing=function(ee,pe){ee=s.wrap(ee,-180,180);var Oe=Math.abs(ee-pe);return Math.abs(ee-360-pe)180?-360:Oe<-180?360:0}},K}(s.Evented),Qa=function(K){K===void 0&&(K={}),this.options=K,s.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qa.prototype.getDefaultPosition=function(){return"bottom-right"},Qa.prototype.onAdd=function(K){var de=this.options&&this.options.compact;return this._map=K,this._container=S.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=S.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=S.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),de&&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),de===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qa.prototype.onRemove=function(){S.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},Qa.prototype._setElementTitle=function(K,de){var ee=this._map._getUIString("AttributionControl."+de);K.title=ee,K.setAttribute("aria-label",ee)},Qa.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"))},Qa.prototype._updateEditLink=function(){var K=this._editLink;K||(K=this._editLink=this._container.querySelector(".mapbox-improve-map"));var de=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||s.config.ACCESS_TOKEN}];if(K){var ee=de.reduce(function(pe,Oe,Xe){return Oe.value&&(pe+=Oe.key+"="+Oe.value+(Xe=0)return!1;return!0});var ft=K.join(" | ");ft!==this._attribHTML&&(this._attribHTML=ft,K.length?(this._innerContainer.innerHTML=ft,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qa.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Pi=function(){s.bindAll(["_updateLogo"],this),s.bindAll(["_updateCompact"],this)};Pi.prototype.onAdd=function(K){this._map=K,this._container=S.create("div","mapboxgl-ctrl");var de=S.create("a","mapboxgl-ctrl-logo");return de.target="_blank",de.rel="noopener nofollow",de.href="https://www.mapbox.com/",de.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),de.setAttribute("rel","noopener nofollow"),this._container.appendChild(de),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Pi.prototype.onRemove=function(){S.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Pi.prototype.getDefaultPosition=function(){return"bottom-left"},Pi.prototype._updateLogo=function(K){(!K||K.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Pi.prototype._logoRequired=function(){if(this._map.style){var K=this._map.style.sourceCaches;for(var de in K){var ee=K[de].getSource();if(ee.mapbox_logo)return!0}return!1}},Pi.prototype._updateCompact=function(){var K=this._container.children;if(K.length){var de=K[0];this._map.getCanvasContainer().offsetWidth<250?de.classList.add("mapboxgl-compact"):de.classList.remove("mapboxgl-compact")}};var uh=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};uh.prototype.add=function(K){var de=++this._id,ee=this._queue;return ee.push({callback:K,id:de,cancelled:!1}),de},uh.prototype.remove=function(K){for(var de=this._currentlyRunning,ee=de?this._queue.concat(de):this._queue,pe=0,Oe=ee;peee.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(ee.minPitch!=null&&ee.maxPitch!=null&&ee.minPitch>ee.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(ee.minPitch!=null&&ee.minPitchJu)throw new Error("maxPitch must be less than or equal to "+Ju);var Oe=new Dn(ee.minZoom,ee.maxZoom,ee.minPitch,ee.maxPitch,ee.renderWorldCopies);if(ce.call(this,Oe,ee),this._interactive=ee.interactive,this._maxTileCacheSize=ee.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ee.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ee.preserveDrawingBuffer,this._antialias=ee.antialias,this._trackResize=ee.trackResize,this._bearingSnap=ee.bearingSnap,this._refreshExpiredTiles=ee.refreshExpiredTiles,this._fadeDuration=ee.fadeDuration,this._crossSourceCollisions=ee.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ee.collectResourceTiming,this._renderTaskQueue=new uh,this._controls=[],this._mapId=s.uniqueId(),this._locale=s.extend({},Jd,ee.locale),this._clickTolerance=ee.clickTolerance,this._requestManager=new s.RequestManager(ee.transformRequest,ee.accessToken),typeof ee.container=="string"){if(this._container=s.window.document.getElementById(ee.container),!this._container)throw new Error("Container '"+ee.container+"' not found.")}else if(ee.container instanceof Fv)this._container=ee.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(ee.maxBounds&&this.setMaxBounds(ee.maxBounds),s.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return pe._update(!1)}),this.on("moveend",function(){return pe._update(!1)}),this.on("zoom",function(){return pe._update(!0)}),typeof s.window<"u"&&(s.window.addEventListener("online",this._onWindowOnline,!1),s.window.addEventListener("resize",this._onWindowResize,!1),s.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Li(this,ee);var Xe=typeof ee.hash=="string"&&ee.hash||void 0;this._hash=ee.hash&&new Da(Xe).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch}),ee.bounds&&(this.resize(),this.fitBounds(ee.bounds,s.extend({},ee.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=ee.localIdeographFontFamily,ee.style&&this.setStyle(ee.style,{localIdeographFontFamily:ee.localIdeographFontFamily}),ee.attributionControl&&this.addControl(new Qa({customAttribution:ee.customAttribution})),this.addControl(new Pi,ee.logoPosition),this.on("style.load",function(){pe.transform.unmodified&&pe.jumpTo(pe.style.stylesheet)}),this.on("data",function(ft){pe._update(ft.dataType==="style"),pe.fire(new s.Event(ft.dataType+"data",ft))}),this.on("dataloading",function(ft){pe.fire(new s.Event(ft.dataType+"dataloading",ft))})}ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K;var de={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return K.prototype._getMapId=function(){return this._mapId},K.prototype.addControl=function(pe,Oe){if(Oe===void 0&&(pe.getDefaultPosition?Oe=pe.getDefaultPosition():Oe="top-right"),!pe||!pe.onAdd)return this.fire(new s.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Xe=pe.onAdd(this);this._controls.push(pe);var ft=this._controlPositions[Oe];return Oe.indexOf("bottom")!==-1?ft.insertBefore(Xe,ft.firstChild):ft.appendChild(Xe),this},K.prototype.removeControl=function(pe){if(!pe||!pe.onRemove)return this.fire(new s.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Oe=this._controls.indexOf(pe);return Oe>-1&&this._controls.splice(Oe,1),pe.onRemove(this),this},K.prototype.hasControl=function(pe){return this._controls.indexOf(pe)>-1},K.prototype.resize=function(pe){var Oe=this._containerDimensions(),Xe=Oe[0],ft=Oe[1];this._resizeCanvas(Xe,ft),this.transform.resize(Xe,ft),this.painter.resize(Xe,ft);var Lt=!this._moving;return Lt&&(this.stop(),this.fire(new s.Event("movestart",pe)).fire(new s.Event("move",pe))),this.fire(new s.Event("resize",pe)),Lt&&this.fire(new s.Event("moveend",pe)),this},K.prototype.getBounds=function(){return this.transform.getBounds()},K.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},K.prototype.setMaxBounds=function(pe){return this.transform.setMaxBounds(s.LngLatBounds.convert(pe)),this._update()},K.prototype.setMinZoom=function(pe){if(pe=pe??uc,pe>=uc&&pe<=this.transform.maxZoom)return this.transform.minZoom=pe,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=pe,this._update(),this.getZoom()>pe&&this.setZoom(pe),this;throw new Error("maxZoom must be greater than the current minZoom")},K.prototype.getMaxZoom=function(){return this.transform.maxZoom},K.prototype.setMinPitch=function(pe){if(pe=pe??ts,pe=ts&&pe<=this.transform.maxPitch)return this.transform.minPitch=pe,this._update(),this.getPitch()Ju)throw new Error("maxPitch must be less than or equal to "+Ju);if(pe>=this.transform.minPitch)return this.transform.maxPitch=pe,this._update(),this.getPitch()>pe&&this.setPitch(pe),this;throw new Error("maxPitch must be greater than the current minPitch")},K.prototype.getMaxPitch=function(){return this.transform.maxPitch},K.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},K.prototype.setRenderWorldCopies=function(pe){return this.transform.renderWorldCopies=pe,this._update()},K.prototype.project=function(pe){return this.transform.locationPoint(s.LngLat.convert(pe))},K.prototype.unproject=function(pe){return this.transform.pointLocation(s.Point.convert(pe))},K.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},K.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},K.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},K.prototype._createDelegatedListener=function(pe,Oe,Xe){var ft=this,Lt;if(pe==="mouseenter"||pe==="mouseover"){var Ht=!1,qt=function(Wr){var Qr=ft.getLayer(Oe)?ft.queryRenderedFeatures(Wr.point,{layers:[Oe]}):[];Qr.length?Ht||(Ht=!0,Xe.call(ft,new qe(pe,ft,Wr.originalEvent,{features:Qr}))):Ht=!1},lr=function(){Ht=!1};return{layer:Oe,listener:Xe,delegates:{mousemove:qt,mouseout:lr}}}else if(pe==="mouseleave"||pe==="mouseout"){var or=!1,kr=function(Wr){var Qr=ft.getLayer(Oe)?ft.queryRenderedFeatures(Wr.point,{layers:[Oe]}):[];Qr.length?or=!0:or&&(or=!1,Xe.call(ft,new qe(pe,ft,Wr.originalEvent)))},Xr=function(Wr){or&&(or=!1,Xe.call(ft,new qe(pe,ft,Wr.originalEvent)))};return{layer:Oe,listener:Xe,delegates:{mousemove:kr,mouseout:Xr}}}else{var jr=function(Wr){var Qr=ft.getLayer(Oe)?ft.queryRenderedFeatures(Wr.point,{layers:[Oe]}):[];Qr.length&&(Wr.features=Qr,Xe.call(ft,Wr),delete Wr.features)};return{layer:Oe,listener:Xe,delegates:(Lt={},Lt[pe]=jr,Lt)}}},K.prototype.on=function(pe,Oe,Xe){if(Xe===void 0)return ce.prototype.on.call(this,pe,Oe);var ft=this._createDelegatedListener(pe,Oe,Xe);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[pe]=this._delegatedListeners[pe]||[],this._delegatedListeners[pe].push(ft);for(var Lt in ft.delegates)this.on(Lt,ft.delegates[Lt]);return this},K.prototype.once=function(pe,Oe,Xe){if(Xe===void 0)return ce.prototype.once.call(this,pe,Oe);var ft=this._createDelegatedListener(pe,Oe,Xe);for(var Lt in ft.delegates)this.once(Lt,ft.delegates[Lt]);return this},K.prototype.off=function(pe,Oe,Xe){var ft=this;if(Xe===void 0)return ce.prototype.off.call(this,pe,Oe);var Lt=function(Ht){for(var qt=Ht[pe],lr=0;lr180;){var Xe=de.locationPoint(ce);if(Xe.x>=0&&Xe.y>=0&&Xe.x<=de.width&&Xe.y<=de.height)break;ce.lng>de.center.lng?ce.lng-=360:ce.lng+=360}return ce}var ch={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 zh(ce,K,de){var ee=ce.classList;for(var pe in ch)ee.remove("mapboxgl-"+de+"-anchor-"+pe);ee.add("mapboxgl-"+de+"-anchor-"+K)}var cc=function(ce){function K(de,ee){if(ce.call(this),(de instanceof s.window.HTMLElement||ee)&&(de=s.extend({element:de},ee)),s.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=de&&de.anchor||"center",this._color=de&&de.color||"#3FB1CE",this._scale=de&&de.scale||1,this._draggable=de&&de.draggable||!1,this._clickTolerance=de&&de.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=de&&de.rotation||0,this._rotationAlignment=de&&de.rotationAlignment||"auto",this._pitchAlignment=de&&de.pitchAlignment&&de.pitchAlignment!=="auto"?de.pitchAlignment:this._rotationAlignment,!de||!de.element){this._defaultMarker=!0,this._element=S.create("div"),this._element.setAttribute("aria-label","Map marker");var pe=S.createNS("http://www.w3.org/2000/svg","svg"),Oe=41,Xe=27;pe.setAttributeNS(null,"display","block"),pe.setAttributeNS(null,"height",Oe+"px"),pe.setAttributeNS(null,"width",Xe+"px"),pe.setAttributeNS(null,"viewBox","0 0 "+Xe+" "+Oe);var ft=S.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"stroke","none"),ft.setAttributeNS(null,"stroke-width","1"),ft.setAttributeNS(null,"fill","none"),ft.setAttributeNS(null,"fill-rule","evenodd");var Lt=S.createNS("http://www.w3.org/2000/svg","g");Lt.setAttributeNS(null,"fill-rule","nonzero");var Ht=S.createNS("http://www.w3.org/2000/svg","g");Ht.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ht.setAttributeNS(null,"fill","#000000");for(var qt=[{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"}],lr=0,or=qt;lr=pe}this._isDragging&&(this._pos=ee.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new s.Event("dragstart"))),this.fire(new s.Event("drag")))},K.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),this._state==="active"&&this.fire(new s.Event("dragend")),this._state="inactive"},K.prototype._addDragHandler=function(ee){this._element.contains(ee.originalEvent.target)&&(ee.preventDefault(),this._positionDelta=ee.point.sub(this._pos).add(this._offset),this._pointerdownPos=ee.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))},K.prototype.setDraggable=function(ee){return this._draggable=!!ee,this._map&&(ee?(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},K.prototype.isDraggable=function(){return this._draggable},K.prototype.setRotation=function(ee){return this._rotation=ee||0,this._update(),this},K.prototype.getRotation=function(){return this._rotation},K.prototype.setRotationAlignment=function(ee){return this._rotationAlignment=ee||"auto",this._update(),this},K.prototype.getRotationAlignment=function(){return this._rotationAlignment},K.prototype.setPitchAlignment=function(ee){return this._pitchAlignment=ee&&ee!=="auto"?ee:this._rotationAlignment,this._update(),this},K.prototype.getPitchAlignment=function(){return this._pitchAlignment},K}(s.Evented),Uv={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Qu;function hh(ce){Qu!==void 0?ce(Qu):s.window.navigator.permissions!==void 0?s.window.navigator.permissions.query({name:"geolocation"}).then(function(K){Qu=K.state!=="denied",ce(Qu)}):(Qu=!!s.window.navigator.geolocation,ce(Qu))}var hc=0,Sf=!1,Qd=function(ce){function K(de){ce.call(this),this.options=s.extend({},Uv,de),s.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.onAdd=function(ee){return this._map=ee,this._container=S.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),hh(this._setupUI),this._container},K.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(s.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(),S.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,hc=0,Sf=!1},K.prototype._isOutOfMapMaxBounds=function(ee){var pe=this._map.getMaxBounds(),Oe=ee.coords;return pe&&(Oe.longitudepe.getEast()||Oe.latitudepe.getNorth())},K.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");break}},K.prototype._onSuccess=function(ee){if(this._map){if(this._isOutOfMapMaxBounds(ee)){this._setErrorState(),this.fire(new s.Event("outofmaxbounds",ee)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=ee,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");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ee),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(ee),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new s.Event("geolocate",ee)),this._finish()}},K.prototype._updateCamera=function(ee){var pe=new s.LngLat(ee.coords.longitude,ee.coords.latitude),Oe=ee.coords.accuracy,Xe=this._map.getBearing(),ft=s.extend({bearing:Xe},this.options.fitBoundsOptions);this._map.fitBounds(pe.toBounds(Oe),ft,{geolocateSource:!0})},K.prototype._updateMarker=function(ee){if(ee){var pe=new s.LngLat(ee.coords.longitude,ee.coords.latitude);this._accuracyCircleMarker.setLngLat(pe).addTo(this._map),this._userLocationDotMarker.setLngLat(pe).addTo(this._map),this._accuracy=ee.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},K.prototype._updateCircleRadius=function(){var ee=this._map._container.clientHeight/2,pe=this._map.unproject([0,ee]),Oe=this._map.unproject([1,ee]),Xe=pe.distanceTo(Oe),ft=Math.ceil(2*this._accuracy/Xe);this._circleElement.style.width=ft+"px",this._circleElement.style.height=ft+"px"},K.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},K.prototype._onError=function(ee){if(this._map){if(this.options.trackUserLocation)if(ee.code===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._geolocateButton.disabled=!0;var pe=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=pe,this._geolocateButton.setAttribute("aria-label",pe),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ee.code===3&&Sf)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new s.Event("error",ee)),this._finish()}},K.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},K.prototype._setupUI=function(ee){var pe=this;if(this._container.addEventListener("contextmenu",function(ft){return ft.preventDefault()}),this._geolocateButton=S.create("button","mapboxgl-ctrl-geolocate",this._container),S.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ee===!1){s.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Oe=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Oe,this._geolocateButton.setAttribute("aria-label",Oe)}else{var Xe=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Xe,this._geolocateButton.setAttribute("aria-label",Xe)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=S.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new cc(this._dotElement),this._circleElement=S.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new cc({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(ft){var Lt=ft.originalEvent&&ft.originalEvent.type==="resize";!ft.geolocateSource&&pe._watchState==="ACTIVE_LOCK"&&!Lt&&(pe._watchState="BACKGROUND",pe._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),pe._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),pe.fire(new s.Event("trackuserlocationend")))})},K.prototype.trigger=function(){if(!this._setup)return s.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 s.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":hc--,Sf=!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 s.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 s.Event("trackuserlocationstart"));break}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");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),hc++;var ee;hc>1?(ee={maximumAge:6e5,timeout:0},Sf=!0):(ee=this.options.positionOptions,Sf=!1),this._geolocationWatchID=s.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ee)}}else s.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},K.prototype._clearWatch=function(){s.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)},K}(s.Evented),Vv={maxWidth:100,unit:"metric"},Mf=function(K){this.options=s.extend({},Vv,K),s.bindAll(["_onMove","setUnit"],this)};Mf.prototype.getDefaultPosition=function(){return"bottom-left"},Mf.prototype._onMove=function(){Hv(this._map,this._container,this.options)},Mf.prototype.onAdd=function(K){return this._map=K,this._container=S.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",K.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Mf.prototype.onRemove=function(){S.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Mf.prototype.setUnit=function(K){this.options.unit=K,Hv(this._map,this._container,this.options)};function Hv(ce,K,de){var ee=de&&de.maxWidth||100,pe=ce._container.clientHeight/2,Oe=ce.unproject([0,pe]),Xe=ce.unproject([ee,pe]),ft=Oe.distanceTo(Xe);if(de&&de.unit==="imperial"){var Lt=3.2808*ft;if(Lt>5280){var Ht=Lt/5280;vc(K,ee,Ht,ce._getUIString("ScaleControl.Miles"))}else vc(K,ee,Lt,ce._getUIString("ScaleControl.Feet"))}else if(de&&de.unit==="nautical"){var qt=ft/1852;vc(K,ee,qt,ce._getUIString("ScaleControl.NauticalMiles"))}else ft>=1e3?vc(K,ee,ft/1e3,ce._getUIString("ScaleControl.Kilometers")):vc(K,ee,ft,ce._getUIString("ScaleControl.Meters"))}function vc(ce,K,de,ee){var pe=qd(de),Oe=pe/de;ce.style.width=K*Oe+"px",ce.innerHTML=pe+" "+ee}function $d(ce){var K=Math.pow(10,Math.ceil(-Math.log(ce)/Math.LN10));return Math.round(ce*K)/K}function qd(ce){var K=Math.pow(10,(""+Math.floor(ce)).length-1),de=ce/K;return de=de>=10?10:de>=5?5:de>=3?3:de>=2?2:de>=1?1:$d(de),K*de}var hl=function(K){this._fullscreen=!1,K&&K.container&&(K.container instanceof s.window.HTMLElement?this._container=K.container:s.warnOnce("Full screen control 'container' must be a DOM element.")),s.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in s.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in s.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in s.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in s.window.document&&(this._fullscreenchange="MSFullscreenChange")};hl.prototype.onAdd=function(K){return this._map=K,this._container||(this._container=this._map.getContainer()),this._controlContainer=S.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",s.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},hl.prototype.onRemove=function(){S.remove(this._controlContainer),this._map=null,s.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},hl.prototype._checkFullscreenSupport=function(){return!!(s.window.document.fullscreenEnabled||s.window.document.mozFullScreenEnabled||s.window.document.msFullscreenEnabled||s.window.document.webkitFullscreenEnabled)},hl.prototype._setupUI=function(){var K=this._fullscreenButton=S.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);S.create("span","mapboxgl-ctrl-icon",K).setAttribute("aria-hidden",!0),K.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),s.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},hl.prototype._updateTitle=function(){var K=this._getTitle();this._fullscreenButton.setAttribute("aria-label",K),this._fullscreenButton.title=K},hl.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},hl.prototype._isFullscreen=function(){return this._fullscreen},hl.prototype._changeIcon=function(){var K=s.window.document.fullscreenElement||s.window.document.mozFullScreenElement||s.window.document.webkitFullscreenElement||s.window.document.msFullscreenElement;K===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},hl.prototype._onClickFullscreen=function(){this._isFullscreen()?s.window.document.exitFullscreen?s.window.document.exitFullscreen():s.window.document.mozCancelFullScreen?s.window.document.mozCancelFullScreen():s.window.document.msExitFullscreen?s.window.document.msExitFullscreen():s.window.document.webkitCancelFullScreen&&s.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 ep={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tp=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),G0=function(ce){function K(de){ce.call(this),this.options=s.extend(Object.create(ep),de),s.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.addTo=function(ee){return this._map&&this.remove(),this._map=ee,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 s.Event("open")),this},K.prototype.isOpen=function(){return!!this._map},K.prototype.remove=function(){return this._content&&S.remove(this._content),this._container&&(S.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 s.Event("close")),this},K.prototype.getLngLat=function(){return this._lngLat},K.prototype.setLngLat=function(ee){return this._lngLat=s.LngLat.convert(ee),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},K.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},K.prototype.getElement=function(){return this._container},K.prototype.setText=function(ee){return this.setDOMContent(s.window.document.createTextNode(ee))},K.prototype.setHTML=function(ee){var pe=s.window.document.createDocumentFragment(),Oe=s.window.document.createElement("body"),Xe;for(Oe.innerHTML=ee;Xe=Oe.firstChild,!!Xe;)pe.appendChild(Xe);return this.setDOMContent(pe)},K.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},K.prototype.setMaxWidth=function(ee){return this.options.maxWidth=ee,this._update(),this},K.prototype.setDOMContent=function(ee){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=S.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ee),this._createCloseButton(),this._update(),this._focusFirstElement(),this},K.prototype.addClassName=function(ee){this._container&&this._container.classList.add(ee)},K.prototype.removeClassName=function(ee){this._container&&this._container.classList.remove(ee)},K.prototype.setOffset=function(ee){return this.options.offset=ee,this._update(),this},K.prototype.toggleClassName=function(ee){if(this._container)return this._container.classList.toggle(ee)},K.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=S.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))},K.prototype._onMouseUp=function(ee){this._update(ee.point)},K.prototype._onMouseMove=function(ee){this._update(ee.point)},K.prototype._onDrag=function(ee){this._update(ee.point)},K.prototype._update=function(ee){var pe=this,Oe=this._lngLat||this._trackPointer;if(!(!this._map||!Oe||!this._content)&&(this._container||(this._container=S.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=S.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(kr){return pe._container.classList.add(kr)}),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=wu(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!ee))){var Xe=this._pos=this._trackPointer&&ee?ee:this._map.project(this._lngLat),ft=this.options.anchor,Lt=rp(this.options.offset);if(!ft){var Ht=this._container.offsetWidth,qt=this._container.offsetHeight,lr;Xe.y+Lt.bottom.ythis._map.transform.height-qt?lr=["bottom"]:lr=[],Xe.xthis._map.transform.width-Ht/2&&lr.push("right"),lr.length===0?ft="bottom":ft=lr.join("-")}var or=Xe.add(Lt[ft]).round();S.setTransform(this._container,ch[ft]+" translate("+or.x+"px,"+or.y+"px)"),zh(this._container,ft,"popup")}},K.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var ee=this._container.querySelector(tp);ee&&ee.focus()}},K.prototype._onClose=function(){this.remove()},K}(s.Evented);function rp(ce){if(ce)if(typeof ce=="number"){var K=Math.round(Math.sqrt(.5*Math.pow(ce,2)));return{center:new s.Point(0,0),top:new s.Point(0,ce),"top-left":new s.Point(K,K),"top-right":new s.Point(-K,K),bottom:new s.Point(0,-ce),"bottom-left":new s.Point(K,-K),"bottom-right":new s.Point(-K,-K),left:new s.Point(ce,0),right:new s.Point(-ce,0)}}else if(ce instanceof s.Point||Array.isArray(ce)){var de=s.Point.convert(ce);return{center:de,top:de,"top-left":de,"top-right":de,bottom:de,"bottom-left":de,"bottom-right":de,left:de,right:de}}else return{center:s.Point.convert(ce.center||[0,0]),top:s.Point.convert(ce.top||[0,0]),"top-left":s.Point.convert(ce["top-left"]||[0,0]),"top-right":s.Point.convert(ce["top-right"]||[0,0]),bottom:s.Point.convert(ce.bottom||[0,0]),"bottom-left":s.Point.convert(ce["bottom-left"]||[0,0]),"bottom-right":s.Point.convert(ce["bottom-right"]||[0,0]),left:s.Point.convert(ce.left||[0,0]),right:s.Point.convert(ce.right||[0,0])};else return rp(new s.Point(0,0))}var oo={version:s.version,supported:L,setRTLTextPlugin:s.setRTLTextPlugin,getRTLTextPluginStatus:s.getRTLTextPluginStatus,Map:Bv,NavigationControl:bu,GeolocateControl:Qd,AttributionControl:Qa,ScaleControl:Mf,FullscreenControl:hl,Popup:G0,Marker:cc,Style:ko,LngLat:s.LngLat,LngLatBounds:s.LngLatBounds,Point:s.Point,MercatorCoordinate:s.MercatorCoordinate,Evented:s.Evented,config:s.config,prewarm:Dt,clearPrewarmedResources:$t,get accessToken(){return s.config.ACCESS_TOKEN},set accessToken(ce){s.config.ACCESS_TOKEN=ce},get baseApiUrl(){return s.config.API_URL},set baseApiUrl(ce){s.config.API_URL=ce},get workerCount(){return dr.workerCount},set workerCount(ce){dr.workerCount=ce},get maxParallelImageRequests(){return s.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(ce){s.config.MAX_PARALLEL_IMAGE_REQUESTS=ce},clearStorage:function(K){s.clearTileCache(K)},workerUrl:""};return oo}),m})},3108:function(G,H,e){G.exports=e(26099)},26099:function(G,H,e){var m=e(64928),P=e(32420),s=e(51160),L=e(76752),S=e(55616),v=e(31264),p=e(47520),r=e(18400),t=e(72512),a=e(76244),n=1073741824;G.exports=function(l,g){g||(g={}),l=p(l,"float64"),g=S(g,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var h=v(g.maxDepth,255),T=v(g.bounds,L(l,2));T[0]===T[2]&&T[2]++,T[1]===T[3]&&T[3]++;var c=f(l,T),i=l.length>>>1,d;g.dtype||(g.dtype="array"),typeof g.dtype=="string"?d=new(t(g.dtype))(i):g.dtype&&(d=g.dtype,Array.isArray(d)&&(d.length=i));for(var x=0;xh||ne>n){for(var X=0;XSe||oe>Ie||Y=se)&&Te!==Re){var Me=w[Fe];Re===void 0&&(Re=Me.length);for(var Ve=Te;Ve=le&&ot<=Z&&Qe>=$&&Qe<=ie&&fe.push(et)}var $e=C[Fe],ht=$e[Te*4+0],vt=$e[Te*4+1],pt=$e[Te*4+2],wt=$e[Te*4+3],Ct=be($e,Te+1),rt=De*.5,ze=Fe+1;ge(xe,_e,rt,ze,ht,vt||pt||wt||Ct),ge(xe,_e+rt,rt,ze,vt,pt||wt||Ct),ge(xe+rt,_e,rt,ze,pt,wt||Ct),ge(xe+rt,_e+rt,rt,ze,wt,Ct)}}}function be(xe,_e){for(var De=null,Fe=0;De===null;)if(De=xe[_e*4+Fe],Fe++,Fe>xe.length)return null;return De}return fe}function O(z,B,W,J,re){for(var ne=[],le=0;le0){t+=Math.abs(v(r[0]));for(var a=1;a2){for(g=0;g=0))throw new Error("precision must be a positive number");var M=Math.pow(10,o||0);return Math.round(A*M)/M}H.round=u;function l(A,o){o===void 0&&(o="kilometers");var M=H.factors[o];if(!M)throw new Error(o+" units is invalid");return A*M}H.radiansToLength=l;function g(A,o){o===void 0&&(o="kilometers");var M=H.factors[o];if(!M)throw new Error(o+" units is invalid");return A/M}H.lengthToRadians=g;function h(A,o){return c(g(A,o))}H.lengthToDegrees=h;function T(A){var o=A%360;return o<0&&(o+=360),o}H.bearingToAzimuth=T;function c(A){var o=A%(2*Math.PI);return o*180/Math.PI}H.radiansToDegrees=c;function i(A){var o=A%360;return o*Math.PI/180}H.degreesToRadians=i;function d(A,o,M){if(o===void 0&&(o="kilometers"),M===void 0&&(M="kilometers"),!(A>=0))throw new Error("length must be a positive number");return l(g(A,o),M)}H.convertLength=d;function x(A,o,M){if(o===void 0&&(o="meters"),M===void 0&&(M="kilometers"),!(A>=0))throw new Error("area must be a positive number");var b=H.areaFactors[o];if(!b)throw new Error("invalid original units");var I=H.areaFactors[M];if(!I)throw new Error("invalid final units");return A/b*I}H.convertArea=x;function w(A){return!isNaN(A)&&A!==null&&!Array.isArray(A)}H.isNumber=w;function C(A){return!!A&&A.constructor===Object}H.isObject=C;function y(A){if(!A)throw new Error("bbox is required");if(!Array.isArray(A))throw new Error("bbox must be an Array");if(A.length!==4&&A.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");A.forEach(function(o){if(!w(o))throw new Error("bbox must only contain numbers")})}H.validateBBox=y;function E(A){if(!A)throw new Error("id is required");if(["string","number"].indexOf(typeof A)===-1)throw new Error("id must be a number or a string")}H.validateId=E},3256:function(G,H,e){Object.defineProperty(H,"__esModule",{value:!0});var m=e(46284);function P(i,d,x){if(i!==null)for(var w,C,y,E,A,o,M,b=0,I=0,D,N=i.type,k=N==="FeatureCollection",O=N==="Feature",F=k?i.features.length:1,z=0;zo||k>M||O>b){A=I,o=w,M=k,b=O,y=0;return}var F=m.lineString([A,I],x.properties);if(d(F,w,C,O,y)===!1)return!1;y++,A=I})===!1)return!1}}})}function l(i,d,x){var w=x,C=!1;return u(i,function(y,E,A,o,M){C===!1&&x===void 0?w=y:w=d(w,y,E,A,o,M),C=!0}),w}function g(i,d){if(!i)throw new Error("geojson is required");n(i,function(x,w,C){if(x.geometry!==null){var y=x.geometry.type,E=x.geometry.coordinates;switch(y){case"LineString":if(d(x,w,C,0,0)===!1)return!1;break;case"Polygon":for(var A=0;AS[0]&&(L[0]=S[0]),L[1]>S[1]&&(L[1]=S[1]),L[2]=0))throw new Error("precision must be a positive number");var M=Math.pow(10,o||0);return Math.round(A*M)/M}H.round=u;function l(A,o){o===void 0&&(o="kilometers");var M=H.factors[o];if(!M)throw new Error(o+" units is invalid");return A*M}H.radiansToLength=l;function g(A,o){o===void 0&&(o="kilometers");var M=H.factors[o];if(!M)throw new Error(o+" units is invalid");return A/M}H.lengthToRadians=g;function h(A,o){return c(g(A,o))}H.lengthToDegrees=h;function T(A){var o=A%360;return o<0&&(o+=360),o}H.bearingToAzimuth=T;function c(A){var o=A%(2*Math.PI);return o*180/Math.PI}H.radiansToDegrees=c;function i(A){var o=A%360;return o*Math.PI/180}H.degreesToRadians=i;function d(A,o,M){if(o===void 0&&(o="kilometers"),M===void 0&&(M="kilometers"),!(A>=0))throw new Error("length must be a positive number");return l(g(A,o),M)}H.convertLength=d;function x(A,o,M){if(o===void 0&&(o="meters"),M===void 0&&(M="kilometers"),!(A>=0))throw new Error("area must be a positive number");var b=H.areaFactors[o];if(!b)throw new Error("invalid original units");var I=H.areaFactors[M];if(!I)throw new Error("invalid final units");return A/b*I}H.convertArea=x;function w(A){return!isNaN(A)&&A!==null&&!Array.isArray(A)}H.isNumber=w;function C(A){return!!A&&A.constructor===Object}H.isObject=C;function y(A){if(!A)throw new Error("bbox is required");if(!Array.isArray(A))throw new Error("bbox must be an Array");if(A.length!==4&&A.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");A.forEach(function(o){if(!w(o))throw new Error("bbox must only contain numbers")})}H.validateBBox=y;function E(A){if(!A)throw new Error("id is required");if(["string","number"].indexOf(typeof A)===-1)throw new Error("id must be a number or a string")}H.validateId=E},84880:function(G,H,e){Object.defineProperty(H,"__esModule",{value:!0});var m=e(76796);function P(i,d,x){if(i!==null)for(var w,C,y,E,A,o,M,b=0,I=0,D,N=i.type,k=N==="FeatureCollection",O=N==="Feature",F=k?i.features.length:1,z=0;zo||k>M||O>b){A=I,o=w,M=k,b=O,y=0;return}var F=m.lineString([A,I],x.properties);if(d(F,w,C,O,y)===!1)return!1;y++,A=I})===!1)return!1}}})}function l(i,d,x){var w=x,C=!1;return u(i,function(y,E,A,o,M){C===!1&&x===void 0?w=y:w=d(w,y,E,A,o,M),C=!0}),w}function g(i,d){if(!i)throw new Error("geojson is required");n(i,function(x,w,C){if(x.geometry!==null){var y=x.geometry.type,E=x.geometry.coordinates;switch(y){case"LineString":if(d(x,w,C,0,0)===!1)return!1;break;case"Polygon":for(var A=0;A=0))throw new Error("precision must be a positive number");var F=Math.pow(10,O||0);return Math.round(k*F)/F}H.round=u;function l(k,O){O===void 0&&(O="kilometers");var F=H.factors[O];if(!F)throw new Error(O+" units is invalid");return k*F}H.radiansToLength=l;function g(k,O){O===void 0&&(O="kilometers");var F=H.factors[O];if(!F)throw new Error(O+" units is invalid");return k/F}H.lengthToRadians=g;function h(k,O){return c(g(k,O))}H.lengthToDegrees=h;function T(k){var O=k%360;return O<0&&(O+=360),O}H.bearingToAzimuth=T;function c(k){var O=k%(2*Math.PI);return O*180/Math.PI}H.radiansToDegrees=c;function i(k){var O=k%360;return O*Math.PI/180}H.degreesToRadians=i;function d(k,O,F){if(O===void 0&&(O="kilometers"),F===void 0&&(F="kilometers"),!(k>=0))throw new Error("length must be a positive number");return l(g(k,O),F)}H.convertLength=d;function x(k,O,F){if(O===void 0&&(O="meters"),F===void 0&&(F="kilometers"),!(k>=0))throw new Error("area must be a positive number");var z=H.areaFactors[O];if(!z)throw new Error("invalid original units");var B=H.areaFactors[F];if(!B)throw new Error("invalid final units");return k/z*B}H.convertArea=x;function w(k){return!isNaN(k)&&k!==null&&!Array.isArray(k)&&!/^\s*$/.test(k)}H.isNumber=w;function C(k){return!!k&&k.constructor===Object}H.isObject=C;function y(k){if(!k)throw new Error("bbox is required");if(!Array.isArray(k))throw new Error("bbox must be an Array");if(k.length!==4&&k.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");k.forEach(function(O){if(!w(O))throw new Error("bbox must only contain numbers")})}H.validateBBox=y;function E(k){if(!k)throw new Error("id is required");if(["string","number"].indexOf(typeof k)===-1)throw new Error("id must be a number or a string")}H.validateId=E;function A(){throw new Error("method has been renamed to `radiansToDegrees`")}H.radians2degrees=A;function o(){throw new Error("method has been renamed to `degreesToRadians`")}H.degrees2radians=o;function M(){throw new Error("method has been renamed to `lengthToDegrees`")}H.distanceToDegrees=M;function b(){throw new Error("method has been renamed to `lengthToRadians`")}H.distanceToRadians=b;function I(){throw new Error("method has been renamed to `radiansToLength`")}H.radiansToDistance=I;function D(){throw new Error("method has been renamed to `bearingToAzimuth`")}H.bearingToAngle=D;function N(){throw new Error("method has been renamed to `convertLength`")}H.convertDistance=N},43752:function(G,H,e){Object.defineProperty(H,"__esModule",{value:!0});var m=e(49840);function P(i,d,x){if(i!==null)for(var w,C,y,E,A,o,M,b=0,I=0,D,N=i.type,k=N==="FeatureCollection",O=N==="Feature",F=k?i.features.length:1,z=0;zo||k>M||O>b){A=I,o=w,M=k,b=O,y=0;return}var F=m.lineString([A,I],x.properties);if(d(F,w,C,O,y)===!1)return!1;y++,A=I})===!1)return!1}}})}function l(i,d,x){var w=x,C=!1;return u(i,function(y,E,A,o,M){C===!1&&x===void 0?w=y:w=d(w,y,E,A,o,M),C=!0}),w}function g(i,d){if(!i)throw new Error("geojson is required");n(i,function(x,w,C){if(x.geometry!==null){var y=x.geometry.type,E=x.geometry.coordinates;switch(y){case"LineString":if(d(x,w,C,0,0)===!1)return!1;break;case"Polygon":for(var A=0;AL&&(L=e[v]),e[v]>16,ft>>16],u_pixel_coord_lower:[Xe&65535,ft&65535]}}function Vs(ce,K,de,ee){var pe=de.imageManager.getPattern(ce.from.toString()),Oe=de.imageManager.getPattern(ce.to.toString()),Xe=de.imageManager.getPixelSize(),ft=Xe.width,Lt=Xe.height,Ht=Math.pow(2,ee.tileID.overscaledZ),qt=ee.tileSize*Math.pow(2,de.transform.tileZoom)/Ht,lr=qt*(ee.tileID.canonical.x+ee.tileID.wrap*Ht),or=qt*ee.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:pe.tl,u_pattern_br_a:pe.br,u_pattern_tl_b:Oe.tl,u_pattern_br_b:Oe.br,u_texsize:[ft,Lt],u_mix:K.t,u_pattern_size_a:pe.displaySize,u_pattern_size_b:Oe.displaySize,u_scale_a:K.fromScale,u_scale_b:K.toScale,u_tile_units_to_pixels:1/vn(ee,1,de.transform.tileZoom),u_pixel_coord_upper:[lr>>16,or>>16],u_pixel_coord_lower:[lr&65535,or&65535]}}var Hu=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_lightpos:new s.Uniform3f(ce,K.u_lightpos),u_lightintensity:new s.Uniform1f(ce,K.u_lightintensity),u_lightcolor:new s.Uniform3f(ce,K.u_lightcolor),u_vertical_gradient:new s.Uniform1f(ce,K.u_vertical_gradient),u_opacity:new s.Uniform1f(ce,K.u_opacity)}},ki=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_lightpos:new s.Uniform3f(ce,K.u_lightpos),u_lightintensity:new s.Uniform1f(ce,K.u_lightintensity),u_lightcolor:new s.Uniform3f(ce,K.u_lightcolor),u_vertical_gradient:new s.Uniform1f(ce,K.u_vertical_gradient),u_height_factor:new s.Uniform1f(ce,K.u_height_factor),u_image:new s.Uniform1i(ce,K.u_image),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_pixel_coord_upper:new s.Uniform2f(ce,K.u_pixel_coord_upper),u_pixel_coord_lower:new s.Uniform2f(ce,K.u_pixel_coord_lower),u_scale:new s.Uniform3f(ce,K.u_scale),u_fade:new s.Uniform1f(ce,K.u_fade),u_opacity:new s.Uniform1f(ce,K.u_opacity)}},iu=function(ce,K,de,ee){var pe=K.style.light,Oe=pe.properties.get("position"),Xe=[Oe.x,Oe.y,Oe.z],ft=s.create$1();pe.properties.get("anchor")==="viewport"&&s.fromRotation(ft,-K.transform.angle),s.transformMat3(Xe,Xe,ft);var Lt=pe.properties.get("color");return{u_matrix:ce,u_lightpos:Xe,u_lightintensity:pe.properties.get("intensity"),u_lightcolor:[Lt.r,Lt.g,Lt.b],u_vertical_gradient:+de,u_opacity:ee}},Qo=function(ce,K,de,ee,pe,Oe,Xe){return s.extend(iu(ce,K,de,ee),ol(Oe,K,Xe),{u_height_factor:-Math.pow(2,pe.overscaledZ)/Xe.tileSize/8})},Es=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix)}},sl=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_image:new s.Uniform1i(ce,K.u_image),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_pixel_coord_upper:new s.Uniform2f(ce,K.u_pixel_coord_upper),u_pixel_coord_lower:new s.Uniform2f(ce,K.u_pixel_coord_lower),u_scale:new s.Uniform3f(ce,K.u_scale),u_fade:new s.Uniform1f(ce,K.u_fade)}},Hs=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_world:new s.Uniform2f(ce,K.u_world)}},$o=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_world:new s.Uniform2f(ce,K.u_world),u_image:new s.Uniform1i(ce,K.u_image),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_pixel_coord_upper:new s.Uniform2f(ce,K.u_pixel_coord_upper),u_pixel_coord_lower:new s.Uniform2f(ce,K.u_pixel_coord_lower),u_scale:new s.Uniform3f(ce,K.u_scale),u_fade:new s.Uniform1f(ce,K.u_fade)}},Cs=function(ce){return{u_matrix:ce}},qo=function(ce,K,de,ee){return s.extend(Cs(ce),ol(de,K,ee))},Vo=function(ce,K){return{u_matrix:ce,u_world:K}},ou=function(ce,K,de,ee,pe){return s.extend(qo(ce,K,de,ee),{u_world:pe})},rh=function(ce,K){return{u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_scale_with_map:new s.Uniform1i(ce,K.u_scale_with_map),u_pitch_with_map:new s.Uniform1i(ce,K.u_pitch_with_map),u_extrude_scale:new s.Uniform2f(ce,K.u_extrude_scale),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix)}},nh=function(ce,K,de,ee){var pe=ce.transform,Oe,Xe;if(ee.paint.get("circle-pitch-alignment")==="map"){var ft=vn(de,1,pe.zoom);Oe=!0,Xe=[ft,ft]}else Oe=!1,Xe=pe.pixelsToGLUnits;return{u_camera_to_center_distance:pe.cameraToCenterDistance,u_scale_with_map:+(ee.paint.get("circle-pitch-scale")==="map"),u_matrix:ce.translatePosMatrix(K.posMatrix,de,ee.paint.get("circle-translate"),ee.paint.get("circle-translate-anchor")),u_pitch_with_map:+Oe,u_device_pixel_ratio:s.browser.devicePixelRatio,u_extrude_scale:Xe}},ah=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_pixels_to_tile_units:new s.Uniform1f(ce,K.u_pixels_to_tile_units),u_extrude_scale:new s.Uniform2f(ce,K.u_extrude_scale),u_overscale_factor:new s.Uniform1f(ce,K.u_overscale_factor)}},ih=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_inv_matrix:new s.UniformMatrix4f(ce,K.u_inv_matrix),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_viewport_size:new s.Uniform2f(ce,K.u_viewport_size)}},gf=function(ce,K,de){var ee=vn(de,1,K.zoom),pe=Math.pow(2,K.zoom-de.tileID.overscaledZ),Oe=de.tileID.overscaleFactor();return{u_matrix:ce,u_camera_to_center_distance:K.cameraToCenterDistance,u_pixels_to_tile_units:ee,u_extrude_scale:[K.pixelsToGLUnits[0]/(ee*pe),K.pixelsToGLUnits[1]/(ee*pe)],u_overscale_factor:Oe}},$f=function(ce,K,de){return{u_matrix:ce,u_inv_matrix:K,u_camera_to_center_distance:de.cameraToCenterDistance,u_viewport_size:[de.width,de.height]}},zl=function(ce,K){return{u_color:new s.UniformColor(ce,K.u_color),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_overlay:new s.Uniform1i(ce,K.u_overlay),u_overlay_scale:new s.Uniform1f(ce,K.u_overlay_scale)}},Qi=function(ce,K,de){return de===void 0&&(de=1),{u_matrix:ce,u_color:K,u_overlay:0,u_overlay_scale:de}},Oo=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix)}},Ol=function(ce){return{u_matrix:ce}},qf=function(ce,K){return{u_extrude_scale:new s.Uniform1f(ce,K.u_extrude_scale),u_intensity:new s.Uniform1f(ce,K.u_intensity),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix)}},su=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_world:new s.Uniform2f(ce,K.u_world),u_image:new s.Uniform1i(ce,K.u_image),u_color_ramp:new s.Uniform1i(ce,K.u_color_ramp),u_opacity:new s.Uniform1f(ce,K.u_opacity)}},Ls=function(ce,K,de,ee){return{u_matrix:ce,u_extrude_scale:vn(K,1,de),u_intensity:ee}},oh=function(ce,K,de,ee){var pe=s.create();s.ortho(pe,0,ce.width,ce.height,0,0,1);var Oe=ce.context.gl;return{u_matrix:pe,u_world:[Oe.drawingBufferWidth,Oe.drawingBufferHeight],u_image:de,u_color_ramp:ee,u_opacity:K.paint.get("heatmap-opacity")}},ec=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_image:new s.Uniform1i(ce,K.u_image),u_latrange:new s.Uniform2f(ce,K.u_latrange),u_light:new s.Uniform2f(ce,K.u_light),u_shadow:new s.UniformColor(ce,K.u_shadow),u_highlight:new s.UniformColor(ce,K.u_highlight),u_accent:new s.UniformColor(ce,K.u_accent)}},tc=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_image:new s.Uniform1i(ce,K.u_image),u_dimension:new s.Uniform2f(ce,K.u_dimension),u_zoom:new s.Uniform1f(ce,K.u_zoom),u_unpack:new s.Uniform4f(ce,K.u_unpack)}},yf=function(ce,K,de){var ee=de.paint.get("hillshade-shadow-color"),pe=de.paint.get("hillshade-highlight-color"),Oe=de.paint.get("hillshade-accent-color"),Xe=de.paint.get("hillshade-illumination-direction")*(Math.PI/180);de.paint.get("hillshade-illumination-anchor")==="viewport"&&(Xe-=ce.transform.angle);var ft=!ce.options.moving;return{u_matrix:ce.transform.calculatePosMatrix(K.tileID.toUnwrapped(),ft),u_image:0,u_latrange:wo(ce,K.tileID),u_light:[de.paint.get("hillshade-exaggeration"),Xe],u_shadow:ee,u_highlight:pe,u_accent:Oe}},rc=function(ce,K){var de=K.stride,ee=s.create();return s.ortho(ee,0,s.EXTENT,-s.EXTENT,0,0,1),s.translate(ee,ee,[0,-s.EXTENT,0]),{u_matrix:ee,u_image:1,u_dimension:[de,de],u_zoom:ce.overscaledZ,u_unpack:K.getUnpackVector()}};function wo(ce,K){var de=Math.pow(2,K.canonical.z),ee=K.canonical.y;return[new s.MercatorCoordinate(0,ee/de).toLngLat().lat,new s.MercatorCoordinate(0,(ee+1)/de).toLngLat().lat]}var es=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_ratio:new s.Uniform1f(ce,K.u_ratio),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_units_to_pixels:new s.Uniform2f(ce,K.u_units_to_pixels)}},Gs=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_ratio:new s.Uniform1f(ce,K.u_ratio),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_units_to_pixels:new s.Uniform2f(ce,K.u_units_to_pixels),u_image:new s.Uniform1i(ce,K.u_image),u_image_height:new s.Uniform1f(ce,K.u_image_height)}},Fl=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_ratio:new s.Uniform1f(ce,K.u_ratio),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_image:new s.Uniform1i(ce,K.u_image),u_units_to_pixels:new s.Uniform2f(ce,K.u_units_to_pixels),u_scale:new s.Uniform3f(ce,K.u_scale),u_fade:new s.Uniform1f(ce,K.u_fade)}},Gu=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_ratio:new s.Uniform1f(ce,K.u_ratio),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_units_to_pixels:new s.Uniform2f(ce,K.u_units_to_pixels),u_patternscale_a:new s.Uniform2f(ce,K.u_patternscale_a),u_patternscale_b:new s.Uniform2f(ce,K.u_patternscale_b),u_sdfgamma:new s.Uniform1f(ce,K.u_sdfgamma),u_image:new s.Uniform1i(ce,K.u_image),u_tex_y_a:new s.Uniform1f(ce,K.u_tex_y_a),u_tex_y_b:new s.Uniform1f(ce,K.u_tex_y_b),u_mix:new s.Uniform1f(ce,K.u_mix)}},ll=function(ce,K,de){var ee=ce.transform;return{u_matrix:Ws(ce,K,de),u_ratio:1/vn(K,1,ee.zoom),u_device_pixel_ratio:s.browser.devicePixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},ul=function(ce,K,de,ee){return s.extend(ll(ce,K,de),{u_image:0,u_image_height:ee})},nc=function(ce,K,de,ee){var pe=ce.transform,Oe=Nl(K,pe);return{u_matrix:Ws(ce,K,de),u_texsize:K.imageAtlasTexture.size,u_ratio:1/vn(K,1,pe.zoom),u_device_pixel_ratio:s.browser.devicePixelRatio,u_image:0,u_scale:[Oe,ee.fromScale,ee.toScale],u_fade:ee.t,u_units_to_pixels:[1/pe.pixelsToGLUnits[0],1/pe.pixelsToGLUnits[1]]}},Ps=function(ce,K,de,ee,pe){var Oe=ce.transform,Xe=ce.lineAtlas,ft=Nl(K,Oe),Lt=de.layout.get("line-cap")==="round",Ht=Xe.getDash(ee.from,Lt),qt=Xe.getDash(ee.to,Lt),lr=Ht.width*pe.fromScale,or=qt.width*pe.toScale;return s.extend(ll(ce,K,de),{u_patternscale_a:[ft/lr,-Ht.height/2],u_patternscale_b:[ft/or,-qt.height/2],u_sdfgamma:Xe.width/(Math.min(lr,or)*256*s.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Ht.y,u_tex_y_b:qt.y,u_mix:pe.t})};function Nl(ce,K){return 1/vn(ce,1,K.tileZoom)}function Ws(ce,K,de){return ce.translatePosMatrix(K.tileID.posMatrix,K,de.paint.get("line-translate"),de.paint.get("line-translate-anchor"))}var _s=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_tl_parent:new s.Uniform2f(ce,K.u_tl_parent),u_scale_parent:new s.Uniform1f(ce,K.u_scale_parent),u_buffer_scale:new s.Uniform1f(ce,K.u_buffer_scale),u_fade_t:new s.Uniform1f(ce,K.u_fade_t),u_opacity:new s.Uniform1f(ce,K.u_opacity),u_image0:new s.Uniform1i(ce,K.u_image0),u_image1:new s.Uniform1i(ce,K.u_image1),u_brightness_low:new s.Uniform1f(ce,K.u_brightness_low),u_brightness_high:new s.Uniform1f(ce,K.u_brightness_high),u_saturation_factor:new s.Uniform1f(ce,K.u_saturation_factor),u_contrast_factor:new s.Uniform1f(ce,K.u_contrast_factor),u_spin_weights:new s.Uniform3f(ce,K.u_spin_weights)}},lu=function(ce,K,de,ee,pe){return{u_matrix:ce,u_tl_parent:K,u_scale_parent:de,u_buffer_scale:1,u_fade_t:ee.mix,u_opacity:ee.opacity*pe.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:pe.paint.get("raster-brightness-min"),u_brightness_high:pe.paint.get("raster-brightness-max"),u_saturation_factor:Ul(pe.paint.get("raster-saturation")),u_contrast_factor:vi(pe.paint.get("raster-contrast")),u_spin_weights:Bl(pe.paint.get("raster-hue-rotate"))}};function Bl(ce){ce*=Math.PI/180;var K=Math.sin(ce),de=Math.cos(ce);return[(2*de+1)/3,(-Math.sqrt(3)*K-de+1)/3,(Math.sqrt(3)*K-de+1)/3]}function vi(ce){return ce>0?1/(1-ce):1+ce}function Ul(ce){return ce>0?1-1/(1.001-ce):-ce}var Wu=function(ce,K){return{u_is_size_zoom_constant:new s.Uniform1i(ce,K.u_is_size_zoom_constant),u_is_size_feature_constant:new s.Uniform1i(ce,K.u_is_size_feature_constant),u_size_t:new s.Uniform1f(ce,K.u_size_t),u_size:new s.Uniform1f(ce,K.u_size),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_pitch:new s.Uniform1f(ce,K.u_pitch),u_rotate_symbol:new s.Uniform1i(ce,K.u_rotate_symbol),u_aspect_ratio:new s.Uniform1f(ce,K.u_aspect_ratio),u_fade_change:new s.Uniform1f(ce,K.u_fade_change),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_label_plane_matrix:new s.UniformMatrix4f(ce,K.u_label_plane_matrix),u_coord_matrix:new s.UniformMatrix4f(ce,K.u_coord_matrix),u_is_text:new s.Uniform1i(ce,K.u_is_text),u_pitch_with_map:new s.Uniform1i(ce,K.u_pitch_with_map),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_texture:new s.Uniform1i(ce,K.u_texture)}},ac=function(ce,K){return{u_is_size_zoom_constant:new s.Uniform1i(ce,K.u_is_size_zoom_constant),u_is_size_feature_constant:new s.Uniform1i(ce,K.u_is_size_feature_constant),u_size_t:new s.Uniform1f(ce,K.u_size_t),u_size:new s.Uniform1f(ce,K.u_size),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_pitch:new s.Uniform1f(ce,K.u_pitch),u_rotate_symbol:new s.Uniform1i(ce,K.u_rotate_symbol),u_aspect_ratio:new s.Uniform1f(ce,K.u_aspect_ratio),u_fade_change:new s.Uniform1f(ce,K.u_fade_change),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_label_plane_matrix:new s.UniformMatrix4f(ce,K.u_label_plane_matrix),u_coord_matrix:new s.UniformMatrix4f(ce,K.u_coord_matrix),u_is_text:new s.Uniform1i(ce,K.u_is_text),u_pitch_with_map:new s.Uniform1i(ce,K.u_pitch_with_map),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_texture:new s.Uniform1i(ce,K.u_texture),u_gamma_scale:new s.Uniform1f(ce,K.u_gamma_scale),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_is_halo:new s.Uniform1i(ce,K.u_is_halo)}},Vl=function(ce,K){return{u_is_size_zoom_constant:new s.Uniform1i(ce,K.u_is_size_zoom_constant),u_is_size_feature_constant:new s.Uniform1i(ce,K.u_is_size_feature_constant),u_size_t:new s.Uniform1f(ce,K.u_size_t),u_size:new s.Uniform1f(ce,K.u_size),u_camera_to_center_distance:new s.Uniform1f(ce,K.u_camera_to_center_distance),u_pitch:new s.Uniform1f(ce,K.u_pitch),u_rotate_symbol:new s.Uniform1i(ce,K.u_rotate_symbol),u_aspect_ratio:new s.Uniform1f(ce,K.u_aspect_ratio),u_fade_change:new s.Uniform1f(ce,K.u_fade_change),u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_label_plane_matrix:new s.UniformMatrix4f(ce,K.u_label_plane_matrix),u_coord_matrix:new s.UniformMatrix4f(ce,K.u_coord_matrix),u_is_text:new s.Uniform1i(ce,K.u_is_text),u_pitch_with_map:new s.Uniform1i(ce,K.u_pitch_with_map),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_texsize_icon:new s.Uniform2f(ce,K.u_texsize_icon),u_texture:new s.Uniform1i(ce,K.u_texture),u_texture_icon:new s.Uniform1i(ce,K.u_texture_icon),u_gamma_scale:new s.Uniform1f(ce,K.u_gamma_scale),u_device_pixel_ratio:new s.Uniform1f(ce,K.u_device_pixel_ratio),u_is_halo:new s.Uniform1i(ce,K.u_is_halo)}},uu=function(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht){var qt=pe.transform;return{u_is_size_zoom_constant:+(ce==="constant"||ce==="source"),u_is_size_feature_constant:+(ce==="constant"||ce==="camera"),u_size_t:K?K.uSizeT:0,u_size:K?K.uSize:0,u_camera_to_center_distance:qt.cameraToCenterDistance,u_pitch:qt.pitch/360*2*Math.PI,u_rotate_symbol:+de,u_aspect_ratio:qt.width/qt.height,u_fade_change:pe.options.fadeDuration?pe.symbolFadeChange:1,u_matrix:Oe,u_label_plane_matrix:Xe,u_coord_matrix:ft,u_is_text:+Lt,u_pitch_with_map:+ee,u_texsize:Ht,u_texture:0}},Yu=function(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht,qt){var lr=pe.transform;return s.extend(uu(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht),{u_gamma_scale:ee?Math.cos(lr._pitch)*lr.cameraToCenterDistance:1,u_device_pixel_ratio:s.browser.devicePixelRatio,u_is_halo:+qt})},mf=function(ce,K,de,ee,pe,Oe,Xe,ft,Lt,Ht){return s.extend(Yu(ce,K,de,ee,pe,Oe,Xe,ft,!0,Lt,!0),{u_texsize_icon:Ht,u_texture_icon:1})},fu=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_opacity:new s.Uniform1f(ce,K.u_opacity),u_color:new s.UniformColor(ce,K.u_color)}},cu=function(ce,K){return{u_matrix:new s.UniformMatrix4f(ce,K.u_matrix),u_opacity:new s.Uniform1f(ce,K.u_opacity),u_image:new s.Uniform1i(ce,K.u_image),u_pattern_tl_a:new s.Uniform2f(ce,K.u_pattern_tl_a),u_pattern_br_a:new s.Uniform2f(ce,K.u_pattern_br_a),u_pattern_tl_b:new s.Uniform2f(ce,K.u_pattern_tl_b),u_pattern_br_b:new s.Uniform2f(ce,K.u_pattern_br_b),u_texsize:new s.Uniform2f(ce,K.u_texsize),u_mix:new s.Uniform1f(ce,K.u_mix),u_pattern_size_a:new s.Uniform2f(ce,K.u_pattern_size_a),u_pattern_size_b:new s.Uniform2f(ce,K.u_pattern_size_b),u_scale_a:new s.Uniform1f(ce,K.u_scale_a),u_scale_b:new s.Uniform1f(ce,K.u_scale_b),u_pixel_coord_upper:new s.Uniform2f(ce,K.u_pixel_coord_upper),u_pixel_coord_lower:new s.Uniform2f(ce,K.u_pixel_coord_lower),u_tile_units_to_pixels:new s.Uniform1f(ce,K.u_tile_units_to_pixels)}},Ys=function(ce,K,de){return{u_matrix:ce,u_opacity:K,u_color:de}},hu=function(ce,K,de,ee,pe,Oe){return s.extend(Vs(ee,Oe,de,pe),{u_matrix:ce,u_opacity:K})},js={fillExtrusion:Hu,fillExtrusionPattern:ki,fill:Es,fillPattern:sl,fillOutline:Hs,fillOutlinePattern:$o,circle:rh,collisionBox:ah,collisionCircle:ih,debug:zl,clippingMask:Oo,heatmap:qf,heatmapTexture:su,hillshade:ec,hillshadePrepare:tc,line:es,lineGradient:Gs,linePattern:Fl,lineSDF:Gu,raster:_s,symbolIcon:Wu,symbolSDF:ac,symbolTextAndIcon:Vl,background:fu,backgroundPattern:cu},Gi;function ds(ce,K,de,ee,pe,Oe,Xe){for(var ft=ce.context,Lt=ft.gl,Ht=ce.useProgram("collisionBox"),qt=[],lr=0,or=0,kr=0;kr0){var Bn=s.create(),Xn=Qr;s.mul(Bn,Wr.placementInvProjMatrix,ce.transform.glCoordMatrix),s.mul(Bn,Bn,Wr.placementViewportMatrix),qt.push({circleArray:In,circleOffset:or,transform:Xn,invTransform:Bn}),lr+=In.length/4,or=lr}dn&&Ht.draw(ft,Lt.LINES,gr.disabled,Qt.disabled,ce.colorModeForRenderPass(),Et.disabled,gf(Qr,ce.transform,jr),de.id,dn.layoutVertexBuffer,dn.indexBuffer,dn.segments,null,ce.transform.zoom,null,null,dn.collisionVertexBuffer)}}if(!(!Xe||!qt.length)){var Zn=ce.useProgram("collisionCircle"),Yn=new s.StructArrayLayout2f1f2i16;Yn.resize(lr*4),Yn._trim();for(var Jn=0,na=0,ua=qt;na=0&&(Xr[Wr.associatedIconIndex]={shiftedAnchor:Fa,angle:qa})}}if(qt){kr.clear();for(var Ma=ce.icon.placedSymbolArray,Za=0;Za0){var Xe=s.browser.now(),ft=(Xe-ce.timeAdded)/Oe,Lt=K?(Xe-K.timeAdded)/Oe:-1,Ht=de.getSource(),qt=pe.coveringZoomLevel({tileSize:Ht.tileSize,roundZoom:Ht.roundZoom}),lr=!K||Math.abs(K.tileID.overscaledZ-qt)>Math.abs(ce.tileID.overscaledZ-qt),or=lr&&ce.refreshedUponExpiration?1:s.clamp(lr?ft:1-Lt,0,1);return ce.refreshedUponExpiration&&ft>=1&&(ce.refreshedUponExpiration=!1),K?{opacity:1,mix:1-or}:{opacity:or,mix:0}}else return{opacity:1,mix:0}}function cl(ce,K,de){var ee=de.paint.get("background-color"),pe=de.paint.get("background-opacity");if(pe!==0){var Oe=ce.context,Xe=Oe.gl,ft=ce.transform,Lt=ft.tileSize,Ht=de.paint.get("background-pattern");if(!ce.isPatternMissing(Ht)){var qt=!Ht&&ee.a===1&&pe===1&&ce.opaquePassEnabledForLayer()?"opaque":"translucent";if(ce.renderPass===qt){var lr=Qt.disabled,or=ce.depthModeForSublayer(0,qt==="opaque"?gr.ReadWrite:gr.ReadOnly),kr=ce.colorModeForRenderPass(),Xr=ce.useProgram(Ht?"backgroundPattern":"background"),jr=ft.coveringTiles({tileSize:Lt});Ht&&(Oe.activeTexture.set(Xe.TEXTURE0),ce.imageManager.bind(ce.context));for(var Wr=de.getCrossfadeParameters(),Qr=0,dn=jr;Qr "+de.overscaledZ);var Qr=Wr+" "+kr+"kb";ar(ce,Qr),Xe.draw(ee,pe.TRIANGLES,ft,Lt,at.alphaBlended,Et.disabled,Qi(Oe,s.Color.transparent,jr),qt,ce.debugBuffer,ce.quadTriangleIndexBuffer,ce.debugSegments)}function ar(ce,K){ce.initDebugOverlayCanvas();var de=ce.debugOverlayCanvas,ee=ce.context.gl,pe=ce.debugOverlayCanvas.getContext("2d");pe.clearRect(0,0,de.width,de.height),pe.shadowColor="white",pe.shadowBlur=2,pe.lineWidth=1.5,pe.strokeStyle="white",pe.textBaseline="top",pe.font="bold 36px Open Sans, sans-serif",pe.fillText(K,5,5),pe.strokeText(K,5,5),ce.debugOverlayTexture.update(de),ce.debugOverlayTexture.bind(ee.LINEAR,ee.CLAMP_TO_EDGE)}function Sr(ce,K,de){var ee=ce.context,pe=de.implementation;if(ce.renderPass==="offscreen"){var Oe=pe.prerender;Oe&&(ce.setCustomLayerDefaults(),ee.setColorMode(ce.colorModeForRenderPass()),Oe.call(pe,ee.gl,ce.transform.customLayerMatrix()),ee.setDirty(),ce.setBaseState())}else if(ce.renderPass==="translucent"){ce.setCustomLayerDefaults(),ee.setColorMode(ce.colorModeForRenderPass()),ee.setStencilMode(Qt.disabled);var Xe=pe.renderingMode==="3d"?new gr(ce.context.gl.LEQUAL,gr.ReadWrite,ce.depthRangeFor3D):ce.depthModeForSublayer(0,gr.ReadOnly);ee.setDepthMode(Xe),pe.render(ee.gl,ce.transform.customLayerMatrix()),ee.setDirty(),ce.setBaseState(),ee.bindFramebuffer.set(null)}}var Ir={symbol:ju,circle:oc,heatmap:Xs,line:Xu,fill:Rs,"fill-extrusion":bf,hillshade:yu,raster:mu,background:cl,debug:pr,custom:Sr},Ur=function(K,de){this.context=new Vt(K),this.transform=de,this._tileTextures={},this.setup(),this.numSublayers=Bt.maxUnderzooming+Bt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new sa,this.gpuTimers={}};Ur.prototype.resize=function(K,de){if(this.width=K*s.browser.devicePixelRatio,this.height=de*s.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var ee=0,pe=this.style._order;ee256&&this.clearStencil(),ee.setColorMode(at.disabled),ee.setDepthMode(gr.disabled);var Oe=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var Xe=0,ft=de;Xe256&&this.clearStencil();var K=this.nextStencilID++,de=this.context.gl;return new Qt({func:de.NOTEQUAL,mask:255},K,255,de.KEEP,de.KEEP,de.REPLACE)},Ur.prototype.stencilModeForClipping=function(K){var de=this.context.gl;return new Qt({func:de.EQUAL,mask:255},this._tileClippingMaskIDs[K.key],0,de.KEEP,de.KEEP,de.REPLACE)},Ur.prototype.stencilConfigForOverlap=function(K){var de,ee=this.context.gl,pe=K.sort(function(Ht,qt){return qt.overscaledZ-Ht.overscaledZ}),Oe=pe[pe.length-1].overscaledZ,Xe=pe[0].overscaledZ-Oe+1;if(Xe>1){this.currentStencilSource=void 0,this.nextStencilID+Xe>256&&this.clearStencil();for(var ft={},Lt=0;Lt=0;this.currentLayer--){var Bn=this.style._layers[pe[this.currentLayer]],Xn=Oe[Bn.source],Zn=Lt[Bn.source];this._renderTileClippingMasks(Bn,Zn),this.renderLayer(this,Xn,Bn,Zn)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?de.pop():null},Ur.prototype.isPatternMissing=function(K){if(!K)return!1;if(!K.from||!K.to)return!0;var de=this.imageManager.getPattern(K.from.toString()),ee=this.imageManager.getPattern(K.to.toString());return!de||!ee},Ur.prototype.useProgram=function(K,de){this.cache=this.cache||{};var ee=""+K+(de?de.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ee]||(this.cache[ee]=new pf(this.context,K,Jf[K],de,js[K],this._showOverdrawInspector)),this.cache[ee]},Ur.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()},Ur.prototype.setBaseState=function(){var K=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(K.FUNC_ADD)},Ur.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=s.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var K=this.context.gl;this.debugOverlayTexture=new s.Texture(this.context,this.debugOverlayCanvas,K.RGBA)}},Ur.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var on=function(K,de){this.points=K,this.planes=de};on.fromInvProjectionMatrix=function(K,de,ee){var pe=[[-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]],Oe=Math.pow(2,ee),Xe=pe.map(function(Ht){return s.transformMat4([],Ht,K)}).map(function(Ht){return s.scale$1([],Ht,1/Ht[3]/de*Oe)}),ft=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Lt=ft.map(function(Ht){var qt=s.sub([],Xe[Ht[0]],Xe[Ht[1]]),lr=s.sub([],Xe[Ht[2]],Xe[Ht[1]]),or=s.normalize([],s.cross([],qt,lr)),kr=-s.dot(or,Xe[Ht[1]]);return or.concat(kr)});return new on(Xe,Lt)};var xn=function(K,de){this.min=K,this.max=de,this.center=s.scale$2([],s.add([],this.min,this.max),.5)};xn.prototype.quadrant=function(K){for(var de=[K%2===0,K<2],ee=s.clone$2(this.min),pe=s.clone$2(this.max),Oe=0;Oe=0;if(Xe===0)return 0;Xe!==de.length&&(ee=!1)}if(ee)return 2;for(var Lt=0;Lt<3;Lt++){for(var Ht=Number.MAX_VALUE,qt=-Number.MAX_VALUE,lr=0;lrthis.max[Lt]-this.min[Lt])return 0}return 1};var _n=function(K,de,ee,pe){if(K===void 0&&(K=0),de===void 0&&(de=0),ee===void 0&&(ee=0),pe===void 0&&(pe=0),isNaN(K)||K<0||isNaN(de)||de<0||isNaN(ee)||ee<0||isNaN(pe)||pe<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=K,this.bottom=de,this.left=ee,this.right=pe};_n.prototype.interpolate=function(K,de,ee){return de.top!=null&&K.top!=null&&(this.top=s.number(K.top,de.top,ee)),de.bottom!=null&&K.bottom!=null&&(this.bottom=s.number(K.bottom,de.bottom,ee)),de.left!=null&&K.left!=null&&(this.left=s.number(K.left,de.left,ee)),de.right!=null&&K.right!=null&&(this.right=s.number(K.right,de.right,ee)),this},_n.prototype.getCenter=function(K,de){var ee=s.clamp((this.left+K-this.right)/2,0,K),pe=s.clamp((this.top+de-this.bottom)/2,0,de);return new s.Point(ee,pe)},_n.prototype.equals=function(K){return this.top===K.top&&this.bottom===K.bottom&&this.left===K.left&&this.right===K.right},_n.prototype.clone=function(){return new _n(this.top,this.bottom,this.left,this.right)},_n.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Dn=function(K,de,ee,pe,Oe){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Oe===void 0?!0:Oe,this._minZoom=K||0,this._maxZoom=de||22,this._minPitch=ee??0,this._maxPitch=pe??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new s.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _n,this._posMatrixCache={},this._alignedPosMatrixCache={}},Kn={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}};Dn.prototype.clone=function(){var K=new Dn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return K.tileSize=this.tileSize,K.latRange=this.latRange,K.width=this.width,K.height=this.height,K._center=this._center,K.zoom=this.zoom,K.angle=this.angle,K._fov=this._fov,K._pitch=this._pitch,K._unmodified=this._unmodified,K._edgeInsets=this._edgeInsets.clone(),K._calcMatrices(),K},Kn.minZoom.get=function(){return this._minZoom},Kn.minZoom.set=function(ce){this._minZoom!==ce&&(this._minZoom=ce,this.zoom=Math.max(this.zoom,ce))},Kn.maxZoom.get=function(){return this._maxZoom},Kn.maxZoom.set=function(ce){this._maxZoom!==ce&&(this._maxZoom=ce,this.zoom=Math.min(this.zoom,ce))},Kn.minPitch.get=function(){return this._minPitch},Kn.minPitch.set=function(ce){this._minPitch!==ce&&(this._minPitch=ce,this.pitch=Math.max(this.pitch,ce))},Kn.maxPitch.get=function(){return this._maxPitch},Kn.maxPitch.set=function(ce){this._maxPitch!==ce&&(this._maxPitch=ce,this.pitch=Math.min(this.pitch,ce))},Kn.renderWorldCopies.get=function(){return this._renderWorldCopies},Kn.renderWorldCopies.set=function(ce){ce===void 0?ce=!0:ce===null&&(ce=!1),this._renderWorldCopies=ce},Kn.worldSize.get=function(){return this.tileSize*this.scale},Kn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Kn.size.get=function(){return new s.Point(this.width,this.height)},Kn.bearing.get=function(){return-this.angle/Math.PI*180},Kn.bearing.set=function(ce){var K=-s.wrap(ce,-180,180)*Math.PI/180;this.angle!==K&&(this._unmodified=!1,this.angle=K,this._calcMatrices(),this.rotationMatrix=s.create$2(),s.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Kn.pitch.get=function(){return this._pitch/Math.PI*180},Kn.pitch.set=function(ce){var K=s.clamp(ce,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==K&&(this._unmodified=!1,this._pitch=K,this._calcMatrices())},Kn.fov.get=function(){return this._fov/Math.PI*180},Kn.fov.set=function(ce){ce=Math.max(.01,Math.min(60,ce)),this._fov!==ce&&(this._unmodified=!1,this._fov=ce/180*Math.PI,this._calcMatrices())},Kn.zoom.get=function(){return this._zoom},Kn.zoom.set=function(ce){var K=Math.min(Math.max(ce,this.minZoom),this.maxZoom);this._zoom!==K&&(this._unmodified=!1,this._zoom=K,this.scale=this.zoomScale(K),this.tileZoom=Math.floor(K),this.zoomFraction=K-this.tileZoom,this._constrain(),this._calcMatrices())},Kn.center.get=function(){return this._center},Kn.center.set=function(ce){ce.lat===this._center.lat&&ce.lng===this._center.lng||(this._unmodified=!1,this._center=ce,this._constrain(),this._calcMatrices())},Kn.padding.get=function(){return this._edgeInsets.toJSON()},Kn.padding.set=function(ce){this._edgeInsets.equals(ce)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,ce,1),this._calcMatrices())},Kn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Dn.prototype.isPaddingEqual=function(K){return this._edgeInsets.equals(K)},Dn.prototype.interpolatePadding=function(K,de,ee){this._unmodified=!1,this._edgeInsets.interpolate(K,de,ee),this._constrain(),this._calcMatrices()},Dn.prototype.coveringZoomLevel=function(K){var de=(K.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/K.tileSize));return Math.max(0,de)},Dn.prototype.getVisibleUnwrappedCoordinates=function(K){var de=[new s.UnwrappedTileID(0,K)];if(this._renderWorldCopies)for(var ee=this.pointCoordinate(new s.Point(0,0)),pe=this.pointCoordinate(new s.Point(this.width,0)),Oe=this.pointCoordinate(new s.Point(this.width,this.height)),Xe=this.pointCoordinate(new s.Point(0,this.height)),ft=Math.floor(Math.min(ee.x,pe.x,Oe.x,Xe.x)),Lt=Math.floor(Math.max(ee.x,pe.x,Oe.x,Xe.x)),Ht=1,qt=ft-Ht;qt<=Lt+Ht;qt++)qt!==0&&de.push(new s.UnwrappedTileID(qt,K));return de},Dn.prototype.coveringTiles=function(K){var de=this.coveringZoomLevel(K),ee=de;if(K.minzoom!==void 0&&deK.maxzoom&&(de=K.maxzoom);var pe=s.MercatorCoordinate.fromLngLat(this.center),Oe=Math.pow(2,de),Xe=[Oe*pe.x,Oe*pe.y,0],ft=on.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,de),Lt=K.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Lt=de);var Ht=3,qt=function(da){return{aabb:new xn([da*Oe,0,0],[(da+1)*Oe,Oe,0]),zoom:0,x:0,y:0,wrap:da,fullyVisible:!1}},lr=[],or=[],kr=de,Xr=K.reparseOverscaled?ee:de;if(this._renderWorldCopies)for(var jr=1;jr<=3;jr++)lr.push(qt(-jr)),lr.push(qt(jr));for(lr.push(qt(0));lr.length>0;){var Wr=lr.pop(),Qr=Wr.x,dn=Wr.y,In=Wr.fullyVisible;if(!In){var Bn=Wr.aabb.intersects(ft);if(Bn===0)continue;In=Bn===2}var Xn=Wr.aabb.distanceX(Xe),Zn=Wr.aabb.distanceY(Xe),Yn=Math.max(Math.abs(Xn),Math.abs(Zn)),Jn=Ht+(1<Jn&&Wr.zoom>=Lt){or.push({tileID:new s.OverscaledTileID(Wr.zoom===kr?Xr:Wr.zoom,Wr.wrap,Wr.zoom,Qr,dn),distanceSq:s.sqrLen([Xe[0]-.5-Qr,Xe[1]-.5-dn])});continue}for(var na=0;na<4;na++){var ua=(Qr<<1)+na%2,xa=(dn<<1)+(na>>1);lr.push({aabb:Wr.aabb.quadrant(na),zoom:Wr.zoom+1,x:ua,y:xa,wrap:Wr.wrap,fullyVisible:In})}}return or.sort(function(da,Fa){return da.distanceSq-Fa.distanceSq}).map(function(da){return da.tileID})},Dn.prototype.resize=function(K,de){this.width=K,this.height=de,this.pixelsToGLUnits=[2/K,-2/de],this._constrain(),this._calcMatrices()},Kn.unmodified.get=function(){return this._unmodified},Dn.prototype.zoomScale=function(K){return Math.pow(2,K)},Dn.prototype.scaleZoom=function(K){return Math.log(K)/Math.LN2},Dn.prototype.project=function(K){var de=s.clamp(K.lat,-this.maxValidLatitude,this.maxValidLatitude);return new s.Point(s.mercatorXfromLng(K.lng)*this.worldSize,s.mercatorYfromLat(de)*this.worldSize)},Dn.prototype.unproject=function(K){return new s.MercatorCoordinate(K.x/this.worldSize,K.y/this.worldSize).toLngLat()},Kn.point.get=function(){return this.project(this.center)},Dn.prototype.setLocationAtPoint=function(K,de){var ee=this.pointCoordinate(de),pe=this.pointCoordinate(this.centerPoint),Oe=this.locationCoordinate(K),Xe=new s.MercatorCoordinate(Oe.x-(ee.x-pe.x),Oe.y-(ee.y-pe.y));this.center=this.coordinateLocation(Xe),this._renderWorldCopies&&(this.center=this.center.wrap())},Dn.prototype.locationPoint=function(K){return this.coordinatePoint(this.locationCoordinate(K))},Dn.prototype.pointLocation=function(K){return this.coordinateLocation(this.pointCoordinate(K))},Dn.prototype.locationCoordinate=function(K){return s.MercatorCoordinate.fromLngLat(K)},Dn.prototype.coordinateLocation=function(K){return K.toLngLat()},Dn.prototype.pointCoordinate=function(K){var de=0,ee=[K.x,K.y,0,1],pe=[K.x,K.y,1,1];s.transformMat4(ee,ee,this.pixelMatrixInverse),s.transformMat4(pe,pe,this.pixelMatrixInverse);var Oe=ee[3],Xe=pe[3],ft=ee[0]/Oe,Lt=pe[0]/Xe,Ht=ee[1]/Oe,qt=pe[1]/Xe,lr=ee[2]/Oe,or=pe[2]/Xe,kr=lr===or?0:(de-lr)/(or-lr);return new s.MercatorCoordinate(s.number(ft,Lt,kr)/this.worldSize,s.number(Ht,qt,kr)/this.worldSize)},Dn.prototype.coordinatePoint=function(K){var de=[K.x*this.worldSize,K.y*this.worldSize,0,1];return s.transformMat4(de,de,this.pixelMatrix),new s.Point(de[0]/de[3],de[1]/de[3])},Dn.prototype.getBounds=function(){return new s.LngLatBounds().extend(this.pointLocation(new s.Point(0,0))).extend(this.pointLocation(new s.Point(this.width,0))).extend(this.pointLocation(new s.Point(this.width,this.height))).extend(this.pointLocation(new s.Point(0,this.height)))},Dn.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new s.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},Dn.prototype.setMaxBounds=function(K){K?(this.lngRange=[K.getWest(),K.getEast()],this.latRange=[K.getSouth(),K.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Dn.prototype.calculatePosMatrix=function(K,de){de===void 0&&(de=!1);var ee=K.key,pe=de?this._alignedPosMatrixCache:this._posMatrixCache;if(pe[ee])return pe[ee];var Oe=K.canonical,Xe=this.worldSize/this.zoomScale(Oe.z),ft=Oe.x+Math.pow(2,Oe.z)*K.wrap,Lt=s.identity(new Float64Array(16));return s.translate(Lt,Lt,[ft*Xe,Oe.y*Xe,0]),s.scale(Lt,Lt,[Xe/s.EXTENT,Xe/s.EXTENT,1]),s.multiply(Lt,de?this.alignedProjMatrix:this.projMatrix,Lt),pe[ee]=new Float32Array(Lt),pe[ee]},Dn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Dn.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var K=-90,de=90,ee=-180,pe=180,Oe,Xe,ft,Lt,Ht=this.size,qt=this._unmodified;if(this.latRange){var lr=this.latRange;K=s.mercatorYfromLat(lr[1])*this.worldSize,de=s.mercatorYfromLat(lr[0])*this.worldSize,Oe=de-Kde&&(Lt=de-Wr)}if(this.lngRange){var Qr=kr.x,dn=Ht.x/2;Qr-dnpe&&(ft=pe-dn)}(ft!==void 0||Lt!==void 0)&&(this.center=this.unproject(new s.Point(ft!==void 0?ft:kr.x,Lt!==void 0?Lt:kr.y))),this._unmodified=qt,this._constraining=!1}},Dn.prototype._calcMatrices=function(){if(this.height){var K=this._fov/2,de=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(K)*this.height;var ee=Math.PI/2+this._pitch,pe=this._fov*(.5+de.y/this.height),Oe=Math.sin(pe)*this.cameraToCenterDistance/Math.sin(s.clamp(Math.PI-ee-pe,.01,Math.PI-.01)),Xe=this.point,ft=Xe.x,Lt=Xe.y,Ht=Math.cos(Math.PI/2-this._pitch)*Oe+this.cameraToCenterDistance,qt=Ht*1.01,lr=this.height/50,or=new Float64Array(16);s.perspective(or,this._fov,this.width/this.height,lr,qt),or[8]=-de.x*2/this.width,or[9]=de.y*2/this.height,s.scale(or,or,[1,-1,1]),s.translate(or,or,[0,0,-this.cameraToCenterDistance]),s.rotateX(or,or,this._pitch),s.rotateZ(or,or,this.angle),s.translate(or,or,[-ft,-Lt,0]),this.mercatorMatrix=s.scale([],or,[this.worldSize,this.worldSize,this.worldSize]),s.scale(or,or,[1,1,s.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=or,this.invProjMatrix=s.invert([],this.projMatrix);var kr=this.width%2/2,Xr=this.height%2/2,jr=Math.cos(this.angle),Wr=Math.sin(this.angle),Qr=ft-Math.round(ft)+jr*kr+Wr*Xr,dn=Lt-Math.round(Lt)+jr*Xr+Wr*kr,In=new Float64Array(or);if(s.translate(In,In,[Qr>.5?Qr-1:Qr,dn>.5?dn-1:dn,0]),this.alignedProjMatrix=In,or=s.create(),s.scale(or,or,[this.width/2,-this.height/2,1]),s.translate(or,or,[1,-1,0]),this.labelPlaneMatrix=or,or=s.create(),s.scale(or,or,[1,-1,1]),s.translate(or,or,[-1,-1,0]),s.scale(or,or,[2/this.width,2/this.height,1]),this.glCoordMatrix=or,this.pixelMatrix=s.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),or=s.invert(new Float64Array(16),this.pixelMatrix),!or)throw new Error("failed to invert matrix");this.pixelMatrixInverse=or,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Dn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var K=this.pointCoordinate(new s.Point(0,0)),de=[K.x*this.worldSize,K.y*this.worldSize,0,1],ee=s.transformMat4(de,de,this.pixelMatrix);return ee[3]/this.cameraToCenterDistance},Dn.prototype.getCameraPoint=function(){var K=this._pitch,de=Math.tan(K)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new s.Point(0,de))},Dn.prototype.getCameraQueryGeometry=function(K){var de=this.getCameraPoint();if(K.length===1)return[K[0],de];for(var ee=de.x,pe=de.y,Oe=de.x,Xe=de.y,ft=0,Lt=K;ft=3&&!K.some(function(ee){return isNaN(ee)})){var de=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(K[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+K[2],+K[1]],zoom:+K[0],bearing:de,pitch:+(K[4]||0)}),!0}return!1},Da.prototype._updateHashUnthrottled=function(){var K=s.window.location.href.replace(/(#.+)?$/,this.getHashString());try{s.window.history.replaceState(s.window.history.state,null,K)}catch{}};var ka={linearity:.3,easing:s.bezier(0,0,.3,1)},Na=s.extend({deceleration:2500,maxSpeed:1400},ka),Ka=s.extend({deceleration:20,maxSpeed:1400},ka),di=s.extend({deceleration:1e3,maxSpeed:360},ka),zi=s.extend({deceleration:1e3,maxSpeed:90},ka),ue=function(K){this._map=K,this.clear()};ue.prototype.clear=function(){this._inertiaBuffer=[]},ue.prototype.record=function(K){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:s.browser.now(),settings:K})},ue.prototype._drainInertiaBuffer=function(){for(var K=this._inertiaBuffer,de=s.browser.now(),ee=160;K.length>0&&de-K[0].time>ee;)K.shift()},ue.prototype._onMoveEnd=function(K){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var de={zoom:0,bearing:0,pitch:0,pan:new s.Point(0,0),pinchAround:void 0,around:void 0},ee=0,pe=this._inertiaBuffer;ee=this._clickTolerance||this._map.fire(new qe(K.type,this._map,K))},Pt.prototype.dblclick=function(K){return this._firePreventable(new qe(K.type,this._map,K))},Pt.prototype.mouseover=function(K){this._map.fire(new qe(K.type,this._map,K))},Pt.prototype.mouseout=function(K){this._map.fire(new qe(K.type,this._map,K))},Pt.prototype.touchstart=function(K){return this._firePreventable(new nt(K.type,this._map,K))},Pt.prototype.touchmove=function(K){this._map.fire(new nt(K.type,this._map,K))},Pt.prototype.touchend=function(K){this._map.fire(new nt(K.type,this._map,K))},Pt.prototype.touchcancel=function(K){this._map.fire(new nt(K.type,this._map,K))},Pt.prototype._firePreventable=function(K){if(this._map.fire(K),K.defaultPrevented)return{}},Pt.prototype.isEnabled=function(){return!0},Pt.prototype.isActive=function(){return!1},Pt.prototype.enable=function(){},Pt.prototype.disable=function(){};var St=function(K){this._map=K};St.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},St.prototype.mousemove=function(K){this._map.fire(new qe(K.type,this._map,K))},St.prototype.mousedown=function(){this._delayContextMenu=!0},St.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new qe("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},St.prototype.contextmenu=function(K){this._delayContextMenu?this._contextMenuEvent=K:this._map.fire(new qe(K.type,this._map,K)),this._map.listens("contextmenu")&&K.preventDefault()},St.prototype.isEnabled=function(){return!0},St.prototype.isActive=function(){return!1},St.prototype.enable=function(){},St.prototype.disable=function(){};var Gt=function(K,de){this._map=K,this._el=K.getCanvasContainer(),this._container=K.getContainer(),this._clickTolerance=de.clickTolerance||1};Gt.prototype.isEnabled=function(){return!!this._enabled},Gt.prototype.isActive=function(){return!!this._active},Gt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Gt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Gt.prototype.mousedown=function(K,de){this.isEnabled()&&K.shiftKey&&K.button===0&&(S.disableDrag(),this._startPos=this._lastPos=de,this._active=!0)},Gt.prototype.mousemoveWindow=function(K,de){if(this._active){var ee=de;if(!(this._lastPos.equals(ee)||!this._box&&ee.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=K.timeStamp),ee.length===this.numTouches&&(this.centroid=rr(de),this.touches=Yt(ee,de)))},sn.prototype.touchmove=function(K,de,ee){if(!(this.aborted||!this.centroid)){var pe=Yt(ee,de);for(var Oe in this.touches){var Xe=this.touches[Oe],ft=pe[Oe];(!ft||ft.dist(Xe)>$r)&&(this.aborted=!0)}}},sn.prototype.touchend=function(K,de,ee){if((!this.centroid||K.timeStamp-this.startTime>Lr)&&(this.aborted=!0),ee.length===0){var pe=!this.aborted&&this.centroid;if(this.reset(),pe)return pe}};var Rr=function(K){this.singleTap=new sn(K),this.numTaps=K.numTaps,this.reset()};Rr.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Rr.prototype.touchstart=function(K,de,ee){this.singleTap.touchstart(K,de,ee)},Rr.prototype.touchmove=function(K,de,ee){this.singleTap.touchmove(K,de,ee)},Rr.prototype.touchend=function(K,de,ee){var pe=this.singleTap.touchend(K,de,ee);if(pe){var Oe=K.timeStamp-this.lastTime0&&(this._active=!0);var pe=Yt(ee,de),Oe=new s.Point(0,0),Xe=new s.Point(0,0),ft=0;for(var Lt in pe){var Ht=pe[Lt],qt=this._touches[Lt];qt&&(Oe._add(Ht),Xe._add(Ht.sub(qt)),ft++,pe[Lt]=Ht)}if(this._touches=pe,!(ftMath.abs(ce.x)}var Sa=100,Ja=function(ce){function K(){ce.apply(this,arguments)}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.reset=function(){ce.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},K.prototype._start=function(ee){this._lastPoints=ee,Ha(ee[0].sub(ee[1]))&&(this._valid=!1)},K.prototype._move=function(ee,pe,Oe){var Xe=ee[0].sub(this._lastPoints[0]),ft=ee[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(Xe,ft,Oe.timeStamp),!!this._valid){this._lastPoints=ee,this._active=!0;var Lt=(Xe.y+ft.y)/2,Ht=-.5;return{pitchDelta:Lt*Ht}}},K.prototype.gestureBeginsVertically=function(ee,pe,Oe){if(this._valid!==void 0)return this._valid;var Xe=2,ft=ee.mag()>=Xe,Lt=pe.mag()>=Xe;if(!(!ft&&!Lt)){if(!ft||!Lt)return this._firstMove===void 0&&(this._firstMove=Oe),Oe-this._firstMove0==pe.y>0;return Ha(ee)&&Ha(pe)&&Ht}},K}(ca),wi={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var K=wi;this._panStep=K.panStep,this._bearingStep=K.bearingStep,this._pitchStep=K.pitchStep,this._rotationDisabled=!1};oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(K){var de=this;if(!(K.altKey||K.ctrlKey||K.metaKey)){var ee=0,pe=0,Oe=0,Xe=0,ft=0;switch(K.keyCode){case 61:case 107:case 171:case 187:ee=1;break;case 189:case 109:case 173:ee=-1;break;case 37:K.shiftKey?pe=-1:(K.preventDefault(),Xe=-1);break;case 39:K.shiftKey?pe=1:(K.preventDefault(),Xe=1);break;case 38:K.shiftKey?Oe=1:(K.preventDefault(),ft=-1);break;case 40:K.shiftKey?Oe=-1:(K.preventDefault(),ft=1);break;default:return}return this._rotationDisabled&&(pe=0,Oe=0),{cameraAnimation:function(Lt){var Ht=Lt.getZoom();Lt.easeTo({duration:300,easeId:"keyboardHandler",easing:$i,zoom:ee?Math.round(Ht)+ee*(K.shiftKey?2:1):Ht,bearing:Lt.getBearing()+pe*de._bearingStep,pitch:Lt.getPitch()+Oe*de._pitchStep,offset:[-Xe*de._panStep,-ft*de._panStep],center:Lt.getCenter()},{originalEvent:K})}}}},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};function $i(ce){return ce*(2-ce)}var qi=4.000244140625,ao=1/100,Ti=1/450,go=2,la=function(K,de){this._map=K,this._el=K.getCanvasContainer(),this._handler=de,this._delta=0,this._defaultZoomRate=ao,this._wheelZoomRate=Ti,s.bindAll(["_onTimeout"],this)};la.prototype.setZoomRate=function(K){this._defaultZoomRate=K},la.prototype.setWheelZoomRate=function(K){this._wheelZoomRate=K},la.prototype.isEnabled=function(){return!!this._enabled},la.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},la.prototype.isZooming=function(){return!!this._zooming},la.prototype.enable=function(K){this.isEnabled()||(this._enabled=!0,this._aroundCenter=K&&K.around==="center")},la.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},la.prototype.wheel=function(K){if(this.isEnabled()){var de=K.deltaMode===s.window.WheelEvent.DOM_DELTA_LINE?K.deltaY*40:K.deltaY,ee=s.browser.now(),pe=ee-(this._lastWheelEventTime||0);this._lastWheelEventTime=ee,de!==0&&de%qi===0?this._type="wheel":de!==0&&Math.abs(de)<4?this._type="trackpad":pe>400?(this._type=null,this._lastValue=de,this._timeout=setTimeout(this._onTimeout,40,K)):this._type||(this._type=Math.abs(pe*de)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,de+=this._lastValue)),K.shiftKey&&de&&(de=de/4),this._type&&(this._lastWheelEvent=K,this._delta-=de,this._active||this._start(K)),K.preventDefault()}},la.prototype._onTimeout=function(K){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(K)},la.prototype._start=function(K){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 de=S.mousePos(this._el,K);this._around=s.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(de)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},la.prototype.renderFrame=function(){var K=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var de=this._map.transform;if(this._delta!==0){var ee=this._type==="wheel"&&Math.abs(this._delta)>qi?this._wheelZoomRate:this._defaultZoomRate,pe=go/(1+Math.exp(-Math.abs(this._delta*ee)));this._delta<0&&pe!==0&&(pe=1/pe);var Oe=typeof this._targetZoom=="number"?de.zoomScale(this._targetZoom):de.scale;this._targetZoom=Math.min(de.maxZoom,Math.max(de.minZoom,de.scaleZoom(Oe*pe))),this._type==="wheel"&&(this._startZoom=de.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var Xe=typeof this._targetZoom=="number"?this._targetZoom:de.zoom,ft=this._startZoom,Lt=this._easing,Ht=!1,qt;if(this._type==="wheel"&&ft&&Lt){var lr=Math.min((s.browser.now()-this._lastWheelEventTime)/200,1),or=Lt(lr);qt=s.number(ft,Xe,or),lr<1?this._frameId||(this._frameId=!0):Ht=!0}else qt=Xe,Ht=!0;return this._active=!0,Ht&&(this._active=!1,this._finishTimeout=setTimeout(function(){K._zooming=!1,K._handler._triggerRenderFrame(),delete K._targetZoom,delete K._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ht,zoomDelta:qt-de.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},la.prototype._smoothOutEasing=function(K){var de=s.ease;if(this._prevEase){var ee=this._prevEase,pe=(s.browser.now()-ee.start)/ee.duration,Oe=ee.easing(pe+.01)-ee.easing(pe),Xe=.27/Math.sqrt(Oe*Oe+1e-4)*.01,ft=Math.sqrt(.27*.27-Xe*Xe);de=s.bezier(Xe,ft,.25,1)}return this._prevEase={start:s.browser.now(),duration:K,easing:de},de},la.prototype.reset=function(){this._active=!1};var La=function(K,de){this._clickZoom=K,this._tapZoom=de};La.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},La.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},La.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},La.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ro=function(){this.reset()};Ro.prototype.reset=function(){this._active=!1},Ro.prototype.dblclick=function(K,de){return K.preventDefault(),{cameraAnimation:function(ee){ee.easeTo({duration:300,zoom:ee.getZoom()+(K.shiftKey?-1:1),around:ee.unproject(de)},{originalEvent:K})}}},Ro.prototype.enable=function(){this._enabled=!0},Ro.prototype.disable=function(){this._enabled=!1,this.reset()},Ro.prototype.isEnabled=function(){return this._enabled},Ro.prototype.isActive=function(){return this._active};var Fo=function(){this._tap=new Rr({numTouches:1,numTaps:1}),this.reset()};Fo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Fo.prototype.touchstart=function(K,de,ee){this._swipePoint||(this._tapTime&&K.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?ee.length>0&&(this._swipePoint=de[0],this._swipeTouch=ee[0].identifier):this._tap.touchstart(K,de,ee))},Fo.prototype.touchmove=function(K,de,ee){if(!this._tapTime)this._tap.touchmove(K,de,ee);else if(this._swipePoint){if(ee[0].identifier!==this._swipeTouch)return;var pe=de[0],Oe=pe.y-this._swipePoint.y;return this._swipePoint=pe,K.preventDefault(),this._active=!0,{zoomDelta:Oe/128}}},Fo.prototype.touchend=function(K,de,ee){if(this._tapTime)this._swipePoint&&ee.length===0&&this.reset();else{var pe=this._tap.touchend(K,de,ee);pe&&(this._tapTime=K.timeStamp)}},Fo.prototype.touchcancel=function(){this.reset()},Fo.prototype.enable=function(){this._enabled=!0},Fo.prototype.disable=function(){this._enabled=!1,this.reset()},Fo.prototype.isEnabled=function(){return this._enabled},Fo.prototype.isActive=function(){return this._active};var io=function(K,de,ee){this._el=K,this._mousePan=de,this._touchPan=ee};io.prototype.enable=function(K){this._inertiaOptions=K||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},io.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},io.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},io.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var hi=function(K,de,ee){this._pitchWithRotate=K.pitchWithRotate,this._mouseRotate=de,this._mousePitch=ee};hi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},hi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},hi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},hi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Wi=function(K,de,ee,pe){this._el=K,this._touchZoom=de,this._touchRotate=ee,this._tapDragZoom=pe,this._rotationDisabled=!1,this._enabled=!0};Wi.prototype.enable=function(K){this._touchZoom.enable(K),this._rotationDisabled||this._touchRotate.enable(K),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Wi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Wi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Wi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Wi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Wi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Ni=function(ce){return ce.zoom||ce.drag||ce.pitch||ce.rotate},ps=function(ce){function K(){ce.apply(this,arguments)}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K}(s.Event);function Ds(ce){return ce.panDelta&&ce.panDelta.mag()||ce.zoomDelta||ce.bearingDelta||ce.pitchDelta}var Li=function(K,de){this._map=K,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ue(K),this._bearingSnap=de.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(de),s.bindAll(["handleEvent","handleWindowEvent"],this);var ee=this._el;this._listeners=[[ee,"touchstart",{passive:!0}],[ee,"touchmove",{passive:!1}],[ee,"touchend",void 0],[ee,"touchcancel",void 0],[ee,"mousedown",void 0],[ee,"mousemove",void 0],[ee,"mouseup",void 0],[s.window.document,"mousemove",{capture:!0}],[s.window.document,"mouseup",void 0],[ee,"mouseover",void 0],[ee,"mouseout",void 0],[ee,"dblclick",void 0],[ee,"click",void 0],[ee,"keydown",{capture:!1}],[ee,"keyup",void 0],[ee,"wheel",{passive:!1}],[ee,"contextmenu",void 0],[s.window,"blur",void 0]];for(var pe=0,Oe=this._listeners;peft?Math.min(2,Xn):Math.max(.5,Xn),da=Math.pow(xa,1-na),Fa=Xe.unproject(In.add(Bn.mult(na*da)).mult(ua));Xe.setLocationAtPoint(Xe.renderWorldCopies?Fa.wrap():Fa,Wr)}Oe._fireMoveEvents(pe)},function(na){Oe._afterEase(pe,na)},ee),this},K.prototype._prepareEase=function(ee,pe,Oe){Oe===void 0&&(Oe={}),this._moving=!0,!pe&&!Oe.moving&&this.fire(new s.Event("movestart",ee)),this._zooming&&!Oe.zooming&&this.fire(new s.Event("zoomstart",ee)),this._rotating&&!Oe.rotating&&this.fire(new s.Event("rotatestart",ee)),this._pitching&&!Oe.pitching&&this.fire(new s.Event("pitchstart",ee))},K.prototype._fireMoveEvents=function(ee){this.fire(new s.Event("move",ee)),this._zooming&&this.fire(new s.Event("zoom",ee)),this._rotating&&this.fire(new s.Event("rotate",ee)),this._pitching&&this.fire(new s.Event("pitch",ee))},K.prototype._afterEase=function(ee,pe){if(!(this._easeId&&pe&&this._easeId===pe)){delete this._easeId;var Oe=this._zooming,Xe=this._rotating,ft=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Oe&&this.fire(new s.Event("zoomend",ee)),Xe&&this.fire(new s.Event("rotateend",ee)),ft&&this.fire(new s.Event("pitchend",ee)),this.fire(new s.Event("moveend",ee))}},K.prototype.flyTo=function(ee,pe){var Oe=this;if(!ee.essential&&s.browser.prefersReducedMotion){var Xe=s.pick(ee,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Xe,pe)}this.stop(),ee=s.extend({offset:[0,0],speed:1.2,curve:1.42,easing:s.ease},ee);var ft=this.transform,Lt=this.getZoom(),Ht=this.getBearing(),qt=this.getPitch(),lr=this.getPadding(),or="zoom"in ee?s.clamp(+ee.zoom,ft.minZoom,ft.maxZoom):Lt,kr="bearing"in ee?this._normalizeBearing(ee.bearing,Ht):Ht,Xr="pitch"in ee?+ee.pitch:qt,jr="padding"in ee?ee.padding:ft.padding,Wr=ft.zoomScale(or-Lt),Qr=s.Point.convert(ee.offset),dn=ft.centerPoint.add(Qr),In=ft.pointLocation(dn),Bn=s.LngLat.convert(ee.center||In);this._normalizeCenter(Bn);var Xn=ft.project(In),Zn=ft.project(Bn).sub(Xn),Yn=ee.curve,Jn=Math.max(ft.width,ft.height),na=Jn/Wr,ua=Zn.mag();if("minZoom"in ee){var xa=s.clamp(Math.min(ee.minZoom,Lt,or),ft.minZoom,ft.maxZoom),da=Jn/ft.zoomScale(xa-Lt);Yn=Math.sqrt(da/ua*2)}var Fa=Yn*Yn;function qa(Wa){var ei=(na*na-Jn*Jn+(Wa?-1:1)*Fa*Fa*ua*ua)/(2*(Wa?na:Jn)*Fa*ua);return Math.log(Math.sqrt(ei*ei+1)-ei)}function Xa(Wa){return(Math.exp(Wa)-Math.exp(-Wa))/2}function Ma(Wa){return(Math.exp(Wa)+Math.exp(-Wa))/2}function Za(Wa){return Xa(Wa)/Ma(Wa)}var Ga=qa(0),si=function(Wa){return Ma(Ga)/Ma(Ga+Yn*Wa)},ri=function(Wa){return Jn*((Ma(Ga)*Za(Ga+Yn*Wa)-Xa(Ga))/Fa)/ua},Si=(qa(1)-Ga)/Yn;if(Math.abs(ua)<1e-6||!isFinite(Si)){if(Math.abs(Jn-na)<1e-6)return this.easeTo(ee,pe);var $a=naee.maxDuration&&(ee.duration=0),this._zooming=!0,this._rotating=Ht!==kr,this._pitching=Xr!==qt,this._padding=!ft.isPaddingEqual(jr),this._prepareEase(pe,!1),this._ease(function(Wa){var ei=Wa*Si,Bi=1/si(ei);ft.zoom=Wa===1?or:Lt+ft.scaleZoom(Bi),Oe._rotating&&(ft.bearing=s.number(Ht,kr,Wa)),Oe._pitching&&(ft.pitch=s.number(qt,Xr,Wa)),Oe._padding&&(ft.interpolatePadding(lr,jr,Wa),dn=ft.centerPoint.add(Qr));var yo=Wa===1?Bn:ft.unproject(Xn.add(Zn.mult(ri(ei))).mult(Bi));ft.setLocationAtPoint(ft.renderWorldCopies?yo.wrap():yo,dn),Oe._fireMoveEvents(pe)},function(){return Oe._afterEase(pe)},ee),this},K.prototype.isEasing=function(){return!!this._easeFrameId},K.prototype.stop=function(){return this._stop()},K.prototype._stop=function(ee,pe){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Oe=this._onEaseEnd;delete this._onEaseEnd,Oe.call(this,pe)}if(!ee){var Xe=this.handlers;Xe&&Xe.stop(!1)}return this},K.prototype._ease=function(ee,pe,Oe){Oe.animate===!1||Oe.duration===0?(ee(1),pe()):(this._easeStart=s.browser.now(),this._easeOptions=Oe,this._onEaseFrame=ee,this._onEaseEnd=pe,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},K.prototype._renderFrameCallback=function(){var ee=Math.min((s.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ee)),ee<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},K.prototype._normalizeBearing=function(ee,pe){ee=s.wrap(ee,-180,180);var Oe=Math.abs(ee-pe);return Math.abs(ee-360-pe)180?-360:Oe<-180?360:0}},K}(s.Evented),Qa=function(K){K===void 0&&(K={}),this.options=K,s.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qa.prototype.getDefaultPosition=function(){return"bottom-right"},Qa.prototype.onAdd=function(K){var de=this.options&&this.options.compact;return this._map=K,this._container=S.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=S.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=S.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),de&&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),de===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qa.prototype.onRemove=function(){S.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},Qa.prototype._setElementTitle=function(K,de){var ee=this._map._getUIString("AttributionControl."+de);K.title=ee,K.setAttribute("aria-label",ee)},Qa.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"))},Qa.prototype._updateEditLink=function(){var K=this._editLink;K||(K=this._editLink=this._container.querySelector(".mapbox-improve-map"));var de=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||s.config.ACCESS_TOKEN}];if(K){var ee=de.reduce(function(pe,Oe,Xe){return Oe.value&&(pe+=Oe.key+"="+Oe.value+(Xe=0)return!1;return!0});var ft=K.join(" | ");ft!==this._attribHTML&&(this._attribHTML=ft,K.length?(this._innerContainer.innerHTML=ft,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qa.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Pi=function(){s.bindAll(["_updateLogo"],this),s.bindAll(["_updateCompact"],this)};Pi.prototype.onAdd=function(K){this._map=K,this._container=S.create("div","mapboxgl-ctrl");var de=S.create("a","mapboxgl-ctrl-logo");return de.target="_blank",de.rel="noopener nofollow",de.href="https://www.mapbox.com/",de.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),de.setAttribute("rel","noopener nofollow"),this._container.appendChild(de),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Pi.prototype.onRemove=function(){S.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Pi.prototype.getDefaultPosition=function(){return"bottom-left"},Pi.prototype._updateLogo=function(K){(!K||K.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Pi.prototype._logoRequired=function(){if(this._map.style){var K=this._map.style.sourceCaches;for(var de in K){var ee=K[de].getSource();if(ee.mapbox_logo)return!0}return!1}},Pi.prototype._updateCompact=function(){var K=this._container.children;if(K.length){var de=K[0];this._map.getCanvasContainer().offsetWidth<250?de.classList.add("mapboxgl-compact"):de.classList.remove("mapboxgl-compact")}};var uh=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};uh.prototype.add=function(K){var de=++this._id,ee=this._queue;return ee.push({callback:K,id:de,cancelled:!1}),de},uh.prototype.remove=function(K){for(var de=this._currentlyRunning,ee=de?this._queue.concat(de):this._queue,pe=0,Oe=ee;peee.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(ee.minPitch!=null&&ee.maxPitch!=null&&ee.minPitch>ee.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(ee.minPitch!=null&&ee.minPitchJu)throw new Error("maxPitch must be less than or equal to "+Ju);var Oe=new Dn(ee.minZoom,ee.maxZoom,ee.minPitch,ee.maxPitch,ee.renderWorldCopies);if(ce.call(this,Oe,ee),this._interactive=ee.interactive,this._maxTileCacheSize=ee.maxTileCacheSize,this._failIfMajorPerformanceCaveat=ee.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=ee.preserveDrawingBuffer,this._antialias=ee.antialias,this._trackResize=ee.trackResize,this._bearingSnap=ee.bearingSnap,this._refreshExpiredTiles=ee.refreshExpiredTiles,this._fadeDuration=ee.fadeDuration,this._crossSourceCollisions=ee.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=ee.collectResourceTiming,this._renderTaskQueue=new uh,this._controls=[],this._mapId=s.uniqueId(),this._locale=s.extend({},Jd,ee.locale),this._clickTolerance=ee.clickTolerance,this._requestManager=new s.RequestManager(ee.transformRequest,ee.accessToken),typeof ee.container=="string"){if(this._container=s.window.document.getElementById(ee.container),!this._container)throw new Error("Container '"+ee.container+"' not found.")}else if(ee.container instanceof Fv)this._container=ee.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(ee.maxBounds&&this.setMaxBounds(ee.maxBounds),s.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return pe._update(!1)}),this.on("moveend",function(){return pe._update(!1)}),this.on("zoom",function(){return pe._update(!0)}),typeof s.window<"u"&&(s.window.addEventListener("online",this._onWindowOnline,!1),s.window.addEventListener("resize",this._onWindowResize,!1),s.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Li(this,ee);var Xe=typeof ee.hash=="string"&&ee.hash||void 0;this._hash=ee.hash&&new Da(Xe).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch}),ee.bounds&&(this.resize(),this.fitBounds(ee.bounds,s.extend({},ee.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=ee.localIdeographFontFamily,ee.style&&this.setStyle(ee.style,{localIdeographFontFamily:ee.localIdeographFontFamily}),ee.attributionControl&&this.addControl(new Qa({customAttribution:ee.customAttribution})),this.addControl(new Pi,ee.logoPosition),this.on("style.load",function(){pe.transform.unmodified&&pe.jumpTo(pe.style.stylesheet)}),this.on("data",function(ft){pe._update(ft.dataType==="style"),pe.fire(new s.Event(ft.dataType+"data",ft))}),this.on("dataloading",function(ft){pe.fire(new s.Event(ft.dataType+"dataloading",ft))})}ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K;var de={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return K.prototype._getMapId=function(){return this._mapId},K.prototype.addControl=function(pe,Oe){if(Oe===void 0&&(pe.getDefaultPosition?Oe=pe.getDefaultPosition():Oe="top-right"),!pe||!pe.onAdd)return this.fire(new s.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var Xe=pe.onAdd(this);this._controls.push(pe);var ft=this._controlPositions[Oe];return Oe.indexOf("bottom")!==-1?ft.insertBefore(Xe,ft.firstChild):ft.appendChild(Xe),this},K.prototype.removeControl=function(pe){if(!pe||!pe.onRemove)return this.fire(new s.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Oe=this._controls.indexOf(pe);return Oe>-1&&this._controls.splice(Oe,1),pe.onRemove(this),this},K.prototype.hasControl=function(pe){return this._controls.indexOf(pe)>-1},K.prototype.resize=function(pe){var Oe=this._containerDimensions(),Xe=Oe[0],ft=Oe[1];this._resizeCanvas(Xe,ft),this.transform.resize(Xe,ft),this.painter.resize(Xe,ft);var Lt=!this._moving;return Lt&&(this.stop(),this.fire(new s.Event("movestart",pe)).fire(new s.Event("move",pe))),this.fire(new s.Event("resize",pe)),Lt&&this.fire(new s.Event("moveend",pe)),this},K.prototype.getBounds=function(){return this.transform.getBounds()},K.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},K.prototype.setMaxBounds=function(pe){return this.transform.setMaxBounds(s.LngLatBounds.convert(pe)),this._update()},K.prototype.setMinZoom=function(pe){if(pe=pe??uc,pe>=uc&&pe<=this.transform.maxZoom)return this.transform.minZoom=pe,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=pe,this._update(),this.getZoom()>pe&&this.setZoom(pe),this;throw new Error("maxZoom must be greater than the current minZoom")},K.prototype.getMaxZoom=function(){return this.transform.maxZoom},K.prototype.setMinPitch=function(pe){if(pe=pe??ts,pe=ts&&pe<=this.transform.maxPitch)return this.transform.minPitch=pe,this._update(),this.getPitch()Ju)throw new Error("maxPitch must be less than or equal to "+Ju);if(pe>=this.transform.minPitch)return this.transform.maxPitch=pe,this._update(),this.getPitch()>pe&&this.setPitch(pe),this;throw new Error("maxPitch must be greater than the current minPitch")},K.prototype.getMaxPitch=function(){return this.transform.maxPitch},K.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},K.prototype.setRenderWorldCopies=function(pe){return this.transform.renderWorldCopies=pe,this._update()},K.prototype.project=function(pe){return this.transform.locationPoint(s.LngLat.convert(pe))},K.prototype.unproject=function(pe){return this.transform.pointLocation(s.Point.convert(pe))},K.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},K.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},K.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},K.prototype._createDelegatedListener=function(pe,Oe,Xe){var ft=this,Lt;if(pe==="mouseenter"||pe==="mouseover"){var Ht=!1,qt=function(Wr){var Qr=ft.getLayer(Oe)?ft.queryRenderedFeatures(Wr.point,{layers:[Oe]}):[];Qr.length?Ht||(Ht=!0,Xe.call(ft,new qe(pe,ft,Wr.originalEvent,{features:Qr}))):Ht=!1},lr=function(){Ht=!1};return{layer:Oe,listener:Xe,delegates:{mousemove:qt,mouseout:lr}}}else if(pe==="mouseleave"||pe==="mouseout"){var or=!1,kr=function(Wr){var Qr=ft.getLayer(Oe)?ft.queryRenderedFeatures(Wr.point,{layers:[Oe]}):[];Qr.length?or=!0:or&&(or=!1,Xe.call(ft,new qe(pe,ft,Wr.originalEvent)))},Xr=function(Wr){or&&(or=!1,Xe.call(ft,new qe(pe,ft,Wr.originalEvent)))};return{layer:Oe,listener:Xe,delegates:{mousemove:kr,mouseout:Xr}}}else{var jr=function(Wr){var Qr=ft.getLayer(Oe)?ft.queryRenderedFeatures(Wr.point,{layers:[Oe]}):[];Qr.length&&(Wr.features=Qr,Xe.call(ft,Wr),delete Wr.features)};return{layer:Oe,listener:Xe,delegates:(Lt={},Lt[pe]=jr,Lt)}}},K.prototype.on=function(pe,Oe,Xe){if(Xe===void 0)return ce.prototype.on.call(this,pe,Oe);var ft=this._createDelegatedListener(pe,Oe,Xe);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[pe]=this._delegatedListeners[pe]||[],this._delegatedListeners[pe].push(ft);for(var Lt in ft.delegates)this.on(Lt,ft.delegates[Lt]);return this},K.prototype.once=function(pe,Oe,Xe){if(Xe===void 0)return ce.prototype.once.call(this,pe,Oe);var ft=this._createDelegatedListener(pe,Oe,Xe);for(var Lt in ft.delegates)this.once(Lt,ft.delegates[Lt]);return this},K.prototype.off=function(pe,Oe,Xe){var ft=this;if(Xe===void 0)return ce.prototype.off.call(this,pe,Oe);var Lt=function(Ht){for(var qt=Ht[pe],lr=0;lr180;){var Xe=de.locationPoint(ce);if(Xe.x>=0&&Xe.y>=0&&Xe.x<=de.width&&Xe.y<=de.height)break;ce.lng>de.center.lng?ce.lng-=360:ce.lng+=360}return ce}var ch={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 zh(ce,K,de){var ee=ce.classList;for(var pe in ch)ee.remove("mapboxgl-"+de+"-anchor-"+pe);ee.add("mapboxgl-"+de+"-anchor-"+K)}var cc=function(ce){function K(de,ee){if(ce.call(this),(de instanceof s.window.HTMLElement||ee)&&(de=s.extend({element:de},ee)),s.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=de&&de.anchor||"center",this._color=de&&de.color||"#3FB1CE",this._scale=de&&de.scale||1,this._draggable=de&&de.draggable||!1,this._clickTolerance=de&&de.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=de&&de.rotation||0,this._rotationAlignment=de&&de.rotationAlignment||"auto",this._pitchAlignment=de&&de.pitchAlignment&&de.pitchAlignment!=="auto"?de.pitchAlignment:this._rotationAlignment,!de||!de.element){this._defaultMarker=!0,this._element=S.create("div"),this._element.setAttribute("aria-label","Map marker");var pe=S.createNS("http://www.w3.org/2000/svg","svg"),Oe=41,Xe=27;pe.setAttributeNS(null,"display","block"),pe.setAttributeNS(null,"height",Oe+"px"),pe.setAttributeNS(null,"width",Xe+"px"),pe.setAttributeNS(null,"viewBox","0 0 "+Xe+" "+Oe);var ft=S.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"stroke","none"),ft.setAttributeNS(null,"stroke-width","1"),ft.setAttributeNS(null,"fill","none"),ft.setAttributeNS(null,"fill-rule","evenodd");var Lt=S.createNS("http://www.w3.org/2000/svg","g");Lt.setAttributeNS(null,"fill-rule","nonzero");var Ht=S.createNS("http://www.w3.org/2000/svg","g");Ht.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ht.setAttributeNS(null,"fill","#000000");for(var qt=[{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"}],lr=0,or=qt;lr=pe}this._isDragging&&(this._pos=ee.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new s.Event("dragstart"))),this.fire(new s.Event("drag")))},K.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),this._state==="active"&&this.fire(new s.Event("dragend")),this._state="inactive"},K.prototype._addDragHandler=function(ee){this._element.contains(ee.originalEvent.target)&&(ee.preventDefault(),this._positionDelta=ee.point.sub(this._pos).add(this._offset),this._pointerdownPos=ee.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))},K.prototype.setDraggable=function(ee){return this._draggable=!!ee,this._map&&(ee?(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},K.prototype.isDraggable=function(){return this._draggable},K.prototype.setRotation=function(ee){return this._rotation=ee||0,this._update(),this},K.prototype.getRotation=function(){return this._rotation},K.prototype.setRotationAlignment=function(ee){return this._rotationAlignment=ee||"auto",this._update(),this},K.prototype.getRotationAlignment=function(){return this._rotationAlignment},K.prototype.setPitchAlignment=function(ee){return this._pitchAlignment=ee&&ee!=="auto"?ee:this._rotationAlignment,this._update(),this},K.prototype.getPitchAlignment=function(){return this._pitchAlignment},K}(s.Evented),Uv={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Qu;function hh(ce){Qu!==void 0?ce(Qu):s.window.navigator.permissions!==void 0?s.window.navigator.permissions.query({name:"geolocation"}).then(function(K){Qu=K.state!=="denied",ce(Qu)}):(Qu=!!s.window.navigator.geolocation,ce(Qu))}var hc=0,Sf=!1,Qd=function(ce){function K(de){ce.call(this),this.options=s.extend({},Uv,de),s.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.onAdd=function(ee){return this._map=ee,this._container=S.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),hh(this._setupUI),this._container},K.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(s.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(),S.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,hc=0,Sf=!1},K.prototype._isOutOfMapMaxBounds=function(ee){var pe=this._map.getMaxBounds(),Oe=ee.coords;return pe&&(Oe.longitudepe.getEast()||Oe.latitudepe.getNorth())},K.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");break}},K.prototype._onSuccess=function(ee){if(this._map){if(this._isOutOfMapMaxBounds(ee)){this._setErrorState(),this.fire(new s.Event("outofmaxbounds",ee)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=ee,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");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ee),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(ee),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new s.Event("geolocate",ee)),this._finish()}},K.prototype._updateCamera=function(ee){var pe=new s.LngLat(ee.coords.longitude,ee.coords.latitude),Oe=ee.coords.accuracy,Xe=this._map.getBearing(),ft=s.extend({bearing:Xe},this.options.fitBoundsOptions);this._map.fitBounds(pe.toBounds(Oe),ft,{geolocateSource:!0})},K.prototype._updateMarker=function(ee){if(ee){var pe=new s.LngLat(ee.coords.longitude,ee.coords.latitude);this._accuracyCircleMarker.setLngLat(pe).addTo(this._map),this._userLocationDotMarker.setLngLat(pe).addTo(this._map),this._accuracy=ee.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},K.prototype._updateCircleRadius=function(){var ee=this._map._container.clientHeight/2,pe=this._map.unproject([0,ee]),Oe=this._map.unproject([1,ee]),Xe=pe.distanceTo(Oe),ft=Math.ceil(2*this._accuracy/Xe);this._circleElement.style.width=ft+"px",this._circleElement.style.height=ft+"px"},K.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},K.prototype._onError=function(ee){if(this._map){if(this.options.trackUserLocation)if(ee.code===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._geolocateButton.disabled=!0;var pe=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=pe,this._geolocateButton.setAttribute("aria-label",pe),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ee.code===3&&Sf)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new s.Event("error",ee)),this._finish()}},K.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},K.prototype._setupUI=function(ee){var pe=this;if(this._container.addEventListener("contextmenu",function(ft){return ft.preventDefault()}),this._geolocateButton=S.create("button","mapboxgl-ctrl-geolocate",this._container),S.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ee===!1){s.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Oe=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Oe,this._geolocateButton.setAttribute("aria-label",Oe)}else{var Xe=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=Xe,this._geolocateButton.setAttribute("aria-label",Xe)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=S.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new cc(this._dotElement),this._circleElement=S.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new cc({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(ft){var Lt=ft.originalEvent&&ft.originalEvent.type==="resize";!ft.geolocateSource&&pe._watchState==="ACTIVE_LOCK"&&!Lt&&(pe._watchState="BACKGROUND",pe._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),pe._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),pe.fire(new s.Event("trackuserlocationend")))})},K.prototype.trigger=function(){if(!this._setup)return s.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 s.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":hc--,Sf=!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 s.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 s.Event("trackuserlocationstart"));break}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");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),hc++;var ee;hc>1?(ee={maximumAge:6e5,timeout:0},Sf=!0):(ee=this.options.positionOptions,Sf=!1),this._geolocationWatchID=s.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ee)}}else s.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},K.prototype._clearWatch=function(){s.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)},K}(s.Evented),Vv={maxWidth:100,unit:"metric"},Mf=function(K){this.options=s.extend({},Vv,K),s.bindAll(["_onMove","setUnit"],this)};Mf.prototype.getDefaultPosition=function(){return"bottom-left"},Mf.prototype._onMove=function(){Hv(this._map,this._container,this.options)},Mf.prototype.onAdd=function(K){return this._map=K,this._container=S.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",K.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Mf.prototype.onRemove=function(){S.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Mf.prototype.setUnit=function(K){this.options.unit=K,Hv(this._map,this._container,this.options)};function Hv(ce,K,de){var ee=de&&de.maxWidth||100,pe=ce._container.clientHeight/2,Oe=ce.unproject([0,pe]),Xe=ce.unproject([ee,pe]),ft=Oe.distanceTo(Xe);if(de&&de.unit==="imperial"){var Lt=3.2808*ft;if(Lt>5280){var Ht=Lt/5280;vc(K,ee,Ht,ce._getUIString("ScaleControl.Miles"))}else vc(K,ee,Lt,ce._getUIString("ScaleControl.Feet"))}else if(de&&de.unit==="nautical"){var qt=ft/1852;vc(K,ee,qt,ce._getUIString("ScaleControl.NauticalMiles"))}else ft>=1e3?vc(K,ee,ft/1e3,ce._getUIString("ScaleControl.Kilometers")):vc(K,ee,ft,ce._getUIString("ScaleControl.Meters"))}function vc(ce,K,de,ee){var pe=qd(de),Oe=pe/de;ce.style.width=K*Oe+"px",ce.innerHTML=pe+" "+ee}function $d(ce){var K=Math.pow(10,Math.ceil(-Math.log(ce)/Math.LN10));return Math.round(ce*K)/K}function qd(ce){var K=Math.pow(10,(""+Math.floor(ce)).length-1),de=ce/K;return de=de>=10?10:de>=5?5:de>=3?3:de>=2?2:de>=1?1:$d(de),K*de}var hl=function(K){this._fullscreen=!1,K&&K.container&&(K.container instanceof s.window.HTMLElement?this._container=K.container:s.warnOnce("Full screen control 'container' must be a DOM element.")),s.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in s.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in s.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in s.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in s.window.document&&(this._fullscreenchange="MSFullscreenChange")};hl.prototype.onAdd=function(K){return this._map=K,this._container||(this._container=this._map.getContainer()),this._controlContainer=S.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",s.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},hl.prototype.onRemove=function(){S.remove(this._controlContainer),this._map=null,s.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},hl.prototype._checkFullscreenSupport=function(){return!!(s.window.document.fullscreenEnabled||s.window.document.mozFullScreenEnabled||s.window.document.msFullscreenEnabled||s.window.document.webkitFullscreenEnabled)},hl.prototype._setupUI=function(){var K=this._fullscreenButton=S.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);S.create("span","mapboxgl-ctrl-icon",K).setAttribute("aria-hidden",!0),K.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),s.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},hl.prototype._updateTitle=function(){var K=this._getTitle();this._fullscreenButton.setAttribute("aria-label",K),this._fullscreenButton.title=K},hl.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},hl.prototype._isFullscreen=function(){return this._fullscreen},hl.prototype._changeIcon=function(){var K=s.window.document.fullscreenElement||s.window.document.mozFullScreenElement||s.window.document.webkitFullscreenElement||s.window.document.msFullscreenElement;K===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},hl.prototype._onClickFullscreen=function(){this._isFullscreen()?s.window.document.exitFullscreen?s.window.document.exitFullscreen():s.window.document.mozCancelFullScreen?s.window.document.mozCancelFullScreen():s.window.document.msExitFullscreen?s.window.document.msExitFullscreen():s.window.document.webkitCancelFullScreen&&s.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 ep={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tp=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),G0=function(ce){function K(de){ce.call(this),this.options=s.extend(Object.create(ep),de),s.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return ce&&(K.__proto__=ce),K.prototype=Object.create(ce&&ce.prototype),K.prototype.constructor=K,K.prototype.addTo=function(ee){return this._map&&this.remove(),this._map=ee,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 s.Event("open")),this},K.prototype.isOpen=function(){return!!this._map},K.prototype.remove=function(){return this._content&&S.remove(this._content),this._container&&(S.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 s.Event("close")),this},K.prototype.getLngLat=function(){return this._lngLat},K.prototype.setLngLat=function(ee){return this._lngLat=s.LngLat.convert(ee),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},K.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},K.prototype.getElement=function(){return this._container},K.prototype.setText=function(ee){return this.setDOMContent(s.window.document.createTextNode(ee))},K.prototype.setHTML=function(ee){var pe=s.window.document.createDocumentFragment(),Oe=s.window.document.createElement("body"),Xe;for(Oe.innerHTML=ee;Xe=Oe.firstChild,!!Xe;)pe.appendChild(Xe);return this.setDOMContent(pe)},K.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},K.prototype.setMaxWidth=function(ee){return this.options.maxWidth=ee,this._update(),this},K.prototype.setDOMContent=function(ee){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=S.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ee),this._createCloseButton(),this._update(),this._focusFirstElement(),this},K.prototype.addClassName=function(ee){this._container&&this._container.classList.add(ee)},K.prototype.removeClassName=function(ee){this._container&&this._container.classList.remove(ee)},K.prototype.setOffset=function(ee){return this.options.offset=ee,this._update(),this},K.prototype.toggleClassName=function(ee){if(this._container)return this._container.classList.toggle(ee)},K.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=S.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))},K.prototype._onMouseUp=function(ee){this._update(ee.point)},K.prototype._onMouseMove=function(ee){this._update(ee.point)},K.prototype._onDrag=function(ee){this._update(ee.point)},K.prototype._update=function(ee){var pe=this,Oe=this._lngLat||this._trackPointer;if(!(!this._map||!Oe||!this._content)&&(this._container||(this._container=S.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=S.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(kr){return pe._container.classList.add(kr)}),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=wu(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!ee))){var Xe=this._pos=this._trackPointer&&ee?ee:this._map.project(this._lngLat),ft=this.options.anchor,Lt=rp(this.options.offset);if(!ft){var Ht=this._container.offsetWidth,qt=this._container.offsetHeight,lr;Xe.y+Lt.bottom.ythis._map.transform.height-qt?lr=["bottom"]:lr=[],Xe.xthis._map.transform.width-Ht/2&&lr.push("right"),lr.length===0?ft="bottom":ft=lr.join("-")}var or=Xe.add(Lt[ft]).round();S.setTransform(this._container,ch[ft]+" translate("+or.x+"px,"+or.y+"px)"),zh(this._container,ft,"popup")}},K.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var ee=this._container.querySelector(tp);ee&&ee.focus()}},K.prototype._onClose=function(){this.remove()},K}(s.Evented);function rp(ce){if(ce)if(typeof ce=="number"){var K=Math.round(Math.sqrt(.5*Math.pow(ce,2)));return{center:new s.Point(0,0),top:new s.Point(0,ce),"top-left":new s.Point(K,K),"top-right":new s.Point(-K,K),bottom:new s.Point(0,-ce),"bottom-left":new s.Point(K,-K),"bottom-right":new s.Point(-K,-K),left:new s.Point(ce,0),right:new s.Point(-ce,0)}}else if(ce instanceof s.Point||Array.isArray(ce)){var de=s.Point.convert(ce);return{center:de,top:de,"top-left":de,"top-right":de,bottom:de,"bottom-left":de,"bottom-right":de,left:de,right:de}}else return{center:s.Point.convert(ce.center||[0,0]),top:s.Point.convert(ce.top||[0,0]),"top-left":s.Point.convert(ce["top-left"]||[0,0]),"top-right":s.Point.convert(ce["top-right"]||[0,0]),bottom:s.Point.convert(ce.bottom||[0,0]),"bottom-left":s.Point.convert(ce["bottom-left"]||[0,0]),"bottom-right":s.Point.convert(ce["bottom-right"]||[0,0]),left:s.Point.convert(ce.left||[0,0]),right:s.Point.convert(ce.right||[0,0])};else return rp(new s.Point(0,0))}var oo={version:s.version,supported:L,setRTLTextPlugin:s.setRTLTextPlugin,getRTLTextPluginStatus:s.getRTLTextPluginStatus,Map:Bv,NavigationControl:bu,GeolocateControl:Qd,AttributionControl:Qa,ScaleControl:Mf,FullscreenControl:hl,Popup:G0,Marker:cc,Style:ko,LngLat:s.LngLat,LngLatBounds:s.LngLatBounds,Point:s.Point,MercatorCoordinate:s.MercatorCoordinate,Evented:s.Evented,config:s.config,prewarm:Dt,clearPrewarmedResources:$t,get accessToken(){return s.config.ACCESS_TOKEN},set accessToken(ce){s.config.ACCESS_TOKEN=ce},get baseApiUrl(){return s.config.API_URL},set baseApiUrl(ce){s.config.API_URL=ce},get workerCount(){return dr.workerCount},set workerCount(ce){dr.workerCount=ce},get maxParallelImageRequests(){return s.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(ce){s.config.MAX_PARALLEL_IMAGE_REQUESTS=ce},clearStorage:function(K){s.clearTileCache(K)},workerUrl:""};return oo}),m})},3108:function(G,H,e){G.exports=e(26099)},26099:function(G,H,e){var m=e(64928),P=e(32420),s=e(51160),L=e(76752),S=e(55616),v=e(31264),p=e(47520),r=e(18400),t=e(72512),a=e(76244),n=1073741824;G.exports=function(l,g){g||(g={}),l=p(l,"float64"),g=S(g,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var h=v(g.maxDepth,255),T=v(g.bounds,L(l,2));T[0]===T[2]&&T[2]++,T[1]===T[3]&&T[3]++;var c=f(l,T),i=l.length>>>1,d;g.dtype||(g.dtype="array"),typeof g.dtype=="string"?d=new(t(g.dtype))(i):g.dtype&&(d=g.dtype,Array.isArray(d)&&(d.length=i));for(var x=0;xh||ne>n){for(var X=0;XSe||oe>Ie||Y=se)&&Te!==Re){var Me=w[Fe];Re===void 0&&(Re=Me.length);for(var Ve=Te;Ve=le&&ot<=Z&&Qe>=$&&Qe<=ie&&fe.push(et)}var $e=C[Fe],ht=$e[Te*4+0],vt=$e[Te*4+1],pt=$e[Te*4+2],wt=$e[Te*4+3],Ct=be($e,Te+1),rt=De*.5,ze=Fe+1;ge(xe,_e,rt,ze,ht,vt||pt||wt||Ct),ge(xe,_e+rt,rt,ze,vt,pt||wt||Ct),ge(xe+rt,_e,rt,ze,pt,wt||Ct),ge(xe+rt,_e+rt,rt,ze,wt,Ct)}}}function be(xe,_e){for(var De=null,Fe=0;De===null;)if(De=xe[_e*4+Fe],Fe++,Fe>xe.length)return null;return De}return fe}function O(z,B,W,J,re){for(var ne=[],le=0;le0){t+=Math.abs(v(r[0]));for(var a=1;a2){for(g=0;g=0))throw new Error("precision must be a positive number");var M=Math.pow(10,o||0);return Math.round(A*M)/M}H.round=u;function l(A,o){o===void 0&&(o="kilometers");var M=H.factors[o];if(!M)throw new Error(o+" units is invalid");return A*M}H.radiansToLength=l;function g(A,o){o===void 0&&(o="kilometers");var M=H.factors[o];if(!M)throw new Error(o+" units is invalid");return A/M}H.lengthToRadians=g;function h(A,o){return c(g(A,o))}H.lengthToDegrees=h;function T(A){var o=A%360;return o<0&&(o+=360),o}H.bearingToAzimuth=T;function c(A){var o=A%(2*Math.PI);return o*180/Math.PI}H.radiansToDegrees=c;function i(A){var o=A%360;return o*Math.PI/180}H.degreesToRadians=i;function d(A,o,M){if(o===void 0&&(o="kilometers"),M===void 0&&(M="kilometers"),!(A>=0))throw new Error("length must be a positive number");return l(g(A,o),M)}H.convertLength=d;function x(A,o,M){if(o===void 0&&(o="meters"),M===void 0&&(M="kilometers"),!(A>=0))throw new Error("area must be a positive number");var b=H.areaFactors[o];if(!b)throw new Error("invalid original units");var I=H.areaFactors[M];if(!I)throw new Error("invalid final units");return A/b*I}H.convertArea=x;function w(A){return!isNaN(A)&&A!==null&&!Array.isArray(A)}H.isNumber=w;function C(A){return!!A&&A.constructor===Object}H.isObject=C;function y(A){if(!A)throw new Error("bbox is required");if(!Array.isArray(A))throw new Error("bbox must be an Array");if(A.length!==4&&A.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");A.forEach(function(o){if(!w(o))throw new Error("bbox must only contain numbers")})}H.validateBBox=y;function E(A){if(!A)throw new Error("id is required");if(["string","number"].indexOf(typeof A)===-1)throw new Error("id must be a number or a string")}H.validateId=E},3256:function(G,H,e){Object.defineProperty(H,"__esModule",{value:!0});var m=e(46284);function P(i,d,x){if(i!==null)for(var w,C,y,E,A,o,M,b=0,I=0,D,N=i.type,k=N==="FeatureCollection",O=N==="Feature",F=k?i.features.length:1,z=0;zo||k>M||O>b){A=I,o=w,M=k,b=O,y=0;return}var F=m.lineString([A,I],x.properties);if(d(F,w,C,O,y)===!1)return!1;y++,A=I})===!1)return!1}}})}function l(i,d,x){var w=x,C=!1;return u(i,function(y,E,A,o,M){C===!1&&x===void 0?w=y:w=d(w,y,E,A,o,M),C=!0}),w}function g(i,d){if(!i)throw new Error("geojson is required");n(i,function(x,w,C){if(x.geometry!==null){var y=x.geometry.type,E=x.geometry.coordinates;switch(y){case"LineString":if(d(x,w,C,0,0)===!1)return!1;break;case"Polygon":for(var A=0;AS[0]&&(L[0]=S[0]),L[1]>S[1]&&(L[1]=S[1]),L[2]=0))throw new Error("precision must be a positive number");var M=Math.pow(10,o||0);return Math.round(A*M)/M}H.round=u;function l(A,o){o===void 0&&(o="kilometers");var M=H.factors[o];if(!M)throw new Error(o+" units is invalid");return A*M}H.radiansToLength=l;function g(A,o){o===void 0&&(o="kilometers");var M=H.factors[o];if(!M)throw new Error(o+" units is invalid");return A/M}H.lengthToRadians=g;function h(A,o){return c(g(A,o))}H.lengthToDegrees=h;function T(A){var o=A%360;return o<0&&(o+=360),o}H.bearingToAzimuth=T;function c(A){var o=A%(2*Math.PI);return o*180/Math.PI}H.radiansToDegrees=c;function i(A){var o=A%360;return o*Math.PI/180}H.degreesToRadians=i;function d(A,o,M){if(o===void 0&&(o="kilometers"),M===void 0&&(M="kilometers"),!(A>=0))throw new Error("length must be a positive number");return l(g(A,o),M)}H.convertLength=d;function x(A,o,M){if(o===void 0&&(o="meters"),M===void 0&&(M="kilometers"),!(A>=0))throw new Error("area must be a positive number");var b=H.areaFactors[o];if(!b)throw new Error("invalid original units");var I=H.areaFactors[M];if(!I)throw new Error("invalid final units");return A/b*I}H.convertArea=x;function w(A){return!isNaN(A)&&A!==null&&!Array.isArray(A)}H.isNumber=w;function C(A){return!!A&&A.constructor===Object}H.isObject=C;function y(A){if(!A)throw new Error("bbox is required");if(!Array.isArray(A))throw new Error("bbox must be an Array");if(A.length!==4&&A.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");A.forEach(function(o){if(!w(o))throw new Error("bbox must only contain numbers")})}H.validateBBox=y;function E(A){if(!A)throw new Error("id is required");if(["string","number"].indexOf(typeof A)===-1)throw new Error("id must be a number or a string")}H.validateId=E},84880:function(G,H,e){Object.defineProperty(H,"__esModule",{value:!0});var m=e(76796);function P(i,d,x){if(i!==null)for(var w,C,y,E,A,o,M,b=0,I=0,D,N=i.type,k=N==="FeatureCollection",O=N==="Feature",F=k?i.features.length:1,z=0;zo||k>M||O>b){A=I,o=w,M=k,b=O,y=0;return}var F=m.lineString([A,I],x.properties);if(d(F,w,C,O,y)===!1)return!1;y++,A=I})===!1)return!1}}})}function l(i,d,x){var w=x,C=!1;return u(i,function(y,E,A,o,M){C===!1&&x===void 0?w=y:w=d(w,y,E,A,o,M),C=!0}),w}function g(i,d){if(!i)throw new Error("geojson is required");n(i,function(x,w,C){if(x.geometry!==null){var y=x.geometry.type,E=x.geometry.coordinates;switch(y){case"LineString":if(d(x,w,C,0,0)===!1)return!1;break;case"Polygon":for(var A=0;A=0))throw new Error("precision must be a positive number");var F=Math.pow(10,O||0);return Math.round(k*F)/F}H.round=u;function l(k,O){O===void 0&&(O="kilometers");var F=H.factors[O];if(!F)throw new Error(O+" units is invalid");return k*F}H.radiansToLength=l;function g(k,O){O===void 0&&(O="kilometers");var F=H.factors[O];if(!F)throw new Error(O+" units is invalid");return k/F}H.lengthToRadians=g;function h(k,O){return c(g(k,O))}H.lengthToDegrees=h;function T(k){var O=k%360;return O<0&&(O+=360),O}H.bearingToAzimuth=T;function c(k){var O=k%(2*Math.PI);return O*180/Math.PI}H.radiansToDegrees=c;function i(k){var O=k%360;return O*Math.PI/180}H.degreesToRadians=i;function d(k,O,F){if(O===void 0&&(O="kilometers"),F===void 0&&(F="kilometers"),!(k>=0))throw new Error("length must be a positive number");return l(g(k,O),F)}H.convertLength=d;function x(k,O,F){if(O===void 0&&(O="meters"),F===void 0&&(F="kilometers"),!(k>=0))throw new Error("area must be a positive number");var z=H.areaFactors[O];if(!z)throw new Error("invalid original units");var B=H.areaFactors[F];if(!B)throw new Error("invalid final units");return k/z*B}H.convertArea=x;function w(k){return!isNaN(k)&&k!==null&&!Array.isArray(k)&&!/^\s*$/.test(k)}H.isNumber=w;function C(k){return!!k&&k.constructor===Object}H.isObject=C;function y(k){if(!k)throw new Error("bbox is required");if(!Array.isArray(k))throw new Error("bbox must be an Array");if(k.length!==4&&k.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");k.forEach(function(O){if(!w(O))throw new Error("bbox must only contain numbers")})}H.validateBBox=y;function E(k){if(!k)throw new Error("id is required");if(["string","number"].indexOf(typeof k)===-1)throw new Error("id must be a number or a string")}H.validateId=E;function A(){throw new Error("method has been renamed to `radiansToDegrees`")}H.radians2degrees=A;function o(){throw new Error("method has been renamed to `degreesToRadians`")}H.degrees2radians=o;function M(){throw new Error("method has been renamed to `lengthToDegrees`")}H.distanceToDegrees=M;function b(){throw new Error("method has been renamed to `lengthToRadians`")}H.distanceToRadians=b;function I(){throw new Error("method has been renamed to `radiansToLength`")}H.radiansToDistance=I;function D(){throw new Error("method has been renamed to `bearingToAzimuth`")}H.bearingToAngle=D;function N(){throw new Error("method has been renamed to `convertLength`")}H.convertDistance=N},43752:function(G,H,e){Object.defineProperty(H,"__esModule",{value:!0});var m=e(49840);function P(i,d,x){if(i!==null)for(var w,C,y,E,A,o,M,b=0,I=0,D,N=i.type,k=N==="FeatureCollection",O=N==="Feature",F=k?i.features.length:1,z=0;zo||k>M||O>b){A=I,o=w,M=k,b=O,y=0;return}var F=m.lineString([A,I],x.properties);if(d(F,w,C,O,y)===!1)return!1;y++,A=I})===!1)return!1}}})}function l(i,d,x){var w=x,C=!1;return u(i,function(y,E,A,o,M){C===!1&&x===void 0?w=y:w=d(w,y,E,A,o,M),C=!0}),w}function g(i,d){if(!i)throw new Error("geojson is required");n(i,function(x,w,C){if(x.geometry!==null){var y=x.geometry.type,E=x.geometry.coordinates;switch(y){case"LineString":if(d(x,w,C,0,0)===!1)return!1;break;case"Polygon":for(var A=0;AL&&(L=e[v]),e[v]1?ne-1:0),$=1;$1?ne-1:0),$=1;$1?ne-1:0),$=1;$1?ne-1:0),$=1;$ * @license MIT - */function O(Fe,Te){if(Fe===Te)return 0;for(var Re=Fe.length,Se=Te.length,Ie=0,Me=Math.min(Re,Se);Ie"u"?[]:new Uint8Array(256),s=0;s>2],a+=m[(p[r]&3)<<4|p[r+1]>>4],a+=m[(p[r+1]&15)<<2|p[r+2]>>6],a+=m[p[r+2]&63];return t%3===2?a=a.substring(0,a.length-1)+"=":t%3===1&&(a=a.substring(0,a.length-2)+"=="),a},S=function(v){var p=v.length*.75,r=v.length,t,a=0,n,f,u,l;v[v.length-1]==="="&&(p--,v[v.length-2]==="="&&p--);var g=new ArrayBuffer(p),h=new Uint8Array(g);for(t=0;t>4,h[a++]=(f&15)<<4|u>>2,h[a++]=(u&3)<<6|l&63;return g}},59968:function(G,H){H.byteLength=p,H.toByteArray=t,H.fromByteArray=f;for(var e=[],m=[],P=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=0,S=s.length;L0)throw new Error("Invalid string. Length must be a multiple of 4");var g=u.indexOf("=");g===-1&&(g=l);var h=g===l?0:4-g%4;return[g,h]}function p(u){var l=v(u),g=l[0],h=l[1];return(g+h)*3/4-h}function r(u,l,g){return(l+g)*3/4-g}function t(u){var l,g=v(u),h=g[0],T=g[1],c=new P(r(u,h,T)),i=0,d=T>0?h-4:h,x;for(x=0;x>16&255,c[i++]=l>>8&255,c[i++]=l&255;return T===2&&(l=m[u.charCodeAt(x)]<<2|m[u.charCodeAt(x+1)]>>4,c[i++]=l&255),T===1&&(l=m[u.charCodeAt(x)]<<10|m[u.charCodeAt(x+1)]<<4|m[u.charCodeAt(x+2)]>>2,c[i++]=l>>8&255,c[i++]=l&255),c}function a(u){return e[u>>18&63]+e[u>>12&63]+e[u>>6&63]+e[u&63]}function n(u,l,g){for(var h,T=[],c=l;cd?d:i+c));return h===1?(l=u[g-1],T.push(e[l>>2]+e[l<<4&63]+"==")):h===2&&(l=(u[g-2]<<8)+u[g-1],T.push(e[l>>10]+e[l>>4&63]+e[l<<2&63]+"=")),T.join("")}},64928:function(G){function H(S,v,p,r,t){for(var a=t+1;r<=t;){var n=r+t>>>1,f=S[n],u=p!==void 0?p(f,v):f-v;u>=0?(a=n,t=n-1):r=n+1}return a}function e(S,v,p,r,t){for(var a=t+1;r<=t;){var n=r+t>>>1,f=S[n],u=p!==void 0?p(f,v):f-v;u>0?(a=n,t=n-1):r=n+1}return a}function m(S,v,p,r,t){for(var a=r-1;r<=t;){var n=r+t>>>1,f=S[n],u=p!==void 0?p(f,v):f-v;u<0?(a=n,r=n+1):t=n-1}return a}function P(S,v,p,r,t){for(var a=r-1;r<=t;){var n=r+t>>>1,f=S[n],u=p!==void 0?p(f,v):f-v;u<=0?(a=n,r=n+1):t=n-1}return a}function s(S,v,p,r,t){for(;r<=t;){var a=r+t>>>1,n=S[a],f=p!==void 0?p(n,v):n-v;if(f===0)return a;f<=0?r=a+1:t=a-1}return-1}function L(S,v,p,r,t,a){return typeof p=="function"?a(S,v,p,r===void 0?0:r|0,t===void 0?S.length-1:t|0):a(S,v,void 0,p===void 0?0:p|0,r===void 0?S.length-1:r|0)}G.exports={ge:function(S,v,p,r,t){return L(S,v,p,r,t,H)},gt:function(S,v,p,r,t){return L(S,v,p,r,t,e)},lt:function(S,v,p,r,t){return L(S,v,p,r,t,m)},le:function(S,v,p,r,t){return L(S,v,p,r,t,P)},eq:function(S,v,p,r,t){return L(S,v,p,r,t,s)}}},308:function(G,H){"use restrict";var e=32;H.INT_BITS=e,H.INT_MAX=2147483647,H.INT_MIN=-1<0)-(s<0)},H.abs=function(s){var L=s>>e-1;return(s^L)-L},H.min=function(s,L){return L^(s^L)&-(s65535)<<4,s>>>=L,S=(s>255)<<3,s>>>=S,L|=S,S=(s>15)<<2,s>>>=S,L|=S,S=(s>3)<<1,s>>>=S,L|=S,L|s>>1},H.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},H.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function m(s){var L=32;return s&=-s,s&&L--,s&65535&&(L-=16),s&16711935&&(L-=8),s&252645135&&(L-=4),s&858993459&&(L-=2),s&1431655765&&(L-=1),L}H.countTrailingZeros=m,H.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},H.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},H.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var P=new Array(256);(function(s){for(var L=0;L<256;++L){var S=L,v=L,p=7;for(S>>>=1;S;S>>>=1)v<<=1,v|=S&1,--p;s[L]=v<>>8&255]<<16|P[s>>>16&255]<<8|P[s>>>24&255]},H.interleave2=function(s,L){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,L&=65535,L=(L|L<<8)&16711935,L=(L|L<<4)&252645135,L=(L|L<<2)&858993459,L=(L|L<<1)&1431655765,s|L<<1},H.deinterleave2=function(s,L){return s=s>>>L&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},H.interleave3=function(s,L,S){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,L&=1023,L=(L|L<<16)&4278190335,L=(L|L<<8)&251719695,L=(L|L<<4)&3272356035,L=(L|L<<2)&1227133513,s|=L<<1,S&=1023,S=(S|S<<16)&4278190335,S=(S|S<<8)&251719695,S=(S|S<<4)&3272356035,S=(S|S<<2)&1227133513,s|S<<2},H.deinterleave3=function(s,L){return s=s>>>L&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},H.nextCombination=function(s){var L=s|s-1;return L+1|(~L&-~L)-1>>>m(s)+1}},29620:function(G,H,e){var m=e(32420);G.exports=s;var P=1e20;function s(v,p){p||(p={});var r=p.cutoff==null?.25:p.cutoff,t=p.radius==null?8:p.radius,a=p.channel||0,n,f,u,l,g,h,T,c,i,d,x;if(ArrayBuffer.isView(v)||Array.isArray(v)){if(!p.width||!p.height)throw Error("For raw data width and height should be provided by options");n=p.width,f=p.height,l=v,p.stride?h=p.stride:h=Math.floor(v.length/n/f)}else window.HTMLCanvasElement&&v instanceof window.HTMLCanvasElement?(c=v,T=c.getContext("2d"),n=c.width,f=c.height,i=T.getImageData(0,0,n,f),l=i.data,h=4):window.CanvasRenderingContext2D&&v instanceof window.CanvasRenderingContext2D?(c=v.canvas,T=v,n=c.width,f=c.height,i=T.getImageData(0,0,n,f),l=i.data,h=4):window.ImageData&&v instanceof window.ImageData&&(i=v,n=v.width,f=v.height,l=i.data,h=4);if(u=Math.max(n,f),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(g=l,l=Array(n*f),d=0,x=g.length;d-1?P(p):p}},57916:function(G,H,e){var m=e(8844),P=e(53664),s=e(14500),L=P("%TypeError%"),S=P("%Function.prototype.apply%"),v=P("%Function.prototype.call%"),p=P("%Reflect.apply%",!0)||m.call(v,S),r=P("%Object.defineProperty%",!0),t=P("%Math.max%");if(r)try{r({},"a",{value:1})}catch{r=null}G.exports=function(f){if(typeof f!="function")throw new L("a function is required");var u=p(m,v,arguments);return s(u,1+t(0,f.length-(arguments.length-1)),!0)};var a=function(){return p(m,S,arguments)};r?r(G.exports,"apply",{value:a}):G.exports.apply=a},32420:function(G){G.exports=H;function H(e,m,P){return mP?P:e:em?m:e}},3808:function(G,H,e){var m=e(32420);G.exports=P,G.exports.to=P,G.exports.from=s;function P(L,S){S==null&&(S=!0);var v=L[0],p=L[1],r=L[2],t=L[3];t==null&&(t=S?1:255),S&&(v*=255,p*=255,r*=255,t*=255),v=m(v,0,255)&255,p=m(p,0,255)&255,r=m(r,0,255)&255,t=m(t,0,255)&255;var a=v*16777216+(p<<16)+(r<<8)+t;return a}function s(L,S){L=+L;var v=L>>>24,p=(L&16711680)>>>16,r=(L&65280)>>>8,t=L&255;return S===!1?[v,p,r,t]:[v/255,p/255,r/255,t/255]}},17592:function(G){G.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(G,H,e){var m=e(96824),P=e(32420),s=e(72512);G.exports=function(v,p){(p==="float"||!p)&&(p="array"),p==="uint"&&(p="uint8"),p==="uint_clamped"&&(p="uint8_clamped");var r=s(p),t=new r(4),a=p!=="uint8"&&p!=="uint8_clamped";return(!v.length||typeof v=="string")&&(v=m(v),v[0]/=255,v[1]/=255,v[2]/=255),L(v)?(t[0]=v[0],t[1]=v[1],t[2]=v[2],t[3]=v[3]!=null?v[3]:255,a&&(t[0]/=255,t[1]/=255,t[2]/=255,t[3]/=255),t):(a?(t[0]=v[0],t[1]=v[1],t[2]=v[2],t[3]=v[3]!=null?v[3]:1):(t[0]=P(Math.floor(v[0]*255),0,255),t[1]=P(Math.floor(v[1]*255),0,255),t[2]=P(Math.floor(v[2]*255),0,255),t[3]=v[3]==null?255:P(Math.floor(v[3]*255),0,255)),t)};function L(S){return!!(S instanceof Uint8Array||S instanceof Uint8ClampedArray||Array.isArray(S)&&(S[0]>1||S[0]===0)&&(S[1]>1||S[1]===0)&&(S[2]>1||S[2]===0)&&(!S[3]||S[3]>1))}},96824:function(G,H,e){var m=e(95532),P=e(53576),s=e(32420);G.exports=function(S){var v,p=m(S);return p.space?(v=Array(3),v[0]=s(p.values[0],0,255),v[1]=s(p.values[1],0,255),v[2]=s(p.values[2],0,255),p.space[0]==="h"&&(v=P.rgb(v)),v.push(s(p.alpha,0,1)),v):[]}},95532:function(G,H,e){var m=e(17592);G.exports=s;var P={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function s(L){var S,v=[],p=1,r;if(typeof L=="string")if(L=L.toLowerCase(),m[L])v=m[L].slice(),r="rgb";else if(L==="transparent")p=0,r="rgb",v=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(L)){var t=L.slice(1),a=t.length,n=a<=4;p=1,n?(v=[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)],a===4&&(p=parseInt(t[3]+t[3],16)/255)):(v=[parseInt(t[0]+t[1],16),parseInt(t[2]+t[3],16),parseInt(t[4]+t[5],16)],a===8&&(p=parseInt(t[6]+t[7],16)/255)),v[0]||(v[0]=0),v[1]||(v[1]=0),v[2]||(v[2]=0),r="rgb"}else if(S=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(L)){var f=S[1],u=f==="rgb",t=f.replace(/a$/,"");r=t;var a=t==="cmyk"?4:t==="gray"?1:3;v=S[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,T){if(/%$/.test(h))return T===a?parseFloat(h)/100:t==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(t[T]==="h"){if(/deg$/.test(h))return parseFloat(h);if(P[h]!==void 0)return P[h]}return parseFloat(h)}),f===t&&v.push(1),p=u||v[a]===void 0?1:v[a],v=v.slice(0,a)}else L.length>10&&/[0-9](?:\s|\/)/.test(L)&&(v=L.match(/([0-9]+)/g).map(function(l){return parseFloat(l)}),r=L.match(/([a-z])/ig).join("").toLowerCase());else isNaN(L)?Array.isArray(L)||L.length?(v=[L[0],L[1],L[2]],r="rgb",p=L.length===4?L[3]:1):L instanceof Object&&(L.r!=null||L.red!=null||L.R!=null?(r="rgb",v=[L.r||L.red||L.R||0,L.g||L.green||L.G||0,L.b||L.blue||L.B||0]):(r="hsl",v=[L.h||L.hue||L.H||0,L.s||L.saturation||L.S||0,L.l||L.lightness||L.L||L.b||L.brightness]),p=L.a||L.alpha||L.opacity||1,L.opacity!=null&&(p/=100)):(r="rgb",v=[L>>>16,(L&65280)>>>8,L&255]);return{space:r,values:v,alpha:p}}},53576:function(G,H,e){var m=e(19336);G.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(P){var s=P[0]/360,L=P[1]/100,S=P[2]/100,v,p,r,t,a;if(L===0)return a=S*255,[a,a,a];S<.5?p=S*(1+L):p=S+L-S*L,v=2*S-p,t=[0,0,0];for(var n=0;n<3;n++)r=s+.3333333333333333*-(n-1),r<0?r++:r>1&&r--,6*r<1?a=v+(p-v)*6*r:2*r<1?a=p:3*r<2?a=v+(p-v)*(.6666666666666666-r)*6:a=v,t[n]=a*255;return t}},m.hsl=function(P){var s=P[0]/255,L=P[1]/255,S=P[2]/255,v=Math.min(s,L,S),p=Math.max(s,L,S),r=p-v,t,a,n;return p===v?t=0:s===p?t=(L-S)/r:L===p?t=2+(S-s)/r:S===p&&(t=4+(s-L)/r),t=Math.min(t*60,360),t<0&&(t+=360),n=(v+p)/2,p===v?a=0:n<=.5?a=r/(p+v):a=r/(2-p-v),[t,a*100,n*100]}},19336:function(G){G.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(G){G.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(G,H,e){G.exports={parse:e(46416),stringify:e(49395)}},8744:function(G,H,e){var m=e(30584);G.exports={isSize:function(s){return/^[\d\.]/.test(s)||s.indexOf("/")!==-1||m.indexOf(s)!==-1}}},46416:function(G,H,e){var m=e(92384),P=e(68194),s=e(3748),L=e(2904),S=e(47916),v=e(7294),p=e(39956),r=e(8744).isSize;G.exports=a;var t=a.cache={};function a(f){if(typeof f!="string")throw new Error("Font argument must be a string.");if(t[f])return t[f];if(f==="")throw new Error("Cannot parse an empty string.");if(s.indexOf(f)!==-1)return t[f]={system:f};for(var u={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},l=p(f,/\s+/),g;g=l.shift();){if(P.indexOf(g)!==-1)return["style","variant","weight","stretch"].forEach(function(T){u[T]=g}),t[f]=u;if(S.indexOf(g)!==-1){u.style=g;continue}if(g==="normal"||g==="small-caps"){u.variant=g;continue}if(v.indexOf(g)!==-1){u.stretch=g;continue}if(L.indexOf(g)!==-1){u.weight=g;continue}if(r(g)){var h=p(g,"/");if(u.size=h[0],h[1]!=null?u.lineHeight=n(h[1]):l[0]==="/"&&(l.shift(),u.lineHeight=n(l.shift())),!l.length)throw new Error("Missing required font-family.");return u.family=p(l.join(" "),/\s*,\s*/).map(m),t[f]=u}throw new Error("Unknown or unsupported font token: "+g)}throw new Error("Missing required font-size.")}function n(f){var u=parseFloat(f);return u.toString()===f?u:f}},49395:function(G,H,e){var m=e(55616),P=e(8744).isSize,s=f(e(68194)),L=f(e(3748)),S=f(e(2904)),v=f(e(47916)),p=f(e(7294)),r={normal:1,"small-caps":1},t={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},a={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};G.exports=function(l){if(l=m(l,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),l.system)return l.system&&n(l.system,L),l.system;if(n(l.style,v),n(l.variant,r),n(l.weight,S),n(l.stretch,p),l.size==null&&(l.size=a.size),typeof l.size=="number"&&(l.size+="px"),!P)throw Error("Bad size value `"+l.size+"`");l.family||(l.family=a.family),Array.isArray(l.family)&&(l.family.length||(l.family=[a.family]),l.family=l.family.map(function(h){return t[h]?h:'"'+h+'"'}).join(", "));var g=[];return g.push(l.style),l.variant!==l.style&&g.push(l.variant),l.weight!==l.variant&&l.weight!==l.style&&g.push(l.weight),l.stretch!==l.weight&&l.stretch!==l.variant&&l.stretch!==l.style&&g.push(l.stretch),g.push(l.size+(l.lineHeight==null||l.lineHeight==="normal"||l.lineHeight+""=="1"?"":"/"+l.lineHeight)),g.push(l.family),g.filter(Boolean).join(" ")};function n(u,l){if(u&&!l[u]&&!s[u])throw Error("Unknown keyword `"+u+"`");return u}function f(u){for(var l={},g=0;gf?1:n>=f?0:NaN}function P(n){return n.length===1&&(n=s(n)),{left:function(f,u,l,g){for(l==null&&(l=0),g==null&&(g=f.length);l>>1;n(f[h],u)<0?l=h+1:g=h}return l},right:function(f,u,l,g){for(l==null&&(l=0),g==null&&(g=f.length);l>>1;n(f[h],u)>0?g=h:l=h+1}return l}}}function s(n){return function(f,u){return m(n(f),u)}}P(m);function L(n,f){var u=n.length,l=-1,g,h;if(f==null){for(;++l=g)for(h=g;++lh&&(h=g)}else for(;++l=g)for(h=g;++lh&&(h=g);return h}function S(n){return n===null?NaN:+n}function v(n,f){var u=n.length,l=u,g=-1,h,T=0;if(f==null)for(;++g=0;)for(T=n[f],u=T.length;--u>=0;)h[--g]=T[u];return h}function r(n,f){var u=n.length,l=-1,g,h;if(f==null){for(;++l=g)for(h=g;++lg&&(h=g)}else for(;++l=g)for(h=g;++lg&&(h=g);return h}function t(n,f,u){n=+n,f=+f,u=(g=arguments.length)<2?(f=n,n=0,1):g<3?1:+u;for(var l=-1,g=Math.max(0,Math.ceil((f-n)/u))|0,h=new Array(g);++l=f.length)return l!=null&&i.sort(l),g!=null?g(i):i;for(var C=-1,y=i.length,E=f[d++],A,o,M=L(),b,I=x();++Cf.length)return i;var x,w=u[d-1];return g!=null&&d>=f.length?x=i.entries():(x=[],i.each(function(C,y){x.push({key:y,values:c(C,d)})})),w!=null?x.sort(function(C,y){return w(C.key,y.key)}):x}return h={object:function(i){return T(i,0,v,p)},map:function(i){return T(i,0,r,t)},entries:function(i){return c(T(i,0,r,t),0)},key:function(i){return f.push(i),h},sortKeys:function(i){return u[f.length-1]=i,h},sortValues:function(i){return l=i,h},rollup:function(i){return g=i,h}}}function v(){return{}}function p(f,u,l){f[u]=l}function r(){return L()}function t(f,u,l){f.set(u,l)}function a(){}var n=L.prototype;a.prototype={constructor:a,has:n.has,add:function(f){return f+="",this[m+f]=f,this},remove:n.remove,clear:n.clear,values:n.keys,size:n.size,empty:n.empty,each:n.each}},49812:function(G,H,e){e.r(H),e.d(H,{forceCenter:function(){return m},forceCollide:function(){return M},forceLink:function(){return N},forceManyBody:function(){return Ve},forceRadial:function(){return et},forceSimulation:function(){return Me},forceX:function(){return ot},forceY:function(){return Qe}});function m($e,ht){var vt;$e==null&&($e=0),ht==null&&(ht=0);function pt(){var wt,Ct=vt.length,rt,ze=0,He=0;for(wt=0;wt=(Le=(ze+We)/2))?ze=Le:We=Le,(me=vt>=(Pe=(He+Ge)/2))?He=Pe:Ge=Pe,wt=Ct,!(Ct=Ct[Ne=me<<1|he]))return wt[Ne]=rt,$e;if(je=+$e._x.call(null,Ct.data),Ce=+$e._y.call(null,Ct.data),ht===je&&vt===Ce)return rt.next=Ct,wt?wt[Ne]=rt:$e._root=rt,$e;do wt=wt?wt[Ne]=new Array(4):$e._root=new Array(4),(he=ht>=(Le=(ze+We)/2))?ze=Le:We=Le,(me=vt>=(Pe=(He+Ge)/2))?He=Pe:Ge=Pe;while((Ne=me<<1|he)===(Ze=(Ce>=Pe)<<1|je>=Le));return wt[Ze]=Ct,wt[Ne]=rt,$e}function v($e){var ht,vt,pt=$e.length,wt,Ct,rt=new Array(pt),ze=new Array(pt),He=1/0,We=1/0,Ge=-1/0,Le=-1/0;for(vt=0;vtGe&&(Ge=wt),CtLe&&(Le=Ct));if(He>Ge||We>Le)return this;for(this.cover(He,We).cover(Ge,Le),vt=0;vt$e||$e>=wt||pt>ht||ht>=Ct;)switch(We=(htGe||(ze=Ce.y0)>Le||(He=Ce.x1)=Ne)<<1|$e>=me)&&(Ce=Pe[Pe.length-1],Pe[Pe.length-1]=Pe[Pe.length-1-he],Pe[Pe.length-1-he]=Ce)}else{var Ze=$e-+this._x.call(null,je.data),st=ht-+this._y.call(null,je.data),lt=Ze*Ze+st*st;if(lt=(Pe=(rt+He)/2))?rt=Pe:He=Pe,(he=Le>=(je=(ze+We)/2))?ze=je:We=je,ht=vt,!(vt=vt[me=he<<1|Ce]))return this;if(!vt.length)break;(ht[me+1&3]||ht[me+2&3]||ht[me+3&3])&&(pt=ht,Ne=me)}for(;vt.data!==$e;)if(wt=vt,!(vt=vt.next))return this;return(Ct=vt.next)&&delete vt.next,wt?(Ct?wt.next=Ct:delete wt.next,this):ht?(Ct?ht[me]=Ct:delete ht[me],(vt=ht[0]||ht[1]||ht[2]||ht[3])&&vt===(ht[3]||ht[2]||ht[1]||ht[0])&&!vt.length&&(pt?pt[Ne]=vt:this._root=vt),this):(this._root=Ct,this)}function u($e){for(var ht=0,vt=$e.length;htLe.index){var gr=Pe-Tt.x-Tt.vx,gt=je-Tt.y-Tt.vy,Kt=gr*gr+gt*gt;KtPe+Xt||Wtje+Xt||ZtHe.r&&(He.r=He[We].r)}function ze(){if(ht){var He,We=ht.length,Ge;for(vt=new Array(We),He=0;He=0&&(pt=vt.slice(wt+1),vt=vt.slice(0,wt)),vt&&!ht.hasOwnProperty(vt))throw new Error("unknown type: "+vt);return{type:vt,name:pt}})}F.prototype=O.prototype={constructor:F,on:function($e,ht){var vt=this._,pt=z($e+"",vt),wt,Ct=-1,rt=pt.length;if(arguments.length<2){for(;++Ct0)for(var vt=new Array(wt),pt=0,wt,Ct;pt=0&&$e._call.call(null,ht),$e=$e._next;--re}function xe(){Q=(X=Y.now())+oe,re=ne=0;try{be()}finally{re=0,De(),Q=0}}function _e(){var $e=Y.now(),ht=$e-X;ht>$&&(oe-=ht,X=$e)}function De(){for(var $e,ht=Z,vt,pt=1/0;ht;)ht._call?(pt>ht._time&&(pt=ht._time),$e=ht,ht=ht._next):(vt=ht._next,ht._next=null,ht=$e?$e._next=vt:Z=vt);ie=$e,Fe(pt)}function Fe($e){if(!re){ne&&(ne=clearTimeout(ne));var ht=$e-Q;ht>24?($e<1/0&&(ne=setTimeout(xe,$e-Y.now()-oe)),le&&(le=clearInterval(le))):(le||(X=Y.now(),le=setInterval(_e,$)),re=1,j(xe))}}function Te($e){return $e.x}function Re($e){return $e.y}var Se=10,Ie=Math.PI*(3-Math.sqrt(5));function Me($e){var ht,vt=1,pt=.001,wt=1-Math.pow(pt,1/300),Ct=0,rt=.6,ze=(0,b.kH)(),He=ge(Ge),We=J("tick","end");$e==null&&($e=[]);function Ge(){Le(),We.call("tick",ht),vt1?(he==null?ze.remove(Ce):ze.set(Ce,je(he)),ht):ze.get(Ce)},find:function(Ce,he,me){var Ne=0,Ze=$e.length,st,lt,Wt,Zt,Tt;for(me==null?me=1/0:me*=me,Ne=0;Ne1?(We.on(Ce,he),ht):We.on(Ce)}}}function Ve(){var $e,ht,vt,pt=P(-30),wt,Ct=1,rt=1/0,ze=.81;function He(Pe){var je,Ce=$e.length,he=w($e,Te,Re).visitAfter(Ge);for(vt=Pe,je=0;je=rt)return;(Pe.data!==ht||Pe.next)&&(me===0&&(me=s(),st+=me*me),Ne===0&&(Ne=s(),st+=Ne*Ne),st=1e21?x.toLocaleString("en").replace(/,/g,""):x.toString(10)}function P(x,w){if((C=(x=w?x.toExponential(w-1):x.toExponential()).indexOf("e"))<0)return null;var C,y=x.slice(0,C);return[y.length>1?y[0]+y.slice(2):y,+x.slice(C+1)]}function s(x){return x=P(Math.abs(x)),x?x[1]:NaN}function L(x,w){return function(C,y){for(var E=C.length,A=[],o=0,M=x[0],b=0;E>0&&M>0&&(b+M+1>y&&(M=Math.max(1,y-b)),A.push(C.substring(E-=M,E+M)),!((b+=M+1)>y));)M=x[o=(o+1)%x.length];return A.reverse().join(w)}}function S(x){return function(w){return w.replace(/[0-9]/g,function(C){return x[+C]})}}var v=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function p(x){if(!(w=v.exec(x)))throw new Error("invalid format: "+x);var w;return new r({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}p.prototype=r.prototype;function r(x){this.fill=x.fill===void 0?" ":x.fill+"",this.align=x.align===void 0?">":x.align+"",this.sign=x.sign===void 0?"-":x.sign+"",this.symbol=x.symbol===void 0?"":x.symbol+"",this.zero=!!x.zero,this.width=x.width===void 0?void 0:+x.width,this.comma=!!x.comma,this.precision=x.precision===void 0?void 0:+x.precision,this.trim=!!x.trim,this.type=x.type===void 0?"":x.type+""}r.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function t(x){e:for(var w=x.length,C=1,y=-1,E;C0&&(y=0);break}return y>0?x.slice(0,y)+x.slice(E+1):x}var a;function n(x,w){var C=P(x,w);if(!C)return x+"";var y=C[0],E=C[1],A=E-(a=Math.max(-8,Math.min(8,Math.floor(E/3)))*3)+1,o=y.length;return A===o?y:A>o?y+new Array(A-o+1).join("0"):A>0?y.slice(0,A)+"."+y.slice(A):"0."+new Array(1-A).join("0")+P(x,Math.max(0,w+A-1))[0]}function f(x,w){var C=P(x,w);if(!C)return x+"";var y=C[0],E=C[1];return E<0?"0."+new Array(-E).join("0")+y:y.length>E+1?y.slice(0,E+1)+"."+y.slice(E+1):y+new Array(E-y.length+2).join("0")}var u={"%":function(x,w){return(x*100).toFixed(w)},b:function(x){return Math.round(x).toString(2)},c:function(x){return x+""},d:m,e:function(x,w){return x.toExponential(w)},f:function(x,w){return x.toFixed(w)},g:function(x,w){return x.toPrecision(w)},o:function(x){return Math.round(x).toString(8)},p:function(x,w){return f(x*100,w)},r:f,s:n,X:function(x){return Math.round(x).toString(16).toUpperCase()},x:function(x){return Math.round(x).toString(16)}};function l(x){return x}var g=Array.prototype.map,h=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function T(x){var w=x.grouping===void 0||x.thousands===void 0?l:L(g.call(x.grouping,Number),x.thousands+""),C=x.currency===void 0?"":x.currency[0]+"",y=x.currency===void 0?"":x.currency[1]+"",E=x.decimal===void 0?".":x.decimal+"",A=x.numerals===void 0?l:S(g.call(x.numerals,String)),o=x.percent===void 0?"%":x.percent+"",M=x.minus===void 0?"-":x.minus+"",b=x.nan===void 0?"NaN":x.nan+"";function I(N){N=p(N);var k=N.fill,O=N.align,F=N.sign,z=N.symbol,B=N.zero,W=N.width,J=N.comma,re=N.precision,ne=N.trim,le=N.type;le==="n"?(J=!0,le="g"):u[le]||(re===void 0&&(re=12),ne=!0,le="g"),(B||k==="0"&&O==="=")&&(B=!0,k="0",O="=");var $=z==="$"?C:z==="#"&&/[boxX]/.test(le)?"0"+le.toLowerCase():"",Z=z==="$"?y:/[%p]/.test(le)?o:"",ie=u[le],X=/[defgprs%]/.test(le);re=re===void 0?6:/[gprs]/.test(le)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function Q(oe){var Y=$,j=Z,se,te,fe;if(le==="c")j=ie(oe)+j,oe="";else{oe=+oe;var ge=oe<0||1/oe<0;if(oe=isNaN(oe)?b:ie(Math.abs(oe),re),ne&&(oe=t(oe)),ge&&+oe==0&&F!=="+"&&(ge=!1),Y=(ge?F==="("?F:M:F==="-"||F==="("?"":F)+Y,j=(le==="s"?h[8+a/3]:"")+j+(ge&&F==="("?")":""),X){for(se=-1,te=oe.length;++sefe||fe>57){j=(fe===46?E+oe.slice(se+1):oe.slice(se))+j,oe=oe.slice(0,se);break}}}J&&!B&&(oe=w(oe,1/0));var be=Y.length+oe.length+j.length,xe=be>1)+Y+oe+j+xe.slice(be);break;default:oe=xe+Y+oe+j;break}return A(oe)}return Q.toString=function(){return N+""},Q}function D(N,k){var O=I((N=p(N),N.type="f",N)),F=Math.max(-8,Math.min(8,Math.floor(s(k)/3)))*3,z=Math.pow(10,-F),B=h[8+F/3];return function(W){return O(z*W)+B}}return{format:I,formatPrefix:D}}var c,i;d({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function d(x){return c=T(x),i=c.format,c.formatPrefix,c}},87108:function(G,H,e){e.r(H),e.d(H,{geoAiry:function(){return B},geoAiryRaw:function(){return z},geoAitoff:function(){return J},geoAitoffRaw:function(){return W},geoArmadillo:function(){return ne},geoArmadilloRaw:function(){return re},geoAugust:function(){return $},geoAugustRaw:function(){return le},geoBaker:function(){return Q},geoBakerRaw:function(){return X},geoBerghaus:function(){return j},geoBerghausRaw:function(){return Y},geoBertin1953:function(){return De},geoBertin1953Raw:function(){return _e},geoBoggs:function(){return et},geoBoggsRaw:function(){return Ve},geoBonne:function(){return vt},geoBonneRaw:function(){return ht},geoBottomley:function(){return wt},geoBottomleyRaw:function(){return pt},geoBromley:function(){return rt},geoBromleyRaw:function(){return Ct},geoChamberlin:function(){return he},geoChamberlinAfrica:function(){return Ce},geoChamberlinRaw:function(){return Pe},geoCollignon:function(){return Ne},geoCollignonRaw:function(){return me},geoCraig:function(){return st},geoCraigRaw:function(){return Ze},geoCraster:function(){return Zt},geoCrasterRaw:function(){return Wt},geoCylindricalEqualArea:function(){return Rt},geoCylindricalEqualAreaRaw:function(){return Tt},geoCylindricalStereographic:function(){return gr},geoCylindricalStereographicRaw:function(){return Xt},geoEckert1:function(){return Kt},geoEckert1Raw:function(){return gt},geoEckert2:function(){return yr},geoEckert2Raw:function(){return Qt},geoEckert3:function(){return ut},geoEckert3Raw:function(){return Ot},geoEckert4:function(){return xt},geoEckert4Raw:function(){return at},geoEckert5:function(){return Et},geoEckert5Raw:function(){return At},geoEckert6:function(){return Bt},geoEckert6Raw:function(){return Vt},geoEisenlohr:function(){return ur},geoEisenlohrRaw:function(){return Jt},geoFahey:function(){return Ye},geoFaheyRaw:function(){return dr},geoFoucaut:function(){return zt},geoFoucautRaw:function(){return Ue},geoFoucautSinusoidal:function(){return $t},geoFoucautSinusoidalRaw:function(){return Dt},geoGilbert:function(){return ir},geoGingery:function(){return Hr},geoGingeryRaw:function(){return hr},geoGinzburg4:function(){return an},geoGinzburg4Raw:function(){return Rr},geoGinzburg5:function(){return Sn},geoGinzburg5Raw:function(){return tn},geoGinzburg6:function(){return Tr},geoGinzburg6Raw:function(){return Tn},geoGinzburg8:function(){return Yr},geoGinzburg8Raw:function(){return zr},geoGinzburg9:function(){return ln},geoGinzburg9Raw:function(){return Or},geoGringorten:function(){return ia},geoGringortenQuincuncial:function(){return oh},geoGringortenRaw:function(){return Mn},geoGuyou:function(){return vn},geoGuyouRaw:function(){return mr},geoHammer:function(){return ge},geoHammerRaw:function(){return te},geoHammerRetroazimuthal:function(){return Fn},geoHammerRetroazimuthalRaw:function(){return bn},geoHealpix:function(){return un},geoHealpixRaw:function(){return Ar},geoHill:function(){return Zr},geoHillRaw:function(){return Er},geoHomolosine:function(){return Un},geoHomolosineRaw:function(){return En},geoHufnagel:function(){return va},geoHufnagelRaw:function(){return Nn},geoHyperelliptical:function(){return gi},geoHyperellipticalRaw:function(){return _a},geoInterrupt:function(){return to},geoInterruptedBoggs:function(){return af},geoInterruptedHomolosine:function(){return ti},geoInterruptedMollweide:function(){return of},geoInterruptedMollweideHemispheres:function(){return bo},geoInterruptedQuarticAuthalic:function(){return Us},geoInterruptedSinuMollweide:function(){return Iu},geoInterruptedSinusoidal:function(){return El},geoKavrayskiy7:function(){return Hi},geoKavrayskiy7Raw:function(){return Oi},geoLagrange:function(){return ro},geoLagrangeRaw:function(){return Cl},geoLarrivee:function(){return Hf},geoLarriveeRaw:function(){return zo},geoLaskowski:function(){return jc},geoLaskowskiRaw:function(){return Lo},geoLittrow:function(){return Ji},geoLittrowRaw:function(){return cs},geoLoximuthal:function(){return Bs},geoLoximuthalRaw:function(){return sf},geoMiller:function(){return lf},geoMillerRaw:function(){return hs},geoModifiedStereographic:function(){return al},geoModifiedStereographicAlaska:function(){return uf},geoModifiedStereographicGs48:function(){return Qc},geoModifiedStereographicGs50:function(){return $c},geoModifiedStereographicLee:function(){return Yf},geoModifiedStereographicMiller:function(){return Wf},geoModifiedStereographicRaw:function(){return Gf},geoMollweide:function(){return Se},geoMollweideRaw:function(){return Re},geoMtFlatPolarParabolic:function(){return jf},geoMtFlatPolarParabolicRaw:function(){return ru},geoMtFlatPolarQuartic:function(){return qc},geoMtFlatPolarQuarticRaw:function(){return Ms},geoMtFlatPolarSinusoidal:function(){return Xf},geoMtFlatPolarSinusoidalRaw:function(){return zu},geoNaturalEarth:function(){return Zf.c},geoNaturalEarth2:function(){return Zo},geoNaturalEarth2Raw:function(){return Ou},geoNaturalEarthRaw:function(){return Zf.g},geoNellHammer:function(){return il},geoNellHammerRaw:function(){return Pl},geoNicolosi:function(){return ff},geoNicolosiRaw:function(){return vs},geoPatterson:function(){return Il},geoPattersonRaw:function(){return Nu},geoPeirceQuincuncial:function(){return ec},geoPierceQuincuncial:function(){return ec},geoPolyconic:function(){return th},geoPolyconicRaw:function(){return Bu},geoPolyhedral:function(){return yi},geoPolyhedralButterfly:function(){return iu},geoPolyhedralCollignon:function(){return sl},geoPolyhedralWaterman:function(){return Hs},geoProject:function(){return ah},geoQuantize:function(){return tc},geoQuincuncial:function(){return Ls},geoRectangularPolyconic:function(){return rc},geoRectangularPolyconicRaw:function(){return yf},geoRobinson:function(){return Gs},geoRobinsonRaw:function(){return es},geoSatellite:function(){return ll},geoSatelliteRaw:function(){return Gu},geoSinuMollweide:function(){return zn},geoSinuMollweideRaw:function(){return wn},geoSinusoidal:function(){return $e},geoSinusoidalRaw:function(){return Qe},geoStitch:function(){return hu},geoTimes:function(){return Gi},geoTimesRaw:function(){return js},geoTwoPointAzimuthal:function(){return ju},geoTwoPointAzimuthalRaw:function(){return xf},geoTwoPointAzimuthalUsa:function(){return fl},geoTwoPointEquidistant:function(){return ic},geoTwoPointEquidistantRaw:function(){return vu},geoTwoPointEquidistantUsa:function(){return sh},geoVanDerGrinten:function(){return du},geoVanDerGrinten2:function(){return oc},geoVanDerGrinten2Raw:function(){return Hl},geoVanDerGrinten3:function(){return lh},geoVanDerGrinten3Raw:function(){return Xs},geoVanDerGrinten4:function(){return pu},geoVanDerGrinten4Raw:function(){return _o},geoVanDerGrintenRaw:function(){return po},geoWagner:function(){return Zs},geoWagner4:function(){return sc},geoWagner4Raw:function(){return Zu},geoWagner6:function(){return wf},geoWagner6Raw:function(){return mu},geoWagner7:function(){return bf},geoWagnerRaw:function(){return Rs},geoWiechel:function(){return Tf},geoWiechelRaw:function(){return cl},geoWinkel3:function(){return lc},geoWinkel3Raw:function(){return xu}});var m=e(87952),P=Math.abs,s=Math.atan,L=Math.atan2,S=Math.cos,v=Math.exp,p=Math.floor,r=Math.log,t=Math.max,a=Math.min,n=Math.pow,f=Math.round,u=Math.sign||function(Ke){return Ke>0?1:Ke<0?-1:0},l=Math.sin,g=Math.tan,h=1e-6,T=1e-12,c=Math.PI,i=c/2,d=c/4,x=Math.SQRT1_2,w=I(2),C=I(c),y=c*2,E=180/c,A=c/180;function o(Ke){return Ke?Ke/Math.sin(Ke):1}function M(Ke){return Ke>1?i:Ke<-1?-i:Math.asin(Ke)}function b(Ke){return Ke>1?0:Ke<-1?c:Math.acos(Ke)}function I(Ke){return Ke>0?Math.sqrt(Ke):0}function D(Ke){return Ke=v(2*Ke),(Ke-1)/(Ke+1)}function N(Ke){return(v(Ke)-v(-Ke))/2}function k(Ke){return(v(Ke)+v(-Ke))/2}function O(Ke){return r(Ke+I(Ke*Ke+1))}function F(Ke){return r(Ke+I(Ke*Ke-1))}function z(Ke){var it=g(Ke/2),yt=2*r(S(Ke/2))/(it*it);function bt(kt,It){var Ft=S(kt),pr=S(It),wr=l(It),ar=pr*Ft,Sr=-((1-ar?r((1+ar)/2)/(1-ar):-.5)+yt/(1+ar));return[Sr*pr*l(kt),Sr*wr]}return bt.invert=function(kt,It){var Ft=I(kt*kt+It*It),pr=-Ke/2,wr=50,ar;if(!Ft)return[0,0];do{var Sr=pr/2,Dr=S(Sr),Ur=l(Sr),on=Ur/Dr,xn=-r(P(Dr));pr-=ar=(2/on*xn-yt*on-Ft)/(-xn/(Ur*Ur)+1-yt/(2*Dr*Dr))*(Dr<0?.7:1)}while(P(ar)>h&&--wr>0);var _n=l(pr);return[L(kt*_n,Ft*S(pr)),M(It*_n/Ft)]},bt}function B(){var Ke=i,it=(0,m.U)(z),yt=it(Ke);return yt.radius=function(bt){return arguments.length?it(Ke=bt*A):Ke*E},yt.scale(179.976).clipAngle(147)}function W(Ke,it){var yt=S(it),bt=o(b(yt*S(Ke/=2)));return[2*yt*l(Ke)*bt,l(it)*bt]}W.invert=function(Ke,it){if(!(Ke*Ke+4*it*it>c*c+h)){var yt=Ke,bt=it,kt=25;do{var It=l(yt),Ft=l(yt/2),pr=S(yt/2),wr=l(bt),ar=S(bt),Sr=l(2*bt),Dr=wr*wr,Ur=ar*ar,on=Ft*Ft,xn=1-Ur*pr*pr,_n=xn?b(ar*pr)*I(Dn=1/xn):Dn=0,Dn,Kn=2*_n*ar*Ft-Ke,Ra=_n*wr-it,Da=Dn*(Ur*on+_n*ar*pr*Dr),ka=Dn*(.5*It*Sr-_n*2*wr*Ft),Na=Dn*.25*(Sr*Ft-_n*wr*Ur*It),Ka=Dn*(Dr*pr+_n*on*ar),di=ka*Na-Ka*Da;if(!di)break;var zi=(Ra*ka-Kn*Ka)/di,ue=(Kn*Na-Ra*Da)/di;yt-=zi,bt-=ue}while((P(zi)>h||P(ue)>h)&&--kt>0);return[yt,bt]}};function J(){return(0,m.c)(W).scale(152.63)}function re(Ke){var it=l(Ke),yt=S(Ke),bt=Ke>=0?1:-1,kt=g(bt*Ke),It=(1+it-yt)/2;function Ft(pr,wr){var ar=S(wr),Sr=S(pr/=2);return[(1+ar)*l(pr),(bt*wr>-L(Sr,kt)-.001?0:-bt*10)+It+l(wr)*yt-(1+ar)*it*Sr]}return Ft.invert=function(pr,wr){var ar=0,Sr=0,Dr=50;do{var Ur=S(ar),on=l(ar),xn=S(Sr),_n=l(Sr),Dn=1+xn,Kn=Dn*on-pr,Ra=It+_n*yt-Dn*it*Ur-wr,Da=Dn*Ur/2,ka=-on*_n,Na=it*Dn*on/2,Ka=yt*xn+it*Ur*_n,di=ka*Na-Ka*Da,zi=(Ra*ka-Kn*Ka)/di/2,ue=(Kn*Na-Ra*Da)/di;P(ue)>2&&(ue/=2),ar-=zi,Sr-=ue}while((P(zi)>h||P(ue)>h)&&--Dr>0);return bt*Sr>-L(S(ar),kt)-.001?[ar*2,Sr]:null},Ft}function ne(){var Ke=20*A,it=Ke>=0?1:-1,yt=g(it*Ke),bt=(0,m.U)(re),kt=bt(Ke),It=kt.stream;return kt.parallel=function(Ft){return arguments.length?(yt=g((it=(Ke=Ft*A)>=0?1:-1)*Ke),bt(Ke)):Ke*E},kt.stream=function(Ft){var pr=kt.rotate(),wr=It(Ft),ar=(kt.rotate([0,0]),It(Ft)),Sr=kt.precision();return kt.rotate(pr),wr.sphere=function(){ar.polygonStart(),ar.lineStart();for(var Dr=it*-180;it*Dr<180;Dr+=it*90)ar.point(Dr,it*90);if(Ke)for(;it*(Dr-=3*it*Sr)>=-180;)ar.point(Dr,it*-L(S(Dr*A/2),yt)*E);ar.lineEnd(),ar.polygonEnd()},wr},kt.scale(218.695).center([0,28.0974])}function le(Ke,it){var yt=g(it/2),bt=I(1-yt*yt),kt=1+bt*S(Ke/=2),It=l(Ke)*bt/kt,Ft=yt/kt,pr=It*It,wr=Ft*Ft;return[1.3333333333333333*It*(3+pr-3*wr),1.3333333333333333*Ft*(3+3*pr-wr)]}le.invert=function(Ke,it){if(Ke*=.375,it*=.375,!Ke&&P(it)>1)return null;var yt=Ke*Ke,bt=it*it,kt=1+yt+bt,It=I((kt-I(kt*kt-4*it*it))/2),Ft=M(It)/3,pr=It?F(P(it/It))/3:O(P(Ke))/3,wr=S(Ft),ar=k(pr),Sr=ar*ar-wr*wr;return[u(Ke)*2*L(N(pr)*wr,.25-Sr),u(it)*2*L(ar*l(Ft),.25+Sr)]};function $(){return(0,m.c)(le).scale(66.1603)}var Z=I(8),ie=r(1+w);function X(Ke,it){var yt=P(it);return ytT&&--bt>0);return[Ke/(S(yt)*(Z-1/l(yt))),u(it)*yt]};function Q(){return(0,m.c)(X).scale(112.314)}var oe=e(69020);function Y(Ke){var it=2*c/Ke;function yt(bt,kt){var It=(0,oe.O)(bt,kt);if(P(bt)>i){var Ft=L(It[1],It[0]),pr=I(It[0]*It[0]+It[1]*It[1]),wr=it*f((Ft-i)/it)+i,ar=L(l(Ft-=wr),2-S(Ft));Ft=wr+M(c/pr*l(ar))-ar,It[0]=pr*S(Ft),It[1]=pr*l(Ft)}return It}return yt.invert=function(bt,kt){var It=I(bt*bt+kt*kt);if(It>i){var Ft=L(kt,bt),pr=it*f((Ft-i)/it)+i,wr=Ft>pr?-1:1,ar=It*S(pr-Ft),Sr=1/g(wr*b((ar-c)/I(c*(c-2*ar)+It*It)));Ft=pr+2*s((Sr+wr*I(Sr*Sr-3))/3),bt=It*S(Ft),kt=It*l(Ft)}return oe.O.invert(bt,kt)},yt}function j(){var Ke=5,it=(0,m.U)(Y),yt=it(Ke),bt=yt.stream,kt=.01,It=-S(kt*A),Ft=l(kt*A);return yt.lobes=function(pr){return arguments.length?it(Ke=+pr):Ke},yt.stream=function(pr){var wr=yt.rotate(),ar=bt(pr),Sr=(yt.rotate([0,0]),bt(pr));return yt.rotate(wr),ar.sphere=function(){Sr.polygonStart(),Sr.lineStart();for(var Dr=0,Ur=360/Ke,on=2*c/Ke,xn=90-180/Ke,_n=i;Dr0&&P(kt)>h);return bt<0?NaN:yt}function xe(Ke,it,yt){return it===void 0&&(it=40),yt===void 0&&(yt=T),function(bt,kt,It,Ft){var pr,wr,ar;It=It===void 0?0:+It,Ft=Ft===void 0?0:+Ft;for(var Sr=0;Srpr){It-=wr/=2,Ft-=ar/=2;continue}pr=xn;var _n=(It>0?-1:1)*yt,Dn=(Ft>0?-1:1)*yt,Kn=Ke(It+_n,Ft),Ra=Ke(It,Ft+Dn),Da=(Kn[0]-Dr[0])/_n,ka=(Kn[1]-Dr[1])/_n,Na=(Ra[0]-Dr[0])/Dn,Ka=(Ra[1]-Dr[1])/Dn,di=Ka*Da-ka*Na,zi=(P(di)<.5?.5:1)/di;if(wr=(on*Na-Ur*Ka)*zi,ar=(Ur*ka-on*Da)*zi,It+=wr,Ft+=ar,P(wr)0&&(pr[1]*=1+wr/1.5*pr[0]*pr[0]),pr}return bt.invert=xe(bt),bt}function De(){return(0,m.c)(_e()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Fe(Ke,it){var yt=Ke*l(it),bt=30,kt;do it-=kt=(it+l(it)-yt)/(1+S(it));while(P(kt)>h&&--bt>0);return it/2}function Te(Ke,it,yt){function bt(kt,It){return[Ke*kt*S(It=Fe(yt,It)),it*l(It)]}return bt.invert=function(kt,It){return It=M(It/it),[kt/(Ke*S(It)),M((2*It+l(2*It))/yt)]},bt}var Re=Te(w/i,w,c);function Se(){return(0,m.c)(Re).scale(169.529)}var Ie=2.00276,Me=1.11072;function Ve(Ke,it){var yt=Fe(c,it);return[Ie*Ke/(1/S(it)+Me/S(yt)),(it+w*l(yt))/Ie]}Ve.invert=function(Ke,it){var yt=Ie*it,bt=it<0?-d:d,kt=25,It,Ft;do Ft=yt-w*l(bt),bt-=It=(l(2*bt)+2*bt-c*l(Ft))/(2*S(2*bt)+2+c*S(Ft)*w*S(bt));while(P(It)>h&&--kt>0);return Ft=yt-w*l(bt),[Ke*(1/S(Ft)+Me/S(bt))/Ie,Ft]};function et(){return(0,m.c)(Ve).scale(160.857)}function ot(Ke){var it=0,yt=(0,m.U)(Ke),bt=yt(it);return bt.parallel=function(kt){return arguments.length?yt(it=kt*A):it*E},bt}function Qe(Ke,it){return[Ke*S(it),it]}Qe.invert=function(Ke,it){return[Ke/S(it),it]};function $e(){return(0,m.c)(Qe).scale(152.63)}function ht(Ke){if(!Ke)return Qe;var it=1/g(Ke);function yt(bt,kt){var It=it+Ke-kt,Ft=It&&bt*S(kt)/It;return[It*l(Ft),it-It*S(Ft)]}return yt.invert=function(bt,kt){var It=I(bt*bt+(kt=it-kt)*kt),Ft=it+Ke-It;return[It/S(Ft)*L(bt,kt),Ft]},yt}function vt(){return ot(ht).scale(123.082).center([0,26.1441]).parallel(45)}function pt(Ke){function it(yt,bt){var kt=i-bt,It=kt&&yt*Ke*l(kt)/kt;return[kt*l(It)/Ke,i-kt*S(It)]}return it.invert=function(yt,bt){var kt=yt*Ke,It=i-bt,Ft=I(kt*kt+It*It),pr=L(kt,It);return[(Ft?Ft/l(Ft):1)*pr/Ke,i-Ft]},it}function wt(){var Ke=.5,it=(0,m.U)(pt),yt=it(Ke);return yt.fraction=function(bt){return arguments.length?it(Ke=+bt):Ke},yt.scale(158.837)}var Ct=Te(1,4/c,c);function rt(){return(0,m.c)(Ct).scale(152.63)}var ze=e(24052),He=e(92992);function We(Ke,it,yt,bt,kt,It){var Ft=S(It),pr;if(P(Ke)>1||P(It)>1)pr=b(yt*kt+it*bt*Ft);else{var wr=l(Ke/2),ar=l(It/2);pr=2*M(I(wr*wr+it*bt*ar*ar))}return P(pr)>h?[pr,L(bt*l(It),it*kt-yt*bt*Ft)]:[0,0]}function Ge(Ke,it,yt){return b((Ke*Ke+it*it-yt*yt)/(2*Ke*it))}function Le(Ke){return Ke-2*c*p((Ke+c)/(2*c))}function Pe(Ke,it,yt){for(var bt=[[Ke[0],Ke[1],l(Ke[1]),S(Ke[1])],[it[0],it[1],l(it[1]),S(it[1])],[yt[0],yt[1],l(yt[1]),S(yt[1])]],kt=bt[2],It,Ft=0;Ft<3;++Ft,kt=It)It=bt[Ft],kt.v=We(It[1]-kt[1],kt[3],kt[2],It[3],It[2],It[0]-kt[0]),kt.point=[0,0];var pr=Ge(bt[0].v[0],bt[2].v[0],bt[1].v[0]),wr=Ge(bt[0].v[0],bt[1].v[0],bt[2].v[0]),ar=c-pr;bt[2].point[1]=0,bt[0].point[0]=-(bt[1].point[0]=bt[0].v[0]/2);var Sr=[bt[2].point[0]=bt[0].point[0]+bt[2].v[0]*S(pr),2*(bt[0].point[1]=bt[1].point[1]=bt[2].v[0]*l(pr))];function Dr(Ur,on){var xn=l(on),_n=S(on),Dn=new Array(3),Kn;for(Kn=0;Kn<3;++Kn){var Ra=bt[Kn];if(Dn[Kn]=We(on-Ra[1],Ra[3],Ra[2],_n,xn,Ur-Ra[0]),!Dn[Kn][0])return Ra.point;Dn[Kn][1]=Le(Dn[Kn][1]-Ra.v[1])}var Da=Sr.slice();for(Kn=0;Kn<3;++Kn){var ka=Kn==2?0:Kn+1,Na=Ge(bt[Kn].v[0],Dn[Kn][0],Dn[ka][0]);Dn[Kn][1]<0&&(Na=-Na),Kn?Kn==1?(Na=wr-Na,Da[0]-=Dn[Kn][0]*S(Na),Da[1]-=Dn[Kn][0]*l(Na)):(Na=ar-Na,Da[0]+=Dn[Kn][0]*S(Na),Da[1]+=Dn[Kn][0]*l(Na)):(Da[0]+=Dn[Kn][0]*S(Na),Da[1]-=Dn[Kn][0]*l(Na))}return Da[0]/=3,Da[1]/=3,Da}return Dr}function je(Ke){return Ke[0]*=A,Ke[1]*=A,Ke}function Ce(){return he([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function he(Ke,it,yt){var bt=(0,ze.c)({type:"MultiPoint",coordinates:[Ke,it,yt]}),kt=[-bt[0],-bt[1]],It=(0,He.c)(kt),Ft=Pe(je(It(Ke)),je(It(it)),je(It(yt)));Ft.invert=xe(Ft);var pr=(0,m.c)(Ft).rotate(kt),wr=pr.center;return delete pr.rotate,pr.center=function(ar){return arguments.length?wr(It(ar)):It.invert(wr())},pr.clipAngle(90)}function me(Ke,it){var yt=I(1-l(it));return[2/C*Ke*yt,C*(1-yt)]}me.invert=function(Ke,it){var yt=(yt=it/C-1)*yt;return[yt>0?Ke*I(c/yt)/2:0,M(1-yt)]};function Ne(){return(0,m.c)(me).scale(95.6464).center([0,30])}function Ze(Ke){var it=g(Ke);function yt(bt,kt){return[bt,(bt?bt/l(bt):1)*(l(kt)*S(bt)-it*S(kt))]}return yt.invert=it?function(bt,kt){bt&&(kt*=l(bt)/bt);var It=S(bt);return[bt,2*L(I(It*It+it*it-kt*kt)-It,it-kt)]}:function(bt,kt){return[bt,M(bt?kt*g(bt)/bt:kt)]},yt}function st(){return ot(Ze).scale(249.828).clipAngle(90)}var lt=I(3);function Wt(Ke,it){return[lt*Ke*(2*S(2*it/3)-1)/C,lt*C*l(it/3)]}Wt.invert=function(Ke,it){var yt=3*M(it/(lt*C));return[C*Ke/(lt*(2*S(2*yt/3)-1)),yt]};function Zt(){return(0,m.c)(Wt).scale(156.19)}function Tt(Ke){var it=S(Ke);function yt(bt,kt){return[bt*it,l(kt)/it]}return yt.invert=function(bt,kt){return[bt/it,M(kt*it)]},yt}function Rt(){return ot(Tt).parallel(38.58).scale(195.044)}function Xt(Ke){var it=S(Ke);function yt(bt,kt){return[bt*it,(1+it)*g(kt/2)]}return yt.invert=function(bt,kt){return[bt/it,s(kt/(1+it))*2]},yt}function gr(){return ot(Xt).scale(124.75)}function gt(Ke,it){var yt=I(8/(3*c));return[yt*Ke*(1-P(it)/c),yt*it]}gt.invert=function(Ke,it){var yt=I(8/(3*c)),bt=it/yt;return[Ke/(yt*(1-P(bt)/c)),bt]};function Kt(){return(0,m.c)(gt).scale(165.664)}function Qt(Ke,it){var yt=I(4-3*l(P(it)));return[2/I(6*c)*Ke*yt,u(it)*I(2*c/3)*(2-yt)]}Qt.invert=function(Ke,it){var yt=2-P(it)/I(2*c/3);return[Ke*I(6*c)/(2*yt),u(it)*M((4-yt*yt)/3)]};function yr(){return(0,m.c)(Qt).scale(165.664)}function Ot(Ke,it){var yt=I(c*(4+c));return[2/yt*Ke*(1+I(1-4*it*it/(c*c))),4/yt*it]}Ot.invert=function(Ke,it){var yt=I(c*(4+c))/2;return[Ke*yt/(1+I(1-it*it*(4+c)/(4*c))),it*yt/2]};function ut(){return(0,m.c)(Ot).scale(180.739)}function at(Ke,it){var yt=(2+i)*l(it);it/=2;for(var bt=0,kt=1/0;bt<10&&P(kt)>h;bt++){var It=S(it);it-=kt=(it+l(it)*(It+2)-yt)/(2*It*(1+It))}return[2/I(c*(4+c))*Ke*(1+S(it)),2*I(c/(4+c))*l(it)]}at.invert=function(Ke,it){var yt=it*I((4+c)/c)/2,bt=M(yt),kt=S(bt);return[Ke/(2/I(c*(4+c))*(1+kt)),M((bt+yt*(kt+2))/(2+i))]};function xt(){return(0,m.c)(at).scale(180.739)}function At(Ke,it){return[Ke*(1+S(it))/I(2+c),2*it/I(2+c)]}At.invert=function(Ke,it){var yt=I(2+c),bt=it*yt/2;return[yt*Ke/(1+S(bt)),bt]};function Et(){return(0,m.c)(At).scale(173.044)}function Vt(Ke,it){for(var yt=(1+i)*l(it),bt=0,kt=1/0;bt<10&&P(kt)>h;bt++)it-=kt=(it+l(it)-yt)/(1+S(it));return yt=I(2+c),[Ke*(1+S(it))/yt,2*it/yt]}Vt.invert=function(Ke,it){var yt=1+i,bt=I(yt/2);return[Ke*2*bt/(1+S(it*=bt)),M((it+l(it))/yt)]};function Bt(){return(0,m.c)(Vt).scale(173.044)}var Ut=3+2*w;function Jt(Ke,it){var yt=l(Ke/=2),bt=S(Ke),kt=I(S(it)),It=S(it/=2),Ft=l(it)/(It+w*bt*kt),pr=I(2/(1+Ft*Ft)),wr=I((w*It+(bt+yt)*kt)/(w*It+(bt-yt)*kt));return[Ut*(pr*(wr-1/wr)-2*r(wr)),Ut*(pr*Ft*(wr+1/wr)-2*s(Ft))]}Jt.invert=function(Ke,it){if(!(It=le.invert(Ke/1.2,it*1.065)))return null;var yt=It[0],bt=It[1],kt=20,It;Ke/=Ut,it/=Ut;do{var Ft=yt/2,pr=bt/2,wr=l(Ft),ar=S(Ft),Sr=l(pr),Dr=S(pr),Ur=S(bt),on=I(Ur),xn=Sr/(Dr+w*ar*on),_n=xn*xn,Dn=I(2/(1+_n)),Kn=w*Dr+(ar+wr)*on,Ra=w*Dr+(ar-wr)*on,Da=Kn/Ra,ka=I(Da),Na=ka-1/ka,Ka=ka+1/ka,di=Dn*Na-2*r(ka)-Ke,zi=Dn*xn*Ka-2*s(xn)-it,ue=Sr&&x*on*wr*_n/Sr,Ae=(w*ar*Dr+on)/(2*(Dr+w*ar*on)*(Dr+w*ar*on)*on),Be=-.5*xn*Dn*Dn*Dn,qe=Be*ue,nt=Be*Ae,ct=(ct=2*Dr+w*on*(ar-wr))*ct*ka,Pt=(w*ar*Dr*on+Ur)/ct,St=-(w*wr*Sr)/(on*ct),Gt=Na*qe-2*Pt/ka+Dn*(Pt+Pt/Da),Yt=Na*nt-2*St/ka+Dn*(St+St/Da),rr=xn*Ka*qe-2*ue/(1+_n)+Dn*Ka*ue+Dn*xn*(Pt-Pt/Da),Cr=xn*Ka*nt-2*Ae/(1+_n)+Dn*Ka*Ae+Dn*xn*(St-St/Da),Lr=Yt*rr-Cr*Gt;if(!Lr)break;var $r=(zi*Yt-di*Cr)/Lr,sn=(di*rr-zi*Gt)/Lr;yt-=$r,bt=t(-i,a(i,bt-sn))}while((P($r)>h||P(sn)>h)&&--kt>0);return P(P(bt)-i)bt){var Dr=I(Sr),Ur=L(ar,wr),on=yt*f(Ur/yt),xn=Ur-on,_n=Ke*S(xn),Dn=(Ke*l(xn)-xn*l(_n))/(i-_n),Kn=xr(xn,Dn),Ra=(c-Ke)/vr(Kn,_n,c);wr=Dr;var Da=50,ka;do wr-=ka=(Ke+vr(Kn,_n,wr)*Ra-Dr)/(Kn(wr)*Ra);while(P(ka)>h&&--Da>0);ar=xn*l(wr),wrbt){var wr=I(pr),ar=L(Ft,It),Sr=yt*f(ar/yt),Dr=ar-Sr;It=wr*S(Dr),Ft=wr*l(Dr);for(var Ur=It-i,on=l(It),xn=Ft/on,_n=Ith||P(xn)>h)&&--_n>0);return[Dr,Ur]},wr}var Rr=Pr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function an(){return(0,m.c)(Rr).scale(149.995)}var tn=Pr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Sn(){return(0,m.c)(tn).scale(153.93)}var Tn=Pr(5/6*c,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Tr(){return(0,m.c)(Tn).scale(130.945)}function zr(Ke,it){var yt=Ke*Ke,bt=it*it;return[Ke*(1-.162388*bt)*(.87-952426e-9*yt*yt),it*(1+bt/12)]}zr.invert=function(Ke,it){var yt=Ke,bt=it,kt=50,It;do{var Ft=bt*bt;bt-=It=(bt*(1+Ft/12)-it)/(1+Ft/4)}while(P(It)>h&&--kt>0);kt=50,Ke/=1-.162388*Ft;do{var pr=(pr=yt*yt)*pr;yt-=It=(yt*(.87-952426e-9*pr)-Ke)/(.87-.00476213*pr)}while(P(It)>h&&--kt>0);return[yt,bt]};function Yr(){return(0,m.c)(zr).scale(131.747)}var Or=Pr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function ln(){return(0,m.c)(Or).scale(131.087)}function fn(Ke){var it=Ke(i,0)[0]-Ke(-i,0)[0];function yt(bt,kt){var It=bt>0?-.5:.5,Ft=Ke(bt+It*c,kt);return Ft[0]-=It*it,Ft}return Ke.invert&&(yt.invert=function(bt,kt){var It=bt>0?-.5:.5,Ft=Ke.invert(bt+It*it,kt),pr=Ft[0]-It*c;return pr<-c?pr+=2*c:pr>c&&(pr-=2*c),Ft[0]=pr,Ft}),yt}function Mn(Ke,it){var yt=u(Ke),bt=u(it),kt=S(it),It=S(Ke)*kt,Ft=l(Ke)*kt,pr=l(bt*it);Ke=P(L(Ft,pr)),it=M(It),P(Ke-i)>h&&(Ke%=i);var wr=Pn(Ke>c/4?i-Ke:Ke,it);return Ke>c/4&&(pr=wr[0],wr[0]=-wr[1],wr[1]=-pr),wr[0]*=yt,wr[1]*=-bt,wr}Mn.invert=function(Ke,it){P(Ke)>1&&(Ke=u(Ke)*2-Ke),P(it)>1&&(it=u(it)*2-it);var yt=u(Ke),bt=u(it),kt=-yt*Ke,It=-bt*it,Ft=It/kt<1,pr=Vn(Ft?It:kt,Ft?kt:It),wr=pr[0],ar=pr[1],Sr=S(ar);return Ft&&(wr=-i-wr),[yt*(L(l(wr)*Sr,-l(ar))+c),bt*M(S(wr)*Sr)]};function Pn(Ke,it){if(it===i)return[0,0];var yt=l(it),bt=yt*yt,kt=bt*bt,It=1+kt,Ft=1+3*kt,pr=1-kt,wr=M(1/I(It)),ar=pr+bt*It*wr,Sr=(1-yt)/ar,Dr=I(Sr),Ur=Sr*It,on=I(Ur),xn=Dr*pr,_n,Dn;if(Ke===0)return[0,-(xn+bt*on)];var Kn=S(it),Ra=1/Kn,Da=2*yt*Kn,ka=(-3*bt+wr*Ft)*Da,Na=(-ar*Kn-(1-yt)*ka)/(ar*ar),Ka=.5*Na/Dr,di=pr*Ka-2*bt*Dr*Da,zi=bt*It*Na+Sr*Ft*Da,ue=-Ra*Da,Ae=-Ra*zi,Be=-2*Ra*di,qe=4*Ke/c,nt;if(Ke>.222*c||it.175*c){if(_n=(xn+bt*I(Ur*(1+kt)-xn*xn))/(1+kt),Ke>c/4)return[_n,_n];var ct=_n,Pt=.5*_n;_n=.5*(Pt+ct),Dn=50;do{var St=I(Ur-_n*_n),Gt=_n*(Be+ue*St)+Ae*M(_n/on)-qe;if(!Gt)break;Gt<0?Pt=_n:ct=_n,_n=.5*(Pt+ct)}while(P(ct-Pt)>h&&--Dn>0)}else{_n=h,Dn=25;do{var Yt=_n*_n,rr=I(Ur-Yt),Cr=Be+ue*rr,Lr=_n*Cr+Ae*M(_n/on)-qe,$r=Cr+(Ae-ue*Yt)/rr;_n-=nt=rr?Lr/$r:0}while(P(nt)>h&&--Dn>0)}return[_n,-xn-bt*I(Ur-_n*_n)]}function Vn(Ke,it){for(var yt=0,bt=1,kt=.5,It=50;;){var Ft=kt*kt,pr=I(kt),wr=M(1/I(1+Ft)),ar=1-Ft+kt*(1+Ft)*wr,Sr=(1-pr)/ar,Dr=I(Sr),Ur=Sr*(1+Ft),on=Dr*(1-Ft),xn=Ur-Ke*Ke,_n=I(xn),Dn=it+on+kt*_n;if(P(bt-yt)0?yt=kt:bt=kt,kt=.5*(yt+bt)}if(!It)return null;var Kn=M(pr),Ra=S(Kn),Da=1/Ra,ka=2*pr*Ra,Na=(-3*kt+wr*(1+3*Ft))*ka,Ka=(-ar*Ra-(1-pr)*Na)/(ar*ar),di=.5*Ka/Dr,zi=(1-Ft)*di-2*kt*Dr*ka,ue=-2*Da*zi,Ae=-Da*ka,Be=-Da*(kt*(1+Ft)*Ka+Sr*(1+3*Ft)*ka);return[c/4*(Ke*(ue+Ae*_n)+Be*M(Ke/I(Ur))),Kn]}function ia(){return(0,m.c)(fn(Mn)).scale(239.75)}function ya(Ke,it,yt){var bt,kt,It;return Ke?(bt=wa(Ke,yt),it?(kt=wa(it,1-yt),It=kt[1]*kt[1]+yt*bt[0]*bt[0]*kt[0]*kt[0],[[bt[0]*kt[2]/It,bt[1]*bt[2]*kt[0]*kt[1]/It],[bt[1]*kt[1]/It,-bt[0]*bt[2]*kt[0]*kt[2]/It],[bt[2]*kt[1]*kt[2]/It,-yt*bt[0]*bt[1]*kt[0]/It]]):[[bt[0],0],[bt[1],0],[bt[2],0]]):(kt=wa(it,1-yt),[[0,kt[0]/kt[1]],[1/kt[1],0],[kt[2]/kt[1],0]])}function wa(Ke,it){var yt,bt,kt,It,Ft;if(it=1-h)return yt=(1-it)/4,bt=k(Ke),It=D(Ke),kt=1/bt,Ft=bt*N(Ke),[It+yt*(Ft-Ke)/(bt*bt),kt-yt*It*kt*(Ft-Ke),kt+yt*It*kt*(Ft+Ke),2*s(v(Ke))-i+yt*(Ft-Ke)/bt];var pr=[1,0,0,0,0,0,0,0,0],wr=[I(it),0,0,0,0,0,0,0,0],ar=0;for(bt=I(1-it),Ft=1;P(wr[ar]/pr[ar])>h&&ar<8;)yt=pr[ar++],wr[ar]=(yt-bt)/2,pr[ar]=(yt+bt)/2,bt=I(yt*bt),Ft*=2;kt=Ft*pr[ar]*Ke;do It=wr[ar]*l(bt=kt)/pr[ar],kt=(M(It)+kt)/2;while(--ar);return[l(kt),It=S(kt),It/S(kt-bt),kt]}function Wn(Ke,it,yt){var bt=P(Ke),kt=P(it),It=N(kt);if(bt){var Ft=1/l(bt),pr=1/(g(bt)*g(bt)),wr=-(pr+yt*(It*It*Ft*Ft)-1+yt),ar=(yt-1)*pr,Sr=(-wr+I(wr*wr-4*ar))/2;return[Qn(s(1/I(Sr)),yt)*u(Ke),Qn(s(I((Sr/pr-1)/yt)),1-yt)*u(it)]}return[0,Qn(s(It),1-yt)*u(it)]}function Qn(Ke,it){if(!it)return Ke;if(it===1)return r(g(Ke/2+d));for(var yt=1,bt=I(1-it),kt=I(it),It=0;P(kt)>h;It++){if(Ke%c){var Ft=s(bt*g(Ke)/yt);Ft<0&&(Ft+=c),Ke+=Ft+~~(Ke/c)*c}else Ke+=Ke;kt=(yt+bt)/2,bt=I(yt*bt),kt=((yt=kt)-bt)/2}return Ke/(n(2,It)*yt)}function mr(Ke,it){var yt=(w-1)/(w+1),bt=I(1-yt*yt),kt=Qn(i,bt*bt),It=-1,Ft=r(g(c/4+P(it)/2)),pr=v(It*Ft)/I(yt),wr=en(pr*S(It*Ke),pr*l(It*Ke)),ar=Wn(wr[0],wr[1],bt*bt);return[-ar[1],(it>=0?1:-1)*(.5*kt-ar[0])]}function en(Ke,it){var yt=Ke*Ke,bt=it+1,kt=1-yt-it*it;return[.5*((Ke>=0?i:-i)-L(kt,2*Ke)),-.25*r(kt*kt+4*yt)+.5*r(bt*bt+yt)]}function Jr(Ke,it){var yt=it[0]*it[0]+it[1]*it[1];return[(Ke[0]*it[0]+Ke[1]*it[1])/yt,(Ke[1]*it[0]-Ke[0]*it[1])/yt]}mr.invert=function(Ke,it){var yt=(w-1)/(w+1),bt=I(1-yt*yt),kt=Qn(i,bt*bt),It=-1,Ft=ya(.5*kt-it,-Ke,bt*bt),pr=Jr(Ft[0],Ft[1]),wr=L(pr[1],pr[0])/It;return[wr,2*s(v(.5/It*r(yt*pr[0]*pr[0]+yt*pr[1]*pr[1])))-i]};function vn(){return(0,m.c)(fn(mr)).scale(151.496)}var On=e(61780);function bn(Ke){var it=l(Ke),yt=S(Ke),bt=An(Ke);bt.invert=An(-Ke);function kt(It,Ft){var pr=bt(It,Ft);It=pr[0],Ft=pr[1];var wr=l(Ft),ar=S(Ft),Sr=S(It),Dr=b(it*wr+yt*ar*Sr),Ur=l(Dr),on=P(Ur)>h?Dr/Ur:1;return[on*yt*l(It),(P(It)>i?on:-on)*(it*ar-yt*wr*Sr)]}return kt.invert=function(It,Ft){var pr=I(It*It+Ft*Ft),wr=-l(pr),ar=S(pr),Sr=pr*ar,Dr=-Ft*wr,Ur=pr*it,on=I(Sr*Sr+Dr*Dr-Ur*Ur),xn=L(Sr*Ur+Dr*on,Dr*Ur-Sr*on),_n=(pr>i?-1:1)*L(It*wr,pr*S(xn)*ar+Ft*l(xn)*wr);return bt.invert(_n,xn)},kt}function An(Ke){var it=l(Ke),yt=S(Ke);return function(bt,kt){var It=S(kt),Ft=S(bt)*It,pr=l(bt)*It,wr=l(kt);return[L(pr,Ft*yt-wr*it),M(wr*yt+Ft*it)]}}function Fn(){var Ke=0,it=(0,m.U)(bn),yt=it(Ke),bt=yt.rotate,kt=yt.stream,It=(0,On.c)();return yt.parallel=function(Ft){if(!arguments.length)return Ke*E;var pr=yt.rotate();return it(Ke=Ft*A).rotate(pr)},yt.rotate=function(Ft){return arguments.length?(bt.call(yt,[Ft[0],Ft[1]-Ke*E]),It.center([-Ft[0],-Ft[1]]),yt):(Ft=bt.call(yt),Ft[1]+=Ke*E,Ft)},yt.stream=function(Ft){return Ft=kt(Ft),Ft.sphere=function(){Ft.polygonStart();var pr=.01,wr=It.radius(90-pr)().coordinates[0],ar=wr.length-1,Sr=-1,Dr;for(Ft.lineStart();++Sr=0;)Ft.point((Dr=wr[Sr])[0],Dr[1]);Ft.lineEnd(),Ft.polygonEnd()},Ft},yt.scale(79.4187).parallel(45).clipAngle(179.999)}var $n=e(84706),ha=e(16016),Ia=3,Mr=M(1-1/Ia)*E,Fr=Tt(0);function Ar(Ke){var it=Mr*A,yt=me(c,it)[0]-me(-c,it)[0],bt=Fr(0,it)[1],kt=me(0,it)[1],It=C-kt,Ft=y/Ke,pr=4/y,wr=bt+It*It*4/y;function ar(Sr,Dr){var Ur,on=P(Dr);if(on>it){var xn=a(Ke-1,t(0,p((Sr+c)/Ft)));Sr+=c*(Ke-1)/Ke-xn*Ft,Ur=me(Sr,on),Ur[0]=Ur[0]*y/yt-y*(Ke-1)/(2*Ke)+xn*y/Ke,Ur[1]=bt+(Ur[1]-kt)*4*It/y,Dr<0&&(Ur[1]=-Ur[1])}else Ur=Fr(Sr,Dr);return Ur[0]*=pr,Ur[1]/=wr,Ur}return ar.invert=function(Sr,Dr){Sr/=pr,Dr*=wr;var Ur=P(Dr);if(Ur>bt){var on=a(Ke-1,t(0,p((Sr+c)/Ft)));Sr=(Sr+c*(Ke-1)/Ke-on*Ft)*yt/y;var xn=me.invert(Sr,.25*(Ur-bt)*y/It+kt);return xn[0]-=c*(Ke-1)/Ke-on*Ft,Dr<0&&(xn[1]=-xn[1]),xn}return Fr.invert(Sr,Dr)},ar}function Nr(Ke,it){return[Ke,it&1?90-h:Mr]}function mn(Ke,it){return[Ke,it&1?-90+h:-Mr]}function Rn(Ke){return[Ke[0]*(1-h),Ke[1]]}function gn(Ke){var it=[].concat((0,$n.ik)(-180,180+Ke/2,Ke).map(Nr),(0,$n.ik)(180,-180-Ke/2,-Ke).map(mn));return{type:"Polygon",coordinates:[Ke===180?it.map(Rn):it]}}function un(){var Ke=4,it=(0,m.U)(Ar),yt=it(Ke),bt=yt.stream;return yt.lobes=function(kt){return arguments.length?it(Ke=+kt):Ke},yt.stream=function(kt){var It=yt.rotate(),Ft=bt(kt),pr=(yt.rotate([0,0]),bt(kt));return yt.rotate(It),Ft.sphere=function(){(0,ha.c)(gn(180/Ke),pr)},Ft},yt.scale(239.75)}function Er(Ke){var it=1+Ke,yt=l(1/it),bt=M(yt),kt=2*I(c/(It=c+4*bt*it)),It,Ft=.5*kt*(it+I(Ke*(2+Ke))),pr=Ke*Ke,wr=it*it;function ar(Sr,Dr){var Ur=1-l(Dr),on,xn;if(Ur&&Ur<2){var _n=i-Dr,Dn=25,Kn;do{var Ra=l(_n),Da=S(_n),ka=bt+L(Ra,it-Da),Na=1+wr-2*it*Da;_n-=Kn=(_n-pr*bt-it*Ra+Na*ka-.5*Ur*It)/(2*it*Ra*ka)}while(P(Kn)>T&&--Dn>0);on=kt*I(Na),xn=Sr*ka/c}else on=kt*(Ke+Ur),xn=Sr*bt/c;return[on*l(xn),Ft-on*S(xn)]}return ar.invert=function(Sr,Dr){var Ur=Sr*Sr+(Dr-=Ft)*Dr,on=(1+wr-Ur/(kt*kt))/(2*it),xn=b(on),_n=l(xn),Dn=bt+L(_n,it-on);return[M(Sr/I(Ur))*c/Dn,M(1-2*(xn-pr*bt-it*_n+(1+wr-2*it*on)*Dn)/It)]},ar}function Zr(){var Ke=1,it=(0,m.U)(Er),yt=it(Ke);return yt.ratio=function(bt){return arguments.length?it(Ke=+bt):Ke},yt.scale(167.774).center([0,18.67])}var Gr=.7109889596207567,qr=.0528035274542;function wn(Ke,it){return it>-Gr?(Ke=Re(Ke,it),Ke[1]+=qr,Ke):Qe(Ke,it)}wn.invert=function(Ke,it){return it>-Gr?Re.invert(Ke,it-qr):Qe.invert(Ke,it)};function zn(){return(0,m.c)(wn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function En(Ke,it){return P(it)>Gr?(Ke=Re(Ke,it),Ke[1]-=it>0?qr:-qr,Ke):Qe(Ke,it)}En.invert=function(Ke,it){return P(it)>Gr?Re.invert(Ke,it+(it>0?qr:-qr)):Qe.invert(Ke,it)};function Un(){return(0,m.c)(En).scale(152.63)}function Nn(Ke,it,yt,bt){var kt=I(4*c/(2*yt+(1+Ke-it/2)*l(2*yt)+(Ke+it)/2*l(4*yt)+it/2*l(6*yt))),It=I(bt*l(yt)*I((1+Ke*S(2*yt)+it*S(4*yt))/(1+Ke+it))),Ft=yt*wr(1);function pr(Dr){return I(1+Ke*S(2*Dr)+it*S(4*Dr))}function wr(Dr){var Ur=Dr*yt;return(2*Ur+(1+Ke-it/2)*l(2*Ur)+(Ke+it)/2*l(4*Ur)+it/2*l(6*Ur))/yt}function ar(Dr){return pr(Dr)*l(Dr)}var Sr=function(Dr,Ur){var on=yt*be(wr,Ft*l(Ur)/yt,Ur/c);isNaN(on)&&(on=yt*u(Ur));var xn=kt*pr(on);return[xn*It*Dr/c*S(on),xn/It*l(on)]};return Sr.invert=function(Dr,Ur){var on=be(ar,Ur*It/kt);return[Dr*c/(S(on)*kt*It*pr(on)),M(yt*wr(on/yt)/Ft)]},yt===0&&(kt=I(bt/c),Sr=function(Dr,Ur){return[Dr*kt,l(Ur)/kt]},Sr.invert=function(Dr,Ur){return[Dr/kt,M(Ur*kt)]}),Sr}function va(){var Ke=1,it=0,yt=45*A,bt=2,kt=(0,m.U)(Nn),It=kt(Ke,it,yt,bt);return It.a=function(Ft){return arguments.length?kt(Ke=+Ft,it,yt,bt):Ke},It.b=function(Ft){return arguments.length?kt(Ke,it=+Ft,yt,bt):it},It.psiMax=function(Ft){return arguments.length?kt(Ke,it,yt=+Ft*A,bt):yt*E},It.ratio=function(Ft){return arguments.length?kt(Ke,it,yt,bt=+Ft):bt},It.scale(180.739)}function sa(Ke,it,yt,bt,kt,It,Ft,pr,wr,ar,Sr){if(Sr.nanEncountered)return NaN;var Dr,Ur,on,xn,_n,Dn,Kn,Ra,Da,ka;if(Dr=yt-it,Ur=Ke(it+Dr*.25),on=Ke(yt-Dr*.25),isNaN(Ur)){Sr.nanEncountered=!0;return}if(isNaN(on)){Sr.nanEncountered=!0;return}return xn=Dr*(bt+4*Ur+kt)/12,_n=Dr*(kt+4*on+It)/12,Dn=xn+_n,ka=(Dn-Ft)/15,ar>wr?(Sr.maxDepthCount++,Dn+ka):Math.abs(ka)>1;do wr[Dn]>on?_n=Dn:xn=Dn,Dn=xn+_n>>1;while(Dn>xn);var Kn=wr[Dn+1]-wr[Dn];return Kn&&(Kn=(on-wr[Dn+1])/Kn),(Dn+1+Kn)/Ft}var Dr=2*Sr(1)/c*It/yt,Ur=function(on,xn){var _n=Sr(P(l(xn))),Dn=bt(_n)*on;return _n/=Dr,[Dn,xn>=0?_n:-_n]};return Ur.invert=function(on,xn){var _n;return xn*=Dr,P(xn)<1&&(_n=u(xn)*M(kt(P(xn))*It)),[on/bt(P(xn)),_n]},Ur}function gi(){var Ke=0,it=2.5,yt=1.183136,bt=(0,m.U)(_a),kt=bt(Ke,it,yt);return kt.alpha=function(It){return arguments.length?bt(Ke=+It,it,yt):Ke},kt.k=function(It){return arguments.length?bt(Ke,it=+It,yt):it},kt.gamma=function(It){return arguments.length?bt(Ke,it,yt=+It):yt},kt.scale(152.63)}function ai(Ke,it){return P(Ke[0]-it[0])=0;--wr)yt=Ke[1][wr],bt=yt[0][0],kt=yt[0][1],It=yt[1][1],Ft=yt[2][0],pr=yt[2][1],it.push(ko([[Ft-h,pr-h],[Ft-h,It+h],[bt+h,It+h],[bt+h,kt-h]],30));return{type:"Polygon",coordinates:[(0,$n.Uf)(it)]}}function to(Ke,it,yt){var bt,kt;function It(wr,ar){for(var Sr=ar<0?-1:1,Dr=it[+(ar<0)],Ur=0,on=Dr.length-1;UrDr[Ur][2][0];++Ur);var xn=Ke(wr-Dr[Ur][1][0],ar);return xn[0]+=Ke(Dr[Ur][1][0],Sr*ar>Sr*Dr[Ur][0][1]?Dr[Ur][0][1]:ar)[0],xn}yt?It.invert=yt(It):Ke.invert&&(It.invert=function(wr,ar){for(var Sr=kt[+(ar<0)],Dr=it[+(ar<0)],Ur=0,on=Sr.length;Urxn&&(_n=on,on=xn,xn=_n),[[Dr,on],[Ur,xn]]})}),Ft):it.map(function(ar){return ar.map(function(Sr){return[[Sr[0][0]*E,Sr[0][1]*E],[Sr[1][0]*E,Sr[1][1]*E],[Sr[2][0]*E,Sr[2][1]*E]]})})},it!=null&&Ft.lobes(it),Ft}var Sl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function af(){return to(Ve,Sl).scale(160.857)}var Vf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function ti(){return to(En,Vf).scale(152.63)}var eu=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function of(){return to(Re,eu).scale(169.529)}var Ki=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function bo(){return to(Re,Ki).scale(169.529).rotate([20,0])}var Ml=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Iu(){return to(wn,Ml,xe).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ii=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function El(){return to(Qe,Ii).scale(152.63).rotate([-20,0])}function Oi(Ke,it){return[3/y*Ke*I(c*c/3-it*it),it]}Oi.invert=function(Ke,it){return[y/3*Ke/I(c*c/3-it*it),it]};function Hi(){return(0,m.c)(Oi).scale(158.837)}function Cl(Ke){function it(yt,bt){if(P(P(bt)-i)2)return null;yt/=2,bt/=2;var It=yt*yt,Ft=bt*bt,pr=2*bt/(1+It+Ft);return pr=n((1+pr)/(1-pr),1/Ke),[L(2*yt,1-It-Ft)/Ke,M((pr-1)/(pr+1))]},it}function ro(){var Ke=.5,it=(0,m.U)(Cl),yt=it(Ke);return yt.spacing=function(bt){return arguments.length?it(Ke=+bt):Ke},yt.scale(124.75)}var no=c/w;function zo(Ke,it){return[Ke*(1+I(S(it)))/2,it/(S(it/2)*S(Ke/6))]}zo.invert=function(Ke,it){var yt=P(Ke),bt=P(it),kt=h,It=i;bth||P(Dn)>h)&&--kt>0);return kt&&[yt,bt]};function jc(){return(0,m.c)(Lo).scale(139.98)}function cs(Ke,it){return[l(Ke)/S(it),g(it)*S(Ke)]}cs.invert=function(Ke,it){var yt=Ke*Ke,bt=it*it,kt=bt+1,It=yt+kt,Ft=Ke?x*I((It-I(It*It-4*yt))/yt):1/I(kt);return[M(Ke*Ft),u(it)*b(Ft)]};function Ji(){return(0,m.c)(cs).scale(144.049).clipAngle(89.999)}function sf(Ke){var it=S(Ke),yt=g(d+Ke/2);function bt(kt,It){var Ft=It-Ke,pr=P(Ft)=0;)Sr=Ke[ar],Dr=Sr[0]+pr*(on=Dr)-wr*Ur,Ur=Sr[1]+pr*Ur+wr*on;return Dr=pr*(on=Dr)-wr*Ur,Ur=pr*Ur+wr*on,[Dr,Ur]}return yt.invert=function(bt,kt){var It=20,Ft=bt,pr=kt;do{for(var wr=it,ar=Ke[wr],Sr=ar[0],Dr=ar[1],Ur=0,on=0,xn;--wr>=0;)ar=Ke[wr],Ur=Sr+Ft*(xn=Ur)-pr*on,on=Dr+Ft*on+pr*xn,Sr=ar[0]+Ft*(xn=Sr)-pr*Dr,Dr=ar[1]+Ft*Dr+pr*xn;Ur=Sr+Ft*(xn=Ur)-pr*on,on=Dr+Ft*on+pr*xn,Sr=Ft*(xn=Sr)-pr*Dr-bt,Dr=Ft*Dr+pr*xn-kt;var _n=Ur*Ur+on*on,Dn,Kn;Ft-=Dn=(Sr*Ur+Dr*on)/_n,pr-=Kn=(Dr*Ur-Sr*on)/_n}while(P(Dn)+P(Kn)>h*h&&--It>0);if(It){var Ra=I(Ft*Ft+pr*pr),Da=2*s(Ra*.5),ka=l(Da);return[L(Ft*ka,Ra*S(Da)),Ra?M(pr*ka/Ra):0]}},yt}var Xc=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],ku=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Zc=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Kc=[[.9245,0],[0,0],[.01943,0]],Jc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function uf(){return al(Xc,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Qc(){return al(ku,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function $c(){return al(Zc,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Wf(){return al(Kc,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Yf(){return al(Jc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function al(Ke,it){var yt=(0,m.c)(Gf(Ke)).rotate(it).clipAngle(90),bt=(0,He.c)(it),kt=yt.center;return delete yt.rotate,yt.center=function(It){return arguments.length?kt(bt(It)):bt.invert(kt())},yt}var Ll=I(6),tu=I(7);function ru(Ke,it){var yt=M(7*l(it)/(3*Ll));return[Ll*Ke*(2*S(2*yt/3)-1)/tu,9*l(yt/3)/tu]}ru.invert=function(Ke,it){var yt=3*M(it*tu/9);return[Ke*tu/(Ll*(2*S(2*yt/3)-1)),M(l(yt)*3*Ll/7)]};function jf(){return(0,m.c)(ru).scale(164.859)}function Ms(Ke,it){for(var yt=(1+x)*l(it),bt=it,kt=0,It;kt<25&&(bt-=It=(l(bt/2)+l(bt)-yt)/(.5*S(bt/2)+S(bt)),!(P(It)T&&--bt>0);return It=yt*yt,Ft=It*It,pr=It*Ft,[Ke/(.84719-.13063*It+pr*pr*(-.04515+.05494*It-.02326*Ft+.00331*pr)),yt]};function Zo(){return(0,m.c)(Ou).scale(175.295)}function Pl(Ke,it){return[Ke*(1+S(it))/2,2*(it-g(it/2))]}Pl.invert=function(Ke,it){for(var yt=it/2,bt=0,kt=1/0;bt<10&&P(kt)>h;++bt){var It=S(it/2);it-=kt=(it-g(it/2)-yt)/(1-.5/(It*It))}return[2*Ke/(1+S(it)),it]};function il(){return(0,m.c)(Pl).scale(152.63)}var nu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Us(){return to(te(1/0),nu).rotate([20,0]).scale(152.63)}function vs(Ke,it){var yt=l(it),bt=S(it),kt=u(Ke);if(Ke===0||P(it)===i)return[0,it];if(it===0)return[Ke,0];if(P(Ke)===i)return[Ke*bt,i*yt];var It=c/(2*Ke)-2*Ke/c,Ft=2*it/c,pr=(1-Ft*Ft)/(yt-Ft),wr=It*It,ar=pr*pr,Sr=1+wr/ar,Dr=1+ar/wr,Ur=(It*yt/pr-It/2)/Sr,on=(ar*yt/wr+pr/2)/Dr,xn=Ur*Ur+bt*bt/Sr,_n=on*on-(ar*yt*yt/wr+pr*yt-1)/Dr;return[i*(Ur+I(xn)*kt),i*(on+I(_n<0?0:_n)*u(-it*It)*kt)]}vs.invert=function(Ke,it){Ke/=i,it/=i;var yt=Ke*Ke,bt=it*it,kt=yt+bt,It=c*c;return[Ke?(kt-1+I((1-kt)*(1-kt)+4*yt))/(2*Ke)*i:0,be(function(Ft){return kt*(c*l(Ft)-2*Ft)*c+4*Ft*Ft*(it-l(Ft))+2*c*Ft-It*it},0)]};function ff(){return(0,m.c)(vs).scale(127.267)}var _l=1.0148,Ko=.23185,_i=-.14499,cf=.02406,eh=_l,Fu=5*Ko,Rl=7*_i,Dl=9*cf,Po=1.790857183;function Nu(Ke,it){var yt=it*it;return[Ke,it*(_l+yt*yt*(Ko+yt*(_i+cf*yt)))]}Nu.invert=function(Ke,it){it>Po?it=Po:it<-Po&&(it=-Po);var yt=it,bt;do{var kt=yt*yt;yt-=bt=(yt*(_l+kt*kt*(Ko+kt*(_i+cf*kt)))-it)/(eh+kt*kt*(Fu+kt*(Rl+Dl*kt)))}while(P(bt)>h);return[Ke,yt]};function Il(){return(0,m.c)(Nu).scale(139.319)}function Bu(Ke,it){if(P(it)h&&--kt>0);return Ft=g(bt),[(P(it)=0;)if(bt=it[pr],yt[0]===bt[0]&&yt[1]===bt[1]){if(It)return[It,yt];It=yt}}}function pf(Ke){for(var it=Ke.length,yt=[],bt=Ke[it-1],kt=0;kt0?[-bt[0],0]:[180-bt[0],180])};var it=ki.map(function(yt){return{face:yt,project:Ke(yt)}});return[-1,0,0,1,0,1,4,5].forEach(function(yt,bt){var kt=it[yt];kt&&(kt.children||(kt.children=[])).push(it[bt])}),yi(it[0],function(yt,bt){return it[yt<-c/2?bt<0?6:4:yt<0?bt<0?2:0:ytbt^on>bt&&yt<(Ur-ar)*(bt-Sr)/(on-Sr)+ar&&(kt=!kt)}return kt}function ah(Ke,it){var yt=it.stream,bt;if(!yt)throw new Error("invalid projection");switch(Ke&&Ke.type){case"Feature":bt=gf;break;case"FeatureCollection":bt=ih;break;default:bt=zl;break}return bt(Ke,yt)}function ih(Ke,it){return{type:"FeatureCollection",features:Ke.features.map(function(yt){return gf(yt,it)})}}function gf(Ke,it){return{type:"Feature",id:Ke.id,properties:Ke.properties,geometry:zl(Ke.geometry,it)}}function $f(Ke,it){return{type:"GeometryCollection",geometries:Ke.geometries.map(function(yt){return zl(yt,it)})}}function zl(Ke,it){if(!Ke)return null;if(Ke.type==="GeometryCollection")return $f(Ke,it);var yt;switch(Ke.type){case"Point":yt=Ol;break;case"MultiPoint":yt=Ol;break;case"LineString":yt=qf;break;case"MultiLineString":yt=qf;break;case"Polygon":yt=su;break;case"MultiPolygon":yt=su;break;case"Sphere":yt=su;break;default:return null}return(0,ha.c)(Ke,it(yt)),yt.result()}var Qi=[],Oo=[],Ol={point:function(Ke,it){Qi.push([Ke,it])},result:function(){var Ke=Qi.length?Qi.length<2?{type:"Point",coordinates:Qi[0]}:{type:"MultiPoint",coordinates:Qi}:null;return Qi=[],Ke}},qf={lineStart:ou,point:function(Ke,it){Qi.push([Ke,it])},lineEnd:function(){Qi.length&&(Oo.push(Qi),Qi=[])},result:function(){var Ke=Oo.length?Oo.length<2?{type:"LineString",coordinates:Oo[0]}:{type:"MultiLineString",coordinates:Oo}:null;return Oo=[],Ke}},su={polygonStart:ou,lineStart:ou,point:function(Ke,it){Qi.push([Ke,it])},lineEnd:function(){var Ke=Qi.length;if(Ke){do Qi.push(Qi[0].slice());while(++Ke<4);Oo.push(Qi),Qi=[]}},polygonEnd:ou,result:function(){if(!Oo.length)return null;var Ke=[],it=[];return Oo.forEach(function(yt){rh(yt)?Ke.push([yt]):it.push(yt)}),it.forEach(function(yt){var bt=yt[0];Ke.some(function(kt){if(nh(kt[0],bt))return kt.push(yt),!0})||Ke.push([yt])}),Oo=[],Ke.length?Ke.length>1?{type:"MultiPolygon",coordinates:Ke}:{type:"Polygon",coordinates:Ke[0]}:null}};function Ls(Ke){var it=Ke(i,0)[0]-Ke(-i,0)[0];function yt(bt,kt){var It=P(bt)0?bt-c:bt+c,kt),pr=(Ft[0]-Ft[1])*x,wr=(Ft[0]+Ft[1])*x;if(It)return[pr,wr];var ar=it*x,Sr=pr>0^wr>0?-1:1;return[Sr*pr-u(wr)*ar,Sr*wr-u(pr)*ar]}return Ke.invert&&(yt.invert=function(bt,kt){var It=(bt+kt)*x,Ft=(kt-bt)*x,pr=P(It)<.5*it&&P(Ft)<.5*it;if(!pr){var wr=it*x,ar=It>0^Ft>0?-1:1,Sr=-ar*bt+(Ft>0?1:-1)*wr,Dr=-ar*kt+(It>0?1:-1)*wr;It=(-Sr-Dr)*x,Ft=(Sr-Dr)*x}var Ur=Ke.invert(It,Ft);return pr||(Ur[0]+=It>0?c:-c),Ur}),(0,m.c)(yt).rotate([-90,-90,45]).clipAngle(179.999)}function oh(){return Ls(Mn).scale(176.423)}function ec(){return Ls(mr).scale(111.48)}function tc(Ke,it){if(!(0<=(it=+it)&&it<=20))throw new Error("invalid digits");function yt(ar){var Sr=ar.length,Dr=2,Ur=new Array(Sr);for(Ur[0]=+ar[0].toFixed(it),Ur[1]=+ar[1].toFixed(it);Dr2||on[0]!=Sr[0]||on[1]!=Sr[1])&&(Dr.push(on),Sr=on)}return Dr.length===1&&ar.length>1&&Dr.push(yt(ar[ar.length-1])),Dr}function It(ar){return ar.map(kt)}function Ft(ar){if(ar==null)return ar;var Sr;switch(ar.type){case"GeometryCollection":Sr={type:"GeometryCollection",geometries:ar.geometries.map(Ft)};break;case"Point":Sr={type:"Point",coordinates:yt(ar.coordinates)};break;case"MultiPoint":Sr={type:ar.type,coordinates:bt(ar.coordinates)};break;case"LineString":Sr={type:ar.type,coordinates:kt(ar.coordinates)};break;case"MultiLineString":case"Polygon":Sr={type:ar.type,coordinates:It(ar.coordinates)};break;case"MultiPolygon":Sr={type:"MultiPolygon",coordinates:ar.coordinates.map(It)};break;default:return ar}return ar.bbox!=null&&(Sr.bbox=ar.bbox),Sr}function pr(ar){var Sr={type:"Feature",properties:ar.properties,geometry:Ft(ar.geometry)};return ar.id!=null&&(Sr.id=ar.id),ar.bbox!=null&&(Sr.bbox=ar.bbox),Sr}if(Ke!=null)switch(Ke.type){case"Feature":return pr(Ke);case"FeatureCollection":{var wr={type:"FeatureCollection",features:Ke.features.map(pr)};return Ke.bbox!=null&&(wr.bbox=Ke.bbox),wr}default:return Ft(Ke)}return Ke}function yf(Ke){var it=l(Ke);function yt(bt,kt){var It=it?g(bt*it/2)/it:bt/2;if(!kt)return[2*It,-Ke];var Ft=2*s(It*l(kt)),pr=1/g(kt);return[l(Ft)*pr,kt+(1-S(Ft))*pr-Ke]}return yt.invert=function(bt,kt){if(P(kt+=Ke)h&&--pr>0);var Ur=bt*(ar=g(Ft)),on=g(P(kt)0?i:-i)*(wr+kt*(Sr-Ft)/2+kt*kt*(Sr-2*wr+Ft)/2)]}es.invert=function(Ke,it){var yt=it/i,bt=yt*90,kt=a(18,P(bt/5)),It=t(0,p(kt));do{var Ft=wo[It][1],pr=wo[It+1][1],wr=wo[a(19,It+2)][1],ar=wr-Ft,Sr=wr-2*pr+Ft,Dr=2*(P(yt)-pr)/ar,Ur=Sr/ar,on=Dr*(1-Ur*Dr*(1-2*Ur*Dr));if(on>=0||It===1){bt=(it>=0?5:-5)*(on+kt);var xn=50,_n;do kt=a(18,P(bt)/5),It=p(kt),on=kt-It,Ft=wo[It][1],pr=wo[It+1][1],wr=wo[a(19,It+2)][1],bt-=(_n=(it>=0?i:-i)*(pr+on*(wr-Ft)/2+on*on*(wr-2*pr+Ft)/2)-it)*E;while(P(_n)>T&&--xn>0);break}}while(--It>=0);var Dn=wo[It][0],Kn=wo[It+1][0],Ra=wo[a(19,It+2)][0];return[Ke/(Kn+on*(Ra-Dn)/2+on*on*(Ra-2*Kn+Dn)/2),bt*A]};function Gs(){return(0,m.c)(es).scale(152.63)}function Fl(Ke){function it(yt,bt){var kt=S(bt),It=(Ke-1)/(Ke-kt*S(yt));return[It*kt*l(yt),It*l(bt)]}return it.invert=function(yt,bt){var kt=yt*yt+bt*bt,It=I(kt),Ft=(Ke-I(1-kt*(Ke+1)/(Ke-1)))/((Ke-1)/It+It/(Ke-1));return[L(yt*Ft,It*I(1-Ft*Ft)),It?M(bt*Ft/It):0]},it}function Gu(Ke,it){var yt=Fl(Ke);if(!it)return yt;var bt=S(it),kt=l(it);function It(Ft,pr){var wr=yt(Ft,pr),ar=wr[1],Sr=ar*kt/(Ke-1)+bt;return[wr[0]*bt/Sr,ar/Sr]}return It.invert=function(Ft,pr){var wr=(Ke-1)/(Ke-1-pr*kt);return yt.invert(wr*Ft,wr*pr*bt)},It}function ll(){var Ke=2,it=0,yt=(0,m.U)(Gu),bt=yt(Ke,it);return bt.distance=function(kt){return arguments.length?yt(Ke=+kt,it):Ke},bt.tilt=function(kt){return arguments.length?yt(Ke,it=kt*A):it*E},bt.scale(432.147).clipAngle(b(1/Ke)*E-1e-6)}var ul=1e-4,nc=1e4,Ps=-180,Nl=Ps+ul,Ws=180,_s=Ws-ul,lu=-90,Bl=lu+ul,vi=90,Ul=vi-ul;function Wu(Ke){return Ke.length>0}function ac(Ke){return Math.floor(Ke*nc)/nc}function Vl(Ke){return Ke===lu||Ke===vi?[0,Ke]:[Ps,ac(Ke)]}function uu(Ke){var it=Ke[0],yt=Ke[1],bt=!1;return it<=Nl?(it=Ps,bt=!0):it>=_s&&(it=Ws,bt=!0),yt<=Bl?(yt=lu,bt=!0):yt>=Ul&&(yt=vi,bt=!0),bt?[it,yt]:Ke}function Yu(Ke){return Ke.map(uu)}function mf(Ke,it,yt){for(var bt=0,kt=Ke.length;bt=_s||Sr<=Bl||Sr>=Ul){It[Ft]=uu(wr);for(var Dr=Ft+1;DrNl&&on<_s&&xn>Bl&&xn=pr)break;yt.push({index:-1,polygon:it,ring:It=It.slice(Dr-1)}),It[0]=Vl(It[0][1]),Ft=-1,pr=It.length}}}}function fu(Ke){var it,yt=Ke.length,bt={},kt={},It,Ft,pr,wr,ar;for(it=0;it0?c-pr:pr)*E],ar=(0,m.c)(Ke(Ft)).rotate(wr),Sr=(0,He.c)(wr),Dr=ar.center;return delete ar.rotate,ar.center=function(Ur){return arguments.length?Dr(Sr(Ur)):Sr.invert(Dr())},ar.clipAngle(90)}function xf(Ke){var it=S(Ke);function yt(bt,kt){var It=(0,Vs.Y)(bt,kt);return It[0]*=it,It}return yt.invert=function(bt,kt){return Vs.Y.invert(bt/it,kt)},yt}function fl(){return ju([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ju(Ke,it){return ds(xf,Ke,it)}function vu(Ke){if(!(Ke*=2))return oe.O;var it=-Ke/2,yt=-it,bt=Ke*Ke,kt=g(yt),It=.5/l(yt);function Ft(pr,wr){var ar=b(S(wr)*S(pr-it)),Sr=b(S(wr)*S(pr-yt)),Dr=wr<0?-1:1;return ar*=ar,Sr*=Sr,[(ar-Sr)/(2*Ke),Dr*I(4*bt*Sr-(bt-ar+Sr)*(bt-ar+Sr))/(2*Ke)]}return Ft.invert=function(pr,wr){var ar=wr*wr,Sr=S(I(ar+(Ur=pr+it)*Ur)),Dr=S(I(ar+(Ur=pr+yt)*Ur)),Ur,on;return[L(on=Sr-Dr,Ur=(Sr+Dr)*kt),(wr<0?-1:1)*b(I(Ur*Ur+on*on)*It)]},Ft}function sh(){return ic([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ic(Ke,it){return ds(vu,Ke,it)}function po(Ke,it){if(P(it)h&&--pr>0);return[u(Ke)*(I(kt*kt+4)+kt)*c/4,i*Ft]};function pu(){return(0,m.c)(_o).scale(127.16)}function Xu(Ke,it,yt,bt,kt){function It(Ft,pr){var wr=yt*l(bt*pr),ar=I(1-wr*wr),Sr=I(2/(1+ar*S(Ft*=kt)));return[Ke*ar*Sr*l(Ft),it*wr*Sr]}return It.invert=function(Ft,pr){var wr=Ft/Ke,ar=pr/it,Sr=I(wr*wr+ar*ar),Dr=2*M(Sr/2);return[L(Ft*g(Dr),Ke*Sr)/kt,Sr&&M(pr*l(Dr)/(it*yt*Sr))/bt]},It}function Rs(Ke,it,yt,bt){var kt=c/3;Ke=t(Ke,h),it=t(it,h),Ke=a(Ke,i),it=a(it,c-h),yt=t(yt,0),yt=a(yt,100-h),bt=t(bt,h);var It=yt/100+1,Ft=bt/100,pr=b(It*S(kt))/kt,wr=l(Ke)/l(pr*i),ar=it/c,Sr=I(Ft*l(Ke/2)/l(it/2)),Dr=Sr/I(ar*wr*pr),Ur=1/(Sr*I(ar*wr*pr));return Xu(Dr,Ur,wr,pr,ar)}function Zs(){var Ke=65*A,it=60*A,yt=20,bt=200,kt=(0,m.U)(Rs),It=kt(Ke,it,yt,bt);return It.poleline=function(Ft){return arguments.length?kt(Ke=+Ft*A,it,yt,bt):Ke*E},It.parallels=function(Ft){return arguments.length?kt(Ke,it=+Ft*A,yt,bt):it*E},It.inflation=function(Ft){return arguments.length?kt(Ke,it,yt=+Ft,bt):yt},It.ratio=function(Ft){return arguments.length?kt(Ke,it,yt,bt=+Ft):bt},It.scale(163.775)}function bf(){return Zs().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var gu=4*c+3*I(3),yu=2*I(2*c*I(3)/gu),Zu=Te(yu*I(3)/c,yu,gu/6);function sc(){return(0,m.c)(Zu).scale(176.84)}function mu(Ke,it){return[Ke*I(1-3*it*it/(c*c)),it]}mu.invert=function(Ke,it){return[Ke/I(1-3*it*it/(c*c)),it]};function wf(){return(0,m.c)(mu).scale(152.63)}function cl(Ke,it){var yt=S(it),bt=S(Ke)*yt,kt=1-bt,It=S(Ke=L(l(Ke)*yt,-l(it))),Ft=l(Ke);return yt=I(1-bt*bt),[Ft*yt-It*kt,-It*yt-Ft*kt]}cl.invert=function(Ke,it){var yt=(Ke*Ke+it*it)/-2,bt=I(-yt*(2+yt)),kt=it*yt+Ke*bt,It=Ke*yt-it*bt,Ft=I(It*It+kt*kt);return[L(bt*kt,Ft*(1+yt)),Ft?-M(bt*It/Ft):0]};function Tf(){return(0,m.c)(cl).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function xu(Ke,it){var yt=W(Ke,it);return[(yt[0]+Ke/i)/2,(yt[1]+it)/2]}xu.invert=function(Ke,it){var yt=Ke,bt=it,kt=25;do{var It=S(bt),Ft=l(bt),pr=l(2*bt),wr=Ft*Ft,ar=It*It,Sr=l(yt),Dr=S(yt/2),Ur=l(yt/2),on=Ur*Ur,xn=1-ar*Dr*Dr,_n=xn?b(It*Dr)*I(Dn=1/xn):Dn=0,Dn,Kn=.5*(2*_n*It*Ur+yt/i)-Ke,Ra=.5*(_n*Ft+bt)-it,Da=.5*Dn*(ar*on+_n*It*Dr*wr)+.5/i,ka=Dn*(Sr*pr/4-_n*Ft*Ur),Na=.125*Dn*(pr*Ur-_n*Ft*ar*Sr),Ka=.5*Dn*(wr*Dr+_n*on*It)+.5,di=ka*Na-Ka*Da,zi=(Ra*ka-Kn*Ka)/di,ue=(Kn*Na-Ra*Da)/di;yt-=zi,bt-=ue}while((P(zi)>h||P(ue)>h)&&--kt>0);return[yt,bt]};function lc(){return(0,m.c)(xu).scale(158.837)}},88728:function(G,H,e){e.d(H,{c:function(){return m}});function m(){return new P}function P(){this.reset()}P.prototype={constructor:P,reset:function(){this.s=this.t=0},add:function(S){L(s,S,this.t),L(this,s.s,this.s),this.s?this.t+=s.t:this.s=s.t},valueOf:function(){return this.s}};var s=new P;function L(S,v,p){var r=S.s=v+p,t=r-v,a=r-t;S.t=v-a+(p-t)}},95384:function(G,H,e){e.d(H,{cp:function(){return T},mQ:function(){return S},oB:function(){return f}});var m=e(88728),P=e(64528),s=e(70932),L=e(16016),S=(0,m.c)(),v=(0,m.c)(),p,r,t,a,n,f={point:s.c,lineStart:s.c,lineEnd:s.c,polygonStart:function(){S.reset(),f.lineStart=u,f.lineEnd=l},polygonEnd:function(){var c=+S;v.add(c<0?P.kD+c:c),this.lineStart=this.lineEnd=this.point=s.c},sphere:function(){v.add(P.kD)}};function u(){f.point=g}function l(){h(p,r)}function g(c,i){f.point=h,p=c,r=i,c*=P.qw,i*=P.qw,t=c,a=(0,P.W8)(i=i/2+P.wL),n=(0,P.g$)(i)}function h(c,i){c*=P.qw,i*=P.qw,i=i/2+P.wL;var d=c-t,x=d>=0?1:-1,w=x*d,C=(0,P.W8)(i),y=(0,P.g$)(i),E=n*y,A=a*C+E*(0,P.W8)(w),o=E*x*(0,P.g$)(w);S.add((0,P.WE)(o,A)),t=c,a=C,n=y}function T(c){return v.reset(),(0,L.c)(c,f),v*2}},13696:function(G,H,e){e.d(H,{c:function(){return M}});var m=e(88728),P=e(95384),s=e(84220),L=e(64528),S=e(16016),v,p,r,t,a,n,f,u,l=(0,m.c)(),g,h,T={point:c,lineStart:d,lineEnd:x,polygonStart:function(){T.point=w,T.lineStart=C,T.lineEnd=y,l.reset(),P.oB.polygonStart()},polygonEnd:function(){P.oB.polygonEnd(),T.point=c,T.lineStart=d,T.lineEnd=x,P.mQ<0?(v=-(r=180),p=-(t=90)):l>L.Gg?t=90:l<-L.Gg&&(p=-90),h[0]=v,h[1]=r},sphere:function(){v=-(r=180),p=-(t=90)}};function c(b,I){g.push(h=[v=b,r=b]),It&&(t=I)}function i(b,I){var D=(0,s.ux)([b*L.qw,I*L.qw]);if(u){var N=(0,s.CW)(u,D),k=[N[1],-N[0],0],O=(0,s.CW)(k,N);(0,s.cJ)(O),O=(0,s.G)(O);var F=b-a,z=F>0?1:-1,B=O[0]*L.oh*z,W,J=(0,L.a2)(F)>180;J^(z*at&&(t=W)):(B=(B+360)%360-180,J^(z*at&&(t=I))),J?bE(v,r)&&(r=b):E(b,r)>E(v,r)&&(v=b):r>=v?(br&&(r=b)):b>a?E(v,b)>E(v,r)&&(r=b):E(b,r)>E(v,r)&&(v=b)}else g.push(h=[v=b,r=b]);It&&(t=I),u=D,a=b}function d(){T.point=i}function x(){h[0]=v,h[1]=r,T.point=c,u=null}function w(b,I){if(u){var D=b-a;l.add((0,L.a2)(D)>180?D+(D>0?360:-360):D)}else n=b,f=I;P.oB.point(b,I),i(b,I)}function C(){P.oB.lineStart()}function y(){w(n,f),P.oB.lineEnd(),(0,L.a2)(l)>L.Gg&&(v=-(r=180)),h[0]=v,h[1]=r,u=null}function E(b,I){return(I-=b)<0?I+360:I}function A(b,I){return b[0]-I[0]}function o(b,I){return b[0]<=b[1]?b[0]<=I&&I<=b[1]:IE(N[0],N[1])&&(N[1]=k[1]),E(k[0],N[1])>E(N[0],N[1])&&(N[0]=k[0])):O.push(N=k);for(F=-1/0,D=O.length-1,I=0,N=O[D];I<=D;N=k,++I)k=O[I],(z=E(N[1],k[0]))>F&&(F=z,v=k[0],r=N[1])}return g=h=null,v===1/0||p===1/0?[[NaN,NaN],[NaN,NaN]]:[[v,p],[r,t]]}},84220:function(G,H,e){e.d(H,{CW:function(){return S},Ez:function(){return L},G:function(){return P},cJ:function(){return r},mg:function(){return v},ux:function(){return s},wx:function(){return p}});var m=e(64528);function P(t){return[(0,m.WE)(t[1],t[0]),(0,m.qR)(t[2])]}function s(t){var a=t[0],n=t[1],f=(0,m.W8)(n);return[f*(0,m.W8)(a),f*(0,m.g$)(a),(0,m.g$)(n)]}function L(t,a){return t[0]*a[0]+t[1]*a[1]+t[2]*a[2]}function S(t,a){return[t[1]*a[2]-t[2]*a[1],t[2]*a[0]-t[0]*a[2],t[0]*a[1]-t[1]*a[0]]}function v(t,a){t[0]+=a[0],t[1]+=a[1],t[2]+=a[2]}function p(t,a){return[t[0]*a,t[1]*a,t[2]*a]}function r(t){var a=(0,m._I)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=a,t[1]/=a,t[2]/=a}},24052:function(G,H,e){e.d(H,{c:function(){return D}});var m=e(64528),P=e(70932),s=e(16016),L,S,v,p,r,t,a,n,f,u,l,g,h,T,c,i,d={sphere:P.c,point:x,lineStart:C,lineEnd:A,polygonStart:function(){d.lineStart=o,d.lineEnd=M},polygonEnd:function(){d.lineStart=C,d.lineEnd=A}};function x(N,k){N*=m.qw,k*=m.qw;var O=(0,m.W8)(k);w(O*(0,m.W8)(N),O*(0,m.g$)(N),(0,m.g$)(k))}function w(N,k,O){++L,v+=(N-v)/L,p+=(k-p)/L,r+=(O-r)/L}function C(){d.point=y}function y(N,k){N*=m.qw,k*=m.qw;var O=(0,m.W8)(k);T=O*(0,m.W8)(N),c=O*(0,m.g$)(N),i=(0,m.g$)(k),d.point=E,w(T,c,i)}function E(N,k){N*=m.qw,k*=m.qw;var O=(0,m.W8)(k),F=O*(0,m.W8)(N),z=O*(0,m.g$)(N),B=(0,m.g$)(k),W=(0,m.WE)((0,m._I)((W=c*B-i*z)*W+(W=i*F-T*B)*W+(W=T*z-c*F)*W),T*F+c*z+i*B);S+=W,t+=W*(T+(T=F)),a+=W*(c+(c=z)),n+=W*(i+(i=B)),w(T,c,i)}function A(){d.point=x}function o(){d.point=b}function M(){I(g,h),d.point=x}function b(N,k){g=N,h=k,N*=m.qw,k*=m.qw,d.point=I;var O=(0,m.W8)(k);T=O*(0,m.W8)(N),c=O*(0,m.g$)(N),i=(0,m.g$)(k),w(T,c,i)}function I(N,k){N*=m.qw,k*=m.qw;var O=(0,m.W8)(k),F=O*(0,m.W8)(N),z=O*(0,m.g$)(N),B=(0,m.g$)(k),W=c*B-i*z,J=i*F-T*B,re=T*z-c*F,ne=(0,m._I)(W*W+J*J+re*re),le=(0,m.qR)(ne),$=ne&&-le/ne;f+=$*W,u+=$*J,l+=$*re,S+=le,t+=le*(T+(T=F)),a+=le*(c+(c=z)),n+=le*(i+(i=B)),w(T,c,i)}function D(N){L=S=v=p=r=t=a=n=f=u=l=0,(0,s.c)(N,d);var k=f,O=u,F=l,z=k*k+O*O+F*F;return z0?fu)&&(f+=n*s.kD));for(var T,c=f;n>0?c>u:c0?P.pi:-P.pi,l=(0,P.a2)(n-p);(0,P.a2)(l-P.pi)0?P.or:-P.or),v.point(t,r),v.lineEnd(),v.lineStart(),v.point(u,r),v.point(n,r),a=0):t!==u&&l>=P.pi&&((0,P.a2)(p-t)P.Gg?(0,P.MQ)(((0,P.g$)(p)*(n=(0,P.W8)(t))*(0,P.g$)(r)-(0,P.g$)(t)*(a=(0,P.W8)(p))*(0,P.g$)(v))/(a*n*f)):(p+t)/2}function S(v,p,r,t){var a;if(v==null)a=r*P.or,t.point(-P.pi,a),t.point(0,a),t.point(P.pi,a),t.point(P.pi,0),t.point(P.pi,-a),t.point(0,-a),t.point(-P.pi,-a),t.point(-P.pi,0),t.point(-P.pi,a);else if((0,P.a2)(v[0]-p[0])>P.Gg){var n=v[0]1&&s.push(s.pop().concat(s.shift()))},result:function(){var S=s;return s=[],L=null,S}}}},2728:function(G,H,e){e.d(H,{c:function(){return v}});var m=e(84220),P=e(61780),s=e(64528),L=e(41860),S=e(14229);function v(p){var r=(0,s.W8)(p),t=6*s.qw,a=r>0,n=(0,s.a2)(r)>s.Gg;function f(T,c,i,d){(0,P.Q)(d,p,t,i,T,c)}function u(T,c){return(0,s.W8)(T)*(0,s.W8)(c)>r}function l(T){var c,i,d,x,w;return{lineStart:function(){x=d=!1,w=1},point:function(C,y){var E=[C,y],A,o=u(C,y),M=a?o?0:h(C,y):o?h(C+(C<0?s.pi:-s.pi),y):0;if(!c&&(x=d=o)&&T.lineStart(),o!==d&&(A=g(c,E),(!A||(0,L.c)(c,A)||(0,L.c)(E,A))&&(E[2]=1)),o!==d)w=0,o?(T.lineStart(),A=g(E,c),T.point(A[0],A[1])):(A=g(c,E),T.point(A[0],A[1],2),T.lineEnd()),c=A;else if(n&&c&&a^o){var b;!(M&i)&&(b=g(E,c,!0))&&(w=0,a?(T.lineStart(),T.point(b[0][0],b[0][1]),T.point(b[1][0],b[1][1]),T.lineEnd()):(T.point(b[1][0],b[1][1]),T.lineEnd(),T.lineStart(),T.point(b[0][0],b[0][1],3)))}o&&(!c||!(0,L.c)(c,E))&&T.point(E[0],E[1]),c=E,d=o,i=M},lineEnd:function(){d&&T.lineEnd(),c=null},clean:function(){return w|(x&&d)<<1}}}function g(T,c,i){var d=(0,m.ux)(T),x=(0,m.ux)(c),w=[1,0,0],C=(0,m.CW)(d,x),y=(0,m.Ez)(C,C),E=C[0],A=y-E*E;if(!A)return!i&&T;var o=r*y/A,M=-r*E/A,b=(0,m.CW)(w,C),I=(0,m.wx)(w,o),D=(0,m.wx)(C,M);(0,m.mg)(I,D);var N=b,k=(0,m.Ez)(I,N),O=(0,m.Ez)(N,N),F=k*k-O*((0,m.Ez)(I,I)-1);if(!(F<0)){var z=(0,s._I)(F),B=(0,m.wx)(N,(-k-z)/O);if((0,m.mg)(B,I),B=(0,m.G)(B),!i)return B;var W=T[0],J=c[0],re=T[1],ne=c[1],le;J0^B[1]<((0,s.a2)(B[0]-W)s.pi^(W<=B[0]&&B[0]<=J)){var X=(0,m.wx)(N,(-k+z)/O);return(0,m.mg)(X,I),[B,(0,m.G)(X)]}}}function h(T,c){var i=a?p:s.pi-p,d=0;return T<-i?d|=1:T>i&&(d|=2),c<-i?d|=4:c>i&&(d|=8),d}return(0,S.c)(u,l,f,a?[0,-p]:[-s.pi,p-s.pi])}},14229:function(G,H,e){e.d(H,{c:function(){return v}});var m=e(97208),P=e(32232),s=e(64528),L=e(58196),S=e(84706);function v(t,a,n,f){return function(u){var l=a(u),g=(0,m.c)(),h=a(g),T=!1,c,i,d,x={point:w,lineStart:y,lineEnd:E,polygonStart:function(){x.point=A,x.lineStart=o,x.lineEnd=M,i=[],c=[]},polygonEnd:function(){x.point=w,x.lineStart=y,x.lineEnd=E,i=(0,S.Uf)(i);var b=(0,L.c)(c,f);i.length?(T||(u.polygonStart(),T=!0),(0,P.c)(i,r,b,n,u)):b&&(T||(u.polygonStart(),T=!0),u.lineStart(),n(null,null,1,u),u.lineEnd()),T&&(u.polygonEnd(),T=!1),i=c=null},sphere:function(){u.polygonStart(),u.lineStart(),n(null,null,1,u),u.lineEnd(),u.polygonEnd()}};function w(b,I){t(b,I)&&u.point(b,I)}function C(b,I){l.point(b,I)}function y(){x.point=C,l.lineStart()}function E(){x.point=w,l.lineEnd()}function A(b,I){d.push([b,I]),h.point(b,I)}function o(){h.lineStart(),d=[]}function M(){A(d[0][0],d[0][1]),h.lineEnd();var b=h.clean(),I=g.result(),D,N=I.length,k,O,F;if(d.pop(),c.push(d),d=null,!!N){if(b&1){if(O=I[0],(k=O.length-1)>0){for(T||(u.polygonStart(),T=!0),u.lineStart(),D=0;D1&&b&2&&I.push(I.pop().concat(I.shift())),i.push(I.filter(p))}}return x}}function p(t){return t.length>1}function r(t,a){return((t=t.x)[0]<0?t[1]-s.or-s.Gg:s.or-t[1])-((a=a.x)[0]<0?a[1]-s.or-s.Gg:s.or-a[1])}},21676:function(G,H,e){e.d(H,{c:function(){return r}});var m=e(64528),P=e(97208);function s(t,a,n,f,u,l){var g=t[0],h=t[1],T=a[0],c=a[1],i=0,d=1,x=T-g,w=c-h,C;if(C=n-g,!(!x&&C>0)){if(C/=x,x<0){if(C0){if(C>d)return;C>i&&(i=C)}if(C=u-g,!(!x&&C<0)){if(C/=x,x<0){if(C>d)return;C>i&&(i=C)}else if(x>0){if(C0)){if(C/=w,w<0){if(C0){if(C>d)return;C>i&&(i=C)}if(C=l-h,!(!w&&C<0)){if(C/=w,w<0){if(C>d)return;C>i&&(i=C)}else if(w>0){if(C0&&(t[0]=g+i*x,t[1]=h+i*w),d<1&&(a[0]=g+d*x,a[1]=h+d*w),!0}}}}}var L=e(32232),S=e(84706),v=1e9,p=-v;function r(t,a,n,f){function u(c,i){return t<=c&&c<=n&&a<=i&&i<=f}function l(c,i,d,x){var w=0,C=0;if(c==null||(w=g(c,d))!==(C=g(i,d))||T(c,i)<0^d>0)do x.point(w===0||w===3?t:n,w>1?f:a);while((w=(w+d+4)%4)!==C);else x.point(i[0],i[1])}function g(c,i){return(0,m.a2)(c[0]-t)0?0:3:(0,m.a2)(c[0]-n)0?2:1:(0,m.a2)(c[1]-a)0?1:0:i>0?3:2}function h(c,i){return T(c.x,i.x)}function T(c,i){var d=g(c,1),x=g(i,1);return d!==x?d-x:d===0?i[1]-c[1]:d===1?c[0]-i[0]:d===2?c[1]-i[1]:i[0]-c[0]}return function(c){var i=c,d=(0,P.c)(),x,w,C,y,E,A,o,M,b,I,D,N={point:k,lineStart:B,lineEnd:W,polygonStart:F,polygonEnd:z};function k(re,ne){u(re,ne)&&i.point(re,ne)}function O(){for(var re=0,ne=0,le=w.length;nef&&(Y-Q)*(f-oe)>(j-oe)*(t-Q)&&++re:j<=f&&(Y-Q)*(f-oe)<(j-oe)*(t-Q)&&--re;return re}function F(){i=d,x=[],w=[],D=!0}function z(){var re=O(),ne=D&&re,le=(x=(0,S.Uf)(x)).length;(ne||le)&&(c.polygonStart(),ne&&(c.lineStart(),l(null,null,1,c),c.lineEnd()),le&&(0,L.c)(x,h,re,l,c),c.polygonEnd()),i=c,x=w=C=null}function B(){N.point=J,w&&w.push(C=[]),I=!0,b=!1,o=M=NaN}function W(){x&&(J(y,E),A&&b&&d.rejoin(),x.push(d.result())),N.point=k,b&&i.lineEnd()}function J(re,ne){var le=u(re,ne);if(w&&C.push([re,ne]),I)y=re,E=ne,A=le,I=!1,le&&(i.lineStart(),i.point(re,ne));else if(le&&b)i.point(re,ne);else{var $=[o=Math.max(p,Math.min(v,o)),M=Math.max(p,Math.min(v,M))],Z=[re=Math.max(p,Math.min(v,re)),ne=Math.max(p,Math.min(v,ne))];s($,Z,t,a,n,f)?(b||(i.lineStart(),i.point($[0],$[1])),i.point(Z[0],Z[1]),le||i.lineEnd(),D=!1):le&&(i.lineStart(),i.point(re,ne),D=!1)}o=re,M=ne,b=le}return N}}},32232:function(G,H,e){e.d(H,{c:function(){return L}});var m=e(41860),P=e(64528);function s(v,p,r,t){this.x=v,this.z=p,this.o=r,this.e=t,this.v=!1,this.n=this.p=null}function L(v,p,r,t,a){var n=[],f=[],u,l;if(v.forEach(function(d){if(!((x=d.length-1)<=0)){var x,w=d[0],C=d[x],y;if((0,m.c)(w,C)){if(!w[2]&&!C[2]){for(a.lineStart(),u=0;u=0;--u)a.point((T=h[u])[0],T[1]);else t(c.x,c.p.x,-1,a);c=c.p}c=c.o,h=c.z,i=!i}while(!c.v);a.lineEnd()}}}function S(v){if(p=v.length){for(var p,r=0,t=v[0],a;++r0&&(ln=A(Tr[fn],Tr[fn-1]),ln>0&&Yr<=ln&&Or<=ln&&(Yr+Or-ln)*(1-Math.pow((Yr-Or)/ln,2))n.Gg}).map(Wn)).concat((0,z.ik)((0,n.Km)(fn/ia)*ia,ln,ia).filter(function(bn){return(0,n.a2)(bn%wa)>n.Gg}).map(Qn))}return vn.lines=function(){return On().map(function(bn){return{type:"LineString",coordinates:bn}})},vn.outline=function(){return{type:"Polygon",coordinates:[mr(Or).concat(en(Mn).slice(1),mr(Yr).reverse().slice(1),en(Pn).reverse().slice(1))]}},vn.extent=function(bn){return arguments.length?vn.extentMajor(bn).extentMinor(bn):vn.extentMinor()},vn.extentMajor=function(bn){return arguments.length?(Or=+bn[0][0],Yr=+bn[1][0],Pn=+bn[0][1],Mn=+bn[1][1],Or>Yr&&(bn=Or,Or=Yr,Yr=bn),Pn>Mn&&(bn=Pn,Pn=Mn,Mn=bn),vn.precision(Jr)):[[Or,Pn],[Yr,Mn]]},vn.extentMinor=function(bn){return arguments.length?(zr=+bn[0][0],Tr=+bn[1][0],fn=+bn[0][1],ln=+bn[1][1],zr>Tr&&(bn=zr,zr=Tr,Tr=bn),fn>ln&&(bn=fn,fn=ln,ln=bn),vn.precision(Jr)):[[zr,fn],[Tr,ln]]},vn.step=function(bn){return arguments.length?vn.stepMajor(bn).stepMinor(bn):vn.stepMinor()},vn.stepMajor=function(bn){return arguments.length?(ya=+bn[0],wa=+bn[1],vn):[ya,wa]},vn.stepMinor=function(bn){return arguments.length?(Vn=+bn[0],ia=+bn[1],vn):[Vn,ia]},vn.precision=function(bn){return arguments.length?(Jr=+bn,Wn=B(fn,ln,90),Qn=W(zr,Tr,Jr),mr=B(Pn,Mn,90),en=W(Or,Yr,Jr),vn):Jr},vn.extentMajor([[-180,-90+n.Gg],[180,90-n.Gg]]).extentMinor([[-180,-80-n.Gg],[180,80+n.Gg]])}function re(){return J()()}var ne=e(27284),le=e(7376),$=(0,a.c)(),Z=(0,a.c)(),ie,X,Q,oe,Y={point:f.c,lineStart:f.c,lineEnd:f.c,polygonStart:function(){Y.lineStart=j,Y.lineEnd=fe},polygonEnd:function(){Y.lineStart=Y.lineEnd=Y.point=f.c,$.add((0,n.a2)(Z)),Z.reset()},result:function(){var Tr=$/2;return $.reset(),Tr}};function j(){Y.point=se}function se(Tr,zr){Y.point=te,ie=Q=Tr,X=oe=zr}function te(Tr,zr){Z.add(oe*Tr-Q*zr),Q=Tr,oe=zr}function fe(){te(ie,X)}var ge=Y,be=e(73784),xe=0,_e=0,De=0,Fe=0,Te=0,Re=0,Se=0,Ie=0,Me=0,Ve,et,ot,Qe,$e={point:ht,lineStart:vt,lineEnd:Ct,polygonStart:function(){$e.lineStart=rt,$e.lineEnd=ze},polygonEnd:function(){$e.point=ht,$e.lineStart=vt,$e.lineEnd=Ct},result:function(){var Tr=Me?[Se/Me,Ie/Me]:Re?[Fe/Re,Te/Re]:De?[xe/De,_e/De]:[NaN,NaN];return xe=_e=De=Fe=Te=Re=Se=Ie=Me=0,Tr}};function ht(Tr,zr){xe+=Tr,_e+=zr,++De}function vt(){$e.point=pt}function pt(Tr,zr){$e.point=wt,ht(ot=Tr,Qe=zr)}function wt(Tr,zr){var Yr=Tr-ot,Or=zr-Qe,ln=(0,n._I)(Yr*Yr+Or*Or);Fe+=ln*(ot+Tr)/2,Te+=ln*(Qe+zr)/2,Re+=ln,ht(ot=Tr,Qe=zr)}function Ct(){$e.point=ht}function rt(){$e.point=He}function ze(){We(Ve,et)}function He(Tr,zr){$e.point=We,ht(Ve=ot=Tr,et=Qe=zr)}function We(Tr,zr){var Yr=Tr-ot,Or=zr-Qe,ln=(0,n._I)(Yr*Yr+Or*Or);Fe+=ln*(ot+Tr)/2,Te+=ln*(Qe+zr)/2,Re+=ln,ln=Qe*Tr-ot*zr,Se+=ln*(ot+Tr),Ie+=ln*(Qe+zr),Me+=ln*3,ht(ot=Tr,Qe=zr)}var Ge=$e;function Le(Tr){this._context=Tr}Le.prototype={_radius:4.5,pointRadius:function(Tr){return this._radius=Tr,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Tr,zr){switch(this._point){case 0:{this._context.moveTo(Tr,zr),this._point=1;break}case 1:{this._context.lineTo(Tr,zr);break}default:{this._context.moveTo(Tr+this._radius,zr),this._context.arc(Tr,zr,this._radius,0,n.kD);break}}},result:f.c};var Pe=(0,a.c)(),je,Ce,he,me,Ne,Ze={point:f.c,lineStart:function(){Ze.point=st},lineEnd:function(){je&<(Ce,he),Ze.point=f.c},polygonStart:function(){je=!0},polygonEnd:function(){je=null},result:function(){var Tr=+Pe;return Pe.reset(),Tr}};function st(Tr,zr){Ze.point=lt,Ce=me=Tr,he=Ne=zr}function lt(Tr,zr){me-=Tr,Ne-=zr,Pe.add((0,n._I)(me*me+Ne*Ne)),me=Tr,Ne=zr}var Wt=Ze;function Zt(){this._string=[]}Zt.prototype={_radius:4.5,_circle:Tt(4.5),pointRadius:function(Tr){return(Tr=+Tr)!==this._radius&&(this._radius=Tr,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Tr,zr){switch(this._point){case 0:{this._string.push("M",Tr,",",zr),this._point=1;break}case 1:{this._string.push("L",Tr,",",zr);break}default:{this._circle==null&&(this._circle=Tt(this._radius)),this._string.push("M",Tr,",",zr,this._circle);break}}},result:function(){if(this._string.length){var Tr=this._string.join("");return this._string=[],Tr}else return null}};function Tt(Tr){return"m0,"+Tr+"a"+Tr+","+Tr+" 0 1,1 0,"+-2*Tr+"a"+Tr+","+Tr+" 0 1,1 0,"+2*Tr+"z"}function Rt(Tr,zr){var Yr=4.5,Or,ln;function fn(Mn){return Mn&&(typeof Yr=="function"&&ln.pointRadius(+Yr.apply(this,arguments)),(0,u.c)(Mn,Or(ln))),ln.result()}return fn.area=function(Mn){return(0,u.c)(Mn,Or(ge)),ge.result()},fn.measure=function(Mn){return(0,u.c)(Mn,Or(Wt)),Wt.result()},fn.bounds=function(Mn){return(0,u.c)(Mn,Or(be.c)),be.c.result()},fn.centroid=function(Mn){return(0,u.c)(Mn,Or(Ge)),Ge.result()},fn.projection=function(Mn){return arguments.length?(Or=Mn==null?(Tr=null,le.c):(Tr=Mn).stream,fn):Tr},fn.context=function(Mn){return arguments.length?(ln=Mn==null?(zr=null,new Zt):new Le(zr=Mn),typeof Yr!="function"&&ln.pointRadius(Yr),fn):zr},fn.pointRadius=function(Mn){return arguments.length?(Yr=typeof Mn=="function"?Mn:(ln.pointRadius(+Mn),+Mn),fn):Yr},fn.projection(Tr).context(zr)}var Xt=e(87952);function gr(Tr){var zr=0,Yr=n.pi/3,Or=(0,Xt.U)(Tr),ln=Or(zr,Yr);return ln.parallels=function(fn){return arguments.length?Or(zr=fn[0]*n.qw,Yr=fn[1]*n.qw):[zr*n.oh,Yr*n.oh]},ln}function gt(Tr){var zr=(0,n.W8)(Tr);function Yr(Or,ln){return[Or*zr,(0,n.g$)(ln)/zr]}return Yr.invert=function(Or,ln){return[Or/zr,(0,n.qR)(ln*zr)]},Yr}function Kt(Tr,zr){var Yr=(0,n.g$)(Tr),Or=(Yr+(0,n.g$)(zr))/2;if((0,n.a2)(Or)=.12&&Jr<.234&&en>=-.425&&en<-.214?ln:Jr>=.166&&Jr<.234&&en>=-.214&&en<-.115?Mn:Yr).invert(Wn)},ya.stream=function(Wn){return Tr&&zr===Wn?Tr:Tr=ut([Yr.stream(zr=Wn),ln.stream(Wn),Mn.stream(Wn)])},ya.precision=function(Wn){return arguments.length?(Yr.precision(Wn),ln.precision(Wn),Mn.precision(Wn),wa()):Yr.precision()},ya.scale=function(Wn){return arguments.length?(Yr.scale(Wn),ln.scale(Wn*.35),Mn.scale(Wn),ya.translate(Yr.translate())):Yr.scale()},ya.translate=function(Wn){if(!arguments.length)return Yr.translate();var Qn=Yr.scale(),mr=+Wn[0],en=+Wn[1];return Or=Yr.translate(Wn).clipExtent([[mr-.455*Qn,en-.238*Qn],[mr+.455*Qn,en+.238*Qn]]).stream(ia),fn=ln.translate([mr-.307*Qn,en+.201*Qn]).clipExtent([[mr-.425*Qn+n.Gg,en+.12*Qn+n.Gg],[mr-.214*Qn-n.Gg,en+.234*Qn-n.Gg]]).stream(ia),Pn=Mn.translate([mr-.205*Qn,en+.212*Qn]).clipExtent([[mr-.214*Qn+n.Gg,en+.166*Qn+n.Gg],[mr-.115*Qn-n.Gg,en+.234*Qn-n.Gg]]).stream(ia),wa()},ya.fitExtent=function(Wn,Qn){return(0,Ot.QX)(ya,Wn,Qn)},ya.fitSize=function(Wn,Qn){return(0,Ot.UV)(ya,Wn,Qn)},ya.fitWidth=function(Wn,Qn){return(0,Ot.Qx)(ya,Wn,Qn)},ya.fitHeight=function(Wn,Qn){return(0,Ot.OW)(ya,Wn,Qn)};function wa(){return Tr=zr=null,ya}return ya.scale(1070)}var xt=e(54724),At=e(69020),Et=e(92992);function Vt(Tr,zr){return[Tr,(0,n.Yz)((0,n.a6)((n.or+zr)/2))]}Vt.invert=function(Tr,zr){return[Tr,2*(0,n.MQ)((0,n.oN)(zr))-n.or]};function Bt(){return Ut(Vt).scale(961/n.kD)}function Ut(Tr){var zr=(0,Xt.c)(Tr),Yr=zr.center,Or=zr.scale,ln=zr.translate,fn=zr.clipExtent,Mn=null,Pn,Vn,ia;zr.scale=function(wa){return arguments.length?(Or(wa),ya()):Or()},zr.translate=function(wa){return arguments.length?(ln(wa),ya()):ln()},zr.center=function(wa){return arguments.length?(Yr(wa),ya()):Yr()},zr.clipExtent=function(wa){return arguments.length?(wa==null?Mn=Pn=Vn=ia=null:(Mn=+wa[0][0],Pn=+wa[0][1],Vn=+wa[1][0],ia=+wa[1][1]),ya()):Mn==null?null:[[Mn,Pn],[Vn,ia]]};function ya(){var wa=n.pi*Or(),Wn=zr((0,Et.c)(zr.rotate()).invert([0,0]));return fn(Mn==null?[[Wn[0]-wa,Wn[1]-wa],[Wn[0]+wa,Wn[1]+wa]]:Tr===Vt?[[Math.max(Wn[0]-wa,Mn),Pn],[Math.min(Wn[0]+wa,Vn),ia]]:[[Mn,Math.max(Wn[1]-wa,Pn)],[Vn,Math.min(Wn[1]+wa,ia)]])}return ya()}function Jt(Tr){return(0,n.a6)((n.or+Tr)/2)}function ur(Tr,zr){var Yr=(0,n.W8)(Tr),Or=Tr===zr?(0,n.g$)(Tr):(0,n.Yz)(Yr/(0,n.W8)(zr))/(0,n.Yz)(Jt(zr)/Jt(Tr)),ln=Yr*(0,n.g3)(Jt(Tr),Or)/Or;if(!Or)return Vt;function fn(Mn,Pn){ln>0?Pn<-n.or+n.Gg&&(Pn=-n.or+n.Gg):Pn>n.or-n.Gg&&(Pn=n.or-n.Gg);var Vn=ln/(0,n.g3)(Jt(Pn),Or);return[Vn*(0,n.g$)(Or*Mn),ln-Vn*(0,n.W8)(Or*Mn)]}return fn.invert=function(Mn,Pn){var Vn=ln-Pn,ia=(0,n.kq)(Or)*(0,n._I)(Mn*Mn+Vn*Vn),ya=(0,n.WE)(Mn,(0,n.a2)(Vn))*(0,n.kq)(Vn);return Vn*Or<0&&(ya-=n.pi*(0,n.kq)(Mn)*(0,n.kq)(Vn)),[ya/Or,2*(0,n.MQ)((0,n.g3)(ln/ia,1/Or))-n.or]},fn}function fr(){return gr(ur).scale(109.5).parallels([30,30])}var dr=e(69604);function Ye(Tr,zr){var Yr=(0,n.W8)(Tr),Or=Tr===zr?(0,n.g$)(Tr):(Yr-(0,n.W8)(zr))/(zr-Tr),ln=Yr/Or+Tr;if((0,n.a2)(Or)2?Or[2]+90:90]):(Or=Yr(),[Or[0],Or[1],Or[2]-90])},Yr([0,0,90]).scale(159.155)}},27284:function(G,H,e){e.d(H,{c:function(){return P}});var m=e(64528);function P(s,L){var S=s[0]*m.qw,v=s[1]*m.qw,p=L[0]*m.qw,r=L[1]*m.qw,t=(0,m.W8)(v),a=(0,m.g$)(v),n=(0,m.W8)(r),f=(0,m.g$)(r),u=t*(0,m.W8)(S),l=t*(0,m.g$)(S),g=n*(0,m.W8)(p),h=n*(0,m.g$)(p),T=2*(0,m.qR)((0,m._I)((0,m.SD)(r-v)+t*n*(0,m.SD)(p-S))),c=(0,m.g$)(T),i=T?function(d){var x=(0,m.g$)(d*=T)/c,w=(0,m.g$)(T-d)/c,C=w*u+x*g,y=w*l+x*h,E=w*a+x*f;return[(0,m.WE)(y,C)*m.oh,(0,m.WE)(E,(0,m._I)(C*C+y*y))*m.oh]}:function(){return[S*m.oh,v*m.oh]};return i.distance=T,i}},64528:function(G,H,e){e.d(H,{Gg:function(){return m},Km:function(){return u},MQ:function(){return a},SD:function(){return C},W8:function(){return f},WE:function(){return n},Yz:function(){return g},_I:function(){return i},a2:function(){return t},a6:function(){return d},a8:function(){return P},g$:function(){return T},g3:function(){return h},kD:function(){return v},kq:function(){return c},mE:function(){return x},oN:function(){return l},oh:function(){return p},or:function(){return L},pi:function(){return s},qR:function(){return w},qw:function(){return r},wL:function(){return S}});var m=1e-6,P=1e-12,s=Math.PI,L=s/2,S=s/4,v=s*2,p=180/s,r=s/180,t=Math.abs,a=Math.atan,n=Math.atan2,f=Math.cos,u=Math.ceil,l=Math.exp,g=Math.log,h=Math.pow,T=Math.sin,c=Math.sign||function(y){return y>0?1:y<0?-1:0},i=Math.sqrt,d=Math.tan;function x(y){return y>1?0:y<-1?s:Math.acos(y)}function w(y){return y>1?L:y<-1?-L:Math.asin(y)}function C(y){return(y=T(y/2))*y}},70932:function(G,H,e){e.d(H,{c:function(){return m}});function m(){}},73784:function(G,H,e){var m=e(70932),P=1/0,s=P,L=-P,S=L,v={point:p,lineStart:m.c,lineEnd:m.c,polygonStart:m.c,polygonEnd:m.c,result:function(){var r=[[P,s],[L,S]];return L=S=-(s=P=1/0),r}};function p(r,t){rL&&(L=r),tS&&(S=t)}H.c=v},41860:function(G,H,e){e.d(H,{c:function(){return P}});var m=e(64528);function P(s,L){return(0,m.a2)(s[0]-L[0])=0?1:-1,N=D*I,k=N>s.pi,O=w*M;if(L.add((0,s.WE)(O*D*(0,s.g$)(N),C*b+O*(0,s.W8)(N))),u+=k?I+D*s.kD:I,k^d>=t^A>=t){var F=(0,P.CW)((0,P.ux)(i),(0,P.ux)(E));(0,P.cJ)(F);var z=(0,P.CW)(f,F);(0,P.cJ)(z);var B=(k^I>=0?-1:1)*(0,s.qR)(z[2]);(a>B||a===B&&(F[0]||F[1]))&&(l+=k^I>=0?1:-1)}}return(u<-s.Gg||u4*C&&B--){var le=M+O,$=b+F,Z=I+z,ie=(0,v._I)(le*le+$*$+Z*Z),X=(0,v.qR)(Z/=ie),Q=(0,v.a2)((0,v.a2)(Z)-1)C||(0,v.a2)((J*se+re*te)/ne-.5)>.3||M*O+b*F+I*z2?fe[2]%360*v.qw:0,se()):[b*v.oh,I*v.oh,D*v.oh]},Y.angle=function(fe){return arguments.length?(k=fe%360*v.qw,se()):k*v.oh},Y.reflectX=function(fe){return arguments.length?(O=fe?-1:1,se()):O<0},Y.reflectY=function(fe){return arguments.length?(F=fe?-1:1,se()):F<0},Y.precision=function(fe){return arguments.length?(Z=u(ie,$=fe*fe),te()):(0,v._I)($)},Y.fitExtent=function(fe,ge){return(0,t.QX)(Y,fe,ge)},Y.fitSize=function(fe,ge){return(0,t.UV)(Y,fe,ge)},Y.fitWidth=function(fe,ge){return(0,t.Qx)(Y,fe,ge)},Y.fitHeight=function(fe,ge){return(0,t.OW)(Y,fe,ge)};function se(){var fe=i(y,0,0,O,F,k).apply(null,C(o,M)),ge=(k?i:c)(y,E-fe[0],A-fe[1],O,F,k);return N=(0,p.O)(b,I,D),ie=(0,L.c)(C,ge),X=(0,L.c)(N,ie),Z=u(ie,$),te()}function te(){return Q=oe=null,Y}return function(){return C=w.apply(this,arguments),Y.invert=C.invert&&j,se()}}},47984:function(G,H,e){e.d(H,{c:function(){return L},g:function(){return s}});var m=e(87952),P=e(64528);function s(S,v){var p=v*v,r=p*p;return[S*(.8707-.131979*p+r*(-.013791+r*(.003971*p-.001529*r))),v*(1.007226+p*(.015085+r*(-.044475+.028874*p-.005916*r)))]}s.invert=function(S,v){var p=v,r=25,t;do{var a=p*p,n=a*a;p-=t=(p*(1.007226+a*(.015085+n*(-.044475+.028874*a-.005916*n)))-v)/(1.007226+a*(.045255+n*(-.311325+.259866*a-.06507600000000001*n)))}while((0,P.a2)(t)>P.Gg&&--r>0);return[S/(.8707+(a=p*p)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),p]};function L(){return(0,m.c)(s).scale(175.295)}},4888:function(G,H,e){e.d(H,{c:function(){return S},t:function(){return L}});var m=e(64528),P=e(62280),s=e(87952);function L(v,p){return[(0,m.W8)(p)*(0,m.g$)(v),(0,m.g$)(p)]}L.invert=(0,P.g)(m.qR);function S(){return(0,s.c)(L).scale(249.5).clipAngle(90+m.Gg)}},92992:function(G,H,e){e.d(H,{O:function(){return L},c:function(){return r}});var m=e(68120),P=e(64528);function s(t,a){return[(0,P.a2)(t)>P.pi?t+Math.round(-t/P.kD)*P.kD:t,a]}s.invert=s;function L(t,a,n){return(t%=P.kD)?a||n?(0,m.c)(v(t),p(a,n)):v(t):a||n?p(a,n):s}function S(t){return function(a,n){return a+=t,[a>P.pi?a-P.kD:a<-P.pi?a+P.kD:a,n]}}function v(t){var a=S(t);return a.invert=S(-t),a}function p(t,a){var n=(0,P.W8)(t),f=(0,P.g$)(t),u=(0,P.W8)(a),l=(0,P.g$)(a);function g(h,T){var c=(0,P.W8)(T),i=(0,P.W8)(h)*c,d=(0,P.g$)(h)*c,x=(0,P.g$)(T),w=x*n+i*f;return[(0,P.WE)(d*u-w*l,i*n-x*f),(0,P.qR)(w*u+d*l)]}return g.invert=function(h,T){var c=(0,P.W8)(T),i=(0,P.W8)(h)*c,d=(0,P.g$)(h)*c,x=(0,P.g$)(T),w=x*u-d*l;return[(0,P.WE)(d*u+x*l,i*n+w*f),(0,P.qR)(w*n-i*f)]},g}function r(t){t=L(t[0]*P.qw,t[1]*P.qw,t.length>2?t[2]*P.qw:0);function a(n){return n=t(n[0]*P.qw,n[1]*P.qw),n[0]*=P.oh,n[1]*=P.oh,n}return a.invert=function(n){return n=t.invert(n[0]*P.qw,n[1]*P.qw),n[0]*=P.oh,n[1]*=P.oh,n},a}},16016:function(G,H,e){e.d(H,{c:function(){return v}});function m(p,r){p&&s.hasOwnProperty(p.type)&&s[p.type](p,r)}var P={Feature:function(p,r){m(p.geometry,r)},FeatureCollection:function(p,r){for(var t=p.features,a=-1,n=t.length;++a=0;)Pe+=je[Ce].value;Le.value=Pe}function a(){return this.eachAfter(t)}function n(Le){var Pe=this,je,Ce=[Pe],he,me,Ne;do for(je=Ce.reverse(),Ce=[];Pe=je.pop();)if(Le(Pe),he=Pe.children,he)for(me=0,Ne=he.length;me=0;--he)je.push(Ce[he]);return this}function u(Le){for(var Pe=this,je=[Pe],Ce=[],he,me,Ne;Pe=je.pop();)if(Ce.push(Pe),he=Pe.children,he)for(me=0,Ne=he.length;me=0;)je+=Ce[he].value;Pe.value=je})}function g(Le){return this.eachBefore(function(Pe){Pe.children&&Pe.children.sort(Le)})}function h(Le){for(var Pe=this,je=T(Pe,Le),Ce=[Pe];Pe!==je;)Pe=Pe.parent,Ce.push(Pe);for(var he=Ce.length;Le!==je;)Ce.splice(he,0,Le),Le=Le.parent;return Ce}function T(Le,Pe){if(Le===Pe)return Le;var je=Le.ancestors(),Ce=Pe.ancestors(),he=null;for(Le=je.pop(),Pe=Ce.pop();Le===Pe;)he=Le,Le=je.pop(),Pe=Ce.pop();return he}function c(){for(var Le=this,Pe=[Le];Le=Le.parent;)Pe.push(Le);return Pe}function i(){var Le=[];return this.each(function(Pe){Le.push(Pe)}),Le}function d(){var Le=[];return this.eachBefore(function(Pe){Pe.children||Le.push(Pe)}),Le}function x(){var Le=this,Pe=[];return Le.each(function(je){je!==Le&&Pe.push({source:je.parent,target:je})}),Pe}function w(Le,Pe){var je=new o(Le),Ce=+Le.value&&(je.value=Le.value),he,me=[je],Ne,Ze,st,lt;for(Pe==null&&(Pe=y);he=me.pop();)if(Ce&&(he.value=+he.data.value),(Ze=Pe(he.data))&&(lt=Ze.length))for(he.children=new Array(lt),st=lt-1;st>=0;--st)me.push(Ne=he.children[st]=new o(Ze[st])),Ne.parent=he,Ne.depth=he.depth+1;return je.eachBefore(A)}function C(){return w(this).eachBefore(E)}function y(Le){return Le.children}function E(Le){Le.data=Le.data.data}function A(Le){var Pe=0;do Le.height=Pe;while((Le=Le.parent)&&Le.height<++Pe)}function o(Le){this.data=Le,this.depth=this.height=0,this.parent=null}o.prototype=w.prototype={constructor:o,count:a,each:n,eachAfter:u,eachBefore:f,sum:l,sort:g,path:h,ancestors:c,descendants:i,leaves:d,links:x,copy:C};var M=Array.prototype.slice;function b(Le){for(var Pe=Le.length,je,Ce;Pe;)Ce=Math.random()*Pe--|0,je=Le[Pe],Le[Pe]=Le[Ce],Le[Ce]=je;return Le}function I(Le){for(var Pe=0,je=(Le=b(M.call(Le))).length,Ce=[],he,me;Pe0&&je*je>Ce*Ce+he*he}function O(Le,Pe){for(var je=0;jest?(he=(lt+st-me)/(2*lt),Ze=Math.sqrt(Math.max(0,st/lt-he*he)),je.x=Le.x-he*Ce-Ze*Ne,je.y=Le.y-he*Ne+Ze*Ce):(he=(lt+me-st)/(2*lt),Ze=Math.sqrt(Math.max(0,me/lt-he*he)),je.x=Pe.x+he*Ce-Ze*Ne,je.y=Pe.y+he*Ne+Ze*Ce)):(je.x=Pe.x+je.r,je.y=Pe.y)}function re(Le,Pe){var je=Le.r+Pe.r-1e-6,Ce=Pe.x-Le.x,he=Pe.y-Le.y;return je>0&&je*je>Ce*Ce+he*he}function ne(Le){var Pe=Le._,je=Le.next._,Ce=Pe.r+je.r,he=(Pe.x*je.r+je.x*Pe.r)/Ce,me=(Pe.y*je.r+je.y*Pe.r)/Ce;return he*he+me*me}function le(Le){this._=Le,this.next=null,this.previous=null}function $(Le){if(!(he=Le.length))return 0;var Pe,je,Ce,he,me,Ne,Ze,st,lt,Wt,Zt;if(Pe=Le[0],Pe.x=0,Pe.y=0,!(he>1))return Pe.r;if(je=Le[1],Pe.x=-je.r,je.x=Pe.r,je.y=0,!(he>2))return Pe.r+je.r;J(je,Pe,Ce=Le[2]),Pe=new le(Pe),je=new le(je),Ce=new le(Ce),Pe.next=Ce.previous=je,je.next=Pe.previous=Ce,Ce.next=je.previous=Pe;e:for(Ze=3;Ze0)throw new Error("cycle");return Ze}return je.id=function(Ce){return arguments.length?(Le=X(Ce),je):Le},je.parentId=function(Ce){return arguments.length?(Pe=X(Ce),je):Pe},je}function Ie(Le,Pe){return Le.parent===Pe.parent?1:2}function Me(Le){var Pe=Le.children;return Pe?Pe[0]:Le.t}function Ve(Le){var Pe=Le.children;return Pe?Pe[Pe.length-1]:Le.t}function et(Le,Pe,je){var Ce=je/(Pe.i-Le.i);Pe.c-=Ce,Pe.s+=je,Le.c+=Ce,Pe.z+=je,Pe.m+=je}function ot(Le){for(var Pe=0,je=0,Ce=Le.children,he=Ce.length,me;--he>=0;)me=Ce[he],me.z+=Pe,me.m+=Pe,Pe+=me.s+(je+=me.c)}function Qe(Le,Pe,je){return Le.a.parent===Pe.parent?Le.a:je}function $e(Le,Pe){this._=Le,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Pe}$e.prototype=Object.create(o.prototype);function ht(Le){for(var Pe=new $e(Le,0),je,Ce=[Pe],he,me,Ne,Ze;je=Ce.pop();)if(me=je._.children)for(je.children=new Array(Ze=me.length),Ne=Ze-1;Ne>=0;--Ne)Ce.push(he=je.children[Ne]=new $e(me[Ne],Ne)),he.parent=je;return(Pe.parent=new $e(null,0)).children=[Pe],Pe}function vt(){var Le=Ie,Pe=1,je=1,Ce=null;function he(lt){var Wt=ht(lt);if(Wt.eachAfter(me),Wt.parent.m=-Wt.z,Wt.eachBefore(Ne),Ce)lt.eachBefore(st);else{var Zt=lt,Tt=lt,Rt=lt;lt.eachBefore(function(Qt){Qt.xTt.x&&(Tt=Qt),Qt.depth>Rt.depth&&(Rt=Qt)});var Xt=Zt===Tt?1:Le(Zt,Tt)/2,gr=Xt-Zt.x,gt=Pe/(Tt.x+Xt+gr),Kt=je/(Rt.depth||1);lt.eachBefore(function(Qt){Qt.x=(Qt.x+gr)*gt,Qt.y=Qt.depth*Kt})}return lt}function me(lt){var Wt=lt.children,Zt=lt.parent.children,Tt=lt.i?Zt[lt.i-1]:null;if(Wt){ot(lt);var Rt=(Wt[0].z+Wt[Wt.length-1].z)/2;Tt?(lt.z=Tt.z+Le(lt._,Tt._),lt.m=lt.z-Rt):lt.z=Rt}else Tt&&(lt.z=Tt.z+Le(lt._,Tt._));lt.parent.A=Ze(lt,Tt,lt.parent.A||Zt[0])}function Ne(lt){lt._.x=lt.z+lt.parent.m,lt.m+=lt.parent.m}function Ze(lt,Wt,Zt){if(Wt){for(var Tt=lt,Rt=lt,Xt=Wt,gr=Tt.parent.children[0],gt=Tt.m,Kt=Rt.m,Qt=Xt.m,yr=gr.m,Ot;Xt=Ve(Xt),Tt=Me(Tt),Xt&&Tt;)gr=Me(gr),Rt=Ve(Rt),Rt.a=lt,Ot=Xt.z+Qt-Tt.z-gt+Le(Xt._,Tt._),Ot>0&&(et(Qe(Xt,lt,Zt),lt,Ot),gt+=Ot,Kt+=Ot),Qt+=Xt.m,gt+=Tt.m,yr+=gr.m,Kt+=Rt.m;Xt&&!Ve(Rt)&&(Rt.t=Xt,Rt.m+=Qt-Kt),Tt&&!Me(gr)&&(gr.t=Tt,gr.m+=gt-yr,Zt=lt)}return Zt}function st(lt){lt.x*=Pe,lt.y=lt.depth*je}return he.separation=function(lt){return arguments.length?(Le=lt,he):Le},he.size=function(lt){return arguments.length?(Ce=!1,Pe=+lt[0],je=+lt[1],he):Ce?null:[Pe,je]},he.nodeSize=function(lt){return arguments.length?(Ce=!0,Pe=+lt[0],je=+lt[1],he):Ce?[Pe,je]:null},he}function pt(Le,Pe,je,Ce,he){for(var me=Le.children,Ne,Ze=-1,st=me.length,lt=Le.value&&(he-je)/Le.value;++ZeQt&&(Qt=lt),at=gt*gt*ut,yr=Math.max(Qt/at,at/Kt),yr>Ot){gt-=lt;break}Ot=yr}Ne.push(st={value:gt,dice:Rt1?Ce:1)},je}(wt);function ze(){var Le=rt,Pe=!1,je=1,Ce=1,he=[0],me=Q,Ne=Q,Ze=Q,st=Q,lt=Q;function Wt(Tt){return Tt.x0=Tt.y0=0,Tt.x1=je,Tt.y1=Ce,Tt.eachBefore(Zt),he=[0],Pe&&Tt.eachBefore(ge),Tt}function Zt(Tt){var Rt=he[Tt.depth],Xt=Tt.x0+Rt,gr=Tt.y0+Rt,gt=Tt.x1-Rt,Kt=Tt.y1-Rt;gt=Tt-1){var Qt=me[Zt];Qt.x0=Xt,Qt.y0=gr,Qt.x1=gt,Qt.y1=Kt;return}for(var yr=lt[Zt],Ot=Rt/2+yr,ut=Zt+1,at=Tt-1;ut>>1;lt[xt]Kt-gr){var Vt=(Xt*Et+gt*At)/Rt;Wt(Zt,ut,At,Xt,gr,Vt,Kt),Wt(ut,Tt,Et,Vt,gr,gt,Kt)}else{var Bt=(gr*Et+Kt*At)/Rt;Wt(Zt,ut,At,Xt,gr,gt,Bt),Wt(ut,Tt,Et,Xt,Bt,gt,Kt)}}}function We(Le,Pe,je,Ce,he){(Le.depth&1?pt:be)(Le,Pe,je,Ce,he)}var Ge=function Le(Pe){function je(Ce,he,me,Ne,Ze){if((st=Ce._squarify)&&st.ratio===Pe)for(var st,lt,Wt,Zt,Tt=-1,Rt,Xt=st.length,gr=Ce.value;++Tt1?Ce:1)},je}(wt)},10132:function(G,H,e){e.d(H,{ak:function(){return h}});var m=Math.PI,P=2*m,s=1e-6,L=P-s;function S(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function v(){return new S}S.prototype=v.prototype={constructor:S,moveTo:function(T,c){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+c)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(T,c){this._+="L"+(this._x1=+T)+","+(this._y1=+c)},quadraticCurveTo:function(T,c,i,d){this._+="Q"+ +T+","+ +c+","+(this._x1=+i)+","+(this._y1=+d)},bezierCurveTo:function(T,c,i,d,x,w){this._+="C"+ +T+","+ +c+","+ +i+","+ +d+","+(this._x1=+x)+","+(this._y1=+w)},arcTo:function(T,c,i,d,x){T=+T,c=+c,i=+i,d=+d,x=+x;var w=this._x1,C=this._y1,y=i-T,E=d-c,A=w-T,o=C-c,M=A*A+o*o;if(x<0)throw new Error("negative radius: "+x);if(this._x1===null)this._+="M"+(this._x1=T)+","+(this._y1=c);else if(M>s)if(!(Math.abs(o*y-E*A)>s)||!x)this._+="L"+(this._x1=T)+","+(this._y1=c);else{var b=i-w,I=d-C,D=y*y+E*E,N=b*b+I*I,k=Math.sqrt(D),O=Math.sqrt(M),F=x*Math.tan((m-Math.acos((D+M-N)/(2*k*O)))/2),z=F/O,B=F/k;Math.abs(z-1)>s&&(this._+="L"+(T+z*A)+","+(c+z*o)),this._+="A"+x+","+x+",0,0,"+ +(o*b>A*I)+","+(this._x1=T+B*y)+","+(this._y1=c+B*E)}},arc:function(T,c,i,d,x,w){T=+T,c=+c,i=+i,w=!!w;var C=i*Math.cos(d),y=i*Math.sin(d),E=T+C,A=c+y,o=1^w,M=w?d-x:x-d;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+E+","+A:(Math.abs(this._x1-E)>s||Math.abs(this._y1-A)>s)&&(this._+="L"+E+","+A),i&&(M<0&&(M=M%P+P),M>L?this._+="A"+i+","+i+",0,1,"+o+","+(T-C)+","+(c-y)+"A"+i+","+i+",0,1,"+o+","+(this._x1=E)+","+(this._y1=A):M>s&&(this._+="A"+i+","+i+",0,"+ +(M>=m)+","+o+","+(this._x1=T+i*Math.cos(x))+","+(this._y1=c+i*Math.sin(x))))},rect:function(T,c,i,d){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+c)+"h"+ +i+"v"+ +d+"h"+-i+"Z"},toString:function(){return this._}};var p=v,r=Array.prototype.slice;function t(T){return function(){return T}}function a(T){return T[0]}function n(T){return T[1]}function f(T){return T.source}function u(T){return T.target}function l(T){var c=f,i=u,d=a,x=n,w=null;function C(){var y,E=r.call(arguments),A=c.apply(this,E),o=i.apply(this,E);if(w||(w=y=p()),T(w,+d.apply(this,(E[0]=A,E)),+x.apply(this,E),+d.apply(this,(E[0]=o,E)),+x.apply(this,E)),y)return w=null,y+""||null}return C.source=function(y){return arguments.length?(c=y,C):c},C.target=function(y){return arguments.length?(i=y,C):i},C.x=function(y){return arguments.length?(d=typeof y=="function"?y:t(+y),C):d},C.y=function(y){return arguments.length?(x=typeof y=="function"?y:t(+y),C):x},C.context=function(y){return arguments.length?(w=y??null,C):w},C}function g(T,c,i,d,x){T.moveTo(c,i),T.bezierCurveTo(c=(c+d)/2,i,c,x,d,x)}function h(){return l(g)}},94336:function(G,H,e){e.d(H,{Yn:function(){return He},m_:function(){return a},E9:function(){return We}});var m=e(8208),P=e(58931),s=e(46192),L=e(68936),S=e(32171),v=e(53528);function p(Le){if(0<=Le.y&&Le.y<100){var Pe=new Date(-1,Le.m,Le.d,Le.H,Le.M,Le.S,Le.L);return Pe.setFullYear(Le.y),Pe}return new Date(Le.y,Le.m,Le.d,Le.H,Le.M,Le.S,Le.L)}function r(Le){if(0<=Le.y&&Le.y<100){var Pe=new Date(Date.UTC(-1,Le.m,Le.d,Le.H,Le.M,Le.S,Le.L));return Pe.setUTCFullYear(Le.y),Pe}return new Date(Date.UTC(Le.y,Le.m,Le.d,Le.H,Le.M,Le.S,Le.L))}function t(Le,Pe,je){return{y:Le,m:Pe,d:je,H:0,M:0,S:0,L:0}}function a(Le){var Pe=Le.dateTime,je=Le.date,Ce=Le.time,he=Le.periods,me=Le.days,Ne=Le.shortDays,Ze=Le.months,st=Le.shortMonths,lt=T(he),Wt=c(he),Zt=T(me),Tt=c(me),Rt=T(Ne),Xt=c(Ne),gr=T(Ze),gt=c(Ze),Kt=T(st),Qt=c(st),yr={a:Ye,A:Ue,b:zt,B:Dt,c:null,d:J,e:J,f:Z,H:re,I:ne,j:le,L:$,m:ie,M:X,p:$t,q:sr,Q:Ct,s:rt,S:Q,u:oe,U:Y,V:j,w:se,W:te,x:null,X:null,y:fe,Y:ge,Z:be,"%":wt},Ot={a:cr,A:tr,b:Nt,B:ir,c:null,d:xe,e:xe,f:Re,H:_e,I:De,j:Fe,L:Te,m:Se,M:Ie,p:hr,q:xr,Q:Ct,s:rt,S:Me,u:Ve,U:et,V:ot,w:Qe,W:$e,x:null,X:null,y:ht,Y:vt,Z:pt,"%":wt},ut={a:Vt,A:Bt,b:Ut,B:Jt,c:ur,d:b,e:b,f:F,H:D,I:D,j:I,L:O,m:M,M:N,p:Et,q:o,Q:B,s:W,S:k,u:d,U:x,V:w,w:i,W:C,x:fr,X:dr,y:E,Y:y,Z:A,"%":z};yr.x=at(je,yr),yr.X=at(Ce,yr),yr.c=at(Pe,yr),Ot.x=at(je,Ot),Ot.X=at(Ce,Ot),Ot.c=at(Pe,Ot);function at(vr,Hr){return function(Pr){var Rr=[],an=-1,tn=0,Sn=vr.length,Tn,Tr,zr;for(Pr instanceof Date||(Pr=new Date(+Pr));++an53)return null;"w"in Rr||(Rr.w=1),"Z"in Rr?(tn=r(t(Rr.y,0,1)),Sn=tn.getUTCDay(),tn=Sn>4||Sn===0?m.ot.ceil(tn):(0,m.ot)(tn),tn=P.c.offset(tn,(Rr.V-1)*7),Rr.y=tn.getUTCFullYear(),Rr.m=tn.getUTCMonth(),Rr.d=tn.getUTCDate()+(Rr.w+6)%7):(tn=p(t(Rr.y,0,1)),Sn=tn.getDay(),tn=Sn>4||Sn===0?s.qT.ceil(tn):(0,s.qT)(tn),tn=L.c.offset(tn,(Rr.V-1)*7),Rr.y=tn.getFullYear(),Rr.m=tn.getMonth(),Rr.d=tn.getDate()+(Rr.w+6)%7)}else("W"in Rr||"U"in Rr)&&("w"in Rr||(Rr.w="u"in Rr?Rr.u%7:"W"in Rr?1:0),Sn="Z"in Rr?r(t(Rr.y,0,1)).getUTCDay():p(t(Rr.y,0,1)).getDay(),Rr.m=0,Rr.d="W"in Rr?(Rr.w+6)%7+Rr.W*7-(Sn+5)%7:Rr.w+Rr.U*7-(Sn+6)%7);return"Z"in Rr?(Rr.H+=Rr.Z/100|0,Rr.M+=Rr.Z%100,r(Rr)):p(Rr)}}function At(vr,Hr,Pr,Rr){for(var an=0,tn=Hr.length,Sn=Pr.length,Tn,Tr;an=Sn)return-1;if(Tn=Hr.charCodeAt(an++),Tn===37){if(Tn=Hr.charAt(an++),Tr=ut[Tn in n?Hr.charAt(an++):Tn],!Tr||(Rr=Tr(vr,Pr,Rr))<0)return-1}else if(Tn!=Pr.charCodeAt(Rr++))return-1}return Rr}function Et(vr,Hr,Pr){var Rr=lt.exec(Hr.slice(Pr));return Rr?(vr.p=Wt[Rr[0].toLowerCase()],Pr+Rr[0].length):-1}function Vt(vr,Hr,Pr){var Rr=Rt.exec(Hr.slice(Pr));return Rr?(vr.w=Xt[Rr[0].toLowerCase()],Pr+Rr[0].length):-1}function Bt(vr,Hr,Pr){var Rr=Zt.exec(Hr.slice(Pr));return Rr?(vr.w=Tt[Rr[0].toLowerCase()],Pr+Rr[0].length):-1}function Ut(vr,Hr,Pr){var Rr=Kt.exec(Hr.slice(Pr));return Rr?(vr.m=Qt[Rr[0].toLowerCase()],Pr+Rr[0].length):-1}function Jt(vr,Hr,Pr){var Rr=gr.exec(Hr.slice(Pr));return Rr?(vr.m=gt[Rr[0].toLowerCase()],Pr+Rr[0].length):-1}function ur(vr,Hr,Pr){return At(vr,Pe,Hr,Pr)}function fr(vr,Hr,Pr){return At(vr,je,Hr,Pr)}function dr(vr,Hr,Pr){return At(vr,Ce,Hr,Pr)}function Ye(vr){return Ne[vr.getDay()]}function Ue(vr){return me[vr.getDay()]}function zt(vr){return st[vr.getMonth()]}function Dt(vr){return Ze[vr.getMonth()]}function $t(vr){return he[+(vr.getHours()>=12)]}function sr(vr){return 1+~~(vr.getMonth()/3)}function cr(vr){return Ne[vr.getUTCDay()]}function tr(vr){return me[vr.getUTCDay()]}function Nt(vr){return st[vr.getUTCMonth()]}function ir(vr){return Ze[vr.getUTCMonth()]}function hr(vr){return he[+(vr.getUTCHours()>=12)]}function xr(vr){return 1+~~(vr.getUTCMonth()/3)}return{format:function(vr){var Hr=at(vr+="",yr);return Hr.toString=function(){return vr},Hr},parse:function(vr){var Hr=xt(vr+="",!1);return Hr.toString=function(){return vr},Hr},utcFormat:function(vr){var Hr=at(vr+="",Ot);return Hr.toString=function(){return vr},Hr},utcParse:function(vr){var Hr=xt(vr+="",!0);return Hr.toString=function(){return vr},Hr}}}var n={"-":"",_:" ",0:"0"},f=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function g(Le,Pe,je){var Ce=Le<0?"-":"",he=(Ce?-Le:Le)+"",me=he.length;return Ce+(me68?1900:2e3),je+Ce[0].length):-1}function A(Le,Pe,je){var Ce=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Pe.slice(je,je+6));return Ce?(Le.Z=Ce[1]?0:-(Ce[2]+(Ce[3]||"00")),je+Ce[0].length):-1}function o(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+1));return Ce?(Le.q=Ce[0]*3-3,je+Ce[0].length):-1}function M(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.m=Ce[0]-1,je+Ce[0].length):-1}function b(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.d=+Ce[0],je+Ce[0].length):-1}function I(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+3));return Ce?(Le.m=0,Le.d=+Ce[0],je+Ce[0].length):-1}function D(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.H=+Ce[0],je+Ce[0].length):-1}function N(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.M=+Ce[0],je+Ce[0].length):-1}function k(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.S=+Ce[0],je+Ce[0].length):-1}function O(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+3));return Ce?(Le.L=+Ce[0],je+Ce[0].length):-1}function F(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+6));return Ce?(Le.L=Math.floor(Ce[0]/1e3),je+Ce[0].length):-1}function z(Le,Pe,je){var Ce=u.exec(Pe.slice(je,je+1));return Ce?je+Ce[0].length:-1}function B(Le,Pe,je){var Ce=f.exec(Pe.slice(je));return Ce?(Le.Q=+Ce[0],je+Ce[0].length):-1}function W(Le,Pe,je){var Ce=f.exec(Pe.slice(je));return Ce?(Le.s=+Ce[0],je+Ce[0].length):-1}function J(Le,Pe){return g(Le.getDate(),Pe,2)}function re(Le,Pe){return g(Le.getHours(),Pe,2)}function ne(Le,Pe){return g(Le.getHours()%12||12,Pe,2)}function le(Le,Pe){return g(1+L.c.count((0,S.c)(Le),Le),Pe,3)}function $(Le,Pe){return g(Le.getMilliseconds(),Pe,3)}function Z(Le,Pe){return $(Le,Pe)+"000"}function ie(Le,Pe){return g(Le.getMonth()+1,Pe,2)}function X(Le,Pe){return g(Le.getMinutes(),Pe,2)}function Q(Le,Pe){return g(Le.getSeconds(),Pe,2)}function oe(Le){var Pe=Le.getDay();return Pe===0?7:Pe}function Y(Le,Pe){return g(s.uU.count((0,S.c)(Le)-1,Le),Pe,2)}function j(Le,Pe){var je=Le.getDay();return Le=je>=4||je===0?(0,s.kD)(Le):s.kD.ceil(Le),g(s.kD.count((0,S.c)(Le),Le)+((0,S.c)(Le).getDay()===4),Pe,2)}function se(Le){return Le.getDay()}function te(Le,Pe){return g(s.qT.count((0,S.c)(Le)-1,Le),Pe,2)}function fe(Le,Pe){return g(Le.getFullYear()%100,Pe,2)}function ge(Le,Pe){return g(Le.getFullYear()%1e4,Pe,4)}function be(Le){var Pe=Le.getTimezoneOffset();return(Pe>0?"-":(Pe*=-1,"+"))+g(Pe/60|0,"0",2)+g(Pe%60,"0",2)}function xe(Le,Pe){return g(Le.getUTCDate(),Pe,2)}function _e(Le,Pe){return g(Le.getUTCHours(),Pe,2)}function De(Le,Pe){return g(Le.getUTCHours()%12||12,Pe,2)}function Fe(Le,Pe){return g(1+P.c.count((0,v.c)(Le),Le),Pe,3)}function Te(Le,Pe){return g(Le.getUTCMilliseconds(),Pe,3)}function Re(Le,Pe){return Te(Le,Pe)+"000"}function Se(Le,Pe){return g(Le.getUTCMonth()+1,Pe,2)}function Ie(Le,Pe){return g(Le.getUTCMinutes(),Pe,2)}function Me(Le,Pe){return g(Le.getUTCSeconds(),Pe,2)}function Ve(Le){var Pe=Le.getUTCDay();return Pe===0?7:Pe}function et(Le,Pe){return g(m.EV.count((0,v.c)(Le)-1,Le),Pe,2)}function ot(Le,Pe){var je=Le.getUTCDay();return Le=je>=4||je===0?(0,m.yA)(Le):m.yA.ceil(Le),g(m.yA.count((0,v.c)(Le),Le)+((0,v.c)(Le).getUTCDay()===4),Pe,2)}function Qe(Le){return Le.getUTCDay()}function $e(Le,Pe){return g(m.ot.count((0,v.c)(Le)-1,Le),Pe,2)}function ht(Le,Pe){return g(Le.getUTCFullYear()%100,Pe,2)}function vt(Le,Pe){return g(Le.getUTCFullYear()%1e4,Pe,4)}function pt(){return"+0000"}function wt(){return"%"}function Ct(Le){return+Le}function rt(Le){return Math.floor(+Le/1e3)}var ze,He,We;Ge({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 Ge(Le){return ze=a(Le),He=ze.format,ze.parse,We=ze.utcFormat,ze.utcParse,ze}},68936:function(G,H,e){e.d(H,{m:function(){return L}});var m=e(81628),P=e(69792),s=(0,m.c)(function(S){S.setHours(0,0,0,0)},function(S,v){S.setDate(S.getDate()+v)},function(S,v){return(v-S-(v.getTimezoneOffset()-S.getTimezoneOffset())*P.iy)/P.SK},function(S){return S.getDate()-1});H.c=s;var L=s.range},69792:function(G,H,e){e.d(H,{KK:function(){return S},SK:function(){return L},cg:function(){return s},iy:function(){return P},yc:function(){return m}});var m=1e3,P=6e4,s=36e5,L=864e5,S=6048e5},73220:function(G,H,e){e.r(H),e.d(H,{timeDay:function(){return g.c},timeDays:function(){return g.m},timeFriday:function(){return h.iB},timeFridays:function(){return h.sJ},timeHour:function(){return u},timeHours:function(){return l},timeInterval:function(){return m.c},timeMillisecond:function(){return s},timeMilliseconds:function(){return L},timeMinute:function(){return a},timeMinutes:function(){return n},timeMonday:function(){return h.qT},timeMondays:function(){return h.QP},timeMonth:function(){return c},timeMonths:function(){return i},timeSaturday:function(){return h.Wc},timeSaturdays:function(){return h.aI},timeSecond:function(){return p},timeSeconds:function(){return r},timeSunday:function(){return h.uU},timeSundays:function(){return h.Ab},timeThursday:function(){return h.kD},timeThursdays:function(){return h.eC},timeTuesday:function(){return h.Mf},timeTuesdays:function(){return h.Oc},timeWednesday:function(){return h.eg},timeWednesdays:function(){return h.sn},timeWeek:function(){return h.uU},timeWeeks:function(){return h.Ab},timeYear:function(){return d.c},timeYears:function(){return d.Q},utcDay:function(){return o.c},utcDays:function(){return o.o},utcFriday:function(){return M.od},utcFridays:function(){return M.iG},utcHour:function(){return E},utcHours:function(){return A},utcMillisecond:function(){return s},utcMilliseconds:function(){return L},utcMinute:function(){return w},utcMinutes:function(){return C},utcMonday:function(){return M.ot},utcMondays:function(){return M.iO},utcMonth:function(){return I},utcMonths:function(){return D},utcSaturday:function(){return M.Ad},utcSaturdays:function(){return M.K8},utcSecond:function(){return p},utcSeconds:function(){return r},utcSunday:function(){return M.EV},utcSundays:function(){return M.Wq},utcThursday:function(){return M.yA},utcThursdays:function(){return M.ob},utcTuesday:function(){return M.sG},utcTuesdays:function(){return M.kl},utcWednesday:function(){return M._6},utcWednesdays:function(){return M.W_},utcWeek:function(){return M.EV},utcWeeks:function(){return M.Wq},utcYear:function(){return N.c},utcYears:function(){return N.i}});var m=e(81628),P=(0,m.c)(function(){},function(k,O){k.setTime(+k+O)},function(k,O){return O-k});P.every=function(k){return k=Math.floor(k),!isFinite(k)||!(k>0)?null:k>1?(0,m.c)(function(O){O.setTime(Math.floor(O/k)*k)},function(O,F){O.setTime(+O+F*k)},function(O,F){return(F-O)/k}):P};var s=P,L=P.range,S=e(69792),v=(0,m.c)(function(k){k.setTime(k-k.getMilliseconds())},function(k,O){k.setTime(+k+O*S.yc)},function(k,O){return(O-k)/S.yc},function(k){return k.getUTCSeconds()}),p=v,r=v.range,t=(0,m.c)(function(k){k.setTime(k-k.getMilliseconds()-k.getSeconds()*S.yc)},function(k,O){k.setTime(+k+O*S.iy)},function(k,O){return(O-k)/S.iy},function(k){return k.getMinutes()}),a=t,n=t.range,f=(0,m.c)(function(k){k.setTime(k-k.getMilliseconds()-k.getSeconds()*S.yc-k.getMinutes()*S.iy)},function(k,O){k.setTime(+k+O*S.cg)},function(k,O){return(O-k)/S.cg},function(k){return k.getHours()}),u=f,l=f.range,g=e(68936),h=e(46192),T=(0,m.c)(function(k){k.setDate(1),k.setHours(0,0,0,0)},function(k,O){k.setMonth(k.getMonth()+O)},function(k,O){return O.getMonth()-k.getMonth()+(O.getFullYear()-k.getFullYear())*12},function(k){return k.getMonth()}),c=T,i=T.range,d=e(32171),x=(0,m.c)(function(k){k.setUTCSeconds(0,0)},function(k,O){k.setTime(+k+O*S.iy)},function(k,O){return(O-k)/S.iy},function(k){return k.getUTCMinutes()}),w=x,C=x.range,y=(0,m.c)(function(k){k.setUTCMinutes(0,0,0)},function(k,O){k.setTime(+k+O*S.cg)},function(k,O){return(O-k)/S.cg},function(k){return k.getUTCHours()}),E=y,A=y.range,o=e(58931),M=e(8208),b=(0,m.c)(function(k){k.setUTCDate(1),k.setUTCHours(0,0,0,0)},function(k,O){k.setUTCMonth(k.getUTCMonth()+O)},function(k,O){return O.getUTCMonth()-k.getUTCMonth()+(O.getUTCFullYear()-k.getUTCFullYear())*12},function(k){return k.getUTCMonth()}),I=b,D=b.range,N=e(53528)},81628:function(G,H,e){e.d(H,{c:function(){return s}});var m=new Date,P=new Date;function s(L,S,v,p){function r(t){return L(t=arguments.length===0?new Date:new Date(+t)),t}return r.floor=function(t){return L(t=new Date(+t)),t},r.ceil=function(t){return L(t=new Date(t-1)),S(t,1),L(t),t},r.round=function(t){var a=r(t),n=r.ceil(t);return t-a0))return f;do f.push(u=new Date(+t)),S(t,n),L(t);while(u=a)for(;L(a),!t(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;S(a,-1),!t(a););else for(;--n>=0;)for(;S(a,1),!t(a););})},v&&(r.count=function(t,a){return m.setTime(+t),P.setTime(+a),L(m),L(P),Math.floor(v(m,P))},r.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?r.filter(p?function(a){return p(a)%t===0}:function(a){return r.count(0,a)%t===0}):r}),r}},58931:function(G,H,e){e.d(H,{o:function(){return L}});var m=e(81628),P=e(69792),s=(0,m.c)(function(S){S.setUTCHours(0,0,0,0)},function(S,v){S.setUTCDate(S.getUTCDate()+v)},function(S,v){return(v-S)/P.SK},function(S){return S.getUTCDate()-1});H.c=s;var L=s.range},8208:function(G,H,e){e.d(H,{Ad:function(){return a},EV:function(){return L},K8:function(){return T},W_:function(){return l},Wq:function(){return n},_6:function(){return p},iG:function(){return h},iO:function(){return f},kl:function(){return u},ob:function(){return g},od:function(){return t},ot:function(){return S},sG:function(){return v},yA:function(){return r}});var m=e(81628),P=e(69792);function s(c){return(0,m.c)(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-c)%7),i.setUTCHours(0,0,0,0)},function(i,d){i.setUTCDate(i.getUTCDate()+d*7)},function(i,d){return(d-i)/P.KK})}var L=s(0),S=s(1),v=s(2),p=s(3),r=s(4),t=s(5),a=s(6),n=L.range,f=S.range,u=v.range,l=p.range,g=r.range,h=t.range,T=a.range},53528:function(G,H,e){e.d(H,{i:function(){return s}});var m=e(81628),P=(0,m.c)(function(L){L.setUTCMonth(0,1),L.setUTCHours(0,0,0,0)},function(L,S){L.setUTCFullYear(L.getUTCFullYear()+S)},function(L,S){return S.getUTCFullYear()-L.getUTCFullYear()},function(L){return L.getUTCFullYear()});P.every=function(L){return!isFinite(L=Math.floor(L))||!(L>0)?null:(0,m.c)(function(S){S.setUTCFullYear(Math.floor(S.getUTCFullYear()/L)*L),S.setUTCMonth(0,1),S.setUTCHours(0,0,0,0)},function(S,v){S.setUTCFullYear(S.getUTCFullYear()+v*L)})},H.c=P;var s=P.range},46192:function(G,H,e){e.d(H,{Ab:function(){return n},Mf:function(){return v},Oc:function(){return u},QP:function(){return f},Wc:function(){return a},aI:function(){return T},eC:function(){return g},eg:function(){return p},iB:function(){return t},kD:function(){return r},qT:function(){return S},sJ:function(){return h},sn:function(){return l},uU:function(){return L}});var m=e(81628),P=e(69792);function s(c){return(0,m.c)(function(i){i.setDate(i.getDate()-(i.getDay()+7-c)%7),i.setHours(0,0,0,0)},function(i,d){i.setDate(i.getDate()+d*7)},function(i,d){return(d-i-(d.getTimezoneOffset()-i.getTimezoneOffset())*P.iy)/P.KK})}var L=s(0),S=s(1),v=s(2),p=s(3),r=s(4),t=s(5),a=s(6),n=L.range,f=S.range,u=v.range,l=p.range,g=r.range,h=t.range,T=a.range},32171:function(G,H,e){e.d(H,{Q:function(){return s}});var m=e(81628),P=(0,m.c)(function(L){L.setMonth(0,1),L.setHours(0,0,0,0)},function(L,S){L.setFullYear(L.getFullYear()+S)},function(L,S){return S.getFullYear()-L.getFullYear()},function(L){return L.getFullYear()});P.every=function(L){return!isFinite(L=Math.floor(L))||!(L>0)?null:(0,m.c)(function(S){S.setFullYear(Math.floor(S.getFullYear()/L)*L),S.setMonth(0,1),S.setHours(0,0,0,0)},function(S,v){S.setFullYear(S.getFullYear()+v*L)})},H.c=P;var s=P.range},64348:function(G,H,e){var m=e(39640)(),P=e(53664),s=m&&P("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch{s=!1}var L=P("%SyntaxError%"),S=P("%TypeError%"),v=e(2304);G.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new S("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new S("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new S("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new S("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new S("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new S("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,g=!!v&&v(r,t);if(s)s(r,t,{configurable:u===null&&g?g.configurable:!u,enumerable:n===null&&g?g.enumerable:!n,value:a,writable:f===null&&g?g.writable:!f});else if(l||!n&&!f&&!u)r[t]=a;else throw new L("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},81288:function(G,H,e){var m=e(41820),P=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s=Object.prototype.toString,L=Array.prototype.concat,S=Object.defineProperty,v=function(n){return typeof n=="function"&&s.call(n)==="[object Function]"},p=e(39640)(),r=S&&p,t=function(n,f,u,l){if(f in n){if(l===!0){if(n[f]===u)return}else if(!v(l)||!l())return}r?S(n,f,{configurable:!0,enumerable:!1,value:u,writable:!0}):n[f]=u},a=function(n,f){var u=arguments.length>2?arguments[2]:{},l=m(f);P&&(l=L.call(l,Object.getOwnPropertySymbols(f)));for(var g=0;gr*t){var l=(u-f)/r;v[n]=l*1e3}}return v}function s(L){for(var S=[],v=L[0];v<=L[1];v++)for(var p=String.fromCharCode(v),r=L[0];r"u"&&(s=0),typeof P){case"number":if(P>0)return e(P|0,s);break;case"object":if(typeof P.length=="number")return H(P,s,0);break}return[]}G.exports=m},28912:function(G){G.exports=H,G.exports.default=H;function H(D,N,k){k=k||2;var O=N&&N.length,F=O?N[0]*k:D.length,z=e(D,0,F,k,!0),B=[];if(!z||z.next===z.prev)return B;var W,J,re,ne,le,$,Z;if(O&&(z=p(D,N,z,k)),D.length>80*k){W=re=D[0],J=ne=D[1];for(var ie=k;iere&&(re=le),$>ne&&(ne=$);Z=Math.max(re-W,ne-J),Z=Z!==0?1/Z:0}return P(z,B,k,W,J,Z),B}function e(D,N,k,O,F){var z,B;if(F===I(D,N,k,O)>0)for(z=N;z=N;z-=O)B=o(z,D[z],D[z+1],B);return B&&i(B,B.next)&&(M(B),B=B.next),B}function m(D,N){if(!D)return D;N||(N=D);var k=D,O;do if(O=!1,!k.steiner&&(i(k,k.next)||c(k.prev,k,k.next)===0)){if(M(k),k=N=k.prev,k===k.next)break;O=!0}else k=k.next;while(O||k!==N);return N}function P(D,N,k,O,F,z,B){if(D){!B&&z&&f(D,O,F,z);for(var W=D,J,re;D.prev!==D.next;){if(J=D.prev,re=D.next,z?L(D,O,F,z):s(D)){N.push(J.i/k),N.push(D.i/k),N.push(re.i/k),M(D),D=re.next,W=re.next;continue}if(D=re,D===W){B?B===1?(D=S(m(D),N,k),P(D,N,k,O,F,z,2)):B===2&&v(D,N,k,O,F,z):P(m(D),N,k,O,F,z,1);break}}}}function s(D){var N=D.prev,k=D,O=D.next;if(c(N,k,O)>=0)return!1;for(var F=D.next.next;F!==D.prev;){if(h(N.x,N.y,k.x,k.y,O.x,O.y,F.x,F.y)&&c(F.prev,F,F.next)>=0)return!1;F=F.next}return!0}function L(D,N,k,O){var F=D.prev,z=D,B=D.next;if(c(F,z,B)>=0)return!1;for(var W=F.xz.x?F.x>B.x?F.x:B.x:z.x>B.x?z.x:B.x,ne=F.y>z.y?F.y>B.y?F.y:B.y:z.y>B.y?z.y:B.y,le=l(W,J,N,k,O),$=l(re,ne,N,k,O),Z=D.prevZ,ie=D.nextZ;Z&&Z.z>=le&&ie&&ie.z<=$;){if(Z!==D.prev&&Z!==D.next&&h(F.x,F.y,z.x,z.y,B.x,B.y,Z.x,Z.y)&&c(Z.prev,Z,Z.next)>=0||(Z=Z.prevZ,ie!==D.prev&&ie!==D.next&&h(F.x,F.y,z.x,z.y,B.x,B.y,ie.x,ie.y)&&c(ie.prev,ie,ie.next)>=0))return!1;ie=ie.nextZ}for(;Z&&Z.z>=le;){if(Z!==D.prev&&Z!==D.next&&h(F.x,F.y,z.x,z.y,B.x,B.y,Z.x,Z.y)&&c(Z.prev,Z,Z.next)>=0)return!1;Z=Z.prevZ}for(;ie&&ie.z<=$;){if(ie!==D.prev&&ie!==D.next&&h(F.x,F.y,z.x,z.y,B.x,B.y,ie.x,ie.y)&&c(ie.prev,ie,ie.next)>=0)return!1;ie=ie.nextZ}return!0}function S(D,N,k){var O=D;do{var F=O.prev,z=O.next.next;!i(F,z)&&d(F,O,O.next,z)&&y(F,z)&&y(z,F)&&(N.push(F.i/k),N.push(O.i/k),N.push(z.i/k),M(O),M(O.next),O=D=z),O=O.next}while(O!==D);return m(O)}function v(D,N,k,O,F,z){var B=D;do{for(var W=B.next.next;W!==B.prev;){if(B.i!==W.i&&T(B,W)){var J=A(B,W);B=m(B,B.next),J=m(J,J.next),P(B,N,k,O,F,z),P(J,N,k,O,F,z);return}W=W.next}B=B.next}while(B!==D)}function p(D,N,k,O){var F=[],z,B,W,J,re;for(z=0,B=N.length;z=k.next.y&&k.next.y!==k.y){var W=k.x+(F-k.y)*(k.next.x-k.x)/(k.next.y-k.y);if(W<=O&&W>z){if(z=W,W===O){if(F===k.y)return k;if(F===k.next.y)return k.next}B=k.x=k.x&&k.x>=re&&O!==k.x&&h(FB.x||k.x===B.x&&n(B,k)))&&(B=k,le=$)),k=k.next;while(k!==J);return B}function n(D,N){return c(D.prev,D,N.prev)<0&&c(N.next,D,D.next)<0}function f(D,N,k,O){var F=D;do F.z===null&&(F.z=l(F.x,F.y,N,k,O)),F.prevZ=F.prev,F.nextZ=F.next,F=F.next;while(F!==D);F.prevZ.nextZ=null,F.prevZ=null,u(F)}function u(D){var N,k,O,F,z,B,W,J,re=1;do{for(k=D,D=null,z=null,B=0;k;){for(B++,O=k,W=0,N=0;N0||J>0&&O;)W!==0&&(J===0||!O||k.z<=O.z)?(F=k,k=k.nextZ,W--):(F=O,O=O.nextZ,J--),z?z.nextZ=F:D=F,F.prevZ=z,z=F;k=O}z.nextZ=null,re*=2}while(B>1);return D}function l(D,N,k,O,F){return D=32767*(D-k)*F,N=32767*(N-O)*F,D=(D|D<<8)&16711935,D=(D|D<<4)&252645135,D=(D|D<<2)&858993459,D=(D|D<<1)&1431655765,N=(N|N<<8)&16711935,N=(N|N<<4)&252645135,N=(N|N<<2)&858993459,N=(N|N<<1)&1431655765,D|N<<1}function g(D){var N=D,k=D;do(N.x=0&&(D-B)*(O-W)-(k-B)*(N-W)>=0&&(k-B)*(z-W)-(F-B)*(O-W)>=0}function T(D,N){return D.next.i!==N.i&&D.prev.i!==N.i&&!C(D,N)&&(y(D,N)&&y(N,D)&&E(D,N)&&(c(D.prev,D,N.prev)||c(D,N.prev,N))||i(D,N)&&c(D.prev,D,D.next)>0&&c(N.prev,N,N.next)>0)}function c(D,N,k){return(N.y-D.y)*(k.x-N.x)-(N.x-D.x)*(k.y-N.y)}function i(D,N){return D.x===N.x&&D.y===N.y}function d(D,N,k,O){var F=w(c(D,N,k)),z=w(c(D,N,O)),B=w(c(k,O,D)),W=w(c(k,O,N));return!!(F!==z&&B!==W||F===0&&x(D,k,N)||z===0&&x(D,O,N)||B===0&&x(k,D,O)||W===0&&x(k,N,O))}function x(D,N,k){return N.x<=Math.max(D.x,k.x)&&N.x>=Math.min(D.x,k.x)&&N.y<=Math.max(D.y,k.y)&&N.y>=Math.min(D.y,k.y)}function w(D){return D>0?1:D<0?-1:0}function C(D,N){var k=D;do{if(k.i!==D.i&&k.next.i!==D.i&&k.i!==N.i&&k.next.i!==N.i&&d(k,k.next,D,N))return!0;k=k.next}while(k!==D);return!1}function y(D,N){return c(D.prev,D,D.next)<0?c(D,N,D.next)>=0&&c(D,D.prev,N)>=0:c(D,N,D.prev)<0||c(D,D.next,N)<0}function E(D,N){var k=D,O=!1,F=(D.x+N.x)/2,z=(D.y+N.y)/2;do k.y>z!=k.next.y>z&&k.next.y!==k.y&&F<(k.next.x-k.x)*(z-k.y)/(k.next.y-k.y)+k.x&&(O=!O),k=k.next;while(k!==D);return O}function A(D,N){var k=new b(D.i,D.x,D.y),O=new b(N.i,N.x,N.y),F=D.next,z=N.prev;return D.next=N,N.prev=D,k.next=F,F.prev=k,O.next=k,k.prev=O,z.next=O,O.prev=z,O}function o(D,N,k,O){var F=new b(D,N,k);return O?(F.next=O.next,F.prev=O,O.next.prev=F,O.next=F):(F.prev=F,F.next=F),F}function M(D){D.next.prev=D.prev,D.prev.next=D.next,D.prevZ&&(D.prevZ.nextZ=D.nextZ),D.nextZ&&(D.nextZ.prevZ=D.prevZ)}function b(D,N,k){this.i=D,this.x=N,this.y=k,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}H.deviation=function(D,N,k,O){var F=N&&N.length,z=F?N[0]*k:D.length,B=Math.abs(I(D,0,z,k));if(F)for(var W=0,J=N.length;W0&&(O+=D[F-1].length,k.holes.push(O))}return k}},6688:function(G,H,e){var m=e(78484);G.exports=function(s,L){var S=[],v=[],p=[],r={},t=[],a;function n(x){p[x]=!1,r.hasOwnProperty(x)&&Object.keys(r[x]).forEach(function(w){delete r[x][w],p[w]&&n(w)})}function f(x){var w=!1;v.push(x),p[x]=!0;var C,y;for(C=0;C=x})}function g(x){l(x);for(var w=s,C=m(w),y=C.components.filter(function(D){return D.length>1}),E=1/0,A,o=0;o=55296&&x<=56319&&(E+=u[++T])),E=l?a.call(l,g,E,c):E,h?(n.value=E,f(i,c,n)):i[c]=E,++c;d=c}}if(d===void 0)for(d=L(u.length),h&&(i=new h(d)),T=0;T0?1:-1}},96936:function(G,H,e){var m=e(85608),P=Math.abs,s=Math.floor;G.exports=function(L){return isNaN(L)?0:(L=Number(L),L===0||!isFinite(L)?L:m(L)*s(P(L)))}},81304:function(G,H,e){var m=e(96936),P=Math.max;G.exports=function(s){return P(0,m(s))}},14428:function(G,H,e){var m=e(34044),P=e(9252),s=Function.prototype.bind,L=Function.prototype.call,S=Object.keys,v=Object.prototype.propertyIsEnumerable;G.exports=function(p,r){return function(t,a){var n,f=arguments[2],u=arguments[3];return t=Object(P(t)),m(a),n=S(t),u&&n.sort(typeof u=="function"?s.call(u,t):void 0),typeof p!="function"&&(p=n[p]),L.call(p,n,function(l,g){return v.call(t,l)?L.call(a,f,t[l],l,t,g):r})}}},38452:function(G,H,e){G.exports=e(96276)()?Object.assign:e(81892)},96276:function(G){G.exports=function(){var H=Object.assign,e;return typeof H!="function"?!1:(e={foo:"raz"},H(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},81892:function(G,H,e){var m=e(54768),P=e(9252),s=Math.max;G.exports=function(L,S){var v,p,r=s(arguments.length,2),t;for(L=Object(P(L)),t=function(a){try{L[a]=S[a]}catch(n){v||(v=n)}},p=1;p-1}},29768:function(G){var H=Object.prototype.toString,e=H.call("");G.exports=function(m){return typeof m=="string"||m&&typeof m=="object"&&(m instanceof String||H.call(m)===e)||!1}},82252:function(G){var H=Object.create(null),e=Math.random;G.exports=function(){var m;do m=e().toString(36).slice(2);while(H[m]);return m}},52104:function(G,H,e){var m=e(69932),P=e(71056),s=e(21092),L=e(92664),S=e(85512),v=Object.defineProperty,p;p=G.exports=function(r,t){if(!(this instanceof p))throw new TypeError("Constructor requires 'new'");S.call(this,r),t?P.call(t,"key+value")?t="key+value":P.call(t,"key")?t="key":t="value":t="value",v(this,"__kind__",s("",t))},m&&m(p,S),delete p.prototype.constructor,p.prototype=Object.create(S.prototype,{_resolve:s(function(r){return this.__kind__==="value"?this.__list__[r]:this.__kind__==="key+value"?[r,this.__list__[r]]:r})}),v(p.prototype,L.toStringTag,s("c","Array Iterator"))},76024:function(G,H,e){var m=e(60948),P=e(34044),s=e(29768),L=e(76252),S=Array.isArray,v=Function.prototype.call,p=Array.prototype.some;G.exports=function(r,t){var a,n=arguments[2],f,u,l,g,h,T,c;if(S(r)||m(r)?a="array":s(r)?a="string":r=L(r),P(t),u=function(){l=!0},a==="array"){p.call(r,function(i){return v.call(t,n,i,u),l});return}if(a==="string"){for(h=r.length,g=0;g=55296&&c<=56319&&(T+=r[++g])),v.call(t,n,T,u),!l);++g);return}for(f=r.next();!f.done;){if(v.call(t,n,f.value,u),l)return;f=r.next()}}},76252:function(G,H,e){var m=e(60948),P=e(29768),s=e(52104),L=e(80940),S=e(52891),v=e(92664).iterator;G.exports=function(p){return typeof S(p)[v]=="function"?p[v]():m(p)?new s(p):P(p)?new L(p):new s(p)}},85512:function(G,H,e){var m=e(41476),P=e(38452),s=e(34044),L=e(9252),S=e(21092),v=e(27940),p=e(92664),r=Object.defineProperty,t=Object.defineProperties,a;G.exports=a=function(n,f){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");t(this,{__list__:S("w",L(n)),__context__:S("w",f),__nextIndex__:S("w",0)}),f&&(s(f.on),f.on("_add",this._onAdd),f.on("_delete",this._onDelete),f.on("_clear",this._onClear))},delete a.prototype.constructor,t(a.prototype,P({_next:S(function(){var n;if(this.__list__){if(this.__redo__&&(n=this.__redo__.shift(),n!==void 0))return n;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){r(this,"__redo__",S("c",[n]));return}this.__redo__.forEach(function(f,u){f>=n&&(this.__redo__[u]=++f)},this),this.__redo__.push(n)}}),_onDelete:S(function(n){var f;n>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(f=this.__redo__.indexOf(n),f!==-1&&this.__redo__.splice(f,1),this.__redo__.forEach(function(u,l){u>n&&(this.__redo__[l]=--u)},this)))}),_onClear:S(function(){this.__redo__&&m.call(this.__redo__),this.__nextIndex__=0})}))),r(a.prototype,p.iterator,S(function(){return this}))},76368:function(G,H,e){var m=e(60948),P=e(42584),s=e(29768),L=e(92664).iterator,S=Array.isArray;G.exports=function(v){return P(v)?S(v)||s(v)||m(v)?!0:typeof v[L]=="function":!1}},80940:function(G,H,e){var m=e(69932),P=e(21092),s=e(92664),L=e(85512),S=Object.defineProperty,v;v=G.exports=function(p){if(!(this instanceof v))throw new TypeError("Constructor requires 'new'");p=String(p),L.call(this,p),S(this,"__length__",P("",p.length))},m&&m(v,L),delete v.prototype.constructor,v.prototype=Object.create(L.prototype,{_next:P(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})}),S(v.prototype,s.toStringTag,P("c","String Iterator"))},52891:function(G,H,e){var m=e(76368);G.exports=function(P){if(!m(P))throw new TypeError(P+" is not iterable");return P}},60964:function(G){function H(m,P){if(m==null)throw new TypeError("Cannot convert first argument to object");for(var s=Object(m),L=1;L0&&(E=x[0]),E instanceof Error)throw E;var A=new Error("Unhandled error."+(E?" ("+E.message+")":""));throw A.context=E,A}var o=y[d];if(o===void 0)return!1;if(typeof o=="function")e(o,this,x);else for(var M=o.length,b=u(o,M),w=0;w0&&E.length>C&&!E.warned){E.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(d)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=i,A.type=d,A.count=E.length,P(A)}return i}L.prototype.addListener=function(d,x){return r(this,d,x,!1)},L.prototype.on=L.prototype.addListener,L.prototype.prependListener=function(d,x){return r(this,d,x,!0)};function t(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function a(i,d,x){var w={fired:!1,wrapFn:void 0,target:i,type:d,listener:x},C=t.bind(w);return C.listener=x,w.wrapFn=C,C}L.prototype.once=function(d,x){return v(x),this.on(d,a(this,d,x)),this},L.prototype.prependOnceListener=function(d,x){return v(x),this.prependListener(d,a(this,d,x)),this},L.prototype.removeListener=function(d,x){var w,C,y,E,A;if(v(x),C=this._events,C===void 0)return this;if(w=C[d],w===void 0)return this;if(w===x||w.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete C[d],C.removeListener&&this.emit("removeListener",d,w.listener||x));else if(typeof w!="function"){for(y=-1,E=w.length-1;E>=0;E--)if(w[E]===x||w[E].listener===x){A=w[E].listener,y=E;break}if(y<0)return this;y===0?w.shift():l(w,y),w.length===1&&(C[d]=w[0]),C.removeListener!==void 0&&this.emit("removeListener",d,A||x)}return this},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(d){var x,w,C;if(w=this._events,w===void 0)return this;if(w.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):w[d]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete w[d]),this;if(arguments.length===0){var y=Object.keys(w),E;for(C=0;C=0;C--)this.removeListener(d,x[C]);return this};function n(i,d,x){var w=i._events;if(w===void 0)return[];var C=w[d];return C===void 0?[]:typeof C=="function"?x?[C.listener||C]:[C]:x?g(C):u(C,C.length)}L.prototype.listeners=function(d){return n(this,d,!0)},L.prototype.rawListeners=function(d){return n(this,d,!1)},L.listenerCount=function(i,d){return typeof i.listenerCount=="function"?i.listenerCount(d):f.call(i,d)},L.prototype.listenerCount=f;function f(i){var d=this._events;if(d!==void 0){var x=d[i];if(typeof x=="function")return 1;if(x!==void 0)return x.length}return 0}L.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]};function u(i,d){for(var x=new Array(d),w=0;wS[0]-r[0]/2&&(l=r[0]/2,g+=r[1]);return v}},71920:function(G){G.exports=H,H.canvas=document.createElement("canvas"),H.cache={};function H(t,L){L||(L={}),(typeof t=="string"||Array.isArray(t))&&(L.family=t);var S=Array.isArray(L.family)?L.family.join(", "):L.family;if(!S)throw Error("`family` must be defined");var v=L.size||L.fontSize||L.em||48,p=L.weight||L.fontWeight||"",r=L.style||L.fontStyle||"",t=[r,p,v].join(" ")+"px "+S,a=L.origin||"top";if(H.cache[S]&&v<=H.cache[S].em)return e(H.cache[S],a);var n=L.canvas||H.canvas,f=n.getContext("2d"),u={upper:L.upper!==void 0?L.upper:"H",lower:L.lower!==void 0?L.lower:"x",descent:L.descent!==void 0?L.descent:"p",ascent:L.ascent!==void 0?L.ascent:"h",tittle:L.tittle!==void 0?L.tittle:"i",overshoot:L.overshoot!==void 0?L.overshoot:"O"},l=Math.ceil(v*1.5);n.height=l,n.width=l*.5,f.font=t;var g="H",h={top:0};f.clearRect(0,0,l,l),f.textBaseline="top",f.fillStyle="black",f.fillText(g,0,0);var T=m(f.getImageData(0,0,l,l));f.clearRect(0,0,l,l),f.textBaseline="bottom",f.fillText(g,0,l);var c=m(f.getImageData(0,0,l,l));h.lineHeight=h.bottom=l-c+T,f.clearRect(0,0,l,l),f.textBaseline="alphabetic",f.fillText(g,0,l);var i=m(f.getImageData(0,0,l,l)),d=l-i-1+T;h.baseline=h.alphabetic=d,f.clearRect(0,0,l,l),f.textBaseline="middle",f.fillText(g,0,l*.5);var x=m(f.getImageData(0,0,l,l));h.median=h.middle=l-x-1+T-l*.5,f.clearRect(0,0,l,l),f.textBaseline="hanging",f.fillText(g,0,l*.5);var w=m(f.getImageData(0,0,l,l));h.hanging=l-w-1+T-l*.5,f.clearRect(0,0,l,l),f.textBaseline="ideographic",f.fillText(g,0,l);var C=m(f.getImageData(0,0,l,l));if(h.ideographic=l-C-1+T,u.upper&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.upper,0,0),h.upper=m(f.getImageData(0,0,l,l)),h.capHeight=h.baseline-h.upper),u.lower&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.lower,0,0),h.lower=m(f.getImageData(0,0,l,l)),h.xHeight=h.baseline-h.lower),u.tittle&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.tittle,0,0),h.tittle=m(f.getImageData(0,0,l,l))),u.ascent&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.ascent,0,0),h.ascent=m(f.getImageData(0,0,l,l))),u.descent&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.descent,0,0),h.descent=P(f.getImageData(0,0,l,l))),u.overshoot){f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.overshoot,0,0);var y=P(f.getImageData(0,0,l,l));h.overshoot=y-d}for(var E in h)h[E]/=v;return h.em=v,H.cache[S]=h,e(h,a)}function e(s,L){var S={};typeof L=="string"&&(L=s[L]);for(var v in s)v!=="em"&&(S[v]=s[v]-L);return S}function m(s){for(var L=s.height,S=s.data,v=3;v0;v-=4)if(S[v]!==0)return Math.floor((v-3)*.25/L)}},46492:function(G,H,e){var m=e(90720),P=Object.prototype.toString,s=Object.prototype.hasOwnProperty,L=function(t,a,n){for(var f=0,u=t.length;f=3&&(f=n),P.call(t)==="[object Array]"?L(t,a,f):typeof t=="string"?S(t,a,f):v(t,a,f)};G.exports=p},74336:function(G){var H="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,m=Math.max,P="[object Function]",s=function(p,r){for(var t=[],a=0;a"u"&&!m.canvas)return null;var P=m.canvas||document.createElement("canvas");typeof m.width=="number"&&(P.width=m.width),typeof m.height=="number"&&(P.height=m.height);var s=m,L;try{var S=[e];e.indexOf("webgl")===0&&S.push("experimental-"+e);for(var v=0;v"u"||!n?m:n(Uint8Array),l={"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":t&&n?n([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":f,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":t&&n?n(n([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!t||!n?m:n(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!t||!n?m:n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":t&&n?n(""[Symbol.iterator]()):m,"%Symbol%":t?Symbol:m,"%SyntaxError%":P,"%ThrowTypeError%":r,"%TypedArray%":u,"%TypeError%":L,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet};if(n)try{null.error}catch(b){var g=n(n(b));l["%Error.prototype%"]=g}var h=function b(I){var D;if(I==="%AsyncFunction%")D=S("async function () {}");else if(I==="%GeneratorFunction%")D=S("function* () {}");else if(I==="%AsyncGeneratorFunction%")D=S("async function* () {}");else if(I==="%AsyncGenerator%"){var N=b("%AsyncGeneratorFunction%");N&&(D=N.prototype)}else if(I==="%AsyncIteratorPrototype%"){var k=b("%AsyncGenerator%");k&&n&&(D=n(k.prototype))}return l[I]=D,D},T={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=e(8844),i=e(92064),d=c.call(Function.call,Array.prototype.concat),x=c.call(Function.apply,Array.prototype.splice),w=c.call(Function.call,String.prototype.replace),C=c.call(Function.call,String.prototype.slice),y=c.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,o=function(I){var D=C(I,0,1),N=C(I,-1);if(D==="%"&&N!=="%")throw new P("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&D!=="%")throw new P("invalid intrinsic syntax, expected opening `%`");var k=[];return w(I,E,function(O,F,z,B){k[k.length]=z?w(B,A,"$1"):F||O}),k},M=function(I,D){var N=I,k;if(i(T,N)&&(k=T[N],N="%"+k[0]+"%"),i(l,N)){var O=l[N];if(O===f&&(O=h(N)),typeof O>"u"&&!D)throw new L("intrinsic "+I+" exists, but is not available. Please file an issue!");return{alias:k,name:N,value:O}}throw new P("intrinsic "+I+" does not exist!")};G.exports=function(I,D){if(typeof I!="string"||I.length===0)throw new L("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof D!="boolean")throw new L('"allowMissing" argument must be a boolean');if(y(/^%?[^%]*%?$/,I)===null)throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=o(I),k=N.length>0?N[0]:"",O=M("%"+k+"%",D),F=O.name,z=O.value,B=!1,W=O.alias;W&&(k=W[0],x(N,d([0,1],W)));for(var J=1,re=!0;J=N.length){var Z=v(z,ne);re=!!Z,re&&"get"in Z&&!("originalValue"in Z.get)?z=Z.get:z=z[ne]}else re=i(z,ne),z=z[ne];re&&!B&&(l[F]=z)}}return z}},12408:function(G){G.exports=H;function H(e,m){var P=m[0],s=m[1],L=m[2],S=m[3],v=m[4],p=m[5],r=m[6],t=m[7],a=m[8],n=m[9],f=m[10],u=m[11],l=m[12],g=m[13],h=m[14],T=m[15];return e[0]=p*(f*T-u*h)-n*(r*T-t*h)+g*(r*u-t*f),e[1]=-(s*(f*T-u*h)-n*(L*T-S*h)+g*(L*u-S*f)),e[2]=s*(r*T-t*h)-p*(L*T-S*h)+g*(L*t-S*r),e[3]=-(s*(r*u-t*f)-p*(L*u-S*f)+n*(L*t-S*r)),e[4]=-(v*(f*T-u*h)-a*(r*T-t*h)+l*(r*u-t*f)),e[5]=P*(f*T-u*h)-a*(L*T-S*h)+l*(L*u-S*f),e[6]=-(P*(r*T-t*h)-v*(L*T-S*h)+l*(L*t-S*r)),e[7]=P*(r*u-t*f)-v*(L*u-S*f)+a*(L*t-S*r),e[8]=v*(n*T-u*g)-a*(p*T-t*g)+l*(p*u-t*n),e[9]=-(P*(n*T-u*g)-a*(s*T-S*g)+l*(s*u-S*n)),e[10]=P*(p*T-t*g)-v*(s*T-S*g)+l*(s*t-S*p),e[11]=-(P*(p*u-t*n)-v*(s*u-S*n)+a*(s*t-S*p)),e[12]=-(v*(n*h-f*g)-a*(p*h-r*g)+l*(p*f-r*n)),e[13]=P*(n*h-f*g)-a*(s*h-L*g)+l*(s*f-L*n),e[14]=-(P*(p*h-r*g)-v*(s*h-L*g)+l*(s*r-L*p)),e[15]=P*(p*f-r*n)-v*(s*f-L*n)+a*(s*r-L*p),e}},76860:function(G){G.exports=H;function H(e){var m=new Float32Array(16);return m[0]=e[0],m[1]=e[1],m[2]=e[2],m[3]=e[3],m[4]=e[4],m[5]=e[5],m[6]=e[6],m[7]=e[7],m[8]=e[8],m[9]=e[9],m[10]=e[10],m[11]=e[11],m[12]=e[12],m[13]=e[13],m[14]=e[14],m[15]=e[15],m}},64492:function(G){G.exports=H;function H(e,m){return e[0]=m[0],e[1]=m[1],e[2]=m[2],e[3]=m[3],e[4]=m[4],e[5]=m[5],e[6]=m[6],e[7]=m[7],e[8]=m[8],e[9]=m[9],e[10]=m[10],e[11]=m[11],e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15],e}},54212:function(G){G.exports=H;function H(){var e=new Float32Array(16);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}},70800:function(G){G.exports=H;function H(e){var m=e[0],P=e[1],s=e[2],L=e[3],S=e[4],v=e[5],p=e[6],r=e[7],t=e[8],a=e[9],n=e[10],f=e[11],u=e[12],l=e[13],g=e[14],h=e[15],T=m*v-P*S,c=m*p-s*S,i=m*r-L*S,d=P*p-s*v,x=P*r-L*v,w=s*r-L*p,C=t*l-a*u,y=t*g-n*u,E=t*h-f*u,A=a*g-n*l,o=a*h-f*l,M=n*h-f*g;return T*M-c*o+i*A+d*E-x*y+w*C}},61784:function(G){G.exports=H;function H(e,m){var P=m[0],s=m[1],L=m[2],S=m[3],v=P+P,p=s+s,r=L+L,t=P*v,a=s*v,n=s*p,f=L*v,u=L*p,l=L*r,g=S*v,h=S*p,T=S*r;return e[0]=1-n-l,e[1]=a+T,e[2]=f-h,e[3]=0,e[4]=a-T,e[5]=1-t-l,e[6]=u+g,e[7]=0,e[8]=f+h,e[9]=u-g,e[10]=1-t-n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},91616:function(G){G.exports=H;function H(e,m,P){var s,L,S,v=P[0],p=P[1],r=P[2],t=Math.sqrt(v*v+p*p+r*r);return Math.abs(t)<1e-6?null:(t=1/t,v*=t,p*=t,r*=t,s=Math.sin(m),L=Math.cos(m),S=1-L,e[0]=v*v*S+L,e[1]=p*v*S+r*s,e[2]=r*v*S-p*s,e[3]=0,e[4]=v*p*S-r*s,e[5]=p*p*S+L,e[6]=r*p*S+v*s,e[7]=0,e[8]=v*r*S+p*s,e[9]=p*r*S-v*s,e[10]=r*r*S+L,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}},51944:function(G){G.exports=H;function H(e,m,P){var s=m[0],L=m[1],S=m[2],v=m[3],p=s+s,r=L+L,t=S+S,a=s*p,n=s*r,f=s*t,u=L*r,l=L*t,g=S*t,h=v*p,T=v*r,c=v*t;return e[0]=1-(u+g),e[1]=n+c,e[2]=f-T,e[3]=0,e[4]=n-c,e[5]=1-(a+g),e[6]=l+h,e[7]=0,e[8]=f+T,e[9]=l-h,e[10]=1-(a+u),e[11]=0,e[12]=P[0],e[13]=P[1],e[14]=P[2],e[15]=1,e}},69444:function(G){G.exports=H;function H(e,m){return e[0]=m[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=m[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=m[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},48268:function(G){G.exports=H;function H(e,m){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]=m[0],e[13]=m[1],e[14]=m[2],e[15]=1,e}},21856:function(G){G.exports=H;function H(e,m){var P=Math.sin(m),s=Math.cos(m);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=P,e[7]=0,e[8]=0,e[9]=-P,e[10]=s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},79216:function(G){G.exports=H;function H(e,m){var P=Math.sin(m),s=Math.cos(m);return e[0]=s,e[1]=0,e[2]=-P,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=P,e[9]=0,e[10]=s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},57736:function(G){G.exports=H;function H(e,m){var P=Math.sin(m),s=Math.cos(m);return e[0]=s,e[1]=P,e[2]=0,e[3]=0,e[4]=-P,e[5]=s,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}},38848:function(G){G.exports=H;function H(e,m,P,s,L,S,v){var p=1/(P-m),r=1/(L-s),t=1/(S-v);return e[0]=S*2*p,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=S*2*r,e[6]=0,e[7]=0,e[8]=(P+m)*p,e[9]=(L+s)*r,e[10]=(v+S)*t,e[11]=-1,e[12]=0,e[13]=0,e[14]=v*S*2*t,e[15]=0,e}},36635:function(G){G.exports=H;function H(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}},36524:function(G,H,e){G.exports={create:e(54212),clone:e(76860),copy:e(64492),identity:e(36635),transpose:e(86520),invert:e(4308),adjoint:e(12408),determinant:e(70800),multiply:e(80944),translate:e(35176),scale:e(68152),rotate:e(30016),rotateX:e(15456),rotateY:e(64840),rotateZ:e(4192),fromRotation:e(91616),fromRotationTranslation:e(51944),fromScaling:e(69444),fromTranslation:e(48268),fromXRotation:e(21856),fromYRotation:e(79216),fromZRotation:e(57736),fromQuat:e(61784),frustum:e(38848),perspective:e(51296),perspectiveFromFieldOfView:e(63688),ortho:e(97688),lookAt:e(56508),str:e(89412)}},4308:function(G){G.exports=H;function H(e,m){var P=m[0],s=m[1],L=m[2],S=m[3],v=m[4],p=m[5],r=m[6],t=m[7],a=m[8],n=m[9],f=m[10],u=m[11],l=m[12],g=m[13],h=m[14],T=m[15],c=P*p-s*v,i=P*r-L*v,d=P*t-S*v,x=s*r-L*p,w=s*t-S*p,C=L*t-S*r,y=a*g-n*l,E=a*h-f*l,A=a*T-u*l,o=n*h-f*g,M=n*T-u*g,b=f*T-u*h,I=c*b-i*M+d*o+x*A-w*E+C*y;return I?(I=1/I,e[0]=(p*b-r*M+t*o)*I,e[1]=(L*M-s*b-S*o)*I,e[2]=(g*C-h*w+T*x)*I,e[3]=(f*w-n*C-u*x)*I,e[4]=(r*A-v*b-t*E)*I,e[5]=(P*b-L*A+S*E)*I,e[6]=(h*d-l*C-T*i)*I,e[7]=(a*C-f*d+u*i)*I,e[8]=(v*M-p*A+t*y)*I,e[9]=(s*A-P*M-S*y)*I,e[10]=(l*w-g*d+T*c)*I,e[11]=(n*d-a*w-u*c)*I,e[12]=(p*E-v*o-r*y)*I,e[13]=(P*o-s*E+L*y)*I,e[14]=(g*i-l*x-h*c)*I,e[15]=(a*x-n*i+f*c)*I,e):null}},56508:function(G,H,e){var m=e(36635);G.exports=P;function P(s,L,S,v){var p,r,t,a,n,f,u,l,g,h,T=L[0],c=L[1],i=L[2],d=v[0],x=v[1],w=v[2],C=S[0],y=S[1],E=S[2];return Math.abs(T-C)<1e-6&&Math.abs(c-y)<1e-6&&Math.abs(i-E)<1e-6?m(s):(u=T-C,l=c-y,g=i-E,h=1/Math.sqrt(u*u+l*l+g*g),u*=h,l*=h,g*=h,p=x*g-w*l,r=w*u-d*g,t=d*l-x*u,h=Math.sqrt(p*p+r*r+t*t),h?(h=1/h,p*=h,r*=h,t*=h):(p=0,r=0,t=0),a=l*t-g*r,n=g*p-u*t,f=u*r-l*p,h=Math.sqrt(a*a+n*n+f*f),h?(h=1/h,a*=h,n*=h,f*=h):(a=0,n=0,f=0),s[0]=p,s[1]=a,s[2]=u,s[3]=0,s[4]=r,s[5]=n,s[6]=l,s[7]=0,s[8]=t,s[9]=f,s[10]=g,s[11]=0,s[12]=-(p*T+r*c+t*i),s[13]=-(a*T+n*c+f*i),s[14]=-(u*T+l*c+g*i),s[15]=1,s)}},80944:function(G){G.exports=H;function H(e,m,P){var s=m[0],L=m[1],S=m[2],v=m[3],p=m[4],r=m[5],t=m[6],a=m[7],n=m[8],f=m[9],u=m[10],l=m[11],g=m[12],h=m[13],T=m[14],c=m[15],i=P[0],d=P[1],x=P[2],w=P[3];return e[0]=i*s+d*p+x*n+w*g,e[1]=i*L+d*r+x*f+w*h,e[2]=i*S+d*t+x*u+w*T,e[3]=i*v+d*a+x*l+w*c,i=P[4],d=P[5],x=P[6],w=P[7],e[4]=i*s+d*p+x*n+w*g,e[5]=i*L+d*r+x*f+w*h,e[6]=i*S+d*t+x*u+w*T,e[7]=i*v+d*a+x*l+w*c,i=P[8],d=P[9],x=P[10],w=P[11],e[8]=i*s+d*p+x*n+w*g,e[9]=i*L+d*r+x*f+w*h,e[10]=i*S+d*t+x*u+w*T,e[11]=i*v+d*a+x*l+w*c,i=P[12],d=P[13],x=P[14],w=P[15],e[12]=i*s+d*p+x*n+w*g,e[13]=i*L+d*r+x*f+w*h,e[14]=i*S+d*t+x*u+w*T,e[15]=i*v+d*a+x*l+w*c,e}},97688:function(G){G.exports=H;function H(e,m,P,s,L,S,v){var p=1/(m-P),r=1/(s-L),t=1/(S-v);return e[0]=-2*p,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*t,e[11]=0,e[12]=(m+P)*p,e[13]=(L+s)*r,e[14]=(v+S)*t,e[15]=1,e}},51296:function(G){G.exports=H;function H(e,m,P,s,L){var S=1/Math.tan(m/2),v=1/(s-L);return e[0]=S/P,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=S,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(L+s)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*L*s*v,e[15]=0,e}},63688:function(G){G.exports=H;function H(e,m,P,s){var L=Math.tan(m.upDegrees*Math.PI/180),S=Math.tan(m.downDegrees*Math.PI/180),v=Math.tan(m.leftDegrees*Math.PI/180),p=Math.tan(m.rightDegrees*Math.PI/180),r=2/(v+p),t=2/(L+S);return e[0]=r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t,e[6]=0,e[7]=0,e[8]=-((v-p)*r*.5),e[9]=(L-S)*t*.5,e[10]=s/(P-s),e[11]=-1,e[12]=0,e[13]=0,e[14]=s*P/(P-s),e[15]=0,e}},30016:function(G){G.exports=H;function H(e,m,P,s){var L=s[0],S=s[1],v=s[2],p=Math.sqrt(L*L+S*S+v*v),r,t,a,n,f,u,l,g,h,T,c,i,d,x,w,C,y,E,A,o,M,b,I,D;return Math.abs(p)<1e-6?null:(p=1/p,L*=p,S*=p,v*=p,r=Math.sin(P),t=Math.cos(P),a=1-t,n=m[0],f=m[1],u=m[2],l=m[3],g=m[4],h=m[5],T=m[6],c=m[7],i=m[8],d=m[9],x=m[10],w=m[11],C=L*L*a+t,y=S*L*a+v*r,E=v*L*a-S*r,A=L*S*a-v*r,o=S*S*a+t,M=v*S*a+L*r,b=L*v*a+S*r,I=S*v*a-L*r,D=v*v*a+t,e[0]=n*C+g*y+i*E,e[1]=f*C+h*y+d*E,e[2]=u*C+T*y+x*E,e[3]=l*C+c*y+w*E,e[4]=n*A+g*o+i*M,e[5]=f*A+h*o+d*M,e[6]=u*A+T*o+x*M,e[7]=l*A+c*o+w*M,e[8]=n*b+g*I+i*D,e[9]=f*b+h*I+d*D,e[10]=u*b+T*I+x*D,e[11]=l*b+c*I+w*D,m!==e&&(e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15]),e)}},15456:function(G){G.exports=H;function H(e,m,P){var s=Math.sin(P),L=Math.cos(P),S=m[4],v=m[5],p=m[6],r=m[7],t=m[8],a=m[9],n=m[10],f=m[11];return m!==e&&(e[0]=m[0],e[1]=m[1],e[2]=m[2],e[3]=m[3],e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15]),e[4]=S*L+t*s,e[5]=v*L+a*s,e[6]=p*L+n*s,e[7]=r*L+f*s,e[8]=t*L-S*s,e[9]=a*L-v*s,e[10]=n*L-p*s,e[11]=f*L-r*s,e}},64840:function(G){G.exports=H;function H(e,m,P){var s=Math.sin(P),L=Math.cos(P),S=m[0],v=m[1],p=m[2],r=m[3],t=m[8],a=m[9],n=m[10],f=m[11];return m!==e&&(e[4]=m[4],e[5]=m[5],e[6]=m[6],e[7]=m[7],e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15]),e[0]=S*L-t*s,e[1]=v*L-a*s,e[2]=p*L-n*s,e[3]=r*L-f*s,e[8]=S*s+t*L,e[9]=v*s+a*L,e[10]=p*s+n*L,e[11]=r*s+f*L,e}},4192:function(G){G.exports=H;function H(e,m,P){var s=Math.sin(P),L=Math.cos(P),S=m[0],v=m[1],p=m[2],r=m[3],t=m[4],a=m[5],n=m[6],f=m[7];return m!==e&&(e[8]=m[8],e[9]=m[9],e[10]=m[10],e[11]=m[11],e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15]),e[0]=S*L+t*s,e[1]=v*L+a*s,e[2]=p*L+n*s,e[3]=r*L+f*s,e[4]=t*L-S*s,e[5]=a*L-v*s,e[6]=n*L-p*s,e[7]=f*L-r*s,e}},68152:function(G){G.exports=H;function H(e,m,P){var s=P[0],L=P[1],S=P[2];return e[0]=m[0]*s,e[1]=m[1]*s,e[2]=m[2]*s,e[3]=m[3]*s,e[4]=m[4]*L,e[5]=m[5]*L,e[6]=m[6]*L,e[7]=m[7]*L,e[8]=m[8]*S,e[9]=m[9]*S,e[10]=m[10]*S,e[11]=m[11]*S,e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15],e}},89412:function(G){G.exports=H;function H(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},35176:function(G){G.exports=H;function H(e,m,P){var s=P[0],L=P[1],S=P[2],v,p,r,t,a,n,f,u,l,g,h,T;return m===e?(e[12]=m[0]*s+m[4]*L+m[8]*S+m[12],e[13]=m[1]*s+m[5]*L+m[9]*S+m[13],e[14]=m[2]*s+m[6]*L+m[10]*S+m[14],e[15]=m[3]*s+m[7]*L+m[11]*S+m[15]):(v=m[0],p=m[1],r=m[2],t=m[3],a=m[4],n=m[5],f=m[6],u=m[7],l=m[8],g=m[9],h=m[10],T=m[11],e[0]=v,e[1]=p,e[2]=r,e[3]=t,e[4]=a,e[5]=n,e[6]=f,e[7]=u,e[8]=l,e[9]=g,e[10]=h,e[11]=T,e[12]=v*s+a*L+l*S+m[12],e[13]=p*s+n*L+g*S+m[13],e[14]=r*s+f*L+h*S+m[14],e[15]=t*s+u*L+T*S+m[15]),e}},86520:function(G){G.exports=H;function H(e,m){if(e===m){var P=m[1],s=m[2],L=m[3],S=m[6],v=m[7],p=m[11];e[1]=m[4],e[2]=m[8],e[3]=m[12],e[4]=P,e[6]=m[9],e[7]=m[13],e[8]=s,e[9]=S,e[11]=m[14],e[12]=L,e[13]=v,e[14]=p}else e[0]=m[0],e[1]=m[4],e[2]=m[8],e[3]=m[12],e[4]=m[1],e[5]=m[5],e[6]=m[9],e[7]=m[13],e[8]=m[2],e[9]=m[6],e[10]=m[10],e[11]=m[14],e[12]=m[3],e[13]=m[7],e[14]=m[11],e[15]=m[15];return e}},23352:function(G,H,e){var m=e(42771),P=e(55616),s=e(28624),L=e(55212),S=e(60463),v=e(72160),p=e(33888),r=e(14144),t=e(51160),a=e(58908),n=e(65819),f=e(23464),u=e(63768),l=e(50896),g=e(71920),h=e(47520),T=e(308),c=T.nextPow2,i=new S,d=!1;if(document.body){var x=document.body.appendChild(document.createElement("div"));x.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(x).fontStretch&&(d=!0),document.body.removeChild(x)}var w=function(E){C(E)?(E={regl:E},this.gl=E.regl._gl):this.gl=L(E),this.shader=i.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=E.regl||s({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),i.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(a(E)?E:{})};w.prototype.createShader=function(){var E=this.regl,A=E({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:E.prop("count"),offset:E.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:E.this("sizeBuffer")},width:{offset:0,stride:8,buffer:E.this("sizeBuffer")},char:E.this("charBuffer"),position:E.this("position")},uniforms:{atlasSize:function(M,b){return[b.atlas.width,b.atlas.height]},atlasDim:function(M,b){return[b.atlas.cols,b.atlas.rows]},atlas:function(M,b){return b.atlas.texture},charStep:function(M,b){return b.atlas.step},em:function(M,b){return b.atlas.em},color:E.prop("color"),opacity:E.prop("opacity"),viewport:E.this("viewportArray"),scale:E.this("scale"),align:E.prop("align"),baseline:E.prop("baseline"),translate:E.this("translate"),positionOffset:E.prop("positionOffset")},primitive:"points",viewport:E.this("viewport"),vert:` + */function O(Fe,Te){if(Fe===Te)return 0;for(var Re=Fe.length,Se=Te.length,Ie=0,Me=Math.min(Re,Se);Ie"u"?[]:new Uint8Array(256),s=0;s>2],a+=m[(p[r]&3)<<4|p[r+1]>>4],a+=m[(p[r+1]&15)<<2|p[r+2]>>6],a+=m[p[r+2]&63];return t%3===2?a=a.substring(0,a.length-1)+"=":t%3===1&&(a=a.substring(0,a.length-2)+"=="),a},S=function(v){var p=v.length*.75,r=v.length,t,a=0,n,f,u,l;v[v.length-1]==="="&&(p--,v[v.length-2]==="="&&p--);var g=new ArrayBuffer(p),h=new Uint8Array(g);for(t=0;t>4,h[a++]=(f&15)<<4|u>>2,h[a++]=(u&3)<<6|l&63;return g}},59968:function(G,H){H.byteLength=p,H.toByteArray=t,H.fromByteArray=f;for(var e=[],m=[],P=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=0,S=s.length;L0)throw new Error("Invalid string. Length must be a multiple of 4");var g=u.indexOf("=");g===-1&&(g=l);var h=g===l?0:4-g%4;return[g,h]}function p(u){var l=v(u),g=l[0],h=l[1];return(g+h)*3/4-h}function r(u,l,g){return(l+g)*3/4-g}function t(u){var l,g=v(u),h=g[0],T=g[1],c=new P(r(u,h,T)),i=0,d=T>0?h-4:h,x;for(x=0;x>16&255,c[i++]=l>>8&255,c[i++]=l&255;return T===2&&(l=m[u.charCodeAt(x)]<<2|m[u.charCodeAt(x+1)]>>4,c[i++]=l&255),T===1&&(l=m[u.charCodeAt(x)]<<10|m[u.charCodeAt(x+1)]<<4|m[u.charCodeAt(x+2)]>>2,c[i++]=l>>8&255,c[i++]=l&255),c}function a(u){return e[u>>18&63]+e[u>>12&63]+e[u>>6&63]+e[u&63]}function n(u,l,g){for(var h,T=[],c=l;cd?d:i+c));return h===1?(l=u[g-1],T.push(e[l>>2]+e[l<<4&63]+"==")):h===2&&(l=(u[g-2]<<8)+u[g-1],T.push(e[l>>10]+e[l>>4&63]+e[l<<2&63]+"=")),T.join("")}},64928:function(G){function H(S,v,p,r,t){for(var a=t+1;r<=t;){var n=r+t>>>1,f=S[n],u=p!==void 0?p(f,v):f-v;u>=0?(a=n,t=n-1):r=n+1}return a}function e(S,v,p,r,t){for(var a=t+1;r<=t;){var n=r+t>>>1,f=S[n],u=p!==void 0?p(f,v):f-v;u>0?(a=n,t=n-1):r=n+1}return a}function m(S,v,p,r,t){for(var a=r-1;r<=t;){var n=r+t>>>1,f=S[n],u=p!==void 0?p(f,v):f-v;u<0?(a=n,r=n+1):t=n-1}return a}function P(S,v,p,r,t){for(var a=r-1;r<=t;){var n=r+t>>>1,f=S[n],u=p!==void 0?p(f,v):f-v;u<=0?(a=n,r=n+1):t=n-1}return a}function s(S,v,p,r,t){for(;r<=t;){var a=r+t>>>1,n=S[a],f=p!==void 0?p(n,v):n-v;if(f===0)return a;f<=0?r=a+1:t=a-1}return-1}function L(S,v,p,r,t,a){return typeof p=="function"?a(S,v,p,r===void 0?0:r|0,t===void 0?S.length-1:t|0):a(S,v,void 0,p===void 0?0:p|0,r===void 0?S.length-1:r|0)}G.exports={ge:function(S,v,p,r,t){return L(S,v,p,r,t,H)},gt:function(S,v,p,r,t){return L(S,v,p,r,t,e)},lt:function(S,v,p,r,t){return L(S,v,p,r,t,m)},le:function(S,v,p,r,t){return L(S,v,p,r,t,P)},eq:function(S,v,p,r,t){return L(S,v,p,r,t,s)}}},308:function(G,H){"use restrict";var e=32;H.INT_BITS=e,H.INT_MAX=2147483647,H.INT_MIN=-1<0)-(s<0)},H.abs=function(s){var L=s>>e-1;return(s^L)-L},H.min=function(s,L){return L^(s^L)&-(s65535)<<4,s>>>=L,S=(s>255)<<3,s>>>=S,L|=S,S=(s>15)<<2,s>>>=S,L|=S,S=(s>3)<<1,s>>>=S,L|=S,L|s>>1},H.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},H.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function m(s){var L=32;return s&=-s,s&&L--,s&65535&&(L-=16),s&16711935&&(L-=8),s&252645135&&(L-=4),s&858993459&&(L-=2),s&1431655765&&(L-=1),L}H.countTrailingZeros=m,H.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},H.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},H.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var P=new Array(256);(function(s){for(var L=0;L<256;++L){var S=L,v=L,p=7;for(S>>>=1;S;S>>>=1)v<<=1,v|=S&1,--p;s[L]=v<>>8&255]<<16|P[s>>>16&255]<<8|P[s>>>24&255]},H.interleave2=function(s,L){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,L&=65535,L=(L|L<<8)&16711935,L=(L|L<<4)&252645135,L=(L|L<<2)&858993459,L=(L|L<<1)&1431655765,s|L<<1},H.deinterleave2=function(s,L){return s=s>>>L&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},H.interleave3=function(s,L,S){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,L&=1023,L=(L|L<<16)&4278190335,L=(L|L<<8)&251719695,L=(L|L<<4)&3272356035,L=(L|L<<2)&1227133513,s|=L<<1,S&=1023,S=(S|S<<16)&4278190335,S=(S|S<<8)&251719695,S=(S|S<<4)&3272356035,S=(S|S<<2)&1227133513,s|S<<2},H.deinterleave3=function(s,L){return s=s>>>L&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},H.nextCombination=function(s){var L=s|s-1;return L+1|(~L&-~L)-1>>>m(s)+1}},29620:function(G,H,e){var m=e(32420);G.exports=s;var P=1e20;function s(v,p){p||(p={});var r=p.cutoff==null?.25:p.cutoff,t=p.radius==null?8:p.radius,a=p.channel||0,n,f,u,l,g,h,T,c,i,d,x;if(ArrayBuffer.isView(v)||Array.isArray(v)){if(!p.width||!p.height)throw Error("For raw data width and height should be provided by options");n=p.width,f=p.height,l=v,p.stride?h=p.stride:h=Math.floor(v.length/n/f)}else window.HTMLCanvasElement&&v instanceof window.HTMLCanvasElement?(c=v,T=c.getContext("2d"),n=c.width,f=c.height,i=T.getImageData(0,0,n,f),l=i.data,h=4):window.CanvasRenderingContext2D&&v instanceof window.CanvasRenderingContext2D?(c=v.canvas,T=v,n=c.width,f=c.height,i=T.getImageData(0,0,n,f),l=i.data,h=4):window.ImageData&&v instanceof window.ImageData&&(i=v,n=v.width,f=v.height,l=i.data,h=4);if(u=Math.max(n,f),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(g=l,l=Array(n*f),d=0,x=g.length;d-1?P(p):p}},57916:function(G,H,e){var m=e(8844),P=e(53664),s=e(14500),L=P("%TypeError%"),S=P("%Function.prototype.apply%"),v=P("%Function.prototype.call%"),p=P("%Reflect.apply%",!0)||m.call(v,S),r=P("%Object.defineProperty%",!0),t=P("%Math.max%");if(r)try{r({},"a",{value:1})}catch{r=null}G.exports=function(f){if(typeof f!="function")throw new L("a function is required");var u=p(m,v,arguments);return s(u,1+t(0,f.length-(arguments.length-1)),!0)};var a=function(){return p(m,S,arguments)};r?r(G.exports,"apply",{value:a}):G.exports.apply=a},32420:function(G){G.exports=H;function H(e,m,P){return mP?P:e:em?m:e}},3808:function(G,H,e){var m=e(32420);G.exports=P,G.exports.to=P,G.exports.from=s;function P(L,S){S==null&&(S=!0);var v=L[0],p=L[1],r=L[2],t=L[3];t==null&&(t=S?1:255),S&&(v*=255,p*=255,r*=255,t*=255),v=m(v,0,255)&255,p=m(p,0,255)&255,r=m(r,0,255)&255,t=m(t,0,255)&255;var a=v*16777216+(p<<16)+(r<<8)+t;return a}function s(L,S){L=+L;var v=L>>>24,p=(L&16711680)>>>16,r=(L&65280)>>>8,t=L&255;return S===!1?[v,p,r,t]:[v/255,p/255,r/255,t/255]}},17592:function(G){G.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(G,H,e){var m=e(96824),P=e(32420),s=e(72512);G.exports=function(v,p){(p==="float"||!p)&&(p="array"),p==="uint"&&(p="uint8"),p==="uint_clamped"&&(p="uint8_clamped");var r=s(p),t=new r(4),a=p!=="uint8"&&p!=="uint8_clamped";return(!v.length||typeof v=="string")&&(v=m(v),v[0]/=255,v[1]/=255,v[2]/=255),L(v)?(t[0]=v[0],t[1]=v[1],t[2]=v[2],t[3]=v[3]!=null?v[3]:255,a&&(t[0]/=255,t[1]/=255,t[2]/=255,t[3]/=255),t):(a?(t[0]=v[0],t[1]=v[1],t[2]=v[2],t[3]=v[3]!=null?v[3]:1):(t[0]=P(Math.floor(v[0]*255),0,255),t[1]=P(Math.floor(v[1]*255),0,255),t[2]=P(Math.floor(v[2]*255),0,255),t[3]=v[3]==null?255:P(Math.floor(v[3]*255),0,255)),t)};function L(S){return!!(S instanceof Uint8Array||S instanceof Uint8ClampedArray||Array.isArray(S)&&(S[0]>1||S[0]===0)&&(S[1]>1||S[1]===0)&&(S[2]>1||S[2]===0)&&(!S[3]||S[3]>1))}},96824:function(G,H,e){var m=e(95532),P=e(53576),s=e(32420);G.exports=function(S){var v,p=m(S);return p.space?(v=Array(3),v[0]=s(p.values[0],0,255),v[1]=s(p.values[1],0,255),v[2]=s(p.values[2],0,255),p.space[0]==="h"&&(v=P.rgb(v)),v.push(s(p.alpha,0,1)),v):[]}},95532:function(G,H,e){var m=e(17592);G.exports=s;var P={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function s(L){var S,v=[],p=1,r;if(typeof L=="string")if(L=L.toLowerCase(),m[L])v=m[L].slice(),r="rgb";else if(L==="transparent")p=0,r="rgb",v=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(L)){var t=L.slice(1),a=t.length,n=a<=4;p=1,n?(v=[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)],a===4&&(p=parseInt(t[3]+t[3],16)/255)):(v=[parseInt(t[0]+t[1],16),parseInt(t[2]+t[3],16),parseInt(t[4]+t[5],16)],a===8&&(p=parseInt(t[6]+t[7],16)/255)),v[0]||(v[0]=0),v[1]||(v[1]=0),v[2]||(v[2]=0),r="rgb"}else if(S=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(L)){var f=S[1],u=f==="rgb",t=f.replace(/a$/,"");r=t;var a=t==="cmyk"?4:t==="gray"?1:3;v=S[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,T){if(/%$/.test(h))return T===a?parseFloat(h)/100:t==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(t[T]==="h"){if(/deg$/.test(h))return parseFloat(h);if(P[h]!==void 0)return P[h]}return parseFloat(h)}),f===t&&v.push(1),p=u||v[a]===void 0?1:v[a],v=v.slice(0,a)}else L.length>10&&/[0-9](?:\s|\/)/.test(L)&&(v=L.match(/([0-9]+)/g).map(function(l){return parseFloat(l)}),r=L.match(/([a-z])/ig).join("").toLowerCase());else isNaN(L)?Array.isArray(L)||L.length?(v=[L[0],L[1],L[2]],r="rgb",p=L.length===4?L[3]:1):L instanceof Object&&(L.r!=null||L.red!=null||L.R!=null?(r="rgb",v=[L.r||L.red||L.R||0,L.g||L.green||L.G||0,L.b||L.blue||L.B||0]):(r="hsl",v=[L.h||L.hue||L.H||0,L.s||L.saturation||L.S||0,L.l||L.lightness||L.L||L.b||L.brightness]),p=L.a||L.alpha||L.opacity||1,L.opacity!=null&&(p/=100)):(r="rgb",v=[L>>>16,(L&65280)>>>8,L&255]);return{space:r,values:v,alpha:p}}},53576:function(G,H,e){var m=e(19336);G.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(P){var s=P[0]/360,L=P[1]/100,S=P[2]/100,v,p,r,t,a;if(L===0)return a=S*255,[a,a,a];S<.5?p=S*(1+L):p=S+L-S*L,v=2*S-p,t=[0,0,0];for(var n=0;n<3;n++)r=s+.3333333333333333*-(n-1),r<0?r++:r>1&&r--,6*r<1?a=v+(p-v)*6*r:2*r<1?a=p:3*r<2?a=v+(p-v)*(.6666666666666666-r)*6:a=v,t[n]=a*255;return t}},m.hsl=function(P){var s=P[0]/255,L=P[1]/255,S=P[2]/255,v=Math.min(s,L,S),p=Math.max(s,L,S),r=p-v,t,a,n;return p===v?t=0:s===p?t=(L-S)/r:L===p?t=2+(S-s)/r:S===p&&(t=4+(s-L)/r),t=Math.min(t*60,360),t<0&&(t+=360),n=(v+p)/2,p===v?a=0:n<=.5?a=r/(p+v):a=r/(2-p-v),[t,a*100,n*100]}},19336:function(G){G.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(G){G.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(G,H,e){G.exports={parse:e(46416),stringify:e(49395)}},8744:function(G,H,e){var m=e(30584);G.exports={isSize:function(s){return/^[\d\.]/.test(s)||s.indexOf("/")!==-1||m.indexOf(s)!==-1}}},46416:function(G,H,e){var m=e(92384),P=e(68194),s=e(3748),L=e(2904),S=e(47916),v=e(7294),p=e(39956),r=e(8744).isSize;G.exports=a;var t=a.cache={};function a(f){if(typeof f!="string")throw new Error("Font argument must be a string.");if(t[f])return t[f];if(f==="")throw new Error("Cannot parse an empty string.");if(s.indexOf(f)!==-1)return t[f]={system:f};for(var u={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},l=p(f,/\s+/),g;g=l.shift();){if(P.indexOf(g)!==-1)return["style","variant","weight","stretch"].forEach(function(T){u[T]=g}),t[f]=u;if(S.indexOf(g)!==-1){u.style=g;continue}if(g==="normal"||g==="small-caps"){u.variant=g;continue}if(v.indexOf(g)!==-1){u.stretch=g;continue}if(L.indexOf(g)!==-1){u.weight=g;continue}if(r(g)){var h=p(g,"/");if(u.size=h[0],h[1]!=null?u.lineHeight=n(h[1]):l[0]==="/"&&(l.shift(),u.lineHeight=n(l.shift())),!l.length)throw new Error("Missing required font-family.");return u.family=p(l.join(" "),/\s*,\s*/).map(m),t[f]=u}throw new Error("Unknown or unsupported font token: "+g)}throw new Error("Missing required font-size.")}function n(f){var u=parseFloat(f);return u.toString()===f?u:f}},49395:function(G,H,e){var m=e(55616),P=e(8744).isSize,s=f(e(68194)),L=f(e(3748)),S=f(e(2904)),v=f(e(47916)),p=f(e(7294)),r={normal:1,"small-caps":1},t={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},a={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};G.exports=function(l){if(l=m(l,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),l.system)return l.system&&n(l.system,L),l.system;if(n(l.style,v),n(l.variant,r),n(l.weight,S),n(l.stretch,p),l.size==null&&(l.size=a.size),typeof l.size=="number"&&(l.size+="px"),!P)throw Error("Bad size value `"+l.size+"`");l.family||(l.family=a.family),Array.isArray(l.family)&&(l.family.length||(l.family=[a.family]),l.family=l.family.map(function(h){return t[h]?h:'"'+h+'"'}).join(", "));var g=[];return g.push(l.style),l.variant!==l.style&&g.push(l.variant),l.weight!==l.variant&&l.weight!==l.style&&g.push(l.weight),l.stretch!==l.weight&&l.stretch!==l.variant&&l.stretch!==l.style&&g.push(l.stretch),g.push(l.size+(l.lineHeight==null||l.lineHeight==="normal"||l.lineHeight+""=="1"?"":"/"+l.lineHeight)),g.push(l.family),g.filter(Boolean).join(" ")};function n(u,l){if(u&&!l[u]&&!s[u])throw Error("Unknown keyword `"+u+"`");return u}function f(u){for(var l={},g=0;gf?1:n>=f?0:NaN}function P(n){return n.length===1&&(n=s(n)),{left:function(f,u,l,g){for(l==null&&(l=0),g==null&&(g=f.length);l>>1;n(f[h],u)<0?l=h+1:g=h}return l},right:function(f,u,l,g){for(l==null&&(l=0),g==null&&(g=f.length);l>>1;n(f[h],u)>0?g=h:l=h+1}return l}}}function s(n){return function(f,u){return m(n(f),u)}}P(m);function L(n,f){var u=n.length,l=-1,g,h;if(f==null){for(;++l=g)for(h=g;++lh&&(h=g)}else for(;++l=g)for(h=g;++lh&&(h=g);return h}function S(n){return n===null?NaN:+n}function v(n,f){var u=n.length,l=u,g=-1,h,T=0;if(f==null)for(;++g=0;)for(T=n[f],u=T.length;--u>=0;)h[--g]=T[u];return h}function r(n,f){var u=n.length,l=-1,g,h;if(f==null){for(;++l=g)for(h=g;++lg&&(h=g)}else for(;++l=g)for(h=g;++lg&&(h=g);return h}function t(n,f,u){n=+n,f=+f,u=(g=arguments.length)<2?(f=n,n=0,1):g<3?1:+u;for(var l=-1,g=Math.max(0,Math.ceil((f-n)/u))|0,h=new Array(g);++l=f.length)return l!=null&&i.sort(l),g!=null?g(i):i;for(var C=-1,y=i.length,E=f[d++],A,o,M=L(),b,I=x();++Cf.length)return i;var x,w=u[d-1];return g!=null&&d>=f.length?x=i.entries():(x=[],i.each(function(C,y){x.push({key:y,values:c(C,d)})})),w!=null?x.sort(function(C,y){return w(C.key,y.key)}):x}return h={object:function(i){return T(i,0,v,p)},map:function(i){return T(i,0,r,t)},entries:function(i){return c(T(i,0,r,t),0)},key:function(i){return f.push(i),h},sortKeys:function(i){return u[f.length-1]=i,h},sortValues:function(i){return l=i,h},rollup:function(i){return g=i,h}}}function v(){return{}}function p(f,u,l){f[u]=l}function r(){return L()}function t(f,u,l){f.set(u,l)}function a(){}var n=L.prototype;a.prototype={constructor:a,has:n.has,add:function(f){return f+="",this[m+f]=f,this},remove:n.remove,clear:n.clear,values:n.keys,size:n.size,empty:n.empty,each:n.each}},49812:function(G,H,e){e.r(H),e.d(H,{forceCenter:function(){return m},forceCollide:function(){return M},forceLink:function(){return N},forceManyBody:function(){return Ve},forceRadial:function(){return et},forceSimulation:function(){return Me},forceX:function(){return ot},forceY:function(){return Qe}});function m($e,ht){var vt;$e==null&&($e=0),ht==null&&(ht=0);function pt(){var wt,Ct=vt.length,rt,ze=0,He=0;for(wt=0;wt=(Le=(ze+We)/2))?ze=Le:We=Le,(me=vt>=(Pe=(He+Ge)/2))?He=Pe:Ge=Pe,wt=Ct,!(Ct=Ct[Ne=me<<1|he]))return wt[Ne]=rt,$e;if(je=+$e._x.call(null,Ct.data),Ce=+$e._y.call(null,Ct.data),ht===je&&vt===Ce)return rt.next=Ct,wt?wt[Ne]=rt:$e._root=rt,$e;do wt=wt?wt[Ne]=new Array(4):$e._root=new Array(4),(he=ht>=(Le=(ze+We)/2))?ze=Le:We=Le,(me=vt>=(Pe=(He+Ge)/2))?He=Pe:Ge=Pe;while((Ne=me<<1|he)===(Ze=(Ce>=Pe)<<1|je>=Le));return wt[Ze]=Ct,wt[Ne]=rt,$e}function v($e){var ht,vt,pt=$e.length,wt,Ct,rt=new Array(pt),ze=new Array(pt),He=1/0,We=1/0,Ge=-1/0,Le=-1/0;for(vt=0;vtGe&&(Ge=wt),CtLe&&(Le=Ct));if(He>Ge||We>Le)return this;for(this.cover(He,We).cover(Ge,Le),vt=0;vt$e||$e>=wt||pt>ht||ht>=Ct;)switch(We=(htGe||(ze=Ce.y0)>Le||(He=Ce.x1)=Ne)<<1|$e>=me)&&(Ce=Pe[Pe.length-1],Pe[Pe.length-1]=Pe[Pe.length-1-he],Pe[Pe.length-1-he]=Ce)}else{var Ze=$e-+this._x.call(null,je.data),st=ht-+this._y.call(null,je.data),lt=Ze*Ze+st*st;if(lt=(Pe=(rt+He)/2))?rt=Pe:He=Pe,(he=Le>=(je=(ze+We)/2))?ze=je:We=je,ht=vt,!(vt=vt[me=he<<1|Ce]))return this;if(!vt.length)break;(ht[me+1&3]||ht[me+2&3]||ht[me+3&3])&&(pt=ht,Ne=me)}for(;vt.data!==$e;)if(wt=vt,!(vt=vt.next))return this;return(Ct=vt.next)&&delete vt.next,wt?(Ct?wt.next=Ct:delete wt.next,this):ht?(Ct?ht[me]=Ct:delete ht[me],(vt=ht[0]||ht[1]||ht[2]||ht[3])&&vt===(ht[3]||ht[2]||ht[1]||ht[0])&&!vt.length&&(pt?pt[Ne]=vt:this._root=vt),this):(this._root=Ct,this)}function u($e){for(var ht=0,vt=$e.length;htLe.index){var gr=Pe-Tt.x-Tt.vx,gt=je-Tt.y-Tt.vy,Kt=gr*gr+gt*gt;KtPe+Xt||Wtje+Xt||ZtHe.r&&(He.r=He[We].r)}function ze(){if(ht){var He,We=ht.length,Ge;for(vt=new Array(We),He=0;He=0&&(pt=vt.slice(wt+1),vt=vt.slice(0,wt)),vt&&!ht.hasOwnProperty(vt))throw new Error("unknown type: "+vt);return{type:vt,name:pt}})}F.prototype=O.prototype={constructor:F,on:function($e,ht){var vt=this._,pt=z($e+"",vt),wt,Ct=-1,rt=pt.length;if(arguments.length<2){for(;++Ct0)for(var vt=new Array(wt),pt=0,wt,Ct;pt=0&&$e._call.call(null,ht),$e=$e._next;--re}function xe(){Q=(X=Y.now())+oe,re=ne=0;try{be()}finally{re=0,De(),Q=0}}function _e(){var $e=Y.now(),ht=$e-X;ht>$&&(oe-=ht,X=$e)}function De(){for(var $e,ht=Z,vt,pt=1/0;ht;)ht._call?(pt>ht._time&&(pt=ht._time),$e=ht,ht=ht._next):(vt=ht._next,ht._next=null,ht=$e?$e._next=vt:Z=vt);ie=$e,Fe(pt)}function Fe($e){if(!re){ne&&(ne=clearTimeout(ne));var ht=$e-Q;ht>24?($e<1/0&&(ne=setTimeout(xe,$e-Y.now()-oe)),le&&(le=clearInterval(le))):(le||(X=Y.now(),le=setInterval(_e,$)),re=1,j(xe))}}function Te($e){return $e.x}function Re($e){return $e.y}var Se=10,Ie=Math.PI*(3-Math.sqrt(5));function Me($e){var ht,vt=1,pt=.001,wt=1-Math.pow(pt,1/300),Ct=0,rt=.6,ze=(0,b.kH)(),He=ge(Ge),We=J("tick","end");$e==null&&($e=[]);function Ge(){Le(),We.call("tick",ht),vt1?(he==null?ze.remove(Ce):ze.set(Ce,je(he)),ht):ze.get(Ce)},find:function(Ce,he,me){var Ne=0,Ze=$e.length,st,lt,Wt,Zt,Tt;for(me==null?me=1/0:me*=me,Ne=0;Ne1?(We.on(Ce,he),ht):We.on(Ce)}}}function Ve(){var $e,ht,vt,pt=P(-30),wt,Ct=1,rt=1/0,ze=.81;function He(Pe){var je,Ce=$e.length,he=w($e,Te,Re).visitAfter(Ge);for(vt=Pe,je=0;je=rt)return;(Pe.data!==ht||Pe.next)&&(me===0&&(me=s(),st+=me*me),Ne===0&&(Ne=s(),st+=Ne*Ne),st=1e21?x.toLocaleString("en").replace(/,/g,""):x.toString(10)}function P(x,w){if((C=(x=w?x.toExponential(w-1):x.toExponential()).indexOf("e"))<0)return null;var C,y=x.slice(0,C);return[y.length>1?y[0]+y.slice(2):y,+x.slice(C+1)]}function s(x){return x=P(Math.abs(x)),x?x[1]:NaN}function L(x,w){return function(C,y){for(var E=C.length,A=[],o=0,M=x[0],b=0;E>0&&M>0&&(b+M+1>y&&(M=Math.max(1,y-b)),A.push(C.substring(E-=M,E+M)),!((b+=M+1)>y));)M=x[o=(o+1)%x.length];return A.reverse().join(w)}}function S(x){return function(w){return w.replace(/[0-9]/g,function(C){return x[+C]})}}var v=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function p(x){if(!(w=v.exec(x)))throw new Error("invalid format: "+x);var w;return new r({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}p.prototype=r.prototype;function r(x){this.fill=x.fill===void 0?" ":x.fill+"",this.align=x.align===void 0?">":x.align+"",this.sign=x.sign===void 0?"-":x.sign+"",this.symbol=x.symbol===void 0?"":x.symbol+"",this.zero=!!x.zero,this.width=x.width===void 0?void 0:+x.width,this.comma=!!x.comma,this.precision=x.precision===void 0?void 0:+x.precision,this.trim=!!x.trim,this.type=x.type===void 0?"":x.type+""}r.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function t(x){e:for(var w=x.length,C=1,y=-1,E;C0&&(y=0);break}return y>0?x.slice(0,y)+x.slice(E+1):x}var a;function n(x,w){var C=P(x,w);if(!C)return x+"";var y=C[0],E=C[1],A=E-(a=Math.max(-8,Math.min(8,Math.floor(E/3)))*3)+1,o=y.length;return A===o?y:A>o?y+new Array(A-o+1).join("0"):A>0?y.slice(0,A)+"."+y.slice(A):"0."+new Array(1-A).join("0")+P(x,Math.max(0,w+A-1))[0]}function f(x,w){var C=P(x,w);if(!C)return x+"";var y=C[0],E=C[1];return E<0?"0."+new Array(-E).join("0")+y:y.length>E+1?y.slice(0,E+1)+"."+y.slice(E+1):y+new Array(E-y.length+2).join("0")}var u={"%":function(x,w){return(x*100).toFixed(w)},b:function(x){return Math.round(x).toString(2)},c:function(x){return x+""},d:m,e:function(x,w){return x.toExponential(w)},f:function(x,w){return x.toFixed(w)},g:function(x,w){return x.toPrecision(w)},o:function(x){return Math.round(x).toString(8)},p:function(x,w){return f(x*100,w)},r:f,s:n,X:function(x){return Math.round(x).toString(16).toUpperCase()},x:function(x){return Math.round(x).toString(16)}};function l(x){return x}var g=Array.prototype.map,h=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function T(x){var w=x.grouping===void 0||x.thousands===void 0?l:L(g.call(x.grouping,Number),x.thousands+""),C=x.currency===void 0?"":x.currency[0]+"",y=x.currency===void 0?"":x.currency[1]+"",E=x.decimal===void 0?".":x.decimal+"",A=x.numerals===void 0?l:S(g.call(x.numerals,String)),o=x.percent===void 0?"%":x.percent+"",M=x.minus===void 0?"-":x.minus+"",b=x.nan===void 0?"NaN":x.nan+"";function I(N){N=p(N);var k=N.fill,O=N.align,F=N.sign,z=N.symbol,B=N.zero,W=N.width,J=N.comma,re=N.precision,ne=N.trim,le=N.type;le==="n"?(J=!0,le="g"):u[le]||(re===void 0&&(re=12),ne=!0,le="g"),(B||k==="0"&&O==="=")&&(B=!0,k="0",O="=");var $=z==="$"?C:z==="#"&&/[boxX]/.test(le)?"0"+le.toLowerCase():"",Z=z==="$"?y:/[%p]/.test(le)?o:"",ie=u[le],X=/[defgprs%]/.test(le);re=re===void 0?6:/[gprs]/.test(le)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function Q(oe){var Y=$,j=Z,se,te,fe;if(le==="c")j=ie(oe)+j,oe="";else{oe=+oe;var ge=oe<0||1/oe<0;if(oe=isNaN(oe)?b:ie(Math.abs(oe),re),ne&&(oe=t(oe)),ge&&+oe==0&&F!=="+"&&(ge=!1),Y=(ge?F==="("?F:M:F==="-"||F==="("?"":F)+Y,j=(le==="s"?h[8+a/3]:"")+j+(ge&&F==="("?")":""),X){for(se=-1,te=oe.length;++sefe||fe>57){j=(fe===46?E+oe.slice(se+1):oe.slice(se))+j,oe=oe.slice(0,se);break}}}J&&!B&&(oe=w(oe,1/0));var be=Y.length+oe.length+j.length,xe=be>1)+Y+oe+j+xe.slice(be);break;default:oe=xe+Y+oe+j;break}return A(oe)}return Q.toString=function(){return N+""},Q}function D(N,k){var O=I((N=p(N),N.type="f",N)),F=Math.max(-8,Math.min(8,Math.floor(s(k)/3)))*3,z=Math.pow(10,-F),B=h[8+F/3];return function(W){return O(z*W)+B}}return{format:I,formatPrefix:D}}var c,i;d({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function d(x){return c=T(x),i=c.format,c.formatPrefix,c}},87108:function(G,H,e){e.r(H),e.d(H,{geoAiry:function(){return B},geoAiryRaw:function(){return z},geoAitoff:function(){return J},geoAitoffRaw:function(){return W},geoArmadillo:function(){return ne},geoArmadilloRaw:function(){return re},geoAugust:function(){return $},geoAugustRaw:function(){return le},geoBaker:function(){return Q},geoBakerRaw:function(){return X},geoBerghaus:function(){return j},geoBerghausRaw:function(){return Y},geoBertin1953:function(){return De},geoBertin1953Raw:function(){return _e},geoBoggs:function(){return et},geoBoggsRaw:function(){return Ve},geoBonne:function(){return vt},geoBonneRaw:function(){return ht},geoBottomley:function(){return wt},geoBottomleyRaw:function(){return pt},geoBromley:function(){return rt},geoBromleyRaw:function(){return Ct},geoChamberlin:function(){return he},geoChamberlinAfrica:function(){return Ce},geoChamberlinRaw:function(){return Pe},geoCollignon:function(){return Ne},geoCollignonRaw:function(){return me},geoCraig:function(){return st},geoCraigRaw:function(){return Ze},geoCraster:function(){return Zt},geoCrasterRaw:function(){return Wt},geoCylindricalEqualArea:function(){return Rt},geoCylindricalEqualAreaRaw:function(){return Tt},geoCylindricalStereographic:function(){return gr},geoCylindricalStereographicRaw:function(){return Xt},geoEckert1:function(){return Kt},geoEckert1Raw:function(){return gt},geoEckert2:function(){return yr},geoEckert2Raw:function(){return Qt},geoEckert3:function(){return ut},geoEckert3Raw:function(){return Ot},geoEckert4:function(){return xt},geoEckert4Raw:function(){return at},geoEckert5:function(){return Et},geoEckert5Raw:function(){return At},geoEckert6:function(){return Bt},geoEckert6Raw:function(){return Vt},geoEisenlohr:function(){return ur},geoEisenlohrRaw:function(){return Jt},geoFahey:function(){return Ye},geoFaheyRaw:function(){return dr},geoFoucaut:function(){return zt},geoFoucautRaw:function(){return Ue},geoFoucautSinusoidal:function(){return $t},geoFoucautSinusoidalRaw:function(){return Dt},geoGilbert:function(){return ir},geoGingery:function(){return Hr},geoGingeryRaw:function(){return hr},geoGinzburg4:function(){return an},geoGinzburg4Raw:function(){return Dr},geoGinzburg5:function(){return Sn},geoGinzburg5Raw:function(){return tn},geoGinzburg6:function(){return Tr},geoGinzburg6Raw:function(){return Tn},geoGinzburg8:function(){return Yr},geoGinzburg8Raw:function(){return zr},geoGinzburg9:function(){return ln},geoGinzburg9Raw:function(){return Or},geoGringorten:function(){return ia},geoGringortenQuincuncial:function(){return oh},geoGringortenRaw:function(){return Mn},geoGuyou:function(){return vn},geoGuyouRaw:function(){return mr},geoHammer:function(){return ge},geoHammerRaw:function(){return te},geoHammerRetroazimuthal:function(){return Fn},geoHammerRetroazimuthalRaw:function(){return bn},geoHealpix:function(){return un},geoHealpixRaw:function(){return Ar},geoHill:function(){return Zr},geoHillRaw:function(){return Er},geoHomolosine:function(){return Un},geoHomolosineRaw:function(){return En},geoHufnagel:function(){return va},geoHufnagelRaw:function(){return Nn},geoHyperelliptical:function(){return gi},geoHyperellipticalRaw:function(){return _a},geoInterrupt:function(){return to},geoInterruptedBoggs:function(){return af},geoInterruptedHomolosine:function(){return ti},geoInterruptedMollweide:function(){return of},geoInterruptedMollweideHemispheres:function(){return bo},geoInterruptedQuarticAuthalic:function(){return Us},geoInterruptedSinuMollweide:function(){return Iu},geoInterruptedSinusoidal:function(){return El},geoKavrayskiy7:function(){return Hi},geoKavrayskiy7Raw:function(){return Oi},geoLagrange:function(){return ro},geoLagrangeRaw:function(){return Cl},geoLarrivee:function(){return Hf},geoLarriveeRaw:function(){return zo},geoLaskowski:function(){return jc},geoLaskowskiRaw:function(){return Lo},geoLittrow:function(){return Ji},geoLittrowRaw:function(){return cs},geoLoximuthal:function(){return Bs},geoLoximuthalRaw:function(){return sf},geoMiller:function(){return lf},geoMillerRaw:function(){return hs},geoModifiedStereographic:function(){return al},geoModifiedStereographicAlaska:function(){return uf},geoModifiedStereographicGs48:function(){return Qc},geoModifiedStereographicGs50:function(){return $c},geoModifiedStereographicLee:function(){return Yf},geoModifiedStereographicMiller:function(){return Wf},geoModifiedStereographicRaw:function(){return Gf},geoMollweide:function(){return Se},geoMollweideRaw:function(){return Re},geoMtFlatPolarParabolic:function(){return jf},geoMtFlatPolarParabolicRaw:function(){return ru},geoMtFlatPolarQuartic:function(){return qc},geoMtFlatPolarQuarticRaw:function(){return Ms},geoMtFlatPolarSinusoidal:function(){return Xf},geoMtFlatPolarSinusoidalRaw:function(){return zu},geoNaturalEarth:function(){return Zf.c},geoNaturalEarth2:function(){return Zo},geoNaturalEarth2Raw:function(){return Ou},geoNaturalEarthRaw:function(){return Zf.g},geoNellHammer:function(){return il},geoNellHammerRaw:function(){return Pl},geoNicolosi:function(){return ff},geoNicolosiRaw:function(){return vs},geoPatterson:function(){return Il},geoPattersonRaw:function(){return Nu},geoPeirceQuincuncial:function(){return ec},geoPierceQuincuncial:function(){return ec},geoPolyconic:function(){return th},geoPolyconicRaw:function(){return Bu},geoPolyhedral:function(){return yi},geoPolyhedralButterfly:function(){return iu},geoPolyhedralCollignon:function(){return sl},geoPolyhedralWaterman:function(){return Hs},geoProject:function(){return ah},geoQuantize:function(){return tc},geoQuincuncial:function(){return Ls},geoRectangularPolyconic:function(){return rc},geoRectangularPolyconicRaw:function(){return yf},geoRobinson:function(){return Gs},geoRobinsonRaw:function(){return es},geoSatellite:function(){return ll},geoSatelliteRaw:function(){return Gu},geoSinuMollweide:function(){return zn},geoSinuMollweideRaw:function(){return wn},geoSinusoidal:function(){return $e},geoSinusoidalRaw:function(){return Qe},geoStitch:function(){return hu},geoTimes:function(){return Gi},geoTimesRaw:function(){return js},geoTwoPointAzimuthal:function(){return ju},geoTwoPointAzimuthalRaw:function(){return xf},geoTwoPointAzimuthalUsa:function(){return fl},geoTwoPointEquidistant:function(){return ic},geoTwoPointEquidistantRaw:function(){return vu},geoTwoPointEquidistantUsa:function(){return sh},geoVanDerGrinten:function(){return du},geoVanDerGrinten2:function(){return oc},geoVanDerGrinten2Raw:function(){return Hl},geoVanDerGrinten3:function(){return lh},geoVanDerGrinten3Raw:function(){return Xs},geoVanDerGrinten4:function(){return pu},geoVanDerGrinten4Raw:function(){return _o},geoVanDerGrintenRaw:function(){return po},geoWagner:function(){return Zs},geoWagner4:function(){return sc},geoWagner4Raw:function(){return Zu},geoWagner6:function(){return wf},geoWagner6Raw:function(){return mu},geoWagner7:function(){return bf},geoWagnerRaw:function(){return Rs},geoWiechel:function(){return Tf},geoWiechelRaw:function(){return cl},geoWinkel3:function(){return lc},geoWinkel3Raw:function(){return xu}});var m=e(87952),P=Math.abs,s=Math.atan,L=Math.atan2,S=Math.cos,v=Math.exp,p=Math.floor,r=Math.log,t=Math.max,a=Math.min,n=Math.pow,f=Math.round,u=Math.sign||function(Ke){return Ke>0?1:Ke<0?-1:0},l=Math.sin,g=Math.tan,h=1e-6,T=1e-12,c=Math.PI,i=c/2,d=c/4,x=Math.SQRT1_2,w=I(2),C=I(c),y=c*2,E=180/c,A=c/180;function o(Ke){return Ke?Ke/Math.sin(Ke):1}function M(Ke){return Ke>1?i:Ke<-1?-i:Math.asin(Ke)}function b(Ke){return Ke>1?0:Ke<-1?c:Math.acos(Ke)}function I(Ke){return Ke>0?Math.sqrt(Ke):0}function D(Ke){return Ke=v(2*Ke),(Ke-1)/(Ke+1)}function N(Ke){return(v(Ke)-v(-Ke))/2}function k(Ke){return(v(Ke)+v(-Ke))/2}function O(Ke){return r(Ke+I(Ke*Ke+1))}function F(Ke){return r(Ke+I(Ke*Ke-1))}function z(Ke){var it=g(Ke/2),yt=2*r(S(Ke/2))/(it*it);function bt(kt,It){var Ft=S(kt),pr=S(It),wr=l(It),ar=pr*Ft,Sr=-((1-ar?r((1+ar)/2)/(1-ar):-.5)+yt/(1+ar));return[Sr*pr*l(kt),Sr*wr]}return bt.invert=function(kt,It){var Ft=I(kt*kt+It*It),pr=-Ke/2,wr=50,ar;if(!Ft)return[0,0];do{var Sr=pr/2,Ir=S(Sr),Ur=l(Sr),on=Ur/Ir,xn=-r(P(Ir));pr-=ar=(2/on*xn-yt*on-Ft)/(-xn/(Ur*Ur)+1-yt/(2*Ir*Ir))*(Ir<0?.7:1)}while(P(ar)>h&&--wr>0);var _n=l(pr);return[L(kt*_n,Ft*S(pr)),M(It*_n/Ft)]},bt}function B(){var Ke=i,it=(0,m.U)(z),yt=it(Ke);return yt.radius=function(bt){return arguments.length?it(Ke=bt*A):Ke*E},yt.scale(179.976).clipAngle(147)}function W(Ke,it){var yt=S(it),bt=o(b(yt*S(Ke/=2)));return[2*yt*l(Ke)*bt,l(it)*bt]}W.invert=function(Ke,it){if(!(Ke*Ke+4*it*it>c*c+h)){var yt=Ke,bt=it,kt=25;do{var It=l(yt),Ft=l(yt/2),pr=S(yt/2),wr=l(bt),ar=S(bt),Sr=l(2*bt),Ir=wr*wr,Ur=ar*ar,on=Ft*Ft,xn=1-Ur*pr*pr,_n=xn?b(ar*pr)*I(Dn=1/xn):Dn=0,Dn,Kn=2*_n*ar*Ft-Ke,Ra=_n*wr-it,Da=Dn*(Ur*on+_n*ar*pr*Ir),ka=Dn*(.5*It*Sr-_n*2*wr*Ft),Na=Dn*.25*(Sr*Ft-_n*wr*Ur*It),Ka=Dn*(Ir*pr+_n*on*ar),di=ka*Na-Ka*Da;if(!di)break;var zi=(Ra*ka-Kn*Ka)/di,ue=(Kn*Na-Ra*Da)/di;yt-=zi,bt-=ue}while((P(zi)>h||P(ue)>h)&&--kt>0);return[yt,bt]}};function J(){return(0,m.c)(W).scale(152.63)}function re(Ke){var it=l(Ke),yt=S(Ke),bt=Ke>=0?1:-1,kt=g(bt*Ke),It=(1+it-yt)/2;function Ft(pr,wr){var ar=S(wr),Sr=S(pr/=2);return[(1+ar)*l(pr),(bt*wr>-L(Sr,kt)-.001?0:-bt*10)+It+l(wr)*yt-(1+ar)*it*Sr]}return Ft.invert=function(pr,wr){var ar=0,Sr=0,Ir=50;do{var Ur=S(ar),on=l(ar),xn=S(Sr),_n=l(Sr),Dn=1+xn,Kn=Dn*on-pr,Ra=It+_n*yt-Dn*it*Ur-wr,Da=Dn*Ur/2,ka=-on*_n,Na=it*Dn*on/2,Ka=yt*xn+it*Ur*_n,di=ka*Na-Ka*Da,zi=(Ra*ka-Kn*Ka)/di/2,ue=(Kn*Na-Ra*Da)/di;P(ue)>2&&(ue/=2),ar-=zi,Sr-=ue}while((P(zi)>h||P(ue)>h)&&--Ir>0);return bt*Sr>-L(S(ar),kt)-.001?[ar*2,Sr]:null},Ft}function ne(){var Ke=20*A,it=Ke>=0?1:-1,yt=g(it*Ke),bt=(0,m.U)(re),kt=bt(Ke),It=kt.stream;return kt.parallel=function(Ft){return arguments.length?(yt=g((it=(Ke=Ft*A)>=0?1:-1)*Ke),bt(Ke)):Ke*E},kt.stream=function(Ft){var pr=kt.rotate(),wr=It(Ft),ar=(kt.rotate([0,0]),It(Ft)),Sr=kt.precision();return kt.rotate(pr),wr.sphere=function(){ar.polygonStart(),ar.lineStart();for(var Ir=it*-180;it*Ir<180;Ir+=it*90)ar.point(Ir,it*90);if(Ke)for(;it*(Ir-=3*it*Sr)>=-180;)ar.point(Ir,it*-L(S(Ir*A/2),yt)*E);ar.lineEnd(),ar.polygonEnd()},wr},kt.scale(218.695).center([0,28.0974])}function le(Ke,it){var yt=g(it/2),bt=I(1-yt*yt),kt=1+bt*S(Ke/=2),It=l(Ke)*bt/kt,Ft=yt/kt,pr=It*It,wr=Ft*Ft;return[1.3333333333333333*It*(3+pr-3*wr),1.3333333333333333*Ft*(3+3*pr-wr)]}le.invert=function(Ke,it){if(Ke*=.375,it*=.375,!Ke&&P(it)>1)return null;var yt=Ke*Ke,bt=it*it,kt=1+yt+bt,It=I((kt-I(kt*kt-4*it*it))/2),Ft=M(It)/3,pr=It?F(P(it/It))/3:O(P(Ke))/3,wr=S(Ft),ar=k(pr),Sr=ar*ar-wr*wr;return[u(Ke)*2*L(N(pr)*wr,.25-Sr),u(it)*2*L(ar*l(Ft),.25+Sr)]};function $(){return(0,m.c)(le).scale(66.1603)}var Z=I(8),ie=r(1+w);function X(Ke,it){var yt=P(it);return ytT&&--bt>0);return[Ke/(S(yt)*(Z-1/l(yt))),u(it)*yt]};function Q(){return(0,m.c)(X).scale(112.314)}var oe=e(69020);function Y(Ke){var it=2*c/Ke;function yt(bt,kt){var It=(0,oe.O)(bt,kt);if(P(bt)>i){var Ft=L(It[1],It[0]),pr=I(It[0]*It[0]+It[1]*It[1]),wr=it*f((Ft-i)/it)+i,ar=L(l(Ft-=wr),2-S(Ft));Ft=wr+M(c/pr*l(ar))-ar,It[0]=pr*S(Ft),It[1]=pr*l(Ft)}return It}return yt.invert=function(bt,kt){var It=I(bt*bt+kt*kt);if(It>i){var Ft=L(kt,bt),pr=it*f((Ft-i)/it)+i,wr=Ft>pr?-1:1,ar=It*S(pr-Ft),Sr=1/g(wr*b((ar-c)/I(c*(c-2*ar)+It*It)));Ft=pr+2*s((Sr+wr*I(Sr*Sr-3))/3),bt=It*S(Ft),kt=It*l(Ft)}return oe.O.invert(bt,kt)},yt}function j(){var Ke=5,it=(0,m.U)(Y),yt=it(Ke),bt=yt.stream,kt=.01,It=-S(kt*A),Ft=l(kt*A);return yt.lobes=function(pr){return arguments.length?it(Ke=+pr):Ke},yt.stream=function(pr){var wr=yt.rotate(),ar=bt(pr),Sr=(yt.rotate([0,0]),bt(pr));return yt.rotate(wr),ar.sphere=function(){Sr.polygonStart(),Sr.lineStart();for(var Ir=0,Ur=360/Ke,on=2*c/Ke,xn=90-180/Ke,_n=i;Ir0&&P(kt)>h);return bt<0?NaN:yt}function xe(Ke,it,yt){return it===void 0&&(it=40),yt===void 0&&(yt=T),function(bt,kt,It,Ft){var pr,wr,ar;It=It===void 0?0:+It,Ft=Ft===void 0?0:+Ft;for(var Sr=0;Srpr){It-=wr/=2,Ft-=ar/=2;continue}pr=xn;var _n=(It>0?-1:1)*yt,Dn=(Ft>0?-1:1)*yt,Kn=Ke(It+_n,Ft),Ra=Ke(It,Ft+Dn),Da=(Kn[0]-Ir[0])/_n,ka=(Kn[1]-Ir[1])/_n,Na=(Ra[0]-Ir[0])/Dn,Ka=(Ra[1]-Ir[1])/Dn,di=Ka*Da-ka*Na,zi=(P(di)<.5?.5:1)/di;if(wr=(on*Na-Ur*Ka)*zi,ar=(Ur*ka-on*Da)*zi,It+=wr,Ft+=ar,P(wr)0&&(pr[1]*=1+wr/1.5*pr[0]*pr[0]),pr}return bt.invert=xe(bt),bt}function De(){return(0,m.c)(_e()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Fe(Ke,it){var yt=Ke*l(it),bt=30,kt;do it-=kt=(it+l(it)-yt)/(1+S(it));while(P(kt)>h&&--bt>0);return it/2}function Te(Ke,it,yt){function bt(kt,It){return[Ke*kt*S(It=Fe(yt,It)),it*l(It)]}return bt.invert=function(kt,It){return It=M(It/it),[kt/(Ke*S(It)),M((2*It+l(2*It))/yt)]},bt}var Re=Te(w/i,w,c);function Se(){return(0,m.c)(Re).scale(169.529)}var Ie=2.00276,Me=1.11072;function Ve(Ke,it){var yt=Fe(c,it);return[Ie*Ke/(1/S(it)+Me/S(yt)),(it+w*l(yt))/Ie]}Ve.invert=function(Ke,it){var yt=Ie*it,bt=it<0?-d:d,kt=25,It,Ft;do Ft=yt-w*l(bt),bt-=It=(l(2*bt)+2*bt-c*l(Ft))/(2*S(2*bt)+2+c*S(Ft)*w*S(bt));while(P(It)>h&&--kt>0);return Ft=yt-w*l(bt),[Ke*(1/S(Ft)+Me/S(bt))/Ie,Ft]};function et(){return(0,m.c)(Ve).scale(160.857)}function ot(Ke){var it=0,yt=(0,m.U)(Ke),bt=yt(it);return bt.parallel=function(kt){return arguments.length?yt(it=kt*A):it*E},bt}function Qe(Ke,it){return[Ke*S(it),it]}Qe.invert=function(Ke,it){return[Ke/S(it),it]};function $e(){return(0,m.c)(Qe).scale(152.63)}function ht(Ke){if(!Ke)return Qe;var it=1/g(Ke);function yt(bt,kt){var It=it+Ke-kt,Ft=It&&bt*S(kt)/It;return[It*l(Ft),it-It*S(Ft)]}return yt.invert=function(bt,kt){var It=I(bt*bt+(kt=it-kt)*kt),Ft=it+Ke-It;return[It/S(Ft)*L(bt,kt),Ft]},yt}function vt(){return ot(ht).scale(123.082).center([0,26.1441]).parallel(45)}function pt(Ke){function it(yt,bt){var kt=i-bt,It=kt&&yt*Ke*l(kt)/kt;return[kt*l(It)/Ke,i-kt*S(It)]}return it.invert=function(yt,bt){var kt=yt*Ke,It=i-bt,Ft=I(kt*kt+It*It),pr=L(kt,It);return[(Ft?Ft/l(Ft):1)*pr/Ke,i-Ft]},it}function wt(){var Ke=.5,it=(0,m.U)(pt),yt=it(Ke);return yt.fraction=function(bt){return arguments.length?it(Ke=+bt):Ke},yt.scale(158.837)}var Ct=Te(1,4/c,c);function rt(){return(0,m.c)(Ct).scale(152.63)}var ze=e(24052),He=e(92992);function We(Ke,it,yt,bt,kt,It){var Ft=S(It),pr;if(P(Ke)>1||P(It)>1)pr=b(yt*kt+it*bt*Ft);else{var wr=l(Ke/2),ar=l(It/2);pr=2*M(I(wr*wr+it*bt*ar*ar))}return P(pr)>h?[pr,L(bt*l(It),it*kt-yt*bt*Ft)]:[0,0]}function Ge(Ke,it,yt){return b((Ke*Ke+it*it-yt*yt)/(2*Ke*it))}function Le(Ke){return Ke-2*c*p((Ke+c)/(2*c))}function Pe(Ke,it,yt){for(var bt=[[Ke[0],Ke[1],l(Ke[1]),S(Ke[1])],[it[0],it[1],l(it[1]),S(it[1])],[yt[0],yt[1],l(yt[1]),S(yt[1])]],kt=bt[2],It,Ft=0;Ft<3;++Ft,kt=It)It=bt[Ft],kt.v=We(It[1]-kt[1],kt[3],kt[2],It[3],It[2],It[0]-kt[0]),kt.point=[0,0];var pr=Ge(bt[0].v[0],bt[2].v[0],bt[1].v[0]),wr=Ge(bt[0].v[0],bt[1].v[0],bt[2].v[0]),ar=c-pr;bt[2].point[1]=0,bt[0].point[0]=-(bt[1].point[0]=bt[0].v[0]/2);var Sr=[bt[2].point[0]=bt[0].point[0]+bt[2].v[0]*S(pr),2*(bt[0].point[1]=bt[1].point[1]=bt[2].v[0]*l(pr))];function Ir(Ur,on){var xn=l(on),_n=S(on),Dn=new Array(3),Kn;for(Kn=0;Kn<3;++Kn){var Ra=bt[Kn];if(Dn[Kn]=We(on-Ra[1],Ra[3],Ra[2],_n,xn,Ur-Ra[0]),!Dn[Kn][0])return Ra.point;Dn[Kn][1]=Le(Dn[Kn][1]-Ra.v[1])}var Da=Sr.slice();for(Kn=0;Kn<3;++Kn){var ka=Kn==2?0:Kn+1,Na=Ge(bt[Kn].v[0],Dn[Kn][0],Dn[ka][0]);Dn[Kn][1]<0&&(Na=-Na),Kn?Kn==1?(Na=wr-Na,Da[0]-=Dn[Kn][0]*S(Na),Da[1]-=Dn[Kn][0]*l(Na)):(Na=ar-Na,Da[0]+=Dn[Kn][0]*S(Na),Da[1]+=Dn[Kn][0]*l(Na)):(Da[0]+=Dn[Kn][0]*S(Na),Da[1]-=Dn[Kn][0]*l(Na))}return Da[0]/=3,Da[1]/=3,Da}return Ir}function je(Ke){return Ke[0]*=A,Ke[1]*=A,Ke}function Ce(){return he([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function he(Ke,it,yt){var bt=(0,ze.c)({type:"MultiPoint",coordinates:[Ke,it,yt]}),kt=[-bt[0],-bt[1]],It=(0,He.c)(kt),Ft=Pe(je(It(Ke)),je(It(it)),je(It(yt)));Ft.invert=xe(Ft);var pr=(0,m.c)(Ft).rotate(kt),wr=pr.center;return delete pr.rotate,pr.center=function(ar){return arguments.length?wr(It(ar)):It.invert(wr())},pr.clipAngle(90)}function me(Ke,it){var yt=I(1-l(it));return[2/C*Ke*yt,C*(1-yt)]}me.invert=function(Ke,it){var yt=(yt=it/C-1)*yt;return[yt>0?Ke*I(c/yt)/2:0,M(1-yt)]};function Ne(){return(0,m.c)(me).scale(95.6464).center([0,30])}function Ze(Ke){var it=g(Ke);function yt(bt,kt){return[bt,(bt?bt/l(bt):1)*(l(kt)*S(bt)-it*S(kt))]}return yt.invert=it?function(bt,kt){bt&&(kt*=l(bt)/bt);var It=S(bt);return[bt,2*L(I(It*It+it*it-kt*kt)-It,it-kt)]}:function(bt,kt){return[bt,M(bt?kt*g(bt)/bt:kt)]},yt}function st(){return ot(Ze).scale(249.828).clipAngle(90)}var lt=I(3);function Wt(Ke,it){return[lt*Ke*(2*S(2*it/3)-1)/C,lt*C*l(it/3)]}Wt.invert=function(Ke,it){var yt=3*M(it/(lt*C));return[C*Ke/(lt*(2*S(2*yt/3)-1)),yt]};function Zt(){return(0,m.c)(Wt).scale(156.19)}function Tt(Ke){var it=S(Ke);function yt(bt,kt){return[bt*it,l(kt)/it]}return yt.invert=function(bt,kt){return[bt/it,M(kt*it)]},yt}function Rt(){return ot(Tt).parallel(38.58).scale(195.044)}function Xt(Ke){var it=S(Ke);function yt(bt,kt){return[bt*it,(1+it)*g(kt/2)]}return yt.invert=function(bt,kt){return[bt/it,s(kt/(1+it))*2]},yt}function gr(){return ot(Xt).scale(124.75)}function gt(Ke,it){var yt=I(8/(3*c));return[yt*Ke*(1-P(it)/c),yt*it]}gt.invert=function(Ke,it){var yt=I(8/(3*c)),bt=it/yt;return[Ke/(yt*(1-P(bt)/c)),bt]};function Kt(){return(0,m.c)(gt).scale(165.664)}function Qt(Ke,it){var yt=I(4-3*l(P(it)));return[2/I(6*c)*Ke*yt,u(it)*I(2*c/3)*(2-yt)]}Qt.invert=function(Ke,it){var yt=2-P(it)/I(2*c/3);return[Ke*I(6*c)/(2*yt),u(it)*M((4-yt*yt)/3)]};function yr(){return(0,m.c)(Qt).scale(165.664)}function Ot(Ke,it){var yt=I(c*(4+c));return[2/yt*Ke*(1+I(1-4*it*it/(c*c))),4/yt*it]}Ot.invert=function(Ke,it){var yt=I(c*(4+c))/2;return[Ke*yt/(1+I(1-it*it*(4+c)/(4*c))),it*yt/2]};function ut(){return(0,m.c)(Ot).scale(180.739)}function at(Ke,it){var yt=(2+i)*l(it);it/=2;for(var bt=0,kt=1/0;bt<10&&P(kt)>h;bt++){var It=S(it);it-=kt=(it+l(it)*(It+2)-yt)/(2*It*(1+It))}return[2/I(c*(4+c))*Ke*(1+S(it)),2*I(c/(4+c))*l(it)]}at.invert=function(Ke,it){var yt=it*I((4+c)/c)/2,bt=M(yt),kt=S(bt);return[Ke/(2/I(c*(4+c))*(1+kt)),M((bt+yt*(kt+2))/(2+i))]};function xt(){return(0,m.c)(at).scale(180.739)}function At(Ke,it){return[Ke*(1+S(it))/I(2+c),2*it/I(2+c)]}At.invert=function(Ke,it){var yt=I(2+c),bt=it*yt/2;return[yt*Ke/(1+S(bt)),bt]};function Et(){return(0,m.c)(At).scale(173.044)}function Vt(Ke,it){for(var yt=(1+i)*l(it),bt=0,kt=1/0;bt<10&&P(kt)>h;bt++)it-=kt=(it+l(it)-yt)/(1+S(it));return yt=I(2+c),[Ke*(1+S(it))/yt,2*it/yt]}Vt.invert=function(Ke,it){var yt=1+i,bt=I(yt/2);return[Ke*2*bt/(1+S(it*=bt)),M((it+l(it))/yt)]};function Bt(){return(0,m.c)(Vt).scale(173.044)}var Ut=3+2*w;function Jt(Ke,it){var yt=l(Ke/=2),bt=S(Ke),kt=I(S(it)),It=S(it/=2),Ft=l(it)/(It+w*bt*kt),pr=I(2/(1+Ft*Ft)),wr=I((w*It+(bt+yt)*kt)/(w*It+(bt-yt)*kt));return[Ut*(pr*(wr-1/wr)-2*r(wr)),Ut*(pr*Ft*(wr+1/wr)-2*s(Ft))]}Jt.invert=function(Ke,it){if(!(It=le.invert(Ke/1.2,it*1.065)))return null;var yt=It[0],bt=It[1],kt=20,It;Ke/=Ut,it/=Ut;do{var Ft=yt/2,pr=bt/2,wr=l(Ft),ar=S(Ft),Sr=l(pr),Ir=S(pr),Ur=S(bt),on=I(Ur),xn=Sr/(Ir+w*ar*on),_n=xn*xn,Dn=I(2/(1+_n)),Kn=w*Ir+(ar+wr)*on,Ra=w*Ir+(ar-wr)*on,Da=Kn/Ra,ka=I(Da),Na=ka-1/ka,Ka=ka+1/ka,di=Dn*Na-2*r(ka)-Ke,zi=Dn*xn*Ka-2*s(xn)-it,ue=Sr&&x*on*wr*_n/Sr,Ae=(w*ar*Ir+on)/(2*(Ir+w*ar*on)*(Ir+w*ar*on)*on),Be=-.5*xn*Dn*Dn*Dn,qe=Be*ue,nt=Be*Ae,ct=(ct=2*Ir+w*on*(ar-wr))*ct*ka,Pt=(w*ar*Ir*on+Ur)/ct,St=-(w*wr*Sr)/(on*ct),Gt=Na*qe-2*Pt/ka+Dn*(Pt+Pt/Da),Yt=Na*nt-2*St/ka+Dn*(St+St/Da),rr=xn*Ka*qe-2*ue/(1+_n)+Dn*Ka*ue+Dn*xn*(Pt-Pt/Da),Cr=xn*Ka*nt-2*Ae/(1+_n)+Dn*Ka*Ae+Dn*xn*(St-St/Da),Lr=Yt*rr-Cr*Gt;if(!Lr)break;var $r=(zi*Yt-di*Cr)/Lr,sn=(di*rr-zi*Gt)/Lr;yt-=$r,bt=t(-i,a(i,bt-sn))}while((P($r)>h||P(sn)>h)&&--kt>0);return P(P(bt)-i)bt){var Ir=I(Sr),Ur=L(ar,wr),on=yt*f(Ur/yt),xn=Ur-on,_n=Ke*S(xn),Dn=(Ke*l(xn)-xn*l(_n))/(i-_n),Kn=xr(xn,Dn),Ra=(c-Ke)/vr(Kn,_n,c);wr=Ir;var Da=50,ka;do wr-=ka=(Ke+vr(Kn,_n,wr)*Ra-Ir)/(Kn(wr)*Ra);while(P(ka)>h&&--Da>0);ar=xn*l(wr),wrbt){var wr=I(pr),ar=L(Ft,It),Sr=yt*f(ar/yt),Ir=ar-Sr;It=wr*S(Ir),Ft=wr*l(Ir);for(var Ur=It-i,on=l(It),xn=Ft/on,_n=Ith||P(xn)>h)&&--_n>0);return[Ir,Ur]},wr}var Dr=_r(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function an(){return(0,m.c)(Dr).scale(149.995)}var tn=_r(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Sn(){return(0,m.c)(tn).scale(153.93)}var Tn=_r(5/6*c,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Tr(){return(0,m.c)(Tn).scale(130.945)}function zr(Ke,it){var yt=Ke*Ke,bt=it*it;return[Ke*(1-.162388*bt)*(.87-952426e-9*yt*yt),it*(1+bt/12)]}zr.invert=function(Ke,it){var yt=Ke,bt=it,kt=50,It;do{var Ft=bt*bt;bt-=It=(bt*(1+Ft/12)-it)/(1+Ft/4)}while(P(It)>h&&--kt>0);kt=50,Ke/=1-.162388*Ft;do{var pr=(pr=yt*yt)*pr;yt-=It=(yt*(.87-952426e-9*pr)-Ke)/(.87-.00476213*pr)}while(P(It)>h&&--kt>0);return[yt,bt]};function Yr(){return(0,m.c)(zr).scale(131.747)}var Or=_r(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function ln(){return(0,m.c)(Or).scale(131.087)}function fn(Ke){var it=Ke(i,0)[0]-Ke(-i,0)[0];function yt(bt,kt){var It=bt>0?-.5:.5,Ft=Ke(bt+It*c,kt);return Ft[0]-=It*it,Ft}return Ke.invert&&(yt.invert=function(bt,kt){var It=bt>0?-.5:.5,Ft=Ke.invert(bt+It*it,kt),pr=Ft[0]-It*c;return pr<-c?pr+=2*c:pr>c&&(pr-=2*c),Ft[0]=pr,Ft}),yt}function Mn(Ke,it){var yt=u(Ke),bt=u(it),kt=S(it),It=S(Ke)*kt,Ft=l(Ke)*kt,pr=l(bt*it);Ke=P(L(Ft,pr)),it=M(It),P(Ke-i)>h&&(Ke%=i);var wr=Pn(Ke>c/4?i-Ke:Ke,it);return Ke>c/4&&(pr=wr[0],wr[0]=-wr[1],wr[1]=-pr),wr[0]*=yt,wr[1]*=-bt,wr}Mn.invert=function(Ke,it){P(Ke)>1&&(Ke=u(Ke)*2-Ke),P(it)>1&&(it=u(it)*2-it);var yt=u(Ke),bt=u(it),kt=-yt*Ke,It=-bt*it,Ft=It/kt<1,pr=Vn(Ft?It:kt,Ft?kt:It),wr=pr[0],ar=pr[1],Sr=S(ar);return Ft&&(wr=-i-wr),[yt*(L(l(wr)*Sr,-l(ar))+c),bt*M(S(wr)*Sr)]};function Pn(Ke,it){if(it===i)return[0,0];var yt=l(it),bt=yt*yt,kt=bt*bt,It=1+kt,Ft=1+3*kt,pr=1-kt,wr=M(1/I(It)),ar=pr+bt*It*wr,Sr=(1-yt)/ar,Ir=I(Sr),Ur=Sr*It,on=I(Ur),xn=Ir*pr,_n,Dn;if(Ke===0)return[0,-(xn+bt*on)];var Kn=S(it),Ra=1/Kn,Da=2*yt*Kn,ka=(-3*bt+wr*Ft)*Da,Na=(-ar*Kn-(1-yt)*ka)/(ar*ar),Ka=.5*Na/Ir,di=pr*Ka-2*bt*Ir*Da,zi=bt*It*Na+Sr*Ft*Da,ue=-Ra*Da,Ae=-Ra*zi,Be=-2*Ra*di,qe=4*Ke/c,nt;if(Ke>.222*c||it.175*c){if(_n=(xn+bt*I(Ur*(1+kt)-xn*xn))/(1+kt),Ke>c/4)return[_n,_n];var ct=_n,Pt=.5*_n;_n=.5*(Pt+ct),Dn=50;do{var St=I(Ur-_n*_n),Gt=_n*(Be+ue*St)+Ae*M(_n/on)-qe;if(!Gt)break;Gt<0?Pt=_n:ct=_n,_n=.5*(Pt+ct)}while(P(ct-Pt)>h&&--Dn>0)}else{_n=h,Dn=25;do{var Yt=_n*_n,rr=I(Ur-Yt),Cr=Be+ue*rr,Lr=_n*Cr+Ae*M(_n/on)-qe,$r=Cr+(Ae-ue*Yt)/rr;_n-=nt=rr?Lr/$r:0}while(P(nt)>h&&--Dn>0)}return[_n,-xn-bt*I(Ur-_n*_n)]}function Vn(Ke,it){for(var yt=0,bt=1,kt=.5,It=50;;){var Ft=kt*kt,pr=I(kt),wr=M(1/I(1+Ft)),ar=1-Ft+kt*(1+Ft)*wr,Sr=(1-pr)/ar,Ir=I(Sr),Ur=Sr*(1+Ft),on=Ir*(1-Ft),xn=Ur-Ke*Ke,_n=I(xn),Dn=it+on+kt*_n;if(P(bt-yt)0?yt=kt:bt=kt,kt=.5*(yt+bt)}if(!It)return null;var Kn=M(pr),Ra=S(Kn),Da=1/Ra,ka=2*pr*Ra,Na=(-3*kt+wr*(1+3*Ft))*ka,Ka=(-ar*Ra-(1-pr)*Na)/(ar*ar),di=.5*Ka/Ir,zi=(1-Ft)*di-2*kt*Ir*ka,ue=-2*Da*zi,Ae=-Da*ka,Be=-Da*(kt*(1+Ft)*Ka+Sr*(1+3*Ft)*ka);return[c/4*(Ke*(ue+Ae*_n)+Be*M(Ke/I(Ur))),Kn]}function ia(){return(0,m.c)(fn(Mn)).scale(239.75)}function ya(Ke,it,yt){var bt,kt,It;return Ke?(bt=wa(Ke,yt),it?(kt=wa(it,1-yt),It=kt[1]*kt[1]+yt*bt[0]*bt[0]*kt[0]*kt[0],[[bt[0]*kt[2]/It,bt[1]*bt[2]*kt[0]*kt[1]/It],[bt[1]*kt[1]/It,-bt[0]*bt[2]*kt[0]*kt[2]/It],[bt[2]*kt[1]*kt[2]/It,-yt*bt[0]*bt[1]*kt[0]/It]]):[[bt[0],0],[bt[1],0],[bt[2],0]]):(kt=wa(it,1-yt),[[0,kt[0]/kt[1]],[1/kt[1],0],[kt[2]/kt[1],0]])}function wa(Ke,it){var yt,bt,kt,It,Ft;if(it=1-h)return yt=(1-it)/4,bt=k(Ke),It=D(Ke),kt=1/bt,Ft=bt*N(Ke),[It+yt*(Ft-Ke)/(bt*bt),kt-yt*It*kt*(Ft-Ke),kt+yt*It*kt*(Ft+Ke),2*s(v(Ke))-i+yt*(Ft-Ke)/bt];var pr=[1,0,0,0,0,0,0,0,0],wr=[I(it),0,0,0,0,0,0,0,0],ar=0;for(bt=I(1-it),Ft=1;P(wr[ar]/pr[ar])>h&&ar<8;)yt=pr[ar++],wr[ar]=(yt-bt)/2,pr[ar]=(yt+bt)/2,bt=I(yt*bt),Ft*=2;kt=Ft*pr[ar]*Ke;do It=wr[ar]*l(bt=kt)/pr[ar],kt=(M(It)+kt)/2;while(--ar);return[l(kt),It=S(kt),It/S(kt-bt),kt]}function Wn(Ke,it,yt){var bt=P(Ke),kt=P(it),It=N(kt);if(bt){var Ft=1/l(bt),pr=1/(g(bt)*g(bt)),wr=-(pr+yt*(It*It*Ft*Ft)-1+yt),ar=(yt-1)*pr,Sr=(-wr+I(wr*wr-4*ar))/2;return[Qn(s(1/I(Sr)),yt)*u(Ke),Qn(s(I((Sr/pr-1)/yt)),1-yt)*u(it)]}return[0,Qn(s(It),1-yt)*u(it)]}function Qn(Ke,it){if(!it)return Ke;if(it===1)return r(g(Ke/2+d));for(var yt=1,bt=I(1-it),kt=I(it),It=0;P(kt)>h;It++){if(Ke%c){var Ft=s(bt*g(Ke)/yt);Ft<0&&(Ft+=c),Ke+=Ft+~~(Ke/c)*c}else Ke+=Ke;kt=(yt+bt)/2,bt=I(yt*bt),kt=((yt=kt)-bt)/2}return Ke/(n(2,It)*yt)}function mr(Ke,it){var yt=(w-1)/(w+1),bt=I(1-yt*yt),kt=Qn(i,bt*bt),It=-1,Ft=r(g(c/4+P(it)/2)),pr=v(It*Ft)/I(yt),wr=en(pr*S(It*Ke),pr*l(It*Ke)),ar=Wn(wr[0],wr[1],bt*bt);return[-ar[1],(it>=0?1:-1)*(.5*kt-ar[0])]}function en(Ke,it){var yt=Ke*Ke,bt=it+1,kt=1-yt-it*it;return[.5*((Ke>=0?i:-i)-L(kt,2*Ke)),-.25*r(kt*kt+4*yt)+.5*r(bt*bt+yt)]}function Jr(Ke,it){var yt=it[0]*it[0]+it[1]*it[1];return[(Ke[0]*it[0]+Ke[1]*it[1])/yt,(Ke[1]*it[0]-Ke[0]*it[1])/yt]}mr.invert=function(Ke,it){var yt=(w-1)/(w+1),bt=I(1-yt*yt),kt=Qn(i,bt*bt),It=-1,Ft=ya(.5*kt-it,-Ke,bt*bt),pr=Jr(Ft[0],Ft[1]),wr=L(pr[1],pr[0])/It;return[wr,2*s(v(.5/It*r(yt*pr[0]*pr[0]+yt*pr[1]*pr[1])))-i]};function vn(){return(0,m.c)(fn(mr)).scale(151.496)}var On=e(61780);function bn(Ke){var it=l(Ke),yt=S(Ke),bt=An(Ke);bt.invert=An(-Ke);function kt(It,Ft){var pr=bt(It,Ft);It=pr[0],Ft=pr[1];var wr=l(Ft),ar=S(Ft),Sr=S(It),Ir=b(it*wr+yt*ar*Sr),Ur=l(Ir),on=P(Ur)>h?Ir/Ur:1;return[on*yt*l(It),(P(It)>i?on:-on)*(it*ar-yt*wr*Sr)]}return kt.invert=function(It,Ft){var pr=I(It*It+Ft*Ft),wr=-l(pr),ar=S(pr),Sr=pr*ar,Ir=-Ft*wr,Ur=pr*it,on=I(Sr*Sr+Ir*Ir-Ur*Ur),xn=L(Sr*Ur+Ir*on,Ir*Ur-Sr*on),_n=(pr>i?-1:1)*L(It*wr,pr*S(xn)*ar+Ft*l(xn)*wr);return bt.invert(_n,xn)},kt}function An(Ke){var it=l(Ke),yt=S(Ke);return function(bt,kt){var It=S(kt),Ft=S(bt)*It,pr=l(bt)*It,wr=l(kt);return[L(pr,Ft*yt-wr*it),M(wr*yt+Ft*it)]}}function Fn(){var Ke=0,it=(0,m.U)(bn),yt=it(Ke),bt=yt.rotate,kt=yt.stream,It=(0,On.c)();return yt.parallel=function(Ft){if(!arguments.length)return Ke*E;var pr=yt.rotate();return it(Ke=Ft*A).rotate(pr)},yt.rotate=function(Ft){return arguments.length?(bt.call(yt,[Ft[0],Ft[1]-Ke*E]),It.center([-Ft[0],-Ft[1]]),yt):(Ft=bt.call(yt),Ft[1]+=Ke*E,Ft)},yt.stream=function(Ft){return Ft=kt(Ft),Ft.sphere=function(){Ft.polygonStart();var pr=.01,wr=It.radius(90-pr)().coordinates[0],ar=wr.length-1,Sr=-1,Ir;for(Ft.lineStart();++Sr=0;)Ft.point((Ir=wr[Sr])[0],Ir[1]);Ft.lineEnd(),Ft.polygonEnd()},Ft},yt.scale(79.4187).parallel(45).clipAngle(179.999)}var $n=e(84706),ha=e(16016),Ia=3,Mr=M(1-1/Ia)*E,Fr=Tt(0);function Ar(Ke){var it=Mr*A,yt=me(c,it)[0]-me(-c,it)[0],bt=Fr(0,it)[1],kt=me(0,it)[1],It=C-kt,Ft=y/Ke,pr=4/y,wr=bt+It*It*4/y;function ar(Sr,Ir){var Ur,on=P(Ir);if(on>it){var xn=a(Ke-1,t(0,p((Sr+c)/Ft)));Sr+=c*(Ke-1)/Ke-xn*Ft,Ur=me(Sr,on),Ur[0]=Ur[0]*y/yt-y*(Ke-1)/(2*Ke)+xn*y/Ke,Ur[1]=bt+(Ur[1]-kt)*4*It/y,Ir<0&&(Ur[1]=-Ur[1])}else Ur=Fr(Sr,Ir);return Ur[0]*=pr,Ur[1]/=wr,Ur}return ar.invert=function(Sr,Ir){Sr/=pr,Ir*=wr;var Ur=P(Ir);if(Ur>bt){var on=a(Ke-1,t(0,p((Sr+c)/Ft)));Sr=(Sr+c*(Ke-1)/Ke-on*Ft)*yt/y;var xn=me.invert(Sr,.25*(Ur-bt)*y/It+kt);return xn[0]-=c*(Ke-1)/Ke-on*Ft,Ir<0&&(xn[1]=-xn[1]),xn}return Fr.invert(Sr,Ir)},ar}function Nr(Ke,it){return[Ke,it&1?90-h:Mr]}function mn(Ke,it){return[Ke,it&1?-90+h:-Mr]}function Rn(Ke){return[Ke[0]*(1-h),Ke[1]]}function gn(Ke){var it=[].concat((0,$n.ik)(-180,180+Ke/2,Ke).map(Nr),(0,$n.ik)(180,-180-Ke/2,-Ke).map(mn));return{type:"Polygon",coordinates:[Ke===180?it.map(Rn):it]}}function un(){var Ke=4,it=(0,m.U)(Ar),yt=it(Ke),bt=yt.stream;return yt.lobes=function(kt){return arguments.length?it(Ke=+kt):Ke},yt.stream=function(kt){var It=yt.rotate(),Ft=bt(kt),pr=(yt.rotate([0,0]),bt(kt));return yt.rotate(It),Ft.sphere=function(){(0,ha.c)(gn(180/Ke),pr)},Ft},yt.scale(239.75)}function Er(Ke){var it=1+Ke,yt=l(1/it),bt=M(yt),kt=2*I(c/(It=c+4*bt*it)),It,Ft=.5*kt*(it+I(Ke*(2+Ke))),pr=Ke*Ke,wr=it*it;function ar(Sr,Ir){var Ur=1-l(Ir),on,xn;if(Ur&&Ur<2){var _n=i-Ir,Dn=25,Kn;do{var Ra=l(_n),Da=S(_n),ka=bt+L(Ra,it-Da),Na=1+wr-2*it*Da;_n-=Kn=(_n-pr*bt-it*Ra+Na*ka-.5*Ur*It)/(2*it*Ra*ka)}while(P(Kn)>T&&--Dn>0);on=kt*I(Na),xn=Sr*ka/c}else on=kt*(Ke+Ur),xn=Sr*bt/c;return[on*l(xn),Ft-on*S(xn)]}return ar.invert=function(Sr,Ir){var Ur=Sr*Sr+(Ir-=Ft)*Ir,on=(1+wr-Ur/(kt*kt))/(2*it),xn=b(on),_n=l(xn),Dn=bt+L(_n,it-on);return[M(Sr/I(Ur))*c/Dn,M(1-2*(xn-pr*bt-it*_n+(1+wr-2*it*on)*Dn)/It)]},ar}function Zr(){var Ke=1,it=(0,m.U)(Er),yt=it(Ke);return yt.ratio=function(bt){return arguments.length?it(Ke=+bt):Ke},yt.scale(167.774).center([0,18.67])}var Gr=.7109889596207567,qr=.0528035274542;function wn(Ke,it){return it>-Gr?(Ke=Re(Ke,it),Ke[1]+=qr,Ke):Qe(Ke,it)}wn.invert=function(Ke,it){return it>-Gr?Re.invert(Ke,it-qr):Qe.invert(Ke,it)};function zn(){return(0,m.c)(wn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function En(Ke,it){return P(it)>Gr?(Ke=Re(Ke,it),Ke[1]-=it>0?qr:-qr,Ke):Qe(Ke,it)}En.invert=function(Ke,it){return P(it)>Gr?Re.invert(Ke,it+(it>0?qr:-qr)):Qe.invert(Ke,it)};function Un(){return(0,m.c)(En).scale(152.63)}function Nn(Ke,it,yt,bt){var kt=I(4*c/(2*yt+(1+Ke-it/2)*l(2*yt)+(Ke+it)/2*l(4*yt)+it/2*l(6*yt))),It=I(bt*l(yt)*I((1+Ke*S(2*yt)+it*S(4*yt))/(1+Ke+it))),Ft=yt*wr(1);function pr(Ir){return I(1+Ke*S(2*Ir)+it*S(4*Ir))}function wr(Ir){var Ur=Ir*yt;return(2*Ur+(1+Ke-it/2)*l(2*Ur)+(Ke+it)/2*l(4*Ur)+it/2*l(6*Ur))/yt}function ar(Ir){return pr(Ir)*l(Ir)}var Sr=function(Ir,Ur){var on=yt*be(wr,Ft*l(Ur)/yt,Ur/c);isNaN(on)&&(on=yt*u(Ur));var xn=kt*pr(on);return[xn*It*Ir/c*S(on),xn/It*l(on)]};return Sr.invert=function(Ir,Ur){var on=be(ar,Ur*It/kt);return[Ir*c/(S(on)*kt*It*pr(on)),M(yt*wr(on/yt)/Ft)]},yt===0&&(kt=I(bt/c),Sr=function(Ir,Ur){return[Ir*kt,l(Ur)/kt]},Sr.invert=function(Ir,Ur){return[Ir/kt,M(Ur*kt)]}),Sr}function va(){var Ke=1,it=0,yt=45*A,bt=2,kt=(0,m.U)(Nn),It=kt(Ke,it,yt,bt);return It.a=function(Ft){return arguments.length?kt(Ke=+Ft,it,yt,bt):Ke},It.b=function(Ft){return arguments.length?kt(Ke,it=+Ft,yt,bt):it},It.psiMax=function(Ft){return arguments.length?kt(Ke,it,yt=+Ft*A,bt):yt*E},It.ratio=function(Ft){return arguments.length?kt(Ke,it,yt,bt=+Ft):bt},It.scale(180.739)}function sa(Ke,it,yt,bt,kt,It,Ft,pr,wr,ar,Sr){if(Sr.nanEncountered)return NaN;var Ir,Ur,on,xn,_n,Dn,Kn,Ra,Da,ka;if(Ir=yt-it,Ur=Ke(it+Ir*.25),on=Ke(yt-Ir*.25),isNaN(Ur)){Sr.nanEncountered=!0;return}if(isNaN(on)){Sr.nanEncountered=!0;return}return xn=Ir*(bt+4*Ur+kt)/12,_n=Ir*(kt+4*on+It)/12,Dn=xn+_n,ka=(Dn-Ft)/15,ar>wr?(Sr.maxDepthCount++,Dn+ka):Math.abs(ka)>1;do wr[Dn]>on?_n=Dn:xn=Dn,Dn=xn+_n>>1;while(Dn>xn);var Kn=wr[Dn+1]-wr[Dn];return Kn&&(Kn=(on-wr[Dn+1])/Kn),(Dn+1+Kn)/Ft}var Ir=2*Sr(1)/c*It/yt,Ur=function(on,xn){var _n=Sr(P(l(xn))),Dn=bt(_n)*on;return _n/=Ir,[Dn,xn>=0?_n:-_n]};return Ur.invert=function(on,xn){var _n;return xn*=Ir,P(xn)<1&&(_n=u(xn)*M(kt(P(xn))*It)),[on/bt(P(xn)),_n]},Ur}function gi(){var Ke=0,it=2.5,yt=1.183136,bt=(0,m.U)(_a),kt=bt(Ke,it,yt);return kt.alpha=function(It){return arguments.length?bt(Ke=+It,it,yt):Ke},kt.k=function(It){return arguments.length?bt(Ke,it=+It,yt):it},kt.gamma=function(It){return arguments.length?bt(Ke,it,yt=+It):yt},kt.scale(152.63)}function ai(Ke,it){return P(Ke[0]-it[0])=0;--wr)yt=Ke[1][wr],bt=yt[0][0],kt=yt[0][1],It=yt[1][1],Ft=yt[2][0],pr=yt[2][1],it.push(ko([[Ft-h,pr-h],[Ft-h,It+h],[bt+h,It+h],[bt+h,kt-h]],30));return{type:"Polygon",coordinates:[(0,$n.Uf)(it)]}}function to(Ke,it,yt){var bt,kt;function It(wr,ar){for(var Sr=ar<0?-1:1,Ir=it[+(ar<0)],Ur=0,on=Ir.length-1;UrIr[Ur][2][0];++Ur);var xn=Ke(wr-Ir[Ur][1][0],ar);return xn[0]+=Ke(Ir[Ur][1][0],Sr*ar>Sr*Ir[Ur][0][1]?Ir[Ur][0][1]:ar)[0],xn}yt?It.invert=yt(It):Ke.invert&&(It.invert=function(wr,ar){for(var Sr=kt[+(ar<0)],Ir=it[+(ar<0)],Ur=0,on=Sr.length;Urxn&&(_n=on,on=xn,xn=_n),[[Ir,on],[Ur,xn]]})}),Ft):it.map(function(ar){return ar.map(function(Sr){return[[Sr[0][0]*E,Sr[0][1]*E],[Sr[1][0]*E,Sr[1][1]*E],[Sr[2][0]*E,Sr[2][1]*E]]})})},it!=null&&Ft.lobes(it),Ft}var Sl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function af(){return to(Ve,Sl).scale(160.857)}var Vf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function ti(){return to(En,Vf).scale(152.63)}var eu=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function of(){return to(Re,eu).scale(169.529)}var Ki=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function bo(){return to(Re,Ki).scale(169.529).rotate([20,0])}var Ml=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Iu(){return to(wn,Ml,xe).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ii=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function El(){return to(Qe,Ii).scale(152.63).rotate([-20,0])}function Oi(Ke,it){return[3/y*Ke*I(c*c/3-it*it),it]}Oi.invert=function(Ke,it){return[y/3*Ke/I(c*c/3-it*it),it]};function Hi(){return(0,m.c)(Oi).scale(158.837)}function Cl(Ke){function it(yt,bt){if(P(P(bt)-i)2)return null;yt/=2,bt/=2;var It=yt*yt,Ft=bt*bt,pr=2*bt/(1+It+Ft);return pr=n((1+pr)/(1-pr),1/Ke),[L(2*yt,1-It-Ft)/Ke,M((pr-1)/(pr+1))]},it}function ro(){var Ke=.5,it=(0,m.U)(Cl),yt=it(Ke);return yt.spacing=function(bt){return arguments.length?it(Ke=+bt):Ke},yt.scale(124.75)}var no=c/w;function zo(Ke,it){return[Ke*(1+I(S(it)))/2,it/(S(it/2)*S(Ke/6))]}zo.invert=function(Ke,it){var yt=P(Ke),bt=P(it),kt=h,It=i;bth||P(Dn)>h)&&--kt>0);return kt&&[yt,bt]};function jc(){return(0,m.c)(Lo).scale(139.98)}function cs(Ke,it){return[l(Ke)/S(it),g(it)*S(Ke)]}cs.invert=function(Ke,it){var yt=Ke*Ke,bt=it*it,kt=bt+1,It=yt+kt,Ft=Ke?x*I((It-I(It*It-4*yt))/yt):1/I(kt);return[M(Ke*Ft),u(it)*b(Ft)]};function Ji(){return(0,m.c)(cs).scale(144.049).clipAngle(89.999)}function sf(Ke){var it=S(Ke),yt=g(d+Ke/2);function bt(kt,It){var Ft=It-Ke,pr=P(Ft)=0;)Sr=Ke[ar],Ir=Sr[0]+pr*(on=Ir)-wr*Ur,Ur=Sr[1]+pr*Ur+wr*on;return Ir=pr*(on=Ir)-wr*Ur,Ur=pr*Ur+wr*on,[Ir,Ur]}return yt.invert=function(bt,kt){var It=20,Ft=bt,pr=kt;do{for(var wr=it,ar=Ke[wr],Sr=ar[0],Ir=ar[1],Ur=0,on=0,xn;--wr>=0;)ar=Ke[wr],Ur=Sr+Ft*(xn=Ur)-pr*on,on=Ir+Ft*on+pr*xn,Sr=ar[0]+Ft*(xn=Sr)-pr*Ir,Ir=ar[1]+Ft*Ir+pr*xn;Ur=Sr+Ft*(xn=Ur)-pr*on,on=Ir+Ft*on+pr*xn,Sr=Ft*(xn=Sr)-pr*Ir-bt,Ir=Ft*Ir+pr*xn-kt;var _n=Ur*Ur+on*on,Dn,Kn;Ft-=Dn=(Sr*Ur+Ir*on)/_n,pr-=Kn=(Ir*Ur-Sr*on)/_n}while(P(Dn)+P(Kn)>h*h&&--It>0);if(It){var Ra=I(Ft*Ft+pr*pr),Da=2*s(Ra*.5),ka=l(Da);return[L(Ft*ka,Ra*S(Da)),Ra?M(pr*ka/Ra):0]}},yt}var Xc=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],ku=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Zc=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Kc=[[.9245,0],[0,0],[.01943,0]],Jc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function uf(){return al(Xc,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Qc(){return al(ku,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function $c(){return al(Zc,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Wf(){return al(Kc,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Yf(){return al(Jc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function al(Ke,it){var yt=(0,m.c)(Gf(Ke)).rotate(it).clipAngle(90),bt=(0,He.c)(it),kt=yt.center;return delete yt.rotate,yt.center=function(It){return arguments.length?kt(bt(It)):bt.invert(kt())},yt}var Ll=I(6),tu=I(7);function ru(Ke,it){var yt=M(7*l(it)/(3*Ll));return[Ll*Ke*(2*S(2*yt/3)-1)/tu,9*l(yt/3)/tu]}ru.invert=function(Ke,it){var yt=3*M(it*tu/9);return[Ke*tu/(Ll*(2*S(2*yt/3)-1)),M(l(yt)*3*Ll/7)]};function jf(){return(0,m.c)(ru).scale(164.859)}function Ms(Ke,it){for(var yt=(1+x)*l(it),bt=it,kt=0,It;kt<25&&(bt-=It=(l(bt/2)+l(bt)-yt)/(.5*S(bt/2)+S(bt)),!(P(It)T&&--bt>0);return It=yt*yt,Ft=It*It,pr=It*Ft,[Ke/(.84719-.13063*It+pr*pr*(-.04515+.05494*It-.02326*Ft+.00331*pr)),yt]};function Zo(){return(0,m.c)(Ou).scale(175.295)}function Pl(Ke,it){return[Ke*(1+S(it))/2,2*(it-g(it/2))]}Pl.invert=function(Ke,it){for(var yt=it/2,bt=0,kt=1/0;bt<10&&P(kt)>h;++bt){var It=S(it/2);it-=kt=(it-g(it/2)-yt)/(1-.5/(It*It))}return[2*Ke/(1+S(it)),it]};function il(){return(0,m.c)(Pl).scale(152.63)}var nu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Us(){return to(te(1/0),nu).rotate([20,0]).scale(152.63)}function vs(Ke,it){var yt=l(it),bt=S(it),kt=u(Ke);if(Ke===0||P(it)===i)return[0,it];if(it===0)return[Ke,0];if(P(Ke)===i)return[Ke*bt,i*yt];var It=c/(2*Ke)-2*Ke/c,Ft=2*it/c,pr=(1-Ft*Ft)/(yt-Ft),wr=It*It,ar=pr*pr,Sr=1+wr/ar,Ir=1+ar/wr,Ur=(It*yt/pr-It/2)/Sr,on=(ar*yt/wr+pr/2)/Ir,xn=Ur*Ur+bt*bt/Sr,_n=on*on-(ar*yt*yt/wr+pr*yt-1)/Ir;return[i*(Ur+I(xn)*kt),i*(on+I(_n<0?0:_n)*u(-it*It)*kt)]}vs.invert=function(Ke,it){Ke/=i,it/=i;var yt=Ke*Ke,bt=it*it,kt=yt+bt,It=c*c;return[Ke?(kt-1+I((1-kt)*(1-kt)+4*yt))/(2*Ke)*i:0,be(function(Ft){return kt*(c*l(Ft)-2*Ft)*c+4*Ft*Ft*(it-l(Ft))+2*c*Ft-It*it},0)]};function ff(){return(0,m.c)(vs).scale(127.267)}var _l=1.0148,Ko=.23185,_i=-.14499,cf=.02406,eh=_l,Fu=5*Ko,Rl=7*_i,Dl=9*cf,Po=1.790857183;function Nu(Ke,it){var yt=it*it;return[Ke,it*(_l+yt*yt*(Ko+yt*(_i+cf*yt)))]}Nu.invert=function(Ke,it){it>Po?it=Po:it<-Po&&(it=-Po);var yt=it,bt;do{var kt=yt*yt;yt-=bt=(yt*(_l+kt*kt*(Ko+kt*(_i+cf*kt)))-it)/(eh+kt*kt*(Fu+kt*(Rl+Dl*kt)))}while(P(bt)>h);return[Ke,yt]};function Il(){return(0,m.c)(Nu).scale(139.319)}function Bu(Ke,it){if(P(it)h&&--kt>0);return Ft=g(bt),[(P(it)=0;)if(bt=it[pr],yt[0]===bt[0]&&yt[1]===bt[1]){if(It)return[It,yt];It=yt}}}function pf(Ke){for(var it=Ke.length,yt=[],bt=Ke[it-1],kt=0;kt0?[-bt[0],0]:[180-bt[0],180])};var it=ki.map(function(yt){return{face:yt,project:Ke(yt)}});return[-1,0,0,1,0,1,4,5].forEach(function(yt,bt){var kt=it[yt];kt&&(kt.children||(kt.children=[])).push(it[bt])}),yi(it[0],function(yt,bt){return it[yt<-c/2?bt<0?6:4:yt<0?bt<0?2:0:ytbt^on>bt&&yt<(Ur-ar)*(bt-Sr)/(on-Sr)+ar&&(kt=!kt)}return kt}function ah(Ke,it){var yt=it.stream,bt;if(!yt)throw new Error("invalid projection");switch(Ke&&Ke.type){case"Feature":bt=gf;break;case"FeatureCollection":bt=ih;break;default:bt=zl;break}return bt(Ke,yt)}function ih(Ke,it){return{type:"FeatureCollection",features:Ke.features.map(function(yt){return gf(yt,it)})}}function gf(Ke,it){return{type:"Feature",id:Ke.id,properties:Ke.properties,geometry:zl(Ke.geometry,it)}}function $f(Ke,it){return{type:"GeometryCollection",geometries:Ke.geometries.map(function(yt){return zl(yt,it)})}}function zl(Ke,it){if(!Ke)return null;if(Ke.type==="GeometryCollection")return $f(Ke,it);var yt;switch(Ke.type){case"Point":yt=Ol;break;case"MultiPoint":yt=Ol;break;case"LineString":yt=qf;break;case"MultiLineString":yt=qf;break;case"Polygon":yt=su;break;case"MultiPolygon":yt=su;break;case"Sphere":yt=su;break;default:return null}return(0,ha.c)(Ke,it(yt)),yt.result()}var Qi=[],Oo=[],Ol={point:function(Ke,it){Qi.push([Ke,it])},result:function(){var Ke=Qi.length?Qi.length<2?{type:"Point",coordinates:Qi[0]}:{type:"MultiPoint",coordinates:Qi}:null;return Qi=[],Ke}},qf={lineStart:ou,point:function(Ke,it){Qi.push([Ke,it])},lineEnd:function(){Qi.length&&(Oo.push(Qi),Qi=[])},result:function(){var Ke=Oo.length?Oo.length<2?{type:"LineString",coordinates:Oo[0]}:{type:"MultiLineString",coordinates:Oo}:null;return Oo=[],Ke}},su={polygonStart:ou,lineStart:ou,point:function(Ke,it){Qi.push([Ke,it])},lineEnd:function(){var Ke=Qi.length;if(Ke){do Qi.push(Qi[0].slice());while(++Ke<4);Oo.push(Qi),Qi=[]}},polygonEnd:ou,result:function(){if(!Oo.length)return null;var Ke=[],it=[];return Oo.forEach(function(yt){rh(yt)?Ke.push([yt]):it.push(yt)}),it.forEach(function(yt){var bt=yt[0];Ke.some(function(kt){if(nh(kt[0],bt))return kt.push(yt),!0})||Ke.push([yt])}),Oo=[],Ke.length?Ke.length>1?{type:"MultiPolygon",coordinates:Ke}:{type:"Polygon",coordinates:Ke[0]}:null}};function Ls(Ke){var it=Ke(i,0)[0]-Ke(-i,0)[0];function yt(bt,kt){var It=P(bt)0?bt-c:bt+c,kt),pr=(Ft[0]-Ft[1])*x,wr=(Ft[0]+Ft[1])*x;if(It)return[pr,wr];var ar=it*x,Sr=pr>0^wr>0?-1:1;return[Sr*pr-u(wr)*ar,Sr*wr-u(pr)*ar]}return Ke.invert&&(yt.invert=function(bt,kt){var It=(bt+kt)*x,Ft=(kt-bt)*x,pr=P(It)<.5*it&&P(Ft)<.5*it;if(!pr){var wr=it*x,ar=It>0^Ft>0?-1:1,Sr=-ar*bt+(Ft>0?1:-1)*wr,Ir=-ar*kt+(It>0?1:-1)*wr;It=(-Sr-Ir)*x,Ft=(Sr-Ir)*x}var Ur=Ke.invert(It,Ft);return pr||(Ur[0]+=It>0?c:-c),Ur}),(0,m.c)(yt).rotate([-90,-90,45]).clipAngle(179.999)}function oh(){return Ls(Mn).scale(176.423)}function ec(){return Ls(mr).scale(111.48)}function tc(Ke,it){if(!(0<=(it=+it)&&it<=20))throw new Error("invalid digits");function yt(ar){var Sr=ar.length,Ir=2,Ur=new Array(Sr);for(Ur[0]=+ar[0].toFixed(it),Ur[1]=+ar[1].toFixed(it);Ir2||on[0]!=Sr[0]||on[1]!=Sr[1])&&(Ir.push(on),Sr=on)}return Ir.length===1&&ar.length>1&&Ir.push(yt(ar[ar.length-1])),Ir}function It(ar){return ar.map(kt)}function Ft(ar){if(ar==null)return ar;var Sr;switch(ar.type){case"GeometryCollection":Sr={type:"GeometryCollection",geometries:ar.geometries.map(Ft)};break;case"Point":Sr={type:"Point",coordinates:yt(ar.coordinates)};break;case"MultiPoint":Sr={type:ar.type,coordinates:bt(ar.coordinates)};break;case"LineString":Sr={type:ar.type,coordinates:kt(ar.coordinates)};break;case"MultiLineString":case"Polygon":Sr={type:ar.type,coordinates:It(ar.coordinates)};break;case"MultiPolygon":Sr={type:"MultiPolygon",coordinates:ar.coordinates.map(It)};break;default:return ar}return ar.bbox!=null&&(Sr.bbox=ar.bbox),Sr}function pr(ar){var Sr={type:"Feature",properties:ar.properties,geometry:Ft(ar.geometry)};return ar.id!=null&&(Sr.id=ar.id),ar.bbox!=null&&(Sr.bbox=ar.bbox),Sr}if(Ke!=null)switch(Ke.type){case"Feature":return pr(Ke);case"FeatureCollection":{var wr={type:"FeatureCollection",features:Ke.features.map(pr)};return Ke.bbox!=null&&(wr.bbox=Ke.bbox),wr}default:return Ft(Ke)}return Ke}function yf(Ke){var it=l(Ke);function yt(bt,kt){var It=it?g(bt*it/2)/it:bt/2;if(!kt)return[2*It,-Ke];var Ft=2*s(It*l(kt)),pr=1/g(kt);return[l(Ft)*pr,kt+(1-S(Ft))*pr-Ke]}return yt.invert=function(bt,kt){if(P(kt+=Ke)h&&--pr>0);var Ur=bt*(ar=g(Ft)),on=g(P(kt)0?i:-i)*(wr+kt*(Sr-Ft)/2+kt*kt*(Sr-2*wr+Ft)/2)]}es.invert=function(Ke,it){var yt=it/i,bt=yt*90,kt=a(18,P(bt/5)),It=t(0,p(kt));do{var Ft=wo[It][1],pr=wo[It+1][1],wr=wo[a(19,It+2)][1],ar=wr-Ft,Sr=wr-2*pr+Ft,Ir=2*(P(yt)-pr)/ar,Ur=Sr/ar,on=Ir*(1-Ur*Ir*(1-2*Ur*Ir));if(on>=0||It===1){bt=(it>=0?5:-5)*(on+kt);var xn=50,_n;do kt=a(18,P(bt)/5),It=p(kt),on=kt-It,Ft=wo[It][1],pr=wo[It+1][1],wr=wo[a(19,It+2)][1],bt-=(_n=(it>=0?i:-i)*(pr+on*(wr-Ft)/2+on*on*(wr-2*pr+Ft)/2)-it)*E;while(P(_n)>T&&--xn>0);break}}while(--It>=0);var Dn=wo[It][0],Kn=wo[It+1][0],Ra=wo[a(19,It+2)][0];return[Ke/(Kn+on*(Ra-Dn)/2+on*on*(Ra-2*Kn+Dn)/2),bt*A]};function Gs(){return(0,m.c)(es).scale(152.63)}function Fl(Ke){function it(yt,bt){var kt=S(bt),It=(Ke-1)/(Ke-kt*S(yt));return[It*kt*l(yt),It*l(bt)]}return it.invert=function(yt,bt){var kt=yt*yt+bt*bt,It=I(kt),Ft=(Ke-I(1-kt*(Ke+1)/(Ke-1)))/((Ke-1)/It+It/(Ke-1));return[L(yt*Ft,It*I(1-Ft*Ft)),It?M(bt*Ft/It):0]},it}function Gu(Ke,it){var yt=Fl(Ke);if(!it)return yt;var bt=S(it),kt=l(it);function It(Ft,pr){var wr=yt(Ft,pr),ar=wr[1],Sr=ar*kt/(Ke-1)+bt;return[wr[0]*bt/Sr,ar/Sr]}return It.invert=function(Ft,pr){var wr=(Ke-1)/(Ke-1-pr*kt);return yt.invert(wr*Ft,wr*pr*bt)},It}function ll(){var Ke=2,it=0,yt=(0,m.U)(Gu),bt=yt(Ke,it);return bt.distance=function(kt){return arguments.length?yt(Ke=+kt,it):Ke},bt.tilt=function(kt){return arguments.length?yt(Ke,it=kt*A):it*E},bt.scale(432.147).clipAngle(b(1/Ke)*E-1e-6)}var ul=1e-4,nc=1e4,Ps=-180,Nl=Ps+ul,Ws=180,_s=Ws-ul,lu=-90,Bl=lu+ul,vi=90,Ul=vi-ul;function Wu(Ke){return Ke.length>0}function ac(Ke){return Math.floor(Ke*nc)/nc}function Vl(Ke){return Ke===lu||Ke===vi?[0,Ke]:[Ps,ac(Ke)]}function uu(Ke){var it=Ke[0],yt=Ke[1],bt=!1;return it<=Nl?(it=Ps,bt=!0):it>=_s&&(it=Ws,bt=!0),yt<=Bl?(yt=lu,bt=!0):yt>=Ul&&(yt=vi,bt=!0),bt?[it,yt]:Ke}function Yu(Ke){return Ke.map(uu)}function mf(Ke,it,yt){for(var bt=0,kt=Ke.length;bt=_s||Sr<=Bl||Sr>=Ul){It[Ft]=uu(wr);for(var Ir=Ft+1;IrNl&&on<_s&&xn>Bl&&xn=pr)break;yt.push({index:-1,polygon:it,ring:It=It.slice(Ir-1)}),It[0]=Vl(It[0][1]),Ft=-1,pr=It.length}}}}function fu(Ke){var it,yt=Ke.length,bt={},kt={},It,Ft,pr,wr,ar;for(it=0;it0?c-pr:pr)*E],ar=(0,m.c)(Ke(Ft)).rotate(wr),Sr=(0,He.c)(wr),Ir=ar.center;return delete ar.rotate,ar.center=function(Ur){return arguments.length?Ir(Sr(Ur)):Sr.invert(Ir())},ar.clipAngle(90)}function xf(Ke){var it=S(Ke);function yt(bt,kt){var It=(0,Vs.Y)(bt,kt);return It[0]*=it,It}return yt.invert=function(bt,kt){return Vs.Y.invert(bt/it,kt)},yt}function fl(){return ju([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ju(Ke,it){return ds(xf,Ke,it)}function vu(Ke){if(!(Ke*=2))return oe.O;var it=-Ke/2,yt=-it,bt=Ke*Ke,kt=g(yt),It=.5/l(yt);function Ft(pr,wr){var ar=b(S(wr)*S(pr-it)),Sr=b(S(wr)*S(pr-yt)),Ir=wr<0?-1:1;return ar*=ar,Sr*=Sr,[(ar-Sr)/(2*Ke),Ir*I(4*bt*Sr-(bt-ar+Sr)*(bt-ar+Sr))/(2*Ke)]}return Ft.invert=function(pr,wr){var ar=wr*wr,Sr=S(I(ar+(Ur=pr+it)*Ur)),Ir=S(I(ar+(Ur=pr+yt)*Ur)),Ur,on;return[L(on=Sr-Ir,Ur=(Sr+Ir)*kt),(wr<0?-1:1)*b(I(Ur*Ur+on*on)*It)]},Ft}function sh(){return ic([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ic(Ke,it){return ds(vu,Ke,it)}function po(Ke,it){if(P(it)h&&--pr>0);return[u(Ke)*(I(kt*kt+4)+kt)*c/4,i*Ft]};function pu(){return(0,m.c)(_o).scale(127.16)}function Xu(Ke,it,yt,bt,kt){function It(Ft,pr){var wr=yt*l(bt*pr),ar=I(1-wr*wr),Sr=I(2/(1+ar*S(Ft*=kt)));return[Ke*ar*Sr*l(Ft),it*wr*Sr]}return It.invert=function(Ft,pr){var wr=Ft/Ke,ar=pr/it,Sr=I(wr*wr+ar*ar),Ir=2*M(Sr/2);return[L(Ft*g(Ir),Ke*Sr)/kt,Sr&&M(pr*l(Ir)/(it*yt*Sr))/bt]},It}function Rs(Ke,it,yt,bt){var kt=c/3;Ke=t(Ke,h),it=t(it,h),Ke=a(Ke,i),it=a(it,c-h),yt=t(yt,0),yt=a(yt,100-h),bt=t(bt,h);var It=yt/100+1,Ft=bt/100,pr=b(It*S(kt))/kt,wr=l(Ke)/l(pr*i),ar=it/c,Sr=I(Ft*l(Ke/2)/l(it/2)),Ir=Sr/I(ar*wr*pr),Ur=1/(Sr*I(ar*wr*pr));return Xu(Ir,Ur,wr,pr,ar)}function Zs(){var Ke=65*A,it=60*A,yt=20,bt=200,kt=(0,m.U)(Rs),It=kt(Ke,it,yt,bt);return It.poleline=function(Ft){return arguments.length?kt(Ke=+Ft*A,it,yt,bt):Ke*E},It.parallels=function(Ft){return arguments.length?kt(Ke,it=+Ft*A,yt,bt):it*E},It.inflation=function(Ft){return arguments.length?kt(Ke,it,yt=+Ft,bt):yt},It.ratio=function(Ft){return arguments.length?kt(Ke,it,yt,bt=+Ft):bt},It.scale(163.775)}function bf(){return Zs().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var gu=4*c+3*I(3),yu=2*I(2*c*I(3)/gu),Zu=Te(yu*I(3)/c,yu,gu/6);function sc(){return(0,m.c)(Zu).scale(176.84)}function mu(Ke,it){return[Ke*I(1-3*it*it/(c*c)),it]}mu.invert=function(Ke,it){return[Ke/I(1-3*it*it/(c*c)),it]};function wf(){return(0,m.c)(mu).scale(152.63)}function cl(Ke,it){var yt=S(it),bt=S(Ke)*yt,kt=1-bt,It=S(Ke=L(l(Ke)*yt,-l(it))),Ft=l(Ke);return yt=I(1-bt*bt),[Ft*yt-It*kt,-It*yt-Ft*kt]}cl.invert=function(Ke,it){var yt=(Ke*Ke+it*it)/-2,bt=I(-yt*(2+yt)),kt=it*yt+Ke*bt,It=Ke*yt-it*bt,Ft=I(It*It+kt*kt);return[L(bt*kt,Ft*(1+yt)),Ft?-M(bt*It/Ft):0]};function Tf(){return(0,m.c)(cl).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function xu(Ke,it){var yt=W(Ke,it);return[(yt[0]+Ke/i)/2,(yt[1]+it)/2]}xu.invert=function(Ke,it){var yt=Ke,bt=it,kt=25;do{var It=S(bt),Ft=l(bt),pr=l(2*bt),wr=Ft*Ft,ar=It*It,Sr=l(yt),Ir=S(yt/2),Ur=l(yt/2),on=Ur*Ur,xn=1-ar*Ir*Ir,_n=xn?b(It*Ir)*I(Dn=1/xn):Dn=0,Dn,Kn=.5*(2*_n*It*Ur+yt/i)-Ke,Ra=.5*(_n*Ft+bt)-it,Da=.5*Dn*(ar*on+_n*It*Ir*wr)+.5/i,ka=Dn*(Sr*pr/4-_n*Ft*Ur),Na=.125*Dn*(pr*Ur-_n*Ft*ar*Sr),Ka=.5*Dn*(wr*Ir+_n*on*It)+.5,di=ka*Na-Ka*Da,zi=(Ra*ka-Kn*Ka)/di,ue=(Kn*Na-Ra*Da)/di;yt-=zi,bt-=ue}while((P(zi)>h||P(ue)>h)&&--kt>0);return[yt,bt]};function lc(){return(0,m.c)(xu).scale(158.837)}},88728:function(G,H,e){e.d(H,{c:function(){return m}});function m(){return new P}function P(){this.reset()}P.prototype={constructor:P,reset:function(){this.s=this.t=0},add:function(S){L(s,S,this.t),L(this,s.s,this.s),this.s?this.t+=s.t:this.s=s.t},valueOf:function(){return this.s}};var s=new P;function L(S,v,p){var r=S.s=v+p,t=r-v,a=r-t;S.t=v-a+(p-t)}},95384:function(G,H,e){e.d(H,{cp:function(){return T},mQ:function(){return S},oB:function(){return f}});var m=e(88728),P=e(64528),s=e(70932),L=e(16016),S=(0,m.c)(),v=(0,m.c)(),p,r,t,a,n,f={point:s.c,lineStart:s.c,lineEnd:s.c,polygonStart:function(){S.reset(),f.lineStart=u,f.lineEnd=l},polygonEnd:function(){var c=+S;v.add(c<0?P.kD+c:c),this.lineStart=this.lineEnd=this.point=s.c},sphere:function(){v.add(P.kD)}};function u(){f.point=g}function l(){h(p,r)}function g(c,i){f.point=h,p=c,r=i,c*=P.qw,i*=P.qw,t=c,a=(0,P.W8)(i=i/2+P.wL),n=(0,P.g$)(i)}function h(c,i){c*=P.qw,i*=P.qw,i=i/2+P.wL;var d=c-t,x=d>=0?1:-1,w=x*d,C=(0,P.W8)(i),y=(0,P.g$)(i),E=n*y,A=a*C+E*(0,P.W8)(w),o=E*x*(0,P.g$)(w);S.add((0,P.WE)(o,A)),t=c,a=C,n=y}function T(c){return v.reset(),(0,L.c)(c,f),v*2}},13696:function(G,H,e){e.d(H,{c:function(){return M}});var m=e(88728),P=e(95384),s=e(84220),L=e(64528),S=e(16016),v,p,r,t,a,n,f,u,l=(0,m.c)(),g,h,T={point:c,lineStart:d,lineEnd:x,polygonStart:function(){T.point=w,T.lineStart=C,T.lineEnd=y,l.reset(),P.oB.polygonStart()},polygonEnd:function(){P.oB.polygonEnd(),T.point=c,T.lineStart=d,T.lineEnd=x,P.mQ<0?(v=-(r=180),p=-(t=90)):l>L.Gg?t=90:l<-L.Gg&&(p=-90),h[0]=v,h[1]=r},sphere:function(){v=-(r=180),p=-(t=90)}};function c(b,I){g.push(h=[v=b,r=b]),It&&(t=I)}function i(b,I){var D=(0,s.ux)([b*L.qw,I*L.qw]);if(u){var N=(0,s.CW)(u,D),k=[N[1],-N[0],0],O=(0,s.CW)(k,N);(0,s.cJ)(O),O=(0,s.G)(O);var F=b-a,z=F>0?1:-1,B=O[0]*L.oh*z,W,J=(0,L.a2)(F)>180;J^(z*at&&(t=W)):(B=(B+360)%360-180,J^(z*at&&(t=I))),J?bE(v,r)&&(r=b):E(b,r)>E(v,r)&&(v=b):r>=v?(br&&(r=b)):b>a?E(v,b)>E(v,r)&&(r=b):E(b,r)>E(v,r)&&(v=b)}else g.push(h=[v=b,r=b]);It&&(t=I),u=D,a=b}function d(){T.point=i}function x(){h[0]=v,h[1]=r,T.point=c,u=null}function w(b,I){if(u){var D=b-a;l.add((0,L.a2)(D)>180?D+(D>0?360:-360):D)}else n=b,f=I;P.oB.point(b,I),i(b,I)}function C(){P.oB.lineStart()}function y(){w(n,f),P.oB.lineEnd(),(0,L.a2)(l)>L.Gg&&(v=-(r=180)),h[0]=v,h[1]=r,u=null}function E(b,I){return(I-=b)<0?I+360:I}function A(b,I){return b[0]-I[0]}function o(b,I){return b[0]<=b[1]?b[0]<=I&&I<=b[1]:IE(N[0],N[1])&&(N[1]=k[1]),E(k[0],N[1])>E(N[0],N[1])&&(N[0]=k[0])):O.push(N=k);for(F=-1/0,D=O.length-1,I=0,N=O[D];I<=D;N=k,++I)k=O[I],(z=E(N[1],k[0]))>F&&(F=z,v=k[0],r=N[1])}return g=h=null,v===1/0||p===1/0?[[NaN,NaN],[NaN,NaN]]:[[v,p],[r,t]]}},84220:function(G,H,e){e.d(H,{CW:function(){return S},Ez:function(){return L},G:function(){return P},cJ:function(){return r},mg:function(){return v},ux:function(){return s},wx:function(){return p}});var m=e(64528);function P(t){return[(0,m.WE)(t[1],t[0]),(0,m.qR)(t[2])]}function s(t){var a=t[0],n=t[1],f=(0,m.W8)(n);return[f*(0,m.W8)(a),f*(0,m.g$)(a),(0,m.g$)(n)]}function L(t,a){return t[0]*a[0]+t[1]*a[1]+t[2]*a[2]}function S(t,a){return[t[1]*a[2]-t[2]*a[1],t[2]*a[0]-t[0]*a[2],t[0]*a[1]-t[1]*a[0]]}function v(t,a){t[0]+=a[0],t[1]+=a[1],t[2]+=a[2]}function p(t,a){return[t[0]*a,t[1]*a,t[2]*a]}function r(t){var a=(0,m._I)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=a,t[1]/=a,t[2]/=a}},24052:function(G,H,e){e.d(H,{c:function(){return D}});var m=e(64528),P=e(70932),s=e(16016),L,S,v,p,r,t,a,n,f,u,l,g,h,T,c,i,d={sphere:P.c,point:x,lineStart:C,lineEnd:A,polygonStart:function(){d.lineStart=o,d.lineEnd=M},polygonEnd:function(){d.lineStart=C,d.lineEnd=A}};function x(N,k){N*=m.qw,k*=m.qw;var O=(0,m.W8)(k);w(O*(0,m.W8)(N),O*(0,m.g$)(N),(0,m.g$)(k))}function w(N,k,O){++L,v+=(N-v)/L,p+=(k-p)/L,r+=(O-r)/L}function C(){d.point=y}function y(N,k){N*=m.qw,k*=m.qw;var O=(0,m.W8)(k);T=O*(0,m.W8)(N),c=O*(0,m.g$)(N),i=(0,m.g$)(k),d.point=E,w(T,c,i)}function E(N,k){N*=m.qw,k*=m.qw;var O=(0,m.W8)(k),F=O*(0,m.W8)(N),z=O*(0,m.g$)(N),B=(0,m.g$)(k),W=(0,m.WE)((0,m._I)((W=c*B-i*z)*W+(W=i*F-T*B)*W+(W=T*z-c*F)*W),T*F+c*z+i*B);S+=W,t+=W*(T+(T=F)),a+=W*(c+(c=z)),n+=W*(i+(i=B)),w(T,c,i)}function A(){d.point=x}function o(){d.point=b}function M(){I(g,h),d.point=x}function b(N,k){g=N,h=k,N*=m.qw,k*=m.qw,d.point=I;var O=(0,m.W8)(k);T=O*(0,m.W8)(N),c=O*(0,m.g$)(N),i=(0,m.g$)(k),w(T,c,i)}function I(N,k){N*=m.qw,k*=m.qw;var O=(0,m.W8)(k),F=O*(0,m.W8)(N),z=O*(0,m.g$)(N),B=(0,m.g$)(k),W=c*B-i*z,J=i*F-T*B,re=T*z-c*F,ne=(0,m._I)(W*W+J*J+re*re),le=(0,m.qR)(ne),$=ne&&-le/ne;f+=$*W,u+=$*J,l+=$*re,S+=le,t+=le*(T+(T=F)),a+=le*(c+(c=z)),n+=le*(i+(i=B)),w(T,c,i)}function D(N){L=S=v=p=r=t=a=n=f=u=l=0,(0,s.c)(N,d);var k=f,O=u,F=l,z=k*k+O*O+F*F;return z0?fu)&&(f+=n*s.kD));for(var T,c=f;n>0?c>u:c0?P.pi:-P.pi,l=(0,P.a2)(n-p);(0,P.a2)(l-P.pi)0?P.or:-P.or),v.point(t,r),v.lineEnd(),v.lineStart(),v.point(u,r),v.point(n,r),a=0):t!==u&&l>=P.pi&&((0,P.a2)(p-t)P.Gg?(0,P.MQ)(((0,P.g$)(p)*(n=(0,P.W8)(t))*(0,P.g$)(r)-(0,P.g$)(t)*(a=(0,P.W8)(p))*(0,P.g$)(v))/(a*n*f)):(p+t)/2}function S(v,p,r,t){var a;if(v==null)a=r*P.or,t.point(-P.pi,a),t.point(0,a),t.point(P.pi,a),t.point(P.pi,0),t.point(P.pi,-a),t.point(0,-a),t.point(-P.pi,-a),t.point(-P.pi,0),t.point(-P.pi,a);else if((0,P.a2)(v[0]-p[0])>P.Gg){var n=v[0]1&&s.push(s.pop().concat(s.shift()))},result:function(){var S=s;return s=[],L=null,S}}}},2728:function(G,H,e){e.d(H,{c:function(){return v}});var m=e(84220),P=e(61780),s=e(64528),L=e(41860),S=e(14229);function v(p){var r=(0,s.W8)(p),t=6*s.qw,a=r>0,n=(0,s.a2)(r)>s.Gg;function f(T,c,i,d){(0,P.Q)(d,p,t,i,T,c)}function u(T,c){return(0,s.W8)(T)*(0,s.W8)(c)>r}function l(T){var c,i,d,x,w;return{lineStart:function(){x=d=!1,w=1},point:function(C,y){var E=[C,y],A,o=u(C,y),M=a?o?0:h(C,y):o?h(C+(C<0?s.pi:-s.pi),y):0;if(!c&&(x=d=o)&&T.lineStart(),o!==d&&(A=g(c,E),(!A||(0,L.c)(c,A)||(0,L.c)(E,A))&&(E[2]=1)),o!==d)w=0,o?(T.lineStart(),A=g(E,c),T.point(A[0],A[1])):(A=g(c,E),T.point(A[0],A[1],2),T.lineEnd()),c=A;else if(n&&c&&a^o){var b;!(M&i)&&(b=g(E,c,!0))&&(w=0,a?(T.lineStart(),T.point(b[0][0],b[0][1]),T.point(b[1][0],b[1][1]),T.lineEnd()):(T.point(b[1][0],b[1][1]),T.lineEnd(),T.lineStart(),T.point(b[0][0],b[0][1],3)))}o&&(!c||!(0,L.c)(c,E))&&T.point(E[0],E[1]),c=E,d=o,i=M},lineEnd:function(){d&&T.lineEnd(),c=null},clean:function(){return w|(x&&d)<<1}}}function g(T,c,i){var d=(0,m.ux)(T),x=(0,m.ux)(c),w=[1,0,0],C=(0,m.CW)(d,x),y=(0,m.Ez)(C,C),E=C[0],A=y-E*E;if(!A)return!i&&T;var o=r*y/A,M=-r*E/A,b=(0,m.CW)(w,C),I=(0,m.wx)(w,o),D=(0,m.wx)(C,M);(0,m.mg)(I,D);var N=b,k=(0,m.Ez)(I,N),O=(0,m.Ez)(N,N),F=k*k-O*((0,m.Ez)(I,I)-1);if(!(F<0)){var z=(0,s._I)(F),B=(0,m.wx)(N,(-k-z)/O);if((0,m.mg)(B,I),B=(0,m.G)(B),!i)return B;var W=T[0],J=c[0],re=T[1],ne=c[1],le;J0^B[1]<((0,s.a2)(B[0]-W)s.pi^(W<=B[0]&&B[0]<=J)){var X=(0,m.wx)(N,(-k+z)/O);return(0,m.mg)(X,I),[B,(0,m.G)(X)]}}}function h(T,c){var i=a?p:s.pi-p,d=0;return T<-i?d|=1:T>i&&(d|=2),c<-i?d|=4:c>i&&(d|=8),d}return(0,S.c)(u,l,f,a?[0,-p]:[-s.pi,p-s.pi])}},14229:function(G,H,e){e.d(H,{c:function(){return v}});var m=e(97208),P=e(32232),s=e(64528),L=e(58196),S=e(84706);function v(t,a,n,f){return function(u){var l=a(u),g=(0,m.c)(),h=a(g),T=!1,c,i,d,x={point:w,lineStart:y,lineEnd:E,polygonStart:function(){x.point=A,x.lineStart=o,x.lineEnd=M,i=[],c=[]},polygonEnd:function(){x.point=w,x.lineStart=y,x.lineEnd=E,i=(0,S.Uf)(i);var b=(0,L.c)(c,f);i.length?(T||(u.polygonStart(),T=!0),(0,P.c)(i,r,b,n,u)):b&&(T||(u.polygonStart(),T=!0),u.lineStart(),n(null,null,1,u),u.lineEnd()),T&&(u.polygonEnd(),T=!1),i=c=null},sphere:function(){u.polygonStart(),u.lineStart(),n(null,null,1,u),u.lineEnd(),u.polygonEnd()}};function w(b,I){t(b,I)&&u.point(b,I)}function C(b,I){l.point(b,I)}function y(){x.point=C,l.lineStart()}function E(){x.point=w,l.lineEnd()}function A(b,I){d.push([b,I]),h.point(b,I)}function o(){h.lineStart(),d=[]}function M(){A(d[0][0],d[0][1]),h.lineEnd();var b=h.clean(),I=g.result(),D,N=I.length,k,O,F;if(d.pop(),c.push(d),d=null,!!N){if(b&1){if(O=I[0],(k=O.length-1)>0){for(T||(u.polygonStart(),T=!0),u.lineStart(),D=0;D1&&b&2&&I.push(I.pop().concat(I.shift())),i.push(I.filter(p))}}return x}}function p(t){return t.length>1}function r(t,a){return((t=t.x)[0]<0?t[1]-s.or-s.Gg:s.or-t[1])-((a=a.x)[0]<0?a[1]-s.or-s.Gg:s.or-a[1])}},21676:function(G,H,e){e.d(H,{c:function(){return r}});var m=e(64528),P=e(97208);function s(t,a,n,f,u,l){var g=t[0],h=t[1],T=a[0],c=a[1],i=0,d=1,x=T-g,w=c-h,C;if(C=n-g,!(!x&&C>0)){if(C/=x,x<0){if(C0){if(C>d)return;C>i&&(i=C)}if(C=u-g,!(!x&&C<0)){if(C/=x,x<0){if(C>d)return;C>i&&(i=C)}else if(x>0){if(C0)){if(C/=w,w<0){if(C0){if(C>d)return;C>i&&(i=C)}if(C=l-h,!(!w&&C<0)){if(C/=w,w<0){if(C>d)return;C>i&&(i=C)}else if(w>0){if(C0&&(t[0]=g+i*x,t[1]=h+i*w),d<1&&(a[0]=g+d*x,a[1]=h+d*w),!0}}}}}var L=e(32232),S=e(84706),v=1e9,p=-v;function r(t,a,n,f){function u(c,i){return t<=c&&c<=n&&a<=i&&i<=f}function l(c,i,d,x){var w=0,C=0;if(c==null||(w=g(c,d))!==(C=g(i,d))||T(c,i)<0^d>0)do x.point(w===0||w===3?t:n,w>1?f:a);while((w=(w+d+4)%4)!==C);else x.point(i[0],i[1])}function g(c,i){return(0,m.a2)(c[0]-t)0?0:3:(0,m.a2)(c[0]-n)0?2:1:(0,m.a2)(c[1]-a)0?1:0:i>0?3:2}function h(c,i){return T(c.x,i.x)}function T(c,i){var d=g(c,1),x=g(i,1);return d!==x?d-x:d===0?i[1]-c[1]:d===1?c[0]-i[0]:d===2?c[1]-i[1]:i[0]-c[0]}return function(c){var i=c,d=(0,P.c)(),x,w,C,y,E,A,o,M,b,I,D,N={point:k,lineStart:B,lineEnd:W,polygonStart:F,polygonEnd:z};function k(re,ne){u(re,ne)&&i.point(re,ne)}function O(){for(var re=0,ne=0,le=w.length;nef&&(Y-Q)*(f-oe)>(j-oe)*(t-Q)&&++re:j<=f&&(Y-Q)*(f-oe)<(j-oe)*(t-Q)&&--re;return re}function F(){i=d,x=[],w=[],D=!0}function z(){var re=O(),ne=D&&re,le=(x=(0,S.Uf)(x)).length;(ne||le)&&(c.polygonStart(),ne&&(c.lineStart(),l(null,null,1,c),c.lineEnd()),le&&(0,L.c)(x,h,re,l,c),c.polygonEnd()),i=c,x=w=C=null}function B(){N.point=J,w&&w.push(C=[]),I=!0,b=!1,o=M=NaN}function W(){x&&(J(y,E),A&&b&&d.rejoin(),x.push(d.result())),N.point=k,b&&i.lineEnd()}function J(re,ne){var le=u(re,ne);if(w&&C.push([re,ne]),I)y=re,E=ne,A=le,I=!1,le&&(i.lineStart(),i.point(re,ne));else if(le&&b)i.point(re,ne);else{var $=[o=Math.max(p,Math.min(v,o)),M=Math.max(p,Math.min(v,M))],Z=[re=Math.max(p,Math.min(v,re)),ne=Math.max(p,Math.min(v,ne))];s($,Z,t,a,n,f)?(b||(i.lineStart(),i.point($[0],$[1])),i.point(Z[0],Z[1]),le||i.lineEnd(),D=!1):le&&(i.lineStart(),i.point(re,ne),D=!1)}o=re,M=ne,b=le}return N}}},32232:function(G,H,e){e.d(H,{c:function(){return L}});var m=e(41860),P=e(64528);function s(v,p,r,t){this.x=v,this.z=p,this.o=r,this.e=t,this.v=!1,this.n=this.p=null}function L(v,p,r,t,a){var n=[],f=[],u,l;if(v.forEach(function(d){if(!((x=d.length-1)<=0)){var x,w=d[0],C=d[x],y;if((0,m.c)(w,C)){if(!w[2]&&!C[2]){for(a.lineStart(),u=0;u=0;--u)a.point((T=h[u])[0],T[1]);else t(c.x,c.p.x,-1,a);c=c.p}c=c.o,h=c.z,i=!i}while(!c.v);a.lineEnd()}}}function S(v){if(p=v.length){for(var p,r=0,t=v[0],a;++r0&&(ln=A(Tr[fn],Tr[fn-1]),ln>0&&Yr<=ln&&Or<=ln&&(Yr+Or-ln)*(1-Math.pow((Yr-Or)/ln,2))n.Gg}).map(Wn)).concat((0,z.ik)((0,n.Km)(fn/ia)*ia,ln,ia).filter(function(bn){return(0,n.a2)(bn%wa)>n.Gg}).map(Qn))}return vn.lines=function(){return On().map(function(bn){return{type:"LineString",coordinates:bn}})},vn.outline=function(){return{type:"Polygon",coordinates:[mr(Or).concat(en(Mn).slice(1),mr(Yr).reverse().slice(1),en(Pn).reverse().slice(1))]}},vn.extent=function(bn){return arguments.length?vn.extentMajor(bn).extentMinor(bn):vn.extentMinor()},vn.extentMajor=function(bn){return arguments.length?(Or=+bn[0][0],Yr=+bn[1][0],Pn=+bn[0][1],Mn=+bn[1][1],Or>Yr&&(bn=Or,Or=Yr,Yr=bn),Pn>Mn&&(bn=Pn,Pn=Mn,Mn=bn),vn.precision(Jr)):[[Or,Pn],[Yr,Mn]]},vn.extentMinor=function(bn){return arguments.length?(zr=+bn[0][0],Tr=+bn[1][0],fn=+bn[0][1],ln=+bn[1][1],zr>Tr&&(bn=zr,zr=Tr,Tr=bn),fn>ln&&(bn=fn,fn=ln,ln=bn),vn.precision(Jr)):[[zr,fn],[Tr,ln]]},vn.step=function(bn){return arguments.length?vn.stepMajor(bn).stepMinor(bn):vn.stepMinor()},vn.stepMajor=function(bn){return arguments.length?(ya=+bn[0],wa=+bn[1],vn):[ya,wa]},vn.stepMinor=function(bn){return arguments.length?(Vn=+bn[0],ia=+bn[1],vn):[Vn,ia]},vn.precision=function(bn){return arguments.length?(Jr=+bn,Wn=B(fn,ln,90),Qn=W(zr,Tr,Jr),mr=B(Pn,Mn,90),en=W(Or,Yr,Jr),vn):Jr},vn.extentMajor([[-180,-90+n.Gg],[180,90-n.Gg]]).extentMinor([[-180,-80-n.Gg],[180,80+n.Gg]])}function re(){return J()()}var ne=e(27284),le=e(7376),$=(0,a.c)(),Z=(0,a.c)(),ie,X,Q,oe,Y={point:f.c,lineStart:f.c,lineEnd:f.c,polygonStart:function(){Y.lineStart=j,Y.lineEnd=fe},polygonEnd:function(){Y.lineStart=Y.lineEnd=Y.point=f.c,$.add((0,n.a2)(Z)),Z.reset()},result:function(){var Tr=$/2;return $.reset(),Tr}};function j(){Y.point=se}function se(Tr,zr){Y.point=te,ie=Q=Tr,X=oe=zr}function te(Tr,zr){Z.add(oe*Tr-Q*zr),Q=Tr,oe=zr}function fe(){te(ie,X)}var ge=Y,be=e(73784),xe=0,_e=0,De=0,Fe=0,Te=0,Re=0,Se=0,Ie=0,Me=0,Ve,et,ot,Qe,$e={point:ht,lineStart:vt,lineEnd:Ct,polygonStart:function(){$e.lineStart=rt,$e.lineEnd=ze},polygonEnd:function(){$e.point=ht,$e.lineStart=vt,$e.lineEnd=Ct},result:function(){var Tr=Me?[Se/Me,Ie/Me]:Re?[Fe/Re,Te/Re]:De?[xe/De,_e/De]:[NaN,NaN];return xe=_e=De=Fe=Te=Re=Se=Ie=Me=0,Tr}};function ht(Tr,zr){xe+=Tr,_e+=zr,++De}function vt(){$e.point=pt}function pt(Tr,zr){$e.point=wt,ht(ot=Tr,Qe=zr)}function wt(Tr,zr){var Yr=Tr-ot,Or=zr-Qe,ln=(0,n._I)(Yr*Yr+Or*Or);Fe+=ln*(ot+Tr)/2,Te+=ln*(Qe+zr)/2,Re+=ln,ht(ot=Tr,Qe=zr)}function Ct(){$e.point=ht}function rt(){$e.point=He}function ze(){We(Ve,et)}function He(Tr,zr){$e.point=We,ht(Ve=ot=Tr,et=Qe=zr)}function We(Tr,zr){var Yr=Tr-ot,Or=zr-Qe,ln=(0,n._I)(Yr*Yr+Or*Or);Fe+=ln*(ot+Tr)/2,Te+=ln*(Qe+zr)/2,Re+=ln,ln=Qe*Tr-ot*zr,Se+=ln*(ot+Tr),Ie+=ln*(Qe+zr),Me+=ln*3,ht(ot=Tr,Qe=zr)}var Ge=$e;function Le(Tr){this._context=Tr}Le.prototype={_radius:4.5,pointRadius:function(Tr){return this._radius=Tr,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Tr,zr){switch(this._point){case 0:{this._context.moveTo(Tr,zr),this._point=1;break}case 1:{this._context.lineTo(Tr,zr);break}default:{this._context.moveTo(Tr+this._radius,zr),this._context.arc(Tr,zr,this._radius,0,n.kD);break}}},result:f.c};var Pe=(0,a.c)(),je,Ce,he,me,Ne,Ze={point:f.c,lineStart:function(){Ze.point=st},lineEnd:function(){je&<(Ce,he),Ze.point=f.c},polygonStart:function(){je=!0},polygonEnd:function(){je=null},result:function(){var Tr=+Pe;return Pe.reset(),Tr}};function st(Tr,zr){Ze.point=lt,Ce=me=Tr,he=Ne=zr}function lt(Tr,zr){me-=Tr,Ne-=zr,Pe.add((0,n._I)(me*me+Ne*Ne)),me=Tr,Ne=zr}var Wt=Ze;function Zt(){this._string=[]}Zt.prototype={_radius:4.5,_circle:Tt(4.5),pointRadius:function(Tr){return(Tr=+Tr)!==this._radius&&(this._radius=Tr,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Tr,zr){switch(this._point){case 0:{this._string.push("M",Tr,",",zr),this._point=1;break}case 1:{this._string.push("L",Tr,",",zr);break}default:{this._circle==null&&(this._circle=Tt(this._radius)),this._string.push("M",Tr,",",zr,this._circle);break}}},result:function(){if(this._string.length){var Tr=this._string.join("");return this._string=[],Tr}else return null}};function Tt(Tr){return"m0,"+Tr+"a"+Tr+","+Tr+" 0 1,1 0,"+-2*Tr+"a"+Tr+","+Tr+" 0 1,1 0,"+2*Tr+"z"}function Rt(Tr,zr){var Yr=4.5,Or,ln;function fn(Mn){return Mn&&(typeof Yr=="function"&&ln.pointRadius(+Yr.apply(this,arguments)),(0,u.c)(Mn,Or(ln))),ln.result()}return fn.area=function(Mn){return(0,u.c)(Mn,Or(ge)),ge.result()},fn.measure=function(Mn){return(0,u.c)(Mn,Or(Wt)),Wt.result()},fn.bounds=function(Mn){return(0,u.c)(Mn,Or(be.c)),be.c.result()},fn.centroid=function(Mn){return(0,u.c)(Mn,Or(Ge)),Ge.result()},fn.projection=function(Mn){return arguments.length?(Or=Mn==null?(Tr=null,le.c):(Tr=Mn).stream,fn):Tr},fn.context=function(Mn){return arguments.length?(ln=Mn==null?(zr=null,new Zt):new Le(zr=Mn),typeof Yr!="function"&&ln.pointRadius(Yr),fn):zr},fn.pointRadius=function(Mn){return arguments.length?(Yr=typeof Mn=="function"?Mn:(ln.pointRadius(+Mn),+Mn),fn):Yr},fn.projection(Tr).context(zr)}var Xt=e(87952);function gr(Tr){var zr=0,Yr=n.pi/3,Or=(0,Xt.U)(Tr),ln=Or(zr,Yr);return ln.parallels=function(fn){return arguments.length?Or(zr=fn[0]*n.qw,Yr=fn[1]*n.qw):[zr*n.oh,Yr*n.oh]},ln}function gt(Tr){var zr=(0,n.W8)(Tr);function Yr(Or,ln){return[Or*zr,(0,n.g$)(ln)/zr]}return Yr.invert=function(Or,ln){return[Or/zr,(0,n.qR)(ln*zr)]},Yr}function Kt(Tr,zr){var Yr=(0,n.g$)(Tr),Or=(Yr+(0,n.g$)(zr))/2;if((0,n.a2)(Or)=.12&&Jr<.234&&en>=-.425&&en<-.214?ln:Jr>=.166&&Jr<.234&&en>=-.214&&en<-.115?Mn:Yr).invert(Wn)},ya.stream=function(Wn){return Tr&&zr===Wn?Tr:Tr=ut([Yr.stream(zr=Wn),ln.stream(Wn),Mn.stream(Wn)])},ya.precision=function(Wn){return arguments.length?(Yr.precision(Wn),ln.precision(Wn),Mn.precision(Wn),wa()):Yr.precision()},ya.scale=function(Wn){return arguments.length?(Yr.scale(Wn),ln.scale(Wn*.35),Mn.scale(Wn),ya.translate(Yr.translate())):Yr.scale()},ya.translate=function(Wn){if(!arguments.length)return Yr.translate();var Qn=Yr.scale(),mr=+Wn[0],en=+Wn[1];return Or=Yr.translate(Wn).clipExtent([[mr-.455*Qn,en-.238*Qn],[mr+.455*Qn,en+.238*Qn]]).stream(ia),fn=ln.translate([mr-.307*Qn,en+.201*Qn]).clipExtent([[mr-.425*Qn+n.Gg,en+.12*Qn+n.Gg],[mr-.214*Qn-n.Gg,en+.234*Qn-n.Gg]]).stream(ia),Pn=Mn.translate([mr-.205*Qn,en+.212*Qn]).clipExtent([[mr-.214*Qn+n.Gg,en+.166*Qn+n.Gg],[mr-.115*Qn-n.Gg,en+.234*Qn-n.Gg]]).stream(ia),wa()},ya.fitExtent=function(Wn,Qn){return(0,Ot.QX)(ya,Wn,Qn)},ya.fitSize=function(Wn,Qn){return(0,Ot.UV)(ya,Wn,Qn)},ya.fitWidth=function(Wn,Qn){return(0,Ot.Qx)(ya,Wn,Qn)},ya.fitHeight=function(Wn,Qn){return(0,Ot.OW)(ya,Wn,Qn)};function wa(){return Tr=zr=null,ya}return ya.scale(1070)}var xt=e(54724),At=e(69020),Et=e(92992);function Vt(Tr,zr){return[Tr,(0,n.Yz)((0,n.a6)((n.or+zr)/2))]}Vt.invert=function(Tr,zr){return[Tr,2*(0,n.MQ)((0,n.oN)(zr))-n.or]};function Bt(){return Ut(Vt).scale(961/n.kD)}function Ut(Tr){var zr=(0,Xt.c)(Tr),Yr=zr.center,Or=zr.scale,ln=zr.translate,fn=zr.clipExtent,Mn=null,Pn,Vn,ia;zr.scale=function(wa){return arguments.length?(Or(wa),ya()):Or()},zr.translate=function(wa){return arguments.length?(ln(wa),ya()):ln()},zr.center=function(wa){return arguments.length?(Yr(wa),ya()):Yr()},zr.clipExtent=function(wa){return arguments.length?(wa==null?Mn=Pn=Vn=ia=null:(Mn=+wa[0][0],Pn=+wa[0][1],Vn=+wa[1][0],ia=+wa[1][1]),ya()):Mn==null?null:[[Mn,Pn],[Vn,ia]]};function ya(){var wa=n.pi*Or(),Wn=zr((0,Et.c)(zr.rotate()).invert([0,0]));return fn(Mn==null?[[Wn[0]-wa,Wn[1]-wa],[Wn[0]+wa,Wn[1]+wa]]:Tr===Vt?[[Math.max(Wn[0]-wa,Mn),Pn],[Math.min(Wn[0]+wa,Vn),ia]]:[[Mn,Math.max(Wn[1]-wa,Pn)],[Vn,Math.min(Wn[1]+wa,ia)]])}return ya()}function Jt(Tr){return(0,n.a6)((n.or+Tr)/2)}function ur(Tr,zr){var Yr=(0,n.W8)(Tr),Or=Tr===zr?(0,n.g$)(Tr):(0,n.Yz)(Yr/(0,n.W8)(zr))/(0,n.Yz)(Jt(zr)/Jt(Tr)),ln=Yr*(0,n.g3)(Jt(Tr),Or)/Or;if(!Or)return Vt;function fn(Mn,Pn){ln>0?Pn<-n.or+n.Gg&&(Pn=-n.or+n.Gg):Pn>n.or-n.Gg&&(Pn=n.or-n.Gg);var Vn=ln/(0,n.g3)(Jt(Pn),Or);return[Vn*(0,n.g$)(Or*Mn),ln-Vn*(0,n.W8)(Or*Mn)]}return fn.invert=function(Mn,Pn){var Vn=ln-Pn,ia=(0,n.kq)(Or)*(0,n._I)(Mn*Mn+Vn*Vn),ya=(0,n.WE)(Mn,(0,n.a2)(Vn))*(0,n.kq)(Vn);return Vn*Or<0&&(ya-=n.pi*(0,n.kq)(Mn)*(0,n.kq)(Vn)),[ya/Or,2*(0,n.MQ)((0,n.g3)(ln/ia,1/Or))-n.or]},fn}function fr(){return gr(ur).scale(109.5).parallels([30,30])}var dr=e(69604);function Ye(Tr,zr){var Yr=(0,n.W8)(Tr),Or=Tr===zr?(0,n.g$)(Tr):(Yr-(0,n.W8)(zr))/(zr-Tr),ln=Yr/Or+Tr;if((0,n.a2)(Or)2?Or[2]+90:90]):(Or=Yr(),[Or[0],Or[1],Or[2]-90])},Yr([0,0,90]).scale(159.155)}},27284:function(G,H,e){e.d(H,{c:function(){return P}});var m=e(64528);function P(s,L){var S=s[0]*m.qw,v=s[1]*m.qw,p=L[0]*m.qw,r=L[1]*m.qw,t=(0,m.W8)(v),a=(0,m.g$)(v),n=(0,m.W8)(r),f=(0,m.g$)(r),u=t*(0,m.W8)(S),l=t*(0,m.g$)(S),g=n*(0,m.W8)(p),h=n*(0,m.g$)(p),T=2*(0,m.qR)((0,m._I)((0,m.SD)(r-v)+t*n*(0,m.SD)(p-S))),c=(0,m.g$)(T),i=T?function(d){var x=(0,m.g$)(d*=T)/c,w=(0,m.g$)(T-d)/c,C=w*u+x*g,y=w*l+x*h,E=w*a+x*f;return[(0,m.WE)(y,C)*m.oh,(0,m.WE)(E,(0,m._I)(C*C+y*y))*m.oh]}:function(){return[S*m.oh,v*m.oh]};return i.distance=T,i}},64528:function(G,H,e){e.d(H,{Gg:function(){return m},Km:function(){return u},MQ:function(){return a},SD:function(){return C},W8:function(){return f},WE:function(){return n},Yz:function(){return g},_I:function(){return i},a2:function(){return t},a6:function(){return d},a8:function(){return P},g$:function(){return T},g3:function(){return h},kD:function(){return v},kq:function(){return c},mE:function(){return x},oN:function(){return l},oh:function(){return p},or:function(){return L},pi:function(){return s},qR:function(){return w},qw:function(){return r},wL:function(){return S}});var m=1e-6,P=1e-12,s=Math.PI,L=s/2,S=s/4,v=s*2,p=180/s,r=s/180,t=Math.abs,a=Math.atan,n=Math.atan2,f=Math.cos,u=Math.ceil,l=Math.exp,g=Math.log,h=Math.pow,T=Math.sin,c=Math.sign||function(y){return y>0?1:y<0?-1:0},i=Math.sqrt,d=Math.tan;function x(y){return y>1?0:y<-1?s:Math.acos(y)}function w(y){return y>1?L:y<-1?-L:Math.asin(y)}function C(y){return(y=T(y/2))*y}},70932:function(G,H,e){e.d(H,{c:function(){return m}});function m(){}},73784:function(G,H,e){var m=e(70932),P=1/0,s=P,L=-P,S=L,v={point:p,lineStart:m.c,lineEnd:m.c,polygonStart:m.c,polygonEnd:m.c,result:function(){var r=[[P,s],[L,S]];return L=S=-(s=P=1/0),r}};function p(r,t){rL&&(L=r),tS&&(S=t)}H.c=v},41860:function(G,H,e){e.d(H,{c:function(){return P}});var m=e(64528);function P(s,L){return(0,m.a2)(s[0]-L[0])=0?1:-1,N=D*I,k=N>s.pi,O=w*M;if(L.add((0,s.WE)(O*D*(0,s.g$)(N),C*b+O*(0,s.W8)(N))),u+=k?I+D*s.kD:I,k^d>=t^A>=t){var F=(0,P.CW)((0,P.ux)(i),(0,P.ux)(E));(0,P.cJ)(F);var z=(0,P.CW)(f,F);(0,P.cJ)(z);var B=(k^I>=0?-1:1)*(0,s.qR)(z[2]);(a>B||a===B&&(F[0]||F[1]))&&(l+=k^I>=0?1:-1)}}return(u<-s.Gg||u4*C&&B--){var le=M+O,$=b+F,Z=I+z,ie=(0,v._I)(le*le+$*$+Z*Z),X=(0,v.qR)(Z/=ie),Q=(0,v.a2)((0,v.a2)(Z)-1)C||(0,v.a2)((J*se+re*te)/ne-.5)>.3||M*O+b*F+I*z2?fe[2]%360*v.qw:0,se()):[b*v.oh,I*v.oh,D*v.oh]},Y.angle=function(fe){return arguments.length?(k=fe%360*v.qw,se()):k*v.oh},Y.reflectX=function(fe){return arguments.length?(O=fe?-1:1,se()):O<0},Y.reflectY=function(fe){return arguments.length?(F=fe?-1:1,se()):F<0},Y.precision=function(fe){return arguments.length?(Z=u(ie,$=fe*fe),te()):(0,v._I)($)},Y.fitExtent=function(fe,ge){return(0,t.QX)(Y,fe,ge)},Y.fitSize=function(fe,ge){return(0,t.UV)(Y,fe,ge)},Y.fitWidth=function(fe,ge){return(0,t.Qx)(Y,fe,ge)},Y.fitHeight=function(fe,ge){return(0,t.OW)(Y,fe,ge)};function se(){var fe=i(y,0,0,O,F,k).apply(null,C(o,M)),ge=(k?i:c)(y,E-fe[0],A-fe[1],O,F,k);return N=(0,p.O)(b,I,D),ie=(0,L.c)(C,ge),X=(0,L.c)(N,ie),Z=u(ie,$),te()}function te(){return Q=oe=null,Y}return function(){return C=w.apply(this,arguments),Y.invert=C.invert&&j,se()}}},47984:function(G,H,e){e.d(H,{c:function(){return L},g:function(){return s}});var m=e(87952),P=e(64528);function s(S,v){var p=v*v,r=p*p;return[S*(.8707-.131979*p+r*(-.013791+r*(.003971*p-.001529*r))),v*(1.007226+p*(.015085+r*(-.044475+.028874*p-.005916*r)))]}s.invert=function(S,v){var p=v,r=25,t;do{var a=p*p,n=a*a;p-=t=(p*(1.007226+a*(.015085+n*(-.044475+.028874*a-.005916*n)))-v)/(1.007226+a*(.045255+n*(-.311325+.259866*a-.06507600000000001*n)))}while((0,P.a2)(t)>P.Gg&&--r>0);return[S/(.8707+(a=p*p)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),p]};function L(){return(0,m.c)(s).scale(175.295)}},4888:function(G,H,e){e.d(H,{c:function(){return S},t:function(){return L}});var m=e(64528),P=e(62280),s=e(87952);function L(v,p){return[(0,m.W8)(p)*(0,m.g$)(v),(0,m.g$)(p)]}L.invert=(0,P.g)(m.qR);function S(){return(0,s.c)(L).scale(249.5).clipAngle(90+m.Gg)}},92992:function(G,H,e){e.d(H,{O:function(){return L},c:function(){return r}});var m=e(68120),P=e(64528);function s(t,a){return[(0,P.a2)(t)>P.pi?t+Math.round(-t/P.kD)*P.kD:t,a]}s.invert=s;function L(t,a,n){return(t%=P.kD)?a||n?(0,m.c)(v(t),p(a,n)):v(t):a||n?p(a,n):s}function S(t){return function(a,n){return a+=t,[a>P.pi?a-P.kD:a<-P.pi?a+P.kD:a,n]}}function v(t){var a=S(t);return a.invert=S(-t),a}function p(t,a){var n=(0,P.W8)(t),f=(0,P.g$)(t),u=(0,P.W8)(a),l=(0,P.g$)(a);function g(h,T){var c=(0,P.W8)(T),i=(0,P.W8)(h)*c,d=(0,P.g$)(h)*c,x=(0,P.g$)(T),w=x*n+i*f;return[(0,P.WE)(d*u-w*l,i*n-x*f),(0,P.qR)(w*u+d*l)]}return g.invert=function(h,T){var c=(0,P.W8)(T),i=(0,P.W8)(h)*c,d=(0,P.g$)(h)*c,x=(0,P.g$)(T),w=x*u-d*l;return[(0,P.WE)(d*u+x*l,i*n+w*f),(0,P.qR)(w*n-i*f)]},g}function r(t){t=L(t[0]*P.qw,t[1]*P.qw,t.length>2?t[2]*P.qw:0);function a(n){return n=t(n[0]*P.qw,n[1]*P.qw),n[0]*=P.oh,n[1]*=P.oh,n}return a.invert=function(n){return n=t.invert(n[0]*P.qw,n[1]*P.qw),n[0]*=P.oh,n[1]*=P.oh,n},a}},16016:function(G,H,e){e.d(H,{c:function(){return v}});function m(p,r){p&&s.hasOwnProperty(p.type)&&s[p.type](p,r)}var P={Feature:function(p,r){m(p.geometry,r)},FeatureCollection:function(p,r){for(var t=p.features,a=-1,n=t.length;++a=0;)Pe+=je[Ce].value;Le.value=Pe}function a(){return this.eachAfter(t)}function n(Le){var Pe=this,je,Ce=[Pe],he,me,Ne;do for(je=Ce.reverse(),Ce=[];Pe=je.pop();)if(Le(Pe),he=Pe.children,he)for(me=0,Ne=he.length;me=0;--he)je.push(Ce[he]);return this}function u(Le){for(var Pe=this,je=[Pe],Ce=[],he,me,Ne;Pe=je.pop();)if(Ce.push(Pe),he=Pe.children,he)for(me=0,Ne=he.length;me=0;)je+=Ce[he].value;Pe.value=je})}function g(Le){return this.eachBefore(function(Pe){Pe.children&&Pe.children.sort(Le)})}function h(Le){for(var Pe=this,je=T(Pe,Le),Ce=[Pe];Pe!==je;)Pe=Pe.parent,Ce.push(Pe);for(var he=Ce.length;Le!==je;)Ce.splice(he,0,Le),Le=Le.parent;return Ce}function T(Le,Pe){if(Le===Pe)return Le;var je=Le.ancestors(),Ce=Pe.ancestors(),he=null;for(Le=je.pop(),Pe=Ce.pop();Le===Pe;)he=Le,Le=je.pop(),Pe=Ce.pop();return he}function c(){for(var Le=this,Pe=[Le];Le=Le.parent;)Pe.push(Le);return Pe}function i(){var Le=[];return this.each(function(Pe){Le.push(Pe)}),Le}function d(){var Le=[];return this.eachBefore(function(Pe){Pe.children||Le.push(Pe)}),Le}function x(){var Le=this,Pe=[];return Le.each(function(je){je!==Le&&Pe.push({source:je.parent,target:je})}),Pe}function w(Le,Pe){var je=new o(Le),Ce=+Le.value&&(je.value=Le.value),he,me=[je],Ne,Ze,st,lt;for(Pe==null&&(Pe=y);he=me.pop();)if(Ce&&(he.value=+he.data.value),(Ze=Pe(he.data))&&(lt=Ze.length))for(he.children=new Array(lt),st=lt-1;st>=0;--st)me.push(Ne=he.children[st]=new o(Ze[st])),Ne.parent=he,Ne.depth=he.depth+1;return je.eachBefore(A)}function C(){return w(this).eachBefore(E)}function y(Le){return Le.children}function E(Le){Le.data=Le.data.data}function A(Le){var Pe=0;do Le.height=Pe;while((Le=Le.parent)&&Le.height<++Pe)}function o(Le){this.data=Le,this.depth=this.height=0,this.parent=null}o.prototype=w.prototype={constructor:o,count:a,each:n,eachAfter:u,eachBefore:f,sum:l,sort:g,path:h,ancestors:c,descendants:i,leaves:d,links:x,copy:C};var M=Array.prototype.slice;function b(Le){for(var Pe=Le.length,je,Ce;Pe;)Ce=Math.random()*Pe--|0,je=Le[Pe],Le[Pe]=Le[Ce],Le[Ce]=je;return Le}function I(Le){for(var Pe=0,je=(Le=b(M.call(Le))).length,Ce=[],he,me;Pe0&&je*je>Ce*Ce+he*he}function O(Le,Pe){for(var je=0;jest?(he=(lt+st-me)/(2*lt),Ze=Math.sqrt(Math.max(0,st/lt-he*he)),je.x=Le.x-he*Ce-Ze*Ne,je.y=Le.y-he*Ne+Ze*Ce):(he=(lt+me-st)/(2*lt),Ze=Math.sqrt(Math.max(0,me/lt-he*he)),je.x=Pe.x+he*Ce-Ze*Ne,je.y=Pe.y+he*Ne+Ze*Ce)):(je.x=Pe.x+je.r,je.y=Pe.y)}function re(Le,Pe){var je=Le.r+Pe.r-1e-6,Ce=Pe.x-Le.x,he=Pe.y-Le.y;return je>0&&je*je>Ce*Ce+he*he}function ne(Le){var Pe=Le._,je=Le.next._,Ce=Pe.r+je.r,he=(Pe.x*je.r+je.x*Pe.r)/Ce,me=(Pe.y*je.r+je.y*Pe.r)/Ce;return he*he+me*me}function le(Le){this._=Le,this.next=null,this.previous=null}function $(Le){if(!(he=Le.length))return 0;var Pe,je,Ce,he,me,Ne,Ze,st,lt,Wt,Zt;if(Pe=Le[0],Pe.x=0,Pe.y=0,!(he>1))return Pe.r;if(je=Le[1],Pe.x=-je.r,je.x=Pe.r,je.y=0,!(he>2))return Pe.r+je.r;J(je,Pe,Ce=Le[2]),Pe=new le(Pe),je=new le(je),Ce=new le(Ce),Pe.next=Ce.previous=je,je.next=Pe.previous=Ce,Ce.next=je.previous=Pe;e:for(Ze=3;Ze0)throw new Error("cycle");return Ze}return je.id=function(Ce){return arguments.length?(Le=X(Ce),je):Le},je.parentId=function(Ce){return arguments.length?(Pe=X(Ce),je):Pe},je}function Ie(Le,Pe){return Le.parent===Pe.parent?1:2}function Me(Le){var Pe=Le.children;return Pe?Pe[0]:Le.t}function Ve(Le){var Pe=Le.children;return Pe?Pe[Pe.length-1]:Le.t}function et(Le,Pe,je){var Ce=je/(Pe.i-Le.i);Pe.c-=Ce,Pe.s+=je,Le.c+=Ce,Pe.z+=je,Pe.m+=je}function ot(Le){for(var Pe=0,je=0,Ce=Le.children,he=Ce.length,me;--he>=0;)me=Ce[he],me.z+=Pe,me.m+=Pe,Pe+=me.s+(je+=me.c)}function Qe(Le,Pe,je){return Le.a.parent===Pe.parent?Le.a:je}function $e(Le,Pe){this._=Le,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Pe}$e.prototype=Object.create(o.prototype);function ht(Le){for(var Pe=new $e(Le,0),je,Ce=[Pe],he,me,Ne,Ze;je=Ce.pop();)if(me=je._.children)for(je.children=new Array(Ze=me.length),Ne=Ze-1;Ne>=0;--Ne)Ce.push(he=je.children[Ne]=new $e(me[Ne],Ne)),he.parent=je;return(Pe.parent=new $e(null,0)).children=[Pe],Pe}function vt(){var Le=Ie,Pe=1,je=1,Ce=null;function he(lt){var Wt=ht(lt);if(Wt.eachAfter(me),Wt.parent.m=-Wt.z,Wt.eachBefore(Ne),Ce)lt.eachBefore(st);else{var Zt=lt,Tt=lt,Rt=lt;lt.eachBefore(function(Qt){Qt.xTt.x&&(Tt=Qt),Qt.depth>Rt.depth&&(Rt=Qt)});var Xt=Zt===Tt?1:Le(Zt,Tt)/2,gr=Xt-Zt.x,gt=Pe/(Tt.x+Xt+gr),Kt=je/(Rt.depth||1);lt.eachBefore(function(Qt){Qt.x=(Qt.x+gr)*gt,Qt.y=Qt.depth*Kt})}return lt}function me(lt){var Wt=lt.children,Zt=lt.parent.children,Tt=lt.i?Zt[lt.i-1]:null;if(Wt){ot(lt);var Rt=(Wt[0].z+Wt[Wt.length-1].z)/2;Tt?(lt.z=Tt.z+Le(lt._,Tt._),lt.m=lt.z-Rt):lt.z=Rt}else Tt&&(lt.z=Tt.z+Le(lt._,Tt._));lt.parent.A=Ze(lt,Tt,lt.parent.A||Zt[0])}function Ne(lt){lt._.x=lt.z+lt.parent.m,lt.m+=lt.parent.m}function Ze(lt,Wt,Zt){if(Wt){for(var Tt=lt,Rt=lt,Xt=Wt,gr=Tt.parent.children[0],gt=Tt.m,Kt=Rt.m,Qt=Xt.m,yr=gr.m,Ot;Xt=Ve(Xt),Tt=Me(Tt),Xt&&Tt;)gr=Me(gr),Rt=Ve(Rt),Rt.a=lt,Ot=Xt.z+Qt-Tt.z-gt+Le(Xt._,Tt._),Ot>0&&(et(Qe(Xt,lt,Zt),lt,Ot),gt+=Ot,Kt+=Ot),Qt+=Xt.m,gt+=Tt.m,yr+=gr.m,Kt+=Rt.m;Xt&&!Ve(Rt)&&(Rt.t=Xt,Rt.m+=Qt-Kt),Tt&&!Me(gr)&&(gr.t=Tt,gr.m+=gt-yr,Zt=lt)}return Zt}function st(lt){lt.x*=Pe,lt.y=lt.depth*je}return he.separation=function(lt){return arguments.length?(Le=lt,he):Le},he.size=function(lt){return arguments.length?(Ce=!1,Pe=+lt[0],je=+lt[1],he):Ce?null:[Pe,je]},he.nodeSize=function(lt){return arguments.length?(Ce=!0,Pe=+lt[0],je=+lt[1],he):Ce?[Pe,je]:null},he}function pt(Le,Pe,je,Ce,he){for(var me=Le.children,Ne,Ze=-1,st=me.length,lt=Le.value&&(he-je)/Le.value;++ZeQt&&(Qt=lt),at=gt*gt*ut,yr=Math.max(Qt/at,at/Kt),yr>Ot){gt-=lt;break}Ot=yr}Ne.push(st={value:gt,dice:Rt1?Ce:1)},je}(wt);function ze(){var Le=rt,Pe=!1,je=1,Ce=1,he=[0],me=Q,Ne=Q,Ze=Q,st=Q,lt=Q;function Wt(Tt){return Tt.x0=Tt.y0=0,Tt.x1=je,Tt.y1=Ce,Tt.eachBefore(Zt),he=[0],Pe&&Tt.eachBefore(ge),Tt}function Zt(Tt){var Rt=he[Tt.depth],Xt=Tt.x0+Rt,gr=Tt.y0+Rt,gt=Tt.x1-Rt,Kt=Tt.y1-Rt;gt=Tt-1){var Qt=me[Zt];Qt.x0=Xt,Qt.y0=gr,Qt.x1=gt,Qt.y1=Kt;return}for(var yr=lt[Zt],Ot=Rt/2+yr,ut=Zt+1,at=Tt-1;ut>>1;lt[xt]Kt-gr){var Vt=(Xt*Et+gt*At)/Rt;Wt(Zt,ut,At,Xt,gr,Vt,Kt),Wt(ut,Tt,Et,Vt,gr,gt,Kt)}else{var Bt=(gr*Et+Kt*At)/Rt;Wt(Zt,ut,At,Xt,gr,gt,Bt),Wt(ut,Tt,Et,Xt,Bt,gt,Kt)}}}function We(Le,Pe,je,Ce,he){(Le.depth&1?pt:be)(Le,Pe,je,Ce,he)}var Ge=function Le(Pe){function je(Ce,he,me,Ne,Ze){if((st=Ce._squarify)&&st.ratio===Pe)for(var st,lt,Wt,Zt,Tt=-1,Rt,Xt=st.length,gr=Ce.value;++Tt1?Ce:1)},je}(wt)},10132:function(G,H,e){e.d(H,{ak:function(){return h}});var m=Math.PI,P=2*m,s=1e-6,L=P-s;function S(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function v(){return new S}S.prototype=v.prototype={constructor:S,moveTo:function(T,c){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+c)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(T,c){this._+="L"+(this._x1=+T)+","+(this._y1=+c)},quadraticCurveTo:function(T,c,i,d){this._+="Q"+ +T+","+ +c+","+(this._x1=+i)+","+(this._y1=+d)},bezierCurveTo:function(T,c,i,d,x,w){this._+="C"+ +T+","+ +c+","+ +i+","+ +d+","+(this._x1=+x)+","+(this._y1=+w)},arcTo:function(T,c,i,d,x){T=+T,c=+c,i=+i,d=+d,x=+x;var w=this._x1,C=this._y1,y=i-T,E=d-c,A=w-T,o=C-c,M=A*A+o*o;if(x<0)throw new Error("negative radius: "+x);if(this._x1===null)this._+="M"+(this._x1=T)+","+(this._y1=c);else if(M>s)if(!(Math.abs(o*y-E*A)>s)||!x)this._+="L"+(this._x1=T)+","+(this._y1=c);else{var b=i-w,I=d-C,D=y*y+E*E,N=b*b+I*I,k=Math.sqrt(D),O=Math.sqrt(M),F=x*Math.tan((m-Math.acos((D+M-N)/(2*k*O)))/2),z=F/O,B=F/k;Math.abs(z-1)>s&&(this._+="L"+(T+z*A)+","+(c+z*o)),this._+="A"+x+","+x+",0,0,"+ +(o*b>A*I)+","+(this._x1=T+B*y)+","+(this._y1=c+B*E)}},arc:function(T,c,i,d,x,w){T=+T,c=+c,i=+i,w=!!w;var C=i*Math.cos(d),y=i*Math.sin(d),E=T+C,A=c+y,o=1^w,M=w?d-x:x-d;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+E+","+A:(Math.abs(this._x1-E)>s||Math.abs(this._y1-A)>s)&&(this._+="L"+E+","+A),i&&(M<0&&(M=M%P+P),M>L?this._+="A"+i+","+i+",0,1,"+o+","+(T-C)+","+(c-y)+"A"+i+","+i+",0,1,"+o+","+(this._x1=E)+","+(this._y1=A):M>s&&(this._+="A"+i+","+i+",0,"+ +(M>=m)+","+o+","+(this._x1=T+i*Math.cos(x))+","+(this._y1=c+i*Math.sin(x))))},rect:function(T,c,i,d){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+c)+"h"+ +i+"v"+ +d+"h"+-i+"Z"},toString:function(){return this._}};var p=v,r=Array.prototype.slice;function t(T){return function(){return T}}function a(T){return T[0]}function n(T){return T[1]}function f(T){return T.source}function u(T){return T.target}function l(T){var c=f,i=u,d=a,x=n,w=null;function C(){var y,E=r.call(arguments),A=c.apply(this,E),o=i.apply(this,E);if(w||(w=y=p()),T(w,+d.apply(this,(E[0]=A,E)),+x.apply(this,E),+d.apply(this,(E[0]=o,E)),+x.apply(this,E)),y)return w=null,y+""||null}return C.source=function(y){return arguments.length?(c=y,C):c},C.target=function(y){return arguments.length?(i=y,C):i},C.x=function(y){return arguments.length?(d=typeof y=="function"?y:t(+y),C):d},C.y=function(y){return arguments.length?(x=typeof y=="function"?y:t(+y),C):x},C.context=function(y){return arguments.length?(w=y??null,C):w},C}function g(T,c,i,d,x){T.moveTo(c,i),T.bezierCurveTo(c=(c+d)/2,i,c,x,d,x)}function h(){return l(g)}},94336:function(G,H,e){e.d(H,{Yn:function(){return He},m_:function(){return a},E9:function(){return We}});var m=e(8208),P=e(58931),s=e(46192),L=e(68936),S=e(32171),v=e(53528);function p(Le){if(0<=Le.y&&Le.y<100){var Pe=new Date(-1,Le.m,Le.d,Le.H,Le.M,Le.S,Le.L);return Pe.setFullYear(Le.y),Pe}return new Date(Le.y,Le.m,Le.d,Le.H,Le.M,Le.S,Le.L)}function r(Le){if(0<=Le.y&&Le.y<100){var Pe=new Date(Date.UTC(-1,Le.m,Le.d,Le.H,Le.M,Le.S,Le.L));return Pe.setUTCFullYear(Le.y),Pe}return new Date(Date.UTC(Le.y,Le.m,Le.d,Le.H,Le.M,Le.S,Le.L))}function t(Le,Pe,je){return{y:Le,m:Pe,d:je,H:0,M:0,S:0,L:0}}function a(Le){var Pe=Le.dateTime,je=Le.date,Ce=Le.time,he=Le.periods,me=Le.days,Ne=Le.shortDays,Ze=Le.months,st=Le.shortMonths,lt=T(he),Wt=c(he),Zt=T(me),Tt=c(me),Rt=T(Ne),Xt=c(Ne),gr=T(Ze),gt=c(Ze),Kt=T(st),Qt=c(st),yr={a:Ye,A:Ue,b:zt,B:Dt,c:null,d:J,e:J,f:Z,H:re,I:ne,j:le,L:$,m:ie,M:X,p:$t,q:sr,Q:Ct,s:rt,S:Q,u:oe,U:Y,V:j,w:se,W:te,x:null,X:null,y:fe,Y:ge,Z:be,"%":wt},Ot={a:cr,A:tr,b:Nt,B:ir,c:null,d:xe,e:xe,f:Re,H:_e,I:De,j:Fe,L:Te,m:Se,M:Ie,p:hr,q:xr,Q:Ct,s:rt,S:Me,u:Ve,U:et,V:ot,w:Qe,W:$e,x:null,X:null,y:ht,Y:vt,Z:pt,"%":wt},ut={a:Vt,A:Bt,b:Ut,B:Jt,c:ur,d:b,e:b,f:F,H:D,I:D,j:I,L:O,m:M,M:N,p:Et,q:o,Q:B,s:W,S:k,u:d,U:x,V:w,w:i,W:C,x:fr,X:dr,y:E,Y:y,Z:A,"%":z};yr.x=at(je,yr),yr.X=at(Ce,yr),yr.c=at(Pe,yr),Ot.x=at(je,Ot),Ot.X=at(Ce,Ot),Ot.c=at(Pe,Ot);function at(vr,Hr){return function(_r){var Dr=[],an=-1,tn=0,Sn=vr.length,Tn,Tr,zr;for(_r instanceof Date||(_r=new Date(+_r));++an53)return null;"w"in Dr||(Dr.w=1),"Z"in Dr?(tn=r(t(Dr.y,0,1)),Sn=tn.getUTCDay(),tn=Sn>4||Sn===0?m.ot.ceil(tn):(0,m.ot)(tn),tn=P.c.offset(tn,(Dr.V-1)*7),Dr.y=tn.getUTCFullYear(),Dr.m=tn.getUTCMonth(),Dr.d=tn.getUTCDate()+(Dr.w+6)%7):(tn=p(t(Dr.y,0,1)),Sn=tn.getDay(),tn=Sn>4||Sn===0?s.qT.ceil(tn):(0,s.qT)(tn),tn=L.c.offset(tn,(Dr.V-1)*7),Dr.y=tn.getFullYear(),Dr.m=tn.getMonth(),Dr.d=tn.getDate()+(Dr.w+6)%7)}else("W"in Dr||"U"in Dr)&&("w"in Dr||(Dr.w="u"in Dr?Dr.u%7:"W"in Dr?1:0),Sn="Z"in Dr?r(t(Dr.y,0,1)).getUTCDay():p(t(Dr.y,0,1)).getDay(),Dr.m=0,Dr.d="W"in Dr?(Dr.w+6)%7+Dr.W*7-(Sn+5)%7:Dr.w+Dr.U*7-(Sn+6)%7);return"Z"in Dr?(Dr.H+=Dr.Z/100|0,Dr.M+=Dr.Z%100,r(Dr)):p(Dr)}}function At(vr,Hr,_r,Dr){for(var an=0,tn=Hr.length,Sn=_r.length,Tn,Tr;an=Sn)return-1;if(Tn=Hr.charCodeAt(an++),Tn===37){if(Tn=Hr.charAt(an++),Tr=ut[Tn in n?Hr.charAt(an++):Tn],!Tr||(Dr=Tr(vr,_r,Dr))<0)return-1}else if(Tn!=_r.charCodeAt(Dr++))return-1}return Dr}function Et(vr,Hr,_r){var Dr=lt.exec(Hr.slice(_r));return Dr?(vr.p=Wt[Dr[0].toLowerCase()],_r+Dr[0].length):-1}function Vt(vr,Hr,_r){var Dr=Rt.exec(Hr.slice(_r));return Dr?(vr.w=Xt[Dr[0].toLowerCase()],_r+Dr[0].length):-1}function Bt(vr,Hr,_r){var Dr=Zt.exec(Hr.slice(_r));return Dr?(vr.w=Tt[Dr[0].toLowerCase()],_r+Dr[0].length):-1}function Ut(vr,Hr,_r){var Dr=Kt.exec(Hr.slice(_r));return Dr?(vr.m=Qt[Dr[0].toLowerCase()],_r+Dr[0].length):-1}function Jt(vr,Hr,_r){var Dr=gr.exec(Hr.slice(_r));return Dr?(vr.m=gt[Dr[0].toLowerCase()],_r+Dr[0].length):-1}function ur(vr,Hr,_r){return At(vr,Pe,Hr,_r)}function fr(vr,Hr,_r){return At(vr,je,Hr,_r)}function dr(vr,Hr,_r){return At(vr,Ce,Hr,_r)}function Ye(vr){return Ne[vr.getDay()]}function Ue(vr){return me[vr.getDay()]}function zt(vr){return st[vr.getMonth()]}function Dt(vr){return Ze[vr.getMonth()]}function $t(vr){return he[+(vr.getHours()>=12)]}function sr(vr){return 1+~~(vr.getMonth()/3)}function cr(vr){return Ne[vr.getUTCDay()]}function tr(vr){return me[vr.getUTCDay()]}function Nt(vr){return st[vr.getUTCMonth()]}function ir(vr){return Ze[vr.getUTCMonth()]}function hr(vr){return he[+(vr.getUTCHours()>=12)]}function xr(vr){return 1+~~(vr.getUTCMonth()/3)}return{format:function(vr){var Hr=at(vr+="",yr);return Hr.toString=function(){return vr},Hr},parse:function(vr){var Hr=xt(vr+="",!1);return Hr.toString=function(){return vr},Hr},utcFormat:function(vr){var Hr=at(vr+="",Ot);return Hr.toString=function(){return vr},Hr},utcParse:function(vr){var Hr=xt(vr+="",!0);return Hr.toString=function(){return vr},Hr}}}var n={"-":"",_:" ",0:"0"},f=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function g(Le,Pe,je){var Ce=Le<0?"-":"",he=(Ce?-Le:Le)+"",me=he.length;return Ce+(me68?1900:2e3),je+Ce[0].length):-1}function A(Le,Pe,je){var Ce=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Pe.slice(je,je+6));return Ce?(Le.Z=Ce[1]?0:-(Ce[2]+(Ce[3]||"00")),je+Ce[0].length):-1}function o(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+1));return Ce?(Le.q=Ce[0]*3-3,je+Ce[0].length):-1}function M(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.m=Ce[0]-1,je+Ce[0].length):-1}function b(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.d=+Ce[0],je+Ce[0].length):-1}function I(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+3));return Ce?(Le.m=0,Le.d=+Ce[0],je+Ce[0].length):-1}function D(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.H=+Ce[0],je+Ce[0].length):-1}function N(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.M=+Ce[0],je+Ce[0].length):-1}function k(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+2));return Ce?(Le.S=+Ce[0],je+Ce[0].length):-1}function O(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+3));return Ce?(Le.L=+Ce[0],je+Ce[0].length):-1}function F(Le,Pe,je){var Ce=f.exec(Pe.slice(je,je+6));return Ce?(Le.L=Math.floor(Ce[0]/1e3),je+Ce[0].length):-1}function z(Le,Pe,je){var Ce=u.exec(Pe.slice(je,je+1));return Ce?je+Ce[0].length:-1}function B(Le,Pe,je){var Ce=f.exec(Pe.slice(je));return Ce?(Le.Q=+Ce[0],je+Ce[0].length):-1}function W(Le,Pe,je){var Ce=f.exec(Pe.slice(je));return Ce?(Le.s=+Ce[0],je+Ce[0].length):-1}function J(Le,Pe){return g(Le.getDate(),Pe,2)}function re(Le,Pe){return g(Le.getHours(),Pe,2)}function ne(Le,Pe){return g(Le.getHours()%12||12,Pe,2)}function le(Le,Pe){return g(1+L.c.count((0,S.c)(Le),Le),Pe,3)}function $(Le,Pe){return g(Le.getMilliseconds(),Pe,3)}function Z(Le,Pe){return $(Le,Pe)+"000"}function ie(Le,Pe){return g(Le.getMonth()+1,Pe,2)}function X(Le,Pe){return g(Le.getMinutes(),Pe,2)}function Q(Le,Pe){return g(Le.getSeconds(),Pe,2)}function oe(Le){var Pe=Le.getDay();return Pe===0?7:Pe}function Y(Le,Pe){return g(s.uU.count((0,S.c)(Le)-1,Le),Pe,2)}function j(Le,Pe){var je=Le.getDay();return Le=je>=4||je===0?(0,s.kD)(Le):s.kD.ceil(Le),g(s.kD.count((0,S.c)(Le),Le)+((0,S.c)(Le).getDay()===4),Pe,2)}function se(Le){return Le.getDay()}function te(Le,Pe){return g(s.qT.count((0,S.c)(Le)-1,Le),Pe,2)}function fe(Le,Pe){return g(Le.getFullYear()%100,Pe,2)}function ge(Le,Pe){return g(Le.getFullYear()%1e4,Pe,4)}function be(Le){var Pe=Le.getTimezoneOffset();return(Pe>0?"-":(Pe*=-1,"+"))+g(Pe/60|0,"0",2)+g(Pe%60,"0",2)}function xe(Le,Pe){return g(Le.getUTCDate(),Pe,2)}function _e(Le,Pe){return g(Le.getUTCHours(),Pe,2)}function De(Le,Pe){return g(Le.getUTCHours()%12||12,Pe,2)}function Fe(Le,Pe){return g(1+P.c.count((0,v.c)(Le),Le),Pe,3)}function Te(Le,Pe){return g(Le.getUTCMilliseconds(),Pe,3)}function Re(Le,Pe){return Te(Le,Pe)+"000"}function Se(Le,Pe){return g(Le.getUTCMonth()+1,Pe,2)}function Ie(Le,Pe){return g(Le.getUTCMinutes(),Pe,2)}function Me(Le,Pe){return g(Le.getUTCSeconds(),Pe,2)}function Ve(Le){var Pe=Le.getUTCDay();return Pe===0?7:Pe}function et(Le,Pe){return g(m.EV.count((0,v.c)(Le)-1,Le),Pe,2)}function ot(Le,Pe){var je=Le.getUTCDay();return Le=je>=4||je===0?(0,m.yA)(Le):m.yA.ceil(Le),g(m.yA.count((0,v.c)(Le),Le)+((0,v.c)(Le).getUTCDay()===4),Pe,2)}function Qe(Le){return Le.getUTCDay()}function $e(Le,Pe){return g(m.ot.count((0,v.c)(Le)-1,Le),Pe,2)}function ht(Le,Pe){return g(Le.getUTCFullYear()%100,Pe,2)}function vt(Le,Pe){return g(Le.getUTCFullYear()%1e4,Pe,4)}function pt(){return"+0000"}function wt(){return"%"}function Ct(Le){return+Le}function rt(Le){return Math.floor(+Le/1e3)}var ze,He,We;Ge({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 Ge(Le){return ze=a(Le),He=ze.format,ze.parse,We=ze.utcFormat,ze.utcParse,ze}},68936:function(G,H,e){e.d(H,{m:function(){return L}});var m=e(81628),P=e(69792),s=(0,m.c)(function(S){S.setHours(0,0,0,0)},function(S,v){S.setDate(S.getDate()+v)},function(S,v){return(v-S-(v.getTimezoneOffset()-S.getTimezoneOffset())*P.iy)/P.SK},function(S){return S.getDate()-1});H.c=s;var L=s.range},69792:function(G,H,e){e.d(H,{KK:function(){return S},SK:function(){return L},cg:function(){return s},iy:function(){return P},yc:function(){return m}});var m=1e3,P=6e4,s=36e5,L=864e5,S=6048e5},73220:function(G,H,e){e.r(H),e.d(H,{timeDay:function(){return g.c},timeDays:function(){return g.m},timeFriday:function(){return h.iB},timeFridays:function(){return h.sJ},timeHour:function(){return u},timeHours:function(){return l},timeInterval:function(){return m.c},timeMillisecond:function(){return s},timeMilliseconds:function(){return L},timeMinute:function(){return a},timeMinutes:function(){return n},timeMonday:function(){return h.qT},timeMondays:function(){return h.QP},timeMonth:function(){return c},timeMonths:function(){return i},timeSaturday:function(){return h.Wc},timeSaturdays:function(){return h.aI},timeSecond:function(){return p},timeSeconds:function(){return r},timeSunday:function(){return h.uU},timeSundays:function(){return h.Ab},timeThursday:function(){return h.kD},timeThursdays:function(){return h.eC},timeTuesday:function(){return h.Mf},timeTuesdays:function(){return h.Oc},timeWednesday:function(){return h.eg},timeWednesdays:function(){return h.sn},timeWeek:function(){return h.uU},timeWeeks:function(){return h.Ab},timeYear:function(){return d.c},timeYears:function(){return d.Q},utcDay:function(){return o.c},utcDays:function(){return o.o},utcFriday:function(){return M.od},utcFridays:function(){return M.iG},utcHour:function(){return E},utcHours:function(){return A},utcMillisecond:function(){return s},utcMilliseconds:function(){return L},utcMinute:function(){return w},utcMinutes:function(){return C},utcMonday:function(){return M.ot},utcMondays:function(){return M.iO},utcMonth:function(){return I},utcMonths:function(){return D},utcSaturday:function(){return M.Ad},utcSaturdays:function(){return M.K8},utcSecond:function(){return p},utcSeconds:function(){return r},utcSunday:function(){return M.EV},utcSundays:function(){return M.Wq},utcThursday:function(){return M.yA},utcThursdays:function(){return M.ob},utcTuesday:function(){return M.sG},utcTuesdays:function(){return M.kl},utcWednesday:function(){return M._6},utcWednesdays:function(){return M.W_},utcWeek:function(){return M.EV},utcWeeks:function(){return M.Wq},utcYear:function(){return N.c},utcYears:function(){return N.i}});var m=e(81628),P=(0,m.c)(function(){},function(k,O){k.setTime(+k+O)},function(k,O){return O-k});P.every=function(k){return k=Math.floor(k),!isFinite(k)||!(k>0)?null:k>1?(0,m.c)(function(O){O.setTime(Math.floor(O/k)*k)},function(O,F){O.setTime(+O+F*k)},function(O,F){return(F-O)/k}):P};var s=P,L=P.range,S=e(69792),v=(0,m.c)(function(k){k.setTime(k-k.getMilliseconds())},function(k,O){k.setTime(+k+O*S.yc)},function(k,O){return(O-k)/S.yc},function(k){return k.getUTCSeconds()}),p=v,r=v.range,t=(0,m.c)(function(k){k.setTime(k-k.getMilliseconds()-k.getSeconds()*S.yc)},function(k,O){k.setTime(+k+O*S.iy)},function(k,O){return(O-k)/S.iy},function(k){return k.getMinutes()}),a=t,n=t.range,f=(0,m.c)(function(k){k.setTime(k-k.getMilliseconds()-k.getSeconds()*S.yc-k.getMinutes()*S.iy)},function(k,O){k.setTime(+k+O*S.cg)},function(k,O){return(O-k)/S.cg},function(k){return k.getHours()}),u=f,l=f.range,g=e(68936),h=e(46192),T=(0,m.c)(function(k){k.setDate(1),k.setHours(0,0,0,0)},function(k,O){k.setMonth(k.getMonth()+O)},function(k,O){return O.getMonth()-k.getMonth()+(O.getFullYear()-k.getFullYear())*12},function(k){return k.getMonth()}),c=T,i=T.range,d=e(32171),x=(0,m.c)(function(k){k.setUTCSeconds(0,0)},function(k,O){k.setTime(+k+O*S.iy)},function(k,O){return(O-k)/S.iy},function(k){return k.getUTCMinutes()}),w=x,C=x.range,y=(0,m.c)(function(k){k.setUTCMinutes(0,0,0)},function(k,O){k.setTime(+k+O*S.cg)},function(k,O){return(O-k)/S.cg},function(k){return k.getUTCHours()}),E=y,A=y.range,o=e(58931),M=e(8208),b=(0,m.c)(function(k){k.setUTCDate(1),k.setUTCHours(0,0,0,0)},function(k,O){k.setUTCMonth(k.getUTCMonth()+O)},function(k,O){return O.getUTCMonth()-k.getUTCMonth()+(O.getUTCFullYear()-k.getUTCFullYear())*12},function(k){return k.getUTCMonth()}),I=b,D=b.range,N=e(53528)},81628:function(G,H,e){e.d(H,{c:function(){return s}});var m=new Date,P=new Date;function s(L,S,v,p){function r(t){return L(t=arguments.length===0?new Date:new Date(+t)),t}return r.floor=function(t){return L(t=new Date(+t)),t},r.ceil=function(t){return L(t=new Date(t-1)),S(t,1),L(t),t},r.round=function(t){var a=r(t),n=r.ceil(t);return t-a0))return f;do f.push(u=new Date(+t)),S(t,n),L(t);while(u=a)for(;L(a),!t(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;S(a,-1),!t(a););else for(;--n>=0;)for(;S(a,1),!t(a););})},v&&(r.count=function(t,a){return m.setTime(+t),P.setTime(+a),L(m),L(P),Math.floor(v(m,P))},r.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?r.filter(p?function(a){return p(a)%t===0}:function(a){return r.count(0,a)%t===0}):r}),r}},58931:function(G,H,e){e.d(H,{o:function(){return L}});var m=e(81628),P=e(69792),s=(0,m.c)(function(S){S.setUTCHours(0,0,0,0)},function(S,v){S.setUTCDate(S.getUTCDate()+v)},function(S,v){return(v-S)/P.SK},function(S){return S.getUTCDate()-1});H.c=s;var L=s.range},8208:function(G,H,e){e.d(H,{Ad:function(){return a},EV:function(){return L},K8:function(){return T},W_:function(){return l},Wq:function(){return n},_6:function(){return p},iG:function(){return h},iO:function(){return f},kl:function(){return u},ob:function(){return g},od:function(){return t},ot:function(){return S},sG:function(){return v},yA:function(){return r}});var m=e(81628),P=e(69792);function s(c){return(0,m.c)(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-c)%7),i.setUTCHours(0,0,0,0)},function(i,d){i.setUTCDate(i.getUTCDate()+d*7)},function(i,d){return(d-i)/P.KK})}var L=s(0),S=s(1),v=s(2),p=s(3),r=s(4),t=s(5),a=s(6),n=L.range,f=S.range,u=v.range,l=p.range,g=r.range,h=t.range,T=a.range},53528:function(G,H,e){e.d(H,{i:function(){return s}});var m=e(81628),P=(0,m.c)(function(L){L.setUTCMonth(0,1),L.setUTCHours(0,0,0,0)},function(L,S){L.setUTCFullYear(L.getUTCFullYear()+S)},function(L,S){return S.getUTCFullYear()-L.getUTCFullYear()},function(L){return L.getUTCFullYear()});P.every=function(L){return!isFinite(L=Math.floor(L))||!(L>0)?null:(0,m.c)(function(S){S.setUTCFullYear(Math.floor(S.getUTCFullYear()/L)*L),S.setUTCMonth(0,1),S.setUTCHours(0,0,0,0)},function(S,v){S.setUTCFullYear(S.getUTCFullYear()+v*L)})},H.c=P;var s=P.range},46192:function(G,H,e){e.d(H,{Ab:function(){return n},Mf:function(){return v},Oc:function(){return u},QP:function(){return f},Wc:function(){return a},aI:function(){return T},eC:function(){return g},eg:function(){return p},iB:function(){return t},kD:function(){return r},qT:function(){return S},sJ:function(){return h},sn:function(){return l},uU:function(){return L}});var m=e(81628),P=e(69792);function s(c){return(0,m.c)(function(i){i.setDate(i.getDate()-(i.getDay()+7-c)%7),i.setHours(0,0,0,0)},function(i,d){i.setDate(i.getDate()+d*7)},function(i,d){return(d-i-(d.getTimezoneOffset()-i.getTimezoneOffset())*P.iy)/P.KK})}var L=s(0),S=s(1),v=s(2),p=s(3),r=s(4),t=s(5),a=s(6),n=L.range,f=S.range,u=v.range,l=p.range,g=r.range,h=t.range,T=a.range},32171:function(G,H,e){e.d(H,{Q:function(){return s}});var m=e(81628),P=(0,m.c)(function(L){L.setMonth(0,1),L.setHours(0,0,0,0)},function(L,S){L.setFullYear(L.getFullYear()+S)},function(L,S){return S.getFullYear()-L.getFullYear()},function(L){return L.getFullYear()});P.every=function(L){return!isFinite(L=Math.floor(L))||!(L>0)?null:(0,m.c)(function(S){S.setFullYear(Math.floor(S.getFullYear()/L)*L),S.setMonth(0,1),S.setHours(0,0,0,0)},function(S,v){S.setFullYear(S.getFullYear()+v*L)})},H.c=P;var s=P.range},64348:function(G,H,e){var m=e(39640)(),P=e(53664),s=m&&P("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch{s=!1}var L=P("%SyntaxError%"),S=P("%TypeError%"),v=e(2304);G.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new S("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new S("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new S("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new S("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new S("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new S("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,g=!!v&&v(r,t);if(s)s(r,t,{configurable:u===null&&g?g.configurable:!u,enumerable:n===null&&g?g.enumerable:!n,value:a,writable:f===null&&g?g.writable:!f});else if(l||!n&&!f&&!u)r[t]=a;else throw new L("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}},81288:function(G,H,e){var m=e(41820),P=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s=Object.prototype.toString,L=Array.prototype.concat,S=Object.defineProperty,v=function(n){return typeof n=="function"&&s.call(n)==="[object Function]"},p=e(39640)(),r=S&&p,t=function(n,f,u,l){if(f in n){if(l===!0){if(n[f]===u)return}else if(!v(l)||!l())return}r?S(n,f,{configurable:!0,enumerable:!1,value:u,writable:!0}):n[f]=u},a=function(n,f){var u=arguments.length>2?arguments[2]:{},l=m(f);P&&(l=L.call(l,Object.getOwnPropertySymbols(f)));for(var g=0;gr*t){var l=(u-f)/r;v[n]=l*1e3}}return v}function s(L){for(var S=[],v=L[0];v<=L[1];v++)for(var p=String.fromCharCode(v),r=L[0];r"u"&&(s=0),typeof P){case"number":if(P>0)return e(P|0,s);break;case"object":if(typeof P.length=="number")return H(P,s,0);break}return[]}G.exports=m},28912:function(G){G.exports=H,G.exports.default=H;function H(D,N,k){k=k||2;var O=N&&N.length,F=O?N[0]*k:D.length,z=e(D,0,F,k,!0),B=[];if(!z||z.next===z.prev)return B;var W,J,re,ne,le,$,Z;if(O&&(z=p(D,N,z,k)),D.length>80*k){W=re=D[0],J=ne=D[1];for(var ie=k;iere&&(re=le),$>ne&&(ne=$);Z=Math.max(re-W,ne-J),Z=Z!==0?1/Z:0}return P(z,B,k,W,J,Z),B}function e(D,N,k,O,F){var z,B;if(F===I(D,N,k,O)>0)for(z=N;z=N;z-=O)B=o(z,D[z],D[z+1],B);return B&&i(B,B.next)&&(M(B),B=B.next),B}function m(D,N){if(!D)return D;N||(N=D);var k=D,O;do if(O=!1,!k.steiner&&(i(k,k.next)||c(k.prev,k,k.next)===0)){if(M(k),k=N=k.prev,k===k.next)break;O=!0}else k=k.next;while(O||k!==N);return N}function P(D,N,k,O,F,z,B){if(D){!B&&z&&f(D,O,F,z);for(var W=D,J,re;D.prev!==D.next;){if(J=D.prev,re=D.next,z?L(D,O,F,z):s(D)){N.push(J.i/k),N.push(D.i/k),N.push(re.i/k),M(D),D=re.next,W=re.next;continue}if(D=re,D===W){B?B===1?(D=S(m(D),N,k),P(D,N,k,O,F,z,2)):B===2&&v(D,N,k,O,F,z):P(m(D),N,k,O,F,z,1);break}}}}function s(D){var N=D.prev,k=D,O=D.next;if(c(N,k,O)>=0)return!1;for(var F=D.next.next;F!==D.prev;){if(h(N.x,N.y,k.x,k.y,O.x,O.y,F.x,F.y)&&c(F.prev,F,F.next)>=0)return!1;F=F.next}return!0}function L(D,N,k,O){var F=D.prev,z=D,B=D.next;if(c(F,z,B)>=0)return!1;for(var W=F.xz.x?F.x>B.x?F.x:B.x:z.x>B.x?z.x:B.x,ne=F.y>z.y?F.y>B.y?F.y:B.y:z.y>B.y?z.y:B.y,le=l(W,J,N,k,O),$=l(re,ne,N,k,O),Z=D.prevZ,ie=D.nextZ;Z&&Z.z>=le&&ie&&ie.z<=$;){if(Z!==D.prev&&Z!==D.next&&h(F.x,F.y,z.x,z.y,B.x,B.y,Z.x,Z.y)&&c(Z.prev,Z,Z.next)>=0||(Z=Z.prevZ,ie!==D.prev&&ie!==D.next&&h(F.x,F.y,z.x,z.y,B.x,B.y,ie.x,ie.y)&&c(ie.prev,ie,ie.next)>=0))return!1;ie=ie.nextZ}for(;Z&&Z.z>=le;){if(Z!==D.prev&&Z!==D.next&&h(F.x,F.y,z.x,z.y,B.x,B.y,Z.x,Z.y)&&c(Z.prev,Z,Z.next)>=0)return!1;Z=Z.prevZ}for(;ie&&ie.z<=$;){if(ie!==D.prev&&ie!==D.next&&h(F.x,F.y,z.x,z.y,B.x,B.y,ie.x,ie.y)&&c(ie.prev,ie,ie.next)>=0)return!1;ie=ie.nextZ}return!0}function S(D,N,k){var O=D;do{var F=O.prev,z=O.next.next;!i(F,z)&&d(F,O,O.next,z)&&y(F,z)&&y(z,F)&&(N.push(F.i/k),N.push(O.i/k),N.push(z.i/k),M(O),M(O.next),O=D=z),O=O.next}while(O!==D);return m(O)}function v(D,N,k,O,F,z){var B=D;do{for(var W=B.next.next;W!==B.prev;){if(B.i!==W.i&&T(B,W)){var J=A(B,W);B=m(B,B.next),J=m(J,J.next),P(B,N,k,O,F,z),P(J,N,k,O,F,z);return}W=W.next}B=B.next}while(B!==D)}function p(D,N,k,O){var F=[],z,B,W,J,re;for(z=0,B=N.length;z=k.next.y&&k.next.y!==k.y){var W=k.x+(F-k.y)*(k.next.x-k.x)/(k.next.y-k.y);if(W<=O&&W>z){if(z=W,W===O){if(F===k.y)return k;if(F===k.next.y)return k.next}B=k.x=k.x&&k.x>=re&&O!==k.x&&h(FB.x||k.x===B.x&&n(B,k)))&&(B=k,le=$)),k=k.next;while(k!==J);return B}function n(D,N){return c(D.prev,D,N.prev)<0&&c(N.next,D,D.next)<0}function f(D,N,k,O){var F=D;do F.z===null&&(F.z=l(F.x,F.y,N,k,O)),F.prevZ=F.prev,F.nextZ=F.next,F=F.next;while(F!==D);F.prevZ.nextZ=null,F.prevZ=null,u(F)}function u(D){var N,k,O,F,z,B,W,J,re=1;do{for(k=D,D=null,z=null,B=0;k;){for(B++,O=k,W=0,N=0;N0||J>0&&O;)W!==0&&(J===0||!O||k.z<=O.z)?(F=k,k=k.nextZ,W--):(F=O,O=O.nextZ,J--),z?z.nextZ=F:D=F,F.prevZ=z,z=F;k=O}z.nextZ=null,re*=2}while(B>1);return D}function l(D,N,k,O,F){return D=32767*(D-k)*F,N=32767*(N-O)*F,D=(D|D<<8)&16711935,D=(D|D<<4)&252645135,D=(D|D<<2)&858993459,D=(D|D<<1)&1431655765,N=(N|N<<8)&16711935,N=(N|N<<4)&252645135,N=(N|N<<2)&858993459,N=(N|N<<1)&1431655765,D|N<<1}function g(D){var N=D,k=D;do(N.x=0&&(D-B)*(O-W)-(k-B)*(N-W)>=0&&(k-B)*(z-W)-(F-B)*(O-W)>=0}function T(D,N){return D.next.i!==N.i&&D.prev.i!==N.i&&!C(D,N)&&(y(D,N)&&y(N,D)&&E(D,N)&&(c(D.prev,D,N.prev)||c(D,N.prev,N))||i(D,N)&&c(D.prev,D,D.next)>0&&c(N.prev,N,N.next)>0)}function c(D,N,k){return(N.y-D.y)*(k.x-N.x)-(N.x-D.x)*(k.y-N.y)}function i(D,N){return D.x===N.x&&D.y===N.y}function d(D,N,k,O){var F=w(c(D,N,k)),z=w(c(D,N,O)),B=w(c(k,O,D)),W=w(c(k,O,N));return!!(F!==z&&B!==W||F===0&&x(D,k,N)||z===0&&x(D,O,N)||B===0&&x(k,D,O)||W===0&&x(k,N,O))}function x(D,N,k){return N.x<=Math.max(D.x,k.x)&&N.x>=Math.min(D.x,k.x)&&N.y<=Math.max(D.y,k.y)&&N.y>=Math.min(D.y,k.y)}function w(D){return D>0?1:D<0?-1:0}function C(D,N){var k=D;do{if(k.i!==D.i&&k.next.i!==D.i&&k.i!==N.i&&k.next.i!==N.i&&d(k,k.next,D,N))return!0;k=k.next}while(k!==D);return!1}function y(D,N){return c(D.prev,D,D.next)<0?c(D,N,D.next)>=0&&c(D,D.prev,N)>=0:c(D,N,D.prev)<0||c(D,D.next,N)<0}function E(D,N){var k=D,O=!1,F=(D.x+N.x)/2,z=(D.y+N.y)/2;do k.y>z!=k.next.y>z&&k.next.y!==k.y&&F<(k.next.x-k.x)*(z-k.y)/(k.next.y-k.y)+k.x&&(O=!O),k=k.next;while(k!==D);return O}function A(D,N){var k=new b(D.i,D.x,D.y),O=new b(N.i,N.x,N.y),F=D.next,z=N.prev;return D.next=N,N.prev=D,k.next=F,F.prev=k,O.next=k,k.prev=O,z.next=O,O.prev=z,O}function o(D,N,k,O){var F=new b(D,N,k);return O?(F.next=O.next,F.prev=O,O.next.prev=F,O.next=F):(F.prev=F,F.next=F),F}function M(D){D.next.prev=D.prev,D.prev.next=D.next,D.prevZ&&(D.prevZ.nextZ=D.nextZ),D.nextZ&&(D.nextZ.prevZ=D.prevZ)}function b(D,N,k){this.i=D,this.x=N,this.y=k,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}H.deviation=function(D,N,k,O){var F=N&&N.length,z=F?N[0]*k:D.length,B=Math.abs(I(D,0,z,k));if(F)for(var W=0,J=N.length;W0&&(O+=D[F-1].length,k.holes.push(O))}return k}},6688:function(G,H,e){var m=e(78484);G.exports=function(s,L){var S=[],v=[],p=[],r={},t=[],a;function n(x){p[x]=!1,r.hasOwnProperty(x)&&Object.keys(r[x]).forEach(function(w){delete r[x][w],p[w]&&n(w)})}function f(x){var w=!1;v.push(x),p[x]=!0;var C,y;for(C=0;C=x})}function g(x){l(x);for(var w=s,C=m(w),y=C.components.filter(function(D){return D.length>1}),E=1/0,A,o=0;o=55296&&x<=56319&&(E+=u[++T])),E=l?a.call(l,g,E,c):E,h?(n.value=E,f(i,c,n)):i[c]=E,++c;d=c}}if(d===void 0)for(d=L(u.length),h&&(i=new h(d)),T=0;T0?1:-1}},96936:function(G,H,e){var m=e(85608),P=Math.abs,s=Math.floor;G.exports=function(L){return isNaN(L)?0:(L=Number(L),L===0||!isFinite(L)?L:m(L)*s(P(L)))}},81304:function(G,H,e){var m=e(96936),P=Math.max;G.exports=function(s){return P(0,m(s))}},14428:function(G,H,e){var m=e(34044),P=e(9252),s=Function.prototype.bind,L=Function.prototype.call,S=Object.keys,v=Object.prototype.propertyIsEnumerable;G.exports=function(p,r){return function(t,a){var n,f=arguments[2],u=arguments[3];return t=Object(P(t)),m(a),n=S(t),u&&n.sort(typeof u=="function"?s.call(u,t):void 0),typeof p!="function"&&(p=n[p]),L.call(p,n,function(l,g){return v.call(t,l)?L.call(a,f,t[l],l,t,g):r})}}},38452:function(G,H,e){G.exports=e(96276)()?Object.assign:e(81892)},96276:function(G){G.exports=function(){var H=Object.assign,e;return typeof H!="function"?!1:(e={foo:"raz"},H(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},81892:function(G,H,e){var m=e(54768),P=e(9252),s=Math.max;G.exports=function(L,S){var v,p,r=s(arguments.length,2),t;for(L=Object(P(L)),t=function(a){try{L[a]=S[a]}catch(n){v||(v=n)}},p=1;p-1}},29768:function(G){var H=Object.prototype.toString,e=H.call("");G.exports=function(m){return typeof m=="string"||m&&typeof m=="object"&&(m instanceof String||H.call(m)===e)||!1}},82252:function(G){var H=Object.create(null),e=Math.random;G.exports=function(){var m;do m=e().toString(36).slice(2);while(H[m]);return m}},52104:function(G,H,e){var m=e(69932),P=e(71056),s=e(21092),L=e(92664),S=e(85512),v=Object.defineProperty,p;p=G.exports=function(r,t){if(!(this instanceof p))throw new TypeError("Constructor requires 'new'");S.call(this,r),t?P.call(t,"key+value")?t="key+value":P.call(t,"key")?t="key":t="value":t="value",v(this,"__kind__",s("",t))},m&&m(p,S),delete p.prototype.constructor,p.prototype=Object.create(S.prototype,{_resolve:s(function(r){return this.__kind__==="value"?this.__list__[r]:this.__kind__==="key+value"?[r,this.__list__[r]]:r})}),v(p.prototype,L.toStringTag,s("c","Array Iterator"))},76024:function(G,H,e){var m=e(60948),P=e(34044),s=e(29768),L=e(76252),S=Array.isArray,v=Function.prototype.call,p=Array.prototype.some;G.exports=function(r,t){var a,n=arguments[2],f,u,l,g,h,T,c;if(S(r)||m(r)?a="array":s(r)?a="string":r=L(r),P(t),u=function(){l=!0},a==="array"){p.call(r,function(i){return v.call(t,n,i,u),l});return}if(a==="string"){for(h=r.length,g=0;g=55296&&c<=56319&&(T+=r[++g])),v.call(t,n,T,u),!l);++g);return}for(f=r.next();!f.done;){if(v.call(t,n,f.value,u),l)return;f=r.next()}}},76252:function(G,H,e){var m=e(60948),P=e(29768),s=e(52104),L=e(80940),S=e(52891),v=e(92664).iterator;G.exports=function(p){return typeof S(p)[v]=="function"?p[v]():m(p)?new s(p):P(p)?new L(p):new s(p)}},85512:function(G,H,e){var m=e(41476),P=e(38452),s=e(34044),L=e(9252),S=e(21092),v=e(27940),p=e(92664),r=Object.defineProperty,t=Object.defineProperties,a;G.exports=a=function(n,f){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");t(this,{__list__:S("w",L(n)),__context__:S("w",f),__nextIndex__:S("w",0)}),f&&(s(f.on),f.on("_add",this._onAdd),f.on("_delete",this._onDelete),f.on("_clear",this._onClear))},delete a.prototype.constructor,t(a.prototype,P({_next:S(function(){var n;if(this.__list__){if(this.__redo__&&(n=this.__redo__.shift(),n!==void 0))return n;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){r(this,"__redo__",S("c",[n]));return}this.__redo__.forEach(function(f,u){f>=n&&(this.__redo__[u]=++f)},this),this.__redo__.push(n)}}),_onDelete:S(function(n){var f;n>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(f=this.__redo__.indexOf(n),f!==-1&&this.__redo__.splice(f,1),this.__redo__.forEach(function(u,l){u>n&&(this.__redo__[l]=--u)},this)))}),_onClear:S(function(){this.__redo__&&m.call(this.__redo__),this.__nextIndex__=0})}))),r(a.prototype,p.iterator,S(function(){return this}))},76368:function(G,H,e){var m=e(60948),P=e(42584),s=e(29768),L=e(92664).iterator,S=Array.isArray;G.exports=function(v){return P(v)?S(v)||s(v)||m(v)?!0:typeof v[L]=="function":!1}},80940:function(G,H,e){var m=e(69932),P=e(21092),s=e(92664),L=e(85512),S=Object.defineProperty,v;v=G.exports=function(p){if(!(this instanceof v))throw new TypeError("Constructor requires 'new'");p=String(p),L.call(this,p),S(this,"__length__",P("",p.length))},m&&m(v,L),delete v.prototype.constructor,v.prototype=Object.create(L.prototype,{_next:P(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})}),S(v.prototype,s.toStringTag,P("c","String Iterator"))},52891:function(G,H,e){var m=e(76368);G.exports=function(P){if(!m(P))throw new TypeError(P+" is not iterable");return P}},60964:function(G){function H(m,P){if(m==null)throw new TypeError("Cannot convert first argument to object");for(var s=Object(m),L=1;L0&&(E=x[0]),E instanceof Error)throw E;var A=new Error("Unhandled error."+(E?" ("+E.message+")":""));throw A.context=E,A}var o=y[d];if(o===void 0)return!1;if(typeof o=="function")e(o,this,x);else for(var M=o.length,b=u(o,M),w=0;w0&&E.length>C&&!E.warned){E.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+E.length+" "+String(d)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=i,A.type=d,A.count=E.length,P(A)}return i}L.prototype.addListener=function(d,x){return r(this,d,x,!1)},L.prototype.on=L.prototype.addListener,L.prototype.prependListener=function(d,x){return r(this,d,x,!0)};function t(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function a(i,d,x){var w={fired:!1,wrapFn:void 0,target:i,type:d,listener:x},C=t.bind(w);return C.listener=x,w.wrapFn=C,C}L.prototype.once=function(d,x){return v(x),this.on(d,a(this,d,x)),this},L.prototype.prependOnceListener=function(d,x){return v(x),this.prependListener(d,a(this,d,x)),this},L.prototype.removeListener=function(d,x){var w,C,y,E,A;if(v(x),C=this._events,C===void 0)return this;if(w=C[d],w===void 0)return this;if(w===x||w.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete C[d],C.removeListener&&this.emit("removeListener",d,w.listener||x));else if(typeof w!="function"){for(y=-1,E=w.length-1;E>=0;E--)if(w[E]===x||w[E].listener===x){A=w[E].listener,y=E;break}if(y<0)return this;y===0?w.shift():l(w,y),w.length===1&&(C[d]=w[0]),C.removeListener!==void 0&&this.emit("removeListener",d,A||x)}return this},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(d){var x,w,C;if(w=this._events,w===void 0)return this;if(w.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):w[d]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete w[d]),this;if(arguments.length===0){var y=Object.keys(w),E;for(C=0;C=0;C--)this.removeListener(d,x[C]);return this};function n(i,d,x){var w=i._events;if(w===void 0)return[];var C=w[d];return C===void 0?[]:typeof C=="function"?x?[C.listener||C]:[C]:x?g(C):u(C,C.length)}L.prototype.listeners=function(d){return n(this,d,!0)},L.prototype.rawListeners=function(d){return n(this,d,!1)},L.listenerCount=function(i,d){return typeof i.listenerCount=="function"?i.listenerCount(d):f.call(i,d)},L.prototype.listenerCount=f;function f(i){var d=this._events;if(d!==void 0){var x=d[i];if(typeof x=="function")return 1;if(x!==void 0)return x.length}return 0}L.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]};function u(i,d){for(var x=new Array(d),w=0;wS[0]-r[0]/2&&(l=r[0]/2,g+=r[1]);return v}},71920:function(G){G.exports=H,H.canvas=document.createElement("canvas"),H.cache={};function H(t,L){L||(L={}),(typeof t=="string"||Array.isArray(t))&&(L.family=t);var S=Array.isArray(L.family)?L.family.join(", "):L.family;if(!S)throw Error("`family` must be defined");var v=L.size||L.fontSize||L.em||48,p=L.weight||L.fontWeight||"",r=L.style||L.fontStyle||"",t=[r,p,v].join(" ")+"px "+S,a=L.origin||"top";if(H.cache[S]&&v<=H.cache[S].em)return e(H.cache[S],a);var n=L.canvas||H.canvas,f=n.getContext("2d"),u={upper:L.upper!==void 0?L.upper:"H",lower:L.lower!==void 0?L.lower:"x",descent:L.descent!==void 0?L.descent:"p",ascent:L.ascent!==void 0?L.ascent:"h",tittle:L.tittle!==void 0?L.tittle:"i",overshoot:L.overshoot!==void 0?L.overshoot:"O"},l=Math.ceil(v*1.5);n.height=l,n.width=l*.5,f.font=t;var g="H",h={top:0};f.clearRect(0,0,l,l),f.textBaseline="top",f.fillStyle="black",f.fillText(g,0,0);var T=m(f.getImageData(0,0,l,l));f.clearRect(0,0,l,l),f.textBaseline="bottom",f.fillText(g,0,l);var c=m(f.getImageData(0,0,l,l));h.lineHeight=h.bottom=l-c+T,f.clearRect(0,0,l,l),f.textBaseline="alphabetic",f.fillText(g,0,l);var i=m(f.getImageData(0,0,l,l)),d=l-i-1+T;h.baseline=h.alphabetic=d,f.clearRect(0,0,l,l),f.textBaseline="middle",f.fillText(g,0,l*.5);var x=m(f.getImageData(0,0,l,l));h.median=h.middle=l-x-1+T-l*.5,f.clearRect(0,0,l,l),f.textBaseline="hanging",f.fillText(g,0,l*.5);var w=m(f.getImageData(0,0,l,l));h.hanging=l-w-1+T-l*.5,f.clearRect(0,0,l,l),f.textBaseline="ideographic",f.fillText(g,0,l);var C=m(f.getImageData(0,0,l,l));if(h.ideographic=l-C-1+T,u.upper&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.upper,0,0),h.upper=m(f.getImageData(0,0,l,l)),h.capHeight=h.baseline-h.upper),u.lower&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.lower,0,0),h.lower=m(f.getImageData(0,0,l,l)),h.xHeight=h.baseline-h.lower),u.tittle&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.tittle,0,0),h.tittle=m(f.getImageData(0,0,l,l))),u.ascent&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.ascent,0,0),h.ascent=m(f.getImageData(0,0,l,l))),u.descent&&(f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.descent,0,0),h.descent=P(f.getImageData(0,0,l,l))),u.overshoot){f.clearRect(0,0,l,l),f.textBaseline="top",f.fillText(u.overshoot,0,0);var y=P(f.getImageData(0,0,l,l));h.overshoot=y-d}for(var E in h)h[E]/=v;return h.em=v,H.cache[S]=h,e(h,a)}function e(s,L){var S={};typeof L=="string"&&(L=s[L]);for(var v in s)v!=="em"&&(S[v]=s[v]-L);return S}function m(s){for(var L=s.height,S=s.data,v=3;v0;v-=4)if(S[v]!==0)return Math.floor((v-3)*.25/L)}},46492:function(G,H,e){var m=e(90720),P=Object.prototype.toString,s=Object.prototype.hasOwnProperty,L=function(t,a,n){for(var f=0,u=t.length;f=3&&(f=n),P.call(t)==="[object Array]"?L(t,a,f):typeof t=="string"?S(t,a,f):v(t,a,f)};G.exports=p},74336:function(G){var H="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,m=Math.max,P="[object Function]",s=function(p,r){for(var t=[],a=0;a"u"&&!m.canvas)return null;var P=m.canvas||document.createElement("canvas");typeof m.width=="number"&&(P.width=m.width),typeof m.height=="number"&&(P.height=m.height);var s=m,L;try{var S=[e];e.indexOf("webgl")===0&&S.push("experimental-"+e);for(var v=0;v"u"||!n?m:n(Uint8Array),l={"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":t&&n?n([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":f,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":t&&n?n(n([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!t||!n?m:n(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!t||!n?m:n(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":t&&n?n(""[Symbol.iterator]()):m,"%Symbol%":t?Symbol:m,"%SyntaxError%":P,"%ThrowTypeError%":r,"%TypedArray%":u,"%TypeError%":L,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet};if(n)try{null.error}catch(b){var g=n(n(b));l["%Error.prototype%"]=g}var h=function b(I){var D;if(I==="%AsyncFunction%")D=S("async function () {}");else if(I==="%GeneratorFunction%")D=S("function* () {}");else if(I==="%AsyncGeneratorFunction%")D=S("async function* () {}");else if(I==="%AsyncGenerator%"){var N=b("%AsyncGeneratorFunction%");N&&(D=N.prototype)}else if(I==="%AsyncIteratorPrototype%"){var k=b("%AsyncGenerator%");k&&n&&(D=n(k.prototype))}return l[I]=D,D},T={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=e(8844),i=e(92064),d=c.call(Function.call,Array.prototype.concat),x=c.call(Function.apply,Array.prototype.splice),w=c.call(Function.call,String.prototype.replace),C=c.call(Function.call,String.prototype.slice),y=c.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,o=function(I){var D=C(I,0,1),N=C(I,-1);if(D==="%"&&N!=="%")throw new P("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&D!=="%")throw new P("invalid intrinsic syntax, expected opening `%`");var k=[];return w(I,E,function(O,F,z,B){k[k.length]=z?w(B,A,"$1"):F||O}),k},M=function(I,D){var N=I,k;if(i(T,N)&&(k=T[N],N="%"+k[0]+"%"),i(l,N)){var O=l[N];if(O===f&&(O=h(N)),typeof O>"u"&&!D)throw new L("intrinsic "+I+" exists, but is not available. Please file an issue!");return{alias:k,name:N,value:O}}throw new P("intrinsic "+I+" does not exist!")};G.exports=function(I,D){if(typeof I!="string"||I.length===0)throw new L("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof D!="boolean")throw new L('"allowMissing" argument must be a boolean');if(y(/^%?[^%]*%?$/,I)===null)throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=o(I),k=N.length>0?N[0]:"",O=M("%"+k+"%",D),F=O.name,z=O.value,B=!1,W=O.alias;W&&(k=W[0],x(N,d([0,1],W)));for(var J=1,re=!0;J=N.length){var Z=v(z,ne);re=!!Z,re&&"get"in Z&&!("originalValue"in Z.get)?z=Z.get:z=z[ne]}else re=i(z,ne),z=z[ne];re&&!B&&(l[F]=z)}}return z}},12408:function(G){G.exports=H;function H(e,m){var P=m[0],s=m[1],L=m[2],S=m[3],v=m[4],p=m[5],r=m[6],t=m[7],a=m[8],n=m[9],f=m[10],u=m[11],l=m[12],g=m[13],h=m[14],T=m[15];return e[0]=p*(f*T-u*h)-n*(r*T-t*h)+g*(r*u-t*f),e[1]=-(s*(f*T-u*h)-n*(L*T-S*h)+g*(L*u-S*f)),e[2]=s*(r*T-t*h)-p*(L*T-S*h)+g*(L*t-S*r),e[3]=-(s*(r*u-t*f)-p*(L*u-S*f)+n*(L*t-S*r)),e[4]=-(v*(f*T-u*h)-a*(r*T-t*h)+l*(r*u-t*f)),e[5]=P*(f*T-u*h)-a*(L*T-S*h)+l*(L*u-S*f),e[6]=-(P*(r*T-t*h)-v*(L*T-S*h)+l*(L*t-S*r)),e[7]=P*(r*u-t*f)-v*(L*u-S*f)+a*(L*t-S*r),e[8]=v*(n*T-u*g)-a*(p*T-t*g)+l*(p*u-t*n),e[9]=-(P*(n*T-u*g)-a*(s*T-S*g)+l*(s*u-S*n)),e[10]=P*(p*T-t*g)-v*(s*T-S*g)+l*(s*t-S*p),e[11]=-(P*(p*u-t*n)-v*(s*u-S*n)+a*(s*t-S*p)),e[12]=-(v*(n*h-f*g)-a*(p*h-r*g)+l*(p*f-r*n)),e[13]=P*(n*h-f*g)-a*(s*h-L*g)+l*(s*f-L*n),e[14]=-(P*(p*h-r*g)-v*(s*h-L*g)+l*(s*r-L*p)),e[15]=P*(p*f-r*n)-v*(s*f-L*n)+a*(s*r-L*p),e}},76860:function(G){G.exports=H;function H(e){var m=new Float32Array(16);return m[0]=e[0],m[1]=e[1],m[2]=e[2],m[3]=e[3],m[4]=e[4],m[5]=e[5],m[6]=e[6],m[7]=e[7],m[8]=e[8],m[9]=e[9],m[10]=e[10],m[11]=e[11],m[12]=e[12],m[13]=e[13],m[14]=e[14],m[15]=e[15],m}},64492:function(G){G.exports=H;function H(e,m){return e[0]=m[0],e[1]=m[1],e[2]=m[2],e[3]=m[3],e[4]=m[4],e[5]=m[5],e[6]=m[6],e[7]=m[7],e[8]=m[8],e[9]=m[9],e[10]=m[10],e[11]=m[11],e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15],e}},54212:function(G){G.exports=H;function H(){var e=new Float32Array(16);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}},70800:function(G){G.exports=H;function H(e){var m=e[0],P=e[1],s=e[2],L=e[3],S=e[4],v=e[5],p=e[6],r=e[7],t=e[8],a=e[9],n=e[10],f=e[11],u=e[12],l=e[13],g=e[14],h=e[15],T=m*v-P*S,c=m*p-s*S,i=m*r-L*S,d=P*p-s*v,x=P*r-L*v,w=s*r-L*p,C=t*l-a*u,y=t*g-n*u,E=t*h-f*u,A=a*g-n*l,o=a*h-f*l,M=n*h-f*g;return T*M-c*o+i*A+d*E-x*y+w*C}},61784:function(G){G.exports=H;function H(e,m){var P=m[0],s=m[1],L=m[2],S=m[3],v=P+P,p=s+s,r=L+L,t=P*v,a=s*v,n=s*p,f=L*v,u=L*p,l=L*r,g=S*v,h=S*p,T=S*r;return e[0]=1-n-l,e[1]=a+T,e[2]=f-h,e[3]=0,e[4]=a-T,e[5]=1-t-l,e[6]=u+g,e[7]=0,e[8]=f+h,e[9]=u-g,e[10]=1-t-n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},91616:function(G){G.exports=H;function H(e,m,P){var s,L,S,v=P[0],p=P[1],r=P[2],t=Math.sqrt(v*v+p*p+r*r);return Math.abs(t)<1e-6?null:(t=1/t,v*=t,p*=t,r*=t,s=Math.sin(m),L=Math.cos(m),S=1-L,e[0]=v*v*S+L,e[1]=p*v*S+r*s,e[2]=r*v*S-p*s,e[3]=0,e[4]=v*p*S-r*s,e[5]=p*p*S+L,e[6]=r*p*S+v*s,e[7]=0,e[8]=v*r*S+p*s,e[9]=p*r*S-v*s,e[10]=r*r*S+L,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}},51944:function(G){G.exports=H;function H(e,m,P){var s=m[0],L=m[1],S=m[2],v=m[3],p=s+s,r=L+L,t=S+S,a=s*p,n=s*r,f=s*t,u=L*r,l=L*t,g=S*t,h=v*p,T=v*r,c=v*t;return e[0]=1-(u+g),e[1]=n+c,e[2]=f-T,e[3]=0,e[4]=n-c,e[5]=1-(a+g),e[6]=l+h,e[7]=0,e[8]=f+T,e[9]=l-h,e[10]=1-(a+u),e[11]=0,e[12]=P[0],e[13]=P[1],e[14]=P[2],e[15]=1,e}},69444:function(G){G.exports=H;function H(e,m){return e[0]=m[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=m[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=m[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},48268:function(G){G.exports=H;function H(e,m){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]=m[0],e[13]=m[1],e[14]=m[2],e[15]=1,e}},21856:function(G){G.exports=H;function H(e,m){var P=Math.sin(m),s=Math.cos(m);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=P,e[7]=0,e[8]=0,e[9]=-P,e[10]=s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},79216:function(G){G.exports=H;function H(e,m){var P=Math.sin(m),s=Math.cos(m);return e[0]=s,e[1]=0,e[2]=-P,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=P,e[9]=0,e[10]=s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},57736:function(G){G.exports=H;function H(e,m){var P=Math.sin(m),s=Math.cos(m);return e[0]=s,e[1]=P,e[2]=0,e[3]=0,e[4]=-P,e[5]=s,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}},38848:function(G){G.exports=H;function H(e,m,P,s,L,S,v){var p=1/(P-m),r=1/(L-s),t=1/(S-v);return e[0]=S*2*p,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=S*2*r,e[6]=0,e[7]=0,e[8]=(P+m)*p,e[9]=(L+s)*r,e[10]=(v+S)*t,e[11]=-1,e[12]=0,e[13]=0,e[14]=v*S*2*t,e[15]=0,e}},36635:function(G){G.exports=H;function H(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}},36524:function(G,H,e){G.exports={create:e(54212),clone:e(76860),copy:e(64492),identity:e(36635),transpose:e(86520),invert:e(4308),adjoint:e(12408),determinant:e(70800),multiply:e(80944),translate:e(35176),scale:e(68152),rotate:e(30016),rotateX:e(15456),rotateY:e(64840),rotateZ:e(4192),fromRotation:e(91616),fromRotationTranslation:e(51944),fromScaling:e(69444),fromTranslation:e(48268),fromXRotation:e(21856),fromYRotation:e(79216),fromZRotation:e(57736),fromQuat:e(61784),frustum:e(38848),perspective:e(51296),perspectiveFromFieldOfView:e(63688),ortho:e(97688),lookAt:e(56508),str:e(89412)}},4308:function(G){G.exports=H;function H(e,m){var P=m[0],s=m[1],L=m[2],S=m[3],v=m[4],p=m[5],r=m[6],t=m[7],a=m[8],n=m[9],f=m[10],u=m[11],l=m[12],g=m[13],h=m[14],T=m[15],c=P*p-s*v,i=P*r-L*v,d=P*t-S*v,x=s*r-L*p,w=s*t-S*p,C=L*t-S*r,y=a*g-n*l,E=a*h-f*l,A=a*T-u*l,o=n*h-f*g,M=n*T-u*g,b=f*T-u*h,I=c*b-i*M+d*o+x*A-w*E+C*y;return I?(I=1/I,e[0]=(p*b-r*M+t*o)*I,e[1]=(L*M-s*b-S*o)*I,e[2]=(g*C-h*w+T*x)*I,e[3]=(f*w-n*C-u*x)*I,e[4]=(r*A-v*b-t*E)*I,e[5]=(P*b-L*A+S*E)*I,e[6]=(h*d-l*C-T*i)*I,e[7]=(a*C-f*d+u*i)*I,e[8]=(v*M-p*A+t*y)*I,e[9]=(s*A-P*M-S*y)*I,e[10]=(l*w-g*d+T*c)*I,e[11]=(n*d-a*w-u*c)*I,e[12]=(p*E-v*o-r*y)*I,e[13]=(P*o-s*E+L*y)*I,e[14]=(g*i-l*x-h*c)*I,e[15]=(a*x-n*i+f*c)*I,e):null}},56508:function(G,H,e){var m=e(36635);G.exports=P;function P(s,L,S,v){var p,r,t,a,n,f,u,l,g,h,T=L[0],c=L[1],i=L[2],d=v[0],x=v[1],w=v[2],C=S[0],y=S[1],E=S[2];return Math.abs(T-C)<1e-6&&Math.abs(c-y)<1e-6&&Math.abs(i-E)<1e-6?m(s):(u=T-C,l=c-y,g=i-E,h=1/Math.sqrt(u*u+l*l+g*g),u*=h,l*=h,g*=h,p=x*g-w*l,r=w*u-d*g,t=d*l-x*u,h=Math.sqrt(p*p+r*r+t*t),h?(h=1/h,p*=h,r*=h,t*=h):(p=0,r=0,t=0),a=l*t-g*r,n=g*p-u*t,f=u*r-l*p,h=Math.sqrt(a*a+n*n+f*f),h?(h=1/h,a*=h,n*=h,f*=h):(a=0,n=0,f=0),s[0]=p,s[1]=a,s[2]=u,s[3]=0,s[4]=r,s[5]=n,s[6]=l,s[7]=0,s[8]=t,s[9]=f,s[10]=g,s[11]=0,s[12]=-(p*T+r*c+t*i),s[13]=-(a*T+n*c+f*i),s[14]=-(u*T+l*c+g*i),s[15]=1,s)}},80944:function(G){G.exports=H;function H(e,m,P){var s=m[0],L=m[1],S=m[2],v=m[3],p=m[4],r=m[5],t=m[6],a=m[7],n=m[8],f=m[9],u=m[10],l=m[11],g=m[12],h=m[13],T=m[14],c=m[15],i=P[0],d=P[1],x=P[2],w=P[3];return e[0]=i*s+d*p+x*n+w*g,e[1]=i*L+d*r+x*f+w*h,e[2]=i*S+d*t+x*u+w*T,e[3]=i*v+d*a+x*l+w*c,i=P[4],d=P[5],x=P[6],w=P[7],e[4]=i*s+d*p+x*n+w*g,e[5]=i*L+d*r+x*f+w*h,e[6]=i*S+d*t+x*u+w*T,e[7]=i*v+d*a+x*l+w*c,i=P[8],d=P[9],x=P[10],w=P[11],e[8]=i*s+d*p+x*n+w*g,e[9]=i*L+d*r+x*f+w*h,e[10]=i*S+d*t+x*u+w*T,e[11]=i*v+d*a+x*l+w*c,i=P[12],d=P[13],x=P[14],w=P[15],e[12]=i*s+d*p+x*n+w*g,e[13]=i*L+d*r+x*f+w*h,e[14]=i*S+d*t+x*u+w*T,e[15]=i*v+d*a+x*l+w*c,e}},97688:function(G){G.exports=H;function H(e,m,P,s,L,S,v){var p=1/(m-P),r=1/(s-L),t=1/(S-v);return e[0]=-2*p,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*t,e[11]=0,e[12]=(m+P)*p,e[13]=(L+s)*r,e[14]=(v+S)*t,e[15]=1,e}},51296:function(G){G.exports=H;function H(e,m,P,s,L){var S=1/Math.tan(m/2),v=1/(s-L);return e[0]=S/P,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=S,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(L+s)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*L*s*v,e[15]=0,e}},63688:function(G){G.exports=H;function H(e,m,P,s){var L=Math.tan(m.upDegrees*Math.PI/180),S=Math.tan(m.downDegrees*Math.PI/180),v=Math.tan(m.leftDegrees*Math.PI/180),p=Math.tan(m.rightDegrees*Math.PI/180),r=2/(v+p),t=2/(L+S);return e[0]=r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t,e[6]=0,e[7]=0,e[8]=-((v-p)*r*.5),e[9]=(L-S)*t*.5,e[10]=s/(P-s),e[11]=-1,e[12]=0,e[13]=0,e[14]=s*P/(P-s),e[15]=0,e}},30016:function(G){G.exports=H;function H(e,m,P,s){var L=s[0],S=s[1],v=s[2],p=Math.sqrt(L*L+S*S+v*v),r,t,a,n,f,u,l,g,h,T,c,i,d,x,w,C,y,E,A,o,M,b,I,D;return Math.abs(p)<1e-6?null:(p=1/p,L*=p,S*=p,v*=p,r=Math.sin(P),t=Math.cos(P),a=1-t,n=m[0],f=m[1],u=m[2],l=m[3],g=m[4],h=m[5],T=m[6],c=m[7],i=m[8],d=m[9],x=m[10],w=m[11],C=L*L*a+t,y=S*L*a+v*r,E=v*L*a-S*r,A=L*S*a-v*r,o=S*S*a+t,M=v*S*a+L*r,b=L*v*a+S*r,I=S*v*a-L*r,D=v*v*a+t,e[0]=n*C+g*y+i*E,e[1]=f*C+h*y+d*E,e[2]=u*C+T*y+x*E,e[3]=l*C+c*y+w*E,e[4]=n*A+g*o+i*M,e[5]=f*A+h*o+d*M,e[6]=u*A+T*o+x*M,e[7]=l*A+c*o+w*M,e[8]=n*b+g*I+i*D,e[9]=f*b+h*I+d*D,e[10]=u*b+T*I+x*D,e[11]=l*b+c*I+w*D,m!==e&&(e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15]),e)}},15456:function(G){G.exports=H;function H(e,m,P){var s=Math.sin(P),L=Math.cos(P),S=m[4],v=m[5],p=m[6],r=m[7],t=m[8],a=m[9],n=m[10],f=m[11];return m!==e&&(e[0]=m[0],e[1]=m[1],e[2]=m[2],e[3]=m[3],e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15]),e[4]=S*L+t*s,e[5]=v*L+a*s,e[6]=p*L+n*s,e[7]=r*L+f*s,e[8]=t*L-S*s,e[9]=a*L-v*s,e[10]=n*L-p*s,e[11]=f*L-r*s,e}},64840:function(G){G.exports=H;function H(e,m,P){var s=Math.sin(P),L=Math.cos(P),S=m[0],v=m[1],p=m[2],r=m[3],t=m[8],a=m[9],n=m[10],f=m[11];return m!==e&&(e[4]=m[4],e[5]=m[5],e[6]=m[6],e[7]=m[7],e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15]),e[0]=S*L-t*s,e[1]=v*L-a*s,e[2]=p*L-n*s,e[3]=r*L-f*s,e[8]=S*s+t*L,e[9]=v*s+a*L,e[10]=p*s+n*L,e[11]=r*s+f*L,e}},4192:function(G){G.exports=H;function H(e,m,P){var s=Math.sin(P),L=Math.cos(P),S=m[0],v=m[1],p=m[2],r=m[3],t=m[4],a=m[5],n=m[6],f=m[7];return m!==e&&(e[8]=m[8],e[9]=m[9],e[10]=m[10],e[11]=m[11],e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15]),e[0]=S*L+t*s,e[1]=v*L+a*s,e[2]=p*L+n*s,e[3]=r*L+f*s,e[4]=t*L-S*s,e[5]=a*L-v*s,e[6]=n*L-p*s,e[7]=f*L-r*s,e}},68152:function(G){G.exports=H;function H(e,m,P){var s=P[0],L=P[1],S=P[2];return e[0]=m[0]*s,e[1]=m[1]*s,e[2]=m[2]*s,e[3]=m[3]*s,e[4]=m[4]*L,e[5]=m[5]*L,e[6]=m[6]*L,e[7]=m[7]*L,e[8]=m[8]*S,e[9]=m[9]*S,e[10]=m[10]*S,e[11]=m[11]*S,e[12]=m[12],e[13]=m[13],e[14]=m[14],e[15]=m[15],e}},89412:function(G){G.exports=H;function H(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}},35176:function(G){G.exports=H;function H(e,m,P){var s=P[0],L=P[1],S=P[2],v,p,r,t,a,n,f,u,l,g,h,T;return m===e?(e[12]=m[0]*s+m[4]*L+m[8]*S+m[12],e[13]=m[1]*s+m[5]*L+m[9]*S+m[13],e[14]=m[2]*s+m[6]*L+m[10]*S+m[14],e[15]=m[3]*s+m[7]*L+m[11]*S+m[15]):(v=m[0],p=m[1],r=m[2],t=m[3],a=m[4],n=m[5],f=m[6],u=m[7],l=m[8],g=m[9],h=m[10],T=m[11],e[0]=v,e[1]=p,e[2]=r,e[3]=t,e[4]=a,e[5]=n,e[6]=f,e[7]=u,e[8]=l,e[9]=g,e[10]=h,e[11]=T,e[12]=v*s+a*L+l*S+m[12],e[13]=p*s+n*L+g*S+m[13],e[14]=r*s+f*L+h*S+m[14],e[15]=t*s+u*L+T*S+m[15]),e}},86520:function(G){G.exports=H;function H(e,m){if(e===m){var P=m[1],s=m[2],L=m[3],S=m[6],v=m[7],p=m[11];e[1]=m[4],e[2]=m[8],e[3]=m[12],e[4]=P,e[6]=m[9],e[7]=m[13],e[8]=s,e[9]=S,e[11]=m[14],e[12]=L,e[13]=v,e[14]=p}else e[0]=m[0],e[1]=m[4],e[2]=m[8],e[3]=m[12],e[4]=m[1],e[5]=m[5],e[6]=m[9],e[7]=m[13],e[8]=m[2],e[9]=m[6],e[10]=m[10],e[11]=m[14],e[12]=m[3],e[13]=m[7],e[14]=m[11],e[15]=m[15];return e}},23352:function(G,H,e){var m=e(42771),P=e(55616),s=e(28624),L=e(55212),S=e(60463),v=e(72160),p=e(33888),r=e(14144),t=e(51160),a=e(58908),n=e(65819),f=e(23464),u=e(63768),l=e(50896),g=e(71920),h=e(47520),T=e(308),c=T.nextPow2,i=new S,d=!1;if(document.body){var x=document.body.appendChild(document.createElement("div"));x.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(x).fontStretch&&(d=!0),document.body.removeChild(x)}var w=function(E){C(E)?(E={regl:E},this.gl=E.regl._gl):this.gl=L(E),this.shader=i.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=E.regl||s({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),i.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(a(E)?E:{})};w.prototype.createShader=function(){var E=this.regl,A=E({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:E.prop("count"),offset:E.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:E.this("sizeBuffer")},width:{offset:0,stride:8,buffer:E.this("sizeBuffer")},char:E.this("charBuffer"),position:E.this("position")},uniforms:{atlasSize:function(M,b){return[b.atlas.width,b.atlas.height]},atlasDim:function(M,b){return[b.atlas.cols,b.atlas.rows]},atlas:function(M,b){return b.atlas.texture},charStep:function(M,b){return b.atlas.step},em:function(M,b){return b.atlas.em},color:E.prop("color"),opacity:E.prop("opacity"),viewport:E.this("viewportArray"),scale:E.this("scale"),align:E.prop("align"),baseline:E.prop("baseline"),translate:E.this("translate"),positionOffset:E.prop("positionOffset")},primitive:"points",viewport:E.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -3538,10 +3538,10 @@ void main() { fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; fragWidth = 1. / gl_PointSize; } -`]),d&&(ne.frag=ne.frag.replace("smoothstep","smoothStep"),re.frag=re.frag.replace("smoothstep","smoothStep")),this.drawCircle=o(ne)}y.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},y.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},y.prototype.draw=function(){for(var o=this,M=arguments.length,b=new Array(M),I=0;IIe)?Re.tree=l(Te,{bounds:Qe}):Ie&&Ie.length&&(Re.tree=Ie),Re.tree){var $e={primitive:"points",usage:"static",data:Re.tree,type:"uint32"};Re.elements?Re.elements($e):Re.elements=k.elements($e)}var ht=x.float32(Te);Me({data:ht,usage:"dynamic"});var vt=x.fract32(Te,ht);return Ve({data:vt,usage:"dynamic"}),et({data:new Uint8Array(ot),type:"uint8",usage:"stream"}),Te}},{marker:function(Te,Re,Se){var Ie=Re.activation;if(Ie.forEach(function(vt){return vt&&vt.destroy&&vt.destroy()}),Ie.length=0,!Te||typeof Te[0]=="number"){var Me=o.addMarker(Te);Ie[Me]=!0}else{for(var Ve=[],et=0,ot=Math.min(Te.length,Re.count);et=0)return D;var N;if(o instanceof Uint8Array||o instanceof Uint8ClampedArray)N=o;else{N=new Uint8Array(o.length);for(var k=0,O=o.length;kI*4&&(this.tooManyColors=!0),this.updatePalette(b),D.length===1?D[0]:D},y.prototype.updatePalette=function(o){if(!this.tooManyColors){var M=this.maxColors,b=this.paletteTexture,I=Math.ceil(o.length*.25/M);if(I>1){o=o.slice();for(var D=o.length*.25%M;DI)&&!(!T.lower&&b2?(i[0],i[2],g=i[1],h=i[3]):i.length?(g=i[0],h=i[1]):(i.x,g=i.y,i.x+i.width,h=i.y+i.height),d.length>2?(T=d[0],c=d[2],d[1],d[3]):d.length?(T=d[0],c=d[1]):(T=d.x,d.y,c=d.x+d.width,d.y+d.height),[T,g,c,h]}function n(f){if(typeof f=="number")return[f,f,f,f];if(f.length===2)return[f[0],f[1],f[0],f[1]];var u=v(f);return[u.x,u.y,u.x+u.width,u.y+u.height]}},28624:function(G){(function(H,e){G.exports=e()})(this,function(){function H(gt,Kt){this.id=fe++,this.type=gt,this.data=Kt}function e(gt){if(gt.length===0)return[];var Kt=gt.charAt(0),Qt=gt.charAt(gt.length-1);if(1"u"?1:window.devicePixelRatio,Et=!1,Vt={},Bt=function(Jt){},Ut=function(){};if(typeof Kt=="string"?Qt=document.querySelector(Kt):typeof Kt=="object"&&(typeof Kt.nodeName=="string"&&typeof Kt.appendChild=="function"&&typeof Kt.getBoundingClientRect=="function"?Qt=Kt:typeof Kt.drawArrays=="function"||typeof Kt.drawElements=="function"?(ut=Kt,Ot=ut.canvas):("gl"in Kt?ut=Kt.gl:"canvas"in Kt?Ot=p(Kt.canvas):"container"in Kt&&(yr=p(Kt.container)),"attributes"in Kt&&(gt=Kt.attributes),"extensions"in Kt&&(at=v(Kt.extensions)),"optionalExtensions"in Kt&&(xt=v(Kt.optionalExtensions)),"onDone"in Kt&&(Bt=Kt.onDone),"profile"in Kt&&(Et=!!Kt.profile),"pixelRatio"in Kt&&(At=+Kt.pixelRatio),"cachedCode"in Kt&&(Vt=Kt.cachedCode))),Qt&&(Qt.nodeName.toLowerCase()==="canvas"?Ot=Qt:yr=Qt),!ut){if(!Ot){if(Qt=L(yr||document.body,Bt,At),!Qt)return null;Ot=Qt.canvas,Ut=Qt.onDestroy}gt.premultipliedAlpha===void 0&&(gt.premultipliedAlpha=!0),ut=S(Ot,gt)}return ut?{gl:ut,canvas:Ot,container:yr,extensions:at,optionalExtensions:xt,pixelRatio:At,profile:Et,cachedCode:Vt,onDone:Bt,onDestroy:Ut}:(Ut(),Bt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function t(gt,Kt){function Qt(at){at=at.toLowerCase();var xt;try{xt=yr[at]=gt.getExtension(at)}catch{}return!!xt}for(var yr={},Ot=0;Ot>>=Kt,Qt=(255>>=Qt,Kt|=Qt,Qt=(15>>=Qt,Kt|=Qt,Qt=(3>>Qt>>1}function f(){function gt(yr){e:{for(var Ot=16;268435456>=Ot;Ot*=16)if(yr<=Ot){yr=Ot;break e}yr=0}return Ot=Qt[n(yr)>>2],0>2].push(yr)}var Qt=a(8,function(){return[]});return{alloc:gt,free:Kt,allocType:function(yr,Ot){var ut=null;switch(yr){case 5120:ut=new Int8Array(gt(Ot),0,Ot);break;case 5121:ut=new Uint8Array(gt(Ot),0,Ot);break;case 5122:ut=new Int16Array(gt(2*Ot),0,Ot);break;case 5123:ut=new Uint16Array(gt(2*Ot),0,Ot);break;case 5124:ut=new Int32Array(gt(4*Ot),0,Ot);break;case 5125:ut=new Uint32Array(gt(4*Ot),0,Ot);break;case 5126:ut=new Float32Array(gt(4*Ot),0,Ot);break;default:return null}return ut.length!==Ot?ut.subarray(0,Ot):ut},freeType:function(yr){Kt(yr.buffer)}}}function u(gt){return!!gt&&typeof gt=="object"&&Array.isArray(gt.shape)&&Array.isArray(gt.stride)&&typeof gt.offset=="number"&>.shape.length===gt.stride.length&&(Array.isArray(gt.data)||Fe(gt.data))}function l(gt,Kt,Qt,yr,Ot,ut){for(var at=0;atUt&&(Ut=Bt.buffer.byteLength,Ue===5123?Ut>>=1:Ue===5125&&(Ut>>=2)),Bt.vertCount=Ut,Ut=ur,0>ur&&(Ut=4,ur=Bt.buffer.dimension,ur===1&&(Ut=0),ur===2&&(Ut=1),ur===3&&(Ut=4)),Bt.primType=Ut}function at(Bt){yr.elementsCount--,delete xt[Bt.id],Bt.buffer.destroy(),Bt.buffer=null}var xt={},At=0,Et={uint8:5121,uint16:5123};Kt.oes_element_index_uint&&(Et.uint32=5125),Ot.prototype.bind=function(){this.buffer.bind()};var Vt=[];return{create:function(Bt,Ut){function Jt(dr){if(dr)if(typeof dr=="number")ur(dr),fr.primType=4,fr.vertCount=dr|0,fr.type=5121;else{var Ye=null,Ue=35044,zt=-1,Dt=-1,$t=0,sr=0;Array.isArray(dr)||Fe(dr)||u(dr)?Ye=dr:("data"in dr&&(Ye=dr.data),"usage"in dr&&(Ue=Me[dr.usage]),"primitive"in dr&&(zt=Qe[dr.primitive]),"count"in dr&&(Dt=dr.count|0),"type"in dr&&(sr=Et[dr.type]),"length"in dr?$t=dr.length|0:($t=Dt,sr===5123||sr===5122?$t*=2:(sr===5125||sr===5124)&&($t*=4))),ut(fr,Ye,Ue,zt,Dt,$t,sr)}else ur(),fr.primType=4,fr.vertCount=0,fr.type=5121;return Jt}var ur=Qt.create(null,34963,!0),fr=new Ot(ur._buffer);return yr.elementsCount++,Jt(Bt),Jt._reglType="elements",Jt._elements=fr,Jt.subdata=function(dr,Ye){return ur.subdata(dr,Ye),Jt},Jt.destroy=function(){at(fr)},Jt},createStream:function(Bt){var Ut=Vt.pop();return Ut||(Ut=new Ot(Qt.create(null,34963,!0,!1)._buffer)),ut(Ut,Bt,35040,-1,-1,0,0),Ut},destroyStream:function(Bt){Vt.push(Bt)},getElements:function(Bt){return typeof Bt=="function"&&Bt._elements instanceof Ot?Bt._elements:null},clear:function(){Te(xt).forEach(at)}}}function x(gt){for(var Kt=_e.allocType(5123,gt.length),Qt=0;Qt>>31<<15,Ot=(ut<<1>>>24)-127,ut=ut>>13&1023;Kt[Qt]=-24>Ot?yr:-14>Ot?yr+(ut+1024>>-14-Ot):15>=On,Jr.height>>=On,Ut(Jr,vn[On]),mr.mipmask|=1<en;++en)mr.images[en]=null;return mr}function $t(mr){for(var en=mr.images,Jr=0;Jrmr){for(var en=0;en=--this.refCount&&xr(this)}}),at.profile&&(ut.getTotalTextureSize=function(){var mr=0;return Object.keys(wa).forEach(function(en){mr+=wa[en].stats.size}),mr}),{create2D:function(mr,en){function Jr(On,bn){var An=vn.texInfo;sr.call(An);var Fn=Dt();return typeof On=="number"?typeof bn=="number"?Ye(Fn,On|0,bn|0):Ye(Fn,On|0,On|0):On?(cr(An,On),Ue(Fn,On)):Ye(Fn,1,1),An.genMipmaps&&(Fn.mipmask=(Fn.width<<1)-1),vn.mipmask=Fn.mipmask,At(vn,Fn),vn.internalformat=Fn.internalformat,Jr.width=Fn.width,Jr.height=Fn.height,ir(vn),zt(Fn,3553),tr(An,3553),hr(),$t(Fn),at.profile&&(vn.stats.size=b(vn.internalformat,vn.type,Fn.width,Fn.height,An.genMipmaps,!1)),Jr.format=Yr[vn.internalformat],Jr.type=Or[vn.type],Jr.mag=ln[An.magFilter],Jr.min=fn[An.minFilter],Jr.wrapS=Mn[An.wrapS],Jr.wrapT=Mn[An.wrapT],Jr}var vn=new Nt(3553);return wa[vn.id]=vn,ut.textureCount++,Jr(mr,en),Jr.subimage=function(On,bn,An,Fn){bn|=0,An|=0,Fn|=0;var $n=ur();return At($n,vn),$n.width=0,$n.height=0,Ut($n,On),$n.width=$n.width||(vn.width>>Fn)-bn,$n.height=$n.height||(vn.height>>Fn)-An,ir(vn),Jt($n,3553,bn,An,Fn),hr(),fr($n),Jr},Jr.resize=function(On,bn){var An=On|0,Fn=bn|0||An;if(An===vn.width&&Fn===vn.height)return Jr;Jr.width=vn.width=An,Jr.height=vn.height=Fn,ir(vn);for(var $n=0;vn.mipmask>>$n;++$n){var ha=An>>$n,Ia=Fn>>$n;if(!ha||!Ia)break;gt.texImage2D(3553,$n,vn.format,ha,Ia,0,vn.format,vn.type,null)}return hr(),at.profile&&(vn.stats.size=b(vn.internalformat,vn.type,An,Fn,!1,!1)),Jr},Jr._reglType="texture2d",Jr._texture=vn,at.profile&&(Jr.stats=vn.stats),Jr.destroy=function(){vn.decRef()},Jr},createCube:function(mr,en,Jr,vn,On,bn){function An(ha,Ia,Mr,Fr,Ar,Nr){var mn,Rn=Fn.texInfo;for(sr.call(Rn),mn=0;6>mn;++mn)$n[mn]=Dt();if(typeof ha=="number"||!ha)for(ha=ha|0||1,mn=0;6>mn;++mn)Ye($n[mn],ha,ha);else if(typeof ha=="object")if(Ia)Ue($n[0],ha),Ue($n[1],Ia),Ue($n[2],Mr),Ue($n[3],Fr),Ue($n[4],Ar),Ue($n[5],Nr);else if(cr(Rn,ha),Et(Fn,ha),"faces"in ha)for(ha=ha.faces,mn=0;6>mn;++mn)At($n[mn],Fn),Ue($n[mn],ha[mn]);else for(mn=0;6>mn;++mn)Ue($n[mn],ha);for(At(Fn,$n[0]),Fn.mipmask=Rn.genMipmaps?($n[0].width<<1)-1:$n[0].mipmask,Fn.internalformat=$n[0].internalformat,An.width=$n[0].width,An.height=$n[0].height,ir(Fn),mn=0;6>mn;++mn)zt($n[mn],34069+mn);for(tr(Rn,34067),hr(),at.profile&&(Fn.stats.size=b(Fn.internalformat,Fn.type,An.width,An.height,Rn.genMipmaps,!0)),An.format=Yr[Fn.internalformat],An.type=Or[Fn.type],An.mag=ln[Rn.magFilter],An.min=fn[Rn.minFilter],An.wrapS=Mn[Rn.wrapS],An.wrapT=Mn[Rn.wrapT],mn=0;6>mn;++mn)$t($n[mn]);return An}var Fn=new Nt(34067);wa[Fn.id]=Fn,ut.cubeCount++;var $n=Array(6);return An(mr,en,Jr,vn,On,bn),An.subimage=function(ha,Ia,Mr,Fr,Ar){Mr|=0,Fr|=0,Ar|=0;var Nr=ur();return At(Nr,Fn),Nr.width=0,Nr.height=0,Ut(Nr,Ia),Nr.width=Nr.width||(Fn.width>>Ar)-Mr,Nr.height=Nr.height||(Fn.height>>Ar)-Fr,ir(Fn),Jt(Nr,34069+ha,Mr,Fr,Ar),hr(),fr(Nr),An},An.resize=function(ha){if(ha|=0,ha!==Fn.width){An.width=Fn.width=ha,An.height=Fn.height=ha,ir(Fn);for(var Ia=0;6>Ia;++Ia)for(var Mr=0;Fn.mipmask>>Mr;++Mr)gt.texImage2D(34069+Ia,Mr,Fn.format,ha>>Mr,ha>>Mr,0,Fn.format,Fn.type,null);return hr(),at.profile&&(Fn.stats.size=b(Fn.internalformat,Fn.type,An.width,An.height,!1,!0)),An}},An._reglType="textureCube",An._texture=Fn,at.profile&&(An.stats=Fn.stats),An.destroy=function(){Fn.decRef()},An},clear:function(){for(var mr=0;mrvn;++vn)if(Jr.mipmask&1<>vn,Jr.height>>vn,0,Jr.internalformat,Jr.type,null);else for(var On=0;6>On;++On)gt.texImage2D(34069+On,vn,Jr.internalformat,Jr.width>>vn,Jr.height>>vn,0,Jr.internalformat,Jr.type,null);tr(Jr.texInfo,Jr.target)})},refresh:function(){for(var mr=0;mrvr;++vr){for(tn=0;tnxr;++xr)hr[xr].resize(vr);return ir.width=ir.height=vr,ir},_reglType:"framebufferCube",destroy:function(){hr.forEach(function(xr){xr.destroy()})}})},clear:function(){Te(tr).forEach(dr)},restore:function(){zt.cur=null,zt.next=null,zt.dirty=!0,Te(tr).forEach(function(Nt){Nt.framebuffer=gt.createFramebuffer(),Ye(Nt)})}})}function N(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function k(gt,Kt,Qt,yr,Ot,ut,at){function xt(Ye){if(Ye!==dr.currentVAO){var Ue=Kt.oes_vertex_array_object;Ye?Ue.bindVertexArrayOES(Ye.vao):Ue.bindVertexArrayOES(null),dr.currentVAO=Ye}}function At(Ye){if(Ye!==dr.currentVAO){if(Ye)Ye.bindAttrs();else{for(var Ue=Kt.angle_instanced_arrays,zt=0;zt=ir.byteLength?hr.subdata(ir):(hr.destroy(),zt.buffers[cr]=null)),zt.buffers[cr]||(hr=zt.buffers[cr]=Ot.create(tr,34962,!1,!0)),Nt.buffer=Ot.getBuffer(hr),Nt.size=Nt.buffer.dimension|0,Nt.normalized=!1,Nt.type=Nt.buffer.dtype,Nt.offset=0,Nt.stride=0,Nt.divisor=0,Nt.state=1,Dt[cr]=1}else Ot.getBuffer(tr)?(Nt.buffer=Ot.getBuffer(tr),Nt.size=Nt.buffer.dimension|0,Nt.normalized=!1,Nt.type=Nt.buffer.dtype,Nt.offset=0,Nt.stride=0,Nt.divisor=0,Nt.state=1):Ot.getBuffer(tr.buffer)?(Nt.buffer=Ot.getBuffer(tr.buffer),Nt.size=(+tr.size||Nt.buffer.dimension)|0,Nt.normalized=!!tr.normalized||!1,Nt.type="type"in tr?Ie[tr.type]:Nt.buffer.dtype,Nt.offset=(tr.offset||0)|0,Nt.stride=(tr.stride||0)|0,Nt.divisor=(tr.divisor||0)|0,Nt.state=1):"x"in tr&&(Nt.x=+tr.x||0,Nt.y=+tr.y||0,Nt.z=+tr.z||0,Nt.w=+tr.w||0,Nt.state=2)}for(hr=0;hrur&&(ur=fr.stats.uniformsCount)}),ur},Qt.getMaxAttributesCount=function(){var ur=0;return Ut.forEach(function(fr){fr.stats.attributesCount>ur&&(ur=fr.stats.attributesCount)}),ur}),{clear:function(){var ur=gt.deleteShader.bind(gt);Te(Et).forEach(ur),Et={},Te(Vt).forEach(ur),Vt={},Ut.forEach(function(fr){gt.deleteProgram(fr.program)}),Ut.length=0,Bt={},Qt.shaderCount=0},program:function(ur,fr,dr,Ye){var Ue=Bt[fr];Ue||(Ue=Bt[fr]={});var zt=Ue[ur];if(zt&&(zt.refCount++,!Ye))return zt;var Dt=new xt(fr,ur);return Qt.shaderCount++,At(Dt,dr,Ye),zt||(Ue[ur]=Dt),Ut.push(Dt),te(Dt,{destroy:function(){if(Dt.refCount--,0>=Dt.refCount){gt.deleteProgram(Dt.program);var $t=Ut.indexOf(Dt);Ut.splice($t,1),Qt.shaderCount--}0>=Ue[Dt.vertId].refCount&&(gt.deleteShader(Vt[Dt.vertId]),delete Vt[Dt.vertId],delete Bt[Dt.fragId][Dt.vertId]),Object.keys(Bt[Dt.fragId]).length||(gt.deleteShader(Et[Dt.fragId]),delete Et[Dt.fragId],delete Bt[Dt.fragId])}})},restore:function(){Et={},Vt={};for(var ur=0;ur>2),yr=0;yr>5]|=(gt.charCodeAt(yr/8)&255)<<24-yr%32;var Qt=8*gt.length;gt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225];var yr=Array(64),Ot,ut,at,xt,At,Et,Vt,Bt,Ut,Jt,ur;for(Kt[Qt>>5]|=128<<24-Qt%32,Kt[(Qt+64>>9<<4)+15]=Qt,Bt=0;BtUt;Ut++){if(16>Ut)yr[Ut]=Kt[Ut+Bt];else{Jt=Ut,ur=yr[Ut-2],ur=J(ur,17)^J(ur,19)^ur>>>10,ur=re(ur,yr[Ut-7]);var fr;fr=yr[Ut-15],fr=J(fr,7)^J(fr,18)^fr>>>3,yr[Jt]=re(re(ur,fr),yr[Ut-16])}Jt=xt,Jt=J(Jt,6)^J(Jt,11)^J(Jt,25),Jt=re(re(re(re(Vt,Jt),xt&At^~xt&Et),Ze[Ut]),yr[Ut]),Vt=Qt,Vt=J(Vt,2)^J(Vt,13)^J(Vt,22),ur=re(Vt,Qt&Ot^Qt&ut^Ot&ut),Vt=Et,Et=At,At=xt,xt=re(at,Jt),at=ut,ut=Ot,Ot=Qt,Qt=re(Jt,ur)}gt[0]=re(Qt,gt[0]),gt[1]=re(Ot,gt[1]),gt[2]=re(ut,gt[2]),gt[3]=re(at,gt[3]),gt[4]=re(xt,gt[4]),gt[5]=re(At,gt[5]),gt[6]=re(Et,gt[6]),gt[7]=re(Vt,gt[7])}for(Kt="",yr=0;yr<32*gt.length;yr+=8)Kt+=String.fromCharCode(gt[yr>>5]>>>24-yr%32&255);return Kt}function B(gt){for(var Kt="",Qt,yr=0;yr>>4&15)+"0123456789abcdef".charAt(Qt&15);return Kt}function W(gt){for(var Kt="",Qt=-1,yr,Ot;++Qt=yr&&56320<=Ot&&57343>=Ot&&(yr=65536+((yr&1023)<<10)+(Ot&1023),Qt++),127>=yr?Kt+=String.fromCharCode(yr):2047>=yr?Kt+=String.fromCharCode(192|yr>>>6&31,128|yr&63):65535>=yr?Kt+=String.fromCharCode(224|yr>>>12&15,128|yr>>>6&63,128|yr&63):2097151>=yr&&(Kt+=String.fromCharCode(240|yr>>>18&7,128|yr>>>12&63,128|yr>>>6&63,128|yr&63));return Kt}function J(gt,Kt){return gt>>>Kt|gt<<32-Kt}function re(gt,Kt){var Qt=(gt&65535)+(Kt&65535);return(gt>>16)+(Kt>>16)+(Qt>>16)<<16|Qt&65535}function ne(gt){return Array.prototype.slice.call(gt)}function le(gt){return ne(gt).join("")}function $(gt){function Kt(){var Vt=[],Bt=[];return te(function(){Vt.push.apply(Vt,ne(arguments))},{def:function(){var Ut="v"+Ot++;return Bt.push(Ut),0Ie)?Re.tree=l(Te,{bounds:Qe}):Ie&&Ie.length&&(Re.tree=Ie),Re.tree){var $e={primitive:"points",usage:"static",data:Re.tree,type:"uint32"};Re.elements?Re.elements($e):Re.elements=k.elements($e)}var ht=x.float32(Te);Me({data:ht,usage:"dynamic"});var vt=x.fract32(Te,ht);return Ve({data:vt,usage:"dynamic"}),et({data:new Uint8Array(ot),type:"uint8",usage:"stream"}),Te}},{marker:function(Te,Re,Se){var Ie=Re.activation;if(Ie.forEach(function(vt){return vt&&vt.destroy&&vt.destroy()}),Ie.length=0,!Te||typeof Te[0]=="number"){var Me=o.addMarker(Te);Ie[Me]=!0}else{for(var Ve=[],et=0,ot=Math.min(Te.length,Re.count);et=0)return D;var N;if(o instanceof Uint8Array||o instanceof Uint8ClampedArray)N=o;else{N=new Uint8Array(o.length);for(var k=0,O=o.length;kI*4&&(this.tooManyColors=!0),this.updatePalette(b),D.length===1?D[0]:D},y.prototype.updatePalette=function(o){if(!this.tooManyColors){var M=this.maxColors,b=this.paletteTexture,I=Math.ceil(o.length*.25/M);if(I>1){o=o.slice();for(var D=o.length*.25%M;DI)&&!(!T.lower&&b2?(i[0],i[2],g=i[1],h=i[3]):i.length?(g=i[0],h=i[1]):(i.x,g=i.y,i.x+i.width,h=i.y+i.height),d.length>2?(T=d[0],c=d[2],d[1],d[3]):d.length?(T=d[0],c=d[1]):(T=d.x,d.y,c=d.x+d.width,d.y+d.height),[T,g,c,h]}function n(f){if(typeof f=="number")return[f,f,f,f];if(f.length===2)return[f[0],f[1],f[0],f[1]];var u=v(f);return[u.x,u.y,u.x+u.width,u.y+u.height]}},28624:function(G){(function(H,e){G.exports=e()})(this,function(){function H(gt,Kt){this.id=fe++,this.type=gt,this.data=Kt}function e(gt){if(gt.length===0)return[];var Kt=gt.charAt(0),Qt=gt.charAt(gt.length-1);if(1"u"?1:window.devicePixelRatio,Et=!1,Vt={},Bt=function(Jt){},Ut=function(){};if(typeof Kt=="string"?Qt=document.querySelector(Kt):typeof Kt=="object"&&(typeof Kt.nodeName=="string"&&typeof Kt.appendChild=="function"&&typeof Kt.getBoundingClientRect=="function"?Qt=Kt:typeof Kt.drawArrays=="function"||typeof Kt.drawElements=="function"?(ut=Kt,Ot=ut.canvas):("gl"in Kt?ut=Kt.gl:"canvas"in Kt?Ot=p(Kt.canvas):"container"in Kt&&(yr=p(Kt.container)),"attributes"in Kt&&(gt=Kt.attributes),"extensions"in Kt&&(at=v(Kt.extensions)),"optionalExtensions"in Kt&&(xt=v(Kt.optionalExtensions)),"onDone"in Kt&&(Bt=Kt.onDone),"profile"in Kt&&(Et=!!Kt.profile),"pixelRatio"in Kt&&(At=+Kt.pixelRatio),"cachedCode"in Kt&&(Vt=Kt.cachedCode))),Qt&&(Qt.nodeName.toLowerCase()==="canvas"?Ot=Qt:yr=Qt),!ut){if(!Ot){if(Qt=L(yr||document.body,Bt,At),!Qt)return null;Ot=Qt.canvas,Ut=Qt.onDestroy}gt.premultipliedAlpha===void 0&&(gt.premultipliedAlpha=!0),ut=S(Ot,gt)}return ut?{gl:ut,canvas:Ot,container:yr,extensions:at,optionalExtensions:xt,pixelRatio:At,profile:Et,cachedCode:Vt,onDone:Bt,onDestroy:Ut}:(Ut(),Bt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function t(gt,Kt){function Qt(at){at=at.toLowerCase();var xt;try{xt=yr[at]=gt.getExtension(at)}catch{}return!!xt}for(var yr={},Ot=0;Ot>>=Kt,Qt=(255>>=Qt,Kt|=Qt,Qt=(15>>=Qt,Kt|=Qt,Qt=(3>>Qt>>1}function f(){function gt(yr){e:{for(var Ot=16;268435456>=Ot;Ot*=16)if(yr<=Ot){yr=Ot;break e}yr=0}return Ot=Qt[n(yr)>>2],0>2].push(yr)}var Qt=a(8,function(){return[]});return{alloc:gt,free:Kt,allocType:function(yr,Ot){var ut=null;switch(yr){case 5120:ut=new Int8Array(gt(Ot),0,Ot);break;case 5121:ut=new Uint8Array(gt(Ot),0,Ot);break;case 5122:ut=new Int16Array(gt(2*Ot),0,Ot);break;case 5123:ut=new Uint16Array(gt(2*Ot),0,Ot);break;case 5124:ut=new Int32Array(gt(4*Ot),0,Ot);break;case 5125:ut=new Uint32Array(gt(4*Ot),0,Ot);break;case 5126:ut=new Float32Array(gt(4*Ot),0,Ot);break;default:return null}return ut.length!==Ot?ut.subarray(0,Ot):ut},freeType:function(yr){Kt(yr.buffer)}}}function u(gt){return!!gt&&typeof gt=="object"&&Array.isArray(gt.shape)&&Array.isArray(gt.stride)&&typeof gt.offset=="number"&>.shape.length===gt.stride.length&&(Array.isArray(gt.data)||Fe(gt.data))}function l(gt,Kt,Qt,yr,Ot,ut){for(var at=0;atUt&&(Ut=Bt.buffer.byteLength,Ue===5123?Ut>>=1:Ue===5125&&(Ut>>=2)),Bt.vertCount=Ut,Ut=ur,0>ur&&(Ut=4,ur=Bt.buffer.dimension,ur===1&&(Ut=0),ur===2&&(Ut=1),ur===3&&(Ut=4)),Bt.primType=Ut}function at(Bt){yr.elementsCount--,delete xt[Bt.id],Bt.buffer.destroy(),Bt.buffer=null}var xt={},At=0,Et={uint8:5121,uint16:5123};Kt.oes_element_index_uint&&(Et.uint32=5125),Ot.prototype.bind=function(){this.buffer.bind()};var Vt=[];return{create:function(Bt,Ut){function Jt(dr){if(dr)if(typeof dr=="number")ur(dr),fr.primType=4,fr.vertCount=dr|0,fr.type=5121;else{var Ye=null,Ue=35044,zt=-1,Dt=-1,$t=0,sr=0;Array.isArray(dr)||Fe(dr)||u(dr)?Ye=dr:("data"in dr&&(Ye=dr.data),"usage"in dr&&(Ue=Me[dr.usage]),"primitive"in dr&&(zt=Qe[dr.primitive]),"count"in dr&&(Dt=dr.count|0),"type"in dr&&(sr=Et[dr.type]),"length"in dr?$t=dr.length|0:($t=Dt,sr===5123||sr===5122?$t*=2:(sr===5125||sr===5124)&&($t*=4))),ut(fr,Ye,Ue,zt,Dt,$t,sr)}else ur(),fr.primType=4,fr.vertCount=0,fr.type=5121;return Jt}var ur=Qt.create(null,34963,!0),fr=new Ot(ur._buffer);return yr.elementsCount++,Jt(Bt),Jt._reglType="elements",Jt._elements=fr,Jt.subdata=function(dr,Ye){return ur.subdata(dr,Ye),Jt},Jt.destroy=function(){at(fr)},Jt},createStream:function(Bt){var Ut=Vt.pop();return Ut||(Ut=new Ot(Qt.create(null,34963,!0,!1)._buffer)),ut(Ut,Bt,35040,-1,-1,0,0),Ut},destroyStream:function(Bt){Vt.push(Bt)},getElements:function(Bt){return typeof Bt=="function"&&Bt._elements instanceof Ot?Bt._elements:null},clear:function(){Te(xt).forEach(at)}}}function x(gt){for(var Kt=_e.allocType(5123,gt.length),Qt=0;Qt>>31<<15,Ot=(ut<<1>>>24)-127,ut=ut>>13&1023;Kt[Qt]=-24>Ot?yr:-14>Ot?yr+(ut+1024>>-14-Ot):15>=On,Jr.height>>=On,Ut(Jr,vn[On]),mr.mipmask|=1<en;++en)mr.images[en]=null;return mr}function $t(mr){for(var en=mr.images,Jr=0;Jrmr){for(var en=0;en=--this.refCount&&xr(this)}}),at.profile&&(ut.getTotalTextureSize=function(){var mr=0;return Object.keys(wa).forEach(function(en){mr+=wa[en].stats.size}),mr}),{create2D:function(mr,en){function Jr(On,bn){var An=vn.texInfo;sr.call(An);var Fn=Dt();return typeof On=="number"?typeof bn=="number"?Ye(Fn,On|0,bn|0):Ye(Fn,On|0,On|0):On?(cr(An,On),Ue(Fn,On)):Ye(Fn,1,1),An.genMipmaps&&(Fn.mipmask=(Fn.width<<1)-1),vn.mipmask=Fn.mipmask,At(vn,Fn),vn.internalformat=Fn.internalformat,Jr.width=Fn.width,Jr.height=Fn.height,ir(vn),zt(Fn,3553),tr(An,3553),hr(),$t(Fn),at.profile&&(vn.stats.size=b(vn.internalformat,vn.type,Fn.width,Fn.height,An.genMipmaps,!1)),Jr.format=Yr[vn.internalformat],Jr.type=Or[vn.type],Jr.mag=ln[An.magFilter],Jr.min=fn[An.minFilter],Jr.wrapS=Mn[An.wrapS],Jr.wrapT=Mn[An.wrapT],Jr}var vn=new Nt(3553);return wa[vn.id]=vn,ut.textureCount++,Jr(mr,en),Jr.subimage=function(On,bn,An,Fn){bn|=0,An|=0,Fn|=0;var $n=ur();return At($n,vn),$n.width=0,$n.height=0,Ut($n,On),$n.width=$n.width||(vn.width>>Fn)-bn,$n.height=$n.height||(vn.height>>Fn)-An,ir(vn),Jt($n,3553,bn,An,Fn),hr(),fr($n),Jr},Jr.resize=function(On,bn){var An=On|0,Fn=bn|0||An;if(An===vn.width&&Fn===vn.height)return Jr;Jr.width=vn.width=An,Jr.height=vn.height=Fn,ir(vn);for(var $n=0;vn.mipmask>>$n;++$n){var ha=An>>$n,Ia=Fn>>$n;if(!ha||!Ia)break;gt.texImage2D(3553,$n,vn.format,ha,Ia,0,vn.format,vn.type,null)}return hr(),at.profile&&(vn.stats.size=b(vn.internalformat,vn.type,An,Fn,!1,!1)),Jr},Jr._reglType="texture2d",Jr._texture=vn,at.profile&&(Jr.stats=vn.stats),Jr.destroy=function(){vn.decRef()},Jr},createCube:function(mr,en,Jr,vn,On,bn){function An(ha,Ia,Mr,Fr,Ar,Nr){var mn,Rn=Fn.texInfo;for(sr.call(Rn),mn=0;6>mn;++mn)$n[mn]=Dt();if(typeof ha=="number"||!ha)for(ha=ha|0||1,mn=0;6>mn;++mn)Ye($n[mn],ha,ha);else if(typeof ha=="object")if(Ia)Ue($n[0],ha),Ue($n[1],Ia),Ue($n[2],Mr),Ue($n[3],Fr),Ue($n[4],Ar),Ue($n[5],Nr);else if(cr(Rn,ha),Et(Fn,ha),"faces"in ha)for(ha=ha.faces,mn=0;6>mn;++mn)At($n[mn],Fn),Ue($n[mn],ha[mn]);else for(mn=0;6>mn;++mn)Ue($n[mn],ha);for(At(Fn,$n[0]),Fn.mipmask=Rn.genMipmaps?($n[0].width<<1)-1:$n[0].mipmask,Fn.internalformat=$n[0].internalformat,An.width=$n[0].width,An.height=$n[0].height,ir(Fn),mn=0;6>mn;++mn)zt($n[mn],34069+mn);for(tr(Rn,34067),hr(),at.profile&&(Fn.stats.size=b(Fn.internalformat,Fn.type,An.width,An.height,Rn.genMipmaps,!0)),An.format=Yr[Fn.internalformat],An.type=Or[Fn.type],An.mag=ln[Rn.magFilter],An.min=fn[Rn.minFilter],An.wrapS=Mn[Rn.wrapS],An.wrapT=Mn[Rn.wrapT],mn=0;6>mn;++mn)$t($n[mn]);return An}var Fn=new Nt(34067);wa[Fn.id]=Fn,ut.cubeCount++;var $n=Array(6);return An(mr,en,Jr,vn,On,bn),An.subimage=function(ha,Ia,Mr,Fr,Ar){Mr|=0,Fr|=0,Ar|=0;var Nr=ur();return At(Nr,Fn),Nr.width=0,Nr.height=0,Ut(Nr,Ia),Nr.width=Nr.width||(Fn.width>>Ar)-Mr,Nr.height=Nr.height||(Fn.height>>Ar)-Fr,ir(Fn),Jt(Nr,34069+ha,Mr,Fr,Ar),hr(),fr(Nr),An},An.resize=function(ha){if(ha|=0,ha!==Fn.width){An.width=Fn.width=ha,An.height=Fn.height=ha,ir(Fn);for(var Ia=0;6>Ia;++Ia)for(var Mr=0;Fn.mipmask>>Mr;++Mr)gt.texImage2D(34069+Ia,Mr,Fn.format,ha>>Mr,ha>>Mr,0,Fn.format,Fn.type,null);return hr(),at.profile&&(Fn.stats.size=b(Fn.internalformat,Fn.type,An.width,An.height,!1,!0)),An}},An._reglType="textureCube",An._texture=Fn,at.profile&&(An.stats=Fn.stats),An.destroy=function(){Fn.decRef()},An},clear:function(){for(var mr=0;mrvn;++vn)if(Jr.mipmask&1<>vn,Jr.height>>vn,0,Jr.internalformat,Jr.type,null);else for(var On=0;6>On;++On)gt.texImage2D(34069+On,vn,Jr.internalformat,Jr.width>>vn,Jr.height>>vn,0,Jr.internalformat,Jr.type,null);tr(Jr.texInfo,Jr.target)})},refresh:function(){for(var mr=0;mrvr;++vr){for(tn=0;tnxr;++xr)hr[xr].resize(vr);return ir.width=ir.height=vr,ir},_reglType:"framebufferCube",destroy:function(){hr.forEach(function(xr){xr.destroy()})}})},clear:function(){Te(tr).forEach(dr)},restore:function(){zt.cur=null,zt.next=null,zt.dirty=!0,Te(tr).forEach(function(Nt){Nt.framebuffer=gt.createFramebuffer(),Ye(Nt)})}})}function N(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function k(gt,Kt,Qt,yr,Ot,ut,at){function xt(Ye){if(Ye!==dr.currentVAO){var Ue=Kt.oes_vertex_array_object;Ye?Ue.bindVertexArrayOES(Ye.vao):Ue.bindVertexArrayOES(null),dr.currentVAO=Ye}}function At(Ye){if(Ye!==dr.currentVAO){if(Ye)Ye.bindAttrs();else{for(var Ue=Kt.angle_instanced_arrays,zt=0;zt=ir.byteLength?hr.subdata(ir):(hr.destroy(),zt.buffers[cr]=null)),zt.buffers[cr]||(hr=zt.buffers[cr]=Ot.create(tr,34962,!1,!0)),Nt.buffer=Ot.getBuffer(hr),Nt.size=Nt.buffer.dimension|0,Nt.normalized=!1,Nt.type=Nt.buffer.dtype,Nt.offset=0,Nt.stride=0,Nt.divisor=0,Nt.state=1,Dt[cr]=1}else Ot.getBuffer(tr)?(Nt.buffer=Ot.getBuffer(tr),Nt.size=Nt.buffer.dimension|0,Nt.normalized=!1,Nt.type=Nt.buffer.dtype,Nt.offset=0,Nt.stride=0,Nt.divisor=0,Nt.state=1):Ot.getBuffer(tr.buffer)?(Nt.buffer=Ot.getBuffer(tr.buffer),Nt.size=(+tr.size||Nt.buffer.dimension)|0,Nt.normalized=!!tr.normalized||!1,Nt.type="type"in tr?Ie[tr.type]:Nt.buffer.dtype,Nt.offset=(tr.offset||0)|0,Nt.stride=(tr.stride||0)|0,Nt.divisor=(tr.divisor||0)|0,Nt.state=1):"x"in tr&&(Nt.x=+tr.x||0,Nt.y=+tr.y||0,Nt.z=+tr.z||0,Nt.w=+tr.w||0,Nt.state=2)}for(hr=0;hrur&&(ur=fr.stats.uniformsCount)}),ur},Qt.getMaxAttributesCount=function(){var ur=0;return Ut.forEach(function(fr){fr.stats.attributesCount>ur&&(ur=fr.stats.attributesCount)}),ur}),{clear:function(){var ur=gt.deleteShader.bind(gt);Te(Et).forEach(ur),Et={},Te(Vt).forEach(ur),Vt={},Ut.forEach(function(fr){gt.deleteProgram(fr.program)}),Ut.length=0,Bt={},Qt.shaderCount=0},program:function(ur,fr,dr,Ye){var Ue=Bt[fr];Ue||(Ue=Bt[fr]={});var zt=Ue[ur];if(zt&&(zt.refCount++,!Ye))return zt;var Dt=new xt(fr,ur);return Qt.shaderCount++,At(Dt,dr,Ye),zt||(Ue[ur]=Dt),Ut.push(Dt),te(Dt,{destroy:function(){if(Dt.refCount--,0>=Dt.refCount){gt.deleteProgram(Dt.program);var $t=Ut.indexOf(Dt);Ut.splice($t,1),Qt.shaderCount--}0>=Ue[Dt.vertId].refCount&&(gt.deleteShader(Vt[Dt.vertId]),delete Vt[Dt.vertId],delete Bt[Dt.fragId][Dt.vertId]),Object.keys(Bt[Dt.fragId]).length||(gt.deleteShader(Et[Dt.fragId]),delete Et[Dt.fragId],delete Bt[Dt.fragId])}})},restore:function(){Et={},Vt={};for(var ur=0;ur>2),yr=0;yr>5]|=(gt.charCodeAt(yr/8)&255)<<24-yr%32;var Qt=8*gt.length;gt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225];var yr=Array(64),Ot,ut,at,xt,At,Et,Vt,Bt,Ut,Jt,ur;for(Kt[Qt>>5]|=128<<24-Qt%32,Kt[(Qt+64>>9<<4)+15]=Qt,Bt=0;BtUt;Ut++){if(16>Ut)yr[Ut]=Kt[Ut+Bt];else{Jt=Ut,ur=yr[Ut-2],ur=J(ur,17)^J(ur,19)^ur>>>10,ur=re(ur,yr[Ut-7]);var fr;fr=yr[Ut-15],fr=J(fr,7)^J(fr,18)^fr>>>3,yr[Jt]=re(re(ur,fr),yr[Ut-16])}Jt=xt,Jt=J(Jt,6)^J(Jt,11)^J(Jt,25),Jt=re(re(re(re(Vt,Jt),xt&At^~xt&Et),Ze[Ut]),yr[Ut]),Vt=Qt,Vt=J(Vt,2)^J(Vt,13)^J(Vt,22),ur=re(Vt,Qt&Ot^Qt&ut^Ot&ut),Vt=Et,Et=At,At=xt,xt=re(at,Jt),at=ut,ut=Ot,Ot=Qt,Qt=re(Jt,ur)}gt[0]=re(Qt,gt[0]),gt[1]=re(Ot,gt[1]),gt[2]=re(ut,gt[2]),gt[3]=re(at,gt[3]),gt[4]=re(xt,gt[4]),gt[5]=re(At,gt[5]),gt[6]=re(Et,gt[6]),gt[7]=re(Vt,gt[7])}for(Kt="",yr=0;yr<32*gt.length;yr+=8)Kt+=String.fromCharCode(gt[yr>>5]>>>24-yr%32&255);return Kt}function B(gt){for(var Kt="",Qt,yr=0;yr>>4&15)+"0123456789abcdef".charAt(Qt&15);return Kt}function W(gt){for(var Kt="",Qt=-1,yr,Ot;++Qt=yr&&56320<=Ot&&57343>=Ot&&(yr=65536+((yr&1023)<<10)+(Ot&1023),Qt++),127>=yr?Kt+=String.fromCharCode(yr):2047>=yr?Kt+=String.fromCharCode(192|yr>>>6&31,128|yr&63):65535>=yr?Kt+=String.fromCharCode(224|yr>>>12&15,128|yr>>>6&63,128|yr&63):2097151>=yr&&(Kt+=String.fromCharCode(240|yr>>>18&7,128|yr>>>12&63,128|yr>>>6&63,128|yr&63));return Kt}function J(gt,Kt){return gt>>>Kt|gt<<32-Kt}function re(gt,Kt){var Qt=(gt&65535)+(Kt&65535);return(gt>>16)+(Kt>>16)+(Qt>>16)<<16|Qt&65535}function ne(gt){return Array.prototype.slice.call(gt)}function le(gt){return ne(gt).join("")}function $(gt){function Kt(){var Vt=[],Bt=[];return te(function(){Vt.push.apply(Vt,ne(arguments))},{def:function(){var Ut="v"+Ot++;return Bt.push(Ut),0"+ga+"?"+Gr+".constant["+ga+"]:0;"}).join(""),"}}else{","if(",wn,"(",Gr,".buffer)){",Nn,"=",zn,".createStream(",34962,",",Gr,".buffer);","}else{",Nn,"=",zn,".getBuffer(",Gr,".buffer);","}",va,'="type" in ',Gr,"?",qr.glTypes,"[",Gr,".type]:",Nn,".dtype;",En.normalized,"=!!",Gr,".normalized;"),Zr("size"),Zr("offset"),Zr("stride"),Zr("divisor"),Er("}}"),Er.exit("if(",En.isStream,"){",zn,".destroyStream(",Nn,");","}"),En})}),mn}function vr(Mr){var Fr=Mr.static,Ar=Mr.dynamic,Nr={};return Object.keys(Fr).forEach(function(mn){var Rn=Fr[mn];Nr[mn]=oe(function(gn,un){return typeof Rn=="number"||typeof Rn=="boolean"?""+Rn:gn.link(Rn)})}),Object.keys(Ar).forEach(function(mn){var Rn=Ar[mn];Nr[mn]=Y(Rn,function(gn,un){return gn.invoke(un,Rn)})}),Nr}function Hr(Mr,Fr,Ar,Nr,mn){function Rn(Un){var Nn=un[Un];Nn&&(Zr[Un]=Nn)}var gn=cr(Mr,Fr),wn=$t(Mr),un=sr(Mr,wn),Er=Nt(Mr),Zr=ir(Mr),Gr=tr(Mr,mn,gn);Rn("viewport"),Rn(dr("scissor.box"));var qr=0"u"?"Date.now()":"performance.now()"}function gn(Un){zn=Fr.def(),Un(zn,"=",Rn(),";"),typeof mn=="string"?Un(Gr,".count+=",mn,";"):Un(Gr,".count++;"),Jt&&(Nr?(En=Fr.def(),Un(En,"=",wn,".getNumPendingQueries();")):Un(wn,".beginQuery(",Gr,");"))}function un(Un){Un(Gr,".cpuTime+=",Rn(),"-",zn,";"),Jt&&(Nr?Un(wn,".pushScopeStats(",En,",",wn,".getNumPendingQueries(),",Gr,");"):Un(wn,".endQuery();"))}function Er(Un){var Nn=Fr.def(qr,".profile");Fr(qr,".profile=",Un,";"),Fr.exit(qr,".profile=",Nn,";")}var Zr=Mr.shared,Gr=Mr.stats,qr=Zr.current,wn=Zr.timer;Ar=Ar.profile;var zn,En;if(Ar){if(Q(Ar)){Ar.enable?(gn(Fr),un(Fr.exit),Er("true")):Er("false");return}Ar=Ar.append(Mr,Fr),Er(Ar)}else Ar=Fr.def(qr,".profile");Zr=Mr.block(),gn(Zr),Fr("if(",Ar,"){",Zr,"}"),Mr=Mr.block(),un(Mr),Fr.exit("if(",Ar,"){",Mr,"}")}function Tr(Mr,Fr,Ar,Nr,mn){function Rn(Er){switch(Er){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function gn(Er,Zr,Gr){function qr(){Fr("if(!",Un,".buffer){",zn,".enableVertexAttribArray(",En,");}");var ga=Gr.type,_a;_a=Gr.size?Fr.def(Gr.size,"||",Zr):Zr,Fr("if(",Un,".type!==",ga,"||",Un,".size!==",_a,"||",sa.map(function(gi){return Un+"."+gi+"!=="+Gr[gi]}).join("||"),"){",zn,".bindBuffer(",34962,",",Nn,".buffer);",zn,".vertexAttribPointer(",[En,_a,ga,Gr.normalized,Gr.stride,Gr.offset],");",Un,".type=",ga,";",Un,".size=",_a,";",sa.map(function(gi){return Un+"."+gi+"="+Gr[gi]+";"}).join(""),"}"),mr&&(ga=Gr.divisor,Fr("if(",Un,".divisor!==",ga,"){",Mr.instancing,".vertexAttribDivisorANGLE(",[En,ga],");",Un,".divisor=",ga,";}"))}function wn(){Fr("if(",Un,".buffer){",zn,".disableVertexAttribArray(",En,");",Un,".buffer=null;","}if(",st.map(function(ga,_a){return Un+"."+ga+"!=="+va[_a]}).join("||"),"){",zn,".vertexAttrib4f(",En,",",va,");",st.map(function(ga,_a){return Un+"."+ga+"="+va[_a]+";"}).join(""),"}")}var zn=un.gl,En=Fr.def(Er,".location"),Un=Fr.def(un.attributes,"[",En,"]");Er=Gr.state;var Nn=Gr.buffer,va=[Gr.x,Gr.y,Gr.z,Gr.w],sa=["buffer","normalized","offset","stride"];Er===1?qr():Er===2?wn():(Fr("if(",Er,"===",1,"){"),qr(),Fr("}else{"),wn(),Fr("}"))}var un=Mr.shared;Nr.forEach(function(Er){var Zr=Er.name,Gr=Ar.attributes[Zr],qr;if(Gr){if(!mn(Gr))return;qr=Gr.append(Mr,Fr)}else{if(!mn(Xt))return;var wn=Mr.scopeAttrib(Zr);qr={},Object.keys(new Wn).forEach(function(zn){qr[zn]=Fr.def(wn,".",zn)})}gn(Mr.link(Er),Rn(Er.info.type),qr)})}function zr(Mr,Fr,Ar,Nr,mn,Rn){for(var gn=Mr.shared,un=gn.gl,Er,Zr=0;Zr>1)",Un],");")}function _a(){Ar(Nn,".drawArraysInstancedANGLE(",[wn,zn,En,Un],");")}qr&&qr!=="null"?sa?ga():(Ar("if(",qr,"){"),ga(),Ar("}else{"),_a(),Ar("}")):_a()}function gn(){function ga(){Ar(Er+".drawElements("+[wn,En,va,zn+"<<(("+va+"-5121)>>1)"]+");")}function _a(){Ar(Er+".drawArrays("+[wn,zn,En]+");")}qr&&qr!=="null"?sa?ga():(Ar("if(",qr,"){"),ga(),Ar("}else{"),_a(),Ar("}")):_a()}var un=Mr.shared,Er=un.gl,Zr=un.draw,Gr=Nr.draw,qr=function(){var ga=Gr.elements,_a=Fr;return ga?((ga.contextDep&&Nr.contextDynamic||ga.propDep)&&(_a=Ar),ga=ga.append(Mr,_a),Gr.elementsActive&&_a("if("+ga+")"+Er+".bindBuffer(34963,"+ga+".buffer.buffer);")):(ga=_a.def(),_a(ga,"=",Zr,".","elements",";","if(",ga,"){",Er,".bindBuffer(",34963,",",ga,".buffer.buffer);}","else if(",un.vao,".currentVAO){",ga,"=",Mr.shared.elements+".getElements("+un.vao,".currentVAO.elements);",Jr?"":"if("+ga+")"+Er+".bindBuffer(34963,"+ga+".buffer.buffer);","}")),ga}(),wn=mn("primitive"),zn=mn("offset"),En=function(){var ga=Gr.count,_a=Fr;return ga?((ga.contextDep&&Nr.contextDynamic||ga.propDep)&&(_a=Ar),ga=ga.append(Mr,_a)):ga=_a.def(Zr,".","count"),ga}();if(typeof En=="number"){if(En===0)return}else Ar("if(",En,"){"),Ar.exit("}");var Un,Nn;mr&&(Un=mn("instances"),Nn=Mr.instancing);var va=qr+".type",sa=Gr.elements&&Q(Gr.elements)&&!Gr.vaoActive;mr&&(typeof Un!="number"||0<=Un)?typeof Un=="string"?(Ar("if(",Un,">0){"),Rn(),Ar("}else if(",Un,"<0){"),gn(),Ar("}")):Rn():gn()}function Or(Mr,Fr,Ar,Nr,mn){return Fr=zt(),mn=Fr.proc("body",mn),mr&&(Fr.instancing=mn.def(Fr.shared.extensions,".angle_instanced_arrays")),Mr(Fr,mn,Ar,Nr),Fr.compile().body}function ln(Mr,Fr,Ar,Nr){Sn(Mr,Fr),Ar.useVAO?Ar.drawVAO?Fr(Mr.shared.vao,".setVAO(",Ar.drawVAO.append(Mr,Fr),");"):Fr(Mr.shared.vao,".setVAO(",Mr.shared.vao,".targetVAO);"):(Fr(Mr.shared.vao,".setVAO(null);"),Tr(Mr,Fr,Ar,Nr.attributes,function(){return!0})),zr(Mr,Fr,Ar,Nr.uniforms,function(){return!0},!1),Yr(Mr,Fr,Fr,Ar)}function fn(Mr,Fr){var Ar=Mr.proc("draw",1);Sn(Mr,Ar),Pr(Mr,Ar,Fr.context),Rr(Mr,Ar,Fr.framebuffer),an(Mr,Ar,Fr),tn(Mr,Ar,Fr.state),Tn(Mr,Ar,Fr,!1,!0);var Nr=Fr.shader.progVar.append(Mr,Ar);if(Ar(Mr.shared.gl,".useProgram(",Nr,".program);"),Fr.shader.program)ln(Mr,Ar,Fr,Fr.shader.program);else{Ar(Mr.shared.vao,".setVAO(null);");var mn=Mr.global.def("{}"),Rn=Ar.def(Nr,".id"),gn=Ar.def(mn,"[",Rn,"]");Ar(Mr.cond(gn).then(gn,".call(this,a0);").else(gn,"=",mn,"[",Rn,"]=",Mr.link(function(un){return Or(ln,Mr,Fr,un,1)}),"(",Nr,");",gn,".call(this,a0);"))}0=--this.refCount&&at(this)},Ot.profile&&(yr.getTotalRenderbufferSize=function(){var Bt=0;return Object.keys(Vt).forEach(function(Ut){Bt+=Vt[Ut].stats.size}),Bt}),{create:function(Bt,Ut){function Jt(fr,dr){var Ye=0,Ue=0,zt=32854;if(typeof fr=="object"&&fr?("shape"in fr?(Ue=fr.shape,Ye=Ue[0]|0,Ue=Ue[1]|0):("radius"in fr&&(Ye=Ue=fr.radius|0),"width"in fr&&(Ye=fr.width|0),"height"in fr&&(Ue=fr.height|0)),"format"in fr&&(zt=xt[fr.format])):typeof fr=="number"?(Ye=fr|0,Ue=typeof dr=="number"?dr|0:Ye):fr||(Ye=Ue=1),Ye!==ur.width||Ue!==ur.height||zt!==ur.format)return Jt.width=ur.width=Ye,Jt.height=ur.height=Ue,ur.format=zt,gt.bindRenderbuffer(36161,ur.renderbuffer),gt.renderbufferStorage(36161,zt,Ye,Ue),Ot.profile&&(ur.stats.size=Ce[ur.format]*ur.width*ur.height),Jt.format=At[ur.format],Jt}var ur=new ut(gt.createRenderbuffer());return Vt[ur.id]=ur,yr.renderbufferCount++,Jt(Bt,Ut),Jt.resize=function(fr,dr){var Ye=fr|0,Ue=dr|0||Ye;return Ye===ur.width&&Ue===ur.height||(Jt.width=ur.width=Ye,Jt.height=ur.height=Ue,gt.bindRenderbuffer(36161,ur.renderbuffer),gt.renderbufferStorage(36161,ur.format,Ye,Ue),Ot.profile&&(ur.stats.size=Ce[ur.format]*ur.width*ur.height)),Jt},Jt._reglType="renderbuffer",Jt._renderbuffer=ur,Ot.profile&&(Jt.stats=ur.stats),Jt.destroy=function(){ur.decRef()},Jt},clear:function(){Te(Vt).forEach(at)},restore:function(){Te(Vt).forEach(function(Bt){Bt.renderbuffer=gt.createRenderbuffer(),gt.bindRenderbuffer(36161,Bt.renderbuffer),gt.renderbufferStorage(36161,Bt.format,Bt.width,Bt.height)}),gt.bindRenderbuffer(36161,null)}}},me=[];me[6408]=4,me[6407]=3;var Ne=[];Ne[5121]=1,Ne[5126]=4,Ne[36193]=2;var Ze=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],st=["x","y","z","w"],lt="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),Wt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Zt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Tt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Rt={cw:2304,ccw:2305},Xt=new X(!1,!1,!1,function(){}),gr=function(gt,Kt){function Qt(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function yr(Vt,Bt,Ut){var Jt=at.pop()||new Qt;Jt.startQueryIndex=Vt,Jt.endQueryIndex=Bt,Jt.sum=0,Jt.stats=Ut,xt.push(Jt)}if(!Kt.ext_disjoint_timer_query)return null;var Ot=[],ut=[],at=[],xt=[],At=[],Et=[];return{beginQuery:function(Vt){var Bt=Ot.pop()||Kt.ext_disjoint_timer_query.createQueryEXT();Kt.ext_disjoint_timer_query.beginQueryEXT(35007,Bt),ut.push(Bt),yr(ut.length-1,ut.length,Vt)},endQuery:function(){Kt.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:yr,update:function(){var Vt,Bt;if(Vt=ut.length,Vt!==0){Et.length=Math.max(Et.length,Vt+1),At.length=Math.max(At.length,Vt+1),At[0]=0;var Ut=Et[0]=0;for(Bt=Vt=0;Bt=Tn.length&&yr()}var Pn=se(Tn,fn);Tn[Pn]=Mn}}}function Et(){var fn=tn.viewport,Mn=tn.scissor_box;fn[0]=fn[1]=Mn[0]=Mn[1]=0,sr.viewportWidth=sr.framebufferWidth=sr.drawingBufferWidth=fn[2]=Mn[2]=Jt.drawingBufferWidth,sr.viewportHeight=sr.framebufferHeight=sr.drawingBufferHeight=fn[3]=Mn[3]=Jt.drawingBufferHeight}function Vt(){sr.tick+=1,sr.time=Ut(),Et(),Rr.procs.poll()}function Bt(){vr.refresh(),Et(),Rr.procs.refresh(),zt&&zt.update()}function Ut(){return(xe()-Dt)/1e3}if(gt=r(gt),!gt)return null;var Jt=gt.gl,ur=Jt.getContextAttributes();Jt.isContextLost();var fr=t(Jt,gt);if(!fr)return null;var an=s(),dr={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},Ye=gt.cachedCode||{},Ue=fr.extensions,zt=gr(Jt,Ue),Dt=xe(),cr=Jt.drawingBufferWidth,$t=Jt.drawingBufferHeight,sr={tick:0,time:0,viewportWidth:cr,viewportHeight:$t,framebufferWidth:cr,framebufferHeight:$t,drawingBufferWidth:cr,drawingBufferHeight:$t,pixelRatio:gt.pixelRatio},cr={elements:null,primitive:4,count:-1,offset:0,instances:-1},tr=De(Jt,Ue),Nt=i(Jt,dr,gt,function(fn){return hr.destroyBuffer(fn)}),ir=d(Jt,Ue,Nt,dr),hr=k(Jt,Ue,tr,dr,Nt,ir,cr),xr=O(Jt,an,dr,gt),vr=I(Jt,Ue,tr,function(){Rr.procs.poll()},sr,dr,gt),Hr=he(Jt,Ue,tr,dr,gt),Pr=D(Jt,Ue,tr,vr,Hr,dr),Rr=j(Jt,an,Ue,tr,Nt,ir,vr,Pr,{},hr,xr,cr,sr,zt,Ye,gt),an=F(Jt,Pr,Rr.procs.poll,sr),tn=Rr.next,Sn=Jt.canvas,Tn=[],Tr=[],zr=[],Yr=[gt.onDestroy],Or=null;Sn&&(Sn.addEventListener("webglcontextlost",Ot,!1),Sn.addEventListener("webglcontextrestored",ut,!1));var ln=Pr.setFBO=at({framebuffer:ge.define.call(null,1,"framebuffer")});return Bt(),ur=te(at,{clear:function(fn){if("framebuffer"in fn)if(fn.framebuffer&&fn.framebuffer_reglType==="framebufferCube")for(var Mn=0;6>Mn;++Mn)ln(te({framebuffer:fn.framebuffer.faces[Mn]},fn),xt);else ln(fn,xt);else xt(null,fn)},prop:ge.define.bind(null,1),context:ge.define.bind(null,2),this:ge.define.bind(null,3),draw:at({}),buffer:function(fn){return Nt.create(fn,34962,!1,!1)},elements:function(fn){return ir.create(fn,!1)},texture:vr.create2D,cube:vr.createCube,renderbuffer:Hr.create,framebuffer:Pr.create,framebufferCube:Pr.createCube,vao:hr.createVAO,attributes:ur,frame:At,on:function(fn,Mn){var Pn;switch(fn){case"frame":return At(Mn);case"lost":Pn=Tr;break;case"restore":Pn=zr;break;case"destroy":Pn=Yr}return Pn.push(Mn),{cancel:function(){for(var Vn=0;Vn */var m=e(33576),P=m.Buffer;function s(S,v){for(var p in S)v[p]=S[p]}P.from&&P.alloc&&P.allocUnsafe&&P.allocUnsafeSlow?G.exports=m:(s(m,H),H.Buffer=L);function L(S,v,p){return P(S,v,p)}L.prototype=Object.create(P.prototype),s(P,L),L.from=function(S,v,p){if(typeof S=="number")throw new TypeError("Argument must not be a number");return P(S,v,p)},L.alloc=function(S,v,p){if(typeof S!="number")throw new TypeError("Argument must be a number");var r=P(S);return v!==void 0?typeof p=="string"?r.fill(v,p):r.fill(v):r.fill(0),r},L.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return P(S)},L.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return m.SlowBuffer(S)}},14500:function(G,H,e){var m=e(53664),P=e(64348),s=e(39640)(),L=e(2304),S=m("%TypeError%"),v=m("%Math.floor%");G.exports=function(r,t){if(typeof r!="function")throw new S("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||v(t)!==t)throw new S("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,f=!0;if("length"in r&&L){var u=L(r,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(f=!1)}return(n||f||!a)&&(s?P(r,"length",t,!0,!0):P(r,"length",t)),r}},29936:function(G,H,e){G.exports=s;var m=e(61252).EventEmitter,P=e(6768);P(s,m),s.Readable=e(12348),s.Writable=e(11288),s.Duplex=e(15316),s.Transform=e(22477),s.PassThrough=e(27136),s.finished=e(15932),s.pipeline=e(38180),s.Stream=s;function s(){m.call(this)}s.prototype.pipe=function(L,S){var v=this;function p(l){L.writable&&L.write(l)===!1&&v.pause&&v.pause()}v.on("data",p);function r(){v.readable&&v.resume&&v.resume()}L.on("drain",r),!L._isStdio&&(!S||S.end!==!1)&&(v.on("end",a),v.on("close",n));var t=!1;function a(){t||(t=!0,L.end())}function n(){t||(t=!0,typeof L.destroy=="function"&&L.destroy())}function f(l){if(u(),m.listenerCount(this,"error")===0)throw l}v.on("error",f),L.on("error",f);function u(){v.removeListener("data",p),L.removeListener("drain",r),v.removeListener("end",a),v.removeListener("close",n),v.removeListener("error",f),L.removeListener("error",f),v.removeListener("end",u),v.removeListener("close",u),L.removeListener("close",u)}return v.on("end",u),v.on("close",u),L.on("close",u),L.emit("pipe",v),L}},92784:function(G){function H(v,p){v.prototype=Object.create(p.prototype),v.prototype.constructor=v,v.__proto__=p}var e={};function m(v,p,r){r||(r=Error);function t(n,f,u){return typeof p=="string"?p:p(n,f,u)}var a=function(n){H(f,n);function f(u,l,g){return n.call(this,t(u,l,g))||this}return f}(r);a.prototype.name=r.name,a.prototype.code=v,e[v]=a}function P(v,p){if(Array.isArray(v)){var r=v.length;return v=v.map(function(t){return String(t)}),r>2?"one of ".concat(p," ").concat(v.slice(0,r-1).join(", "),", or ")+v[r-1]:r===2?"one of ".concat(p," ").concat(v[0]," or ").concat(v[1]):"of ".concat(p," ").concat(v[0])}else return"of ".concat(p," ").concat(String(v))}function s(v,p,r){return v.substr(0,p.length)===p}function L(v,p,r){return(r===void 0||r>v.length)&&(r=v.length),v.substring(r-p.length,r)===p}function S(v,p,r){return typeof r!="number"&&(r=0),r+p.length>v.length?!1:v.indexOf(p,r)!==-1}m("ERR_INVALID_OPT_VALUE",function(v,p){return'The value "'+p+'" is invalid for option "'+v+'"'},TypeError),m("ERR_INVALID_ARG_TYPE",function(v,p,r){var t;typeof p=="string"&&s(p,"not ")?(t="must not be",p=p.replace(/^not /,"")):t="must be";var a;if(L(v," argument"))a="The ".concat(v," ").concat(t," ").concat(P(p,"type"));else{var n=S(v,".")?"property":"argument";a='The "'.concat(v,'" ').concat(n," ").concat(t," ").concat(P(p,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),m("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),m("ERR_STREAM_PREMATURE_CLOSE","Premature close"),m("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),m("ERR_STREAM_WRITE_AFTER_END","write after end"),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),G.exports.i=e},15316:function(G,H,e){var m=e(4168),P=Object.keys||function(n){var f=[];for(var u in n)f.push(u);return f};G.exports=r;var s=e(12348),L=e(11288);e(6768)(r,s);for(var S=P(L.prototype),v=0;v0)if(typeof j!="string"&&!ge.objectMode&&Object.getPrototypeOf(j)!==S.prototype&&(j=p(j)),te)ge.endEmitted?C(Y,new i):b(Y,ge,j,!0);else if(ge.ended)C(Y,new T);else{if(ge.destroyed)return!1;ge.reading=!1,ge.decoder&&!se?(j=ge.decoder.write(j),ge.objectMode||j.length!==0?b(Y,ge,j,!1):B(Y,ge)):b(Y,ge,j,!1)}else te||(ge.reading=!1,B(Y,ge))}return!ge.ended&&(ge.length=D?Y=D:(Y--,Y|=Y>>>1,Y|=Y>>>2,Y|=Y>>>4,Y|=Y>>>8,Y|=Y>>>16,Y++),Y}function k(Y,j){return Y<=0||j.length===0&&j.ended?0:j.objectMode?1:Y!==Y?j.flowing&&j.length?j.buffer.head.data.length:j.length:(Y>j.highWaterMark&&(j.highWaterMark=N(Y)),Y<=j.length?Y:j.ended?j.length:(j.needReadable=!0,0))}o.prototype.read=function(Y){a("read",Y),Y=parseInt(Y,10);var j=this._readableState,se=Y;if(Y!==0&&(j.emittedReadable=!1),Y===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return a("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?X(this):F(this),null;if(Y=k(Y,j),Y===0&&j.ended)return j.length===0&&X(this),null;var te=j.needReadable;a("need readable",te),(j.length===0||j.length-Y0?fe=ie(Y,j):fe=null,fe===null?(j.needReadable=j.length<=j.highWaterMark,Y=0):(j.length-=Y,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),se!==Y&&j.ended&&X(this)),fe!==null&&this.emit("data",fe),fe};function O(Y,j){if(a("onEofChunk"),!j.ended){if(j.decoder){var se=j.decoder.end();se&&se.length&&(j.buffer.push(se),j.length+=j.objectMode?1:se.length)}j.ended=!0,j.sync?F(Y):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,z(Y)))}}function F(Y){var j=Y._readableState;a("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(a("emitReadable",j.flowing),j.emittedReadable=!0,m.nextTick(z,Y))}function z(Y){var j=Y._readableState;a("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(Y.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,Z(Y)}function B(Y,j){j.readingMore||(j.readingMore=!0,m.nextTick(W,Y,j))}function W(Y,j){for(;!j.reading&&!j.ended&&(j.length1&&oe(te.pipes,Y)!==-1)&&!De&&(a("false write response, pause",te.awaitDrain),te.awaitDrain++),se.pause())}function Re(Ve){a("onerror",Ve),Me(),Y.removeListener("error",Re),s(Y,"error")===0&&C(Y,Ve)}E(Y,"error",Re);function Se(){Y.removeListener("finish",Ie),Me()}Y.once("close",Se);function Ie(){a("onfinish"),Y.removeListener("close",Se),Me()}Y.once("finish",Ie);function Me(){a("unpipe"),se.unpipe(Y)}return Y.emit("pipe",se),te.flowing||(a("pipe resume"),se.resume()),Y};function J(Y){return function(){var se=Y._readableState;a("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&s(Y,"data")&&(se.flowing=!0,Z(Y))}}o.prototype.unpipe=function(Y){var j=this._readableState,se={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return Y&&Y!==j.pipes?this:(Y||(Y=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,Y&&Y.emit("unpipe",this,se),this);if(!Y){var te=j.pipes,fe=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var ge=0;ge0,te.flowing!==!1&&this.resume()):Y==="readable"&&!te.endEmitted&&!te.readableListening&&(te.readableListening=te.needReadable=!0,te.flowing=!1,te.emittedReadable=!1,a("on readable",te.length,te.reading),te.length?F(this):te.reading||m.nextTick(ne,this)),se},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(Y,j){var se=L.prototype.removeListener.call(this,Y,j);return Y==="readable"&&m.nextTick(re,this),se},o.prototype.removeAllListeners=function(Y){var j=L.prototype.removeAllListeners.apply(this,arguments);return(Y==="readable"||Y===void 0)&&m.nextTick(re,this),j};function re(Y){var j=Y._readableState;j.readableListening=Y.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:Y.listenerCount("data")>0&&Y.resume()}function ne(Y){a("readable nexttick read 0"),Y.read(0)}o.prototype.resume=function(){var Y=this._readableState;return Y.flowing||(a("resume"),Y.flowing=!Y.readableListening,le(this,Y)),Y.paused=!1,this};function le(Y,j){j.resumeScheduled||(j.resumeScheduled=!0,m.nextTick($,Y,j))}function $(Y,j){a("resume",j.reading),j.reading||Y.read(0),j.resumeScheduled=!1,Y.emit("resume"),Z(Y),j.flowing&&!j.reading&&Y.read(0)}o.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Z(Y){var j=Y._readableState;for(a("flow",j.flowing);j.flowing&&Y.read()!==null;);}o.prototype.wrap=function(Y){var j=this,se=this._readableState,te=!1;Y.on("end",function(){if(a("wrapped end"),se.decoder&&!se.ended){var be=se.decoder.end();be&&be.length&&j.push(be)}j.push(null)}),Y.on("data",function(be){if(a("wrapped data"),se.decoder&&(be=se.decoder.write(be)),!(se.objectMode&&be==null)&&!(!se.objectMode&&(!be||!be.length))){var xe=j.push(be);xe||(te=!0,Y.pause())}});for(var fe in Y)this[fe]===void 0&&typeof Y[fe]=="function"&&(this[fe]=function(xe){return function(){return Y[xe].apply(Y,arguments)}}(fe));for(var ge=0;ge=j.length?(j.decoder?se=j.buffer.join(""):j.buffer.length===1?se=j.buffer.first():se=j.buffer.concat(j.length),j.buffer.clear()):se=j.buffer.consume(Y,j.decoder),se}function X(Y){var j=Y._readableState;a("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,m.nextTick(Q,j,Y))}function Q(Y,j){if(a("endReadableNT",Y.endEmitted,Y.length),!Y.endEmitted&&Y.length===0&&(Y.endEmitted=!0,j.readable=!1,j.emit("end"),Y.autoDestroy)){var se=j._writableState;(!se||se.autoDestroy&&se.finished)&&j.destroy()}}typeof Symbol=="function"&&(o.from=function(Y,j){return w===void 0&&(w=e(90555)),w(o,Y,j)});function oe(Y,j){for(var se=0,te=Y.length;se-1))throw new x(ie);return this._writableState.defaultEncoding=ie,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function b(Z,ie,X){return!Z.objectMode&&Z.decodeStrings!==!1&&typeof ie=="string"&&(ie=v.from(ie,X)),ie}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function I(Z,ie,X,Q,oe,Y){if(!X){var j=b(ie,Q,oe);Q!==j&&(X=!0,oe="buffer",Q=j)}var se=ie.objectMode?1:Q.length;ie.length+=se;var te=ie.length0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(g){var h={data:g,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var h=this.head,T=""+h.data;h=h.next;)T+=g+h.data;return T}},{key:"concat",value:function(g){if(this.length===0)return r.alloc(0);for(var h=r.allocUnsafe(g>>>0),T=this.head,c=0;T;)f(T.data,h,c),c+=T.data.length,T=T.next;return h}},{key:"consume",value:function(g,h){var T;return gi.length?i.length:g;if(d===i.length?c+=i:c+=i.slice(0,g),g-=d,g===0){d===i.length?(++T,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=i.slice(d));break}++T}return this.length-=T,c}},{key:"_getBuffer",value:function(g){var h=r.allocUnsafe(g),T=this.head,c=1;for(T.data.copy(h),g-=T.data.length;T=T.next;){var i=T.data,d=g>i.length?i.length:g;if(i.copy(h,h.length-g,0,d),g-=d,g===0){d===i.length?(++c,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=i.slice(d));break}++c}return this.length-=c,h}},{key:n,value:function(g,h){return a(this,P({},h,{depth:0,customInspect:!1}))}}]),u}()},55324:function(G,H,e){var m=e(4168);function P(r,t){var a=this,n=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return n||f?(t?t(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,m.nextTick(v,this,r)):m.nextTick(v,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(u){!t&&u?a._writableState?a._writableState.errorEmitted?m.nextTick(L,a):(a._writableState.errorEmitted=!0,m.nextTick(s,a,u)):m.nextTick(s,a,u):t?(m.nextTick(L,a),t(u)):m.nextTick(L,a)}),this)}function s(r,t){v(r,t),L(r)}function L(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function S(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(r,t){r.emit("error",t)}function p(r,t){var a=r._readableState,n=r._writableState;a&&a.autoDestroy||n&&n.autoDestroy?r.destroy(t):r.emit("error",t)}G.exports={destroy:P,undestroy:S,errorOrDestroy:p}},15932:function(G,H,e){var m=e(92784).i.ERR_STREAM_PREMATURE_CLOSE;function P(v){var p=!1;return function(){if(!p){p=!0;for(var r=arguments.length,t=new Array(r),a=0;a0;return r(i,x,w,function(C){T||(T=C),C&&c.forEach(t),!x&&(c.forEach(t),h(T))})});return l.reduce(a)}G.exports=f},24888:function(G,H,e){var m=e(92784).i.ERR_INVALID_OPT_VALUE;function P(L,S,v){return L.highWaterMark!=null?L.highWaterMark:S?L[v]:null}function s(L,S,v,p){var r=P(S,p,v);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var t=p?v:"highWaterMark";throw new m(t,r)}return Math.floor(r)}return L.objectMode?16:16384}G.exports={getHighWaterMark:s}},4776:function(G,H,e){G.exports=e(61252).EventEmitter},86032:function(G,H,e){var m=e(30456).Buffer,P=m.isEncoding||function(c){switch(c=""+c,c&&c.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(c){if(!c)return"utf8";for(var i;;)switch(c){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return c;default:if(i)return;c=(""+c).toLowerCase(),i=!0}}function L(c){var i=s(c);if(typeof i!="string"&&(m.isEncoding===P||!P(c)))throw new Error("Unknown encoding: "+c);return i||c}H.o=S;function S(c){this.encoding=L(c);var i;switch(this.encoding){case"utf16le":this.text=f,this.end=u,i=4;break;case"utf8":this.fillLast=t,i=4;break;case"base64":this.text=l,this.end=g,i=3;break;default:this.write=h,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(i)}S.prototype.write=function(c){if(c.length===0)return"";var i,d;if(this.lastNeed){if(i=this.fillLast(c),i===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function p(c,i,d){var x=i.length-1;if(x=0?(w>0&&(c.lastNeed=w-1),w):--x=0?(w>0&&(c.lastNeed=w-2),w):--x=0?(w>0&&(w===2?w=0:c.lastNeed=w-3),w):0))}function r(c,i,d){if((i[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&i.length>1){if((i[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&i.length>2&&(i[2]&192)!==128)return c.lastNeed=2,"�"}}function t(c){var i=this.lastTotal-this.lastNeed,d=r(this,c);if(d!==void 0)return d;if(this.lastNeed<=c.length)return c.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,i,0,c.length),this.lastNeed-=c.length}function a(c,i){var d=p(this,c,i);if(!this.lastNeed)return c.toString("utf8",i);this.lastTotal=d;var x=c.length-(d-this.lastNeed);return c.copy(this.lastChar,0,x),c.toString("utf8",i,x)}function n(c){var i=c&&c.length?this.write(c):"";return this.lastNeed?i+"�":i}function f(c,i){if((c.length-i)%2===0){var d=c.toString("utf16le",i);if(d){var x=d.charCodeAt(d.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",i,c.length-1)}function u(c){var i=c&&c.length?this.write(c):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,d)}return i}function l(c,i){var d=(c.length-i)%3;return d===0?c.toString("base64",i):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",i,c.length-d))}function g(c){var i=c&&c.length?this.write(c):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function h(c){return c.toString(this.encoding)}function T(c){return c&&c.length?this.write(c):""}},55619:function(G,H,e){var m=e(45408),P=e(86844)("stream-parser");G.exports=p;var s=-1,L=0,S=1,v=2;function p(c){var i=c&&typeof c._transform=="function",d=c&&typeof c._write=="function";if(!i&&!d)throw new Error("must pass a Writable or Transform stream in");P("extending Parser into stream"),c._bytes=t,c._skipBytes=a,i&&(c._passthrough=n),i?c._transform=u:c._write=f}function r(c){P("initializing parser stream"),c._parserBytesLeft=0,c._parserBuffers=[],c._parserBuffered=0,c._parserState=s,c._parserCallback=null,typeof c.push=="function"&&(c._parserOutput=c.push.bind(c)),c._parserInit=!0}function t(c,i){m(!this._parserCallback,'there is already a "callback" set!'),m(isFinite(c)&&c>0,'can only buffer a finite number of bytes > 0, got "'+c+'"'),this._parserInit||r(this),P("buffering %o bytes",c),this._parserBytesLeft=c,this._parserCallback=i,this._parserState=L}function a(c,i){m(!this._parserCallback,'there is already a "callback" set!'),m(c>0,'can only skip > 0 bytes, got "'+c+'"'),this._parserInit||r(this),P("skipping %o bytes",c),this._parserBytesLeft=c,this._parserCallback=i,this._parserState=S}function n(c,i){m(!this._parserCallback,'There is already a "callback" set!'),m(c>0,'can only pass through > 0 bytes, got "'+c+'"'),this._parserInit||r(this),P("passing through %o bytes",c),this._parserBytesLeft=c,this._parserCallback=i,this._parserState=v}function f(c,i,d){this._parserInit||r(this),P("write(%o bytes)",c.length),typeof i=="function"&&(d=i),h(this,c,null,d)}function u(c,i,d){this._parserInit||r(this),P("transform(%o bytes)",c.length),typeof i!="function"&&(i=this._parserOutput),h(this,c,i,d)}function l(c,i,d,x){return c._parserBytesLeft<=0?x(new Error("got data but not currently parsing anything")):i.length<=c._parserBytesLeft?function(){return g(c,i,d,x)}:function(){var w=i.slice(0,c._parserBytesLeft);return g(c,w,d,function(C){if(C)return x(C);if(i.length>w.length)return function(){return l(c,i.slice(w.length),d,x)}})}}function g(c,i,d,x){if(c._parserBytesLeft-=i.length,P("%o bytes left for stream piece",c._parserBytesLeft),c._parserState===L?(c._parserBuffers.push(i),c._parserBuffered+=i.length):c._parserState===v&&d(i),c._parserBytesLeft===0){var w=c._parserCallback;if(w&&c._parserState===L&&c._parserBuffers.length>1&&(i=Buffer.concat(c._parserBuffers,c._parserBuffered)),c._parserState!==L&&(i=null),c._parserCallback=null,c._parserBuffered=0,c._parserState=s,c._parserBuffers.splice(0),w){var C=[];i&&C.push(i),d&&C.push(d);var y=w.length>C.length;y&&C.push(T(x));var E=w.apply(c,C);if(!y||x===E)return x}}else return x}var h=T(l);function T(c){return function(){for(var i=c.apply(this,arguments);typeof i=="function";)i=i();return i}}},86844:function(G,H,e){var m=e(4168);H=G.exports=e(89416),H.log=L,H.formatArgs=s,H.save=S,H.load=v,H.useColors=P,H.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:p(),H.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function P(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}H.formatters.j=function(r){try{return JSON.stringify(r)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function s(r){var t=this.useColors;if(r[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+r[0]+(t?"%c ":" ")+"+"+H.humanize(this.diff),!!t){var a="color: "+this.color;r.splice(1,0,a,"color: inherit");var n=0,f=0;r[0].replace(/%[a-zA-Z%]/g,function(u){u!=="%%"&&(n++,u==="%c"&&(f=n))}),r.splice(f,0,a)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function S(r){try{r==null?H.storage.removeItem("debug"):H.storage.debug=r}catch{}}function v(){var r;try{r=H.storage.debug}catch{}return!r&&typeof m<"u"&&"env"in m&&(r=m.env.DEBUG),r}H.enable(v());function p(){try{return window.localStorage}catch{}}},89416:function(G,H,e){H=G.exports=s.debug=s.default=s,H.coerce=p,H.disable=S,H.enable=L,H.enabled=v,H.humanize=e(93744),H.names=[],H.skips=[],H.formatters={};var m;function P(r){var t=0,a;for(a in r)t=(t<<5)-t+r.charCodeAt(a),t|=0;return H.colors[Math.abs(t)%H.colors.length]}function s(r){function t(){if(t.enabled){var a=t,n=+new Date,f=n-(m||n);a.diff=f,a.prev=m,a.curr=n,m=n;for(var u=new Array(arguments.length),l=0;l0)return L(r);if(a==="number"&&isNaN(r)===!1)return t.long?v(r):S(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function L(r){if(r=String(r),!(r.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(r);if(t){var a=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*P;case"hours":case"hour":case"hrs":case"hr":case"h":return a*m;case"minutes":case"minute":case"mins":case"min":case"m":return a*e;case"seconds":case"second":case"secs":case"sec":case"s":return a*H;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function S(r){return r>=P?Math.round(r/P)+"d":r>=m?Math.round(r/m)+"h":r>=e?Math.round(r/e)+"m":r>=H?Math.round(r/H)+"s":r+"ms"}function v(r){return p(r,P,"day")||p(r,m,"hour")||p(r,e,"minute")||p(r,H,"second")||r+" ms"}function p(r,t,a){if(!(r",'""',"''","``","“”","«»"]:(typeof S.ignore=="string"&&(S.ignore=[S.ignore]),S.ignore=S.ignore.map(function(u){return u.length===1&&(u=u+u),u}));var v=m.parse(s,{flat:!0,brackets:S.ignore}),p=v[0],r=p.split(L);if(S.escape){for(var t=[],a=0;a0;){h=c[c.length-1];var i=e[h];if(S[h]=0&&p[h].push(v[x])}S[h]=d}else{if(s[h]===P[h]){for(var w=[],C=[],y=0,d=T.length-1;d>=0;--d){var E=T[d];if(L[E]=!1,w.push(E),C.push(p[E]),y+=p[E].length,v[E]=a.length,E===h){T.length=d;break}}a.push(w);for(var A=new Array(y),d=0;d1&&(l=1),l<-1&&(l=-1),u*Math.acos(l)},v=function(t,a,n,f,u,l,g,h,T,c,i,d){var x=Math.pow(u,2),w=Math.pow(l,2),C=Math.pow(i,2),y=Math.pow(d,2),E=x*w-x*y-w*C;E<0&&(E=0),E/=x*y+w*C,E=Math.sqrt(E)*(g===h?-1:1);var A=E*u/l*d,o=E*-l/u*i,M=c*A-T*o+(t+n)/2,b=T*A+c*o+(a+f)/2,I=(i-A)/u,D=(d-o)/l,N=(-i-A)/u,k=(-d-o)/l,O=S(1,0,I,D),F=S(I,D,N,k);return h===0&&F>0&&(F-=P),h===1&&F<0&&(F+=P),[M,b,O,F]},p=function(t){var a=t.px,n=t.py,f=t.cx,u=t.cy,l=t.rx,g=t.ry,h=t.xAxisRotation,T=h===void 0?0:h,c=t.largeArcFlag,i=c===void 0?0:c,d=t.sweepFlag,x=d===void 0?0:d,w=[];if(l===0||g===0)return[];var C=Math.sin(T*P/360),y=Math.cos(T*P/360),E=y*(a-f)/2+C*(n-u)/2,A=-C*(a-f)/2+y*(n-u)/2;if(E===0&&A===0)return[];l=Math.abs(l),g=Math.abs(g);var o=Math.pow(E,2)/Math.pow(l,2)+Math.pow(A,2)/Math.pow(g,2);o>1&&(l*=Math.sqrt(o),g*=Math.sqrt(o));var M=v(a,n,f,u,l,g,i,x,C,y,E,A),b=m(M,4),I=b[0],D=b[1],N=b[2],k=b[3],O=Math.abs(k)/(P/4);Math.abs(1-O)<1e-7&&(O=1);var F=Math.max(Math.ceil(O),1);k/=F;for(var z=0;zr[2]&&(r[2]=n[f+0]),n[f+1]>r[3]&&(r[3]=n[f+1]);return r}},41976:function(G,H,e){G.exports=P;var m=e(92848);function P(S){for(var v,p=[],r=0,t=0,a=0,n=0,f=null,u=null,l=0,g=0,h=0,T=S.length;h4?(r=c[c.length-4],t=c[c.length-3]):(r=l,t=g),p.push(c)}return p}function s(S,v,p,r){return["C",S,v,p,r,p,r]}function L(S,v,p,r,t,a){return["C",S/3+.6666666666666666*p,v/3+.6666666666666666*r,t/3+.6666666666666666*p,a/3+.6666666666666666*r,t,a]}},20472:function(G,H,e){var m=e(74840),P=e(21984),s=e(22235),L=e(53520),S=e(29620),v=document.createElement("canvas"),p=v.getContext("2d");G.exports=r;function r(n,f){if(!L(n))throw Error("Argument should be valid svg path string");f||(f={});var u,l;f.shape?(u=f.shape[0],l=f.shape[1]):(u=v.width=f.w||f.width||200,l=v.height=f.h||f.height||200);var g=Math.min(u,l),h=f.stroke||0,T=f.viewbox||f.viewBox||m(n),c=[u/(T[2]-T[0]),l/(T[3]-T[1])],i=Math.min(c[0]||0,c[1]||0)/2;if(p.fillStyle="black",p.fillRect(0,0,u,l),p.fillStyle="white",h&&(typeof h!="number"&&(h=1),h>0?p.strokeStyle="white":p.strokeStyle="black",p.lineWidth=Math.abs(h)),p.translate(u*.5,l*.5),p.scale(i,i),a()){var d=new Path2D(n);p.fill(d),h&&p.stroke(d)}else{var x=P(n);s(p,x),p.fill(),h&&p.stroke()}p.setTransform(1,0,0,1,0,0);var w=S(p,{cutoff:f.cutoff!=null?f.cutoff:.5,radius:f.radius!=null?f.radius:g*.5});return w}var t;function a(){if(t!=null)return t;var n=document.createElement("canvas").getContext("2d");if(n.canvas.width=n.canvas.height=1,!window.Path2D)return t=!1;var f=new Path2D("M0,0h1v1h-1v-1Z");n.fillStyle="black",n.fill(f);var u=n.getImageData(0,0,1,1);return t=u&&u.data&&u.data[3]===255}},49760:function(G,H,e){var m;(function(P){var s=/^\s+/,L=/\s+$/,S=0,v=P.round,p=P.min,r=P.max,t=P.random;function a(j,se){if(j=j||"",se=se||{},j instanceof a)return j;if(!(this instanceof a))return new a(j,se);var te=n(j);this._originalInput=j,this._r=te.r,this._g=te.g,this._b=te.b,this._a=te.a,this._roundA=v(100*this._a)/100,this._format=se.format||te.format,this._gradientType=se.gradientType,this._r<1&&(this._r=v(this._r)),this._g<1&&(this._g=v(this._g)),this._b<1&&(this._b=v(this._b)),this._ok=te.ok,this._tc_id=S++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),se,te,fe,ge,be,xe;return se=j.r/255,te=j.g/255,fe=j.b/255,se<=.03928?ge=se/12.92:ge=P.pow((se+.055)/1.055,2.4),te<=.03928?be=te/12.92:be=P.pow((te+.055)/1.055,2.4),fe<=.03928?xe=fe/12.92:xe=P.pow((fe+.055)/1.055,2.4),.2126*ge+.7152*be+.0722*xe},setAlpha:function(j){return this._a=z(j),this._roundA=v(100*this._a)/100,this},toHsv:function(){var j=g(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=g(this._r,this._g,this._b),se=v(j.h*360),te=v(j.s*100),fe=v(j.v*100);return this._a==1?"hsv("+se+", "+te+"%, "+fe+"%)":"hsva("+se+", "+te+"%, "+fe+"%, "+this._roundA+")"},toHsl:function(){var j=u(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=u(this._r,this._g,this._b),se=v(j.h*360),te=v(j.s*100),fe=v(j.l*100);return this._a==1?"hsl("+se+", "+te+"%, "+fe+"%)":"hsla("+se+", "+te+"%, "+fe+"%, "+this._roundA+")"},toHex:function(j){return T(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return c(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:v(this._r),g:v(this._g),b:v(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+v(this._r)+", "+v(this._g)+", "+v(this._b)+")":"rgba("+v(this._r)+", "+v(this._g)+", "+v(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:v(B(this._r,255)*100)+"%",g:v(B(this._g,255)*100)+"%",b:v(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+v(B(this._r,255)*100)+"%, "+v(B(this._g,255)*100)+"%, "+v(B(this._b,255)*100)+"%)":"rgba("+v(B(this._r,255)*100)+"%, "+v(B(this._g,255)*100)+"%, "+v(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:O[T(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var se="#"+i(this._r,this._g,this._b,this._a),te=se,fe=this._gradientType?"GradientType = 1, ":"";if(j){var ge=a(j);te="#"+i(ge._r,ge._g,ge._b,ge._a)}return"progid:DXImageTransform.Microsoft.gradient("+fe+"startColorstr="+se+",endColorstr="+te+")"},toString:function(j){var se=!!j;j=j||this._format;var te=!1,fe=this._a<1&&this._a>=0,ge=!se&&fe&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return ge?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(te=this.toRgbString()),j==="prgb"&&(te=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(te=this.toHexString()),j==="hex3"&&(te=this.toHexString(!0)),j==="hex4"&&(te=this.toHex8String(!0)),j==="hex8"&&(te=this.toHex8String()),j==="name"&&(te=this.toName()),j==="hsl"&&(te=this.toHslString()),j==="hsv"&&(te=this.toHsvString()),te||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(j,se){var te=j.apply(null,[this].concat([].slice.call(se)));return this._r=te._r,this._g=te._g,this._b=te._b,this.setAlpha(te._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(j,se){return j.apply(null,[this].concat([].slice.call(se)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},a.fromRatio=function(j,se){if(typeof j=="object"){var te={};for(var fe in j)j.hasOwnProperty(fe)&&(fe==="a"?te[fe]=j[fe]:te[fe]=$(j[fe]));j=te}return a(j,se)};function n(j){var se={r:0,g:0,b:0},te=1,fe=null,ge=null,be=null,xe=!1,_e=!1;return typeof j=="string"&&(j=oe(j)),typeof j=="object"&&(Q(j.r)&&Q(j.g)&&Q(j.b)?(se=f(j.r,j.g,j.b),xe=!0,_e=String(j.r).substr(-1)==="%"?"prgb":"rgb"):Q(j.h)&&Q(j.s)&&Q(j.v)?(fe=$(j.s),ge=$(j.v),se=h(j.h,fe,ge),xe=!0,_e="hsv"):Q(j.h)&&Q(j.s)&&Q(j.l)&&(fe=$(j.s),be=$(j.l),se=l(j.h,fe,be),xe=!0,_e="hsl"),j.hasOwnProperty("a")&&(te=j.a)),te=z(te),{ok:xe,format:j.format||_e,r:p(255,r(se.r,0)),g:p(255,r(se.g,0)),b:p(255,r(se.b,0)),a:te}}function f(j,se,te){return{r:B(j,255)*255,g:B(se,255)*255,b:B(te,255)*255}}function u(j,se,te){j=B(j,255),se=B(se,255),te=B(te,255);var fe=r(j,se,te),ge=p(j,se,te),be,xe,_e=(fe+ge)/2;if(fe==ge)be=xe=0;else{var De=fe-ge;switch(xe=_e>.5?De/(2-fe-ge):De/(fe+ge),fe){case j:be=(se-te)/De+(se1&&(Re-=1),Re<.16666666666666666?Fe+(Te-Fe)*6*Re:Re<.5?Te:Re<.6666666666666666?Fe+(Te-Fe)*(.6666666666666666-Re)*6:Fe}if(se===0)fe=ge=be=te;else{var _e=te<.5?te*(1+se):te+se-te*se,De=2*te-_e;fe=xe(De,_e,j+.3333333333333333),ge=xe(De,_e,j),be=xe(De,_e,j-.3333333333333333)}return{r:fe*255,g:ge*255,b:be*255}}function g(j,se,te){j=B(j,255),se=B(se,255),te=B(te,255);var fe=r(j,se,te),ge=p(j,se,te),be,xe,_e=fe,De=fe-ge;if(xe=fe===0?0:De/fe,fe==ge)be=0;else{switch(fe){case j:be=(se-te)/De+(se>1)+720)%360;--se;)fe.h=(fe.h+ge)%360,be.push(a(fe));return be}function N(j,se){se=se||6;for(var te=a(j).toHsv(),fe=te.h,ge=te.s,be=te.v,xe=[],_e=1/se;se--;)xe.push(a({h:fe,s:ge,v:be})),be=(be+_e)%1;return xe}a.mix=function(j,se,te){te=te===0?0:te||50;var fe=a(j).toRgb(),ge=a(se).toRgb(),be=te/100,xe={r:(ge.r-fe.r)*be+fe.r,g:(ge.g-fe.g)*be+fe.g,b:(ge.b-fe.b)*be+fe.b,a:(ge.a-fe.a)*be+fe.a};return a(xe)},a.readability=function(j,se){var te=a(j),fe=a(se);return(P.max(te.getLuminance(),fe.getLuminance())+.05)/(P.min(te.getLuminance(),fe.getLuminance())+.05)},a.isReadable=function(j,se,te){var fe=a.readability(j,se),ge,be;switch(be=!1,ge=Y(te),ge.level+ge.size){case"AAsmall":case"AAAlarge":be=fe>=4.5;break;case"AAlarge":be=fe>=3;break;case"AAAsmall":be=fe>=7;break}return be},a.mostReadable=function(j,se,te){var fe=null,ge=0,be,xe,_e,De;te=te||{},xe=te.includeFallbackColors,_e=te.level,De=te.size;for(var Fe=0;Fege&&(ge=be,fe=a(se[Fe]));return a.isReadable(j,fe,{level:_e,size:De})||!xe?fe:(te.includeFallbackColors=!1,a.mostReadable(j,["#fff","#000"],te))};var k=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=a.hexNames=F(k);function F(j){var se={};for(var te in j)j.hasOwnProperty(te)&&(se[j[te]]=te);return se}function z(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function B(j,se){re(j)&&(j="100%");var te=ne(j);return j=p(se,r(0,parseFloat(j))),te&&(j=parseInt(j*se,10)/100),P.abs(j-se)<1e-6?1:j%se/parseFloat(se)}function W(j){return p(1,r(0,j))}function J(j){return parseInt(j,16)}function re(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function ne(j){return typeof j=="string"&&j.indexOf("%")!=-1}function le(j){return j.length==1?"0"+j:""+j}function $(j){return j<=1&&(j=j*100+"%"),j}function Z(j){return P.round(parseFloat(j)*255).toString(16)}function ie(j){return J(j)/255}var X=function(){var j="[-\\+]?\\d+%?",se="[-\\+]?\\d*\\.\\d+%?",te="(?:"+se+")|(?:"+j+")",fe="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?",ge="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?";return{CSS_UNIT:new RegExp(te),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+ge),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+ge),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+ge),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(j){return!!X.CSS_UNIT.exec(j)}function oe(j){j=j.replace(s,"").replace(L,"").toLowerCase();var se=!1;if(k[j])j=k[j],se=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var te;return(te=X.rgb.exec(j))?{r:te[1],g:te[2],b:te[3]}:(te=X.rgba.exec(j))?{r:te[1],g:te[2],b:te[3],a:te[4]}:(te=X.hsl.exec(j))?{h:te[1],s:te[2],l:te[3]}:(te=X.hsla.exec(j))?{h:te[1],s:te[2],l:te[3],a:te[4]}:(te=X.hsv.exec(j))?{h:te[1],s:te[2],v:te[3]}:(te=X.hsva.exec(j))?{h:te[1],s:te[2],v:te[3],a:te[4]}:(te=X.hex8.exec(j))?{r:J(te[1]),g:J(te[2]),b:J(te[3]),a:ie(te[4]),format:se?"name":"hex8"}:(te=X.hex6.exec(j))?{r:J(te[1]),g:J(te[2]),b:J(te[3]),format:se?"name":"hex"}:(te=X.hex4.exec(j))?{r:J(te[1]+""+te[1]),g:J(te[2]+""+te[2]),b:J(te[3]+""+te[3]),a:ie(te[4]+""+te[4]),format:se?"name":"hex8"}:(te=X.hex3.exec(j))?{r:J(te[1]+""+te[1]),g:J(te[2]+""+te[2]),b:J(te[3]+""+te[3]),format:se?"name":"hex"}:!1}function Y(j){var se,te;return j=j||{level:"AA",size:"small"},se=(j.level||"AA").toUpperCase(),te=(j.size||"small").toLowerCase(),se!=="AA"&&se!=="AAA"&&(se="AA"),te!=="small"&&te!=="large"&&(te="small"),{level:se,size:te}}G.exports?G.exports=a:(m=(function(){return a}).call(H,e,H,G),m!==void 0&&(G.exports=m))})(Math)},37816:function(G){G.exports=m,G.exports.float32=G.exports.float=m,G.exports.fract32=G.exports.fract=e;var H=new Float32Array(1);function e(P,s){if(P.length){if(P instanceof Float32Array)return new Float32Array(P.length);s instanceof Float32Array||(s=m(P));for(var L=0,S=s.length;L":(L.length>100&&(L=L.slice(0,99)+"…"),L=L.replace(P,function(S){switch(S){case` +`),Ut;return yr&&(Ut=B(z(W(Bt))),yr[Ut])?yr[Ut].apply(null,at):(Bt=Function.apply(null,ut.concat(Bt)),yr&&(yr[Ut]=Bt),Bt.apply(null,at))}}}function Z(gt){return Array.isArray(gt)||Fe(gt)||u(gt)}function ie(gt){return gt.sort(function(Kt,Qt){return Kt==="viewport"?-1:Qt==="viewport"?1:Kt"+ga+"?"+Gr+".constant["+ga+"]:0;"}).join(""),"}}else{","if(",wn,"(",Gr,".buffer)){",Nn,"=",zn,".createStream(",34962,",",Gr,".buffer);","}else{",Nn,"=",zn,".getBuffer(",Gr,".buffer);","}",va,'="type" in ',Gr,"?",qr.glTypes,"[",Gr,".type]:",Nn,".dtype;",En.normalized,"=!!",Gr,".normalized;"),Zr("size"),Zr("offset"),Zr("stride"),Zr("divisor"),Er("}}"),Er.exit("if(",En.isStream,"){",zn,".destroyStream(",Nn,");","}"),En})}),mn}function vr(Mr){var Fr=Mr.static,Ar=Mr.dynamic,Nr={};return Object.keys(Fr).forEach(function(mn){var Rn=Fr[mn];Nr[mn]=oe(function(gn,un){return typeof Rn=="number"||typeof Rn=="boolean"?""+Rn:gn.link(Rn)})}),Object.keys(Ar).forEach(function(mn){var Rn=Ar[mn];Nr[mn]=Y(Rn,function(gn,un){return gn.invoke(un,Rn)})}),Nr}function Hr(Mr,Fr,Ar,Nr,mn){function Rn(Un){var Nn=un[Un];Nn&&(Zr[Un]=Nn)}var gn=cr(Mr,Fr),wn=$t(Mr),un=sr(Mr,wn),Er=Nt(Mr),Zr=ir(Mr),Gr=tr(Mr,mn,gn);Rn("viewport"),Rn(dr("scissor.box"));var qr=0"u"?"Date.now()":"performance.now()"}function gn(Un){zn=Fr.def(),Un(zn,"=",Rn(),";"),typeof mn=="string"?Un(Gr,".count+=",mn,";"):Un(Gr,".count++;"),Jt&&(Nr?(En=Fr.def(),Un(En,"=",wn,".getNumPendingQueries();")):Un(wn,".beginQuery(",Gr,");"))}function un(Un){Un(Gr,".cpuTime+=",Rn(),"-",zn,";"),Jt&&(Nr?Un(wn,".pushScopeStats(",En,",",wn,".getNumPendingQueries(),",Gr,");"):Un(wn,".endQuery();"))}function Er(Un){var Nn=Fr.def(qr,".profile");Fr(qr,".profile=",Un,";"),Fr.exit(qr,".profile=",Nn,";")}var Zr=Mr.shared,Gr=Mr.stats,qr=Zr.current,wn=Zr.timer;Ar=Ar.profile;var zn,En;if(Ar){if(Q(Ar)){Ar.enable?(gn(Fr),un(Fr.exit),Er("true")):Er("false");return}Ar=Ar.append(Mr,Fr),Er(Ar)}else Ar=Fr.def(qr,".profile");Zr=Mr.block(),gn(Zr),Fr("if(",Ar,"){",Zr,"}"),Mr=Mr.block(),un(Mr),Fr.exit("if(",Ar,"){",Mr,"}")}function Tr(Mr,Fr,Ar,Nr,mn){function Rn(Er){switch(Er){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function gn(Er,Zr,Gr){function qr(){Fr("if(!",Un,".buffer){",zn,".enableVertexAttribArray(",En,");}");var ga=Gr.type,_a;_a=Gr.size?Fr.def(Gr.size,"||",Zr):Zr,Fr("if(",Un,".type!==",ga,"||",Un,".size!==",_a,"||",sa.map(function(gi){return Un+"."+gi+"!=="+Gr[gi]}).join("||"),"){",zn,".bindBuffer(",34962,",",Nn,".buffer);",zn,".vertexAttribPointer(",[En,_a,ga,Gr.normalized,Gr.stride,Gr.offset],");",Un,".type=",ga,";",Un,".size=",_a,";",sa.map(function(gi){return Un+"."+gi+"="+Gr[gi]+";"}).join(""),"}"),mr&&(ga=Gr.divisor,Fr("if(",Un,".divisor!==",ga,"){",Mr.instancing,".vertexAttribDivisorANGLE(",[En,ga],");",Un,".divisor=",ga,";}"))}function wn(){Fr("if(",Un,".buffer){",zn,".disableVertexAttribArray(",En,");",Un,".buffer=null;","}if(",st.map(function(ga,_a){return Un+"."+ga+"!=="+va[_a]}).join("||"),"){",zn,".vertexAttrib4f(",En,",",va,");",st.map(function(ga,_a){return Un+"."+ga+"="+va[_a]+";"}).join(""),"}")}var zn=un.gl,En=Fr.def(Er,".location"),Un=Fr.def(un.attributes,"[",En,"]");Er=Gr.state;var Nn=Gr.buffer,va=[Gr.x,Gr.y,Gr.z,Gr.w],sa=["buffer","normalized","offset","stride"];Er===1?qr():Er===2?wn():(Fr("if(",Er,"===",1,"){"),qr(),Fr("}else{"),wn(),Fr("}"))}var un=Mr.shared;Nr.forEach(function(Er){var Zr=Er.name,Gr=Ar.attributes[Zr],qr;if(Gr){if(!mn(Gr))return;qr=Gr.append(Mr,Fr)}else{if(!mn(Xt))return;var wn=Mr.scopeAttrib(Zr);qr={},Object.keys(new Wn).forEach(function(zn){qr[zn]=Fr.def(wn,".",zn)})}gn(Mr.link(Er),Rn(Er.info.type),qr)})}function zr(Mr,Fr,Ar,Nr,mn,Rn){for(var gn=Mr.shared,un=gn.gl,Er,Zr=0;Zr>1)",Un],");")}function _a(){Ar(Nn,".drawArraysInstancedANGLE(",[wn,zn,En,Un],");")}qr&&qr!=="null"?sa?ga():(Ar("if(",qr,"){"),ga(),Ar("}else{"),_a(),Ar("}")):_a()}function gn(){function ga(){Ar(Er+".drawElements("+[wn,En,va,zn+"<<(("+va+"-5121)>>1)"]+");")}function _a(){Ar(Er+".drawArrays("+[wn,zn,En]+");")}qr&&qr!=="null"?sa?ga():(Ar("if(",qr,"){"),ga(),Ar("}else{"),_a(),Ar("}")):_a()}var un=Mr.shared,Er=un.gl,Zr=un.draw,Gr=Nr.draw,qr=function(){var ga=Gr.elements,_a=Fr;return ga?((ga.contextDep&&Nr.contextDynamic||ga.propDep)&&(_a=Ar),ga=ga.append(Mr,_a),Gr.elementsActive&&_a("if("+ga+")"+Er+".bindBuffer(34963,"+ga+".buffer.buffer);")):(ga=_a.def(),_a(ga,"=",Zr,".","elements",";","if(",ga,"){",Er,".bindBuffer(",34963,",",ga,".buffer.buffer);}","else if(",un.vao,".currentVAO){",ga,"=",Mr.shared.elements+".getElements("+un.vao,".currentVAO.elements);",Jr?"":"if("+ga+")"+Er+".bindBuffer(34963,"+ga+".buffer.buffer);","}")),ga}(),wn=mn("primitive"),zn=mn("offset"),En=function(){var ga=Gr.count,_a=Fr;return ga?((ga.contextDep&&Nr.contextDynamic||ga.propDep)&&(_a=Ar),ga=ga.append(Mr,_a)):ga=_a.def(Zr,".","count"),ga}();if(typeof En=="number"){if(En===0)return}else Ar("if(",En,"){"),Ar.exit("}");var Un,Nn;mr&&(Un=mn("instances"),Nn=Mr.instancing);var va=qr+".type",sa=Gr.elements&&Q(Gr.elements)&&!Gr.vaoActive;mr&&(typeof Un!="number"||0<=Un)?typeof Un=="string"?(Ar("if(",Un,">0){"),Rn(),Ar("}else if(",Un,"<0){"),gn(),Ar("}")):Rn():gn()}function Or(Mr,Fr,Ar,Nr,mn){return Fr=zt(),mn=Fr.proc("body",mn),mr&&(Fr.instancing=mn.def(Fr.shared.extensions,".angle_instanced_arrays")),Mr(Fr,mn,Ar,Nr),Fr.compile().body}function ln(Mr,Fr,Ar,Nr){Sn(Mr,Fr),Ar.useVAO?Ar.drawVAO?Fr(Mr.shared.vao,".setVAO(",Ar.drawVAO.append(Mr,Fr),");"):Fr(Mr.shared.vao,".setVAO(",Mr.shared.vao,".targetVAO);"):(Fr(Mr.shared.vao,".setVAO(null);"),Tr(Mr,Fr,Ar,Nr.attributes,function(){return!0})),zr(Mr,Fr,Ar,Nr.uniforms,function(){return!0},!1),Yr(Mr,Fr,Fr,Ar)}function fn(Mr,Fr){var Ar=Mr.proc("draw",1);Sn(Mr,Ar),_r(Mr,Ar,Fr.context),Dr(Mr,Ar,Fr.framebuffer),an(Mr,Ar,Fr),tn(Mr,Ar,Fr.state),Tn(Mr,Ar,Fr,!1,!0);var Nr=Fr.shader.progVar.append(Mr,Ar);if(Ar(Mr.shared.gl,".useProgram(",Nr,".program);"),Fr.shader.program)ln(Mr,Ar,Fr,Fr.shader.program);else{Ar(Mr.shared.vao,".setVAO(null);");var mn=Mr.global.def("{}"),Rn=Ar.def(Nr,".id"),gn=Ar.def(mn,"[",Rn,"]");Ar(Mr.cond(gn).then(gn,".call(this,a0);").else(gn,"=",mn,"[",Rn,"]=",Mr.link(function(un){return Or(ln,Mr,Fr,un,1)}),"(",Nr,");",gn,".call(this,a0);"))}0=--this.refCount&&at(this)},Ot.profile&&(yr.getTotalRenderbufferSize=function(){var Bt=0;return Object.keys(Vt).forEach(function(Ut){Bt+=Vt[Ut].stats.size}),Bt}),{create:function(Bt,Ut){function Jt(fr,dr){var Ye=0,Ue=0,zt=32854;if(typeof fr=="object"&&fr?("shape"in fr?(Ue=fr.shape,Ye=Ue[0]|0,Ue=Ue[1]|0):("radius"in fr&&(Ye=Ue=fr.radius|0),"width"in fr&&(Ye=fr.width|0),"height"in fr&&(Ue=fr.height|0)),"format"in fr&&(zt=xt[fr.format])):typeof fr=="number"?(Ye=fr|0,Ue=typeof dr=="number"?dr|0:Ye):fr||(Ye=Ue=1),Ye!==ur.width||Ue!==ur.height||zt!==ur.format)return Jt.width=ur.width=Ye,Jt.height=ur.height=Ue,ur.format=zt,gt.bindRenderbuffer(36161,ur.renderbuffer),gt.renderbufferStorage(36161,zt,Ye,Ue),Ot.profile&&(ur.stats.size=Ce[ur.format]*ur.width*ur.height),Jt.format=At[ur.format],Jt}var ur=new ut(gt.createRenderbuffer());return Vt[ur.id]=ur,yr.renderbufferCount++,Jt(Bt,Ut),Jt.resize=function(fr,dr){var Ye=fr|0,Ue=dr|0||Ye;return Ye===ur.width&&Ue===ur.height||(Jt.width=ur.width=Ye,Jt.height=ur.height=Ue,gt.bindRenderbuffer(36161,ur.renderbuffer),gt.renderbufferStorage(36161,ur.format,Ye,Ue),Ot.profile&&(ur.stats.size=Ce[ur.format]*ur.width*ur.height)),Jt},Jt._reglType="renderbuffer",Jt._renderbuffer=ur,Ot.profile&&(Jt.stats=ur.stats),Jt.destroy=function(){ur.decRef()},Jt},clear:function(){Te(Vt).forEach(at)},restore:function(){Te(Vt).forEach(function(Bt){Bt.renderbuffer=gt.createRenderbuffer(),gt.bindRenderbuffer(36161,Bt.renderbuffer),gt.renderbufferStorage(36161,Bt.format,Bt.width,Bt.height)}),gt.bindRenderbuffer(36161,null)}}},me=[];me[6408]=4,me[6407]=3;var Ne=[];Ne[5121]=1,Ne[5126]=4,Ne[36193]=2;var Ze=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],st=["x","y","z","w"],lt="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),Wt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Zt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Tt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Rt={cw:2304,ccw:2305},Xt=new X(!1,!1,!1,function(){}),gr=function(gt,Kt){function Qt(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function yr(Vt,Bt,Ut){var Jt=at.pop()||new Qt;Jt.startQueryIndex=Vt,Jt.endQueryIndex=Bt,Jt.sum=0,Jt.stats=Ut,xt.push(Jt)}if(!Kt.ext_disjoint_timer_query)return null;var Ot=[],ut=[],at=[],xt=[],At=[],Et=[];return{beginQuery:function(Vt){var Bt=Ot.pop()||Kt.ext_disjoint_timer_query.createQueryEXT();Kt.ext_disjoint_timer_query.beginQueryEXT(35007,Bt),ut.push(Bt),yr(ut.length-1,ut.length,Vt)},endQuery:function(){Kt.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:yr,update:function(){var Vt,Bt;if(Vt=ut.length,Vt!==0){Et.length=Math.max(Et.length,Vt+1),At.length=Math.max(At.length,Vt+1),At[0]=0;var Ut=Et[0]=0;for(Bt=Vt=0;Bt=Tn.length&&yr()}var Pn=se(Tn,fn);Tn[Pn]=Mn}}}function Et(){var fn=tn.viewport,Mn=tn.scissor_box;fn[0]=fn[1]=Mn[0]=Mn[1]=0,sr.viewportWidth=sr.framebufferWidth=sr.drawingBufferWidth=fn[2]=Mn[2]=Jt.drawingBufferWidth,sr.viewportHeight=sr.framebufferHeight=sr.drawingBufferHeight=fn[3]=Mn[3]=Jt.drawingBufferHeight}function Vt(){sr.tick+=1,sr.time=Ut(),Et(),Dr.procs.poll()}function Bt(){vr.refresh(),Et(),Dr.procs.refresh(),zt&&zt.update()}function Ut(){return(xe()-Dt)/1e3}if(gt=r(gt),!gt)return null;var Jt=gt.gl,ur=Jt.getContextAttributes();Jt.isContextLost();var fr=t(Jt,gt);if(!fr)return null;var an=s(),dr={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},Ye=gt.cachedCode||{},Ue=fr.extensions,zt=gr(Jt,Ue),Dt=xe(),cr=Jt.drawingBufferWidth,$t=Jt.drawingBufferHeight,sr={tick:0,time:0,viewportWidth:cr,viewportHeight:$t,framebufferWidth:cr,framebufferHeight:$t,drawingBufferWidth:cr,drawingBufferHeight:$t,pixelRatio:gt.pixelRatio},cr={elements:null,primitive:4,count:-1,offset:0,instances:-1},tr=De(Jt,Ue),Nt=i(Jt,dr,gt,function(fn){return hr.destroyBuffer(fn)}),ir=d(Jt,Ue,Nt,dr),hr=k(Jt,Ue,tr,dr,Nt,ir,cr),xr=O(Jt,an,dr,gt),vr=I(Jt,Ue,tr,function(){Dr.procs.poll()},sr,dr,gt),Hr=he(Jt,Ue,tr,dr,gt),_r=D(Jt,Ue,tr,vr,Hr,dr),Dr=j(Jt,an,Ue,tr,Nt,ir,vr,_r,{},hr,xr,cr,sr,zt,Ye,gt),an=F(Jt,_r,Dr.procs.poll,sr),tn=Dr.next,Sn=Jt.canvas,Tn=[],Tr=[],zr=[],Yr=[gt.onDestroy],Or=null;Sn&&(Sn.addEventListener("webglcontextlost",Ot,!1),Sn.addEventListener("webglcontextrestored",ut,!1));var ln=_r.setFBO=at({framebuffer:ge.define.call(null,1,"framebuffer")});return Bt(),ur=te(at,{clear:function(fn){if("framebuffer"in fn)if(fn.framebuffer&&fn.framebuffer_reglType==="framebufferCube")for(var Mn=0;6>Mn;++Mn)ln(te({framebuffer:fn.framebuffer.faces[Mn]},fn),xt);else ln(fn,xt);else xt(null,fn)},prop:ge.define.bind(null,1),context:ge.define.bind(null,2),this:ge.define.bind(null,3),draw:at({}),buffer:function(fn){return Nt.create(fn,34962,!1,!1)},elements:function(fn){return ir.create(fn,!1)},texture:vr.create2D,cube:vr.createCube,renderbuffer:Hr.create,framebuffer:_r.create,framebufferCube:_r.createCube,vao:hr.createVAO,attributes:ur,frame:At,on:function(fn,Mn){var Pn;switch(fn){case"frame":return At(Mn);case"lost":Pn=Tr;break;case"restore":Pn=zr;break;case"destroy":Pn=Yr}return Pn.push(Mn),{cancel:function(){for(var Vn=0;Vn */var m=e(33576),P=m.Buffer;function s(S,v){for(var p in S)v[p]=S[p]}P.from&&P.alloc&&P.allocUnsafe&&P.allocUnsafeSlow?G.exports=m:(s(m,H),H.Buffer=L);function L(S,v,p){return P(S,v,p)}L.prototype=Object.create(P.prototype),s(P,L),L.from=function(S,v,p){if(typeof S=="number")throw new TypeError("Argument must not be a number");return P(S,v,p)},L.alloc=function(S,v,p){if(typeof S!="number")throw new TypeError("Argument must be a number");var r=P(S);return v!==void 0?typeof p=="string"?r.fill(v,p):r.fill(v):r.fill(0),r},L.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return P(S)},L.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return m.SlowBuffer(S)}},14500:function(G,H,e){var m=e(53664),P=e(64348),s=e(39640)(),L=e(2304),S=m("%TypeError%"),v=m("%Math.floor%");G.exports=function(r,t){if(typeof r!="function")throw new S("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||v(t)!==t)throw new S("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,f=!0;if("length"in r&&L){var u=L(r,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(f=!1)}return(n||f||!a)&&(s?P(r,"length",t,!0,!0):P(r,"length",t)),r}},29936:function(G,H,e){G.exports=s;var m=e(61252).EventEmitter,P=e(6768);P(s,m),s.Readable=e(12348),s.Writable=e(11288),s.Duplex=e(15316),s.Transform=e(22477),s.PassThrough=e(27136),s.finished=e(15932),s.pipeline=e(38180),s.Stream=s;function s(){m.call(this)}s.prototype.pipe=function(L,S){var v=this;function p(l){L.writable&&L.write(l)===!1&&v.pause&&v.pause()}v.on("data",p);function r(){v.readable&&v.resume&&v.resume()}L.on("drain",r),!L._isStdio&&(!S||S.end!==!1)&&(v.on("end",a),v.on("close",n));var t=!1;function a(){t||(t=!0,L.end())}function n(){t||(t=!0,typeof L.destroy=="function"&&L.destroy())}function f(l){if(u(),m.listenerCount(this,"error")===0)throw l}v.on("error",f),L.on("error",f);function u(){v.removeListener("data",p),L.removeListener("drain",r),v.removeListener("end",a),v.removeListener("close",n),v.removeListener("error",f),L.removeListener("error",f),v.removeListener("end",u),v.removeListener("close",u),L.removeListener("close",u)}return v.on("end",u),v.on("close",u),L.on("close",u),L.emit("pipe",v),L}},92784:function(G){function H(v,p){v.prototype=Object.create(p.prototype),v.prototype.constructor=v,v.__proto__=p}var e={};function m(v,p,r){r||(r=Error);function t(n,f,u){return typeof p=="string"?p:p(n,f,u)}var a=function(n){H(f,n);function f(u,l,g){return n.call(this,t(u,l,g))||this}return f}(r);a.prototype.name=r.name,a.prototype.code=v,e[v]=a}function P(v,p){if(Array.isArray(v)){var r=v.length;return v=v.map(function(t){return String(t)}),r>2?"one of ".concat(p," ").concat(v.slice(0,r-1).join(", "),", or ")+v[r-1]:r===2?"one of ".concat(p," ").concat(v[0]," or ").concat(v[1]):"of ".concat(p," ").concat(v[0])}else return"of ".concat(p," ").concat(String(v))}function s(v,p,r){return v.substr(0,p.length)===p}function L(v,p,r){return(r===void 0||r>v.length)&&(r=v.length),v.substring(r-p.length,r)===p}function S(v,p,r){return typeof r!="number"&&(r=0),r+p.length>v.length?!1:v.indexOf(p,r)!==-1}m("ERR_INVALID_OPT_VALUE",function(v,p){return'The value "'+p+'" is invalid for option "'+v+'"'},TypeError),m("ERR_INVALID_ARG_TYPE",function(v,p,r){var t;typeof p=="string"&&s(p,"not ")?(t="must not be",p=p.replace(/^not /,"")):t="must be";var a;if(L(v," argument"))a="The ".concat(v," ").concat(t," ").concat(P(p,"type"));else{var n=S(v,".")?"property":"argument";a='The "'.concat(v,'" ').concat(n," ").concat(t," ").concat(P(p,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),m("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),m("ERR_STREAM_PREMATURE_CLOSE","Premature close"),m("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),m("ERR_STREAM_WRITE_AFTER_END","write after end"),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),G.exports.i=e},15316:function(G,H,e){var m=e(4168),P=Object.keys||function(n){var f=[];for(var u in n)f.push(u);return f};G.exports=r;var s=e(12348),L=e(11288);e(6768)(r,s);for(var S=P(L.prototype),v=0;v0)if(typeof j!="string"&&!ge.objectMode&&Object.getPrototypeOf(j)!==S.prototype&&(j=p(j)),te)ge.endEmitted?C(Y,new i):b(Y,ge,j,!0);else if(ge.ended)C(Y,new T);else{if(ge.destroyed)return!1;ge.reading=!1,ge.decoder&&!se?(j=ge.decoder.write(j),ge.objectMode||j.length!==0?b(Y,ge,j,!1):B(Y,ge)):b(Y,ge,j,!1)}else te||(ge.reading=!1,B(Y,ge))}return!ge.ended&&(ge.length=D?Y=D:(Y--,Y|=Y>>>1,Y|=Y>>>2,Y|=Y>>>4,Y|=Y>>>8,Y|=Y>>>16,Y++),Y}function k(Y,j){return Y<=0||j.length===0&&j.ended?0:j.objectMode?1:Y!==Y?j.flowing&&j.length?j.buffer.head.data.length:j.length:(Y>j.highWaterMark&&(j.highWaterMark=N(Y)),Y<=j.length?Y:j.ended?j.length:(j.needReadable=!0,0))}o.prototype.read=function(Y){a("read",Y),Y=parseInt(Y,10);var j=this._readableState,se=Y;if(Y!==0&&(j.emittedReadable=!1),Y===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return a("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?X(this):F(this),null;if(Y=k(Y,j),Y===0&&j.ended)return j.length===0&&X(this),null;var te=j.needReadable;a("need readable",te),(j.length===0||j.length-Y0?fe=ie(Y,j):fe=null,fe===null?(j.needReadable=j.length<=j.highWaterMark,Y=0):(j.length-=Y,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),se!==Y&&j.ended&&X(this)),fe!==null&&this.emit("data",fe),fe};function O(Y,j){if(a("onEofChunk"),!j.ended){if(j.decoder){var se=j.decoder.end();se&&se.length&&(j.buffer.push(se),j.length+=j.objectMode?1:se.length)}j.ended=!0,j.sync?F(Y):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,z(Y)))}}function F(Y){var j=Y._readableState;a("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(a("emitReadable",j.flowing),j.emittedReadable=!0,m.nextTick(z,Y))}function z(Y){var j=Y._readableState;a("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(Y.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,Z(Y)}function B(Y,j){j.readingMore||(j.readingMore=!0,m.nextTick(W,Y,j))}function W(Y,j){for(;!j.reading&&!j.ended&&(j.length1&&oe(te.pipes,Y)!==-1)&&!De&&(a("false write response, pause",te.awaitDrain),te.awaitDrain++),se.pause())}function Re(Ve){a("onerror",Ve),Me(),Y.removeListener("error",Re),s(Y,"error")===0&&C(Y,Ve)}E(Y,"error",Re);function Se(){Y.removeListener("finish",Ie),Me()}Y.once("close",Se);function Ie(){a("onfinish"),Y.removeListener("close",Se),Me()}Y.once("finish",Ie);function Me(){a("unpipe"),se.unpipe(Y)}return Y.emit("pipe",se),te.flowing||(a("pipe resume"),se.resume()),Y};function J(Y){return function(){var se=Y._readableState;a("pipeOnDrain",se.awaitDrain),se.awaitDrain&&se.awaitDrain--,se.awaitDrain===0&&s(Y,"data")&&(se.flowing=!0,Z(Y))}}o.prototype.unpipe=function(Y){var j=this._readableState,se={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return Y&&Y!==j.pipes?this:(Y||(Y=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,Y&&Y.emit("unpipe",this,se),this);if(!Y){var te=j.pipes,fe=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var ge=0;ge0,te.flowing!==!1&&this.resume()):Y==="readable"&&!te.endEmitted&&!te.readableListening&&(te.readableListening=te.needReadable=!0,te.flowing=!1,te.emittedReadable=!1,a("on readable",te.length,te.reading),te.length?F(this):te.reading||m.nextTick(ne,this)),se},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(Y,j){var se=L.prototype.removeListener.call(this,Y,j);return Y==="readable"&&m.nextTick(re,this),se},o.prototype.removeAllListeners=function(Y){var j=L.prototype.removeAllListeners.apply(this,arguments);return(Y==="readable"||Y===void 0)&&m.nextTick(re,this),j};function re(Y){var j=Y._readableState;j.readableListening=Y.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:Y.listenerCount("data")>0&&Y.resume()}function ne(Y){a("readable nexttick read 0"),Y.read(0)}o.prototype.resume=function(){var Y=this._readableState;return Y.flowing||(a("resume"),Y.flowing=!Y.readableListening,le(this,Y)),Y.paused=!1,this};function le(Y,j){j.resumeScheduled||(j.resumeScheduled=!0,m.nextTick($,Y,j))}function $(Y,j){a("resume",j.reading),j.reading||Y.read(0),j.resumeScheduled=!1,Y.emit("resume"),Z(Y),j.flowing&&!j.reading&&Y.read(0)}o.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Z(Y){var j=Y._readableState;for(a("flow",j.flowing);j.flowing&&Y.read()!==null;);}o.prototype.wrap=function(Y){var j=this,se=this._readableState,te=!1;Y.on("end",function(){if(a("wrapped end"),se.decoder&&!se.ended){var be=se.decoder.end();be&&be.length&&j.push(be)}j.push(null)}),Y.on("data",function(be){if(a("wrapped data"),se.decoder&&(be=se.decoder.write(be)),!(se.objectMode&&be==null)&&!(!se.objectMode&&(!be||!be.length))){var xe=j.push(be);xe||(te=!0,Y.pause())}});for(var fe in Y)this[fe]===void 0&&typeof Y[fe]=="function"&&(this[fe]=function(xe){return function(){return Y[xe].apply(Y,arguments)}}(fe));for(var ge=0;ge=j.length?(j.decoder?se=j.buffer.join(""):j.buffer.length===1?se=j.buffer.first():se=j.buffer.concat(j.length),j.buffer.clear()):se=j.buffer.consume(Y,j.decoder),se}function X(Y){var j=Y._readableState;a("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,m.nextTick(Q,j,Y))}function Q(Y,j){if(a("endReadableNT",Y.endEmitted,Y.length),!Y.endEmitted&&Y.length===0&&(Y.endEmitted=!0,j.readable=!1,j.emit("end"),Y.autoDestroy)){var se=j._writableState;(!se||se.autoDestroy&&se.finished)&&j.destroy()}}typeof Symbol=="function"&&(o.from=function(Y,j){return w===void 0&&(w=e(90555)),w(o,Y,j)});function oe(Y,j){for(var se=0,te=Y.length;se-1))throw new x(ie);return this._writableState.defaultEncoding=ie,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function b(Z,ie,X){return!Z.objectMode&&Z.decodeStrings!==!1&&typeof ie=="string"&&(ie=v.from(ie,X)),ie}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function I(Z,ie,X,Q,oe,Y){if(!X){var j=b(ie,Q,oe);Q!==j&&(X=!0,oe="buffer",Q=j)}var se=ie.objectMode?1:Q.length;ie.length+=se;var te=ie.length0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(g){var h={data:g,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var h=this.head,T=""+h.data;h=h.next;)T+=g+h.data;return T}},{key:"concat",value:function(g){if(this.length===0)return r.alloc(0);for(var h=r.allocUnsafe(g>>>0),T=this.head,c=0;T;)f(T.data,h,c),c+=T.data.length,T=T.next;return h}},{key:"consume",value:function(g,h){var T;return gi.length?i.length:g;if(d===i.length?c+=i:c+=i.slice(0,g),g-=d,g===0){d===i.length?(++T,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=i.slice(d));break}++T}return this.length-=T,c}},{key:"_getBuffer",value:function(g){var h=r.allocUnsafe(g),T=this.head,c=1;for(T.data.copy(h),g-=T.data.length;T=T.next;){var i=T.data,d=g>i.length?i.length:g;if(i.copy(h,h.length-g,0,d),g-=d,g===0){d===i.length?(++c,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=i.slice(d));break}++c}return this.length-=c,h}},{key:n,value:function(g,h){return a(this,P({},h,{depth:0,customInspect:!1}))}}]),u}()},55324:function(G,H,e){var m=e(4168);function P(r,t){var a=this,n=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return n||f?(t?t(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,m.nextTick(v,this,r)):m.nextTick(v,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(u){!t&&u?a._writableState?a._writableState.errorEmitted?m.nextTick(L,a):(a._writableState.errorEmitted=!0,m.nextTick(s,a,u)):m.nextTick(s,a,u):t?(m.nextTick(L,a),t(u)):m.nextTick(L,a)}),this)}function s(r,t){v(r,t),L(r)}function L(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function S(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(r,t){r.emit("error",t)}function p(r,t){var a=r._readableState,n=r._writableState;a&&a.autoDestroy||n&&n.autoDestroy?r.destroy(t):r.emit("error",t)}G.exports={destroy:P,undestroy:S,errorOrDestroy:p}},15932:function(G,H,e){var m=e(92784).i.ERR_STREAM_PREMATURE_CLOSE;function P(v){var p=!1;return function(){if(!p){p=!0;for(var r=arguments.length,t=new Array(r),a=0;a0;return r(i,x,w,function(C){T||(T=C),C&&c.forEach(t),!x&&(c.forEach(t),h(T))})});return l.reduce(a)}G.exports=f},24888:function(G,H,e){var m=e(92784).i.ERR_INVALID_OPT_VALUE;function P(L,S,v){return L.highWaterMark!=null?L.highWaterMark:S?L[v]:null}function s(L,S,v,p){var r=P(S,p,v);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var t=p?v:"highWaterMark";throw new m(t,r)}return Math.floor(r)}return L.objectMode?16:16384}G.exports={getHighWaterMark:s}},4776:function(G,H,e){G.exports=e(61252).EventEmitter},86032:function(G,H,e){var m=e(30456).Buffer,P=m.isEncoding||function(c){switch(c=""+c,c&&c.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(c){if(!c)return"utf8";for(var i;;)switch(c){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return c;default:if(i)return;c=(""+c).toLowerCase(),i=!0}}function L(c){var i=s(c);if(typeof i!="string"&&(m.isEncoding===P||!P(c)))throw new Error("Unknown encoding: "+c);return i||c}H.o=S;function S(c){this.encoding=L(c);var i;switch(this.encoding){case"utf16le":this.text=f,this.end=u,i=4;break;case"utf8":this.fillLast=t,i=4;break;case"base64":this.text=l,this.end=g,i=3;break;default:this.write=h,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(i)}S.prototype.write=function(c){if(c.length===0)return"";var i,d;if(this.lastNeed){if(i=this.fillLast(c),i===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function p(c,i,d){var x=i.length-1;if(x=0?(w>0&&(c.lastNeed=w-1),w):--x=0?(w>0&&(c.lastNeed=w-2),w):--x=0?(w>0&&(w===2?w=0:c.lastNeed=w-3),w):0))}function r(c,i,d){if((i[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&i.length>1){if((i[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&i.length>2&&(i[2]&192)!==128)return c.lastNeed=2,"�"}}function t(c){var i=this.lastTotal-this.lastNeed,d=r(this,c);if(d!==void 0)return d;if(this.lastNeed<=c.length)return c.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,i,0,c.length),this.lastNeed-=c.length}function a(c,i){var d=p(this,c,i);if(!this.lastNeed)return c.toString("utf8",i);this.lastTotal=d;var x=c.length-(d-this.lastNeed);return c.copy(this.lastChar,0,x),c.toString("utf8",i,x)}function n(c){var i=c&&c.length?this.write(c):"";return this.lastNeed?i+"�":i}function f(c,i){if((c.length-i)%2===0){var d=c.toString("utf16le",i);if(d){var x=d.charCodeAt(d.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",i,c.length-1)}function u(c){var i=c&&c.length?this.write(c):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,d)}return i}function l(c,i){var d=(c.length-i)%3;return d===0?c.toString("base64",i):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",i,c.length-d))}function g(c){var i=c&&c.length?this.write(c):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function h(c){return c.toString(this.encoding)}function T(c){return c&&c.length?this.write(c):""}},55619:function(G,H,e){var m=e(45408),P=e(86844)("stream-parser");G.exports=p;var s=-1,L=0,S=1,v=2;function p(c){var i=c&&typeof c._transform=="function",d=c&&typeof c._write=="function";if(!i&&!d)throw new Error("must pass a Writable or Transform stream in");P("extending Parser into stream"),c._bytes=t,c._skipBytes=a,i&&(c._passthrough=n),i?c._transform=u:c._write=f}function r(c){P("initializing parser stream"),c._parserBytesLeft=0,c._parserBuffers=[],c._parserBuffered=0,c._parserState=s,c._parserCallback=null,typeof c.push=="function"&&(c._parserOutput=c.push.bind(c)),c._parserInit=!0}function t(c,i){m(!this._parserCallback,'there is already a "callback" set!'),m(isFinite(c)&&c>0,'can only buffer a finite number of bytes > 0, got "'+c+'"'),this._parserInit||r(this),P("buffering %o bytes",c),this._parserBytesLeft=c,this._parserCallback=i,this._parserState=L}function a(c,i){m(!this._parserCallback,'there is already a "callback" set!'),m(c>0,'can only skip > 0 bytes, got "'+c+'"'),this._parserInit||r(this),P("skipping %o bytes",c),this._parserBytesLeft=c,this._parserCallback=i,this._parserState=S}function n(c,i){m(!this._parserCallback,'There is already a "callback" set!'),m(c>0,'can only pass through > 0 bytes, got "'+c+'"'),this._parserInit||r(this),P("passing through %o bytes",c),this._parserBytesLeft=c,this._parserCallback=i,this._parserState=v}function f(c,i,d){this._parserInit||r(this),P("write(%o bytes)",c.length),typeof i=="function"&&(d=i),h(this,c,null,d)}function u(c,i,d){this._parserInit||r(this),P("transform(%o bytes)",c.length),typeof i!="function"&&(i=this._parserOutput),h(this,c,i,d)}function l(c,i,d,x){return c._parserBytesLeft<=0?x(new Error("got data but not currently parsing anything")):i.length<=c._parserBytesLeft?function(){return g(c,i,d,x)}:function(){var w=i.slice(0,c._parserBytesLeft);return g(c,w,d,function(C){if(C)return x(C);if(i.length>w.length)return function(){return l(c,i.slice(w.length),d,x)}})}}function g(c,i,d,x){if(c._parserBytesLeft-=i.length,P("%o bytes left for stream piece",c._parserBytesLeft),c._parserState===L?(c._parserBuffers.push(i),c._parserBuffered+=i.length):c._parserState===v&&d(i),c._parserBytesLeft===0){var w=c._parserCallback;if(w&&c._parserState===L&&c._parserBuffers.length>1&&(i=Buffer.concat(c._parserBuffers,c._parserBuffered)),c._parserState!==L&&(i=null),c._parserCallback=null,c._parserBuffered=0,c._parserState=s,c._parserBuffers.splice(0),w){var C=[];i&&C.push(i),d&&C.push(d);var y=w.length>C.length;y&&C.push(T(x));var E=w.apply(c,C);if(!y||x===E)return x}}else return x}var h=T(l);function T(c){return function(){for(var i=c.apply(this,arguments);typeof i=="function";)i=i();return i}}},86844:function(G,H,e){var m=e(4168);H=G.exports=e(89416),H.log=L,H.formatArgs=s,H.save=S,H.load=v,H.useColors=P,H.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:p(),H.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function P(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}H.formatters.j=function(r){try{return JSON.stringify(r)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function s(r){var t=this.useColors;if(r[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+r[0]+(t?"%c ":" ")+"+"+H.humanize(this.diff),!!t){var a="color: "+this.color;r.splice(1,0,a,"color: inherit");var n=0,f=0;r[0].replace(/%[a-zA-Z%]/g,function(u){u!=="%%"&&(n++,u==="%c"&&(f=n))}),r.splice(f,0,a)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function S(r){try{r==null?H.storage.removeItem("debug"):H.storage.debug=r}catch{}}function v(){var r;try{r=H.storage.debug}catch{}return!r&&typeof m<"u"&&"env"in m&&(r=m.env.DEBUG),r}H.enable(v());function p(){try{return window.localStorage}catch{}}},89416:function(G,H,e){H=G.exports=s.debug=s.default=s,H.coerce=p,H.disable=S,H.enable=L,H.enabled=v,H.humanize=e(93744),H.names=[],H.skips=[],H.formatters={};var m;function P(r){var t=0,a;for(a in r)t=(t<<5)-t+r.charCodeAt(a),t|=0;return H.colors[Math.abs(t)%H.colors.length]}function s(r){function t(){if(t.enabled){var a=t,n=+new Date,f=n-(m||n);a.diff=f,a.prev=m,a.curr=n,m=n;for(var u=new Array(arguments.length),l=0;l0)return L(r);if(a==="number"&&isNaN(r)===!1)return t.long?v(r):S(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function L(r){if(r=String(r),!(r.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(r);if(t){var a=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*P;case"hours":case"hour":case"hrs":case"hr":case"h":return a*m;case"minutes":case"minute":case"mins":case"min":case"m":return a*e;case"seconds":case"second":case"secs":case"sec":case"s":return a*H;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function S(r){return r>=P?Math.round(r/P)+"d":r>=m?Math.round(r/m)+"h":r>=e?Math.round(r/e)+"m":r>=H?Math.round(r/H)+"s":r+"ms"}function v(r){return p(r,P,"day")||p(r,m,"hour")||p(r,e,"minute")||p(r,H,"second")||r+" ms"}function p(r,t,a){if(!(r",'""',"''","``","“”","«»"]:(typeof S.ignore=="string"&&(S.ignore=[S.ignore]),S.ignore=S.ignore.map(function(u){return u.length===1&&(u=u+u),u}));var v=m.parse(s,{flat:!0,brackets:S.ignore}),p=v[0],r=p.split(L);if(S.escape){for(var t=[],a=0;a0;){h=c[c.length-1];var i=e[h];if(S[h]=0&&p[h].push(v[x])}S[h]=d}else{if(s[h]===P[h]){for(var w=[],C=[],y=0,d=T.length-1;d>=0;--d){var E=T[d];if(L[E]=!1,w.push(E),C.push(p[E]),y+=p[E].length,v[E]=a.length,E===h){T.length=d;break}}a.push(w);for(var A=new Array(y),d=0;d1&&(l=1),l<-1&&(l=-1),u*Math.acos(l)},v=function(t,a,n,f,u,l,g,h,T,c,i,d){var x=Math.pow(u,2),w=Math.pow(l,2),C=Math.pow(i,2),y=Math.pow(d,2),E=x*w-x*y-w*C;E<0&&(E=0),E/=x*y+w*C,E=Math.sqrt(E)*(g===h?-1:1);var A=E*u/l*d,o=E*-l/u*i,M=c*A-T*o+(t+n)/2,b=T*A+c*o+(a+f)/2,I=(i-A)/u,D=(d-o)/l,N=(-i-A)/u,k=(-d-o)/l,O=S(1,0,I,D),F=S(I,D,N,k);return h===0&&F>0&&(F-=P),h===1&&F<0&&(F+=P),[M,b,O,F]},p=function(t){var a=t.px,n=t.py,f=t.cx,u=t.cy,l=t.rx,g=t.ry,h=t.xAxisRotation,T=h===void 0?0:h,c=t.largeArcFlag,i=c===void 0?0:c,d=t.sweepFlag,x=d===void 0?0:d,w=[];if(l===0||g===0)return[];var C=Math.sin(T*P/360),y=Math.cos(T*P/360),E=y*(a-f)/2+C*(n-u)/2,A=-C*(a-f)/2+y*(n-u)/2;if(E===0&&A===0)return[];l=Math.abs(l),g=Math.abs(g);var o=Math.pow(E,2)/Math.pow(l,2)+Math.pow(A,2)/Math.pow(g,2);o>1&&(l*=Math.sqrt(o),g*=Math.sqrt(o));var M=v(a,n,f,u,l,g,i,x,C,y,E,A),b=m(M,4),I=b[0],D=b[1],N=b[2],k=b[3],O=Math.abs(k)/(P/4);Math.abs(1-O)<1e-7&&(O=1);var F=Math.max(Math.ceil(O),1);k/=F;for(var z=0;zr[2]&&(r[2]=n[f+0]),n[f+1]>r[3]&&(r[3]=n[f+1]);return r}},41976:function(G,H,e){G.exports=P;var m=e(92848);function P(S){for(var v,p=[],r=0,t=0,a=0,n=0,f=null,u=null,l=0,g=0,h=0,T=S.length;h4?(r=c[c.length-4],t=c[c.length-3]):(r=l,t=g),p.push(c)}return p}function s(S,v,p,r){return["C",S,v,p,r,p,r]}function L(S,v,p,r,t,a){return["C",S/3+.6666666666666666*p,v/3+.6666666666666666*r,t/3+.6666666666666666*p,a/3+.6666666666666666*r,t,a]}},20472:function(G,H,e){var m=e(74840),P=e(21984),s=e(22235),L=e(53520),S=e(29620),v=document.createElement("canvas"),p=v.getContext("2d");G.exports=r;function r(n,f){if(!L(n))throw Error("Argument should be valid svg path string");f||(f={});var u,l;f.shape?(u=f.shape[0],l=f.shape[1]):(u=v.width=f.w||f.width||200,l=v.height=f.h||f.height||200);var g=Math.min(u,l),h=f.stroke||0,T=f.viewbox||f.viewBox||m(n),c=[u/(T[2]-T[0]),l/(T[3]-T[1])],i=Math.min(c[0]||0,c[1]||0)/2;if(p.fillStyle="black",p.fillRect(0,0,u,l),p.fillStyle="white",h&&(typeof h!="number"&&(h=1),h>0?p.strokeStyle="white":p.strokeStyle="black",p.lineWidth=Math.abs(h)),p.translate(u*.5,l*.5),p.scale(i,i),a()){var d=new Path2D(n);p.fill(d),h&&p.stroke(d)}else{var x=P(n);s(p,x),p.fill(),h&&p.stroke()}p.setTransform(1,0,0,1,0,0);var w=S(p,{cutoff:f.cutoff!=null?f.cutoff:.5,radius:f.radius!=null?f.radius:g*.5});return w}var t;function a(){if(t!=null)return t;var n=document.createElement("canvas").getContext("2d");if(n.canvas.width=n.canvas.height=1,!window.Path2D)return t=!1;var f=new Path2D("M0,0h1v1h-1v-1Z");n.fillStyle="black",n.fill(f);var u=n.getImageData(0,0,1,1);return t=u&&u.data&&u.data[3]===255}},49760:function(G,H,e){var m;(function(P){var s=/^\s+/,L=/\s+$/,S=0,v=P.round,p=P.min,r=P.max,t=P.random;function a(j,se){if(j=j||"",se=se||{},j instanceof a)return j;if(!(this instanceof a))return new a(j,se);var te=n(j);this._originalInput=j,this._r=te.r,this._g=te.g,this._b=te.b,this._a=te.a,this._roundA=v(100*this._a)/100,this._format=se.format||te.format,this._gradientType=se.gradientType,this._r<1&&(this._r=v(this._r)),this._g<1&&(this._g=v(this._g)),this._b<1&&(this._b=v(this._b)),this._ok=te.ok,this._tc_id=S++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),se,te,fe,ge,be,xe;return se=j.r/255,te=j.g/255,fe=j.b/255,se<=.03928?ge=se/12.92:ge=P.pow((se+.055)/1.055,2.4),te<=.03928?be=te/12.92:be=P.pow((te+.055)/1.055,2.4),fe<=.03928?xe=fe/12.92:xe=P.pow((fe+.055)/1.055,2.4),.2126*ge+.7152*be+.0722*xe},setAlpha:function(j){return this._a=z(j),this._roundA=v(100*this._a)/100,this},toHsv:function(){var j=g(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=g(this._r,this._g,this._b),se=v(j.h*360),te=v(j.s*100),fe=v(j.v*100);return this._a==1?"hsv("+se+", "+te+"%, "+fe+"%)":"hsva("+se+", "+te+"%, "+fe+"%, "+this._roundA+")"},toHsl:function(){var j=u(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=u(this._r,this._g,this._b),se=v(j.h*360),te=v(j.s*100),fe=v(j.l*100);return this._a==1?"hsl("+se+", "+te+"%, "+fe+"%)":"hsla("+se+", "+te+"%, "+fe+"%, "+this._roundA+")"},toHex:function(j){return T(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return c(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:v(this._r),g:v(this._g),b:v(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+v(this._r)+", "+v(this._g)+", "+v(this._b)+")":"rgba("+v(this._r)+", "+v(this._g)+", "+v(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:v(B(this._r,255)*100)+"%",g:v(B(this._g,255)*100)+"%",b:v(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+v(B(this._r,255)*100)+"%, "+v(B(this._g,255)*100)+"%, "+v(B(this._b,255)*100)+"%)":"rgba("+v(B(this._r,255)*100)+"%, "+v(B(this._g,255)*100)+"%, "+v(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:O[T(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var se="#"+i(this._r,this._g,this._b,this._a),te=se,fe=this._gradientType?"GradientType = 1, ":"";if(j){var ge=a(j);te="#"+i(ge._r,ge._g,ge._b,ge._a)}return"progid:DXImageTransform.Microsoft.gradient("+fe+"startColorstr="+se+",endColorstr="+te+")"},toString:function(j){var se=!!j;j=j||this._format;var te=!1,fe=this._a<1&&this._a>=0,ge=!se&&fe&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return ge?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(te=this.toRgbString()),j==="prgb"&&(te=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(te=this.toHexString()),j==="hex3"&&(te=this.toHexString(!0)),j==="hex4"&&(te=this.toHex8String(!0)),j==="hex8"&&(te=this.toHex8String()),j==="name"&&(te=this.toName()),j==="hsl"&&(te=this.toHslString()),j==="hsv"&&(te=this.toHsvString()),te||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(j,se){var te=j.apply(null,[this].concat([].slice.call(se)));return this._r=te._r,this._g=te._g,this._b=te._b,this.setAlpha(te._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(j,se){return j.apply(null,[this].concat([].slice.call(se)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(o,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},a.fromRatio=function(j,se){if(typeof j=="object"){var te={};for(var fe in j)j.hasOwnProperty(fe)&&(fe==="a"?te[fe]=j[fe]:te[fe]=$(j[fe]));j=te}return a(j,se)};function n(j){var se={r:0,g:0,b:0},te=1,fe=null,ge=null,be=null,xe=!1,_e=!1;return typeof j=="string"&&(j=oe(j)),typeof j=="object"&&(Q(j.r)&&Q(j.g)&&Q(j.b)?(se=f(j.r,j.g,j.b),xe=!0,_e=String(j.r).substr(-1)==="%"?"prgb":"rgb"):Q(j.h)&&Q(j.s)&&Q(j.v)?(fe=$(j.s),ge=$(j.v),se=h(j.h,fe,ge),xe=!0,_e="hsv"):Q(j.h)&&Q(j.s)&&Q(j.l)&&(fe=$(j.s),be=$(j.l),se=l(j.h,fe,be),xe=!0,_e="hsl"),j.hasOwnProperty("a")&&(te=j.a)),te=z(te),{ok:xe,format:j.format||_e,r:p(255,r(se.r,0)),g:p(255,r(se.g,0)),b:p(255,r(se.b,0)),a:te}}function f(j,se,te){return{r:B(j,255)*255,g:B(se,255)*255,b:B(te,255)*255}}function u(j,se,te){j=B(j,255),se=B(se,255),te=B(te,255);var fe=r(j,se,te),ge=p(j,se,te),be,xe,_e=(fe+ge)/2;if(fe==ge)be=xe=0;else{var De=fe-ge;switch(xe=_e>.5?De/(2-fe-ge):De/(fe+ge),fe){case j:be=(se-te)/De+(se1&&(Re-=1),Re<.16666666666666666?Fe+(Te-Fe)*6*Re:Re<.5?Te:Re<.6666666666666666?Fe+(Te-Fe)*(.6666666666666666-Re)*6:Fe}if(se===0)fe=ge=be=te;else{var _e=te<.5?te*(1+se):te+se-te*se,De=2*te-_e;fe=xe(De,_e,j+.3333333333333333),ge=xe(De,_e,j),be=xe(De,_e,j-.3333333333333333)}return{r:fe*255,g:ge*255,b:be*255}}function g(j,se,te){j=B(j,255),se=B(se,255),te=B(te,255);var fe=r(j,se,te),ge=p(j,se,te),be,xe,_e=fe,De=fe-ge;if(xe=fe===0?0:De/fe,fe==ge)be=0;else{switch(fe){case j:be=(se-te)/De+(se>1)+720)%360;--se;)fe.h=(fe.h+ge)%360,be.push(a(fe));return be}function N(j,se){se=se||6;for(var te=a(j).toHsv(),fe=te.h,ge=te.s,be=te.v,xe=[],_e=1/se;se--;)xe.push(a({h:fe,s:ge,v:be})),be=(be+_e)%1;return xe}a.mix=function(j,se,te){te=te===0?0:te||50;var fe=a(j).toRgb(),ge=a(se).toRgb(),be=te/100,xe={r:(ge.r-fe.r)*be+fe.r,g:(ge.g-fe.g)*be+fe.g,b:(ge.b-fe.b)*be+fe.b,a:(ge.a-fe.a)*be+fe.a};return a(xe)},a.readability=function(j,se){var te=a(j),fe=a(se);return(P.max(te.getLuminance(),fe.getLuminance())+.05)/(P.min(te.getLuminance(),fe.getLuminance())+.05)},a.isReadable=function(j,se,te){var fe=a.readability(j,se),ge,be;switch(be=!1,ge=Y(te),ge.level+ge.size){case"AAsmall":case"AAAlarge":be=fe>=4.5;break;case"AAlarge":be=fe>=3;break;case"AAAsmall":be=fe>=7;break}return be},a.mostReadable=function(j,se,te){var fe=null,ge=0,be,xe,_e,De;te=te||{},xe=te.includeFallbackColors,_e=te.level,De=te.size;for(var Fe=0;Fege&&(ge=be,fe=a(se[Fe]));return a.isReadable(j,fe,{level:_e,size:De})||!xe?fe:(te.includeFallbackColors=!1,a.mostReadable(j,["#fff","#000"],te))};var k=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=a.hexNames=F(k);function F(j){var se={};for(var te in j)j.hasOwnProperty(te)&&(se[j[te]]=te);return se}function z(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function B(j,se){re(j)&&(j="100%");var te=ne(j);return j=p(se,r(0,parseFloat(j))),te&&(j=parseInt(j*se,10)/100),P.abs(j-se)<1e-6?1:j%se/parseFloat(se)}function W(j){return p(1,r(0,j))}function J(j){return parseInt(j,16)}function re(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function ne(j){return typeof j=="string"&&j.indexOf("%")!=-1}function le(j){return j.length==1?"0"+j:""+j}function $(j){return j<=1&&(j=j*100+"%"),j}function Z(j){return P.round(parseFloat(j)*255).toString(16)}function ie(j){return J(j)/255}var X=function(){var j="[-\\+]?\\d+%?",se="[-\\+]?\\d*\\.\\d+%?",te="(?:"+se+")|(?:"+j+")",fe="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?",ge="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?";return{CSS_UNIT:new RegExp(te),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+ge),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+ge),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+ge),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(j){return!!X.CSS_UNIT.exec(j)}function oe(j){j=j.replace(s,"").replace(L,"").toLowerCase();var se=!1;if(k[j])j=k[j],se=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var te;return(te=X.rgb.exec(j))?{r:te[1],g:te[2],b:te[3]}:(te=X.rgba.exec(j))?{r:te[1],g:te[2],b:te[3],a:te[4]}:(te=X.hsl.exec(j))?{h:te[1],s:te[2],l:te[3]}:(te=X.hsla.exec(j))?{h:te[1],s:te[2],l:te[3],a:te[4]}:(te=X.hsv.exec(j))?{h:te[1],s:te[2],v:te[3]}:(te=X.hsva.exec(j))?{h:te[1],s:te[2],v:te[3],a:te[4]}:(te=X.hex8.exec(j))?{r:J(te[1]),g:J(te[2]),b:J(te[3]),a:ie(te[4]),format:se?"name":"hex8"}:(te=X.hex6.exec(j))?{r:J(te[1]),g:J(te[2]),b:J(te[3]),format:se?"name":"hex"}:(te=X.hex4.exec(j))?{r:J(te[1]+""+te[1]),g:J(te[2]+""+te[2]),b:J(te[3]+""+te[3]),a:ie(te[4]+""+te[4]),format:se?"name":"hex8"}:(te=X.hex3.exec(j))?{r:J(te[1]+""+te[1]),g:J(te[2]+""+te[2]),b:J(te[3]+""+te[3]),format:se?"name":"hex"}:!1}function Y(j){var se,te;return j=j||{level:"AA",size:"small"},se=(j.level||"AA").toUpperCase(),te=(j.size||"small").toLowerCase(),se!=="AA"&&se!=="AAA"&&(se="AA"),te!=="small"&&te!=="large"&&(te="small"),{level:se,size:te}}G.exports?G.exports=a:(m=(function(){return a}).call(H,e,H,G),m!==void 0&&(G.exports=m))})(Math)},37816:function(G){G.exports=m,G.exports.float32=G.exports.float=m,G.exports.fract32=G.exports.fract=e;var H=new Float32Array(1);function e(P,s){if(P.length){if(P instanceof Float32Array)return new Float32Array(P.length);s instanceof Float32Array||(s=m(P));for(var L=0,S=s.length;L":(L.length>100&&(L=L.slice(0,99)+"…"),L=L.replace(P,function(S){switch(S){case` `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),L)}},7328:function(G,H,e){var m=e(81680),P={object:!0,function:!0,undefined:!0};G.exports=function(s){return m(s)?hasOwnProperty.call(P,typeof s):!1}},87396:function(G,H,e){var m=e(57980),P=e(85488);G.exports=function(s){return P(s)?s:m(s,"%v is not a plain function",arguments[1])}},85488:function(G,H,e){var m=e(73384),P=/^\s*class[\s{/}]/,s=Function.prototype.toString;G.exports=function(L){return!(!m(L)||P.test(s.call(L)))}},54612:function(G,H,e){var m=e(7328);G.exports=function(P){if(!m(P))return!1;try{return P.constructor?P.constructor.prototype===P:!1}catch{return!1}}},33940:function(G,H,e){var m=e(81680),P=e(7328),s=Object.prototype.toString;G.exports=function(L){if(!m(L))return null;if(P(L)){var S=L.toString;if(typeof S!="function"||S===s)return null}try{return""+L}catch{return null}}},18496:function(G,H,e){var m=e(57980),P=e(81680);G.exports=function(s){return P(s)?s:m(s,"Cannot use %v",arguments[1])}},81680:function(G){var H=void 0;G.exports=function(e){return e!==H&&e!==null}},14144:function(G,H,e){var m=e(308),P=e(10352),s=e(33576).Buffer;e.g.__TYPEDARRAY_POOL||(e.g.__TYPEDARRAY_POOL={UINT8:P([32,0]),UINT16:P([32,0]),UINT32:P([32,0]),BIGUINT64:P([32,0]),INT8:P([32,0]),INT16:P([32,0]),INT32:P([32,0]),BIGINT64:P([32,0]),FLOAT:P([32,0]),DOUBLE:P([32,0]),DATA:P([32,0]),UINT8C:P([32,0]),BUFFER:P([32,0])});var L=typeof Uint8ClampedArray<"u",S=typeof BigUint64Array<"u",v=typeof BigInt64Array<"u",p=e.g.__TYPEDARRAY_POOL;p.UINT8C||(p.UINT8C=P([32,0])),p.BIGUINT64||(p.BIGUINT64=P([32,0])),p.BIGINT64||(p.BIGINT64=P([32,0])),p.BUFFER||(p.BUFFER=P([32,0]));var r=p.DATA,t=p.BUFFER;H.free=function(o){if(s.isBuffer(o))t[m.log2(o.length)].push(o);else{if(Object.prototype.toString.call(o)!=="[object ArrayBuffer]"&&(o=o.buffer),!o)return;var M=o.length||o.byteLength,b=m.log2(M)|0;r[b].push(o)}};function a(A){if(A){var o=A.length||A.byteLength,M=m.log2(o);r[M].push(A)}}function n(A){a(A.buffer)}H.freeUint8=H.freeUint16=H.freeUint32=H.freeBigUint64=H.freeInt8=H.freeInt16=H.freeInt32=H.freeBigInt64=H.freeFloat32=H.freeFloat=H.freeFloat64=H.freeDouble=H.freeUint8Clamped=H.freeDataView=n,H.freeArrayBuffer=a,H.freeBuffer=function(o){t[m.log2(o.length)].push(o)},H.malloc=function(o,M){if(M===void 0||M==="arraybuffer")return f(o);switch(M){case"uint8":return u(o);case"uint16":return l(o);case"uint32":return g(o);case"int8":return h(o);case"int16":return T(o);case"int32":return c(o);case"float":case"float32":return i(o);case"double":case"float64":return d(o);case"uint8_clamped":return x(o);case"bigint64":return C(o);case"biguint64":return w(o);case"buffer":return E(o);case"data":case"dataview":return y(o);default:return null}return null};function f(o){var o=m.nextPow2(o),M=m.log2(o),b=r[M];return b.length>0?b.pop():new ArrayBuffer(o)}H.mallocArrayBuffer=f;function u(A){return new Uint8Array(f(A),0,A)}H.mallocUint8=u;function l(A){return new Uint16Array(f(2*A),0,A)}H.mallocUint16=l;function g(A){return new Uint32Array(f(4*A),0,A)}H.mallocUint32=g;function h(A){return new Int8Array(f(A),0,A)}H.mallocInt8=h;function T(A){return new Int16Array(f(2*A),0,A)}H.mallocInt16=T;function c(A){return new Int32Array(f(4*A),0,A)}H.mallocInt32=c;function i(A){return new Float32Array(f(4*A),0,A)}H.mallocFloat32=H.mallocFloat=i;function d(A){return new Float64Array(f(8*A),0,A)}H.mallocFloat64=H.mallocDouble=d;function x(A){return L?new Uint8ClampedArray(f(A),0,A):u(A)}H.mallocUint8Clamped=x;function w(A){return S?new BigUint64Array(f(8*A),0,A):null}H.mallocBigUint64=w;function C(A){return v?new BigInt64Array(f(8*A),0,A):null}H.mallocBigInt64=C;function y(A){return new DataView(f(A),0,A)}H.mallocDataView=y;function E(A){A=m.nextPow2(A);var o=m.log2(A),M=t[o];return M.length>0?M.pop():new s(A)}H.mallocBuffer=E,H.clearCache=function(){for(var o=0;o<32;++o)p.UINT8[o].length=0,p.UINT16[o].length=0,p.UINT32[o].length=0,p.INT8[o].length=0,p.INT16[o].length=0,p.INT32[o].length=0,p.FLOAT[o].length=0,p.DOUBLE[o].length=0,p.BIGUINT64[o].length=0,p.BIGINT64[o].length=0,p.UINT8C[o].length=0,r[o].length=0,t[o].length=0}},92384:function(G){var H=/[\'\"]/;G.exports=function(m){return m?(H.test(m.charAt(0))&&(m=m.substr(1)),H.test(m.charAt(m.length-1))&&(m=m.substr(0,m.length-1)),m):""}},45223:function(G){G.exports=function(e,m,P){Array.isArray(P)||(P=[].slice.call(arguments,2));for(var s=0,L=P.length;s"u"?!1:M.working?M(be):be instanceof Map}H.isMap=b;function I(be){return r(be)==="[object Set]"}I.working=typeof Set<"u"&&I(new Set);function D(be){return typeof Set>"u"?!1:I.working?I(be):be instanceof Set}H.isSet=D;function N(be){return r(be)==="[object WeakMap]"}N.working=typeof WeakMap<"u"&&N(new WeakMap);function k(be){return typeof WeakMap>"u"?!1:N.working?N(be):be instanceof WeakMap}H.isWeakMap=k;function O(be){return r(be)==="[object WeakSet]"}O.working=typeof WeakSet<"u"&&O(new WeakSet);function F(be){return O(be)}H.isWeakSet=F;function z(be){return r(be)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function B(be){return typeof ArrayBuffer>"u"?!1:z.working?z(be):be instanceof ArrayBuffer}H.isArrayBuffer=B;function W(be){return r(be)==="[object DataView]"}W.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&W(new DataView(new ArrayBuffer(1),0,1));function J(be){return typeof DataView>"u"?!1:W.working?W(be):be instanceof DataView}H.isDataView=J;var re=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ne(be){return r(be)==="[object SharedArrayBuffer]"}function le(be){return typeof re>"u"?!1:(typeof ne.working>"u"&&(ne.working=ne(new re)),ne.working?ne(be):be instanceof re)}H.isSharedArrayBuffer=le;function $(be){return r(be)==="[object AsyncFunction]"}H.isAsyncFunction=$;function Z(be){return r(be)==="[object Map Iterator]"}H.isMapIterator=Z;function ie(be){return r(be)==="[object Set Iterator]"}H.isSetIterator=ie;function X(be){return r(be)==="[object Generator]"}H.isGeneratorObject=X;function Q(be){return r(be)==="[object WebAssembly.Module]"}H.isWebAssemblyCompiledModule=Q;function oe(be){return l(be,t)}H.isNumberObject=oe;function Y(be){return l(be,a)}H.isStringObject=Y;function j(be){return l(be,n)}H.isBooleanObject=j;function se(be){return v&&l(be,f)}H.isBigIntObject=se;function te(be){return p&&l(be,u)}H.isSymbolObject=te;function fe(be){return oe(be)||Y(be)||j(be)||se(be)||te(be)}H.isBoxedPrimitive=fe;function ge(be){return typeof Uint8Array<"u"&&(B(be)||le(be))}H.isAnyArrayBuffer=ge,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(be){Object.defineProperty(H,be,{enumerable:!1,value:function(){throw new Error(be+" is not supported in userland")}})})},35840:function(G,H,e){var m=e(4168),P=Object.getOwnPropertyDescriptors||function(re){for(var ne=Object.keys(re),le={},$=0;$=$)return X;switch(X){case"%s":return String(le[ne++]);case"%d":return Number(le[ne++]);case"%j":try{return JSON.stringify(le[ne++])}catch{return"[Circular]"}default:return X}}),ie=le[ne];ne<$;ie=le[++ne])i(ie)||!A(ie)?Z+=" "+ie:Z+=" "+p(ie);return Z},H.deprecate=function(J,re){if(typeof m<"u"&&m.noDeprecation===!0)return J;if(typeof m>"u")return function(){return H.deprecate(J,re).apply(this,arguments)};var ne=!1;function le(){if(!ne){if(m.throwDeprecation)throw new Error(re);m.traceDeprecation?console.trace(re):console.error(re),ne=!0}return J.apply(this,arguments)}return le};var L={},S=/^$/;if(m.env.NODE_DEBUG){var v=m.env.NODE_DEBUG;v=v.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),S=new RegExp("^"+v+"$","i")}H.debuglog=function(J){if(J=J.toUpperCase(),!L[J])if(S.test(J)){var re=m.pid;L[J]=function(){var ne=H.format.apply(H,arguments);console.error("%s %d: %s",J,re,ne)}}else L[J]=function(){};return L[J]};function p(J,re){var ne={seen:[],stylize:t};return arguments.length>=3&&(ne.depth=arguments[2]),arguments.length>=4&&(ne.colors=arguments[3]),c(re)?ne.showHidden=re:re&&H._extend(ne,re),y(ne.showHidden)&&(ne.showHidden=!1),y(ne.depth)&&(ne.depth=2),y(ne.colors)&&(ne.colors=!1),y(ne.customInspect)&&(ne.customInspect=!0),ne.colors&&(ne.stylize=r),n(ne,J,ne.depth)}H.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(J,re){var ne=p.styles[re];return ne?"\x1B["+p.colors[ne][0]+"m"+J+"\x1B["+p.colors[ne][1]+"m":J}function t(J,re){return J}function a(J){var re={};return J.forEach(function(ne,le){re[ne]=!0}),re}function n(J,re,ne){if(J.customInspect&&re&&b(re.inspect)&&re.inspect!==H.inspect&&!(re.constructor&&re.constructor.prototype===re)){var le=re.inspect(ne,J);return w(le)||(le=n(J,le,ne)),le}var $=f(J,re);if($)return $;var Z=Object.keys(re),ie=a(Z);if(J.showHidden&&(Z=Object.getOwnPropertyNames(re)),M(re)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return u(re);if(Z.length===0){if(b(re)){var X=re.name?": "+re.name:"";return J.stylize("[Function"+X+"]","special")}if(E(re))return J.stylize(RegExp.prototype.toString.call(re),"regexp");if(o(re))return J.stylize(Date.prototype.toString.call(re),"date");if(M(re))return u(re)}var Q="",oe=!1,Y=["{","}"];if(T(re)&&(oe=!0,Y=["[","]"]),b(re)){var j=re.name?": "+re.name:"";Q=" [Function"+j+"]"}if(E(re)&&(Q=" "+RegExp.prototype.toString.call(re)),o(re)&&(Q=" "+Date.prototype.toUTCString.call(re)),M(re)&&(Q=" "+u(re)),Z.length===0&&(!oe||re.length==0))return Y[0]+Q+Y[1];if(ne<0)return E(re)?J.stylize(RegExp.prototype.toString.call(re),"regexp"):J.stylize("[Object]","special");J.seen.push(re);var se;return oe?se=l(J,re,ne,ie,Z):se=Z.map(function(te){return g(J,re,ne,ie,te,oe)}),J.seen.pop(),h(se,Q,Y)}function f(J,re){if(y(re))return J.stylize("undefined","undefined");if(w(re)){var ne="'"+JSON.stringify(re).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(ne,"string")}if(x(re))return J.stylize(""+re,"number");if(c(re))return J.stylize(""+re,"boolean");if(i(re))return J.stylize("null","null")}function u(J){return"["+Error.prototype.toString.call(J)+"]"}function l(J,re,ne,le,$){for(var Z=[],ie=0,X=re.length;ie-1&&(Z?X=X.split(` `).map(function(oe){return" "+oe}).join(` @@ -3551,4 +3551,4 @@ void main() { `))):X=J.stylize("[Circular]","special")),y(ie)){if(Z&&$.match(/^\d+$/))return X;ie=JSON.stringify(""+$),ie.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ie=ie.slice(1,-1),ie=J.stylize(ie,"name")):(ie=ie.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ie=J.stylize(ie,"string"))}return ie+": "+X}function h(J,re,ne){var le=J.reduce(function($,Z){return Z.indexOf(` `)>=0,$+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return le>60?ne[0]+(re===""?"":re+` `)+" "+J.join(`, - `)+" "+ne[1]:ne[0]+re+" "+J.join(", ")+" "+ne[1]}H.types=e(41088);function T(J){return Array.isArray(J)}H.isArray=T;function c(J){return typeof J=="boolean"}H.isBoolean=c;function i(J){return J===null}H.isNull=i;function d(J){return J==null}H.isNullOrUndefined=d;function x(J){return typeof J=="number"}H.isNumber=x;function w(J){return typeof J=="string"}H.isString=w;function C(J){return typeof J=="symbol"}H.isSymbol=C;function y(J){return J===void 0}H.isUndefined=y;function E(J){return A(J)&&D(J)==="[object RegExp]"}H.isRegExp=E,H.types.isRegExp=E;function A(J){return typeof J=="object"&&J!==null}H.isObject=A;function o(J){return A(J)&&D(J)==="[object Date]"}H.isDate=o,H.types.isDate=o;function M(J){return A(J)&&(D(J)==="[object Error]"||J instanceof Error)}H.isError=M,H.types.isNativeError=M;function b(J){return typeof J=="function"}H.isFunction=b;function I(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}H.isPrimitive=I,H.isBuffer=e(75272);function D(J){return Object.prototype.toString.call(J)}function N(J){return J<10?"0"+J.toString(10):J.toString(10)}var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var J=new Date,re=[N(J.getHours()),N(J.getMinutes()),N(J.getSeconds())].join(":");return[J.getDate(),k[J.getMonth()],re].join(" ")}H.log=function(){console.log("%s - %s",O(),H.format.apply(H,arguments))},H.inherits=e(6768),H._extend=function(J,re){if(!re||!A(re))return J;for(var ne=Object.keys(re),le=ne.length;le--;)J[ne[le]]=re[ne[le]];return J};function F(J,re){return Object.prototype.hasOwnProperty.call(J,re)}var z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;H.promisify=function(re){if(typeof re!="function")throw new TypeError('The "original" argument must be of type Function');if(z&&re[z]){var ne=re[z];if(typeof ne!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ne,z,{value:ne,enumerable:!1,writable:!1,configurable:!0}),ne}function ne(){for(var le,$,Z=new Promise(function(Q,oe){le=Q,$=oe}),ie=[],X=0;X"u"?e.g:globalThis,t=P(),a=L("String.prototype.slice"),n=Object.getPrototypeOf,f=L("Array.prototype.indexOf",!0)||function(T,c){for(var i=0;i-1?c:c!=="Object"?!1:g(T)}return S?l(T):null}},67020:function(G,H,e){var m=e(38700),P=e(50896),s=m.instance();function L(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}L.prototype=new m.baseCalendar,P(L.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(u,l){if(typeof u=="string"){var g=u.match(v);return g?g[0]:""}var h=this._validateYear(u),T=u.month(),c=""+this.toChineseMonth(h,T);return l&&c.length<2&&(c="0"+c),this.isIntercalaryMonth(h,T)&&(c+="i"),c},monthNames:function(u){if(typeof u=="string"){var l=u.match(p);return l?l[0]:""}var g=this._validateYear(u),h=u.month(),T=this.toChineseMonth(g,h),c=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][T-1];return this.isIntercalaryMonth(g,h)&&(c="闰"+c),c},monthNamesShort:function(u){if(typeof u=="string"){var l=u.match(r);return l?l[0]:""}var g=this._validateYear(u),h=u.month(),T=this.toChineseMonth(g,h),c=["一","二","三","四","五","六","七","八","九","十","十一","十二"][T-1];return this.isIntercalaryMonth(g,h)&&(c="闰"+c),c},parseMonth:function(u,l){u=this._validateYear(u);var g=parseInt(l),h;if(isNaN(g))l[0]==="闰"&&(h=!0,l=l.substring(1)),l[l.length-1]==="月"&&(l=l.substring(0,l.length-1)),g=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(l);else{var T=l[l.length-1];h=T==="i"||T==="I"}var c=this.toMonthIndex(u,g,h);return c},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(u,l){if(u.year&&(u=u.year()),typeof u!="number"||u<1888||u>2111)throw l.replace(/\{0\}/,this.local.name);return u},toMonthIndex:function(u,l,g){var h=this.intercalaryMonth(u),T=g&&l!==h;if(T||l<1||l>12)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var c;return h?!g&&l<=h?c=l-1:c=l:c=l-1,c},toChineseMonth:function(u,l){u.year&&(u=u.year(),l=u.month());var g=this.intercalaryMonth(u),h=g?12:11;if(l<0||l>h)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var T;return g?l>13;return g},isIntercalaryMonth:function(u,l){u.year&&(u=u.year(),l=u.month());var g=this.intercalaryMonth(u);return!!g&&g===l},leapYear:function(u){return this.intercalaryMonth(u)!==0},weekOfYear:function(u,l,g){var h=this._validateYear(u,m.local.invalidyear),T=a[h-a[0]],c=T>>9&4095,i=T>>5&15,d=T&31,x;x=s.newDate(c,i,d),x.add(4-(x.dayOfWeek()||7),"d");var w=this.toJD(u,l,g)-x.toJD();return 1+Math.floor(w/7)},monthsInYear:function(u){return this.leapYear(u)?13:12},daysInMonth:function(u,l){u.year&&(l=u.month(),u=u.year()),u=this._validateYear(u);var g=t[u-t[0]],h=g>>13,T=h?12:11;if(l>T)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var c=g&1<<12-l?30:29;return c},weekDay:function(u,l,g){return(this.dayOfWeek(u,l,g)||7)<6},toJD:function(u,l,g){var h=this._validate(u,c,g,m.local.invalidDate);u=this._validateYear(h.year()),l=h.month(),g=h.day();var T=this.isIntercalaryMonth(u,l),c=this.toChineseMonth(u,l),i=f(u,c,g,T);return s.toJD(i.year,i.month,i.day)},fromJD:function(u){var l=s.fromJD(u),g=n(l.year(),l.month(),l.day()),h=this.toMonthIndex(g.year,g.month,g.isIntercalary);return this.newDate(g.year,h,g.day)},fromString:function(u){var l=u.match(S),g=this._validateYear(+l[1]),h=+l[2],T=!!l[3],c=this.toMonthIndex(g,h,T),i=+l[4];return this.newDate(g,c,i)},add:function(u,l,g){var h=u.year(),T=u.month(),c=this.isIntercalaryMonth(h,T),i=this.toChineseMonth(h,T),d=Object.getPrototypeOf(L.prototype).add.call(this,u,l,g);if(g==="y"){var x=d.year(),w=d.month(),C=this.isIntercalaryMonth(x,i),y=c&&C?this.toMonthIndex(x,i,!0):this.toMonthIndex(x,i,!1);y!==w&&d.month(y)}return d}});var S=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,v=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,r=/^闰?十?[一二三四五六七八九]?/m;m.calendars.chinese=L;var t=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],a=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function n(u,l,g,h){var T,c;if(typeof u=="object")T=u,c=l||{};else{var i=typeof u=="number"&&u>=1888&&u<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var d=typeof l=="number"&&l>=1&&l<=12;if(!d)throw new Error("Solar month outside range 1 - 12");var x=typeof g=="number"&&g>=1&&g<=31;if(!x)throw new Error("Solar day outside range 1 - 31");T={year:u,month:l,day:g},c={}}var w=a[T.year-a[0]],C=T.year<<9|T.month<<5|T.day;c.year=C>=w?T.year:T.year-1,w=a[c.year-a[0]];var y=w>>9&4095,E=w>>5&15,A=w&31,o,M=new Date(y,E-1,A),b=new Date(T.year,T.month-1,T.day);o=Math.round((b-M)/864e5);var I=t[c.year-t[0]],D;for(D=0;D<13;D++){var N=I&1<<12-D?30:29;if(o>13;return!k||D=1888&&u<=2111;if(!d)throw new Error("Lunar year outside range 1888-2111");var x=typeof l=="number"&&l>=1&&l<=12;if(!x)throw new Error("Lunar month outside range 1 - 12");var w=typeof g=="number"&&g>=1&&g<=30;if(!w)throw new Error("Lunar day outside range 1 - 30");var C;typeof h=="object"?(C=!1,c=h):(C=!!h,c={}),i={year:u,month:l,day:g,isIntercalary:C}}var y;y=i.day-1;var E=t[i.year-t[0]],A=E>>13,o;A&&(i.month>A||i.isIntercalary)?o=i.month:o=i.month-1;for(var M=0;M>9&4095,N=I>>5&15,k=I&31,O=new Date(D,N-1,k+y);return c.year=O.getFullYear(),c.month=1+O.getMonth(),c.day=O.getDate(),c}},89792:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var S=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=S.year()+(S.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(L){return this._validate(L,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),13},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(L,S){var v=this._validate(L,S,this.minDay,m.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(L,S,v){return(this.dayOfWeek(L,S,v)||7)<6},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);return L=p.year(),L<0&&L++,p.day()+(p.month()-1)*30+(L-1)*365+Math.floor(L/4)+this.jdEpoch-1},fromJD:function(L){var S=Math.floor(L)+.5-this.jdEpoch,v=Math.floor((S-Math.floor((S+366)/1461))/365)+1;v<=0&&v--,S=Math.floor(L)+.5-this.newDate(v,1,1).toJD();var p=Math.floor(S/30)+1,r=S-(p-1)*30+1;return this.newDate(v,p,r)}}),m.calendars.coptic=s},55668:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(S){return this._validate(S,this.minMonth,this.minDay,m.local.invalidYear),!1},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,m.local.invalidYear),13},daysInYear:function(S){return this._validate(S,this.minMonth,this.minDay,m.local.invalidYear),400},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/8)+1},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);return(r.day()+1)%8},weekDay:function(S,v,p){var r=this.dayOfWeek(S,v,p);return r>=2&&r<=6},extraInfo:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);return{century:L[Math.floor((r.year()-1)/100)+1]||""}},toJD:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);return S=r.year()+(r.year()<0?1:0),v=r.month(),p=r.day(),p+(v>1?16:0)+(v>2?(v-2)*32:0)+(S-1)*400+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S+.5)-Math.floor(this.jdEpoch)-1;var v=Math.floor(S/400)+1;S-=(v-1)*400,S+=S>15?16:0;var p=Math.floor(S/32)+1,r=S-(p-1)*32+1;return this.newDate(v<=0?v-1:v,p,r)}});var L={20:"Fruitbat",21:"Anchovy"};m.calendars.discworld=s},65168:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var S=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=S.year()+(S.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(L){return this._validate(L,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),13},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(L,S){var v=this._validate(L,S,this.minDay,m.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(L,S,v){return(this.dayOfWeek(L,S,v)||7)<6},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);return L=p.year(),L<0&&L++,p.day()+(p.month()-1)*30+(L-1)*365+Math.floor(L/4)+this.jdEpoch-1},fromJD:function(L){var S=Math.floor(L)+.5-this.jdEpoch,v=Math.floor((S-Math.floor((S+366)/1461))/365)+1;v<=0&&v--,S=Math.floor(L)+.5-this.newDate(v,1,1).toJD();var p=Math.floor(S/30)+1,r=S-(p-1)*30+1;return this.newDate(v,p,r)}}),m.calendars.ethiopian=s},2084:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear);return this._leapYear(v.year())},_leapYear:function(S){return S=S<0?S+1:S,L(S*7+1,19)<7},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,m.local.invalidYear),this._leapYear(S.year?S.year():S)?13:12},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear);return S=v.year(),this.toJD(S===-1?1:S+1,7,1)-this.toJD(S,7,1)},daysInMonth:function(S,v){return S.year&&(v=S.month(),S=S.year()),this._validate(S,v,this.minDay,m.local.invalidMonth),v===12&&this.leapYear(S)||v===8&&L(this.daysInYear(S),10)===5?30:v===9&&L(this.daysInYear(S),10)===3?29:this.daysPerMonth[v-1]},weekDay:function(S,v,p){return this.dayOfWeek(S,v,p)!==6},extraInfo:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);return{yearType:(this.leapYear(r)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(r)%10-3]}},toJD:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);S=r.year(),v=r.month(),p=r.day();var t=S<=0?S+1:S,a=this.jdEpoch+this._delay1(t)+this._delay2(t)+p+1;if(v<7){for(var n=7;n<=this.monthsInYear(S);n++)a+=this.daysInMonth(S,n);for(var n=1;n=this.toJD(v===-1?1:v+1,7,1);)v++;for(var p=Sthis.toJD(v,p,this.daysInMonth(v,p));)p++;var r=S-this.toJD(v,p,1)+1;return this.newDate(v,p,r)}});function L(S,v){return S-v*Math.floor(S/v)}m.calendars.hebrew=s},26368:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(L){var S=this._validate(L,this.minMonth,this.minDay,m.local.invalidYear);return(S.year()*11+14)%30<11},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(L){return this.leapYear(L)?355:354},daysInMonth:function(L,S){var v=this._validate(L,S,this.minDay,m.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===12&&this.leapYear(v.year())?1:0)},weekDay:function(L,S,v){return this.dayOfWeek(L,S,v)!==5},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);return L=p.year(),S=p.month(),v=p.day(),L=L<=0?L+1:L,v+Math.ceil(29.5*(S-1))+(L-1)*354+Math.floor((3+11*L)/30)+this.jdEpoch-1},fromJD:function(L){L=Math.floor(L)+.5;var S=Math.floor((30*(L-this.jdEpoch)+10646)/10631);S=S<=0?S-1:S;var v=Math.min(12,Math.ceil((L-29-this.toJD(S,1,1))/29.5)+1),p=L-this.toJD(S,v,1)+1;return this.newDate(S,v,p)}}),m.calendars.islamic=s},24747:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var S=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=S.year()<0?S.year()+1:S.year();return v%4===0},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(L,S){var v=this._validate(L,S,this.minDay,m.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(L,S,v){return(this.dayOfWeek(L,S,v)||7)<6},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);return L=p.year(),S=p.month(),v=p.day(),L<0&&L++,S<=2&&(L--,S+=12),Math.floor(365.25*(L+4716))+Math.floor(30.6001*(S+1))+v-1524.5},fromJD:function(L){var S=Math.floor(L+.5),v=S+1524,p=Math.floor((v-122.1)/365.25),r=Math.floor(365.25*p),t=Math.floor((v-r)/30.6001),a=t-Math.floor(t<14?1:13),n=p-Math.floor(a>2?4716:4715),f=v-r-Math.floor(30.6001*t);return n<=0&&n--,this.newDate(n,a,f)}}),m.calendars.julian=s},65616:function(G,H,e){var m=e(38700),P=e(50896);function s(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(v){return this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),!1},formatYear:function(v){var p=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear);v=p.year();var r=Math.floor(v/400);v=v%400,v+=v<0?400:0;var t=Math.floor(v/20);return r+"."+t+"."+v%20},forYear:function(v){if(v=v.split("."),v.length<3)throw"Invalid Mayan year";for(var p=0,r=0;r19||r>0&&t<0)throw"Invalid Mayan year";p=p*20+t}return p},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),18},weekOfYear:function(v,p,r){return this._validate(v,p,r,m.local.invalidDate),0},daysInYear:function(v){return this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),360},daysInMonth:function(v,p){return this._validate(v,p,this.minDay,m.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(v,p,r){var t=this._validate(v,p,r,m.local.invalidDate);return t.day()},weekDay:function(v,p,r){return this._validate(v,p,r,m.local.invalidDate),!0},extraInfo:function(v,p,r){var t=this._validate(v,p,r,m.local.invalidDate),a=t.toJD(),n=this._toHaab(a),f=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[n[0]-1],haabMonth:n[0],haabDay:n[1],tzolkinDayName:this.local.tzolkinMonths[f[0]-1],tzolkinDay:f[0],tzolkinTrecena:f[1]}},_toHaab:function(v){v-=this.jdEpoch;var p=L(v+8+17*20,365);return[Math.floor(p/20)+1,L(p,20)]},_toTzolkin:function(v){return v-=this.jdEpoch,[S(v+20,20),S(v+4,13)]},toJD:function(v,p,r){var t=this._validate(v,p,r,m.local.invalidDate);return t.day()+t.month()*20+t.year()*360+this.jdEpoch},fromJD:function(v){v=Math.floor(v)+.5-this.jdEpoch;var p=Math.floor(v/360);v=v%360,v+=v<0?360:0;var r=Math.floor(v/20),t=v%20;return this.newDate(p,r,t)}});function L(v,p){return v-p*Math.floor(v/p)}function S(v,p){return L(v-1,p)+1}m.calendars.mayan=s},30632:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar;var L=m.instance("gregorian");P(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return L.leapYear(v.year()+(v.year()<1?1:0)+1469)},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(1-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(S,v,p){return(this.dayOfWeek(S,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,m.local.invalidMonth),t=r.year();t<0&&t++;for(var a=r.day(),n=1;n=this.toJD(v+1,1,1);)v++;for(var p=S-Math.floor(this.toJD(v,1,1)+.5)+1,r=1;p>this.daysInMonth(v,r);)p-=this.daysInMonth(v,r),r++;return this.newDate(v,r,p)}}),m.calendars.nanakshahi=s},73040:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(L){return this.daysInYear(L)!==this.daysPerYear},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(L){var S=this._validate(L,this.minMonth,this.minDay,m.local.invalidYear);if(L=S.year(),typeof this.NEPALI_CALENDAR_DATA[L]>"u")return this.daysPerYear;for(var v=0,p=this.minMonth;p<=12;p++)v+=this.NEPALI_CALENDAR_DATA[L][p];return v},daysInMonth:function(L,S){return L.year&&(S=L.month(),L=L.year()),this._validate(L,S,this.minDay,m.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[L]>"u"?this.daysPerMonth[S-1]:this.NEPALI_CALENDAR_DATA[L][S]},weekDay:function(L,S,v){return this.dayOfWeek(L,S,v)!==6},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);L=p.year(),S=p.month(),v=p.day();var r=m.instance(),t=0,a=S,n=L;this._createMissingCalendarData(L);var f=L-(a>9||a===9&&v>=this.NEPALI_CALENDAR_DATA[n][0]?56:57);for(S!==9&&(t=v,a--);a!==9;)a<=0&&(a=12,n--),t+=this.NEPALI_CALENDAR_DATA[n][a],a--;return S===9?(t+=v-this.NEPALI_CALENDAR_DATA[n][0],t<0&&(t+=r.daysInYear(f))):t+=this.NEPALI_CALENDAR_DATA[n][9]-this.NEPALI_CALENDAR_DATA[n][0],r.newDate(f,1,1).add(t,"d").toJD()},fromJD:function(L){var S=m.instance(),v=S.fromJD(L),p=v.year(),r=v.dayOfYear(),t=p+56;this._createMissingCalendarData(t);for(var a=9,n=this.NEPALI_CALENDAR_DATA[t][0],f=this.NEPALI_CALENDAR_DATA[t][a]-n+1;r>f;)a++,a>12&&(a=1,t++),f+=this.NEPALI_CALENDAR_DATA[t][a];var u=this.NEPALI_CALENDAR_DATA[t][a]-(f-r);return this.newDate(t,a,u)},_createMissingCalendarData:function(L){var S=this.daysPerMonth.slice(0);S.unshift(17);for(var v=L-1;v"u"&&(this.NEPALI_CALENDAR_DATA[v]=S)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),m.calendars.nepali=s},1104:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear);return((v.year()-(v.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(-((r.dayOfWeek()+1)%7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(S,v,p){return this.dayOfWeek(S,v,p)!==5},toJD:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);S=r.year(),v=r.month(),p=r.day();var t=S-(S>=0?474:473),a=474+L(t,2820);return p+(v<=7?(v-1)*31:(v-1)*30+6)+Math.floor((a*682-110)/2816)+(a-1)*365+Math.floor(t/2820)*1029983+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S)+.5;var v=S-this.toJD(475,1,1),p=Math.floor(v/1029983),r=L(v,1029983),t=2820;if(r!==1029982){var a=Math.floor(r/366),n=L(r,366);t=Math.floor((2134*a+2816*n+2815)/1028522)+a+1}var f=t+2820*p+474;f=f<=0?f-1:f;var u=S-this.toJD(f,1,1)+1,l=u<=186?Math.ceil(u/31):Math.ceil((u-6)/30),g=S-this.toJD(f,l,1)+1;return this.newDate(f,l,g)}});function L(S,v){return S-v*Math.floor(S/v)}m.calendars.persian=s,m.calendars.jalali=s},51456:function(G,H,e){var m=e(38700),P=e(50896),s=m.instance();function L(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}L.prototype=new m.baseCalendar,P(L.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(p){var v=this._validate(p,this.minMonth,this.minDay,m.local.invalidYear),p=this._t2gYear(v.year());return s.leapYear(p)},weekOfYear:function(t,v,p){var r=this._validate(t,this.minMonth,this.minDay,m.local.invalidYear),t=this._t2gYear(r.year());return s.weekOfYear(t,r.month(),r.day())},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(S,v,p){return(this.dayOfWeek(S,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,m.local.invalidDate),t=this._t2gYear(r.year());return s.toJD(t,r.month(),r.day())},fromJD:function(S){var v=s.fromJD(S),p=this._g2tYear(v.year());return this.newDate(p,v.month(),v.day())},_t2gYear:function(S){return S+this.yearsOffset+(S>=-this.yearsOffset&&S<=-1?1:0)},_g2tYear:function(S){return S-this.yearsOffset-(S>=1&&S<=this.yearsOffset?1:0)}}),m.calendars.taiwan=L},4592:function(G,H,e){var m=e(38700),P=e(50896),s=m.instance();function L(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}L.prototype=new m.baseCalendar,P(L.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(p){var v=this._validate(p,this.minMonth,this.minDay,m.local.invalidYear),p=this._t2gYear(v.year());return s.leapYear(p)},weekOfYear:function(t,v,p){var r=this._validate(t,this.minMonth,this.minDay,m.local.invalidYear),t=this._t2gYear(r.year());return s.weekOfYear(t,r.month(),r.day())},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(S,v,p){return(this.dayOfWeek(S,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,m.local.invalidDate),t=this._t2gYear(r.year());return s.toJD(t,r.month(),r.day())},fromJD:function(S){var v=s.fromJD(S),p=this._g2tYear(v.year());return this.newDate(p,v.month(),v.day())},_t2gYear:function(S){return S-this.yearsOffset-(S>=1&&S<=this.yearsOffset?1:0)},_g2tYear:function(S){return S+this.yearsOffset+(S>=-this.yearsOffset&&S<=-1?1:0)}}),m.calendars.thai=L},45348:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear);return this.daysInYear(v.year())===355},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(S){for(var v=0,p=1;p<=12;p++)v+=this.daysInMonth(S,p);return v},daysInMonth:function(S,v){for(var p=this._validate(S,v,this.minDay,m.local.invalidMonth),r=p.toJD()-24e5+.5,t=0,a=0;ar)return L[t]-L[t-1];t++}return 30},weekDay:function(S,v,p){return this.dayOfWeek(S,v,p)!==5},toJD:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate),t=12*(r.year()-1)+r.month()-15292,a=r.day()+L[t-1]-1;return a+24e5-.5},fromJD:function(S){for(var v=S-24e5+.5,p=0,r=0;rv);r++)p++;var t=p+15292,a=Math.floor((t-1)/12),n=a+1,f=t-12*a,u=v-L[p-1]+1;return this.newDate(n,f,u)},isValid:function(S,v,p){var r=m.baseCalendar.prototype.isValid.apply(this,arguments);return r&&(S=S.year!=null?S.year:S,r=S>=1276&&S<=1500),r},_validate:function(S,v,p,r){var t=m.baseCalendar.prototype._validate.apply(this,arguments);if(t.year<1276||t.year>1500)throw r.replace(/\{0\}/,this.local.name);return t}}),m.calendars.ummalqura=s;var L=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(G,H,e){var m=e(50896);function P(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}m(P.prototype,{instance:function(r,t){r=(r||"gregorian").toLowerCase(),t=t||"";var a=this._localCals[r+"-"+t];if(!a&&this.calendars[r]&&(a=new this.calendars[r](t),this._localCals[r+"-"+t]=a),!a)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,r);return a},newDate:function(r,t,a,n,f){return n=(r!=null&&r.year?r.calendar():typeof n=="string"?this.instance(n,f):n)||this.instance(),n.newDate(r,t,a)},substituteDigits:function(r){return function(t){return(t+"").replace(/[0-9]/g,function(a){return r[a]})}},substituteChineseDigits:function(r,t){return function(a){for(var n="",f=0;a>0;){var u=a%10;n=(u===0?"":r[u]+t[f])+n,f++,a=Math.floor(a/10)}return n.indexOf(r[1]+t[1])===0&&(n=n.substr(1)),n||r[0]}}});function s(r,t,a,n){if(this._calendar=r,this._year=t,this._month=a,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function L(r,t){return r=""+r,"000000".substring(0,t-r.length)+r}m(s.prototype,{newDate:function(r,t,a){return this._calendar.newDate(r??this,t,a)},year:function(r){return arguments.length===0?this._year:this.set(r,"y")},month:function(r){return arguments.length===0?this._month:this.set(r,"m")},day:function(r){return arguments.length===0?this._day:this.set(r,"d")},date:function(r,t,a){if(!this._calendar.isValid(r,t,a))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=r,this._month=t,this._day=a,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(r,t){return this._calendar.add(this,r,t)},set:function(r,t){return this._calendar.set(this,r,t)},compareTo:function(r){if(this._calendar.name!==r._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,r._calendar.local.name);var t=this._year!==r._year?this._year-r._year:this._month!==r._month?this.monthOfYear()-r.monthOfYear():this._day-r._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(r){return this._calendar.fromJD(r)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(r){return this._calendar.fromJSDate(r)},toString:function(){return(this.year()<0?"-":"")+L(Math.abs(this.year()),4)+"-"+L(this.month(),2)+"-"+L(this.day(),2)}});function S(){this.shortYearCutoff="+10"}m(S.prototype,{_validateLevel:0,newDate:function(r,t,a){return r==null?this.today():(r.year&&(this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),a=r.day(),t=r.month(),r=r.year()),new s(this,r,t,a))},today:function(){return this.fromJSDate(new Date)},epoch:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+L(Math.abs(t.year()),4)},monthsInYear:function(r){return this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(r,t){var a=this._validate(r,t,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(a.month()+this.monthsInYear(a)-this.firstMonth)%this.monthsInYear(a)+this.minMonth},fromMonthOfYear:function(r,t){var a=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(r)+this.minMonth;return this._validate(r,a,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),a},daysInYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(r,t,a){return this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(r,t,a){return this._validate(r,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(r,this._add(r,t,a),t,a)},_add:function(r,t,a){if(this._validateLevel++,a==="d"||a==="w"){var n=r.toJD()+t*(a==="w"?this.daysInWeek():1),f=r.calendar().fromJD(n);return this._validateLevel--,[f.year(),f.month(),f.day()]}try{var u=r.year()+(a==="y"?t:0),l=r.monthOfYear()+(a==="m"?t:0),f=r.day(),g=function(c){for(;li-1+c.minMonth;)u++,l-=i,i=c.monthsInYear(u)};a==="y"?(r.month()!==this.fromMonthOfYear(u,l)&&(l=this.newDate(u,r.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(u)),f=Math.min(f,this.daysInMonth(u,this.fromMonthOfYear(u,l)))):a==="m"&&(g(this),f=Math.min(f,this.daysInMonth(u,this.fromMonthOfYear(u,l))));var h=[u,this.fromMonthOfYear(u,l),f];return this._validateLevel--,h}catch(T){throw this._validateLevel--,T}},_correctAdd:function(r,t,a,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||r.year()>0!=t[0]>0)){var f={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],u=a<0?-1:1;t=this._add(r,a*f[0]+u*f[1],f[2])}return r.date(t[0],t[1],t[2])},set:function(r,t,a){this._validate(r,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var n=a==="y"?t:r.year(),f=a==="m"?t:r.month(),u=a==="d"?t:r.day();return(a==="y"||a==="m")&&(u=Math.min(u,this.daysInMonth(n,f))),r.date(n,f,u)},isValid:function(r,t,a){this._validateLevel++;var n=this.hasYearZero||r!==0;if(n){var f=this.newDate(r,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&a-this.minDay13.5?13:1),T=f-(h>2.5?4716:4715);return T<=0&&T--,this.newDate(T,h,g)},toJSDate:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),f=new Date(n.year(),n.month()-1,n.day());return f.setHours(0),f.setMinutes(0),f.setSeconds(0),f.setMilliseconds(0),f.setHours(f.getHours()>12?f.getHours()+2:0),f},fromJSDate:function(r){return this.newDate(r.getFullYear(),r.getMonth()+1,r.getDate())}});var p=G.exports=new P;p.cdate=s,p.baseCalendar=S,p.calendars.gregorian=v},15168:function(G,H,e){var m=e(50896),P=e(38700);m(P.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),P.local=P.regionalOptions[""],m(P.cdate.prototype,{formatDate:function(s,L){return typeof s!="string"&&(L=s,s=""),this._calendar.formatDate(s||"",this,L)}}),m(P.baseCalendar.prototype,{UNIX_EPOCH:P.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:P.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,L,S){if(typeof s!="string"&&(S=L,L=s,s=""),!L)return"";if(L.calendar()!==this)throw P.local.invalidFormat||P.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat,S=S||{};var v=S.dayNamesShort||this.local.dayNamesShort,p=S.dayNames||this.local.dayNames,r=S.monthNumbers||this.local.monthNumbers,t=S.monthNamesShort||this.local.monthNamesShort,a=S.monthNames||this.local.monthNames;S.calculateWeek||this.local.calculateWeek;for(var n=function(w,C){for(var y=1;x+y1},f=function(w,C,y,E){var A=""+C;if(n(w,E))for(;A.length1},x=function(D,N){var k=d(D,N),O=[2,3,k?4:2,k?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],F=new RegExp("^-?\\d{1,"+O+"}"),z=L.substring(o).match(F);if(!z)throw(P.local.missingNumberAt||P.regionalOptions[""].missingNumberAt).replace(/\{0\}/,o);return o+=z[0].length,parseInt(z[0],10)},w=this,C=function(){if(typeof a=="function"){d("m");var D=a.call(w,L.substring(o));return o+=D.length,D}return x("m")},y=function(D,N,k,O){for(var F=d(D,O)?k:N,z=0;z-1){g=1,h=T;for(var I=this.daysInMonth(l,g);h>I;I=this.daysInMonth(l,g))g++,h-=I}return u>-1?this.fromJD(u):this.newDate(l,g,h)},determineDate:function(s,L,S,v,p){S&&typeof S!="object"&&(p=v,v=S,S=null),typeof v!="string"&&(p=v,v="");var r=this,t=function(a){try{return r.parseDate(v,a,p)}catch{}a=a.toLowerCase();for(var n=(a.match(/^c/)&&S?S.newDate():null)||r.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,u=f.exec(a);u;)n.add(parseInt(u[1],10),u[2]||"d"),u=f.exec(a);return n};return L=L?L.newDate():null,s=s==null?L:typeof s=="string"?t(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?L:r.today().add(s,"d"):r.newDate(s),s}})},21576:function(){},19768:function(){},63436:function(G,H,e){var m=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],P=typeof globalThis>"u"?e.g:globalThis;G.exports=function(){for(var L=[],S=0;S>8&15|Re>>4&240,Re>>4&15|Re&240,(Re&15)<<4|Re&15,1):Se===8?C(Re>>24&255,Re>>16&255,Re>>8&255,(Re&255)/255):Se===4?C(Re>>12&15|Re>>8&240,Re>>8&15|Re>>4&240,Re>>4&15|Re&240,((Re&15)<<4|Re&15)/255):null):(Re=a.exec(Te))?new A(Re[1],Re[2],Re[3],1):(Re=n.exec(Te))?new A(Re[1]*255/100,Re[2]*255/100,Re[3]*255/100,1):(Re=f.exec(Te))?C(Re[1],Re[2],Re[3],Re[4]):(Re=u.exec(Te))?C(Re[1]*255/100,Re[2]*255/100,Re[3]*255/100,Re[4]):(Re=l.exec(Te))?k(Re[1],Re[2]/100,Re[3]/100,1):(Re=g.exec(Te))?k(Re[1],Re[2]/100,Re[3]/100,Re[4]):h.hasOwnProperty(Te)?w(h[Te]):Te==="transparent"?new A(NaN,NaN,NaN,0):null}function w(Te){return new A(Te>>16&255,Te>>8&255,Te&255,1)}function C(Te,Re,Se,Ie){return Ie<=0&&(Te=Re=Se=NaN),new A(Te,Re,Se,Ie)}function y(Te){return Te instanceof s||(Te=x(Te)),Te?(Te=Te.rgb(),new A(Te.r,Te.g,Te.b,Te.opacity)):new A}function E(Te,Re,Se,Ie){return arguments.length===1?y(Te):new A(Te,Re,Se,Ie??1)}function A(Te,Re,Se,Ie){this.r=+Te,this.g=+Re,this.b=+Se,this.opacity=+Ie}m(A,E,P(s,{brighter:function(Re){return Re=Re==null?S:Math.pow(S,Re),new A(this.r*Re,this.g*Re,this.b*Re,this.opacity)},darker:function(Re){return Re=Re==null?L:Math.pow(L,Re),new A(this.r*Re,this.g*Re,this.b*Re,this.opacity)},rgb:function(){return this},clamp:function(){return new A(D(this.r),D(this.g),D(this.b),I(this.opacity))},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:o,formatHex:o,formatHex8:M,formatRgb:b,toString:b}));function o(){return"#".concat(N(this.r)).concat(N(this.g)).concat(N(this.b))}function M(){return"#".concat(N(this.r)).concat(N(this.g)).concat(N(this.b)).concat(N((isNaN(this.opacity)?1:this.opacity)*255))}function b(){var Te=I(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat(D(this.r),", ").concat(D(this.g),", ").concat(D(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function I(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function D(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function N(Te){return Te=D(Te),(Te<16?"0":"")+Te.toString(16)}function k(Te,Re,Se,Ie){return Ie<=0?Te=Re=Se=NaN:Se<=0||Se>=1?Te=Re=NaN:Re<=0&&(Te=NaN),new z(Te,Re,Se,Ie)}function O(Te){if(Te instanceof z)return new z(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof s||(Te=x(Te)),!Te)return new z;if(Te instanceof z)return Te;Te=Te.rgb();var Re=Te.r/255,Se=Te.g/255,Ie=Te.b/255,Me=Math.min(Re,Se,Ie),Ve=Math.max(Re,Se,Ie),et=NaN,ot=Ve-Me,Qe=(Ve+Me)/2;return ot?(Re===Ve?et=(Se-Ie)/ot+(Se0&&Qe<1?0:et,new z(et,ot,Qe,Te.opacity)}function F(Te,Re,Se,Ie){return arguments.length===1?O(Te):new z(Te,Re,Se,Ie??1)}function z(Te,Re,Se,Ie){this.h=+Te,this.s=+Re,this.l=+Se,this.opacity=+Ie}m(z,F,P(s,{brighter:function(Re){return Re=Re==null?S:Math.pow(S,Re),new z(this.h,this.s,this.l*Re,this.opacity)},darker:function(Re){return Re=Re==null?L:Math.pow(L,Re),new z(this.h,this.s,this.l*Re,this.opacity)},rgb:function(){var Re=this.h%360+(this.h<0)*360,Se=isNaN(Re)||isNaN(this.s)?0:this.s,Ie=this.l,Me=Ie+(Ie<.5?Ie:1-Ie)*Se,Ve=2*Ie-Me;return new A(J(Re>=240?Re-240:Re+120,Ve,Me),J(Re,Ve,Me),J(Re<120?Re+240:Re-120,Ve,Me),this.opacity)},clamp:function(){return new z(B(this.h),W(this.s),W(this.l),I(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 Re=I(this.opacity);return"".concat(Re===1?"hsl(":"hsla(").concat(B(this.h),", ").concat(W(this.s)*100,"%, ").concat(W(this.l)*100,"%").concat(Re===1?")":", ".concat(Re,")"))}}));function B(Te){return Te=(Te||0)%360,Te<0?Te+360:Te}function W(Te){return Math.max(0,Math.min(1,Te||0))}function J(Te,Re,Se){return(Te<60?Re+(Se-Re)*Te/60:Te<180?Se:Te<240?Re+(Se-Re)*(240-Te)/60:Re)*255}var re=function(Te){return function(){return Te}};function ne(Te,Re){return function(Se){return Te+Se*Re}}function le(Te,Re,Se){return Te=Math.pow(Te,Se),Re=Math.pow(Re,Se)-Te,Se=1/Se,function(Ie){return Math.pow(Te+Ie*Re,Se)}}function $(Te){return(Te=+Te)==1?Z:function(Re,Se){return Se-Re?le(Re,Se,Te):re(isNaN(Re)?Se:Re)}}function Z(Te,Re){var Se=Re-Te;return Se?ne(Te,Se):re(isNaN(Te)?Re:Te)}var ie=function Te(Re){var Se=$(Re);function Ie(Me,Ve){var et=Se((Me=E(Me)).r,(Ve=E(Ve)).r),ot=Se(Me.g,Ve.g),Qe=Se(Me.b,Ve.b),$e=Z(Me.opacity,Ve.opacity);return function(ht){return Me.r=et(ht),Me.g=ot(ht),Me.b=Qe(ht),Me.opacity=$e(ht),Me+""}}return Ie.gamma=Te,Ie}(1);function X(Te,Re){var Se=Re?Re.length:0,Ie=Te?Math.min(Se,Te.length):0,Me=new Array(Ie),Ve=new Array(Se),et;for(et=0;etSe&&(Ve=Re.slice(Se,Ve),ot[et]?ot[et]+=Ve:ot[++et]=Ve),(Ie=Ie[0])===(Me=Me[0])?ot[et]?ot[et]+=Me:ot[++et]=Me:(ot[++et]=null,Qe.push({i:et,x:oe(Ie,Me)})),Se=te.lastIndex;return Se{const q="https://abd-portfolio.azurewebsites.net/api";let P={get_tickers_equity:async()=>await(await fetch(`${q}/tickers_equity/`)).json(),get_tickers_commodities:async()=>await(await fetch(`${q}/tickers_commodities/`)).json(),get_tickers_crypto:async()=>await(await fetch(`${q}/tickers_crypto/`)).json(),get_tickers_t_notes:async()=>await(await fetch(`${q}/tickers_t_notes/`)).json(),get_tickers_reit:async()=>await(await fetch(`${q}/tickers_reit/`)).json(),get_tickers_data:async s=>{let L=localStorage.getItem("period");return L===null&&(L="1y"),await(await fetch(`${q}/tickers_data/?tickers=${s.map(p=>encodeURIComponent(p)).join(",")}&period=${L}`)).json()},analyze_data:async s=>{const L=await fetch(`${q}/data_analysis/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(L.status===200){const S=await L.json();return localStorage.setItem("results_0",JSON.stringify(S.results_0)),localStorage.setItem("results_1",JSON.stringify(S.results_1)),localStorage.setItem("results_2",JSON.stringify(S.results_2)),!0}else return!1},search_tickers:async(s,L)=>await(await fetch(`${q}/search_${L}/?search=${s}`)).json()};return Ir.jsx(Bw.Provider,{value:P,children:V})},$S=()=>{let{get_tickers_equity:V,get_tickers_commodities:q,get_tickers_reit:ye,get_tickers_t_notes:ke,get_tickers_crypto:tt,get_tickers_data:mt,analyze_data:G,search_tickers:H}=Gn.useContext(Bw),e=Gn.useRef(!0),m=Gn.useRef(!0),P=Gn.useRef(0),[s,L]=Gn.useState({}),[S,v]=Gn.useState(null),[p,r]=Gn.useState(null);localStorage.getItem("selection")||localStorage.setItem("selection",0);let[t,a]=Gn.useState(parseInt(localStorage.getItem("selection"))),[n,f]=Gn.useState(""),[u,l]=Gn.useState(!1),[g,h]=Gn.useState({}),[T,c]=Gn.useState([]),[i,d]=Gn.useState(!1),[x,w]=Gn.useState(0),[C,y]=Gn.useState(100),[E,A]=Gn.useState(!1),[o,M]=Gn.useState(!1),[b,I]=Gn.useState(!1),[D,N]=Gn.useState(!1),k=localStorage.getItem("period")?localStorage.getItem("period"):"1y",[O,F]=Gn.useState(k),z=Gn.useRef(0),[B,W]=Gn.useState(0),[J,re]=Gn.useState(0),[ne,le]=Gn.useState(0),[$,Z]=Gn.useState(0),[ie,X]=Gn.useState(0),Q=Gn.useRef([0,0,0,0,0]),[oe,Y]=Gn.useState(null),[j,se]=Gn.useState(100),[te,fe]=Gn.useState(null),[ge,be]=Gn.useState(100),[xe,_e]=Gn.useState(null),[De,Fe]=Gn.useState(100),[Te,Re]=Gn.useState(null),[Se,Ie]=Gn.useState(100),[Me,Ve]=Gn.useState(null),[et,ot]=Gn.useState(100),[Qe,$e]=Gn.useState(["2013-10-04 22:23:00","2013-11-04 22:23:00","2013-12-04 22:23:00"]),[ht,vt]=Gn.useState([1,3,6]),[pt,wt]=Gn.useState(["2013-10-04 22:23:00","2013-11-04 22:23:00","2013-12-04 22:23:00"]),[Ct,rt]=Gn.useState([1,3,6]),[ze,He]=Gn.useState(!1),We=Gn.useRef(null),Ge=Gn.useRef(null),Le=Gn.useRef(!0),[Pe,je]=Gn.useState({width:0,height:0}),[Ce,he]=Gn.useState({width:0,height:0}),me=Gn.useRef(!0);const Ne=_w();var Ze="equity";switch(t){case 0:Ze="equity";break;case 1:Ze="commodities";break;case 2:Ze="t_notes";break;case 3:Ze="reit";break;default:Ze="crypto"}Gn.useEffect(()=>{F(k)},[k]),Gn.useEffect(()=>{m.current&&(m.current=!1,localStorage.getItem("equity_bucket")||localStorage.setItem("equity_bucket",JSON.stringify([])),localStorage.getItem("commodities_bucket")||localStorage.setItem("commodities_bucket",JSON.stringify([])),localStorage.getItem("t_notes_bucket")||localStorage.setItem("t_notes_bucket",JSON.stringify([])),localStorage.getItem("reit_bucket")||localStorage.setItem("reit_bucket",JSON.stringify([])),localStorage.getItem("crypto_bucket")||localStorage.setItem("crypto_bucket",JSON.stringify([])));let Ot=JSON.parse(localStorage.getItem("equity_bucket"));P.current=0;for(let ut=0;ut{if(p!==null){let Ot=JSON.parse(localStorage.getItem(`${Ze}_list_data`));$e(Ot.price_data.DATE),vt(Ot.price_data[p[0]]),wt(Ot.volatility_data.DATE),rt(Ot.volatility_data[p[0]])}},[p]);const st=async Ot=>{r(Ot)},lt=async()=>{d(!0);const Ot=new Date,ut=new Date(Ot);ut.setHours(15,30,0,0);let at=localStorage.getItem("tickers_list_last_updated");if(at=at?new Date(at):null,!at||!localStorage.getItem("equity_list")||!localStorage.getItem("equity_list_data")||!localStorage.getItem("commodities_list")||!localStorage.getItem("commodities_list_data")||!localStorage.getItem("t_notes_list")||!localStorage.getItem("t_notes_list_data")||!localStorage.getItem("reit_list")||!localStorage.getItem("reit_list_data")||!localStorage.getItem("crypto_list")||!localStorage.getItem("crypto_list_data")||at.toDateString()!==Ot.toDateString()||Ot>=ut&&at{e.current&&(e.current=!1,lt())},[t]);let Wt=async Ot=>{Ot.preventDefault(),He(!0);let ut=document.getElementById("start_date").value,at=document.getElementById("end_date").value,xt=document.getElementById("number_of_simulations").value,At=document.getElementById("initial_amount").value,Et=document.getElementById("benchmark_ticker").value,Vt=document.getElementById("market_ticker").value,Bt=JSON.parse(localStorage.getItem("equity_bucket")),Ut=JSON.parse(localStorage.getItem("commodities_bucket")),Jt=JSON.parse(localStorage.getItem("t_notes_bucket")),ur=JSON.parse(localStorage.getItem("reit_bucket")),fr=JSON.parse(localStorage.getItem("crypto_bucket"));await G({start_date:ut,end_date:at,number_of_simulations:xt,initial_amount:At,benchmark_ticker:Et,market_ticker:Vt,equity_bucket:Bt,commodities_bucket:Ut,t_notes_bucket:Jt,reit_bucket:ur,crypto_bucket:fr,buckets_min_weights:[oe,te,xe,Te,Me],buckets_max_weights:[j,ge,De,Se,et]})&&Ne("/results"),He(!1)};const Zt=Ot=>parseFloat(Ot)>0?Pa.positive:parseFloat(Ot)<0?Pa.negative:"",Tt=Ot=>{e.current=!0,localStorage.setItem("selection",parseInt(Ot.index)),a(parseInt(Ot.index))},Rt=async Ot=>{const ut=await H(Ot,Ze);h(ut.tickers)};Gn.useEffect(()=>{n===""?(L(JSON.parse(localStorage.getItem(`${Ze}_list`))),l(!1)):(l(!0),Rt(n.toUpperCase()))},[n]);const Xt=Ot=>{f(Ot.target.value);const ut=document.getElementById("clear_button");Ot.target.value!==""?(ut.classList.remove(Pa.slideOut),ut.classList.add(Pa.slideIn)):(ut.classList.remove(Pa.slideIn),ut.classList.add(Pa.slideOut))},gr=()=>{f("");const Ot=document.querySelector(`.${Pa.clear_button}`);Ot.classList.contains(Pa.slideIn)&&(Ot.classList.remove(Pa.slideIn),Ot.classList.add(Pa.slideOut))},gt=async(Ot,ut)=>{let at=[],xt=JSON.parse(localStorage.getItem(`${Ze}_list`));if(d(!0),T.includes(Ot)){at=T.filter(Vt=>Vt!==Ot),delete xt[Ot];let At=JSON.parse(localStorage.getItem(`${Ze}_list_data`));delete At.volatility_data[Ot],delete At.price_data[Ot];let Et=At.table_data.SYMBOLS.indexOf(Ot);At.table_data.SYMBOLS.splice(Et,1),At.table_data.PRICE.splice(Et,1),At.table_data.CHANGE.splice(Et,1),At.table_data.PCHANGE.splice(Et,1),At.table_data.LOW.splice(Et,1),At.table_data.HIGH.splice(Et,1),localStorage.setItem(`${Ze}_list_data`,JSON.stringify(At)),localStorage.setItem(`${Ze}_list`,JSON.stringify(xt)),L(xt),v(At.table_data)}else{at=[...T,Ot],xt[Ot]=ut;let At=JSON.parse(localStorage.getItem(`${Ze}_list_data`));const Et=await mt([Ot]);At.volatility_data[Ot]=Et.volatility_data[Ot],At.price_data[Ot]=Et.price_data[Ot],At.table_data.SYMBOLS.push(Et.table_data.SYMBOLS[0]),At.table_data.PRICE.push(Et.table_data.PRICE[0]),At.table_data.CHANGE.push(Et.table_data.CHANGE[0]),At.table_data.PCHANGE.push(Et.table_data.PCHANGE[0]),At.table_data.LOW.push(Et.table_data.LOW[0]),At.table_data.HIGH.push(Et.table_data.HIGH[0]),localStorage.setItem(`${Ze}_list_data`,JSON.stringify(At)),localStorage.setItem(`${Ze}_list`,JSON.stringify(xt)),L(xt),v(At.table_data)}d(!1),c(at)},Kt=Ot=>{Ot.preventDefault();let ut=JSON.parse(localStorage.getItem(`${Ze}_bucket`)),at=p,xt=parseInt(C),At=parseInt(x);ut=[...ut,[at,At,xt]],localStorage.setItem(`${Ze}_bucket`,JSON.stringify(ut)),window.location.reload()};Gn.useEffect(()=>{if(o){z.current=0,Q.current=[0,0,0,0,0];let Ot=JSON.parse(localStorage.getItem("equity_bucket"));if(Ot&&Ot.length!==0){for(let ut=0;ut{W(z.current-oe),re(z.current-te),le(z.current-xe),Z(z.current-Te),X(z.current-Me)},[oe,te,xe,Te,Me]);var Qt=[{x:Qe,y:ht,type:"scatter"}],yr=[{x:pt,y:Ct,type:"scatter"}];return Gn.useEffect(()=>{const Ot=document.getElementById("home_chart"),ut=document.getElementById("priceChartContainer"),at=document.getElementById("volatilityChartContainer"),xt=Vt=>{Vt.stopPropagation()},At=()=>{Ot.addEventListener("wheel",xt,{passive:!1})},Et=()=>{Ot.removeEventListener("wheel",xt,{passive:!1})};return ut.addEventListener("mouseenter",At),ut.addEventListener("mouseleave",Et),at.addEventListener("mouseenter",At),at.addEventListener("mouseleave",Et),()=>{ut.removeEventListener("mouseenter",At),ut.removeEventListener("mouseleave",Et),at.removeEventListener("mouseenter",At),at.removeEventListener("mouseleave",Et)}},[]),Gn.useEffect(()=>{const Ot=()=>{if(We.current){const ut=We.current.offsetWidth;We.current.style.height=`${ut/3}px`}if(Ge.current){const ut=Ge.current.offsetWidth;Ge.current.style.height=`${ut/2}px`}};return me.current&&(me.current=!1,Ot()),window.addEventListener("resize",Ot),()=>window.removeEventListener("resize",Ot)},[]),Gn.useEffect(()=>{const Ot=()=>{if(We.current){const ut=We.current.getBoundingClientRect();je({width:ut.width-2,height:ut.height-2})}if(Ge.current){const ut=Ge.current.getBoundingClientRect();he({width:ut.width-2,height:ut.height-2})}};return Le.current&&(Le.current=!1,Ot()),window.addEventListener("resize",Ot),()=>window.removeEventListener("resize",Ot)},[]),Ir.jsxs("div",{className:Pa.home_container,children:[ze&&Ir.jsx("div",{className:Pa.popup_container,style:{zIndex:"100"},children:Ir.jsx("div",{className:Pa.loading,children:Ir.jsx("h1",{children:"Processing..."})})}),o&&Ir.jsx("div",{className:Pa.popup_container,onClick:()=>M(!1),children:Ir.jsxs("div",{className:Pa.popup,onClick:Ot=>Ot.stopPropagation(),children:[Ir.jsx("div",{className:Pa.popup_header,children:Ir.jsx("h2",{children:"Simulation Parameters"})}),Ir.jsx("span",{className:Pa.closeButton,onClick:()=>M(!1),children:"ⓧ"}),Ir.jsx("div",{className:Pa.analysis_options,children:Ir.jsxs("form",{onSubmit:Wt,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px",color:"red"},children:"Difference between Start Date and End Date must be at least 52 Days for the results to load!"}),Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Start Date : "}),Ir.jsx("input",{type:"date",id:"start_date",required:!0})]}),Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"End Date : "}),Ir.jsx("input",{type:"date",id:"end_date",required:!0})]}),Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Number of Simulations : "}),Ir.jsx("input",{type:"number",id:"number_of_simulations",max:5e3,placeholder:"5000"})]}),Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Initial Amount : "}),Ir.jsx("input",{type:"number",id:"initial_amount",placeholder:"10000"})]}),Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Benchmark Ticker : "}),Ir.jsx("select",{defaultValue:"^NSEI",id:"benchmark_ticker",required:!0,children:Ir.jsx("option",{value:"^NSEI",children:"^NSEI"})})]}),Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Market Ticker : "}),Ir.jsx("select",{defaultValue:"^NSEI",id:"market_ticker",required:!0,children:Ir.jsx("option",{value:"^NSEI",children:"^NSEI"})})]}),oe!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Equity Bucket Min Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:oe,min:Q.current[0],max:100-B,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-oe,Y(Math.max(Q.current[0],Math.min(Ot.target.value,100-B)))},required:!0})]}),oe!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Equity Bucket Max Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:j,min:oe,max:100,onChange:Ot=>{se(Ot.target.value)},required:!0})]}),te!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Commodities Bucket Min Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:te,min:Q.current[1],max:100-J,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-te,fe(Math.max(Q.current[1],Math.min(Ot.target.value,100-J)))},required:!0})]}),te!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Commodities Bucket Max Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:ge,min:te,max:100,onChange:Ot=>{be(Ot.target.value)},required:!0})]}),xe!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"US Treasury Notes Bucket Min Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:xe,min:Q.current[2],max:100-ne,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-xe,_e(Math.max(Q.current[2],Math.min(Ot.target.value,100-ne)))},required:!0})]}),xe!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"US Treasury Notes Bucket Max Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:De,min:xe,max:100,onChange:Ot=>{Fe(Ot.target.value)},required:!0})]}),Te!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"REITs Bucket Min Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:Te,min:Q.current[3],max:100-$,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-Te,Re(Math.max(Q.current[3],Math.min(Ot.target.value,100-$)))},required:!0})]}),Te!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"REITs Bucket Max Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:Se,min:Te,max:100,onChange:Ot=>{Ie(Ot.target.value)},required:!0})]}),Me!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Crypto Bucket Min Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:Me,min:Q.current[4],max:100-ie,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-Me,Ve(Math.max(Q.current[4],Math.min(Ot.target.value,100-ie)))},required:!0})]}),Me!==null&&Ir.jsxs("div",{className:Pa.analysis_options_input,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Crypto Bucket Max Weight : "}),Ir.jsx("input",{style:{width:"40px"},type:"number",value:et,min:Me,max:100,onChange:Ot=>{ot(Ot.target.value)},required:!0})]}),Ir.jsx("button",{type:"submit",className:Pa.popup_proceed,children:"Analyze"})]})})]})}),D&&Ir.jsx("div",{className:Pa.popup_container,onClick:()=>N(!1),children:Ir.jsxs("div",{className:Pa.popup,onClick:Ot=>Ot.stopPropagation(),children:[Ir.jsx("div",{className:Pa.popup_header,children:Ir.jsx("h2",{children:"Settings"})}),Ir.jsxs("div",{className:Pa.settings_options,children:[Ir.jsxs("label",{style:{fontWeight:"bold",fontSize:"14px"},children:["Period :"," "]}),Ir.jsxs("select",{value:O,onChange:Ot=>F(Ot.target.value),children:[Ir.jsx("option",{value:"5d",children:"5 Days"}),Ir.jsx("option",{value:"1mo",children:"1 Month"}),Ir.jsx("option",{value:"3mo",children:"3 Months"}),Ir.jsx("option",{value:"6mo",children:"6 Months"}),Ir.jsx("option",{value:"1y",children:"1 Year"}),Ir.jsx("option",{value:"2y",children:"2 Years"})]})]}),Ir.jsx("span",{className:Pa.closeButton,onClick:()=>N(!1),children:"ⓧ"}),Ir.jsxs("div",{className:Pa.settings_buttons,children:[O!==k&&Ir.jsx("button",{className:Pa.settings_cancel,onClick:()=>{F(k)},children:"Cancel"}),O!==k&&Ir.jsx("button",{className:Pa.popup_proceed,onClick:()=>{localStorage.setItem("period",O),localStorage.removeItem(`${Ze}_list_data`),window.location.reload()},children:"Apply"})]})]})}),E&&Ir.jsx("div",{className:Pa.popup_container,onClick:()=>A(!1),children:Ir.jsxs("div",{className:Pa.popup,onClick:Ot=>Ot.stopPropagation(),children:[Ir.jsx("div",{className:Pa.bucket_header,children:Ir.jsx("h2",{children:"Bucket"})}),Ir.jsx("span",{className:Pa.closeButton,onClick:()=>A(!1),children:"ⓧ"}),Ir.jsx("div",{className:Pa.bucket_table,children:Ir.jsxs("table",{children:[Ir.jsx("thead",{children:Ir.jsxs("tr",{children:[Ir.jsx("th",{children:Ir.jsx("center",{children:"Delete"})}),Ir.jsx("th",{children:"Element"}),Ir.jsx("th",{children:"Minimum Weight"}),Ir.jsx("th",{children:"Maximum Weight"})]})}),Ir.jsx("tbody",{children:JSON.parse(localStorage.getItem(`${Ze}_bucket`)).map((Ot,ut)=>Ir.jsxs("tr",{children:[Ir.jsx("td",{children:Ir.jsx("center",{children:Ir.jsxs("svg",{className:Pa.deleteIcon,onClick:()=>{let at=JSON.parse(localStorage.getItem(`${Ze}_bucket`));at.splice(ut,1),localStorage.setItem(`${Ze}_bucket`,JSON.stringify(at)),I(!b)},xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"14",height:"14",viewBox:"0 0 24 24",children:[" ",Ir.jsx("path",{d:"M 10.806641 2 C 10.289641 2 9.7956875 2.2043125 9.4296875 2.5703125 L 9 3 L 4 3 A 1.0001 1.0001 0 1 0 4 5 L 20 5 A 1.0001 1.0001 0 1 0 20 3 L 15 3 L 14.570312 2.5703125 C 14.205312 2.2043125 13.710359 2 13.193359 2 L 10.806641 2 z M 4.3652344 7 L 5.8925781 20.263672 C 6.0245781 21.253672 6.877 22 7.875 22 L 16.123047 22 C 17.121047 22 17.974422 21.254859 18.107422 20.255859 L 19.634766 7 L 4.3652344 7 z"})]})})}),Ir.jsx("td",{children:Ot[0][1]}),Ir.jsx("td",{children:Ot[1]}),Ir.jsx("td",{children:Ot[2]})]},ut))})]})})]})}),Ir.jsxs("div",{className:Pa.home,children:[Ir.jsx("div",{className:Pa.home_table_navbar,children:["Equity","Commodities","US Treasury Notes","REITs","Crypto"].map((Ot,ut)=>Ir.jsx("div",{className:`${Pa.home_table_navbar_item} ${t===ut?Pa.selected:""}`,onClick:()=>Tt({index:ut}),children:Ir.jsx("h2",{children:Ot})},ut))}),Ir.jsxs("div",{className:Pa.home_table_and_chart,children:[Ir.jsxs("div",{className:Pa.home_table,children:[Ir.jsxs("div",{className:Pa.home_table_search,children:[Ir.jsx("label",{children:"Search for Equity"}),Ir.jsxs("div",{className:Pa.search_div,children:[Ir.jsx("input",{type:"text",value:n,onChange:Xt,placeholder:"Yahoo Finance Ticker"}),Ir.jsx("button",{className:Pa.clear_button,id:"clear_button",onClick:gr,style:{fontSize:"16px"},children:"ⓧ"})]})]}),Ir.jsx("div",{className:Pa.table_container,children:Ir.jsxs("table",{children:[Ir.jsxs("thead",{children:[u===!1&&Ir.jsx("tr",{children:["","Symbol","Price","Change","% Change","Range"].map((Ot,ut)=>Ir.jsx("th",{children:Ot},ut))}),u===!0&&Ir.jsxs("tr",{children:[Ir.jsx("th",{children:Ir.jsx("center",{children:"Select"})}),Ir.jsx("th",{children:"Symbol"})]})]}),Ir.jsxs("tbody",{children:[u===!1&&s&&Object.entries(s).map(([Ot,ut],at)=>Ir.jsxs("tr",{children:[Ir.jsx("td",{children:Ir.jsx("center",{children:Ir.jsx("input",{type:"checkbox",disabled:i,checked:T.includes(Ot),onChange:()=>gt(Ot,ut)})})}),Ir.jsx("td",{className:Pa.table_symbol,onClick:()=>st([Ot,ut]),children:ut}),S&&Ir.jsx("td",{children:S.PRICE[at].toFixed(2)}),S&&Ir.jsx("td",{id:at.toString()+"price_column",className:Zt(S.CHANGE[at]),children:S.CHANGE[at].toFixed(2)}),S&&Ir.jsxs("td",{className:Zt(S.PCHANGE[at]),children:[S.PCHANGE[at].toFixed(2)," %"]}),S&&Ir.jsx("td",{children:Ir.jsx("div",{className:Pa.table_range,children:Ir.jsxs("div",{className:Pa.table_range_length,children:[Ir.jsx("div",{className:Pa.table_range_fill,style:{width:`${(S.PRICE[at]-S.LOW[at])/(S.HIGH[at]-S.LOW[at])*100}%`}}),Ir.jsxs("div",{className:Pa.table_range_label,children:[Ir.jsx("div",{children:S.LOW[at].toFixed(2)}),Ir.jsx("div",{children:S.HIGH[at].toFixed(2)})]})]})})})]},at)),u===!0&&g&&Object.entries(g).map(([Ot,ut],at)=>Ir.jsxs("tr",{children:[Ir.jsx("td",{children:Ir.jsx("center",{children:Ir.jsx("input",{type:"checkbox",disabled:i,checked:T.includes(Ot),onChange:()=>gt(Ot,ut)})})}),Ir.jsx("td",{className:Pa.table_symbol,onClick:()=>st([Ot,ut]),children:ut})]},at))]})]})})]}),Ir.jsxs("div",{className:Pa.home_chart,id:"home_chart",children:[p&&Ir.jsx("h2",{style:{margin:"0"},children:p[1]}),Ir.jsx("div",{className:Pa.home_chart_add_to_bucket,children:Ir.jsx("form",{onSubmit:Kt,children:Ir.jsxs("div",{className:Pa.home_chart_add_to_bucket_form,children:[Ir.jsxs("div",{className:Pa.form_input,children:[Ir.jsx("label",{children:"Minimum Weight"}),Ir.jsx("input",{type:"number",value:x,min:"0",onChange:Ot=>{w(parseInt(Math.max(x,Math.min(Ot.target.value,100-P.current))))},max:100-P.current,placeholder:"0",required:!0})]}),Ir.jsxs("div",{className:Pa.form_input,children:[Ir.jsx("label",{children:"Maximum Weight"}),Ir.jsx("input",{type:"number",value:C,min:x,onChange:Ot=>y(parseInt(Ot.target.value)),max:"100",placeholder:"100",required:!0})]}),Ir.jsx("button",{type:"submit",style:{width:"150px"},children:"Add to Bucket"})]})})}),Ir.jsx("label",{style:{fontWeight:"bold"},children:"Price Chart"}),Ir.jsx("div",{className:Pa.home_chart_price,id:"priceChartContainer",ref:Ge,children:Ir.jsx(Cc,{data:Qt.map(Ot=>({...Ot,line:{color:"#1e90ff"}})),layout:{width:Ce.width,height:Ce.height,margin:{l:40,r:0,t:0,b:20}},config:{displaylogo:!1,responsive:!0,scrollZoom:!0}})}),Ir.jsx("label",{style:{fontWeight:"bold"},children:"Volatility Chart"}),Ir.jsx("div",{className:Pa.home_chart_volatility,id:"volatilityChartContainer",ref:We,children:Ir.jsx(Cc,{data:yr.map(Ot=>({...Ot,line:{color:"#228b22"}})),layout:{width:Pe.width,height:Pe.height,margin:{l:40,r:0,t:0,b:0}},config:{displaylogo:!1,responsive:!0,scrollZoom:!0}})})]})]}),Ir.jsxs("div",{className:Pa.controller_buttons,children:[Ir.jsx("button",{className:Pa.controller_buttons_buttons,style:{width:"100px"},onClick:()=>N(!0),children:"Settings"}),Ir.jsx("button",{className:Pa.controller_buttons_buttons,style:{width:"150px"},onClick:()=>{localStorage.removeItem(`${Ze}_list`),window.location.reload()},children:"Reset Tickers List"}),Ir.jsx("button",{className:Pa.controller_buttons_buttons,style:{width:"120px"},onClick:()=>{localStorage.setItem(`${Ze}_bucket`,JSON.stringify([])),window.location.reload()},children:"Reset Bucket"}),Ir.jsx("button",{className:Pa.controller_buttons_buttons,style:{width:"120px"},onClick:()=>A(!0),children:"View Bucket"}),Ir.jsx("button",{className:Pa.controller_buttons_buttons,onClick:()=>M(!0),children:"Next"})]})]})]})},qS="_results_container_1way4_1",eM="_results_1way4_1",tM="_results_mode_selector_1way4_15",rM="_results_portfolio_value_evaluation_item_1way4_28",nM="_portfolio_value_evaluation_item_data_1way4_34",aM="_portfolio_value_eval_data_1way4_39",iM="_results_portfolio_value_chart_1way4_45",oM="_results_portfolio_value_1way4_28",sM="_split_view_1way4_59",lM="_split_view2_1way4_66",uM="_split_view_item_1way4_73",fM="_split_view_item_data_1way4_79",cM="_split_view_chart_1way4_85",hM="_split_view_data_1way4_90",vM="_split_view_chart_2_1way4_96",dM="_results_pie_chart_data_item_1way4_101",pM="_results_pie_chart_data_item_2_1way4_101",gM="_results_pie_chart_data_item2_1way4_111",yM="_results_pie_chart_1way4_101",Ya={results_container:qS,results:eM,results_mode_selector:tM,results_portfolio_value_evaluation_item:rM,portfolio_value_evaluation_item_data:nM,portfolio_value_eval_data:aM,results_portfolio_value_chart:iM,results_portfolio_value:oM,split_view:sM,split_view2:lM,split_view_item:uM,split_view_item_data:fM,split_view_chart:cM,split_view_data:hM,split_view_chart_2:vM,results_pie_chart_data_item:dM,results_pie_chart_data_item_2:pM,results_pie_chart_data_item2:gM,results_pie_chart:yM},mM=()=>{let[V,q]=Gn.useState(0),[ye,ke]=Gn.useState(["2013-10-04 22:23:00","2013-11-04 22:23:00","2013-12-04 22:23:00"]),[tt,mt]=Gn.useState([1,3,6]),[G,H]=Gn.useState([1,3,6]),[e,m]=Gn.useState([1,3,6]),[P,s]=Gn.useState({"CANBK.NS":[1,.060724837670530794],"GC=F":[.060724837670530794,1]}),[L,S]=Gn.useState([10,20,30,40]),[v,p]=Gn.useState(["Equity","Commodities","T-Notes","REIT"]),[r,t]=Gn.useState([1,2,3,-1]),a=Gn.useRef(null),n=Gn.useRef(null),f=Gn.useRef(null),u=Gn.useRef(null),l=Gn.useRef(null),g=Gn.useRef(null),h=Gn.useRef(!0),T=Gn.useRef(!0),[c,i]=Gn.useState({width:0,height:0}),[d,x]=Gn.useState({width:0,height:0}),[w,C]=Gn.useState({width:0,height:0}),[y,E]=Gn.useState({width:0,height:0}),[A,o]=Gn.useState({width:0,height:0}),[M,b]=Gn.useState({width:0,height:0});const I=Object.keys(P).map($=>P[$]),D=Object.keys(P),N=Object.keys(P).map($=>P[$].map(Z=>Z.toFixed(2))),k=_w();Gn.useEffect(()=>{localStorage.getItem(`results_${V}`)||k("/")},[k]);let O=JSON.parse(localStorage.getItem(`results_${V}`));Gn.useEffect(()=>{ke(O.date),mt(O.portfolio_value),H(O.benchmark_value),m(O.var_monte_carlo_simulated_returns),s(O.correlation_matrix),S(O.optimised_weights),p(O.tickers_list),t(O.capital_gain_per)},[V]);const F=$=>{q(parseInt($.target.value))};var z=[{x:ye,y:tt,type:"scatter",line:{color:"#1e90ff"}}],B=[{x:ye,y:tt,type:"scatter",line:{color:"#1e90ff"},name:"Portfolio"},{x:ye,y:G,type:"scatter",line:{color:"#228b22"},name:"^NSEI"}],W=[{x:e,type:"histogram",marker:{color:"#1e90ff"}}],J=[{x:D,y:D,z:I,type:"heatmap",colorscale:"Viridis",text:N,texttemplate:"%{text}",textfont:{size:"12",color:"white"}}],re=[{values:L,labels:v,type:"pie"}];const ne=$=>$>0?"green":$<0?"red":"black";var le=[{type:"treemap",labels:v,parents:Array(v.length).fill(""),values:L,text:v.map(($,Z)=>`${$}
Weight: ${L[Z].toFixed(3)}
Change: ${r[Z].toFixed(3)}%`),texttemplate:"%{text}",hovertemplate:"%{text}",marker:{colors:r.map($=>ne($))}}];return Gn.useEffect(()=>{const $=()=>{if(a.current){const Z=a.current.offsetWidth;a.current.style.height=`${Z/2.64}px`}if(n.current){const Z=n.current.offsetWidth;n.current.style.height=`${Z/1.98}px`}if(f.current){const Z=f.current.offsetWidth;f.current.style.height=`${Z/1.98}px`}if(u.current){const Z=u.current.offsetWidth;u.current.style.height=`${Z}px`}if(l.current){const Z=l.current.offsetWidth;l.current.style.height=`${Z}px`}};return T.current&&(T.current=!1,$()),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]),Gn.useEffect(()=>{const $=()=>{if(a.current){const Z=a.current.getBoundingClientRect();x({width:Z.width-2,height:Z.height-2})}if(n.current){const Z=n.current.getBoundingClientRect();C({width:Z.width-2,height:Z.height-2})}if(f.current){const Z=f.current.getBoundingClientRect();E({width:Z.width-2,height:Z.height-2})}if(u.current){const Z=u.current.getBoundingClientRect();o({width:Z.width-2,height:Z.height-2})}if(l.current){const Z=l.current.getBoundingClientRect();b({width:Z.width-2,height:Z.height-2})}if(g.current){const Z=g.current.getBoundingClientRect();i({width:Z.width-2,height:Z.height-2})}};return h.current&&(h.current=!1,$()),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]),Gn.useEffect(()=>{const $=document.getElementById("portfolioChartDiv"),Z=document.getElementById("benchmarkChartDiv"),ie=document.getElementById("monteChartDiv"),X=document.getElementById("correlationChartDiv"),Q=j=>{j.stopPropagation()},oe=()=>{window.addEventListener("wheel",Q,{passive:!1})},Y=()=>{window.removeEventListener("wheel",Q,{passive:!1})};return $.addEventListener("mouseenter",oe),$.addEventListener("mouseleave",Y),Z.addEventListener("mouseenter",oe),Z.addEventListener("mouseleave",Y),ie.addEventListener("mouseenter",oe),ie.addEventListener("mouseleave",Y),X.addEventListener("mouseenter",oe),X.addEventListener("mouseleave",Y),()=>{$.removeEventListener("mouseenter",oe),$.removeEventListener("mouseleave",Y),Z.removeEventListener("mouseenter",oe),Z.removeEventListener("mouseleave",Y),ie.removeEventListener("mouseenter",oe),ie.removeEventListener("mouseleave",Y),X.removeEventListener("mouseenter",oe),X.removeEventListener("mouseleave",Y)}},[]),Ir.jsx("div",{className:Ya.results_container,children:Ir.jsxs("div",{className:Ya.results,children:[Ir.jsx("button",{style:{margin:"20px 0px 0px 30px",width:"100px",height:"30px",border:"none",borderRadius:"3px",backgroundColor:"rgb(0, 103, 184)",color:"white",fontSize:"14px",fontWeight:"bold"},onClick:()=>k("/"),children:"Back"}),Ir.jsxs("div",{className:Ya.results_mode_selector,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Asset Allocation Strategy:"}),Ir.jsxs("label",{children:[Ir.jsx("input",{type:"radio",value:0,checked:V===0,onChange:F}),"Markowitz Mean-Variance"]}),Ir.jsxs("label",{children:[Ir.jsx("input",{type:"radio",value:1,checked:V===1,onChange:F}),"Equal Weighting"]}),Ir.jsxs("label",{children:[Ir.jsx("input",{type:"radio",value:2,checked:V===2,onChange:F}),"Risk Parity"]})]}),Ir.jsxs("div",{className:Ya.split_view2,children:[Ir.jsxs("div",{className:Ya.results_portfolio_value,children:[Ir.jsx("label",{style:{fontWeight:"bold",fontSize:"20px"},children:"Portfolio Value"}),Ir.jsx("div",{className:Ya.results_portfolio_value_chart,ref:a,id:"portfolioChartDiv",children:Ir.jsx(Cc,{data:z,layout:{width:d.width,height:d.height,margin:{l:30,r:0,t:0,b:20}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})})]}),Ir.jsx("div",{className:Ya.results_portfolio_value_data,children:Ir.jsxs("div",{className:Ya.results_pie_chart_data_item,children:[Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_capital_gain.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0",fontSize:"12px"},children:"Capital Gain (%)"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_market_gain.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0",fontSize:"12px"},children:"Market Gain (%)"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_dividend_yield.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0",fontSize:"12px"},children:"Dividend Yield (%)"})]})]})})]}),Ir.jsxs("div",{className:Ya.split_view,style:{height:"400px"},children:[Ir.jsxs("div",{className:Ya.results_pie_chart_data_item2,children:[Ir.jsx("center",{children:Ir.jsx("label",{style:{fontWeight:"bold"},children:"Asset Allocation"})}),Ir.jsx("div",{className:Ya.results_pie_chart,ref:g,id:"pieChartDiv",children:Ir.jsx(Cc,{data:re,layout:{width:c.width,height:c.height,margin:{l:30,r:10,t:10,b:30},showlegend:!1},config:{responsive:!0,displaylogo:!1}})})]}),Ir.jsxs("div",{className:Ya.split_view_item,children:[Ir.jsxs("div",{className:Ya.results_portfolio_value_evaluation_item,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Portfolio Evaluation"}),Ir.jsxs("div",{className:Ya.portfolio_value_evaluation_item_data,children:[Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.sharpe.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Sharpe Ratio"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.treynor.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Treynor Ratio"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.sortino.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Sortino Ratio"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.jenson[0].toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Jenson's Alpha"})]})]})]}),Ir.jsxs("div",{className:Ya.results_portfolio_value_evaluation_item,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Portfolio Parameters"}),Ir.jsxs("div",{className:Ya.portfolio_value_evaluation_item_data,children:[Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_portfolio_returns.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Annual Returns (%)"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.portfolio_std.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Standard Deviation"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.portfolio_beta.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Portfolio Beta"})]})]})]}),Ir.jsxs("div",{className:Ya.results_portfolio_value_evaluation_item,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Value-at-Risk (VAR)"}),Ir.jsxs("div",{className:Ya.portfolio_value_evaluation_item_data,children:[Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var.ninety_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"90% Confidence Level"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var.ninety_five_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"95% Confidence Level"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var.ninety_nine_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"99% Confidence Level"})]})]})]}),Ir.jsxs("div",{className:Ya.results_portfolio_value_evaluation_item,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Conditional Value-at-Risk (VAR)"}),Ir.jsxs("div",{className:Ya.portfolio_value_evaluation_item_data,children:[Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.cvar.ninety_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"90% Confidence Level"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.cvar.ninety_five_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"95% Confidence Level"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.cvar.ninety_nine_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"99% Confidence Level"})]})]})]})]})]}),Ir.jsxs("div",{className:Ya.split_view,children:[Ir.jsxs("div",{className:Ya.split_view_item,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Benchmark Comparison"}),Ir.jsxs("div",{className:Ya.split_view_item_data,children:[Ir.jsx("div",{className:Ya.split_view_chart,ref:n,id:"benchmarkChartDiv",children:Ir.jsx(Cc,{data:B,layout:{width:w.width,height:w.height,margin:{l:30,r:10,t:0,b:20}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})}),Ir.jsxs("div",{className:Ya.split_view_data,children:[Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_benchmark_returns.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Benchmark Returns (%)"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_tracking_error.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Tracking Error (%)"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.information_ratio.toFixed(3)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Information Ratio"})]})]})]})]}),Ir.jsxs("div",{className:Ya.split_view_item,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Value-at-Risk: Monte Carlo Method"}),Ir.jsxs("div",{className:Ya.split_view_item_data,children:[Ir.jsx("div",{className:Ya.split_view_chart,ref:f,id:"monteChartDiv",children:Ir.jsx(Cc,{data:W,layout:{width:y.width,height:y.height,bargap:.1,margin:{l:30,r:0,t:0,b:20}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})}),Ir.jsxs("div",{className:Ya.split_view_data,children:[Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var_monte_carlo.ninety_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"90% Confidence Level"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var_monte_carlo.ninety_five_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"95% Confidence Level"})]}),Ir.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Ir.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var_monte_carlo.ninety_nine_p.toFixed(2)}),Ir.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"99% Confidence Level"})]})]})]})]})]}),Ir.jsxs("div",{className:Ya.split_view,children:[Ir.jsxs("div",{className:Ya.split_view_item,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Portfolio Correlation"}),Ir.jsx("div",{className:Ya.split_view_chart_2,ref:u,id:"correlationChartDiv",children:Ir.jsx(Cc,{data:J,layout:{width:A.width,height:A.height,margin:{l:100,r:10,t:10,b:30}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})})]}),Ir.jsxs("div",{className:Ya.split_view_item,children:[Ir.jsx("label",{style:{fontWeight:"bold"},children:"Portfolio Treemap View"}),Ir.jsx("div",{className:Ya.split_view_chart_2,ref:l,children:Ir.jsx(Cc,{data:le,layout:{width:M.width,height:M.height,margin:{l:10,r:10,t:10,b:10}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})})]})]})]})})};function xM(){return Ir.jsx(Ir.Fragment,{children:Ir.jsx(QS,{children:Ir.jsx(nS,{basename:"/abd-portfolio",children:Ir.jsxs(eS,{children:[Ir.jsx(Uy,{path:"/",element:Ir.jsx($S,{})}),Ir.jsx(Uy,{path:"/results",element:Ir.jsx(mM,{})})]})})})})}jg.createRoot(document.getElementById("root")).render(Ir.jsx(mb.StrictMode,{children:Ir.jsx(xM,{})})); + `)+" "+ne[1]:ne[0]+re+" "+J.join(", ")+" "+ne[1]}H.types=e(41088);function T(J){return Array.isArray(J)}H.isArray=T;function c(J){return typeof J=="boolean"}H.isBoolean=c;function i(J){return J===null}H.isNull=i;function d(J){return J==null}H.isNullOrUndefined=d;function x(J){return typeof J=="number"}H.isNumber=x;function w(J){return typeof J=="string"}H.isString=w;function C(J){return typeof J=="symbol"}H.isSymbol=C;function y(J){return J===void 0}H.isUndefined=y;function E(J){return A(J)&&D(J)==="[object RegExp]"}H.isRegExp=E,H.types.isRegExp=E;function A(J){return typeof J=="object"&&J!==null}H.isObject=A;function o(J){return A(J)&&D(J)==="[object Date]"}H.isDate=o,H.types.isDate=o;function M(J){return A(J)&&(D(J)==="[object Error]"||J instanceof Error)}H.isError=M,H.types.isNativeError=M;function b(J){return typeof J=="function"}H.isFunction=b;function I(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}H.isPrimitive=I,H.isBuffer=e(75272);function D(J){return Object.prototype.toString.call(J)}function N(J){return J<10?"0"+J.toString(10):J.toString(10)}var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var J=new Date,re=[N(J.getHours()),N(J.getMinutes()),N(J.getSeconds())].join(":");return[J.getDate(),k[J.getMonth()],re].join(" ")}H.log=function(){console.log("%s - %s",O(),H.format.apply(H,arguments))},H.inherits=e(6768),H._extend=function(J,re){if(!re||!A(re))return J;for(var ne=Object.keys(re),le=ne.length;le--;)J[ne[le]]=re[ne[le]];return J};function F(J,re){return Object.prototype.hasOwnProperty.call(J,re)}var z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;H.promisify=function(re){if(typeof re!="function")throw new TypeError('The "original" argument must be of type Function');if(z&&re[z]){var ne=re[z];if(typeof ne!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ne,z,{value:ne,enumerable:!1,writable:!1,configurable:!0}),ne}function ne(){for(var le,$,Z=new Promise(function(Q,oe){le=Q,$=oe}),ie=[],X=0;X"u"?e.g:globalThis,t=P(),a=L("String.prototype.slice"),n=Object.getPrototypeOf,f=L("Array.prototype.indexOf",!0)||function(T,c){for(var i=0;i-1?c:c!=="Object"?!1:g(T)}return S?l(T):null}},67020:function(G,H,e){var m=e(38700),P=e(50896),s=m.instance();function L(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}L.prototype=new m.baseCalendar,P(L.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(u,l){if(typeof u=="string"){var g=u.match(v);return g?g[0]:""}var h=this._validateYear(u),T=u.month(),c=""+this.toChineseMonth(h,T);return l&&c.length<2&&(c="0"+c),this.isIntercalaryMonth(h,T)&&(c+="i"),c},monthNames:function(u){if(typeof u=="string"){var l=u.match(p);return l?l[0]:""}var g=this._validateYear(u),h=u.month(),T=this.toChineseMonth(g,h),c=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][T-1];return this.isIntercalaryMonth(g,h)&&(c="闰"+c),c},monthNamesShort:function(u){if(typeof u=="string"){var l=u.match(r);return l?l[0]:""}var g=this._validateYear(u),h=u.month(),T=this.toChineseMonth(g,h),c=["一","二","三","四","五","六","七","八","九","十","十一","十二"][T-1];return this.isIntercalaryMonth(g,h)&&(c="闰"+c),c},parseMonth:function(u,l){u=this._validateYear(u);var g=parseInt(l),h;if(isNaN(g))l[0]==="闰"&&(h=!0,l=l.substring(1)),l[l.length-1]==="月"&&(l=l.substring(0,l.length-1)),g=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(l);else{var T=l[l.length-1];h=T==="i"||T==="I"}var c=this.toMonthIndex(u,g,h);return c},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(u,l){if(u.year&&(u=u.year()),typeof u!="number"||u<1888||u>2111)throw l.replace(/\{0\}/,this.local.name);return u},toMonthIndex:function(u,l,g){var h=this.intercalaryMonth(u),T=g&&l!==h;if(T||l<1||l>12)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var c;return h?!g&&l<=h?c=l-1:c=l:c=l-1,c},toChineseMonth:function(u,l){u.year&&(u=u.year(),l=u.month());var g=this.intercalaryMonth(u),h=g?12:11;if(l<0||l>h)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var T;return g?l>13;return g},isIntercalaryMonth:function(u,l){u.year&&(u=u.year(),l=u.month());var g=this.intercalaryMonth(u);return!!g&&g===l},leapYear:function(u){return this.intercalaryMonth(u)!==0},weekOfYear:function(u,l,g){var h=this._validateYear(u,m.local.invalidyear),T=a[h-a[0]],c=T>>9&4095,i=T>>5&15,d=T&31,x;x=s.newDate(c,i,d),x.add(4-(x.dayOfWeek()||7),"d");var w=this.toJD(u,l,g)-x.toJD();return 1+Math.floor(w/7)},monthsInYear:function(u){return this.leapYear(u)?13:12},daysInMonth:function(u,l){u.year&&(l=u.month(),u=u.year()),u=this._validateYear(u);var g=t[u-t[0]],h=g>>13,T=h?12:11;if(l>T)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var c=g&1<<12-l?30:29;return c},weekDay:function(u,l,g){return(this.dayOfWeek(u,l,g)||7)<6},toJD:function(u,l,g){var h=this._validate(u,c,g,m.local.invalidDate);u=this._validateYear(h.year()),l=h.month(),g=h.day();var T=this.isIntercalaryMonth(u,l),c=this.toChineseMonth(u,l),i=f(u,c,g,T);return s.toJD(i.year,i.month,i.day)},fromJD:function(u){var l=s.fromJD(u),g=n(l.year(),l.month(),l.day()),h=this.toMonthIndex(g.year,g.month,g.isIntercalary);return this.newDate(g.year,h,g.day)},fromString:function(u){var l=u.match(S),g=this._validateYear(+l[1]),h=+l[2],T=!!l[3],c=this.toMonthIndex(g,h,T),i=+l[4];return this.newDate(g,c,i)},add:function(u,l,g){var h=u.year(),T=u.month(),c=this.isIntercalaryMonth(h,T),i=this.toChineseMonth(h,T),d=Object.getPrototypeOf(L.prototype).add.call(this,u,l,g);if(g==="y"){var x=d.year(),w=d.month(),C=this.isIntercalaryMonth(x,i),y=c&&C?this.toMonthIndex(x,i,!0):this.toMonthIndex(x,i,!1);y!==w&&d.month(y)}return d}});var S=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,v=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,r=/^闰?十?[一二三四五六七八九]?/m;m.calendars.chinese=L;var t=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],a=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function n(u,l,g,h){var T,c;if(typeof u=="object")T=u,c=l||{};else{var i=typeof u=="number"&&u>=1888&&u<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var d=typeof l=="number"&&l>=1&&l<=12;if(!d)throw new Error("Solar month outside range 1 - 12");var x=typeof g=="number"&&g>=1&&g<=31;if(!x)throw new Error("Solar day outside range 1 - 31");T={year:u,month:l,day:g},c={}}var w=a[T.year-a[0]],C=T.year<<9|T.month<<5|T.day;c.year=C>=w?T.year:T.year-1,w=a[c.year-a[0]];var y=w>>9&4095,E=w>>5&15,A=w&31,o,M=new Date(y,E-1,A),b=new Date(T.year,T.month-1,T.day);o=Math.round((b-M)/864e5);var I=t[c.year-t[0]],D;for(D=0;D<13;D++){var N=I&1<<12-D?30:29;if(o>13;return!k||D=1888&&u<=2111;if(!d)throw new Error("Lunar year outside range 1888-2111");var x=typeof l=="number"&&l>=1&&l<=12;if(!x)throw new Error("Lunar month outside range 1 - 12");var w=typeof g=="number"&&g>=1&&g<=30;if(!w)throw new Error("Lunar day outside range 1 - 30");var C;typeof h=="object"?(C=!1,c=h):(C=!!h,c={}),i={year:u,month:l,day:g,isIntercalary:C}}var y;y=i.day-1;var E=t[i.year-t[0]],A=E>>13,o;A&&(i.month>A||i.isIntercalary)?o=i.month:o=i.month-1;for(var M=0;M>9&4095,N=I>>5&15,k=I&31,O=new Date(D,N-1,k+y);return c.year=O.getFullYear(),c.month=1+O.getMonth(),c.day=O.getDate(),c}},89792:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var S=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=S.year()+(S.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(L){return this._validate(L,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),13},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(L,S){var v=this._validate(L,S,this.minDay,m.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(L,S,v){return(this.dayOfWeek(L,S,v)||7)<6},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);return L=p.year(),L<0&&L++,p.day()+(p.month()-1)*30+(L-1)*365+Math.floor(L/4)+this.jdEpoch-1},fromJD:function(L){var S=Math.floor(L)+.5-this.jdEpoch,v=Math.floor((S-Math.floor((S+366)/1461))/365)+1;v<=0&&v--,S=Math.floor(L)+.5-this.newDate(v,1,1).toJD();var p=Math.floor(S/30)+1,r=S-(p-1)*30+1;return this.newDate(v,p,r)}}),m.calendars.coptic=s},55668:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(S){return this._validate(S,this.minMonth,this.minDay,m.local.invalidYear),!1},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,m.local.invalidYear),13},daysInYear:function(S){return this._validate(S,this.minMonth,this.minDay,m.local.invalidYear),400},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/8)+1},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);return(r.day()+1)%8},weekDay:function(S,v,p){var r=this.dayOfWeek(S,v,p);return r>=2&&r<=6},extraInfo:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);return{century:L[Math.floor((r.year()-1)/100)+1]||""}},toJD:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);return S=r.year()+(r.year()<0?1:0),v=r.month(),p=r.day(),p+(v>1?16:0)+(v>2?(v-2)*32:0)+(S-1)*400+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S+.5)-Math.floor(this.jdEpoch)-1;var v=Math.floor(S/400)+1;S-=(v-1)*400,S+=S>15?16:0;var p=Math.floor(S/32)+1,r=S-(p-1)*32+1;return this.newDate(v<=0?v-1:v,p,r)}});var L={20:"Fruitbat",21:"Anchovy"};m.calendars.discworld=s},65168:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var S=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=S.year()+(S.year()<0?1:0);return v%4===3||v%4===-1},monthsInYear:function(L){return this._validate(L,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),13},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(L,S){var v=this._validate(L,S,this.minDay,m.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===13&&this.leapYear(v.year())?1:0)},weekDay:function(L,S,v){return(this.dayOfWeek(L,S,v)||7)<6},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);return L=p.year(),L<0&&L++,p.day()+(p.month()-1)*30+(L-1)*365+Math.floor(L/4)+this.jdEpoch-1},fromJD:function(L){var S=Math.floor(L)+.5-this.jdEpoch,v=Math.floor((S-Math.floor((S+366)/1461))/365)+1;v<=0&&v--,S=Math.floor(L)+.5-this.newDate(v,1,1).toJD();var p=Math.floor(S/30)+1,r=S-(p-1)*30+1;return this.newDate(v,p,r)}}),m.calendars.ethiopian=s},2084:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear);return this._leapYear(v.year())},_leapYear:function(S){return S=S<0?S+1:S,L(S*7+1,19)<7},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,m.local.invalidYear),this._leapYear(S.year?S.year():S)?13:12},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear);return S=v.year(),this.toJD(S===-1?1:S+1,7,1)-this.toJD(S,7,1)},daysInMonth:function(S,v){return S.year&&(v=S.month(),S=S.year()),this._validate(S,v,this.minDay,m.local.invalidMonth),v===12&&this.leapYear(S)||v===8&&L(this.daysInYear(S),10)===5?30:v===9&&L(this.daysInYear(S),10)===3?29:this.daysPerMonth[v-1]},weekDay:function(S,v,p){return this.dayOfWeek(S,v,p)!==6},extraInfo:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);return{yearType:(this.leapYear(r)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(r)%10-3]}},toJD:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);S=r.year(),v=r.month(),p=r.day();var t=S<=0?S+1:S,a=this.jdEpoch+this._delay1(t)+this._delay2(t)+p+1;if(v<7){for(var n=7;n<=this.monthsInYear(S);n++)a+=this.daysInMonth(S,n);for(var n=1;n=this.toJD(v===-1?1:v+1,7,1);)v++;for(var p=Sthis.toJD(v,p,this.daysInMonth(v,p));)p++;var r=S-this.toJD(v,p,1)+1;return this.newDate(v,p,r)}});function L(S,v){return S-v*Math.floor(S/v)}m.calendars.hebrew=s},26368:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(L){var S=this._validate(L,this.minMonth,this.minDay,m.local.invalidYear);return(S.year()*11+14)%30<11},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(L){return this.leapYear(L)?355:354},daysInMonth:function(L,S){var v=this._validate(L,S,this.minDay,m.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===12&&this.leapYear(v.year())?1:0)},weekDay:function(L,S,v){return this.dayOfWeek(L,S,v)!==5},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);return L=p.year(),S=p.month(),v=p.day(),L=L<=0?L+1:L,v+Math.ceil(29.5*(S-1))+(L-1)*354+Math.floor((3+11*L)/30)+this.jdEpoch-1},fromJD:function(L){L=Math.floor(L)+.5;var S=Math.floor((30*(L-this.jdEpoch)+10646)/10631);S=S<=0?S-1:S;var v=Math.min(12,Math.ceil((L-29-this.toJD(S,1,1))/29.5)+1),p=L-this.toJD(S,v,1)+1;return this.newDate(S,v,p)}}),m.calendars.islamic=s},24747:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var S=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=S.year()<0?S.year()+1:S.year();return v%4===0},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(L,S){var v=this._validate(L,S,this.minDay,m.local.invalidMonth);return this.daysPerMonth[v.month()-1]+(v.month()===2&&this.leapYear(v.year())?1:0)},weekDay:function(L,S,v){return(this.dayOfWeek(L,S,v)||7)<6},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);return L=p.year(),S=p.month(),v=p.day(),L<0&&L++,S<=2&&(L--,S+=12),Math.floor(365.25*(L+4716))+Math.floor(30.6001*(S+1))+v-1524.5},fromJD:function(L){var S=Math.floor(L+.5),v=S+1524,p=Math.floor((v-122.1)/365.25),r=Math.floor(365.25*p),t=Math.floor((v-r)/30.6001),a=t-Math.floor(t<14?1:13),n=p-Math.floor(a>2?4716:4715),f=v-r-Math.floor(30.6001*t);return n<=0&&n--,this.newDate(n,a,f)}}),m.calendars.julian=s},65616:function(G,H,e){var m=e(38700),P=e(50896);function s(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(v){return this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),!1},formatYear:function(v){var p=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear);v=p.year();var r=Math.floor(v/400);v=v%400,v+=v<0?400:0;var t=Math.floor(v/20);return r+"."+t+"."+v%20},forYear:function(v){if(v=v.split("."),v.length<3)throw"Invalid Mayan year";for(var p=0,r=0;r19||r>0&&t<0)throw"Invalid Mayan year";p=p*20+t}return p},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),18},weekOfYear:function(v,p,r){return this._validate(v,p,r,m.local.invalidDate),0},daysInYear:function(v){return this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),360},daysInMonth:function(v,p){return this._validate(v,p,this.minDay,m.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(v,p,r){var t=this._validate(v,p,r,m.local.invalidDate);return t.day()},weekDay:function(v,p,r){return this._validate(v,p,r,m.local.invalidDate),!0},extraInfo:function(v,p,r){var t=this._validate(v,p,r,m.local.invalidDate),a=t.toJD(),n=this._toHaab(a),f=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[n[0]-1],haabMonth:n[0],haabDay:n[1],tzolkinDayName:this.local.tzolkinMonths[f[0]-1],tzolkinDay:f[0],tzolkinTrecena:f[1]}},_toHaab:function(v){v-=this.jdEpoch;var p=L(v+8+17*20,365);return[Math.floor(p/20)+1,L(p,20)]},_toTzolkin:function(v){return v-=this.jdEpoch,[S(v+20,20),S(v+4,13)]},toJD:function(v,p,r){var t=this._validate(v,p,r,m.local.invalidDate);return t.day()+t.month()*20+t.year()*360+this.jdEpoch},fromJD:function(v){v=Math.floor(v)+.5-this.jdEpoch;var p=Math.floor(v/360);v=v%360,v+=v<0?360:0;var r=Math.floor(v/20),t=v%20;return this.newDate(p,r,t)}});function L(v,p){return v-p*Math.floor(v/p)}function S(v,p){return L(v-1,p)+1}m.calendars.mayan=s},30632:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar;var L=m.instance("gregorian");P(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return L.leapYear(v.year()+(v.year()<1?1:0)+1469)},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(1-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(S,v,p){return(this.dayOfWeek(S,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,m.local.invalidMonth),t=r.year();t<0&&t++;for(var a=r.day(),n=1;n=this.toJD(v+1,1,1);)v++;for(var p=S-Math.floor(this.toJD(v,1,1)+.5)+1,r=1;p>this.daysInMonth(v,r);)p-=this.daysInMonth(v,r),r++;return this.newDate(v,r,p)}}),m.calendars.nanakshahi=s},73040:function(G,H,e){var m=e(38700),P=e(50896);function s(L){this.local=this.regionalOptions[L||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(L){return this.daysInYear(L)!==this.daysPerYear},weekOfYear:function(L,S,v){var p=this.newDate(L,S,v);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(L){var S=this._validate(L,this.minMonth,this.minDay,m.local.invalidYear);if(L=S.year(),typeof this.NEPALI_CALENDAR_DATA[L]>"u")return this.daysPerYear;for(var v=0,p=this.minMonth;p<=12;p++)v+=this.NEPALI_CALENDAR_DATA[L][p];return v},daysInMonth:function(L,S){return L.year&&(S=L.month(),L=L.year()),this._validate(L,S,this.minDay,m.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[L]>"u"?this.daysPerMonth[S-1]:this.NEPALI_CALENDAR_DATA[L][S]},weekDay:function(L,S,v){return this.dayOfWeek(L,S,v)!==6},toJD:function(L,S,v){var p=this._validate(L,S,v,m.local.invalidDate);L=p.year(),S=p.month(),v=p.day();var r=m.instance(),t=0,a=S,n=L;this._createMissingCalendarData(L);var f=L-(a>9||a===9&&v>=this.NEPALI_CALENDAR_DATA[n][0]?56:57);for(S!==9&&(t=v,a--);a!==9;)a<=0&&(a=12,n--),t+=this.NEPALI_CALENDAR_DATA[n][a],a--;return S===9?(t+=v-this.NEPALI_CALENDAR_DATA[n][0],t<0&&(t+=r.daysInYear(f))):t+=this.NEPALI_CALENDAR_DATA[n][9]-this.NEPALI_CALENDAR_DATA[n][0],r.newDate(f,1,1).add(t,"d").toJD()},fromJD:function(L){var S=m.instance(),v=S.fromJD(L),p=v.year(),r=v.dayOfYear(),t=p+56;this._createMissingCalendarData(t);for(var a=9,n=this.NEPALI_CALENDAR_DATA[t][0],f=this.NEPALI_CALENDAR_DATA[t][a]-n+1;r>f;)a++,a>12&&(a=1,t++),f+=this.NEPALI_CALENDAR_DATA[t][a];var u=this.NEPALI_CALENDAR_DATA[t][a]-(f-r);return this.newDate(t,a,u)},_createMissingCalendarData:function(L){var S=this.daysPerMonth.slice(0);S.unshift(17);for(var v=L-1;v"u"&&(this.NEPALI_CALENDAR_DATA[v]=S)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),m.calendars.nepali=s},1104:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear);return((v.year()-(v.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(-((r.dayOfWeek()+1)%7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(S,v,p){return this.dayOfWeek(S,v,p)!==5},toJD:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate);S=r.year(),v=r.month(),p=r.day();var t=S-(S>=0?474:473),a=474+L(t,2820);return p+(v<=7?(v-1)*31:(v-1)*30+6)+Math.floor((a*682-110)/2816)+(a-1)*365+Math.floor(t/2820)*1029983+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S)+.5;var v=S-this.toJD(475,1,1),p=Math.floor(v/1029983),r=L(v,1029983),t=2820;if(r!==1029982){var a=Math.floor(r/366),n=L(r,366);t=Math.floor((2134*a+2816*n+2815)/1028522)+a+1}var f=t+2820*p+474;f=f<=0?f-1:f;var u=S-this.toJD(f,1,1)+1,l=u<=186?Math.ceil(u/31):Math.ceil((u-6)/30),g=S-this.toJD(f,l,1)+1;return this.newDate(f,l,g)}});function L(S,v){return S-v*Math.floor(S/v)}m.calendars.persian=s,m.calendars.jalali=s},51456:function(G,H,e){var m=e(38700),P=e(50896),s=m.instance();function L(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}L.prototype=new m.baseCalendar,P(L.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(p){var v=this._validate(p,this.minMonth,this.minDay,m.local.invalidYear),p=this._t2gYear(v.year());return s.leapYear(p)},weekOfYear:function(t,v,p){var r=this._validate(t,this.minMonth,this.minDay,m.local.invalidYear),t=this._t2gYear(r.year());return s.weekOfYear(t,r.month(),r.day())},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(S,v,p){return(this.dayOfWeek(S,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,m.local.invalidDate),t=this._t2gYear(r.year());return s.toJD(t,r.month(),r.day())},fromJD:function(S){var v=s.fromJD(S),p=this._g2tYear(v.year());return this.newDate(p,v.month(),v.day())},_t2gYear:function(S){return S+this.yearsOffset+(S>=-this.yearsOffset&&S<=-1?1:0)},_g2tYear:function(S){return S-this.yearsOffset-(S>=1&&S<=this.yearsOffset?1:0)}}),m.calendars.taiwan=L},4592:function(G,H,e){var m=e(38700),P=e(50896),s=m.instance();function L(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}L.prototype=new m.baseCalendar,P(L.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(p){var v=this._validate(p,this.minMonth,this.minDay,m.local.invalidYear),p=this._t2gYear(v.year());return s.leapYear(p)},weekOfYear:function(t,v,p){var r=this._validate(t,this.minMonth,this.minDay,m.local.invalidYear),t=this._t2gYear(r.year());return s.weekOfYear(t,r.month(),r.day())},daysInMonth:function(S,v){var p=this._validate(S,v,this.minDay,m.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(S,v,p){return(this.dayOfWeek(S,v,p)||7)<6},toJD:function(t,v,p){var r=this._validate(t,v,p,m.local.invalidDate),t=this._t2gYear(r.year());return s.toJD(t,r.month(),r.day())},fromJD:function(S){var v=s.fromJD(S),p=this._g2tYear(v.year());return this.newDate(p,v.month(),v.day())},_t2gYear:function(S){return S-this.yearsOffset-(S>=1&&S<=this.yearsOffset?1:0)},_g2tYear:function(S){return S+this.yearsOffset+(S>=-this.yearsOffset&&S<=-1?1:0)}}),m.calendars.thai=L},45348:function(G,H,e){var m=e(38700),P=e(50896);function s(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}s.prototype=new m.baseCalendar,P(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(S){var v=this._validate(S,this.minMonth,this.minDay,m.local.invalidYear);return this.daysInYear(v.year())===355},weekOfYear:function(S,v,p){var r=this.newDate(S,v,p);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(S){for(var v=0,p=1;p<=12;p++)v+=this.daysInMonth(S,p);return v},daysInMonth:function(S,v){for(var p=this._validate(S,v,this.minDay,m.local.invalidMonth),r=p.toJD()-24e5+.5,t=0,a=0;ar)return L[t]-L[t-1];t++}return 30},weekDay:function(S,v,p){return this.dayOfWeek(S,v,p)!==5},toJD:function(S,v,p){var r=this._validate(S,v,p,m.local.invalidDate),t=12*(r.year()-1)+r.month()-15292,a=r.day()+L[t-1]-1;return a+24e5-.5},fromJD:function(S){for(var v=S-24e5+.5,p=0,r=0;rv);r++)p++;var t=p+15292,a=Math.floor((t-1)/12),n=a+1,f=t-12*a,u=v-L[p-1]+1;return this.newDate(n,f,u)},isValid:function(S,v,p){var r=m.baseCalendar.prototype.isValid.apply(this,arguments);return r&&(S=S.year!=null?S.year:S,r=S>=1276&&S<=1500),r},_validate:function(S,v,p,r){var t=m.baseCalendar.prototype._validate.apply(this,arguments);if(t.year<1276||t.year>1500)throw r.replace(/\{0\}/,this.local.name);return t}}),m.calendars.ummalqura=s;var L=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(G,H,e){var m=e(50896);function P(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}m(P.prototype,{instance:function(r,t){r=(r||"gregorian").toLowerCase(),t=t||"";var a=this._localCals[r+"-"+t];if(!a&&this.calendars[r]&&(a=new this.calendars[r](t),this._localCals[r+"-"+t]=a),!a)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,r);return a},newDate:function(r,t,a,n,f){return n=(r!=null&&r.year?r.calendar():typeof n=="string"?this.instance(n,f):n)||this.instance(),n.newDate(r,t,a)},substituteDigits:function(r){return function(t){return(t+"").replace(/[0-9]/g,function(a){return r[a]})}},substituteChineseDigits:function(r,t){return function(a){for(var n="",f=0;a>0;){var u=a%10;n=(u===0?"":r[u]+t[f])+n,f++,a=Math.floor(a/10)}return n.indexOf(r[1]+t[1])===0&&(n=n.substr(1)),n||r[0]}}});function s(r,t,a,n){if(this._calendar=r,this._year=t,this._month=a,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function L(r,t){return r=""+r,"000000".substring(0,t-r.length)+r}m(s.prototype,{newDate:function(r,t,a){return this._calendar.newDate(r??this,t,a)},year:function(r){return arguments.length===0?this._year:this.set(r,"y")},month:function(r){return arguments.length===0?this._month:this.set(r,"m")},day:function(r){return arguments.length===0?this._day:this.set(r,"d")},date:function(r,t,a){if(!this._calendar.isValid(r,t,a))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=r,this._month=t,this._day=a,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(r,t){return this._calendar.add(this,r,t)},set:function(r,t){return this._calendar.set(this,r,t)},compareTo:function(r){if(this._calendar.name!==r._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,r._calendar.local.name);var t=this._year!==r._year?this._year-r._year:this._month!==r._month?this.monthOfYear()-r.monthOfYear():this._day-r._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(r){return this._calendar.fromJD(r)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(r){return this._calendar.fromJSDate(r)},toString:function(){return(this.year()<0?"-":"")+L(Math.abs(this.year()),4)+"-"+L(this.month(),2)+"-"+L(this.day(),2)}});function S(){this.shortYearCutoff="+10"}m(S.prototype,{_validateLevel:0,newDate:function(r,t,a){return r==null?this.today():(r.year&&(this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),a=r.day(),t=r.month(),r=r.year()),new s(this,r,t,a))},today:function(){return this.fromJSDate(new Date)},epoch:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+L(Math.abs(t.year()),4)},monthsInYear:function(r){return this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(r,t){var a=this._validate(r,t,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(a.month()+this.monthsInYear(a)-this.firstMonth)%this.monthsInYear(a)+this.minMonth},fromMonthOfYear:function(r,t){var a=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(r)+this.minMonth;return this._validate(r,a,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),a},daysInYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(r,t,a){return this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(r,t,a){return this._validate(r,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(r,this._add(r,t,a),t,a)},_add:function(r,t,a){if(this._validateLevel++,a==="d"||a==="w"){var n=r.toJD()+t*(a==="w"?this.daysInWeek():1),f=r.calendar().fromJD(n);return this._validateLevel--,[f.year(),f.month(),f.day()]}try{var u=r.year()+(a==="y"?t:0),l=r.monthOfYear()+(a==="m"?t:0),f=r.day(),g=function(c){for(;li-1+c.minMonth;)u++,l-=i,i=c.monthsInYear(u)};a==="y"?(r.month()!==this.fromMonthOfYear(u,l)&&(l=this.newDate(u,r.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(u)),f=Math.min(f,this.daysInMonth(u,this.fromMonthOfYear(u,l)))):a==="m"&&(g(this),f=Math.min(f,this.daysInMonth(u,this.fromMonthOfYear(u,l))));var h=[u,this.fromMonthOfYear(u,l),f];return this._validateLevel--,h}catch(T){throw this._validateLevel--,T}},_correctAdd:function(r,t,a,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||r.year()>0!=t[0]>0)){var f={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],u=a<0?-1:1;t=this._add(r,a*f[0]+u*f[1],f[2])}return r.date(t[0],t[1],t[2])},set:function(r,t,a){this._validate(r,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var n=a==="y"?t:r.year(),f=a==="m"?t:r.month(),u=a==="d"?t:r.day();return(a==="y"||a==="m")&&(u=Math.min(u,this.daysInMonth(n,f))),r.date(n,f,u)},isValid:function(r,t,a){this._validateLevel++;var n=this.hasYearZero||r!==0;if(n){var f=this.newDate(r,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&a-this.minDay13.5?13:1),T=f-(h>2.5?4716:4715);return T<=0&&T--,this.newDate(T,h,g)},toJSDate:function(r,t,a){var n=this._validate(r,t,a,p.local.invalidDate||p.regionalOptions[""].invalidDate),f=new Date(n.year(),n.month()-1,n.day());return f.setHours(0),f.setMinutes(0),f.setSeconds(0),f.setMilliseconds(0),f.setHours(f.getHours()>12?f.getHours()+2:0),f},fromJSDate:function(r){return this.newDate(r.getFullYear(),r.getMonth()+1,r.getDate())}});var p=G.exports=new P;p.cdate=s,p.baseCalendar=S,p.calendars.gregorian=v},15168:function(G,H,e){var m=e(50896),P=e(38700);m(P.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),P.local=P.regionalOptions[""],m(P.cdate.prototype,{formatDate:function(s,L){return typeof s!="string"&&(L=s,s=""),this._calendar.formatDate(s||"",this,L)}}),m(P.baseCalendar.prototype,{UNIX_EPOCH:P.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:P.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,L,S){if(typeof s!="string"&&(S=L,L=s,s=""),!L)return"";if(L.calendar()!==this)throw P.local.invalidFormat||P.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat,S=S||{};var v=S.dayNamesShort||this.local.dayNamesShort,p=S.dayNames||this.local.dayNames,r=S.monthNumbers||this.local.monthNumbers,t=S.monthNamesShort||this.local.monthNamesShort,a=S.monthNames||this.local.monthNames;S.calculateWeek||this.local.calculateWeek;for(var n=function(w,C){for(var y=1;x+y1},f=function(w,C,y,E){var A=""+C;if(n(w,E))for(;A.length1},x=function(D,N){var k=d(D,N),O=[2,3,k?4:2,k?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],F=new RegExp("^-?\\d{1,"+O+"}"),z=L.substring(o).match(F);if(!z)throw(P.local.missingNumberAt||P.regionalOptions[""].missingNumberAt).replace(/\{0\}/,o);return o+=z[0].length,parseInt(z[0],10)},w=this,C=function(){if(typeof a=="function"){d("m");var D=a.call(w,L.substring(o));return o+=D.length,D}return x("m")},y=function(D,N,k,O){for(var F=d(D,O)?k:N,z=0;z-1){g=1,h=T;for(var I=this.daysInMonth(l,g);h>I;I=this.daysInMonth(l,g))g++,h-=I}return u>-1?this.fromJD(u):this.newDate(l,g,h)},determineDate:function(s,L,S,v,p){S&&typeof S!="object"&&(p=v,v=S,S=null),typeof v!="string"&&(p=v,v="");var r=this,t=function(a){try{return r.parseDate(v,a,p)}catch{}a=a.toLowerCase();for(var n=(a.match(/^c/)&&S?S.newDate():null)||r.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,u=f.exec(a);u;)n.add(parseInt(u[1],10),u[2]||"d"),u=f.exec(a);return n};return L=L?L.newDate():null,s=s==null?L:typeof s=="string"?t(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?L:r.today().add(s,"d"):r.newDate(s),s}})},21576:function(){},19768:function(){},63436:function(G,H,e){var m=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],P=typeof globalThis>"u"?e.g:globalThis;G.exports=function(){for(var L=[],S=0;S>8&15|Re>>4&240,Re>>4&15|Re&240,(Re&15)<<4|Re&15,1):Se===8?C(Re>>24&255,Re>>16&255,Re>>8&255,(Re&255)/255):Se===4?C(Re>>12&15|Re>>8&240,Re>>8&15|Re>>4&240,Re>>4&15|Re&240,((Re&15)<<4|Re&15)/255):null):(Re=a.exec(Te))?new A(Re[1],Re[2],Re[3],1):(Re=n.exec(Te))?new A(Re[1]*255/100,Re[2]*255/100,Re[3]*255/100,1):(Re=f.exec(Te))?C(Re[1],Re[2],Re[3],Re[4]):(Re=u.exec(Te))?C(Re[1]*255/100,Re[2]*255/100,Re[3]*255/100,Re[4]):(Re=l.exec(Te))?k(Re[1],Re[2]/100,Re[3]/100,1):(Re=g.exec(Te))?k(Re[1],Re[2]/100,Re[3]/100,Re[4]):h.hasOwnProperty(Te)?w(h[Te]):Te==="transparent"?new A(NaN,NaN,NaN,0):null}function w(Te){return new A(Te>>16&255,Te>>8&255,Te&255,1)}function C(Te,Re,Se,Ie){return Ie<=0&&(Te=Re=Se=NaN),new A(Te,Re,Se,Ie)}function y(Te){return Te instanceof s||(Te=x(Te)),Te?(Te=Te.rgb(),new A(Te.r,Te.g,Te.b,Te.opacity)):new A}function E(Te,Re,Se,Ie){return arguments.length===1?y(Te):new A(Te,Re,Se,Ie??1)}function A(Te,Re,Se,Ie){this.r=+Te,this.g=+Re,this.b=+Se,this.opacity=+Ie}m(A,E,P(s,{brighter:function(Re){return Re=Re==null?S:Math.pow(S,Re),new A(this.r*Re,this.g*Re,this.b*Re,this.opacity)},darker:function(Re){return Re=Re==null?L:Math.pow(L,Re),new A(this.r*Re,this.g*Re,this.b*Re,this.opacity)},rgb:function(){return this},clamp:function(){return new A(D(this.r),D(this.g),D(this.b),I(this.opacity))},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:o,formatHex:o,formatHex8:M,formatRgb:b,toString:b}));function o(){return"#".concat(N(this.r)).concat(N(this.g)).concat(N(this.b))}function M(){return"#".concat(N(this.r)).concat(N(this.g)).concat(N(this.b)).concat(N((isNaN(this.opacity)?1:this.opacity)*255))}function b(){var Te=I(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat(D(this.r),", ").concat(D(this.g),", ").concat(D(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function I(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function D(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function N(Te){return Te=D(Te),(Te<16?"0":"")+Te.toString(16)}function k(Te,Re,Se,Ie){return Ie<=0?Te=Re=Se=NaN:Se<=0||Se>=1?Te=Re=NaN:Re<=0&&(Te=NaN),new z(Te,Re,Se,Ie)}function O(Te){if(Te instanceof z)return new z(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof s||(Te=x(Te)),!Te)return new z;if(Te instanceof z)return Te;Te=Te.rgb();var Re=Te.r/255,Se=Te.g/255,Ie=Te.b/255,Me=Math.min(Re,Se,Ie),Ve=Math.max(Re,Se,Ie),et=NaN,ot=Ve-Me,Qe=(Ve+Me)/2;return ot?(Re===Ve?et=(Se-Ie)/ot+(Se0&&Qe<1?0:et,new z(et,ot,Qe,Te.opacity)}function F(Te,Re,Se,Ie){return arguments.length===1?O(Te):new z(Te,Re,Se,Ie??1)}function z(Te,Re,Se,Ie){this.h=+Te,this.s=+Re,this.l=+Se,this.opacity=+Ie}m(z,F,P(s,{brighter:function(Re){return Re=Re==null?S:Math.pow(S,Re),new z(this.h,this.s,this.l*Re,this.opacity)},darker:function(Re){return Re=Re==null?L:Math.pow(L,Re),new z(this.h,this.s,this.l*Re,this.opacity)},rgb:function(){var Re=this.h%360+(this.h<0)*360,Se=isNaN(Re)||isNaN(this.s)?0:this.s,Ie=this.l,Me=Ie+(Ie<.5?Ie:1-Ie)*Se,Ve=2*Ie-Me;return new A(J(Re>=240?Re-240:Re+120,Ve,Me),J(Re,Ve,Me),J(Re<120?Re+240:Re-120,Ve,Me),this.opacity)},clamp:function(){return new z(B(this.h),W(this.s),W(this.l),I(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 Re=I(this.opacity);return"".concat(Re===1?"hsl(":"hsla(").concat(B(this.h),", ").concat(W(this.s)*100,"%, ").concat(W(this.l)*100,"%").concat(Re===1?")":", ".concat(Re,")"))}}));function B(Te){return Te=(Te||0)%360,Te<0?Te+360:Te}function W(Te){return Math.max(0,Math.min(1,Te||0))}function J(Te,Re,Se){return(Te<60?Re+(Se-Re)*Te/60:Te<180?Se:Te<240?Re+(Se-Re)*(240-Te)/60:Re)*255}var re=function(Te){return function(){return Te}};function ne(Te,Re){return function(Se){return Te+Se*Re}}function le(Te,Re,Se){return Te=Math.pow(Te,Se),Re=Math.pow(Re,Se)-Te,Se=1/Se,function(Ie){return Math.pow(Te+Ie*Re,Se)}}function $(Te){return(Te=+Te)==1?Z:function(Re,Se){return Se-Re?le(Re,Se,Te):re(isNaN(Re)?Se:Re)}}function Z(Te,Re){var Se=Re-Te;return Se?ne(Te,Se):re(isNaN(Te)?Re:Te)}var ie=function Te(Re){var Se=$(Re);function Ie(Me,Ve){var et=Se((Me=E(Me)).r,(Ve=E(Ve)).r),ot=Se(Me.g,Ve.g),Qe=Se(Me.b,Ve.b),$e=Z(Me.opacity,Ve.opacity);return function(ht){return Me.r=et(ht),Me.g=ot(ht),Me.b=Qe(ht),Me.opacity=$e(ht),Me+""}}return Ie.gamma=Te,Ie}(1);function X(Te,Re){var Se=Re?Re.length:0,Ie=Te?Math.min(Se,Te.length):0,Me=new Array(Ie),Ve=new Array(Se),et;for(et=0;etSe&&(Ve=Re.slice(Se,Ve),ot[et]?ot[et]+=Ve:ot[++et]=Ve),(Ie=Ie[0])===(Me=Me[0])?ot[et]?ot[et]+=Me:ot[++et]=Me:(ot[++et]=null,Qe.push({i:et,x:oe(Ie,Me)})),Se=te.lastIndex;return Se{const q="https://abd-portfolio.azurewebsites.net/api";let P={get_tickers_equity:async()=>await(await fetch(`${q}/tickers_equity/`)).json(),get_tickers_commodities:async()=>await(await fetch(`${q}/tickers_commodities/`)).json(),get_tickers_crypto:async()=>await(await fetch(`${q}/tickers_crypto/`)).json(),get_tickers_t_notes:async()=>await(await fetch(`${q}/tickers_t_notes/`)).json(),get_tickers_reit:async()=>await(await fetch(`${q}/tickers_reit/`)).json(),get_tickers_data:async s=>{let L=localStorage.getItem("period");return L===null&&(L="1y"),await(await fetch(`${q}/tickers_data/?tickers=${s.map(p=>encodeURIComponent(p)).join(",")}&period=${L}`)).json()},analyze_data:async s=>{const L=await fetch(`${q}/data_analysis/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(L.status===200){const S=await L.json();return localStorage.setItem("results_0",JSON.stringify(S.results_0)),localStorage.setItem("results_1",JSON.stringify(S.results_1)),localStorage.setItem("results_2",JSON.stringify(S.results_2)),!0}else return!1},search_tickers:async(s,L)=>await(await fetch(`${q}/search_${L}/?search=${s}`)).json()};return Pr.jsx(Bw.Provider,{value:P,children:V})},$S=()=>{let{get_tickers_equity:V,get_tickers_commodities:q,get_tickers_reit:ye,get_tickers_t_notes:ke,get_tickers_crypto:tt,get_tickers_data:mt,analyze_data:G,search_tickers:H}=Gn.useContext(Bw),e=Gn.useRef(!0),m=Gn.useRef(!0),P=Gn.useRef(0),[s,L]=Gn.useState({}),[S,v]=Gn.useState(null),[p,r]=Gn.useState(null);localStorage.getItem("selection")||localStorage.setItem("selection",0);let[t,a]=Gn.useState(parseInt(localStorage.getItem("selection"))),[n,f]=Gn.useState(""),[u,l]=Gn.useState(!1),[g,h]=Gn.useState({}),[T,c]=Gn.useState([]),[i,d]=Gn.useState(!1),[x,w]=Gn.useState(0),[C,y]=Gn.useState(100),[E,A]=Gn.useState(!1),[o,M]=Gn.useState(!1),[b,I]=Gn.useState(!1),[D,N]=Gn.useState(!1),k=localStorage.getItem("period")?localStorage.getItem("period"):"1y",[O,F]=Gn.useState(k),z=Gn.useRef(0),[B,W]=Gn.useState(0),[J,re]=Gn.useState(0),[ne,le]=Gn.useState(0),[$,Z]=Gn.useState(0),[ie,X]=Gn.useState(0),Q=Gn.useRef([0,0,0,0,0]),[oe,Y]=Gn.useState(null),[j,se]=Gn.useState(100),[te,fe]=Gn.useState(null),[ge,be]=Gn.useState(100),[xe,_e]=Gn.useState(null),[De,Fe]=Gn.useState(100),[Te,Re]=Gn.useState(null),[Se,Ie]=Gn.useState(100),[Me,Ve]=Gn.useState(null),[et,ot]=Gn.useState(100),[Qe,$e]=Gn.useState(["2013-10-04 22:23:00","2013-11-04 22:23:00","2013-12-04 22:23:00"]),[ht,vt]=Gn.useState([1,3,6]),[pt,wt]=Gn.useState(["2013-10-04 22:23:00","2013-11-04 22:23:00","2013-12-04 22:23:00"]),[Ct,rt]=Gn.useState([1,3,6]),[ze,He]=Gn.useState(!1),We=Gn.useRef(null),Ge=Gn.useRef(null),Le=Gn.useRef(!0),[Pe,je]=Gn.useState({width:0,height:0}),[Ce,he]=Gn.useState({width:0,height:0}),me=Gn.useRef(!0);const Ne=_w();var Ze="equity";switch(t){case 0:Ze="equity";break;case 1:Ze="commodities";break;case 2:Ze="t_notes";break;case 3:Ze="reit";break;default:Ze="crypto"}Gn.useEffect(()=>{F(k)},[k]),Gn.useEffect(()=>{m.current&&(m.current=!1,localStorage.getItem("equity_bucket")||localStorage.setItem("equity_bucket",JSON.stringify([])),localStorage.getItem("commodities_bucket")||localStorage.setItem("commodities_bucket",JSON.stringify([])),localStorage.getItem("t_notes_bucket")||localStorage.setItem("t_notes_bucket",JSON.stringify([])),localStorage.getItem("reit_bucket")||localStorage.setItem("reit_bucket",JSON.stringify([])),localStorage.getItem("crypto_bucket")||localStorage.setItem("crypto_bucket",JSON.stringify([])));let Ot=JSON.parse(localStorage.getItem("equity_bucket"));P.current=0;for(let ut=0;ut{if(p!==null){let Ot=JSON.parse(localStorage.getItem(`${Ze}_list_data`));$e(Ot.price_data.DATE),vt(Ot.price_data[p[0]]),wt(Ot.volatility_data.DATE),rt(Ot.volatility_data[p[0]])}},[p]);const st=async Ot=>{r(Ot)},lt=async()=>{d(!0);const Ot=new Date,ut=new Date(Ot);ut.setHours(15,30,0,0);let at=localStorage.getItem("tickers_list_last_updated");if(at=at?new Date(at):null,!at||!localStorage.getItem("equity_list")||!localStorage.getItem("equity_list_data")||!localStorage.getItem("commodities_list")||!localStorage.getItem("commodities_list_data")||!localStorage.getItem("t_notes_list")||!localStorage.getItem("t_notes_list_data")||!localStorage.getItem("reit_list")||!localStorage.getItem("reit_list_data")||!localStorage.getItem("crypto_list")||!localStorage.getItem("crypto_list_data")||at.toDateString()!==Ot.toDateString()||Ot>=ut&&at{e.current&&(e.current=!1,lt())},[t]);let Wt=async Ot=>{Ot.preventDefault(),He(!0);let ut=document.getElementById("start_date").value,at=document.getElementById("end_date").value,xt=document.getElementById("number_of_simulations").value,At=document.getElementById("initial_amount").value,Et=document.getElementById("benchmark_ticker").value,Vt=document.getElementById("market_ticker").value,Bt=JSON.parse(localStorage.getItem("equity_bucket")),Ut=JSON.parse(localStorage.getItem("commodities_bucket")),Jt=JSON.parse(localStorage.getItem("t_notes_bucket")),ur=JSON.parse(localStorage.getItem("reit_bucket")),fr=JSON.parse(localStorage.getItem("crypto_bucket"));await G({start_date:ut,end_date:at,number_of_simulations:xt,initial_amount:At,benchmark_ticker:Et,market_ticker:Vt,equity_bucket:Bt,commodities_bucket:Ut,t_notes_bucket:Jt,reit_bucket:ur,crypto_bucket:fr,buckets_min_weights:[oe,te,xe,Te,Me],buckets_max_weights:[j,ge,De,Se,et]})&&Ne("/results"),He(!1)};const Zt=Ot=>parseFloat(Ot)>0?Pa.positive:parseFloat(Ot)<0?Pa.negative:"",Tt=Ot=>{e.current=!0,localStorage.setItem("selection",parseInt(Ot.index)),a(parseInt(Ot.index))},Rt=async Ot=>{const ut=await H(Ot,Ze);h(ut.tickers)};Gn.useEffect(()=>{n===""?(L(JSON.parse(localStorage.getItem(`${Ze}_list`))),l(!1)):(l(!0),Rt(n.toUpperCase()))},[n]);const Xt=Ot=>{f(Ot.target.value);const ut=document.getElementById("clear_button");Ot.target.value!==""?(ut.classList.remove(Pa.slideOut),ut.classList.add(Pa.slideIn)):(ut.classList.remove(Pa.slideIn),ut.classList.add(Pa.slideOut))},gr=()=>{f("");const Ot=document.querySelector(`.${Pa.clear_button}`);Ot.classList.contains(Pa.slideIn)&&(Ot.classList.remove(Pa.slideIn),Ot.classList.add(Pa.slideOut))},gt=async(Ot,ut)=>{let at=[],xt=JSON.parse(localStorage.getItem(`${Ze}_list`));if(d(!0),T.includes(Ot)){at=T.filter(Vt=>Vt!==Ot),delete xt[Ot];let At=JSON.parse(localStorage.getItem(`${Ze}_list_data`));delete At.volatility_data[Ot],delete At.price_data[Ot];let Et=At.table_data.SYMBOLS.indexOf(Ot);At.table_data.SYMBOLS.splice(Et,1),At.table_data.PRICE.splice(Et,1),At.table_data.CHANGE.splice(Et,1),At.table_data.PCHANGE.splice(Et,1),At.table_data.LOW.splice(Et,1),At.table_data.HIGH.splice(Et,1),localStorage.setItem(`${Ze}_list_data`,JSON.stringify(At)),localStorage.setItem(`${Ze}_list`,JSON.stringify(xt)),L(xt),v(At.table_data)}else{at=[...T,Ot],xt[Ot]=ut;let At=JSON.parse(localStorage.getItem(`${Ze}_list_data`));const Et=await mt([Ot]);At.volatility_data[Ot]=Et.volatility_data[Ot],At.price_data[Ot]=Et.price_data[Ot],At.table_data.SYMBOLS.push(Et.table_data.SYMBOLS[0]),At.table_data.PRICE.push(Et.table_data.PRICE[0]),At.table_data.CHANGE.push(Et.table_data.CHANGE[0]),At.table_data.PCHANGE.push(Et.table_data.PCHANGE[0]),At.table_data.LOW.push(Et.table_data.LOW[0]),At.table_data.HIGH.push(Et.table_data.HIGH[0]),localStorage.setItem(`${Ze}_list_data`,JSON.stringify(At)),localStorage.setItem(`${Ze}_list`,JSON.stringify(xt)),L(xt),v(At.table_data)}d(!1),c(at)},Kt=Ot=>{Ot.preventDefault();let ut=JSON.parse(localStorage.getItem(`${Ze}_bucket`)),at=p,xt=parseInt(C),At=parseInt(x);ut=[...ut,[at,At,xt]],localStorage.setItem(`${Ze}_bucket`,JSON.stringify(ut)),window.location.reload()};Gn.useEffect(()=>{if(o){z.current=0,Q.current=[0,0,0,0,0];let Ot=JSON.parse(localStorage.getItem("equity_bucket"));if(Ot&&Ot.length!==0){for(let ut=0;ut{W(z.current-oe),re(z.current-te),le(z.current-xe),Z(z.current-Te),X(z.current-Me)},[oe,te,xe,Te,Me]);var Qt=[{x:Qe,y:ht,type:"scatter"}],yr=[{x:pt,y:Ct,type:"scatter"}];return Gn.useEffect(()=>{const Ot=document.getElementById("home_chart"),ut=document.getElementById("priceChartContainer"),at=document.getElementById("volatilityChartContainer"),xt=Vt=>{Vt.stopPropagation()},At=()=>{Ot.addEventListener("wheel",xt,{passive:!1})},Et=()=>{Ot.removeEventListener("wheel",xt,{passive:!1})};return ut.addEventListener("mouseenter",At),ut.addEventListener("mouseleave",Et),at.addEventListener("mouseenter",At),at.addEventListener("mouseleave",Et),()=>{ut.removeEventListener("mouseenter",At),ut.removeEventListener("mouseleave",Et),at.removeEventListener("mouseenter",At),at.removeEventListener("mouseleave",Et)}},[]),Gn.useEffect(()=>{const Ot=()=>{if(We.current){const ut=We.current.offsetWidth;We.current.style.height=`${ut/3}px`}if(Ge.current){const ut=Ge.current.offsetWidth;Ge.current.style.height=`${ut/2}px`}};return me.current&&(me.current=!1,Ot()),window.addEventListener("resize",Ot),()=>window.removeEventListener("resize",Ot)},[]),Gn.useEffect(()=>{const Ot=()=>{if(We.current){const ut=We.current.getBoundingClientRect();je({width:ut.width-2,height:ut.height-2})}if(Ge.current){const ut=Ge.current.getBoundingClientRect();he({width:ut.width-2,height:ut.height-2})}};return Le.current&&(Le.current=!1,Ot()),window.addEventListener("resize",Ot),()=>window.removeEventListener("resize",Ot)},[]),Pr.jsxs("div",{className:Pa.home_container,children:[ze&&Pr.jsx("div",{className:Pa.popup_container,style:{zIndex:"100"},children:Pr.jsx("div",{className:Pa.loading,children:Pr.jsx("h1",{children:"Processing..."})})}),o&&Pr.jsx("div",{className:Pa.popup_container,onClick:()=>M(!1),children:Pr.jsxs("div",{className:Pa.popup,onClick:Ot=>Ot.stopPropagation(),children:[Pr.jsx("div",{className:Pa.popup_header,children:Pr.jsx("h2",{children:"Simulation Parameters"})}),Pr.jsx("span",{className:Pa.closeButton,onClick:()=>M(!1),children:"ⓧ"}),Pr.jsx("div",{className:Pa.analysis_options,children:Pr.jsxs("form",{onSubmit:Wt,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px",color:"red"},children:"Difference between Start Date and End Date must be at least 52 Days for the results to load!"}),Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Start Date : "}),Pr.jsx("input",{type:"date",id:"start_date",required:!0})]}),Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"End Date : "}),Pr.jsx("input",{type:"date",id:"end_date",required:!0})]}),Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Number of Simulations : "}),Pr.jsx("input",{type:"number",id:"number_of_simulations",max:5e3,placeholder:"5000"})]}),Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Initial Amount : "}),Pr.jsx("input",{type:"number",id:"initial_amount",placeholder:"10000"})]}),Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Benchmark Ticker : "}),Pr.jsxs("select",{defaultValue:"^NSEI",id:"benchmark_ticker",required:!0,children:[Pr.jsx("option",{value:"^GSPC",children:"^GSPC"}),Pr.jsx("option",{value:"^IXIC",children:"^IXIC"}),Pr.jsx("option",{value:"^NSEI",children:"^NSEI"}),Pr.jsx("option",{value:"^NSEMDCP50",children:"^NSEMDCP50"}),Pr.jsx("option",{value:"^BSESN",children:"^BSESN"})]})]}),Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Market Ticker : "}),Pr.jsxs("select",{defaultValue:"^NSEI",id:"market_ticker",required:!0,children:[Pr.jsx("option",{value:"^GSPC",children:"^GSPC"}),Pr.jsx("option",{value:"^IXIC",children:"^IXIC"}),Pr.jsx("option",{value:"^NSEI",children:"^NSEI"}),Pr.jsx("option",{value:"^NSEMDCP50",children:"^NSEMDCP50"}),Pr.jsx("option",{value:"^BSESN",children:"^BSESN"})]})]}),oe!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Equity Bucket Min Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:oe,min:Q.current[0],max:100-B,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-oe,Y(Math.max(Q.current[0],Math.min(Ot.target.value,100-B)))},required:!0})]}),oe!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Equity Bucket Max Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:j,min:oe,max:100,onChange:Ot=>{se(Ot.target.value)},required:!0})]}),te!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Commodities Bucket Min Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:te,min:Q.current[1],max:100-J,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-te,fe(Math.max(Q.current[1],Math.min(Ot.target.value,100-J)))},required:!0})]}),te!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Commodities Bucket Max Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:ge,min:te,max:100,onChange:Ot=>{be(Ot.target.value)},required:!0})]}),xe!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"US Treasury Notes Bucket Min Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:xe,min:Q.current[2],max:100-ne,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-xe,_e(Math.max(Q.current[2],Math.min(Ot.target.value,100-ne)))},required:!0})]}),xe!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"US Treasury Notes Bucket Max Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:De,min:xe,max:100,onChange:Ot=>{Fe(Ot.target.value)},required:!0})]}),Te!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"REITs Bucket Min Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:Te,min:Q.current[3],max:100-$,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-Te,Re(Math.max(Q.current[3],Math.min(Ot.target.value,100-$)))},required:!0})]}),Te!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"REITs Bucket Max Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:Se,min:Te,max:100,onChange:Ot=>{Ie(Ot.target.value)},required:!0})]}),Me!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Crypto Bucket Min Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:Me,min:Q.current[4],max:100-ie,onChange:Ot=>{z.current+=Math.max(Q.current[0],Math.min(Ot.target.value,100-B))-Me,Ve(Math.max(Q.current[4],Math.min(Ot.target.value,100-ie)))},required:!0})]}),Me!==null&&Pr.jsxs("div",{className:Pa.analysis_options_input,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"14px"},children:"Crypto Bucket Max Weight : "}),Pr.jsx("input",{style:{width:"40px"},type:"number",value:et,min:Me,max:100,onChange:Ot=>{ot(Ot.target.value)},required:!0})]}),Pr.jsx("button",{type:"submit",className:Pa.popup_proceed,children:"Analyze"})]})})]})}),D&&Pr.jsx("div",{className:Pa.popup_container,onClick:()=>N(!1),children:Pr.jsxs("div",{className:Pa.popup,onClick:Ot=>Ot.stopPropagation(),children:[Pr.jsx("div",{className:Pa.popup_header,children:Pr.jsx("h2",{children:"Settings"})}),Pr.jsxs("div",{className:Pa.settings_options,children:[Pr.jsxs("label",{style:{fontWeight:"bold",fontSize:"14px"},children:["Period :"," "]}),Pr.jsxs("select",{value:O,onChange:Ot=>F(Ot.target.value),children:[Pr.jsx("option",{value:"5d",children:"5 Days"}),Pr.jsx("option",{value:"1mo",children:"1 Month"}),Pr.jsx("option",{value:"3mo",children:"3 Months"}),Pr.jsx("option",{value:"6mo",children:"6 Months"}),Pr.jsx("option",{value:"1y",children:"1 Year"}),Pr.jsx("option",{value:"2y",children:"2 Years"})]})]}),Pr.jsx("span",{className:Pa.closeButton,onClick:()=>N(!1),children:"ⓧ"}),Pr.jsxs("div",{className:Pa.settings_buttons,children:[O!==k&&Pr.jsx("button",{className:Pa.settings_cancel,onClick:()=>{F(k)},children:"Cancel"}),O!==k&&Pr.jsx("button",{className:Pa.popup_proceed,onClick:()=>{localStorage.setItem("period",O),localStorage.removeItem(`${Ze}_list_data`),window.location.reload()},children:"Apply"})]})]})}),E&&Pr.jsx("div",{className:Pa.popup_container,onClick:()=>A(!1),children:Pr.jsxs("div",{className:Pa.popup,onClick:Ot=>Ot.stopPropagation(),children:[Pr.jsx("div",{className:Pa.bucket_header,children:Pr.jsx("h2",{children:"Bucket"})}),Pr.jsx("span",{className:Pa.closeButton,onClick:()=>A(!1),children:"ⓧ"}),Pr.jsx("div",{className:Pa.bucket_table,children:Pr.jsxs("table",{children:[Pr.jsx("thead",{children:Pr.jsxs("tr",{children:[Pr.jsx("th",{children:Pr.jsx("center",{children:"Delete"})}),Pr.jsx("th",{children:"Element"}),Pr.jsx("th",{children:"Minimum Weight"}),Pr.jsx("th",{children:"Maximum Weight"})]})}),Pr.jsx("tbody",{children:JSON.parse(localStorage.getItem(`${Ze}_bucket`)).map((Ot,ut)=>Pr.jsxs("tr",{children:[Pr.jsx("td",{children:Pr.jsx("center",{children:Pr.jsxs("svg",{className:Pa.deleteIcon,onClick:()=>{let at=JSON.parse(localStorage.getItem(`${Ze}_bucket`));at.splice(ut,1),localStorage.setItem(`${Ze}_bucket`,JSON.stringify(at)),I(!b)},xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"14",height:"14",viewBox:"0 0 24 24",children:[" ",Pr.jsx("path",{d:"M 10.806641 2 C 10.289641 2 9.7956875 2.2043125 9.4296875 2.5703125 L 9 3 L 4 3 A 1.0001 1.0001 0 1 0 4 5 L 20 5 A 1.0001 1.0001 0 1 0 20 3 L 15 3 L 14.570312 2.5703125 C 14.205312 2.2043125 13.710359 2 13.193359 2 L 10.806641 2 z M 4.3652344 7 L 5.8925781 20.263672 C 6.0245781 21.253672 6.877 22 7.875 22 L 16.123047 22 C 17.121047 22 17.974422 21.254859 18.107422 20.255859 L 19.634766 7 L 4.3652344 7 z"})]})})}),Pr.jsx("td",{children:Ot[0][1]}),Pr.jsx("td",{children:Ot[1]}),Pr.jsx("td",{children:Ot[2]})]},ut))})]})})]})}),Pr.jsxs("div",{className:Pa.home,children:[Pr.jsx("div",{className:Pa.home_table_navbar,children:["Equity","Commodities","US Treasury Notes","REITs","Crypto"].map((Ot,ut)=>Pr.jsx("div",{className:`${Pa.home_table_navbar_item} ${t===ut?Pa.selected:""}`,onClick:()=>Tt({index:ut}),children:Pr.jsx("h2",{children:Ot})},ut))}),Pr.jsxs("div",{className:Pa.home_table_and_chart,children:[Pr.jsxs("div",{className:Pa.home_table,children:[Pr.jsxs("div",{className:Pa.home_table_search,children:[Pr.jsx("label",{children:"Search for Equity"}),Pr.jsxs("div",{className:Pa.search_div,children:[Pr.jsx("input",{type:"text",value:n,onChange:Xt,placeholder:"Yahoo Finance Ticker"}),Pr.jsx("button",{className:Pa.clear_button,id:"clear_button",onClick:gr,style:{fontSize:"16px"},children:"ⓧ"})]})]}),Pr.jsx("div",{className:Pa.table_container,children:Pr.jsxs("table",{children:[Pr.jsxs("thead",{children:[u===!1&&Pr.jsx("tr",{children:["","Symbol","Price","Change","% Change","Range"].map((Ot,ut)=>Pr.jsx("th",{children:Ot},ut))}),u===!0&&Pr.jsxs("tr",{children:[Pr.jsx("th",{children:Pr.jsx("center",{children:"Select"})}),Pr.jsx("th",{children:"Symbol"})]})]}),Pr.jsxs("tbody",{children:[u===!1&&s&&Object.entries(s).map(([Ot,ut],at)=>Pr.jsxs("tr",{children:[Pr.jsx("td",{children:Pr.jsx("center",{children:Pr.jsx("input",{type:"checkbox",disabled:i,checked:T.includes(Ot),onChange:()=>gt(Ot,ut)})})}),Pr.jsx("td",{className:Pa.table_symbol,onClick:()=>st([Ot,ut]),children:ut}),S&&Pr.jsx("td",{children:S.PRICE[at].toFixed(2)}),S&&Pr.jsx("td",{id:at.toString()+"price_column",className:Zt(S.CHANGE[at]),children:S.CHANGE[at].toFixed(2)}),S&&Pr.jsxs("td",{className:Zt(S.PCHANGE[at]),children:[S.PCHANGE[at].toFixed(2)," %"]}),S&&Pr.jsx("td",{children:Pr.jsx("div",{className:Pa.table_range,children:Pr.jsxs("div",{className:Pa.table_range_length,children:[Pr.jsx("div",{className:Pa.table_range_fill,style:{width:`${(S.PRICE[at]-S.LOW[at])/(S.HIGH[at]-S.LOW[at])*100}%`}}),Pr.jsxs("div",{className:Pa.table_range_label,children:[Pr.jsx("div",{children:S.LOW[at].toFixed(2)}),Pr.jsx("div",{children:S.HIGH[at].toFixed(2)})]})]})})})]},at)),u===!0&&g&&Object.entries(g).map(([Ot,ut],at)=>Pr.jsxs("tr",{children:[Pr.jsx("td",{children:Pr.jsx("center",{children:Pr.jsx("input",{type:"checkbox",disabled:i,checked:T.includes(Ot),onChange:()=>gt(Ot,ut)})})}),Pr.jsx("td",{className:Pa.table_symbol,onClick:()=>st([Ot,ut]),children:ut})]},at))]})]})})]}),Pr.jsxs("div",{className:Pa.home_chart,id:"home_chart",children:[p&&Pr.jsx("h2",{style:{margin:"0"},children:p[1]}),Pr.jsx("div",{className:Pa.home_chart_add_to_bucket,children:Pr.jsx("form",{onSubmit:Kt,children:Pr.jsxs("div",{className:Pa.home_chart_add_to_bucket_form,children:[Pr.jsxs("div",{className:Pa.form_input,children:[Pr.jsx("label",{children:"Minimum Weight"}),Pr.jsx("input",{type:"number",value:x,min:"0",onChange:Ot=>{w(parseInt(Math.max(x,Math.min(Ot.target.value,100-P.current))))},max:100-P.current,placeholder:"0",required:!0})]}),Pr.jsxs("div",{className:Pa.form_input,children:[Pr.jsx("label",{children:"Maximum Weight"}),Pr.jsx("input",{type:"number",value:C,min:x,onChange:Ot=>y(parseInt(Ot.target.value)),max:"100",placeholder:"100",required:!0})]}),Pr.jsx("button",{type:"submit",style:{width:"150px"},children:"Add to Bucket"})]})})}),Pr.jsx("label",{style:{fontWeight:"bold"},children:"Price Chart"}),Pr.jsx("div",{className:Pa.home_chart_price,id:"priceChartContainer",ref:Ge,children:Pr.jsx(Cc,{data:Qt.map(Ot=>({...Ot,line:{color:"#1e90ff"}})),layout:{width:Ce.width,height:Ce.height,margin:{l:40,r:0,t:0,b:20}},config:{displaylogo:!1,responsive:!0,scrollZoom:!0}})}),Pr.jsx("label",{style:{fontWeight:"bold"},children:"Volatility Chart"}),Pr.jsx("div",{className:Pa.home_chart_volatility,id:"volatilityChartContainer",ref:We,children:Pr.jsx(Cc,{data:yr.map(Ot=>({...Ot,line:{color:"#228b22"}})),layout:{width:Pe.width,height:Pe.height,margin:{l:40,r:0,t:0,b:0}},config:{displaylogo:!1,responsive:!0,scrollZoom:!0}})})]})]}),Pr.jsxs("div",{className:Pa.controller_buttons,children:[Pr.jsx("button",{className:Pa.controller_buttons_buttons,style:{width:"100px"},onClick:()=>N(!0),children:"Settings"}),Pr.jsx("button",{className:Pa.controller_buttons_buttons,style:{width:"150px"},onClick:()=>{localStorage.removeItem(`${Ze}_list`),window.location.reload()},children:"Reset Tickers List"}),Pr.jsx("button",{className:Pa.controller_buttons_buttons,style:{width:"120px"},onClick:()=>{localStorage.setItem(`${Ze}_bucket`,JSON.stringify([])),window.location.reload()},children:"Reset Bucket"}),Pr.jsx("button",{className:Pa.controller_buttons_buttons,style:{width:"120px"},onClick:()=>A(!0),children:"View Bucket"}),Pr.jsx("button",{className:Pa.controller_buttons_buttons,onClick:()=>M(!0),children:"Next"})]})]})]})},qS="_results_container_1way4_1",eM="_results_1way4_1",tM="_results_mode_selector_1way4_15",rM="_results_portfolio_value_evaluation_item_1way4_28",nM="_portfolio_value_evaluation_item_data_1way4_34",aM="_portfolio_value_eval_data_1way4_39",iM="_results_portfolio_value_chart_1way4_45",oM="_results_portfolio_value_1way4_28",sM="_split_view_1way4_59",lM="_split_view2_1way4_66",uM="_split_view_item_1way4_73",fM="_split_view_item_data_1way4_79",cM="_split_view_chart_1way4_85",hM="_split_view_data_1way4_90",vM="_split_view_chart_2_1way4_96",dM="_results_pie_chart_data_item_1way4_101",pM="_results_pie_chart_data_item_2_1way4_101",gM="_results_pie_chart_data_item2_1way4_111",yM="_results_pie_chart_1way4_101",Ya={results_container:qS,results:eM,results_mode_selector:tM,results_portfolio_value_evaluation_item:rM,portfolio_value_evaluation_item_data:nM,portfolio_value_eval_data:aM,results_portfolio_value_chart:iM,results_portfolio_value:oM,split_view:sM,split_view2:lM,split_view_item:uM,split_view_item_data:fM,split_view_chart:cM,split_view_data:hM,split_view_chart_2:vM,results_pie_chart_data_item:dM,results_pie_chart_data_item_2:pM,results_pie_chart_data_item2:gM,results_pie_chart:yM},mM=()=>{let[V,q]=Gn.useState(0),[ye,ke]=Gn.useState(["2013-10-04 22:23:00","2013-11-04 22:23:00","2013-12-04 22:23:00"]),[tt,mt]=Gn.useState([1,3,6]),[G,H]=Gn.useState([1,3,6]),[e,m]=Gn.useState([1,3,6]),[P,s]=Gn.useState({"CANBK.NS":[1,.060724837670530794],"GC=F":[.060724837670530794,1]}),[L,S]=Gn.useState([10,20,30,40]),[v,p]=Gn.useState(["Equity","Commodities","T-Notes","REIT"]),[r,t]=Gn.useState([1,2,3,-1]),a=Gn.useRef(null),n=Gn.useRef(null),f=Gn.useRef(null),u=Gn.useRef(null),l=Gn.useRef(null),g=Gn.useRef(null),h=Gn.useRef(!0),T=Gn.useRef(!0),[c,i]=Gn.useState({width:0,height:0}),[d,x]=Gn.useState({width:0,height:0}),[w,C]=Gn.useState({width:0,height:0}),[y,E]=Gn.useState({width:0,height:0}),[A,o]=Gn.useState({width:0,height:0}),[M,b]=Gn.useState({width:0,height:0});const I=Object.keys(P).map($=>P[$]),D=Object.keys(P),N=Object.keys(P).map($=>P[$].map(Z=>Z.toFixed(2))),k=_w();Gn.useEffect(()=>{localStorage.getItem(`results_${V}`)||k("/")},[k]);let O=JSON.parse(localStorage.getItem(`results_${V}`));Gn.useEffect(()=>{ke(O.date),mt(O.portfolio_value),H(O.benchmark_value),m(O.var_monte_carlo_simulated_returns),s(O.correlation_matrix),S(O.optimised_weights),p(O.tickers_list),t(O.capital_gain_per)},[V]);const F=$=>{q(parseInt($.target.value))};var z=[{x:ye,y:tt,type:"scatter",line:{color:"#1e90ff"}}],B=[{x:ye,y:tt,type:"scatter",line:{color:"#1e90ff"},name:"Portfolio"},{x:ye,y:G,type:"scatter",line:{color:"#228b22"},name:"^NSEI"}],W=[{x:e,type:"histogram",marker:{color:"#1e90ff"}}],J=[{x:D,y:D,z:I,type:"heatmap",colorscale:"Viridis",text:N,texttemplate:"%{text}",textfont:{size:"12",color:"white"}}],re=[{values:L,labels:v,type:"pie"}];const ne=$=>$>0?"green":$<0?"red":"black";var le=[{type:"treemap",labels:v,parents:Array(v.length).fill(""),values:L,text:v.map(($,Z)=>`${$}
Weight: ${L[Z].toFixed(3)}
Change: ${r[Z].toFixed(3)}%`),texttemplate:"%{text}",hovertemplate:"%{text}",marker:{colors:r.map($=>ne($))}}];return Gn.useEffect(()=>{const $=()=>{if(a.current){const Z=a.current.offsetWidth;a.current.style.height=`${Z/2.64}px`}if(n.current){const Z=n.current.offsetWidth;n.current.style.height=`${Z/1.98}px`}if(f.current){const Z=f.current.offsetWidth;f.current.style.height=`${Z/1.98}px`}if(u.current){const Z=u.current.offsetWidth;u.current.style.height=`${Z}px`}if(l.current){const Z=l.current.offsetWidth;l.current.style.height=`${Z}px`}};return T.current&&(T.current=!1,$()),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]),Gn.useEffect(()=>{const $=()=>{if(a.current){const Z=a.current.getBoundingClientRect();x({width:Z.width-2,height:Z.height-2})}if(n.current){const Z=n.current.getBoundingClientRect();C({width:Z.width-2,height:Z.height-2})}if(f.current){const Z=f.current.getBoundingClientRect();E({width:Z.width-2,height:Z.height-2})}if(u.current){const Z=u.current.getBoundingClientRect();o({width:Z.width-2,height:Z.height-2})}if(l.current){const Z=l.current.getBoundingClientRect();b({width:Z.width-2,height:Z.height-2})}if(g.current){const Z=g.current.getBoundingClientRect();i({width:Z.width-2,height:Z.height-2})}};return h.current&&(h.current=!1,$()),window.addEventListener("resize",$),()=>window.removeEventListener("resize",$)},[]),Gn.useEffect(()=>{const $=document.getElementById("portfolioChartDiv"),Z=document.getElementById("benchmarkChartDiv"),ie=document.getElementById("monteChartDiv"),X=document.getElementById("correlationChartDiv"),Q=j=>{j.stopPropagation()},oe=()=>{window.addEventListener("wheel",Q,{passive:!1})},Y=()=>{window.removeEventListener("wheel",Q,{passive:!1})};return $.addEventListener("mouseenter",oe),$.addEventListener("mouseleave",Y),Z.addEventListener("mouseenter",oe),Z.addEventListener("mouseleave",Y),ie.addEventListener("mouseenter",oe),ie.addEventListener("mouseleave",Y),X.addEventListener("mouseenter",oe),X.addEventListener("mouseleave",Y),()=>{$.removeEventListener("mouseenter",oe),$.removeEventListener("mouseleave",Y),Z.removeEventListener("mouseenter",oe),Z.removeEventListener("mouseleave",Y),ie.removeEventListener("mouseenter",oe),ie.removeEventListener("mouseleave",Y),X.removeEventListener("mouseenter",oe),X.removeEventListener("mouseleave",Y)}},[]),Pr.jsx("div",{className:Ya.results_container,children:Pr.jsxs("div",{className:Ya.results,children:[Pr.jsx("button",{style:{margin:"20px 0px 0px 30px",width:"100px",height:"30px",border:"none",borderRadius:"3px",backgroundColor:"rgb(0, 103, 184)",color:"white",fontSize:"14px",fontWeight:"bold"},onClick:()=>k("/"),children:"Back"}),Pr.jsxs("div",{className:Ya.results_mode_selector,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Asset Allocation Strategy:"}),Pr.jsxs("label",{children:[Pr.jsx("input",{type:"radio",value:0,checked:V===0,onChange:F}),"Markowitz Mean-Variance"]}),Pr.jsxs("label",{children:[Pr.jsx("input",{type:"radio",value:1,checked:V===1,onChange:F}),"Equal Weighting"]}),Pr.jsxs("label",{children:[Pr.jsx("input",{type:"radio",value:2,checked:V===2,onChange:F}),"Risk Parity"]})]}),Pr.jsxs("div",{className:Ya.split_view2,children:[Pr.jsxs("div",{className:Ya.results_portfolio_value,children:[Pr.jsx("label",{style:{fontWeight:"bold",fontSize:"20px"},children:"Portfolio Value"}),Pr.jsx("div",{className:Ya.results_portfolio_value_chart,ref:a,id:"portfolioChartDiv",children:Pr.jsx(Cc,{data:z,layout:{width:d.width,height:d.height,margin:{l:30,r:0,t:0,b:20}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})})]}),Pr.jsx("div",{className:Ya.results_portfolio_value_data,children:Pr.jsxs("div",{className:Ya.results_pie_chart_data_item,children:[Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_capital_gain.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0",fontSize:"12px"},children:"Capital Gain (%)"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_market_gain.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0",fontSize:"12px"},children:"Market Gain (%)"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_dividend_yield.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0",fontSize:"12px"},children:"Dividend Yield (%)"})]})]})})]}),Pr.jsxs("div",{className:Ya.split_view,style:{height:"400px"},children:[Pr.jsxs("div",{className:Ya.results_pie_chart_data_item2,children:[Pr.jsx("center",{children:Pr.jsx("label",{style:{fontWeight:"bold"},children:"Asset Allocation"})}),Pr.jsx("div",{className:Ya.results_pie_chart,ref:g,id:"pieChartDiv",children:Pr.jsx(Cc,{data:re,layout:{width:c.width,height:c.height,margin:{l:30,r:10,t:10,b:30},showlegend:!1},config:{responsive:!0,displaylogo:!1}})})]}),Pr.jsxs("div",{className:Ya.split_view_item,children:[Pr.jsxs("div",{className:Ya.results_portfolio_value_evaluation_item,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Portfolio Evaluation"}),Pr.jsxs("div",{className:Ya.portfolio_value_evaluation_item_data,children:[Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.sharpe.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Sharpe Ratio"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.treynor.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Treynor Ratio"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.sortino.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Sortino Ratio"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.jenson[0].toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Jenson's Alpha"})]})]})]}),Pr.jsxs("div",{className:Ya.results_portfolio_value_evaluation_item,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Portfolio Parameters"}),Pr.jsxs("div",{className:Ya.portfolio_value_evaluation_item_data,children:[Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_portfolio_returns.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Annual Returns (%)"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.portfolio_std.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Standard Deviation"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.portfolio_beta.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Portfolio Beta"})]})]})]}),Pr.jsxs("div",{className:Ya.results_portfolio_value_evaluation_item,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Value-at-Risk (VAR)"}),Pr.jsxs("div",{className:Ya.portfolio_value_evaluation_item_data,children:[Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var.ninety_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"90% Confidence Level"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var.ninety_five_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"95% Confidence Level"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var.ninety_nine_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"99% Confidence Level"})]})]})]}),Pr.jsxs("div",{className:Ya.results_portfolio_value_evaluation_item,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Conditional Value-at-Risk (VAR)"}),Pr.jsxs("div",{className:Ya.portfolio_value_evaluation_item_data,children:[Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.cvar.ninety_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"90% Confidence Level"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.cvar.ninety_five_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"95% Confidence Level"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.cvar.ninety_nine_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"99% Confidence Level"})]})]})]})]})]}),Pr.jsxs("div",{className:Ya.split_view,children:[Pr.jsxs("div",{className:Ya.split_view_item,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Benchmark Comparison"}),Pr.jsxs("div",{className:Ya.split_view_item_data,children:[Pr.jsx("div",{className:Ya.split_view_chart,ref:n,id:"benchmarkChartDiv",children:Pr.jsx(Cc,{data:B,layout:{width:w.width,height:w.height,margin:{l:30,r:10,t:0,b:20}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})}),Pr.jsxs("div",{className:Ya.split_view_data,children:[Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_benchmark_returns.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Benchmark Returns (%)"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.p_tracking_error.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Tracking Error (%)"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.information_ratio.toFixed(3)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"Information Ratio"})]})]})]})]}),Pr.jsxs("div",{className:Ya.split_view_item,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Value-at-Risk: Monte Carlo Method"}),Pr.jsxs("div",{className:Ya.split_view_item_data,children:[Pr.jsx("div",{className:Ya.split_view_chart,ref:f,id:"monteChartDiv",children:Pr.jsx(Cc,{data:W,layout:{width:y.width,height:y.height,bargap:.1,margin:{l:30,r:0,t:0,b:20}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})}),Pr.jsxs("div",{className:Ya.split_view_data,children:[Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var_monte_carlo.ninety_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"90% Confidence Level"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var_monte_carlo.ninety_five_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"95% Confidence Level"})]}),Pr.jsxs("div",{className:Ya.portfolio_value_eval_data,children:[Pr.jsx("label",{style:{fontSize:"20px",margin:"0",color:"rgb(34, 103, 196)"},children:O.var_monte_carlo.ninety_nine_p.toFixed(2)}),Pr.jsx("label",{style:{fontWeight:"bold",margin:"0"},children:"99% Confidence Level"})]})]})]})]})]}),Pr.jsxs("div",{className:Ya.split_view,children:[Pr.jsxs("div",{className:Ya.split_view_item,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Portfolio Correlation"}),Pr.jsx("div",{className:Ya.split_view_chart_2,ref:u,id:"correlationChartDiv",children:Pr.jsx(Cc,{data:J,layout:{width:A.width,height:A.height,margin:{l:100,r:10,t:10,b:30}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})})]}),Pr.jsxs("div",{className:Ya.split_view_item,children:[Pr.jsx("label",{style:{fontWeight:"bold"},children:"Portfolio Treemap View"}),Pr.jsx("div",{className:Ya.split_view_chart_2,ref:l,children:Pr.jsx(Cc,{data:le,layout:{width:M.width,height:M.height,margin:{l:10,r:10,t:10,b:10}},config:{scrollZoom:!0,responsive:!0,displaylogo:!1}})})]})]})]})})};function xM(){return Pr.jsx(Pr.Fragment,{children:Pr.jsx(QS,{children:Pr.jsx(nS,{basename:"/abd-portfolio",children:Pr.jsxs(eS,{children:[Pr.jsx(Uy,{path:"/",element:Pr.jsx($S,{})}),Pr.jsx(Uy,{path:"/results",element:Pr.jsx(mM,{})})]})})})})}jg.createRoot(document.getElementById("root")).render(Pr.jsx(mb.StrictMode,{children:Pr.jsx(xM,{})})); diff --git a/index.html b/index.html index 0300288..f1f5362 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - +