From 483926a283e118590da3f9ecfa75a8a4d62143ce Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 1 Dec 2021 07:15:11 +0100 Subject: Merging upstream version 1.32.0. Signed-off-by: Daniel Baumann --- web/gui/dashboard/static/js/2.252b3a57.chunk.js | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 web/gui/dashboard/static/js/2.252b3a57.chunk.js (limited to 'web/gui/dashboard/static/js/2.252b3a57.chunk.js') diff --git a/web/gui/dashboard/static/js/2.252b3a57.chunk.js b/web/gui/dashboard/static/js/2.252b3a57.chunk.js deleted file mode 100644 index d08b9c68c..000000000 --- a/web/gui/dashboard/static/js/2.252b3a57.chunk.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see 2.252b3a57.chunk.js.LICENSE */ -(this["webpackJsonp@netdata/dashboard"]=this["webpackJsonp@netdata/dashboard"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(347)},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"SIZE_SUB_UNIT",(function(){return h})),n.d(r,"SIZE_UNIT",(function(){return d})),n.d(r,"GUTTER_HEIGHT",(function(){return p}));var o={};n.r(o),n.d(o,"addFilter",(function(){return Cd})),n.d(o,"trackAutocompleteClickThrough",(function(){return zd})),n.d(o,"clearFilters",(function(){return Md})),n.d(o,"removeFilter",(function(){return Sd})),n.d(o,"reset",(function(){return Od})),n.d(o,"setCurrent",(function(){return kd})),n.d(o,"setFilter",(function(){return Ed})),n.d(o,"setResultsPerPage",(function(){return Ad})),n.d(o,"setSearchTerm",(function(){return Ld})),n.d(o,"setSort",(function(){return Pd})),n.d(o,"trackClickThrough",(function(){return Dd})),n.d(o,"a11yNotify",(function(){return jd}));var i=n(0),a=n.n(i),c=n(4),s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>16&255)+", "+(i>>8&255)+", "+(255&i)+", "+t+")"}},Q=function(e){return void 0===e&&(e=1),function(t){return(Z(t)||0)*e+"px"}},J=function(e){return void 0===e&&(e="border"),function(t){var n=t.theme,r=t.success,o=t.error,i=t.disabled;return r?K(["success"])({theme:n}):o?K(["error"])({theme:n}):i?K(["disabled"])({theme:n}):K([e])({theme:n})}},ee=function(e,t){return"number"===typeof t?0===(n=e.constants.SIZE_SUB_UNIT*t)?"0":n+"px":"auto";var n},te=function(e,t){return t.map((function(t){return ee(e,t)})).join(" ")},ne=function(e){var t=e.theme,n=e.margin;return n?Array.isArray(n)&&n.length>=1&&n.length<=4?"margin: "+te(t,n)+";":(console.error("Please provide an array (max 4 elements) for `margin` style helper."),""):""},re=function(e){var t=e.theme,n=e.padding;return n?Array.isArray(n)&&n.length>=1&&n.length<=4?"padding: "+te(t,n)+";":(console.error("Please provide an array (max 4 elements) for `padding` style helper."),""):""},oe={end:"flex-end",start:"flex-start",center:"center",stretch:"stretch"},ie=function(e){var t=e.alignSelf;return t in oe&&"align-self: "+oe[t]+";"},ae=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},ce=function(){return(ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n'}),Se=(ze.a.add(Me),Me),Oe=new xe.a({id:"alarm_c",use:"alarm_c-usage",viewBox:"0 0 24 24",content:''}),ke=(ze.a.add(Oe),Oe),Ee=new xe.a({id:"alarm_w",use:"alarm_w-usage",viewBox:"0 0 24 24",content:''}),Ae=(ze.a.add(Ee),Ee),Te=new xe.a({id:"alarm_cw",use:"alarm_cw-usage",viewBox:"0 0 24 24",content:''}),Le=(ze.a.add(Te),Te),Pe=new xe.a({id:"around_clock",use:"around_clock-usage",viewBox:"0 0 16 16",content:''}),De=(ze.a.add(Pe),Pe),He=new xe.a({id:"correlation",use:"correlation-usage",viewBox:"0 0 20 20",content:''}),Ie=(ze.a.add(He),He),Ve=new xe.a({id:"correlation_inv",use:"correlation_inv-usage",viewBox:"0 0 24 24",content:''}),Ne=(ze.a.add(Ve),Ve),Re=new xe.a({id:"chart_added",use:"chart_added-usage",viewBox:"0 0 17 17",content:''}),je=(ze.a.add(Re),Re),Fe=new xe.a({id:"check",use:"check-usage",viewBox:"0 0 24 24",content:''}),Be=(ze.a.add(Fe),Fe),We=new xe.a({id:"checkmark_s",use:"checkmark_s-usage",viewBox:"0 0 16 16",content:''}),Ue=(ze.a.add(We),We),qe=new xe.a({id:"chevron_down",use:"chevron_down-usage",viewBox:"0 0 12 12",content:''}),Ge=(ze.a.add(qe),qe),Ye=new xe.a({id:"cross_s",use:"cross_s-usage",viewBox:"0 0 16 16",content:''}),$e=(ze.a.add(Ye),Ye),Ze=new xe.a({id:"cluster",use:"cluster-usage",viewBox:"0 0 22 22",content:''}),Ke=(ze.a.add(Ze),Ze),Xe=new xe.a({id:"cluster_spaces",use:"cluster_spaces-usage",viewBox:"0 0 22 22",content:''}),Qe=(ze.a.add(Xe),Xe),Je=new xe.a({id:"controller_kind",use:"controller_kind-usage",viewBox:"0 0 22 22",content:''}),et=(ze.a.add(Je),Je),tt=new xe.a({id:"controller_name",use:"controller_name-usage",viewBox:"0 0 22 22",content:''}),nt=(ze.a.add(tt),tt),rt=new xe.a({id:"container",use:"container-usage",viewBox:"0 0 22 22",content:''}),ot=(ze.a.add(rt),rt),it=new xe.a({id:"dot",use:"dot-usage",viewBox:"0 0 10 10",content:''}),at=(ze.a.add(it),it),ct=new xe.a({id:"error",use:"error-usage",viewBox:"0 0 24 24",content:''}),st=(ze.a.add(ct),ct),lt=new xe.a({id:"expand",use:"expand-usage",viewBox:"0 0 24 24",content:''}),ut=(ze.a.add(lt),lt),ft=new xe.a({id:"gear",use:"gear-usage",viewBox:"0 0 20 20",content:''}),ht=(ze.a.add(ft),ft),dt=new xe.a({id:"github",use:"github-usage",viewBox:"0 0 24 24",content:''}),pt=(ze.a.add(dt),dt),vt=new xe.a({id:"google",use:"google-usage",viewBox:"0 0 24 24",content:''}),mt=(ze.a.add(vt),vt),gt=new xe.a({id:"hamburger",use:"hamburger-usage",viewBox:"0 0 24 24",content:''}),yt=(ze.a.add(gt),gt),bt=new xe.a({id:"help",use:"help-usage",viewBox:"0 0 20 21",content:''}),wt=(ze.a.add(bt),bt),_t=new xe.a({id:"holder",use:"holder-usage",viewBox:"0 0 24 24",content:''}),xt=(ze.a.add(_t),_t),Ct=new xe.a({id:"insights",use:"insights-usage",viewBox:"0 0 18 18",content:''}),zt=(ze.a.add(Ct),Ct),Mt=new xe.a({id:"line_chart",use:"line_chart-usage",viewBox:"0 0 15 15",content:''}),St=(ze.a.add(Mt),Mt),Ot=new xe.a({id:"magnify",use:"magnify-usage",viewBox:"0 0 24 24",content:''}),kt=(ze.a.add(Ot),Ot),Et=new xe.a({id:"node_default_l",use:"node_default_l-usage",viewBox:"0 0 40 40",content:''}),At=(ze.a.add(Et),Et),Tt=new xe.a({id:"node_notification_l",use:"node_notification_l-usage",viewBox:"0 0 40 40",content:''}),Lt=(ze.a.add(Tt),Tt),Pt=new xe.a({id:"node_selected_l",use:"node_selected_l-usage",viewBox:"0 0 40 40",content:''}),Dt=(ze.a.add(Pt),Pt),Ht=new xe.a({id:"notification",use:"notification-usage",viewBox:"0 0 40 24",content:''}),It=(ze.a.add(Ht),Ht),Vt=new xe.a({id:"node_hollow",use:"node_hollow-usage",viewBox:"0 0 22 12",content:''}),Nt=(ze.a.add(Vt),Vt),Rt=new xe.a({id:"nodes_hollow",use:"nodes_hollow-usage",viewBox:"0 0 18 18",content:''}),jt=(ze.a.add(Rt),Rt),Ft=new xe.a({id:"node_parent",use:"node_parent-usage",viewBox:"0 0 18 18",content:''}),Bt=(ze.a.add(Ft),Ft),Wt=new xe.a({id:"node_child",use:"node_child-usage",viewBox:"0 0 18 18",content:''}),Ut=(ze.a.add(Wt),Wt),qt=new xe.a({id:"node_import_export",use:"node_import_export-usage",viewBox:"0 0 24 24",content:''}),Gt=(ze.a.add(qt),qt),Yt=new xe.a({id:"plus_mini_s",use:"plus_mini_s-usage",viewBox:"0 0 24 24",content:''}),$t=(ze.a.add(Yt),Yt),Zt=new xe.a({id:"plus",use:"plus-usage",viewBox:"0 0 24 24",content:''}),Kt=(ze.a.add(Zt),Zt),Xt=new xe.a({id:"pod",use:"pod-usage",viewBox:"0 0 22 22",content:''}),Qt=(ze.a.add(Xt),Xt),Jt=new xe.a({id:"reload",use:"reload-usage",viewBox:"0 0 24 24",content:''}),en=(ze.a.add(Jt),Jt),tn=new xe.a({id:"sad",use:"sad-usage",viewBox:"0 0 24 24",content:''}),nn=(ze.a.add(tn),tn),rn=new xe.a({id:"save",use:"save-usage",viewBox:"0 0 14 14",content:''}),on=(ze.a.add(rn),rn),an=new xe.a({id:"text_add",use:"text_add-usage",viewBox:"0 0 16 16",content:''}),cn=(ze.a.add(an),an),sn=new xe.a({id:"trashcan",use:"trashcan-usage",viewBox:"0 0 14 15",content:''}),ln=(ze.a.add(sn),sn),un=new xe.a({id:"unreachable",use:"unreachable-usage",viewBox:"0 0 12 14",content:''}),fn=(ze.a.add(un),un),hn=new xe.a({id:"update",use:"update-usage",viewBox:"0 0 20 20",content:''}),dn=(ze.a.add(hn),hn),pn=new xe.a({id:"update_pending",use:"update_pending-usage",viewBox:"0 0 20 20",content:''}),vn=(ze.a.add(pn),pn),mn=new xe.a({id:"add_user",use:"add_user-usage",viewBox:"0 0 15 16",content:''}),gn=(ze.a.add(mn),mn),yn=new xe.a({id:"user",use:"user-usage",viewBox:"0 0 16 18",content:''}),bn=(ze.a.add(yn),yn),wn=new xe.a({id:"users",use:"users-usage",viewBox:"0 0 14 14",content:''}),_n=(ze.a.add(wn),wn),xn=new xe.a({id:"warning",use:"warning-usage",viewBox:"0 0 24 24",content:''}),Cn=(ze.a.add(xn),xn),zn=new xe.a({id:"warning_triangle",use:"warning_triangle-usage",viewBox:"0 0 12 10",content:''}),Mn=(ze.a.add(zn),zn),Sn=new xe.a({id:"x",use:"x-usage",viewBox:"0 0 24 24",content:''}),On=(ze.a.add(Sn),Sn),kn=new xe.a({id:"checkmark_partial_s",use:"checkmark_partial_s-usage",viewBox:"0 0 16 16",content:''}),En=(ze.a.add(kn),kn),An=new xe.a({id:"search_s",use:"search_s-usage",viewBox:"0 0 14 14",content:''}),Tn=(ze.a.add(An),An),Ln=new xe.a({id:"arrow_down",use:"arrow_down-usage",viewBox:"0 0 16 16",content:''}),Pn=(ze.a.add(Ln),Ln),Dn=new xe.a({id:"arrow_left",use:"arrow_left-usage",viewBox:"0 0 24 24",content:''}),Hn=(ze.a.add(Dn),Dn),In=new xe.a({id:"arrows_vertical",use:"arrows_vertical-usage",viewBox:"0 0 6 10",content:''}),Vn=(ze.a.add(In),In),Nn=new xe.a({id:"triangle_down",use:"triangle_down-usage",viewBox:"0 0 10 5",content:''}),Rn=(ze.a.add(Nn),Nn),jn=new xe.a({id:"triangle",use:"triangle-usage",viewBox:"0 0 24 24",content:''}),Fn=(ze.a.add(jn),jn),Bn=new xe.a({id:"nav_dots",use:"nav_dots-usage",viewBox:"0 0 24 24",content:''}),Wn=(ze.a.add(Bn),Bn),Un=new xe.a({id:"dots_2x3",use:"dots_2x3-usage",viewBox:"0 0 6 10",content:''}),qn=(ze.a.add(Un),Un),Gn=new xe.a({id:"space",use:"space-usage",viewBox:"0 0 24 24",content:''}),Yn=(ze.a.add(Gn),Gn),$n=new xe.a({id:"space_new",use:"space_new-usage",viewBox:"0 0 20 20",content:''}),Zn=(ze.a.add($n),$n),Kn=new xe.a({id:"nodes",use:"nodes-usage",viewBox:"0 0 16 16",content:''}),Xn=(ze.a.add(Kn),Kn),Qn=new xe.a({id:"padlock",use:"padlock-usage",viewBox:"0 0 18 18",content:''}),Jn=(ze.a.add(Qn),Qn),er=new xe.a({id:"room",use:"room-usage",viewBox:"0 0 24 24",content:''}),tr=(ze.a.add(er),er),nr=new xe.a({id:"room_new",use:"room_new-usage",viewBox:"0 0 20 20",content:''}),rr=(ze.a.add(nr),nr),or=new xe.a({id:"sorting_vertical",use:"sorting_vertical-usage",viewBox:"0 0 19 18",content:''}),ir=(ze.a.add(or),or),ar=new xe.a({id:"node",use:"node-usage",viewBox:"0 0 24 24",content:''}),cr=(ze.a.add(ar),ar),sr=new xe.a({id:"question",use:"question-usage",viewBox:"0 0 20 20",content:''}),lr=(ze.a.add(sr),sr),ur=new xe.a({id:"questionFilled",use:"questionFilled-usage",viewBox:"0 0 24 24",content:''}),fr=(ze.a.add(ur),ur),hr=new xe.a({id:"logo_s",use:"logo_s-usage",viewBox:"0 0 14 13",content:''}),dr=(ze.a.add(hr),hr),pr=new xe.a({id:"pencil",use:"pencil-usage",viewBox:"0 0 19 19",content:''}),vr=(ze.a.add(pr),pr),mr=new xe.a({id:"chevron_left",use:"chevron_left-usage",viewBox:"0 0 24 24",content:''}),gr=(ze.a.add(mr),mr),yr=new xe.a({id:"view_list",use:"view_list-usage",viewBox:"0 0 24 24",content:''}),br=(ze.a.add(yr),yr),wr=new xe.a({id:"alarm_bell",use:"alarm_bell-usage",viewBox:"0 0 12 14",content:''}),_r=(ze.a.add(wr),wr),xr=new xe.a({id:"dashboard",use:"dashboard-usage",viewBox:"0 0 22 18",content:''}),Cr=(ze.a.add(xr),xr),zr=new xe.a({id:"dashboards",use:"dashboards-usage",viewBox:"0 0 16 10",content:''}),Mr=(ze.a.add(zr),zr),Sr=new xe.a({id:"dashboard_add",use:"dashboard_add-usage",viewBox:"0 0 16 16",content:''}),Or=(ze.a.add(Sr),Sr),kr=new xe.a({id:"chevron_right_s",use:"chevron_right_s-usage",viewBox:"0 0 5 6",content:''}),Er=(ze.a.add(kr),kr),Ar=new xe.a({id:"collapse",use:"collapse-usage",viewBox:"0 0 16 2",content:''}),Tr=(ze.a.add(Ar),Ar),Lr=new xe.a({id:"pin_element",use:"pin_element-usage",viewBox:"0 0 14 14",content:''}),Pr=(ze.a.add(Lr),Lr),Dr=new xe.a({id:"hide",use:"hide-usage",viewBox:"0 0 18 18",content:''}),Hr=(ze.a.add(Dr),Dr),Ir=new xe.a({id:"services",use:"services-usage",viewBox:"0 0 18 18",content:''}),Vr=(ze.a.add(Ir),Ir),Nr=new xe.a({id:"download",use:"download-usage",viewBox:"0 0 20 20",content:''}),Rr=(ze.a.add(Nr),Nr),jr=new xe.a({id:"upload",use:"upload-usage",viewBox:"0 0 20 21",content:''}),Fr=(ze.a.add(jr),jr),Br=new xe.a({id:"print",use:"print-usage",viewBox:"0 0 21 20",content:''}),Wr=(ze.a.add(Br),Br),Ur=new xe.a({id:"room_overview",use:"room_overview-usage",viewBox:"0 0 24 25",content:''}),qr=(ze.a.add(Ur),Ur),Gr=new xe.a({id:"system_overview",use:"system_overview-usage",viewBox:"0 0 32 32",content:''}),Yr=(ze.a.add(Gr),Gr),$r=new xe.a({id:"thumb_up",use:"thumb_up-usage",viewBox:"0 0 24 24",content:''}),Zr=(ze.a.add($r),$r),Kr=new xe.a({id:"thumb_down",use:"thumb_down-usage",viewBox:"0 0 24 24",content:''}),Xr=(ze.a.add(Kr),Kr),Qr=new xe.a({id:"nav_arrow_goto",use:"nav_arrow_goto-usage",viewBox:"0 0 10 10",content:''}),Jr=(ze.a.add(Qr),Qr),eo=new xe.a({id:"bullet_one",use:"bullet_one-usage",viewBox:"0 0 10 10",content:''}),to=(ze.a.add(eo),eo),no=new xe.a({id:"bullet_two",use:"bullet_two-usage",viewBox:"0 0 10 10",content:''}),ro=(ze.a.add(no),no),oo=new xe.a({id:"bullet_three",use:"bullet_three-usage",viewBox:"0 0 10 10",content:''}),io=(ze.a.add(oo),oo),ao=new xe.a({id:"charts",use:"charts-usage",viewBox:"0 0 20 20",content:''}),co=(ze.a.add(ao),ao),so=new xe.a({id:"aggregation_avg",use:"aggregation_avg-usage",viewBox:"0 0 16 12",content:''}),lo=(ze.a.add(so),so),uo=new xe.a({id:"aggregation_max",use:"aggregation_max-usage",viewBox:"0 0 15 16",content:''}),fo=(ze.a.add(uo),uo),ho=new xe.a({id:"aggregation_med",use:"aggregation_med-usage",viewBox:"0 0 14 14",content:''}),po=(ze.a.add(ho),ho),vo=new xe.a({id:"aggregation_min",use:"aggregation_min-usage",viewBox:"0 0 15 16",content:''}),mo=(ze.a.add(vo),vo),go=new xe.a({id:"aggregation_sum_abs",use:"aggregation_sum_abs-usage",viewBox:"0 0 14 14",content:''}),yo=(ze.a.add(go),go),bo=new xe.a({id:"aggregation_sum",use:"aggregation_sum-usage",viewBox:"0 0 12 14",content:''}),wo=(ze.a.add(bo),bo),_o=new xe.a({id:"none_selected",use:"none_selected-usage",viewBox:"0 0 16 16",content:''}),xo=(ze.a.add(_o),_o),Co=new xe.a({id:"bookmark",use:"bookmark-usage",viewBox:"0 0 12 14",content:''}),zo=(ze.a.add(Co),Co),Mo=new xe.a({id:"switch_off",use:"switch_off-usage",viewBox:"0 0 14 15",content:''}),So=(ze.a.add(Mo),Mo),Oo=new xe.a({id:"settings",use:"settings-usage",viewBox:"0 0 17 15",content:''}),ko=(ze.a.add(Oo),Oo),Eo=new xe.a({id:"settings_h",use:"settings_h-usage",viewBox:"0 0 14 14",content:''}),Ao=(ze.a.add(Eo),Eo),To=new xe.a({id:"more",use:"more-usage",viewBox:"0 0 18 4",content:''}),Lo=(ze.a.add(To),To),Po=new xe.a({id:"alarms_new",use:"alarms_new-usage",viewBox:"0 0 22 20",content:''}),Do=(ze.a.add(Po),Po),Ho=new xe.a({id:"chevron_double",use:"chevron_double-usage",viewBox:"0 0 6 10",content:''}),Io=(ze.a.add(Ho),Ho),Vo=new xe.a({id:"documentation",use:"documentation-usage",viewBox:"0 0 24 24",content:''}),No=(ze.a.add(Vo),Vo),Ro=new xe.a({id:"unknownError",use:"unknownError-usage",viewBox:"0 0 16 16",content:''}),jo=(ze.a.add(Ro),Ro),Fo=new xe.a({id:"community",use:"community-usage",viewBox:"0 0 18 18",content:''}),Bo=(ze.a.add(Fo),Fo),Wo=new xe.a({id:"nav_right",use:"nav_right-usage",viewBox:"0 0 8 10",content:''}),Uo=(ze.a.add(Wo),Wo),qo=new xe.a({id:"nav_left",use:"nav_left-usage",viewBox:"0 0 8 10",content:''}),Go=(ze.a.add(qo),{add_user:gn,aggregation_avg:lo,aggregation_max:fo,aggregation_med:po,aggregation_min:mo,aggregation_sum_abs:yo,aggregation_sum:wo,alarm:Se,alarms_new:Do,alarm_bell:_r,alarmCritical:ke,alarmCriticalWarning:Le,alarmWarning:Ae,around_clock:De,bookmark:zo,correlation:Ie,correlation_inv:Ne,collapse:Tr,chart_added:je,check:Be,checkmark_s:Ue,chevron_double:Io,chevron_down:Ge,chevron_left:gr,chevron_right_s:Er,cross_s:$e,cluster:Ke,cluster_spaces:Qe,controller_kind:et,controller_name:nt,container:ot,dot:at,dashboard:Cr,dashboards:Mr,dashboard_add:Or,error:st,expand:ut,gear:ht,github:pt,google:mt,hamburger:yt,help:wt,holder:xt,insights:zt,line_chart:St,logo_s:dr,magnify:kt,more:Lo,node_default_l:At,node_hollow:Nt,nodes_hollow:jt,node_child:Ut,node_import_export:Gt,node_parent:Bt,node_notification_l:Lt,node_selected_l:Dt,none_selected:xo,notification:It,padlock:Jn,plus_mini_s:$t,plus:Kt,reload:en,sad:nn,save:on,text_add:cn,thumb_up:Zr,thumb_down:Xr,trashcan:ln,unreachable:fn,update:dn,update_pending:vn,user:bn,users:_n,warning:Cn,warning_triangle:Mn,x:On,checkmark_partial_s:En,search_s:Tn,sorting_vertical:ir,arrow_left:Hn,arrow_down:Pn,arrows_vertical:Vn,triangle_down:Rn,triangle:Fn,nav_dots:Wn,dots_2x3:qn,space:Yn,space_new:Zn,switch_off:So,settings:ko,settings_h:Ao,nodes:Xn,room:tr,room_new:rr,room_overview:qr,system_overview:Yr,node:cr,question:lr,questionFilled:fr,pencil:vr,pin_element:Pr,pod:Qt,view_list:br,hide:Hr,services:Vr,download:Rr,upload:Fr,print:Wr,nav_arrow_goto:Jr,bullet_one:to,bullet_two:ro,bullet_three:io,charts:co,documentation:No,unknownError:jo,community:Bo,navRight:Uo,navLeft:qo}),Yo=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},$o={small:"16px",medium:"24px",large:"40px"},Zo=c.d.svg.withConfig({displayName:"styled__StyledIcon",componentId:"sc-1pjn63w-0"})(N||(N=Yo(["\n height: ",";\n width: ",";\n opacity: ",";\n pointer-events: ",";\n ","\n ","\n ","\n ","\n ","\n"],["\n height: ",";\n width: ",";\n opacity: ",";\n pointer-events: ",";\n ","\n ","\n ","\n ","\n ","\n"])),(function(e){var t=e.size;return e.height||$o[t]}),(function(e){var t=e.size;return e.width||$o[t]}),(function(e){return e.disabled?.3:1}),(function(e){return e.disabled?"none":"unset"}),(function(e){var t=e.rotate;return t>0&&t<4&&"transform: rotate("+90*t+"deg);"}),(function(e){var t=e.theme,n=e.color;return n&&"fill: "+K(n)({theme:t})+";"}),(function(e){var t=e.theme,n=e.hoverColor;return n&&"&:hover { fill: "+K(n)({theme:t})+"; }"}),ne,ie),Ko=function(){return(Ko=Object.assign||function(e){for(var t,n=1,r=arguments.length;n tr th {\n border-spacing: 0;\n border-bottom: 1px solid #aeb3b7;\n padding-bottom: 5px;\n }\n"],["\n & > tr th {\n border-spacing: 0;\n border-bottom: 1px solid #aeb3b7;\n padding-bottom: 5px;\n }\n"]))),ac=function(){return(ac=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&"[object Array]"===Object.prototype.toString.call(e)},gc=k((function(e){return!!mc(e)||!!e&&("object"===typeof e&&(!D(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),yc=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var bc=E((function(e,t){return pc(e.length,(function(){return e.apply(t,arguments)}))}));function wc(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function _c(e,t,n,r){return e["@@transducer/result"](n[r](bc(e["@@transducer/step"],e),t))}var xc="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function Cc(e,t,n){if("function"===typeof e&&(e=function(e){return new yc(e)}(e)),gc(n))return function(e,t,n){for(var r=0,o=n.length;r=arguments.length)?s=n[c]:(s=arguments[i],i+=1),o[c]=s,O(s)||(a-=1),c+=1}return a<=0?r.apply(this,o):pc(a,e(t,o,r))}}(e,[],t))})),Ic=Object.prototype.toString,Vc=function(){return"[object Arguments]"===Ic.call(arguments)?function(e){return"[object Arguments]"===Ic.call(e)}:function(e){return T("callee",e)}}(),Nc=!{toString:null}.propertyIsEnumerable("toString"),Rc=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],jc=function(){return arguments.propertyIsEnumerable("length")}(),Fc=function(e,t){for(var n=0;n=0;)T(t=Rc[n],e)&&!Fc(r,t)&&(r[r.length]=t),n-=1;return r})):k((function(e){return Object(e)!==e?[]:Object.keys(e)})),Wc=E(Ec(["fantasy-land/map","map"],Dc,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Hc(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Cc((function(n,r){return n[r]=e(t[r]),n}),{},Bc(t));default:return Ac(e,t)}})));function Uc(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function qc(e,t,n){for(var r=0,o=n.length;r=0;){if(n[i]===e)return r[i]===t;i-=1}switch(o){case"Map":return e.size===t.size&&$c(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&$c(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=Bc(e);if(a.length!==Bc(t).length)return!1;var c=n.concat([e]),s=r.concat([t]);for(i=a.length-1;i>=0;){var l=a[i];if(!T(l,t)||!Zc(t[l],e[l],c,s))return!1;i-=1}return!0}var Kc=E((function(e,t){return Zc(e,t,[],[])}));function Xc(e,t){return function(e,t,n){var r,o;if("function"===typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n=0}var Qc=function(e){return(e<10?"0":"")+e};Date.prototype.toISOString;var Jc=function(){for(var e=0,t=0,n=arguments.length;t=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var ls=null;function us(e){if(void 0===e&&(e=!1),null===ls||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ls="positive-descending":(t.scrollLeft=1,ls=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ls}return ls}var fs=150,hs=function(e,t){return e};function ds(e){var t,n,r=e.getItemOffset,o=e.getEstimatedTotalSize,a=e.getItemSize,c=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Object(rs.a)(Object(rs.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(rs.a)(Object(rs.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=is((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=is((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,i=o.direction,c=o.itemSize,s=o.layout,l=n._getItemStyleCache(f&&c,f&&s,f&&i);if(l.hasOwnProperty(e))t=l[e];else{var u=r(n.props,e,n._instanceProps),h=a(n.props,e,n._instanceProps),d="horizontal"===i||"horizontal"===s,p="rtl"===i,v=d?u:0;l[e]=t={position:"absolute",left:p?void 0:v,right:p?v:void 0,top:d?0:u,height:d?"100%":h,width:d?h:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=is((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(us()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset0)for(var O=z;O<=M;O++)S.push(Object(i.createElement)(t,{data:f,key:d(O,f),index:O,isScrolling:y?w:void 0,style:this._getItemStyle(O)}));var k=o(this.props,this._instanceProps);return Object(i.createElement)(v||m||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:Object(ts.a)({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},g)},Object(i.createElement)(s||l||"div",{children:S,ref:c,style:{height:_?"100%":k,pointerEvents:w?"none":void 0,width:_?k:"100%"}}))},n._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,c=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,c,s)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),f=o&&"backward"!==i?1:Math.max(1,n),h=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-f),Math.max(0,Math.min(t-1,u+h)),c,u]},t}(i.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var ps=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vs=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var c=o[i];a=c.offset+c.size}for(var s=i+1;s<=t;s++){var l=r(s);o[s]={offset:a,size:l},a+=l}n.lastMeasuredIndex=t}return o[t]},ms=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=vs(e,i,t).offset;if(a===o)return i;ao&&(n=i-1)}return r>0?r-1:0},gs=function(e,t,n,r){for(var o=e.itemCount,i=1;n=n&&(i=n-1),i>=0){var c=r[i];a=c.offset+c.size}return a+(n-i-1)*o},bs=ds({getItemOffset:function(e,t,n){return vs(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:ys,getOffsetForIndexAndAlignment:function(e,t,n,r,o){var i=e.direction,a=e.height,c=e.layout,s=e.width,l="horizontal"===i||"horizontal"===c?s:a,u=vs(e,t,o),f=ys(e,o),h=Math.max(0,Math.min(f-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch("smart"===n&&(n=r>=d-l&&r<=h+l?"auto":"center"),n){case"start":return h;case"end":return d;case"center":return Math.round(d+(h-d)/2);case"auto":default:return r>=d&&r<=h?r:r0?r[o].offset:0)>=n?ms(e,t,o,0,n):gs(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,c=e.layout,s=e.width,l="horizontal"===o||"horizontal"===c?s:i,u=vs(e,t,r),f=n+l,h=u.offset+u.size,d=t;d=d-u&&r<=h+u?"auto":"center"),n){case"start":return h;case"end":return d;case"center":var p=Math.round(d+(h-d)/2);return pf+Math.floor(u/2)?f:p;case"auto":default:return r>=d&&r<=h?r:r *:not(:last-child) {\n margin-"+(r||o?"bottom":"right")+": "+t*n+"px;\n }\n "},fu=function(e){return"flex-direction: "+function(e,t,n){return e?"column":t?"column-reverse":n?"row-reverse":"row"}(e.column,e.columnReverse,e.rowReverse)+";"},hu=function(){return(hu=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.clientHeight}));return n.forEach((function(e){return e.addEventListener("scroll",t,{capture:!1,passive:!0})})),function(){return n.forEach((function(e){return e.removeEventListener("scroll",t)}))}};n=r();var o=function(){n(),n=r(),t()};return window.addEventListener("resize",o),function(){n(),window.removeEventListener("resize",o)}}),[e,t])}(n,m),Ul(p,l),Bl(u);var g=Fl();return jl.a.createPortal(a.a.createElement(xu,Cu({ref:v,width:{max:"100%"},column:!0,"data-testid":"drop"},h),f),g)})),Ou=function(){return(Ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n4)return lf;var n=t.map((function(t){return ee(e,t)}));return 1===n.length?{top:n[0],right:n[0],bottom:n[0],left:n[0]}:2===n.length?{top:n[0],right:n[1],bottom:n[0],left:n[1]}:3===n.length?{top:n[0],right:n[1],bottom:n[2],left:n[1]}:{top:n[0],right:n[1],bottom:n[2],left:n[3]}},ff=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},hf=function(e,t){return"0"!==e&&"0"!==t?"calc((100% - "+e+") - "+t+")":"0"===e&&"0"===t?"100%":"calc(100% - "+("0"===e?t:e)+")"},df=new Set(["top","center","bottom"]),pf=new Set(["bottom-left","left","top-left"]),vf=new Set(["right","center","left"]),mf=new Set(["top-left","top","top-right"]),gf=new Set(["top-right","right","bottom-right"]),yf=new Set(["bottom-right","bottom","bottom-left"]),bf=c.d.div.attrs((function(e){var t=e.theme,n=e.margin;return{marginDimensions:uf(t,n)}})).withConfig({displayName:"container__Container",componentId:"sc-7g83tw-0"})(Ml||(Ml=ff(["\n position: ",";\n display: flex;\n z-index: 35;\n outline: none;\n pointer-events: all;\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n"],["\n position: ",";\n display: flex;\n z-index: 35;\n outline: none;\n pointer-events: all;\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n ","\n"])),(function(e){return e.isAbsolute?"absolute":"fixed"}),(function(e){var t=e.marginDimensions,n=t.top,r=t.bottom;return"max-height: "+hf(n,r)+";"}),(function(e){var t=e.marginDimensions,n=t.right,r=t.left;return"max-width: "+hf(r,n)+";"}),(function(e){var t=e.position,n=e.full,r=e.marginDimensions;return"vertical"===n||!0===n||mf.has(t)?"top: "+r.top+";":vf.has(t)?"top: 50%;":""}),(function(e){var t=e.position,n=e.full,r=e.marginDimensions;return"horizontal"===n||!0===n||gf.has(t)?"right: "+r.right+";":""}),(function(e){var t=e.position,n=e.full,r=e.marginDimensions;return"vertical"===n||!0===n||yf.has(t)?"bottom: "+r.bottom+";":""}),(function(e){var t=e.position,n=e.full,r=e.marginDimensions;return"horizontal"===n||!0===n||pf.has(t)?"left: "+r.left+";":df.has(t)?"left: 50%;":""}),(function(e){var t=e.full,n=e.position,r=function(){var e=!0!==t&&"horizontal"!==t&&df.has(n),r=!0!==t&&"vertical"!==t&&vf.has(n);return e||r?e&&!r?"translateX(-50%)":!e&&r?"translateY(-50%)":"translate(-50%, -50%)":""}();return r&&"transform: "+r+";"}),(function(e){return e.borderShadow&&"box-shadow: 0px 2px 68px rgba(0, 0, 0, 0.288);"})),wf=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},_f=c.d.div.withConfig({displayName:"backdropContainer__Container",componentId:"sc-1fhdzzd-0"})(Sl||(Sl=wf(["\n position: fixed;\n inset: 0px;\n z-index: 35;\n pointer-events: none;\n outline: none;\n"],["\n position: fixed;\n inset: 0px;\n z-index: 35;\n pointer-events: none;\n outline: none;\n"]))),xf=c.d.div.withConfig({displayName:"backdropContainer__Backdrop",componentId:"sc-1fhdzzd-1"})(Ol||(Ol=wf(["\n position: absolute;\n inset: 0px;\n pointer-events: all;\n background-color: rgba(0, 0, 0, 0.3);\n"],["\n position: absolute;\n inset: 0px;\n pointer-events: all;\n background-color: rgba(0, 0, 0, 0.3);\n"]))),Cf=function(e){var t=e.children;return a.a.createElement(_f,{"data-testid":"layer-backdropContainer"},a.a.createElement(xf,{"data-testid":"layer-backdrop"}),t)},zf=[],Mf=function(e){var t=e.position,n=void 0===t?"center":t,r=e.full,o=void 0!==r&&r,c=e.backdrop,s=void 0===c||c,l=e.margin,u=void 0===l?zf:l,f=e.onClickOutside,h=e.onEsc,d=e.borderShadow,p=e.children,v=Object(i.useRef)();Ul(v,f),Bl(h);var m=Fl(),g=a.a.createElement(bf,{isAbsolute:s,ref:v,full:o,position:n,margin:u,borderShadow:d,"data-testid":"layer-container"},p);return jl.a.createPortal(s?a.a.createElement(Cf,null,g):g,m)},Sf=function(e,t){var n=ea();Object(i.useEffect)((function(){if(!n)return e()}),t)},Of=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},kf=function(){return(kf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n * {\n min-width: initial;\n max-width: initial;\n }\n"],["\n width: 100%;\n\n .tabs > * {\n min-width: initial;\n max-width: initial;\n }\n"]))),Xf=function(){return a.a.createElement(yu,{overflow:{vertical:"auto"},"data-testid":"dashboard"},a.a.createElement(Kf,null,a.a.createElement(Js,{label:"Using a Mouse"},a.a.createElement(Yf,null)),a.a.createElement(Js,{label:"Using Touch"},a.a.createElement($f,null))))},Qf=n(136),Jf=n.n(Qf),eh=n(185),th=n.n(eh),nh=n(63),rh=n.n(nh),oh=n(74),ih=n.n(oh),ah=n(39),ch=n.n(ah),sh=n(16),lh=n.n(sh),uh=n(102),fh=n.n(uh),hh=n(166),dh=n.n(hh);function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vh(e){for(var t=1;t1)return console.warn("search-ui-site-search-connector: Cannot apply more than 1 none-value filters to a single field"),e;var o=r[0];if(o.from||0===o.from||o.to||0===o.to){o.name;var i=fh()(o,["name"]);return e[n]=vh({type:"range"},i),e}return e}return e[n]=vh(vh({},"any"===t.type?{}:{type:"and"}),{},{values:r}),e}),{})}(void 0!==t.filters?t.filters:e.filters),l=void 0!==t.current?t.current:e.current,u=void 0!==t.resultsPerPage?t.resultsPerPage:e.resultsPerPage,f=void 0!==t.sortDirection?t.sortDirection:e.sortDirection,h=void 0!==t.sortField?t.sortField:e.sortField,d=(i=t.result_fields)?[Object.keys(i),Object.entries(i).reduce((function(e,t){var n=ch()(t,2),r=n[0],o=n[1];return o.snippet?vh(vh({},e),{},lh()({},r,o.snippet)):e}),{})]:[],p=ch()(d,2),v=p[0],m=p[1],g=(a=t.search_fields)?Object.keys(a):[],y=e.searchTerm;return gh(gh(gh(gh(gh(gh(gh(gh(gh(gh({},u&&{per_page:u}),l&&{page:l}),f&&{sort_direction:lh()({},n,f)}),h&&{sort_field:lh()({},n,h)}),s&&{filters:lh()({},n,s)}),c&&{facets:lh()({},n,c)}),v&&{fetch_fields:lh()({},n,v)}),m&&{highlight_fields:lh()({},n,m)}),g&&!!g.length&&{search_fields:lh()({},n,g)}),{},{q:y})}function bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wh(e){for(var t=1;t0&&{facets:a})}var zh=n(186);function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sh(e){for(var t=1;t=200&&a.status<300)){e.next=16;break}return e.abrupt("return",c);case 16:throw s=c&&c.error?c.error:a.status,new Error(s);case 18:case"end":return e.stop()}}),e,null,[[4,10]])})))).apply(this,arguments)}function Eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ah(e,t,n){var r=new Headers({"x-swiftype-integration":"search-ui","x-swiftype-integration-version":zh.a}),o=Object.entries(function(e){for(var t=1;t0&&console.warn("search-ui-site-search-connector: Site Search does not support tags on click"),this._get("analytics/pc",{t:(new Date).getTime(),q:t,doc_id:n})}},{key:"onAutocompleteResultClick",value:function(e){var t=e.query,n=e.documentId;e.tags&&console.warn("search-ui-site-search-connector: Site Search does not support tags on autocompleteClick"),this._get("analytics/pas",{t:(new Date).getTime(),q:t,doc_id:n})}},{key:"onSearch",value:function(e,t){var n=this,r=yh(e,t,this.documentType);return this.beforeSearchCall(r,(function(e){return n.request("POST","engines/search.json",e).then((function(e){return Ch(e,n.documentType)}))}))}},{key:"onAutocomplete",value:function(){var e=th()(Jf.a.mark((function e(t,n){var r,o,i=this;return Jf.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.searchTerm,!n.results){e.next=4;break}return o=yh({searchTerm:r},n.results,this.documentType),e.abrupt("return",this.beforeAutocompleteResultsCall(o,(function(e){return i.request("POST","engines/suggest.json",e).then((function(e){return{autocompletedResults:Ch(e,i.documentType).results}}))})));case 4:n.suggestions&&console.warn("search-ui-site-search-connector: Site Search does support query suggestions on autocomplete");case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),Lh=n(5),Ph=n.n(Lh);function Dh(e){return"/"===e.charAt(0)}function Hh(e,t){for(var n=t,r=n+1,o=e.length;r=0;u--){var f=o[u];"."===f?Hh(o,u):".."===f?(Hh(o,u),l++):l&&(Hh(o,u),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&Dh(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var Vh=!0,Nh="Invariant failed";var Rh=function(e,t){if(!e){if(Vh)throw new Error(Nh);throw new Error(Nh+": "+(t||""))}};function jh(e){return"/"===e.charAt(0)?e:"/"+e}function Fh(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Bh(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Wh(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Uh(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(ts.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Ih(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function qh(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r1&&(c.current=n),t&&(c.q=t),o&&(c.size=o),r&&r.length>0&&(c.filters=r),a&&(c["sort-field"]=a,c["sort-direction"]=i),c}(e))}var fd=function(){function e(){rh()(this,e),this.history=Xh(),this.lastPushSearchString=""}return ih()(e,[{key:"getStateFromURL",value:function(){return ld(td.parse(this.history.location.search))}},{key:"pushStateToURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.replaceUrl,r=void 0!==n&&n,o=ud(e);this.lastPushSearchString=o;var i=r?this.history.replace:this.history.push;i({search:"?".concat(o)})}},{key:"onURLStateChange",value:function(e){var t=this;this.unlisten=this.history.listen((function(n){"?".concat(t.lastPushSearchString)!==n.search&&(t.lastPushSearchString="",e(ld(td.parse(n.search))))}))}},{key:"tearDown",value:function(){this.unlisten()}}]),e}(),hd=function(){function e(){rh()(this,e),lh()(this,"requestSequence",0),lh()(this,"lastCompleted",0)}return ih()(e,[{key:"next",value:function(){return++this.requestSequence}},{key:"isOldRequest",value:function(e){return e3?r-3:0),i=3;i2&&void 0!==arguments[2]?arguments[2]:"all";this.debug&&(n=console).log.apply(n,["Search UI: Action","addFilter"].concat(Array.prototype.slice.call(arguments)));var o=this.state.filters,i=o.find((function(t){return t.field===e&&t.type===r}))||{},a=o.filter((function(t){return t.field!==e||t.type!==r}))||[],c=i.values||[],s=c.find((function(e){return xd(e,t)}))?c:c.concat(t);this._updateSearchResults({current:1,filters:[].concat(gd()(a),[{field:e,values:s,type:r}])})}function zd(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.debug&&(t=console).log.apply(t,["Search UI: Action","trackAutocompleteClickThrough"].concat(Array.prototype.slice.call(arguments)));var r=this.state,o=r.autocompletedResultsRequestId,i=r.searchTerm;this.events.autocompleteResultClick({query:i,documentId:e,requestId:o,tags:n})}function Md(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.debug&&(e=console).log.apply(e,["Search UI: Action","clearFilters"].concat(Array.prototype.slice.call(arguments)));var n=this.state.filters.filter((function(e){var n=e.field;return t.includes(n)}));this._updateSearchResults({current:1,filters:n})}function Sd(e,t,n){var r;this.debug&&(r=console).log.apply(r,["Search UI: Action","removeFilter"].concat(Array.prototype.slice.call(arguments)));var o=this.state.filters,i=o;i=!t&&n?o.filter((function(t){return!(t.field===e&&t.type===n)})):t?function(e,t,n,r){return e.reduce((function(e,o){var i=o.field,a=o.values,c=o.type,s=fh()(o,["field","values","type"]);if(i===t&&(!r||c===r)){var l=a.filter((function(e){return!xd(e,n)}));return l.length>0?e.concat(_d({field:i,values:l,type:c},s)):e}return e.concat(o)}),[])}(o,e,t,n):o.filter((function(t){return t.field!==e})),this._updateSearchResults({current:1,filters:i})}function Od(){var e;this.debug&&(e=console).log.apply(e,["Search UI: Action","reset"].concat(Array.prototype.slice.call(arguments))),this._setState(this.startingState),this.trackUrlState&&this.URLManager.pushStateToURL(this.state)}function kd(e){var t;this.debug&&(t=console).log.apply(t,["Search UI: Action","setCurrent"].concat(Array.prototype.slice.call(arguments))),this._updateSearchResults({current:e})}function Ed(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";this.debug&&(n=console).log.apply(n,["Search UI: Action","setFilter"].concat(Array.prototype.slice.call(arguments)));var o=this.state.filters;o=o.filter((function(t){return t.field!==e||t.type!==r})),this._updateSearchResults({current:1,filters:[].concat(gd()(o),[{field:e,values:[t],type:r}])})}function Ad(e){var t;this.debug&&(t=console).log.apply(t,["Search UI: Action","setResultsPerPage"].concat(Array.prototype.slice.call(arguments))),this._updateSearchResults({current:1,resultsPerPage:e})}function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ld(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.autocompleteMinimumCharacters,o=void 0===r?0:r,i=n.autocompleteResults,a=void 0!==i&&i,c=n.autocompleteSuggestions,s=void 0!==c&&c,l=n.shouldClearFilters,u=void 0===l||l,f=n.refresh,h=void 0===f||f,d=n.debounce,p=void 0===d?0:d;this.debug&&(t=console).log.apply(t,["Search UI: Action","setSearchTerm"].concat(Array.prototype.slice.call(arguments))),this._setState({searchTerm:e}),h&&this.debounceManager.runWithDebounce(p,"_updateSearchResults",this._updateSearchResults,function(e){for(var t=1;t=o&&this.debounceManager.runWithDebounce(p,"_updateAutocomplete",this._updateAutocomplete,e,{autocompleteResults:a,autocompleteSuggestions:s})}function Pd(e,t){var n;this.debug&&(n=console).log.apply(n,["Search UI: Action","setSort"].concat(Array.prototype.slice.call(arguments))),this._updateSearchResults({current:1,sortDirection:t,sortField:e})}function Dd(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.debug&&(t=console).log.apply(t,["Search UI: Action","trackClickThrough"].concat(Array.prototype.slice.call(arguments)));var r=this.state,o=r.requestId,i=r.searchTerm;this.events.resultClick({query:i,documentId:e,requestId:o,tags:n})}var Hd="search-ui-screen-reader-notifications",Id="undefined"!==typeof document,Vd=function(){if(Id){var e=document.getElementById(Hd);return e||((e=document.createElement("div")).id=Hd,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.margin="-1px",e.style.padding="0",e.style.border="0",e.style.overflow="hidden",e.style.clip="rect(0 0 0 0)",document.body.appendChild(e),e)}},Nd=function(e){Id&&(Vd().textContent=e)},Rd={searchResults:function(e){var t=e.start,n=e.end,r=e.totalResults,o=e.searchTerm,i="Showing ".concat(t," to ").concat(n," results out of ").concat(r);return o&&(i+=', searching for "'.concat(o,'".')),i}};function jd(e,t){if(this.hasA11yNotifications){var n=this.a11yNotificationMessages[e];if(n){var r=n(t);Nd(r),this.debug&&console.log("Search UI: Action","a11yNotify",{messageFunc:e,messageArgs:t,message:r})}else{var o='Could not find corresponding message function in a11yNotificationMessages: "'.concat(e,'"');console.warn("Action","a11yNotify",o)}}}function Fd(e,t,n){if(n){if(t){var r=t[e].bind(t);return function(){for(var e=arguments.length,t=new Array(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=t.apiConnector,r=t.onSearch,o=t.onAutocomplete,i=t.onResultClick,a=t.onAutocompleteResultClick;rh()(this,e),this.search=Fd("onSearch",n,r),this.autocomplete=Fd("onAutocomplete",n,o),this.resultClick=Fd("onResultClick",n,i),this.autocompleteResultClick=Fd("onAutocompleteResultClick",n,a)};function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ud(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Object.entries(e).reduce((function(e,r){var o=ch()(r,2),i=o[0],a=o[1];return t[i]&&"function"===typeof t[i]&&!t[i]({filters:n})?e:(e[i]=a,e)}),{})}var $d=function(){function e(t){var n,r=this,i=t.apiConnector,a=t.autocompleteQuery,c=void 0===a?{}:a,s=t.debug,l=t.initialState,u=t.onSearch,f=t.onAutocomplete,h=t.onResultClick,d=t.onAutocompleteResultClick,p=t.searchQuery,v=void 0===p?{}:p,m=t.trackUrlState,g=void 0===m||m,y=t.urlPushDebounceLength,b=void 0===y?500:y,w=t.hasA11yNotifications,_=void 0!==w&&w,x=t.a11yNotificationMessages,C=void 0===x?{}:x,z=t.alwaysSearchOnInitialLoad,M=void 0!==z&&z;rh()(this,e),lh()(this,"state",Gd),lh()(this,"_updateAutocomplete",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.autocompleteResults,o=t.autocompleteSuggestions,i=r.autocompleteRequestSequencer.next(),a=Ud(Ud({},n&&{results:r.autocompleteQuery.results||{}}),o&&{suggestions:r.autocompleteQuery.suggestions||{}});return r.events.autocomplete({searchTerm:e},a).then((function(e){r.autocompleteRequestSequencer.isOldRequest(i)||(r.autocompleteRequestSequencer.completed(i),r._setState(e))}))})),lh()(this,"_updateSearchResults",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.skipPushToUrl,o=void 0!==n&&n,i=t.replaceUrl,a=void 0!==i&&i,c=Ud(Ud({},r.state),e),s=c.current,l=c.filters,u=c.resultsPerPage,f=c.searchTerm,h=c.sortDirection,d=c.sortField;r.debounceManager.cancelByName("_updateSearchResults"),r._setState({current:s,error:"",filters:l,resultsPerPage:u,searchTerm:f,sortDirection:h,sortField:d}),r._makeSearchRequest({skipPushToUrl:o,replaceUrl:a})})),lh()(this,"_makeSearchRequest",vd.debounce(0,(function(e){var t=e.skipPushToUrl,n=e.replaceUrl,o=r.state,i=o.current,a=o.filters,c=o.resultsPerPage,s=o.searchTerm,l=o.sortDirection,u=o.sortField;r._setState({isLoading:!0});var f,h,d=r.searchRequestSequencer.next(),p=r.searchQuery,v=(p.filters,p.conditionalFacets),m=Ud(Ud({},fh()(p,["filters","conditionalFacets"])),{},{facets:Yd(r.searchQuery.facets,v,a)}),g=Ud(Ud({},qd(r.state)),{},{filters:(f=a,h=r.searchQuery.filters,h?h.reduce((function(e,t){return e.find((function(e){return e.type===t.type&&e.field===t.field}))?e:[].concat(gd()(e),[t])}),f):f)});return r.events.search(g,m).then((function(e){if(!r.searchRequestSequencer.isOldRequest(d)){r.searchRequestSequencer.completed(d);var o=e.totalResults,f=0===o?0:(i-1)*c+1,h=o<=f+c?o:f+c-1;if(r._setState(Ud(Ud({isLoading:!1,resultSearchTerm:s,pagingStart:f,pagingEnd:h},e),{},{wasSearched:!0})),r.hasA11yNotifications){var p={start:f,end:h,totalResults:o,searchTerm:s};r.actions.a11yNotify("searchResults",p)}!t&&r.trackUrlState&&r.debounceManager.runWithDebounce(r.urlPushDebounceLength,"pushStateToURL",r.URLManager.pushStateToURL.bind(r.URLManager),{current:i,filters:a,resultsPerPage:c,searchTerm:s,sortDirection:l,sortField:u},{replaceUrl:n})}}),(function(e){r._setState({error:"An unexpected error occurred: ".concat(e.message)})}))}))),this.actions=Object.entries(o).reduce((function(e,t){var n=ch()(t,2),o=n[0],i=n[1];return Ud(Ud({},e),{},lh()({},o,i.bind(r)))}),{}),Object.assign(this,this.actions),this.events=new Bd({apiConnector:i,onSearch:u,onAutocomplete:f,onResultClick:h,onAutocompleteResultClick:d}),this.debug=s,this.debug&&(console.warn("Search UI Debugging is enabled. This should be turned off in production deployments."),window.searchUI=this),this.autocompleteRequestSequencer=new hd,this.searchRequestSequencer=new hd,this.debounceManager=new vd,this.autocompleteQuery=c,this.searchQuery=v,this.subscriptions=[],this.trackUrlState=g,this.urlPushDebounceLength=b,this.alwaysSearchOnInitialLoad=M,g?(this.URLManager=new fd,n=this.URLManager.getStateFromURL(),this.URLManager.onURLStateChange((function(e){r._updateSearchResults(Ud(Ud({},Gd),e),{skipPushToUrl:!0})}))):n={},this.hasA11yNotifications=_,this.hasA11yNotifications&&Vd(),this.a11yNotificationMessages=Ud(Ud({},Rd),C),this.startingState=Ud(Ud({},this.state),l);var S=qd(Ud(Ud({},this.startingState),n));this.state=Ud(Ud({},this.state),S),(S.searchTerm||S.filters.length>0||this.alwaysSearchOnInitialLoad)&&this._updateSearchResults(S,{replaceUrl:!0})}return ih()(e,[{key:"_setState",value:function(e){var t=Ud(Ud({},this.state),e);this.debug&&console.log("Search UI: State Update",e,t),this.state=t,this.subscriptions.forEach((function(e){return e(t)}))}},{key:"setSearchQuery",value:function(e){this.searchQuery=e,this._updateSearchResults()}},{key:"setAutocompleteQuery",value:function(e){this.autocompleteQuery=e}},{key:"subscribeToStateChanges",value:function(e){this.subscriptions.push(e)}},{key:"unsubscribeToStateChanges",value:function(e){this.subscriptions=this.subscriptions.filter((function(t){return t!==e}))}},{key:"tearDown",value:function(){this.subscriptions=[],this.URLManager&&this.URLManager.tearDown()}},{key:"getActions",value:function(){return this.actions}},{key:"getState",value:function(){return Ud({},this.state)}}]),e}(),Zd=a.a.createContext(),Kd={moreFilters:function(e){var t=e.visibleOptionsCount,n=e.showingAll?"All ":"";return n+="".concat(t," options shown.")}};function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qd(e){for(var t=1;t0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1&&e}));return e[n]=e[n]||[],e[n].push(t),e}),{})},Pp=function(){return(Pp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n * {\n min-width: 160px;\n max-width: 100%;\n }\n"],["\n width: 100%;\n\n .tabs > * {\n min-width: 160px;\n max-width: 100%;\n }\n"]))),Up=["learn","community"],qp={learn:"learn.netdata",community:"discourse","github-cloud":"netdata-cloud","github-agent":"netdata"},Gp={learn:"Documentation",community:"Community","github-cloud":"Github / Cloud","github-agent":"Github / Agent"},Yp=function(e){var t=e.results;return a.a.createElement(yu,{overflow:{vertical:"auto"},"data-testid":"searchResults",flex:!0,width:"1000px",height:"60vh"},a.a.createElement(Wp,null,Up.map((function(e){var n=t[qp[e]],r=null===n||void 0===n?void 0:n.length;return a.a.createElement(Js,{key:e,label:Gp[e]+(r?" ("+r+")":"")},a.a.createElement(Bp,null,r?n.map((function(e){var t=e.id,n=e.url,r=e.title,o=e.description;return a.a.createElement(Fp,{key:t.raw,url:n.raw,title:r,description:o})})):a.a.createElement(yu,{padding:[4]},a.a.createElement(Ui,{strong:!0},"No results"))))}))))},$p=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Zp=Object(c.d)(yu).attrs({padding:[6],background:"mainBackground",gap:6,column:!0,round:!0,overflow:{vertical:"auto"}}).withConfig({displayName:"documentation__Container",componentId:"sc-3qq6g2-0"})(bp||(bp=$p(["\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n"],["\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n"]))),Kp=function(e){var t=e.children,n=e.onClose;return a.a.createElement(yu,{width:"100%",alignItems:"center",justifyContent:"between",padding:[0,0,4],border:{side:"bottom",color:"disabled"}},a.a.createElement(yu,{gap:2,alignItems:"center"},t),a.a.createElement(ti,{icon:"x",neutral:!0,small:!0,onClick:n,flavour:"borderless","data-testid":"documentation-help-close"}))},Xp="general",Qp="dashboard",Jp="search",ev={general:"Need help?",dashboard:"Need help?"},tv=function(e){var t=e.app,n=void 0===t?"cloud":t,r=e.onCloseClick,o=e.onVisitDocumentClick,c=e.onOpenIssueClick,s=e.onOpenBugClick,l=e.onContributeClick,u=e.onSupportClick,f=e.children,h=Hf(),d=h[0],p=h[1],v=Object(i.useState)(Xp),m=v[0],g=v[1],y=m===Xp,b=Object(i.useCallback)((function(){return g(Qp)}),[]),w=Object(i.useCallback)((function(){return g(Xp)}),[]),_=Object(i.useCallback)((function(){return g(Jp)}),[]),x=Object(i.useCallback)((function(){p(),r&&r()}),[]);return a.a.createElement(i.Fragment,null,f(p,d),d&&a.a.createElement(Mf,{position:"bottom-left",backdrop:!0,margin:[5,17],onClickOutside:p,onEsc:p},a.a.createElement(Ip,null,(function(e){var t=e.searchTerm,r=e.setSearchTerm,f=e.results,h=e.reset;return a.a.createElement(i.Fragment,null,a.a.createElement(Zp,{width:{max:y?"325px":m===Qp?"600px":"100%"},"data-testid":"documentation-layer"},a.a.createElement(Kp,{onClose:x},y&&a.a.createElement(Qo,{color:"text",name:"questionFilled",width:"18px",height:"18px"}),!y&&a.a.createElement(ti,{icon:"arrow_left",neutral:!0,small:!0,onClick:function(){w(),h()},flavour:"borderless","data-testid":"dashboard-back"}),a.a.createElement(Ri,{margin:[0]},ev[m]||ev.general)),m!==Qp&&a.a.createElement(Vp,{defaultValue:t,setSearchTerm:r,setSearchView:_}),y&&a.a.createElement(yu,{gap:6,overflow:{vertical:"auto"},column:!0,padding:[1]},a.a.createElement(Ff,{app:n,onDashboardClick:b,onVisitDocumentClick:o,onOpenIssueClick:c,onOpenBugClick:s,onContributeClick:l,onSupportClick:u})),m===Qp&&a.a.createElement(Xf,null),m===Jp&&a.a.createElement(Yp,{results:f})))}))))},nv=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},rv=Object(c.d)(yu).attrs((function(e){var t=e.active;e.fixed;return{gap:1,background:t?"mainBackground":"elementBackground",padding:[2,3],round:{side:"top"},border:{side:"all",color:"selected"},alignItems:"center",justifyContent:"start",position:"relative",zIndex:t?2:0}})).withConfig({displayName:"styledTab__StyledTab",componentId:"lbz6co-0"})(wp||(wp=nv(["\n top: ",";\n border-bottom-color: ",";\n cursor: pointer;\n"],["\n top: ",";\n border-bottom-color: ",";\n cursor: pointer;\n"])),(function(e){return!e.active&&"2px"}),(function(e){return e.active&&K("mainBackground")})),ov=function(){return(ov=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||(o[n]=e[n]);return o}var bv=n(219),wv=n.n(bv),_v=n(214),xv=[],Cv=[null,null];function zv(e,t){var n=e[1];return[t.payload,n+1]}function Mv(e,t,n){mv((function(){return e.apply(void 0,t)}),n)}function Sv(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function Ov(e,t,n,r,o,i,a,c,s,l){if(e){var u=!1,f=null,h=function(){if(!u){var e,n,h=t.getState();try{e=r(h,o.current)}catch(d){n=d,f=d}n||(f=null),e===i.current?a.current||s():(i.current=e,c.current=e,a.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var kv=function(){return[null,0]};function Ev(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,c=n.methodName,s=void 0===c?"connectAdvanced":c,l=n.renderCountProp,u=void 0===l?void 0:l,f=n.shouldHandleStateChanges,h=void 0===f||f,d=n.storeKey,p=void 0===d?"store":d,v=(n.withRef,n.forwardRef),m=void 0!==v&&v,g=n.context,y=void 0===g?fv:g,b=yv(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),w=y;return function(t){var n=t.displayName||t.name||"Component",r=o(n),c=lv({},b,{getDisplayName:o,methodName:s,renderCountProp:u,shouldHandleStateChanges:h,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),l=b.pure;var f=l?i.useMemo:function(e){return e()};function d(n){var r=Object(i.useMemo)((function(){var e=n.reactReduxForwardedRef,t=yv(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),o=r[0],s=r[1],l=r[2],u=Object(i.useMemo)((function(){return o&&o.Consumer&&Object(_v.isContextConsumer)(a.a.createElement(o.Consumer,null))?o:w}),[o,w]),d=Object(i.useContext)(u),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var v=p?n.store:d.store,m=Object(i.useMemo)((function(){return function(t){return e(t.dispatch,c)}(v)}),[v]),g=Object(i.useMemo)((function(){if(!h)return Cv;var e=new vv(v,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[v,p,d]),y=g[0],b=g[1],_=Object(i.useMemo)((function(){return p?d:lv({},d,{subscription:y})}),[p,d,y]),x=Object(i.useReducer)(zv,xv,kv),C=x[0][0],z=x[1];if(C&&C.error)throw C.error;var M=Object(i.useRef)(),S=Object(i.useRef)(l),O=Object(i.useRef)(),k=Object(i.useRef)(!1),E=f((function(){return O.current&&l===S.current?O.current:m(v.getState(),l)}),[v,C,l]);Mv(Sv,[S,M,k,l,E,O,b]),Mv(Ov,[h,v,y,m,S,M,k,O,b,z],[v,y,m]);var A=Object(i.useMemo)((function(){return a.a.createElement(t,lv({},E,{ref:s}))}),[s,t,E]);return Object(i.useMemo)((function(){return h?a.a.createElement(u.Provider,{value:_},A):A}),[u,A,_])}var v=l?a.a.memo(d):d;if(v.WrappedComponent=t,v.displayName=r,m){var g=a.a.forwardRef((function(e,t){return a.a.createElement(v,lv({},e,{reactReduxForwardedRef:t}))}));return g.displayName=r,g.WrappedComponent=t,wv()(g,t)}return wv()(v,t)}}function Av(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function Tv(e,t){if(Av(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Wv(e,t){return e===t}function Uv(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Ev:n,o=t.mapStateToPropsFactories,i=void 0===o?Iv:o,a=t.mapDispatchToPropsFactories,c=void 0===a?Hv:a,s=t.mergePropsFactories,l=void 0===s?Nv:s,u=t.selectorFactory,f=void 0===u?Fv:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,u=void 0===s||s,h=a.areStatesEqual,d=void 0===h?Wv:h,p=a.areOwnPropsEqual,v=void 0===p?Tv:p,m=a.areStatePropsEqual,g=void 0===m?Tv:m,y=a.areMergedPropsEqual,b=void 0===y?Tv:y,w=yv(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=Bv(e,i,"mapStateToProps"),x=Bv(t,c,"mapDispatchToProps"),C=Bv(n,l,"mergeProps");return r(f,lv({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:x,initMergeProps:C,pure:u,areStatesEqual:d,areOwnPropsEqual:v,areStatePropsEqual:g,areMergedPropsEqual:b},w))}}var qv=Uv();var Gv;function Yv(e,t){var n=Object(i.useState)((function(){return{inputs:t,result:e()}}))[0],r=Object(i.useRef)(!0),o=Object(i.useRef)(n),a=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}sv(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=mm(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof bm))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(a.a.Component),xm=function(e){return e+1},Cm=function(e,t){var n=e.droppableId===t.droppableId,r=xm(e.index),o=xm(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},zm=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Mm=function(e){return"\n The item has returned to its starting position\n of "+xm(e.index)+"\n"},Sm={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+xm(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return Cm(e.source,t);var n=e.combine;return n?zm(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Mm(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Cm(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+zm(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Mm(e.source)+"\n "}},Om={x:0,y:0},km=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Em=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Am=function(e,t){return e.x===t.x&&e.y===t.y},Tm=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Lm=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Pm=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Dm=function(e,t){return Math.min.apply(Math,t.map((function(t){return Pm(e,t)})))},Hm=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Im=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Vm=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Nm=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Kv({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):Kv(e)},Rm=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t,n){var r;return n&&n.increasedBy?lv({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?Im(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:Nm(i,o)}},jm=function(e,t){e.frame||wm(!1);var n=e.frame,r=Em(t,n.scroll.initial),o=Tm(r),i=lv({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return lv({},e,{frame:i,subject:Rm({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function Fm(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Bm(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,c=r.lefte.right;return!(!a||!c)||(a&&i||c&&o)}},ig=function(e){var t=rg(e.top,e.bottom),n=rg(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ag={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},cg={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},sg=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Om;return Im(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},lg=function(e){return sg(lv({},e,{isVisibleThroughFrameFn:og}))},ug=function(e){return sg(lv({},e,{isVisibleThroughFrameFn:ig}))},fg=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function hg(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var c=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Kv(Xv(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!lg({target:c,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var l={draggableId:s,shouldAnimate:fg(s,a,i)};return e.visible[s]=l,e}),{all:[],visible:{},invisible:{}})}function dg(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:tg,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function pg(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,c=e.index,s=e.forceShouldAnimate,l=Jm(t,r);if(null==c)return dg({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var u=Wm(n,(function(e){return e.descriptor.index===c}));if(!u)return dg({insideDestination:n,inHomeList:l,displacedBy:i,destination:r});var f=Qm(t,n),h=n.indexOf(u);return{displaced:hg({afterDragging:f.slice(h),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:c}}}}function vg(e,t){return Boolean(t.effected[e])}var mg=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,c=e.previousImpact,s=e.viewport,l=e.afterCritical,u=c.at;if(u||wm(!1),"REORDER"===u.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,c=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return a(n?s:s+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==f?null:pg({draggable:r,insideDestination:a,destination:i,viewport:s,last:c.displaced,displacedBy:c.displacedBy,index:f})}var h=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,c=r[a].descriptor.index;return vg(a,i)?t?c:c-1:t?c+1:c}({isMovingForward:t,destination:i,displaced:c.displaced,draggables:o,combine:u.combine,afterCritical:l});return null==h?null:pg({draggable:r,insideDestination:a,destination:i,viewport:s,last:c.displaced,displacedBy:c.displacedBy,index:h})},gg=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Xm(n);o||wm(!1);var i=o.draggableId,a=r[i].page.borderBox.center,c=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return vg(r,n)?i?Om:Tm(o.point):i?o.point:Om}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return km(a,c)},yg=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},bg=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},wg=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Lm(t.line,n.marginBox[t.end]+yg(t,r),bg(t,n.marginBox,r))},_g=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Lm(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),bg(t,n.marginBox,r))},xg=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Zm(o.descriptor.id,r),c=n.page,s=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Lm(t.line,n.contentBox[t.start]+yg(t,r),bg(t,n.contentBox,r))}({axis:s,moveInto:o.page,isMoving:c});var l=t.displaced,u=t.displacedBy,f=l.all[0];if(f){var h=r[f];if(vg(f,i))return _g({axis:s,moveRelativeTo:h.page,isMoving:c});var d=nm(h.page,u.point);return _g({axis:s,moveRelativeTo:d,isMoving:c})}var p=a[a.length-1];if(p.descriptor.id===n.descriptor.id)return c.borderBox.center;if(vg(p.descriptor.id,i)){var v=nm(p.page,Tm(i.displacedBy.point));return wg({axis:s,moveRelativeTo:v,isMoving:c})}return wg({axis:s,moveRelativeTo:p.page,isMoving:c})},Cg=function(e,t){var n=e.frame;return n?km(t,n.scroll.diff.displacement):t},zg=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,c=t.at;return r&&c?"REORDER"===c.type?xg({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):gg({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Cg(n,t):t},Mg=function(e,t){var n=Em(t,e.scroll.initial),r=Tm(n);return{frame:Kv({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Sg(e,t){return e.map((function(e){return t[e]}))}var Og=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return km(e.scroll.diff.displacement,t)}(e.viewport,t),o=Em(r,n.page.borderBox.center);return km(n.client.borderBox.center,o)},kg=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,c=void 0!==a&&a,s=Em(r,t.page.borderBox.center),l={target:Im(t.page.borderBox,s),destination:n,withDroppableDisplacement:i,viewport:o};return c?function(e){return sg(lv({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=rg(e.top,e.bottom),r=rg(e.left,e.right);return function(e){return t===ag?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(l):ug(l)},Eg=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,c=e.previousPageBorderBoxCenter,s=e.previousClientSelection,l=e.afterCritical;if(!r.isEnabled)return null;var u=Zm(r.descriptor.id,o),f=Jm(n,r),h=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Km(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return lv({},i,{at:t})}var c=i.displaced.all,s=c.length?c[0]:null;if(t)return s?a(s):null;var l=Qm(n,o);if(!s)return l.length?a(l[l.length-1].descriptor.id):null;var u=Bm(l,(function(e){return e.descriptor.id===s}));-1===u&&wm(!1);var f=u-1;return f<0?null:a(l[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||mg({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:i,viewport:a,afterCritical:l});if(!h)return null;var d=zg({impact:h,draggable:n,droppable:r,draggables:o,afterCritical:l});if(kg({draggable:n,destination:r,newPageBorderBoxCenter:d,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Og({pageBorderBoxCenter:d,draggable:n,viewport:a}),impact:h,scrollJumpRequest:null};var p=Em(d,c);return{clientSelection:s,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=Mg(n,km(n.scroll.current,i)),c=r.frame?jm(r,km(r.frame.scroll.current,i)):r,s=t.displaced,l=hg({afterDragging:Sg(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),u=hg({afterDragging:Sg(s.all,o),destination:c,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),f={},h={},d=[s,l,u];return s.all.forEach((function(e){var t=function(e,t){for(var n=0;n1?u.sort((function(e,t){return Ag(e)[c.start]-Ag(t)[c.start]}))[0]:l.sort((function(e,t){var r=Dm(n,Vm(Ag(e))),o=Dm(n,Vm(Ag(t)));return r!==o?r-o:Ag(e)[c.start]-Ag(t)[c.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:c});if(!l)return null;var u=Zm(l.descriptor.id,i),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,c=e.viewport,s=e.afterCritical;if(!n){if(r.length)return null;var l={displaced:tg,displacedBy:eg,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=zg({impact:l,draggable:o,droppable:a,draggables:i,afterCritical:s}),f=Jm(o,a)?a:Hg(a,o,i);return kg({draggable:o,destination:f,newPageBorderBoxCenter:u,viewport:c.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?l:null}var h=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),d=function(){var e=n.descriptor.index;return n.descriptor.id===o.descriptor.id?e:h?e:e+1}(),p=Pg(a.axis,o.displaceBy);return pg({draggable:o,insideDestination:r,destination:a,viewport:c,displacedBy:p,last:tg,index:d})}({previousPageBorderBoxCenter:n,destination:l,draggable:r,draggables:i,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return ug({target:Lg(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Pm(t,Cg(r,Tg(e,i))),a=Pm(t,Cg(r,Tg(n,i)));return or.left&&n.topr.top))return!1;if(jg(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],c=t[i.crossAxisStart],s=t[i.crossAxisEnd],l=rg(o[i.crossAxisStart],o[i.crossAxisEnd]),u=l(c),f=l(s);return!u&&!f||(u?ca)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Lm(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Pm(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Bg=function(e,t){return Kv(Im(e,t))};function Wg(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ug=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,c=e.afterCritical,s=Bg(n.page.borderBox,t),l=Fg({pageBorderBox:s,draggable:n,droppables:o});if(!l)return ng;var u=o[l],f=Zm(u.descriptor.id,r),h=function(e,t){var n=e.frame;return n?Bg(t,n.scroll.diff.value):t}(u,s);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var c=o.axis,s=Pg(o.axis,t.displaceBy),l=s.value,u=n[c.start],f=n[c.end],h=Wm(Qm(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[c.size]/4,i=vg(t,a),s=Wg({displaced:r.displaced,id:t});return i?s?f>n[c.start]+o&&fn[c.start]-l+o&&un[c.start]+l+o&&fn[c.start]+o&&ut.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Wm(Qm(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=vg(t,c),o=Wg({displaced:i,id:t});return r?o?h<=n:f=1500)return Ay;var i=Ey+Ty*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:m,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:m,dropDuration:y,completed:g}))}else n(yy({completed:g}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Py=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Dy(e){var t=e.onWindowScroll;var n,r=am((function(){t(Py())})),o=(n=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||n()}}),i=vm;function a(){return i!==vm}return{start:function(){a()&&wm(!1),i=mm(window,[o])},stop:function(){a()||wm(!1),r.cancel(),i(),i=vm},isActive:a}}var Hy=function(e){var t=Dy({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Iy=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Bm(e,(function(e){return e.timerId===t}));-1===n&&wm(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Vy=function(e,t){Qg(),t(),Jg()},Ny=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Ry=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},jy=function(e,t){var n=function(e,t){var n=Iy(),r=null,o=function(n){r||wm(!1),r=null,Vy(0,(function(){return Ry(e().onDragEnd,n,t,Sm.onDragEnd)}))};return{beforeCapture:function(t,n){r&&wm(!1),Vy(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&wm(!1),Vy(0,(function(){var r=e().onBeforeDragStart;r&&r(Ny(t,n))}))},start:function(o,i){r&&wm(!1);var a=Ny(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Vy(0,(function(){return Ry(e().onDragStart,a,t,Sm.onDragStart)}))}))},update:function(o,i){var a=Km(i),c=Xm(i);r||wm(!1);var s=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);s&&(r.lastCritical=o);var l,u,f=(l=r.lastLocation,u=a,!(null==l&&null==u||null!=l&&null!=u&&l.droppableId===u.droppableId&&l.index===u.index));f&&(r.lastLocation=a);var h=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(r.lastCombine,c);if(h&&(r.lastCombine=c),s||f||h){var d=lv({},Ny(o,r.mode),{combine:c,destination:a});n.add((function(){Vy(0,(function(){return Ry(e().onDragUpdate,d,t,Sm.onDragUpdate)}))}))}},flush:function(){r||wm(!1),n.flush()},drop:o,abort:function(){if(r){var e=lv({},Ny(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Fy=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&wm(!1),e.dispatch(yy({completed:r.completed}))}else t(n)}}},By=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=mm(window,[i])}))}}}},Wy=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(by({reason:r.reason})))}}}},Uy=uv.d,qy=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,c=e.autoScroller;return Object(uv.e)(iy,Uy(Object(uv.a)((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,c=i.clientSelection,s=i.movementMode,l=n();"DROP_ANIMATING"===l.phase&&r(yy({completed:l.completed})),"IDLE"!==n().phase&&wm(!1),r(gy()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:s}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},f=e.startPublishing(u),h=f.critical,d=f.dimensions,p=f.viewport;r(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:h,dimensions:d,clientSelection:c,movementMode:s,viewport:p}))}else t(o)}}}}(n),Ly,Fy,By,Wy,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&wm(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(c),Hy,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),jy(i,a))))},Gy=function(){return{additions:{},removals:{},modified:{}}};var Yy=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Em({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},$y=function(){var e=document.documentElement;return e||wm(!1),e},Zy=function(){var e=$y();return Yy({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Ky=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Qg();var o=function(){var e=Py(),t=Zy(),n=e.y,r=e.x,o=$y(),i=o.clientWidth,a=o.clientHeight;return{frame:Kv({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Om,displacement:Om}}}}(),i=o.scroll.current,a=t.droppable,c=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),s=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),l={draggables:Gm(s),droppables:qm(c)};return Jg(),{dimensions:l,critical:t,viewport:o}};function Xy(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Qy=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r=Gy(),o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Qg();var e=r,i=e.additions,a=e.removals,c=e.modified,s=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Om)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),l=Object.keys(c).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:s,removals:Object.keys(a),modified:l};r=Gy(),Jg(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r=Gy())}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||wm(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Xy(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Xy(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||wm(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||wm(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||wm(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&wm(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},c=e.subscribe(o);return n={critical:a,unsubscribe:c},Ky({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Jy=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},eb=function(e){window.scrollBy(e.x,e.y)},tb=is((function(e){return Ym(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),nb=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}return function(e,t){return Wm(tb(t),(function(t){return t.frame||wm(!1),jg(t.frame.pageMarginBox)(e)}))}(t,r)},rb=.25,ob=.05,ib=28,ab=function(e){return Math.pow(e,2)},cb={stopDampeningAt:1200,accelerateAt:360},sb=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},lb=cb.accelerateAt,ub=cb.stopDampeningAt,fb=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return ib;if(e===t.startScrollingFrom)return 1;var n=sb({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=ib*ab(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=ub,o=Date.now()-n;if(o>=ub)return e;if(ot.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:l});return u?Am(u,Om)?null:u:null},vb=Hm((function(e){return 0===e?0:e>0?1:-1})),mb=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,o=t.change,i=km(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return Am(a,Om)?null:a}}(),gb=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=vb(r),a=mb({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},yb=function(e,t){return gb({current:e.scroll.current,max:e.scroll.max,change:t})},bb=function(e,t){var n=e.frame;return!!n&&gb({current:n.scroll.current,max:n.scroll.max,change:t})},wb=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,c=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=pb({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&yb(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:c,center:a,shouldUseTimeDampening:r});if(s)return void o(s)}var l=nb({center:a,destination:Vg(t.impact),droppables:t.dimensions.droppables});if(l){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var c=pb({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return c&&bb(t,c)?c:null}({dragStartTime:n,droppable:l,subject:c,center:a,shouldUseTimeDampening:r});u&&i(l.descriptor.id,u)}},_b=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!bb(e,t))return t;var r=function(e,t){var n=e.frame;return n&&bb(e,t)?mb({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Em(t,r);return n(e.descriptor.id,o),Em(t,o)},i=function(e,t,n){if(!e)return n;if(!yb(t,n))return n;var o=function(e,t){if(!yb(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return mb({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Em(n,o);return r(i),Em(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Vg(e.impact);r||wm(!1);var a=o(e.dimensions.droppables[r],n);if(a){var c=e.viewport,s=i(e.isWindowScrollAllowed,c,a);s&&function(e,n){var r=km(e.current.client.selection,n);t({client:r})}(e,s)}}}},xb=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=am(t),o=am(n),i=null,a=function(e){i||wm(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;wb({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Qg(),i&&wm(!1);var t=Date.now(),n=!1,r=function(){n=!0};wb({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Jg(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=_b({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Cb="data-rbd",zb=function(){var e=Cb+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Mb=function(){var e=Cb+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Sb=function(){var e=Cb+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Ob={contextId:Cb+"-scroll-container-context-id"},kb=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Eb=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(zb.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),o=[function(){var e="\n transition: "+Sy.outOfTheWay+";\n ";return{selector:n(Mb.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(Sb.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:kb(o,"always"),resting:kb(o,"resting"),dragging:kb(o,"dragging"),dropAnimating:kb(o,"dropAnimating"),userCancel:kb(o,"userCancel")}},Ab="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?i.useLayoutEffect:i.useEffect,Tb=function(){var e=document.querySelector("head");return e||wm(!1),e},Lb=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Pb=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Db(e){return e instanceof Pb(e).HTMLElement}function Hb(e,t){var n="["+zb.contextId+'="'+e+'"]',r=Um(document.querySelectorAll(n));if(!r.length)return null;var o=Wm(r,(function(e){return e.getAttribute(zb.draggableId)===t}));return o&&Db(o)?o:null}function Ib(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||wm(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Fm(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||wm(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Fm(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Vb=a.a.createContext(null),Nb=function(){var e=document.body;return e||wm(!1),e},Rb={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jb=function(e){return"rbd-announcement-"+e};var Fb=0,Bb={separator:"::"};function Wb(e,t){return void 0===t&&(t=Bb),$v((function(){return""+e+t.separator+Fb++}),[t.separator,e])}var Ub=a.a.createContext(null);function qb(e){0}function Gb(e,t){qb()}function Yb(e){var t=Object(i.useRef)(e);return Object(i.useEffect)((function(){t.current=e})),t}var $b,Zb=27,Kb=32,Xb=37,Qb=38,Jb=39,ew=40,tw=(($b={})[13]=!0,$b[9]=!0,$b),nw=function(e){tw[e.keyCode]&&e.preventDefault()},rw=function(){var e="visibilitychange";return"undefined"===typeof document?e:Wm([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),ow=0,iw=5;var aw,cw={type:"IDLE"};function sw(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(t===ow){var a={x:n,y:i},c=r();if("DRAGGING"===c.type)return e.preventDefault(),void c.actions.move(a);"PENDING"!==c.type&&wm(!1);var s=c.point;if(l=s,u=a,Math.abs(u.x-l.x)>=iw||Math.abs(u.y-l.y)>=iw){var l,u;e.preventDefault();var f=c.actions.fluidLift(a);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===Zb?(e.preventDefault(),void t()):void nw(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&wm(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:rw,fn:t}]}function lw(){}var uw=((aw={})[34]=!0,aw[33]=!0,aw[36]=!0,aw[35]=!0,aw);function fw(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===Zb?(r.preventDefault(),void n()):r.keyCode===Kb?(r.preventDefault(),t(),void e.drop()):r.keyCode===ew?(r.preventDefault(),void e.moveDown()):r.keyCode===Qb?(r.preventDefault(),void e.moveUp()):r.keyCode===Jb?(r.preventDefault(),void e.moveRight()):r.keyCode===Xb?(r.preventDefault(),void e.moveLeft()):void(uw[r.keyCode]?r.preventDefault():nw(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:rw,fn:n}]}var hw={type:"IDLE"},dw=120,pw=.15;var vw={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function mw(e,t){var n=t.target;return!!Db(n)&&function e(t,n){if(null==n)return!1;if(Boolean(vw[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var gw=function(e){return Kv(e.getBoundingClientRect()).center};var yw="undefined"===typeof document?"matches":Wm(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function bw(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[yw](n)?t:e(t.parentElement,n)}(e,t)}function ww(e,t){var n,r=t.target;if(!((n=r)instanceof Pb(n).Element))return null;var o=bw(r,function(e){return"["+zb.contextId+'="'+e+'"]'}(e));return o&&Db(o)?o:null}function _w(e){e.preventDefault()}function xw(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Cw(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Jy(n.getState(),o))}function zw(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,c=e.sourceEvent;if(!Cw({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var s=o.draggable.getById(i),l=function(e,t){var n="["+Mb.contextId+'="'+e+'"]',r=Wm(Um(document.querySelectorAll(n)),(function(e){return e.getAttribute(Mb.id)===t}));return r&&Db(r)?r:null}(n,s.descriptor.id);if(!l)return null;if(c&&!s.options.canDragInteractiveElements&&mw(l,c))return null;var u=t.claim(a||vm),f="PRE_DRAG";function h(){return s.options.shouldRespectForcePress}function d(){return t.isActive(u)}var p=function(e,t){xw({expected:e,phase:f,isLockActive:d,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function v(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=mm(window,[{eventName:"click",fn:_w,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(by({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&wm(!1)),r.dispatch(ay(e.liftActionArgs)),f="DRAGGING",lv({isActive:function(){return xw({expected:"DRAGGING",phase:f,isLockActive:d,shouldWarn:!1})},shouldRespectForcePress:h,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return xw({expected:"PRE_DRAG",phase:f,isLockActive:d,shouldWarn:!1})},shouldRespectForcePress:h,fluidLift:function(e){var t=am((function(e){p((function(){return hy({client:e})}))}));return lv({},v({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return p(dy)},moveRight:function(){return p(vy)},moveDown:function(){return p(py)},moveLeft:function(){return p(my)}};return v({liftActionArgs:{id:i,clientSelection:gw(l),movementMode:"SNAP"},cleanup:vm,actions:e})},abort:function(){xw({expected:"PRE_DRAG",phase:f,isLockActive:d,shouldWarn:!0})&&t.release()}}}var Mw=[function(e){var t=Object(i.useRef)(cw),n=Object(i.useRef)(vm),r=$v((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===ow&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,c,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),o=$v((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Zv((function(){n.current=mm(window,[o,r],{passive:!1,capture:!0})}),[o,r]),c=Zv((function(){"IDLE"!==t.current.type&&(t.current=cw,n.current(),a())}),[a]),s=Zv((function(){var e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),l=Zv((function(){var e=sw({cancel:s,completed:c,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=mm(window,e,{capture:!0,passive:!1})}),[s,c]),u=Zv((function(e,n){"IDLE"!==t.current.type&&wm(!1),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);Ab((function(){return a(),function(){n.current()}}),[a])},function(e){var t=Object(i.useRef)(lw),n=$v((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===Kb){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,s,{sourceEvent:n});if(i){n.preventDefault();var a=!0,c=i.snapLift();t.current(),t.current=mm(window,fw(c,s),{capture:!0,passive:!1})}}}function s(){a||wm(!1),a=!1,t.current(),r()}}}}),[e]),r=Zv((function(){t.current=mm(window,[n],{passive:!1,capture:!0})}),[n]);Ab((function(){return r(),function(){t.current()}}),[r])},function(e){var t=Object(i.useRef)(hw),n=Object(i.useRef)(vm),r=Zv((function(){return t.current}),[]),o=Zv((function(e){t.current=e}),[]),a=$v((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),h(o,a)}}}}}}),[e]),c=Zv((function(){n.current=mm(window,[a],{capture:!0,passive:!1})}),[a]),s=Zv((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(hw),n.current(),c())}),[c,o]),l=Zv((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=Zv((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:r},o=mm(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&wm(!1);var o=e.touches[0];if(o&&o.force>=pw){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:rw,fn:t}]}(t),e),i=mm(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===Zb&&e.preventDefault(),t()):t()}},{eventName:rw,fn:t}]}(t),e);n.current=function(){o(),i()}}),[l,r,s]),f=Zv((function(){var e=r();"PENDING"!==e.type&&wm(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,o]),h=Zv((function(e,t){"IDLE"!==r().type&&wm(!1);var n=setTimeout(f,dw);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,r,o,f]);Ab((function(){return c(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(hw))}}),[r,c,o]),Ab((function(){return mm(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Sw(e){var t=e.contextId,n=e.store,r=e.registry,o=e.customSensors,a=e.enableDefaultSensors,c=[].concat(a?Mw:[],o||[]),s=Object(i.useState)((function(){return function(){var e=null;function t(){e||wm(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&wm(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=Zv((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);Ab((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[s,n,l]),Ab((function(){return s.tryAbandon}),[s.tryAbandon]);var u=Zv((function(e){return Cw({lockAPI:s,registry:r,store:n,draggableId:e})}),[s,r,n]),f=Zv((function(e,o,i){return zw({lockAPI:s,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,r,n]),h=Zv((function(e){return function(e,t){var n=ww(e,t);return n?n.getAttribute(zb.draggableId):null}(t,e)}),[t]),d=Zv((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),p=Zv((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(gy()))}),[s,n]),v=Zv(s.isClaimed,[s]),m=$v((function(){return{canGetLock:u,tryGetLock:f,findClosestDraggableId:h,findOptionsForDraggable:d,tryReleaseLock:p,isLockClaimed:v}}),[u,f,h,d,p,v]);qb();for(var g=0;g=e?h(!0):n+rs&&u(!0),l<=s&&u(!1),a>0&&c(!0),0===a&&c(!1)}}),[r,n])]}(s,l,t,c),m=v[0],g=v[1],y=v[2],b=Object(i.useCallback)((function(){p(),y()}),[c]);Object(i.useEffect)((function(){if(s.current){var e=s.current;return b(),e.addEventListener("scroll",y),window.addEventListener("resize",b),function(){e.removeEventListener("scroll",y),window.removeEventListener("resize",b)}}}),[t,c]);var w=Object(i.useCallback)((function(e){if(e){var n=l.current;t.length>=n.length&&(l.current=O_(n,[e])),t.length"+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}(s(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(e)},e.exports=n()}).call(this,n(77))},function(e,t,n){(function(t){var n;n=function(){"use strict";function e(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;var n=e((function(e,t){e.exports=function(){function e(e){return e&&"object"===typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(t,n){var o;return n&&!0===n.clone&&e(t)?r((o=t,Array.isArray(o)?[]:{}),t,n):t}function n(n,o,i){var a=n.slice();return o.forEach((function(o,c){"undefined"===typeof a[c]?a[c]=t(o,i):e(o)?a[c]=r(n[c],o,i):-1===n.indexOf(o)&&a.push(t(o,i))})),a}function r(o,i,a){var c=Array.isArray(i),s=(a||{arrayMerge:n}).arrayMerge||n;return c?Array.isArray(o)?s(o,i,a):t(i,a):function(n,o,i){var a={};return e(n)&&Object.keys(n).forEach((function(e){a[e]=t(n[e],i)})),Object.keys(o).forEach((function(c){e(o[c])&&n[c]?a[c]=r(n[c],o[c],i):a[c]=t(o[c],i)})),a}(o,i,a)}return r.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return r(e,n,t)}))},r}()})),r=e((function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default})),o=r.svg,i=r.xlink,a={};a[o.name]=o.uri,a[i.name]=i.uri;var c,s=function(e,t){return void 0===e&&(e=""),""+e+""},l=r.svg,u=r.xlink,f={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; ")},c[l.name]=l.uri,c[u.name]=u.uri,c)},h=function(e){this.config=n(f,e||{}),this.symbols=[]};h.prototype.add=function(e){var t=this.symbols,n=this.find(e.id);return n?(t[t.indexOf(n)]=e,!1):(t.push(e),!0)},h.prototype.remove=function(e){var t=this.symbols,n=this.find(e);return!!n&&(t.splice(t.indexOf(n),1),n.destroy(),!0)},h.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},h.prototype.has=function(e){return null!==this.find(e)},h.prototype.stringify=function(){var e=this.config.attrs,t=this.symbols.map((function(e){return e.stringify()})).join("");return s(t,e)},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var d=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};d.prototype.stringify=function(){return this.content},d.prototype.toString=function(){return this.stringify()},d.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var p=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return p(s(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(d),m={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},g=function(e){return Array.prototype.slice.call(e,0)},y={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},b=function(e){var t=[];return g(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},w=function(e){return(e||window.location.href).split("#")[0]},_=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){!function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)}(e,{oldUrl:r,newUrl:n})}))}])},x=function(e,t){return void 0===t&&(t="linearGradient, radialGradient, pattern"),g(e.querySelectorAll("symbol")).forEach((function(e){g(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e},C=r.xlink.uri,z="xlink:href",M=/[{}|\\\^\[\]`"<>]/g;function S(e){return e.replace(M,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}var O,k=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],E=k.map((function(e){return"["+e+"]"})).join(","),A=function(e,t,n,r){var o=S(n),i=S(r);(function(e,t){return g(e).reduce((function(e,n){if(!n.attributes)return e;var r=g(n.attributes),o=t?r.filter(t):r;return e.concat(o)}),[])})(e.querySelectorAll(E),(function(e){var t=e.localName,n=e.value;return-1!==k.indexOf(t)&&-1!==n.indexOf("url("+o)})).forEach((function(e){return e.value=e.value.replace(new RegExp(o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),i)})),function(e,t,n){g(e).forEach((function(e){var r=e.getAttribute(z);if(r&&0===r.indexOf(t)){var o=r.replace(t,n);e.setAttributeNS(C,z,o)}}))}(t,o,i)},T={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},L=function(e){function t(t){var r=this;void 0===t&&(t={}),e.call(this,n(m,t));var o,i=(o=o||Object.create(null),{on:function(e,t){(o[e]||(o[e]=[])).push(t)},off:function(e,t){o[e]&&o[e].splice(o[e].indexOf(t)>>>0,1)},emit:function(e,t){(o[e]||[]).map((function(e){e(t)})),(o["*"]||[]).map((function(n){n(e,t)}))}});this._emitter=i,this.node=null;var a=this.config;if(a.autoConfigure&&this._autoConfigure(t),a.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");i.on(T.MOUNT,(function(){return r.updateUrls("#",c)}))}var s=this._handleLocationChange.bind(this);this._handleLocationChange=s,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,s),a.locationChangeAngularEmitter&&_(a.locationChangeEvent),i.on(T.MOUNT,(function(e){a.moveGradientsOutsideSymbol&&x(e)})),i.on(T.SYMBOL_MOUNT,(function(e){a.moveGradientsOutsideSymbol&&x(e.parentNode),(y.isIE()||y.isEdge())&&b(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(t.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(t.locationChangeAngularEmitter="angular"in window),"undefined"===typeof e.moveGradientsOutsideSymbol&&(t.moveGradientsOutsideSymbol=y.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=e.prototype.add.call(this,t);return this.isMounted&&n&&(t.mount(this.node),this._emitter.emit(T.SYMBOL_MOUNT,t.node)),n},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(T.SYMBOL_MOUNT,e.node)})),g(r.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(T.MOUNT,r),r},t.prototype.destroy=function(){var e=this.config,t=this.symbols,n=this._emitter;t.forEach((function(e){return e.destroy()})),n.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){if(void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1),this.isMounted)return this.node;var n="string"===typeof e?document.querySelector(e):e,r=this.render();return this.node=r,t&&n.childNodes[0]?n.insertBefore(r,n.childNodes[0]):n.appendChild(r),this._emitter.emit(T.MOUNT,r),r},t.prototype.render=function(){return p(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return A(this.node,n,w(e)+"#",w(t)+"#"),!0},Object.defineProperties(t.prototype,r),t}(h),P=e((function(e){e.exports=function(){var e,t=[],n=document,r=n.documentElement.doScroll,o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener("DOMContentLoaded",e=function(){for(n.removeEventListener("DOMContentLoaded",e),o=1;e=t.shift();)e()}),function(e){o?setTimeout(e,0):t.push(e)}}()}));window.__SVG_SPRITE__?O=window.__SVG_SPRITE__:(O=new L({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=O);var D=function(){var e=document.getElementById("__SVG_SPRITE_NODE__");e?O.attach(e):O.mount(document.body,!0)};return document.body?D():P(D),O},e.exports=n()}).call(this,n(77))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Oe})),n.d(t,"b",(function(){return ke})),n.d(t,"c",(function(){return me})),n.d(t,"e",(function(){return Le}));var r=n(113),o=n(0),i=n.n(o),a=n(322),c=n.n(a),s=n(323),l=n(324),u=n(224),f=n(98),h=n.n(f);function d(){return(d=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var M=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&z(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.0");var a=I();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},N=function(){function e(e){var t=this.element=V(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")})),r+=""+c+s+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),U=/(a)(d)/gi,q=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=q(t%52)+n;return(q(t%52)+n).replace(U,"$1-$2")}var Y=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return Y(5381,e)};function Z(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var c=n(i,"."+a,void 0,r);t.insertRules(r,a,c)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,l=Y(this.baseHash,n.hash),u="",f=0;f>>0);if(!t.hasNameForId(r,v)){var m=n(u,"."+v,void 0,r);t.insertRules(r,v,m)}o.push(v)}}return o.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function ee(e){var t,n,r,o,i=void 0===e?g:e,a=i.options,c=void 0===a?g:a,l=i.plugins,u=void 0===l?m:l,f=new s.a(c),h=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,c,s,l,u,f){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){h.push(e)})),p=function(e,r,i){return 0===r&&-1!==J.indexOf(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,c){void 0===c&&(c="&");var s=e.replace(Q,""),l=i&&a?a+" "+i+" { "+s+" }":s;return t=c,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,l)}return f.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},d,function(e){if(-2===e){var t=h;return h=[],t}}])),v.hash=u.length?u.reduce((function(e,t){return t.name||z(15),Y(e,t.name)}),5381).toString():"",v}var te=i.a.createContext(),ne=(te.Consumer,i.a.createContext()),re=(ne.Consumer,new W),oe=ee();function ie(){return Object(o.useContext)(te)||re}function ae(){return Object(o.useContext)(ne)||oe}function ce(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ie(),s=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){c()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(te.Provider,{value:s},i.a.createElement(ne.Provider,{value:l},e.children))}var se=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return z(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),le=/([A-Z])/,ue=/([A-Z])/g,fe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function de(e){return le.test(e)?e.replace(ue,he).replace(fe,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,c=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function we(e){return e.replace(ye,"-").replace(be,"")}var _e=function(e){return G($(e)>>>0)};function xe(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ze=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Me(e,t,n){var r=e[n];Ce(t)&&Ce(r)?Se(r,t):e[n]=t}function Se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(xe(e)?e:we(b(e)));return Ae(e,d({},o,{attrs:x,componentId:i}),n)},Object.defineProperty(z,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Se({},e.defaultProps,t):t}}),z.toString=function(){return"."+z.styledComponentId},a&&h()(z,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),z}var Te=function(e){return function e(t,n,o){if(void 0===o&&(o=g),!Object(r.isValidElementType)(n))return z(1,String(n));var i=function(){return t(n,o,me.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,d({},o,{},r))},i.attrs=function(r){return e(t,n,d({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Ae,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Te[e]=Te(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Z(e),W.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(ve(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();function Le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?z(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return z(2);var n=((t={})[_]="",t["data-styled-version"]="5.3.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=I();return r&&(n.nonce=r),[i.a.createElement("style",d({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?z(2):i.a.createElement(ce,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return z(3)}}();t.d=Te}).call(this,n(94))},function(e,t,n){e.exports=n(351)()},function(e,t,n){"use strict";var r=n(174);var o=n(175);function i(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(17);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0&&e.splice(n,1)}function p(e){var t=!1;return function(){t||(t=!0,e())}}var v=function(e){throw e},m=function(e){return{value:e,done:!0}};function g(e,t,n){void 0===t&&(t=v),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:m,isSagaIterator:!0};return"undefined"!==typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function y(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var b=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},w=function(e){return Array.apply(null,new Array(e))},_=function(e){return function(t){return e(Object.defineProperty(t,r.f,{value:!0}))}},x=function(e){return e===r.k},C=function(e){return e===r.j},z=function(e){return x(e)||C(e)};function M(e,t){var n=Object.keys(e),r=n.length;var o,a=0,c=Object(i.a)(e)?w(r):{},l={};return n.forEach((function(e){var n=function(n,i){o||(i||z(n)?(t.cancel(),t(n,i)):(c[e]=n,++a===r&&(o=!0,t(c))))};n.cancel=s,l[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return l[e].cancel()})))},l}function S(e){return{name:e.name||"anonymous",location:O(e)}}function O(e){return e[r.g]}var k="Channel's Buffer overflow!",E=1,A=3,T=4,L={isEmpty:c,put:s,take:s};function P(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},c=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},s=function(){for(var e=[];r;)e.push(c());return e};return{isEmpty:function(){return 0==r},put:function(c){var l;if(r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2?n-2:0),i=2;i2?n-2:0),i=2;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(){for(var e=[],t=0;t1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return o(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27),o=n(34);function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return Object(o.a)(n)?t:Object(r.a)((function(t){return e(n,t)}));default:return Object(o.a)(n)&&Object(o.a)(i)?t:Object(o.a)(n)?Object(r.a)((function(t){return e(t,i)})):Object(o.a)(i)?Object(r.a)((function(t){return e(n,t)})):e(n,i)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return i})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return h})),n.d(t,"j",(function(){return u})),n.d(t,"k",(function(){return c})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return o}));var r=n(29),o=function(e){return null===e||void 0===e},i=function(e){return null!==e&&void 0!==e},a=function(e){return"function"===typeof e},c=function(e){return"string"===typeof e},s=Array.isArray,l=function(e){return e&&!s(e)&&"object"===typeof e},u=function(e){return e&&a(e.then)},f=function(e){return e&&a(e.next)&&a(e.throw)},h=function e(t){return t&&(c(t)||v(t)||a(t)||s(t)&&t.every(e))},d=function(e){return e&&a(e.take)&&a(e.close)},p=function(e){return a(e)&&e.hasOwnProperty("toString")},v=function(e){return Boolean(e)&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},m=function(e){return d(e)&&e[r.e]},g=function(e){return e&&e[r.c]}},function(e,t,n){e.exports=n(232)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAction",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createReducer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"assignAll",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"batch",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"disbatch",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"loggers",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"asError",{enumerable:!0,get:function(){return f.default}}),t.types=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(230)),o=h(n(231)),i=h(n(355)),a=h(n(356)),c=h(n(357)),s=h(n(153)),l=h(n(358)),u=h(n(359)),f=h(n(361));function h(e){return e&&e.__esModule?e:{default:e}}var d=r;t.types=d},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function s(e){return void 0===e}function l(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,z=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},D={};function H(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(D[e]=o),t&&(D[t[0]]=function(){return A(o.apply(this,arguments),t[1],t[2])}),n&&(D[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=V(t,e.localeData()),P[t]=P[t]||function(e){var t,n,r,o=e.match(T);for(t=0,n=o.length;t=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var N={};function R(e,t){var n=e.toLowerCase();N[n]=N[n+"s"]=N[t]=e}function j(e){return"string"===typeof e?N[e]||N[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)a(e,n)&&(t=j(n))&&(r[t]=e[n]);return r}var B={};function W(e,t){B[e]=t}function U(e){return e%4===0&&e%100!==0||e%400===0}function q(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=q(t)),n}function Y(e,t){return function(n){return null!=n?(Z(this,e,n),r.updateOffset(this,t),this):$(this,e)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&U(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,X=/\d/,Q=/\d\d/,J=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,ce=/[+-]?\d{1,6}/,se=/\d+/,le=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function de(e,t,n){K[e]=O(t)?t:function(e,r){return e&&n?n:t}}function pe(e,t){return a(K,e)?K[e](t._strict,t._locale):new RegExp(ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var me={};function ge(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=G(e)}),n=0;n68?1900:2e3)};var Fe=Y("FullYear",!0);function Be(e,t,n,r,o,i,a){var c;return e<100&&e>=0?(c=new Date(e+400,t,n,r,o,i,a),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,n,r,o,i,a),c}function We(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ue(e,t,n){var r=7+t-n;return-(7+We(e,0,r).getUTCDay()-t)%7+r-1}function qe(e,t,n,r,o){var i,a,c=1+7*(t-1)+(7+n-r)%7+Ue(e,r,o);return c<=0?a=je(i=e-1)+c:c>je(e)?(i=e+1,a=c-je(e)):(i=e,a=c),{year:i,dayOfYear:a}}function Ge(e,t,n){var r,o,i=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ye(o=e.year()-1,t,n):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ye(e,t,n){var r=Ue(e,t,n),o=Ue(e+1,t,n);return(je(e)-r+o)/7}function $e(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),W("week",5),W("isoWeek",5),de("w",ne),de("ww",ne,Q),de("W",ne),de("WW",ne,Q),ye(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=G(e)})),H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),de("d",ne),de("e",ne),de("E",ne),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:p(n).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,n,r){t[r]=G(e)}));var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qe=he,Je=he,et=he;function tt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=we.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=we.call(this._weekdaysParse,a))?o:-1!==(o=we.call(this._shortWeekdaysParse,a))?o:-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,a))?o:-1!==(o=we.call(this._weekdaysParse,a))?o:-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:-1!==(o=we.call(this._minWeekdaysParse,a))?o:-1!==(o=we.call(this._weekdaysParse,a))?o:-1!==(o=we.call(this._shortWeekdaysParse,a))?o:null}function nt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],c=[],s=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=ve(this.weekdaysMin(n,"")),o=ve(this.weekdaysShort(n,"")),i=ve(this.weekdays(n,"")),a.push(r),c.push(o),s.push(i),l.push(r),l.push(o),l.push(i);a.sort(e),c.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function rt(){return this.hours()%12||12}function ot(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function it(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,rt),H("k",["kk",2],0,(function(){return this.hours()||24})),H("hmm",0,0,(function(){return""+rt.apply(this)+A(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+rt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),ot("a",!0),ot("A",!1),R("hour","h"),W("hour",13),de("a",it),de("A",it),de("H",ne),de("h",ne),de("k",ne),de("HH",ne,Q),de("hh",ne,Q),de("kk",ne,Q),de("hmm",re),de("hmmss",oe),de("Hmm",re),de("Hmmss",oe),ge(["H","HH"],ze),ge(["k","kk"],(function(e,t,n){var r=G(e);t[ze]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[ze]=G(e),p(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[ze]=G(e.substr(0,r)),t[Me]=G(e.substr(r)),p(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[ze]=G(e.substr(0,r)),t[Me]=G(e.substr(r,2)),t[Se]=G(e.substr(o)),p(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[ze]=G(e.substr(0,r)),t[Me]=G(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[ze]=G(e.substr(0,r)),t[Me]=G(e.substr(r,2)),t[Se]=G(e.substr(o))}));var at,ct=Y("Hours",!0),st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Xe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},lt={},ut={};function ft(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=dt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&ft(o,n)>=t-1)break;t--}i++}return at}(e)}function gt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[xe]<0||n[xe]>11?xe:n[Ce]<1||n[Ce]>Ae(n[_e],n[xe])?Ce:n[ze]<0||n[ze]>24||24===n[ze]&&(0!==n[Me]||0!==n[Se]||0!==n[Oe])?ze:n[Me]<0||n[Me]>59?Me:n[Se]<0||n[Se]>59?Se:n[Oe]<0||n[Oe]>999?Oe:-1,p(e)._overflowDayOfYear&&(t<_e||t>Ce)&&(t=Ce),p(e)._overflowWeeks&&-1===t&&(t=ke),p(e)._overflowWeekday&&-1===t&&(t=Ee),p(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ct=/^\/?Date\((-?\d+)/i,zt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function St(e){var t,n,r,o,i,a,c=e._i,s=yt.exec(c)||bt.exec(c);if(s){for(p(e).iso=!0,t=0,n=_t.length;t7)&&(s=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=Ge(Dt(),i,a),n=Et(t.gg,e._a[_e],l.year),r=Et(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(s=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(s=!0)):o=i),r<1||r>Ye(n,i,a)?p(e)._overflowWeeks=!0:null!=s?p(e)._overflowWeekday=!0:(c=qe(n,r,o,i,a),e._a[_e]=c.year,e._dayOfYear=c.dayOfYear)}(e),null!=e._dayOfYear&&(a=Et(e._a[_e],o[_e]),(e._dayOfYear>je(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=We(a,0,e._dayOfYear),e._a[xe]=n.getUTCMonth(),e._a[Ce]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=o[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ze]&&0===e._a[Me]&&0===e._a[Se]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?We:Be).apply(null,c),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function Tt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,o,i,a,c,s=""+e._i,l=s.length,u=0;for(o=V(e._f,e._locale).match(T)||[],t=0;t0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),D[i]?(n?p(e).empty=!1:p(e).unusedTokens.push(i),be(i,n,e)):e._strict&&!n&&p(e).unusedTokens.push(i);p(e).charsLeftOver=l-u,s.length>0&&p(e).unusedInput.push(s),e._a[ze]<=12&&!0===p(e).bigHour&&e._a[ze]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[ze]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[ze],e._meridiem),null!==(c=p(e).era)&&(e._a[_e]=e._locale.erasConvertYear(c,e._a[_e])),At(e),gt(e)}else kt(e);else St(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new w(gt(t)):(u(t)?e._d=t:o(n)?function(e){var t,n,r,o,i,a,c=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()}));function Vt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-hn:new Date(e,t,n).valueOf()}function vn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hn:Date.UTC(e,t,n)}function mn(e,t){return t.erasAbbrRegex(e)}function gn(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e(i=Ye(e,r,o))&&(t=i),wn.call(this,e,t,n,r,o))}function wn(e,t,n,r,o){var i=qe(e,t,n,r,o),a=We(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),de("N",mn),de("NN",mn),de("NNN",mn),de("NNNN",(function(e,t){return t.erasNameRegex(e)})),de("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?p(n).era=o:p(n).invalidEra=e})),de("y",se),de("yy",se),de("yyy",se),de("yyyy",se),de("yo",(function(e,t){return t._eraYearOrdinalRegex||se})),ge(["y","yy","yyy","yyyy"],_e),ge(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_e]=n._locale.eraYearOrdinalParse(e,o):t[_e]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),yn("gggg","weekYear"),yn("ggggg","weekYear"),yn("GGGG","isoWeekYear"),yn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),de("G",le),de("g",le),de("GG",ne,Q),de("gg",ne,Q),de("GGGG",ae,ee),de("gggg",ae,ee),de("GGGGG",ce,te),de("ggggg",ce,te),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=G(e)})),ye(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),R("quarter","Q"),W("quarter",7),de("Q",X),ge("Q",(function(e,t){t[xe]=3*(G(e)-1)})),H("D",["DD",2],"Do","date"),R("date","D"),W("date",9),de("D",ne),de("DD",ne,Q),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],Ce),ge("Do",(function(e,t){t[Ce]=G(e.match(ne)[0])}));var _n=Y("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),W("dayOfYear",4),de("DDD",ie),de("DDDD",J),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),H("m",["mm",2],0,"minute"),R("minute","m"),W("minute",14),de("m",ne),de("mm",ne,Q),ge(["m","mm"],Me);var xn=Y("Minutes",!1);H("s",["ss",2],0,"second"),R("second","s"),W("second",15),de("s",ne),de("ss",ne,Q),ge(["s","ss"],Se);var Cn,zn,Mn=Y("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),R("millisecond","ms"),W("millisecond",16),de("S",ie,X),de("SS",ie,Q),de("SSS",ie,J),Cn="SSSS";Cn.length<=9;Cn+="S")de(Cn,se);function Sn(e,t){t[Oe]=G(1e3*("0."+e))}for(Cn="S";Cn.length<=9;Cn+="S")ge(Cn,Sn);zn=Y("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var On=w.prototype;function kn(e){return e}On.add=tn,On.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?_(n=arguments[0])||u(n)||rn(n)||l(n)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!l(t)&&rn(e)})).length),t&&n}(n)||function(e){var t,n,r=i(e)&&!c(e),o=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;tn.valueOf():n.valueOf()9999?I(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},On.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(On[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),On.toJSON=function(){return this.isValid()?this.toISOString():null},On.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},On.unix=function(){return Math.floor(this.valueOf()/1e3)},On.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},On.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},On.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},On.isLocal=function(){return!!this.isValid()&&!this._isUTC},On.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},On.isUtc=Yt,On.isUTC=Yt,On.zoneAbbr=function(){return this._isUTC?"UTC":""},On.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},On.dates=C("dates accessor is deprecated. Use date instead.",_n),On.months=C("months accessor is deprecated. Use month instead",Ne),On.years=C("years accessor is deprecated. Use year instead",Fe),On.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),On.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Lt(t))._a?(e=t._isUTC?d(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var En=E.prototype;function An(e,t,n,r){var o=mt(),i=d().set(r,t);return o[n](i,e)}function Tn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return An(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=An(e,r,n,"month");return o}function Ln(e,t,n,r){"boolean"===typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=mt(),a=e?i._week.dow:0,c=[];if(null!=n)return An(t,(n+a)%7,r,"day");for(o=0;o<7;o++)c[o]=An(t,(o+a)%7,r,"day");return c}En.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},En.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(T).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},En.invalidDate=function(){return this._invalidDate},En.ordinal=function(e){return this._ordinal.replace("%d",e)},En.preparse=kn,En.postformat=kn,En.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return O(o)?o(e,t,n,r):o.replace(/%d/i,e)},En.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},En.set=function(e){var t,n;for(n in e)a(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},En.eras=function(e,t){var n,o,i,a=this._eras||mt("en")._eras;for(n=0,o=a.length;n=0)return s[r]},En.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},En.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||gn.call(this),e?this._erasAbbrRegex:this._erasRegex},En.erasNameRegex=function(e){return a(this,"_erasNameRegex")||gn.call(this),e?this._erasNameRegex:this._erasRegex},En.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||gn.call(this),e?this._erasNarrowRegex:this._erasRegex},En.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},En.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},En.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ie.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},En.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=He),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},En.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=De),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},En.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},En.firstDayOfYear=function(){return this._week.doy},En.firstDayOfWeek=function(){return this._week.dow},En.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?$e(n,this._week.dow):e?n[e.day()]:n},En.weekdaysMin=function(e){return!0===e?$e(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},En.weekdaysShort=function(e){return!0===e?$e(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},En.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return tt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},En.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},En.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},En.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},En.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},En.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===G(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=C("moment.lang is deprecated. Use moment.locale instead.",pt),r.langData=C("moment.langData is deprecated. Use moment.localeData instead.",mt);var Pn=Math.abs;function Dn(e,t,n,r){var o=Kt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Hn(e){return e<0?Math.floor(e):Math.ceil(e)}function In(e){return 4800*e/146097}function Vn(e){return 146097*e/4800}function Nn(e){return function(){return this.as(e)}}var Rn=Nn("ms"),jn=Nn("s"),Fn=Nn("m"),Bn=Nn("h"),Wn=Nn("d"),Un=Nn("w"),qn=Nn("M"),Gn=Nn("Q"),Yn=Nn("y");function $n(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zn=$n("milliseconds"),Kn=$n("seconds"),Xn=$n("minutes"),Qn=$n("hours"),Jn=$n("days"),er=$n("months"),tr=$n("years"),nr=Math.round,rr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function or(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var ir=Math.abs;function ar(e){return(e>0)-(e<0)||+e}function cr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,c,s=ir(this._milliseconds)/1e3,l=ir(this._days),u=ir(this._months),f=this.asSeconds();return f?(e=q(s/60),t=q(e/60),s%=60,e%=60,n=q(u/12),u%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=ar(this._months)!==ar(f)?"-":"",a=ar(this._days)!==ar(f)?"-":"",c=ar(this._milliseconds)!==ar(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?a+l+"D":"")+(t||e||s?"T":"")+(t?c+t+"H":"")+(e?c+e+"M":"")+(s?c+r+"S":"")):"P0D"}var sr=Rt.prototype;return sr.isValid=function(){return this._isValid},sr.abs=function(){var e=this._data;return this._milliseconds=Pn(this._milliseconds),this._days=Pn(this._days),this._months=Pn(this._months),e.milliseconds=Pn(e.milliseconds),e.seconds=Pn(e.seconds),e.minutes=Pn(e.minutes),e.hours=Pn(e.hours),e.months=Pn(e.months),e.years=Pn(e.years),this},sr.add=function(e,t){return Dn(this,e,t,1)},sr.subtract=function(e,t){return Dn(this,e,t,-1)},sr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+In(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},sr.asMilliseconds=Rn,sr.asSeconds=jn,sr.asMinutes=Fn,sr.asHours=Bn,sr.asDays=Wn,sr.asWeeks=Un,sr.asMonths=qn,sr.asQuarters=Gn,sr.asYears=Yn,sr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},sr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,c=this._months,s=this._data;return i>=0&&a>=0&&c>=0||i<=0&&a<=0&&c<=0||(i+=864e5*Hn(Vn(c)+a),a=0,c=0),s.milliseconds=i%1e3,e=q(i/1e3),s.seconds=e%60,t=q(e/60),s.minutes=t%60,n=q(t/60),s.hours=n%24,a+=q(n/24),o=q(In(a)),c+=o,a-=Hn(Vn(o)),r=q(c/12),c%=12,s.days=a,s.months=c,s.years=r,this},sr.clone=function(){return Kt(this)},sr.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},sr.milliseconds=Zn,sr.seconds=Kn,sr.minutes=Xn,sr.hours=Qn,sr.days=Jn,sr.weeks=function(){return q(this.days()/7)},sr.months=er,sr.years=tr,sr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=rr;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},rr,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Kt(e).abs(),i=nr(o.as("s")),a=nr(o.as("m")),c=nr(o.as("h")),s=nr(o.as("d")),l=nr(o.as("M")),u=nr(o.as("w")),f=nr(o.as("y")),h=i<=n.ss&&["s",i]||i0,h[4]=r,or.apply(null,h)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},sr.toISOString=cr,sr.toString=cr,sr.toJSON=cr,sr.locale=an,sr.localeData=sn,sr.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cr),sr.lang=cn,H("X",0,0,"unix"),H("x",0,0,"valueOf"),de("x",le),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(G(e))})),r.version="2.29.1",t=Dt,r.fn=On,r.min=function(){return Vt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Vt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return Dt(1e3*e)},r.months=function(e,t){return Tn(e,t,"months")},r.isDate=u,r.locale=pt,r.invalid=m,r.duration=Kt,r.isMoment=_,r.weekdays=function(e,t,n){return Ln(e,t,n,"weekdays")},r.parseZone=function(){return Dt.apply(null,arguments).parseZone()},r.localeData=mt,r.isDuration=jt,r.monthsShort=function(e,t){return Tn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Ln(e,t,n,"weekdaysMin")},r.defineLocale=vt,r.updateLocale=function(e,t){if(null!=t){var n,r,o=st;null!=lt[e]&&null!=lt[e].parentLocale?lt[e].set(k(lt[e]._config,t)):(null!=(r=dt(e))&&(o=r._config),t=k(o,t),null==r&&(t.abbr=e),(n=new E(t)).parentLocale=lt[e],lt[e]=n),pt(e)}else null!=lt[e]&&(null!=lt[e].parentLocale?(lt[e]=lt[e].parentLocale,e===pt()&&pt(e)):null!=lt[e]&&delete lt[e]);return lt[e]},r.locales=function(){return z(lt)},r.weekdaysShort=function(e,t,n){return Ln(e,t,n,"weekdaysShort")},r.normalizeUnits=j,r.relativeTimeRounding=function(e){return void 0===e?nr:"function"===typeof e&&(nr=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==rr[e]&&(void 0===t?rr[e]:(rr[e]=t,"s"===e&&(rr.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=On,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(502)(e))},,function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t. You may also pass a {context : MyContext} option to connect");var D=L;return function(t){var n=t.displayName||t.name||"Component",i=a(n),c=Object(v.a)({},P,{getDisplayName:a,methodName:l,renderCountProp:f,shouldHandleStateChanges:p,storeKey:b,displayName:i,wrappedComponentName:n,WrappedComponent:t}),s=P.pure;var u=s?r.useMemo:function(e){return e()};function d(n){var a=Object(r.useMemo)((function(){var e=n.forwardedRef,t=Object(m.a)(n,["forwardedRef"]);return[n.context,e,t]}),[n]),s=a[0],l=a[1],f=a[2],d=Object(r.useMemo)((function(){return s&&s.Consumer&&Object(_.isContextConsumer)(o.a.createElement(s.Consumer,null))?s:D}),[s,D]),g=Object(r.useContext)(d),y=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),b=Boolean(g)&&Boolean(g.store);w()(y||b,'Could not find "store" in the context of "'+i+'". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to '+i+" in connect options.");var O=y?n.store:g.store,k=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,c)}(O)}),[O]),E=Object(r.useMemo)((function(){if(!p)return z;var e=new h(O,y?null:g.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[O,y,g]),A=E[0],T=E[1],L=Object(r.useMemo)((function(){return y?g:Object(v.a)({},g,{subscription:A})}),[y,g,A]),P=Object(r.useReducer)(M,C,S),H=P[0][0],I=P[1];if(H&&H.error)throw H.error;var V=Object(r.useRef)(),N=Object(r.useRef)(f),R=Object(r.useRef)(),j=Object(r.useRef)(!1),F=u((function(){return R.current&&f===N.current?R.current:k(O.getState(),f)}),[O,H,f]);x((function(){N.current=f,V.current=F,j.current=!1,R.current&&(R.current=null,T())})),x((function(){if(p){var e=!1,t=null,n=function(){if(!e){var n,r,o=O.getState();try{n=k(o,N.current)}catch(i){r=i,t=i}r||(t=null),n===V.current?j.current||T():(V.current=n,R.current=n,j.current=!0,I({type:"STORE_UPDATED",payload:{error:r}}))}};A.onStateChange=n,A.trySubscribe(),n();return function(){if(e=!0,A.tryUnsubscribe(),A.onStateChange=null,t)throw t}}}),[O,A,k]);var B=Object(r.useMemo)((function(){return o.a.createElement(t,Object(v.a)({},F,{ref:l}))}),[l,t,F]);return Object(r.useMemo)((function(){return p?o.a.createElement(d.Provider,{value:L},B):B}),[d,B,L])}var g=s?o.a.memo(d):d;if(g.WrappedComponent=t,g.displayName=i,A){var O=o.a.forwardRef((function(e,t){return o.a.createElement(g,Object(v.a)({},e,{forwardedRef:t}))}));return O.displayName=i,O.WrappedComponent=t,y()(O,t)}return y()(g,t)}}var k=Object.prototype.hasOwnProperty;function E(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function A(e,t){if(E(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function W(e,t){return e===t}!function(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,i=void 0===o?I:o,a=t.mapDispatchToPropsFactories,c=void 0===a?H:a,s=t.mergePropsFactories,l=void 0===s?N:s,u=t.selectorFactory,f=void 0===u?F:u}();function U(){var e=Object(r.useContext)(c);return w()(e,"could not find react-redux context value; please ensure the component is wrapped in a "),e}function q(e){void 0===e&&(e=c);var t=e===c?U:function(){return Object(r.useContext)(e)};return function(){return t().store}}var G=q();function Y(e){void 0===e&&(e=c);var t=e===c?G:q(e);return function(){return t().dispatch}}var $=Y(),Z=function(e,t){return e===t};function K(e){void 0===e&&(e=c);var t=e===c?U:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=Z),w()(e,"You must pass a selector to useSelectors");var o=t();return function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],c=Object(r.useMemo)((function(){return new h(n,o)}),[n,o]),s=Object(r.useRef)(),l=Object(r.useRef)(),u=Object(r.useRef)();try{i=e!==l.current||s.current?e(n.getState()):u.current}catch(d){var f="An error occurred while selecting the store state: "+d.message+".";throw s.current&&(f+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\nOriginal stack trace:"),new Error(f)}return x((function(){l.current=e,u.current=i,s.current=void 0})),x((function(){function e(){try{var e=l.current(n.getState());if(t(e,u.current))return;u.current=e}catch(d){s.current=d}a({})}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),i}(e,n,o.store,o.subscription)}}var X,Q=K(),J=n(30);n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return $})),n.d(t,"b",(function(){return Y})),n.d(t,"e",(function(){return Q})),n.d(t,"c",(function(){return K})),n.d(t,"f",(function(){return G})),X=J.unstable_batchedUpdates,s=X},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MODIFIER_KEY_NAMES=t.DEFAULT_VERTICAL_SPACING=t.FANG_HEIGHT_PX=t.FANG_WIDTH_PX=t.WEEKDAYS=t.BLOCKED_MODIFIER=t.DAY_SIZE=t.OPEN_UP=t.OPEN_DOWN=t.ANCHOR_RIGHT=t.ANCHOR_LEFT=t.INFO_POSITION_AFTER=t.INFO_POSITION_BEFORE=t.INFO_POSITION_BOTTOM=t.INFO_POSITION_TOP=t.ICON_AFTER_POSITION=t.ICON_BEFORE_POSITION=t.NAV_POSITION_TOP=t.NAV_POSITION_BOTTOM=t.VERTICAL_SCROLLABLE=t.VERTICAL_ORIENTATION=t.HORIZONTAL_ORIENTATION=t.END_DATE=t.START_DATE=t.ISO_MONTH_FORMAT=t.ISO_FORMAT=t.DISPLAY_FORMAT=void 0;t.DISPLAY_FORMAT="L";t.ISO_FORMAT="YYYY-MM-DD";t.ISO_MONTH_FORMAT="YYYY-MM";t.START_DATE="startDate";t.END_DATE="endDate";t.HORIZONTAL_ORIENTATION="horizontal";t.VERTICAL_ORIENTATION="vertical";t.VERTICAL_SCROLLABLE="verticalScrollable";t.NAV_POSITION_BOTTOM="navPositionBottom";t.NAV_POSITION_TOP="navPositionTop";t.ICON_BEFORE_POSITION="before";t.ICON_AFTER_POSITION="after";t.INFO_POSITION_TOP="top";t.INFO_POSITION_BOTTOM="bottom";t.INFO_POSITION_BEFORE="before";t.INFO_POSITION_AFTER="after";t.ANCHOR_LEFT="left";t.ANCHOR_RIGHT="right";t.OPEN_DOWN="down";t.OPEN_UP="up";t.DAY_SIZE=39;t.BLOCKED_MODIFIER="blocked";t.WEEKDAYS=[0,1,2,3,4,5,6];t.FANG_WIDTH_PX=20;t.FANG_HEIGHT_PX=10;t.DEFAULT_VERTICAL_SPACING=22;var r=new Set(["Shift","Control","Alt","Meta"]);t.MODIFIER_KEY_NAMES=r},function(e,t,n){"use strict";function r(e){return null!=e&&"object"===typeof e&&!0===e["@@functional/placeholder"]}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r,o,i={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},a={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},c={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};!function(e){e[e.BOTTOM=1]="BOTTOM",e[e.CENTER=2]="CENTER",e[e.RIGHT=4]="RIGHT",e[e.FLIP_RTL=8]="FLIP_RTL"}(r||(r={})),function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=4]="TOP_RIGHT",e[e.BOTTOM_LEFT=1]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",e[e.TOP_START=8]="TOP_START",e[e.TOP_END=12]="TOP_END",e[e.BOTTOM_START=9]="BOTTOM_START",e[e.BOTTOM_END=13]="BOTTOM_END"}(o||(o={}))},,function(e,t,n){"use strict";var r=n(172);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return c}));var r=n(215),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,n){var o;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(c)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var s=e,l=t,u=[],f=u,h=!1;function d(){f===u&&(f=u.slice())}function p(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function v(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return d(),f.push(e),function(){if(t){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,d();var n=f.indexOf(e);f.splice(n,1)}}}function m(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,l=s(l,e)}finally{h=!1}for(var t=u=f,n=0;n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=TypeError,o=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new r},i=n(157)(),a=Object.getPrototypeOf||function(e){return e.__proto__},c=void 0,s="undefined"===typeof Uint8Array?void 0:a(Uint8Array),l={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":i?a([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":c&&i&&Symbol.asyncIterator?c[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"===typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"===typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"===typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"===typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"===typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"===typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"===typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":i?a(a([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"===typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!==typeof Map&&i?a((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"===typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"===typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"===typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"===typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"===typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"===typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"===typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"===typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!==typeof Set&&i?a((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"===typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":i?a(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":i?Symbol:void 0,"$ %SymbolPrototype%":i?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":o,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":r,"$ %TypeErrorPrototype%":r.prototype,"$ %Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"===typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"===typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"===typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"===typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"===typeof WeakSet?void 0:WeakSet.prototype},u=n(67).call(Function.call,String.prototype.replace),f=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,d=function(e){var t=[];return u(e,f,(function(e,n,r,o){t[t.length]=r?u(o,h,"$1"):n||e})),t},p=function(e,t){var n="$ "+e;if(!(n in l))throw new SyntaxError("intrinsic "+e+" does not exist!");if("undefined"===typeof l[n]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return l[n]};e.exports=function(e,t){if(arguments.length>1&&"boolean"!==typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n=d(e);if(0===n.length)return p(e,t);for(var r=p("%"+n[0]+"%",t),o=1;o2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c=0;)t=c[n],Object(o.a)(t,e)&&!l(r,t)&&(r[r.length]=t),n-=1;return r})):Object(r.a)((function(e){return Object(e)!==e?[]:Object.keys(e)}));t.a=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},function(e,t,n){"use strict";var r=n(233),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function c(e){return null!==e&&"object"===typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n0&&void 0!==arguments[0]?arguments[0]:f.default,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,r=void 0===n?"styles":n,o=t.themePropName,p=void 0===o?"theme":o,v=t.cssPropName,g=void 0===v?"css":v,y=t.flushBefore,b=void 0!==y&&y,w=t.pureComponent,_=void 0!==w&&w;e=e||f.default;var x=_?s.default.PureComponent:s.default.Component,C="undefined"===typeof WeakMap?new Map:new WeakMap;var z="undefined"===typeof WeakMap?new Map:new WeakMap;return function(t){var n=(0,u.default)(t),o=function(n){function o(){return n.apply(this,arguments)||this}(0,c.default)(o,n);var l=o.prototype;return l.getCurrentInterface=function(){return this.context&&this.context.stylesInterface||(0,d._getInterface)()},l.getCurrentTheme=function(){return this.context&&this.context.stylesTheme||(0,d._getTheme)()},l.getCurrentDirection=function(){return this.context&&this.context.direction||h.DIRECTIONS.LTR},l.getProps=function(){var t=this.getCurrentInterface(),n=this.getCurrentTheme(),r=this.getCurrentDirection(),i=function(e,t,n){var r=z.get(e);if(!r)return null;var o=r.get(t);return o?o[n]:null}(n,o,r),a=!i||!i.stylesInterface||t&&i.stylesInterface!==t,c=!i||i.theme!==n;if(!a&&!c)return i.props;var s=a&&function(e,t){var n=e===h.DIRECTIONS.RTL?"RTL":"LTR";return t["create".concat(n)]||t.create}(r,t)||i.create,l=a&&function(e,t){var n=e===h.DIRECTIONS.RTL?"RTL":"LTR";return t["resolve".concat(n)]||t.resolve}(r,t)||i.resolve,u=a&&function(){for(var e=arguments.length,t=new Array(e),n=0;nu)return-1;null!==s&&void 0!==s||(s=0);var f,h=function(e){return e>=0&&ea){if(s>0&&h(f=d-1)&&c[f]a)return d;e=a,t=c,n=s,r=d+1,o=u,i=!0,h=d=p=f=void 0}}},t.dateParser=function(e){var t,n;if((-1==e.search("-")||-1!=e.search("T")||-1!=e.search("Z"))&&(n=v(e))&&!isNaN(n))return n;if(-1!=e.search("-")){for(t=e.replace("-","/","g");-1!=t.search("-");)t=t.replace("-","/");n=v(t)}else 8==e.length?(t=e.substr(0,4)+"/"+e.substr(4,2)+"/"+e.substr(6,2),n=v(t)):n=v(e);n&&!isNaN(n)||console.error("Couldn't parse "+e+" as a date");return n},t.dateStrToMillis=v,t.update=function(e,t){if("undefined"!=typeof t&&null!==t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},t.updateDeep=function e(t,n){function r(e){return"object"===typeof Node?e instanceof Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName}if("undefined"!=typeof n&&null!==n)for(var o in n)n.hasOwnProperty(o)&&(null===n[o]?t[o]=null:m(n[o])?t[o]=n[o].slice():r(n[o])?t[o]=n[o]:"object"==typeof n[o]?("object"==typeof t[o]&&null!==t[o]||(t[o]={}),e(t[o],n[o])):t[o]=n[o]);return t},t.isArrayLike=m,t.isDateLike=function(e){if("object"!=typeof e||null===e||"function"!=typeof e.getTime)return!1;return!0},t.clone=function e(t){for(var n=[],r=0;r=t||y.call(window,(function(){var t=(new Date).getTime()-a;o=i;var l=(i=Math.floor(t/n))-o;i+l>c||i>=c?(e(c),r()):(0!==l&&e(i),s())}))}()},t.isPixelChangingOptionList=function(e,t){var n={};if(e)for(var r=1;r=r.Granularity.DECADAL)return""+i;if(t>=r.Granularity.MONTHLY)return k[a]+" "+i;if(0===3600*s+60*d+p+.001*v||t>=r.Granularity.DAILY)return l(c)+" "+k[a];if(tr.Granularity.MINUTELY?h(s,d,p,0):h(s,d,p,v)},t.dateValueFormatter=function(e,t){return d(e,t("labelsUTC"))};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(199));t.LOG_SCALE=10;var o=Math.log(10);t.LN_TEN=o;var i=function(e){return Math.log(e)/o};t.log10=i;t.logRangeFraction=function(e,t,n){var r=i(e),o=r+n*(i(t)-r);return Math.pow(10,o)};t.DOTTED_LINE=[2,2];t.DASHED_LINE=[7,3];t.DOT_DASH_LINE=[7,2,2,2];t.HORIZONTAL=1;t.VERTICAL=2;t.getContext=function(e){return e.getContext("2d")};function a(e){return!e.pageX||e.pageX<0?0:e.pageX}function c(e){return!e.pageY||e.pageY<0?0:e.pageY}function s(e,t){var n=Math.min(Math.max(1,t||2),21);return Math.abs(e)<.001&&0!==e?e.toExponential(n-1):e.toPrecision(n)}function l(e){return e<10?"0"+e:""+e}t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)};var u={getFullYear:function(e){return e.getFullYear()},getMonth:function(e){return e.getMonth()},getDate:function(e){return e.getDate()},getHours:function(e){return e.getHours()},getMinutes:function(e){return e.getMinutes()},getSeconds:function(e){return e.getSeconds()},getMilliseconds:function(e){return e.getMilliseconds()},getDay:function(e){return e.getDay()},makeDate:function(e,t,n,r,o,i,a){return new Date(e,t,n,r,o,i,a)}};t.DateAccessorsLocal=u;var f={getFullYear:function(e){return e.getUTCFullYear()},getMonth:function(e){return e.getUTCMonth()},getDate:function(e){return e.getUTCDate()},getHours:function(e){return e.getUTCHours()},getMinutes:function(e){return e.getUTCMinutes()},getSeconds:function(e){return e.getUTCSeconds()},getMilliseconds:function(e){return e.getUTCMilliseconds()},getDay:function(e){return e.getUTCDay()},makeDate:function(e,t,n,r,o,i,a){return new Date(Date.UTC(e,t,n,r,o,i,a))}};function h(e,t,n,r){var o=l(e)+":"+l(t);if(n&&(o+=":"+l(n),r)){var i=""+r;o+="."+("000"+i).substring(i.length)}return o}function d(e,t){var n=t?f:u,r=new Date(e),o=n.getFullYear(r),i=n.getMonth(r),a=n.getDate(r),c=n.getHours(r),s=n.getMinutes(r),d=n.getSeconds(r),p=n.getMilliseconds(r),v=""+o+"/"+l(i+1)+"/"+l(a);return 3600*c+60*s+d+.001*p&&(v+=" "+h(c,s,d,p)),v}function p(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function v(e){return new Date(e).getTime()}function m(e){var t=typeof e;return("object"==t||"function"==t&&"function"==typeof e.item)&&null!==e&&"number"==typeof e.length&&3!==e.nodeType}function g(e,t,n,r){t=t||0,n=n||e.length,this.hasNext=!0,this.peek=null,this.start_=t,this.array_=e,this.predicate_=r,this.end_=Math.min(e.length,t+n),this.nextIdx_=t-1,this.next()}t.DateAccessorsUTC=f,g.prototype.next=function(){if(!this.hasNext)return null;for(var e=this.peek,t=this.nextIdx_+1,n=!1;t=Math.pow(10,i)||Math.abs(e)=0;v--,d/=l)if(h>=d){r=p(e/d,o)+u[v];break}if(c){var m=String(e.toExponential()).split("e-");2===m.length&&m[1]>=3&&m[1]<=24&&(r=m[1]%3>0?p(m[0]/_(10,m[1]%3),o):Number(m[0]).toFixed(2),r+=f[Math.floor(m[1]/3)-1])}}return r}var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},function(e,t,n){"use strict";t.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}()},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(67);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(155),o=n(109),i=t.toInt=function(e){return parseInt(e,10)||0},a=t.clone=function(e){if(e){if(e.constructor===Array)return e.map(a);if("object"===typeof e){var t={};for(var n in e)t[n]=a(e[n]);return t}return e}return null};t.extend=function(e,t){var n=a(e);for(var r in t)n[r]=a(t[r]);return n},t.isEditable=function(e){return o.matches(e,"input,[contenteditable]")||o.matches(e,"select,[contenteditable]")||o.matches(e,"textarea,[contenteditable]")||o.matches(e,"button,[contenteditable]")},t.removePsClasses=function(e){for(var t=r.list(e),n=0;n0&&t.forEach((function(e){i.remove(e)})),i.appendTo(n.scrollbarXRail,e)),e.contains(n.scrollbarYRail)||((t=i.queryChildren(e,".ps-scrollbar-y-rail")).length>0&&t.forEach((function(e){i.remove(e)})),i.appendTo(n.scrollbarYRail,e)),!n.settings.suppressScrollX&&n.containerWidth+n.settings.scrollXMarginOffset=n.railXWidth-n.scrollbarXWidth&&(n.scrollbarXLeft=n.railXWidth-n.scrollbarXWidth),n.scrollbarYTop>=n.railYHeight-n.scrollbarYHeight&&(n.scrollbarYTop=n.railYHeight-n.scrollbarYHeight),function(e,t){var n={width:t.railXWidth};t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-e.scrollTop:n.top=t.scrollbarXTop+e.scrollTop,i.css(t.scrollbarXRail,n);var r={top:e.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft,i.css(t.scrollbarYRail,r),i.css(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),i.css(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(e,n),n.scrollbarXActive?o.add(e,"ps-active-x"):(o.remove(e,"ps-active-x"),n.scrollbarXWidth=0,n.scrollbarXLeft=0,c(e,"left",0)),n.scrollbarYActive?o.add(e,"ps-active-y"):(o.remove(e,"ps-active-y"),n.scrollbarYHeight=0,n.scrollbarYTop=0,c(e,"top",0))}},function(e,t,n){var r=n(23),o=n(503),i=n(504);e.exports={momentObj:i.createMomentChecker("object",(function(e){return"object"===typeof e}),(function(e){return o.isValidMoment(e)}),"Moment"),momentString:i.createMomentChecker("string",(function(e){return"string"===typeof e}),(function(e){return o.isValidMoment(r(e))}),"Moment"),momentDurationObj:i.createMomentChecker("object",(function(e){return"object"===typeof e}),(function(e){return r.isDuration(e)}),"Duration")}},function(e,t,n){var r=n(388),o=n(389),i=n(390);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,c],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,"a",(function(){return r}))},,function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,l=[],u=!1,f=-1;function h(){u&&s&&(u=!1,s.length?l=s.concat(l):f=-1,l.length&&d())}function d(){if(!u){var e=c(h);u=!0;for(var t=l.length;t;){for(s=l,l=[];++f1)for(var n=1;n=c.contentHeight-c.containerHeight&&((n=c.contentHeight-c.containerHeight)-e.scrollTop<=1?n=e.scrollTop:e.scrollTop=n,e.dispatchEvent(a("ps-y-reach-end"))),"left"===t&&n>=c.contentWidth-c.containerWidth&&((n=c.contentWidth-c.containerWidth)-e.scrollLeft<=1?n=e.scrollLeft:e.scrollLeft=n,e.dispatchEvent(a("ps-x-reach-end"))),r||(r=e.scrollTop),o||(o=e.scrollLeft),"top"===t&&nr&&e.dispatchEvent(a("ps-scroll-down")),"left"===t&&no&&e.dispatchEvent(a("ps-scroll-right")),"top"===t&&(e.scrollTop=r=n,e.dispatchEvent(a("ps-scroll-y"))),"left"===t&&(e.scrollLeft=o=n,e.dispatchEvent(a("ps-scroll-x")))}},function(e,t,n){"use strict";var r=n(48),o=n(159),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")?o(n):n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("number"===typeof e)return"".concat(e,"px ").concat(r);if("string"===typeof e)return"".concat(e," ").concat(r);throw new TypeError("noflip expects a string or a number")};var r="/* @noflip */"},function(e,t,n){"use strict";var r=n(113),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=d(n);o&&o!==p&&e(t,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var c=s(t),v=s(n),m=0;m=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){void 0===e&&(e={}),this.adapter_=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},function(e,t,n){"use strict";var r=n(27),o=n(79),i=n(80),a=Object(r.a)((function(e){return!!Object(o.a)(e)||!!e&&("object"===typeof e&&(!Object(i.a)(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),c=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var s=n(73),l=n(19),u=Object(l.a)((function(e,t){return Object(s.a)(e.length,(function(){return e.apply(t,arguments)}))}));function f(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function h(e,t,n,r){return e["@@transducer/result"](n[r](u(e["@@transducer/step"],e),t))}n.d(t,"a",(function(){return p}));var d="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator";function p(e,t,n){if("function"===typeof e&&(e=function(e){return new c(e)}(e)),a(n))return function(e,t,n){for(var r=0,o=n.length;r"']/g,N=RegExp(I.source),R=RegExp(V.source),j=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(G.source),$=/^\s+|\s+$/g,Z=/^\s+/,K=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,se=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="["+de+"]",ve="["+he+"]",me="\\d+",ge="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+de+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",we="[^\\ud800-\\udfff]",_e="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ze="(?:"+ge+"|"+ye+")",Me="(?:"+Ce+"|"+ye+")",Se="(?:"+ve+"|"+be+")?",Oe="[\\ufe0e\\ufe0f]?"+Se+"(?:\\u200d(?:"+[we,_e,xe].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*",ke="(?:"+["[\\u2700-\\u27bf]",_e,xe].join("|")+")"+Oe,Ee="(?:"+[we+ve+"?",ve,_e,xe,"[\\ud800-\\udfff]"].join("|")+")",Ae=RegExp("['\u2019]","g"),Te=RegExp(ve,"g"),Le=RegExp(be+"(?="+be+")|"+Ee+Oe,"g"),Pe=RegExp([Ce+"?"+ge+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[pe,Ce,"$"].join("|")+")",Me+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[pe,Ce+ze,"$"].join("|")+")",Ce+"?"+ze+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ce+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,ke].join("|"),"g"),De=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),He=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ie=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ve=-1,Ne={};Ne[M]=Ne[S]=Ne[O]=Ne[k]=Ne[E]=Ne[A]=Ne["[object Uint8ClampedArray]"]=Ne[T]=Ne[L]=!0,Ne[s]=Ne[l]=Ne[C]=Ne[u]=Ne[z]=Ne[f]=Ne[h]=Ne[d]=Ne[v]=Ne[m]=Ne[g]=Ne[y]=Ne[b]=Ne[w]=Ne[x]=!1;var Re={};Re[s]=Re[l]=Re[C]=Re[z]=Re[u]=Re[f]=Re[M]=Re[S]=Re[O]=Re[k]=Re[E]=Re[v]=Re[m]=Re[g]=Re[y]=Re[b]=Re[w]=Re[_]=Re[A]=Re["[object Uint8ClampedArray]"]=Re[T]=Re[L]=!0,Re[h]=Re[d]=Re[x]=!1;var je={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fe=parseFloat,Be=parseInt,We="object"==typeof e&&e&&e.Object===Object&&e,Ue="object"==typeof self&&self&&self.Object===Object&&self,qe=We||Ue||Function("return this")(),Ge=t&&!t.nodeType&&t,Ye=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,$e=Ye&&Ye.exports===Ge,Ze=$e&&We.process,Ke=function(){try{return Ye&&Ye.require&&Ye.require("util").types||Ze&&Ze.binding&&Ze.binding("util")}catch(e){}}(),Xe=Ke&&Ke.isArrayBuffer,Qe=Ke&&Ke.isDate,Je=Ke&&Ke.isMap,et=Ke&&Ke.isRegExp,tt=Ke&&Ke.isSet,nt=Ke&&Ke.isTypedArray;function rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function ut(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Lt(e,t){for(var n=e.length;n--&&bt(t,e[n],0)>-1;);return n}function Pt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Dt=zt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Ht=zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function It(e){return"\\"+je[e]}function Vt(e){return De.test(e)}function Nt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Rt(e,t){return function(n){return e(t(n))}}function jt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"}),qt=function e(t){var n,r=(t=null==t?qe:qt.defaults(qe.Object(),t,qt.pick(qe,Ie))).Array,o=t.Date,he=t.Error,de=t.Function,pe=t.Math,ve=t.Object,me=t.RegExp,ge=t.String,ye=t.TypeError,be=r.prototype,we=de.prototype,_e=ve.prototype,xe=t["__core-js_shared__"],Ce=we.toString,ze=_e.hasOwnProperty,Me=0,Se=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Oe=_e.toString,ke=Ce.call(ve),Ee=qe._,Le=me("^"+Ce.call(ze).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=$e?t.Buffer:void 0,je=t.Symbol,We=t.Uint8Array,Ue=De?De.allocUnsafe:void 0,Ge=Rt(ve.getPrototypeOf,ve),Ye=ve.create,Ze=_e.propertyIsEnumerable,Ke=be.splice,mt=je?je.isConcatSpreadable:void 0,zt=je?je.iterator:void 0,Gt=je?je.toStringTag:void 0,Yt=function(){try{var e=Qo(ve,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Zt=o&&o.now!==qe.Date.now&&o.now,Kt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Xt=pe.ceil,Qt=pe.floor,Jt=ve.getOwnPropertySymbols,en=De?De.isBuffer:void 0,tn=t.isFinite,nn=be.join,rn=Rt(ve.keys,ve),on=pe.max,an=pe.min,cn=o.now,sn=t.parseInt,ln=pe.random,un=be.reverse,fn=Qo(t,"DataView"),hn=Qo(t,"Map"),dn=Qo(t,"Promise"),pn=Qo(t,"Set"),vn=Qo(t,"WeakMap"),mn=Qo(ve,"create"),gn=vn&&new vn,yn={},bn=Mi(fn),wn=Mi(hn),_n=Mi(dn),xn=Mi(pn),Cn=Mi(vn),zn=je?je.prototype:void 0,Mn=zn?zn.valueOf:void 0,Sn=zn?zn.toString:void 0;function On(e){if(Ba(e)&&!Ta(e)&&!(e instanceof Tn)){if(e instanceof An)return e;if(ze.call(e,"__wrapped__"))return Si(e)}return new An(e)}var kn=function(){function e(){}return function(t){if(!Fa(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function En(){}function An(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Tn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Zn(e,t,n,r,o,i){var a,c=1&t,l=2&t,h=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!Fa(e))return e;var x=Ta(e);if(x){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ze.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return mo(e,a)}else{var P=ti(e),D=P==d||P==p;if(Ha(e))return lo(e,c);if(P==g||P==s||D&&!o){if(a=l||D?{}:ri(e),!c)return l?function(e,t){return go(e,ei(e),t)}(e,function(e,t){return e&&go(t,bc(t),e)}(a,e)):function(e,t){return go(e,Jo(e),t)}(e,qn(a,e))}else{if(!Re[P])return o?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case C:return uo(e);case u:case f:return new o(+e);case z:return function(e,t){var n=t?uo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case S:case O:case k:case E:case A:case"[object Uint8ClampedArray]":case T:case L:return fo(e,n);case v:return new o;case m:case w:return new o(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new o;case _:return r=e,Mn?ve(Mn.call(r)):{}}}(e,P,c)}}i||(i=new In);var H=i.get(e);if(H)return H;i.set(e,a),Ya(e)?e.forEach((function(r){a.add(Zn(r,t,n,r,e,i))})):Wa(e)&&e.forEach((function(r,o){a.set(o,Zn(r,t,n,o,e,i))}));var I=x?void 0:(h?l?qo:Uo:l?bc:yc)(e);return it(I||e,(function(r,o){I&&(r=e[o=r]),Bn(a,o,Zn(r,t,n,o,e,i))})),a}function Kn(e,t,n){var r=n.length;if(null==e)return!r;for(e=ve(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new ye(i);return yi((function(){e.apply(void 0,n)}),t)}function Qn(e,t,n,r){var o=-1,i=lt,a=!0,c=e.length,s=[],l=t.length;if(!c)return s;n&&(t=ft(t,kt(n))),r?(i=ut,a=!1):t.length>=200&&(i=At,a=!1,t=new Hn(t));e:for(;++o-1},Pn.prototype.set=function(e,t){var n=this.__data__,r=Wn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Ln,map:new(hn||Pn),string:new Ln}},Dn.prototype.delete=function(e){var t=Ko(this,e).delete(e);return this.size-=t?1:0,t},Dn.prototype.get=function(e){return Ko(this,e).get(e)},Dn.prototype.has=function(e){return Ko(this,e).has(e)},Dn.prototype.set=function(e,t){var n=Ko(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Hn.prototype.has=function(e){return this.__data__.has(e)},In.prototype.clear=function(){this.__data__=new Pn,this.size=0},In.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},In.prototype.get=function(e){return this.__data__.get(e)},In.prototype.has=function(e){return this.__data__.has(e)},In.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Pn){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(e,t),this.size=n.size,this};var Jn=wo(cr),er=wo(sr,!0);function tr(e,t){var n=!0;return Jn(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function nr(e,t,n){for(var r=-1,o=e.length;++r0&&n(c)?t>1?or(c,t-1,n,r,o):ht(o,c):r||(o[o.length]=c)}return o}var ir=_o(),ar=_o(!0);function cr(e,t){return e&&ir(e,t,yc)}function sr(e,t){return e&&ar(e,t,yc)}function lr(e,t){return st(t,(function(t){return Na(e[t])}))}function ur(e,t){for(var n=0,r=(t=io(t,e)).length;null!=e&&nt}function pr(e,t){return null!=e&&ze.call(e,t)}function vr(e,t){return null!=e&&t in ve(e)}function mr(e,t,n){for(var o=n?ut:lt,i=e[0].length,a=e.length,c=a,s=r(a),l=1/0,u=[];c--;){var f=e[c];c&&t&&(f=ft(f,kt(t))),l=an(f.length,l),s[c]=!n&&(t||i>=120&&f.length>=120)?new Hn(c&&f):void 0}f=e[0];var h=-1,d=s[0];e:for(;++h=c?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Tr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)c!==e&&Ke.call(c,s,1),Ke.call(e,s,1);return e}function Pr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ii(o)?Ke.call(e,o,1):Xr(e,o)}}return e}function Dr(e,t){return e+Qt(ln()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Qt(t/2))&&(e+=e)}while(t);return n}function Ir(e,t){return bi(di(e,t,Uc),e+"")}function Vr(e){return Nn(Oc(e))}function Nr(e,t){var n=Oc(e);return xi(n,$n(t,0,n.length))}function Rr(e,t,n,r){if(!Fa(e))return e;for(var o=-1,i=(t=io(t,e)).length,a=i-1,c=e;null!=c&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Za(a)&&(n?a<=t:a=200){var l=t?null:Io(e);if(l)return Ft(l);a=!1,o=At,s=new Hn}else s=t?[]:c;e:for(;++r=r?e:Wr(e,t,n)}var so=$t||function(e){return qe.clearTimeout(e)};function lo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function uo(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function fo(e,t){var n=t?uo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ho(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Za(e),a=void 0!==t,c=null===t,s=t==t,l=Za(t);if(!c&&!l&&!i&&e>t||i&&a&&s&&!c&&!l||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ai(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=ve(t);++r-1?o[i?t[a]:a]:void 0}}function So(e){return Wo((function(t){var n=t.length,r=n,o=An.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ye(i);if(o&&!c&&"wrapper"==Yo(a))var c=new An([],!0)}for(r=c?r:n;++r1&&b.reverse(),f&&lc))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var f=-1,h=!0,d=2&n?new Hn:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return it(c,(function(n){var r="_."+n[0];t&n[1]&&!lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(J):[]}(r),n)))}function _i(e){var t=0,n=0;return function(){var r=cn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function xi(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gi(e,n)}));function Ji(e){var t=On(e);return t.__chain__=!0,t}function ea(e,t){return t(e)}var ta=Wo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Tn&&ii(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ea,args:[o],thisArg:void 0}),new An(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)})),na=yo((function(e,t,n){ze.call(e,n)?++e[n]:Gn(e,n,1)})),ra=Mo(Ai),oa=Mo(Ti);function ia(e,t){return(Ta(e)?it:Jn)(e,Zo(t,3))}function aa(e,t){return(Ta(e)?at:er)(e,Zo(t,3))}var ca=yo((function(e,t,n){ze.call(e,n)?e[n].push(t):Gn(e,n,[t])})),sa=Ir((function(e,t,n){var o=-1,i="function"==typeof t,a=Pa(e)?r(e.length):[];return Jn(e,(function(e){a[++o]=i?rt(t,e,n):gr(e,t,n)})),a})),la=yo((function(e,t,n){Gn(e,n,t)}));function ua(e,t){return(Ta(e)?ft:Mr)(e,Zo(t,3))}var fa=yo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ha=Ir((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ai(e,t[0],t[1])?t=[]:n>2&&ai(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,or(t,1),[])})),da=Zt||function(){return qe.Date.now()};function pa(e,t,n){return t=n?void 0:t,No(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function va(e,t){var n;if("function"!=typeof t)throw new ye(i);return e=tc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ma=Ir((function(e,t,n){var r=1;if(n.length){var o=jt(n,$o(ma));r|=32}return No(e,r,t,n,o)})),ga=Ir((function(e,t,n){var r=3;if(n.length){var o=jt(n,$o(ga));r|=32}return No(t,r,e,n,o)}));function ya(e,t,n){var r,o,a,c,s,l,u=0,f=!1,h=!1,d=!0;if("function"!=typeof e)throw new ye(i);function p(t){var n=r,i=o;return r=o=void 0,u=t,c=e.apply(i,n)}function v(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-u>=a}function m(){var e=da();if(v(e))return g(e);s=yi(m,function(e){var n=t-(e-l);return h?an(n,a-(e-u)):n}(e))}function g(e){return s=void 0,d&&r?p(e):(r=o=void 0,c)}function y(){var e=da(),n=v(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=yi(m,t),f?p(e):c}(l);if(h)return so(s),s=yi(m,t),p(l)}return void 0===s&&(s=yi(m,t)),c}return t=rc(t)||0,Fa(n)&&(f=!!n.leading,a=(h="maxWait"in n)?on(rc(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&so(s),u=0,r=l=o=s=void 0},y.flush=function(){return void 0===s?c:g(da())},y}var ba=Ir((function(e,t){return Xn(e,1,t)})),wa=Ir((function(e,t,n){return Xn(e,rc(t)||0,n)}));function _a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(i);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(_a.Cache||Dn),n}function xa(e){if("function"!=typeof e)throw new ye(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}_a.Cache=Dn;var Ca=ao((function(e,t){var n=(t=1==t.length&&Ta(t[0])?ft(t[0],kt(Zo())):ft(or(t,1),kt(Zo()))).length;return Ir((function(r){for(var o=-1,i=an(r.length,n);++o=t})),Aa=yr(function(){return arguments}())?yr:function(e){return Ba(e)&&ze.call(e,"callee")&&!Ze.call(e,"callee")},Ta=r.isArray,La=Xe?kt(Xe):function(e){return Ba(e)&&hr(e)==C};function Pa(e){return null!=e&&ja(e.length)&&!Na(e)}function Da(e){return Ba(e)&&Pa(e)}var Ha=en||rs,Ia=Qe?kt(Qe):function(e){return Ba(e)&&hr(e)==f};function Va(e){if(!Ba(e))return!1;var t=hr(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!qa(e)}function Na(e){if(!Fa(e))return!1;var t=hr(e);return t==d||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ra(e){return"number"==typeof e&&e==tc(e)}function ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Fa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ba(e){return null!=e&&"object"==typeof e}var Wa=Je?kt(Je):function(e){return Ba(e)&&ti(e)==v};function Ua(e){return"number"==typeof e||Ba(e)&&hr(e)==m}function qa(e){if(!Ba(e)||hr(e)!=g)return!1;var t=Ge(e);if(null===t)return!0;var n=ze.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==ke}var Ga=et?kt(et):function(e){return Ba(e)&&hr(e)==y},Ya=tt?kt(tt):function(e){return Ba(e)&&ti(e)==b};function $a(e){return"string"==typeof e||!Ta(e)&&Ba(e)&&hr(e)==w}function Za(e){return"symbol"==typeof e||Ba(e)&&hr(e)==_}var Ka=nt?kt(nt):function(e){return Ba(e)&&ja(e.length)&&!!Ne[hr(e)]},Xa=Po(zr),Qa=Po((function(e,t){return e<=t}));function Ja(e){if(!e)return[];if(Pa(e))return $a(e)?Wt(e):mo(e);if(zt&&e[zt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[zt]());var t=ti(e);return(t==v?Nt:t==b?Ft:Oc)(e)}function ec(e){return e?(e=rc(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function tc(e){var t=ec(e),n=t%1;return t==t?n?t-n:t:0}function nc(e){return e?$n(tc(e),0,4294967295):0}function rc(e){if("number"==typeof e)return e;if(Za(e))return NaN;if(Fa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Fa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($,"");var n=ie.test(e);return n||ce.test(e)?Be(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function oc(e){return go(e,bc(e))}function ic(e){return null==e?"":Zr(e)}var ac=bo((function(e,t){if(ui(t)||Pa(t))go(t,yc(t),e);else for(var n in t)ze.call(t,n)&&Bn(e,n,t[n])})),cc=bo((function(e,t){go(t,bc(t),e)})),sc=bo((function(e,t,n,r){go(t,bc(t),e,r)})),lc=bo((function(e,t,n,r){go(t,yc(t),e,r)})),uc=Wo(Yn),fc=Ir((function(e,t){e=ve(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ai(t[0],t[1],o)&&(r=1);++n1),t})),go(e,qo(e),n),r&&(n=Zn(n,7,Fo));for(var o=t.length;o--;)Xr(n,t[o]);return n})),Cc=Wo((function(e,t){return null==e?{}:function(e,t){return Tr(e,t,(function(t,n){return pc(e,n)}))}(e,t)}));function zc(e,t){if(null==e)return{};var n=ft(qo(e),(function(e){return[e]}));return t=Zo(t),Tr(e,n,(function(e,n){return t(e,n[0])}))}var Mc=Vo(yc),Sc=Vo(bc);function Oc(e){return null==e?[]:Et(e,yc(e))}var kc=Co((function(e,t,n){return t=t.toLowerCase(),e+(n?Ec(t):t)}));function Ec(e){return Vc(ic(e).toLowerCase())}function Ac(e){return(e=ic(e))&&e.replace(le,Dt).replace(Te,"")}var Tc=Co((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Lc=Co((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Pc=xo("toLowerCase"),Dc=Co((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Hc=Co((function(e,t,n){return e+(n?" ":"")+Vc(t)})),Ic=Co((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Vc=xo("toUpperCase");function Nc(e,t,n){return e=ic(e),void 0===(t=n?void 0:t)?function(e){return He.test(e)}(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Rc=Ir((function(e,t){try{return rt(e,void 0,t)}catch(e){return Va(e)?e:new he(e)}})),jc=Wo((function(e,t){return it(t,(function(t){t=zi(t),Gn(e,t,ma(e[t],e))})),e}));function Fc(e){return function(){return e}}var Bc=So(),Wc=So(!0);function Uc(e){return e}function qc(e){return xr("function"==typeof e?e:Zn(e,1))}var Gc=Ir((function(e,t){return function(n){return gr(n,e,t)}})),Yc=Ir((function(e,t){return function(n){return gr(e,n,t)}}));function $c(e,t,n){var r=yc(t),o=lr(t,r);null!=n||Fa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=lr(t,yc(t)));var i=!(Fa(n)&&"chain"in n&&!n.chain),a=Na(e);return it(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=mo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Zc(){}var Kc=Ao(ft),Xc=Ao(ct),Qc=Ao(vt);function Jc(e){return ci(e)?Ct(zi(e)):function(e){return function(t){return ur(t,e)}}(e)}var es=Lo(),ts=Lo(!0);function ns(){return[]}function rs(){return!1}var os,is=Eo((function(e,t){return e+t}),0),as=Ho("ceil"),cs=Eo((function(e,t){return e/t}),1),ss=Ho("floor"),ls=Eo((function(e,t){return e*t}),1),us=Ho("round"),fs=Eo((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new ye(i);return e=tc(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=pa,On.assign=ac,On.assignIn=cc,On.assignInWith=sc,On.assignWith=lc,On.at=uc,On.before=va,On.bind=ma,On.bindAll=jc,On.bindKey=ga,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ta(e)?e:[e]},On.chain=Ji,On.chunk=function(e,t,n){t=(n?ai(e,t,n):void 0===t)?1:on(tc(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,c=r(Xt(o/t));io?0:o+n),(r=void 0===r||r>o?o:tc(r))<0&&(r+=o),r=n>r?0:nc(r);n>>0)?(e=ic(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=Zr(t))&&Vt(e)?co(Wt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new ye(i);return t=null==t?0:on(tc(t),0),Ir((function(n){var r=n[t],o=co(n,0,t);return r&&ht(o,r),rt(e,this,o)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Wr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Wr(e,0,(t=n||void 0===t?1:tc(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=r-(t=n||void 0===t?1:tc(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?Jr(e,Zo(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?Jr(e,Zo(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ye(i);return Fa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ya(e,t,{leading:r,maxWait:t,trailing:o})},On.thru=ea,On.toArray=Ja,On.toPairs=Mc,On.toPairsIn=Sc,On.toPath=function(e){return Ta(e)?ft(e,zi):Za(e)?[e]:mo(Ci(ic(e)))},On.toPlainObject=oc,On.transform=function(e,t,n){var r=Ta(e),o=r||Ha(e)||Ka(e);if(t=Zo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Fa(e)&&Na(i)?kn(Ge(e)):{}}return(o?it:cr)(e,(function(e,r,o){return t(n,e,r,o)})),n},On.unary=function(e){return pa(e,1)},On.union=Bi,On.unionBy=Wi,On.unionWith=Ui,On.uniq=function(e){return e&&e.length?Kr(e):[]},On.uniqBy=function(e,t){return e&&e.length?Kr(e,Zo(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Kr(e,void 0,t):[]},On.unset=function(e,t){return null==e||Xr(e,t)},On.unzip=qi,On.unzipWith=Gi,On.update=function(e,t,n){return null==e?e:Qr(e,t,oo(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Qr(e,t,oo(n),r)},On.values=Oc,On.valuesIn=function(e){return null==e?[]:Et(e,bc(e))},On.without=Yi,On.words=Nc,On.wrap=function(e,t){return za(oo(t),e)},On.xor=$i,On.xorBy=Zi,On.xorWith=Ki,On.zip=Xi,On.zipObject=function(e,t){return no(e||[],t||[],Bn)},On.zipObjectDeep=function(e,t){return no(e||[],t||[],Rr)},On.zipWith=Qi,On.entries=Mc,On.entriesIn=Sc,On.extend=cc,On.extendWith=sc,$c(On,On),On.add=is,On.attempt=Rc,On.camelCase=kc,On.capitalize=Ec,On.ceil=as,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=rc(n))==n?n:0),void 0!==t&&(t=(t=rc(t))==t?t:0),$n(rc(e),t,n)},On.clone=function(e){return Zn(e,4)},On.cloneDeep=function(e){return Zn(e,5)},On.cloneDeepWith=function(e,t){return Zn(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Zn(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Kn(e,t,yc(t))},On.deburr=Ac,On.defaultTo=function(e,t){return null==e||e!=e?t:e},On.divide=cs,On.endsWith=function(e,t,n){e=ic(e),t=Zr(t);var r=e.length,o=n=void 0===n?r:$n(tc(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},On.eq=Oa,On.escape=function(e){return(e=ic(e))&&R.test(e)?e.replace(V,Ht):e},On.escapeRegExp=function(e){return(e=ic(e))&&Y.test(e)?e.replace(G,"\\$&"):e},On.every=function(e,t,n){var r=Ta(e)?ct:tr;return n&&ai(e,t,n)&&(t=void 0),r(e,Zo(t,3))},On.find=ra,On.findIndex=Ai,On.findKey=function(e,t){return gt(e,Zo(t,3),cr)},On.findLast=oa,On.findLastIndex=Ti,On.findLastKey=function(e,t){return gt(e,Zo(t,3),sr)},On.floor=ss,On.forEach=ia,On.forEachRight=aa,On.forIn=function(e,t){return null==e?e:ir(e,Zo(t,3),bc)},On.forInRight=function(e,t){return null==e?e:ar(e,Zo(t,3),bc)},On.forOwn=function(e,t){return e&&cr(e,Zo(t,3))},On.forOwnRight=function(e,t){return e&&sr(e,Zo(t,3))},On.get=dc,On.gt=ka,On.gte=Ea,On.has=function(e,t){return null!=e&&ni(e,t,pr)},On.hasIn=pc,On.head=Pi,On.identity=Uc,On.includes=function(e,t,n,r){e=Pa(e)?e:Oc(e),n=n&&!r?tc(n):0;var o=e.length;return n<0&&(n=on(o+n,0)),$a(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&bt(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:tc(n);return o<0&&(o=on(r+o,0)),bt(e,t,o)},On.inRange=function(e,t,n){return t=ec(t),void 0===n?(n=t,t=0):n=ec(n),function(e,t,n){return e>=an(t,n)&&e=-9007199254740991&&e<=9007199254740991},On.isSet=Ya,On.isString=$a,On.isSymbol=Za,On.isTypedArray=Ka,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ba(e)&&ti(e)==x},On.isWeakSet=function(e){return Ba(e)&&"[object WeakSet]"==hr(e)},On.join=function(e,t){return null==e?"":nn.call(e,t)},On.kebabCase=Tc,On.last=Vi,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=tc(n))<0?on(r+o,0):an(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):yt(e,_t,o,!0)},On.lowerCase=Lc,On.lowerFirst=Pc,On.lt=Xa,On.lte=Qa,On.max=function(e){return e&&e.length?nr(e,Uc,dr):void 0},On.maxBy=function(e,t){return e&&e.length?nr(e,Zo(t,2),dr):void 0},On.mean=function(e){return xt(e,Uc)},On.meanBy=function(e,t){return xt(e,Zo(t,2))},On.min=function(e){return e&&e.length?nr(e,Uc,zr):void 0},On.minBy=function(e,t){return e&&e.length?nr(e,Zo(t,2),zr):void 0},On.stubArray=ns,On.stubFalse=rs,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=ls,On.nth=function(e,t){return e&&e.length?Er(e,tc(t)):void 0},On.noConflict=function(){return qe._===this&&(qe._=Ee),this},On.noop=Zc,On.now=da,On.pad=function(e,t,n){e=ic(e);var r=(t=tc(t))?Bt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return To(Qt(o),n)+e+To(Xt(o),n)},On.padEnd=function(e,t,n){e=ic(e);var r=(t=tc(t))?Bt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=ln();return an(e+o*(t-e+Fe("1e-"+((o+"").length-1))),t)}return Dr(e,t)},On.reduce=function(e,t,n){var r=Ta(e)?dt:Mt,o=arguments.length<3;return r(e,Zo(t,4),n,o,Jn)},On.reduceRight=function(e,t,n){var r=Ta(e)?pt:Mt,o=arguments.length<3;return r(e,Zo(t,4),n,o,er)},On.repeat=function(e,t,n){return t=(n?ai(e,t,n):void 0===t)?1:tc(t),Hr(ic(e),t)},On.replace=function(){var e=arguments,t=ic(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,o=(t=io(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=an(e,4294967295);e-=4294967295;for(var o=Ot(r,t=Zo(t));++n=i)return e;var c=n-Bt(r);if(c<1)return r;var s=a?co(a,0,c).join(""):e.slice(0,c);if(void 0===o)return s+r;if(a&&(c+=s.length-c),Ga(o)){if(e.slice(c).search(o)){var l,u=s;for(o.global||(o=me(o.source,ic(re.exec(o))+"g")),o.lastIndex=0;l=o.exec(u);)var f=l.index;s=s.slice(0,void 0===f?c:f)}}else if(e.indexOf(Zr(o),c)!=c){var h=s.lastIndexOf(o);h>-1&&(s=s.slice(0,h))}return s+r},On.unescape=function(e){return(e=ic(e))&&N.test(e)?e.replace(I,Ut):e},On.uniqueId=function(e){var t=++Me;return ic(e)+t},On.upperCase=Ic,On.upperFirst=Vc,On.each=ia,On.eachRight=aa,On.first=Pi,$c(On,(os={},cr(On,(function(e,t){ze.call(On.prototype,t)||(os[t]=e)})),os),{chain:!1}),On.VERSION="4.17.20",it(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),it(["drop","take"],(function(e,t){Tn.prototype[e]=function(n){n=void 0===n?1:on(tc(n),0);var r=this.__filtered__&&!t?new Tn(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Tn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),it(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Tn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),it(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Tn.prototype[e]=function(){return this[n](1).value()[0]}})),it(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Tn.prototype[e]=function(){return this.__filtered__?new Tn(this):this[n](1)}})),Tn.prototype.compact=function(){return this.filter(Uc)},Tn.prototype.find=function(e){return this.filter(e).head()},Tn.prototype.findLast=function(e){return this.reverse().find(e)},Tn.prototype.invokeMap=Ir((function(e,t){return"function"==typeof e?new Tn(this):this.map((function(n){return gr(n,e,t)}))})),Tn.prototype.reject=function(e){return this.filter(xa(Zo(e)))},Tn.prototype.slice=function(e,t){e=tc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Tn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=tc(t))<0?n.dropRight(-t):n.take(t-e)),n)},Tn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Tn.prototype.toArray=function(){return this.take(4294967295)},cr(Tn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=On[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(On.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Tn,s=a[0],l=c||Ta(t),u=function(e){var t=o.apply(On,ht([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(c=l=!1);var f=this.__chain__,h=!!this.__actions__.length,d=i&&!f,p=c&&!h;if(!i&&l){t=p?t:new Tn(this);var v=e.apply(t,a);return v.__actions__.push({func:ea,args:[u],thisArg:void 0}),new An(v,f)}return d&&p?e.apply(this,a):(v=this.thru(u),d?r?v.value()[0]:v.value():v)})})),it(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ta(o)?o:[],e)}return this[n]((function(n){return t.apply(Ta(n)?n:[],e)}))}})),cr(Tn.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";ze.call(yn,r)||(yn[r]=[]),yn[r].push({name:t,func:n})}})),yn[Oo(void 0,2).name]=[{name:"wrapper",func:void 0}],Tn.prototype.clone=function(){var e=new Tn(this.__wrapped__);return e.__actions__=mo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mo(this.__views__),e},Tn.prototype.reverse=function(){if(this.__filtered__){var e=new Tn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Tn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ta(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof En;){var r=Si(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Tn){var t=e;return this.__actions__.length&&(t=new Tn(this)),(t=t.reverse()).__actions__.push({func:ea,args:[Fi],thisArg:void 0}),new An(t,this.__chain__)}return this.thru(Fi)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return eo(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,zt&&(On.prototype[zt]=function(){return this}),On}();qe._=qt,void 0===(o=function(){return qt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(7),n(21)(e))},function(e,t){e.exports=r},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),a=r||o||i,c=a&&(r?document.documentMode||6:+(i||o)[1]),s=!i&&/WebKit\//.test(e),l=s&&/Qt\/\d+\.\d+/.test(e),u=!i&&/Chrome\//.test(e),f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),v=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),g=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=v||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),_=f&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(f=!1,s=!0);var x=y&&(l||f&&(null==_||_<12.11)),C=n||a&&c>=9;function z(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var M,S=function(e,t){var n=e.className,r=z(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function k(e,t){return O(e).appendChild(t)}function E(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=c-i,a+=n-a%n,i=c+1}}v?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(H=function(e){try{e.select()}catch(e){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};function j(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}var G=[""];function Y(e){for(;G.length<=e;)G.push($(G)+" ");return G[e]}function $(e){return e[e.length-1]}function Z(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Q.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&J(e))||t.test(e):J(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function oe(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}var ae=null;function ce(e,t,n){var r;ae=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:ae=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:ae=o)}return null!=r?r:ae}var se=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,o=/[1n]/;function i(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,c){var s="ltr"==c?"L":"R";if(0==a.length||"ltr"==c&&!e.test(a))return!1;for(var l,u=a.length,f=[],h=0;h-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function pe(e,t){var n=he(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function ye(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function we(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function xe(e){be(e),we(e)}function Ce(e){return e.target||e.srcElement}function ze(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Me,Se,Oe=function(){if(a&&c<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}();function ke(e){if(null==Me){var t=E("span","\u200b");k(e,E("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Me=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&c<8))}var n=Me?E("span","\u200b"):E("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ee(e){if(null!=Se)return Se;var t=k(e,document.createTextNode("A\u062eA")),n=M(t,0,1).getBoundingClientRect(),r=M(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(Se=r.right-n.right<3)}var Ae,Te=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Le=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe="oncopy"in(Ae=E("div"))||(Ae.setAttribute("oncopy","return;"),"function"==typeof Ae.oncopy),De=null,He={},Ie={};function Ve(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),He[e]=t}function Ne(e){if("string"==typeof e&&Ie.hasOwnProperty(e))e=Ie[e];else if(e&&"string"==typeof e.name&&Ie.hasOwnProperty(e.name)){var t=Ie[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ne("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ne("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Re(e,t){t=Ne(t);var n=He[t.name];if(!n)return Re(e,"text/plain");var r=n(e,t);if(je.hasOwnProperty(t.name)){var o=je[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var je={};function Fe(e,t){V(t,je.hasOwnProperty(e)?je[e]:je[e]={})}function Be(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ue(e,t,n){return!e.startState||e.startState(t,n)}var qe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ge(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?et(n,Ge(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,Ge(e,t.line).text.length)}function st(e,t){for(var n=[],r=0;r=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.post},qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},qe.prototype.backUp=function(e){this.pos-=e},qe.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var lt=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){var o=[e.state.modeGen],i={};wt(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),i,r);for(var a=n.state,c=function(r){n.baseTokens=o;var c=e.state.overlays[r],s=1,l=0;n.state=!0,wt(e,t.text,c.mode,n,(function(e,t){for(var n=s;le&&o.splice(s,1,e,o[s+1],r),s+=2,l=Math.min(e,r)}if(t)if(c.opaque)o.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Be(e.doc.mode,r.state),i=ft(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new ut(r,!0,t);var i=function(e,t,n){for(var r,o,i=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),c=t;c>a;--c){if(c<=i.first)return i.first;var s=Ge(i,c-1),l=s.stateAfter;if(l&&(!n||c+(l instanceof lt?l.lookAhead:0)<=i.modeFrontier))return c;var u=N(s.text,null,e.options.tabSize);(null==o||r>u)&&(o=c-1,r=u)}return o}(e,t,n),a=i>r.first&&Ge(r,i-1).stateAfter,c=a?ut.fromSaved(r,a,i):new ut(r,Ue(r.mode),i);return r.iter(i,t,(function(n){pt(e,n.text,c);var r=c.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof lt?new ut(e,Be(e.mode,t.state),n,t.lookAhead):new ut(e,Be(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?Be(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lt(t,this.maxLookAhead):t};var gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var o,i,a=e.doc,c=a.mode,s=Ge(a,(t=ct(a,t)).line),l=dt(e,t.line,n),u=new qe(s.text,e.options.tabSize,l);for(r&&(i=[]);(r||u.pose.options.maxHighlightLength?(c=!1,a&&pt(e,t,r,f.pos),f.pos=t.length,s=null):s=bt(mt(n,f,r.state,h),i),h){var d=h[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!c||u!=s){for(;l=t:i.to>t);(r||(r=[])).push(new Ct(a,i.from,c?null:i.to))}}return r}(n,o,a),s=function(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var c=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&c)for(var b=0;bt)&&(!n||Lt(n,i.marker)<0)&&(n=i.marker)}return n}function Vt(e,t,n,r,o){var i=Ge(e,t),a=xt&&i.markedSpans;if(a)for(var c=0;c=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?tt(l.to,n)>=0:tt(l.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?tt(l.from,r)<=0:tt(l.from,r)<0)))return!0}}}function Nt(e){for(var t;t=Dt(e);)e=t.find(-1,!0).line;return e}function Rt(e,t){var n=Ge(e,t),r=Nt(n);return n==r?t:Ke(r)}function jt(e,t){if(t>e.lastLine())return t;var n,r=Ge(e,t);if(!Ft(e,r))return t;for(;n=Ht(r);)r=n.find(1,!0).line;return Ke(r)+1}function Ft(e,t){var n=xt&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Gt=function(e,t,n){this.text=e,Et(this,t),this.height=n?n(this):1};function Yt(e){e.parent=null,kt(e)}Gt.prototype.lineNo=function(){return Ke(this)},ye(Gt);var $t={},Zt={};function Kt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Zt:$t;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Xt(e,t){var n=A("span",null,null,s?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=Jt,Ee(e.display.measure)&&(a=le(i,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(i,r,ht(e,i,t!=e.display.externalMeasured&&Ke(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=D(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=D(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(ke(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return pe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function Qt(e){var t=E("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Jt(e,t,n,r,o,i,s){if(t){var l,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;ol&&f.from<=l);h++);if(f.to>=u)return e(n,r,o,i,a,c,s);e(n,r.slice(0,f.to-l),o,i,null,c,s),i=null,r=r.slice(f.to-l),l=f.to}}}function tn(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,c,s,l,u,f,h,d=o.length,p=0,v=1,m="",g=0;;){if(g==p){s=l=u=c="",h=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;wp||x.collapsed&&_.to==p&&_.from==p)){if(null!=_.to&&_.to!=p&&g>_.to&&(g=_.to,l=""),x.className&&(s+=" "+x.className),x.css&&(c=(c?c+";":"")+x.css),x.startStyle&&_.from==p&&(u+=" "+x.startStyle),x.endStyle&&_.to==g&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((h||(h={})).title=x.title),x.attributes)for(var C in x.attributes)(h||(h={}))[C]=x.attributes[C];x.collapsed&&(!f||Lt(f.marker,x)<0)&&(f=_)}else _.from>p&&g>_.from&&(g=_.from)}if(b)for(var z=0;z=d)break;for(var S=Math.min(d,g);;){if(m){var O=p+m.length;if(!f){var k=O>S?m.slice(0,S-p):m;t.addToken(t,k,a?a+s:s,u,p+k.length==g?l:"",c,h)}if(O>=S){m=m.slice(S-p),p=S;break}p=O,u=""}m=o.slice(i,i=n[v++]),a=Kt(n[v++],t.cm.options)}}else for(var E=1;En)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function An(e,t,n,r){return Pn(e,Ln(e,t),n,r)}function Tn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&i.push((s.bottom+l.top)/2-n.top)}}i.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(i=function(e,t,n,r){var o,i=In(t.map,n,r),s=i.node,l=i.start,u=i.end,f=i.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;l&&re(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+u1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,o))}else{var d;l>0&&(f=r="right"),o=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==r?d.length-1:0]:s.getBoundingClientRect()}if(a&&c<9&&!l&&(!o||!o.left&&!o.right)){var p=s.parentNode.getClientRects()[0];o=p?{left:p.left,right:p.left+or(e.display),top:p.top,bottom:p.bottom}:Hn}for(var v=o.top-t.rect.top,m=o.bottom-t.rect.top,g=(v+m)/2,y=t.view.measure.heights,b=0;bt)&&(o=(i=s-c)-1,t>=s&&(a="right")),null!=o){if(r=e[l+2],c==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&o==s-c)for(;l=0&&(n=e[o]).left==n.right;o--);return n}function Nn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(s=r.text.length,l="before"):s<=0&&(s=0,l="after"),!c)return a("before"==l?s-1:s,"before"==l);function u(e,t,n){return a(n?e-1:e,1==c[t].level!=n)}var f=ce(c,s,l),h=ae,d=u(s,f,"before"==l);return null!=h&&(d.other=u(s,h,"before"!=l)),d}function $n(e,t){var n=0;t=ct(e.doc,t),e.options.lineWrapping||(n=or(e.display)*t.ch);var r=Ge(e.doc,t.line),o=Wt(r)+Cn(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function Zn(e,t,n,r,o){var i=et(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function Kn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Zn(r.first,0,null,-1,-1);var o=Xe(r,n),i=r.first+r.size-1;if(o>i)return Zn(r.first+r.size-1,Ge(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=Ge(r,o);;){var c=er(e,a,o,t,n),s=It(a,c.ch+(c.xRel>0||c.outside>0?1:0));if(!s)return c;var l=s.find(1);if(l.line==o)return l;a=Ge(r,o=l.line)}}function Xn(e,t,n,r){r-=Wn(t);var o=t.text.length,i=ie((function(t){return Pn(e,n,t-1).bottom<=r}),o,0);return{begin:i,end:o=ie((function(t){return Pn(e,n,t).top>r}),i,o)}}function Qn(e,t,n,r){return n||(n=Ln(e,t)),Xn(e,t,n,Un(e,t,Pn(e,n,r),"line").top)}function Jn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,o){o-=Wt(t);var i=Ln(e,t),a=Wn(t),c=0,s=t.text.length,l=!0,u=le(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?nr:tr)(e,t,n,i,u,r,o);c=(l=1!=f.level)?f.from:f.to-1,s=l?f.to:f.from-1}var h,d,p=null,v=null,m=ie((function(t){var n=Pn(e,i,t);return n.top+=a,n.bottom+=a,!!Jn(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(p=t,v=n),!0)}),c,s),g=!1;if(v){var y=r-v.left=w.bottom?1:0}return Zn(n,m=oe(t.text,m,1),d,g,r-h)}function tr(e,t,n,r,o,i,a){var c=ie((function(c){var s=o[c],l=1!=s.level;return Jn(Yn(e,et(n,l?s.to:s.from,l?"before":"after"),"line",t,r),i,a,!0)}),0,o.length-1),s=o[c];if(c>0){var l=1!=s.level,u=Yn(e,et(n,l?s.from:s.to,l?"after":"before"),"line",t,r);Jn(u,i,a,!0)&&u.top>a&&(s=o[c-1])}return s}function nr(e,t,n,r,o,i,a){var c=Xn(e,t,r,a),s=c.begin,l=c.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,f=null,h=0;h=l||d.to<=s)){var p=Pn(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(s,d.from)).right,v=pv)&&(u=d,f=v)}}return u||(u=o[o.length-1]),u.froml&&(u={from:u.from,to:l,level:u.level}),u}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Dn){Dn=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Dn.appendChild(document.createTextNode("x")),Dn.appendChild(E("br"));Dn.appendChild(document.createTextNode("x"))}k(e.measure,Dn);var n=Dn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function or(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),n=E("pre",[t],"CodeMirror-line-like");k(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function ir(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var c=e.display.gutterSpecs[a].className;n[c]=i.offsetLeft+i.clientLeft+o,r[c]=i.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/or(e.display)-3);return function(o){if(Ft(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a0&&(s=Ge(e.doc,l.line).text).length==l.ch){var u=N(s,s.length,e.options.tabSize)-s.length;l=et(l.line,Math.max(0,Math.round((i-Mn(e.display).left)/or(e.display))-u))}return l}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)xt&&Rt(e.doc,t)o.viewFrom?dr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)dr(e);else if(t<=o.viewFrom){var i=pr(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):dr(e)}else if(n>=o.viewTo){var a=pr(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):dr(e)}else{var c=pr(e,t,t,-1),s=pr(e,n,n+r,1);c&&s?(o.view=o.view.slice(0,c.index).concat(on(e,c.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):dr(e)}var l=o.externalMeasured;l&&(n=o.lineN&&t=r.viewTo)){var i=r.view[ur(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==j(a,n)&&a.push(n)}}}function dr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function pr(e,t,n,r){var o,i=ur(e,t),a=e.display.view;if(!xt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var c=e.display.viewFrom,s=0;s0){if(i==a.length-1)return null;o=c+a[i].size-t,i++}else o=c-t;t+=o,n+=o}for(;Rt(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function vr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||c.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}(v,n||0,null==r?h:r,(function(e,t,o,f){var m="ltr"==o,g=d(e,m?"left":"right"),y=d(t-1,m?"right":"left"),b=null==n&&0==e,w=null==r&&t==h,_=0==f,x=!v||f==v.length-1;if(y.top-g.top<=3){var C=(l?w:b)&&x,z=(l?b:w)&&_?c:(m?g:y).left,M=C?s:(m?y:g).right;u(z,g.top,M-z,g.bottom)}else{var S,O,k,E;m?(S=l&&b&&_?c:g.left,O=l?s:p(e,o,"before"),k=l?c:p(t,o,"after"),E=l&&w&&x?s:y.right):(S=l?p(e,o,"before"):c,O=!l&&b&&_?s:g.right,k=!l&&w&&x?c:y.left,E=l?p(t,o,"after"):s),u(S,g.top,O-S,g.bottom),g.bottom0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function xr(e){e.state.focused||(e.display.input.focus(),zr(e))}function Cr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Mr(e))}),100)}function zr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(pe(e,"focus",e,t),e.state.focused=!0,P(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),_r(e))}function Mr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(pe(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Sr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||h<-.005)&&(Ze(o.line,s),Or(o.line),o.rest))for(var d=0;de.display.sizerWidth){var p=Math.ceil(l/or(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=o.line,e.display.maxLineChanged=!0)}}}}function Or(e){if(e.widgets)for(var t=0;t=a&&(i=Xe(t,Wt(Ge(t,s))-e.wrapper.clientHeight),a=s)}return{from:i,to:Math.max(a,i+1)}}function Er(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=kn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var c=e.doc.height+zn(n),s=t.topc-r;if(t.topo+i){var u=Math.min(t.top,(l?c:t.bottom)-i);u!=o&&(a.scrollTop=u)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=On(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+f-3&&(a.scrollLeft=t.right+(d?0:10)-h),a}function Ar(e,t){null!=t&&(Pr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Tr(e){Pr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Lr(e,t,n){null==t&&null==n||Pr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Pr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Dr(e,$n(e,t.from),$n(e,t.to),t.margin))}function Dr(e,t,n,r){var o=Er(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Lr(e,o.scrollLeft,o.scrollTop)}function Hr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||so(e,{top:t}),Ir(e,t,!0),n&&so(e),ro(e,100))}function Ir(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Vr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Nr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+zn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Rr=function(e,t,n){this.cm=n;var r=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),fe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),fe(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Rr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Rr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Rr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Rr.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Rr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Rr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var jr=function(){};function Fr(e,t){t||(t=Nr(e));var n=e.display.barWidth,r=e.display.barHeight;Br(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Sr(e),Br(e,Nr(e)),n=e.display.barWidth,r=e.display.barHeight}function Br(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}jr.prototype.update=function(){return{bottom:0,right:0}},jr.prototype.setScrollLeft=function(){},jr.prototype.setScrollTop=function(){},jr.prototype.clear=function(){};var Wr={native:Rr,null:jr};function Ur(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Wr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Vr(e,t):Hr(e,t)}),e),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)}var qr=0;function Gr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qr},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Yr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new io(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Zr(e){e.updatedDisplay=e.mustUpdate&&ao(e.cm,e.update)}function Kr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Sr(t),e.barMeasure=Nr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=An(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-On(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!p){var i=E("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Cn(e.display))+"px;\n height: "+(t.bottom-t.top+Sn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}(t,function(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var a=!1,c=Yn(e,t),s=n&&n!=t?Yn(e,n):c,l=Er(e,o={left:Math.min(c.left,s.left),top:Math.min(c.top,s.top)-r,right:Math.max(c.left,s.left),bottom:Math.max(c.bottom,s.bottom)+r}),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(Hr(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=l.scrollLeft&&(Vr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}(t,ct(r,e.scrollToPos.from),ct(r,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(o)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var a=i.styles,c=i.text.length>e.options.maxHighlightLength?Be(t.mode,r.state):null,s=ft(e,i,r,!0);c&&(r.state=c),i.styles=s.styles;var l=i.styleClasses,u=s.classes;u?i.styleClasses=u:l&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),h=0;!f&&hn)return ro(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&Jr(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(e))return!1;ho(e)&&(dr(e),t.dims=ir(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),xt&&(i=Rt(e.doc,i),a=jt(e.doc,a));var c=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,i,a),n.viewOffset=Wt(Ge(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=vr(e);if(!c&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=L();if(!t||!T(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&T(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return l>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,o=e.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function c(t){var n=t.nextSibling;return s&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,u=r.viewFrom,f=0;f-1&&(d=!1),un(e,h,u,n)),d&&(O(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Je(e.options,u)))),a=h.node.nextSibling}else{var p=gn(e,h,u,n);i.insertBefore(p,a)}u+=h.size}for(;a;)a=c(a)}(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&T(document.body,e.anchorNode)&&T(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,c&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ro(e,400)),n.updateLineNumbers=null,!0}function co(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=On(e))r&&(t.visible=kr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+zn(e.display)-kn(e),n.top)}),t.visible=kr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ao(e,t))break;Sr(e);var o=Nr(e);mr(e),Fr(e,o),uo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function so(e,t){var n=new io(e,t);if(ao(e,n)){Sr(e),co(e,n);var r=Nr(e);mr(e),Fr(e,r),uo(e,r),n.finish()}}function lo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function uo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sn(e)+"px"}function fo(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;ac.clientWidth,u=c.scrollHeight>c.clientHeight;if(o&&l||i&&u){if(i&&y&&s)e:for(var h=t.target,d=a.view;h!=c;h=h.parentNode)for(var p=0;p=0&&tt(e,r.to())<=0)return n}return-1};var zo=function(e,t){this.anchor=e,this.head=t};function Mo(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=j(t,o);for(var i=1;i0:s>=0){var l=it(c.from(),a.from()),u=ot(c.to(),a.to()),f=c.empty()?a.from()==a.head:c.from()==c.head;i<=n&&--n,t.splice(--i,2,new zo(f?u:l,f?l:u))}}return new Co(t,n)}function So(e,t){return new Co([new zo(e,t||e)],0)}function Oo(e){return e.text?et(e.from.line+e.text.length-1,$(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ko(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Oo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Oo(t).ch-t.to.ch),et(n,r)}function Eo(e,t){for(var n=[],r=0;r1&&e.remove(c.line+1,p-1),e.insert(c.line+1,g)}sn(e,"change",e,t)}function Ho(e,t,n){!function e(r,o,i){if(r.linked)for(var a=0;ac-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=function(e,t){return t?(jo(e.done),$(e.done)):e.done.length&&!$(e.done).ranges?$(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),$(e.done)):void 0}(o,o.lastOp==r)))a=$(i.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Oo(t):i.changes.push(Ro(e,t));else{var s=$(o.done);for(s&&s.ranges||Bo(e.sel,o.done),i={changes:[Ro(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=c,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||pe(e,"historyAdded")}function Bo(e,t){var n=$(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Wo(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Uo(e){if(!e)return null;for(var t,n=0;n-1&&($(c)[f]=l[f],delete l[f])}}}return r}function Yo(e,t,n,r){if(r){var o=e.anchor;if(n){var i=tt(t,o)<0;i!=tt(n,o)<0?(o=t,t=n):i!=tt(t,n)<0&&(t=n)}return new zo(o,t)}return new zo(n||t,t)}function $o(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Jo(e,new Co([Yo(e.sel.primary(),t,n,o)],0),r)}function Zo(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:c.to>t.ch))){if(o&&(pe(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var f=s.find(r<0?1:-1),h=void 0;if((r<0?u:l)&&(f=ai(e,f,-r,f&&f.line==t.line?i:null)),f&&f.line==t.line&&(h=tt(f,n))&&(r<0?h<0:h>0))return oi(e,f,t,r,o)}var d=s.find(r<0?-1:1);return(r<0?l:u)&&(d=ai(e,d,r,d.line==t.line?i:null)),d?oi(e,d,t,r,o):null}}return t}function ii(e,t,n,r,o){var i=r||1;return oi(e,t,n,i,o)||!o&&oi(e,t,n,i,!0)||oi(e,t,n,-i,o)||!o&&oi(e,t,n,-i,!0)||(e.cantEdit=!0,et(e.first,0))}function ai(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ct(e,et(t.line-1)):null:n>0&&t.ch==(r||Ge(e,t.line)).text.length?t.line0)){var u=[s,1],f=tt(l.from,c.from),h=tt(l.to,c.to);(f<0||!a.inclusiveLeft&&!f)&&u.push({from:l.from,to:c.from}),(h>0||!a.inclusiveRight&&!h)&&u.push({from:c.to,to:l.to}),o.splice.apply(o,u),s+=u.length-3}}return o}(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)ui(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else ui(e,t)}}function ui(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Eo(e,t);Fo(e,t,n,e.cm?e.cm.curOp.id:NaN),di(e,t,n,St(e,t));var r=[];Ho(e,(function(e,n){n||-1!=j(r,e.history)||(gi(e.history,t),r.push(e.history)),di(e,t,null,St(e,t))}))}}function fi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,c="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,l=0;l=0;--d){var p=h(d);if(p)return p.v}}}}function hi(e,t){if(0!=t&&(e.first+=t,e.sel=new Co(Z(e.sel.ranges,(function(e){return new zo(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:et(i,Ge(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ye(e,t.from,t.to),n||(n=Eo(e,t)),e.cm?function(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,c=!1,s=i.line;e.options.lineWrapping||(s=Ke(Nt(Ge(r,i.line))),r.iter(s,a.line+1,(function(e){if(e==o.maxLine)return c=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&me(e),Do(r,t,n,cr(e)),e.options.lineWrapping||(r.iter(s,i.line+t.text.length,(function(e){var t=Ut(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,c=!1)})),c&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=Ge(e,r).stateAfter;if(o&&(!(o instanceof lt)||r+o.lookAhead1||!(this.children[0]instanceof bi))){var c=[];this.collapse(c),this.children=[new bi(c)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,c=a;c10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=A("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Vt(e,t.line,t,n,i)||t.line!=n.line&&Vt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");xt=!0}i.addToHistory&&Fo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var c,s=t.line,l=e.cm;if(e.iter(s,n.line+1,(function(e){l&&i.collapsed&&!l.options.lineWrapping&&Nt(e)==l.display.maxLine&&(c=!0),i.collapsed&&s!=t.line&&Ze(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Ct(i,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){Ft(e,t)&&Ze(t,0)})),i.clearOnEnter&&fe(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(_t=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++Ci,i.atomic=!0),l){if(c&&(l.curOp.updateMaxLine=!0),i.collapsed)fr(l,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=n.line;u++)hr(l,u,"text");i.atomic&&ni(l.doc),sn(l,"markerAdded",l,i)}return i}zi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gr(e),ge(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ni(e.doc)),e&&sn(e,"markerCleared",e,this,r,o),t&&Yr(e),this.parent&&this.parent.clear()}},zi.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;s--)li(this,r[s]);c?Qo(this,c):this.cm&&Tr(this.cm)})),undo:no((function(){fi(this,"undo")})),redo:no((function(){fi(this,"redo")})),undoSelection:no((function(){fi(this,"undo",!0)})),redoSelection:no((function(){fi(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=ct(this,e),t=ct(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var c=0;c=s.to||null==s.from&&o!=e.line||null!=s.from&&o==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++o})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n})),ct(this,et(n,t))},indexFromPos:function(e){var t=(e=ct(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),ei(t.doc,So(n,n)),h)for(var d=0;d=0;t--)pi(e.doc,"",r[t].from,r[t].to,"+delete");Tr(e)}))}function Ki(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Xi(e,t,n){var r=Ki(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function Qi(e,t,n,r,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=le(n,t.doc.direction);if(i){var a,c=o<0?$(i):i[0],s=o<0==(1==c.level)?"after":"before";if(c.level>0||"rtl"==t.doc.direction){var l=Ln(t,n);a=o<0?n.text.length-1:0;var u=Pn(t,l,a).top;a=ie((function(e){return Pn(t,l,e).top==u}),o<0==(1==c.level)?c.from:c.to-1,a),"before"==s&&(a=Ki(n,a,1))}else a=o<0?c.to:c.from;return new et(r,a,s)}}return new et(r,o<0?n.text.length:0,o<0?"before":"after")}Fi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fi.default=y?Fi.macDefault:Fi.pcDefault;var Ji={selectAll:ci,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),B)},killLine:function(e){return Zi(e,(function(t){if(t.empty()){var n=Ge(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new et(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),et(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Ge(e.doc,o.line-1).text;a&&(o=new et(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(o.line-1,a.length-1),o,"+transpose"))}n.push(new zo(o,o))}e.setSelections(n)}))},newlineAndIndent:function(e){return Jr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(tt((o=l.ranges[o]).from(),t)<0||t.xRel>0)&&(tt(o.to(),t)>0||t.xRel<0)?function(e,t,n,r){var o=e.display,i=!1,l=eo(e,(function(t){s&&(o.scroller.draggable=!1),e.state.draggingText=!1,de(o.wrapper.ownerDocument,"mouseup",l),de(o.wrapper.ownerDocument,"mousemove",u),de(o.scroller,"dragstart",f),de(o.scroller,"drop",l),i||(be(t),r.addNew||$o(e.doc,n,null,null,r.extend),s&&!h||a&&9==c?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),u=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return i=!0};s&&(o.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),fe(o.wrapper.ownerDocument,"mouseup",l),fe(o.wrapper.ownerDocument,"mousemove",u),fe(o.scroller,"dragstart",f),fe(o.scroller,"drop",l),Cr(e),setTimeout((function(){return o.input.focus()}),20)}(e,r,t,i):function(e,t,n,r){var o=e.display,i=e.doc;be(t);var a,c,s=i.sel,l=s.ranges;if(r.addNew&&!r.extend?(c=i.sel.contains(n),a=c>-1?l[c]:new zo(n,n)):(a=i.sel.primary(),c=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new zo(n,n)),n=lr(e,t,!0,!0),c=-1;else{var u=va(e,n,r.unit);a=r.extend?Yo(a,u.anchor,u.head,r.extend):u}r.addNew?-1==c?(c=l.length,Jo(i,Mo(e,l.concat([a]),c),{scroll:!1,origin:"*mouse"})):l.length>1&&l[c].empty()&&"char"==r.unit&&!r.extend?(Jo(i,Mo(e,l.slice(0,c).concat(l.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),s=i.sel):Ko(i,c,a,W):(c=0,Jo(i,new Co([a],0),W),s=i.sel);var f=n;function h(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var o=[],l=e.options.tabSize,u=N(Ge(i,n.line).text,n.ch,l),h=N(Ge(i,t.line).text,t.ch,l),d=Math.min(u,h),p=Math.max(u,h),v=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));v<=m;v++){var g=Ge(i,v).text,y=q(g,d,l);d==p?o.push(new zo(et(v,y),et(v,y))):g.length>y&&o.push(new zo(et(v,y),et(v,q(g,p,l))))}o.length||o.push(new zo(n,n)),Jo(i,Mo(e,s.ranges.slice(0,c).concat(o),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,_=va(e,t,r.unit),x=w.anchor;tt(_.anchor,x)>0?(b=_.head,x=it(w.from(),_.anchor)):(b=_.anchor,x=ot(w.to(),_.head));var C=s.ranges.slice(0);C[c]=function(e,t){var n=t.anchor,r=t.head,o=Ge(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var i=le(o);if(!i)return t;var a=ce(i,n.ch,n.sticky),c=i[a];if(c.from!=n.ch&&c.to!=n.ch)return t;var s,l=a+(c.from==n.ch==(1!=c.level)?0:1);if(0==l||l==i.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ce(i,r.ch,r.sticky),f=u-a||(r.ch-n.ch)*(1==c.level?-1:1);s=u==l-1||u==l?f<0:f>0}var h=i[l+(s?-1:0)],d=s==(1==h.level),p=d?h.from:h.to,v=d?"after":"before";return n.ch==p&&n.sticky==v?t:new zo(new et(n.line,p,v),r)}(e,new zo(ct(i,x),b)),Jo(i,Mo(e,C,c),W)}}var d=o.wrapper.getBoundingClientRect(),p=0;function v(t){e.state.selectingText=!1,p=1/0,t&&(be(t),o.input.focus()),de(o.wrapper.ownerDocument,"mousemove",m),de(o.wrapper.ownerDocument,"mouseup",g),i.history.lastSelOrigin=null}var m=eo(e,(function(t){0!==t.buttons&&ze(t)?function t(n){var a=++p,c=lr(e,n,!0,"rectangle"==r.unit);if(c)if(0!=tt(c,f)){e.curOp.focus=L(),h(c);var s=kr(o,i);(c.line>=s.to||c.lined.bottom?20:0;l&&setTimeout(eo(e,(function(){p==a&&(o.scroller.scrollTop+=l,t(n))})),50)}}(t):v(t)})),g=eo(e,v);e.state.selectingText=g,fe(o.wrapper.ownerDocument,"mousemove",m),fe(o.wrapper.ownerDocument,"mouseup",g)}(e,r,t,i)}(t,r,i,e):Ce(e)==n.scroller&&be(e):2==o?(r&&$o(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==o&&(C?t.display.input.onContextMenu(e):Cr(t)))}}function va(e,t,n){if("char"==n)return new zo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new zo(et(t.line,0),ct(e.doc,et(t.line+1,0)));var r=n(e,t);return new zo(r.from,r.to)}function ma(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(e){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,c=a.lineDiv.getBoundingClientRect();if(i>c.bottom||!ge(e,n))return _e(t);i-=c.top-a.viewOffset;for(var s=0;s=o)return pe(e,n,e,Xe(e.doc,i),e.display.gutterSpecs[s].className,t),_e(t)}}function ga(e,t){return ma(e,t,"gutterClick",!0)}function ya(e,t){xn(e.display,t)||function(e,t){return!!ge(e,"gutterContextMenu")&&ma(e,t,"gutterContextMenu",!1)}(e,t)||ve(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function ba(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jn(e)}da.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var wa={toString:function(){return"CodeMirror.Init"}},_a={},xa={};function Ca(e,t,n){if(!t!=!(n&&n!=wa)){var r=e.display.dragFunctions,o=t?fe:de;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function za(e){e.options.lineWrapping?(P(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),qt(e)),sr(e),fr(e),jn(e),setTimeout((function(){return Fr(e)}),100)}function Ma(e,t){var n=this;if(!(this instanceof Ma))return new Ma(e,t);this.options=t=t?V(t):{},V(_a,t,!1);var r=t.value;"string"==typeof r?r=new Ai(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Ma.inputStyles[t.inputStyle](this),i=this.display=new go(e,r,o,t);for(var l in i.wrapper.CodeMirror=this,ba(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ur(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!g&&i.input.focus(),a&&c<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;fe(t.scroller,"mousedown",eo(e,pa)),fe(t.scroller,"dblclick",a&&c<11?eo(e,(function(t){if(!ve(e,t)){var n=lr(e,t);if(n&&!ga(e,t)&&!xn(e.display,t)){be(t);var r=e.findWordAt(n);$o(e.doc,r.anchor,r.head)}}})):function(t){return ve(e,t)||be(t)}),fe(t.scroller,"contextmenu",(function(t){return ya(e,t)})),fe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||ya(e,n)}));var n,r={end:0};function o(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function i(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}fe(t.scroller,"touchstart",(function(o){if(!ve(e,o)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(o)&&!ga(e,o)){t.input.ensurePolled(),clearTimeout(n);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-r.end<=300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!xn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,c=e.coordsChar(t.activeTouch,"page");a=!r.prev||i(r,r.prev)?new zo(c,c):!r.prev.prev||i(r,r.prev.prev)?e.findWordAt(c):new zo(et(c.line,0),ct(e.doc,et(c.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),be(n)}o()})),fe(t.scroller,"touchcancel",o),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Hr(e,t.scroller.scrollTop),Vr(e,t.scroller.scrollLeft,!0),pe(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return xo(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return xo(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ve(e,t)||xe(t)},over:function(t){ve(e,t)||(function(e,t){var n=lr(e,t);if(n){var r=document.createDocumentFragment();yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),k(e.display.dragCursor,r)}}(e,t),xe(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Ti<100))xe(t);else if(!ve(e,t)&&!xn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=E("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:eo(e,Li),leave:function(t){ve(e,t)||Pi(e)}};var s=t.input.getField();fe(s,"keyup",(function(t){return la.call(e,t)})),fe(s,"keydown",eo(e,sa)),fe(s,"keypress",eo(e,ua)),fe(s,"focus",(function(t){return zr(e,t)})),fe(s,"blur",(function(t){return Mr(e,t)}))}(this),function(){var e;Hi||(fe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Di(Ii)}),100))})),fe(window,"blur",(function(){return Di(Mr)})),Hi=!0)}(),Gr(this),this.curOp.forceUpdate=!0,Io(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout(I(zr,this),20):Mr(this),xa)xa.hasOwnProperty(l)&&xa[l](this,t[l],wa);ho(this),t.finishInit&&t.finishInit(this);for(var u=0;u150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>i.first?N(Ge(i,t-1).text,null,a):0:"add"==n?l=s+e.options.indentUnit:"subtract"==n?l=s-e.options.indentUnit:"number"==typeof n&&(l=s+n),l=Math.max(0,l);var f="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)h+=a,f+="\t";if(ha,s=Te(t),l=null;if(c&&r.ranges.length>1)if(ka&&ka.text.join("\n")==t){if(r.ranges.length%ka.text.length==0){l=[];for(var u=0;u=0;h--){var d=r.ranges[h],p=d.from(),v=d.to();d.empty()&&(n&&n>0?p=et(p.line,p.ch-n):e.state.overwrite&&!c?v=et(v.line,Math.min(Ge(i,v.line).text.length,v.ch+$(s).length)):c&&ka&&ka.lineWise&&ka.text.join("\n")==s.join("\n")&&(p=v=et(p.line,0)));var m={from:p,to:v,text:l?l[h%l.length]:s,origin:o||(c?"paste":e.state.cutIncoming>a?"cut":"+input")};li(e.doc,m),sn(e,"inputRead",e,m)}t&&!c&&La(e,t),Tr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ta(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Jr(t,(function(){return Aa(t,n,0,null,"paste")})),!0}function La(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var c=0;c-1){a=Oa(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Ge(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Oa(e,o.head.line,"smart"));a&&sn(e,"electricInput",e,o.head.line)}}}function Pa(e){for(var t=[],n=[],r=0;r=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=ce(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&h>=u.begin)){var d=f?"before":"after";return new et(n.line,h,d)}}var p=function(e,t,r){for(var i=function(e,t){return t?new et(n.line,s(e,1),"before"):new et(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=c?r.begin:s(r.end,-1);if(a.from<=l&&l0?u.end:s(u.begin,-1);return null==m||r>0&&m==t.text.length||!(v=p(r>0?0:o.length-1,r,l(m)))?null:v}(e.cm,c,t,n):Xi(c,t,n))){if(r||(a=t.line+s)=e.first+e.size||(t=new et(a,t.ch,t.sticky),!(c=Ge(e,a))))return!1;t=Qi(o,e.cm,c,t.line,s)}else t=i;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var p=c.text.charAt(t.ch)||"\n",v=ee(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||v||(v="s"),u&&u!=v){n<0&&(n=1,l(),t.sticky="after");break}if(v&&(u=v),n>0&&!l(!d))break}var m=ii(e,t,i,a,!0);return nt(i,m)&&(m.hitSide=!0),m}function Va(e,t,n,r){var o,i,a=e.doc,c=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*rr(e.display),3);o=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;(i=Kn(e,c,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}var Na=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ra(e,t){var n=Tn(e,t.line);if(!n||n.hidden)return null;var r=Ge(e.doc,t.line),o=En(n,r,t.line),i=le(r,e.doc.direction),a="left";i&&(a=ce(i,t.ch)%2?"right":"left");var c=In(o.map,t.ch,a);return c.offset="right"==c.collapse?c.end:c.start,c}function ja(e,t){return t&&(e.bad=!0),e}function Fa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return ja(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o=t.display.viewTo||i.line=t.display.viewFrom&&Ra(t,o)||{node:s[0].measure.map[2],offset:0},u=i.liner.firstLine()&&(a=et(a.line-1,Ge(r.doc,a.line-1).length)),c.ch==Ge(r.doc,c.line).text.length&&c.lineo.viewTo-1)return!1;a.line==o.viewFrom||0==(e=ur(r,a.line))?(t=Ke(o.view[0].line),n=o.view[0].node):(t=Ke(o.view[e].line),n=o.view[e-1].node.nextSibling);var s,l,u=ur(r,c.line);if(u==o.view.length-1?(s=o.viewTo-1,l=o.lineDiv.lastChild):(s=Ke(o.view[u+1].line)-1,l=o.view[u+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,o){var i="",a=!1,c=e.doc.lineSeparator(),s=!1;function l(){a&&(i+=c,s&&(i+=c),a=s=!1)}function u(e){e&&(l(),i+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var i,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(et(r,0),et(o+1,0),(m=+h,function(e){return e.id==m}));return void(d.length&&(i=d[0].find(0))&&u(Ye(e.doc,i.from,i.to).join(c)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&l();for(var v=0;v1&&h.length>1;)if($(f)==$(h))f.pop(),h.pop(),s--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),t++}for(var d=0,p=0,v=f[0],m=h[0],g=Math.min(v.length,m.length);da.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var _=et(t,d),x=et(s,h.length?$(h).length-p:0);return f.length>1||f[0]||tt(_,x)?(pi(r.doc,f,_,x,"+input"),!0):void 0},Na.prototype.ensurePolled=function(){this.forceCompositionEnd()},Na.prototype.reset=function(){this.forceCompositionEnd()},Na.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Na.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Na.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Jr(this.cm,(function(){return fr(e.cm)}))},Na.prototype.setUneditable=function(e){e.contentEditable="false"},Na.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||eo(this.cm,Aa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Na.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Na.prototype.onContextMenu=function(){},Na.prototype.resetPosition=function(){},Na.prototype.needsContentAttribute=!0;var Wa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};Wa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var o=this.textarea;function i(e){if(!ve(r,e)){if(r.somethingSelected())Ea({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Pa(r);Ea({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,B):(n.prevInput="",o.value=t.text.join("\n"),H(o))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(o.style.width="0px"),fe(o,"input",(function(){a&&c>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(o,"paste",(function(e){ve(r,e)||Ta(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),fe(o,"cut",i),fe(o,"copy",i),fe(e.scroller,"paste",(function(t){if(!xn(e,t)&&!ve(r,t)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}})),fe(e.lineSpace,"selectstart",(function(t){xn(e,t)||be(t)})),fe(o,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Wa.prototype.createField=function(e){this.wrapper=Ha(),this.textarea=this.wrapper.firstChild},Wa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var o=Yn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},Wa.prototype.showSelection=function(e){var t=this.cm.display;k(t.cursorDiv,e.cursors),k(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wa.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&H(this.textarea),a&&c>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&c>=9&&(this.hasSelection=null))}},Wa.prototype.getField=function(){return this.textarea},Wa.prototype.supportsTouch=function(){return!1},Wa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wa.prototype.blur=function(){this.textarea.blur()},Wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wa.prototype.receivedFocus=function(){this.slowPoll()},Wa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Wa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Wa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Le(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(a&&c>=9&&this.hasSelection===o||y&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(r.length,o.length);s1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wa.prototype.onKeyPress=function(){a&&c>=9&&(this.hasSelection=null),this.fastPoll()},Wa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=lr(n,e),l=r.scroller.scrollTop;if(i&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&eo(n,Jo)(n.doc,So(i),B);var u,h=o.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(u=window.scrollY),r.input.focus(),s&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&c>=9&&v(),C?(xe(e),fe(window,"mouseup",(function e(){de(window,"mouseup",e),setTimeout(m,20)}))):setTimeout(m,50)}function v(){if(null!=o.selectionStart){var e=n.somethingSelected(),i="\u200b"+(e?o.value:"");o.value="\u21da",o.value=i,t.prevInput=e?"":"\u200b",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,o.style.cssText=h,a&&c<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=o.selectionStart)){(!a||a&&c<9)&&v();var e=0;r.detectingSelectAll=setTimeout((function i(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"\u200b"==t.prevInput?eo(n,ci)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())}),200)}}},Wa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Wa.prototype.setUneditable=function(){},Wa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,o,i){e.defaults[n]=r,o&&(t[n]=i?function(e,t,n){n!=wa&&o(e,t,n)}:o)}e.defineOption=n,e.Init=wa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,To(e)}),!0),n("indentUnit",2,To,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Lo(e),jn(e),fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(et(r,i))}r++}));for(var o=n.length-1;o>=0;o--)pi(e.doc,t,n[o],et(n[o].line,n[o].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=wa&&e.refresh()})),n("specialCharPlaceholder",Qt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){ba(e),mo(e)}),!0),n("keyMap","default",(function(e,t,n){var r=$i(t),o=n!=wa&&$i(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,za,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=po(t,e.options.lineNumbers),mo(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Fr(e)}),!0),n("scrollbarStyle","native",(function(e){Ur(e),Fr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=po(e.options.gutters,t),mo(e)}),!0),n("firstLineNumber",1,mo,!0),n("lineNumberFormatter",(function(e){return e}),mo,!0),n("showCursorWhenSelecting",!1,mr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Mr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ca),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,mr,!0),n("singleCursorHeightPerLine",!0,mr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Lo,!0),n("addModeClass",!1,Lo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Lo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ma),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&eo(this,t[e])(this,n,o),pe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"]($i(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Oa(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&Tr(this));else{var i=o.from(),a=o.to(),c=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=c;s0&&Ko(this.doc,r,new zo(i,l[r].to()),B)}}})),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=ct(this.doc,e);var t,n=ht(this,Ge(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]i&&(e=i,o=!0),r=Ge(this.doc,e)}else r=e;return Un(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-Wt(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i,a,c=this.display,s=(e=Yn(this,ct(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),c.sizer.appendChild(t),"over"==r)s=e.top;else if("above"==r||"near"==r){var u=Math.max(c.wrapper.clientHeight,this.doc.height),f=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(s=e.bottom),l+t.offsetWidth>f&&(l=f-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==o?(l=c.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?l=0:"middle"==o&&(l=(c.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&(null!=(a=Er(i=this,{left:l,top:s,right:l+t.offsetWidth,bottom:s+t.offsetHeight})).scrollTop&&Hr(i,a.scrollTop),null!=a.scrollLeft&&Vr(i,a.scrollLeft))},triggerOnKeyDown:to(sa),triggerOnKeyPress:to(ua),triggerOnKeyUp:la,triggerOnMouseDown:to(pa),execCommand:function(e){if(Ji.hasOwnProperty(e))return Ji[e].call(null,this)},triggerElectric:to((function(e){La(this,e)})),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=ct(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&sr(this),pe(this,"refresh",this)})),swapDoc:to((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Io(this,e),jn(this),this.display.input.reset(),Lr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ye(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}(Ma);var Ua="iter insert remove copy getEditor constructor".split(" ");for(var qa in Ai.prototype)Ai.prototype.hasOwnProperty(qa)&&j(Ua,qa)<0&&(Ma.prototype[qa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ai.prototype[qa]));return ye(Ai),Ma.inputStyles={textarea:Wa,contenteditable:Na},Ma.defineMode=function(e){Ma.defaults.mode||"null"==e||(Ma.defaults.mode=e),Ve.apply(this,arguments)},Ma.defineMIME=function(e,t){Ie[e]=t},Ma.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ma.defineMIME("text/plain","null"),Ma.defineExtension=function(e,t){Ma.prototype[e]=t},Ma.defineDocExtension=function(e,t){Ai.prototype[e]=t},Ma.fromTextArea=function(e,t){if((t=t?V(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=c.getValue()}var o;if(e.form&&(fe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var c=Ma((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return c},function(e){e.off=de,e.on=fe,e.wheelEventPixels=_o,e.Doc=Ai,e.splitLines=Te,e.countColumn=N,e.findColumn=q,e.isWordChar=J,e.Pass=F,e.signal=pe,e.Line=Gt,e.changeEnd=Oo,e.scrollbarModel=Wr,e.Pos=et,e.cmpPos=tt,e.modes=He,e.mimeModes=Ie,e.resolveMode=Ne,e.getMode=Re,e.modeExtensions=je,e.extendMode=Fe,e.copyState=Be,e.startState=Ue,e.innerMode=We,e.commands=Ji,e.keyMap=Fi,e.keyName=Yi,e.isModifierKey=qi,e.lookupKey=Ui,e.normalizeKeyMap=Wi,e.StringStream=qe,e.SharedTextMarker=Si,e.TextMarker=zi,e.LineWidget=_i,e.e_preventDefault=be,e.e_stopPropagation=we,e.e_stop=xe,e.addClass=P,e.contains=T,e.rmClass=S,e.keyNames=Vi}(Ma),Ma.version="5.57.0",Ma}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){}return e.prototype.isSeparator=function(e){return" "==e||"\r"==e||"\n"==e||"\t"==e||"("==e||")"==e},e.prototype.isWhiteSpace=function(e){return" "==e||"\r"==e||"\n"==e||"\t"==e},e.prototype.findLastSeparatorIndex=function(e){var t=this;return r.findLastIndex(e,(function(e){return t.isSeparator(e)}))},e.prototype.needSpaceAfter=function(e){return!("("==e)},e.prototype.isLastCharacterWhiteSpace=function(e){return!!e&&this.isWhiteSpace(e[e.length-1])},e.prototype.stripEndWithNonSeparatorCharacters=function(e){if(!e)return e;if(this.isSeparator(e[e.length-1]))return e;var t=this.findLastSeparatorIndex(e);return t<0?"":e.substr(0,t+1)},e.prototype.getEndNotSeparatorCharacers=function(e){if(!e)return e;if(this.isSeparator(e[e.length-1]))return"";var t=this.findLastSeparatorIndex(e);return t<0?e:e.substr(t+1)},e}();t.default=new o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){}return e.prototype.quote=function(e){return/\s/g.test(e)?'"'+e+'"':e},e.prototype.buildDefaultObjOrGetOriginal=function(e,t){return r.isString(e)?{value:this.quote(e),type:t}:{value:e,type:t}},e.prototype.handleParseError=function(e,t,n){var o=this,i=t;return r.flatMap(n.expected,(function(e){var t=[];if("literal"==e.type&&(t=r.map([e.text||e.value],(function(e){return{value:e,type:"literal"}}))),"other"==e.type){var n=i.getLastTokenType()||"value";"value"==n&&(t=r.map(o.needCategories(),(function(e){return o.buildDefaultObjOrGetOriginal(e,"category")}))),"category"==n&&(t=r.map(o.needOperators(i.getLastCategory()),(function(e){return o.buildDefaultObjOrGetOriginal(e,"operator")}))),"operator"==n&&(t=r.map(o.needValues(i.getLastCategory(),i.getLastOperator()),(function(e){return o.buildDefaultObjOrGetOriginal(e,"value")})))}return t}))},e.prototype.hasCategory=function(e){return!1},e.prototype.hasOperator=function(e,t){return!1},e.prototype.needCategories=function(){return[]},e.prototype.needOperators=function(e){return[]},e.prototype.needValues=function(e,t){return[]},e}();t.default=o},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var i=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[r].concat(a).concat([i]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o=0&&f.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=n.nc;r&&(e.attrs.nonce=r)}return y(t,e.attrs),v(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=l||(l=g(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),v(e,t),t}(t),r=z.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=C.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],o=0;o1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var o=0;ol.clientHeight+1,T=a.getScrollInfo();if(E>0){var L=k.bottom-k.top;if(g.top-(g.bottom-k.top)-L>0)l.style.top=(b=g.top-L-x)+"px",w=!1;else if(L>O){l.style.height=O-5+"px",l.style.top=(b=g.bottom-k.top-x)+"px";var P=a.getCursor();n.from.ch!=P.ch&&(g=a.cursorCoords(P),l.style.left=(y=g.left-_)+"px",k=l.getBoundingClientRect())}}var D,H=k.right-S;if(H>0&&(k.right-k.left>S&&(l.style.width=S-5+"px",H-=k.right-k.left-S),l.style.left=(y=g.left-H-_)+"px"),A)for(var I=l.firstChild;I;I=I.nextSibling)I.style.paddingRight=a.display.nativeBarWidth+"px";return a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,o=r?{}:n;function i(e,r){var i;i="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,o[e]=i}if(r)for(var a in r)r.hasOwnProperty(a)&&i(a,r[a]);var c=e.options.extraKeys;if(c)for(var a in c)c.hasOwnProperty(a)&&i(a,c[a]);return o}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:f.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){D=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(D)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=b+T.top-e.top,o=r-(s.pageYOffset||(c.documentElement||c.body).scrollTop);if(w||(o+=l.offsetHeight),o<=n.top||o>=n.bottom)return t.close();l.style.top=r+"px",l.style.left=y+T.left-e.left+"px"}),e.on(l,"dblclick",(function(e){var t=i(l,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(l,"click",(function(e){var n=i(l,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(l,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),this.scrollToActive(),e.signal(n,"select",f[this.selectedHint],l.childNodes[this.selectedHint]),!0}function c(e,t,n,r){if(e.async)e(t,r,n);else{var o=e(t,n);o&&o.then?o.then(r):r(o)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(o(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),o=this.cm.getLine(t.line);if(t.line!=this.startPos.line||o.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active","")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.completion.options.scrollMargin||0,t=this.hints.childNodes[Math.max(0,this.selectedHint-e)],n=this.hints.childNodes[Math.min(this.data.list.length-1,this.selectedHint+e)],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,o=t.getHelpers(n,"hint");if(o.length){var i=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):o(i+1)}))}(0)};return i.async=!0,i.supportsSelection=!0,i}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,o=t.getCursor(),i=t.getTokenAt(o),a=e.Pos(o.line,i.start),c=o;i.start,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n(2))},function(e,t,n){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){i(e)&&n(e)}function o(e){var r=e.getWrapperElement(),o=i(e);r.className=r.className.replace(" CodeMirror-empty","")+(o?" CodeMirror-empty":""),o?n(e):t(e)}function i(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,i,a){var c=a&&a!=e.Init;if(i&&!c)n.on("blur",r),n.on("change",o),n.on("swapDoc",o),o(n);else if(!i&&c){n.off("blur",r),n.off("change",o),n.off("swapDoc",o),t(n);var s=n.getWrapperElement();s.className=s.className.replace(" CodeMirror-empty","")}i&&!n.hasFocus()&&r(n)}))}(n(2))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(2).defineMode("filter-mode",(function(e,t){function n(e){var t,n=(t=e.fieldState)==r.category?r.operator:t==r.operator?r.value:t==r.value?r.category:void 0,o=e.fieldState;return e.fieldState=n,o.toString()}return{startState:function(){return{inString:!1,fieldState:r.category}},token:function(e,t){return" "==(r=e.peek())||"\r"==r||"\n"==r||"\t"==r?(e.eatSpace(),null):"("==e.peek()||")"==e.peek()?(e.next(),"bracket"):e.match("AND",!0,!0)||e.match("OR",!0,!0)?"condition":(t.inString||'"'!=e.peek()||(e.next(),t.inString=!0),t.inString?(e.skipTo('"')?(e.next(),t.inString=!1):e.skipToEnd(),n(t)):(e.eatWhile(/[^\r\n\t\s\(\)]+/),n(t)));var r}}}));var r=function(){function e(){}return e.none="none",e.category="category",e.operator="operator",e.value="value",e}()},function(e,t,n){var r=n(16);"string"==typeof r&&(r=[[e.i,r,""]]),n(6)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){var r=n(19);"string"==typeof r&&(r=[[e.i,r,""]]),n(6)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,0.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,0.2);box-shadow:2px 3px 5px rgba(0,0,0,0.2);border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:black;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:white}",""])},function(e,t,n){"use strict";(function(e){var r,o=Object.assign||function(e){for(var t=1;t=0;case"!contains":return e[o].toLowerCase().indexOf(r.toLowerCase())<0}return!1},t}(n(8).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),a=n(0),c=function(e){function t(t,n){var r=e.call(this)||this;return r.data=t,r.options=n,r.cache={},r.parseResult=null,r.categories=a.map(r.options,(function(e){return e.columnText?e.columnText:e.columnField})),r}return o(t,e),t.prototype.hasCategory=function(e){return void 0!==a.find(this.options,(function(t){return e===t.columnField||e===t.columnText}))},t.prototype.hasOperator=function(e,t){return this.needOperators(e).indexOf(t)>=0},t.prototype.needCategories=function(){return this.categories},t.prototype.needOperators=function(e){var t=a.find(this.options,(function(t){return null!=t.customOperatorFunc&&(t.columnText==e||t.columnField==e)}));return t?t.customOperatorFunc(e):["==","!=","contains","!contains"]},t.prototype.needValues=function(e,t){var n=a.find(this.options,(function(t){return t.columnField==e||t.columnText==e}));return null!=n&&"selection"==n.type&&null!=this.data?(this.cache[e]||(this.cache[e]=a.chain(this.data).map((function(t){return t[e]})).uniq().value()),this.cache[e]):null!=n&&n.customValuesFunc?n.customValuesFunc(e,t):[]},t}(i.default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=n(0),i=n(4),a=n(29),c=n(3),s=function(){function e(){this.autoCompleteHandler=new i.default,this.lastError=null,this.parseTrace=new a.default}return e.prototype.parse=function(e){if(e=o.trim(e),o.isEmpty(e))return[];try{return this.parseQuery(e)}catch(e){return e.isError=!0,e}},e.prototype.parseQuery=function(e){return this.parseTrace.clear(),r.parse(e,{parseTrace:this.parseTrace})},e.prototype.getSuggestions=function(e){e=c.default.stripEndWithNonSeparatorCharacters(e);try{return this.parseQuery(e),!e||c.default.isLastCharacterWhiteSpace(e)?o.map(["AND","OR"],(function(e){return{value:e,type:"literal"}})):[]}catch(e){return this.autoCompleteHandler.handleParseError(r,this.parseTrace,e)}},e.prototype.setAutoCompleteHandler=function(e){this.autoCompleteHandler=e},e}();t.default=s},function(e,t,n){"use strict";function r(e,t,n,o){this.message=e,this.expected=t,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(r,Error),r.buildMessage=function(e,t){var n={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,n="";for(t=0;t0){for(t=1,r=1;tM&&(M=x,S=[]),S.push(e))}function H(){var t,n,r,i,a,l,u,f;if(t=x,R()!==o)if((n=I())!==o){for(r=[],i=x,(a=N())!==o?("and"===e.substr(x,3).toLowerCase()?(l=e.substr(x,3),x+=3):(l=o,0===O&&D(c)),l===o&&("or"===e.substr(x,2).toLowerCase()?(l=e.substr(x,2),x+=2):(l=o,0===O&&D(s))),l!==o&&(u=N())!==o&&(f=I())!==o?i=a=[a,l,u,f]:(x=i,i=o)):(x=i,i=o);i!==o;)r.push(i),i=x,(a=N())!==o?("and"===e.substr(x,3).toLowerCase()?(l=e.substr(x,3),x+=3):(l=o,0===O&&D(c)),l===o&&("or"===e.substr(x,2).toLowerCase()?(l=e.substr(x,2),x+=2):(l=o,0===O&&D(s))),l!==o&&(u=N())!==o&&(f=I())!==o?i=a=[a,l,u,f]:(x=i,i=o)):(x=i,i=o);r!==o&&(i=R())!==o?(C=t,t=function(e,t){for(var n=[e],r=0;r2?p-2:0),g=2;g=arguments.length)?u=n[l]:(u=arguments[c],c+=1),i[l]=u,Object(a.a)(u)||(s-=1),l+=1}return s<=0?o.apply(this,i):Object(r.a)(s,e(t,i,o))}}(e,[],t))}));t.a=c},function(e,t,n){"use strict";t.a={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length,o=Array(r);n=0;){if(n[i]===e)return r[i]===t;i-=1}switch(o){case"Map":return e.size===t.size&&f(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&f(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=Object(s.a)(e);if(l.length!==Object(s.a)(t).length)return!1;var d=n.concat([e]),p=r.concat([t]);for(i=l.length-1;i>=0;){var v=l[i];if(!Object(a.a)(v,t)||!h(t[v],e[v],d,p))return!1;i-=1}return!0}var d=Object(r.a)((function(e,t){return h(e,t,[],[])}));t.a=d},function(e,t,n){"use strict";var r=n(27),o=n(151),i=n(134);function a(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var c=function(e){return(e<10?"0":"")+e},s="function"===typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+c(e.getUTCMonth()+1)+"-"+c(e.getUTCDate())+"T"+c(e.getUTCHours())+":"+c(e.getUTCMinutes())+":"+c(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},l=n(64);var u=n(19),f=n(340),h=Object(u.a)((function(e,t){return Object(f.a)((n=e,function(){return!n.apply(this,arguments)}),t);var n}));var d=Object(r.a)((function(e){return function e(t,n){var r=function(r){var i=n.concat([t]);return Object(o.a)(r,i)?"":e(r,i)},c=function(e,t){return Object(i.a)((function(t){return a(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Object(i.a)(r,t).join(", ")+"))";case"[object Array]":return"["+Object(i.a)(r,t).concat(c(t,h((function(e){return/^\d+$/.test(e)}),Object(l.a)(t)))).join(", ")+"]";case"[object Boolean]":return"object"===typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):a(s(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"===typeof t?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object String]":return"object"===typeof t?"new String("+r(t.valueOf())+")":a(t);case"[object Undefined]":return"undefined";default:if("function"===typeof t.toString){var u=t.toString();if("[object Object]"!==u)return u}return"{"+c(t,Object(l.a)(t)).join(", ")+"}"}}(e,[])}));t.a=d},function(e,t,n){"use strict";var r=n(25),o=n(47),i=n(85),a=n(0),c=n.n(a),s=n(5),l=n.n(s),u=n(26),f=n.n(u),h=n(30),d=n.n(h),p=!1,v=c.a.createContext(null),m="unmounted",g="exited",y="entering",b="entered",w=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=g,r.appearStatus=y):o=b:o=t.unmountOnExit||t.mountOnEnter?m:g,r.state={status:o},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===m?{status:g}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==y&&n!==b&&(t=y):n!==y&&n!==b||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=d.a.findDOMNode(this);t===y?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===g&&this.setState({status:m})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;!t&&!r||p?this.safeSetState({status:b},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,o),this.safeSetState({status:y},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:b},(function(){n.props.onEntered(e,o)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!p?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:g},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:g},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===m)return null;var t=this.props,n=t.children,r=Object(o.a)(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return c.a.createElement(v.Provider,{value:null},n(e,r));var i=c.a.Children.only(n);return(c.a.createElement(v.Provider,{value:null},c.a.cloneElement(i,r)))},t}(c.a.Component);function _(){}w.contextType=v,w.propTypes={},w.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_,onEntering:_,onEntered:_,onExit:_,onExiting:_,onExited:_},w.UNMOUNTED=0,w.EXITED=1,w.ENTERING=2,w.ENTERED=3,w.EXITING=4;var x=w,C=n(76);function z(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(a.isValidElement)(e)?t(e):e}(e)})),n}function M(e,t,n){return null!=n[t]?n[t]:e.props[t]}function S(e,t,n){var r=z(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var s in t){if(o[s])for(r=0;r0}function I(e){return Object.keys(e).map((function(t){return e[t]}))}var V=!("undefined"===typeof window||!window.document||!window.document.createElement);var N,R=((N=function(e,t,n){var r=e[t];return!1===r||H(r)?null:new Error(n+" expect "+t+" \n to be a valid Number > 0 or equal to false. "+r+" given.")}).isRequired=function(e,t,n){if("undefined"===typeof e[t])return new Error("The prop "+t+" is marked as required in \n "+n+", but its value is undefined.");N(e,t,n)},N),j={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e){return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach((function(e){return clearTimeout(e)})),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o=1?"onTransitionEnd":"onAnimationEnd"]=d&&p<1?null:a,n);return c.a.createElement("div",Object(r.a)({className:g,style:m},y))}function W(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}B.propTypes={delay:R.isRequired,isRunning:l.a.bool.isRequired,closeToast:l.a.func.isRequired,rtl:l.a.bool.isRequired,type:l.a.string,hide:l.a.bool,className:l.a.oneOfType([l.a.string,l.a.object]),progress:l.a.number,controlledProgress:l.a.bool},B.defaultProps={type:T.DEFAULT,hide:!1};var U=V&&/(msie|trident)/i.test(navigator.userAgent),q=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o=1?e.targetTouches[0].clientY:e.clientY}(e),t.drag.start!==t.drag.x&&(t.flag.canCloseOnClick=!1),t.ref.style.transform="translateX("+t.drag.deltaX+"px)",t.ref.style.opacity=1-Math.abs(t.drag.deltaX/t.drag.removalDistance))},t.onDragEnd=function(e){if(t.flag.canDrag){if(t.flag.canDrag=!1,Math.abs(t.drag.deltaX)>t.drag.removalDistance)return void t.setState({preventExitTransition:!0},t.props.closeToast);t.ref.style.transition="transform 0.2s, opacity 0.2s",t.ref.style.transform="translateX(0)",t.ref.style.opacity=1}},t.onDragTransitionEnd=function(){if(t.boundingRect){var e=t.boundingRect,n=e.top,r=e.bottom,o=e.left,i=e.right;t.props.pauseOnHover&&t.drag.x>=o&&t.drag.x<=i&&t.drag.y>=n&&t.drag.y<=r?t.pauseToast():t.playToast()}},t.onExitTransitionEnd=function(){if(U)t.props.onExited();else{var e=t.ref.scrollHeight,n=t.ref.style;requestAnimationFrame((function(){n.minHeight="initial",n.height=e+"px",n.transition="all 0.4s ",requestAnimationFrame((function(){n.height=0,n.padding=0,n.margin=0})),setTimeout((function(){return t.props.onExited()}),400)}))}},t}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onOpen(this.props.children.props),this.props.draggable&&this.bindDragEvents(),this.props.pauseOnFocusLoss&&this.bindFocusEvents()},n.componentDidUpdate=function(e){e.draggable!==this.props.draggable&&(this.props.draggable?this.bindDragEvents():this.unbindDragEvents()),e.pauseOnFocusLoss!==this.props.pauseOnFocusLoss&&(this.props.pauseOnFocusLoss?this.bindFocusEvents():this.unbindFocusEvents())},n.componentWillUnmount=function(){this.props.onClose(this.props.children.props),this.props.draggable&&this.unbindDragEvents(),this.props.pauseOnFocusLoss&&this.unbindFocusEvents()},n.bindFocusEvents=function(){window.addEventListener("focus",this.playToast),window.addEventListener("blur",this.pauseToast)},n.unbindFocusEvents=function(){window.removeEventListener("focus",this.playToast),window.removeEventListener("blur",this.pauseToast)},n.bindDragEvents=function(){document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("touchend",this.onDragEnd)},n.unbindDragEvents=function(){document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("touchend",this.onDragEnd)},n.render=function(){var e,t=this,n=this.props,o=n.closeButton,i=n.children,a=n.autoClose,s=n.pauseOnHover,l=n.onClick,u=n.closeOnClick,h=n.type,d=n.hideProgressBar,p=n.closeToast,v=n.transition,m=n.position,g=n.className,y=n.bodyClassName,b=n.progressClassName,w=n.progressStyle,_=n.updateId,x=n.role,C=n.progress,z=n.rtl,M={className:f()(D+"__toast",D+"__toast--"+h,(e={},e[D+"__toast--rtl"]=z,e),g)};a&&s&&(M.onMouseEnter=this.pauseToast,M.onMouseLeave=this.playToast),u&&(M.onClick=function(e){l&&l(e),t.flag.canCloseOnClick&&p()});var S=parseFloat(C)===C;return c.a.createElement(v,{in:this.props.in,appear:!0,onExited:this.onExitTransitionEnd,position:m,preventExitTransition:this.state.preventExitTransition},c.a.createElement("div",Object(r.a)({onClick:l},M,{ref:function(e){return t.ref=e},onMouseDown:this.onDragStart,onTouchStart:this.onDragStart,onMouseUp:this.onDragTransitionEnd,onTouchEnd:this.onDragTransitionEnd}),c.a.createElement("div",Object(r.a)({},this.props.in&&{role:x},{className:f()(D+"__toast-body",y)}),i),o&&o,(a||S)&&c.a.createElement(B,Object(r.a)({},_&&!S?{key:"pb-"+_}:{},{rtl:z,delay:a,isRunning:this.state.isRunning,closeToast:p,hide:d,type:h,style:w,className:b,controlledProgress:S,progress:C}))))},t}(a.Component);function G(e){var t=e.closeToast,n=e.type,r=e.ariaLabel;return c.a.createElement("button",{className:D+"__close-button "+D+"__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":r},"\u2716\ufe0e")}q.propTypes={closeButton:l.a.oneOfType([l.a.node,l.a.bool]).isRequired,autoClose:R.isRequired,children:l.a.node.isRequired,closeToast:l.a.func.isRequired,position:l.a.oneOf(I(A)).isRequired,pauseOnHover:l.a.bool.isRequired,pauseOnFocusLoss:l.a.bool.isRequired,closeOnClick:l.a.bool.isRequired,transition:l.a.func.isRequired,rtl:l.a.bool.isRequired,hideProgressBar:l.a.bool.isRequired,draggable:l.a.bool.isRequired,draggablePercent:l.a.number.isRequired,in:l.a.bool,onExited:l.a.func,onOpen:l.a.func,onClose:l.a.func,type:l.a.oneOf(I(T)),className:l.a.oneOfType([l.a.string,l.a.object]),bodyClassName:l.a.oneOfType([l.a.string,l.a.object]),progressClassName:l.a.oneOfType([l.a.string,l.a.object]),progressStyle:l.a.object,progress:l.a.number,updateId:l.a.oneOfType([l.a.string,l.a.number]),ariaLabel:l.a.string,containerId:l.a.oneOfType([l.a.string,l.a.number]),role:l.a.string},q.defaultProps={type:T.DEFAULT,in:!0,onOpen:P,onClose:P,className:null,bodyClassName:null,progressClassName:null,updateId:null},G.propTypes={closeToast:l.a.func,arialLabel:l.a.string},G.defaultProps={ariaLabel:"close"};var Y=F({enter:D+"__bounce-enter",exit:D+"__bounce-exit",appendPosition:!0}),$=(F({enter:D+"__slide-enter",exit:D+"__slide-exit",duration:[450,750],appendPosition:!0}),F({enter:D+"__zoom-enter",exit:D+"__zoom-exit"}),F({enter:D+"__flip-enter",exit:D+"__flip-exit"}),function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0}function ne(e,t){var n=function(e){return te()?e?Z.get(e):Z.get(K):null}(t.containerId);if(!n)return null;var r=n.collection[e];return"undefined"===typeof r?null:r}function re(e,t){return Object(r.a)({},e,{type:t,toastId:ie(e)})}function oe(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function ie(e){return e&&("string"===typeof e.toastId||"number"===typeof e.toastId&&!isNaN(e.toastId))?e.toastId:oe()}function ae(e,t){return te()?j.emit(L.SHOW,e,t):(J.push({action:L.SHOW,content:e,options:t}),ee&&V&&(ee=!1,X=document.createElement("div"),document.body.appendChild(X),Object(h.render)(c.a.createElement($,Q),X))),t.toastId}var ce=function(e,t){return ae(e,re(t,t&&t.type||T.DEFAULT))},se=function(e){T[e]!==T.DEFAULT&&(ce[T[e].toLowerCase()]=function(t,n){return ae(t,re(n,n&&n.type||T[e]))})};for(var le in T)se(le);ce.warn=ce.warning,ce.dismiss=function(e){return void 0===e&&(e=null),te()&&j.emit(L.CLEAR,e)},ce.isActive=function(e){var t=!1;return Z.size>0&&Z.forEach((function(n){n.isToastActive(e)&&(t=!0)})),t},ce.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=ne(e,t);if(n){var o=n.options,i=n.content,a=Object(r.a)({},o,{},t,{toastId:t.toastId||e});t.toastId&&t.toastId!==e?a.staleToastId=e:a.updateId=oe();var c="undefined"!==typeof a.render?a.render:i;delete a.render,ae(c,a)}}),0)},ce.done=function(e){ce.update(e,{progress:1})},ce.onChange=function(e){"function"===typeof e&&j.on(L.ON_CHANGE,e)},ce.configure=function(e){ee=!0,Q=e},ce.POSITION=A,ce.TYPE=T,j.on(L.DID_MOUNT,(function(e){K=e.props.containerId||e,Z.set(K,e),J.forEach((function(e){j.emit(e.action,e.content,e.options)})),J=[]})).on(L.WILL_UNMOUNT,(function(e){e?Z.delete(e.props.containerId||e):Z.clear(),0===Z.size&&j.off(L.SHOW).off(L.CLEAR),V&&X&&document.body.removeChild(X)}))},function(e,t,n){"use strict";var r=n(48),o=n(86),i=r("%Object%").assign;e.exports=function(e,t){if(i)return i(e,t);for(var n in t)o(t,n)&&(e[n]=t[n]);return e}},function(e,t,n){"use strict";var r=n(13);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=o.default.isMoment(e)?e:(0,i.default)(e,t);return n?n.year()+"-"+String(n.month()+1).padStart(2,"0")+"-"+String(n.date()).padStart(2,"0"):null};var o=r(n(23)),i=r(n(119))},function(e,t,n){"use strict";var r=n(13);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(5)),i=n(33),a=o.default.oneOfType([o.default.bool,o.default.oneOf([i.START_DATE,i.END_DATE])]);t.default=a},function(e,t,n){"use strict";var r=n(13);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(5)),i=n(33),a=o.default.oneOf([i.INFO_POSITION_TOP,i.INFO_POSITION_BOTTOM,i.INFO_POSITION_BEFORE,i.INFO_POSITION_AFTER]);t.default=a},function(e,t,n){"use strict";var r=n(13);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!o.default.isMoment(e)||!o.default.isMoment(t))return!1;var n=e.year(),r=e.month(),i=t.year(),a=t.month(),c=n===i,s=r===a;return c&&s?e.date()t?1:e>=t?0:NaN},o=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var i=o(r),a=i.right,c=i.left,s=a,l=function(e,t){null==t&&(t=u);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);ne?1:t>=e?0:NaN},d=function(e){return null===e?NaN:+e},p=function(e,t){var n,r,o=e.length,i=0,a=-1,c=0,s=0;if(null==t)for(;++a1)return s/(i-1)},v=function(e,t){var n=p(e,t);return n?Math.sqrt(n):n},m=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++c=0?(i>=C?10:i>=z?5:i>=M?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=C?10:i>=z?5:i>=M?2:1)}function k(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=C?o*=10:i>=z?o*=5:i>=M&&(o*=2),tf;)h.pop(),--d;var p,v=new Array(d+1);for(o=0;o<=d;++o)(p=v[o]=[]).x0=o>0?h[o-1]:u,p.x1=o=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}},L=function(e,t,n){return e=b.call(e,d).sort(r),Math.ceil((n-t)/(2*(T(e,.75)-T(e,.25))*Math.pow(e.length,-1/3)))},P=function(e,t,n){return Math.ceil((n-t)/(3.5*v(e)*Math.pow(e.length,-1/3)))},D=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},H=function(e,t){var n,r=e.length,o=r,i=-1,a=0;if(null==t)for(;++i=0;)for(t=(r=e[o]).length;--t>=0;)n[--a]=r[t];return n},N=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r},R=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},j=function(e,t){if(n=e.length){var n,o,i=0,a=0,c=e[a];for(null==t&&(t=r);++i=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function de(e,t){for(var n,r=0,o=e.length;r0)for(var n,r,o=new Array(n),i=0;i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),ge.hasOwnProperty(t)?{space:ge[t],local:e}:e};function be(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===me&&t.documentElement.namespaceURI===me?t.createElement(e):t.createElementNS(n,e)}}function we(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var _e=function(e){var t=ye(e);return(t.local?we:be)(t)},xe=0;function Ce(){return new ze}function ze(){this._="@"+(++xe).toString(36)}ze.prototype=Ce.prototype={constructor:ze,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Me=function(e){return function(){return this.matches(e)}};if("undefined"!==typeof document){var Se=document.documentElement;if(!Se.matches){var Oe=Se.webkitMatchesSelector||Se.msMatchesSelector||Se.mozMatchesSelector||Se.oMatchesSelector;Me=function(e){return function(){return Oe.call(this,e)}}}}var ke=Me,Ee={},Ae=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(Ee={mouseenter:"mouseover",mouseleave:"mouseout"}));function Te(e,t,n){return e=Le(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Le(e,t,n){return function(r){var o=Ae;Ae=r;try{e.call(this,this.__data__,t,n)}finally{Ae=o}}}function Pe(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function De(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;rt?1:e>=t?0:NaN}function Ke(e){return function(){this.removeAttribute(e)}}function Xe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qe(e,t){return function(){this.setAttribute(e,t)}}function Je(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function et(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function tt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var nt=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function rt(e){return function(){this.style.removeProperty(e)}}function ot(e,t,n){return function(){this.style.setProperty(e,t,n)}}function it(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function at(e,t){return e.style.getPropertyValue(t)||nt(e).getComputedStyle(e,null).getPropertyValue(t)}function ct(e){return function(){delete this[e]}}function st(e,t){return function(){this[e]=t}}function lt(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function ut(e){return e.trim().split(/^|\s+/)}function ft(e){return e.classList||new ht(e)}function ht(e){this._node=e,this._names=ut(e.getAttribute("class")||"")}function dt(e,t){for(var n=ft(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function yt(){this.textContent=""}function bt(e){return function(){this.textContent=e}}function wt(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function _t(){this.innerHTML=""}function xt(e){return function(){this.innerHTML=e}}function Ct(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function zt(){this.nextSibling&&this.parentNode.appendChild(this)}function Mt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function St(){return null}function Ot(){var e=this.parentNode;e&&e.removeChild(this)}function kt(e,t,n){var r=nt(e),o=r.CustomEvent;"function"===typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Et(e,t){return function(){return kt(this,e,t)}}function At(e,t){return function(){return kt(this,e,t.apply(this,arguments))}}var Tt=[null];function Lt(e,t){this._groups=e,this._parents=t}function Pt(){return new Lt([[document.documentElement]],Tt)}Lt.prototype=Pt.prototype={constructor:Lt,select:function(e){"function"!==typeof e&&(e=Fe(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=_&&(_=w+1);!(b=g[_])&&++_=0;)(r=o[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Ze);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?rt:"function"===typeof t?it:ot)(e,t,null==n?"":n)):at(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ct:"function"===typeof t?lt:st)(e,t)):this.node()[e]},classed:function(e,t){var n=ut(e+"");if(arguments.length<2){for(var r=ft(this.node()),o=-1,i=n.length;++of}s.mouse("drag")}function v(){Ht(Ae.view).on("mousemove.drag mouseup.drag",null),Bt(Ae.view,n),jt(),s.mouse("end")}function m(){if(o.apply(this,arguments)){var e,t,n=Ae.changedTouches,r=i.apply(this,arguments),a=n.length;for(e=0;e>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=rn.exec(e))?dn(parseInt(t[1],16)):(t=on.exec(e))?new gn(t[1],t[2],t[3],1):(t=an.exec(e))?new gn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=cn.exec(e))?pn(t[1],t[2],t[3],t[4]):(t=sn.exec(e))?pn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ln.exec(e))?yn(t[1],t[2]/100,t[3]/100,1):(t=un.exec(e))?yn(t[1],t[2]/100,t[3]/100,t[4]):fn.hasOwnProperty(e)?dn(fn[e]):"transparent"===e?new gn(NaN,NaN,NaN,0):null}function dn(e){return new gn(e>>16&255,e>>8&255,255&e,1)}function pn(e,t,n,r){return r<=0&&(e=t=n=NaN),new gn(e,t,n,r)}function vn(e){return e instanceof Qt||(e=hn(e)),e?new gn((e=e.rgb()).r,e.g,e.b,e.opacity):new gn}function mn(e,t,n,r){return 1===arguments.length?vn(e):new gn(e,t,n,null==r?1:r)}function gn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function yn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wn(e,t,n,r)}function bn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof wn)return new wn(e.h,e.s,e.l,e.opacity);if(e instanceof Qt||(e=hn(e)),!e)return new wn;if(e instanceof wn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,c=i-o,s=(i+o)/2;return c?(a=t===i?(n-r)/c+6*(n0&&s<1?0:a,new wn(a,c,s,e.opacity)}(e):new wn(e,t,n,null==r?1:r)}function wn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function _n(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Kt(Qt,hn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Kt(gn,mn,Xt(Qt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new gn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new gn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Kt(wn,bn,Xt(Qt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new wn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new wn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new gn(_n(e>=240?e-240:e+120,o,r),_n(e,o,r),_n(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var xn=Math.PI/180,Cn=180/Math.PI,zn=.95047,Mn=1,Sn=1.08883,On=4/29,kn=6/29,En=3*kn*kn,An=kn*kn*kn;function Tn(e){if(e instanceof Pn)return new Pn(e.l,e.a,e.b,e.opacity);if(e instanceof Rn){var t=e.h*xn;return new Pn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof gn||(e=vn(e));var n=Vn(e.r),r=Vn(e.g),o=Vn(e.b),i=Dn((.4124564*n+.3575761*r+.1804375*o)/zn),a=Dn((.2126729*n+.7151522*r+.072175*o)/Mn);return new Pn(116*a-16,500*(i-a),200*(a-Dn((.0193339*n+.119192*r+.9503041*o)/Sn)),e.opacity)}function Ln(e,t,n,r){return 1===arguments.length?Tn(e):new Pn(e,t,n,null==r?1:r)}function Pn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Dn(e){return e>An?Math.pow(e,1/3):e/En+On}function Hn(e){return e>kn?e*e*e:En*(e-On)}function In(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Vn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Nn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Rn)return new Rn(e.h,e.c,e.l,e.opacity);e instanceof Pn||(e=Tn(e));var t=Math.atan2(e.b,e.a)*Cn;return new Rn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Rn(e,t,n,null==r?1:r)}function Rn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Kt(Pn,Ln,Xt(Qt,{brighter:function(e){return new Pn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Pn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=Mn*Hn(e),new gn(In(3.2404542*(t=zn*Hn(t))-1.5371385*e-.4985314*(n=Sn*Hn(n))),In(-.969266*t+1.8760108*e+.041556*n),In(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),Kt(Rn,Nn,Xt(Qt,{brighter:function(e){return new Rn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Rn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Tn(this).rgb()}}));var jn=-.29227,Fn=-.90649,Bn=1.97294,Wn=Bn*Fn,Un=1.78277*Bn,qn=1.78277*jn- -.14861*Fn;function Gn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);e instanceof gn||(e=vn(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(qn*r+Wn*t-Un*n)/(qn+Wn-Un),i=r-o,a=(Bn*(n-o)-jn*i)/Fn,c=Math.sqrt(a*a+i*i)/(Bn*o*(1-o)),s=c?Math.atan2(a,i)*Cn-120:NaN;return new Yn(s<0?s+360:s,c,o,e.opacity)}(e):new Yn(e,t,n,null==r?1:r)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $n(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}Kt(Yn,Gn,Xt(Qt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Yn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*xn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new gn(255*(t+n*(-.14861*r+1.78277*o)),255*(t+n*(jn*r+Fn*o)),255*(t+n*(Bn*r)),this.opacity)}}));var Zn=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,c=r180||n<-180?n-360*Math.round(n/360):n):Xn(isNaN(e)?t:e)}function er(e){return 1===(e=+e)?tr:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Xn(isNaN(t)?n:t)}}function tr(e,t){var n=t-e;return n?Qn(e,n):Xn(isNaN(e)?t:e)}var nr=function e(t){var n=er(t);function r(e,t){var r=n((e=mn(e)).r,(t=mn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=tr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function rr(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),c=new Array(o);for(n=0;ni&&(o=t.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,s.push({i:a,x:sr(n,r)})),i=fr.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:sr(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,c,s),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:sr(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,c,s),function(e,t,n,r,i,a){if(e!==n||t!==r){var c=i.push(o(i)+"scale(",null,",",null,")");a.push({i:c-4,x:sr(e,n)},{i:c-2,x:sr(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,c,s),i=a=null,function(e){for(var t,n=-1,r=s.length;++n=0&&t._call.call(null,e),t=t._next;--Fr}function to(){Gr=(qr=$r.now())+Yr,Fr=Br=0;try{eo()}finally{Fr=0,function(){var e,t,n=Ir,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Ir=t);Vr=e,ro(r)}(),Gr=0}}function no(){var e=$r.now(),t=e-qr;t>Ur&&(Yr-=t,qr=e)}function ro(e){Fr||(Br&&(Br=clearTimeout(Br)),e-Gr>24?(e<1/0&&(Br=setTimeout(to,e-$r.now()-Yr)),Wr&&(Wr=clearInterval(Wr))):(Wr||(qr=$r.now(),Wr=setInterval(no,Ur)),Fr=1,Zr(to)))}Qr.prototype=Jr.prototype={constructor:Qr,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Kr():+n)+(null==t?0:+t),this._next||Vr===this||(Vr?Vr._next=this:Ir=this,Vr=this),this._call=e,this._time=n,ro()},stop:function(){this._call&&(this._call=null,this._time=1/0,ro())}};var oo=function(e,t,n){var r=new Qr;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},io=function(e,t,n){var r=new Qr,o=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?Kr():+n,r.restart((function i(a){a+=o,r.restart(i,o+=t,n),e(a)}),t,n),r)},ao=ve("start","end","interrupt"),co=[],so=0,lo=1,uo=2,fo=3,ho=4,po=5,vo=6,mo=function(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(s){var l,u,f,h;if(n.state!==lo)return c();for(l in o)if((h=o[l]).name===n.name){if(h.state===fo)return oo(i);h.state===ho?(h.state=vo,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete o[l]):+lso)throw new Error("too late; already scheduled");return n}function yo(e,t){var n=bo(e,t);if(n.state>uo)throw new Error("too late; already started");return n}function bo(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var wo=function(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>uo&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?go:yo;return function(){var a=i(this,e),c=a.on;c!==r&&(o=(r=c).copy()).on(t,n),a.on=o}}var Ro=Dt.prototype.constructor;function jo(e,t,n){function r(){var r=this,o=t.apply(r,arguments);return o&&function(t){r.style.setProperty(e,o(t),n)}}return r._value=t,r}var Fo=0;function Bo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Wo(e){return Dt().transition(e)}function Uo(){return++Fo}var qo=Dt.prototype;function Go(e){return+e}function Yo(e){return e*e}function $o(e){return e*(2-e)}function Zo(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Ko(e){return e*e*e}function Xo(e){return--e*e*e+1}function Qo(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Bo.prototype=Wo.prototype={constructor:Bo,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Fe(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;alo&&n.name===t)return new Bo([[e]],Hi,t,+r);return null},Vi=function(e){return function(){return e}},Ni=function(e,t,n){this.target=e,this.type=t,this.selection=n};function Ri(){Ae.stopImmediatePropagation()}var ji=function(){Ae.preventDefault(),Ae.stopImmediatePropagation()},Fi={name:"drag"},Bi={name:"space"},Wi={name:"handle"},Ui={name:"center"},qi={name:"x",handles:["e","w"].map(Ji),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Gi={name:"y",handles:["n","s"].map(Ji),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},Yi={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(Ji),input:function(e){return e},output:function(e){return e}},$i={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Zi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ki={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Xi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Qi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ji(e){return{type:e}}function ea(){return!Ae.button}function ta(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function na(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function ra(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function oa(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function ia(){return sa(qi)}function aa(){return sa(Gi)}var ca=function(){return sa(Yi)};function sa(e){var t,n=ta,r=ea,o=ve(a,"start","brush","end"),i=6;function a(t){var n=t.property("__brush",f).selectAll(".overlay").data([Ji("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",$i.overlay).merge(n).each((function(){var e=na(this).extent;Ht(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([Ji("selection")]).enter().append("rect").attr("class","selection").attr("cursor",$i.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return $i[e.type]})),t.each(c).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",u)}function c(){var e=Ht(this),t=na(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-i/2:t[0][0]-i/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-i/2:t[0][1]-i/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+i:i})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+i:i}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(e,t){return e.__brush.emitter||new l(e,t)}function l(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function u(){if(Ae.touches){if(Ae.changedTouches.length0&&(n=o-d),x<0?f=h-p:x>0&&(i=a-p),w=Bi,H.attr("cursor",$i.selection),N());break;default:return}ji()}),!0).on("keyup.brush",(function(){switch(Ae.keyCode){case 16:A&&(m=g=A=!1,N());break;case 18:w===Ui&&(_<0?l=u:_>0&&(n=o),x<0?f=h:x>0&&(i=a),w=Wi,N());break;case 32:w===Bi&&(Ae.altKey?(_&&(l=u-d*_,n=o+d*_),x&&(f=h-p*x,i=a+p*x),w=Ui):(_<0?l=u:_>0&&(n=o),x<0?f=h:x>0&&(i=a),w=Wi),H.attr("cursor",$i[b]),N());break;default:return}ji()}),!0).on("mousemove.brush",V,!0).on("mouseup.brush",R,!0);Ft(Ae.view)}Ri(),wo(y),c.call(y),P.start()}function V(){var e=Re(y);!A||m||g||(Math.abs(e[0]-L[0])>Math.abs(e[1]-L[1])?g=!0:m=!0),L=e,v=!0,ji(),N()}function N(){var e;switch(d=L[0]-T[0],p=L[1]-T[1],w){case Bi:case Fi:_&&(d=Math.max(S-n,Math.min(k-l,d)),o=n+d,u=l+d),x&&(p=Math.max(O-i,Math.min(E-f,p)),a=i+p,h=f+p);break;case Wi:_<0?(d=Math.max(S-n,Math.min(k-n,d)),o=n+d,u=l):_>0&&(d=Math.max(S-l,Math.min(k-l,d)),o=n,u=l+d),x<0?(p=Math.max(O-i,Math.min(E-i,p)),a=i+p,h=f):x>0&&(p=Math.max(O-f,Math.min(E-f,p)),a=i,h=f+p);break;case Ui:_&&(o=Math.max(S,Math.min(k,n-d*_)),u=Math.max(S,Math.min(k,l+d*_))),x&&(a=Math.max(O,Math.min(E,i-p*x)),h=Math.max(O,Math.min(E,f+p*x)))}u1e-6)if(Math.abs(u*c-s*l)>1e-6&&o){var h=n-i,d=r-a,p=c*c+s*s,v=h*h+d*d,m=Math.sqrt(p),g=Math.sqrt(f),y=o*Math.tan((ba-Math.acos((p+f-v)/(2*m*g)))/2),b=y/g,w=y/m;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*u)),this._+="A"+o+","+o+",0,0,"+ +(u*h>l*d)+","+(this._x1=e+w*c)+","+(this._y1=t+w*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),c=n*Math.sin(r),s=e+a,l=t+c,u=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+l:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+s+","+l),n&&(f<0&&(f=f%wa+wa),f>_a?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-c)+"A"+n+","+n+",0,1,"+u+","+(this._x1=s)+","+(this._y1=l):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=ba)+","+u+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var za=Ca;function Ma(e){return e.source}function Sa(e){return e.target}function Oa(e){return e.radius}function ka(e){return e.startAngle}function Ea(e){return e.endAngle}var Aa=function(){var e=Ma,t=Sa,n=Oa,r=ka,o=Ea,i=null;function a(){var a,c=ga.call(arguments),s=e.apply(this,c),l=t.apply(this,c),u=+n.apply(this,(c[0]=s,c)),f=r.apply(this,c)-ha,h=o.apply(this,c)-ha,d=u*la(f),p=u*ua(f),v=+n.apply(this,(c[0]=l,c)),m=r.apply(this,c)-ha,g=o.apply(this,c)-ha;if(i||(i=a=za()),i.moveTo(d,p),i.arc(0,0,u,f,h),f===m&&h===g||(i.quadraticCurveTo(0,0,v*la(m),v*ua(m)),i.arc(0,0,v,m,g)),i.quadraticCurveTo(0,0,d,p),i.closePath(),a)return i=null,a+""||null}return a.radius=function(e){return arguments.length?(n="function"===typeof e?e:ya(+e),a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:ya(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:ya(+e),a):o},a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(e){return arguments.length?(t=e,a):t},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a};function Ta(){}function La(e,t){var n=new Ta;if(e instanceof Ta)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var s,l,u,f=-1,h=n.length,d=r[o++],p=Pa(),v=a();++fr.length)return n;var a,c=o[i-1];return null!=t&&i>=r.length?a=n.entries():(a=[],n.each((function(t,n){a.push({key:n,values:e(t,i)})}))),null!=c?a.sort((function(e,t){return c(e.key,t.key)})):a}(i(e,0,Va,Na),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return o[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function Ha(){return{}}function Ia(e,t,n){e[t]=n}function Va(){return Pa()}function Na(e,t,n){e.set(t,n)}function Ra(){}var ja=Pa.prototype;function Fa(e,t){var n=new Ra;if(e instanceof Ra)e.each((function(e){n.add(e)}));else if(e){var r=-1,o=e.length;if(null==t)for(;++r=i?s=!0:(r=e.charCodeAt(a++))===Za?l=!0:r===Ka&&(l=!0,e.charCodeAt(a)===Za&&++a),e.slice(o+1,t-1).replace(/""/g,'"')}for(;a=(i=(v+g)/2))?v=i:g=i,(u=n>=(a=(m+y)/2))?m=a:y=a,o=d,!(d=d[f=u<<1|l]))return o[f]=p,e;if(c=+e._x.call(null,d.data),s=+e._y.call(null,d.data),t===c&&n===s)return p.next=d,o?o[f]=p:e._root=p,e;do{o=o?o[f]=new Array(4):e._root=new Array(4),(l=t>=(i=(v+g)/2))?v=i:g=i,(u=n>=(a=(m+y)/2))?m=a:y=a}while((f=u<<1|l)===(h=(s>=a)<<1|c>=i));return o[h]=d,o[f]=p,e}var dc=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function pc(e){return e[0]}function vc(e){return e[1]}function mc(e,t,n){var r=new gc(null==t?pc:t,null==n?vc:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function gc(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function yc(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var bc=mc.prototype=gc.prototype;function wc(e){return e.x+e.vx}function _c(e){return e.y+e.vy}bc.copy=function(){var e,t,n=new gc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=yc(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=yc(t));return n},bc.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return hc(this.cover(t,n),t,n,e)},bc.addAll=function(e){var t,n,r,o,i=e.length,a=new Array(i),c=new Array(i),s=1/0,l=1/0,u=-1/0,f=-1/0;for(n=0;nu&&(u=r),of&&(f=o));for(ue||e>o||r>t||t>i))return this;var a,c,s=o-n,l=this._root;switch(c=(t<(r+i)/2)<<1|e<(n+o)/2){case 0:do{(a=new Array(4))[c]=l,l=a}while(i=r+(s*=2),e>(o=n+s)||t>i);break;case 1:do{(a=new Array(4))[c]=l,l=a}while(i=r+(s*=2),(n=o-s)>e||t>i);break;case 2:do{(a=new Array(4))[c]=l,l=a}while(r=i-(s*=2),e>(o=n+s)||r>t);break;case 3:do{(a=new Array(4))[c]=l,l=a}while(r=i-(s*=2),(n=o-s)>e||r>t)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},bc.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},bc.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},bc.find=function(e,t,n){var r,o,i,a,c,s,l,u=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new dc(v,u,f,h,d)),null==n?n=1/0:(u=e-n,f=t-n,h=e+n,d=t+n,n*=n);s=p.pop();)if(!(!(v=s.node)||(o=s.x0)>h||(i=s.y0)>d||(a=s.x1)=g)<<1|e>=m)&&(s=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=s)}else{var y=e-+this._x.call(null,v.data),b=t-+this._y.call(null,v.data),w=y*y+b*b;if(w=(c=(p+m)/2))?p=c:m=c,(u=a>=(s=(v+g)/2))?v=s:g=s,t=d,!(d=d[f=u<<1|l]))return this;if(!d.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,h=f)}for(;d.data!==e;)if(r=d,!(d=d.next))return this;return(o=d.next)&&delete d.next,r?(o?r.next=o:delete r.next,this):t?(o?t[f]=o:delete t[f],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=o,this)},bc.removeAll=function(e){for(var t=0,n=e.length;ts+d||ol+d||ic.index){var p=s-a.x-a.vx,v=l-a.y-a.vy,m=p*p+v*v;me.r&&(e.r=e[t].r)}function c(){if(t){var r,o,i=t.length;for(n=new Array(i),r=0;r1?(null==n?c.remove(e):c.set(e,d(n)),t):c.get(e)},find:function(t,n,r){var o,i,a,c,s,l=0,u=e.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(e,n),t):l.on(e)}}},Lc=function(){var e,t,n,r,o=uc(-30),i=1,a=1/0,c=.81;function s(r){var o,i=e.length,a=mc(e,Sc,Oc).visitAfter(u);for(n=r,o=0;o=a)){(e.data!==t||e.next)&&(0===u&&(d+=(u=fc())*u),0===f&&(d+=(f=fc())*f),d1?r[0]+r.slice(2):r,+e.slice(n+1)]},Vc=function(e){return(e=Ic(Math.abs(e)))?e[1]:NaN},Nc=function(e,t){var n=Ic(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},Rc={"":function(e,t){e:for(var n,r=(e=e.toPrecision(t)).length,o=1,i=-1;o0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Nc(100*e,t)},r:Nc,s:function(e,t){var n=Ic(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(kc=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Ic(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},jc=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Fc(e){return new Bc(e)}function Bc(e){if(!(t=jc.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",i=t[4]||"",a=!!t[5],c=t[6]&&+t[6],s=!!t[7],l=t[8]&&+t[8].slice(1),u=t[9]||"";"n"===u?(s=!0,u="g"):Rc[u]||(u=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=i,this.zero=a,this.width=c,this.comma=s,this.precision=l,this.type=u}Fc.prototype=Bc.prototype,Bc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Wc,Uc,qc,Gc=function(e){return e},Yc=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"],$c=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,c=t[0],s=0;o>0&&c>0&&(s+c+1>r&&(c=Math.max(1,r-s)),i.push(e.substring(o-=c,o+c)),!((s+=c+1)>r));)c=t[a=(a+1)%t.length];return i.reverse().join(n)}):Gc,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Gc,c=e.percent||"%";function s(e){var t=(e=Fc(e)).fill,n=e.align,s=e.sign,l=e.symbol,u=e.zero,f=e.width,h=e.comma,d=e.precision,p=e.type,v="$"===l?o[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",m="$"===l?o[1]:/[%p]/.test(p)?c:"",g=Rc[p],y=!p||/[defgprs%]/.test(p);function b(e){var o,c,l,b=v,w=m;if("c"===p)w=g(e)+w,e="";else{var _=(e=+e)<0;if(e=g(Math.abs(e),d),_&&0===+e&&(_=!1),b=(_?"("===s?s:"-":"-"===s||"("===s?"":s)+b,w=w+("s"===p?Yc[8+kc/3]:"")+(_&&"("===s?")":""),y)for(o=-1,c=e.length;++o(l=e.charCodeAt(o))||l>57){w=(46===l?i+e.slice(o+1):e.slice(o))+w,e=e.slice(0,o);break}}h&&!u&&(e=r(e,1/0));var x=b.length+e.length+w.length,C=x>1)+b+e+w+C.slice(x);break;default:e=C+b+e+w}return a(e)}return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),b.toString=function(){return e+""},b}return{format:s,formatPrefix:function(e,t){var n=s(((e=Fc(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Vc(t)/3))),o=Math.pow(10,-r),i=Yc[8+r/3];return function(e){return n(o*e)+i}}}};function Zc(e){return Wc=$c(e),Uc=Wc.format,qc=Wc.formatPrefix,Wc}Zc({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Kc=function(e){return Math.max(0,-Vc(Math.abs(e)))},Xc=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Vc(t)/3)))-Vc(Math.abs(e)))},Qc=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Vc(t)-Vc(e))+1},Jc=function(){return new es};function es(){this.reset()}es.prototype={constructor:es,reset:function(){this.s=this.t=0},add:function(e){ns(ts,e,this.t),ns(this,ts.s,this.s),this.s?this.t+=ts.t:this.s=ts.t},valueOf:function(){return this.s}};var ts=new es;function ns(e,t,n){var r=e.s=t+n,o=r-t,i=r-o;e.t=t-i+(n-o)}var rs=1e-6,os=Math.PI,is=os/2,as=os/4,cs=2*os,ss=180/os,ls=os/180,us=Math.abs,fs=Math.atan,hs=Math.atan2,ds=Math.cos,ps=Math.ceil,vs=Math.exp,ms=(Math.floor,Math.log),gs=Math.pow,ys=Math.sin,bs=Math.sign||function(e){return e>0?1:e<0?-1:0},ws=Math.sqrt,_s=Math.tan;function xs(e){return e>1?0:e<-1?os:Math.acos(e)}function Cs(e){return e>1?is:e<-1?-is:Math.asin(e)}function zs(e){return(e=ys(e/2))*e}function Ms(){}function Ss(e,t){e&&ks.hasOwnProperty(e.type)&&ks[e.type](e,t)}var Os={Feature:function(e,t){Ss(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,i=ds(t=(t*=ls)/2+as),a=ys(t),c=Hs*a,s=Ds*i+c*ds(o),l=c*r*ys(o);Vs.add(hs(l,s)),Ps=e,Ds=i,Hs=a}var Us=function(e){return Ns.reset(),Is(e,Rs),2*Ns};function qs(e){return[hs(e[1],e[0]),Cs(e[2])]}function Gs(e){var t=e[0],n=e[1],r=ds(n);return[r*ds(t),r*ys(t),ys(n)]}function Ys(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function $s(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Zs(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ks(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Xs(e){var t=ws(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Qs,Js,el,tl,nl,rl,ol,il,al,cl,sl=Jc(),ll={point:ul,lineStart:hl,lineEnd:dl,polygonStart:function(){ll.point=pl,ll.lineStart=vl,ll.lineEnd=ml,sl.reset(),Rs.polygonStart()},polygonEnd:function(){Rs.polygonEnd(),ll.point=ul,ll.lineStart=hl,ll.lineEnd=dl,Vs<0?(Qs=-(el=180),Js=-(tl=90)):sl>rs?tl=90:sl<-rs&&(Js=-90),cl[0]=Qs,cl[1]=el}};function ul(e,t){al.push(cl=[Qs=e,el=e]),ttl&&(tl=t)}function fl(e,t){var n=Gs([e*ls,t*ls]);if(il){var r=$s(il,n),o=$s([r[1],-r[0],0],r);Xs(o),o=qs(o);var i,a=e-nl,c=a>0?1:-1,s=o[0]*ss*c,l=us(a)>180;l^(c*nltl&&(tl=i):l^(c*nl<(s=(s+360)%360-180)&&stl&&(tl=t)),l?egl(Qs,el)&&(el=e):gl(e,el)>gl(Qs,el)&&(Qs=e):el>=Qs?(eel&&(el=e)):e>nl?gl(Qs,e)>gl(Qs,el)&&(el=e):gl(e,el)>gl(Qs,el)&&(Qs=e)}else al.push(cl=[Qs=e,el=e]);ttl&&(tl=t),il=n,nl=e}function hl(){ll.point=fl}function dl(){cl[0]=Qs,cl[1]=el,ll.point=ul,il=null}function pl(e,t){if(il){var n=e-nl;sl.add(us(n)>180?n+(n>0?360:-360):n)}else rl=e,ol=t;Rs.point(e,t),fl(e,t)}function vl(){Rs.lineStart()}function ml(){pl(rl,ol),Rs.lineEnd(),us(sl)>rs&&(Qs=-(el=180)),cl[0]=Qs,cl[1]=el,il=null}function gl(e,t){return(t-=e)<0?t+360:t}function yl(e,t){return e[0]-t[0]}function bl(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tgl(r[0],r[1])&&(r[1]=o[1]),gl(o[0],r[1])>gl(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,t=0,r=i[n=i.length-1];t<=n;r=o,++t)o=i[t],(c=gl(r[1],o[0]))>a&&(a=c,Qs=o[0],el=r[1])}return al=cl=null,Qs===1/0||Js===1/0?[[NaN,NaN],[NaN,NaN]]:[[Qs,Js],[el,tl]]},Vl={sphere:Ms,point:Nl,lineStart:jl,lineEnd:Wl,polygonStart:function(){Vl.lineStart=Ul,Vl.lineEnd=ql},polygonEnd:function(){Vl.lineStart=jl,Vl.lineEnd=Wl}};function Nl(e,t){e*=ls;var n=ds(t*=ls);Rl(n*ds(e),n*ys(e),ys(t))}function Rl(e,t,n){++wl,xl+=(e-xl)/wl,Cl+=(t-Cl)/wl,zl+=(n-zl)/wl}function jl(){Vl.point=Fl}function Fl(e,t){e*=ls;var n=ds(t*=ls);Pl=n*ds(e),Dl=n*ys(e),Hl=ys(t),Vl.point=Bl,Rl(Pl,Dl,Hl)}function Bl(e,t){e*=ls;var n=ds(t*=ls),r=n*ds(e),o=n*ys(e),i=ys(t),a=hs(ws((a=Dl*i-Hl*o)*a+(a=Hl*r-Pl*i)*a+(a=Pl*o-Dl*r)*a),Pl*r+Dl*o+Hl*i);_l+=a,Ml+=a*(Pl+(Pl=r)),Sl+=a*(Dl+(Dl=o)),Ol+=a*(Hl+(Hl=i)),Rl(Pl,Dl,Hl)}function Wl(){Vl.point=Nl}function Ul(){Vl.point=Gl}function ql(){Yl(Tl,Ll),Vl.point=Nl}function Gl(e,t){Tl=e,Ll=t,e*=ls,t*=ls,Vl.point=Yl;var n=ds(t);Pl=n*ds(e),Dl=n*ys(e),Hl=ys(t),Rl(Pl,Dl,Hl)}function Yl(e,t){e*=ls;var n=ds(t*=ls),r=n*ds(e),o=n*ys(e),i=ys(t),a=Dl*i-Hl*o,c=Hl*r-Pl*i,s=Pl*o-Dl*r,l=ws(a*a+c*c+s*s),u=Cs(l),f=l&&-u/l;kl+=f*a,El+=f*c,Al+=f*s,_l+=u,Ml+=u*(Pl+(Pl=r)),Sl+=u*(Dl+(Dl=o)),Ol+=u*(Hl+(Hl=i)),Rl(Pl,Dl,Hl)}var $l=function(e){wl=_l=xl=Cl=zl=Ml=Sl=Ol=kl=El=Al=0,Is(e,Vl);var t=kl,n=El,r=Al,o=t*t+n*n+r*r;return o<1e-12&&(t=Ml,n=Sl,r=Ol,_los?e-cs:e<-os?e+cs:e,t]}function Ql(e,t,n){return(e%=cs)?t||n?Kl(eu(e),tu(t,n)):eu(e):t||n?tu(t,n):Xl}function Jl(e){return function(t,n){return[(t+=e)>os?t-cs:t<-os?t+cs:t,n]}}function eu(e){var t=Jl(e);return t.invert=Jl(-e),t}function tu(e,t){var n=ds(e),r=ys(e),o=ds(t),i=ys(t);function a(e,t){var a=ds(t),c=ds(e)*a,s=ys(e)*a,l=ys(t),u=l*n+c*r;return[hs(s*o-u*i,c*n-l*r),Cs(u*o+s*i)]}return a.invert=function(e,t){var a=ds(t),c=ds(e)*a,s=ys(e)*a,l=ys(t),u=l*o-s*i;return[hs(s*o+l*i,c*n+u*r),Cs(u*n-c*r)]},a}Xl.invert=Xl;var nu=function(e){function t(t){return(t=e(t[0]*ls,t[1]*ls))[0]*=ss,t[1]*=ss,t}return e=Ql(e[0]*ls,e[1]*ls,e.length>2?e[2]*ls:0),t.invert=function(t){return(t=e.invert(t[0]*ls,t[1]*ls))[0]*=ss,t[1]*=ss,t},t};function ru(e,t,n,r,o,i){if(n){var a=ds(t),c=ys(t),s=r*n;null==o?(o=t+r*cs,i=t-s/2):(o=ou(a,o),i=ou(a,i),(r>0?oi)&&(o+=r*cs));for(var l,u=o;r>0?u>i:u1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},cu=function(e,t){return us(e[0]-t[0])=0;--i)o.point((u=l[i])[0],u[1]);else r(h.x,h.p.x,-1,o);h=h.p}l=(h=h.o).z,d=!d}while(!h.v);o.lineEnd()}}};function uu(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r=0?1:-1,z=C*x,M=z>os,S=p*w;if(fu.add(hs(S*C*ys(z),v*_+S*ds(z))),i+=M?x+C*cs:x,M^h>=n^y>=n){var O=$s(Gs(f),Gs(g));Xs(O);var k=$s(o,O);Xs(k);var E=(M^x>=0?-1:1)*Cs(k[2]);(r>E||r===E&&(O[0]||O[1]))&&(a+=M^x>=0?1:-1)}}return(i<-rs||i0){for(f||(o.polygonStart(),f=!0),o.lineStart(),e=0;e1&&2&s&&h.push(h.pop().concat(h.shift())),a.push(h.filter(pu))}return h}};function pu(e){return e.length>1}function vu(e,t){return((e=e.x)[0]<0?e[1]-is-rs:is-e[1])-((t=t.x)[0]<0?t[1]-is-rs:is-t[1])}var mu=du((function(){return!0}),(function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var c=i>0?os:-os,s=us(i-n);us(s-os)0?is:-is),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(c,r),e.point(i,r),t=0):o!==c&&s>=os&&(us(n-o)rs?fs((ys(t)*(i=ds(r))*ys(n)-ys(r)*(o=ds(t))*ys(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(c,r),t=0),e.point(n=i,r=a),o=c},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var o;if(null==e)o=n*is,r.point(-os,o),r.point(0,o),r.point(os,o),r.point(os,0),r.point(os,-o),r.point(0,-o),r.point(-os,-o),r.point(-os,0),r.point(-os,o);else if(us(e[0]-t[0])>rs){var i=e[0]0,o=us(t)>rs;function i(e,n){return ds(e)*ds(n)>t}function a(e,n,r){var o=[1,0,0],i=$s(Gs(e),Gs(n)),a=Ys(i,i),c=i[0],s=a-c*c;if(!s)return!r&&e;var l=t*a/s,u=-t*c/s,f=$s(o,i),h=Ks(o,l);Zs(h,Ks(i,u));var d=f,p=Ys(h,d),v=Ys(d,d),m=p*p-v*(Ys(h,h)-1);if(!(m<0)){var g=ws(m),y=Ks(d,(-p-g)/v);if(Zs(y,h),y=qs(y),!r)return y;var b,w=e[0],_=n[0],x=e[1],C=n[1];_0^y[1]<(us(y[0]-w)os^(w<=y[0]&&y[0]<=_)){var S=Ks(d,(-p+g)/v);return Zs(S,h),[y,qs(S)]}}}function c(t,n){var o=r?e:os-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return du(i,(function(e){var t,n,s,l,u;return{lineStart:function(){l=s=!1,u=1},point:function(f,h){var d,p=[f,h],v=i(f,h),m=r?v?0:c(f,h):v?c(f+(f<0?os:-os),h):0;if(!t&&(l=s=v)&&e.lineStart(),v!==s&&(!(d=a(t,p))||cu(t,d)||cu(p,d))&&(p[0]+=rs,p[1]+=rs,v=i(p[0],p[1])),v!==s)u=0,v?(e.lineStart(),d=a(p,t),e.point(d[0],d[1])):(d=a(t,p),e.point(d[0],d[1]),e.lineEnd()),t=d;else if(o&&t&&r^v){var g;m&n||!(g=a(p,t,!0))||(u=0,r?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!v||t&&cu(t,p)||e.point(p[0],p[1]),t=p,s=v,n=m},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return u|(l&&s)<<1}}}),(function(t,r,o,i){ru(i,e,n,o,t,r)}),r?[0,-e]:[-os,e-os])},yu=function(e,t,n,r,o,i){var a,c=e[0],s=e[1],l=0,u=1,f=t[0]-c,h=t[1]-s;if(a=n-c,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>u)return;a>l&&(l=a)}if(a=o-c,f||!(a<0)){if(a/=f,f<0){if(a>u)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>u)return;a>l&&(l=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>u)return;a>l&&(l=a)}else if(h>0){if(a0&&(e[0]=c+l*f,e[1]=s+l*h),u<1&&(t[0]=c+u*f,t[1]=s+u*h),!0}}}}},bu=1e9,wu=-bu;function _u(e,t,n,r){function o(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function i(o,i,c,l){var u=0,f=0;if(null==o||(u=a(o,c))!==(f=a(i,c))||s(o,i)<0^c>0)do{l.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+c+4)%4)!==f);else l.point(i[0],i[1])}function a(r,o){return us(r[0]-e)0?0:3:us(r[0]-n)0?2:1:us(r[1]-t)0?1:0:o>0?3:2}function c(e,t){return s(e.x,t.x)}function s(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var s,l,u,f,h,d,p,v,m,g,y,b=a,w=au(),_={point:x,lineStart:function(){_.point=C,l&&l.push(u=[]);g=!0,m=!1,p=v=NaN},lineEnd:function(){s&&(C(f,h),d&&m&&w.rejoin(),s.push(w.result()));_.point=x,m&&b.lineEnd()},polygonStart:function(){b=w,s=[],l=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=l.length;nr&&(h-i)*(r-a)>(d-a)*(e-i)&&++t:d<=r&&(h-i)*(r-a)<(d-a)*(e-i)&&--t;return t}(),n=y&&t,o=(s=V(s)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&lu(s,c,t,i,a),a.polygonEnd());b=a,s=l=u=null}};function x(e,t){o(e,t)&&b.point(e,t)}function C(i,a){var c=o(i,a);if(l&&u.push([i,a]),g)f=i,h=a,d=c,g=!1,c&&(b.lineStart(),b.point(i,a));else if(c&&m)b.point(i,a);else{var s=[p=Math.max(wu,Math.min(bu,p)),v=Math.max(wu,Math.min(bu,v))],w=[i=Math.max(wu,Math.min(bu,i)),a=Math.max(wu,Math.min(bu,a))];yu(s,w,e,t,n,r)?(m||(b.lineStart(),b.point(s[0],s[1])),b.point(w[0],w[1]),c||b.lineEnd(),y=!1):c&&(b.lineStart(),b.point(i,a),y=!1)}p=i,v=a,m=c}return _}}var xu,Cu,zu,Mu=function(){var e,t,n,r=0,o=0,i=960,a=500;return n={stream:function(n){return e&&t===n?e:e=_u(r,o,i,a)(t=n)},extent:function(c){return arguments.length?(r=+c[0][0],o=+c[0][1],i=+c[1][0],a=+c[1][1],e=t=null,n):[[r,o],[i,a]]}}},Su=Jc(),Ou={sphere:Ms,point:Ms,lineStart:function(){Ou.point=Eu,Ou.lineEnd=ku},lineEnd:Ms,polygonStart:Ms,polygonEnd:Ms};function ku(){Ou.point=Ou.lineEnd=Ms}function Eu(e,t){xu=e*=ls,Cu=ys(t*=ls),zu=ds(t),Ou.point=Au}function Au(e,t){e*=ls;var n=ys(t*=ls),r=ds(t),o=us(e-xu),i=ds(o),a=r*ys(o),c=zu*n-Cu*r*i,s=Cu*n+zu*r*i;Su.add(hs(ws(a*a+c*c),s)),xu=e,Cu=n,zu=r}var Tu=function(e){return Su.reset(),Is(e,Ou),+Su},Lu=[null,null],Pu={type:"LineString",coordinates:Lu},Du=function(e,t){return Lu[0]=e,Lu[1]=t,Tu(Pu)},Hu={Feature:function(e,t){return Vu(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++rrs})).map(s)).concat(x(ps(i/d)*d,o,d).filter((function(e){return us(e%v)>rs})).map(l))}return g.lines=function(){return y().map((function(e){return{type:"LineString",coordinates:e}}))},g.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(f(a).slice(1),u(n).reverse().slice(1),f(c).reverse().slice(1))]}},g.extent=function(e){return arguments.length?g.extentMajor(e).extentMinor(e):g.extentMinor()},g.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],c=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),c>a&&(e=c,c=a,a=e),g.precision(m)):[[r,c],[n,a]]},g.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),i>o&&(n=i,i=o,o=n),g.precision(m)):[[t,i],[e,o]]},g.step=function(e){return arguments.length?g.stepMajor(e).stepMinor(e):g.stepMinor()},g.stepMajor=function(e){return arguments.length?(p=+e[0],v=+e[1],g):[p,v]},g.stepMinor=function(e){return arguments.length?(h=+e[0],d=+e[1],g):[h,d]},g.precision=function(h){return arguments.length?(m=+h,s=Uu(i,o,90),l=qu(t,e,m),u=Uu(c,a,90),f=qu(r,n,m),g):m},g.extentMajor([[-180,-90+rs],[180,90-rs]]).extentMinor([[-180,-80-rs],[180,80+rs]])}function Yu(){return Gu()()}var $u,Zu,Ku,Xu,Qu=function(e,t){var n=e[0]*ls,r=e[1]*ls,o=t[0]*ls,i=t[1]*ls,a=ds(r),c=ys(r),s=ds(i),l=ys(i),u=a*ds(n),f=a*ys(n),h=s*ds(o),d=s*ys(o),p=2*Cs(ws(zs(i-r)+a*s*zs(o-n))),v=ys(p),m=p?function(e){var t=ys(e*=p)/v,n=ys(p-e)/v,r=n*u+t*h,o=n*f+t*d,i=n*c+t*l;return[hs(o,r)*ss,hs(i,ws(r*r+o*o))*ss]}:function(){return[n*ss,r*ss]};return m.distance=p,m},Ju=function(e){return e},ef=Jc(),tf=Jc(),nf={point:Ms,lineStart:Ms,lineEnd:Ms,polygonStart:function(){nf.lineStart=rf,nf.lineEnd=cf},polygonEnd:function(){nf.lineStart=nf.lineEnd=nf.point=Ms,ef.add(us(tf)),tf.reset()},result:function(){var e=ef/2;return ef.reset(),e}};function rf(){nf.point=of}function of(e,t){nf.point=af,$u=Ku=e,Zu=Xu=t}function af(e,t){tf.add(Xu*e-Ku*t),Ku=e,Xu=t}function cf(){af($u,Zu)}var sf=nf,lf=1/0,uf=lf,ff=-lf,hf=ff;var df,pf,vf,mf,gf={point:function(e,t){eff&&(ff=e);thf&&(hf=t)},lineStart:Ms,lineEnd:Ms,polygonStart:Ms,polygonEnd:Ms,result:function(){var e=[[lf,uf],[ff,hf]];return ff=hf=-(uf=lf=1/0),e}},yf=0,bf=0,wf=0,_f=0,xf=0,Cf=0,zf=0,Mf=0,Sf=0,Of={point:kf,lineStart:Ef,lineEnd:Lf,polygonStart:function(){Of.lineStart=Pf,Of.lineEnd=Df},polygonEnd:function(){Of.point=kf,Of.lineStart=Ef,Of.lineEnd=Lf},result:function(){var e=Sf?[zf/Sf,Mf/Sf]:Cf?[_f/Cf,xf/Cf]:wf?[yf/wf,bf/wf]:[NaN,NaN];return yf=bf=wf=_f=xf=Cf=zf=Mf=Sf=0,e}};function kf(e,t){yf+=e,bf+=t,++wf}function Ef(){Of.point=Af}function Af(e,t){Of.point=Tf,kf(vf=e,mf=t)}function Tf(e,t){var n=e-vf,r=t-mf,o=ws(n*n+r*r);_f+=o*(vf+e)/2,xf+=o*(mf+t)/2,Cf+=o,kf(vf=e,mf=t)}function Lf(){Of.point=kf}function Pf(){Of.point=Hf}function Df(){If(df,pf)}function Hf(e,t){Of.point=If,kf(df=vf=e,pf=mf=t)}function If(e,t){var n=e-vf,r=t-mf,o=ws(n*n+r*r);_f+=o*(vf+e)/2,xf+=o*(mf+t)/2,Cf+=o,zf+=(o=mf*e-vf*t)*(vf+e),Mf+=o*(mf+t),Sf+=3*o,kf(vf=e,mf=t)}var Vf=Of;function Nf(e){this._context=e}Nf.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,cs)}},result:Ms};var Rf,jf,Ff,Bf,Wf,Uf=Jc(),qf={point:Ms,lineStart:function(){qf.point=Gf},lineEnd:function(){Rf&&Yf(jf,Ff),qf.point=Ms},polygonStart:function(){Rf=!0},polygonEnd:function(){Rf=null},result:function(){var e=+Uf;return Uf.reset(),e}};function Gf(e,t){qf.point=Yf,jf=Bf=e,Ff=Wf=t}function Yf(e,t){Bf-=e,Wf-=t,Uf.add(ws(Bf*Bf+Wf*Wf)),Bf=e,Wf=t}var $f=qf;function Zf(){this._string=[]}function Kf(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Zf.prototype={_radius:4.5,_circle:Kf(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Kf(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Xf=function(e,t){var n,r,o=4.5;function i(e){return e&&("function"===typeof o&&r.pointRadius(+o.apply(this,arguments)),Is(e,n(r))),r.result()}return i.area=function(e){return Is(e,n(sf)),sf.result()},i.measure=function(e){return Is(e,n($f)),$f.result()},i.bounds=function(e){return Is(e,n(gf)),gf.result()},i.centroid=function(e){return Is(e,n(Vf)),Vf.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,Ju):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new Zf):new Nf(t=e),"function"!==typeof o&&r.pointRadius(o),i):t},i.pointRadius=function(e){return arguments.length?(o="function"===typeof e?e:(r.pointRadius(+e),+e),i):o},i.projection(e).context(t)},Qf=function(e){return{stream:Jf(e)}};function Jf(e){return function(t){var n=new eh;for(var r in e)n[r]=e[r];return n.stream=t,n}}function eh(){}function th(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Is(n,e.stream(gf)),t(gf.result()),null!=r&&e.clipExtent(r),e}function nh(e,t,n){return th(e,(function(n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=Math.min(r/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),a=+t[0][0]+(r-i*(n[1][0]+n[0][0]))/2,c=+t[0][1]+(o-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,c])}),n)}function rh(e,t,n){return nh(e,[[0,0],t],n)}function oh(e,t,n){return th(e,(function(n){var r=+t,o=r/(n[1][0]-n[0][0]),i=(r-o*(n[1][0]+n[0][0]))/2,a=-o*n[0][1];e.scale(150*o).translate([i,a])}),n)}function ih(e,t,n){return th(e,(function(n){var r=+t,o=r/(n[1][1]-n[0][1]),i=-o*n[0][0],a=(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([i,a])}),n)}eh.prototype={constructor:eh,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ah=16,ch=ds(30*ls),sh=function(e,t){return+t?function(e,t){function n(r,o,i,a,c,s,l,u,f,h,d,p,v,m){var g=l-r,y=u-o,b=g*g+y*y;if(b>4*t&&v--){var w=a+h,_=c+d,x=s+p,C=ws(w*w+_*_+x*x),z=Cs(x/=C),M=us(us(x)-1)t||us((g*E+y*A)/b-.5)>.3||a*h+c*d+s*p2?e[2]%360*ls:0,k()):[m*ss,g*ss,y*ss]},M.precision=function(e){return arguments.length?(z=sh(O,C=e*e),E()):ws(C)},M.fitExtent=function(e,t){return nh(M,e,t)},M.fitSize=function(e,t){return rh(M,e,t)},M.fitWidth=function(e,t){return oh(M,e,t)},M.fitHeight=function(e,t){return ih(M,e,t)},function(){return t=e.apply(this,arguments),M.invert=t.invert&&S,k()}}function hh(e){var t=0,n=os/3,r=fh(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*ls,n=e[1]*ls):[t*ss,n*ss]},o}function dh(e,t){var n=ys(e),r=(n+ys(t))/2;if(us(r)=.12&&o<.234&&r>=-.425&&r<-.214?c:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:a).invert(e)},u.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var o=-1;++o0?t<-is+rs&&(t=-is+rs):t>is-rs&&(t=is-rs);var n=o/gs(Sh(t),r);return[n*ys(r*e),o-n*ds(r*e)]}return i.invert=function(e,t){var n=o-t,i=bs(r)*ws(e*e+n*n);return[hs(e,us(n))/r*bs(n),2*fs(gs(o/i,1/r))-is]},i}var kh=function(){return hh(Oh).scale(109.5).parallels([30,30])};function Eh(e,t){return[e,t]}Eh.invert=Eh;var Ah=function(){return uh(Eh).scale(152.63)};function Th(e,t){var n=ds(e),r=e===t?ys(e):(n-ds(t))/(t-e),o=n/r+e;if(us(r)rs&&--o>0);return[e/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]};var Nh=function(){return uh(Vh).scale(175.295)};function Rh(e,t){return[ds(t)*ys(e),ys(t)]}Rh.invert=yh(Cs);var jh=function(){return uh(Rh).scale(249.5).clipAngle(90+rs)};function Fh(e,t){var n=ds(t),r=1+ds(e)*n;return[n*ys(e)/r,ys(t)/r]}Fh.invert=yh((function(e){return 2*fs(e)}));var Bh=function(){return uh(Fh).scale(250).clipAngle(142)};function Wh(e,t){return[ms(_s((is+t)/2)),-e]}Wh.invert=function(e,t){return[-t,2*fs(vs(e))-is]};var Uh=function(){var e=Mh(Wh),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function qh(e,t){return e.parent===t.parent?1:2}function Gh(e,t){return e+t.x}function Yh(e,t){return Math.max(e,t.y)}var $h=function(){var e=qh,t=1,n=1,r=!1;function o(o){var i,a=0;o.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Gh,0)/e.length}(n),t.y=function(e){return 1+e.reduce(Yh,0)}(n)):(t.x=i?a+=e(t,i):0,t.y=0,i=t)}));var c=function(e){for(var t;t=e.children;)e=t[0];return e}(o),s=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),l=c.x-e(c,s)/2,u=s.x+e(s,c)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-l)/(u-l)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o};function Zh(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Kh(e,t){var n,r,o,i,a,c=new ed(e),s=+e.value&&(c.value=e.value),l=[c];for(null==t&&(t=Xh);n=l.pop();)if(s&&(n.value=+n.data.value),(o=t(n.data))&&(a=o.length))for(n.children=new Array(a),i=a-1;i>=0;--i)l.push(r=n.children[i]=new ed(o[i])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(Jh)}function Xh(e){return e.children}function Qh(e){e.data=e.data.data}function Jh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ed(e){this.data=e,this.depth=this.height=0,this.parent=null}ed.prototype=Kh.prototype={constructor:ed,count:function(){return this.eachAfter(Zh)},each:function(e){var t,n,r,o,i=this,a=[i];do{for(t=a.reverse(),a=[];i=t.pop();)if(e(i),n=i.children)for(r=0,o=n.length;r=0;--n)o.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;e=n.pop(),t=r.pop();for(;e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Kh(this).eachBefore(Qh)}};var td=Array.prototype.slice;var nd=function(e){for(var t,n,r=0,o=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(td.call(e))).length,i=[];r0&&n*n>r*r+o*o}function ad(e,t){for(var n=0;nn*n+r*r}function hd(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return o*o+i*i}function dd(e){this._=e,this.next=null,this.previous=null}function pd(e){if(!(o=e.length))return 0;var t,n,r,o,i,a,c,s,l,u,f;if((t=e[0]).x=0,t.y=0,!(o>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(o>2))return t.r+n.r;ud(n,t,r=e[2]),t=new dd(t),n=new dd(n),r=new dd(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(c=3;c0)throw new Error("cycle");return i}return n.id=function(t){return arguments.length?(e=gd(t),n):e},n.parentId=function(e){return arguments.length?(t=gd(e),n):t},n};function Dd(e,t){return e.parent===t.parent?1:2}function Hd(e){var t=e.children;return t?t[0]:e.t}function Id(e){var t=e.children;return t?t[t.length-1]:e.t}function Vd(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Nd(e,t,n){return e.a.parent===t.parent?e.a:n}function Rd(e,t){this._=e,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=t}Rd.prototype=Object.create(ed.prototype);var jd=function(){var e=Dd,t=1,n=1,r=null;function o(o){var s=function(e){for(var t,n,r,o,i,a=new Rd(e,0),c=[a];t=c.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)c.push(n=t.children[o]=new Rd(r[o],o)),n.parent=t;return(a.parent=new Rd(null,0)).children=[a],a}(o);if(s.eachAfter(i),s.parent.m=-s.z,s.eachBefore(a),r)o.eachBefore(c);else{var l=o,u=o,f=o;o.eachBefore((function(e){e.xu.x&&(u=e),e.depth>f.depth&&(f=e)}));var h=l===u?1:e(l,u)/2,d=h-l.x,p=t/(u.x+h+d),v=n/(f.depth||1);o.eachBefore((function(e){e.x=(e.x+d)*p,e.y=e.depth*v}))}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,c=n,s=i.parent.children[0],l=i.m,u=a.m,f=c.m,h=s.m;c=Id(c),i=Hd(i),c&&i;)s=Hd(s),(a=Id(a)).a=t,(o=c.z+f-i.z-l+e(c._,i._))>0&&(Vd(Nd(c,t,r),t,o),l+=o,u+=o),f+=c.m,l+=i.m,h+=s.m,u+=a.m;c&&!Id(a)&&(a.t=c,a.m+=f-u),i&&!Hd(s)&&(s.t=i,s.m+=l-h,r=t)}return r}(t,o,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function c(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},Fd=function(e,t,n,r,o){for(var i,a=e.children,c=-1,s=a.length,l=e.value&&(o-n)/e.value;++ch&&(h=c),m=u*u*v,(d=Math.max(h/m,m/f))>p){u-=c;break}p=d}g.push(a={value:u,dice:s1?t:1)},n}(Bd),qd=function(){var e=Ud,t=!1,n=1,r=1,o=[0],i=yd,a=yd,c=yd,s=yd,l=yd;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),o=[0],t&&e.eachBefore(Md),e}function f(t){var n=o[t.depth],r=t.x0+n,u=t.y0+n,f=t.x1-n,h=t.y1-n;f=n-1){var u=c[t];return u.x0=o,u.y0=i,u.x1=a,void(u.y1=s)}var f=l[t],h=r/2+f,d=t+1,p=n-1;for(;d>>1;l[v]s-i){var y=(o*g+a*m)/r;e(t,d,m,o,i,y,s),e(d,n,g,y,i,a,s)}else{var b=(i*g+s*m)/r;e(t,d,m,o,i,a,b),e(d,n,g,o,b,a,s)}}(0,s,e.value,t,n,r,o)},Yd=function(e,t,n,r,o){(1&e.depth?Fd:Sd)(e,t,n,r,o)},$d=function e(t){function n(e,n,r,o,i){if((a=e._squarify)&&a.ratio===t)for(var a,c,s,l,u,f=-1,h=a.length,d=e.value;++f1?t:1)},n}(Bd),Zd=function(e){for(var t,n=-1,r=e.length,o=e[r-1],i=0;++n1&&Xd(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}var ep=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),o=new Array(n);for(t=0;t=0;--t)l.push(e[r[i[t]][2]]);for(t=+c;tc!==l>c&&a<(s-n)*(c-r)/(l-r)+n&&(u=!u),s=n,l=r;return u},np=function(e){for(var t,n,r=-1,o=e.length,i=e[o-1],a=i[0],c=i[1],s=0;++r=0;)if((n=e._tasks[r])&&(e._tasks[r]=null,n.abort))try{n.abort()}catch(t){}e._active=NaN,lp(e)}function lp(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function up(e){if(null==e)e=1/0;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new ip(e)}ip.prototype=up.prototype={constructor:ip,defer:function(e){if("function"!==typeof e)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var t=rp.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),ap(this),this},abort:function(){return null==this._error&&sp(this,new Error("abort")),this},await:function(e){if("function"!==typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,n){e.apply(null,[t].concat(n))},lp(this),this},awaitAll:function(e){if("function"!==typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=e,lp(this),this}};var fp=function(){return Math.random()},hp=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(fp),dp=function e(t){function n(e,n){var r,o;return e=null==e?0:+e,n=null==n?1:+n,function(){var i;if(null!=r)i=r,r=null;else do{r=2*t()-1,i=2*t()-1,o=r*r+i*i}while(!o||o>1);return e+n*i*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n}(fp),pp=function e(t){function n(){var e=dp.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(fp),vp=function e(t){function n(e){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(o)try{t=o.call(n,s)}catch(i){return void a.call("error",n,i)}else t=s;a.call("load",n,t)}else a.call("error",n,e)}if("undefined"===typeof XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(e)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=s.ontimeout=h:s.onreadystatechange=function(e){s.readyState>3&&h(e)},s.onprogress=function(e){a.call("progress",n,e)},n={header:function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?c.get(e):(null==t?c.remove(e):c.set(e,t+""),n)},mimeType:function(e){return arguments.length?(r=null==e?null:e+"",n):r},responseType:function(e){return arguments.length?(i=e,n):i},timeout:function(e){return arguments.length?(f=+e,n):f},user:function(e){return arguments.length<1?l:(l=null==e?null:e+"",n)},password:function(e){return arguments.length<1?u:(u=null==e?null:e+"",n)},response:function(e){return o=e,n},get:function(e,t){return n.send("GET",e,t)},post:function(e,t){return n.send("POST",e,t)},send:function(t,o,h){return s.open(t,e,!0,l,u),null==r||c.has("accept")||c.set("accept",r+",*/*"),s.setRequestHeader&&c.each((function(e,t){s.setRequestHeader(t,e)})),null!=r&&s.overrideMimeType&&s.overrideMimeType(r),null!=i&&(s.responseType=i),f>0&&(s.timeout=f),null==h&&"function"===typeof o&&(h=o,o=null),null!=h&&1===h.length&&(h=function(e){return function(t,n){e(null==t?n:null)}}(h)),null!=h&&n.on("error",h).on("load",(function(e){h(null,e)})),a.call("beforesend",n,s),s.send(null==o?null:o),n},abort:function(){return s.abort(),n},on:function(){var e=a.on.apply(a,arguments);return e===a?n:e}},null!=t){if("function"!==typeof t)throw new Error("invalid callback: "+t);return n.get(t)}return n};var bp=function(e,t){return function(n,r){var o=yp(n).mimeType(e).response(t);if(null!=r){if("function"!==typeof r)throw new Error("invalid callback: "+r);return o.get(r)}return o}},wp=bp("text/html",(function(e){return document.createRange().createContextualFragment(e.responseText)})),_p=bp("application/json",(function(e){return JSON.parse(e.responseText)})),xp=bp("text/plain",(function(e){return e.responseText})),Cp=bp("application/xml",(function(e){var t=e.responseXML;if(!t)throw new Error("parse error");return t})),zp=function(e,t){return function(n,r,o){arguments.length<3&&(o=r,r=null);var i=yp(n).mimeType(e);return i.row=function(e){return arguments.length?i.response(Mp(t,r=e)):r},i.row(r),o?i.get(o):i}};function Mp(e,t){return function(n){return e(n.responseText,t)}}var Sp=zp("text/csv",ec),Op=zp("text/tab-separated-values",ic),kp=Array.prototype,Ep=kp.map,Ap=kp.slice,Tp={name:"implicit"};function Lp(e){var t=Pa(),n=[],r=Tp;function o(o){var i=o+"",a=t.get(i);if(!a){if(r!==Tp)return r;t.set(i,a=n.push(o))}return e[(a-1)%e.length]}return e=null==e?[]:Ap.call(e),o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Pa();for(var r,i,a=-1,c=e.length;++a2?jp:Rp,r=o=null,u}function u(t){return(r||(r=n(i,a,s?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,c)))(+t)}return u.invert=function(e){return(o||(o=n(a,i,Np,s?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(i=Ep.call(e,Ip),l()):i.slice()},u.range=function(e){return arguments.length?(a=Ap.call(e),l()):a.slice()},u.rangeRound=function(e){return a=Ap.call(e),c=yr,l()},u.clamp=function(e){return arguments.length?(s=!!e,l()):s},u.interpolate=function(e){return arguments.length?(c=e,l()):c},l()}var Wp=function(e,t,n){var r,o=e[0],i=e[e.length-1],a=k(o,i,null==t?10:t);switch((n=Fc(null==n?",f":n)).type){case"s":var c=Math.max(Math.abs(o),Math.abs(i));return null!=n.precision||isNaN(r=Xc(a,c))||(n.precision=r),qc(n,c);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=Qc(a,Math.max(Math.abs(o),Math.abs(i))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=Kc(a))||(n.precision=r-2*("%"===n.type))}return Uc(n)};function Up(e){var t=e.domain;return e.ticks=function(e){var n=t();return S(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Wp(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,c=o[i],s=o[a];return s0?r=O(c=Math.floor(c/r)*r,s=Math.ceil(s/r)*r,n):r<0&&(r=O(c=Math.ceil(c*r)/r,s=Math.floor(s*r)/r,n)),r>0?(o[i]=Math.floor(c/r)*r,o[a]=Math.ceil(s/r)*r,t(o)):r<0&&(o[i]=Math.ceil(c*r)/r,o[a]=Math.floor(s*r)/r,t(o)),e},e}function qp(){var e=Bp(Np,sr);return e.copy=function(){return Fp(e,qp())},Up(e)}function Gp(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=Ep.call(n,Ip),t):e.slice()},t.copy=function(){return Gp().domain(e)},Up(t)}var Yp=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;hs)break;v.push(f)}}else for(;h=1;--u)if(!((f=l*u)s)break;v.push(f)}}else v=S(h,d,Math.min(d-h,p)).map(o);return i?v.reverse():v},e.tickFormat=function(t,i){if(null==i&&(i=10===n?".0e":","),"function"!==typeof i&&(i=Uc(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/o(Math.round(r(e)));return t*n0?n[o-1]:e[0],o=n?[r[n-1],t]:[r[a-1],r[a]]},i.copy=function(){return iv().domain([e,t]).range(o)},Up(i)}function av(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[s(e,r,0,n)]}return r.domain=function(o){return arguments.length?(e=Ap.call(o),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(o){return arguments.length?(t=Ap.call(o),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return av().domain(e).range(t)},r}var cv=new Date,sv=new Date;function lv(e,t,n,r){function o(t){return e(t=new Date(+t)),t}return o.floor=o,o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return c;do{c.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return cv.setTime(+t),sv.setTime(+r),e(cv),e(sv),Math.floor(n(cv,sv))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var uv=lv((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));uv.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?lv((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):uv:null};var fv=uv,hv=uv.range,dv=6e4,pv=6048e5,vv=lv((function(e){e.setTime(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()})),mv=vv,gv=vv.range,yv=lv((function(e){e.setTime(Math.floor(e/dv)*dv)}),(function(e,t){e.setTime(+e+t*dv)}),(function(e,t){return(t-e)/dv}),(function(e){return e.getMinutes()})),bv=yv,wv=yv.range,_v=lv((function(e){var t=e.getTimezoneOffset()*dv%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()})),xv=_v,Cv=_v.range,zv=lv((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dv)/864e5}),(function(e){return e.getDate()-1})),Mv=zv,Sv=zv.range;function Ov(e){return lv((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dv)/pv}))}var kv=Ov(0),Ev=Ov(1),Av=Ov(2),Tv=Ov(3),Lv=Ov(4),Pv=Ov(5),Dv=Ov(6),Hv=kv.range,Iv=Ev.range,Vv=Av.range,Nv=Tv.range,Rv=Lv.range,jv=Pv.range,Fv=Dv.range,Bv=lv((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),Wv=Bv,Uv=Bv.range,qv=lv((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));qv.every=function(e){return isFinite(e=Math.floor(e))&&e>0?lv((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Gv=qv,Yv=qv.range,$v=lv((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*dv)}),(function(e,t){return(t-e)/dv}),(function(e){return e.getUTCMinutes()})),Zv=$v,Kv=$v.range,Xv=lv((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()})),Qv=Xv,Jv=Xv.range,em=lv((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1})),tm=em,nm=em.range;function rm(e){return lv((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/pv}))}var om=rm(0),im=rm(1),am=rm(2),cm=rm(3),sm=rm(4),lm=rm(5),um=rm(6),fm=om.range,hm=im.range,dm=am.range,pm=cm.range,vm=sm.range,mm=lm.range,gm=um.range,ym=lv((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),bm=ym,wm=ym.range,_m=lv((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));_m.every=function(e){return isFinite(e=Math.floor(e))&&e>0?lv((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var xm=_m,Cm=_m.range;function zm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Mm(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Sm(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Om(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,c=e.months,s=e.shortMonths,l=Rm(o),u=jm(o),f=Rm(i),h=jm(i),d=Rm(a),p=jm(a),v=Rm(c),m=jm(c),g=Rm(s),y=jm(s),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:ag,e:ag,f:fg,H:cg,I:sg,j:lg,L:ug,m:hg,M:dg,p:function(e){return o[+(e.getHours()>=12)]},Q:Fg,s:Bg,S:pg,u:vg,U:mg,V:gg,w:yg,W:bg,x:null,X:null,y:wg,Y:_g,Z:xg,"%":jg},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Cg,e:Cg,f:kg,H:zg,I:Mg,j:Sg,L:Og,m:Eg,M:Ag,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:Fg,s:Bg,S:Tg,u:Lg,U:Pg,V:Dg,w:Hg,W:Ig,x:null,X:null,y:Vg,Y:Ng,Z:Rg,"%":jg},_={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return z(e,t,n,r)},d:Km,e:Km,f:ng,H:Qm,I:Qm,j:Xm,L:tg,m:Zm,M:Jm,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:og,s:ig,S:eg,u:Bm,U:Wm,V:Um,w:Fm,W:qm,x:function(e,t,r){return z(e,n,t,r)},X:function(e,t,n){return z(e,r,t,n)},y:Ym,Y:Gm,Z:$m,"%":rg};function x(e,t){return function(n){var r,o,i,a=[],c=-1,s=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++c53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Mm(Sm(i.y))).getUTCDay(),r=o>4||0===o?im.ceil(r):im(r),r=tm.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=t(Sm(i.y))).getDay(),r=o>4||0===o?Ev.ceil(r):Ev(r),r=Mv.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Mm(Sm(i.y)).getUTCDay():t(Sm(i.y)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Mm(i)):t(i)}}function z(e,t,n,r){for(var o,i,a=0,c=t.length,s=n.length;a=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=_[o in Pm?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return(b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",zm);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,Mm);return t.toString=function(){return e},t}})}var km,Em,Am,Tm,Lm,Pm={"-":"",_:" ",0:"0"},Dm=/^\s*\d+/,Hm=/^%/,Im=/[\\^$*+?|[\]().{}]/g;function Vm(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function $m(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Zm(e,t,n){var r=Dm.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Km(e,t,n){var r=Dm.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Xm(e,t,n){var r=Dm.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Qm(e,t,n){var r=Dm.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jm(e,t,n){var r=Dm.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function eg(e,t,n){var r=Dm.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tg(e,t,n){var r=Dm.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ng(e,t,n){var r=Dm.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rg(e,t,n){var r=Hm.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function og(e,t,n){var r=Dm.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ig(e,t,n){var r=Dm.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ag(e,t){return Vm(e.getDate(),t,2)}function cg(e,t){return Vm(e.getHours(),t,2)}function sg(e,t){return Vm(e.getHours()%12||12,t,2)}function lg(e,t){return Vm(1+Mv.count(Gv(e),e),t,3)}function ug(e,t){return Vm(e.getMilliseconds(),t,3)}function fg(e,t){return ug(e,t)+"000"}function hg(e,t){return Vm(e.getMonth()+1,t,2)}function dg(e,t){return Vm(e.getMinutes(),t,2)}function pg(e,t){return Vm(e.getSeconds(),t,2)}function vg(e){var t=e.getDay();return 0===t?7:t}function mg(e,t){return Vm(kv.count(Gv(e),e),t,2)}function gg(e,t){var n=e.getDay();return e=n>=4||0===n?Lv(e):Lv.ceil(e),Vm(Lv.count(Gv(e),e)+(4===Gv(e).getDay()),t,2)}function yg(e){return e.getDay()}function bg(e,t){return Vm(Ev.count(Gv(e),e),t,2)}function wg(e,t){return Vm(e.getFullYear()%100,t,2)}function _g(e,t){return Vm(e.getFullYear()%1e4,t,4)}function xg(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Vm(t/60|0,"0",2)+Vm(t%60,"0",2)}function Cg(e,t){return Vm(e.getUTCDate(),t,2)}function zg(e,t){return Vm(e.getUTCHours(),t,2)}function Mg(e,t){return Vm(e.getUTCHours()%12||12,t,2)}function Sg(e,t){return Vm(1+tm.count(xm(e),e),t,3)}function Og(e,t){return Vm(e.getUTCMilliseconds(),t,3)}function kg(e,t){return Og(e,t)+"000"}function Eg(e,t){return Vm(e.getUTCMonth()+1,t,2)}function Ag(e,t){return Vm(e.getUTCMinutes(),t,2)}function Tg(e,t){return Vm(e.getUTCSeconds(),t,2)}function Lg(e){var t=e.getUTCDay();return 0===t?7:t}function Pg(e,t){return Vm(om.count(xm(e),e),t,2)}function Dg(e,t){var n=e.getUTCDay();return e=n>=4||0===n?sm(e):sm.ceil(e),Vm(sm.count(xm(e),e)+(4===xm(e).getUTCDay()),t,2)}function Hg(e){return e.getUTCDay()}function Ig(e,t){return Vm(im.count(xm(e),e),t,2)}function Vg(e,t){return Vm(e.getUTCFullYear()%100,t,2)}function Ng(e,t){return Vm(e.getUTCFullYear()%1e4,t,4)}function Rg(){return"+0000"}function jg(){return"%"}function Fg(e){return+e}function Bg(e){return Math.floor(+e/1e3)}function Wg(e){return km=Om(e),Em=km.format,Am=km.parse,Tm=km.utcFormat,Lm=km.utcParse,km}Wg({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"]});var Ug=Date.prototype.toISOString?function(e){return e.toISOString()}:Tm("%Y-%m-%dT%H:%M:%S.%LZ");var qg=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:Lm("%Y-%m-%dT%H:%M:%S.%LZ"),Gg=1e3,Yg=60*Gg,$g=60*Yg,Zg=24*$g,Kg=7*Zg,Xg=30*Zg,Qg=365*Zg;function Jg(e){return new Date(e)}function ey(e){return e instanceof Date?+e:+new Date(+e)}function ty(e,t,n,r,i,a,c,s,l){var u=Bp(Np,sr),f=u.invert,h=u.domain,d=l(".%L"),p=l(":%S"),v=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),y=l("%b %d"),b=l("%B"),w=l("%Y"),_=[[c,1,Gg],[c,5,5*Gg],[c,15,15*Gg],[c,30,30*Gg],[a,1,Yg],[a,5,5*Yg],[a,15,15*Yg],[a,30,30*Yg],[i,1,$g],[i,3,3*$g],[i,6,6*$g],[i,12,12*$g],[r,1,Zg],[r,2,2*Zg],[n,1,Kg],[t,1,Xg],[t,3,3*Xg],[e,1,Qg]];function x(o){return(c(o)1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return hy.h=360*e-100,hy.s=1.5-1.5*t,hy.l=.8-.9*t,hy+""};function py(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var vy=py(oy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),my=py(oy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),gy=py(oy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),yy=py(oy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function by(e){var t=0,n=1,r=!1;function o(o){var i=(o-t)/(n-t);return e(r?Math.max(0,Math.min(1,i)):i)}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.clamp=function(e){return arguments.length?(r=!!e,o):r},o.interpolator=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return by(e).domain([t,n]).clamp(r)},Up(o)}var wy=function(e){return function(){return e}},_y=Math.abs,xy=Math.atan2,Cy=Math.cos,zy=Math.max,My=Math.min,Sy=Math.sin,Oy=Math.sqrt,ky=1e-12,Ey=Math.PI,Ay=Ey/2,Ty=2*Ey;function Ly(e){return e>=1?Ay:e<=-1?-Ay:Math.asin(e)}function Py(e){return e.innerRadius}function Dy(e){return e.outerRadius}function Hy(e){return e.startAngle}function Iy(e){return e.endAngle}function Vy(e){return e&&e.padAngle}function Ny(e,t,n,r,o,i,a){var c=e-n,s=t-r,l=(a?i:-i)/Oy(c*c+s*s),u=l*s,f=-l*c,h=e+u,d=t+f,p=n+u,v=r+f,m=(h+p)/2,g=(d+v)/2,y=p-h,b=v-d,w=y*y+b*b,_=o-i,x=h*v-p*d,C=(b<0?-1:1)*Oy(zy(0,_*_*w-x*x)),z=(x*b-y*C)/w,M=(-x*y-b*C)/w,S=(x*b+y*C)/w,O=(-x*y+b*C)/w,k=z-m,E=M-g,A=S-m,T=O-g;return k*k+E*E>A*A+T*T&&(z=S,M=O),{cx:z,cy:M,x01:-u,y01:-f,x11:z*(o/_-1),y11:M*(o/_-1)}}var Ry=function(){var e=Py,t=Dy,n=wy(0),r=null,o=Hy,i=Iy,a=Vy,c=null;function s(){var s,l,u,f=+e.apply(this,arguments),h=+t.apply(this,arguments),d=o.apply(this,arguments)-Ay,p=i.apply(this,arguments)-Ay,v=_y(p-d),m=p>d;if(c||(c=s=za()),hky)if(v>Ty-ky)c.moveTo(h*Cy(d),h*Sy(d)),c.arc(0,0,h,d,p,!m),f>ky&&(c.moveTo(f*Cy(p),f*Sy(p)),c.arc(0,0,f,p,d,m));else{var g,y,b=d,w=p,_=d,x=p,C=v,z=v,M=a.apply(this,arguments)/2,S=M>ky&&(r?+r.apply(this,arguments):Oy(f*f+h*h)),O=My(_y(h-f)/2,+n.apply(this,arguments)),k=O,E=O;if(S>ky){var A=Ly(S/f*Sy(M)),T=Ly(S/h*Sy(M));(C-=2*A)>ky?(_+=A*=m?1:-1,x-=A):(C=0,_=x=(d+p)/2),(z-=2*T)>ky?(b+=T*=m?1:-1,w-=T):(z=0,b=w=(d+p)/2)}var L=h*Cy(b),P=h*Sy(b),D=f*Cy(x),H=f*Sy(x);if(O>ky){var I=h*Cy(w),V=h*Sy(w),N=f*Cy(_),R=f*Sy(_);if(vky?function(e,t,n,r,o,i,a,c){var s=n-e,l=r-t,u=a-o,f=c-i,h=(u*(t-i)-f*(e-o))/(f*s-u*l);return[e+h*s,t+h*l]}(L,P,N,R,I,V,D,H):[D,H],F=L-j[0],B=P-j[1],W=I-j[0],U=V-j[1],q=1/Sy(((u=(F*W+B*U)/(Oy(F*F+B*B)*Oy(W*W+U*U)))>1?0:u<-1?Ey:Math.acos(u))/2),G=Oy(j[0]*j[0]+j[1]*j[1]);k=My(O,(f-G)/(q-1)),E=My(O,(h-G)/(q+1))}}z>ky?E>ky?(g=Ny(N,R,L,P,h,E,m),y=Ny(I,V,D,H,h,E,m),c.moveTo(g.cx+g.x01,g.cy+g.y01),Eky&&C>ky?k>ky?(g=Ny(D,H,I,V,f,-k,m),y=Ny(L,P,N,R,f,-k,m),c.lineTo(g.cx+g.x01,g.cy+g.y01),k=u;--f)c.point(m[f],g[f]);c.lineEnd(),c.areaEnd()}v&&(m[l]=+e(h,l,s),g[l]=+n(h,l,s),c.point(t?+t(h,l,s):m[l],r?+r(h,l,s):g[l]))}if(d)return c=null,d+""||null}function l(){return Uy().defined(o).curve(a).context(i)}return s.x=function(n){return arguments.length?(e="function"===typeof n?n:wy(+n),t=null,s):e},s.x0=function(t){return arguments.length?(e="function"===typeof t?t:wy(+t),s):e},s.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:wy(+e),s):t},s.y=function(e){return arguments.length?(n="function"===typeof e?e:wy(+e),r=null,s):n},s.y0=function(e){return arguments.length?(n="function"===typeof e?e:wy(+e),s):n},s.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:wy(+e),s):r},s.lineX0=s.lineY0=function(){return l().x(e).y(n)},s.lineY1=function(){return l().x(e).y(r)},s.lineX1=function(){return l().x(t).y(n)},s.defined=function(e){return arguments.length?(o="function"===typeof e?e:wy(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(c=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=c=null:c=a(i=e),s):i},s},Gy=function(e,t){return te?1:t>=e?0:NaN},Yy=function(e){return e},$y=function(){var e=Yy,t=Gy,n=null,r=wy(0),o=wy(Ty),i=wy(0);function a(a){var c,s,l,u,f,h=a.length,d=0,p=new Array(h),v=new Array(h),m=+r.apply(this,arguments),g=Math.min(Ty,Math.max(-Ty,o.apply(this,arguments)-m)),y=Math.min(Math.abs(g)/h,i.apply(this,arguments)),b=y*(g<0?-1:1);for(c=0;c0&&(d+=f);for(null!=t?p.sort((function(e,n){return t(v[e],v[n])})):null!=n&&p.sort((function(e,t){return n(a[e],a[t])})),c=0,l=d?(g-h*b)/d:0;c0?f*l:0)+b,v[s]={data:a[s],index:c,value:f,startAngle:m,endAngle:u,padAngle:y};return v}return a.value=function(t){return arguments.length?(e="function"===typeof t?t:wy(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:wy(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:wy(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"===typeof e?e:wy(+e),a):i},a},Zy=Xy(Fy);function Ky(e){this._curve=e}function Xy(e){function t(t){return new Ky(e(t))}return t._curve=e,t}function Qy(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Xy(e)):t()._curve},e}Ky.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Jy=function(){return Qy(Uy().curve(Zy))},eb=function(){var e=qy().curve(Zy),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Qy(n())},delete e.lineX0,e.lineEndAngle=function(){return Qy(r())},delete e.lineX1,e.lineInnerRadius=function(){return Qy(o())},delete e.lineY0,e.lineOuterRadius=function(){return Qy(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Xy(e)):t()._curve},e},tb=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},nb=Array.prototype.slice;function rb(e){return e.source}function ob(e){return e.target}function ib(e){var t=rb,n=ob,r=By,o=Wy,i=null;function a(){var a,c=nb.call(arguments),s=t.apply(this,c),l=n.apply(this,c);if(i||(i=a=za()),e(i,+r.apply(this,(c[0]=s,c)),+o.apply(this,c),+r.apply(this,(c[0]=l,c)),+o.apply(this,c)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"===typeof e?e:wy(+e),a):r},a.y=function(e){return arguments.length?(o="function"===typeof e?e:wy(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function ab(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function cb(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function sb(e,t,n,r,o){var i=tb(t,n),a=tb(t,n=(n+o)/2),c=tb(r,n),s=tb(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],c[0],c[1],s[0],s[1])}function lb(){return ib(ab)}function ub(){return ib(cb)}function fb(){var e=ib(sb);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var hb={draw:function(e,t){var n=Math.sqrt(t/Ey);e.moveTo(n,0),e.arc(0,0,n,0,Ty)}},db={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},pb=Math.sqrt(1/3),vb=2*pb,mb={draw:function(e,t){var n=Math.sqrt(t/vb),r=n*pb;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},gb=Math.sin(Ey/10)/Math.sin(7*Ey/10),yb=Math.sin(Ty/10)*gb,bb=-Math.cos(Ty/10)*gb,wb={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=yb*n,o=bb*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Ty*i/5,c=Math.cos(a),s=Math.sin(a);e.lineTo(s*n,-c*n),e.lineTo(c*r-s*o,s*r+c*o)}e.closePath()}},_b={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},xb=Math.sqrt(3),Cb={draw:function(e,t){var n=-Math.sqrt(t/(3*xb));e.moveTo(0,2*n),e.lineTo(-xb*n,-n),e.lineTo(xb*n,-n),e.closePath()}},zb=Math.sqrt(3)/2,Mb=1/Math.sqrt(12),Sb=3*(Mb/2+1),Ob={draw:function(e,t){var n=Math.sqrt(t/Sb),r=n/2,o=n*Mb,i=r,a=n*Mb+n,c=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(c,s),e.lineTo(-.5*r-zb*o,zb*r+-.5*o),e.lineTo(-.5*i-zb*a,zb*i+-.5*a),e.lineTo(-.5*c-zb*s,zb*c+-.5*s),e.lineTo(-.5*r+zb*o,-.5*o-zb*r),e.lineTo(-.5*i+zb*a,-.5*a-zb*i),e.lineTo(-.5*c+zb*s,-.5*s-zb*c),e.closePath()}},kb=[hb,db,mb,_b,wb,Cb,Ob],Eb=function(){var e=wy(hb),t=wy(64),n=null;function r(){var r;if(n||(n=r=za()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"===typeof t?t:wy(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:wy(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},Ab=function(){};function Tb(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Lb(e){this._context=e}Lb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Tb(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Tb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Pb=function(e){return new Lb(e)};function Db(e){this._context=e}Db.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Tb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Hb=function(e){return new Db(e)};function Ib(e){this._context=e}Ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Tb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Vb=function(e){return new Ib(e)};function Nb(e,t){this._basis=new Lb(e),this._beta=t}Nb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,c=t[n]-i,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(o+r*a),this._beta*t[s]+(1-this._beta)*(i+r*c));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Rb=function e(t){function n(e){return 1===t?new Lb(e):new Nb(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function jb(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Fb(e,t){this._context=e,this._k=(1-t)/6}Fb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:jb(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:jb(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Bb=function e(t){function n(e){return new Fb(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Wb(e,t){this._context=e,this._k=(1-t)/6}Wb.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:jb(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ub=function e(t){function n(e){return new Wb(e,t)}return n.tension=function(t){return e(+t)},n}(0);function qb(e,t){this._context=e,this._k=(1-t)/6}qb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:jb(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Gb=function e(t){function n(e){return new qb(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Yb(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>ky){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,o=(o*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>ky){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*l+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function $b(e,t){this._context=e,this._alpha=t}$b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Yb(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Zb=function e(t){function n(e){return t?new $b(e,t):new Fb(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Kb(e,t){this._context=e,this._alpha=t}Kb.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Yb(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xb=function e(t){function n(e){return t?new Kb(e,t):new Wb(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Qb(e,t){this._context=e,this._alpha=t}Qb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yb(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Jb=function e(t){function n(e){return t?new Qb(e,t):new qb(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ew(e){this._context=e}ew.prototype={areaStart:Ab,areaEnd:Ab,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var tw=function(e){return new ew(e)};function nw(e){return e<0?-1:1}function rw(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),c=(i*o+a*r)/(r+o);return(nw(i)+nw(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function ow(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function iw(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,c=(i-r)/3;e._context.bezierCurveTo(r+c,o+c*t,i-c,a-c*n,i,a)}function aw(e){this._context=e}function cw(e){this._context=new sw(e)}function sw(e){this._context=e}function lw(e){return new aw(e)}function uw(e){return new cw(e)}function fw(e){this._context=e}function hw(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var vw=function(e){return new pw(e,.5)};function mw(e){return new pw(e,0)}function gw(e){return new pw(e,1)}var yw=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],c=a.length;i=0;)n[t]=t;return n};function ww(e,t){return e[t]}var _w=function(){var e=wy([]),t=bw,n=yw,r=ww;function o(o){var i,a,c=e.apply(this,arguments),s=o.length,l=c.length,u=new Array(l);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i1)for(var n,r,o,i,a,c,s=0,l=e[t[0]].length;s=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},zw=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a0)){if(i/=h,h<0){if(i0){if(i>f)return;i>u&&(u=i)}if(i=r-s,h||!(i<0)){if(i/=h,h<0){if(i>f)return;i>u&&(u=i)}else if(h>0){if(i0)){if(i/=d,d<0){if(i0){if(i>f)return;i>u&&(u=i)}if(i=o-l,d||!(i<0)){if(i/=d,d<0){if(i>f)return;i>u&&(u=i)}else if(d>0){if(i0||f<1)||(u>0&&(e[0]=[s+u*h,l+u*d]),f<1&&(e[1]=[s+f*h,l+f*d]),!0)}}}}}function Uw(e,t,n,r,o){var i=e[1];if(i)return!0;var a,c,s=e[0],l=e.left,u=e.right,f=l[0],h=l[1],d=u[0],p=u[1],v=(f+d)/2,m=(h+p)/2;if(p===h){if(v=r)return;if(f>d){if(s){if(s[1]>=o)return}else s=[v,n];i=[v,o]}else{if(s){if(s[1]1)if(f>d){if(s){if(s[1]>=o)return}else s=[(n-c)/a,n];i=[(o-c)/a,o]}else{if(s){if(s[1]=r)return}else s=[t,a*t+c];i=[r,a*r+c]}else{if(s){if(s[0]=-h_)){var d=s*s+l*l,p=u*u+f*f,v=(f*d-l*p)/h,m=(s*p-u*d)/h,g=Zw.pop()||new Kw;g.arc=e,g.site=o,g.x=v+a,g.y=(g.cy=m+c)+Math.sqrt(v*v+m*m),e.circle=g;for(var y=null,b=l_._;b;)if(g.yf_)c=c.L;else{if(!((o=i-a_(c,a))>f_)){r>-f_?(t=c.P,n=c):o>-f_?(t=c,n=c.N):t=n=c;break}if(!c.R){t=c;break}c=c.R}!function(e){s_[e.index]={site:e,halfedges:[]}}(e);var s=t_(e);if(c_.insert(t,s),t||n){if(t===n)return Qw(t),n=t_(t.site),c_.insert(s,n),s.edge=n.edge=jw(t.site,s.site),Xw(t),void Xw(n);if(n){Qw(t),Qw(n);var l=t.site,u=l[0],f=l[1],h=e[0]-u,d=e[1]-f,p=n.site,v=p[0]-u,m=p[1]-f,g=2*(h*m-d*v),y=h*h+d*d,b=v*v+m*m,w=[(m*y-d*b)/g+u,(h*b-v*y)/g+f];Bw(n.edge,l,p,w),s.edge=jw(l,e,null,w),n.edge=jw(e,p,null,w),Xw(t),Xw(n)}else s.edge=jw(t.site,s.site)}}function i_(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var c=(n=a.site)[0],s=n[1],l=s-t;if(!l)return c;var u=c-r,f=1/i-1/l,h=u/l;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*l)-s+l/2+o-i/2)))/f+r:(r+c)/2}function a_(e,t){var n=e.N;if(n)return i_(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var c_,s_,l_,u_,f_=1e-6,h_=1e-12;function d_(e,t){return t[1]-e[1]||t[0]-e[0]}function p_(e,t){var n,r,o,i=e.sort(d_).pop();for(u_=[],s_=new Array(e.length),c_=new Rw,l_=new Rw;;)if(o=$w,i&&(!o||i[1]f_||Math.abs(o[0][1]-o[1][1])>f_)||delete u_[i]}(a,c,s,l),function(e,t,n,r){var o,i,a,c,s,l,u,f,h,d,p,v,m=s_.length,g=!0;for(o=0;of_||Math.abs(v-h)>f_)&&(s.splice(c,0,u_.push(Fw(a,d,Math.abs(p-e)f_?[e,Math.abs(f-e)f_?[Math.abs(h-r)f_?[n,Math.abs(f-n)f_?[Math.abs(h-t)=c)return null;var s=e-o.site[0],l=t-o.site[1],u=s*s+l*l;do{o=i.cells[r=a],a=null,o.halfedges.forEach((function(n){var r=i.edges[n],c=r.left;if(c!==o.site&&c||(c=r.right)){var s=e-c[0],l=t-c[1],f=s*s+l*l;fr?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}var E_=function(){var e,t,n=C_,r=z_,o=k_,i=S_,a=O_,c=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=Or,f=[],h=ve("start","zoom","end"),d=500,p=150,v=0;function m(e){e.property("__zoom",M_).on("wheel.zoom",C).on("mousedown.zoom",z).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(c[0],Math.min(c[1],t)))===e.k?e:new y_(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new y_(e.k,r,o)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n){e.on("start.zoom",(function(){_(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).end()})).tween("zoom",(function(){var e=this,o=arguments,i=_(e,o),a=r.apply(e,o),c=n||b(a),s=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=e.__zoom,f="function"===typeof t?t.apply(e,o):t,h=u(l.invert(c).concat(s/l.k),f.invert(c).concat(s/f.k));return function(e){if(1===e)e=f;else{var t=h(e),n=s/t[2];e=new y_(n,c[0]-t[0]*n,c[1]-t[1]*n)}i.zoom(null,e)}}))}function _(e,t){for(var n,r=0,o=f.length;rv}e.zoom("mouse",o(y(e.that.__zoom,e.mouse[0]=Re(e.that),e.mouse[1]),e.extent,s))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Bt(Ae.view,e.moved),x_(),e.end()}),!0),i=Re(this),a=Ae.clientX,c=Ae.clientY;Ft(Ae.view),__(),e.mouse=[i,this.__zoom.invert(i)],wo(this),e.start()}}function M(){if(n.apply(this,arguments)){var e=this.__zoom,t=Re(this),i=e.invert(t),a=e.k*(Ae.shiftKey?.5:2),c=o(y(g(e,a),t,i),r.apply(this,arguments),s);x_(),l>0?Ht(this).transition().duration(l).call(w,c,t):Ht(this).call(m.transform,c)}}function S(){if(n.apply(this,arguments)){var t,r,o,i,a=_(this,arguments),c=Ae.changedTouches,s=c.length;for(__(),r=0;r=0}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(27);function o(e){return e}var i=Object(r.a)(o);t.a=i},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((r=n(231))&&r.__esModule?r:{default:r}).default)("Batch",(function(){for(var e=arguments.length,t=new Array(e),n=0;n=0&&n.splice(r,1),e.className=n.join(" ")}(e,t)},t.list=function(e){return e.classList?Array.prototype.slice.apply(e.classList):e.className.split(" ")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(201)),i=r(n(248)),a=function(){o.default.call(this)};(a.prototype=new o.default).extractSeries=function(e,t,n){},a.prototype.rollingAverage=function(e,t,n){},a.prototype.onPointsCreated_=function(e,t){for(var n=0;nr&&(s=r),li)&&(i=l),(null===o||s2?n-2:0),c=2;c0&&t-1 in e)}C.fn=C.prototype={jquery:"3.4.1",constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+V+")"+V+"*"),q=new RegExp(V+"|>"),G=new RegExp(j),Y=new RegExp("^"+N+"$"),$={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+V+"*(even|odd|(([+-]|)(\\d*)n|)"+V+"*(?:([+-]|)"+V+"*(\\d+)|))"+V+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+V+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+V+"*((?:-\\d)?\\d*)"+V+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+V+"?|("+V+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){h()},ae=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(A=D.call(_.childNodes),_.childNodes),A[_.childNodes.length].nodeType}catch(Me){P={apply:A.length?function(e,t){L.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ce(e,t,r,o){var i,c,l,u,f,p,g,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!o&&((t?t.ownerDocument||t:_)!==d&&h(t),t=t||d,v)){if(11!==x&&(f=J.exec(e)))if(i=f[1]){if(9===x){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(y&&(l=y.getElementById(i))&&b(t,l)&&l.id===i)return r.push(l),r}else{if(f[2])return P.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!O[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(g=e,y=t,1===x&&q.test(e)){for((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=w),c=(p=a(e)).length;c--;)p[c]="#"+u+" "+be(p[c]);g=p.join(","),y=ee.test(e)&&ge(t.parentNode)||t}try{return P.apply(r,y.querySelectorAll(g)),r}catch(C){O(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return s(e.replace(B,"$1"),t,r,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[w]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(Me){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return le((function(t){return t=+t,le((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ge(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=ce.support={},i=ce.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Z.test(t||n&&n.nodeName||"HTML")},h=ce.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:_;return a!==d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,v=!i(d),_!==d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=w,!d.getElementsByName||!d.getElementsByName(w).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],m=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue((function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+V+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+V+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")})),ue((function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+V+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Q.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),g.push("!=",j)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=Q.test(p.compareDocumentPosition),b=t||Q.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===_&&b(_,e)?-1:t===d||t.ownerDocument===_&&b(_,t)?1:u?H(u,e)-H(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],c=[t];if(!o||!i)return e===d?-1:t===d?1:o?-1:i?1:u?H(u,e)-H(u,t):0;if(o===i)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;a[r]===c[r];)r++;return r?he(a[r],c[r]):a[r]===_?-1:c[r]===_?1:0},d):d},ce.matches=function(e,t){return ce(e,null,null,t)},ce.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&h(e),n.matchesSelector&&v&&!O[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Me){O(t,!0)}return ce(t,d,null,[e]).length>0},ce.contains=function(e,t){return(e.ownerDocument||e)!==d&&h(e),b(e,t)},ce.attr=function(e,t){(e.ownerDocument||e)!==d&&h(e);var o=r.attrHandle[t.toLowerCase()],i=o&&E.call(r.attrHandle,t.toLowerCase())?o(e,t,!v):void 0;return void 0!==i?i:n.attributes||!v?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ce.escape=function(e){return(e+"").replace(re,oe)},ce.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(k),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return u=null,e},o=ce.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=ce.selectors={cacheLength:50,createPseudo:le,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ce.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ce.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+V+")"+e+"("+V+"|$)"))&&z(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=ce.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),c="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var l,u,f,h,d,p,v=i!==a?"nextSibling":"previousSibling",m=t.parentNode,g=c&&t.nodeName.toLowerCase(),y=!s&&!c,b=!1;if(m){if(i){for(;v;){for(h=t;h=h[v];)if(c?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;p=v="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(b=(d=(l=(u=(f=(h=m)[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===x&&l[1])&&l[2],h=d&&m.childNodes[d];h=++d&&h&&h[v]||(b=d=0)||p.pop();)if(1===h.nodeType&&++b&&h===t){u[e]=[x,d,b];break}}else if(y&&(b=d=(l=(u=(f=(h=t)[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===x&&l[1]),!1===b)for(;(h=++d&&h&&h[v]||(b=d=0)||p.pop())&&((c?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++b||(y&&((u=(f=h[w]||(h[w]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]=[x,b]),h!==t)););return(b-=o)===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ce.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=H(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:le((function(e){var t=[],n=[],r=c(e.replace(B,"$1"));return r[w]?le((function(e,t,n,o){for(var i,a=r(e,null,o,[]),c=e.length;c--;)(i=a[c])&&(e[c]=!(t[c]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return ce(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:le((function(e){return Y.test(e||"")||ce.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ve(!1),disabled:ve(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,o){for(var i,a=[],c=0,s=e.length,l=null!=t;c-1&&(i[l]=!(a[l]=f))}}else g=xe(g===a?g.splice(p,g.length):g),o?o(null,a,g,s):P.apply(a,g)}))}function ze(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],c=a||r.relative[" "],s=a?1:0,u=we((function(e){return e===t}),c,!0),f=we((function(e){return H(t,e)>-1}),c,!0),h=[function(e,n,r){var o=!a&&(r||n!==l)||((t=n).nodeType?u(e,n,r):f(e,n,r));return t=null,o}];s1&&_e(h),s>1&&be(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(B,"$1"),n,s0,o=e.length>0,i=function(i,a,c,s,u){var f,p,m,g=0,y="0",b=i&&[],w=[],_=l,C=i||o&&r.find.TAG("*",u),z=x+=null==_?1:Math.random()||.1,M=C.length;for(u&&(l=a===d||a||u);y!==M&&null!=(f=C[y]);y++){if(o&&f){for(p=0,a||f.ownerDocument===d||(h(f),c=!v);m=e[p++];)if(m(f,a||d,c)){s.push(f);break}u&&(x=z)}n&&((f=!m&&f)&&g--,i&&b.push(f))}if(g+=y,n&&y!==g){for(p=0;m=t[p++];)m(b,w,a,c);if(i){if(g>0)for(;y--;)b[y]||w[y]||(w[y]=T.call(s));w=xe(w)}P.apply(s,w),u&&!i&&w.length>0&&g+t.length>1&&ce.uniqueSort(s)}return u&&(x=z,l=_),b};return n?le(i):i}(i,o))).selector=e}return c},s=ce.select=function(e,t,n,o){var i,s,l,u,f,h="function"===typeof e&&e,d=!o&&a(e=h.selector||e);if(n=n||[],1===d.length){if((s=d[0]=d[0].slice(0)).length>2&&"ID"===(l=s[0]).type&&9===t.nodeType&&v&&r.relative[s[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(i=$.needsContext.test(e)?0:s.length;i--&&(l=s[i],!r.relative[u=l.type]);)if((f=r.find[u])&&(o=f(l.matches[0].replace(te,ne),ee.test(s[0].type)&&ge(t.parentNode)||t))){if(s.splice(i,1),!(e=o.length&&be(s)))return P.apply(n,o),n;break}}return(h||c(e,d))(o,t,!v,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!f,h(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ue((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||fe(I,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ce}(n);C.find=S,C.expr=S.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=S.uniqueSort,C.text=S.getText,C.isXMLDoc=S.isXML,C.contains=S.contains,C.escapeSelector=S.escape;var O=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&C(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=C.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return y(t)?C.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?C.grep(e,(function(e){return f.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!==typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"===typeof e&&E.test(e)?C(e):e||[],!1).length}});var P,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||P,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),T.test(r[1])&&C.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=a.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,P=C(a);var H=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&C.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?C.uniqueSort(i):i)},index:function(e){return e?"string"===typeof e?f.call(C(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return O(e,"parentNode")},parentsUntil:function(e,t,n){return O(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,t,n){return O(e,"nextSibling",n)},prevUntil:function(e,t,n){return O(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return"undefined"!==typeof e.contentDocument?e.contentDocument:(A(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,r){var o=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(o=C.filter(r,o)),this.length>1&&(I[e]||C.uniqueSort(o),H.test(e)&&o.reverse()),this.pushStack(o)}}));var N=/[^\x20\t\r\n\f]+/g;function R(e){return e}function j(e){throw e}function F(e,t,n,r){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return C.each(e.match(N)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,r,o,i=[],a=[],c=-1,s=function(){for(o=o||e.once,r=t=!0;a.length;c=-1)for(n=a.shift();++c-1;)i.splice(n,1),n<=c&&c--})),this},has:function(e){return e?C.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||s()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,r){var o=y(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var i=0;function a(e,t,r,o){return function(){var c=this,s=arguments,l=function(){var n,l;if(!(e=i&&(r!==j&&(c=void 0,s=[n]),t.rejectWith(c,s))}};e?u():(C.Deferred.getStackHook&&(u.stackTrace=C.Deferred.getStackHook()),n.setTimeout(u))}}return C.Deferred((function(n){t[0][3].add(a(0,n,y(o)?o:R,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:R)),t[2][3].add(a(0,n,y(r)?r:j))})).promise()},promise:function(e){return null!=e?C.extend(e,o):o}},i={};return C.each(t,(function(e,n){var a=n[2],c=n[5];o[n[1]]=a.add,c&&a.add((function(){r=c}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=s.call(arguments),i=C.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(F(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||y(o[n]&&o[n].then)))return i.then();for(;n--;)F(o[n],a(n),i.reject);return i.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&B.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout((function(){throw e}))};var W=C.Deferred();function U(){a.removeEventListener("DOMContentLoaded",U),n.removeEventListener("load",U),C.ready()}C.fn.ready=function(e){return W.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||W.resolveWith(a,[C]))}}),C.ready.then=W.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(C.ready):(a.addEventListener("DOMContentLoaded",U),n.addEventListener("load",U));var q=function e(t,n,r,o,i,a,c){var s=0,l=t.length,u=null==r;if("object"===x(r))for(s in i=!0,r)e(t,n,s,r[s],!0,a,c);else if(void 0!==o&&(i=!0,y(o)||(c=!0),u&&(c?(n.call(t,o),n=null):(u=n,n=function(e,t,n){return u.call(C(e),n)})),n))for(;s1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,o=n.shift(),i=C._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){C.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:C.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function be(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?C.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n-1)o&&o.push(i);else if(l=ce(i),a=be(f.appendChild(i),"script"),l&&we(a),n)for(u=0;i=a[u++];)ge.test(i.type||"")&&n.push(i);return f}!function(){var e=a.createDocumentFragment().appendChild(a.createElement("div")),t=a.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ce=/^key/,ze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function Oe(){return!1}function ke(e,t){return e===function(){try{return a.activeElement}catch(e){}}()===("focus"===t)}function Ee(e,t,n,r,o,i){var a,c;if("object"===typeof t){for(c in"string"!==typeof n&&(r=r||n,n=void 0),t)Ee(e,c,n,r,t[c],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"===typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Oe;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return C().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),e.each((function(){C.event.add(this,t,o,r,n)}))}function Ae(e,t,n){n?(Q.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),Q.set(this,t,i),r=n(this,t),this[t](),i!==(o=Q.get(this,t))||r?Q.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else i.length&&(Q.set(this,t,{value:C.event.trigger(C.extend(i[0],C.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&C.event.add(e,t,Se)}C.event={global:{},add:function(e,t,n,r,o){var i,a,c,s,l,u,f,h,d,p,v,m=Q.get(e);if(m)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&C.find.matchesSelector(ae,o),n.guid||(n.guid=C.guid++),(s=m.events)||(s=m.events={}),(a=m.handle)||(a=m.handle=function(t){return"undefined"!==typeof C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(N)||[""]).length;l--;)d=v=(c=Me.exec(t[l])||[])[1],p=(c[2]||"").split(".").sort(),d&&(f=C.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=C.event.special[d]||{},u=C.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:p.join(".")},i),(h=s[d])||((h=s[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),C.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,a,c,s,l,u,f,h,d,p,v,m=Q.hasData(e)&&Q.get(e);if(m&&(s=m.events)){for(l=(t=(t||"").match(N)||[""]).length;l--;)if(d=v=(c=Me.exec(t[l])||[])[1],p=(c[2]||"").split(".").sort(),d){for(f=C.event.special[d]||{},h=s[d=(r?f.delegateType:f.bindType)||d]||[],c=c[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=h.length;i--;)u=h[i],!o&&v!==u.origType||n&&n.guid!==u.guid||c&&!c.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(i,1),u.selector&&h.delegateCount--,f.remove&&f.remove.call(e,u));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,m.handle)||C.removeEvent(e,d,m.handle),delete s[d])}else for(d in s)C.event.remove(e,d+t[l],n,r,!0);C.isEmptyObject(s)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,c=C.event.fix(e),s=new Array(arguments.length),l=(Q.get(this,"events")||{})[c.type]||[],u=C.event.special[c.type]||{};for(s[0]=c,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],a={},n=0;n-1:C.find(o,this,null,[l]).length),a[o]&&i.push(r);i.length&&c.push({elem:l,handlers:i})}return l=this,s\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/\s*$/g;function He(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ve(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,r,o,i,a,c,s,l;if(1===t.nodeType){if(Q.hasData(e)&&(i=Q.access(e),a=Q.set(t,i),l=i.events))for(o in delete a.handle,a.events={},l)for(n=0,r=l[o].length;n1&&"string"===typeof p&&!g.checkClone&&Pe.test(p))return e.each((function(o){var i=e.eq(o);v&&(t[0]=p.call(this,o,i.html())),je(i,t,n,r)}));if(h&&(i=(o=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(c=(a=C.map(be(o,"script"),Ie)).length;f")},clone:function(e,t,n){var r,o,i,a,c=e.cloneNode(!0),s=ce(e);if(!g.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!C.isXMLDoc(e))for(a=be(c),r=0,o=(i=be(e)).length;r0&&we(a,!s&&be(e,"script")),c},cleanData:function(e){for(var t,n,r,o=C.event.special,i=0;void 0!==(n=e[i]);i++)if(K(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)o[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return q(this,(function(e){return void 0===e?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return je(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||He(this,e).appendChild(e)}))},prepend:function(){return je(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=He(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return je(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return je(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Le.test(e)&&!ye[(me.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n=0&&(s+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-s-c-.5))||0),s}function rt(e,t,n){var r=We(e),o=(!g.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,r),i=o,a=qe(e,t,r),c="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&o||"auto"===a||!parseFloat(a)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===C.css(e,"boxSizing",!1,r),(i=c in e)&&(a=e[c])),(a=parseFloat(a)||0)+nt(e,t,n||(o?"border":"content"),i,r,a)+"px"}function ot(e,t,n,r,o){return new ot.prototype.init(e,t,n,r,o)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,c=Z(t),s=Qe.test(t),l=e.style;if(s||(t=Ke(c)),a=C.cssHooks[t]||C.cssHooks[c],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:l[t];"string"===(i=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=fe(e,t,o),i="number"),null!=n&&n===n&&("number"!==i||s||(n+=o&&o[3]||(C.cssNumber[c]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(s?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var o,i,a,c=Z(t);return Qe.test(t)||(t=Ke(c)),(a=C.cssHooks[t]||C.cssHooks[c])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=qe(e,t,r)),"normal"===o&&t in et&&(o=et[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):ue(e,Je,(function(){return rt(e,t,r)}))},set:function(e,n,r){var o,i=We(e),a=!g.scrollboxSize()&&"absolute"===i.position,c=(a||r)&&"border-box"===C.css(e,"boxSizing",!1,i),s=r?nt(e,t,r,c,i):0;return c&&a&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-nt(e,t,"border",!1,i)-.5)),s&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),tt(0,n,s)}}})),C.cssHooks.marginLeft=Ge(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-ue(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"===typeof n?n.split(" "):[n];r<4;r++)o[e+ie[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(C.cssHooks[e+t].set=tt)})),C.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=We(e),o=t.length;a1)}}),C.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(C.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=ot.prototype.init,C.fx.step={};var it,at,ct=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function lt(){at&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,C.fx.interval),C.fx.tick())}function ut(){return n.setTimeout((function(){it=void 0})),it=Date.now()}function ft(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ie[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ht(e,t,n){for(var r,o=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),i=0,a=o.length;i1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"===typeof e.getAttribute?C.prop(e,t,n):(1===i&&C.isXMLDoc(e)||(o=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(N);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=vt[t]||C.find.attr;vt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=vt[a],vt[a]=o,o=null!=n(e,t,r)?a:null,vt[a]=i),o}}));var mt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function yt(e){return(e.match(N)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(N)||[]}C.fn.extend({prop:function(e,t){return q(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&C.isXMLDoc(e)||(t=C.propFix[t]||t,o=C.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,r,o,i,a,c,s=0;if(y(e))return this.each((function(t){C(this).addClass(e.call(this,t,bt(this)))}));if((t=wt(e)).length)for(;n=this[s++];)if(o=bt(n),r=1===n.nodeType&&" "+yt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(c=yt(r))&&n.setAttribute("class",c)}return this},removeClass:function(e){var t,n,r,o,i,a,c,s=0;if(y(e))return this.each((function(t){C(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[s++];)if(o=bt(n),r=1===n.nodeType&&" "+yt(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(c=yt(r))&&n.setAttribute("class",c)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"===typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,o,i,a;if(r)for(o=0,i=C(this),a=wt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var _t=/\r/g;C.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=y(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,C(this).val()):e)?o="":"number"===typeof o?o+="":Array.isArray(o)&&(o=C.map(o,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=C.valHooks[o.type]||C.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"===typeof(n=o.value)?n.replace(_t,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:yt(C.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,c=a?null:[],s=a?i+1:o.length;for(r=i<0?s:a?i:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},g.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var xt=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,r,o){var i,c,s,l,u,f,h,d,v=[r||a],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(c=d=s=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!xt.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[C.expando]?e:new C.Event(m,"object"===typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:C.makeArray(t,[e]),h=C.event.special[m]||{},o||!h.trigger||!1!==h.trigger.apply(r,t))){if(!o&&!h.noBubble&&!b(r)){for(l=h.delegateType||m,xt.test(l+m)||(c=c.parentNode);c;c=c.parentNode)v.push(c),s=c;s===(r.ownerDocument||a)&&v.push(s.defaultView||s.parentWindow||n)}for(i=0;(c=v[i++])&&!e.isPropagationStopped();)d=c,e.type=i>1?l:h.bindType||m,(f=(Q.get(c,"events")||{})[e.type]&&Q.get(c,"handle"))&&f.apply(c,t),(f=u&&c[u])&&f.apply&&K(c)&&(e.result=f.apply(c,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),t)||!K(r)||u&&y(r[m])&&!b(r)&&((s=r[u])&&(r[u]=null),C.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,Ct),r[m](),e.isPropagationStopped()&&d.removeEventListener(m,Ct),C.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),g.focusin||C.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=Q.access(r,t);o||r.addEventListener(e,n,!0),Q.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=Q.access(r,t)-1;o?Q.access(r,t,o):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}}));var zt=n.location,Mt=Date.now(),St=/\?/;C.parseXML=function(e){var t;if(!e||"string"!==typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var Ot=/\[\]$/,kt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function Tt(e,t,n,r){var o;if(Array.isArray(t))C.each(t,(function(t,o){n||Ot.test(e)?r(e,o):Tt(e+"["+("object"===typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(o in t)Tt(e+"["+o+"]",t[o],n,r)}C.param=function(e,t){var n,r=[],o=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){o(this.name,this.value)}));else for(n in e)Tt(n,e[n],t,o);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&At.test(this.nodeName)&&!Et.test(e)&&(this.checked||!ve.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:n.replace(kt,"\r\n")}})).get()}});var Lt=/%20/g,Pt=/#.*$/,Dt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,Vt=/^\/\//,Nt={},Rt={},jt="*/".concat("*"),Ft=a.createElement("a");function Bt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(N)||[];if(y(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Wt(e,t,n,r){var o={},i=e===Rt;function a(c){var s;return o[c]=!0,C.each(e[c]||[],(function(e,c){var l=c(t,n,r);return"string"!==typeof l||i||o[l]?i?!(s=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),s}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ut(e,t){var n,r,o=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}Ft.href=zt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(zt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,C.ajaxSettings),t):Ut(C.ajaxSettings,e)},ajaxPrefilter:Bt(Nt),ajaxTransport:Bt(Rt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,c,s,l,u,f,h,d,p=C.ajaxSetup({},t),v=p.context||p,m=p.context&&(v.nodeType||v.jquery)?C(v):C.event,g=C.Deferred(),y=C.Callbacks("once memory"),b=p.statusCode||{},w={},_={},x="canceled",z={readyState:0,getResponseHeader:function(e){var t;if(u){if(!c)for(c={};t=Ht.exec(i);)c[t[1].toLowerCase()+" "]=(c[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=c[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)z.always(e[z.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),M(0,t),this}};if(g.promise(z),p.url=((e||p.url||zt.href)+"").replace(Vt,zt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(N)||[""],null==p.crossDomain){l=a.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ft.protocol+"//"+Ft.host!==l.protocol+"//"+l.host}catch(S){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!==typeof p.data&&(p.data=C.param(p.data,p.traditional)),Wt(Nt,p,t,z),u)return z;for(h in(f=C.event&&p.global)&&0===C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!It.test(p.type),o=p.url.replace(Pt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Lt,"+")):(d=p.url.slice(o.length),p.data&&(p.processData||"string"===typeof p.data)&&(o+=(St.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Dt,"$1"),d=(St.test(o)?"&":"?")+"_="+Mt+++d),p.url=o+d),p.ifModified&&(C.lastModified[o]&&z.setRequestHeader("If-Modified-Since",C.lastModified[o]),C.etag[o]&&z.setRequestHeader("If-None-Match",C.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&z.setRequestHeader("Content-Type",p.contentType),z.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+jt+"; q=0.01":""):p.accepts["*"]),p.headers)z.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(v,z,p)||u))return z.abort();if(x="abort",y.add(p.complete),z.done(p.success),z.fail(p.error),r=Wt(Rt,p,t,z)){if(z.readyState=1,f&&m.trigger("ajaxSend",[z,p]),u)return z;p.async&&p.timeout>0&&(s=n.setTimeout((function(){z.abort("timeout")}),p.timeout));try{u=!1,r.send(w,M)}catch(S){if(u)throw S;M(-1,S)}}else M(-1,"No Transport");function M(e,t,a,c){var l,h,d,w,_,x=t;u||(u=!0,s&&n.clearTimeout(s),r=void 0,i=c||"",z.readyState=e>0?4:0,l=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var r,o,i,a,c=e.contents,s=e.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in c)if(c[o]&&c[o].test(r)){s.unshift(o);break}if(s[0]in n)i=s[0];else{for(o in n){if(!s[0]||e.converters[o+" "+s[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==s[0]&&s.unshift(i),n[i]}(p,z,a)),w=function(e,t,n,r){var o,i,a,c,s,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=i,i=u.shift())if("*"===i)i=s;else if("*"!==s&&s!==i){if(!(a=l[s+" "+i]||l["* "+i]))for(o in l)if((c=o.split(" "))[1]===i&&(a=l[s+" "+c[0]]||l["* "+c[0]])){!0===a?a=l[o]:!0!==l[o]&&(i=c[0],u.unshift(c[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(S){return{state:"parsererror",error:a?S:"No conversion from "+s+" to "+i}}}return{state:"success",data:t}}(p,w,z,l),l?(p.ifModified&&((_=z.getResponseHeader("Last-Modified"))&&(C.lastModified[o]=_),(_=z.getResponseHeader("etag"))&&(C.etag[o]=_)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=w.state,h=w.data,l=!(d=w.error))):(d=x,!e&&x||(x="error",e<0&&(e=0))),z.status=e,z.statusText=(t||x)+"",l?g.resolveWith(v,[h,x,z]):g.rejectWith(v,[z,x,d]),z.statusCode(b),b=void 0,f&&m.trigger(l?"ajaxSuccess":"ajaxError",[z,p,l?h:d]),y.fireWith(v,[z,x]),f&&(m.trigger("ajaxComplete",[z,p]),--C.active||C.event.trigger("ajaxStop")))}return z},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,r,o){return y(n)&&(o=o||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:o,data:n,success:r},C.isPlainObject(e)&&e))}})),C._evalUrl=function(e,t){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},Gt=C.ajaxSettings.xhr();g.cors=!!Gt&&"withCredentials"in Gt,g.ajax=Gt=!!Gt,C.ajaxTransport((function(e){var t,r;if(g.cors||Gt&&!e.crossDomain)return{send:function(o,i){var a,c=e.xhr();if(c.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)c[a]=e.xhrFields[a];for(a in e.mimeType&&c.overrideMimeType&&c.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)c.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=c.onload=c.onerror=c.onabort=c.ontimeout=c.onreadystatechange=null,"abort"===e?c.abort():"error"===e?"number"!==typeof c.status?i(0,"error"):i(c.status,c.statusText):i(qt[c.status]||c.status,c.statusText,"text"!==(c.responseType||"text")||"string"!==typeof c.responseText?{binary:c.response}:{text:c.responseText},c.getAllResponseHeaders()))}},c.onload=t(),r=c.onerror=c.ontimeout=t("error"),void 0!==c.onabort?c.onabort=r:c.onreadystatechange=function(){4===c.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{c.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=C("