PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/mytube.pm/wp-content/plugins/jetpack/_inc/build/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/mytube.pm/wp-content/plugins/jetpack/_inc/build/admin.js

!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=486)}([function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.i18n},function(e,t,n){e.exports=n(231)()},function(e,t){e.exports=window.lodash},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.r(t),n.d(t,"JETPACK_SET_INITIAL_STATE",(function(){return r})),n.d(t,"CONNECT_URL_FETCH",(function(){return i})),n.d(t,"CONNECT_URL_FETCH_FAIL",(function(){return a})),n.d(t,"CONNECT_URL_FETCH_SUCCESS",(function(){return o})),n.d(t,"DISCONNECT_SITE",(function(){return s})),n.d(t,"DISCONNECT_SITE_FAIL",(function(){return c})),n.d(t,"DISCONNECT_SITE_SUCCESS",(function(){return l})),n.d(t,"AUTH_USER_IN_PLACE",(function(){return u})),n.d(t,"AUTH_USER_IN_PLACE_SUCCESS",(function(){return p})),n.d(t,"UNLINK_USER",(function(){return d})),n.d(t,"UNLINK_USER_FAIL",(function(){return h})),n.d(t,"UNLINK_USER_SUCCESS",(function(){return f})),n.d(t,"USER_CONNECTION_DATA_FETCH",(function(){return m})),n.d(t,"USER_CONNECTION_DATA_FETCH_FAIL",(function(){return g})),n.d(t,"USER_CONNECTION_DATA_FETCH_SUCCESS",(function(){return b})),n.d(t,"SITE_RECONNECT",(function(){return v})),n.d(t,"SITE_RECONNECT_SUCCESS",(function(){return _})),n.d(t,"SITE_RECONNECT_FAIL",(function(){return y})),n.d(t,"USER_TRACKING_SETTINGS_FETCH",(function(){return E})),n.d(t,"USER_TRACKING_SETTINGS_FETCH_FAIL",(function(){return w})),n.d(t,"USER_TRACKING_SETTINGS_FETCH_SUCCESS",(function(){return k})),n.d(t,"USER_TRACKING_SETTINGS_UPDATE",(function(){return j})),n.d(t,"USER_TRACKING_SETTINGS_UPDATE_FAIL",(function(){return O})),n.d(t,"USER_TRACKING_SETTINGS_UPDATE_SUCCESS",(function(){return C})),n.d(t,"JETPACK_MODULES_LIST_FETCH",(function(){return S})),n.d(t,"JETPACK_MODULES_LIST_FETCH_FAIL",(function(){return T})),n.d(t,"JETPACK_MODULES_LIST_RECEIVE",(function(){return A})),n.d(t,"JETPACK_MODULE_FETCH",(function(){return M})),n.d(t,"JETPACK_MODULE_FETCH_FAIL",(function(){return N})),n.d(t,"JETPACK_MODULE_RECEIVE",(function(){return x})),n.d(t,"JETPACK_MODULE_ACTIVATE",(function(){return P})),n.d(t,"JETPACK_MODULE_ACTIVATE_SUCCESS",(function(){return I})),n.d(t,"JETPACK_MODULE_ACTIVATE_FAIL",(function(){return R})),n.d(t,"JETPACK_MODULE_DEACTIVATE",(function(){return D})),n.d(t,"JETPACK_MODULE_DEACTIVATE_FAIL",(function(){return U})),n.d(t,"JETPACK_MODULE_DEACTIVATE_SUCCESS",(function(){return L})),n.d(t,"JETPACK_MODULE_UPDATE_OPTIONS",(function(){return F})),n.d(t,"JETPACK_MODULE_UPDATE_OPTIONS_FAIL",(function(){return z})),n.d(t,"JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",(function(){return B})),n.d(t,"JETPACK_CONNECTION_STATUS_FETCH",(function(){return V})),n.d(t,"JETPACK_CONNECTION_TEST_FETCH",(function(){return H})),n.d(t,"JETPACK_SITE_CONNECTED_PLUGINS_FETCH",(function(){return K})),n.d(t,"JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",(function(){return J})),n.d(t,"JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",(function(){return q})),n.d(t,"DASHBOARD_PROTECT_COUNT_FETCH",(function(){return W})),n.d(t,"DASHBOARD_PROTECT_COUNT_FETCH_FAIL",(function(){return G})),n.d(t,"DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",(function(){return Y})),n.d(t,"RESET_OPTIONS",(function(){return $})),n.d(t,"RESET_OPTIONS_FAIL",(function(){return Z})),n.d(t,"RESET_OPTIONS_SUCCESS",(function(){return X})),n.d(t,"VAULTPRESS_SITE_DATA_FETCH",(function(){return Q})),n.d(t,"VAULTPRESS_SITE_DATA_FETCH_FAIL",(function(){return ee})),n.d(t,"VAULTPRESS_SITE_DATA_FETCH_SUCCESS",(function(){return te})),n.d(t,"AKISMET_DATA_FETCH",(function(){return ne})),n.d(t,"AKISMET_DATA_FETCH_FAIL",(function(){return re})),n.d(t,"AKISMET_DATA_FETCH_SUCCESS",(function(){return ie})),n.d(t,"AKISMET_KEY_CHECK_FETCH",(function(){return ae})),n.d(t,"AKISMET_KEY_CHECK_FETCH_FAIL",(function(){return oe})),n.d(t,"AKISMET_KEY_CHECK_FETCH_SUCCESS",(function(){return se})),n.d(t,"PLUGIN_UPDATES_FETCH",(function(){return ce})),n.d(t,"PLUGIN_UPDATES_FETCH_FAIL",(function(){return le})),n.d(t,"PLUGIN_UPDATES_FETCH_SUCCESS",(function(){return ue})),n.d(t,"STATS_SWITCH_TAB",(function(){return pe})),n.d(t,"STATS_DATA_FETCH",(function(){return de})),n.d(t,"STATS_DATA_FETCH_FAIL",(function(){return he})),n.d(t,"STATS_DATA_FETCH_SUCCESS",(function(){return fe})),n.d(t,"JETPACK_PRODUCTS_FETCH",(function(){return me})),n.d(t,"JETPACK_PRODUCTS_FETCH_RECEIVE",(function(){return ge})),n.d(t,"JETPACK_PRODUCTS_FETCH_FAIL",(function(){return be})),n.d(t,"JETPACK_SITE_PRODUCTS_FETCH",(function(){return ve})),n.d(t,"JETPACK_SITE_PRODUCTS_FETCH_FAIL",(function(){return _e})),n.d(t,"JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",(function(){return ye})),n.d(t,"JETPACK_SETTINGS_FETCH",(function(){return Ee})),n.d(t,"JETPACK_SETTINGS_FETCH_RECEIVE",(function(){return we})),n.d(t,"JETPACK_SETTINGS_FETCH_FAIL",(function(){return ke})),n.d(t,"JETPACK_SETTING_UPDATE",(function(){return je})),n.d(t,"JETPACK_SETTING_UPDATE_SUCCESS",(function(){return Oe})),n.d(t,"JETPACK_SETTING_UPDATE_FAIL",(function(){return Ce})),n.d(t,"JETPACK_SETTINGS_UPDATE",(function(){return Se})),n.d(t,"JETPACK_SETTINGS_UPDATE_FAIL",(function(){return Te})),n.d(t,"JETPACK_SETTINGS_UPDATE_SUCCESS",(function(){return Ae})),n.d(t,"JETPACK_SETTINGS_SET_UNSAVED_FLAG",(function(){return Me})),n.d(t,"JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",(function(){return Ne})),n.d(t,"JETPACK_SITE_DATA_FETCH",(function(){return xe})),n.d(t,"JETPACK_SITE_DATA_FETCH_RECEIVE",(function(){return Pe})),n.d(t,"JETPACK_SITE_DATA_FETCH_FAIL",(function(){return Ie})),n.d(t,"JETPACK_SITE_BENEFITS_FETCH",(function(){return Re})),n.d(t,"JETPACK_SITE_BENEFITS_FETCH_RECEIVE",(function(){return De})),n.d(t,"JETPACK_SITE_BENEFITS_FETCH_FAIL",(function(){return Ue})),n.d(t,"JETPACK_SITE_FEATURES_FETCH",(function(){return Le})),n.d(t,"JETPACK_SITE_FEATURES_FETCH_RECEIVE",(function(){return Fe})),n.d(t,"JETPACK_SITE_FEATURES_FETCH_FAIL",(function(){return ze})),n.d(t,"JETPACK_SITE_PLANS_FETCH",(function(){return Be})),n.d(t,"JETPACK_SITE_PLANS_FETCH_RECEIVE",(function(){return Ve})),n.d(t,"JETPACK_SITE_PLANS_FETCH_FAIL",(function(){return He})),n.d(t,"JETPACK_SITE_PURCHASES_FETCH",(function(){return Ke})),n.d(t,"JETPACK_SITE_PURCHASES_FETCH_RECEIVE",(function(){return Je})),n.d(t,"JETPACK_SITE_PURCHASES_FETCH_FAIL",(function(){return qe})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_ADD_SELECTED_RECOMMENDATION",(function(){return We})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_ADD_SKIPPED_RECOMMENDATION",(function(){return Ge})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_FETCH",(function(){return Ye})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE",(function(){return $e})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_FETCH_FAIL",(function(){return Ze})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_UPDATE",(function(){return Xe})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_SAVE",(function(){return Qe})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_SAVE_SUCCESS",(function(){return et})),n.d(t,"JETPACK_RECOMMENDATIONS_DATA_SAVE_FAIL",(function(){return tt})),n.d(t,"JETPACK_RECOMMENDATIONS_STEP_UPDATE",(function(){return nt})),n.d(t,"JETPACK_RECOMMENDATIONS_STEP_UPDATE_SUCCESS",(function(){return rt})),n.d(t,"JETPACK_RECOMMENDATIONS_STEP_UPDATE_FAIL",(function(){return it})),n.d(t,"JETPACK_RECOMMENDATIONS_UPSELL_FETCH",(function(){return at})),n.d(t,"JETPACK_RECOMMENDATIONS_UPSELL_FETCH_RECEIVE",(function(){return ot})),n.d(t,"JETPACK_RECOMMENDATIONS_UPSELL_FETCH_FAIL",(function(){return st})),n.d(t,"JETPACK_ACTION_NOTICES_DISMISS",(function(){return ct})),n.d(t,"JETPACK_NOTICES_DISPATCH_TYPE",(function(){return lt})),n.d(t,"JETPACK_NOTICES_DISMISS",(function(){return ut})),n.d(t,"JETPACK_NOTICES_DISMISS_FAIL",(function(){return pt})),n.d(t,"JETPACK_NOTICES_DISMISS_SUCCESS",(function(){return dt})),n.d(t,"JETPACK_PLUGINS_DATA_FETCH",(function(){return ht})),n.d(t,"JETPACK_PLUGINS_DATA_FETCH_RECEIVE",(function(){return ft})),n.d(t,"JETPACK_PLUGINS_DATA_FETCH_FAIL",(function(){return mt})),n.d(t,"JETPACK_SEARCH_TERM",(function(){return gt})),n.d(t,"JETPACK_SEARCH_FOCUS",(function(){return bt})),n.d(t,"JETPACK_SEARCH_BLUR",(function(){return vt})),n.d(t,"SET_PLAN_DURATION",(function(){return _t})),n.d(t,"JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY",(function(){return yt})),n.d(t,"JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS",(function(){return Et})),n.d(t,"JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL",(function(){return wt})),n.d(t,"DEV_CARD_DISPLAY",(function(){return kt})),n.d(t,"DEV_CARD_HIDE",(function(){return jt})),n.d(t,"MOCK_SWITCH_USER_PERMISSIONS",(function(){return Ot})),n.d(t,"MOCK_SWITCH_THREATS",(function(){return Ct})),n.d(t,"REWIND_STATUS_FETCH",(function(){return St})),n.d(t,"REWIND_STATUS_FETCH_RECEIVE",(function(){return Tt})),n.d(t,"REWIND_STATUS_FETCH_FAIL",(function(){return At})),n.d(t,"MOCK_SWITCH_REWIND_STATE",(function(){return Mt})),n.d(t,"SCAN_STATUS_FETCH",(function(){return Nt})),n.d(t,"SCAN_STATUS_FETCH_RECEIVE",(function(){return xt})),n.d(t,"SCAN_STATUS_FETCH_FAIL",(function(){return Pt})),n.d(t,"MOCK_SWITCH_SCAN_STATE",(function(){return It})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",(function(){return Rt})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",(function(){return Dt})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",(function(){return Ut})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH",(function(){return Lt})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH_FAIL",(function(){return Ft})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH_SUCCESS",(function(){return zt})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_REQUEST",(function(){return Bt})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",(function(){return Vt})),n.d(t,"JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",(function(){return Ht})),n.d(t,"JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL",(function(){return Kt})),n.d(t,"JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_SUCCESS",(function(){return Jt})),n.d(t,"JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_FAIL",(function(){return qt})),n.d(t,"JETPACK_LICENSING_ERROR_UPDATE",(function(){return Wt}));var r="JETPACK_SET_INITIAL_STATE",i="CONNECT_URL_FETCH",a="CONNECT_URL_FETCH_FAIL",o="CONNECT_URL_FETCH_SUCCESS",s="DISCONNECT_SITE",c="DISCONNECT_SITE_FAIL",l="DISCONNECT_SITE_SUCCESS",u="AUTH_USER_IN_PLACE",p="AUTH_USER_IN_PLACE_SUCCESS",d="UNLINK_USER",h="UNLINK_USER_FAIL",f="UNLINK_USER_SUCCESS",m="USER_CONNECTION_DATA_FETCH",g="USER_CONNECTION_DATA_FETCH_FAIL",b="USER_CONNECTION_DATA_FETCH_SUCCESS",v="SITE_RECONNECT",_="SITE_RECONNECT_SUCCESS",y="SITE_RECONNECT_FAIL",E="USER_TRACKING_SETTINGS_FETCH",w="USER_TRACKING_SETTINGS_FETCH_FAIL",k="USER_TRACKING_SETTINGS_FETCH_SUCCESS",j="USER_TRACKING_SETTINGS_UPDATE",O="USER_TRACKING_SETTINGS_UPDATE_FAIL",C="USER_TRACKING_SETTINGS_UPDATE_SUCCESS",S="JETPACK_MODULES_LIST_FETCH",T="JETPACK_MODULES_LIST_FETCH_FAIL",A="JETPACK_MODULES_LIST_RECEIVE",M="JETPACK_MODULE_FETCH",N="JETPACK_MODULE_FETCH_FAIL",x="JETPACK_MODULE_RECEIVE",P="JETPACK_MODULE_ACTIVATE",I="JETPACK_MODULE_ACTIVATE_SUCCESS",R="JETPACK_MODULE_ACTIVATE_FAIL",D="JETPACK_MODULE_DEACTIVATE",U="JETPACK_MODULE_DEACTIVATE_FAIL",L="JETPACK_MODULE_DEACTIVATE_SUCCESS",F="JETPACK_MODULE_UPDATE_OPTIONS",z="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",B="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",V="JETPACK_CONNECTION_STATUS_FETCH",H="JETPACK_CONNECTION_TEST_FETCH",K="JETPACK_SITE_CONNECTED_PLUGINS_FETCH",J="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",q="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",W="DASHBOARD_PROTECT_COUNT_FETCH",G="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",Y="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",$="RESET_OPTIONS",Z="RESET_OPTIONS_FAIL",X="RESET_OPTIONS_SUCCESS",Q="VAULTPRESS_SITE_DATA_FETCH",ee="VAULTPRESS_SITE_DATA_FETCH_FAIL",te="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",ne="AKISMET_DATA_FETCH",re="AKISMET_DATA_FETCH_FAIL",ie="AKISMET_DATA_FETCH_SUCCESS",ae="AKISMET_KEY_CHECK_FETCH",oe="AKISMET_KEY_CHECK_FETCH_FAIL",se="AKISMET_KEY_CHECK_FETCH_SUCCESS",ce="PLUGIN_UPDATES_FETCH",le="PLUGIN_UPDATES_FETCH_FAIL",ue="PLUGIN_UPDATES_FETCH_SUCCESS",pe="STATS_SWITCH_TAB",de="STATS_DATA_FETCH",he="STATS_DATA_FETCH_FAIL",fe="STATS_DATA_FETCH_SUCCESS",me="JETPACK_PRODUCTS_FETCH",ge="JETPACK_PRODUCTS_FETCH_RECEIVE",be="JETPACK_PRODUCTS_FETCH_FAIL",ve="JETPACK_SITE_PRODUCTS_FETCH",_e="JETPACK_SITE_PRODUCTS_FETCH_FAIL",ye="JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",Ee="JETPACK_SETTINGS_FETCH",we="JETPACK_SETTINGS_FETCH_RECEIVE",ke="JETPACK_SETTINGS_FETCH_FAIL",je="JETPACK_SETTING_UPDATE",Oe="JETPACK_SETTING_UPDATE_SUCCESS",Ce="JETPACK_SETTING_UPDATE_FAIL",Se="JETPACK_SETTINGS_UPDATE",Te="JETPACK_SETTINGS_UPDATE_FAIL",Ae="JETPACK_SETTINGS_UPDATE_SUCCESS",Me="JETPACK_SETTINGS_SET_UNSAVED_FLAG",Ne="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",xe="JETPACK_SITE_DATA_FETCH",Pe="JETPACK_SITE_DATA_FETCH_RECEIVE",Ie="JETPACK_SITE_DATA_FETCH_FAIL",Re="JETPACK_SITE_BENEFITS_FETCH",De="JETPACK_SITE_BENEFITS_FETCH_RECEIVE",Ue="JETPACK_SITE_BENEFITS_FETCH_FAIL",Le="JETPACK_SITE_FEATURES_FETCH",Fe="JETPACK_SITE_FEATURES_FETCH_RECEIVE",ze="JETPACK_SITE_FEATURES_FETCH_FAIL",Be="JETPACK_SITE_PLANS_FETCH",Ve="JETPACK_SITE_PLANS_FETCH_RECEIVE",He="JETPACK_SITE_PLANS_FETCH_FAIL",Ke="JETPACK_SITE_PURCHASES_FETCH",Je="JETPACK_SITE_PURCHASES_FETCH_RECEIVE",qe="JETPACK_SITE_PURCHASES_FETCH_FAIL",We="JETPACK_RECOMMENDATIONS_DATA_ADD_SELECTED_RECOMMENDATION",Ge="JETPACK_RECOMMENDATIONS_DATA_ADD_SKIPPED_RECOMMENDATION",Ye="JETPACK_RECOMMENDATIONS_DATA_FETCH",$e="JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE",Ze="JETPACK_RECOMMENDATIONS_DATA_FETCH_FAIL",Xe="JETPACK_RECOMMENDATIONS_DATA_UPDATE",Qe="JETPACK_RECOMMENDATIONS_DATA_SAVE",et="JETPACK_RECOMMENDATIONS_DATA_SAVE_SUCCESS",tt="JETPACK_RECOMMENDATIONS_DATA_SAVE_FAIL",nt="JETPACK_RECOMMENDATIONS_STEP_UPDATE",rt="JETPACK_RECOMMENDATIONS_STEP_UPDATE_SUCCESS",it="JETPACK_RECOMMENDATIONS_STEP_UPDATE_FAIL",at="JETPACK_RECOMMENDATIONS_UPSELL_FETCH",ot="JETPACK_RECOMMENDATIONS_UPSELL_FETCH_RECEIVE",st="JETPACK_RECOMMENDATIONS_UPSELL_FETCH_FAIL",ct="JETPACK_ACTION_NOTICES_DISMISS",lt="JETPACK_NOTICES_DISPATCH_TYPE",ut="JETPACK_NOTICES_DISMISS",pt="JETPACK_NOTICES_DISMISS_FAIL",dt="JETPACK_NOTICES_DISMISS_SUCCESS",ht="JETPACK_PLUGINS_DATA_FETCH",ft="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",mt="JETPACK_PLUGINS_DATA_FETCH_FAIL",gt="JETPACK_SEARCH_TERM",bt="JETPACK_SEARCH_FOCUS",vt="JETPACK_SEARCH_BLUR",_t="SET_PLAN_DURATION",yt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY",Et="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS",wt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL",kt="DEV_CARD_DISPLAY",jt="DEV_CARD_HIDE",Ot="MOCK_SWITCH_USER_PERMISSIONS",Ct="MOCK_SWITCH_THREATS",St="REWIND_STATUS_FETCH",Tt="REWIND_STATUS_FETCH_RECEIVE",At="REWIND_STATUS_FETCH_FAIL",Mt="MOCK_SWITCH_REWIND_STATE",Nt="SCAN_STATUS_FETCH",xt="SCAN_STATUS_FETCH_RECEIVE",Pt="SCAN_STATUS_FETCH_FAIL",It="MOCK_SWITCH_SCAN_STATE",Rt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",Dt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",Ut="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",Lt="JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH",Ft="JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH_FAIL",zt="JETPACK_SITE_VERIFY_GOOGLE_VERIFY_FETCH_SUCCESS",Bt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST",Vt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",Ht="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",Kt="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL",Jt="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_SUCCESS",qt="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_FAIL",Wt="JETPACK_LICENSING_ERROR_UPDATE"},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(112);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(155),i=n(156),a=n(238);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"j",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return u})),n.d(t,"m",(function(){return p})),n.d(t,"n",(function(){return d})),n.d(t,"X",(function(){return h})),n.d(t,"Y",(function(){return f})),n.d(t,"Z",(function(){return m})),n.d(t,"U",(function(){return g})),n.d(t,"V",(function(){return b})),n.d(t,"W",(function(){return v})),n.d(t,"o",(function(){return _})),n.d(t,"D",(function(){return y})),n.d(t,"G",(function(){return E})),n.d(t,"z",(function(){return w})),n.d(t,"E",(function(){return k})),n.d(t,"H",(function(){return j})),n.d(t,"A",(function(){return O})),n.d(t,"F",(function(){return C})),n.d(t,"r",(function(){return S})),n.d(t,"u",(function(){return T})),n.d(t,"v",(function(){return A})),n.d(t,"w",(function(){return M})),n.d(t,"K",(function(){return N})),n.d(t,"L",(function(){return x})),n.d(t,"M",(function(){return P})),n.d(t,"P",(function(){return I})),n.d(t,"Q",(function(){return R})),n.d(t,"R",(function(){return D})),n.d(t,"B",(function(){return U})),n.d(t,"C",(function(){return L})),n.d(t,"bb",(function(){return F})),n.d(t,"cb",(function(){return z})),n.d(t,"I",(function(){return B})),n.d(t,"J",(function(){return V})),n.d(t,"p",(function(){return H})),n.d(t,"q",(function(){return K})),n.d(t,"ab",(function(){return J})),n.d(t,"s",(function(){return q})),n.d(t,"t",(function(){return W})),n.d(t,"x",(function(){return G})),n.d(t,"y",(function(){return Y})),n.d(t,"N",(function(){return $})),n.d(t,"O",(function(){return Z})),n.d(t,"S",(function(){return X})),n.d(t,"T",(function(){return Q})),n.d(t,"f",(function(){return oe})),n.d(t,"e",(function(){return se})),n.d(t,"d",(function(){return ce})),n.d(t,"g",(function(){return le})),n.d(t,"b",(function(){return ue})),n.d(t,"h",(function(){return pe})),n.d(t,"a",(function(){return de})),n.d(t,"c",(function(){return he})),n.d(t,"gb",(function(){return me})),n.d(t,"lb",(function(){return ge})),n.d(t,"kb",(function(){return be})),n.d(t,"jb",(function(){return ve})),n.d(t,"hb",(function(){return _e})),n.d(t,"ib",(function(){return ye})),n.d(t,"eb",(function(){return Ee})),n.d(t,"fb",(function(){return we})),n.d(t,"db",(function(){return ke}));var r,i=n(4),a=n.n(i),o=n(3),s="business-bundle",c="business-bundle-2y",l="business-bundle-monthly",u="ecommerce-bundle",p="ecommerce-bundle-2y",d="ecommerce-bundle-monthly",h="value_bundle",f="value_bundle-2y",m="value_bundle-monthly",g="personal-bundle",b="personal-bundle-2y",v="personal-bundle-monthly",_="free_plan",y="jetpack_free",E="jetpack_premium",w="jetpack_business",k="jetpack_personal",j="jetpack_premium_monthly",O="jetpack_business_monthly",C="jetpack_personal_monthly",S="jetpack_backup",T="jetpack_backup_monthly",A="jetpack_backup_pro",M="jetpack_backup_pro_monthly",N="jetpack_search",x="jetpack_search_monthly",P="jetpack_security",I="jetpack_security_monthly",R="jetpack_security_pro",D="jetpack_security_pro_monthly",U="jetpack_complete",L="jetpack_complete_monthly",F="wpcom_search",z="wpcom_search_monthly",B="jetpack_scan",V="jetpack_scan_monthly",H="jetpack_anti_spam",K="jetpack_anti_spam_monthly",J="vip",q="jetpack_backup_daily",W="jetpack_backup_daily_monthly",G="jetpack_backup_realtime",Y="jetpack_backup_realtime_monthly",$="jetpack_security_daily",Z="jetpack_security_daily_monthly",X="jetpack_security_realtime",Q="jetpack_security_realtime_monthly",ee=[E,w,k,j,O,C],te=[P,I,R,D,$,Z,X,Q],ne=[S,T,A,M,q,W,G,Y],re=[N,x,F,z],ie=[B,V],ae=[H,K],oe="spam-akismet-plus",se="site-backups-jetpack",ce="security-scanning-jetpack",le="video-hosting-jetpack",ue="priority-support-jetpack",pe="wordads-jetpack",de="google-analytics-jetpack",he="search-jetpack",fe=(r={},a()(r,ue,P),a()(r,he,N),a()(r,ce,B),a()(r,se,S),a()(r,oe,H),a()(r,le,P),a()(r,pe,P),a()(r,de,P),a()(r,oe,H),r);function me(e){return Object(o.includes)(ne,e)}function ge(e){return Object(o.includes)(re,e)}function be(e){return ie.includes(e)}function ve(e){return me(e)||ge(e)||be(e)||function(e){return ae.includes(e)}(e)}function _e(e){return te.includes(e)}function ye(e){return ee.includes(e)}function Ee(e){return fe[e]}function we(e){switch(e){case y:case _:return"is-free-plan";case g:case b:case v:case k:case C:return"is-personal-plan";case h:case f:case m:case E:case j:return"is-premium-plan";case s:case c:case l:case w:case O:case J:case u:case p:case d:return"is-business-plan";case P:case I:return"is-security-plan";case R:case D:return"is-security-pro-plan";case U:case L:return"is-complete-plan";case S:case T:return"is-backup-plan";case A:case M:return"is-backup-pro-plan";case N:case x:case F:case z:return"is-search-plan";case B:case V:return"is-scan-plan";case H:case K:return"is-anti-spam-plan";case $:case Z:return"is-daily-security-plan";case X:case Q:return"is-realtime-security-plan";case q:case W:return"is-daily-backup-plan";case G:case Y:return"is-realtime-backup-plan";default:return""}}function ke(e){return["is-business-plan","is-security-plan","is-security-pro-plan","is-complete-plan","is-realtime-security-plan","is-realtime-backup-plan"].includes(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return W}));var r=n(48),i=n(0),a=n.n(i),o=n(2),s=n.n(o),c=a.a.createContext(null),l=function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.store;return n.state={storeState:r.getState(),store:r},n}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.subscribe()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},n.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var n=t.getState();e._isMounted&&e.setState((function(e){return e.storeState===n?null:{storeState:n}}))}));var n=t.getState();n!==this.state.storeState&&this.setState({storeState:n})},n.render=function(){var e=this.props.context||c;return a.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(i.Component);l.propTypes={store:s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired}),context:s.a.object,children:s.a.any};var u=l;var p=n(41),d=n(53),h=n(104),f=n.n(h),m=n(74),g=n.n(m),b=n(106);function v(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,s=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=n.methodName,u=void 0===l?"connectAdvanced":l,h=n.renderCountProp,m=void 0===h?void 0:h,v=n.shouldHandleStateChanges,_=void 0===v||v,y=n.storeKey,E=void 0===y?"store":y,w=n.withRef,k=void 0!==w&&w,j=n.forwardRef,O=void 0!==j&&j,C=n.context,S=void 0===C?c:C,T=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);g()(void 0===m,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),g()(!k,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var A="To use a custom Redux store for specific components,  create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like:  <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";g()("store"===E,"storeKey has been removed and does not do anything. "+A);var M=S;return function(t){var n=t.displayName||t.name||"Component",o=s(n),c=Object(p.a)({},T,{getDisplayName:s,methodName:u,renderCountProp:m,shouldHandleStateChanges:_,storeKey:E,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=T.pure,d=i.Component;l&&(d=i.PureComponent);var h=function(n){function i(t){var r,i,o,s,c,u,d,h,f,m,b;return r=n.call(this,t)||this,g()(O?!t.wrapperProps[E]:!t[E],"Passing redux store in props has been removed and does not do anything. "+A),r.selectDerivedProps=function(t,n,r,a){if(l&&i===n&&o===t)return s;r===c&&u===a||(c=r,u=a,d=e(r.dispatch,a)),i=n,o=t;var p=d(t,n);return s=p},r.selectChildElement=function(e,t,n){return t===h&&n===f&&b===e||(h=t,f=n,b=e,m=a.a.createElement(e,Object(p.a)({},t,{ref:n}))),m},r.indirectRenderWrappedComponent=r.indirectRenderWrappedComponent.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}Object(r.a)(i,n);var s=i.prototype;return s.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},s.renderWrappedComponent=function(e){g()(e,'Could not find "store" in the context of "'+o+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+o+" in connect options.");var n,r=e.storeState,i=e.store,a=this.props;O&&(a=this.props.wrapperProps,n=this.props.forwardedRef);var s=this.selectDerivedProps(r,a,i,c);return this.selectChildElement(t,s,n)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(b.isContextConsumer)(a.a.createElement(this.props.context.Consumer,null))?this.props.context:M;return a.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},i}(d);if(h.WrappedComponent=t,h.displayName=o,O){var v=a.a.forwardRef((function(e,t){return a.a.createElement(h,{wrapperProps:e,forwardedRef:t})}));return v.displayName=o,v.WrappedComponent=t,f()(v,t)}return f()(h,t)}}var _=Object.prototype.hasOwnProperty;function y(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function E(e,t){if(y(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!_.call(t,n[i])||!y(e[n[i]],t[n[i]]))return!1;return!0}var w=n(19);function k(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function j(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function O(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=j(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=j(i),i=r(t,n)),i},r}}var C=[function(e){return"function"==typeof e?O(e):void 0},function(e){return e?void 0:k((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?k((function(t){return Object(w.b)(e,t)})):void 0}];var S=[function(e){return"function"==typeof e?O(e):void 0},function(e){return e?void 0:k((function(){return{}}))}];function T(e,t,n){return Object(p.a)({},n,e,t)}var A=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,a=n.areMergedPropsEqual,o=!1;return function(t,n,s){var c=e(t,n,s);return o?i&&a(c,r)||(r=c):(o=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return T}}];function M(e,t,n,r){return function(i,a){return n(e(i,a),t(r,a),a)}}function N(e,t,n,r,i){var a,o,s,c,l,u=i.areStatesEqual,p=i.areOwnPropsEqual,d=i.areStatePropsEqual,h=!1;function f(i,h){var f,m,g=!p(h,o),b=!u(i,a);return a=i,o=h,g&&b?(s=e(a,o),t.dependsOnOwnProps&&(c=t(r,o)),l=n(s,c,o)):g?(e.dependsOnOwnProps&&(s=e(a,o)),t.dependsOnOwnProps&&(c=t(r,o)),l=n(s,c,o)):b?(f=e(a,o),m=!d(f,s),s=f,m&&(l=n(s,c,o)),l):l}return function(i,u){return h?f(i,u):(s=e(a=i,o=u),c=t(r,o),l=n(s,c,o),h=!0,l)}}function x(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,a=Object(d.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),o=n(e,a),s=r(e,a),c=i(e,a);return(a.pure?N:M)(o,s,c,e,a)}function P(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function I(e,t){return e===t}var R,D,U,L,F,z,B,V,H,K,J,q,W=(U=(D=void 0===R?{}:R).connectHOC,L=void 0===U?v:U,F=D.mapStateToPropsFactories,z=void 0===F?S:F,B=D.mapDispatchToPropsFactories,V=void 0===B?C:B,H=D.mergePropsFactories,K=void 0===H?A:H,J=D.selectorFactory,q=void 0===J?x:J,function(e,t,n,r){void 0===r&&(r={});var i=r,a=i.pure,o=void 0===a||a,s=i.areStatesEqual,c=void 0===s?I:s,l=i.areOwnPropsEqual,u=void 0===l?E:l,h=i.areStatePropsEqual,f=void 0===h?E:h,m=i.areMergedPropsEqual,g=void 0===m?E:m,b=Object(d.a)(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=P(e,z,"mapStateToProps"),_=P(t,V,"mapDispatchToProps"),y=P(n,K,"mergeProps");return L(q,Object(p.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:_,initMergeProps:y,pure:o,areStatesEqual:c,areOwnPropsEqual:u,areStatePropsEqual:f,areMergedPropsEqual:g},b))})},function(e,t,n){"use strict";n.d(t,"i",(function(){return r.d})),n.d(t,"u",(function(){return r.p})),n.d(t,"v",(function(){return r.q})),n.d(t,"j",(function(){return r.e})),n.d(t,"f",(function(){return r.a})),n.d(t,"g",(function(){return r.b})),n.d(t,"o",(function(){return r.j})),n.d(t,"p",(function(){return r.k})),n.d(t,"z",(function(){return r.u})),n.d(t,"l",(function(){return r.g})),n.d(t,"q",(function(){return r.l})),n.d(t,"n",(function(){return r.i})),n.d(t,"m",(function(){return r.h})),n.d(t,"k",(function(){return r.f})),n.d(t,"s",(function(){return r.n})),n.d(t,"w",(function(){return r.r})),n.d(t,"r",(function(){return r.m})),n.d(t,"x",(function(){return r.s})),n.d(t,"y",(function(){return r.t})),n.d(t,"h",(function(){return r.c})),n.d(t,"t",(function(){return r.o})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return d})),n.d(t,"B",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"A",(function(){return g}));var r=n(70),i=n(1),a=n(18),o=n(5),s=n(20),c=n(14),l=function(){return function(e){return e(Object(a.a)("is-info",Object(i.__)("Testing Jetpack Connection","jetpack"),{id:"test-jetpack-connection"})),s.a.fetchSiteConnectionTest().then((function(t){e({type:o.JETPACK_CONNECTION_TEST_FETCH,connectionTest:t}),e(Object(a.c)("test-jetpack-connection")),e(Object(a.a)("success"===t.code?"is-success":"is-error",t.message,{id:"test-jetpack-connection"}))})).catch((function(t){e(Object(a.c)("test-jetpack-connection")),e(Object(a.a)("is-error",Object(i.sprintf)(Object(i.__)("There was an error testing Jetpack. Error: %s","jetpack"),t.message),{id:"test-jetpack-connection"}))}))}},u=function(){return function(e){return e({type:o.CONNECT_URL_FETCH}),s.a.fetchConnectUrl().then((function(t){e({type:o.CONNECT_URL_FETCH_SUCCESS,connectUrl:t})})).catch((function(t){e({type:o.CONNECT_URL_FETCH_FAIL,error:t})}))}},p=function(){return function(e){return e({type:o.USER_CONNECTION_DATA_FETCH}),s.a.fetchUserConnectionData().then((function(t){e({type:o.USER_CONNECTION_DATA_FETCH_SUCCESS,userConnectionData:t})})).catch((function(t){e({type:o.USER_CONNECTION_DATA_FETCH_FAIL,error:t})}))}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){return t({type:o.DISCONNECT_SITE}),t(Object(a.a)("is-info",Object(i.__)("Disconnecting Jetpack","jetpack"),{id:"disconnect-jetpack"})),s.a.disconnectSite().then((function(e){t({type:o.DISCONNECT_SITE_SUCCESS,disconnectingSite:e}),t(Object(a.c)("disconnect-jetpack"))})).then((function(){t(u()),e&&window.location.reload()})).catch((function(e){t({type:o.DISCONNECT_SITE_FAIL,error:e}),t(Object(a.c)("disconnect-jetpack")),t(Object(a.a)("is-error",Object(i.sprintf)(Object(i.__)("There was an error disconnecting Jetpack. Error: %s","jetpack"),e),{id:"disconnect-jetpack"}))}))}},h=function(){return function(e){return e({type:o.UNLINK_USER}),e(Object(a.a)("is-info",Object(i.__)("Unlinking from WordPress.com","jetpack"),{id:"unlink-user"})),s.a.unlinkUser().then((function(t){e({type:o.UNLINK_USER_SUCCESS,userUnlinked:t}),e(u()),e(Object(a.c)("unlink-user")),e(Object(a.a)("is-success",Object(i.__)("Unlinked from WordPress.com.","jetpack"),{id:"unlink-user",duration:2e3}))})).catch((function(t){e({type:o.UNLINK_USER_FAIL,error:t}),e(Object(a.c)("unlink-user")),e(Object(a.a)("is-error",Object(i.sprintf)(Object(i.__)("Error unlinking from WordPress.com. Error: %s","jetpack"),t),{id:"unlink-user"}))}))}},f=function(){return function(e){e({type:o.AUTH_USER_IN_PLACE})}},m=function(){return function(e,t){Object(r.o)(t())?window.location.reload():(e({type:o.AUTH_USER_IN_PLACE_SUCCESS}),e(Object(a.a)("is-success",Object(i.__)("Linked to WordPress.com.","jetpack"),{id:"link-user-in-place",duration:2e3})))}},g=function(){return function(e,t){return e({type:o.SITE_RECONNECT}),e(Object(a.a)("is-info",Object(i.__)("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"})),s.a.reconnect().then((function(n){var r=n.status,i=n.authorizeUrl;if("in_progress"===r){if(Object(c.z)(t())||Object(c.c)(t()))return window.location.replace(i);e({type:o.CONNECT_URL_FETCH_SUCCESS,connectUrl:i}),e(f())}else window.location.reload()})).catch((function(t){e({type:o.SITE_RECONNECT_FAIL,error:t}),e(Object(a.c)("reconnect-jetpack")),e(Object(a.a)("is-error",Object(i.sprintf)(Object(i.__)("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}))}}},function(e,t,n){"use strict";n.d(t,"x",(function(){return r.z})),n.d(t,"i",(function(){return r.i})),n.d(t,"q",(function(){return r.r})),n.d(t,"k",(function(){return r.l})),n.d(t,"d",(function(){return r.d})),n.d(t,"p",(function(){return r.q})),n.d(t,"n",(function(){return r.o})),n.d(t,"r",(function(){return r.s})),n.d(t,"A",(function(){return r.C})),n.d(t,"O",(function(){return r.P})),n.d(t,"M",(function(){return r.N})),n.d(t,"K",(function(){return r.L})),n.d(t,"L",(function(){return r.M})),n.d(t,"J",(function(){return r.K})),n.d(t,"I",(function(){return r.J})),n.d(t,"H",(function(){return r.I})),n.d(t,"G",(function(){return r.H})),n.d(t,"u",(function(){return r.v})),n.d(t,"v",(function(){return r.w})),n.d(t,"N",(function(){return r.O})),n.d(t,"o",(function(){return r.p})),n.d(t,"B",(function(){return r.D})),n.d(t,"e",(function(){return r.e})),n.d(t,"f",(function(){return r.f})),n.d(t,"m",(function(){return r.n})),n.d(t,"s",(function(){return r.t})),n.d(t,"h",(function(){return r.h})),n.d(t,"l",(function(){return r.m})),n.d(t,"a",(function(){return r.a})),n.d(t,"w",(function(){return r.y})),n.d(t,"b",(function(){return r.b})),n.d(t,"D",(function(){return r.E})),n.d(t,"F",(function(){return r.G})),n.d(t,"E",(function(){return r.F})),n.d(t,"y",(function(){return r.A})),n.d(t,"j",(function(){return r.j})),n.d(t,"t",(function(){return r.u})),n.d(t,"g",(function(){return r.g})),n.d(t,"z",(function(){return r.B})),n.d(t,"c",(function(){return r.c})),n.d(t,"C",(function(){return a}));var r=n(71),i=n(5),a=function(){return function(e){e({type:i.JETPACK_SET_INITIAL_STATE,initialState:window.Initial_State})}}},function(e,t,n){"use strict";var r=n(50),i=n.n(r),a=n(3),o={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};var s,c,l=function(e){if(e in o)return o[e];throw new Error("config key `"+e+"` does not exist")},u=i()("dops:analytics");window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;var p={initialize:function(e,t,n){p.setUser(e,t),p.setSuperProps(n),p.identifyUser()},setUser:function(e,t){c={ID:e,username:t}},setSuperProps:function(e){s=e},mc:{bumpStat:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&x_"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);u("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),u('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);l("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){var n=function(e,t){var n="";if("object"==typeof e){for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);u("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),u('Built stat "%s" in group "%s"',t,e);return n}(e,t);l("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){p.tracks.recordPageView(e),p.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,i,a,o){p.ga.recordPurchase(e,t,n,r,i,a,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(u("- Super Props: %o",s),t=Object(a.assign)(t,s)),u('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):u('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){var t="object"==typeof e?e:{target:e};p.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){p.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){u("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){var e={};p.ga.initialized||(c&&(e={userId:"u-"+c.ID}),window.ga("create",l("google_analytics_key"),"auto",e),p.ga.initialized=!0)},recordPageView:function(e,t){p.ga.initialize(),u("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),l("google_analytics_enabled")&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){p.ga.initialize();var i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(i+=" [Option Label: "+n+"]"),void 0!==r&&(i+=" [Option Value: "+r+"]"),u(i),l("google_analytics_enabled")&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,i,a,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:i,quantity:a}),window.ga("ecommerce:send")}},identifyUser:function(){c&&window._tkq.push(["identifyUser",c.ID,c.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};t.a=p},function(e,t,n){var r;
/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var o=i.apply(null,r);o&&e.push(o)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(3),i=n(73);function a(e){return{noticeId:e,type:i.b}}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={noticeId:n.id||Object(r.uniqueId)(),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t};return{type:i.a,notice:a}}var s=o.bind(null,"is-success"),c=o.bind(null,"is-error");o.bind(null,"is-info"),o.bind(null,"is-warning")},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return s}));var r=n(151),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function o(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 s(e,t,n){var i;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&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,l=t,u=[],p=u,d=!1;function h(){p===u&&(p=u.slice())}function f(){if(d)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 m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)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#subscribelistener for more details.");var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,h();var n=p.indexOf(e);p.splice(n,1),u=null}}}function g(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=c(l,e)}finally{d=!1}for(var t=u=p,n=0;n<t.length;n++){(0,t[n])()}return e}function b(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,g({type:a.REPLACE})}function v(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e}return g({type:a.INIT}),(i={dispatch:g,subscribe:m,getState:f,replaceReducer:b})[r.a]=v,i}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(l){o=l}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},a=0;a<s.length;a++){var l=s[a],u=n[l],p=e[l],d=u(p,t);if(void 0===d){var h=c(l,t);throw new Error(h)}i[l]=d,r=r||d!==p}return(r=r||s.length!==Object.keys(e).length)?i:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=u(i,t))}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return f({},n,{dispatch:r=m.apply(void 0,a)(n.dispatch)})}}}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=n(8),o=n.n(a),s=n(9),c=n.n(s),l=n(221),u=n.n(l),p=n(3);function d(e){return function(t){o()(r,t);var n=c()(r);function r(){var t;i()(this,r);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(t=n.call.apply(n,[this].concat(o))).name=e,t}return r}(u()(Error))}var h=d("JsonParseError"),f=d("JsonParseAfterRedirectError"),m=d("Api404Error"),g=d("Api404AfterRedirectError"),b=d("FetchNetworkError");var v=new function(e,t){var n=e,r={"X-WP-Nonce":t},i={credentials:"same-origin",headers:r},a={method:"post",credentials:"same-origin",headers:Object(p.assign)({},r,{"Content-type":"application/json"})},o={setApiRoot:function(e){n=e},setApiNonce:function(e){i={credentials:"same-origin",headers:r={"X-WP-Nonce":e}},a={method:"post",credentials:"same-origin",headers:Object(p.assign)({},r,{"Content-type":"application/json"})}},fetchSiteConnectionStatus:function(){return s("".concat(n,"jetpack/v4/connection"),i).then(y)},fetchSiteConnectionTest:function(){return s("".concat(n,"jetpack/v4/connection/test"),i).then(_).then(y)},fetchUserConnectionData:function(){return s("".concat(n,"jetpack/v4/connection/data"),i).then(y)},fetchUserTrackingSettings:function(){return s("".concat(n,"jetpack/v4/tracking/settings"),i).then(_).then(y)},updateUserTrackingSettings:function(e){return c("".concat(n,"jetpack/v4/tracking/settings"),a,{body:JSON.stringify(e)}).then(_).then(y)},disconnectSite:function(){return c("".concat(n,"jetpack/v4/connection"),a,{body:JSON.stringify({isActive:!1})}).then(_).then(y)},fetchConnectUrl:function(){return s("".concat(n,"jetpack/v4/connection/url"),i).then(_).then(y)},unlinkUser:function(){return c("".concat(n,"jetpack/v4/connection/user"),a,{body:JSON.stringify({linked:!1})}).then(_).then(y)},reconnect:function(){return c("".concat(n,"jetpack/v4/connection/reconnect"),a).then(_).then(y)},fetchConnectedPlugins:function(){return s("".concat(n,"jetpack/v4/connection/plugins"),i).then(_).then(y)},fetchModules:function(){return s("".concat(n,"jetpack/v4/module/all"),i).then(_).then(y)},fetchModule:function(e){return s("".concat(n,"jetpack/v4/module/").concat(e),i).then(_).then(y)},activateModule:function(e){return c("".concat(n,"jetpack/v4/module/").concat(e,"/active"),a,{body:JSON.stringify({active:!0})}).then(_).then(y)},deactivateModule:function(e){return c("".concat(n,"jetpack/v4/module/").concat(e,"/active"),a,{body:JSON.stringify({active:!1})})},updateModuleOptions:function(e,t){return c("".concat(n,"jetpack/v4/module/").concat(e),a,{body:JSON.stringify(t)}).then(_).then(y)},updateSettings:function(e){return c("".concat(n,"jetpack/v4/settings"),a,{body:JSON.stringify(e)}).then(_).then(y)},getProtectCount:function(){return s("".concat(n,"jetpack/v4/module/protect/data"),i).then(_).then(y)},resetOptions:function(e){return c("".concat(n,"jetpack/v4/options/").concat(e),a,{body:JSON.stringify({reset:!0})}).then(_).then(y)},activateVaultPress:function(){return c("".concat(n,"jetpack/v4/plugins"),a,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(_).then(y)},getVaultPressData:function(){return s("".concat(n,"jetpack/v4/module/vaultpress/data"),i).then(_).then(y)},installPlugin:function(e,t){var r={slug:e,status:"active"};return t&&(r.source=t),c("".concat(n,"jetpack/v4/plugins"),a,{body:JSON.stringify(r)}).then(_).then(y)},activateAkismet:function(){return c("".concat(n,"jetpack/v4/plugins"),a,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(_).then(y)},getAkismetData:function(){return s("".concat(n,"jetpack/v4/module/akismet/data"),i).then(_).then(y)},checkAkismetKey:function(){return s("".concat(n,"jetpack/v4/module/akismet/key/check"),i).then(_).then(y)},checkAkismetKeyTyped:function(e){return c("".concat(n,"jetpack/v4/module/akismet/key/check"),a,{body:JSON.stringify({api_key:e})}).then(_).then(y)},fetchStatsData:function(e){return s(function(e){var t="".concat(n,"jetpack/v4/module/stats/data");-1!==t.indexOf("?")?t+="&range=".concat(encodeURIComponent(e)):t+="?range=".concat(encodeURIComponent(e));return t}(e),i).then(_).then(y).then(l)},getPluginUpdates:function(){return s("".concat(n,"jetpack/v4/updates/plugins"),i).then(_).then(y)},getPlans:function(){return s("".concat(n,"jetpack/v4/plans"),i).then(_).then(y)},fetchSettings:function(){return s("".concat(n,"jetpack/v4/settings"),i).then(_).then(y)},updateSetting:function(e){return c("".concat(n,"jetpack/v4/settings"),a,{body:JSON.stringify(e)}).then(_).then(y)},fetchSiteData:function(){return s("".concat(n,"jetpack/v4/site"),i).then(_).then(y).then((function(e){return JSON.parse(e.data)}))},fetchSiteFeatures:function(){return s("".concat(n,"jetpack/v4/site/features"),i).then(_).then(y).then((function(e){return JSON.parse(e.data)}))},fetchSiteProducts:function(){return s("".concat(n,"jetpack/v4/site/products"),i).then(_).then(y)},fetchSitePurchases:function(){return s("".concat(n,"jetpack/v4/site/purchases"),i).then(_).then(y).then((function(e){return JSON.parse(e.data)}))},fetchSiteBenefits:function(){return s("".concat(n,"jetpack/v4/site/benefits"),i).then(_).then(y).then((function(e){return JSON.parse(e.data)}))},fetchSetupQuestionnaire:function(){return s("".concat(n,"jetpack/v4/setup/questionnaire"),i).then(_).then(y)},fetchRecommendationsData:function(){return s("".concat(n,"jetpack/v4/recommendations/data"),i).then(_).then(y)},fetchRecommendationsUpsell:function(){return s("".concat(n,"jetpack/v4/recommendations/upsell"),i).then(_).then(y)},saveRecommendationsData:function(e){return c("".concat(n,"jetpack/v4/recommendations/data"),a,{body:JSON.stringify({data:e})}).then(_)},fetchProducts:function(){return s("".concat(n,"jetpack/v4/products"),i).then(_).then(y)},fetchRewindStatus:function(){return s("".concat(n,"jetpack/v4/rewind"),i).then(_).then(y).then((function(e){return JSON.parse(e.data)}))},fetchScanStatus:function(){return s("".concat(n,"jetpack/v4/scan"),i).then(_).then(y).then((function(e){return JSON.parse(e.data)}))},dismissJetpackNotice:function(e){return c("".concat(n,"jetpack/v4/notice/").concat(e),a,{body:JSON.stringify({dismissed:!0})}).then(_).then(y)},fetchPluginsData:function(){return s("".concat(n,"jetpack/v4/plugins"),i).then(_).then(y)},fetchVerifySiteGoogleStatus:function(e){return s(null!==e?"".concat(n,"jetpack/v4/verify-site/google/").concat(e):"".concat(n,"jetpack/v4/verify-site/google"),i).then(_).then(y)},verifySiteGoogle:function(e){return c("".concat(n,"jetpack/v4/verify-site/google"),a,{body:JSON.stringify({keyring_id:e})}).then(_).then(y)},sendMobileLoginEmail:function(){return c("".concat(n,"jetpack/v4/mobile/send-login-email"),a).then(_).then(y)},submitSurvey:function(e){return c("".concat(n,"jetpack/v4/marketing/survey"),a,{body:JSON.stringify(e)}).then(_).then(y)},saveSetupQuestionnaire:function(e){return c("".concat(n,"jetpack/v4/setup/questionnaire"),a,{body:JSON.stringify(e)}).then(_).then(y)},updateLicensingError:function(e){return c("".concat(n,"jetpack/v4/licensing/error"),a,{body:JSON.stringify(e)}).then(_).then(y)},updateLicenseKey:function(e){return c("".concat(n,"jetpack/v4/licensing/set-license"),a,{body:JSON.stringify({license:e})}).then(_).then(y)},updateRecommendationsStep:function(e){return c("".concat(n,"jetpack/v4/recommendations/step"),a,{body:JSON.stringify({step:e})}).then(_)}};function s(e,t){return fetch(function(e){var t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")}(e),t)}function c(e,t,n){return fetch(e,Object(p.assign)({},t,n)).catch(w)}function l(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object(p.assign)(this,o)};function _(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((function(){throw e.redirected?new g(e.redirected):new m})):e.json().catch((function(e){return E(e)})).then((function(t){var n=new Error("".concat(t.message," (Status ").concat(e.status,")"));throw n.response=t,n.name="ApiError",n}))}function y(e){return e.json().catch((function(t){return E(t,e.redirected,e.url)}))}function E(e,t,n){throw t?new f(n):new h}function w(){throw new b}t.a=v},function(e,t,n){"use strict";n.d(t,"m",(function(){return r.l})),n.d(t,"d",(function(){return r.c})),n.d(t,"e",(function(){return r.d})),n.d(t,"g",(function(){return r.f})),n.d(t,"b",(function(){return r.a})),n.d(t,"c",(function(){return r.b})),n.d(t,"h",(function(){return r.g})),n.d(t,"i",(function(){return r.h})),n.d(t,"j",(function(){return r.i})),n.d(t,"k",(function(){return r.j})),n.d(t,"l",(function(){return r.k})),n.d(t,"n",(function(){return r.m})),n.d(t,"o",(function(){return r.n})),n.d(t,"f",(function(){return r.e})),n.d(t,"a",(function(){return l})),n.d(t,"p",(function(){return u})),n.d(t,"q",(function(){return p}));var r=n(40),i=n(3),a=n(1),o=n(18),s=n(5),c=n(20),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return n({type:s.JETPACK_MODULE_ACTIVATE,module:e}),n(Object(o.c)("module-toggle")),n(Object(o.a)("is-info",Object(a.sprintf)(Object(a.__)("Activating %s…","jetpack"),Object(r.b)(i(),e).name),{id:"module-toggle"})),c.a.activateModule(e).then((function(){n({type:s.JETPACK_MODULE_ACTIVATE_SUCCESS,module:e,success:!0}),n(Object(o.c)("module-toggle")),n(Object(o.a)("is-success",Object(a.sprintf)(Object(a.__)("%s has been activated.","jetpack"),Object(r.b)(i(),e).name),{id:"module-toggle",duration:2e3})),t&&window.location.reload()})).catch((function(t){n({type:s.JETPACK_MODULE_ACTIVATE_FAIL,module:e,success:!1,error:t}),n(Object(o.c)("module-toggle")),n(Object(o.a)("is-error",Object(a.sprintf)(Object(a.__)("%1$s failed to activate. %2$s","jetpack"),Object(r.b)(i(),e).name,t),{id:"module-toggle"}))}))}};function u(e,t){switch(e){case"custom-content-types":t||jQuery("#menu-posts-jetpack-portfolio, #menu-posts-jetpack-testimonial").toggle(),Object(i.forEach)(t,(function(e,t){"jetpack_portfolio"===t&&jQuery("#menu-posts-jetpack-portfolio, .jp-toggle-portfolio").toggle(),"jetpack_testimonial"===t&&jQuery("#menu-posts-jetpack-testimonial, .jp-toggle-testimonial").toggle()}));break;default:return!1}}function p(e){Object(i.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(function(t){return t in e}))&&window.location.reload()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(51),i=n.n(r),a=n(7),o=n.n(a),s=n(10),c=n.n(s),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),f=n.n(h),m=n(2),g=n.n(m),b=n(0),v=n.n(b),_=n(16),y=n.n(_),E=n(3),w=(n(245),function(e){u()(n,e);var t=d()(n);function n(){return o()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.href?"a":"button",t=this.props,n=t.primary,r=t.compact,a=t.scary,o=t.borderless,s=t.className,c=i()(t,["primary","compact","scary","borderless","className"]),l=y()({"dops-button":!0,"is-compact":r,"is-primary":n,"is-scary":a,"is-borderless":o});return c.className=y()(s,l),v.a.createElement(e,c,this.props.children)}}]),n}(v.a.Component));f()(w,"displayName","Button"),f()(w,"propTypes",{disabled:g.a.bool,compact:g.a.bool,primary:g.a.bool,scary:g.a.bool,type:g.a.string,href:g.a.string,onClick:g.a.func,borderless:g.a.bool,className:g.a.string}),f()(w,"defaultProps",{disabled:!1,type:"button",onClick:E.noop,borderless:!1})},function(e,t,n){"use strict";n.d(t,"n",(function(){return r.h})),n.d(t,"x",(function(){return r.r})),n.d(t,"w",(function(){return r.q})),n.d(t,"v",(function(){return r.p})),n.d(t,"y",(function(){return r.s})),n.d(t,"p",(function(){return r.j})),n.d(t,"m",(function(){return r.g})),n.d(t,"k",(function(){return r.e})),n.d(t,"h",(function(){return r.b})),n.d(t,"q",(function(){return r.k})),n.d(t,"j",(function(){return r.d})),n.d(t,"i",(function(){return r.c})),n.d(t,"s",(function(){return r.m})),n.d(t,"g",(function(){return r.a})),n.d(t,"r",(function(){return r.l})),n.d(t,"t",(function(){return r.n})),n.d(t,"u",(function(){return r.o})),n.d(t,"o",(function(){return r.i})),n.d(t,"l",(function(){return r.f})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return p}));var r=n(102),i=n(5),a=n(20),o=function(){return function(e){return e({type:i.JETPACK_SITE_DATA_FETCH}),a.a.fetchSiteData().then((function(t){return e({type:i.JETPACK_SITE_DATA_FETCH_RECEIVE,siteData:t}),t})).catch((function(t){e({type:i.JETPACK_SITE_DATA_FETCH_FAIL,error:t})}))}},s=function(){return function(e){return e({type:i.JETPACK_SITE_BENEFITS_FETCH}),a.a.fetchSiteBenefits().then((function(t){e({type:i.JETPACK_SITE_BENEFITS_FETCH_RECEIVE,siteBenefits:t})})).catch((function(t){e({type:i.JETPACK_SITE_BENEFITS_FETCH_FAIL,error:t})}))}},c=function(){return function(e){return e({type:i.JETPACK_SITE_FEATURES_FETCH}),a.a.fetchSiteFeatures().then((function(t){return e({type:i.JETPACK_SITE_FEATURES_FETCH_RECEIVE,siteFeatures:t}),t})).catch((function(t){e({type:i.JETPACK_SITE_FEATURES_FETCH_FAIL,error:t})}))}},l=function(){return function(e){return e({type:i.JETPACK_SITE_PLANS_FETCH}),a.a.getPlans().then((function(t){return e({type:i.JETPACK_SITE_PLANS_FETCH_RECEIVE,plans:t}),t})).catch((function(t){e({type:i.JETPACK_SITE_PLANS_FETCH_FAIL,error:t})}))}},u=function(){return function(e){return e({type:i.JETPACK_SITE_PURCHASES_FETCH}),a.a.fetchSitePurchases().then((function(t){return e({type:i.JETPACK_SITE_PURCHASES_FETCH_RECEIVE,purchases:t}),t})).catch((function(t){e({type:i.JETPACK_SITE_PURCHASES_FETCH_FAIL,error:t})}))}},p=function(){return function(e){return e({type:i.JETPACK_SITE_CONNECTED_PLUGINS_FETCH}),a.a.fetchConnectedPlugins().then((function(t){return e({type:i.JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE,connectedPlugins:t}),t})).catch((function(t){e({type:i.JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL,error:t})}))}}},function(e,t){e.exports=window.wp.element},function(e,t,n){var r=n(4);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=n(10),o=n.n(a),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),f=n.n(h),m=n(2),g=n.n(m),b=n(0),v=n.n(b),_=n(16),y=n.n(_),E=n(3),w=n(30),k=(n(251),function(e){u()(n,e);var t=d()(n);function n(){var e;i()(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return e=t.call.apply(t,[this].concat(a)),f()(c()(e),"_renderWithTitle",(function(){var t="dops-card-section-orient-"+(e.props.vertical?"vertical":"horizontal");return v.a.createElement("div",{className:t},v.a.createElement("h4",{ref:"label",className:"dops-card-section-label"},e.props.title),v.a.createElement("div",{ref:"content",className:"dops-card-section-content"},e.props.children))})),e}return o()(n,[{key:"render",value:function(){return v.a.createElement("div",{className:y()("dops-card-section",this.props.className),style:this.props.style},this.props.title?this._renderWithTitle():this.props.children)}}]),n}(v.a.Component));f()(k,"propTypes",{title:g.a.any,vertical:g.a.any,style:g.a.object,className:g.a.string,device:g.a.oneOf(["desktop","tablet","phone"])}),f()(k,"defaultProps",{vertical:null});var j=function(e){u()(n,e);var t=d()(n);function n(){return i()(this,n),t.apply(this,arguments)}return o()(n,[{key:"render",value:function(){return v.a.createElement("div",{className:"dops-card-footer"},this.props.children)}}]),n}(v.a.Component),O=function(e){u()(n,e);var t=d()(n);function n(){var e;i()(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return e=t.call.apply(t,[this].concat(a)),f()(c()(e),"_renderIcon",(function(){return v.a.createElement("span",{className:"dops-card-icon",style:{color:e.props.iconColor}},e.props.icon&&v.a.createElement(w.a,{icon:e.props.icon,style:{backgroundColor:e.props.iconColor}}),e.props.iconLabel)})),e}return o()(n,[{key:"render",value:function(){var e,t,n=y()("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),r=["compact","tagName","meta","iconColor"];return this.props.href?e=v.a.createElement(w.a,{className:"dops-card__link-indicator",icon:this.props.target?"external":"chevron-right"}):r.push("href","target"),this.props.title&&(t=v.a.createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&v.a.createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),v.a.createElement(this.props.href?"a":this.props.tagName,Object(E.assign)(Object(E.omit)(this.props,r),{className:n}),e,t,this.props.children)}}]),n}(v.a.Component);f()(O,"propTypes",{meta:g.a.any,icon:g.a.string,iconLabel:g.a.any,iconColor:g.a.string,style:g.a.object,className:g.a.string,href:g.a.string,onClick:g.a.func,title:g.a.string,tagName:g.a.string,target:g.a.string,compact:g.a.bool,children:g.a.node}),f()(O,"defaultProps",{iconColor:"#787878",className:"",tagName:"div",onClick:function(){}}),O.Section=k,O.Footer=j,t.a=O},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r=n(17),i=n.n(r),a=n(2),o=n.n(a),s=n(0),c=n.n(s),l=n(12),u=n(26),p=n(16),d=n.n(p),h=n(3),f=n(90),m=n(13),g=n(14),b=n(21),v=function(e){var t=e.module;if(t.module&&!e.userCanManageModules&&!Object(h.includes)(["post-by-email","publicize"],t.module))return c.a.createElement("span",null);var n=e.disableInOfflineMode&&e.isUnavailableInOfflineMode(t.module),r=e.disableInSiteConnectionMode&&e.isUnavailableInSiteConnectionMode(t.module),a=n||r;return"post-by-email"!==t.module||e.isLinked||(a=!0),c.a.createElement("div",{className:d()("jp-form-settings-group",e.className)},c.a.createElement(u.a,{className:d()({"jp-form-has-child":e.hasChild,"jp-form-settings-disable":n||r})},a&&c.a.createElement("div",{className:"jp-form-block-fade"}),e.support.link&&c.a.createElement(f.a,i()({module:t},e.support)),e.children))};v.propTypes={support:o.a.object,module:o.a.object,disableInOfflineMode:o.a.bool.isRequired,disableInSiteConnectionMode:o.a.bool,isOfflineMode:o.a.bool.isRequired,isSitePublic:o.a.bool.isRequired,userCanManageModules:o.a.bool.isRequired,isLinked:o.a.bool.isRequired,isUnavailableInOfflineMode:o.a.func.isRequired,className:o.a.string},v.defaultProps={support:{text:"",link:""},module:{},disableInOfflineMode:!1,disableInSiteConnectionMode:!1,isOfflineMode:!1,isSitePublic:!0,userCanManageModules:!1,isLinked:!1,isUnavailableInOfflineMode:h.noop,className:""},t.a=Object(l.b)((function(e){return{isOfflineMode:Object(m.s)(e),isSitePublic:Object(g.A)(e),userCanManageModules:Object(g.K)(e),userCanEditPosts:Object(g.J)(e),isLinked:Object(m.n)(e),isModuleActivated:function(t){return Object(b.n)(e,t)},isUnavailableInOfflineMode:function(t){return Object(m.x)(e,t)},isUnavailableInSiteConnectionMode:function(t){return Object(m.y)(e,t)}}}))(v)},function(e,t,n){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=n(42),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(0),o=n.n(a),s=n(72),c=n.n(s),l=n(16),u=n.n(l),p=n(52),d=n.n(p),h=(n(250),d()({displayName:"Gridicon",mixins:[c.a],getDefaultProps:function(){return{className:"",size:24}},propTypes:{icon:i.a.string.isRequired,size:i.a.number,onClick:i.a.func,className:i.a.string},needsOffset:function(e,t){return["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-backspace","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plans","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle"].indexOf(e)>=0&&t%18==0},needsOffsetX:function(e,t){return["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e)>=0&&t%18==0},needsOffsetY:function(e,t){return["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e)>=0&&t%18==0},render:function(){var e,t="gridicons-"+this.props.icon,n=this.needsOffset(t,this.props.size),r=this.needsOffsetX(t,this.props.size),i=this.needsOffsetY(t,this.props.size),a=u()("gridicon",t,this.props.className,{"needs-offset":n,"needs-offset-x":r,"needs-offset-y":i});switch(t){default:e=o.a.createElement("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-backspace":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 7H8l-5 5 5 5h11c1.104 0 2-.896 2-2V9c0-1.104-.896-2-2-2zm-.647 6.646l-.707.707L16 12.707l-1.647 1.647-.707-.707L15.293 12l-1.647-1.646.707-.707L16 11.293l1.646-1.647.707.707L16.707 12l1.646 1.646z"})));break;case"gridicons-bell":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 6h-4V3c0-.5-.5-1-1-1H8c-.5 0-1 .5-1 1v3H3c-.6 0-1 .4-1 1v5h20V7c0-.6-.4-1-1-1zm-6 0H9V4h6v2zM14 15h-4v-2H2v8c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-8h-8v2z"})));break;case"gridicons-calendar":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-cart":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-checkmark-circle":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4.83 12l4.58 4.59L8 18l-6-6 6-6 1.41 1.41L4.83 12zm9.76 4.59L16 18l6-6-6-6-1.41 1.41L19.17 12l-4.58 4.59z"})));break;case"gridicons-cog":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"})));break;case"gridicons-computer":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-create":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 11v8c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h8l-2 2H5v14h14v-6l2-2zM7 17h3l7.5-7.5-3-3L7 14v3zm9.94-12.94L15.5 5.5l3 3 1.44-1.44c.585-.585.585-1.535 0-2.12l-.88-.88c-.585-.585-1.535-.585-2.12 0z"})));break;case"gridicons-credit-card":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-small":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})));break;case"gridicons-custom-post-type":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-dropdown":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-flag":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-globe":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-1.962-2v-.528c0-.4.082-.74.246-1.017.163-.276.454-.546.87-.808.333-.21.572-.397.717-.565.146-.168.22-.36.22-.577 0-.172-.078-.308-.234-.41-.156-.1-.358-.15-.608-.15-.62 0-1.34.22-2.168.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.287-.23.362-.6.705-1.11 1.03-.43.278-.7.48-.807.61-.108.13-.163.282-.163.458V13h-1.885z"})));break;case"gridicons-help":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm2.003-6.41c-.23.36-.6.704-1.108 1.028-.43.28-.7.482-.808.61-.108.13-.163.283-.163.46V13H11.04v-.528c0-.4.08-.74.245-1.017.163-.276.454-.546.872-.808.332-.21.57-.397.716-.565.145-.168.217-.36.217-.577 0-.172-.077-.308-.233-.41-.156-.1-.358-.15-.608-.15-.62 0-1.342.22-2.17.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.286z"})));break;case"gridicons-history":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),o.a.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"})));break;case"gridicons-indent-left":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10v-2c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8v.5c0 .827-.673 1.5-1.5 1.5s-1.5-.673-1.5-1.5V12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.65 0 3.102-.81 4.013-2.043C16.648 15.6 17.527 16 18.5 16c1.93 0 3.5-1.57 3.5-3.5V12c0-5.523-4.477-10-10-10zm0 13c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3z"})));break;case"gridicons-menu":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 13c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2-1.105 0-2 .896-2 2v5c0 1.104.895 2 2 2zm4-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6c0 2.972 2.164 5.433 5 5.91V20h2v-3.09c2.836-.478 5-2.94 5-5.91h-2z"})));break;case"gridicons-minus-small":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-my-sites-horizon":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-not-visible":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-pages":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pencil":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-plans":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 12H6l5-10v10zm2 6V10h5l-5 10z"})));break;case"gridicons-plugins":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 13h-7v7h-2v-7H4v-2h7V4h2v7h7v2z"})));break;case"gridicons-popout":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-quote":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-reader":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reader-following":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M23,13.482L15.508,21L12,17.4l1.412-1.388l2.106,2.188l6.094-6.094L23,13.482z M15.545,15.344L20,10.889V2H2v14c0,1.1,0.9,2,2,2h4.538l4.913-4.832L15.545,15.344z M8,13H4v-1h4V13z M11,11H4v-1h7V11z M11,9H4V8h7V9z M18,6H4V4h14V6z"})));break;case"gridicons-reblog":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-reply":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14 8H6.828l2.586-2.586L8 4 3 9l5 5 1.414-1.414L6.828 10H14c2.206 0 4 1.794 4 4s-1.794 4-4 4h-2v2h2c3.314 0 6-2.686 6-6s-2.686-6-6-6z"})));break;case"gridicons-rotate":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-ios":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-sign-out":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-circle":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"})));break;case"gridicons-visible":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-chat":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M20,4h-8c-1.1,0-2,0.9-2,2v2h2c1.7,0,3,1.3,3,3v2h2v3.5l3.3-2.3c1.1-0.8,1.7-2,1.7-3.3V6C22,4.9,21.1,4,20,4z"}),o.a.createElement("g",null,o.a.createElement("path",{d:"M14,11v5c0,1.1-0.9,2-2,2H7v3.5l-3.3-2.3c-1.1-0.8-1.7-2-1.7-3.3V11c0-1.1,0.9-2,2-2h8C13.1,9,14,9.9,14,11z"}))))}return e}}));t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(17),i=n.n(r),a=n(25),o=n.n(a),s=n(7),c=n.n(s),l=n(10),u=n.n(l),p=n(6),d=n.n(p),h=n(8),f=n.n(h),m=n(9),g=n.n(m),b=n(4),v=n.n(b),_=n(0),y=n.n(_),E=n(15),w=n(3),k=n(12),j=n(1),O=n(21),C=n(33),S=n(14),T=n(13);function A(e){var t,n=function(t){f()(r,t);var n=g()(r);function r(){var e;c()(this,r);for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return e=n.call.apply(n,[this].concat(i)),v()(d()(e),"state",{options:{}}),v()(d()(e),"onOptionChange",(function(t){var n,r=t.target.name;n="checkbox"===t.target.type&&void 0!==t.target.checked?t.target.checked:t.target.value,e.updateFormStateOptionValue(r,n)})),v()(d()(e),"updateFormStateOptionValue",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;"string"==typeof t&&(t=v()({},t,n));var r=o()(o()({},e.state.options),t);return e.setState({options:r}),!0})),v()(d()(e),"resetFormStateOption",(function(t){return e.setState({options:Object(w.omit)(e.state.options,[t])}),!0})),v()(d()(e),"updateFormStateModuleOption",(function(t,n){var r,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(e.trackSettingsToggle(t,n,!e.getOptionValue(n)),e.getOptionValue(t))?a?e.props.updateOptions((r={},v()(r,t,!1),v()(r,n,!e.getOptionValue(n)),r)):e.props.updateOptions(v()({},n,!e.getOptionValue(n))):e.props.updateOptions((i={},v()(i,t,!0),v()(i,n,!0),i))})),v()(d()(e),"toggleModuleNow",(function(t){e.props.updateOptions(v()({},t,!e.getOptionValue(t)))})),v()(d()(e),"onSubmit",(function(t){t.preventDefault(),e.props.updateOptions(e.state.options).then((function(){var t={};Object(w.each)(e.state.options,(function(e,n){n=n.replace(/\-/,"_"),t[n]=e})),e.trackFormSubmission(t),e.setState({options:{}})})).then((function(){e.props.refreshSettings(),e.props.clearUnsavedSettingsFlag()}))})),v()(d()(e),"getOptionValue",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(w.get)(e.state.options,t,e.props.getSettingCurrentValue(t,n))})),v()(d()(e),"shouldSaveButtonBeDisabled",(function(){return e.isSavingAnyOption()||!e.isDirty()})),v()(d()(e),"isDirty",(function(){return!!Object.keys(e.state.options).length})),v()(d()(e),"isSavingAnyOption",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.props.isUpdating(t)})),v()(d()(e),"trackFormSubmission",(function(e){E.a.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)})),v()(d()(e),"trackSettingsToggle",(function(e,t,n){E.a.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:n?"on":"off"})})),e}return u()(r,[{key:"componentDidUpdate",value:function(){this.isDirty()&&this.props.setUnsavedSettingsFlag()}},{key:"render",value:function(){return y.a.createElement(e,i()({getOptionValue:this.getOptionValue,onSubmit:this.onSubmit,onOptionChange:this.onOptionChange,updateFormStateOptionValue:this.updateFormStateOptionValue,toggleModuleNow:this.toggleModuleNow,updateFormStateModuleOption:this.updateFormStateModuleOption,shouldSaveButtonBeDisabled:this.shouldSaveButtonBeDisabled,isSavingAnyOption:this.isSavingAnyOption,isDirty:this.isDirty,resetFormStateOption:this.resetFormStateOption},this.props))}}]),r}(y.a.Component);return t=n,Object(k.b)((function(e,t){return{validValues:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof Object(w.get)(t,["module","module"])&&(r=t.module.module),Object(O.e)(e,r,n)},getOptionCurrentValue:function(t,n){return Object(O.d)(e,t,n)},getSettingCurrentValue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(C.f)(e,t,n)},getSiteRoles:function(){return Object(S.q)(e)},isUpdating:function(t){return Object(C.j)(e,t)},adminEmailAddress:Object(S.d)(e),currentIp:Object(S.h)(e),siteAdminUrl:Object(S.n)(e),isCurrentUserLinked:Object(T.n)(e)}}),(function(e){return{updateOptions:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(Object(C.l)(t,n))},regeneratePostByEmailAddress:function(){var t={progress:Object(j.__)("Updating Post by Email address…","jetpack"),success:Object(j.__)("Regenerated Post by Email address.","jetpack"),error:function(e){return Object(j.sprintf)(Object(j.__)("Error regenerating Post by Email address. %s","jetpack"),e)}};return e(Object(C.l)({post_by_email_address:"regenerate"},t))},setUnsavedSettingsFlag:function(){return e(Object(C.k)())},clearUnsavedSettingsFlag:function(){return e(Object(C.c)())},refreshSettings:function(){return e(Object(C.e)())}}}))(t)}},,function(e,t,n){"use strict";var r=n(75);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"d",(function(){return r.c})),n.d(t,"f",(function(){return r.d})),n.d(t,"g",(function(){return r.e})),n.d(t,"h",(function(){return r.f})),n.d(t,"i",(function(){return r.g})),n.d(t,"j",(function(){return r.h}));var i=n(138);n.d(t,"c",(function(){return i.a})),n.d(t,"e",(function(){return i.b})),n.d(t,"k",(function(){return i.c})),n.d(t,"l",(function(){return i.d}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(7),i=n.n(r),a=n(10),o=n.n(a),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),f=n.n(h),m=n(0),g=n.n(m),b=n(2),v=n.n(b),_=n(12),y=n(24),E=n(1),w=n(391),k=n(15),j=n(35),O=n(21),C=function(e){u()(n,e);var t=d()(n);function n(){var e;i()(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return e=t.call.apply(t,[this].concat(a)),f()(c()(e),"toggleModule",(function(){return e.trackModuleToggle(e.props.slug,e.props.activated),e.props.toggleModule(e.props.slug,e.props.activated)})),f()(c()(e),"trackModuleToggle",(function(e,t){"stats"!==e&&k.a.tracks.recordEvent("jetpack_wpa_module_toggle",{module:e,toggled:t?"off":"on"})})),f()(c()(e),"isDisabledByOverride",(function(){var t=e.props.getModuleOverride(e.props.slug);return e.props.overrideCondition?e.props.overrideCondition===t:!!t})),f()(c()(e),"getDisabledReason",(function(){if(!e.isDisabledByOverride())return null;var t=e.props.getModuleOverride(e.props.slug),n={link:g.a.createElement("a",{href:Object(w.a)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline"}})};switch(t){case"active":return Object(y.createInterpolateElement)(Object(E.__)("This feature has been enabled by a site administrator. <link>Learn more</link>.","jetpack"),n);case"inactive":return Object(y.createInterpolateElement)(Object(E.__)("This feature has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),n);default:return Object(y.createInterpolateElement)(Object(E.__)("This feature is being managed by a site administrator. <link>Learn more</link>.","jetpack"),n)}})),e}return o()(n,[{key:"render",value:function(){return g.a.createElement(j.a,{checked:this.props.activated||this.props.isModuleActivated,toggling:this.props.toggling,className:this.props.className,disabled:this.props.disabled||this.isDisabledByOverride(),id:this.props.id,onChange:this.toggleModule,disabledReason:this.getDisabledReason()},this.props.children)}}]),n}(m.Component);f()(C,"displayName","ModuleToggle"),f()(C,"propTypes",{toggleModule:v.a.func,activated:v.a.bool,disabled:v.a.bool,className:v.a.string,compact:v.a.bool,id:v.a.string,overrideCondition:v.a.string}),f()(C,"defaultProps",{activated:!1,disabled:!1,overrideCondition:""});var S=Object(_.b)((function(e){return{getModuleOverride:function(t){return Object(O.f)(e,t)}}}))(C)},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r=n(17),i=n.n(r),a=n(7),o=n.n(a),s=n(10),c=n.n(s),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),f=n.n(h),m=n(0),g=n.n(m),b=n(16),v=n.n(b),_=n(3),y=n(6),E=n.n(y),w=n(2),k=n.n(w),j=n(89),O=(n(383),function(e){u()(n,e);var t=d()(n);function n(){var e;return o()(this,n),e=t.apply(this,arguments),f()(E()(e),"state",{showPopover:!1}),f()(E()(e),"togglePopover",(function(){e.setState({showPopover:!e.state.showPopover})})),f()(E()(e),"_onPopoverClose",(function(){e.setState({showPopover:!1})})),f()(E()(e),"renderPopover",(function(){return g.a.createElement(j.a,{isVisible:e.state.showPopover,context:e.refs&&e.refs.toggleSwitch,position:e.props.disabledPopoverPosition,onClose:e._onPopoverClose,className:"dops-info-popover__tooltip"},e.props.disabledReason)})),e.onKeyDown=e.onKeyDown.bind(E()(e)),e.onClick=e.onClick.bind(E()(e)),e.onLabelClick=e.onLabelClick.bind(E()(e)),e}return c()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.id=this.constructor.idNum++}},{key:"onKeyDown",value:function(e){this.props.disabled||("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.props.onChange()),this.props.onKeyDown(e))}},{key:"onClick",value:function(){this.props.disabled?this.props.disabledReason&&this.togglePopover():this.props.onChange()}},{key:"onLabelClick",value:function(e){if(!this.props.disabled){var t=e.target.nodeName.toLowerCase();"a"!==t&&"input"!==t&&"select"!==t&&(e.preventDefault(),this.props.onChange())}}},{key:"render",value:function(){var e=this.props.id||"toggle-"+this.id,t=v()("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return g.a.createElement("span",null,g.a.createElement("input",{className:t,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),g.a.createElement("label",{className:"form-toggle__label",htmlFor:e},g.a.createElement("span",{className:"form-toggle__switch",disabled:this.props.disabled,id:e,onClick:this.onClick,onKeyDown:this.onKeyDown,role:"checkbox","aria-checked":this.props.checked,"aria-label":this.props["aria-label"],tabIndex:this.props.disabled?-1:0,ref:"toggleSwitch"}),g.a.createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)),this.renderPopover())}}]),n}(m.Component));f()(O,"propTypes",{onChange:k.a.func,onKeyDown:k.a.func,checked:k.a.bool,disabled:k.a.bool,id:k.a.string,className:k.a.string,toggling:k.a.bool,"aria-label":k.a.string,children:k.a.node,disabledReason:k.a.node}),f()(O,"defaultProps",{checked:!1,disabled:!1,onKeyDown:function(){},onChange:function(){},disabledPopoverPosition:"bottom",disabledReason:""}),f()(O,"idNum",0);var C=function(e){u()(n,e);var t=d()(n);function n(){return o()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return g.a.createElement(O,i()({},Object(_.omit)(this.props,"className"),{className:v()(this.props.className,"is-compact")}),this.props.children)}}]),n}(g.a.Component);f()(C,"displayName","CompactFormToggle")},function(e,t,n){"use strict";n.d(t,"c",(function(){return r.b})),n.d(t,"b",(function(){return r.a})),n.d(t,"d",(function(){return r.c})),n.d(t,"e",(function(){return r.d})),n.d(t,"a",(function(){return o}));var r=n(100),i=n(5),a=n(20),o=function(){return function(e){return e({type:i.JETPACK_PLUGINS_DATA_FETCH}),a.a.fetchPluginsData().then((function(t){return e({type:i.JETPACK_PLUGINS_DATA_FETCH_RECEIVE,pluginsData:t}),t})).catch((function(t){e({type:i.JETPACK_PLUGINS_DATA_FETCH_FAIL,error:t})}))}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"r",(function(){return o})),n.d(t,"q",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"s",(function(){return p})),n.d(t,"d",(function(){return d})),n.d(t,"p",(function(){return O})),n.d(t,"m",(function(){return C})),n.d(t,"o",(function(){return S})),n.d(t,"n",(function(){return T})),n.d(t,"e",(function(){return A})),n.d(t,"l",(function(){return x})),n.d(t,"i",(function(){return R})),n.d(t,"f",(function(){return D})),n.d(t,"h",(function(){return U})),n.d(t,"k",(function(){return L})),n.d(t,"j",(function(){return F})),n.d(t,"g",(function(){return z}));var r=n(20),i=n(5),a=function(){return function(e){return e({type:i.JETPACK_RECOMMENDATIONS_DATA_FETCH}),r.a.fetchRecommendationsData().then((function(t){e({type:i.JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE,data:t})})).catch((function(t){e({type:i.JETPACK_RECOMMENDATIONS_DATA_FETCH_FAIL,error:t})}))}},o=function(e){return function(t){t({type:i.JETPACK_RECOMMENDATIONS_DATA_UPDATE,data:e})}},s=function(e,t){var n=t().jetpack.recommendations;return e({type:i.JETPACK_RECOMMENDATIONS_DATA_SAVE}),r.a.saveRecommendationsData(n.data).then((function(){e({type:i.JETPACK_RECOMMENDATIONS_DATA_SAVE_SUCCESS})})).catch((function(t){e({type:i.JETPACK_RECOMMENDATIONS_DATA_SAVE_FAIL,error:t})}))},c=function(){return function(e,t){return s(e,t)}},l=function(e){return function(t,n){return t({type:i.JETPACK_RECOMMENDATIONS_DATA_ADD_SELECTED_RECOMMENDATION,slug:e}),s(t,n)}},u=function(e){return function(t,n){return t({type:i.JETPACK_RECOMMENDATIONS_DATA_ADD_SKIPPED_RECOMMENDATION,slug:e}),s(t,n)}},p=function(e){return function(t,n){t({type:i.JETPACK_RECOMMENDATIONS_STEP_UPDATE,step:e});var a=n().jetpack.recommendations;return r.a.updateRecommendationsStep(a.step).then((function(){t({type:i.JETPACK_RECOMMENDATIONS_STEP_UPDATE_SUCCESS})})).catch((function(e){t({type:i.JETPACK_RECOMMENDATIONS_STEP_UPDATE_FAIL,error:e})}))}},d=function(){return function(e){return e({type:i.JETPACK_RECOMMENDATIONS_UPSELL_FETCH}),r.a.fetchRecommendationsUpsell().then((function(t){e({type:i.JETPACK_RECOMMENDATIONS_UPSELL_FETCH_RECEIVE,upsell:t})})).catch((function(t){return e({type:i.JETPACK_RECOMMENDATIONS_UPSELL_FETCH_FAIL,error:t,upsell:{hide_upsell:!0}})}))}},h=n(148),f=n.n(h),m=n(1),g=n(19),b=n(3),v=n(71),_=n(65),y=n(33),E=n(23),w=n(13),k=n(36),j=function(e,t){if(Array.isArray(e)&&Array.isArray(t))return Object(b.union)(e,t)},O=Object(g.c)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE:case i.JETPACK_RECOMMENDATIONS_DATA_UPDATE:return Object(b.assign)({},e,t.data);case i.JETPACK_RECOMMENDATIONS_DATA_ADD_SELECTED_RECOMMENDATION:var n=Object(b.mergeWith)({},e,{selectedRecommendations:[t.slug],skippedRecommendations:[]},j);return n.skippedRecommendations=Object(b.difference)(e.skippedRecommendations,[t.slug]),n;case i.JETPACK_RECOMMENDATIONS_DATA_ADD_SKIPPED_RECOMMENDATION:var r=Object(b.mergeWith)({},e,{selectedRecommendations:[],skippedRecommendations:[t.slug]},j);return r.selectedRecommendations=Object(b.difference)(e.selectedRecommendations,[t.slug]),r;default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.JETPACK_RECOMMENDATIONS_DATA_FETCH:return Object(b.assign)({},e,{isFetchingRecommendationsData:!0});case i.JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE:return Object(b.assign)({},e,{isRecommendationsDataLoaded:!0,isFetchingRecommendationsData:!1});case i.JETPACK_RECOMMENDATIONS_DATA_FETCH_FAIL:return Object(b.assign)({},e,{isFetchingRecommendationsData:!1});case i.JETPACK_RECOMMENDATIONS_UPSELL_FETCH:return Object(b.assign)({},e,{isFetchingRecommendationsUpsell:!0});case i.JETPACK_RECOMMENDATIONS_UPSELL_FETCH_RECEIVE:case i.JETPACK_RECOMMENDATIONS_UPSELL_FETCH_FAIL:return Object(b.assign)({},e,{isFetchingRecommendationsUpsell:!1});default:return e}},step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.JETPACK_RECOMMENDATIONS_STEP_UPDATE:return t.step;default:return e}},upsell:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.JETPACK_RECOMMENDATIONS_UPSELL_FETCH_RECEIVE:case i.JETPACK_RECOMMENDATIONS_UPSELL_FETCH_FAIL:return t.upsell;default:return e}}}),C=function(e){return!!e.jetpack.recommendations.requests.isFetchingRecommendationsData},S=function(e){return!!e.jetpack.recommendations.requests.isRecommendationsDataLoaded},T=function(e){return!!e.jetpack.recommendations.requests.isFetchingRecommendationsUpsell},A=function(e,t){return Object(b.get)(e.jetpack,["recommendations","data",t],!1)},M={"setup-wizard-completed":"summary","banner-completed":"woocommerce","not-started":"site-type-question","site-type-question":"woocommerce",woocommerce:"monitor",monitor:"related-posts","related-posts":"creative-mail","creative-mail":"site-accelerator","site-accelerator":"summary",summary:"summary"},N={"not-started":"#/recommendations/site-type","site-type-question":"#/recommendations/site-type",woocommerce:"#/recommendations/woocommerce",monitor:"#/recommendations/monitor","related-posts":"#/recommendations/related-posts","creative-mail":"#/recommendations/creative-mail","site-accelerator":"#/recommendations/site-accelerator",summary:"#/recommendations/summary"},x=function(e,t){switch(t){case"creative-mail":return!!Object(k.d)(e,"creative-mail-by-constant-contact/creative-mail-plugin.php");case"monitor":return!!Object(y.f)(e,"monitor");case"related-posts":return!!Object(y.f)(e,"related-posts");case"site-accelerator":return!!Object(y.f)(e,"photon")&&Object(y.f)(e,"photon-cdn");case"woocommerce":return!!Object(k.d)(e,"woocommerce/woocommerce.php");default:throw"Unknown featureSlug in isFeatureActive() in recommendations/reducer.js: ".concat(t)}},P=function(e,t){switch(t){case"setup-wizard-completed":case"banner-completed":case"not-started":return!1;case"site-type-question":case"summary":return!0;case"woocommerce":return!!A(e,"site-type-store")&&!x(e,t);case"monitor":return Object(w.k)(e)&&!x(e,t);default:return!x(e,t)}},I=function(e,t){for(var n=M[t];!P(e,n);)n=M[n];return n},R=function(e){var t=""===Object(b.get)(e.jetpack,["recommendations","step"],"")?Object(v.k)(e):e.jetpack.recommendations.step;return["setup-wizard-completed","banner-completed"].includes(t)?I(e,t):t},D=function(e){var t=R(e),n=I(e,t);return N[n]},U=function(e){for(var t={"site-type-store":Object(m.__)("store","jetpack"),"site-type-business":Object(m.__)("business site","jetpack"),"site-type-personal":Object(m.__)("personal site","jetpack"),"site-type-other":Object(m.__)("site","jetpack")},n=0,r=["site-type-store","site-type-business","site-type-personal","site-type-other"];n<r.length;n++){var i=r[n];if(!0===A(e,i))return t[i]}return t["site-type-other"]},L=function(e){return Object(b.get)(e.jetpack,["recommendations","upsell"],{})},F=function(e){var t,n=["woocommerce","monitor","related-posts","creative-mail","site-accelerator"].filter((function(t){return function(e,t){switch(t){case"woocommerce":return!0===A(e,"site-type-store");case"monitor":return Object(w.k)(e);default:return!0}}(e,t)})),r=[],i=[],a=f()(n);try{for(a.s();!(t=a.n()).done;){var o=t.value;x(e,o)?r.push(o):i.push(o)}}catch(s){a.e(s)}finally{a.f()}return{selected:r,skipped:i}},z=function(e){var t=Object(E.p)(e),n=Object(_.b)(e),r=t.product_slug,i=n.state;return t.product_slug&&i?"jetpack_free"!==r||Object(E.s)(e)?"awaiting_credentials"!==i||Object(E.t)(e)?["active","provisioning"].includes(i)?"manage-security":"download-app":"one-click-restores":"upsell":"loading"}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(335).Buffer}catch(O){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var p=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)p*=t;this.imuln(p),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,p=67108863&c,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var f=l-h|0;u+=(o=(i=0|e.words[f])*(a=0|t.words[h])+p)/67108864|0,p=67108863&o}n.words[l]=0|p,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);n=0!==(a=s>>>24-i&16777215)||o!==this.length-1?u[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=p[e],h=d[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(h).toString(e);n=(f=f.idivn(h)).isZero()?m+n:u[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,l=new e(a),u=this.clone();if(c){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[s]=o;for(;s<a;s++)l[s]=0}else{for(s=0;s<a-i;s++)l[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),l[a-s-1]=o}return l},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,l=0,u=0|o[0],p=8191&u,d=u>>>13,h=0|o[1],f=8191&h,m=h>>>13,g=0|o[2],b=8191&g,v=g>>>13,_=0|o[3],y=8191&_,E=_>>>13,w=0|o[4],k=8191&w,j=w>>>13,O=0|o[5],C=8191&O,S=O>>>13,T=0|o[6],A=8191&T,M=T>>>13,N=0|o[7],x=8191&N,P=N>>>13,I=0|o[8],R=8191&I,D=I>>>13,U=0|o[9],L=8191&U,F=U>>>13,z=0|s[0],B=8191&z,V=z>>>13,H=0|s[1],K=8191&H,J=H>>>13,q=0|s[2],W=8191&q,G=q>>>13,Y=0|s[3],$=8191&Y,Z=Y>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],pe=8191&ue,de=ue>>>13,he=0|s[9],fe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(p,B))|0)+((8191&(i=(i=Math.imul(p,V))+Math.imul(d,B)|0))<<13)|0;l=((a=Math.imul(d,V))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(f,B),i=(i=Math.imul(f,V))+Math.imul(m,B)|0,a=Math.imul(m,V);var be=(l+(r=r+Math.imul(p,K)|0)|0)+((8191&(i=(i=i+Math.imul(p,J)|0)+Math.imul(d,K)|0))<<13)|0;l=((a=a+Math.imul(d,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,B),i=(i=Math.imul(b,V))+Math.imul(v,B)|0,a=Math.imul(v,V),r=r+Math.imul(f,K)|0,i=(i=i+Math.imul(f,J)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,J)|0;var ve=(l+(r=r+Math.imul(p,W)|0)|0)+((8191&(i=(i=i+Math.imul(p,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((a=a+Math.imul(d,G)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,B),i=(i=Math.imul(y,V))+Math.imul(E,B)|0,a=Math.imul(E,V),r=r+Math.imul(b,K)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,J)|0,r=r+Math.imul(f,W)|0,i=(i=i+Math.imul(f,G)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,G)|0;var _e=(l+(r=r+Math.imul(p,$)|0)|0)+((8191&(i=(i=i+Math.imul(p,Z)|0)+Math.imul(d,$)|0))<<13)|0;l=((a=a+Math.imul(d,Z)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(k,B),i=(i=Math.imul(k,V))+Math.imul(j,B)|0,a=Math.imul(j,V),r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(E,K)|0,a=a+Math.imul(E,J)|0,r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,Z)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,Z)|0;var ye=(l+(r=r+Math.imul(p,Q)|0)|0)+((8191&(i=(i=i+Math.imul(p,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,B),i=(i=Math.imul(C,V))+Math.imul(S,B)|0,a=Math.imul(S,V),r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(j,K)|0,a=a+Math.imul(j,J)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(E,W)|0,a=a+Math.imul(E,G)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,Z)|0,r=r+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var Ee=(l+(r=r+Math.imul(p,ne)|0)|0)+((8191&(i=(i=i+Math.imul(p,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((a=a+Math.imul(d,re)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(A,B),i=(i=Math.imul(A,V))+Math.imul(M,B)|0,a=Math.imul(M,V),r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,J)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(j,W)|0,a=a+Math.imul(j,G)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(E,$)|0,a=a+Math.imul(E,Z)|0,r=r+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0;var we=(l+(r=r+Math.imul(p,ae)|0)|0)+((8191&(i=(i=i+Math.imul(p,oe)|0)+Math.imul(d,ae)|0))<<13)|0;l=((a=a+Math.imul(d,oe)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(x,B),i=(i=Math.imul(x,V))+Math.imul(P,B)|0,a=Math.imul(P,V),r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,J)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,G)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(j,$)|0,a=a+Math.imul(j,Z)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(E,Q)|0,a=a+Math.imul(E,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(f,ae)|0,i=(i=i+Math.imul(f,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var ke=(l+(r=r+Math.imul(p,ce)|0)|0)+((8191&(i=(i=i+Math.imul(p,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((a=a+Math.imul(d,le)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,B),i=(i=Math.imul(R,V))+Math.imul(D,B)|0,a=Math.imul(D,V),r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,J)|0,r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(M,W)|0,a=a+Math.imul(M,G)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,Z)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(j,Q)|0,a=a+Math.imul(j,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(E,ne)|0,a=a+Math.imul(E,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,r=r+Math.imul(f,ce)|0,i=(i=i+Math.imul(f,le)|0)+Math.imul(m,ce)|0,a=a+Math.imul(m,le)|0;var je=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,de)|0)+Math.imul(d,pe)|0))<<13)|0;l=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(L,B),i=(i=Math.imul(L,V))+Math.imul(F,B)|0,a=Math.imul(F,V),r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(D,K)|0,a=a+Math.imul(D,J)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,G)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,Z)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(j,ne)|0,a=a+Math.imul(j,re)|0,r=r+Math.imul(y,ae)|0,i=(i=i+Math.imul(y,oe)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,le)|0,r=r+Math.imul(f,pe)|0,i=(i=i+Math.imul(f,de)|0)+Math.imul(m,pe)|0,a=a+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(p,fe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(d,fe)|0))<<13)|0;l=((a=a+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,K),i=(i=Math.imul(L,J))+Math.imul(F,K)|0,a=Math.imul(F,J),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(D,W)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,Z)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(S,ne)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(j,ae)|0,a=a+Math.imul(j,oe)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(E,ce)|0,a=a+Math.imul(E,le)|0,r=r+Math.imul(b,pe)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(v,pe)|0,a=a+Math.imul(v,de)|0;var Ce=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;l=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(F,W)|0,a=Math.imul(F,G),r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,Z)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(P,Q)|0,a=a+Math.imul(P,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,le)|0)+Math.imul(j,ce)|0,a=a+Math.imul(j,le)|0,r=r+Math.imul(y,pe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(E,pe)|0,a=a+Math.imul(E,de)|0;var Se=(l+(r=r+Math.imul(b,fe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(v,fe)|0))<<13)|0;l=((a=a+Math.imul(v,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,a=Math.imul(F,Z),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(P,ne)|0,a=a+Math.imul(P,re)|0,r=r+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(S,ce)|0,a=a+Math.imul(S,le)|0,r=r+Math.imul(k,pe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(j,pe)|0,a=a+Math.imul(j,de)|0;var Te=(l+(r=r+Math.imul(y,fe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(E,fe)|0))<<13)|0;l=((a=a+Math.imul(E,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(x,ae)|0,i=(i=i+Math.imul(x,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,r=r+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(C,pe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(S,pe)|0,a=a+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(k,fe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(j,fe)|0))<<13)|0;l=((a=a+Math.imul(j,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(F,ne)|0,a=Math.imul(F,re),r=r+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(P,ce)|0,a=a+Math.imul(P,le)|0,r=r+Math.imul(A,pe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(M,pe)|0,a=a+Math.imul(M,de)|0;var Me=(l+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(S,fe)|0))<<13)|0;l=((a=a+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ae),i=(i=Math.imul(L,oe))+Math.imul(F,ae)|0,a=Math.imul(F,oe),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(x,pe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(P,pe)|0,a=a+Math.imul(P,de)|0;var Ne=(l+(r=r+Math.imul(A,fe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(M,fe)|0))<<13)|0;l=((a=a+Math.imul(M,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(F,ce)|0,a=Math.imul(F,le),r=r+Math.imul(R,pe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(D,pe)|0,a=a+Math.imul(D,de)|0;var xe=(l+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(P,fe)|0))<<13)|0;l=((a=a+Math.imul(P,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(L,pe),i=(i=Math.imul(L,de))+Math.imul(F,pe)|0,a=Math.imul(F,de);var Pe=(l+(r=r+Math.imul(R,fe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(D,fe)|0))<<13)|0;l=((a=a+Math.imul(D,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Ie=(l+(r=Math.imul(L,fe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,fe)|0))<<13)|0;return l=((a=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,c[0]=ge,c[1]=be,c[2]=ve,c[3]=_e,c[4]=ye,c[5]=Ee,c[6]=we,c[7]=ke,c[8]=je,c[9]=Oe,c[10]=Ce,c[11]=Se,c[12]=Te,c[13]=Ae,c[14]=Me,c[15]=Ne,c[16]=xe,c[17]=Pe,c[18]=Ie,0!==l&&(c[19]=l,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(f=h),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,p=(0|e.words[u])*(0|t.words[l]),d=67108863&p;s=67108863&(d=d+s|0),i+=(o=(o=o+(p/67108864|0)|0)+(d>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},g.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var p=c,d=l,h=0;h<o;h++){var f=n[u+h],m=r[u+h],g=n[u+h+o],b=r[u+h+o],v=p*g-d*b;b=p*b+d*g,g=v,n[u+h]=f+g,r[u+h]=m+b,n[u+h+o]=f-g,r[u+h+o]=m-b,h!==s&&(v=c*p-l*d,d=c*d+l*p,p=v)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,n,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===a),r(0==(-8192&a))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),p=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,p,r,i);for(var h=0;h<r;h++){var f=s[h]*u[h]-c[h]*p[h];c[h]=s[h]*p[h]+c[h]*u[h],s[h]=f}return this.conjugate(s,c,r),this.transform(s,c,d,a,r,i),this.conjugate(d,a,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),m(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var p=0|this.words[l];this.words[l]=u<<26-a|p>>>a,u=p&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},a.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,o=e.length+n;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var p=c-1;p>=0;p--){var d=67108864*(0|r.words[i.length+p])+(0|r.words[i.length+p-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(i,d,p);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,p),r.isZero()||(r.negative^=1);s&&(s.words[p]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),p=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(p)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(p)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var p=0,d=1;0==(n.words[0]&d)&&p<26;++p,d<<=1);if(p>0)for(n.iushrn(p);p-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function j(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(_,v),_.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&n,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&n)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(y,v),i(E,v),i(w,v),w.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new y;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return b[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var p=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),f=o;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<f);var b=this.pow(p,new a(1).iushln(f-g-1));d=d.redMul(b),p=b.redSqr(),h=h.redMul(p),f=g}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var p=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==p||0!==o?(o<<=1,o|=p,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new j(e)},i(j,k),j.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},j.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},j.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},j.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},j.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(204)(e))},function(e,t){e.exports=window.ReactDOM},function(e,t,n){"use strict";n.d(t,"o",(function(){return u})),n.d(t,"l",(function(){return p})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return _})),n.d(t,"j",(function(){return y})),n.d(t,"k",(function(){return E})),n.d(t,"m",(function(){return w})),n.d(t,"n",(function(){return k})),n.d(t,"e",(function(){return j}));var r=n(4),i=n.n(r),a=n(19),o=n(3),s=n(5),c=n(36),l={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},u=Object(a.c)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_SET_INITIAL_STATE:return Object(o.assign)({},t.initialState.getModules);case s.JETPACK_MODULES_LIST_RECEIVE:return Object(o.assign)({},e,t.modules);case s.JETPACK_MODULE_ACTIVATE_SUCCESS:return Object(o.assign)({},e,i()({},t.module,Object(o.assign)({},e[t.module],{activated:!0})));case s.JETPACK_MODULE_DEACTIVATE_SUCCESS:return Object(o.assign)({},e,i()({},t.module,Object(o.assign)({},e[t.module],{activated:!1})));case s.JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS:var n=Object(o.assign)({},e[t.module]);return Object.keys(t.newOptionValues).forEach((function(e){n.options[e].current_value=t.newOptionValues[e]})),Object(o.assign)({},e,i()({},t.module,n));default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_MODULES_LIST_FETCH:return Object(o.assign)({},e,{fetchingModulesList:!0});case s.JETPACK_MODULES_LIST_FETCH_FAIL:case s.JETPACK_MODULES_LIST_RECEIVE:return Object(o.assign)({},e,{fetchingModulesList:!1});case s.JETPACK_MODULE_ACTIVATE:return Object(o.assign)({},e,{activating:Object(o.assign)({},e.activating,i()({},t.module,!0))});case s.JETPACK_MODULE_ACTIVATE_FAIL:case s.JETPACK_MODULE_ACTIVATE_SUCCESS:return Object(o.assign)({},e,{activating:Object(o.assign)({},e.activating,i()({},t.module,!1))});case s.JETPACK_MODULE_DEACTIVATE:return Object(o.assign)({},e,{deactivating:Object(o.assign)({},e.deactivating,i()({},t.module,!0))});case s.JETPACK_MODULE_DEACTIVATE_FAIL:case s.JETPACK_MODULE_DEACTIVATE_SUCCESS:return Object(o.assign)({},e,{deactivating:Object(o.assign)({},e.deactivating,i()({},t.module,!1))});case s.JETPACK_MODULE_UPDATE_OPTIONS:var n=Object(o.assign)({},e.updatingOption);return n[t.module]=Object(o.assign)({},n[t.module]),Object.keys(t.newOptionValues).forEach((function(e){n[t.module][e]=!0})),Object(o.assign)({},e,{updatingOption:Object(o.assign)({},e.updatingOption,n)});case s.JETPACK_MODULE_UPDATE_OPTIONS_FAIL:case s.JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS:var r=Object(o.assign)({},e.updatingOption);return r[t.module]=Object(o.assign)({},r[t.module]),Object.keys(t.newOptionValues).forEach((function(e){r[t.module][e]=!1})),Object(o.assign)({},e,{updatingOption:Object(o.assign)({},e.updatingOption,r)});default:return e}}});function p(e,t){return!!e.jetpack.modules.requests.activating[t]}function d(e,t,n){return Object(o.get)(e.jetpack.modules.items,[t,"options",n,"current_value"])}function h(e,t,n){return Object(o.get)(e.jetpack.modules.items,[t,"options",n,"enum_labels"],!1)}function f(e){return e.jetpack.modules.items}function m(e){return Object.keys(e.jetpack.modules.items).filter((function(t){return e.jetpack.modules.items[t].activated}))}function g(e,t){return Object(o.get)(e.jetpack.modules.items,t,{})}function b(e){return Object.keys(e.jetpack.modules.items).filter((function(t){return e.jetpack.modules.items[t].requires_connection}))}function v(e){return Object.keys(e.jetpack.modules.items).filter((function(t){return e.jetpack.modules.items[t].requires_user_connection}))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.keys(f(e));return 0<Object(o.intersection)(n,t).length}function y(e){return _(e,["carousel","lazy-images","photon","photon-cdn","search","videopress"])}function E(e){return _(e,["protect","sso","vaultpress"])||Object(c.d)(e,"akismet/akismet.php")}function w(e,t){return!!Object(o.get)(e.jetpack.modules.items,[t,"activated"],!1)}function k(e,t){return Object(o.includes)(Object.keys(e.jetpack.modules.items),t)}function j(e,t){return Object(o.get)(e.jetpack.modules.items,[t,"override"],!1)}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */var r=n(292),i=n(293),a=n(172);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|f(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===c)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var p=!0,d=0;d<c;d++)if(l(e,a+d)!==l(t,d)){p=!1;break}if(p)return a}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function y(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function E(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return E(e,t,n,r)}function k(e,t,n,r){return H(V(t),e,n,r)}function j(e,t,n,r){return H(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,c,l=e[i],u=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=p}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=S));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==window.TYPED_ARRAY_SUPPORT?window.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),p=0;p<s;++p)if(l[p]!==u[p]){a=l[p],o=u[p];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=z(e[a]);return i}function N(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function x(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function D(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,a){return a||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,a){return a||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||x(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||x(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:B(new c(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(0),o=n.n(a),s=n(52),c=n.n(s),l=n(72),u=n.n(l),p=n(16),d=n.n(p),h=n(3),f=n(30);n(385);t.a=c()({displayName:"ExternalLink",mixins:[u.a],propTypes:{className:i.a.string,href:i.a.string,onClick:i.a.func,icon:i.a.bool,iconSize:i.a.number},getDefaultProps:function(){return{iconSize:18}},render:function(){var e=d()("dops-external-link",this.props.className,{"has-icon":!!this.props.icon}),t=Object(h.assign)({},Object(h.omit)(this.props,"icon","iconSize"),{className:e,rel:"external"});return o.a.createElement("a",t,this.props.children,this.props.icon?o.a.createElement(f.a,{icon:"external",size:this.props.iconSize}):null)}})},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!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:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,l=[],u=!1,p=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(38),a=n(45),o=n(206);r.assert=a,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<r.length;o++){var s,c=a.andln(i-1);a.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,a.isubn(s)):s=0,r[o]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var o,s,c=e.andln(3)+i&3,l=t.andln(3)+a&3;3===c&&(c=-1),3===l&&(l=-1),o=0==(1&c)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==l?c:-c,n[0].push(o),s=0==(1&l)?0:3!==(r=t.andln(7)+a&7)&&5!==r||2!==c?l:-l,n[1].push(s),2*i===o+1&&(i=1-i),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=n(10),o=n.n(a),s=n(8),c=n.n(s),l=n(9),u=n.n(l),p=n(4),d=n.n(p),h=n(2),f=n.n(h),m=n(0),g=n(12),b=n(3),v=n(23),_=n(13),y=function(e){c()(n,e);var t=u()(n);function n(){return i()(this,n),t.apply(this,arguments)}return o()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingSiteData||this.props.isOfflineMode||!Object(b.isEmpty)(this.props.sitePlan)||(this.props.fetchSiteData(),this.props.fetchSiteFeatures(),this.props.fetchAvailablePlans(),this.props.fetchSitePurchases())}},{key:"render",value:function(){return null}}]),n}(m.Component);d()(y,"propTypes",{isFetchingSiteData:f.a.bool,isOfflineMode:f.a.bool,sitePlan:f.a.object}),d()(y,"defaultProps",{isFetchingSiteData:!1,isOfflineMode:!1,sitePlan:{}}),t.a=Object(g.b)((function(e){return{isFetchingSiteData:Object(v.x)(e),isOfflineMode:Object(_.s)(e),sitePlan:Object(v.p)(e)}}),(function(e){return{fetchSiteData:function(){return e(Object(v.d)())},fetchSiteFeatures:function(){return e(Object(v.e)())},fetchAvailablePlans:function(){return e(Object(v.a)())},fetchSitePurchases:function(){return e(Object(v.f)())}}}))(y)},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(45),i=n(27);function a(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=c(i.toString(16))}return n},t.zero2=s,t.zero8=c,t.join32=function(e,t,n,i){var a=n-t;r(a%4==0);for(var o=new Array(a/4),s=0,c=t;s<o.length;s++,c+=4){var l;l="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[s]=l>>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];"big"===t?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0,o=(a<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,a,o,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+a>>>0)<a?1:0,e+n+i+o+(c+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,a,o,s){return t+r+a+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,a,o,s,c,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+a>>>0)<a?1:0,u+=(p=p+s>>>0)<s?1:0,e+n+i+o+c+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,a,o,s,c,l){return t+r+a+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){(function(r){var i;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(i=!1,function(){i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(242)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(44))},function(e,t,n){var r=n(244);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";var r=n(0),i=n(247);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,a)},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(163)("wks"),i=n(120),a=n(58).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}b(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&b(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var i,a,o,s;if(l(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=u(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)a(c,this,t);else{var l=c.length,u=g(c,l);for(n=0;n<l;++n)a(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return p(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return p(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(378),i=n(379),a=n(111),o=n(380);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()}},function(e,t){e.exports=window.wp.date},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(29).Buffer,i=n(305).Transform,a=n(83).StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(27)(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){r=i}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(n){t=n}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=o},function(e,t,n){var r=n(61),i=n(160);e.exports=n(63)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(79),i=n(257),a=n(258),o=Object.defineProperty;t.f=n(63)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(92)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(94),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var a=Object.create(n(84));a.inherits=n(27);var o=n(184),s=n(128);a.inherits(p,o);for(var c=i(s.prototype),l=0;l<c.length;l++){var u=c[l];p.prototype[u]||(p.prototype[u]=s.prototype[u])}function p(e){if(!(this instanceof p))return new p(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r.b})),n.d(t,"b",(function(){return r.a})),n.d(t,"a",(function(){return o}));var r=n(101),i=n(5),a=n(20),o=function(){return function(e){return e({type:i.REWIND_STATUS_FETCH}),a.a.fetchRewindStatus().then((function(t){return e({type:i.REWIND_STATUS_FETCH_RECEIVE,status:t}),t})).catch((function(t){e({type:i.REWIND_STATUS_FETCH_FAIL,error:t})}))}}},function(e,t,n){"use strict";(function(t){var r=65536,i=4294967295;var a=n(29).Buffer,o=window.crypto||window.msCrypto;o&&o.getRandomValues?e.exports=function(e,n){if(e>i)throw new RangeError("requested too many random bytes");var s=a.allocUnsafe(e);if(e>0)if(e>r)for(var c=0;c<e;c+=r)o.getRandomValues(s.slice(c,c+r));else o.getRandomValues(s);if("function"==typeof n)return t.nextTick((function(){n(null,s)}));return s}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(44))},function(e,t,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,o,s;if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(a(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(a(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var i=n(175),a=n(179);n(27)(l,i);for(var o=r(a.prototype),s=0;s<o.length;s++){var c=o[s];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,n(44))},function(e,t,n){var r=n(29).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%i,l=Math.min(a-s,i-c),u=0;u<l;u++)n[c+u]=e[s+u];s+=l,(o+=l)%i==0&&this._update(n)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){"use strict";n.d(t,"v",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"p",(function(){return d})),n.d(t,"q",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"j",(function(){return b})),n.d(t,"k",(function(){return v})),n.d(t,"u",(function(){return _})),n.d(t,"g",(function(){return y})),n.d(t,"l",(function(){return E})),n.d(t,"i",(function(){return w})),n.d(t,"h",(function(){return k})),n.d(t,"f",(function(){return j})),n.d(t,"n",(function(){return O})),n.d(t,"r",(function(){return C})),n.d(t,"m",(function(){return S})),n.d(t,"s",(function(){return T})),n.d(t,"t",(function(){return A})),n.d(t,"c",(function(){return M})),n.d(t,"o",(function(){return N}));var r=n(25),i=n.n(r),a=n(19),o=n(3),s=n(5),c=n(21),l={disconnectingSite:!1,authorizingUserInPlace:!1,unlinkingUser:!1,fetchingConnectUrl:!1,fetchingUserData:!1,reconnectingSite:!1},u=Object(a.c)({connectUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_SET_INITIAL_STATE:return Object(o.get)(t,"initialState.connectUrl",e);case s.CONNECT_URL_FETCH_SUCCESS:return t.connectUrl;default:return e}},status:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{siteConnected:window.Initial_State.connectionStatus},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case s.JETPACK_CONNECTION_STATUS_FETCH:case s.DISCONNECT_SITE_SUCCESS:return Object(o.assign)({},n,{siteConnected:r.siteConnected});case s.USER_CONNECTION_DATA_FETCH_SUCCESS:return!0===(null===(e=r.userConnectionData)||void 0===e||null===(t=e.currentUser)||void 0===t?void 0:t.isConnected)?Object(o.assign)({},n,{siteConnected:i()(i()({},n.siteConnected),{},{hasConnectedOwner:!0})}):n;default:return n}},user:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.userData,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.USER_CONNECTION_DATA_FETCH_SUCCESS:return Object(o.assign)({},e,t.userConnectionData);case s.UNLINK_USER_SUCCESS:var n=Object(o.assign)({},e.currentUser,{isConnected:!1});return Object(o.assign)({},e,{currentUser:n});case s.MOCK_SWITCH_USER_PERMISSIONS:return Object(o.merge)({},e,t.initialState);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.DISCONNECT_SITE:return Object(o.assign)({},e,{disconnectingSite:!0});case s.UNLINK_USER:return Object(o.assign)({},e,{unlinkingUser:!0});case s.AUTH_USER_IN_PLACE:return Object(o.assign)({},e,{authorizingUserInPlace:!0});case s.AUTH_USER_IN_PLACE_SUCCESS:return Object(o.assign)({},e,{authorizingUserInPlace:!1});case s.CONNECT_URL_FETCH:return Object(o.assign)({},e,{fetchingConnectUrl:!0});case s.USER_CONNECTION_DATA_FETCH:return Object(o.assign)({},e,{fetchingUserData:!0});case s.SITE_RECONNECT:return Object(o.assign)({},e,{reconnectingSite:!0});case s.DISCONNECT_SITE_FAIL:case s.DISCONNECT_SITE_SUCCESS:return Object(o.assign)({},e,{disconnectingSite:!1});case s.UNLINK_USER_FAIL:case s.UNLINK_USER_SUCCESS:return Object(o.assign)({},e,{unlinkingUser:!1});case s.CONNECT_URL_FETCH_FAIL:case s.CONNECT_URL_FETCH_SUCCESS:return Object(o.assign)({},e,{fetchingConnectUrl:!1});case s.USER_CONNECTION_DATA_FETCH_FAIL:case s.USER_CONNECTION_DATA_FETCH_SUCCESS:return Object(o.assign)({},e,{fetchingUserData:!1});case s.SITE_RECONNECT_FAIL:case s.SITE_RECONNECT_SUCCESS:return Object(o.assign)({},e,{reconnectingSite:!1});default:return e}}});function p(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&(e.jetpack.connection.status.siteConnected.offlineMode.isActive?"offline":e.jetpack.connection.status.siteConnected.isActive)}function d(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&!0!==e.jetpack.connection.status.siteConnected.offlineMode.isActive&&e.jetpack.connection.status.siteConnected.isActive}function h(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&!0!==e.jetpack.connection.status.siteConnected.offlineMode.isActive&&e.jetpack.connection.status.siteConnected.isRegistered}function f(e){return!!Object(o.get)(e.jetpack.connection.status,["siteConnected","offlineMode","isActive"])&&Object(o.get)(e.jetpack.connection.status,["siteConnected","offlineMode"])}function m(e){return e.jetpack.connection.connectUrl}function g(e){return e.jetpack.connection.user.currentUser.wpcomUser}function b(e){return!!e.jetpack.connection.requests.disconnectingSite}function v(e){return!!e.jetpack.connection.requests.fetchingConnectUrl}function _(e){return!!e.jetpack.connection.requests.unlinkingUser}function y(e){return!!e.jetpack.connection.requests.authorizingUserInPlace}function E(e){return!!e.jetpack.connection.requests.fetchingUserData}function w(e){return!!e.jetpack.connection.user.currentUser.isConnected}function k(e){return!!e.jetpack.connection.user.currentUser.isMaster}function j(e){return Object(o.get)(e.jetpack.connection.status,["siteConnected","hasConnectedOwner"],!1)}function O(e){return"offline"===p(e)}function C(e){return Object(o.get)(e.jetpack.connection.status,["siteConnected","isStaging"],!1)}function S(e){return Object(o.get)(e.jetpack.connection.status,["siteConnected","isInIdentityCrisis"],!1)}function T(e,t){return O(e)&&function(e,t){return Object(o.includes)(Object(c.h)(e).concat(["backups","scan"]),t)}(e,t)}function A(e,t){return!j(e)&&function(e,t){return Object(o.includes)(Object(c.i)(e),t)}(e,t)}function M(e){return Object(o.get)(e.jetpack.connection.status,["siteConnected","sandboxDomain"],"")}function N(e){return!!e.jetpack.connection.requests.reconnectingSite}},function(e,t,n){"use strict";n.d(t,"x",(function(){return c})),n.d(t,"z",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"r",(function(){return p})),n.d(t,"l",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"q",(function(){return f})),n.d(t,"o",(function(){return m})),n.d(t,"s",(function(){return g})),n.d(t,"C",(function(){return b})),n.d(t,"P",(function(){return v})),n.d(t,"N",(function(){return _})),n.d(t,"L",(function(){return y})),n.d(t,"M",(function(){return E})),n.d(t,"K",(function(){return w})),n.d(t,"J",(function(){return k})),n.d(t,"I",(function(){return j})),n.d(t,"H",(function(){return O})),n.d(t,"v",(function(){return C})),n.d(t,"w",(function(){return S})),n.d(t,"O",(function(){return A})),n.d(t,"p",(function(){return M})),n.d(t,"D",(function(){return N})),n.d(t,"e",(function(){return x})),n.d(t,"f",(function(){return P})),n.d(t,"n",(function(){return I})),n.d(t,"t",(function(){return D})),n.d(t,"h",(function(){return U})),n.d(t,"m",(function(){return L})),n.d(t,"a",(function(){return F})),n.d(t,"y",(function(){return z})),n.d(t,"b",(function(){return B})),n.d(t,"E",(function(){return V})),n.d(t,"G",(function(){return H})),n.d(t,"F",(function(){return K})),n.d(t,"A",(function(){return J})),n.d(t,"j",(function(){return q})),n.d(t,"u",(function(){return Y})),n.d(t,"k",(function(){return $})),n.d(t,"g",(function(){return Z})),n.d(t,"B",(function(){return X})),n.d(t,"c",(function(){return Q}));var r=n(3),i=n(391),a=n(5),o=n(103),s=(n(99),n(20),n(13)),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.JETPACK_SET_INITIAL_STATE:return Object(r.assign)({},e,t.initialState);case a.MOCK_SWITCH_USER_PERMISSIONS:return Object(r.merge)({},e,{userData:t.initialState});default:return e}};function l(e){return!!e.jetpack.initialState.isDevVersion}function u(e){return Object(r.get)(e.jetpack.initialState,"currentVersion","")}function p(e){return Object(r.get)(e.jetpack.initialState.stats,"roles",{})}function d(e){return Object(r.get)(e.jetpack.initialState.stats,"data")}function h(e){return Object(r.get)(e.jetpack.initialState,["userData","currentUser","wpcomUser","email"])}function f(e){return Object(r.get)(e.jetpack.initialState,"rawUrl",{})}function m(e){return Object(r.get)(e.jetpack.initialState,"adminUrl",{})}function g(e){return Object(r.get)(e.jetpack.initialState,"siteTitle","")}function b(e){return Object(r.get)(e.jetpack.initialState,["connectionStatus","isPublic"])}function v(e){return!Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function _(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"publish_posts",!1)}function y(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_modules",!1)}function E(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_options",!1)}function w(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function k(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"disconnect",!1)}function j(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect",!1)}function O(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect_user",!1)}function C(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser,["gravatar"])}function S(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser,["username"])}function T(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser,"id","")}function A(e){return Object(r.get)(e.jetpack.initialState.userData.currentUser.permissions,"view_stats",!1)}function M(e){return Object(r.get)(e.jetpack.initialState.siteData,["icon"])}function N(e){return Object(r.get)(e.jetpack.initialState.siteData,["siteVisibleToSearchEngines"],!0)}function x(e){return Object(r.get)(e.jetpack.initialState,"WP_API_nonce")}function P(e){return Object(r.get)(e.jetpack.initialState,"WP_API_root")}function I(e){return Object(r.get)(e.jetpack.initialState,"purchaseToken")}function R(e){return Object(r.get)(e.jetpack.initialState,"calypsoEnv")}function D(e){return Object(r.get)(e.jetpack.initialState,"tracksUserData")}function U(e){return Object(r.get)(e.jetpack.initialState,"currentIp")}function L(e){return Object(r.get)(e.jetpack.initialState,"lastPostUrl")}function F(e){return Object(r.get)(e.jetpack.initialState.siteData,"showPromotions",!0)}function z(e){return Object(r.get)(e.jetpack.initialState.siteData,"isAtomicSite",!1)}function B(e,t){return Object(r.get)(e.jetpack.initialState.themeData,["support",t],!1)}function V(e){return Object(r.get)(e.jetpack.initialState.siteData,"showBackups",!0)}function H(e){return Object(r.get)(e.jetpack.initialState.siteData,"showRecommendations",!1)}function K(e){return Object(r.get)(e.jetpack.initialState.licensing,"showLicensingUi",!1)}function J(e){return Object(r.get)(e.jetpack.initialState.siteData,"isMultisite",!1)}function q(e){return Object(r.get)(e.jetpack.initialState.siteData,"dateFormat",!1)}function W(e){return Object(r.get)(e.jetpack.initialState,"aff","")}function G(e){return Object(r.get)(e.jetpack.initialState,"partnerSubsidiaryId","")}var Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=W(e),c=G(e),l=n||T(e),u=I(e),p=R(e);r&&"monthly"===Object(o.a)(e)&&(t+="-monthly");var d={site:f(e)};return a&&(d.aff=a),l&&(d.u=l),c&&(d.subsidiaryId=c),d.query="",Object(s.n)(e)||(d.query+="unlinked=1&"),u&&(d.query+="purchasetoken=".concat(u)),p&&(d.calypso_env=p),Object(i.a)(t,d)};function $(e){return Object(r.get)(e.jetpack.initialState,"recommendationsStep","")}function Z(e){return Object(r.get)(e.jetpack.initialState,["connectionStatus","errors"],[]).filter((function(e){return e.hasOwnProperty("action")}))}function X(e){return!!e.jetpack.initialState.isSafari}function Q(e){return!!e.jetpack.initialState.doNotUseConnectionIframe}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(248),a=(r=i)&&r.__esModule?r:{default:r};t.default={shouldComponentUpdate:a.default},e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="NEW_NOTICE",i="REMOVE_NOTICE"},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";n.d(t,"i",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return b}));var r=n(4),i=n.n(r),a=n(19),o=n(3),s=n(5),c={fetchingSettingsList:!1,settingsSent:{},updatedSettings:{}},l=Object(a.c)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_SET_INITIAL_STATE:return Object(o.assign)({},e,t.initialState.settings);case s.JETPACK_SETTINGS_FETCH_RECEIVE:return Object(o.assign)({},t.settings);case s.JETPACK_SETTING_UPDATE_SUCCESS:var n=Object.keys(t.updatedOption)[0];return Object(o.assign)({},e,i()({},n,t.updatedOption[n]));case s.JETPACK_SETTINGS_UPDATE_SUCCESS:return Object(o.assign)({},e,t.updatedOptions);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_SETTINGS_FETCH:return Object(o.assign)({},e,{fetchingSettingsList:!0});case s.JETPACK_SETTINGS_FETCH_FAIL:case s.JETPACK_SETTINGS_FETCH_RECEIVE:return Object(o.assign)({},e,{fetchingSettingsList:!1});case s.JETPACK_SETTING_UPDATE:case s.JETPACK_SETTINGS_UPDATE:return Object(o.merge)({},e,{settingsSent:Object(o.mapValues)(t.updatedOptions,(function(){return!0}))});case s.JETPACK_SETTING_UPDATE_FAIL:case s.JETPACK_SETTING_UPDATE_SUCCESS:case s.JETPACK_SETTINGS_UPDATE_FAIL:case s.JETPACK_SETTINGS_UPDATE_SUCCESS:return Object(o.merge)({},e,{settingsSent:Object(o.mapValues)(t.updatedOptions,(function(){return!1})),updatedSettings:Object(o.mapValues)(t.updatedOptions,(function(){return Boolean(t.success)}))});default:return e}},unsavedSettingsFlag:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_SETTINGS_SET_UNSAVED_FLAG:return!0;case s.JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG:return!1;default:return e}}});function u(e){return e.jetpack.settings.items}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""===n||Object(o.get)(e.jetpack.settings.items,n,!1))return Object(o.get)(e.jetpack.settings.items,t,void 0)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"object"==typeof t?Object(o.some)(Object(o.filter)(e.jetpack.settings.requests.settingsSent,(function(e,n){return Object(o.includes)(t,n)})),(function(e){return e})):e.jetpack.settings.requests.settingsSent[t]}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.jetpack.settings.requests.updatedSettings[t]}function f(e,t){return!!Object(o.get)(e.jetpack.settings.items,[t],!1)}function m(e){return Object(o.get)(e.jetpack.settings,"unsavedSettingsFlag",!1)}function g(e){return Object(o.get)(e.jetpack.settings.items,"dismiss_dash_app_card",!1)}function b(e){return Object(o.get)(e.jetpack.settings.items,"dismiss_empty_stats_card",!1)}},function(e,t,n){var r=n(58),i=n(77),a=n(78),o=n(60),s=n(80),c=function(e,t,n){var l,u,p,d=e&c.F,h=e&c.G,f=e&c.S,m=e&c.P,g=e&c.B,b=e&c.W,v=h?i:i[t]||(i[t]={}),_=v.prototype,y=h?r:f?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(u=!d&&y&&void 0!==y[l])&&s(v,l)||(p=u?y[l]:n[l],v[l]=h&&"function"!=typeof y[l]?n[l]:g&&u?a(p,r):b&&y[l]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?a(Function.call,p):p,m&&((v.virtual||(v.virtual={}))[l]=p,e&c.R&&_&&!_[l]&&o(_,l,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(158);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(62);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(27),i=n(122),a=n(124),o=n(125),s=n(59);function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new c(o(e))}},function(e,t,n){"use strict";var r=n(29).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(42).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),a=0;a<r;++a)i[a]=e[a]^n[a];return i}}).call(this,n(42).Buffer)},function(e,t,n){"use strict";var r=n(49),i=n(45);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}},function(e,t,n){var r=t;r.bignum=n(38),r.define=n(360).define,r.base=n(88),r.constants=n(212),r.decoders=n(365),r.encoders=n(367)},function(e,t,n){var r=t;r.Reporter=n(362).Reporter,r.DecoderBuffer=n(211).DecoderBuffer,r.EncoderBuffer=n(211).EncoderBuffer,r.Node=n(363)},function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=n(10),o=n.n(a),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),f=n.n(h),m=n(2),g=n.n(m),b=n(0),v=n.n(b),_=n(39),y=n.n(_),E=n(50),w=n.n(E),k=n(16),j=n.n(k),O=n(222),C=n.n(O),S=n(223),T=n.n(S),A=n(3),M=n(12),N=function(e){u()(n,e);var t=d()(n);function n(){var e;i()(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return e=t.call.apply(t,[this].concat(a)),f()(c()(e),"renderChildren",(function(){var t;t=e.props&&(Object.keys(e.props).length>1||!e.props.children)?v.a.createElement("div",e.props,e.props.children):e.props.children,e.context.store&&(t=v.a.createElement(M.a,{store:e.context.store},t)),y.a.render(t,e.container)})),e}return o()(n,[{key:"componentDidMount",value:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()}},{key:"componentDidUpdate",value:function(){this.renderChildren()}},{key:"componentWillUnmount",value:function(){this.container&&(y.a.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)}},{key:"render",value:function(){return null}}]),n}(v.a.Component);f()(N,"displayName","RootChild"),f()(N,"propTypes",{children:g.a.node}),f()(N,"contextTypes",{store:g.a.object});var x=n(56),P=n.n(x),I=n(91),R=n.n(I),D=w()("calypso:popover:util");function U(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,D("viewport: %o",e),e}var L={top:"bottom",bottom:"top",left:"right",right:"left"},F={top:"right",left:"top",bottom:"left",right:"bottom"},z=U();function B(){z=U()}var V=!1,H=function(e,t,n){var r=R()(n),i=t.clientHeight,a=t.clientWidth,o={top:r.top-i,bottom:z.height-r.bottom-i,left:r.left-a,right:z.width-r.right-a},s=e.split(/\s+/),c=P()(s,1)[0],l=P()(s,2)[1],u=function(e,t){for(var n,r=[e,L[e],F[e],L[F[e]]],i=-1/0,a=0,o=r.length;a<o;a++){var s=r[a],c=t[s];if(c>0)return s;c>i&&(i=c,n=e)}return n}(c,o);return l!==u&&l!==L[u]||(l=null),function(e,t,n,r,i,a){for(var o,s=t?[e+" "+t,e,e+" "+L[t]]:[e,e+" "+F[e],e+" "+L[F[e]]],c=0,l=i*a,u=0,p=s.length;u<p;u++){var d=s[u],h=K(d,n,r),f=h.left+i,m=h.top+a,g=Math.min(h.top<z.top?m-z.top:z.bottom-h.top,a),b=Math.min(h.left<z.left?f-z.left:z.right-h.left,i)*g;if(b===l)return d;b>c&&(c=b,o=d)}return o}(u,l,t,n,a,i)||e};function K(e,t,n){var r=R()(t);if(!r)throw new Error("could not get bounding client rect of Tip element");var i=r.width,a=r.height,o=R()(n);if(!o)throw new Error("could not get bounding client rect of `target`");var s,c,l,u,p,d,h,f,m=o.width,g=o.height,b=(s=o,c=document,l=c.body||c.getElementsByTagName("body")[0],u=c.documentElement||l.parentNode,p=u.clientTop||l.clientTop||0,d=u.clientLeft||l.clientLeft||0,h=window.pageYOffset||u.scrollTop,f=window.pageXOffset||u.scrollLeft,{top:s.top+h-p,left:s.left+f-d});if(!b)throw new Error("could not determine page offset of `target`");var v={};switch(e){case"top":v={top:b.top-a,left:b.left+m/2-i/2};break;case"bottom":v={top:b.top+g,left:b.left+m/2-i/2};break;case"right":v={top:b.top+g/2-a/2,left:b.left+m};break;case"left":v={top:b.top+g/2-a/2,left:b.left-i};break;case"top left":v={top:b.top-a,left:b.left+m/2-i+15};break;case"top right":v={top:b.top-a,left:b.left+m/2-15};break;case"bottom left":v={top:b.top+g,left:b.left+m/2-i+15};break;case"bottom right":v={top:b.top+g,left:b.left+m/2-15};break;case"left top":v={top:b.top+g/2-a,left:b.left-i};break;case"left bottom":v={top:b.top+g/2,left:b.left-i};break;case"right top":v={top:b.top+g/2-a,left:b.left+m};break;case"right bottom":v={top:b.top+g/2,left:b.left+m};break;default:throw new Error('invalid position "'.concat(e,'"'))}return v}var J=function(e){try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}},q=(n(382),w()("calypso:popover")),W=new Set,G=function(e){u()(n,e);var t=d()(n);function n(e){var r;return i()(this,n),(r=t.call(this,e)).setPopoverId(e.id),r.setDOMBehavior=r.setDOMBehavior.bind(c()(r)),r.setPosition=r.setPosition.bind(c()(r)),r.onClickout=r.onClickout.bind(c()(r)),r.onKeydown=r.onKeydown.bind(c()(r)),r.onWindowChange=r.onWindowChange.bind(c()(r)),r.state={show:e.isVisible,left:-99999,top:-99999,positionClass:r.getPositionClass(e.position)},r}return o()(n,[{key:"componentDidMount",value:function(){this.bindEscKeyListener(),this.bindDebouncedReposition(),function(){if(V)return D("window events already bound");V=!0,D("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",B,!0),window.addEventListener("scroll",B,!0)}()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(J(e.context)?this.domContext=e.context:this.domContext=y.a.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props.isVisible;return n!==e.isVisible&&(n?this.show():this.hide()),this.domContainer&&this.domContext&&n&&n!==e.isVisible?(this.debug("Update position after render completes"),void setTimeout((function(){return t.setPosition()}),0)):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),function(){if(!V)return D("window events are not bound");V=!1,D("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",B,!0),window.removeEventListener("scroll",B,!0)}(),W.delete(this.id),q("current popover instances: ",W.size)}},{key:"bindEscKeyListener",value:function(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}},{key:"unbindEscKeyListener",value:function(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=C()(e,this.onClickout))):(this.debug("no element to bind clickout side "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=y.a.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,J(this.props.context)?this.domContext=this.props.context:this.domContext=y.a.findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}},{key:"getPositionClass",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position;return"is-".concat(e.replace(/\s+/g,"-"))}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props.position;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var r=n;this.debug("position: %o",n),this.props.autoPosition&&(r=H(n,e,t),this.debug("suggested position: %o",r));var i,a,o,s=Object(A.assign)({},(i=K(r,e,t),a=e,o=R()(a).width,i.left=Math.max(0,Math.min(i.left,z.width-o)),i),{positionClass:this.getPositionClass(r)});return this.debug("updating reposition: ",s),s}},{key:"debug",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];q.apply(void 0,["[%s] ".concat(e),this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__".concat(T()(16)),W.add(this.id),this.debug("creating ..."),q("current popover instances: ",W.size)}},{key:"setPosition",value:function(){var e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o","".concat(this.props.showDelay,"ms")),this.clearShowTimer(),this._openDelayTimer=setTimeout((function(){e.setState({show:!0})}),this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=j()("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),v.a.createElement(N,{className:this.props.rootClassName},v.a.createElement("div",{style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},v.a.createElement("div",{className:"dops-popover__arrow"}),v.a.createElement("div",{className:"dops-popover__inner"},this.props.children)))}}]),n}(b.Component);f()(G,"propTypes",{autoPosition:g.a.bool,className:g.a.string,closeOnEsc:g.a.bool,id:g.a.string,ignoreContext:g.a.shape({getDOMNode:g.a.function}),position:g.a.string,rootClassName:g.a.string,showDelay:g.a.number,onClose:g.a.func.isRequired,onShow:g.a.func}),f()(G,"defaultProps",{autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:function(){}});t.a=G},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n(7),i=n.n(r),a=n(10),o=n.n(a),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),f=n.n(h),m=n(2),g=n.n(m),b=n(0),v=n.n(b),_=n(1),y=n(15),E=n(149),w=n(43),k=(n(386),function(e){u()(n,e);var t=d()(n);function n(){var e;return i()(this,n),(e=t.apply(this,arguments)).getModule=e.getModule.bind(c()(e)),e.trackInfoClick=e.trackInfoClick.bind(c()(e)),e.trackLearnMoreClick=e.trackLearnMoreClick.bind(c()(e)),e.trackPrivacyInfoClick=e.trackPrivacyInfoClick.bind(c()(e)),e}return o()(n,[{key:"getModule",value:function(){return this.props.module||{}}},{key:"trackInfoClick",value:function(){y.a.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}},{key:"trackLearnMoreClick",value:function(){y.a.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}},{key:"trackPrivacyInfoClick",value:function(){y.a.tracks.recordJetpackClick({target:"privacy-info",feature:this.getModule().module})}},{key:"render",value:function(){var e=this.props,t=e.text,n=e.link,r=this.props.privacyLink;return!r&&n&&(r=n+"#privacy"),v.a.createElement("div",{className:"jp-support-info"},v.a.createElement(E.a,{position:"left",onClick:this.trackInfoClick,screenReaderText:Object(_.__)("Learn more","jetpack")},t+" ",v.a.createElement("span",{className:"jp-support-info__learn-more"},v.a.createElement(w.a,{href:n,onClick:this.trackLearnMoreClick,target:"_blank",rel:"noopener noreferrer"},Object(_.__)("Learn more","jetpack"))),v.a.createElement("span",{className:"jp-support-info__privacy"},v.a.createElement(w.a,{href:r,onClick:this.trackPrivacyInfoClick,target:"_blank",rel:"noopener noreferrer"},Object(_.__)("Privacy information","jetpack")))))}}]),n}(b.Component));f()(k,"propTypes",{module:g.a.object,text:g.a.string,link:g.a.string,privacyLink:g.a.string}),f()(k,"defaultProps",{module:void 0,text:"",link:"",privacyLink:""})},function(e,t,n){var r=n(381);e.exports=function(e){var t=null,n=r(e);if(3===e.nodeType){var i=n.createRange();i.selectNodeContents(e),e=i}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var a=n.createElement("span");a.appendChild(n.createTextNode("​")),e.insertNode(a),t=a.getBoundingClientRect();var o=a.parentNode;o.removeChild(a),o.normalize()}return t}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(78),i=n(273),a=n(274),o=n(79),s=n(118),c=n(275),l={},u={};(t=e.exports=function(e,t,n,p,d){var h,f,m,g,b=d?function(){return e}:c(e),v=r(n,p,t?2:1),_=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(a(b)){for(h=s(e.length);h>_;_++)if((g=t?v(o(f=e[_])[0],f[1]):v(e[_]))===l||g===u)return g}else for(m=b.call(e);!(f=m.next()).done;)if((g=i(m,v,f.value,t))===l||g===u)return g}).BREAK=l,t.RETURN=u},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,n(44))},function(e,t,n){var r=n(29).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var a,o,s,c,l=n[0],u=n[1],p=n[2],d=n[3],h=e[0]^t[0],f=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],b=4,v=1;v<i;v++)a=l[h>>>24]^u[f>>>16&255]^p[m>>>8&255]^d[255&g]^t[b++],o=l[f>>>24]^u[m>>>16&255]^p[g>>>8&255]^d[255&h]^t[b++],s=l[m>>>24]^u[g>>>16&255]^p[h>>>8&255]^d[255&f]^t[b++],c=l[g>>>24]^u[h>>>16&255]^p[f>>>8&255]^d[255&m]^t[b++],h=a,f=o,m=s,g=c;return a=(r[h>>>24]<<24|r[f>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[b++],o=(r[f>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[b++],s=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&f])^t[b++],c=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[f>>>8&255]<<8|r[255&m])^t[b++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[o]=l,r[l]=o;var u=e[o],p=e[u],d=e[p],h=257*e[l]^16843008*l;i[0][o]=h<<24|h>>>8,i[1][o]=h<<16|h>>>16,i[2][o]=h<<8|h>>>24,i[3][o]=h,h=16843009*d^65537*p^257*u^16843008*o,a[0][l]=h<<24|h>>>8,a[1][l]=h<<16|h>>>16,a[2][l]=h<<8|h>>>24,a[3][l]=h,0===o?o=s=1:(o=u^e[e[e[d^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<r;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),i[a]=i[a-t]^o}for(var l=[],u=0;u<r;u++){var p=r-u,d=i[p-(u%4?0:4)];l[u]=u<4||p<=4?d:c.INV_SUB_MIX[0][c.SBOX[d>>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(n[0],0),a.writeUInt32BE(n[3],4),a.writeUInt32BE(n[2],8),a.writeUInt32BE(n[1],12),a},l.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=l},function(e,t,n){var r=n(29).Buffer,i=n(122);e.exports=function(e,t,n,a){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),c=r.alloc(a||0),l=r.alloc(0);o>0||a>0;){var u=new i;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var p=0;if(o>0){var d=s.length-o;p=Math.min(o,l.length),l.copy(s,d,0,p),o-=p}if(p<l.length&&a>0){var h=c.length-a,f=Math.min(a,l.length-p);l.copy(c,h,p,p+f),a-=f}}return l.fill(0),{key:s,iv:c}}},function(e,t,n){"use strict";var r=n(38),i=n(46),a=i.getNAF,o=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=a(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,c,l=[];for(o=0;o<r.length;o+=n.step){c=0;for(var u=o+n.step-1;u>=o;u--)c=(c<<1)+r[u];l.push(c)}for(var p=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o<l.length;o++)(c=l[o])===h?d=d.mixedAdd(n.points[o]):c===-h&&(d=d.mixedAdd(n.points[o].neg()));p=p.add(d)}return p.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=a(t,n,this._bitLength),c=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(var u=0;l>=0&&0===o[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var p=o[l];s(0!==p),c="affine"===e.type?p>0?c.mixedAdd(i[p-1>>1]):c.mixedAdd(i[-p-1>>1].neg()):p>0?c.add(i[p-1>>1]):c.add(i[-p-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){var s,c,l,u=this._wnafT1,p=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s<r;s++){var f=(l=t[s])._getNAFPoints(e);u[s]=f.wnd,p[s]=f.points}for(s=r-1;s>=1;s-=2){var m=s-1,g=s;if(1===u[m]&&1===u[g]){var b=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(b[1]=t[m].add(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].add(t[g].neg())):(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],_=o(n[m],n[g]);for(h=Math.max(_[0].length,h),d[m]=new Array(h),d[g]=new Array(h),c=0;c<h;c++){var y=0|_[0][c],E=0|_[1][c];d[m][c]=v[3*(y+1)+(E+1)],d[g][c]=0,p[m]=b}}else d[m]=a(n[m],u[m],this._bitLength),d[g]=a(n[g],u[g],this._bitLength),h=Math.max(d[m].length,h),h=Math.max(d[g].length,h)}var w=this.jpoint(null,null,null),k=this._wnafT4;for(s=h;s>=0;s--){for(var j=0;s>=0;){var O=!0;for(c=0;c<r;c++)k[c]=0|d[c][s],0!==k[c]&&(O=!1);if(!O)break;j++,s--}if(s>=0&&j++,w=w.dblp(j),s<0)break;for(c=0;c<r;c++){var C=k[c];0!==C&&(C>0?l=p[c][C-1>>1]:C<0&&(l=p[c][-C-1>>1].neg()),w="affine"===l.type?w.mixedAdd(l):w.add(l))}}for(s=0;s<r;s++)p[s]=null;return i?w:w.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)r=r.dbl();n.push(r)}return{step:e,points:n}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){var r=n(359),i=n(370),a=n(371),o=n(130),s=n(191),c=n(29).Buffer;function l(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,l,u=a(e,t),p=u.tag,d=u.data;switch(p){case"CERTIFICATE":l=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=r.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+p);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,p=parseInt(a.split("-")[1],10)/8,d=s.pbkdf2Sync(t,n,r,p,"sha1"),h=o.createDecipheriv(a,d,l),f=[];return f.push(h.update(u)),f.push(h.final()),c.concat(f)}(d=r.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(n=(l=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+p);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+p)}}e.exports=l,l.signature=r.signature},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(25),i=n.n(r),a=n(19),o=n(5),s=Object(a.c)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.JETPACK_SITE_PRODUCTS_FETCH_RECEIVE:return t.siteProducts;default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.JETPACK_SITE_PRODUCTS_FETCH:return i()(i()({},e),{},{isFetching:!0});case o.JETPACK_SITE_PRODUCTS_FETCH_RECEIVE:case o.JETPACK_SITE_PRODUCTS_FETCH_FAIL:return i()(i()({},e),{},{isFetching:!1});default:return e}}});function c(e){return e.jetpack.siteProducts.items}},function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return p}));var r=n(3),i=n(19),a=n(5),o={isFetchingPluginsData:!1},s=Object(i.c)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.JETPACK_PLUGINS_DATA_FETCH_RECEIVE:return Object(r.assign)({},t.pluginsData);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.JETPACK_PLUGINS_DATA_FETCH:return Object(r.assign)({},e,{isFetchingPluginsData:!0});case a.JETPACK_PLUGINS_DATA_FETCH_FAIL:case a.JETPACK_PLUGINS_DATA_FETCH_RECEIVE:return Object(r.assign)({},e,{isFetchingPluginsData:!1});default:return e}}});function c(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function l(e){return e.jetpack.pluginsData.items}function u(e,t){return e.jetpack.pluginsData.items[t]&&e.jetpack.pluginsData.items[t].active}function p(e,t){return!!e.jetpack.pluginsData.items[t]}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n(19),i=n(3),a=n(5),o={isFetchingRewindStatus:!1},s=Object(r.c)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.REWIND_STATUS_FETCH_RECEIVE:return Object(i.assign)({},e,{status:t.status});case a.MOCK_SWITCH_REWIND_STATE:return Object(i.assign)({},e,{status:t.rewindState});default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.REWIND_STATUS_FETCH:return Object(i.assign)({},e,{isFetchingRewindStatus:!0});case a.REWIND_STATUS_FETCH_RECEIVE:case a.REWIND_STATUS_FETCH_FAIL:return Object(i.assign)({},e,{isFetchingRewindStatus:!1});default:return e}}});function c(e){return!!e.jetpack.rewind.requests.isFetchingRewindStatus}function l(e){return Object(i.get)(e.jetpack.rewind,["data","status"],{})}},function(e,t,n){"use strict";n.d(t,"t",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"r",(function(){return p})),n.d(t,"q",(function(){return d})),n.d(t,"p",(function(){return h})),n.d(t,"s",(function(){return f})),n.d(t,"j",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"k",(function(){return _})),n.d(t,"d",(function(){return y})),n.d(t,"c",(function(){return E})),n.d(t,"m",(function(){return w})),n.d(t,"a",(function(){return k})),n.d(t,"l",(function(){return j})),n.d(t,"n",(function(){return O})),n.d(t,"o",(function(){return C})),n.d(t,"i",(function(){return S})),n.d(t,"f",(function(){return T}));var r=n(19),i=n(3),a=n(1),o=n(11),s=n(5),c={isFetchingSiteData:!1},l=Object(r.c)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_SITE_DATA_FETCH_RECEIVE:return Object(i.assign)({},e,t.siteData);case s.JETPACK_SITE_BENEFITS_FETCH_RECEIVE:return Object(i.merge)({},e,{site:{benefits:t.siteBenefits}});case s.JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE:return Object(i.merge)({},e,{site:{connectedPlugins:t.connectedPlugins}});case s.JETPACK_SITE_FEATURES_FETCH_RECEIVE:return Object(i.merge)({},e,{site:{features:t.siteFeatures}});case s.JETPACK_SITE_PLANS_FETCH_RECEIVE:return Object(i.merge)({},e,{sitePlans:t.plans});case s.JETPACK_SITE_PURCHASES_FETCH_RECEIVE:return Object(i.merge)({},e,{sitePurchases:t.purchases});default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_SITE_DATA_FETCH:return Object(i.assign)({},e,{isFetchingSiteData:!0});case s.JETPACK_SITE_BENEFITS_FETCH:return Object(i.assign)({},e,{isFetchingSiteBenefits:!0});case s.JETPACK_SITE_CONNECTED_PLUGINS_FETCH:return Object(i.assign)({},e,{isFetchingConnectedPlugins:!0});case s.JETPACK_SITE_FEATURES_FETCH:return Object(i.assign)({},e,{isFetchingSiteFeatures:!0});case s.JETPACK_SITE_PLANS_FETCH:return Object(i.assign)({},e,{isFetchingSitePlans:!0});case s.JETPACK_SITE_PURCHASES_FETCH:return Object(i.assign)({},e,{isFetchingSitePurchases:!0});case s.JETPACK_SITE_DATA_FETCH_FAIL:case s.JETPACK_SITE_DATA_FETCH_RECEIVE:return Object(i.assign)({},e,{isFetchingSiteData:!1});case s.JETPACK_SITE_BENEFITS_FETCH_FAIL:case s.JETPACK_SITE_BENEFITS_FETCH_RECEIVE:return Object(i.assign)({},e,{isFetchingSiteBenefits:!1});case s.JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL:case s.JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE:return Object(i.assign)({},e,{isFetchingConnectedPlugins:!1,isDoneFetchingConnectedPlugins:!0});case s.JETPACK_SITE_FEATURES_FETCH_FAIL:case s.JETPACK_SITE_FEATURES_FETCH_RECEIVE:return Object(i.assign)({},e,{isFetchingSiteFeatures:!1});case s.JETPACK_SITE_PLANS_FETCH_FAIL:case s.JETPACK_SITE_PLANS_FETCH_RECEIVE:return Object(i.assign)({},e,{isFetchingSitePlans:!1});case s.JETPACK_SITE_PURCHASES_FETCH_FAIL:case s.JETPACK_SITE_PURCHASES_FETCH_RECEIVE:return Object(i.assign)({},e,{isFetchingSitePurchases:!1});default:return e}},errors:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;switch(r.type){case s.JETPACK_SITE_DATA_FETCH_FAIL:switch(r.error.name){case"ApiError":e="reconnect",t=Object(a.__)("There seems to be a problem with your connection to WordPress.com. If the problem persists, try reconnecting.","jetpack");break;case"JsonParseError":e="support",t=Object(a.__)("Jetpack encountered an error and was unable to display the Dashboard. Please try refreshing the page.","jetpack");break;default:e=null,t=Object(a.__)("There seems to be a problem with your website.","jetpack")}return Object(i.assign)({},n,{message:r.error.hasOwnProperty("response")?r.error.response.message:t,action:e,code:r.error.hasOwnProperty("response")?r.error.response.code:"fetch_site_data_fail_other",data:r.error.hasOwnProperty("response")?r.error.response.data:{}});default:return n}}});function u(e){return[Object(i.get)(e.jetpack.siteData,["errors"],[])]}function p(e){return!!(e.jetpack.siteData.requests.isFetchingSiteData||e.jetpack.siteData.requests.isFetchingSiteFeatures||e.jetpack.siteData.requests.isFetchingSitePlans||e.jetpack.siteData.requests.isFetchingSitePurchases)}function d(e){return!!e.jetpack.siteData.requests.isFetchingSiteBenefits}function h(e){return!!e.jetpack.siteData.requests.isFetchingConnectedPlugins}function f(e){return!!e.jetpack.siteData.requests.isFetchingSitePurchases}function m(e){return Object(i.get)(e.jetpack.siteData,["data","plan"],{})}function g(e){return Object(i.get)(e.jetpack.siteData,["data","site","benefits"],null)}function b(e){return Object(i.get)(e.jetpack.siteData,["data","site","features","available"],{})}function v(e){return Object(i.get)(e.jetpack.siteData,["data","site","features","active"],[])}function _(e){return Object(i.get)(e.jetpack.siteData,["data","sitePurchases"],[])}function y(e){return _(e).filter((function(e){return"1"===e.active}))}function E(e){return y(e).filter((function(e){return Object(o.jb)(e.product_slug)}))}function w(e){return E(e).length>0}function k(e){return Object(i.find)(E(e),(function(e){return Object(o.gb)(e.product_slug)}))}function j(e){return!!k(e)}function O(e){return!!function(e){return Object(i.find)(E(e),(function(e){return Object(o.kb)(e.product_slug)}))}(e)}function C(e){return!!function(e){return Object(i.find)(E(e),(function(e){return Object(o.lb)(e.product_slug)}))}(e)||"is-complete-plan"===Object(o.fb)(m(e).product_slug)}function S(e){return Object(i.get)(e.jetpack.siteData,["data","ID"])}function T(e){return function(e){return!!e.jetpack.siteData.requests.isDoneFetchingConnectedPlugins}(e)?Object(i.get)(e.jetpack.siteData,["data","site","connectedPlugins"],[]).filter((function(e){return"jetpack"!==e.slug})):null}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(19),i=n(5),a=Object(r.c)({duration:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yearly",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.SET_PLAN_DURATION:return t.duration;default:return e}}});function o(e){return e.jetpack.plans.duration}},function(e,t,n){"use strict";var r=n(106),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var o=u(n);p&&(o=o.concat(p(n)));for(var s=c(t),m=c(n),g=0;g<o.length;++g){var b=o[g];if(!(a[b]||r&&r[b]||m&&m[b]||s&&s[b])){var v=d(n,b);try{l(t,b,v)}catch(_){}}}}return t}},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(3),i=n(19),a=n(5),o={fetchingTrackingSettings:!1,updatingTrackingSettings:!1},s=Object(i.c)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.USER_TRACKING_SETTINGS_FETCH_SUCCESS:return Object(r.assign)({},e,t.settings);case a.USER_TRACKING_SETTINGS_UPDATE_SUCCESS:return Object(r.assign)({},e,t.updatedSettings);default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.USER_TRACKING_SETTINGS_FETCH:return Object(r.assign)({},e,{fetchingTrackingSettings:!0});case a.USER_TRACKING_SETTINGS_FETCH_FAIL:case a.USER_TRACKING_SETTINGS_FETCH_SUCCESS:return Object(r.assign)({},e,{fetchingTrackingSettings:!1});case a.USER_TRACKING_SETTINGS_UPDATE:return Object(r.assign)({},e,{updatingTrackingSettings:!0});case a.USER_TRACKING_SETTINGS_UPDATE_FAIL:case a.USER_TRACKING_SETTINGS_UPDATE_SUCCESS:return Object(r.assign)({},e,{updatingTrackingSettings:!1});default:return e}}});function c(e){return e.jetpack.trackingSettings.items}function l(e){return e.jetpack.trackingSettings.requests.fetchingTrackingSettings}function u(e){return e.jetpack.trackingSettings.requests.updatingTrackingSettings}},function(e,t,n){"use strict";e.exports=n(233)},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(438);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(154);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){"use strict";var r=n(157),i=n(76),a=n(259),o=n(60),s=n(81),c=n(260),l=n(121),u=n(267),p=n(54)("iterator"),d=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,n,g,b,v,_){c(n,t,g);var y,E,w,k=function(e){if(!d&&e in S)return S[e];switch(e){case h:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},j=t+" Iterator",O=b==f,C=!1,S=e.prototype,T=S[p]||S["@@iterator"]||b&&S[b],A=T||k(b),M=b?O?k("entries"):A:void 0,N="Array"==t&&S.entries||T;if(N&&(w=u(N.call(new e)))!==Object.prototype&&w.next&&(l(w,j,!0),r||"function"==typeof w[p]||o(w,p,m)),O&&T&&T.name!==f&&(C=!0,A=function(){return T.call(this)}),r&&!_||!d&&!C&&S[p]||o(S,p,A),s[t]=A,s[j]=m,b)if(y={values:O?A:k(f),keys:v?A:k(h),entries:M},_)for(E in y)E in S||a(S,E,y[E]);else i(i.P+i.F*(d||C),t,y);return y}},function(e,t,n){var r=n(162),i=n(114);e.exports=function(e){return r(i(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(113),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(163)("keys"),i=n(120);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(61).f,i=n(80),a=n(54)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(27),i=n(173),a=n(29).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,a,o){return c(e+(t&n|~t&r)+i+a|0,o)+t|0}function u(e,t,n,r,i,a,o){return c(e+(t&r|n&~r)+i+a|0,o)+t|0}function p(e,t,n,r,i,a,o){return c(e+(t^n^r)+i+a|0,o)+t|0}function d(e,t,n,r,i,a,o){return c(e+(n^(t|~r))+i+a|0,o)+t|0}r(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,a=this._d;n=l(n,r,i,a,e[0],3614090360,7),a=l(a,n,r,i,e[1],3905402710,12),i=l(i,a,n,r,e[2],606105819,17),r=l(r,i,a,n,e[3],3250441966,22),n=l(n,r,i,a,e[4],4118548399,7),a=l(a,n,r,i,e[5],1200080426,12),i=l(i,a,n,r,e[6],2821735955,17),r=l(r,i,a,n,e[7],4249261313,22),n=l(n,r,i,a,e[8],1770035416,7),a=l(a,n,r,i,e[9],2336552879,12),i=l(i,a,n,r,e[10],4294925233,17),r=l(r,i,a,n,e[11],2304563134,22),n=l(n,r,i,a,e[12],1804603682,7),a=l(a,n,r,i,e[13],4254626195,12),i=l(i,a,n,r,e[14],2792965006,17),n=u(n,r=l(r,i,a,n,e[15],1236535329,22),i,a,e[1],4129170786,5),a=u(a,n,r,i,e[6],3225465664,9),i=u(i,a,n,r,e[11],643717713,14),r=u(r,i,a,n,e[0],3921069994,20),n=u(n,r,i,a,e[5],3593408605,5),a=u(a,n,r,i,e[10],38016083,9),i=u(i,a,n,r,e[15],3634488961,14),r=u(r,i,a,n,e[4],3889429448,20),n=u(n,r,i,a,e[9],568446438,5),a=u(a,n,r,i,e[14],3275163606,9),i=u(i,a,n,r,e[3],4107603335,14),r=u(r,i,a,n,e[8],1163531501,20),n=u(n,r,i,a,e[13],2850285829,5),a=u(a,n,r,i,e[2],4243563512,9),i=u(i,a,n,r,e[7],1735328473,14),n=p(n,r=u(r,i,a,n,e[12],2368359562,20),i,a,e[5],4294588738,4),a=p(a,n,r,i,e[8],2272392833,11),i=p(i,a,n,r,e[11],1839030562,16),r=p(r,i,a,n,e[14],4259657740,23),n=p(n,r,i,a,e[1],2763975236,4),a=p(a,n,r,i,e[4],1272893353,11),i=p(i,a,n,r,e[7],4139469664,16),r=p(r,i,a,n,e[10],3200236656,23),n=p(n,r,i,a,e[13],681279174,4),a=p(a,n,r,i,e[0],3936430074,11),i=p(i,a,n,r,e[3],3572445317,16),r=p(r,i,a,n,e[6],76029189,23),n=p(n,r,i,a,e[9],3654602809,4),a=p(a,n,r,i,e[12],3873151461,11),i=p(i,a,n,r,e[15],530742520,16),n=d(n,r=p(r,i,a,n,e[2],3299628645,23),i,a,e[0],4096336452,6),a=d(a,n,r,i,e[7],1126891415,10),i=d(i,a,n,r,e[14],2878612391,15),r=d(r,i,a,n,e[5],4237533241,21),n=d(n,r,i,a,e[12],1700485571,6),a=d(a,n,r,i,e[3],2399980690,10),i=d(i,a,n,r,e[10],4293915773,15),r=d(r,i,a,n,e[1],2240044497,21),n=d(n,r,i,a,e[8],1873313359,6),a=d(a,n,r,i,e[15],4264355552,10),i=d(i,a,n,r,e[6],2734768916,15),r=d(r,i,a,n,e[13],1309151649,21),n=d(n,r,i,a,e[4],4149444226,6),a=d(a,n,r,i,e[11],3174756917,10),i=d(i,a,n,r,e[2],718787259,15),r=d(r,i,a,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){"use strict";var r=n(67).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if("function"==typeof n)return e(t,null,n);n||(n={}),a=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,o||a.call(t)},p=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,p=!0,s||a.call(t)},h=function(e){a.call(t,e)},f=function(){var e;return o&&!p?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",u),t.on("abort",f),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",u),!1!==n.error&&t.on("error",h),t.on("close",f),function(){t.removeListener("complete",u),t.removeListener("abort",f),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",f)}}},function(e,t,n){"use strict";var r=n(42).Buffer,i=n(27),a=n(173),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,a,o,s){return f(e+(t^n^r)+a+o|0,s)+i|0}function g(e,t,n,r,i,a,o,s){return f(e+(t&n|~t&r)+a+o|0,s)+i|0}function b(e,t,n,r,i,a,o,s){return f(e+((t|~n)^r)+a+o|0,s)+i|0}function v(e,t,n,r,i,a,o,s){return f(e+(t&r|n&~r)+a+o|0,s)+i|0}function _(e,t,n,r,i,a,o,s){return f(e+(t^(n|~r))+a+o|0,s)+i|0}i(h,a),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,a=0|this._d,h=0|this._e,y=0|this._a,E=0|this._b,w=0|this._c,k=0|this._d,j=0|this._e,O=0;O<80;O+=1){var C,S;O<16?(C=m(n,r,i,a,h,e[s[O]],p[0],l[O]),S=_(y,E,w,k,j,e[c[O]],d[0],u[O])):O<32?(C=g(n,r,i,a,h,e[s[O]],p[1],l[O]),S=v(y,E,w,k,j,e[c[O]],d[1],u[O])):O<48?(C=b(n,r,i,a,h,e[s[O]],p[2],l[O]),S=b(y,E,w,k,j,e[c[O]],d[2],u[O])):O<64?(C=v(n,r,i,a,h,e[s[O]],p[3],l[O]),S=g(y,E,w,k,j,e[c[O]],d[3],u[O])):(C=_(n,r,i,a,h,e[s[O]],p[4],l[O]),S=m(y,E,w,k,j,e[c[O]],d[4],u[O])),n=h,h=a,a=f(i,10),i=r,r=C,y=j,j=k,k=f(w,10),w=E,E=S}var T=this._b+i+k|0;this._b=this._c+a+j|0,this._c=this._d+h+y|0,this._d=this._e+n+E|0,this._e=this._a+r+w|0,this._a=T},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(301),t.sha1=n(302),t.sha224=n(303),t.sha256=n(182),t.sha384=n(304),t.sha512=n(183)},function(e,t,n){(t=e.exports=n(184)).Stream=t,t.Readable=t,t.Writable=n(128),t.Duplex=n(64),t.Transform=n(187),t.PassThrough=n(311)},function(e,t,n){var r=n(42),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r){var i=n(94);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var o,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;b.WritableState=g;var c=Object.create(n(84));c.inherits=n(27);var l={deprecate:n(180)},u=n(185),p=n(127).Buffer,d=window.Uint8Array||function(){};var h,f=n(186);function m(){}function g(e,t){o=o||n(64),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:r&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(a(r),e._writableState.errorEmitted=!0,e.emit("error",r),k(e,t))}(e,n,r,t,a);else{var o=E(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||y(e,n),r?s(_,e,n,o,a):_(e,n,o,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(o=o||n(64),!(h.call(b,this)||this instanceof o))return new b(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function v(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),k(e,t)}function y(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,u,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(b,u),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===b&&(e&&e._writableState instanceof g)}})):h=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r,a=this._writableState,o=!1,s=!a.objectMode&&(r=e,p.isBuffer(r)||r instanceof d);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=m),a.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i.nextTick(r,o),a=!1),a}(this,a,e,n))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,r,i,a);return c}(this,a,s,e,t,n)),o},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||y(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,k(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=f.destroy,b.prototype._undestroy=f.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(44),n(309).setImmediate)},function(e,t,n){"use strict";var r=n(45);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,n){var r=n(324),i=n(332),a=n(200);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(a)}},function(e,t,n){var r={ECB:n(325),CBC:n(326),CFB:n(327),CFB8:n(328),CFB1:n(329),OFB:n(330),CTR:n(198),GCM:n(198)},i=n(200);for(var a in i)i[a].module=r[i[a].mode];e.exports=i},function(e,t,n){var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=n(336);if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(o){}},function(e,t,n){(function(t){var r=n(134),i=n(66);function a(e){var t,n=e.modulus.byteLength();do{t=new r(i(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,n){var i=function(e){var t=a(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),o=n.modulus.byteLength(),s=new r(e).mul(i.blinder).umod(n.modulus),c=s.toRed(r.mont(n.prime1)),l=s.toRed(r.mont(n.prime2)),u=n.coefficient,p=n.prime1,d=n.prime2,h=c.redPow(n.exponent1).fromRed(),f=l.redPow(n.exponent2).fromRed(),m=h.isub(f).imul(u).umod(p).imul(d);return f.iadd(m).imul(i.unblinder).umod(n.modulus).toArrayLike(t,"be",o)}o.getr=a,e.exports=o}).call(this,n(42).Buffer)},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function a(e,t,n){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(341).Buffer}catch(T){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function l(e,t,n,i){for(var a=0,o=0,s=Math.min(e.length,n),c=t;c<s;c++){var l=e.charCodeAt(c)-48;a*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o<i,"Invalid character"),a+=o}return a}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var p=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)p*=t;this.imuln(p),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){u(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch(T){a.prototype.inspect=p}else a.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);n=0!==(a=s>>>24-i&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],u=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(e);n=(p=p.idivn(u)).isZero()?m+n:d[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,p=67108863&c,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var f=l-h|0;u+=(o=(i=0|e.words[f])*(a=0|t.words[h])+p)/67108864|0,p=67108863&o}n.words[l]=0|p,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}a.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},a.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n++]=255&o,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),6===a?(n<e.length&&(e[n++]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|r;e[n--]=255&o,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===a?(n>=0&&(e[n--]=o>>24&255),r=0,a=0):(r=o>>>24,a+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},a.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a<r.length;a++)t=(0|n.words[a])+(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<n.length;a++)t=(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(t=(0|n.words[o])-(0|r.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<n.length;o++)a=(t=(0|n.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,n){var r,i,a,o=e.words,s=t.words,c=n.words,l=0,u=0|o[0],p=8191&u,d=u>>>13,h=0|o[1],f=8191&h,m=h>>>13,g=0|o[2],b=8191&g,v=g>>>13,_=0|o[3],y=8191&_,E=_>>>13,w=0|o[4],k=8191&w,j=w>>>13,O=0|o[5],C=8191&O,S=O>>>13,T=0|o[6],A=8191&T,M=T>>>13,N=0|o[7],x=8191&N,P=N>>>13,I=0|o[8],R=8191&I,D=I>>>13,U=0|o[9],L=8191&U,F=U>>>13,z=0|s[0],B=8191&z,V=z>>>13,H=0|s[1],K=8191&H,J=H>>>13,q=0|s[2],W=8191&q,G=q>>>13,Y=0|s[3],$=8191&Y,Z=Y>>>13,X=0|s[4],Q=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],pe=8191&ue,de=ue>>>13,he=0|s[9],fe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(p,B))|0)+((8191&(i=(i=Math.imul(p,V))+Math.imul(d,B)|0))<<13)|0;l=((a=Math.imul(d,V))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(f,B),i=(i=Math.imul(f,V))+Math.imul(m,B)|0,a=Math.imul(m,V);var be=(l+(r=r+Math.imul(p,K)|0)|0)+((8191&(i=(i=i+Math.imul(p,J)|0)+Math.imul(d,K)|0))<<13)|0;l=((a=a+Math.imul(d,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,B),i=(i=Math.imul(b,V))+Math.imul(v,B)|0,a=Math.imul(v,V),r=r+Math.imul(f,K)|0,i=(i=i+Math.imul(f,J)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,J)|0;var ve=(l+(r=r+Math.imul(p,W)|0)|0)+((8191&(i=(i=i+Math.imul(p,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((a=a+Math.imul(d,G)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(y,B),i=(i=Math.imul(y,V))+Math.imul(E,B)|0,a=Math.imul(E,V),r=r+Math.imul(b,K)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,J)|0,r=r+Math.imul(f,W)|0,i=(i=i+Math.imul(f,G)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,G)|0;var _e=(l+(r=r+Math.imul(p,$)|0)|0)+((8191&(i=(i=i+Math.imul(p,Z)|0)+Math.imul(d,$)|0))<<13)|0;l=((a=a+Math.imul(d,Z)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(k,B),i=(i=Math.imul(k,V))+Math.imul(j,B)|0,a=Math.imul(j,V),r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(E,K)|0,a=a+Math.imul(E,J)|0,r=r+Math.imul(b,W)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,Z)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,Z)|0;var ye=(l+(r=r+Math.imul(p,Q)|0)|0)+((8191&(i=(i=i+Math.imul(p,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((a=a+Math.imul(d,ee)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,B),i=(i=Math.imul(C,V))+Math.imul(S,B)|0,a=Math.imul(S,V),r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(j,K)|0,a=a+Math.imul(j,J)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(E,W)|0,a=a+Math.imul(E,G)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,Z)|0,r=r+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0;var Ee=(l+(r=r+Math.imul(p,ne)|0)|0)+((8191&(i=(i=i+Math.imul(p,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((a=a+Math.imul(d,re)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(A,B),i=(i=Math.imul(A,V))+Math.imul(M,B)|0,a=Math.imul(M,V),r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(S,K)|0,a=a+Math.imul(S,J)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(j,W)|0,a=a+Math.imul(j,G)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(E,$)|0,a=a+Math.imul(E,Z)|0,r=r+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0;var we=(l+(r=r+Math.imul(p,ae)|0)|0)+((8191&(i=(i=i+Math.imul(p,oe)|0)+Math.imul(d,ae)|0))<<13)|0;l=((a=a+Math.imul(d,oe)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(x,B),i=(i=Math.imul(x,V))+Math.imul(P,B)|0,a=Math.imul(P,V),r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,J)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,G)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(j,$)|0,a=a+Math.imul(j,Z)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(E,Q)|0,a=a+Math.imul(E,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(f,ae)|0,i=(i=i+Math.imul(f,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var ke=(l+(r=r+Math.imul(p,ce)|0)|0)+((8191&(i=(i=i+Math.imul(p,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((a=a+Math.imul(d,le)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,B),i=(i=Math.imul(R,V))+Math.imul(D,B)|0,a=Math.imul(D,V),r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(P,K)|0,a=a+Math.imul(P,J)|0,r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(M,W)|0,a=a+Math.imul(M,G)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,Z)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(j,Q)|0,a=a+Math.imul(j,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(E,ne)|0,a=a+Math.imul(E,re)|0,r=r+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,oe)|0,r=r+Math.imul(f,ce)|0,i=(i=i+Math.imul(f,le)|0)+Math.imul(m,ce)|0,a=a+Math.imul(m,le)|0;var je=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,de)|0)+Math.imul(d,pe)|0))<<13)|0;l=((a=a+Math.imul(d,de)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(L,B),i=(i=Math.imul(L,V))+Math.imul(F,B)|0,a=Math.imul(F,V),r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(D,K)|0,a=a+Math.imul(D,J)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,G)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,Z)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(j,ne)|0,a=a+Math.imul(j,re)|0,r=r+Math.imul(y,ae)|0,i=(i=i+Math.imul(y,oe)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,le)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,le)|0,r=r+Math.imul(f,pe)|0,i=(i=i+Math.imul(f,de)|0)+Math.imul(m,pe)|0,a=a+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(p,fe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(d,fe)|0))<<13)|0;l=((a=a+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,K),i=(i=Math.imul(L,J))+Math.imul(F,K)|0,a=Math.imul(F,J),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(D,W)|0,a=a+Math.imul(D,G)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,Z)|0,r=r+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(S,ne)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(k,ae)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(j,ae)|0,a=a+Math.imul(j,oe)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(E,ce)|0,a=a+Math.imul(E,le)|0,r=r+Math.imul(b,pe)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(v,pe)|0,a=a+Math.imul(v,de)|0;var Ce=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;l=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(F,W)|0,a=Math.imul(F,G),r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(D,$)|0,a=a+Math.imul(D,Z)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(P,Q)|0,a=a+Math.imul(P,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(C,ae)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,le)|0)+Math.imul(j,ce)|0,a=a+Math.imul(j,le)|0,r=r+Math.imul(y,pe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(E,pe)|0,a=a+Math.imul(E,de)|0;var Se=(l+(r=r+Math.imul(b,fe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(v,fe)|0))<<13)|0;l=((a=a+Math.imul(v,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,a=Math.imul(F,Z),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(D,Q)|0,a=a+Math.imul(D,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(P,ne)|0,a=a+Math.imul(P,re)|0,r=r+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,oe)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(S,ce)|0,a=a+Math.imul(S,le)|0,r=r+Math.imul(k,pe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(j,pe)|0,a=a+Math.imul(j,de)|0;var Te=(l+(r=r+Math.imul(y,fe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(E,fe)|0))<<13)|0;l=((a=a+Math.imul(E,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(D,ne)|0,a=a+Math.imul(D,re)|0,r=r+Math.imul(x,ae)|0,i=(i=i+Math.imul(x,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,r=r+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(C,pe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(S,pe)|0,a=a+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(k,fe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(j,fe)|0))<<13)|0;l=((a=a+Math.imul(j,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(F,ne)|0,a=Math.imul(F,re),r=r+Math.imul(R,ae)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(D,ae)|0,a=a+Math.imul(D,oe)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(P,ce)|0,a=a+Math.imul(P,le)|0,r=r+Math.imul(A,pe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(M,pe)|0,a=a+Math.imul(M,de)|0;var Me=(l+(r=r+Math.imul(C,fe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(S,fe)|0))<<13)|0;l=((a=a+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ae),i=(i=Math.imul(L,oe))+Math.imul(F,ae)|0,a=Math.imul(F,oe),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(D,ce)|0,a=a+Math.imul(D,le)|0,r=r+Math.imul(x,pe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(P,pe)|0,a=a+Math.imul(P,de)|0;var Ne=(l+(r=r+Math.imul(A,fe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(M,fe)|0))<<13)|0;l=((a=a+Math.imul(M,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(F,ce)|0,a=Math.imul(F,le),r=r+Math.imul(R,pe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(D,pe)|0,a=a+Math.imul(D,de)|0;var xe=(l+(r=r+Math.imul(x,fe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(P,fe)|0))<<13)|0;l=((a=a+Math.imul(P,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(L,pe),i=(i=Math.imul(L,de))+Math.imul(F,pe)|0,a=Math.imul(F,de);var Pe=(l+(r=r+Math.imul(R,fe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(D,fe)|0))<<13)|0;l=((a=a+Math.imul(D,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Ie=(l+(r=Math.imul(L,fe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,fe)|0))<<13)|0;return l=((a=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,c[0]=ge,c[1]=be,c[2]=ve,c[3]=_e,c[4]=ye,c[5]=Ee,c[6]=we,c[7]=ke,c[8]=je,c[9]=Oe,c[10]=Ce,c[11]=Se,c[12]=Te,c[13]=Ae,c[14]=Me,c[15]=Ne,c[16]=xe,c[17]=Pe,c[18]=Ie,0!==l&&(c[19]=l,n.length++),n};function b(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a<n.length-1;a++){var o=i;i=0;for(var s=67108863&r,c=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=c;l++){var u=a-l,p=(0|e.words[u])*(0|t.words[l]),d=67108863&p;s=67108863&(d=d+s|0),i+=(o=(o=o+(p/67108864|0)|0)+(d>>>26)|0)>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n._strip()}function v(e,t,n){return b(e,t,n)}function _(e,t){this.x=e,this.y=t}Math.imul||(g=m),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?m(this,e,t):n<1024?b(this,e,t):v(this,e,t)},_.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},_.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},_.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o<a;o++)r[o]=t[e[o]],i[o]=n[e[o]]},_.prototype.transform=function(e,t,n,r,i,a){this.permute(a,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var p=c,d=l,h=0;h<o;h++){var f=n[u+h],m=r[u+h],g=n[u+h+o],b=r[u+h+o],v=p*g-d*b;b=p*b+d*g,g=v,n[u+h]=f+g,r[u+h]=m+b,n[u+h+o]=f-g,r[u+h+o]=m-b,h!==s&&(v=c*p-l*d,d=c*d+l*p,p=v)}},_.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},_.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},_.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},_.prototype.convert13b=function(e,t,n,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],n[2*o]=8191&a,a>>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===a),r(0==(-8192&a))},_.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},_.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),a=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),p=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,a,s,c,r,i),this.transform(l,a,u,p,r,i);for(var h=0;h<r;h++){var f=s[h]*u[h]-c[h]*p[h];c[h]=s[h]*p[h]+c[h]*u[h],s[h]=f}return this.conjugate(s,c,r),this.transform(s,c,d,a,r,i),this.conjugate(d,a,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),v(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,o=(67108863&a)+(67108863&n);n>>=26,n+=a/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},a.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},a.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var p=0|this.words[l];this.words[l]=u<<26-a|p>>>a,u=p&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},a.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,n){var i,a,o=e.length+n;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var p=c-1;p>=0;p--){var d=67108864*(0|r.words[i.length+p])+(0|r.words[i.length+p-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(i,d,p);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,p),r.isZero()||(r.negative^=1);s&&(s.words[p]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(n*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*n;this.words[i]=a/e|0,n=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),p=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(p)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(p)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var p=0,d=1;0==(n.words[0]&d)&&p<26;++p,d<<=1);if(p>0)for(n.iushrn(p);p-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var a=i,o=n;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new C(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function E(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},E.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},E.prototype.split=function(e,t){e.iushrn(this.n,0,t)},E.prototype.imulK=function(e){return e.imul(this.k)},i(w,E),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&n,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&n)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(k,E),i(j,E),i(O,E),O.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new k;else if("p192"===e)t=new j;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new O}return y[e]=t,t},C.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var p=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),f=o;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g<f);var b=this.pow(p,new a(1).iushln(f-g-1));d=d.redMul(b),p=b.redSqr(),h=h.redMul(p),f=g}return d},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var p=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==p||0!==o?(o<<=1,o|=p,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}c=26}return i},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new S(e)},i(S,C),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(204)(e))},function(e,t,n){"use strict";var r=t;r.version=n(342).version,r.utils=n(46),r.rand=n(132),r.curve=n(207),r.curves=n(136),r.ec=n(352),r.eddsa=n(356)},function(e,t,n){"use strict";var r,i=t,a=n(137),o=n(207),s=n(46).assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(351)}catch(u){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(49),r.common=n(86),r.sha=n(346),r.ripemd=n(349),r.hmac=n(350),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return f}));var r=n(25),i=n.n(r),a=n(3),o=n(1),s=n(18),c=n(5),l=n(21),u=n(20),p=function(){return{type:c.JETPACK_SETTINGS_SET_UNSAVED_FLAG}},d=function(){return{type:c.JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG}},h=function(){return function(e){return e({type:c.JETPACK_SETTINGS_FETCH}),u.a.fetchSettings().then((function(t){return e({type:c.JETPACK_SETTINGS_FETCH_RECEIVE,settings:t}),t})).catch((function(t){e({type:c.JETPACK_SETTINGS_FETCH_FAIL,error:t})}))}},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=i()({progress:Object(o.__)("Updating settings…","jetpack"),success:Object(o.__)("Updated settings.","jetpack"),error:function(e){return Object(o.sprintf)(Object(o.__)("Error updating settings. %s","jetpack"),e.message||e.code||e.name||e)}},t);"object"==typeof e&&Object(a.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(function(t){return t in e}))&&(r.success=Object(o.__)("Updated settings. Refreshing page…","jetpack")),n(Object(s.c)("module-setting-update")),n(Object(s.c)("module-setting-update-success"));var p=["dismiss_dash_app_card","dismiss_empty_stats_card"];return"object"!=typeof e||Object(a.some)(p,(function(t){return t in e}))||n(Object(s.a)("is-info",r.progress,{id:"module-setting-update"})),n({type:c.JETPACK_SETTINGS_UPDATE,updatedOptions:e}),u.a.updateSettings(e).then((function(t){n({type:c.JETPACK_SETTINGS_UPDATE_SUCCESS,updatedOptions:m(t,e),success:t}),Object(l.p)(e),Object(l.q)(e),n(Object(s.c)("module-setting-update")),n(Object(s.c)("module-setting-update-success")),"object"!=typeof e||Object(a.some)(p,(function(t){return t in e}))||n(Object(s.a)("is-success",r.success,{id:"module-setting-update-success",duration:2e3}))})).catch((function(t){n({type:c.JETPACK_SETTINGS_UPDATE_FAIL,success:!1,error:t,updatedOptions:e}),n(Object(s.c)("module-setting-update")),n(Object(s.a)("is-error",r.error(t),{id:"module-setting-update"}))}))}};function m(e,t){var n=t;return"regenerate"===Object(a.get)(t,"post_by_email_address")&&(n={post_by_email_address:e.post_by_email_address}),n}},function(e,t,n){var r=n(235),i=n(236),a=n(111),o=n(237);e.exports=function(e){return r(e)||i(e)||a(e)||o()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"l",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"i",(function(){return d})),n.d(t,"h",(function(){return h})),n.d(t,"k",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return v}));var r=n(19),i=n(3),a=n(5),o=Object(r.c)({requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.STATS_DATA_FETCH:return Object(i.assign)({},e,{fetchingStatsData:!0});case a.AKISMET_DATA_FETCH:return Object(i.assign)({},e,{fetchingAkismetData:!0});case a.AKISMET_KEY_CHECK_FETCH:return Object(i.assign)({},e,{checkingAkismetKey:!0});case a.VAULTPRESS_SITE_DATA_FETCH:return Object(i.assign)({},e,{fetchingVaultPressData:!0});case a.DASHBOARD_PROTECT_COUNT_FETCH:return Object(i.assign)({},e,{fetchingProtectData:!0});case a.PLUGIN_UPDATES_FETCH:return Object(i.assign)({},e,{fetchingPluginUpdates:!0});case a.STATS_DATA_FETCH_FAIL:case a.STATS_DATA_FETCH_SUCCESS:return Object(i.assign)({},e,{fetchingStatsData:!1});case a.AKISMET_DATA_FETCH_FAIL:case a.AKISMET_DATA_FETCH_SUCCESS:return Object(i.assign)({},e,{fetchingAkismetData:!1});case a.AKISMET_KEY_CHECK_FETCH_FAIL:case a.AKISMET_KEY_CHECK_FETCH_SUCCESS:return Object(i.assign)({},e,{checkingAkismetKey:!1});case a.DASHBOARD_PROTECT_COUNT_FETCH_FAIL:case a.DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS:return Object(i.assign)({},e,{fetchingProtectData:!1});case a.PLUGIN_UPDATES_FETCH_FAIL:case a.PLUGIN_UPDATES_FETCH_SUCCESS:return Object(i.assign)({},e,{fetchingPluginUpdates:!1});case a.VAULTPRESS_SITE_DATA_FETCH_FAIL:case a.VAULTPRESS_SITE_DATA_FETCH_SUCCESS:return Object(i.assign)({},e,{fetchingVaultPressData:!1});default:return e}},activeStatsTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"day",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.STATS_SWITCH_TAB:return t.activeStatsTab;default:return e}},protectCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS:return t.protectCount;default:return e}},vaultPressData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.VAULTPRESS_SITE_DATA_FETCH_SUCCESS:return t.vaultPressData;case a.MOCK_SWITCH_THREATS:return Object(i.assign)({},"N/A"===e?{}:e,{data:{active:!0,features:{security:!0},security:{notice_count:t.mockCount}}});default:return e}},statsData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.STATS_DATA_FETCH_SUCCESS:return Object(i.assign)({},e,t.statsData);default:return e}},akismetData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.AKISMET_DATA_FETCH_SUCCESS:return t.akismetData;default:return e}},akismet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{validKey:null,invalidKeyCode:"",invalidKeyMessage:""},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.AKISMET_KEY_CHECK_FETCH_SUCCESS:return Object(i.assign)({},e,t.akismet);default:return e}},pluginUpdates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.PLUGIN_UPDATES_FETCH_SUCCESS:return t.pluginUpdates;default:return e}}});function s(e){return e.jetpack.dashboard.activeStatsTab}function c(e){return!!e.jetpack.dashboard.requests.fetchingStatsData}function l(e){return e.jetpack.dashboard.statsData}function u(e){return!!e.jetpack.dashboard.requests.fetchingAkismetData}function p(e){return e.jetpack.dashboard.akismetData}function d(e){return!!e.jetpack.dashboard.requests.checkingAkismetKey}function h(e){return Object(i.get)(e.jetpack.dashboard,["akismet","validKey"],!1)}function f(e){return!!e.jetpack.dashboard.requests.fetchingProtectData}function m(e){return e.jetpack.dashboard.protectCount}function g(e){return!!e.jetpack.dashboard.requests.fetchingVaultPressData}function b(e){return e.jetpack.dashboard.vaultPressData}function v(e){return Object(i.get)(e.jetpack.dashboard.vaultPressData,"data.security.notice_count",0)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(19),i=n(5),a=Object(r.c)({display:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.DEV_CARD_DISPLAY:return!0;case i.DEV_CARD_HIDE:return!1;default:return e}}});function o(e){return!!e.jetpack.devCard.display}},function(e,t,n){"use strict";n.d(t,"g",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return f}));var r=n(4),i=n.n(r),a=n(19),o=n(3),s=n(5),c=Object(a.c)({notice:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.DISCONNECT_SITE_SUCCESS:return"disconnected";default:return e}},dismissed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.dismissedNotices,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JETPACK_ACTION_NOTICES_DISMISS:return Object(o.assign)({},e,i()({},t.notice,!0));case s.JETPACK_NOTICES_DISMISS_SUCCESS:return Object(o.assign)({},e,t.dismissedNotices);case s.RESET_OPTIONS_SUCCESS:return!1;default:return e}}});function l(e){return e.jetpack.jetpackNotices.notice}function u(e){return Object(o.get)(e.jetpack.initialState,["jetpackStateNotices","errorCode"])}function p(e){return Object(o.get)(e.jetpack.initialState,["jetpackStateNotices","messageCode"])}function d(e){return Object(o.get)(e.jetpack.initialState,["jetpackStateNotices","messageContent"])}function h(e){return Object(o.get)(e.jetpack.initialState,["jetpackStateNotices","errorDescription"])}function f(e,t){return Object(o.get)(e.jetpack.jetpackNotices.dismissed,[t],!1)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return p}));var r=n(25),i=n.n(r),a=n(19),o=n(3),s=n(5),c={isFetchingScanStatus:!1},l=Object(a.c)({data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.SCAN_STATUS_FETCH_RECEIVE:return Object(o.assign)({},e,{status:t.status});case s.MOCK_SWITCH_SCAN_STATE:return{status:i()(i()({},e.status),t.scanState)};default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.SCAN_STATUS_FETCH:return Object(o.assign)({},e,{isFetchingScanStatus:!0});case s.SCAN_STATUS_FETCH_RECEIVE:case s.SCAN_STATUS_FETCH_FAIL:return Object(o.assign)({},e,{isFetchingScanStatus:!1});default:return e}}});function u(e){return!!e.jetpack.scan.requests.isFetchingScanStatus}function p(e){return Object(o.get)(e.jetpack.scan,["data","status"],{})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(3),i=n(19),a=n(5),o=Object(i.c)({searchTerm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.JETPACK_SEARCH_TERM:return t.term;default:return e}}});function s(e){return e.jetpack.search.searchTerm}function c(e,t){var n=Object(r.find)(Object(r.get)(e.jetpack,["modules","items"],{}),["module",t]);if(void 0===n)return!1;var i=Object(r.get)(e.jetpack,["search","searchTerm"],!1);return!i||[n.module,n.name,n.description,n.learn_more_button,n.long_description,n.search_terms,n.additional_search_queries,n.short_description,n.feature?n.feature.toString():""].join(" ").toLowerCase().indexOf(i.toLowerCase())>-1}},function(e,t,n){"use strict";n.d(t,"h",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return h}));var r=n(19),i=n(3),a=n(5),o=Object(r.c)({google:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fetching:!1,verifying:!1,verified:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH:return Object(i.assign)({},e,{fetching:!0});case a.JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL:return Object(i.assign)({},e,{fetching:!1,error:t.error});case a.JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS:return Object(i.assign)({},e,{fetching:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,token:t.token,error:null});case a.JETPACK_SITE_VERIFY_GOOGLE_REQUEST:return Object(i.assign)({},e,{verifying:!0});case a.JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS:return Object(i.assign)({},e,{verifying:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,error:null});case a.JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL:return Object(i.assign)({},e,{verifying:!1,verified:!1,error:t.error});default:return e}}});function s(e){return Object(i.get)(e,"jetpack.siteVerify.google.fetching",!1)}function c(e){return Object(i.get)(e,"jetpack.siteVerify.google.verifying",!1)}function l(e){return!s(e)&&"no_token_for_user"!==Object(i.get)(e,"jetpack.siteVerify.google.error.code",null)}function u(e){return Object(i.get)(e,"jetpack.siteVerify.google.verified",!1)}function p(e){return Object(i.get)(e,"jetpack.siteVerify.google.error",null)}function d(e){return Object(i.get)(e,"jetpack.siteVerify.google.searchConsoleUrl",null)}function h(e){return Object(i.get)(e,"jetpack.siteVerify.google.isOwner",!1)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var r=n(3),i=n(19),a=n(5),o=Object(i.c)({error:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.licensing.error,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.JETPACK_LICENSING_ERROR_UPDATE:return t.error;default:return e}}});function s(e){return Object(r.get)(e.jetpack.licensing,["error"],"")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var r=n(19),i=n(3),a=n(5),o=Object(r.c)({connectUrls:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.JETPACK_SET_INITIAL_STATE:return Object(i.assign)({},t.initialState.externalServicesConnectUrls);default:return e}}});function s(e,t){return Object(i.get)(e.jetpack.publicize.connectUrls,t,null)}},function(e,t,n){var r=n(111);e.exports=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(0),o=n.n(a),s=n(52),c=n.n(s),l=n(3),u=n(89),p=n(30),d=n(16),h=n.n(d),f=n(15);n(384);t.a=c()({displayName:"InfoPopover",propTypes:{id:i.a.string,position:i.a.string,className:i.a.string,rootClassName:i.a.string,gaEventCategory:i.a.string,popoverName:i.a.string,onClick:i.a.func,ignoreContext:i.a.shape({getDOMNode:i.a.function})},getDefaultProps:function(){return{position:"bottom",onClick:l.noop}},getInitialState:function(){return{showPopover:!1}},render:function(){var e=h()("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return o.a.createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},o.a.createElement(p.a,{icon:"info-outline",size:18}),this.props.screenReaderText?o.a.createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",o.a.createElement(u.a,{id:this.props.id,isVisible:this.state.showPopover,context:this.refs&&this.refs.infoPopover,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className:h()("dops-info-popover__tooltip",this.props.className),rootClassName:this.props.rootClassName},this.props.children))},_onClick:function(e){this.props.onClick(),e.preventDefault(),this.setState({showPopover:!this.state.showPopover},this._recordStats)},_onClose:function(){this.setState({showPopover:!1},this._recordStats)},_recordStats:function(){var e=this.props,t=e.gaEventCategory,n=e.popoverName;if(t&&n){var r=this.state.showPopover?" Opened":" Closed";f.a.ga.recordEvent(t,"InfoPopover: "+n+r)}}})},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";(function(e){var r,i=n(220);r="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:e;var a=Object(i.a)(r);t.a=a}).call(this,n(234)(e))},function(e,t,n){var r=n(388),i=n(439),a=n(389);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(19);function i(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var a=i();a.withExtraArgument=i;var o=a,s=n(139),c=n.n(s),l=n(73);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l.a:return[t.notice].concat(c()(e));case l.b:return e.filter((function(e){return e.noticeId!==t.noticeId}))}return e}Object(r.c)({globalNotices:u});var p=n(71),d=n(140),h=n(70),f=n(141),m=n(103),g=n(142),b=n(40),v=n(100),_=n(3),y=n(5),E=Object(r.c)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case y.JETPACK_PRODUCTS_FETCH_RECEIVE:return t.products;default:return e}},requests:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case y.JETPACK_PRODUCTS_FETCH:return Object(_.assign)({},e,{isFetchingProducts:!0});case y.JETPACK_PRODUCTS_FETCH_RECEIVE:case y.JETPACK_PRODUCTS_FETCH_FAIL:return Object(_.assign)({},e,{isFetchingProducts:!1});default:return e}}});var w=n(147),k=n(37),j=n(101),O=n(143),C=n(144),S=n(75),T=n(102),A=n(99),M=n(145),N=Object(r.c)({disconnectSurvey:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{submitting:!1,submitted:!1,error:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case y.JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY:return Object(_.assign)({},e,{submitting:!0});case y.JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS:return Object(_.assign)({},e,{submitting:!1,submitted:!0,error:null});case y.JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL:return Object(_.assign)({},e,{submitting:!1,submitted:!1,error:t.error});default:return e}}});var x=n(105),P=Object(r.c)({mobile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{sendingLoginEmail:!1,loginEmailSent:!1,error:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case y.JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL:return Object(_.assign)({},e,{sendingLoginEmail:!0});case y.JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_SUCCESS:return Object(_.assign)({},e,{sendingLoginEmail:!1,loginEmailSent:!0,error:null});case y.JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_FAIL:return Object(_.assign)({},e,{sendingLoginEmail:!1,loginEmailSent:!1,error:t.error});default:return e}}});var I=n(146),R=Object(r.c)({connection:h.v,dashboard:d.a,devCard:f.b,initialState:p.x,jetpackNotices:g.g,modules:b.o,plans:m.b,pluginsData:v.e,products:E,publicize:w.b,recommendations:k.p,rewind:j.c,scan:O.c,search:C.c,settings:S.i,siteData:T.t,siteProducts:A.b,siteVerify:M.h,disconnectSurvey:N,trackingSettings:x.d,mobile:P,licensing:I.b}),D=Object(r.c)({globalNotices:u,jetpack:R});t.a=Object(r.d)(Object(r.a)(o),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():function(e){return e})(r.e)(D)},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(62),i=n(58).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(79),i=n(261),a=n(164),o=n(119)("IE_PROTO"),s=function(){},c=function(){var e,t=n(159)("iframe"),r=a.length;for(t.style.display="none",n(266).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[a[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(117);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(77),i=n(58),a="__core-js_shared__",o=i[a]||(i[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(157)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(114);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(60);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(117),i=n(54)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){var r=n(120)("meta"),i=n(62),a=n(80),o=n(61).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(92)((function(){return c(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&p.NEED&&c(e)&&!a(e,r)&&u(e),e}}},function(e,t,n){var r=n(62);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(29).Buffer,i=n(174).Transform;function a(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(27)(a,i),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(i){r=i}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},function(e,t,n){(t=e.exports=n(175)).Stream=t,t.Readable=t,t.Writable=n(179),t.Duplex=n(68),t.Transform=n(181),t.PassThrough=n(299),t.finished=n(123),t.pipeline=n(300)},function(e,t,n){"use strict";(function(t){var r;e.exports=j,j.ReadableState=k;n(55).EventEmitter;var i=function(e,t){return e.listeners(t).length},a=n(176),o=n(42).Buffer,s=window.Uint8Array||function(){};var c,l=n(294);c=l&&l.debuglog?l.debuglog("stream"):function(){};var u,p,d,h=n(295),f=n(177),m=n(178).getHighWaterMark,g=n(67).codes,b=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,_=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(27)(j,a);var E=f.errorOrDestroy,w=["error","close","destroy","pause","resume"];function k(e,t,i){r=r||n(68),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=n(83).StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function j(e){if(r=r||n(68),!(this instanceof j))return new j(e);var t=this instanceof r;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function O(e,t,n,r,i){c("readableAddChunk",t);var a,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}(e,l);else if(i||(a=function(e,t){var n;r=t,o.isBuffer(r)||r instanceof s||"string"==typeof t||void 0===t||e.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(l,t)),a)E(e,a);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),r)l.endEmitted?E(e,new y):C(e,l,t,!0);else if(l.ended)E(e,new v);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?C(e,l,t,!1):N(e,l)):C(e,l,t,!1)}else r||(l.reading=!1,N(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),N(e,t)}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=f.destroy,j.prototype._undestroy=f.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=o.from(e,t),t=""),n=!0),O(this,e,t,!1,n)},j.prototype.unshift=function(e){return O(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){u||(u=n(83).StringDecoder);var t=new u(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var S=1073741824;function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var n=e._readableState;c("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(c("emitReadable",n.flowing),n.emittedReadable=!0,t.nextTick(M,e))}function M(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function N(e,n){n.readingMore||(n.readingMore=!0,t.nextTick(x,e,n))}function x(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(c("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function P(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){c("readable nexttick read 0"),e.read(0)}function R(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function L(e){var n=e._readableState;c("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,t.nextTick(F,n,e))}function F(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}j.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):A(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&L(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",i=!0),t.ended||t.reading?c("reading or ended",i=!1):i&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(n,t))),null===(r=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&L(this)),null!==r&&this.emit("data",r),r},j.prototype._read=function(e){E(this,new _("_read()"))},j.prototype.pipe=function(e,n){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,c("pipe count=%d opts=%j",a.pipesCount,n);var o=(!n||!1!==n.end)&&e!==t.stdout&&e!==t.stderr?l:g;function s(t,n){c("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",g),r.removeListener("data",d),p=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){c("onend"),e.end()}a.endEmitted?t.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,D(e))}}(r);e.on("drain",u);var p=!1;function d(t){c("ondata");var n=e.write(t);c("dest.write",n),!1===n&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==z(a.pipes,e))&&!p&&(c("false write response, pause",a.awaitDrain),a.awaitDrain++),r.pause())}function h(t){c("onerror",t),g(),e.removeListener("error",h),0===i(e,"error")&&E(e,t)}function f(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",f),g()}function g(){c("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",f),e.once("finish",m),e.emit("pipe",r),a.flowing||(c("pipe resume"),r.resume()),e},j.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=z(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},j.prototype.on=function(e,n){var r=a.prototype.on.call(this,e,n),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c("on readable",i.length,i.reading),i.length?A(this):i.reading||t.nextTick(I,this))),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,n){var r=a.prototype.removeListener.call(this,e,n);return"readable"===e&&t.nextTick(P,this),r},j.prototype.removeAllListeners=function(e){var n=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(P,this),n},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,n){n.resumeScheduled||(n.resumeScheduled=!0,t.nextTick(R,e,n))}(this,e)),e.paused=!1,this},j.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(c("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(c("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<w.length;a++)e.on(w[a],this.emit.bind(this,w[a]));return this._read=function(t){c("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(j.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n(297)),p(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),j._fromList=U,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(j.from=function(e,t){return void 0===d&&(d=n(298)),d(j,e,t)})}).call(this,n(44))},function(e,t,n){e.exports=n(55).EventEmitter},function(e,t,n){"use strict";(function(t){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(a?a(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!a&&e?o._writableState?o._writableState.errorEmitted?t.nextTick(r,o):(o._writableState.errorEmitted=!0,t.nextTick(n,o,e)):t.nextTick(n,o,e):a?(t.nextTick(r,o),a(e)):t.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(44))},function(e,t,n){"use strict";var r=n(67).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";(function(t){function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=j,j.WritableState=k;var a={deprecate:n(180)},o=n(176),s=n(42).Buffer,c=window.Uint8Array||function(){};var l,u=n(177),p=n(178).getHighWaterMark,d=n(67).codes,h=d.ERR_INVALID_ARG_TYPE,f=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,_=d.ERR_STREAM_WRITE_AFTER_END,y=d.ERR_UNKNOWN_ENCODING,E=u.errorOrDestroy;function w(){}function k(e,a,o){i=i||n(68),e=e||{},"boolean"!=typeof o&&(o=a instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,n){var r=e._writableState,i=r.sync,a=r.writecb;if("function"!=typeof a)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),n)!function(e,n,r,i,a){--n.pendingcb,r?(t.nextTick(a,i),t.nextTick(M,e,n),e._writableState.errorEmitted=!0,E(e,i)):(a(i),e._writableState.errorEmitted=!0,E(e,i),M(e,n))}(e,r,i,n,a);else{var o=T(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||S(e,r),i?t.nextTick(C,e,r,o,a):C(e,r,o,a)}}(a,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function j(e){var t=this instanceof(i=i||n(68));if(!t&&!l.call(j,this))return new j(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),o.call(this)}function O(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function C(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),M(e,t)}function S(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,a=new Array(i),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)a[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;a.allBuffers=c,O(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(O(e,t,!1,t.objectMode?1:l.length,l,u,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(n){t.pendingcb--,n&&E(e,n),t.prefinished=!0,e.emit("prefinish"),M(e,t)}))}function M(e,n){var r=T(n);if(r&&(function(e,n){n.prefinished||n.finalCalled||("function"!=typeof e._final||n.destroyed?(n.prefinished=!0,e.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,t.nextTick(A,e,n)))}(e,n),0===n.pendingcb&&(n.finished=!0,e.emit("finish"),n.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}n(27)(j,o),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===j&&(e&&e._writableState instanceof k)}})):l=function(e){return e instanceof this},j.prototype.pipe=function(){E(this,new g)},j.prototype.write=function(e,n,r){var i,a=this._writableState,o=!1,l=!a.objectMode&&(i=e,s.isBuffer(i)||i instanceof c);return l&&!s.isBuffer(e)&&(e=function(e){return s.from(e)}(e)),"function"==typeof n&&(r=n,n=null),l?n="buffer":n||(n=a.defaultEncoding),"function"!=typeof r&&(r=w),a.ending?function(e,n){var r=new _;E(e,r),t.nextTick(n,r)}(this,r):(l||function(e,n,r,i){var a;return null===r?a=new v:"string"==typeof r||n.objectMode||(a=new h("chunk",["string","Buffer"],r)),!a||(E(e,a),t.nextTick(i,a),!1)}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var c=t.objectMode?1:r.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,c,r,i,a);return l}(this,a,l,e,n,r)),o},j.prototype.cork=function(){this._writableState.corked++},j.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},j.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(e,t,n){n(new f("_write()"))},j.prototype._writev=null,j.prototype.end=function(e,n,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,n=null):"function"==typeof n&&(r=n,n=null),null!=e&&this.write(e,n),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,n,r){n.ending=!0,M(e,n),r&&(n.finished?t.nextTick(r):e.once("finish",r));n.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),j.prototype.destroy=u.destroy,j.prototype._undestroy=u.undestroy,j.prototype._destroy=function(e,t){t(e)}}).call(this,n(44))},function(e,t){function n(e){try{if(!window.localStorage)return!1}catch(n){return!1}var t=window.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},function(e,t,n){"use strict";e.exports=u;var r=n(67).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(68);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(27)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,n){var r=n(27),i=n(69),a=n(29).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function p(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,b=0;b<16;++b)n[b]=e.readInt32BE(4*b);for(;b<64;++b)n[b]=0|(((t=n[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[b-7]+h(n[b-15])+n[b-16];for(var v=0;v<64;++v){var _=g+d(c)+l(c,f,m)+o[v]+n[v]|0,y=p(r)+u(r,i,a)|0;g=m,m=f,f=c,c=s+_|0,s=a,a=i,i=r,r=_+y|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,n){var r=n(27),i=n(69),a=n(29).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function p(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,v=0|this._gh,_=0|this._hh,y=0|this._al,E=0|this._bl,w=0|this._cl,k=0|this._dl,j=0|this._el,O=0|this._fl,C=0|this._gl,S=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var A=t[T-30],M=t[T-30+1],N=h(A,M),x=f(M,A),P=m(A=t[T-4],M=t[T-4+1]),I=g(M,A),R=t[T-14],D=t[T-14+1],U=t[T-32],L=t[T-32+1],F=x+D|0,z=N+R+b(F,x)|0;z=(z=z+P+b(F=F+I|0,I)|0)+U+b(F=F+L|0,L)|0,t[T]=z,t[T+1]=F}for(var B=0;B<160;B+=2){z=t[B],F=t[B+1];var V=u(n,r,i),H=u(y,E,w),K=p(n,y),J=p(y,n),q=d(s,j),W=d(j,s),G=o[B],Y=o[B+1],$=l(s,c,v),Z=l(j,O,C),X=S+W|0,Q=_+q+b(X,S)|0;Q=(Q=(Q=Q+$+b(X=X+Z|0,Z)|0)+G+b(X=X+Y|0,Y)|0)+z+b(X=X+F|0,F)|0;var ee=J+H|0,te=K+V+b(ee,J)|0;_=v,S=C,v=c,C=O,c=s,O=j,s=a+Q+b(j=k+X|0,k)|0,a=i,k=w,i=r,w=E,r=n,E=y,n=Q+te+b(y=X+ee|0,X)|0}this._al=this._al+y|0,this._bl=this._bl+E|0,this._cl=this._cl+w|0,this._dl=this._dl+k|0,this._el=this._el+j|0,this._fl=this._fl+O|0,this._gl=this._gl+C|0,this._hl=this._hl+S|0,this._ah=this._ah+n+b(this._al,y)|0,this._bh=this._bh+r+b(this._bl,E)|0,this._ch=this._ch+i+b(this._cl,w)|0,this._dh=this._dh+a+b(this._dl,k)|0,this._eh=this._eh+s+b(this._el,j)|0,this._fh=this._fh+c+b(this._fl,O)|0,this._gh=this._gh+v+b(this._gl,C)|0,this._hh=this._hh+_+b(this._hl,S)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,n){"use strict";(function(t){var r=n(94);e.exports=v;var i,a=n(172);v.ReadableState=b;n(55).EventEmitter;var o=function(e,t){return e.listeners(t).length},s=n(185),c=n(127).Buffer,l=window.Uint8Array||function(){};var u=Object.create(n(84));u.inherits=n(27);var p=n(306),d=void 0;d=p&&p.debuglog?p.debuglog("stream"):function(){};var h,f=n(307),m=n(186);u.inherits(v,s);var g=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var r=t instanceof(i=i||n(64));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(83).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function v(e){if(i=i||n(64),!(this instanceof v))return new v(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function _(e,t,n,r,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,o)):(i||(a=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):y(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?y(e,o,t,!1):O(e,o)):y(e,o,t,!1))):r||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function y(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),O(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},v.prototype.unshift=function(e){return _(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return h||(h=n(83).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var E=8388608;function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(j,e):j(e))}function j(e){d("emit readable"),e.emit("readable"),A(e)}function O(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function S(e){d("readable nexttick read 0"),e.read(0)}function T(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function N(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(x,t,e))}function x(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):k(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&N(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",i=!0),t.ended||t.reading?d("reading or ended",i=!1):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=w(n,t))),null===(r=e>0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&N(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,n){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,d("pipe count=%d opts=%j",s.pipesCount,n);var c=(!n||!1!==n.end)&&e!==t.stdout&&e!==t.stderr?u:_;function l(t,n){d("onunpipe"),t===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",p),e.removeListener("error",g),e.removeListener("unpipe",l),i.removeListener("end",u),i.removeListener("end",_),i.removeListener("data",m),h=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function u(){d("onend"),e.end()}s.endEmitted?r.nextTick(c):i.once("end",c),e.on("unpipe",l);var p=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,A(e))}}(i);e.on("drain",p);var h=!1;var f=!1;function m(t){d("ondata"),f=!1,!1!==e.write(t)||f||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==P(s.pipes,e))&&!h&&(d("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,f=!0),i.pause())}function g(t){d("onerror",t),_(),e.removeListener("error",g),0===o(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",v),_()}function v(){d("onfinish"),e.removeListener("close",b),_()}function _(){d("unpipe"),i.unpipe(e)}return i.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",b),e.once("finish",v),e.emit("pipe",i),s.flowing||(d("pipe resume"),i.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,n);return this}var o=P(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&k(this):r.nextTick(S,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(T,e,t))}(this,e)),this},v.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<g.length;a++)e.on(g[a],this.emit.bind(this,g[a]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=M}).call(this,n(44))},function(e,t,n){e.exports=n(55).EventEmitter},function(e,t,n){"use strict";var r=n(94);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=o;var r=n(64),i=Object.create(n(84));function a(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(27),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";var r=n(27),i=n(316),a=n(59),o=n(29).Buffer,s=n(189),c=n(124),l=n(125),u=o.alloc(128);function p(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new c:l(e)).update(t).digest():t.length<n&&(t=o.concat([t,u],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new c:l(e),this._hash.update(r)}r(p,a),p.prototype._update=function(e){this._hash.update(e)},p.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new p("rmd160",t):"md5"===e?new i(s,t):new p(e,t)}},function(e,t,n){var r=n(122);e.exports=function(e){return(new r).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,n){t.pbkdf2=n(318),t.pbkdf2Sync=n(194)},function(e,t){var n=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!=t)throw new TypeError("Bad key length")}},function(e,t,n){(function(t){var n;if(window.process&&window.process.browser)n="utf-8";else if(window.process&&window.process.version){n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n}).call(this,n(44))},function(e,t,n){var r=n(189),i=n(124),a=n(125),o=n(29).Buffer,s=n(192),c=n(193),l=n(195),u=o.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,n){var s=function(e){function t(t){return a(e).update(t).digest()}function n(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?n:"md5"===e?r:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length<c&&(t=o.concat([t,u],c));for(var l=o.allocUnsafe(c+p[e]),d=o.allocUnsafe(c+p[e]),h=0;h<c;h++)l[h]=54^t[h],d[h]=92^t[h];var f=o.allocUnsafe(c+n+4);l.copy(f,0,0,c),this.ipad1=f,this.ipad2=l,this.opad=d,this.alg=e,this.blocksize=c,this.hash=s,this.size=p[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,i){s(n,r);var a=new d(i=i||"sha1",e=l(e,c,"Password"),(t=l(t,c,"Salt")).length),u=o.allocUnsafe(r),h=o.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var f=0,m=p[i],g=Math.ceil(r/m),b=1;b<=g;b++){h.writeUInt32BE(b,t.length);for(var v=a.run(h,a.ipad1),_=v,y=1;y<n;y++){_=a.run(_,a.ipad2);for(var E=0;E<m;E++)v[E]^=_[E]}v.copy(u,f),f+=m}return u}},function(e,t,n){var r=n(29).Buffer;e.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}n[r+0]=i>>>0,n[r+1]=a>>>0},t.rip=function(e,t,n,r){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.pc1=function(e,t,n,r){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;n[r+0]=i>>>0,n[r+1]=a>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var a=0,o=0,s=r.length>>>1,c=0;c<s;c++)a<<=1,a|=e>>>r[c]&1;for(c=s;c<r.length;c++)o<<=1,o|=t>>>r[c]&1;n[i+0]=a>>>0,n[i+1]=o>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)r<<=6,r|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<a.length;n++)t<<=1,t|=e>>>a[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],a=0;a<t;a+=n)i.push(r.slice(a,a+n));return i.join(" ")}},function(e,t,n){"use strict";var r=n(45),i=n(27),a=n(196),o=n(129);function s(){this.tmp=new Array(2),this.keys=null}function c(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,o),e.exports=c,c.create=function(e){return new c(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=l[o>>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},c.prototype._update=function(e,t,n,r){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(n,o,r),a.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},c.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,n,r,i){for(var o=t,s=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];a.expand(s,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var p=a.substitute(l,u),d=s;s=(o^a.permute(p))>>>0,o=d}a.rip(s,o,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];a.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var p=a.substitute(l,u),d=o;o=(s^a.permute(p))>>>0,s=d}a.rip(o,s,r,i)}},function(e,t,n){var r=n(85),i=n(29).Buffer,a=n(199);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var c=o(e),l=a+16*s;e._cache.writeUInt32BE(c[0],l+0),e._cache.writeUInt32BE(c[1],l+4),e._cache.writeUInt32BE(c[2],l+8),e._cache.writeUInt32BE(c[3],l+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,n){var r=n(95),i=n(29).Buffer,a=n(59),o=n(27),s=n(331),c=n(85),l=n(199);function u(e,t,n,o){a.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(c);this._ghash=new s(u),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),a=t.length,o=a%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var c=8*a,u=i.alloc(8);u.writeUIntBE(c,0,8),r.update(u),e._finID=r.state;var p=i.from(e._finID);return l(p),p}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},function(e,t,n){var r=n(95),i=n(29).Buffer,a=n(59);function o(e,t,n,o){a.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}n(27)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},function(e,t,n){var r=n(66);e.exports=v,v.simpleSieve=g,v.fermatTest=b;var i=n(38),a=new i(24),o=new(n(205)),s=new i(1),c=new i(2),l=new i(5),u=(new i(16),new i(8),new i(10)),p=new i(3),d=(new i(7),new i(11)),h=new i(4),f=(new i(12),null);function m(){if(null!==f)return f;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return f=e,e}function g(e){for(var t=m(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function b(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,f;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;n.mod(u).cmp(p);)n.iadd(h)}else for(;n.mod(a).cmp(d);)n.iadd(h);if(g(f=n.shrn(1))&&g(n)&&b(f)&&b(n)&&o.test(f)&&o.test(n))return n}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(38),i=n(132);function a(e){this.rand=e||new i.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},a.prototype.test=function(e,t,n){var i=e.bitLength(),a=r.mont(e),o=new r(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var l=e.shrn(c),u=s.toRed(a);t>0;t--){var p=this._randrange(new r(2),s);n&&n(p);var d=p.toRed(a).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var h=1;h<c;h++){if(0===(d=d.redSqr()).cmp(o))return!1;if(0===d.cmp(u))break}if(h===c)return!1}}return!0},a.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),a=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),l=o.toRed(i);t>0;t--){var u=this._randrange(new r(2),o),p=e.gcd(u);if(0!==p.cmpn(1))return p;var d=u.toRed(i).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(l)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(a))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(l))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),a=i>>8,o=255&i;a?n.push(a,o):n.push(o)}return n},r.zero2=i,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(97),r.short=n(343),r.mont=n(344),r.edwards=n(345)},function(e,t,n){"use strict";var r=n(49).rotr32;function i(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(49),i=n(86),a=n(208),o=n(45),s=r.sum32,c=r.sum32_4,l=r.sum32_5,u=a.ch32,p=a.maj32,d=a.s0_256,h=a.s1_256,f=a.g0_256,m=a.g1_256,g=i.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}r.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(m(n[r-2]),n[r-7],f(n[r-15]),n[r-16]);var i=this.h[0],a=this.h[1],g=this.h[2],b=this.h[3],v=this.h[4],_=this.h[5],y=this.h[6],E=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var w=l(E,h(v),u(v,_,y),this.k[r],n[r]),k=s(d(i),p(i,a,g));E=y,y=_,_=v,v=s(b,w),b=g,g=a,a=i,i=s(w,k)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],b),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],_),this.h[6]=s(this.h[6],y),this.h[7]=s(this.h[7],E)},v.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(49),i=n(86),a=n(45),o=r.rotr64_hi,s=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,p=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,f=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,b=i.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function _(){if(!(this instanceof _))return new _;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function y(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function E(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function w(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function k(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function j(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function O(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function C(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function S(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function T(e,t){var n=o(e,t,1)^o(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=o(e,t,19)^o(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function N(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(_,b),e.exports=_,_.blockSize=1024,_.outSize=512,_.hmacStrength=192,_.padLength=128,_.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=M(n[r-4],n[r-3]),a=N(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=T(n[r-30],n[r-29]),l=A(n[r-30],n[r-29]),u=n[r-32],p=n[r-31];n[r]=h(i,a,o,s,c,l,u,p),n[r+1]=f(i,a,o,s,c,l,u,p)}},_.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],h=this.h[6],f=this.h[7],b=this.h[8],v=this.h[9],_=this.h[10],T=this.h[11],A=this.h[12],M=this.h[13],N=this.h[14],x=this.h[15];a(this.k.length===n.length);for(var P=0;P<n.length;P+=2){var I=N,R=x,D=C(b,v),U=S(b,v),L=y(b,v,_,T,A),F=E(b,v,_,T,A,M),z=this.k[P],B=this.k[P+1],V=n[P],H=n[P+1],K=m(I,R,D,U,L,F,z,B,V,H),J=g(I,R,D,U,L,F,z,B,V,H);I=j(r,i),R=O(r,i),D=w(r,i,o,s,c),U=k(r,i,o,s,c,l);var q=p(I,R,D,U),W=d(I,R,D,U);N=A,x=M,A=_,M=T,_=b,T=v,b=p(h,f,K,J),v=d(f,f,K,J),h=c,f=l,c=o,l=s,o=r,s=i,r=p(K,J,q,W),i=d(K,J,q,W)}u(this.h,0,r,i),u(this.h,2,o,s),u(this.h,4,c,l),u(this.h,6,h,f),u(this.h,8,b,v),u(this.h,10,_,T),u(this.h,12,A,M),u(this.h,14,N,x)},_.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){var r=n(27),i=n(88).Reporter,a=n(42).Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,i),t.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,n){var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(364)},function(e,t,n){var r=n(27),i=n(87),a=i.base,o=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.Node.call(this,"der",e)}function u(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var a=n;for(n=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;n<<=7,n|=127&a}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function p(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(var a=0;a<i;a++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}e.exports=c,c.prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},r(l,a.Node),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},l.prototype._decodeTag=function(e,t,n){var r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var i=p(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){var n=u(e,t);if(e.isError(n))return n;var r,i=p(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},l.prototype._decodeList=function(e,t,n,r){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=n.decode(e,"der",r);if(e.isError(o)&&a)break;i.push(o)}return i},l.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<r.length/2;a++)i+=String.fromCharCode(r.readUInt16BE(2*a));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,n){for(var r,i=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(i.push(a),a=0)}128&o&&i.push(a);var s=i[0]/40|0,c=i[0]%40;if(r=n?i:[s,c].concat(i.slice(1)),t){var l=t[r.join(" ")];void 0===l&&(l=t[r.join(".")]),void 0!==l&&(r=l)}return r},l.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),i=0|n.slice(4,6),a=0|n.slice(6,8),o=0|n.slice(8,10),s=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),a=0|n.slice(4,6),o=0|n.slice(6,8),s=0|n.slice(8,10),c=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,a,o,s,c,0)},l.prototype._decodeNull=function(e){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var n=e.raw(),r=new o(n);return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){var r=n(27),i=n(42).Buffer,a=n(87),o=a.base,s=a.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(l,o.Node),l.prototype._encodeComposite=function(e,t,n,r){var a,o=function(e,t,n,r){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(r.length<128)return(a=new i(2))[0]=o,a[1]=r.length,this._createEncoderBuffer([a,r]);for(var c=1,l=r.length;l>=256;l>>=8)c++;(a=new i(2+c))[0]=o,a[1]=128|c;l=1+c;for(var u=r.length;u>0;l--,u>>=8)a[l]=255&u;return this._createEncoderBuffer([a,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new i(2*e.length),r=0;r<e.length;r++)n.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var r=0;r<e.length;r++)e[r]|=0}else if(Array.isArray(e)){e=e.slice();for(r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(r=0;r<e.length;r++){var o=e[r];for(a++;o>=128;o>>=7)a++}var s=new i(a),c=s.length-1;for(r=e.length-1;r>=0;r--){o=e[r];for(s[c--]=127&o;(o>>=7)>0;)s[c--]=128|127&o}return this._createEncoderBuffer(s)},l.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new i(n)}if(i.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new i(r);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var o=e;o>=256;o>>=8)r++;for(o=(a=new Array(r)).length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new i(a))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,n){var r,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,n).join()),a.length!==i.defaultBuffer.length)return!1;for(r=0;r<a.length;r++)if(a[r]!==i.defaultBuffer[r])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,n){var r=n(82),i=n(29).Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,o=i.alloc(0),s=0;o.length<t;)n=a(s++),o=i.concat([o,r("sha1").update(e).update(n).digest()]);return o.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},function(e,t,n){var r=n(38),i=n(29).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(e,t,n){"use strict";var r=n(49),i=n(86),a=n(208),o=r.rotl32,s=r.sum32,c=r.sum32_5,l=a.ft_1,u=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],a=this.h[1],u=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var f=~~(r/20),m=c(o(i,5),l(f,a,u,d),h,n[r],p[f]);h=d,d=u,u=o(a,30),a=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(155),i=n(112),a=n(240),o=n(241);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},s(t)}e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(252));t.default=c;var i=o(n(289)),a=o(n(290));function o(e){return e&&e.__esModule?e:{default:e}}var s=new r.default;function c(e,t){return s.set(e,t),function(){s.delete(e)}}function l(e){s.forEach((function(t,n){(0,a.default)(n,e.target)||t.call(n,e)}))}function u(e){e||(e=document),i.default.bind(e,"click",l)}c.globalClick=l,c.install=u,"undefined"!=typeof document&&u(document),e.exports=t.default},function(e,t,n){function r(e){var t,n;for(t=[],n=0;n<e.length;n++)t.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_"[e[n]%64]);return t.join("")}e.exports=function(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return r(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),i=0;i<e;i++)t[i]=Math.floor(256*Math.random());return r(t)}var a=n(291);try{return r(a.randomBytes(e))}catch(o){return r(a.pseudoRandomBytes(e))}}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=n(10),o=n.n(a),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),d=n.n(p),h=n(4),f=n.n(h),m=n(0),g=n.n(m),b=n(12),v=n(387),_=n(15),y=n(1),E=n(22),w=n(16),k=n.n(w),j=(n(246),function(e){u()(n,e);var t=d()(n);function n(){return i()(this,n),t.apply(this,arguments)}return o()(n,[{key:"render",value:function(){var e=k()("dops-button-group",this.props.className);return g.a.createElement("span",{className:e},this.props.children)}}]),n}(g.a.Component));f()(j,"displayName","ButtonGroup"),f()(j,"propTypes",{children:function(e){var t=null;return g.a.Children.forEach(e.children,(function(e){e.props&&"button"===e.props.type||(t=new Error("All children elements should be a Button."))})),t}});var O=n(13),C=n(14),S=n(21),T=Object(b.b)((function(e){return{canEditPosts:Object(C.J)(e),canManageOptions:Object(C.L)(e),hasConnectedOwner:Object(O.k)(e),isCurrentUserLinked:Object(O.n)(e),isSiteConnected:Object(O.v)(e),activeModules:Object(S.b)(e),siteConnectionStatus:Object(O.i)(e)}}))((function(e){var t=e.activeModules,n=e.canEditPosts,r=e.canManageOptions,i=e.hasConnectedOwner,a=e.isCurrentUserLinked,o=e.isSiteConnected,s=e.location,c=void 0===s?{pathname:""}:s,l=e.siteConnectionStatus,u=c.pathname,p=["/","/dashboard","/my-plan","/plans"].includes(u)||u.includes("/recommendations"),d=""===u,h=Object(m.useCallback)((function(){_.a.tracks.recordJetpackClick({target:"masthead",path:"nav_dashboard"})}),[]),f=Object(m.useCallback)((function(){_.a.tracks.recordJetpackClick({target:"masthead",path:"nav_settings"})}),[]);if(d)return null;if(!l)return null;if(u.startsWith("/setup"))return null;if(!n)return null;if("offline"!==l&&!o)return null;if("offline"!==l&&!r){if(!i)return null;if(!a)return null;if(!t.some((function(e){return["post-by-email","publicize"].includes(e)})))return null}return g.a.createElement("div",{className:"jp-masthead__nav"},g.a.createElement(j,null,g.a.createElement(E.a,{compact:!0,href:"#/dashboard",primary:p&&!d,onClick:h},Object(y.__)("Dashboard","jetpack")),g.a.createElement(E.a,{compact:!0,href:"#/settings",primary:!p&&!d,onClick:f},Object(y.__)("Settings","jetpack"))))})),A=function(e){u()(n,e);var t=d()(n);function n(){var e;i()(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return e=t.call.apply(t,[this].concat(a)),f()(c()(e),"trackLogoClick",(function(){_.a.tracks.recordJetpackClick({target:"masthead",path:"logo"})})),f()(c()(e),"testConnection",(function(){return e.props.testConnection()})),e}return o()(n,[{key:"render",value:function(){var e=this.props,t=e.sandboxDomain,n="offline"===e.siteConnectionStatus?g.a.createElement("code",null,"Offline Mode"):"",r=t?g.a.createElement("code",{id:"sandbox-domain-badge",onClick:this.testConnection,onKeyDown:this.testConnection,role:"button",tabIndex:0,title:"Sandboxing via ".concat(t,". Click to test connection.")},"API Sandboxed"):"";return g.a.createElement("div",{className:"jp-masthead"},g.a.createElement("div",{className:"jp-masthead__inside-container"},g.a.createElement("div",{className:"jp-masthead__logo-container"},g.a.createElement("a",{onClick:this.trackLogoClick,className:"jp-masthead__logo-link",href:"#dashboard"},g.a.createElement(v.a,{className:"jetpack-logo__masthead"})),n,r),g.a.createElement(T,{location:this.props.location})))}}]),n}(g.a.Component);t.a=Object(b.b)((function(e){return{sandboxDomain:Object(O.h)(e),siteConnectionStatus:Object(O.i)(e)}}),(function(e){return{testConnection:function(){return e(Object(O.d)())}}}))(A)},function(e,t,n){var r=n(150);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,c=o(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(c[u]=n[u]);if(r){s=r(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(c[s[p]]=n[s[p]])}}return c}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}(n(0)),o=(i=n(2))&&i.__esModule?i:{default:i};function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){function t(){return u(this,t),n.apply(this,arguments)}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e);var n=h(t);return function(e,t,n){t&&p(e.prototype,t),n&&p(e,n)}(t,[{key:"render",value:function(){var e,t=this.props,n=t.size,r=t.onClick,i=t.icon,o=t.className,s=l(t,["size","onClick","icon","className"]),u=["social-logo","social-logo-"+i,o].filter(Boolean).join(" ");switch(i){default:e=a.default.createElement("svg",c({height:n,width:n},s));break;case"amazon":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M13.582 8.182c-1.648.185-3.802.308-5.344.984-1.781.769-3.03 2.337-3.03 4.644 0 2.953 1.86 4.429 4.253 4.429 2.02 0 3.125-.477 4.685-2.065.516.747.685 1.109 1.629 1.894a.589.589 0 00.672-.066l.006.006c.567-.505 1.599-1.401 2.18-1.888.231-.188.19-.496.009-.754-.52-.718-1.072-1.303-1.072-2.634V8.305c0-1.876.133-3.599-1.249-4.891C15.23 2.369 13.422 2 12.04 2 9.336 2 6.318 3.01 5.686 6.351c-.068.355.191.542.423.594l2.754.298c.258-.013.445-.266.494-.523.236-1.151 1.2-1.706 2.284-1.706.584 0 1.249.215 1.595.738.398.584.346 1.384.346 2.061v.369zm-.533 5.906c-.451.8-1.169 1.291-1.967 1.291-1.09 0-1.728-.83-1.728-2.061 0-2.42 2.171-2.86 4.227-2.86v.615c.001 1.108.027 2.031-.532 3.015zm7.634 5.251C18.329 21.076 14.917 22 11.979 22c-4.118 0-7.826-1.522-10.632-4.057-.22-.199-.024-.471.241-.317 3.027 1.762 6.771 2.823 10.639 2.823 2.608 0 5.476-.541 8.115-1.66.397-.169.73.262.341.55zm.653 1.704c-.194.163-.379.076-.293-.139.284-.71.92-2.298.619-2.684-.301-.386-1.99-.183-2.749-.092-.23.027-.266-.173-.059-.319 1.348-.946 3.555-.673 3.811-.356.26.32-.066 2.533-1.329 3.59z"})));break;case"behance":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M7.799 5.698c.589 0 1.12.051 1.606.156.482.102.894.273 1.241.507.344.235.612.546.804.938.188.387.281.871.281 1.443 0 .619-.141 1.137-.421 1.551-.284.413-.7.751-1.255 1.014.756.218 1.317.601 1.689 1.146.374.549.557 1.205.557 1.975 0 .623-.12 1.161-.359 1.612a3.144 3.144 0 01-.973 1.114c-.408.288-.876.5-1.399.637A6.144 6.144 0 017.963 18H2V5.698h5.799m-.35 4.97c.481 0 .878-.114 1.192-.345.311-.228.463-.603.463-1.119 0-.286-.051-.523-.152-.707a1.123 1.123 0 00-.416-.427 1.733 1.733 0 00-.596-.216 3.616 3.616 0 00-.697-.06H4.709v2.874h2.74zm.151 5.237c.267 0 .521-.024.759-.077.243-.053.457-.137.637-.261.182-.12.332-.283.441-.491.11-.206.163-.474.163-.798 0-.633-.18-1.084-.533-1.357-.356-.27-.83-.404-1.413-.404H4.709v3.388H7.6zm8.562-.041c.367.358.897.538 1.583.538.493 0 .92-.125 1.277-.374.354-.248.571-.514.654-.79h2.155c-.347 1.072-.872 1.838-1.589 2.299-.708.463-1.572.693-2.58.693-.701 0-1.332-.113-1.899-.337a4.041 4.041 0 01-1.439-.958 4.364 4.364 0 01-.904-1.484 5.433 5.433 0 01-.32-1.899c0-.666.11-1.288.329-1.863a4.36 4.36 0 01.933-1.492c.406-.42.885-.751 1.444-.994a4.63 4.63 0 011.857-.363c.754 0 1.414.145 1.98.44a3.941 3.941 0 011.389 1.181 4.82 4.82 0 01.783 1.69c.16.632.217 1.292.171 1.983h-6.428c-.001.706.237 1.372.604 1.73m2.811-4.68c-.291-.321-.783-.496-1.384-.496-.39 0-.714.066-.973.2a1.972 1.972 0 00-.621.491 1.772 1.772 0 00-.328.628 2.695 2.695 0 00-.111.587h3.98c-.058-.625-.271-1.085-.563-1.41zm-3.916-3.446h4.985V6.524h-4.985v1.214z"})));break;case"blogger-alt":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M19.779 9.904h-.981l-.021.001a1.163 1.163 0 01-1.16-1.079l-.001-.013A5.813 5.813 0 0011.803 3H8.871a5.813 5.813 0 00-5.813 5.813v6.375a5.813 5.813 0 005.813 5.813h6.257a5.814 5.814 0 005.813-5.813l.002-4.121a1.164 1.164 0 00-1.164-1.163zM8.726 7.713h3.291a1.117 1.117 0 110 2.234H8.726a1.117 1.117 0 110-2.234zm6.601 8.657H8.72a1.057 1.057 0 110-2.114h6.607a1.057 1.057 0 110 2.114z"})));break;case"blogger":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M14.722 14.019a.654.654 0 01-.654.654H9.977a.654.654 0 010-1.308h4.091c.361 0 .654.293.654.654zm-4.741-3.321h2.038a.692.692 0 000-1.384H9.981a.692.692 0 000 1.384zM21 5v14a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h14a2 2 0 012 2zm-3.456 6.39a.72.72 0 00-.72-.72h-.607l-.013.001a.72.72 0 01-.718-.668l-.001-.008a3.599 3.599 0 00-3.599-3.599H10.07a3.599 3.599 0 00-3.599 3.599v3.947a3.6 3.6 0 003.599 3.599h3.874a3.599 3.599 0 003.599-3.599l.001-2.552z"})));break;case"codepen":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M22.016 8.84l-.007-.037c-.005-.025-.008-.048-.015-.072-.003-.015-.01-.028-.013-.042l-.023-.062-.02-.042a.391.391 0 00-.03-.057.357.357 0 00-.025-.038l-.035-.052-.03-.037c-.015-.017-.028-.032-.043-.045-.01-.012-.022-.023-.035-.035a.442.442 0 00-.048-.04l-.037-.03-.015-.012-9.161-6.096a.864.864 0 00-.955 0L2.359 8.237l-.015.012-.038.028-.048.04a.638.638 0 00-.078.082c-.012.013-.022.023-.03.037-.011.017-.025.035-.035.052a.498.498 0 01-.025.038c-.011.022-.021.039-.03.059a.39.39 0 01-.02.041 1.184 1.184 0 00-.034.106c-.007.023-.011.046-.016.071-.001.014-.005.025-.006.037a.73.73 0 00-.009.114v6.093c0 .037.003.075.008.112l.007.038c.005.023.008.047.015.072a.209.209 0 00.013.04c.007.022.013.042.022.063l.02.04a.4.4 0 00.055.096l.035.052.03.037a.603.603 0 00.042.045l.035.035c.015.013.032.028.048.04l.038.03.013.01 9.163 6.095a.858.858 0 00.959.004l9.163-6.095.015-.01c.013-.01.027-.02.037-.03a.534.534 0 00.048-.04c.013-.012.025-.023.035-.035.017-.015.03-.032.043-.045l.03-.037a.678.678 0 00.035-.052l.025-.038a.4.4 0 00.03-.058l.02-.04.023-.063c.003-.013.01-.027.013-.04.007-.025.01-.048.015-.072l.007-.037c.003-.042.007-.079.007-.117V8.954a.625.625 0 00-.008-.114zm-9.154-4.376l6.751 4.49-3.016 2.013-3.735-2.492V4.464zm-1.724 0v4.009l-3.735 2.494-3.014-2.013 6.749-4.49zm-7.439 6.098L5.853 12l-2.155 1.438v-2.876zm7.439 8.974l-6.749-4.491 3.015-2.011 3.735 2.492v4.01zM12 14.035L8.953 12 12 9.966 15.047 12 12 14.035zm.862 5.501v-4.009l3.735-2.492 3.016 2.011-6.751 4.49zm7.441-6.098L18.147 12l2.156-1.438v2.876z"})));break;case"dribbble":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10zm8.434-8.631c-.292-.092-2.644-.794-5.32-.365 1.117 3.07 1.572 5.57 1.659 6.09a8.56 8.56 0 003.661-5.725zm-5.098 6.507c-.127-.749-.623-3.361-1.822-6.477l-.056.019c-4.818 1.679-6.547 5.02-6.701 5.334A8.5 8.5 0 0012 20.555a8.488 8.488 0 003.336-.679zm-9.682-2.152c.193-.331 2.538-4.213 6.943-5.637.111-.036.224-.07.337-.102a29.017 29.017 0 00-.692-1.45c-4.266 1.277-8.405 1.223-8.778 1.216a8.497 8.497 0 002.19 5.973zm-2.015-7.46c.382.005 3.901.02 7.897-1.041a54.477 54.477 0 00-3.167-4.94 8.572 8.572 0 00-4.73 5.981zm6.359-6.555a45.7 45.7 0 013.187 5c3.037-1.138 4.323-2.867 4.477-3.085a8.508 8.508 0 00-7.664-1.915zm8.614 2.903c-.18.243-1.612 2.078-4.77 3.367a27.028 27.028 0 01.751 1.678c2.842-.357 5.666.215 5.948.275a8.503 8.503 0 00-1.929-5.32z"})));break;case"dropbox":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 6.134L6.069 9.797 2 6.54l5.883-3.843L12 6.134zm-10 6.92l5.883 3.843L12 13.459 6.069 9.797 2 13.054zm10 .405l4.116 3.439L22 13.054l-4.069-3.257L12 13.459zM22 6.54l-5.884-3.843L12 6.134l5.931 3.663L22 6.54zm-9.989 7.66l-4.129 3.426-1.767-1.153v1.291l5.896 3.539 5.897-3.539v-1.291l-1.769 1.153-4.128-3.426z"})));break;case"eventbrite":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M18.041 3.931L5.959 3A2.96 2.96 0 003 5.959v12.083A2.96 2.96 0 005.959 21l12.083-.931C19.699 19.983 21 18.744 21 17.11V6.89c0-1.634-1.259-2.863-2.959-2.959zM16.933 8.17c-.082.215-.192.432-.378.551-.188.122-.489.132-.799.132-1.521 0-3.062-.048-4.607-.048-.152.708-.304 1.416-.451 2.128.932-.004 1.873.005 2.81.005.726 0 1.462-.069 1.586.525.04.189-.001.426-.052.615-.105.38-.258.676-.625.783-.185.054-.408.058-.646.058-1.145 0-2.345.017-3.493.02-.169.772-.328 1.553-.489 2.333 1.57-.005 3.067-.041 4.633-.058.627-.007 1.085.194 1.009.85a2.17 2.17 0 01-.211.725c-.102.208-.248.376-.488.452-.237.075-.541.064-.862.078-.304.014-.614.008-.924.016-.309.009-.619.022-.919.022-1.253 0-2.429.08-3.683.073-.603-.004-1.014-.249-1.124-.757-.059-.273-.018-.58.036-.841a3542.51 3542.51 0 011.629-7.763c.056-.265.114-.511.225-.714a1.24 1.24 0 01.79-.62c.368-.099.883-.047 1.344-.047.305 0 .612.008.914.016.925.026 1.817.03 2.747.053.304.007.615.016.915.016.621 0 1.17.073 1.245.614.039.288-.051.567-.132.783z",fillRule:"evenodd",clipRule:"evenodd"})));break;case"facebook":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"})));break;case"feed":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M2 8.667V12c5.515 0 10 4.485 10 10h3.333c0-7.363-5.97-13.333-13.333-13.333zM2 2v3.333c9.19 0 16.667 7.477 16.667 16.667H22C22 10.955 13.045 2 2 2zm2.5 15a2.5 2.5 0 100 5 2.5 2.5 0 000-5z"})));break;case"flickr":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})));break;case"foursquare":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M17.573 2H6.905C5.434 2 5 3.107 5 3.805v16.948c0 .785.422 1.077.66 1.172.238.097.892.177 1.285-.275 0 0 5.035-5.843 5.122-5.93.132-.132.132-.132.262-.132h3.26c1.368 0 1.588-.977 1.732-1.552.078-.318.692-3.428 1.225-6.122l.675-3.368C19.56 2.893 19.14 2 17.573 2zm-1.078 5.22c-.053.252-.372.518-.665.518h-4.157c-.467 0-.802.318-.802.787v.508c0 .467.337.798.805.798h3.528c.331 0 .655.362.583.715-.072.353-.407 2.102-.448 2.295-.04.193-.262.523-.655.523h-2.88c-.523 0-.683.068-1.033.503-.35.437-3.505 4.223-3.505 4.223-.032.035-.063.027-.063-.015V4.852c0-.298.26-.648.648-.648h8.562c.315 0 .61.297.528.683l-.446 2.333z"})));break;case"ghost":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M10.203 20.997H3.005v-3.599h7.198v3.599zm10.792-3.599h-7.193v3.599h7.193v-3.599zm.003-7.198H3v3.599h17.998V10.2zm-7.195-7.197H3.005v3.599h10.798V3.003zm7.197 0h-3.599v3.599H21V3.003z"})));break;case"github":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.419 2.865 8.166 6.839 9.489.5.09.682-.218.682-.484 0-.236-.009-.866-.014-1.699-2.782.602-3.369-1.34-3.369-1.34-.455-1.157-1.11-1.465-1.11-1.465-.909-.62.069-.608.069-.608 1.004.071 1.532 1.03 1.532 1.03.891 1.529 2.341 1.089 2.91.833.091-.647.349-1.086.635-1.337-2.22-.251-4.555-1.111-4.555-4.943 0-1.091.39-1.984 1.03-2.682-.103-.254-.447-1.27.097-2.646 0 0 .84-.269 2.75 1.025A9.548 9.548 0 0112 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.748-1.025 2.748-1.025.546 1.376.202 2.394.1 2.646.64.699 1.026 1.591 1.026 2.682 0 3.841-2.337 4.687-4.565 4.935.359.307.679.917.679 1.852 0 1.335-.012 2.415-.012 2.741 0 .269.18.579.688.481A9.997 9.997 0 0022 12c0-5.523-4.477-10-10-10z"})));break;case"google-alt":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.05 16c-3.312 0-6-2.688-6-6s2.688-6 6-6c1.62 0 2.976.594 4.014 1.566L14.26 9.222c-.432-.408-1.188-.888-2.31-.888-1.986 0-3.606 1.65-3.606 3.672 0 2.022 1.62 3.672 3.606 3.672 2.298 0 3.144-1.59 3.3-2.532h-3.306v-2.238h5.616c.084.378.15.732.15 1.23 0 3.426-2.298 5.862-5.76 5.862z"})));break;case"google-plus-alt":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M8 11h6.61c.06.35.11.7.11 1.16 0 4-2.68 6.84-6.72 6.84-3.87 0-7-3.13-7-7s3.13-7 7-7c1.89 0 3.47.69 4.69 1.83l-1.9 1.83c-.52-.5-1.43-1.08-2.79-1.08-2.39 0-4.34 1.98-4.34 4.42S5.61 16.42 8 16.42c2.77 0 3.81-1.99 3.97-3.02H8V11zm15 0h-2V9h-2v2h-2v2h2v2h2v-2h2"})));break;case"google-plus":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1.919 14.05a4.051 4.051 0 010-8.1c1.094 0 2.009.401 2.709 1.057l-1.15 1.118a2.229 2.229 0 00-1.559-.599c-1.341 0-2.434 1.114-2.434 2.479s1.094 2.479 2.434 2.479c1.551 0 2.122-1.073 2.227-1.709h-2.232v-1.511h3.791c.057.255.101.494.101.83.001 2.312-1.55 3.956-3.887 3.956zM19 12.75h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19v1.5z"})));break;case"google":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05h-9.36z"})));break;case"instagram":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.671.31.42.163.72.358 1.035.673.315.315.51.615.673 1.035.123.317.27.794.31 1.671.043.949.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671-.163.42-.358.72-.673 1.035-.315.315-.615.51-1.035.673-.317.123-.794.27-1.671.31-.949.043-1.233.052-3.637.052s-2.688-.009-3.637-.052c-.877-.04-1.354-.187-1.671-.31a2.786 2.786 0 01-1.035-.673 2.786 2.786 0 01-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.671.163-.42.358-.72.673-1.035.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.671-.31.949-.043 1.234-.052 3.637-.052M12 3c-2.444 0-2.751.01-3.711.054-.958.044-1.612.196-2.184.418a4.401 4.401 0 00-1.594 1.039c-.5.5-.808 1.002-1.038 1.594-.223.572-.375 1.226-.419 2.184C3.01 9.249 3 9.556 3 12s.01 2.751.054 3.711c.044.958.196 1.612.418 2.185.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.267.054 3.711.054s2.751-.01 3.711-.054c.958-.044 1.612-.196 2.185-.418a4.411 4.411 0 001.594-1.038c.5-.5.808-1.002 1.038-1.594.222-.572.375-1.227.418-2.185.044-.96.054-1.267.054-3.711s-.01-2.751-.054-3.711c-.044-.958-.196-1.612-.418-2.185A4.411 4.411 0 0019.49 4.51c-.5-.5-1.002-.808-1.594-1.038-.572-.222-1.227-.375-2.185-.418C14.751 3.01 14.444 3 12 3zm0 4.378a4.622 4.622 0 100 9.244 4.622 4.622 0 000-9.244zM12 15a3 3 0 110-6 3 3 0 010 6zm4.804-8.884a1.08 1.08 0 10.001 2.161 1.08 1.08 0 00-.001-2.161z"})));break;case"linkedin":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M19.7 3H4.3A1.3 1.3 0 003 4.3v15.4A1.3 1.3 0 004.3 21h15.4a1.3 1.3 0 001.3-1.3V4.3A1.3 1.3 0 0019.7 3zM8.339 18.338H5.667v-8.59h2.672v8.59zM7.004 8.574a1.548 1.548 0 11-.002-3.096 1.548 1.548 0 01.002 3.096zm11.335 9.764H15.67v-4.177c0-.996-.017-2.278-1.387-2.278-1.389 0-1.601 1.086-1.601 2.206v4.249h-2.667v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.779 3.203 4.092v4.711z"})));break;case"mail":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"medium-alt":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M7.423 6c3.27 0 5.922 2.686 5.922 6s-2.651 6-5.922 6S1.5 15.313 1.5 12s2.652-6 5.923-6zm9.458.351c1.635 0 2.961 2.53 2.961 5.65 0 3.118-1.325 5.648-2.96 5.648-1.636 0-2.962-2.53-2.962-5.649s1.325-5.649 2.96-5.649zm4.577.589c.576 0 1.042 2.265 1.042 5.06 0 2.794-.466 5.06-1.042 5.06-.575 0-1.04-2.265-1.04-5.06 0-2.794.465-5.06 1.04-5.06z",fillRule:"nonzero"})));break;case"medium":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M3 3v18h18V3H3zm15 4.26l-1 .93a.28.28 0 00-.11.27v6.8a.27.27 0 00.11.27l.94.93v.2h-4.75v-.2l1-1c.09-.1.09-.12.09-.27V9.74l-2.71 6.9h-.37L8 9.74v4.62a.67.67 0 00.17.54l1.27 1.54v.2H5.86v-.2l1.27-1.54a.64.64 0 00.17-.54V9a.5.5 0 00-.16-.4L6 7.26v-.2h3.52L12.23 13l2.38-5.94H18v.2z"})));break;case"patreon":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),a.default.createElement("g",null,a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.975 5a5.05 5.05 0 00-5.041 5.046c0 2.774 2.261 5.03 5.04 5.03A5.034 5.034 0 0019 10.047C19 7.264 16.746 5 13.975 5zM5 18.44h2.461V5H5v13.44z"})));break;case"pinterest-alt":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12.289 2C6.617 2 3.606 5.648 3.606 9.622c0 1.846 1.025 4.146 2.666 4.878.25.111.381.063.439-.169.044-.175.267-1.029.365-1.428a.365.365 0 00-.091-.362c-.54-.63-.975-1.791-.975-2.873 0-2.777 2.194-5.464 5.933-5.464 3.23 0 5.49 2.108 5.49 5.122 0 3.407-1.794 5.768-4.13 5.768-1.291 0-2.257-1.021-1.948-2.277.372-1.495 1.089-3.112 1.089-4.191 0-.967-.542-1.775-1.663-1.775-1.319 0-2.379 1.309-2.379 3.059 0 1.115.394 1.869.394 1.869s-1.302 5.279-1.54 6.261c-.405 1.666.053 4.368.094 4.604.021.126.167.169.25.063.129-.165 1.699-2.419 2.142-4.051.158-.59.817-2.995.817-2.995.43.784 1.681 1.446 3.013 1.446 3.963 0 6.822-3.494 6.822-7.833C20.394 5.112 16.849 2 12.289 2"})));break;case"pinterest":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.236 2.636 7.855 6.356 9.312-.087-.791-.166-2.005.035-2.869.182-.78 1.173-4.971 1.173-4.971s-.299-.599-.299-1.484c0-1.39.806-2.429 1.809-2.429.853 0 1.265.641 1.265 1.409 0 .858-.546 2.141-.828 3.329-.236.996.499 1.807 1.481 1.807 1.777 0 3.144-1.874 3.144-4.579 0-2.394-1.72-4.068-4.177-4.068-2.845 0-4.515 2.134-4.515 4.34 0 .859.331 1.781.744 2.282a.297.297 0 01.069.287c-.077.316-.246.995-.279 1.134-.044.183-.145.222-.334.134-1.249-.581-2.03-2.407-2.03-3.874 0-3.154 2.292-6.051 6.607-6.051 3.469 0 6.165 2.472 6.165 5.775 0 3.446-2.173 6.22-5.189 6.22-1.013 0-1.966-.526-2.292-1.148l-.623 2.377c-.226.869-.835 1.957-1.243 2.622.936.289 1.93.445 2.961.445 5.523 0 10-4.477 10-10S17.523 2 12 2z"})));break;case"pocket":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M21.927 4.194A1.82 1.82 0 0020.222 3H3.839a1.823 1.823 0 00-1.813 1.814v6.035l.069 1.2c.29 2.73 1.707 5.115 3.899 6.778l.119.089.025.018a9.897 9.897 0 003.91 1.727 10.06 10.06 0 004.049-.014.261.261 0 00.064-.023 9.906 9.906 0 003.753-1.691l.025-.018c.04-.029.08-.058.119-.089 2.192-1.664 3.609-4.049 3.898-6.778l.069-1.2V4.814a1.792 1.792 0 00-.098-.62zm-4.235 6.287l-4.704 4.512a1.372 1.372 0 01-1.898 0l-4.705-4.512a1.371 1.371 0 111.898-1.979l3.756 3.601 3.755-3.601a1.372 1.372 0 011.898 1.979z"})));break;case"polldaddy":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.487 2 2 6.487 2 12c0 5.514 4.487 10 10 10 5.514 0 10-4.486 10-10 0-5.513-4.486-10-10-10zm.991 1.68c2.361.084 4.657 1.251 6.197 3.136.283.334.541.693.774 1.067a7.775 7.775 0 00-6.094-2.94 7.764 7.764 0 00-5.896 2.703c-.006.003-.01.01-.016.014l-.152.159-.031.032a6.122 6.122 0 00-1.633 4.165 6.15 6.15 0 006.143 6.143c.57 0 1.123-.081 1.649-.227-1.849.839-4.131.747-5.926-.324-1.841-1.089-3.171-3.111-3.433-5.313A7.386 7.386 0 016.69 6.137C8.294 4.5 10.634 3.563 12.991 3.68zm3.373 8.519c-.049-2.024-1.587-3.889-3.544-4.174-1.927-.343-3.917.857-4.451 2.661a3.673 3.673 0 00.2 2.653c.39.8 1.067 1.451 1.894 1.759 1.664.654 3.63-.27 4.173-1.863.593-1.58-.396-3.423-1.94-3.776-1.52-.407-3.161.757-3.204 2.243a2.362 2.362 0 00.753 1.879c.501.476 1.23.667 1.871.529a2.067 2.067 0 001.469-1.134 1.912 1.912 0 00-.087-1.767c-.297-.513-.859-.863-1.429-.881a1.698 1.698 0 00-1.437.679 1.525 1.525 0 00-.18 1.489c.004.011.01.021.016.03.193.634.774 1.1 1.467 1.117a1.618 1.618 0 01-.97-.183c-.466-.244-.809-.747-.893-1.29a1.8 1.8 0 01.499-1.539 2.016 2.016 0 011.58-.606c.593.04 1.159.35 1.517.859.364.496.51 1.156.383 1.773-.116.62-.529 1.174-1.093 1.514a2.515 2.515 0 01-1.914.286c-.65-.161-1.226-.606-1.584-1.206a2.825 2.825 0 01-.341-2.031c.143-.7.573-1.321 1.176-1.753 1.193-.883 3.056-.751 4.106.411 1.106 1.1 1.327 3.027.406 4.371-.877 1.376-2.74 2.086-4.374 1.594-1.639-.449-2.913-2.079-3.031-3.853-.07-.884.13-1.797.583-2.577.445-.777 1.155-1.432 1.972-1.862 1.64-.88 3.816-.743 5.349.424 1.251.924 2.083 2.42 2.236 4.009l.001.03c0 2.9-2.359 5.26-5.26 5.26a5.216 5.216 0 01-1.947-.376 5.01 5.01 0 002.613-.079 4.955 4.955 0 002.514-1.751c.618-.828.95-1.861.901-2.869zM12 21.113c-5.024 0-9.111-4.087-9.111-9.113 0-4.789 3.713-8.723 8.411-9.081a6.548 6.548 0 00-.397.06c-2.644.453-5.017 2.106-6.32 4.409-1.309 2.301-1.391 5.19-.3 7.527 1.056 2.34 3.253 4.156 5.776 4.553 2.497.44 5.133-.483 6.787-2.301 1.719-1.797 2.269-4.529 1.486-6.796-.583-1.81-1.976-3.331-3.7-4.046 3.417.594 6.174 3.221 6.174 6.781 0 1.004-.241 2.02-.657 2.966-1.498 2.984-4.586 5.041-8.149 5.041z"})));break;case"print":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3a2 2 0 01-2 2H7a2 2 0 01-2-2v-3H2V9a2 2 0 012-2h1V5a2 2 0 012-2h10a2 2 0 012 2v2h1a2 2 0 012 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5a1.5 1.5 0 10-3.001.001A1.5 1.5 0 0020 10.5z"})));break;case"reddit":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M22 11.816a2.279 2.279 0 00-2.277-2.277c-.593 0-1.122.24-1.526.614-1.481-.965-3.455-1.594-5.647-1.69l1.171-3.702 3.18.748a1.878 1.878 0 001.876 1.862 1.88 1.88 0 001.877-1.878 1.88 1.88 0 00-1.877-1.877c-.769 0-1.431.466-1.72 1.13l-3.508-.826a.386.386 0 00-.46.261l-1.35 4.268c-2.316.038-4.411.67-5.97 1.671a2.24 2.24 0 00-1.492-.581A2.279 2.279 0 002 11.816c0 .814.433 1.523 1.078 1.925a4.056 4.056 0 00-.061.672c0 3.292 4.011 5.97 8.941 5.97s8.941-2.678 8.941-5.97c0-.214-.02-.424-.053-.632A2.259 2.259 0 0022 11.816zm-3.224-7.422a1.1 1.1 0 11-.001 2.199 1.1 1.1 0 01.001-2.199zM2.777 11.816c0-.827.672-1.5 1.499-1.5.313 0 .598.103.838.269-.851.676-1.477 1.479-1.812 2.36a1.482 1.482 0 01-.525-1.129zm9.182 7.79c-4.501 0-8.164-2.329-8.164-5.193S7.457 9.22 11.959 9.22s8.164 2.329 8.164 5.193-3.663 5.193-8.164 5.193zm8.677-6.605c-.326-.89-.948-1.701-1.797-2.384.248-.186.55-.301.883-.301.827 0 1.5.673 1.5 1.5.001.483-.23.911-.586 1.185zm-11.64 1.703c-.76 0-1.397-.616-1.397-1.376 0-.76.637-1.397 1.397-1.397s1.376.637 1.376 1.397-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.616 1.376-1.376 1.376-.76 0-1.399-.616-1.399-1.376 0-.76.639-1.397 1.399-1.397s1.376.637 1.376 1.397zm-1.172 3.38a.389.389 0 010 .55c-.674.674-1.727 1.002-3.219 1.002l-.011-.002-.011.002c-1.492 0-2.544-.328-3.218-1.002a.389.389 0 11.55-.55c.521.521 1.394.775 2.669.775l.011.002.011-.002c1.275 0 2.148-.253 2.669-.775a.387.387 0 01.549 0z"})));break;case"share":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M18 16c-.788 0-1.499.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118A2.981 2.981 0 0015 19a3 3 0 103-3z"})));break;case"skype":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M10.113 2.699l.1-.02c.033.017.066.033.098.051l-.198-.031zM2.72 10.223l-.017.103c.018.032.033.064.051.095l-.034-.198zm18.555 3.548c.007-.035.011-.071.018-.106-.018-.031-.033-.064-.052-.095l.034.201zm-7.712 7.428c.032.019.065.035.096.053l.105-.017-.201-.036zM22 16.386a5.55 5.55 0 01-1.637 3.953 5.548 5.548 0 01-3.953 1.637 5.575 5.575 0 01-2.75-.725l.105-.017-.202-.035c.032.019.065.035.096.053a9.524 9.524 0 01-1.654.147 9.375 9.375 0 01-3.676-.743 9.38 9.38 0 01-3.002-2.023 9.397 9.397 0 01-2.023-3.002 9.375 9.375 0 01-.743-3.676c0-.546.049-1.093.142-1.628.018.032.033.064.051.095l-.034-.199-.017.103A5.586 5.586 0 012 7.615c0-1.493.582-2.898 1.637-3.953A5.555 5.555 0 017.59 2.024c.915 0 1.818.228 2.622.655l-.1.02.199.031c-.032-.018-.066-.034-.098-.051l.004-.001a9.543 9.543 0 011.788-.169 9.41 9.41 0 016.678 2.766 9.4 9.4 0 012.024 3.002 9.375 9.375 0 01.743 3.676c0 .575-.054 1.15-.157 1.712-.018-.031-.033-.064-.052-.095l.034.201c.007-.035.011-.071.018-.106.461.829.707 1.767.707 2.721zm-5.183-2.248c0-1.331-.613-2.743-3.033-3.282l-2.209-.49c-.84-.192-1.807-.444-1.807-1.237 0-.794.679-1.348 1.903-1.348 2.468 0 2.243 1.696 3.468 1.696.645 0 1.209-.379 1.209-1.031 0-1.521-2.435-2.663-4.5-2.663-2.242 0-4.63.952-4.63 3.488 0 1.221.436 2.521 2.839 3.123l2.984.745c.903.223 1.129.731 1.129 1.189 0 .762-.758 1.507-2.129 1.507-2.679 0-2.307-2.062-3.743-2.062-.645 0-1.113.444-1.113 1.078 0 1.236 1.501 2.886 4.856 2.886 3.195 0 4.776-1.538 4.776-3.599z"})));break;case"spotify":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424a.622.622 0 01-.857.207c-2.348-1.435-5.304-1.76-8.785-.964a.622.622 0 11-.277-1.215c3.809-.871 7.077-.496 9.713 1.115a.623.623 0 01.206.857M17.81 13.7a.78.78 0 01-1.072.257c-2.687-1.652-6.785-2.131-9.965-1.166A.779.779 0 116.32 11.3c3.632-1.102 8.147-.568 11.234 1.328a.78.78 0 01.256 1.072m.105-2.835c-3.223-1.914-8.54-2.09-11.618-1.156a.935.935 0 11-.542-1.79c3.532-1.072 9.404-.865 13.115 1.338a.936.936 0 11-.955 1.608"})));break;case"squarespace":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M20.87 9.271a3.86 3.86 0 00-5.458 0l-6.141 6.141a.964.964 0 101.365 1.364l6.14-6.14a1.929 1.929 0 112.729 2.729l-6.022 6.022a1.929 1.929 0 002.729 0l4.658-4.658a3.86 3.86 0 000-5.458zm-2.047 2.047a.965.965 0 00-1.365 0l-6.14 6.14a1.929 1.929 0 01-2.729 0 .964.964 0 10-1.364 1.364 3.86 3.86 0 005.458 0l6.14-6.14a.966.966 0 000-1.364zm-2.047-6.141a3.858 3.858 0 00-5.458 0l-6.14 6.14a.964.964 0 101.364 1.364l6.141-6.14a1.929 1.929 0 012.729 0 .965.965 0 101.364-1.364zm-2.047 2.047a.964.964 0 00-1.364 0l-6.14 6.141a1.929 1.929 0 11-2.729-2.729l6.022-6.022a1.929 1.929 0 00-2.729 0L3.13 9.271a3.86 3.86 0 005.458 5.458l6.14-6.141a.963.963 0 00.001-1.364z"})));break;case"stumbleupon":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4.294a4.471 4.471 0 00-4.471 4.471v6.353a1.059 1.059 0 11-2.118 0v-2.824H2v2.941a4.471 4.471 0 008.942 0v-6.47a1.059 1.059 0 112.118 0v1.294l1.412.647 2-.647V8.765A4.473 4.473 0 0012 4.294zm1.059 8.059v2.882a4.471 4.471 0 008.941 0v-2.824h-3.412v2.824a1.059 1.059 0 11-2.118 0v-2.882l-2 .647-1.411-.647z"})));break;case"telegram":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.08 14.757s-.25.625-.936.325l-2.541-1.949-1.63 1.486s-.127.096-.266.036c0 0-.12-.011-.27-.486-.15-.475-.911-2.972-.911-2.972L6 12.349s-.387-.137-.425-.438c-.037-.3.437-.462.437-.462l10.03-3.934s.824-.362.824.238l-1.786 9.004z"})));break;case"tiktok-alt":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),a.default.createElement("g",null,a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2H5zm9.584 3h-2.052l.019 8.128a1.73 1.73 0 11-1.215-1.65v-2.084h-.533a3.804 3.804 0 103.803 3.803l-.022-4.207c1.268.968 2.85.869 2.85.869V8.82C14.47 8.636 14.584 6 14.584 6z"})));break;case"tiktok":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12.22 2h3.42s-.19 4.394 4.75 4.702v3.396s-2.636.166-4.75-1.448l.037 7.011a6.338 6.338 0 11-6.34-6.338h.89v3.472a2.882 2.882 0 102.024 2.752L12.22 2z"})));break;case"tumblr-alt":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M16.749 17.396c-.357.17-1.041.319-1.551.332-1.539.041-1.837-1.081-1.85-1.896V9.847h3.861v-2.91h-3.847V2.039h-2.817c-.046 0-.127.041-.138.144-.165 1.499-.867 4.13-3.783 5.181v2.484h1.945v6.282c0 2.151 1.587 5.206 5.775 5.135 1.413-.024 2.982-.616 3.329-1.126l-.924-2.743z"})));break;case"tumblr":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.569 14.265c-2.446.042-3.372-1.742-3.372-2.998v-3.668H8.923v-1.45c1.703-.614 2.113-2.15 2.209-3.025.007-.06.054-.084.081-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.131 1.081 1.107.298-.008.697-.094.906-.194l.54 1.601c-.205.296-1.121.641-1.946.656z"})));break;case"twitch":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M16.499 8.089h-1.636v4.91h1.636v-4.91zm-4.499 0h-1.637v4.91H12v-4.91zM4.228 3.178L3 6.451v13.092h4.499V22h2.456l2.454-2.456h3.681L21 14.636V3.178H4.228zm15.136 10.638L16.5 16.681H12l-2.453 2.453V16.68H5.863V4.814h13.501v9.002z"})));break;case"twitter-alt":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M22.23 5.924a8.212 8.212 0 01-2.357.646 4.115 4.115 0 001.804-2.27 8.221 8.221 0 01-2.606.996 4.103 4.103 0 00-6.991 3.742 11.647 11.647 0 01-8.457-4.287 4.087 4.087 0 00-.556 2.063 4.1 4.1 0 001.825 3.415 4.09 4.09 0 01-1.859-.513v.052a4.104 4.104 0 003.292 4.023 4.099 4.099 0 01-1.853.07 4.11 4.11 0 003.833 2.85 8.236 8.236 0 01-5.096 1.756 8.33 8.33 0 01-.979-.057 11.617 11.617 0 006.29 1.843c7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.531a8.298 8.298 0 002.047-2.123z"})));break;case"twitter":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-2.534 6.71c.004.099.007.198.007.298 0 3.045-2.318 6.556-6.556 6.556a6.52 6.52 0 01-3.532-1.035 4.626 4.626 0 003.412-.954 2.307 2.307 0 01-2.152-1.6 2.295 2.295 0 001.04-.04 2.306 2.306 0 01-1.848-2.259v-.029c.311.173.666.276 1.044.288a2.303 2.303 0 01-.713-3.076 6.54 6.54 0 004.749 2.407 2.305 2.305 0 013.926-2.101 4.602 4.602 0 001.463-.559 2.31 2.31 0 01-1.013 1.275c.466-.056.91-.18 1.323-.363-.31.461-.7.867-1.15 1.192z"})));break;case"vimeo":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M22.396 7.164c-.093 2.026-1.507 4.799-4.245 8.32C15.322 19.161 12.928 21 10.97 21c-1.214 0-2.24-1.119-3.079-3.359l-1.68-6.159c-.623-2.239-1.29-3.36-2.005-3.36-.156 0-.701.328-1.634.98l-.978-1.261c1.027-.902 2.04-1.805 3.037-2.708C6.001 3.95 7.03 3.327 7.715 3.264c1.619-.156 2.616.951 2.99 3.321.404 2.557.685 4.147.841 4.769.467 2.121.981 3.181 1.542 3.181.435 0 1.09-.688 1.963-2.065.871-1.376 1.338-2.422 1.401-3.142.125-1.187-.343-1.782-1.401-1.782-.498 0-1.012.115-1.541.341 1.023-3.35 2.977-4.977 5.862-4.884 2.139.063 3.148 1.45 3.024 4.161z"})));break;case"whatsapp":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M2.048 22l1.406-5.136a9.894 9.894 0 01-1.323-4.955C2.133 6.446 6.579 2 12.042 2a9.848 9.848 0 017.011 2.906 9.85 9.85 0 012.9 7.011c-.002 5.464-4.448 9.91-9.91 9.91h-.004a9.913 9.913 0 01-4.736-1.206L2.048 22zm5.497-3.172l.301.179a8.214 8.214 0 004.193 1.148h.003c4.54 0 8.235-3.695 8.237-8.237a8.189 8.189 0 00-2.41-5.828 8.182 8.182 0 00-5.824-2.416c-4.544 0-8.239 3.695-8.241 8.237a8.222 8.222 0 001.259 4.384l.196.312-.832 3.04 3.118-.819zm9.49-4.554c-.062-.103-.227-.165-.475-.289-.248-.124-1.465-.723-1.692-.806-.227-.083-.392-.124-.557.124-.165.248-.64.806-.784.971-.144.165-.289.186-.536.062-.248-.124-1.046-.385-1.991-1.229-.736-.657-1.233-1.468-1.378-1.715-.144-.248-.015-.382.109-.505.111-.111.248-.289.371-.434.124-.145.165-.248.248-.413.083-.165.041-.31-.021-.434s-.557-1.343-.763-1.839c-.202-.483-.407-.417-.559-.425-.144-.007-.31-.009-.475-.009a.91.91 0 00-.66.31c-.226.248-.866.847-.866 2.066 0 1.219.887 2.396 1.011 2.562.124.165 1.746 2.666 4.23 3.739.591.255 1.052.408 1.412.522.593.189 1.133.162 1.56.098.476-.071 1.465-.599 1.671-1.177.206-.58.206-1.075.145-1.179z"})));break;case"woocommerce":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M19 2H5C3.3 2 2 3.3 2 5v11c0 1.7 1.3 3 3 3h4l6 3-1-3h5c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3zm-1.6 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7s-.3.4-.6.4-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6.5 0 .8.3.9.9.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2.2.2.3.4.3.6s0 .4-.1.5z"})));break;case"wordpress":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12.158 12.786L9.46 20.625a8.984 8.984 0 005.526-.144.852.852 0 01-.065-.124l-2.763-7.571zM3.009 12a8.993 8.993 0 005.067 8.092L3.788 8.341A8.952 8.952 0 003.009 12zm15.06-.454c0-1.112-.399-1.881-.741-2.48-.456-.741-.883-1.368-.883-2.109 0-.826.627-1.596 1.51-1.596.04 0 .078.005.116.007A8.963 8.963 0 0012 3.009a8.982 8.982 0 00-7.512 4.052c.211.007.41.011.579.011.94 0 2.396-.114 2.396-.114.484-.028.541.684.057.741 0 0-.487.057-1.029.085l3.274 9.739 1.968-5.901-1.401-3.838c-.484-.028-.943-.085-.943-.085-.485-.029-.428-.769.057-.741 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.485-.028.542.684.057.741 0 0-.488.057-1.029.085l3.249 9.665.897-2.996c.456-1.169.684-2.137.684-2.907zm1.82-3.86c.039.286.06.593.06.924 0 .912-.171 1.938-.684 3.22l-2.746 7.94a8.984 8.984 0 004.47-7.771 8.922 8.922 0 00-1.1-4.313zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})));break;case"xanga":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M9 9h6v6H9V9zM3 9h6V3H3v6zm12 0h6V3h-6v6zm0 12h6v-6h-6v6zM3 21h6v-6H3v6z"})));break;case"youtube":e=a.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M21.8 8.001s-.195-1.378-.795-1.985c-.76-.797-1.613-.801-2.004-.847-2.799-.202-6.997-.202-6.997-.202h-.009s-4.198 0-6.997.202c-.39.047-1.242.051-2.003.847-.6.607-.795 1.985-.795 1.985S2 9.62 2 11.238v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.761.797 1.76.771 2.205.855 1.6.153 6.8.201 6.8.201s4.203-.006 7.001-.209c.391-.047 1.243-.051 2.004-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517c0-1.618-.2-3.237-.2-3.237zM9.935 14.594l-.001-5.62 5.404 2.82-5.403 2.8z"})))}return e}}]),t}(a.PureComponent);t.default=b,g(b,"defaultProps",{size:24}),g(b,"propTypes",{icon:o.default.string.isRequired,size:o.default.number,onClick:o.default.func,className:o.default.string})},,function(e,t,n){"use strict";var r=n(232);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case d:case o:case c:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case b:case g:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=b,t.Memo=g,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===p},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===b},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===c},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===s||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===_||e.$$typeof===y||e.$$typeof===E||e.$$typeof===v)},t.typeOf=w},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(154);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(239),i=n(6);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(112),i=n(156);function a(t,n,o){return i()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t,n){var r=n(139);e.exports=function(e){function t(e){var n,r=null;function a(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(a.enabled){var o=a,s=Number(new Date),c=s-(n||s);o.diff=c,o.prev=n,o.curr=s,n=s,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var l=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return"%";l++;var i=t.formatters[n];if("function"==typeof i){var a=r[l];e=i.call(o,a),r.splice(l,1),l--}return e})),t.formatArgs.call(o,r);var u=o.log||t.log;u.apply(o,r)}}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=i,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===r?t.enabled(e):r},set:function(e){r=e}}),"function"==typeof t.init&&t.init(a),a}function i(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(a)),r(t.skips.map(a).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(243),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=60*n,i=60*r,a=24*i,o=7*a,s=365.25*a;function c(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*i;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=a)return c(e,t,a,"day");if(t>=i)return c(e,t,i,"hour");if(t>=r)return c(e,t,r,"minute");if(t>=n)return c(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=a)return Math.round(e/a)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(226),i={};function a(e,t,n,r,i,a,o,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}var o="mixins";e.exports=function(e,t,n){var s=[],c={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)d(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(a(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return a("DEFINE_MANY_MERGED"===(l.hasOwnProperty(n)?l[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=f(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function p(e,t){var n=c.hasOwnProperty(t)?c[t]:null;_.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(o)&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==o){var l=n[s],d=r.hasOwnProperty(s);if(p(d,s),u.hasOwnProperty(s))u[s](e,l);else{var h=c.hasOwnProperty(s);if("function"==typeof l&&!h&&!d&&!1!==n.autobind)i.push(s,l),r[s]=l;else if(d){var g=c[s];a(h&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,s),"DEFINE_MANY_MERGED"===g?r[s]=f(r[s],l):"DEFINE_MANY"===g&&(r[s]=m(r[s],l))}else r[s]=l}}}else;}function h(e,t){for(var n in a(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return h(i,n),h(i,r),i}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,t){return t.bind(e)}var b={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},_={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},y=function(){};return r(y.prototype,e.prototype,_),function(e){var t=function(e,r,o){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=g(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=o||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;a("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new y,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],s.forEach(d.bind(null,t)),d(t,b),d(t,e),d(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),c)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return!(0,a.default)(this.props,e)||!(0,a.default)(this.state,t)};var r,i=n(249),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),a=0;a<n.length;a++)if(!i(n[a])||e[n[a]]!==t[n[a]])return!1;return!0},e.exports=t.default},function(e,t,n){},function(e,t,n){},function(e,t,n){e.exports={default:n(253),__esModule:!0}},function(e,t,n){n(254),n(255),n(268),n(271),n(282),n(285),n(287),e.exports=n(77).Map},function(e,t){},function(e,t,n){"use strict";var r=n(256)(!0);n(115)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(113),i=n(114);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):a:e?s.slice(c,c+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){e.exports=!n(63)&&!n(92)((function(){return 7!=Object.defineProperty(n(159)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(62);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){e.exports=n(60)},function(e,t,n){"use strict";var r=n(161),i=n(160),a=n(121),o={};n(60)(o,n(54)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(61),i=n(79),a=n(262);e.exports=n(63)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,c=0;s>c;)r.f(e,n=o[c++],t[n]);return e}},function(e,t,n){var r=n(263),i=n(164);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(80),i=n(116),a=n(264)(!1),o=n(119)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},function(e,t,n){var r=n(116),i=n(118),a=n(265);e.exports=function(e){return function(t,n,o){var s,c=r(t),l=i(c.length),u=a(o,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(113),i=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):a(e,t)}},function(e,t,n){var r=n(58).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(80),i=n(165),a=n(119)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){n(269);for(var r=n(58),i=n(60),a=n(81),o=n(54)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=r[l],p=u&&u.prototype;p&&!p[o]&&i(p,o,l),a[l]=a.Array}},function(e,t,n){"use strict";var r=n(270),i=n(166),a=n(81),o=n(116);e.exports=n(115)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(272),i=n(171),a="Map";e.exports=n(277)(a,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,a),e);return t&&t.v},set:function(e,t){return r.def(i(this,a),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(61).f,i=n(161),a=n(167),o=n(78),s=n(168),c=n(93),l=n(115),u=n(166),p=n(276),d=n(63),h=n(170).fastKey,f=n(171),m=d?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){s(e,u,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&c(r,n,e[l],e)}));return a(u.prototype,{clear:function(){for(var e=f(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=f(this,t),r=g(n,e);if(r){var i=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=i),i&&(i.p=a),n._f==r&&(n._f=i),n._l==r&&(n._l=a),n[m]--}return!!r},forEach:function(e){f(this,t);for(var n,r=o(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(f(this,t),e)}}),d&&r(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var r,i,a=g(e,t);return a?a.v=n:(e._l=a={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=a),r&&(r.n=a),e[m]++,"F"!==i&&(e._i[i]=a)),e},getEntry:g,setStrong:function(e,t,n){l(e,t,(function(e,n){this._t=f(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))}),n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){var r=n(79);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var a=e.return;throw void 0!==a&&r(a.call(e)),o}}},function(e,t,n){var r=n(81),i=n(54)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){var r=n(169),i=n(54)("iterator"),a=n(81);e.exports=n(77).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},function(e,t,n){"use strict";var r=n(58),i=n(77),a=n(61),o=n(63),s=n(54)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];o&&t&&!t[s]&&a.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(58),i=n(76),a=n(170),o=n(92),s=n(60),c=n(167),l=n(93),u=n(168),p=n(62),d=n(121),h=n(61).f,f=n(278)(0),m=n(63);e.exports=function(e,t,n,g,b,v){var _=r[e],y=_,E=b?"set":"add",w=y&&y.prototype,k={};return m&&"function"==typeof y&&(v||w.forEach&&!o((function(){(new y).entries().next()})))?(y=t((function(t,n){u(t,y,e,"_c"),t._c=new _,null!=n&&l(n,b,t[E],t)})),f("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var t="add"==e||"set"==e;!(e in w)||v&&"clear"==e||s(y.prototype,e,(function(n,r){if(u(this,y,e),!t&&v&&!p(n))return"get"==e&&void 0;var i=this._c[e](0===n?0:n,r);return t?this:i}))})),v||h(y.prototype,"size",{get:function(){return this._c.size}})):(y=g.getConstructor(t,e,b,E),c(y.prototype,n),a.NEED=!0),d(y,e),k[e]=y,i(i.G+i.W+i.F,k),v||g.setStrong(y,e,b),y}},function(e,t,n){var r=n(78),i=n(162),a=n(165),o=n(118),s=n(279);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,p=6==e,d=5==e||p,h=t||s;return function(t,s,f){for(var m,g,b=a(t),v=i(b),_=r(s,f,3),y=o(v.length),E=0,w=n?h(t,y):c?h(t,0):void 0;y>E;E++)if((d||E in v)&&(g=_(m=v[E],E,b),e))if(n)w[E]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:w.push(m)}else if(u)return!1;return p?-1:l||u?u:w}}},function(e,t,n){var r=n(280);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(62),i=n(281),a=n(54)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(117);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(76);r(r.P+r.R,"Map",{toJSON:n(283)("Map")})},function(e,t,n){var r=n(169),i=n(284);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(93);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(286)("Map")},function(e,t,n){"use strict";var r=n(76);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(288)("Map")},function(e,t,n){"use strict";var r=n(76),i=n(158),a=n(78),o=n(93);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,c=arguments[1];return i(this),(t=void 0!==c)&&i(c),null==e?new this:(n=[],t?(r=0,s=a(c,arguments[2],2),o(e,!1,(function(e){n.push(s(e,r++))}))):o(e,!1,n.push,n),new this(n))}})}},function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",i="addEventListener"!==n?"on":"";t.bind=function(e,t,r,a){return e[n](i+t,r,a||!1),r},t.unbind=function(e,t,n,a){return e[r](i+t,n,a||!1),n}},function(e,t){e.exports=function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(66),t.createHash=t.Hash=n(82),t.createHmac=t.Hmac=n(188);var r=n(317),i=Object.keys(r),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var o=n(191);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(319);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=n(334);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var l=n(339);t.createSign=l.createSign,t.Sign=l.Sign,t.createVerify=l.createVerify,t.Verify=l.Verify,t.createECDH=n(373);var u=n(374);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var p=n(377);t.randomFill=p.randomFill,t.randomFillSync=p.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),o=r[0],s=r[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,p=s>0?o-4:o;for(n=0;n<p;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(u(e,s,s+o>c?c:s+o));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,p=n?i-1:0,d=n?-1:1,h=e[t+p];for(p+=d,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+p],p+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+p],p+=d,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=l}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<<l)-1,p=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(o++,c/=2),o+p>=u?(s=0,o=u):o+p>=1?(s=(t*c-1)*Math.pow(2,i),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=f,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+h]=255&o,h+=f,o/=256,l-=8);e[n+h-f]|=128*m}},function(e,t){},function(e,t,n){"use strict";function r(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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(42).Buffer,s=n(296).inspect,c=s&&s.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n,l;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),l&&a(t,l),e}()},function(e,t){},function(e,t,n){"use strict";(function(t){var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(123),o=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),u=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function f(e){var t=e[o];if(null!==t){var n=e[d].read();null!==n&&(e[u]=null,e[o]=null,e[s]=null,t(h(n,!1)))}}function m(e){t.nextTick(f,e)}var g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((i(r={get stream(){return this[d]},next:function(){var e=this,n=this[c];if(null!==n)return Promise.reject(n);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){t.nextTick((function(){e[c]?r(e[c]):n(h(void 0,!0))}))}));var r,i=this[u];if(i)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[l]?n(h(void 0,!0)):t[p](n,r)}),r)}}(i,this));else{var a=this[d].read();if(null!==a)return Promise.resolve(h(a,!1));r=new Promise(this[p])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[d].destroy(null,(function(e){e?n(e):t(h(void 0,!0))}))}))})),r),g);e.exports=function(e){var t,n=Object.create(b,(i(t={},d,{value:e,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,p,{value:function(e,t){var r=n[d].read();r?(n[u]=null,n[o]=null,n[s]=null,e(h(r,!1))):(n[o]=e,n[s]=t)},writable:!0}),t));return n[u]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[u]=null,n[o]=null,n[s]=null,t(e)),void(n[c]=e)}var r=n[o];null!==r&&(n[u]=null,n[o]=null,n[s]=null,r(h(void 0,!0))),n[l]=!0})),e.on("readable",m.bind(null,n)),n}}).call(this,n(44))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,n){"use strict";e.exports=i;var r=n(181);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(27)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var r;var i=n(67).codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(123)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void a(t||new o("pipe"))}}function l(e){e()}function u(e,t){return e.pipe(t)}function p(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var o=t.map((function(e,n){var a=n<t.length-1;return c(e,a,n>0,(function(e){r||(r=e),e&&o.forEach(l),a||(o.forEach(l),i(r))}))}));return t.reduce(u)}},function(e,t,n){var r=n(27),i=n(69),a=n(29).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,p=0;p<16;++p)n[p]=e.readInt32BE(4*p);for(;p<80;++p)n[p]=n[p-3]^n[p-8]^n[p-14]^n[p-16];for(var d=0;d<80;++d){var h=~~(d/20),f=0|((t=r)<<5|t>>>27)+u(h,i,a,s)+c+n[d]+o[h];c=s,s=a,a=l(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(27),i=n(69),a=n(29).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function p(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var f=~~(h/20),m=l(r)+p(f,i,a,s)+c+n[h]+o[f]|0;c=s,s=a,a=u(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(27),i=n(182),a=n(69),o=n(29).Buffer,s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,n){var r=n(27),i=n(183),a=n(69),o=n(29).Buffer,s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,n){e.exports=i;var r=n(55).EventEmitter;function i(){r.call(this)}n(27)(i,r),i.Readable=n(126),i.Writable=n(312),i.Duplex=n(313),i.Transform=n(314),i.PassThrough=n(315),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",a),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t){},function(e,t,n){"use strict";var r=n(127).Buffer,i=n(308);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,a=r.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,i=s,t.copy(n,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){var r="undefined"!=typeof window&&window||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(310),t.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof window&&window.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof window&&window.clearImmediate||this&&this.clearImmediate},function(e,t,n){(function(e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,a,o,s,c=1,l={},u=!1,p=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){f(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){f(e.data)},r=function(e){a.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(i=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(f,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&f(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(o+e,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[c]=i,r(c),c++},d.clearImmediate=h}function h(e){delete l[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}}("undefined"==typeof self?"undefined"==typeof window?this:window:self)}).call(this,n(44))},function(e,t,n){"use strict";e.exports=a;var r=n(187),i=Object.create(n(84));function a(e){if(!(this instanceof a))return new a(e);r.call(this,e)}i.inherits=n(27),i.inherits(a,r),a.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(128)},function(e,t,n){e.exports=n(64)},function(e,t,n){e.exports=n(126).Transform},function(e,t,n){e.exports=n(126).PassThrough},function(e,t,n){"use strict";var r=n(27),i=n(29).Buffer,a=n(59),o=i.alloc(128),s=64;function c(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,o],s));for(var n=this._ipad=i.allocUnsafe(s),r=this._opad=i.allocUnsafe(s),c=0;c<s;c++)n[c]=54^t[c],r[c]=92^t[c];this._hash=[n]}r(c,a),c.prototype._update=function(e){this._hash.push(e)},c.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=c},function(e,t,n){e.exports=n(190)},function(e,t,n){var r,i,a=n(29).Buffer,o=n(192),s=n(193),c=n(194),l=n(195),u=window.crypto&&window.crypto.subtle,p={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return i||(i=window.process&&window.process.nextTick?window.process.nextTick:window.queueMicrotask?window.queueMicrotask:window.setImmediate?window.setImmediate:window.setTimeout)}function f(e,t,n,r,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return a.from(e)}))}e.exports=function(e,t,n,i,m,g){"function"==typeof m&&(g=m,m=void 0);var b=p[(m=m||"sha1").toLowerCase()];if(b&&"function"==typeof window.Promise){if(o(n,i),e=l(e,s,"Password"),t=l(t,s,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(window.process&&!window.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=f(r=r||a.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=t,t}(b).then((function(r){return r?f(e,t,n,i,b):c(e,t,n,i,m)})),g)}else h()((function(){var r;try{r=c(e,t,n,i,m)}catch(a){return g(a)}g(null,r)}))}},function(e,t,n){var r=n(320),i=n(130),a=n(131),o=n(333),s=n(96);function c(e,t,n){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function l(e,t,n){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),a[e])n=a[e].key,r=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=s(t,!1,n,r);return l(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=l,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},function(e,t,n){var r=n(59),i=n(321),a=n(27),o=n(29).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==n&&"des-ede-cbc"!==n||(a=o.concat([a,a.slice(0,8)]));var c=e.iv;o.isBuffer(c)||(c=o.from(c)),this._des=i.create({key:a,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=c,a(c,r),c.prototype._update=function(e){return o.from(this._des.update(e))},c.prototype._final=function(){return o.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(196),t.Cipher=n(129),t.DES=n(197),t.CBC=n(322),t.EDE=n(323)},function(e,t,n){"use strict";var r=n(45),i=n(27),a={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(a),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,n,r){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,n,r);for(s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{a._update.call(this,e,t,n,r);for(s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},function(e,t,n){"use strict";var r=n(45),i=n(27),a=n(129),o=n(197);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a})]:[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function c(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,a),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},function(e,t,n){var r=n(131),i=n(201),a=n(29).Buffer,o=n(202),s=n(59),c=n(95),l=n(96);function u(e,t,n){s.call(this),this._cache=new d,this._cipher=new c.AES(t),this._prev=a.from(n),this._mode=e,this._autopadding=!0}n(27)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return a.concat(r)};var p=a.alloc(16,16);function d(){this.cache=a.allocUnsafe(0)}function h(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=a.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new u(s.module,t,n)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=a.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return a.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(t,!1,n.key,n.iv);return h(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,n){var r=n(85);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},function(e,t,n){var r=n(29).Buffer,i=n(85);function a(e,t,n){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,a(e,t,n)]);break}i=e._cache.length,o=r.concat([o,a(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},function(e,t,n){var r=n(29).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},function(e,t,n){var r=n(29).Buffer;function i(e,t,n){for(var r,i,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=a(e._prev,n?r:i);return s}function a(e,t){var n=e.length,i=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)a[i]=e[i]<<1|e[i+1]>>7;return a}t.encrypt=function(e,t,n){for(var a=t.length,o=r.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],n);return o}},function(e,t,n){(function(e){var r=n(85);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,i(t)]);var a=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,a)}}).call(this,n(42).Buffer)},function(e,t,n){var r=n(29).Buffer,i=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=o},function(e,t,n){var r=n(201),i=n(29).Buffer,a=n(131),o=n(202),s=n(59),c=n(95),l=n(96);function u(e,t,n){s.call(this),this._cache=new p,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function p(){this.cache=i.allocUnsafe(0)}function d(e,t,n){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new u(s.module,t,n)}n(27)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},p.prototype.add=function(e){this.cache=i.concat([this.cache,e])},p.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},p.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return d(e,r.key,r.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(203),i=n(337),a=n(338);var o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new a(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,i,s,c){return e.isBuffer(i)||void 0===o[i]?t(n,"binary",i,s):(i=i||"binary",c=c||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,c)),"number"==typeof n?new a(r(n,s),s,!0):(e.isBuffer(n)||(n=new e(n,i)),new a(n,s,!0)))}}).call(this,n(42).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(38),i=new(n(205)),a=new r(24),o=new r(11),s=new r(10),c=new r(3),l=new r(7),u=n(203),p=n(66);function d(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function h(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=m;var f={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}function g(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in f)return f[r];var p,d=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return d+=1,d+="02"===n||"05"===n?8:4,f[r]=d,d;switch(i.test(e.shrn(1))||(d+=2),n){case"02":e.mod(a).cmp(o)&&(d+=8);break;case"05":(p=e.mod(s)).cmp(c)&&p.cmp(l)&&(d+=8);break;default:d+=4}return f[r]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(p(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(n.toArray()),a=this.getPrime();if(i.length<a.length){var o=new t(a.length-i.length);o.fill(0),i=t.concat([o,i])}return i},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new r(e),this}}).call(this,n(42).Buffer)},function(e,t,n){var r=n(29).Buffer,i=n(82),a=n(174),o=n(27),s=n(340),c=n(372),l=n(190);function u(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function p(e){a.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new u(e)}function h(e){return new p(e)}Object.keys(l).forEach((function(e){l[e].id=r.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),o(u,a.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(p,a.Writable),p.prototype._write=function(e,t,n){this._hash.update(e),n()},p.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},p.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},function(e,t,n){var r=n(29).Buffer,i=n(188),a=n(133),o=n(135).ec,s=n(134),c=n(98),l=n(215);function u(e,t,n,a){if((e=r.from(e.toArray())).length<t.byteLength()){var o=r.alloc(t.byteLength()-e.length);e=r.concat([o,e])}var s=n.length,c=function(e,t){e=(e=p(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}(n,t),l=r.alloc(s);l.fill(1);var u=r.alloc(s);return u=i(a,u).update(l).update(r.from([0])).update(e).update(c).digest(),l=i(a,u).update(l).digest(),{k:u=i(a,u).update(l).update(r.from([1])).update(e).update(c).digest(),v:l=i(a,u).update(l).digest()}}function p(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function d(e,t,n){var a,o;do{for(a=r.alloc(0);8*a.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),a=r.concat([a,t.v]);o=p(a,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function h(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,t,n,i,f){var m=c(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var n=l[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,n){var i,a=t.params.priv_key,o=t.params.p,c=t.params.q,l=t.params.g,f=new s(0),m=p(e,c).mod(c),g=!1,b=u(a,c,e,n);for(;!1===g;)f=h(l,i=d(c,b,n),o,c),0===(g=i.invm(c).imul(m.add(a.mul(f))).mod(c)).cmpn(0)&&(g=!1,f=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(f,g)}(e,m,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=r.concat([f,e]);for(var g=m.modulus.byteLength(),b=[0,1];e.length+b.length+1<g;)b.push(255);b.push(0);for(var v=-1;++v<e.length;)b.push(e[v]);return a(b,m)},e.exports.getKey=u,e.exports.makeKey=d},function(e,t){},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(e,t,n){"use strict";var r=n(46),i=n(38),a=n(27),o=n(97),s=r.assert;function c(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(c,o),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?n=a[0]:(n=a[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),a=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,a,o,s,c,l,u,p=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),f=new i(1),m=new i(0),g=new i(0),b=new i(1),v=0;0!==d.cmpn(0);){var _=h.div(d);l=h.sub(_.mul(d)),u=g.sub(_.mul(f));var y=b.sub(_.mul(m));if(!r&&l.cmp(p)<0)t=c.neg(),n=f,r=l.neg(),a=u;else if(r&&2==++v)break;c=l,h=d,d=l,g=f,f=u,b=m,m=y}o=l.neg(),s=u;var E=r.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(E)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:a},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),a=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),s=a.mul(r.a),c=i.mul(n.b),l=a.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*a]=s,r[2*a+1]=c,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,r,i,2*a,n),u=0;u<2*a;u++)r[u]=null,i[u]=null;return l},a(l,o.BasePoint),c.prototype.point=function(e,t,n){return new l(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var a=t[2];return r.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[r].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[r].concat(a.naf.points.map(i))}},r},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),p=r.redMul(l),d=c.redSqr().redIAdd(u).redISub(p).redISub(p),h=c.redMul(p.redISub(d)).redISub(a.redMul(u)),f=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,f)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=n.redMul(c),p=s.redSqr().redIAdd(l).redISub(u).redISub(u),d=s.redMul(u.redISub(p)).redISub(i.redMul(l)),h=this.z.redMul(o);return this.curve.jpoint(p,d,h)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),l=o.redAdd(o);for(t=0;t<e;t++){var u=a.redSqr(),p=l.redSqr(),d=p.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),f=a.redMul(p),m=h.redSqr().redISub(f.redAdd(f)),g=f.redISub(m),b=h.redMul(g);b=b.redIAdd(b).redISub(d);var v=l.redMul(s);t+1<e&&(c=c.redMul(d)),a=m,s=v,l=b}return this.curve.jpoint(a,l.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),p=this.y.redSqr(),d=p.redSqr(),h=this.x.redAdd(p).redSqr().redISub(u).redISub(d);h=h.redIAdd(h);var f=u.redAdd(u).redIAdd(u),m=f.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=f.redMul(h.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(a);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);e=c;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),p=this.y.redSqr(),d=this.x.redMul(p),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var f=d.redIAdd(d),m=(f=f.redIAdd(f)).redAdd(f);e=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(p).redISub(u);var g=p.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(f.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),a=t.redSqr(),o=n.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(o),u=s.redSqr().redISub(l.redAdd(l)),p=l.redISub(u),d=o.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(p).redISub(d),f=n.redAdd(n).redMul(r);return this.curve.jpoint(u,h,f)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var p=this.x.redMul(s).redISub(u);p=(p=p.redIAdd(p)).redIAdd(p);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(p,d,h)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(38),i=n(27),a=n(97),o=n(46);function s(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,a),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(n),o=i.redMul(r),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(46),i=n(38),a=n(27),o=n(97),s=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function l(e,t,n,r,a){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=a&&new i(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,o),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(a.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},a(l,o.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=r.redAdd(t),o=a.redSub(n),s=r.redSub(t),c=i.redMul(o),l=a.redMul(s),u=i.redMul(s),p=o.redMul(a);return this.curve.point(c,l,p,u)},l.prototype._projDbl=function(){var e,t,n,r,i,a,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(c)),n=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),a=l.redSub(i).redISub(i),e=o.redSub(s).redISub(c).redMul(a),t=l.redMul(r.redSub(c)),n=l.redMul(a))}else r=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),a=r.redSub(i).redSub(i),e=this.curve._mulC(o.redISub(r)).redMul(a),t=this.curve._mulC(r).redMul(s.redISub(c)),n=r.redMul(a);return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=n.redSub(t),o=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),l=a.redMul(o),u=s.redMul(c),p=a.redMul(c),d=o.redMul(s);return this.curve.point(l,u,d,p)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),p=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(o.redSub(this.curve._mulA(a))),n=c.redMul(l)):(t=r.redMul(l).redMul(o.redSub(a)),n=this.curve._mulC(c).redMul(l)),this.curve.point(p,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},function(e,t,n){"use strict";t.sha1=n(219),t.sha224=n(347),t.sha256=n(209),t.sha384=n(348),t.sha512=n(210)},function(e,t,n){"use strict";var r=n(49),i=n(209);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(49),i=n(210);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(49),i=n(86),a=r.rotl32,o=r.sum32,s=r.sum32_3,c=r.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function p(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],v=n,_=r,y=i,E=l,w=u,k=0;k<80;k++){var j=o(a(c(n,p(k,r,i,l),e[f[k]+t],d(k)),g[k]),u);n=u,u=l,l=a(i,10),i=r,r=j,j=o(a(c(v,p(79-k,_,y,E),e[m[k]+t],h(k)),b[k]),w),v=w,w=E,E=a(y,10),y=_,_=j}j=s(this.h[1],i,E),this.h[1]=s(this.h[2],l,w),this.h[2]=s(this.h[3],u,v),this.h[3]=s(this.h[4],n,_),this.h[4]=s(this.h[0],r,y),this.h[0]=j},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(49),i=n(45);function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,n){"use strict";var r=n(38),i=n(353),a=n(46),o=n(136),s=n(132),c=a.assert,l=n(354),u=n(355);function p(e){if(!(this instanceof p))return new p(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=p,p.prototype.keyPair=function(e){return new l(this,e)},p.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},p.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},p.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},p.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},p.prototype.sign=function(e,t,n,a){"object"==typeof n&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),c=e.toArray("be",o),l=new i({hash:this.hash,entropy:s,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),p=this.n.sub(new r(1)),d=0;;d++){var h=a.k?a.k(d):new r(l.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(p)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var m=f.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var b=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var v=(f.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return a.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),v^=1),new u({r:g,s:b,recoveryParam:v})}}}}}},p.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var a=(t=new u(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),l=c.mul(e).umod(this.n),p=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),p)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(l,n.getPublic(),p)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},p.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var a=this.n,o=new r(e),s=t.r,l=t.s,p=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),p):this.curve.pointFromX(s,p);var h=t.r.invm(a),f=a.sub(o).mul(h).umod(a),m=l.mul(h).umod(a);return this.g.mulAdd(f,s,m)},p.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(137),i=n(206),a=n(45);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},function(e,t,n){"use strict";var r=n(38),i=n(46).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,n){return t instanceof a?t:new a(e,{pub:t,pubEnc:n})},a.fromPrivate=function(e,t,n){return t instanceof a?t:new a(e,{priv:t,privEnc:n})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(38),i=n(46),a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,a=0,o=t.place;a<r;a++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var a=c(e,n);if(!1===a)return!1;if(a+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;var l=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var u=c(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var p=e.slice(n.place,u+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===p[0]){if(!(128&p[1]))return!1;p=p.slice(1)}return this.r=new r(l),this.s=new r(p),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var a=r.concat(n),o=[48];return u(o,a.length),o=o.concat(a),i.encode(o,e)}},function(e,t,n){"use strict";var r=n(137),i=n(136),a=n(46),o=a.assert,s=a.parseBytes,c=n(357),l=n(358);function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),a=this.encodePoint(i),o=this.hashInt(a,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(a)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return a.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(46),i=r.assert,a=r.parseBytes,o=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";var r=n(38),i=n(46),a=i.assert,o=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),o(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t,n){"use strict";var r=n(87);t.certificate=n(369);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=a;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=o;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var l=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=l;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=u,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var p=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=p;var d=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,n){var r=n(87),i=n(27);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=n(361).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(r){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(e),(function(t){n[t]=e[t]})),forEach(globals,(function(t){e[t]&&(n[t]=e[t])}));var a=Object_keys(n),o=r.call(n,this.code);return forEach(Object_keys(n),(function(t){(t in e||-1===indexOf(a,t))&&(e[t]=n[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,n[t])})),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return e&&forEach(Object_keys(t),(function(n){e[n]=t[n]})),n},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),(function(n){t[n]=e[n]})),t}},function(e,t,n){var r=n(27);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(e,t,n){var r=n(88).Reporter,i=n(88).EncoderBuffer,a=n(88).DecoderBuffer,o=n(45),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function l(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=l;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){l.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(o=this._peekTag(e,c,n.any),e.isError(o))return o}else{var l=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(f){o=!1}e.restore(l)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var p=e.offset;if(null===n.use&&null===n.choice){if(n.any)l=e.save();var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(l):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),p,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),i=n.any?i:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(a){var o=e.save(),s=n.choice[a];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:a,value:c},i=!0}catch(l){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},l.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)o=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else null!==i.use?a=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,u=null===i.implicit?"universal":"context";null===l?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(l,s,u,o))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},l.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(212);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(213),r.pem=n(366)},function(e,t,n){var r=n(27),i=n(42).Buffer,a=n(213);function o(e){a.call(this,e),this.enc="pem"}r(o,a),e.exports=o,o.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,l=0;l<n.length;l++){var u=n[l].match(o);if(null!==u&&u[2]===r){if(-1!==s){if("END"!==u[1])break;c=l;break}if("BEGIN"!==u[1])break;s=l}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);var p=n.slice(s+1,c).join("");p.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(p,"base64");return a.prototype.decode.call(this,d,t)}},function(e,t,n){var r=t;r.der=n(214),r.pem=n(368)},function(e,t,n){var r=n(27),i=n(214);function a(e){i.call(this,e),this.enc="pem"}r(a,i),e.exports=a,a.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"],a=0;a<n.length;a+=64)r.push(n.slice(a,a+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},function(e,t,n){"use strict";var r=n(87),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),l=r.define("RDNSequence",(function(){this.seqof(c)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),p=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(p),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),f=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=f},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=n(96),s=n(130),c=n(29).Buffer;e.exports=function(e,t){var n,l=e.toString(),u=l.match(r);if(u){var p="aes"+u[1],d=c.from(u[2],"hex"),h=c.from(u[3].replace(/[\r\n]/g,""),"base64"),f=o(t,d.slice(0,8),parseInt(u[1],10)).key,m=[],g=s.createDecipheriv(p,f,d);m.push(g.update(h)),m.push(g.final()),n=c.concat(m)}else{var b=l.match(a);n=new c(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},function(e,t,n){var r=n(29).Buffer,i=n(134),a=n(135).ec,o=n(98),s=n(215);function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,t,n,l,u){var p=o(n);if("ec"===p.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new a(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,p)}if("dsa"===p.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,a=n.data.q,s=n.data.g,l=n.data.pub_key,u=o.signature.decode(e,"der"),p=u.s,d=u.r;c(p,a),c(d,a);var h=i.mont(r),f=p.invm(a);return 0===s.toRed(h).redPow(new i(t).mul(f).mod(a)).fromRed().mul(l.toRed(h).redPow(d.mul(f).mod(a)).fromRed()).mod(r).mod(a).cmp(d)}(e,t,p)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");t=r.concat([u,t]);for(var d=p.modulus.byteLength(),h=[1],f=0;t.length+h.length+2<d;)h.push(255),f++;h.push(0);for(var m=-1;++m<t.length;)h.push(t[m]);h=r.from(h);var g=i.mont(p.modulus);e=(e=new i(e).toRed(g)).redPow(new i(p.publicExponent)),e=r.from(e.fromRed().toArray());var b=f<8?1:0;for(d=Math.min(e.length,h.length),e.length!==h.length&&(b=1),m=-1;++m<d;)b|=e[m]^h[m];return 0===b}},function(e,t,n){(function(t){var r=n(135),i=n(38);e.exports=function(e){return new o(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,n,r){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(r&&i.length<r){var a=new t(r-i.length);a.fill(0),i=t.concat([a,i])}return n?i.toString(n):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(42).Buffer)},function(e,t,n){t.publicEncrypt=n(375),t.privateDecrypt=n(376),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){var r=n(98),i=n(66),a=n(82),o=n(216),s=n(217),c=n(38),l=n(218),u=n(133),p=n(29).Buffer;e.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var h,f=r(e);if(4===d)h=function(e,t){var n=e.modulus.byteLength(),r=t.length,l=a("sha1").update(p.alloc(0)).digest(),u=l.length,d=2*u;if(r>n-d-2)throw new Error("message too long");var h=p.alloc(n-r-d-2),f=n-u-1,m=i(u),g=s(p.concat([l,h,p.alloc(1,1),t],f),o(m,f)),b=s(m,o(g,u));return new c(p.concat([p.alloc(1),b,g],n))}(f,t);else if(1===d)h=function(e,t,n){var r,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");r=n?p.alloc(o-a-3,255):function(e){var t,n=p.allocUnsafe(e),r=0,a=i(2*e),o=0;for(;r<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(n[r++]=t);return n}(o-a-3);return new c(p.concat([p.from([0,n?1:2]),r,p.alloc(1),t],o))}(f,t,n);else{if(3!==d)throw new Error("unknown padding");if((h=new c(t)).cmp(f.modulus)>=0)throw new Error("data too long for modulus")}return n?u(h,f):l(h,f)}},function(e,t,n){var r=n(98),i=n(216),a=n(217),o=n(38),s=n(133),c=n(82),l=n(218),u=n(29).Buffer;e.exports=function(e,t,n){var p;p=e.padding?e.padding:n?1:4;var d,h=r(e),f=h.modulus.byteLength();if(t.length>f||new o(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=n?l(new o(t),h):s(t,h);var m=u.alloc(f-d.length);if(d=u.concat([m,d],f),4===p)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(u.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),l=t.slice(o+1),p=a(s,i(l,o)),d=a(l,i(p,n-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i<r;)n+=e[i]^t[i];return n}(r,d.slice(0,o)))throw new Error("decryption error");var h=o;for(;0===d[h];)h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===p)return function(e,t,n){var r=t.slice(0,2),i=2,a=0;for(;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&a++;o.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(i)}(0,d,n);if(3===p)return d;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e){function r(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=n(29),a=n(66),o=i.Buffer,s=i.kMaxLength,c=window.crypto||window.msCrypto,l=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function p(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>s)throw new RangeError("buffer too small")}function d(t,n,r,i){if(e.browser){var o=t.buffer,s=new Uint8Array(o,n,r);return c.getRandomValues(s),i?void e.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,n),t;a(r,(function(e,r){if(e)return i(e);r.copy(t,n),i(null,t)}))}c&&c.getRandomValues||!e.browser?(t.randomFill=function(e,t,n,r){if(!(o.isBuffer(e)||e instanceof window.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,n=e.length;else if("function"==typeof n)r=n,n=e.length-t;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return u(t,e.length),p(n,t,e.length),d(e,t,n,r)},t.randomFillSync=function(e,t,n){void 0===t&&(t=0);if(!(o.isBuffer(e)||e instanceof window.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');u(t,e.length),void 0===n&&(n=e.length-t);return p(n,t,e.length),d(e,t,n)}):(t.randomFill=r,t.randomFillSync=r)}).call(this,n(44))},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],_n=!0,r=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(_n=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(s){r=!0,i=s}finally{try{_n||null==o.return||o.return()}finally{if(r)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function e(t){if(n(t))return t;if(n(t.ownerDocument))return t.ownerDocument;if(n(t.document))return t.document;if(t.parentNode)return e(t.parentNode);if(t.commonAncestorContainer)return e(t.commonAncestorContainer);if(t.startContainer)return e(t.startContainer);if(t.anchorNode)return e(t.anchorNode)};function n(e){return e&&9===e.nodeType}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(17),i=n.n(r),a=n(51),o=n.n(a),s=n(7),c=n.n(s),l=n(10),u=n.n(l),p=n(8),d=n.n(p),h=n(9),f=n.n(h),m=n(4),g=n.n(m),b=n(2),v=n.n(b),_=n(0),y=n.n(_),E=n(16),w=n.n(E),k=function(e){d()(n,e);var t=f()(n);function n(){return c()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this.props,t=e.logoColor,n=e.showText,r=e.className,a=o()(e,["logoColor","showText","className"]),s=n?"0 0 118 32":"0 0 32 32";return y.a.createElement("svg",i()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:s,className:w()("jetpack-logo",r)},a),y.a.createElement("path",{fill:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),n&&y.a.createElement(_.Fragment,null,y.a.createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),y.a.createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),y.a.createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),y.a.createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),y.a.createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),y.a.createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),y.a.createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}}]),n}(y.a.Component);g()(k,"propTypes",{className:v.a.string,width:v.a.number,height:v.a.number,showText:v.a.bool,logoColor:v.a.string}),g()(k,"defaultProps",{className:"",height:32,showText:!0,logoColor:"#00BE28"}),t.a=k},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(440).default,i=n(227);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={};"undefined"!=typeof window&&(t=null===(n=window.Initial_State)||void 0===n?void 0:n.calypsoEnv);if(0===e.search("https://")){var a=new URL(e);e="https://".concat(a.host).concat(a.pathname),i.url=encodeURIComponent(e)}else i.source=encodeURIComponent(e);Object.keys(r).map((function(e){i[e]=encodeURIComponent(r[e])})),!Object.keys(i).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(i.site=jetpack_redirects.currentSiteRawUrl),t&&(i.calypso_env=t);var o=Object.keys(i).map((function(e){return e+"="+i[e]})).join("&");return"https://jetpack.com/redirect/?"+o}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(396);e.exports=h,e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,o=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var p=n[0],d=n[1],h=n.index;if(s+=e.slice(o,h),o=h+p.length,d)s+=d[1];else{var f=e[o],m=n[2],g=n[3],b=n[4],v=n[5],_=n[6],y=n[7];s&&(r.push(s),s="");var E=null!=m&&null!=f&&f!==m,w="+"===_||"*"===_,k="?"===_||"*"===_,j=n[2]||u,O=b||v;r.push({name:g||a++,prefix:m||"",delimiter:j,optional:k,repeat:w,partial:E,asterisk:!!y,pattern:O?l(O):y?".*":"[^"+c(j)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&r.push(s),r}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",p(t)));return function(t,i){for(var a="",s=t||{},c=(i||{}).pretty?o:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var p,d=s[u.name];if(null==d){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(p=c(d[h]),!n[l].test(p))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(p)+"`");a+=(0===h?u.prefix:u.delimiter)+p}}else{if(p=u.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(d),!n[l].test(p))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+p+'"');a+=u.prefix+p}}else a+=u}return a}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,a=!1!==n.end,o="",s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)o+=c(l);else{var d=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+d+h+")*"),o+=h=l.optional?l.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var f=c(n.delimiter||"/"),m=o.slice(-f.length)===f;return i||(o=(m?o.slice(0,-f.length):o)+"(?:"+f+"(?=$))?"),o+=a?"$":i&&m?"":"(?="+f+"|$)",u(new RegExp("^"+o,p(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(e,t,n):function(e,t,n){return d(a(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";(function(t){var r=n(421);e.exports=d;var i,a,o="undefined"!=typeof document&&document.ontouchstart?"touchstart":"click",s="undefined"!=typeof window&&(window.history.location||window.location),c=!0,l=!0,u="",p=!1;function d(e,t){if("function"==typeof e)return d("*",e);if("function"==typeof t)for(var n=new m(e),r=1;r<arguments.length;++r)d.callbacks.push(n.middleware(arguments[r]));else"string"==typeof e?d["string"==typeof t?"redirect":"show"](e,t):d.start(e)}function h(e){return"string"!=typeof e?e:l?decodeURIComponent(e.replace(/\+/g," ")):e}function f(e,t){"/"===e[0]&&0!==e.indexOf(u)&&(e=u+(p?"#!":"")+e);var n=e.indexOf("?");if(this.canonicalPath=e,this.path=e.replace(u,"")||"/",p&&(this.path=this.path.replace("#!","")||"/"),this.title=document.title,this.state=t||{},this.state.path=e,this.querystring=~n?h(e.slice(n+1)):"",this.pathname=h(~n?e.slice(0,n):e),this.params={},this.hash="",!p){if(!~this.path.indexOf("#"))return;var r=this.path.split("#");this.path=r[0],this.hash=h(r[1])||"",this.querystring=this.querystring.split("#")[0]}}function m(e,t){t=t||{},this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=r(this.path,this.keys=[],t)}d.callbacks=[],d.exits=[],d.current="",d.len=0,d.base=function(e){if(0===arguments.length)return u;u=e},d.start=function(e){if(e=e||{},!i&&(i=!0,!1===e.dispatch&&(c=!1),!1===e.decodeURLComponents&&(l=!1),!1!==e.popstate&&window.addEventListener("popstate",g,!1),!1!==e.click&&document.addEventListener(o,b,!1),!0===e.hashbang&&(p=!0),c)){var t=p&&~s.hash.indexOf("#!")?s.hash.substr(2)+s.search:s.pathname+s.search+s.hash;d.replace(t,null,!0,c)}},d.stop=function(){i&&(d.current="",d.len=0,i=!1,document.removeEventListener(o,b,!1),window.removeEventListener("popstate",g,!1))},d.show=function(e,t,n,r){var i=new f(e,t);return d.current=i.path,!1!==n&&d.dispatch(i),!1!==i.handled&&!1!==r&&i.pushState(),i},d.back=function(e,t){d.len>0?(history.back(),d.len--):e?setTimeout((function(){d.show(e,t)})):setTimeout((function(){d.show(u,t)}))},d.redirect=function(e,t){"string"==typeof e&&"string"==typeof t&&d(e,(function(e){setTimeout((function(){d.replace(t)}),0)})),"string"==typeof e&&void 0===t&&setTimeout((function(){d.replace(e)}),0)},d.replace=function(e,t,n,r){var i=new f(e,t);return d.current=i.path,i.init=n,i.save(),!1!==r&&d.dispatch(i),i},d.dispatch=function(e){var t=a,n=0,r=0;function i(){var t=d.callbacks[n++];if(e.path===d.current)return t?void t(e,i):function(e){if(e.handled)return;var t;t=p?u+s.hash.replace("#!",""):s.pathname+s.search;if(t===e.canonicalPath)return;d.stop(),e.handled=!1,s.href=e.canonicalPath}(e);e.handled=!1}a=e,t?function e(){var n=d.exits[r++];if(!n)return i();n(t,e)}():i()},d.exit=function(e,t){if("function"==typeof e)return d.exit("*",e);for(var n=new m(e),r=1;r<arguments.length;++r)d.exits.push(n.middleware(arguments[r]))},d.Context=f,f.prototype.pushState=function(){d.len++,history.pushState(this.state,this.title,p&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},f.prototype.save=function(){history.replaceState(this.state,this.title,p&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},d.Route=m,m.prototype.middleware=function(e){var t=this;return function(n,r){if(t.match(n.path,n.params))return e(n,r);r()}},m.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),i=~r?e.slice(0,r):e,a=this.regexp.exec(decodeURIComponent(i));if(!a)return!1;for(var o=1,s=a.length;o<s;++o){var c=n[o-1],l=h(a[o]);void 0===l&&hasOwnProperty.call(t,c.name)||(t[c.name]=l)}return!0};var g=function(){var e=!1;if("undefined"!=typeof window)return"complete"===document.readyState?e=!0:window.addEventListener("load",(function(){setTimeout((function(){e=!0}),0)})),function(t){if(e)if(t.state){var n=t.state.path;d.replace(n,t.state)}else d.show(s.pathname+s.hash,void 0,void 0,!1)}}();function b(e){if(1===function(e){return null===(e=e||window.event).which?e.button:e.which}(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented)){for(var n=e.path?e.path[0]:e.target;n&&"A"!==n.nodeName;)n=n.parentNode;if(n&&"A"===n.nodeName&&!n.hasAttribute("download")&&"external"!==n.getAttribute("rel")){var r=n.getAttribute("href");if((p||n.pathname!==s.pathname||!n.hash&&"#"!==r)&&!(r&&r.indexOf("mailto:")>-1)&&!n.target&&v(n.href)){var i=n.pathname+n.search+(n.hash||"");void 0!==t&&i.match(/^\/[a-zA-Z]:\//)&&(i=i.replace(/^\/[a-zA-Z]:\//,"/"));var a=i;0===i.indexOf(u)&&(i=i.substr(u.length)),p&&(i=i.replace("#!","")),u&&a===i||(e.preventDefault(),d.show(a))}}}}function v(e){var t=s.protocol+"//"+s.hostname;return s.port&&(t+=":"+s.port),e&&0===e.indexOf(t)}d.sameOrigin=v}).call(this,n(44))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(150);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(399);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=window.moment},function(e,t,n){
/*!
 * clipboard.js v2.0.6
 * https://clipboardjs.com/
 * 
 * Licensed MIT © Zeno Rocha
 */
var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var r=n(3),i=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(5);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,a){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,a)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),c=n(1),l=n.n(c),u=n(2),p=n.n(u),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=p()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return m("action",e)}},{key:"defaultTarget",value:function(e){var t=m("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(l.a);function m(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=f}]).default},e.exports=r()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(444);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(445),i=n(446),a=n(447);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(462),i=n(463),a=n(400),o=n(464);e.exports=function(e){return r(e)||i(e)||a(e)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=s(n(0)),a=s(n(465)),o=s(n(468));function s(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function l(e,t){var n,o,s,u,p,d,h,f,m=[],g={};for(d=0;d<e.length;d++)if("string"!==(p=e[d]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],s=d;break}m.push(t[p.value])}else m.push(p.value);return n&&(u=function(e,t){var n,r,i=t[e],a=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){a++;continue}if("componentClose"===n.type){if(0===a)return r;a--}}throw new Error("Missing closing component token `"+i.value+"`")}(s,e),h=l(e.slice(s+1,u),t),o=i.default.cloneElement(n,{},h),m.push(o),u<e.length-1&&(f=l(e.slice(u+1),t),m=m.concat(f))),1===m.length?m[0]:(m.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,a.default)(g))}t.default=function(e){var t=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,o.default)(t);try{return l(a,n)}catch(s){if(i)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+s.message+"`");return t}}},function(e,t,n){var r=n(55),i=n(27);function a(e){if(!(this instanceof a))return new a(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=a,i(a,r.EventEmitter),Object.defineProperty(a.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),a.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},a.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},a.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},a.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},a.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},a.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},a.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},a.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t,n){var r=n(469),i=n(470),a=n(400),o=n(471);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";e.exports=n(472)},function(e,t){e.exports=window.wp.compose},,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(396);e.exports=d,e.exports.parse=a,e.exports.compile=function(e){return o(a(e))},e.exports.tokensToFunction=o,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e){for(var t,n=[],r=0,a=0,o="";null!=(t=i.exec(e));){var s=t[0],l=t[1],u=t.index;if(o+=e.slice(a,u),a=u+s.length,l)o+=l[1];else{o&&(n.push(o),o="");var p=t[2],d=t[3],h=t[4],f=t[5],m=t[6],g=t[7],b="+"===m||"*"===m,v="?"===m||"*"===m,_=p||"/",y=h||f||(g?".*":"[^"+_+"]+?");n.push({name:d||r++,prefix:p||"",delimiter:_,optional:v,repeat:b,pattern:c(y)})}}return a<e.length&&(o+=e.substr(a)),o&&n.push(o),n}function o(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^"+e[n].pattern+"$"));return function(n){for(var i="",a=n||{},o=0;o<e.length;o++){var s=e[o];if("string"!=typeof s){var c,l=a[s.name];if(null==l){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to be defined')}if(r(l)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received "'+l+'"');if(0===l.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var u=0;u<l.length;u++){if(c=encodeURIComponent(l[u]),!t[o].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');i+=(0===u?s.prefix:s.delimiter)+c}}else{if(c=encodeURIComponent(l),!t[o].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');i+=s.prefix+c}}else i+=s}return i}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function u(e){return e.sensitive?"":"i"}function p(e,t){for(var n=(t=t||{}).strict,r=!1!==t.end,i="",a=e[e.length-1],o="string"==typeof a&&/\/$/.test(a),c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)i+=s(l);else{var p=s(l.prefix),d=l.pattern;l.repeat&&(d+="(?:"+p+d+")*"),i+=d=l.optional?p?"(?:"+p+"("+d+"))?":"("+d+")?":p+"("+d+")"}}return n||(i=(o?i.slice(0,-2):i)+"(?:\\/(?=$))?"),i+=r?"$":n&&o?"":"(?=\\/|$)",new RegExp("^"+i,u(t))}function d(e,t,n){return r(t=t||[])?n||(n={}):(n=t,t=[]),e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",u(n)),t)}(e,t,n):function(e,t,n){for(var r=a(e),i=p(r,n),o=0;o<r.length;o++)"string"!=typeof r[o]&&t.push(r[o]);return l(i,t)}(e,t,n)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(448).default,i=n(390);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(399);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(0),i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(401),o=n(466),s=n(467),c="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var a,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===i)return n(r,e,""===t?"."+l(e,0):t),1;var p=0,d=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h<e.length;h++)p+=u(a=e[h],d+l(a,h),n,r);else{var f=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(f){0;for(var m,g=f.call(e),b=0;!(m=g.next()).done;)p+=u(a=m.value,d+l(a,b++),n,r)}else if("object"===s){0;var v=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===v?"object with keys {"+Object.keys(e).join(", ")+"}":v,"")}}return p}var p=/\/+/g;function d(e){return(""+e).replace(p,"$&/")}var h,f,m=g,g=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},b=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function v(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function _(e,t,n){var i,o,s=e.result,c=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?y(p,s,n,a.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(i=p,o=c+(!p.key||t&&t.key===p.key?"":d(p.key)+"/")+n,p=r.cloneElement(i,{key:o},void 0!==i.props?i.props.children:void 0)),s.push(p))}function y(e,t,n,r,i){var a="";null!=n&&(a=d(n)+"/");var o=v.getPooled(t,a,r,i);!function(e,t,n){null==e||u(e,"",t,n)}(e,_,o),v.release(o)}v.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h=function(e,t,n,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r),a}return new i(e,t,n,r)},(f=v).instancePool=[],f.getPooled=h||m,f.poolSize||(f.poolSize=10),f.release=b;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)y(e[n],t,n,a.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(401);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,a=[],_n=!0,o=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);_n=!0);}catch(s){o=!0,i=s}finally{try{_n||null==n.return||n.return()}finally{if(o)throw i}}return a}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";
/** @license React vundefined
 * use-subscription.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(226),i=n(0);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var o=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),o({getCurrentValue:t,subscribe:n,value:a})),i.useDebugValue(a),i.useEffect((function(){function e(){if(!i){var e=t();o((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,a=n(e);return e(),function(){i=!0,a()}}),[t,n]),a}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"getRouteName",(function(){return op}));var r=n(39),i=n.n(r),a=n(0),o=n.n(a),s=n(12),c=n(48),l=n(2),u=n.n(l),p=n(41);function d(e){return"/"===e.charAt(0)}function h(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var f=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&d(e),o=t&&d(t),s=a||o;if(e&&d(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var l=0,u=i.length;u>=0;u--){var p=i[u];"."===p?h(i,u):".."===p?(h(i,u),l++):l&&(h(i,u),l--)}if(!s)for(;l--;l)i.unshift("..");!s||""===i[0]||i[0]&&d(i[0])||i.unshift("");var f=i.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function m(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var g=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=m(t),i=m(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},b="Invariant failed";var v=function(e,t){if(!e)throw new Error(b)};function _(e){return"/"===e.charAt(0)?e:"/"+e}function y(e){return"/"===e.charAt(0)?e.substr(1):e}function E(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 w(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function k(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function j(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(p.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=f(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function O(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var C=!("undefined"==typeof window||!window.document||!window.document.createElement);function S(e,t){t(window.confirm(e))}var T="popstate",A="hashchange";function M(){try{return window.history.state||{}}catch(e){return{}}}function N(e){void 0===e&&(e={}),C||v(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,o=a.forceRefresh,s=void 0!==o&&o,c=a.getUserConfirmation,l=void 0===c?S:c,u=a.keyLength,d=void 0===u?6:u,h=e.basename?w(_(e.basename)):"";function f(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return h&&(a=E(a,h)),j(a,r,n)}function m(){return Math.random().toString(36).substr(2,d)}var g=O();function b(e){Object(p.a)(B,e),B.length=n.length,g.notifyListeners(B.location,B.action)}function y(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(f(e.state))}function N(){P(f(M()))}var x=!1;function P(e){if(x)x=!1,b();else{g.confirmTransitionTo(e,"POP",l,(function(t){t?b({action:"POP",location:e}):function(e){var t=B.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(x=!0,U(i))}(e)}))}}var I=f(M()),R=[I.key];function D(e){return h+k(e)}function U(e){n.go(e)}var L=0;function F(e){1===(L+=e)&&1===e?(window.addEventListener(T,y),i&&window.addEventListener(A,N)):0===L&&(window.removeEventListener(T,y),i&&window.removeEventListener(A,N))}var z=!1;var B={length:n.length,action:"POP",location:I,createHref:D,push:function(e,t){var i="PUSH",a=j(e,t,m(),B.location);g.confirmTransitionTo(a,i,l,(function(e){if(e){var t=D(a),o=a.key,c=a.state;if(r)if(n.pushState({key:o,state:c},null,t),s)window.location.href=t;else{var l=R.indexOf(B.location.key),u=R.slice(0,l+1);u.push(a.key),R=u,b({action:i,location:a})}else window.location.href=t}}))},replace:function(e,t){var i="REPLACE",a=j(e,t,m(),B.location);g.confirmTransitionTo(a,i,l,(function(e){if(e){var t=D(a),o=a.key,c=a.state;if(r)if(n.replaceState({key:o,state:c},null,t),s)window.location.replace(t);else{var l=R.indexOf(B.location.key);-1!==l&&(R[l]=a.key),b({action:i,location:a})}else window.location.replace(t)}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(e){void 0===e&&(e=!1);var t=g.setPrompt(e);return z||(F(1),z=!0),function(){return z&&(z=!1,F(-1)),t()}},listen:function(e){var t=g.appendListener(e);return F(1),function(){F(-1),t()}}};return B}var x="hashchange",P={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+y(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:y,decodePath:_},slash:{encodePath:_,decodePath:_}};function I(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function R(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function D(e){window.location.replace(I(window.location.href)+"#"+e)}function U(e){void 0===e&&(e={}),C||v(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?S:r,a=n.hashType,o=void 0===a?"slash":a,s=e.basename?w(_(e.basename)):"",c=P[o],l=c.encodePath,u=c.decodePath;function d(){var e=u(R());return s&&(e=E(e,s)),j(e)}var h=O();function f(e){Object(p.a)(z,e),z.length=t.length,h.notifyListeners(z.location,z.action)}var m=!1,g=null;function b(){var e,t,n=R(),r=l(n);if(n!==r)D(r);else{var a=d(),o=z.location;if(!m&&(t=a,(e=o).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(g===k(a))return;g=null,function(e){if(m)m=!1,f();else{var t="POP";h.confirmTransitionTo(e,t,i,(function(n){n?f({action:t,location:e}):function(e){var t=z.location,n=M.lastIndexOf(k(t));-1===n&&(n=0);var r=M.lastIndexOf(k(e));-1===r&&(r=0);var i=n-r;i&&(m=!0,N(i))}(e)}))}}(a)}}var y=R(),T=l(y);y!==T&&D(T);var A=d(),M=[k(A)];function N(e){t.go(e)}var U=0;function L(e){1===(U+=e)&&1===e?window.addEventListener(x,b):0===U&&window.removeEventListener(x,b)}var F=!1;var z={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=I(window.location.href)),n+"#"+l(s+k(e))},push:function(e,t){var n="PUSH",r=j(e,void 0,void 0,z.location);h.confirmTransitionTo(r,n,i,(function(e){if(e){var t=k(r),i=l(s+t);if(R()!==i){g=t,function(e){window.location.hash=e}(i);var a=M.lastIndexOf(k(z.location)),o=M.slice(0,a+1);o.push(t),M=o,f({action:n,location:r})}else f()}}))},replace:function(e,t){var n="REPLACE",r=j(e,void 0,void 0,z.location);h.confirmTransitionTo(r,n,i,(function(e){if(e){var t=k(r),i=l(s+t);R()!==i&&(g=t,D(i));var a=M.indexOf(k(z.location));-1!==a&&(M[a]=t),f({action:n,location:r})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return F||(L(1),F=!0),function(){return F&&(F=!1,L(-1)),t()}},listen:function(e){var t=h.appendListener(e);return L(1),function(){L(-1),t()}}};return z}function L(e,t,n){return Math.min(Math.max(e,t),n)}function F(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,a=t.initialIndex,o=void 0===a?0:a,s=t.keyLength,c=void 0===s?6:s,l=O();function u(e){Object(p.a)(b,e),b.length=b.entries.length,l.notifyListeners(b.location,b.action)}function d(){return Math.random().toString(36).substr(2,c)}var h=L(o,0,i.length-1),f=i.map((function(e){return j(e,void 0,"string"==typeof e?d():e.key||d())})),m=k;function g(e){var t=L(b.index+e,0,b.entries.length-1),r=b.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var b={length:f.length,action:"POP",location:f[h],index:h,entries:f,createHref:m,push:function(e,t){var r="PUSH",i=j(e,t,d(),b.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=b.index+1,n=b.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=j(e,t,d(),b.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(b.entries[b.index]=i,u({action:r,location:i}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return b}var z=1073741823,B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window||"undefined"!=typeof window?window:{};function V(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var H=o.a.createContext||function(e,t){var n,r,i,o="__create-react-context-"+((B[i="__global_unique_id__"]=(B[i]||0)+1)+"__"),s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=V(t.props.value),t}Object(c.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((a=r)===(o=i)?0!==a||1/a==1/o:a!=a&&o!=o)?n=0:(n="function"==typeof t?t(r,i):z,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,o},r.render=function(){return this.props.children},n}(a.Component);s.childContextTypes=((n={})[o]=u.a.object.isRequired,n);var l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(c.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?z:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?z:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return l.contextTypes=((r={})[o]=u.a.object,r),{Provider:s,Consumer:l}},K=n(392),J=n.n(K),q=(n(106),n(53)),W=n(104),G=n.n(W),Y=function(e){var t=H();return t.displayName=e,t}("Router-History"),$=function(e){var t=H();return t.displayName=e,t}("Router"),Z=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(c.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement($.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(Y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;var X=function(e){function t(){return e.apply(this,arguments)||this}Object(c.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);function Q(e){var t=e.message,n=e.when,r=void 0===n||n;return o.a.createElement($.Consumer,null,(function(e){if(e||v(!1),!r||e.staticContext)return null;var n=e.history.block;return o.a.createElement(X,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var ee={},te=0;function ne(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(ee[e])return ee[e];var t=J.a.compile(e);return te<1e4&&(ee[e]=t,te++),t}(e)(t,{pretty:!0})}function re(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement($.Consumer,null,(function(e){e||v(!1);var r=e.history,a=e.staticContext,s=i?r.push:r.replace,c=j(t?"string"==typeof n?ne(n,t.params):Object(p.a)({},n,{pathname:ne(n.pathname,t.params)}):n);return a?(s(c),null):o.a.createElement(X,{onMount:function(){s(c)},onUpdate:function(e,t){var n,r,i=j(t.to);n=i,r=Object(p.a)({},c,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&g(n.state,r.state)||s(c)},to:n})}))}var ie={},ae=0;function oe(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=void 0!==i&&i,o=n.strict,s=void 0!==o&&o,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=ie[n]||(ie[n]={});if(r[e])return r[e];var i=[],a={regexp:J()(e,i,t),keys:i};return ae<1e4&&(r[e]=a,ae++),a}(n,{end:a,strict:s,sensitive:l}),i=r.regexp,o=r.keys,c=i.exec(e);if(!c)return null;var u=c[0],p=c.slice(1),d=e===u;return a&&!d?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:d,params:o.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var se=function(e){function t(){return e.apply(this,arguments)||this}return Object(c.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement($.Consumer,null,(function(t){t||v(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?oe(n.pathname,e.props):t.match,i=Object(p.a)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,l=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement($.Provider,{value:i},i.match?s?"function"==typeof s?s(i):s:c?o.a.createElement(c,i):l?l(i):null:"function"==typeof s?s(i):null)}))},t}(o.a.Component);function ce(e){return"/"===e.charAt(0)?e:"/"+e}function le(e,t){if(!e)return t;var n=ce(e);return 0!==t.pathname.indexOf(n)?t:Object(p.a)({},t,{pathname:t.pathname.substr(n.length)})}function ue(e){return"string"==typeof e?e:k(e)}function pe(e){return function(){v(!1)}}function de(){}o.a.Component;var he=function(e){function t(){return e.apply(this,arguments)||this}return Object(c.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement($.Consumer,null,(function(t){t||v(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?oe(i.pathname,Object(p.a)({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);function fe(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(q.a)(t,["wrappedComponentRef"]);return o.a.createElement($.Consumer,null,(function(t){return t||v(!1),o.a.createElement(e,Object(p.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,G()(n,e)}o.a.useContext;o.a.Component;var me=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=U(t.props),t}return Object(c.a)(t,e),t.prototype.render=function(){return o.a.createElement(Z,{history:this.history,children:this.props.children})},t}(o.a.Component);var ge=function(e,t){return"function"==typeof e?e(t):e},be=function(e,t){return"string"==typeof e?j(e,null,null,t):e},ve=function(e){return e},_e=o.a.forwardRef;void 0===_e&&(_e=ve);var ye=_e((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=Object(q.a)(e,["innerRef","navigate","onClick"]),s=a.target,c=Object(p.a)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=ve!==_e&&t||n,o.a.createElement("a",c)}));var Ee=_e((function(e,t){var n=e.component,r=void 0===n?ye:n,i=e.replace,a=e.to,s=e.innerRef,c=Object(q.a)(e,["component","replace","to","innerRef"]);return o.a.createElement($.Consumer,null,(function(e){e||v(!1);var n=e.history,l=be(ge(a,e.location),e.location),u=l?n.createHref(l):"",d=Object(p.a)({},c,{href:u,navigate:function(){var t=ge(a,e.location);(i?n.replace:n.push)(t)}});return ve!==_e?d.ref=t||s:d.innerRef=s,o.a.createElement(r,d)}))})),we=function(e){return e},ke=o.a.forwardRef;void 0===ke&&(ke=we);ke((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,s=e.activeStyle,c=e.className,l=e.exact,u=e.isActive,d=e.location,h=e.sensitive,f=e.strict,m=e.style,g=e.to,b=e.innerRef,_=Object(q.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.a.createElement($.Consumer,null,(function(e){e||v(!1);var n=d||e.location,i=be(ge(g,n),n),y=i.pathname,E=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=E?oe(n.pathname,{path:E,exact:l,sensitive:h,strict:f}):null,k=!!(u?u(w,n):w),j=k?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(c,a):c,O=k?Object(p.a)({},m,{},s):m,C=Object(p.a)({"aria-current":k&&r||null,className:j,style:O,to:i},_);return we!==ke?C.ref=t||b:C.innerRef=b,o.a.createElement(Ee,C)}))}));var je=n(3),Oe=n(1),Ce=[9,32,37,38,39,40],Se=!1;var Te=function(){document.addEventListener("keydown",(function(e){Se||-1!==Ce.indexOf(e.keyCode)&&(Se=!0,document.documentElement.classList.add("dops-accessible-focus"))})),document.addEventListener("mouseup",(function(){Se&&(Se=!1,document.documentElement.classList.remove("dops-accessible-focus"))}))},Ae=n(153),Me=n(7),Ne=n.n(Me),xe=n(10),Pe=n.n(xe),Ie=n(6),Re=n.n(Ie),De=n(8),Ue=n.n(De),Le=n(9),Fe=n.n(Le),ze=n(4),Be=n.n(ze),Ve=n(391),He=function(e){window.location.replace(e)},Ke=(n(416),function(e){var t=e.title,n=e.isLoading,r=e.width,i=e.displayTOS,s=e.scrollToIframe,c=e.connectUrl,l=e.onComplete,u=e.onThirdPartyCookiesBlocked,p=e.location,d=e.height,h=Object(a.useRef)(),f=Object(a.useRef)(),m=function e(t){if(f.current&&t.source===f.current.contentWindow)switch(t.data){case"close":window.removeEventListener("message",e),l&&l();break;case"wpcom_nocookie":u&&u()}};Object(a.useEffect)((function(){s&&window.scrollTo(0,h.current.offsetTop-10),window.addEventListener("message",m)}));var g=c.replace("authorize/","authorize_iframe/");return g.includes("?")||(g+="?"),i&&(g+="&display-tos",d=(parseInt(d)+50).toString()),g+="&iframe_height="+parseInt(d),p&&(g+="&iframe_source="+p),o.a.createElement("div",{className:"dops-card fade-in jp-iframe-wrap",ref:h},o.a.createElement("h1",null,t),n?o.a.createElement("p",null,Object(Oe.__)("Loading…","jetpack")):o.a.createElement("iframe",{title:t,width:r,height:d,src:g,ref:f}))});Ke.propTypes={title:u.a.string.isRequired,isLoading:u.a.bool,width:u.a.string,height:u.a.string,connectUrl:u.a.string.isRequired,displayTOS:u.a.bool.isRequired,scrollToIframe:u.a.bool,onComplete:u.a.func,onThirdPartyCookiesBlocked:u.a.func,location:u.a.string},Ke.defaultProps={isLoading:!1,height:"300",width:"100%",scrollToIframe:!1};var Je=Ke,qe=n(13),We=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"onComplete",(function(){e.props.authorizeUserInPlaceSuccess(),e.props.fetchUserConnectionData(),e.props.onAuthorized()})),Be()(Re()(e),"onThirdPartyCookiesBlocked",(function(){return He(e.props.connectUrl)})),Be()(Re()(e),"render",(function(){return o.a.createElement(Je,{connectUrl:e.props.connectUrl,height:e.props.height,width:e.props.width,isLoading:e.props.fetchingConnectUrl,title:e.props.title,displayTOS:e.props.displayTOS,scrollToIframe:e.props.scrollToIframe,onComplete:e.onComplete,location:e.props.location,onThirdPartyCookiesBlocked:e.onThirdPartyCookiesBlocked})})),e}return n}(o.a.Component);Be()(We,"displayName","AuthIframe"),Be()(We,"propTypes",{title:u.a.string.isRequired,height:u.a.string,width:u.a.string,scrollToIframe:u.a.bool,onAuthorized:u.a.func,displayTOS:u.a.bool,location:u.a.string}),Be()(We,"defaultProps",{title:Object(Oe.__)("Connect your WordPress.com account","jetpack"),height:"330",width:"100%",scrollToIframe:!0,onAuthorized:je.noop});var Ge=Object(s.b)((function(e){return{fetchingConnectUrl:Object(qe.p)(e),connectUrl:Object(qe.f)(e),isAuthorizingInPlace:Object(qe.l)(e),displayTOS:Object(qe.k)(e)||Object(qe.v)(e)}}),(function(e){return{fetchUserConnectionData:function(){return e(Object(qe.e)())},authorizeUserInPlaceSuccess:function(){return e(Object(qe.b)())}}}))(We),Ye=n(224),$e=n(25),Ze=n.n($e),Xe=n(15),Qe=n(21),et=n(17),tt=n.n(et),nt=n(16),rt=n.n(nt),it=769,at="<480px",ot="undefined"==typeof window||!window.matchMedia;function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=e.max;return void 0!==t&&void 0!==n?ot?{matches:it>t&&it<=n}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(n,"px)")):void 0!==t?ot?{matches:it>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==n&&(ot?{matches:it<=n}:window.matchMedia("(max-width: ".concat(n,"px)")))}var ct={"<480px":st({max:480}),"<660px":st({max:660}),"<800px":st({max:800}),"<960px":st({max:960}),"<1040px":st({max:1040}),"<1280px":st({max:1280}),"<1400px":st({max:1400}),">480px":st({min:480}),">660px":st({min:660}),">800px":st({min:800}),">960px":st({min:960}),">1040px":st({min:1040}),">1280px":st({min:1280}),">1400px":st({min:1400}),"480px-660px":st({min:480,max:660}),"660px-960px":st({min:660,max:960}),"480px-960px":st({min:480,max:960})};function lt(e){if(ct.hasOwnProperty(e))return ct[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function ut(e){var t=lt(e);return t?t.matches:void 0}function pt(){return ut(at)}var dt=n(52),ht=n.n(dt),ft=n(72),mt=n.n(ft),gt=(n(417),ht()({displayName:"Count",mixins:[mt.a],propTypes:{count:u.a.number.isRequired},render:function(){return o.a.createElement("span",{className:"dops-count"},this.numberFormat(this.props.count))}})),bt=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=rt()(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return o.a.createElement("li",{className:"dops-select-dropdown__option"},o.a.createElement("a",{ref:"itemLink",href:this.props.path,className:e,onClick:this.props.disabled?null:this.props.onClick,"data-bold-text":this.props.value||this.props.children,role:"option",tabIndex:0,"aria-selected":this.props.selected},o.a.createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&o.a.createElement(gt,{count:this.props.count}))))}}]),n}(o.a.Component);Be()(bt,"propTypes",{children:u.a.string.isRequired,path:u.a.string,selected:u.a.bool,onClick:u.a.func,count:u.a.number}),Be()(bt,"defaultProps",{selected:!1});var vt=bt,_t=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("li",{className:"dops-select-dropdown__separator"})}}]),n}(o.a.Component),yt=o.a.Component,Et=function(e){return e.stopPropagation()},wt=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("li",{role:"menuitem",onClick:Et,className:"dops-select-dropdown__label"},o.a.createElement("label",null,this.props.children))}}]),n}(yt),kt=(n(418),function(){}),jt=function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;Ne()(this,n),(r=t.call(this,e)).navigateItem=r.navigateItem.bind(Re()(r)),r.toggleDropdown=r.toggleDropdown.bind(Re()(r)),r.handleOutsideClick=r.handleOutsideClick.bind(Re()(r)),r._onClick=r._onClick.bind(Re()(r));var i={isOpen:!1};return e.options.length&&(i.selected=r.getInitialSelectedItem(e)),r.state=i,r}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({instanceId:++n.instances})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.state.isOpen&&this.closeDropdown(),void 0!==this.state.selected&&this.props.initialSelected!==e.initialSelected&&this.setState({selected:e.initialSelected})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.handleOutsideClick)}},{key:"componentDidUpdate",value:function(e,t){this.state.isOpen?window.addEventListener("click",this.handleOutsideClick):window.removeEventListener("click",this.handleOutsideClick),this.state.isOpen!==t.isOpen&&this.props.onToggle({target:this,open:this.state.isOpen})}},{key:"getInitialSelectedItem",value:function(e){if((e=e||this.props).initialSelected)return e.initialSelected;if(e.options.length){var t=Object(je.find)(e.options,(function(e){return!e.isLabel}));return t&&t.value}}},{key:"dropdownOptions",value:function(){var e=0,t=this;return this.props.children?o.a.Children.map(this.props.children,(function(n,r){if(!n)return null;var i=o.a.cloneElement(n,{ref:n.type===vt?"item-"+e:null,key:"item-"+r,onClick:function(e){t.refs.dropdownContainer.focus(),"function"==typeof n.props.onClick&&n.props.onClick(e)}});return n.type===vt&&e++,i}),this):this.props.options.map((function(t,n){if(!t)return o.a.createElement(_t,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(t.isLabel)return o.a.createElement(wt,{key:"dropdown-label-"+this.state.instanceId+"-"+n},t.label);var r=o.a.createElement(vt,{key:"dropdown-item-"+this.state.instanceId+"-"+t.value,ref:"item-"+e,selected:this.state.selected===t.value,onClick:this.onSelectItem(t),path:t.path},t.label);return e++,r}),this)}},{key:"render",value:function(){var e={"dops-select-dropdown":!0,"is-compact":this.props.compact,"is-open":this.state.isOpen,"is-disabled":this.props.disabled};this.props.className&&this.props.className.split(" ").forEach((function(t){e[t]=!0}));var t=rt()(e),n=this.props.selectedText?this.props.selectedText:Object(je.result)(Object(je.find)(this.props.options,{value:this.state.selected}),"label");return o.a.createElement("div",{style:this.props.style,className:t},o.a.createElement("div",{ref:"dropdownContainer",className:"dops-select-dropdown__container",tabIndex:this.props.tabIndex||0,role:"listbox","aria-labelledby":"select-dropdown-"+this.state.instanceId,"aria-owns":"select-submenu-"+this.state.instanceId,"aria-controls":"select-submenu-"+this.state.instanceId,"aria-expanded":this.state.isOpen,onClick:this._onClick,onKeyDown:this.navigateItem},o.a.createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},o.a.createElement("span",{className:"dops-select-dropdown__header-text"},n,"number"==typeof this.props.selectedCount&&o.a.createElement(gt,{count:this.props.selectedCount}))),o.a.createElement("ul",{id:"select-submenu-"+this.state.instanceId,className:"dops-select-dropdown__options"},this.dropdownOptions())))}},{key:"_onClick",value:function(){this.props.disabled||this.toggleDropdown()}},{key:"toggleDropdown",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"openDropdown",value:function(){this.setState({isOpen:!0})}},{key:"closeDropdown",value:function(){this.state.isOpen&&(delete this.focused,this.setState({isOpen:!1}))}},{key:"onSelectItem",value:function(e){return this.selectItem.bind(this,e)}},{key:"selectItem",value:function(e){e&&(this.props.onSelect&&this.props.onSelect(e),this.setState({selected:e.value}),this.refs.dropdownContainer.focus())}},{key:"navigateItem",value:function(e){switch(e.keyCode){case 9:this.navigateItemByTabKey(e);break;case 32:case 13:e.preventDefault(),this.activateItem();break;case 38:e.preventDefault(),this.focusSibling("previous"),this.openDropdown();break;case 40:e.preventDefault(),this.focusSibling("next"),this.openDropdown();break;case 27:e.preventDefault(),this.closeDropdown(),this.refs.dropdownContainer.focus()}}},{key:"navigateItemByTabKey",value:function(e){if(this.state.isOpen){e.preventDefault();var t=e.shiftKey?"previous":"next";this.focusSibling(t)}}},{key:"activateItem",value:function(){if(!this.state.isOpen)return this.openDropdown();document.activeElement.click()}},{key:"focusSibling",value:function(e){var t,n;if(this.state.isOpen){this.props.options.length?(t=Object(je.map)(Object(je.filter)(this.props.options,(function(e){return e&&!e.isLabel})),"value"),n="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=Object(je.filter)(this.props.children,(function(e){return e.type===vt})),n="number"==typeof this.focused?this.focused:Object(je.findIndex)(t,(function(e){return e.props.selected})));var r=n+("previous"===e?-1:1);r>=t.length||r<0||(i.a.findDOMNode(this.refs["item-"+r].refs.itemLink).focus(),this.focused=r)}}},{key:"handleOutsideClick",value:function(e){i.a.findDOMNode(this.refs.dropdownContainer).contains(e.target)||this.closeDropdown()}}]),n}(o.a.Component);jt.defaultProps={options:[],onSelect:kt,onToggle:kt,disabled:!1,style:{}},jt.propTypes={selectedText:u.a.string,selectedCount:u.a.number,initialSelected:u.a.string,className:u.a.string,style:u.a.object,onSelect:u.a.func,onToggle:u.a.func,focusSibling:u.a.func,tabIndex:u.a.number,disabled:u.a.bool,options:u.a.arrayOf(u.a.shape({value:u.a.string.isRequired,label:u.a.string.isRequired,path:u.a.string}))},jt.instances=0;var Ot=jt,Ct=480,St=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a)),Be()(Re()(e),"state",{isDropdown:!1}),Be()(Re()(e),"getTabWidths",(function(){var t=0;o.a.Children.forEach(e.props.children,function(e,n){if(e){var r=i.a.findDOMNode(this.refs["tab-"+n]).offsetWidth;t+=r}}.bind(Re()(e))),e.tabsWidth=t})),Be()(Re()(e),"getDropdown",(function(){var t=o.a.Children.map(e.props.children,(function(e,t){return e?o.a.createElement(vt,tt()({},e.props,{key:"navTabsDropdown-"+t}),e.props.children):null}));return o.a.createElement(Ot,{className:"dops-section-nav-tabs__dropdown",selectedText:e.props.selectedText,selectedCount:e.props.selectedCount},t)})),Be()(Re()(e),"setDropdown",(function(){var t;if(window.innerWidth>Ct){if(!e.refs.navGroup)return;t=e.refs.navGroup.offsetWidth,e.tabsWidth||e.getTabWidths(),t<=e.tabsWidth&&!e.state.isDropdown?e.setState({isDropdown:!0}):t>e.tabsWidth&&e.state.isDropdown&&e.setState({isDropdown:!1})}else window.innerWidth<=Ct&&e.state.isDropdown&&e.setState({isDropdown:!1})})),Be()(Re()(e),"keyHandler",(function(e){switch(e.keyCode){case 32:case 13:e.preventDefault(),document.activeElement.click()}})),e}return Pe()(n,[{key:"componentDidMount",value:function(){this.setDropdown(),this.debouncedAfterResize=Object(je.debounce)(this.setDropdown,300),window.addEventListener("resize",this.debouncedAfterResize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(){this.setDropdown()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedAfterResize)}},{key:"render",value:function(){var e=o.a.Children.map(this.props.children,(function(e,t){return e&&o.a.cloneElement(e,{ref:"tab-"+t})})),t=rt()({"dops-section-nav-tabs":!0,"is-dropdown":this.state.isDropdown,"is-open":this.state.isDropdownOpen,"has-siblings":this.props.hasSiblingControls}),n=ot?it:window.innerWidth;return o.a.createElement("div",{className:"dops-section-nav-group",ref:"navGroup"},o.a.createElement("div",{className:t},this.props.label&&o.a.createElement("h6",{className:"dops-section-nav-group__label"},this.props.label),o.a.createElement("ul",{className:"dops-section-nav-tabs__list",role:"menu",onKeyDown:this.keyHandler},e),this.state.isDropdown&&n>Ct&&this.getDropdown()))}}]),n}(o.a.Component);Be()(St,"propTypes",{selectedText:u.a.string,selectedCount:u.a.number,label:u.a.string,hasSiblingControls:u.a.bool}),Be()(St,"defaultProps",{hasSiblingControls:!1});var Tt=St,At=ht()({displayName:"NavItem",mixins:[mt.a],propTypes:{itemType:u.a.string,path:u.a.string,selected:u.a.bool,tabIndex:u.a.number,onClick:u.a.func,isExternalLink:u.a.bool,disabled:u.a.bool,count:u.a.number},render:function(){var e=this.props.itemType?this.props.itemType:"tab",t={"is-selected":this.props.selected,"is-external":this.props.isExternalLink};t["dops-section-nav-"+e]=!0;var n,r,i=rt()(t);return this.props.isExternalLink&&(n="_blank"),this.props.disabled||(r=this.props.onClick),o.a.createElement("li",{className:i},o.a.createElement("a",{href:this.props.path,target:n,className:"dops-section-nav-"+e+"__link",onClick:r,tabIndex:this.props.tabIndex||0,disabled:this.props.disabled,role:"menuitem",rel:this.props.isExternalLink?"external":null},o.a.createElement("span",{className:"dops-section-nav-"+e+"__text"},this.props.children,"number"==typeof this.props.count&&o.a.createElement(gt,{count:this.props.count}))))}}),Mt=n(30);n(419);function Nt(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}var xt=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a)),Be()(Re()(e),"state",{keyword:e.props.initialValue||"",isOpen:!!e.props.isOpen,hasFocus:!1}),Be()(Re()(e),"scrollOverlay",(function(){e.refs.overlay&&window.requestAnimationFrame((function(){e.refs.overlay&&e.refs.searchInput&&(e.refs.overlay.scrollLeft=e.getScrollLeft(e.refs.searchInput))}))})),Be()(Re()(e),"getScrollLeft",(function(e){if(!e.createTextRange)return e.scrollLeft;var t=e.createTextRange(),n=window.getComputedStyle(e,void 0),r=parseFloat(n.paddingLeft),i=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+r-i.left})),Be()(Re()(e),"focus",(function(){setTimeout((function(){return e.refs.searchInput&&i.a.findDOMNode(e.refs.searchInput).focus()}),0)})),Be()(Re()(e),"blur",(function(){i.a.findDOMNode(e.refs.searchInput).blur()})),Be()(Re()(e),"getCurrentSearchValue",(function(){return i.a.findDOMNode(e.refs.searchInput).value})),Be()(Re()(e),"clear",(function(){e.setState({keyword:""})})),Be()(Re()(e),"onBlur",(function(t){e.props.onBlur&&e.props.onBlur(t),e.setState({hasFocus:!1})})),Be()(Re()(e),"onChange",(function(){e.setState({keyword:e.getCurrentSearchValue()})})),Be()(Re()(e),"openSearch",(function(t){e.props.onClick(),t.preventDefault(),e.setState({keyword:"",isOpen:!0}),Xe.a.ga.recordEvent(e.props.analyticsGroup,"Clicked Open Search")})),Be()(Re()(e),"closeSearch",(function(t){if(t.preventDefault(),!e.props.disabled){var n=i.a.findDOMNode(e.refs.searchInput);e.setState({keyword:"",isOpen:e.props.isOpen||!1}),n.value="",n.blur(),e.props.pinned&&i.a.findDOMNode(e.refs.openIcon).focus(),e.props.onSearchClose(t),Xe.a.ga.recordEvent(e.props.analyticsGroup,"Clicked Close Search")}})),Be()(Re()(e),"keyUp",(function(t){"Enter"===t.key&&pt()&&e.blur(),e.props.pinned&&("Escape"===t.key&&e.closeSearch(t),e.scrollOverlay())})),Be()(Re()(e),"keyDown",(function(t){e.scrollOverlay(),"Escape"===t.key&&""===t.target.value&&e.closeSearch(t),e.props.onKeyDown(t)})),Be()(Re()(e),"onFocus",(function(){var t=i.a.findDOMNode(e.refs.searchInput),n=t.value;n&&(t.value="",t.value=n),e.setState({hasFocus:!0}),e.props.onSearchOpen()})),Be()(Re()(e),"renderStylingDiv",(function(){return o.a.createElement("div",{className:"dops-search__text-overlay",ref:"overlay"},e.props.overlayStyling(e.state.keyword))})),Be()(Re()(e),"closeButton",(function(){return e.props.hideClose||!e.state.keyword&&!e.state.isOpen?null:o.a.createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:e.closeSearch,tabIndex:"0",onKeyDown:e.closeListener,"aria-controls":"dops-search-component-"+e.state.instanceId,"aria-label":"Close Search"},o.a.createElement(Mt.a,{icon:"cross",className:"dops-search__close-icon"}))})),e}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.setState({instanceId:++n.instances}),this.closeListener=Nt.bind(this,"closeSearch"),this.openListener=Nt.bind(this,"openSearch")}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?Object(je.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch),e.isOpen&&this.setState({isOpen:e.isOpen}),e.initialValue===this.props.initialValue||this.state.keyword!==this.props.initialValue&&""!==this.state.keyword||this.setState({keyword:e.initialValue||""})}},{key:"componentDidUpdate",value:function(e,t){this.scrollOverlay(),(this.state.isOpen&&!t.isOpen||this.props.autoFocus&&!e.autoFocus)&&this.focus(),this.state.keyword!==t.keyword&&(this.state.keyword?this.onSearch(this.state.keyword):(this.props.delaySearch&&this.onSearch.cancel(),this.props.onSearch(this.state.keyword)),this.props.onSearchChange(this.state.keyword))}},{key:"componentDidMount",value:function(){var e=this;this.onSearch=this.props.delaySearch?Object(je.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch,this.props.autoFocus&&setTimeout((function(){return e.focus()}),0)}},{key:"render",value:function(){var e=this.state.keyword,t=this.props.placeholder||"Search…",n=this.props.pinned&&!this.state.isOpen,r=this.state.isOpen||!this.props.pinned||this.props.initialValue,i=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},a=rt()(this.props.additionalClasses,this.props.dir,{"is-expanded-to-container":this.props.fitsContainer,"is-open":r,"is-searching":this.props.searching,"has-focus":this.state.hasFocus,"dops-search":!0}),s=rt()("dops-search__input-fade",this.props.dir),c=rt()("dops-search__input",this.props.dir);return o.a.createElement("div",{dir:this.props.dir||null,className:a,role:"search"},o.a.createElement("div",{role:"button",className:"dops-search__icon-navigation",ref:"openIcon",onClick:n?this.openSearch:this.focus,tabIndex:n?"0":null,onKeyDown:n?this.openListener:null,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Open Search"},o.a.createElement(Mt.a,{icon:"search",className:"dops-search__open-icon"})),o.a.createElement("div",{className:s},o.a.createElement("input",tt()({type:"search",onChange:this.onChange,id:"dops-search-component-"+this.state.instanceId,className:c,placeholder:t,role:"searchbox",value:e,ref:"searchInput",onKeyUp:this.keyUp,onKeyDown:this.keyDown,onMouseUp:this.props.onClick,onFocus:this.onFocus,onBlur:this.onBlur,disabled:this.props.disabled,"aria-hidden":!r,autoCapitalize:"none",dir:this.props.dir,maxLength:this.props.maxLength},i)),this.props.overlayStyling&&this.renderStylingDiv()),this.closeButton())}}]),n}(o.a.Component);Be()(xt,"displayName","Search"),Be()(xt,"instances",0),Be()(xt,"propTypes",{additionalClasses:u.a.string,initialValue:u.a.string,placeholder:u.a.string,pinned:u.a.bool,delaySearch:u.a.bool,delayTimeout:u.a.number,onSearch:u.a.func.isRequired,onSearchChange:u.a.func,onSearchOpen:u.a.func,onSearchClose:u.a.func,analyticsGroup:u.a.string,overlayStyling:u.a.func,autoFocus:u.a.bool,disabled:u.a.bool,onKeyDown:u.a.func,onClick:u.a.func,disableAutocorrect:u.a.bool,onBlur:u.a.func,searching:u.a.bool,isOpen:u.a.bool,dir:u.a.oneOf(["ltr","rtl"]),fitsContainer:u.a.bool,maxLength:u.a.number,hideClose:u.a.bool}),Be()(xt,"defaultProps",{pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:je.noop,onSearchOpen:je.noop,onSearchClose:je.noop,onKeyDown:je.noop,onClick:je.noop,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1});var Pt=xt,It=(n(420),ht()({displayName:"SectionNav",propTypes:{children:u.a.node,selectedText:u.a.node,selectedCount:u.a.number,hasPinnedItems:u.a.bool,onMobileNavPanelOpen:u.a.func},getInitialState:function(){return{mobileOpen:!1}},getDefaultProps:function(){return{onMobileNavPanelOpen:function(){}}},UNSAFE_componentWillMount:function(){this.checkForSiblingControls(this.props.children)},UNSAFE_componentWillReceiveProps:function(e){Object(je.isEqual)(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())},render:function(){var e,t=this.getChildren();return t?(e=rt()({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),o.a.createElement("div",{className:e},o.a.createElement("div",{className:"dops-section-nav__mobile-header",role:"button",onClick:this.toggleMobileOpenState,tabIndex:0,onKeyUp:this.toggleMobileOpenState},o.a.createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),o.a.createElement("div",{className:"dops-section-nav__panel"},t))):(e=rt()({"dops-section-nav":!0,"is-empty":!0}),o.a.createElement("div",{className:e},o.a.createElement("div",{className:"dops-section-nav__panel"},o.a.createElement(At,null))))},getChildren:function(){return o.a.Children.map(this.props.children,function(e){var t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==Tt||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===Tt&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===Pt&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),o.a.cloneElement(e,t)):null}.bind(this))},closeMobilePanel:function(){window.innerWidth<480&&this.state.mobileOpen&&this.setState({mobileOpen:!1})},toggleMobileOpenState:function(){var e=!this.state.mobileOpen;this.setState({mobileOpen:e}),e&&this.props.onMobileNavPanelOpen()},generateOnSearch:function(e){return function(){e.apply(this,arguments),this.closeMobilePanel()}.bind(this)},checkForSiblingControls:function(e){this.hasSiblingControls=!1,o.a.Children.forEach(e,function(e,t){t&&e&&e.type!==Pt&&(this.hasSiblingControls=!0)}.bind(this))}})),Rt=n(14),Dt=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackNavClick",(function(e){Xe.a.tracks.recordJetpackClick({target:"nav_item",path:e})})),Be()(Re()(e),"trackDashboardClick",(function(){e.trackNavClick("dashboard")})),Be()(Re()(e),"trackMyPlanClick",(function(){e.trackNavClick("my-plan")})),Be()(Re()(e),"trackPlansClick",(function(){e.trackNavClick("plans")})),Be()(Re()(e),"trackRecommendationsClick",(function(){e.trackNavClick("recommendations")})),e}return Pe()(n,[{key:"render",value:function(){var e,t=Object(Ve.a)(this.props.hasConnectedOwner?"jetpack-plans":"jetpack-nav-site-only-plans",Ze()({site:this.props.siteUrl},this.props.purchaseToken?{query:"purchasetoken=".concat(this.props.purchaseToken)}:{}));return e=this.props.userCanManageModules?o.a.createElement(Tt,{selectedText:this.props.routeName},o.a.createElement(At,{path:"#/dashboard",onClick:this.trackDashboardClick,selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},Object(Oe._x)("At a Glance","Navigation item.","jetpack")),!this.props.isOfflineMode&&this.props.isLinked&&o.a.createElement(At,{path:"#/my-plan",onClick:this.trackMyPlanClick,selected:"/my-plan"===this.props.location.pathname},Object(Oe._x)("My Plan","Navigation item.","jetpack")),!this.props.isOfflineMode&&o.a.createElement(At,{path:t,onClick:this.trackPlansClick,selected:"/plans"===this.props.location.pathname},Object(Oe._x)("Plans","Navigation item.","jetpack")),this.props.showRecommendations&&o.a.createElement(At,{path:"#/recommendations",onClick:this.trackRecommendationsClick,selected:this.props.location.pathname.startsWith("/recommendations")},Object(Oe._x)("Recommendations","Navigation item.","jetpack"))):o.a.createElement(Tt,{selectedText:this.props.routeName},o.a.createElement(At,{path:"#/dashboard",selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},Object(Oe._x)("At a Glance","Navigation item.","jetpack"))),o.a.createElement("div",{id:"jp-navigation",className:"dops-navigation"},o.a.createElement(It,{selectedText:this.props.routeName},e))}}]),n}(o.a.Component);Dt.propTypes={routeName:u.a.string.isRequired,isOfflineMode:u.a.bool.isRequired};var Ut=Object(s.b)((function(e){return{userCanManageModules:Object(Rt.K)(e),userCanViewStats:Object(Rt.N)(e),isModuleActivated:function(t){return Object(Qe.n)(e,t)},isOfflineMode:Object(qe.s)(e),isLinked:Object(qe.n)(e),hasConnectedOwner:Object(qe.k)(e),showRecommendations:Object(Rt.F)(e),siteUrl:Object(Rt.p)(e),purchaseToken:Object(Rt.m)(e)}}))(fe(Dt)),Lt=n(144),Ft=n(5),zt=n(36),Bt=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingPluginsData||this.props.fetchPluginsData()}},{key:"render",value:function(){return null}}]),n}(o.a.Component),Vt=Object(s.b)((function(e){return{isFetchingPluginsData:Object(zt.c)(e)}}),(function(e){return{fetchPluginsData:function(){return e(Object(zt.a)())}}}))(Bt),Ht=n(50),Kt=n.n(Ht),Jt=n(393),qt=n.n(Jt),Wt="http:",Gt="__domain__.invalid",Yt="".concat(Wt,"//").concat(Gt);var $t=Kt()("calypso:url-search"),Zt={getInitialState:function(){return{searchOpen:!1}},UNSAFE_componentWillReceiveProps:function(e){e.search||this.setState({searchOpen:!1})},doSearch:function(e){var t;this.setState({searchOpen:!1!==e}),this.onSearch?this.onSearch(e):(t=this.buildUrl&&"function"==typeof this.buildUrl?this.buildUrl(window.location.href,e):function(e,t){var n=new URL(e,Yt);t?n.searchParams.set("s",t):n.searchParams.delete("s"),n.protocol=Wt,n.host=Gt,n.port="",n.username="",n.password="";var r=n.href.replace(Yt,"");return(r=e.startsWith("/")?r:r.substring(1)).replace(/%20/g,"+")}(window.location.href,e),$t("search posts for:",e),this.props.search&&e?($t("replacing URL: "+t),qt.a.replace(t)):($t("setting URL: "+t),qt()(t)))},getSearchOpen:function(){return!1!==this.state.searchOpen||this.props.search}},Xt=ht()({displayName:"NavigationSettings",mixins:[Zt],UNSAFE_componentWillMount:function(){this.onRouteChange(this.props.location),this.props.history.listen(this.onRouteChange)},onRouteChange:function(e){var t=(e.search||"").substr(1).split("&").filter((function(e){return 0===e.indexOf("term=")})),n="";t.length>0&&(n=t[0].split("=")[1]),this.props.searchForTerm(decodeURIComponent(n))},maybeShowSearch:function(){if(this.props.userCanManageModules)return o.a.createElement(Pt,{onClick:this.handleClickForTracking("search"),pinned:!0,fitsContainer:!0,placeholder:Object(Oe.__)("Search for a Jetpack feature.","jetpack"),delaySearch:!0,delayTimeout:500,onSearch:this.doSearch,isOpen:!!this.props.searchTerm,initialValue:this.props.searchTerm})},trackNavClick:function(e){Xe.a.tracks.recordJetpackClick({target:"nav_item",path:e})},buildUrl:function(e,t){var n=e.split("#")[1].split("?");return this.props.searchForTerm(t),"#"+n[0]+(t?"?term="+t:"")},handleClickForTracking:function(e){var t=this;return function(){return t.trackNavClick(e)}},render:function(){var e,t,n;return this.props.userCanManageModules?e=o.a.createElement(Tt,{selectedText:this.props.routeName},this.props.hasAnySecurityFeature&&o.a.createElement(At,{path:"#security",onClick:this.handleClickForTracking("security"),selected:"/security"===this.props.location.pathname||"/settings"===this.props.location.pathname},Object(Oe._x)("Security","Navigation item.","jetpack")),this.props.hasAnyPerformanceFeature&&o.a.createElement(At,{path:"#performance",onClick:this.handleClickForTracking("performance"),selected:"/performance"===this.props.location.pathname},Object(Oe._x)("Performance","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["masterbar","markdown","custom-content-types","post-by-email","infinite-scroll","copy-post"])&&o.a.createElement(At,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},Object(Oe._x)("Writing","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["publicize","sharedaddy","likes"])&&o.a.createElement(At,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname},Object(Oe._x)("Sharing","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["comments","gravatar-hovercards","markdown","subscriptions"])&&o.a.createElement(At,{path:"#discussion",onClick:this.handleClickForTracking("discussion"),selected:"/discussion"===this.props.location.pathname},Object(Oe._x)("Discussion","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["seo-tools","wordads","stats","related-posts","verification-tools","sitemaps","google-analytics"])&&o.a.createElement(At,{path:"#traffic",onClick:this.handleClickForTracking("traffic"),selected:"/traffic"===this.props.location.pathname},Object(Oe._x)("Traffic","Navigation item.","jetpack"))):this.props.isSubscriber?e=!1:(t=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["publicize"])&&o.a.createElement(At,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname||"/settings"===this.props.location.pathname},Object(Oe._x)("Sharing","Navigation item.","jetpack")):"",n=this.props.isModuleActivated("post-by-email")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["post-by-email"])&&o.a.createElement(At,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},Object(Oe._x)("Writing","Navigation item.","jetpack")):"",e=o.a.createElement(Tt,{selectedText:this.props.routeName},n,t)),o.a.createElement("div",{id:"jp-navigation",className:"dops-navigation"},o.a.createElement(Vt,null),o.a.createElement(It,{selectedText:this.props.routeName},e,this.maybeShowSearch()))}});Xt.propTypes={userCanManageModules:u.a.bool.isRequired,isSubscriber:u.a.bool.isRequired,userCanPublish:u.a.bool.isRequired,isLinked:u.a.bool.isRequired,isSiteConnected:u.a.bool.isRequired,isModuleActivated:u.a.func.isRequired,searchHasFocus:u.a.bool.isRequired,location:u.a.object.isRequired},Xt.defaultProps={userCanManageModules:!1,isSubscriber:!1,userCanPublish:!1,isLinked:!1,isSiteConnected:!1,isModuleActivated:je.noop,searchHasFocus:!1};var Qt=Object(s.b)((function(e){return{hasAnyOfTheseModules:function(t){return Object(Qe.j)(e,t)},hasAnyPerformanceFeature:Object(Qe.k)(e),hasAnySecurityFeature:Object(Qe.l)(e),userCanManageModules:Object(Rt.K)(e),isSubscriber:Object(Rt.O)(e),userCanPublish:Object(Rt.M)(e),isLinked:Object(qe.n)(e),isSiteConnected:Object(qe.u)(e),isModuleActivated:function(t){return Object(Qe.n)(e,t)},moduleList:Object(Qe.g)(e),isPluginActive:function(t){return Object(zt.d)(e,t)},searchTerm:Object(Lt.a)(e)}}),(function(e){return{searchForTerm:function(t){return e(function(e){return function(t){t({type:Ft.JETPACK_SEARCH_TERM,term:e})}}(t))}}}))(fe(Xt)),en=n(26),tn=n(33),nn=n(47),rn=n(35),an=n(51),on=n.n(an),sn=n(22),cn=function(e){return o.a.createElement("fieldset",tt()({},Object(je.omit)(e,"className"),{className:rt()(e.className,"jp-form-fieldset")}),e.children)},ln=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.htmlFor,r=on()(e,["className","htmlFor"]);return o.a.createElement("label",tt()({},r,{htmlFor:n,className:rt()(t,"jp-form-label")}),this.props.children)}}]),n}(o.a.Component);Be()(ln,"displayName","FormLabel");var un=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("legend",tt()({},Object(je.omit)(this.props,"className"),{className:rt()(this.props.className,"jp-form-legend")}),this.props.children)}}]),n}(o.a.Component);Be()(un,"displayName","FormLegend");var pn=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=Object(je.omit)(this.props,["className","type"]);return o.a.createElement("input",tt()({},e,{type:"checkbox",className:rt()(this.props.className,"jp-form-checkbox")}))}}]),n}(o.a.Component);Be()(pn,"displayName","FormInputCheckbox");var dn=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"focus",(function(){e.refs.textField.focus()})),Be()(Re()(e),"selectOnFocus",(function(e){e.target.select()})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.selectOnFocus,r=rt()(t,{"jp-form-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),i={};for(var a in this.props)["isError","isValid","selectOnFocus"].includes(a)||(i[a]=this.props[a]);return o.a.createElement("input",tt()({},i,{ref:"textField",className:r,onClick:n?this.selectOnFocus:null}))}}]),n}(o.a.Component);Be()(dn,"displayName","FormTextInput"),Be()(dn,"defaultProps",{isError:!1,isValid:!1,selectOnFocus:!1,type:"text"});var hn=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("textarea",tt()({},Object(je.omit)(this.props,"className"),{className:rt()(this.props.className,"jp-form-textarea")}),this.props.children)}}]),n}(o.a.Component);Be()(hn,"displayName","FormTextarea");var fn=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=Object(je.omit)(this.props,["className","type"]);return o.a.createElement("input",tt()({},e,{type:"radio",className:rt()(this.props.className,"jp-form-radio")}))}}]),n}(o.a.Component);Be()(fn,"displayName","FormRadio");var mn=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"getDefaultButtonAction",(function(){return e.props.isSubmitting?Object(Oe.__)("Saving…","jetpack"):Object(Oe.__)("Save Settings","jetpack")})),e}return Pe()(n,[{key:"render",value:function(){var e=rt()({"jp-form-button":!0});return o.a.createElement(sn.a,tt()({},Object(je.omit)(this.props,"className"),{primary:this.props.isPrimary,className:rt()(this.props.className,e)}),Object(je.isEmpty)(this.props.children)?this.getDefaultButtonAction():this.props.children)}}]),n}(o.a.Component);Be()(mn,"displayName","FormsButton"),Be()(mn,"defaultProps",{isSubmitting:!1,isPrimary:!0,type:"submit"});var gn=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"handleOnSelect",(function(t){e.props.onOptionChange({target:{type:"select",name:e.props.name,value:t.value}})})),e}return Pe()(n,[{key:"render",value:function(){var e=[];return Object(je.forOwn)(this.props.validValues,(function(t,n){e.push({label:t,value:n})})),o.a.createElement(Ot,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value})}}]),n}(o.a.Component),bn=n(34),vn=n(11),yn=n(140),En=n(20),wn=function(e){return function(t){return t({type:Ft.STATS_DATA_FETCH}),En.a.fetchStatsData(e).then((function(e){t({type:Ft.STATS_DATA_FETCH_SUCCESS,statsData:e})})).catch((function(e){t({type:Ft.STATS_DATA_FETCH_FAIL,error:e})}))}},kn=function(){return function(e){return e({type:Ft.DASHBOARD_PROTECT_COUNT_FETCH}),En.a.getProtectCount().then((function(t){e({type:Ft.DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS,protectCount:t})})).catch((function(t){e({type:Ft.DASHBOARD_PROTECT_COUNT_FETCH_FAIL,error:t})}))}},jn=function(){return function(e){return e({type:Ft.VAULTPRESS_SITE_DATA_FETCH}),En.a.getVaultPressData().then((function(t){e({type:Ft.VAULTPRESS_SITE_DATA_FETCH_SUCCESS,vaultPressData:t})})).catch((function(t){e({type:Ft.VAULTPRESS_SITE_DATA_FETCH_FAIL,error:t})}))}},On=function(){return function(e){return e({type:Ft.AKISMET_DATA_FETCH}),En.a.getAkismetData().then((function(t){e({type:Ft.AKISMET_DATA_FETCH_SUCCESS,akismetData:t})})).catch((function(t){e({type:Ft.AKISMET_DATA_FETCH_FAIL,error:t})}))}},Cn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){return t({type:Ft.AKISMET_KEY_CHECK_FETCH}),(""===e?En.a.checkAkismetKey().then((function(e){t({type:Ft.AKISMET_KEY_CHECK_FETCH_SUCCESS,akismet:e})})):En.a.checkAkismetKeyTyped(e).then((function(e){t({type:Ft.AKISMET_KEY_CHECK_FETCH_SUCCESS,akismet:e})}))).catch((function(e){t({type:Ft.AKISMET_KEY_CHECK_FETCH_FAIL,error:e})}))}},Sn=n(23),Tn=(n(422),function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=rt()(this.props.className,"dops-section-header");return o.a.createElement(en.a,{compact:!0,className:e},o.a.createElement("div",{className:"dops-section-header__label"},o.a.createElement("span",{className:"dops-section-header__label-text"},this.props.label)),o.a.createElement("div",{className:"dops-section-header__actions"},this.props.children))}}]),n}(o.a.Component));Be()(Tn,"displayName","SectionHeader"),Be()(Tn,"propTypes",{label:u.a.string}),Be()(Tn,"defaultProps",{label:""});var An=n(65),Mn=n(143),Nn=n(19),xn=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){!this.props.fetchingVaultPressData&&this.props.isModuleActivated("vaultpress")&&this.props.fetchVaultPressData()}},{key:"render",value:function(){return null}}]),n}(a.Component);xn.defaultProps={fetchVaultPressData:function(){}};var Pn=Object(s.b)((function(e){return{fetchVaultPressData:jn(),fetchingVaultPressData:Object(yn.m)(e),isModuleActivated:function(t){return Object(Qe.n)(e,t)}}}),(function(e){return Object(Nn.b)({fetchVaultPressData:jn},e)}))(xn),In=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}},{key:"render",value:function(){return null}}]),n}(a.Component);In.defaultProps={checkAkismetKey:function(){}};var Rn=Object(s.b)((function(e){return{checkAkismetKey:Cn(),isCheckingAkismetKey:Object(yn.i)(e)}}),(function(e){return Object(Nn.b)({checkAkismetKey:Cn},e)}))(In),Dn=function(e){return function(t){13!==t.which&&32!==t.which||e(t)}},Un=(n(397),function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"dismissTimeout",null),Be()(Re()(e),"getIcon",(function(){var t;switch(e.props.status){case"is-info":t="info";break;case"is-success":t="checkmark";break;case"is-error":case"is-warning":t="notice";break;default:t="info"}return t})),Be()(Re()(e),"clearText",(function(e){return"string"==typeof e?e.replace(/(<([^>]+)>)/gi,""):e})),e}return Pe()(n,[{key:"componentDidMount",value:function(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}},{key:"componentWillUnmount",value:function(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.icon,i=e.isCompact,a=e.onDismissClick,s=e.showDismiss,c=void 0===s?!i:s,l=e.status,u=e.text,p=e.dismissText,d=rt()("dops-notice",l,n,{"is-compact":i,"is-dismissable":c});return o.a.createElement("div",{className:d},o.a.createElement("span",{className:"dops-notice__icon-wrapper"},o.a.createElement(Mt.a,{className:"dops-notice__icon",icon:r||this.getIcon(),size:24})),o.a.createElement("span",{className:"dops-notice__content"},o.a.createElement("span",{className:"dops-notice__text"},u?this.clearText(u):t)),u?t:null,c&&o.a.createElement("span",{role:"button",onKeyDown:Dn(a),tabIndex:"0",className:"dops-notice__dismiss",onClick:a},o.a.createElement(Mt.a,{icon:"cross",size:24}),o.a.createElement("span",{className:"dops-notice__screen-reader-text screen-reader-text"},p)))}}]),n}(o.a.Component));Be()(Un,"displayName","SimpleNotice"),Be()(Un,"defaultProps",{duration:0,status:null,showDismiss:!0,className:"",onDismissClick:je.noop}),Be()(Un,"propTypes",{status:u.a.string,showDismiss:u.a.bool,isCompact:u.a.bool,duration:u.a.number,text:u.a.oneOfType([u.a.oneOfType([u.a.string,u.a.node]),u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.node]))]),icon:u.a.string,onDismissClick:u.a.func,className:u.a.string});var Ln=function(e,t){return function(){return function(e,t){return Xe.a.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t})}(e,t)}},Fn=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"getProActions",(function(t,n){var r="",i=!1,a=!1,s="";switch(t){case"threats":r="is-error",a=e.props.isCompact?Object(Oe._x)("Threats","A caption for a small button to fix security issues.","jetpack"):Object(Oe._x)("See threats","A caption for a small button to fix security issues.","jetpack"),s=Object(Ve.a)("vaultpress-dashboard");break;case"free":case"personal":case"pro":return;case"secure":r="is-success",i=Object(Oe._x)("Secure","Short message informing user that the site is secure.","jetpack");break;case"invalid_key":return;case"rewind_connected":var c=e.getRewindMessage();return o.a.createElement(Un,{showDismiss:!1,status:c.status,isCompact:!0},c.text);case"active":return o.a.createElement("span",{className:"jp-dash-item__active-label"},Object(Oe.__)("ACTIVE","jetpack"))}return o.a.createElement(Un,{showDismiss:!1,status:r,isCompact:!0},i,a&&o.a.createElement("a",{className:"dops-notice__text-no-underline",onClick:Ln(t,n),href:s},a))})),Be()(Re()(e),"getSetUpButton",(function(t){return o.a.createElement(sn.a,{onClick:Ln("set_up",t),compact:!0,primary:!0,href:Object(Ve.a)("calypso-plugins-setup",{site:e.props.siteRawUrl,query:"only=".concat(t)})},Object(Oe._x)("Set up","Caption for a button to set up a feature.","jetpack"))})),e}return Pe()(n,[{key:"getRewindMessage",value:function(){switch(this.props.rewindStatus.state){case"provisioning":return{status:"is-info",text:Object(Oe.__)("Setting up","jetpack")};case"awaiting_credentials":return{status:"is-warning",text:Object(Oe.__)("Action needed","jetpack")};case"active":return{status:"is-success",text:Object(Oe.__)("Connected","jetpack")};default:return{status:"",text:""}}}},{key:"render",value:function(){var e=this,t=this.props.sitePlan,n=this.props.getVaultPressData(),r="";"scan"!==this.props.proFeature&&"backups"!==this.props.proFeature&&"vaultpress"!==this.props.proFeature||(r="vaultpress/vaultpress.php"),"akismet"===this.props.proFeature&&(r="akismet/akismet.php");var i=/jetpack_personal*/.test(t.product_slug),a=/jetpack_free*/.test(t.product_slug),s=/jetpack_premium*/.test(t.product_slug),c=Object(je.get)(n,["data","features","backups"],!1),l=Object(je.get)(n,["data","features","security"],!1),u=this.props.scanStatus;return o.a.createElement("div",null,o.a.createElement(Vt,null),o.a.createElement(Rn,null),o.a.createElement(Pn,null),!this.props.isOfflineMode&&function(p,d,h){switch(p){case"rewind":return e.getProActions("rewind_connected","rewind");case"backups":if(a&&!c&&e.props.isCompact)return e.getProActions("free","backups");break;case"scan":if(e.props.fetchingSiteData||e.props.isFetchingVaultPressData)return"";if("N/A"!==n)return!a&&!i||l?l?e.getProActions(0===e.props.getScanThreats()?"secure":"threats","scan"):e.getSetUpButton("scan"):e.props.isCompact?e.getProActions("free","scan"):i&&!c?e.getSetUpButton("backups"):"";if(u&&"unavailable"!==u.state)return Array.isArray(u.threats)&&u.threats.length>0?o.a.createElement(Un,{showDismiss:!1,status:"is-error",isCompact:!0},Object(Oe._n)("Threat","Threats",u.threats.length,"jetpack")):u.credentials?0===u.credentials.length?o.a.createElement(Un,{showDismiss:!1,status:"is-warning",isCompact:!0},Object(Oe.__)("Action needed","jetpack")):e.getProActions("secure","scan"):"";break;case"search":return a||i||s?e.getProActions("pro","search"):"";case"akismet":if(a&&(!d||!h))return e.props.isCompact?e.getProActions("free","anti-spam"):"";if(!e.props.isAkismetKeyValid&&!e.props.fetchingAkismetData&&d&&h&&!a)return e.getSetUpButton(p)}return t.product_slug&&r&&!a?d&&h?e.getProActions("active"):e.getSetUpButton(p):""}(this.props.proFeature,this.props.pluginActive(r),this.props.pluginInstalled(r)))}}]),n}(o.a.Component);Be()(Fn,"propTypes",{isCompact:u.a.bool,proFeature:u.a.string,rewindStatus:u.a.object.isRequired}),Be()(Fn,"defaultProps",{isCompact:!0,proFeature:""});var zn,Bn=Object(s.b)((function(e){var t=Object(Sn.p)(e);return{siteRawUrl:Object(Rt.p)(e),siteAdminUrl:Object(Rt.n)(e),getScanThreats:function(){return Object(yn.g)(e)},getVaultPressData:function(){return Object(yn.f)(e)},getAkismetData:function(){return Object(yn.c)(e)},isFetchingVaultPressData:Object(yn.m)(e),sitePlan:t,planClass:Object(vn.fb)(Object(je.get)(t,"product_slug","")),fetchingPluginsData:Object(zt.c)(e),pluginActive:function(t){return Object(zt.d)(e,t)},pluginInstalled:function(t){return Object(zt.e)(e,t)},isOfflineMode:Object(qe.s)(e),fetchingSiteData:Object(Sn.x)(e),isAkismetKeyValid:Object(yn.h)(e),fetchingAkismetData:Object(yn.j)(e),paidFeatureUpgradeUrl:Object(Rt.t)(e,"upgrade"),planProUpgradeUrl:Object(Rt.t)(e,"plans-business"),rewindStatus:Object(An.b)(e),scanStatus:Object(Mn.a)(e)}}))(Fn),Vn=window.Initial_State.pluginBaseUrl+"/images/",Hn=Object(Ve.a)("jetpack-contact-support"),Kn=Object(Ve.a)("jetpack-contact-support-beta-group"),Jn=(n(423),zn={},Be()(zn,vn.o,"/plans/wpcom-free.svg"),Be()(zn,vn.U,"/plans/wpcom-personal.svg"),Be()(zn,vn.V,"/plans/wpcom-personal.svg"),Be()(zn,vn.W,"/plans/wpcom-personal.svg"),Be()(zn,vn.X,"/plans/wpcom-premium.svg"),Be()(zn,vn.Y,"/plans/wpcom-premium.svg"),Be()(zn,vn.Z,"/plans/wpcom-premium.svg"),Be()(zn,vn.i,"/plans/wpcom-business.svg"),Be()(zn,vn.j,"/plans/wpcom-business.svg"),Be()(zn,vn.k,"/plans/wpcom-business.svg"),Be()(zn,vn.l,"/plans/wpcom-ecommerce.svg"),Be()(zn,vn.m,"/plans/wpcom-ecommerce.svg"),Be()(zn,vn.n,"/plans/wpcom-ecommerce.svg"),Be()(zn,vn.ab,"/plans/wpcom-ecommerce.svg"),Be()(zn,vn.bb,"/products/product-jetpack-search.svg"),Be()(zn,vn.cb,"/products/product-jetpack-search.svg"),Be()(zn,vn.r,"/products/product-jetpack-backup.svg"),Be()(zn,vn.u,"/products/product-jetpack-backup.svg"),Be()(zn,vn.v,"/products/product-jetpack-backup.svg"),Be()(zn,vn.w,"/products/product-jetpack-backup.svg"),Be()(zn,vn.I,"/products/product-jetpack-scan.svg"),Be()(zn,vn.J,"/products/product-jetpack-scan.svg"),Be()(zn,vn.p,"/products/product-jetpack-anti-spam.svg"),Be()(zn,vn.q,"/products/product-jetpack-anti-spam.svg"),Be()(zn,vn.K,"/products/product-jetpack-search.svg"),Be()(zn,vn.L,"/products/product-jetpack-search.svg"),Be()(zn,vn.D,"/plans/jetpack-free.svg"),Be()(zn,vn.E,"/plans/jetpack-personal.svg"),Be()(zn,vn.F,"/plans/jetpack-personal.svg"),Be()(zn,vn.G,"/plans/jetpack-premium.svg"),Be()(zn,vn.H,"/plans/jetpack-premium.svg"),Be()(zn,vn.z,"/plans/jetpack-professional.svg"),Be()(zn,vn.A,"/plans/jetpack-professional.svg"),Be()(zn,vn.M,"/plans/jetpack-security.svg"),Be()(zn,vn.P,"/plans/jetpack-security.svg"),Be()(zn,vn.Q,"/plans/jetpack-security.svg"),Be()(zn,vn.R,"/plans/jetpack-security.svg"),Be()(zn,vn.B,"/plans/jetpack-complete.svg"),Be()(zn,vn.C,"/plans/jetpack-complete.svg"),Be()(zn,vn.s,"/products/product-jetpack-backup.svg"),Be()(zn,vn.t,"/products/product-jetpack-backup.svg"),Be()(zn,vn.x,"/products/product-jetpack-backup.svg"),Be()(zn,vn.y,"/products/product-jetpack-backup.svg"),Be()(zn,vn.N,"/plans/jetpack-security.svg"),Be()(zn,vn.O,"/plans/jetpack-security.svg"),Be()(zn,vn.S,"/plans/jetpack-security.svg"),Be()(zn,vn.T,"/plans/jetpack-security.svg"),zn),qn=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.alt,r=e.plan;return o.a.createElement("img",{className:t,src:Vn+Jn[r],width:32,height:32,alt:n||""})}}]),n}(a.Component);qn.propTypes={classNames:u.a.string,alt:u.a.string,plan:u.a.oneOf([vn.o,vn.U,vn.V,vn.W,vn.X,vn.Y,vn.Z,vn.i,vn.j,vn.k,vn.l,vn.m,vn.n,vn.ab,vn.bb,vn.cb,vn.r,vn.u,vn.v,vn.w,vn.I,vn.J,vn.p,vn.q,vn.K,vn.L,vn.D,vn.E,vn.F,vn.G,vn.H,vn.z,vn.A,vn.M,vn.P,vn.Q,vn.R,vn.B,vn.C,vn.s,vn.t,vn.x,vn.y,vn.N,vn.O,vn.S,vn.T]).isRequired};n(424);var Wn=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"handleClick",(function(){e.props.onClick();var t=e.props,n=t.eventFeature,r=t.path,i=t.currentVersion;if(n||r){var a=n?{feature:n}:{},o=r?{path:r}:{},s=Ze()(Ze()({target:"banner",type:"upgrade",current_version:i,is_user_wpcom_connected:e.props.isCurrentUserLinked?"yes":"no",is_connection_owner:e.props.isConnectionOwner?"yes":"no"},a),o);Xe.a.tracks.recordJetpackClick(s)}})),e}return Pe()(n,[{key:"getHref",value:function(){var e=this.props,t=e.href,n=e.feature,r=e.siteSlug;return!t&&r?n?"/plans/".concat(r,"?feature=").concat(n):"/plans/".concat(r):t}},{key:"getIcon",value:function(){var e=this.props,t=e.icon,n=e.plan;return n&&!t?o.a.createElement("div",{className:"dops-banner__icon-plan"},o.a.createElement(qn,{plan:n})):o.a.createElement("div",{className:"dops-banner__icons"},o.a.createElement("div",{className:"dops-banner__icon"},o.a.createElement(Mt.a,{icon:t||"info-outline",size:18})),o.a.createElement("div",{className:"dops-banner__icon-circle"},o.a.createElement(Mt.a,{icon:t||"info-outline",size:18})))}},{key:"getContent",value:function(){var e=this.props,t=e.callToAction,n=e.description,r=e.list,i=e.title;return o.a.createElement("div",{className:"dops-banner__content"},o.a.createElement("div",{className:"dops-banner__info"},o.a.createElement("div",{className:"dops-banner__title"},i),n&&o.a.createElement("div",{className:"dops-banner__description"},n),Object(je.size)(r)>0&&o.a.createElement("ul",{className:"dops-banner__list"},r.map((function(e,t){return o.a.createElement("li",{key:t},o.a.createElement(Mt.a,{icon:"checkmark",size:18}),e)})))),t&&o.a.createElement("div",{className:"dops-banner__action"},t&&o.a.createElement(sn.a,{compact:!0,href:this.getHref(),onClick:this.handleClick,primary:!0},t)))}},{key:"render",value:function(){var e=this.props,t=e.callToAction,n=e.className,r=e.plan,i=Object(vn.fb)(r),a=Object(vn.ib)(r),s=Object(vn.jb)(r),c=rt()("dops-banner",n,{"has-call-to-action":t},{"is-upgrade-personal":a&&"is-personal-plan"===i},{"is-upgrade-premium":a&&"is-premium-plan"===i},{"is-upgrade-business":a&&"is-business-plan"===i},{"is-product":s},{"is-plan":!s},{"is-bundle":!s&&Object(vn.hb)(r)});return o.a.createElement(en.a,{className:c,href:t?null:this.getHref(),onClick:t?je.noop:this.handleClick},this.getIcon(),this.getContent())}}]),n}(a.Component);Be()(Wn,"propTypes",{callToAction:u.a.string,className:u.a.string,currentVersion:u.a.string.isRequired,description:u.a.node,eventFeature:u.a.string,feature:u.a.string,href:u.a.string,icon:u.a.string,list:u.a.arrayOf(u.a.string),onClick:u.a.func,path:u.a.string,plan:u.a.string,siteSlug:u.a.string,title:u.a.string.isRequired,isCurrentUserLinked:u.a.string,isConnectionOwner:u.a.bool}),Be()(Wn,"defaultProps",{onClick:je.noop});var Gn=Object(s.b)((function(e){return{currentVersion:Object(Rt.i)(e),isCurrentUserLinked:Object(qe.n)(e),isConnectionOwner:Object(qe.m)(e)}}))(Wn),Yn=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return!(this.props.plan&&!this.props.userCanPurchasePlan)&&(this.props.arePromotionsActive?o.a.createElement(Gn,this.props):null)}}]),n}(Gn);Be()(Yn,"propTypes",{callToAction:u.a.string,className:u.a.string,description:u.a.node,eventFeature:u.a.string,feature:u.a.string,href:u.a.string,icon:u.a.string,list:u.a.arrayOf(u.a.string),onClick:u.a.func,path:u.a.string,plan:u.a.string,siteSlug:u.a.string,title:u.a.string.isRequired}),Be()(Yn,"defaultProps",{onClick:je.noop,plan:""});var $n=Object(s.b)((function(e){return{arePromotionsActive:Object(Rt.a)(e),userCanPurchasePlan:Object(Rt.K)(e)}}))(Yn),Zn=n(24),Xn=(n(425),function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){if(!this.props.moduleName)return null;var e=rt()("module-overridden-banner",{"is-compact":this.props.compact});return o.a.createElement($n,{className:e,title:this.props.moduleName,icon:"cog",description:Object(Zn.createInterpolateElement)(Object(Oe.sprintf)(Object(Oe.__)("%s has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),this.props.moduleName),{link:o.a.createElement("a",{href:Object(Ve.a)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer"})})})}}]),n}($n));Be()(Xn,"propTypes",{moduleName:u.a.string.isRequired});var Qn=Xn,er=function(e){var t=function(e){return function(){return function(e){Xe.a.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})}(e)}},n=function(e){return function(){return function(e){Xe.a.tracks.recordJetpackClick({target:"connect-banner",feature:e,type:"connect"})}(e)}},r=!!e.module&&e.getModule(e.module),i=e.vaultPressData,a=Object(je.get)(i,["data","features","backups"],!1),s=Object(je.get)(i,["data","features","security"],!1);if(!e.userCanManageModules&&!Object(je.includes)(["post-by-email","publicize"],e.module))return o.a.createElement("span",null);var c=e.saveDisabled,l=!!e.feature&&e.feature,u=e.header?e.header:"";""===u&&r&&(u=r.name);var p=function(){switch(l){case vn.g:return"inactive"===e.getModuleOverride("videopress");case vn.h:return"inactive"===e.getModuleOverride("wordads");case vn.a:return"inactive"===e.getModuleOverride("google-analytics");case vn.c:return"inactive"===e.getModuleOverride("search");default:return!1}},d=function(){if(e.fetchingSiteData)return!0;var t=Object(vn.fb)(e.sitePlan.product_slug),n=Object(je.includes)(["is-premium-plan","is-business-plan","is-daily-security-plan","is-realtime-security-plan","is-complete-plan"],t);switch(l){case vn.d:if("is-free-plan"===t&&!s)return!1;break;case vn.h:if(!n&&-1===e.activeFeatures.indexOf(vn.h))return!1;break;case vn.a:if(!n)return!1;break;case vn.f:if((Object(je.includes)(["is-free-plan"],t)||Object(je.isEmpty)(t))&&!e.isAkismetKeyValid&&!e.isCheckingAkismetKey)return!1}return!0}()&&e.children,h=!e.fetchingSiteData&&!p()&&!e.inOfflineMode&&function(){var r=Object(vn.fb)(e.sitePlan.product_slug),i=Object(Oe._x)("Upgrade","A caption for a button to upgrade an existing paid feature to a higher tier.","jetpack"),s=Object(Oe._x)("Connect","A caption for a button to connect a user account to access paid features.","jetpack"),c=Object(je.includes)(["is-premium-plan","is-business-plan","is-daily-security-plan","is-realtime-security-plan","is-complete-plan"],r);switch(l){case vn.g:return c?"":e.hasConnectedOwner?o.a.createElement($n,{title:Object(Oe.__)("Get unlimited, ad-free video hosting.","jetpack"),callToAction:i,plan:Object(vn.eb)(vn.g),feature:l,onClick:t(l),href:e.videoPremiumUpgradeUrl}):o.a.createElement($n,{title:Object(Oe.__)("Connect your WordPress.com account to upgrade for unlimited, ad-free video hosting.","jetpack"),callToAction:s,plan:Object(vn.eb)(vn.g),feature:l,onClick:n(l),href:e.connectUrl});case vn.h:return c||-1!==e.activeFeatures.indexOf(vn.h)?"":e.hasConnectedOwner?o.a.createElement($n,{title:Object(Oe.__)("Generate income with high-quality ads.","jetpack"),callToAction:i,plan:Object(vn.eb)(vn.h),feature:l,onClick:t(l),href:e.adsUpgradeUrl}):o.a.createElement($n,{title:Object(Oe.__)("Connect your WordPress.com account to upgrade and generate income with high-quality adds.","jetpack"),callToAction:s,plan:Object(vn.eb)(vn.h),feature:l,onClick:n(l),href:e.connectUrl});case vn.d:return a||["is-business-plan","is-realtime-security-plan","is-complete-plan"].includes(r)||e.multisite?"":["is-premium-plan","is-daily-security-plan"].includes(r)?e.hasConnectedOwner?o.a.createElement($n,{title:Object(Oe.__)("Save every change and get back online quickly with one-click restores.","jetpack"),plan:Object(vn.eb)(vn.e),callToAction:i,feature:l,onClick:t(l),href:e.securityProUpgradeUrl}):o.a.createElement($n,{title:Object(Oe.__)("Connect your WordPress.com account to upgrade and save every change and get back online quickly with one-click restores.","jetpack"),plan:Object(vn.eb)(vn.e),callToAction:s,feature:l,onClick:n(l),href:e.connectUrl}):e.hasConnectedOwner?o.a.createElement($n,{callToAction:i,title:Object(Oe.__)("Automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:Object(vn.eb)(vn.d),feature:l,onClick:t(l),href:e.securityPremiumUpgradeUrl}):o.a.createElement($n,{callToAction:s,title:Object(Oe.__)("Connect your WordPress.com account to upgrade for automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:Object(vn.eb)(vn.d),feature:l,onClick:n(l),href:e.connectUrl});case vn.a:return c?"":e.hasConnectedOwner?o.a.createElement($n,{callToAction:i,title:Object(Oe.__)("Connect your site to Google Analytics.","jetpack"),plan:Object(vn.eb)(vn.a),feature:l,onClick:t(l),href:e.gaUpgradeUrl}):o.a.createElement($n,{callToAction:s,title:Object(Oe.__)("Connect your WordPress.com account to upgrade and connect your site to Google Analytics.","jetpack"),plan:Object(vn.eb)(vn.a),feature:l,onClick:n(l),href:e.connectUrl});case vn.c:return e.hasActiveSearchPurchase||"is-complete-plan"===r?"":e.hasConnectedOwner?o.a.createElement($n,{callToAction:i,title:Object(Oe.__)("Help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),plan:Object(vn.eb)(vn.c),feature:l,onClick:t(l),href:e.searchUpgradeUrl}):o.a.createElement($n,{callToAction:s,title:Object(Oe.__)("Connect your WordPress.com account to upgrade and help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),plan:Object(vn.eb)(vn.c),feature:l,onClick:n(l),href:e.connectUrl});case vn.f:return e.isCheckingAkismetKey||e.isAkismetKeyValid||"is-personal-plan"===r||c?"":e.hasConnectedOwner?o.a.createElement($n,{callToAction:i,title:Object(Oe.__)("Automatically clear spam from comments and forms.","jetpack"),plan:Object(vn.eb)(vn.f),feature:l,href:e.spamUpgradeUrl}):o.a.createElement($n,{callToAction:s,title:Object(Oe.__)("Connect your WordPress.com account to upgrade and automatically clear spam from comments and forms.","jetpack"),plan:Object(vn.eb)(vn.f),feature:l,href:e.connectUrl});default:return""}}();if(!d&&!h)return null;var f="";return e.feature?f="jp-settings-".concat(e.feature):e.module&&(f="jp-settings-".concat(e.module)),function(){if(!p())return!1;if(l!==vn.a)return null;var t=e.getModule("google-analytics");return o.a.createElement(Qn,{moduleName:t.name})}()||o.a.createElement("form",tt()({},f?{id:f}:null,{className:"jp-form-settings-card",onSubmit:c?void 0:e.onSubmit}),o.a.createElement(Tn,{label:u},!e.hideButton&&o.a.createElement(sn.a,{primary:!0,compact:!0,type:"submit",disabled:c||!e.isDirty()},c?Object(Oe._x)("Saving…","Button caption","jetpack"):Object(Oe._x)("Save settings","Button caption","jetpack")),e.action&&o.a.createElement(Bn,{proFeature:e.action,siteAdminUrl:e.siteAdminUrl,isCompact:!1})),d,h)};er.propTypes={action:u.a.string,saveDisabled:u.a.bool},er.defaultProps={action:"",saveDisabled:!1};var tr=Object(s.b)((function(e){return{sitePlan:Object(Sn.p)(e),fetchingSiteData:Object(Sn.x)(e),siteAdminUrl:Object(Rt.n)(e),userCanManageModules:Object(Rt.K)(e),isAkismetKeyValid:Object(yn.h)(e),isCheckingAkismetKey:Object(yn.i)(e),vaultPressData:Object(yn.f)(e),getModuleOverride:function(t){return Object(Qe.f)(e,t)},getModule:function(t){return Object(Qe.c)(e,t)},activeFeatures:Object(Sn.h)(e),videoPremiumUpgradeUrl:Object(Rt.t)(e,"settings-video-premium"),adsUpgradeUrl:Object(Rt.t)(e,"settings-ads"),securityProUpgradeUrl:Object(Rt.t)(e,"settings-security-pro"),securityPremiumUpgradeUrl:Object(Rt.t)(e,"settings-security-premium"),gaUpgradeUrl:Object(Rt.t)(e,"settings-ga"),searchUpgradeUrl:Object(Rt.t)(e,"jetpack-search"),spamUpgradeUrl:Object(Rt.t)(e,"settings-spam"),multisite:Object(Rt.y)(e),hasActiveSearchPurchase:Object(Sn.u)(e),inOfflineMode:Object(qe.s)(e),connectUrl:Object(qe.f)(e),hasConnectedOwner:Object(qe.k)(e)}}))(er),nr=n(28),rr=n(90),ir=(n(426),function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"focus",(function(){e.refs.textField.focus()})),Be()(Re()(e),"selectOnFocus",(function(e){e.target.select()})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.selectOnFocus,r=rt()(t,{"dops-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),i=Object(je.omit)(this.props,"selectOnFocus","isError","isValid");return o.a.createElement("input",tt()({},i,{ref:"textField",className:r,onClick:n?this.selectOnFocus:null}))}}]),n}(o.a.Component));Be()(ir,"displayName","TextInput"),Be()(ir,"defaultProps",{isError:!1,isValid:!1,selectOnFocus:!1,type:"text"});var ar=n(31),or=(n(427),function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"updateFormStateByMarkdown",(function(t){return e.props.getSettingCurrentValue("wpcom_publish_posts_with_markdown",t)?e.props.updateFormStateModuleOption(t,"wpcom_publish_comments_with_markdown"):e.props.updateFormStateModuleOption(t,"wpcom_publish_comments_with_markdown",!0)})),Be()(Re()(e),"handleMarkdownCommentsToggle",(function(){e.props.updateFormStateModuleOption("markdown","wpcom_publish_comments_with_markdown")})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.isModuleFound("comments"),t=this.props.isModuleFound("gravatar-hovercards"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("comment-likes");if(!(e||t||n||r))return null;var i=this.props,a=i.isUnavailableInOfflineMode,s=i.getOptionValue,c=this.props.getModule("comments"),l=this.props.getOptionValue("comments"),u=this.props.isUnavailableInOfflineMode("comments"),p=this.props.getModule("gravatar-hovercards"),d=this.props.getModule("markdown"),h=a("comment-likes"),f=s("comment-likes");return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe.__)("Comments","jetpack"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"])}),e&&o.a.createElement(nr.a,{hasChild:!0,disableInOfflineMode:!0,module:c,support:{text:Object(Oe.__)("Replaces the standard WordPress comment form with a new comment system that includes social media login options.","jetpack"),link:Object(Ve.a)("jetpack-support-comments")}},o.a.createElement(bn.a,{slug:"comments",compact:!0,disabled:u,activated:this.props.getOptionValue("comments"),toggling:this.props.isSavingAnyOption("comments"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},c.description)),o.a.createElement(cn,null,o.a.createElement(ln,null,o.a.createElement("span",{className:"jp-form-label-wide"},Object(Oe.__)("Comment form introduction","jetpack")),o.a.createElement(ir,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!l||u||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})),o.a.createElement("span",{className:"jp-form-setting-explanation"},Object(Oe.__)("A few catchy words to motivate your visitors to comment.","jetpack")),o.a.createElement(ln,null,o.a.createElement("span",{className:"jp-form-label-wide"},Object(Oe.__)("Color scheme","jetpack")),o.a.createElement(gn,tt()({name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!l||u||this.props.isSavingAnyOption("jetpack_comment_form_color_scheme"),onChange:this.props.onOptionChange},this.props,{validValues:this.props.validValues("jetpack_comment_form_color_scheme","comments")}))))),(t||n||r)&&o.a.createElement(nr.a,null,t&&o.a.createElement("div",{className:"jp-toggle-set"},o.a.createElement(cn,null,o.a.createElement(bn.a,{slug:"gravatar-hovercards",compact:!0,activated:this.props.getOptionValue("gravatar-hovercards"),toggling:this.props.isSavingAnyOption("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},p.description))),o.a.createElement(rr.a,{text:Object(Oe.__)("Show Gravatar hovercards alongside comments.","jetpack"),link:p.learn_more_button,privacyLink:p.learn_more_button+"#privacy"})),n&&o.a.createElement("div",{className:"jp-toggle-set"},o.a.createElement(cn,null,o.a.createElement(rn.a,{checked:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_comments_with_markdown"])||"inactive"===this.props.getModuleOverride("markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_comments_with_markdown"]),onChange:this.handleMarkdownCommentsToggle},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable Markdown use for comments.","jetpack")))),o.a.createElement(rr.a,{text:Object(Oe.__)("Allow readers to use markdown in comments.","jetpack"),link:d.learn_more_button,privacyLink:d.learn_more_button+"#privacy"})),r&&o.a.createElement("div",{className:"jp-toggle-set"},o.a.createElement(cn,null,o.a.createElement(bn.a,{slug:"comment-likes",compact:!0,disabled:h,activated:f,toggling:this.props.isSavingAnyOption("comment-likes"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable comment likes.","jetpack")))),o.a.createElement(rr.a,{text:Object(Oe.__)("Allow readers to like individual comments.","jetpack"),link:Object(Ve.a)("jetpack-support-comment-likes"),privacyLink:Object(Ve.a)("jetpack-support-comment-likes",{anchor:"privacy"})}))))}}]),n}(o.a.Component)),sr=Object(ar.a)(or),cr=n(56),lr=n.n(cr),ur=n(402),pr=n(107),dr=n(57),hr=function(){var e,t,n,r,i=Object(dr.__experimentalGetSettings)().l10n.locale;return i?function(e){var t=e.match(/^([a-z]{2,3})(_[a-z]{2}|_[a-z][a-z0-9]{4,7})?(?:_.*)?$/i);return t?"".concat(t[1]).concat(t[2]?t[2]:"").replace("_","-"):"en-US"}(i):null!==(e=null===(t=window)||void 0===t||null===(n=t.window)||void 0===n||null===(r=n.navigator)||void 0===r?void 0:r.language)&&void 0!==e?e:"en-US"},fr=function(e){var t=hr();return new Intl.NumberFormat(t).format(e)},mr=function(e){var t=e.amount,n=e.description,r=e.gridIcon,i=e.title;return o.a.createElement("div",{className:"jetpack-termination-dialog__feature"},o.a.createElement("div",{className:"jetpack-termination-dialog__feature-header"},o.a.createElement("h3",null,i),o.a.createElement(Mt.a,{icon:r})),o.a.createElement("div",{className:"jetpack-termination-dialog__feature-body"},o.a.createElement("p",{className:"jetpack-termination-dialog__feature-body-amount"},fr(t)),o.a.createElement("p",{className:"jetpack-termination-dialog__feature-body-description"},n)))},gr=(n(428),function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"renderCDNReason",value:function(){return o.a.createElement("li",{key:"reason-cdn"},Object(Zn.createInterpolateElement)(Object(Oe.__)("Speed up your site and provide mobile-ready images with <a>our CDN</a>","jetpack"),{a:o.a.createElement("a",{className:"jetpack-termination-dialog__link",href:Object(Ve.a)("jetpack-features-design-content-delivery-network"),rel:"noopener noreferrer",target:"_blank"})}))}},{key:"renderProtectReason",value:function(){return o.a.createElement("li",{key:"reason-brute-force"},Object(Zn.createInterpolateElement)(Object(Oe.__)("Block <a>brute force attacks</a> and get immediate notifications if your site is down","jetpack"),{a:o.a.createElement("a",{className:"jetpack-termination-dialog__link",href:Object(Ve.a)("jetpack-features-security"),rel:"noopener noreferrer",target:"_blank"})}))}},{key:"renderSocialReason",value:function(){return o.a.createElement("li",{key:"reason-social"},Object(Zn.createInterpolateElement)(Object(Oe.__)("Grow your traffic with automated social <a>publishing and sharing</a>","jetpack"),{a:o.a.createElement("a",{className:"jetpack-termination-dialog__link",href:Object(Ve.a)("jetpack-support-social"),rel:"noopener noreferrer",target:"_blank"})}))}},{key:"renderConnectedPlugins",value:function(e){return o.a.createElement("ul",{class:"jetpack-termination-dialog__active-plugins-list"},e.map((function(e){return o.a.createElement("li",{key:e.slug},o.a.createElement(Mt.a,{icon:"notice-outline",size:18}),e.name)})))}},{key:"render",value:function(){var e=this.props,t=e.isDevVersion,n=e.purpose,r=e.siteBenefits,i=e.connectedPlugins,a=r.length,s=t?Kn:Hn,c=1===i.length?Object(Oe.__)("The Jetpack Connection is also used by another plugin, and it will lose connection.","jetpack"):Object(Oe.sprintf)(Object(Oe._n)("The Jetpack Connection is also used by %d other plugin, and it will lose connection.","The Jetpack Connection is also used by %d other plugins, and they will lose connection.",i.length,"jetpack"),i.length);return o.a.createElement(en.a,{className:"jetpack-termination-dialog__features"},o.a.createElement("p",{className:"jetpack-termination-dialog__info"},"disconnect"===n?Object(Oe.__)("Jetpack is currently powering features on your site. Once you disconnect Jetpack, these features will no longer be available and your site may no longer function the same way.","jetpack"):Object(Oe.__)("Jetpack is currently powering features on your site. Once you disable Jetpack, these features will no longer be available and your site may no longer function the same way.","jetpack"),a>0&&Object(Oe.__)(" We’ve highlighted some of the features you rely on below.","jetpack")),o.a.createElement("div",{className:1===a?"jetpack-termination-dialog__features-list-single-column":"jetpack-termination-dialog__features-list"},r.map((function(e){var t=e.amount,n=e.description,r=e.name,i=e.gridIcon,a=e.title;return o.a.createElement(mr,{key:r,amount:t,description:n,gridIcon:i,title:a})}))),a<=2&&o.a.createElement("div",{className:"jetpack-termination-dialog__generic-info"},o.a.createElement("h2",null,Object(Oe.__)("Jetpack has many powerful tools that can help you achieve your goals","jetpack")),o.a.createElement("ul",null,this.renderCDNReason(),this.renderProtectReason(),this.renderSocialReason())),i.length>0&&o.a.createElement("div",{className:"jetpack-termination-dialog__generic-info"},o.a.createElement("h2",null,c),this.renderConnectedPlugins(i)),o.a.createElement("div",{className:"jetpack-termination-dialog__get-help"},o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("Have a question? We’d love to help! <a>Send a question to the Jetpack support team.</a>","jetpack"),{a:o.a.createElement("a",{className:"jetpack-termination-dialog__link",href:s,rel:"noopener noreferrer",target:"_blank"})}))))}}]),n}(a.Component));Be()(gr,"propTypes",{isDevVersion:u.a.bool,purpose:u.a.oneOf(["disconnect","disable"]).isRequired,siteBenefits:u.a.array.isRequired,connectedPlugins:u.a.array.isRequired});var br=gr,vr=function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;return Ne()(this,n),r=t.call(this,e),Be()(Re()(r),"handleRadioChange",(function(){var e=r.props;(0,e.onAnswerChange)(e.answer.id,r.state.textResponse)})),Be()(Re()(r),"handleTextChange",(function(e){var t=r.props,n=t.onAnswerChange,i=t.answer.id,a=e.target.value;n(i,a),r.setState({textResponse:a})})),r.state={textResponse:e.selectedAnswerText},r}return Pe()(n,[{key:"renderTextInput",value:function(){var e=this.props,t=e.disabled,n=e.answer.textInputPrompt,r=this.state.value;return o.a.createElement(dn,{className:"multiple-choice-question__answer-item-text-input",value:r,onChange:this.handleTextChange,placeholder:n||"",disabled:t})}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.answer,r=n.id,i=n.answerText,a=n.textInput,s=n.children,c=e.isSelected;return o.a.createElement(ln,null,o.a.createElement(fn,{value:r,onChange:this.handleRadioChange,checked:c,disabled:t}),o.a.createElement("span",null,i),o.a.createElement("div",{className:"multiple-choice-question__answer-item-content"},a&&this.renderTextInput(),s))}}]),n}(a.Component);Be()(vr,"propTypes",{disabled:u.a.bool,isSelected:u.a.bool,onAnswerChange:u.a.func,answer:u.a.shape({id:u.a.string.isRequired,answerText:u.a.string.isRequired,textInput:u.a.bool,textInputPrompt:u.a.string,children:u.a.object}).isRequired,selectedAnswerText:u.a.string}),Be()(vr,"defaultProps",{disabled:!1,selectedAnswerText:""});var _r=vr,yr=(n(429),Object(je.memoize)((function(e){var t=Object(je.shuffle)(e.filter((function(e){return!e.doNotShuffle})));return e.map((function(e){return e.doNotShuffle?e:t.pop()}))}),(function(e){return e.map((function(e){return Object(je.values)(Object(je.pick)(e,"id","doNotShuffle")).join("_")})).join("-")}))),Er=function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;return Ne()(this,n),r=t.call(this,e),Be()(Re()(r),"handleAnswerChange",(function(e,t){(0,r.props.onAnswerChange)(e,t),r.setState({selectedAnswerId:e})})),r.state={selectedAnswerId:e.selectedAnswerId},r}return Pe()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.disabled,r=t.answers,i=t.question,a=t.selectedAnswerText,s=t.subHeader,c=this.state.selectedAnswerId,l=yr(r);return o.a.createElement(cn,{className:"multiple-choice-question"},o.a.createElement("h2",{className:"multiple-choice-question__question"},i),s&&o.a.createElement("h3",{className:"multiple-choice-question__subheader"},s),l.map((function(t){return o.a.createElement(_r,{key:t.id,answer:t,disabled:n,isSelected:c===t.id,onAnswerChange:e.handleAnswerChange,selectedAnswerText:c===t.id?a:""})})))}}]),n}(a.Component);Be()(Er,"propTypes",{answers:u.a.arrayOf(u.a.shape({id:u.a.string.isRequired,answerText:u.a.string.isRequired,doNotShuffle:u.a.bool,textInput:u.a.bool,textInputPrompt:u.a.string,children:u.a.object})).isRequired,disabled:u.a.bool,onAnswerChange:u.a.func.isRequired,question:u.a.string.isRequired,selectedAnswerId:u.a.string,selectedAnswerText:u.a.string,subHeader:u.a.string}),Be()(Er,"defaultProps",{disabled:!1,selectedAnswerId:null,selectedAnswerText:""});var wr=Er,kr=[{id:"cannot-work",answerText:Object(Oe.__)("I can't get it to work.","jetpack")},{id:"slow",answerText:Object(Oe.__)("It slowed down my site.","jetpack")},{id:"buggy",answerText:Object(Oe.__)("It's buggy.","jetpack")},{id:"no-clarity",answerText:Object(Oe.__)("I don't know what it does.","jetpack")},{id:"delete",answerText:Object(Oe.__)("I'm deleting/migrating my site.","jetpack")},{id:"troubleshooting",answerText:Object(Oe.__)("Troubleshooting - I'll be reconnecting afterwards.","jetpack")},{id:"other",answerText:Object(Oe.__)("Other:","jetpack"),textInput:!0,textInputPrompt:Object(Oe.__)("share your experience","jetpack"),doNotShuffle:!0}],jr=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"getQuestion",value:function(){return"disconnect"===this.props.purpose?Object(Oe.__)("Please let us know why you're disconnecting Jetpack","jetpack"):Object(Oe.__)("Please let us know why you're disabling Jetpack","jetpack")}},{key:"render",value:function(){var e=this.props,t=e.onSurveyAnswerChange,n=e.surveyAnswerId,r=e.surveyAnswerText;return o.a.createElement(en.a,{className:"jetpack-disconnect-dialog__survey"},o.a.createElement(wr,{answers:kr,question:this.getQuestion(),subHeader:Object(Oe.__)("Your feedback will help us improve the product.","jetpack"),onAnswerChange:t,selectedAnswerId:n,selectedAnswerText:r}))}}]),n}(a.Component);Be()(jr,"propTypes",{onSurveyAnswerChange:u.a.func.isRequired,purpose:u.a.oneOf(["disconnect","disable"]).isRequired,surveyAnswerId:u.a.string,surveyAnswerText:u.a.string});var Or=jr,Cr=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"componentDidMount",value:function(){this.props.isFetchingSiteBenefits||this.props.fetchSiteBenefits()}},{key:"render",value:function(){return null}}]),n}(a.Component);Be()(Cr,"defaultProps",{isFetchingSiteBenefitsData:!1});var Sr=Object(s.b)((function(e){return{isFetchingSiteBenefits:Object(Sn.w)(e)}}),(function(e){return{fetchSiteBenefits:function(){return e(Object(Sn.c)())}}}))(Cr),Tr=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"componentDidMount",value:function(){this.props.isFetchingConnectedPlugins||this.props.fetchConnectedPlugins()}},{key:"render",value:function(){return null}}]),n}(a.Component);Be()(Tr,"defaultProps",{isFetchingConnectedPlugins:!1});var Ar=Object(s.b)((function(e){return{isFetchingConnectedPlugins:Object(Sn.v)(e)}}),(function(e){return{fetchConnectedPlugins:function(){e(Object(Sn.b)())}}}))(Tr);function Mr(e){switch(e){case"contact-form":return"align-image-center";case"contact-form-feedback":return"mail";case"image-hosting":return"image";case"jetpack-backup":return"cloud-download";case"jetpack-stats":return"stats-alt";case"protect":return"lock";case"publicize":case"sharing":return"share";case"subscribers":return"user";case"video-hosting":return"video-camera";default:return"checkmark"}}function Nr(e){return{name:e.name,title:e.title,description:e.description,amount:e.value,gridIcon:Mr(e.name)}}var xr=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{step:n.FEATURE_STEP,surveyAnswerId:null,surveyAnswerText:""}),Be()(Re()(e),"handleContinueClick",(function(){var t=e.props,r=t.location,i=t.purpose;Xe.a.tracks.recordEvent("jetpack_termination_dialog_continue_click",{location:r,purpose:i}),e.setState({step:n.SURVEY_STEP})})),Be()(Re()(e),"handleTerminationClick",(function(){var t=e.props,n=t.location,r=t.purpose,i=t.siteId,a=t.sitePlan,o=t.submitSurvey,s=t.terminateJetpack,c=e.state,l=c.surveyAnswerId,u=c.surveyAnswerText;Xe.a.tracks.recordEvent("jetpack_termination_dialog_termination_click",{location:n,purpose:r}),o(i,a,l,u,n),s()})),Be()(Re()(e),"handleDialogCloseClick",(function(){var t=e.props,n=t.closeDialog,r=t.location,i=t.purpose;Xe.a.tracks.recordEvent("jetpack_termination_dialog_close_click",{location:r,purpose:i}),n()})),Be()(Re()(e),"handleSurveyAnswerChange",(function(t,n){e.setState({surveyAnswerId:t,surveyAnswerText:n})})),e}return Pe()(n,[{key:"renderFeatures",value:function(){var e=this.props,t=e.isDevSite,n=e.purpose,r=e.siteBenefits,i=e.connectedPlugins;return r&&i?o.a.createElement(br,{isDevSite:t,purpose:n,siteBenefits:r.map(Nr),connectedPlugins:i}):o.a.createElement(en.a,{className:"jetpack-termination-dialog__spinner"},o.a.createElement(pr.Spinner,null))}},{key:"renderSurvey",value:function(){var e=this.props.purpose,t=this.state,n=t.surveyAnswerId,r=t.surveyAnswerText;return o.a.createElement(Or,{onSurveyAnswerChange:this.handleSurveyAnswerChange,purpose:e,surveyAnswerId:n,surveyAnswerText:r})}},{key:"renderPrimaryButton",value:function(){var e=this.props,t=e.purpose,r=e.showSurvey,i=this.state.step;return r&&i===n.FEATURE_STEP?o.a.createElement(sn.a,{primary:!0,onClick:this.handleContinueClick},Object(Oe.__)("Continue","jetpack")):o.a.createElement(sn.a,{scary:!0,primary:!0,onClick:this.handleTerminationClick},"disconnect"===t?Object(Oe.__)("Disconnect","jetpack"):Object(Oe.__)("Disable","jetpack"))}},{key:"render",value:function(){var e=this.props,t=e.location,r=e.purpose,i=e.showSurvey,a=this.state.step;return o.a.createElement("div",{className:"jetpack-termination-dialog"},o.a.createElement(nn.a,null),o.a.createElement(Sr,null),o.a.createElement(Ar,null),o.a.createElement(en.a,null,o.a.createElement("div",{className:"jetpack-termination-dialog__header"},o.a.createElement("h2",null,"disconnect"===r?Object(Oe.__)("Disconnect Jetpack","jetpack"):Object(Oe.__)("Disable Jetpack","jetpack")),"dashboard"===t&&o.a.createElement(Mt.a,{icon:"cross",className:"jetpack-termination-dialog__close-icon",onClick:this.handleDialogCloseClick}))),i&&a!==n.FEATURE_STEP?this.renderSurvey():this.renderFeatures(),o.a.createElement(en.a,null,o.a.createElement("div",{className:"jetpack-termination-dialog__button-row"},o.a.createElement("p",null,"disconnect"===r?Object(Oe.__)("Are you sure you want to disconnect?","jetpack"):Object(Oe.__)("Are you sure you want to disconnect and deactivate?","jetpack")),o.a.createElement("div",{className:"jetpack-termination-dialog__button-row-buttons"},o.a.createElement(sn.a,{onClick:this.handleDialogCloseClick},Object(Oe.__)("Cancel","jetpack")),this.renderPrimaryButton()))))}}]),n}(a.Component);Be()(xr,"FEATURE_STEP","FEATURE_STEP"),Be()(xr,"SURVEY_STEP","SURVEY_STEP"),Be()(xr,"propTypes",{closeDialog:u.a.func.isRequired,isDevVersion:u.a.bool,location:u.a.oneOf(["plugins","dashboard"]).isRequired,purpose:u.a.oneOf(["disconnect","disable"]).isRequired,showSurvey:u.a.bool.isRequired,siteBenefits:u.a.array,submitSurvey:u.a.func,terminateJetpack:u.a.func.isRequired,connectedPlugins:u.a.array});var Pr,Ir=Object(s.b)((function(e){return{isDevVersion:Object(Rt.x)(e),siteBenefits:Object(Sn.m)(e),siteId:Object(Sn.o)(e),sitePlan:Object(Sn.p)(e),connectedPlugins:Object(Sn.l)(e)}}),{submitSurvey:function(e,t,n,r,i){var a={survey_id:"calypso-disconnect-jetpack-july2019",site_id:e,survey_responses:{purchase:t.product_slug,"why-cancel":{response:n},source:{from:"plugins"===i?"Jetpack-Plugins":"Jetpack-Dashboard"}}};return r&&""!==r&&(a.survey_responses["why-cancel"].text=r),function(e){return function(t){return t({type:Ft.JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY}),En.a.submitSurvey(e).then((function(e){return t({type:Ft.JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS}),e})).catch((function(e){t({type:Ft.JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL,error:e.response})}))}}(a)}})(xr),Rr=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Dr=Rr.join(","),Ur="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Lr=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Dr));return t&&Ur.call(e,Dr)&&r.unshift(e),r=r.filter(n)},Fr=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},zr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Br=function(e){return"INPUT"===e.tagName},Vr=function(e){return function(e){return Br(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},Hr=function(e,t){return!(t.disabled||function(e){return Br(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=Ur.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Ur.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var r=e.getBoundingClientRect(),i=r.width,a=r.height;return 0===i&&0===a}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t))},Kr=function(e,t){return!(!Hr(e,t)||Vr(t)||Fr(t)<0)},Jr=Rr.concat("iframe").join(","),qr=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Ur.call(e,Jr)&&Hr(t,e)};
/*!
* tabbable 5.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/
/*!
* focus-trap 6.3.0
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/
function Wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gr(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}var Yr,$r=(Yr=[],{activateTrap:function(e){if(Yr.length>0){var t=Yr[Yr.length-1];t!==e&&t.pause()}var n=Yr.indexOf(e);-1===n||Yr.splice(n,1),Yr.push(e)},deactivateTrap:function(e){var t=Yr.indexOf(e);-1!==t&&Yr.splice(t,1),Yr.length>0&&Yr[Yr.length-1].unpause()}}),Zr=function(e){return setTimeout(e,0)},Xr=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Qr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},ei=function(e,t){var n,r=document,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){Wr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},o=function(e){return a.containers.some((function(t){return t.contains(e)}))},s=function(e){var t=i[e];if(!t)return null;var n=t;if("string"==typeof t&&!(n=r.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(n=t()))throw new Error("`".concat(e,"` did not return a node"));return n},c=function(){var e;if(null!==s("initialFocus"))e=s("initialFocus");else if(o(r.activeElement))e=r.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},l=function(){if(a.tabbableGroups=a.containers.map((function(e){var t,n,r,i=(n=[],r=[],Lr(e,(t=t||{}).includeContainer,Kr.bind(null,t)).forEach((function(e,t){var i=Fr(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(zr).map((function(e){return e.node})).concat(n));if(i.length>0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1]}})).filter((function(e){return!!e})),a.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){o(e.target)||(Qr(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!qr(e.target)}):Qr(i.allowOutsideClick,e)||e.preventDefault())},d=function(e){var t=o(e.target);t||e.target instanceof Document?t&&(a.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),u(a.mostRecentlyFocusedNode||c()))},h=function(e){if(!1!==i.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){l();var t=null;if(a.tabbableGroups.length>0)if(Xr(a.tabbableGroups,(function(t){return t.container.contains(e.target)}))<0)t=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var n=Xr(a.tabbableGroups,(function(t){var n=t.firstTabbableNode;return e.target===n}));if(n>=0){var r=0===n?a.tabbableGroups.length-1:n-1;t=a.tabbableGroups[r].lastTabbableNode}}else{var i=Xr(a.tabbableGroups,(function(t){var n=t.lastTabbableNode;return e.target===n}));if(i>=0){var o=i===a.tabbableGroups.length-1?0:i+1;t=a.tabbableGroups[o].firstTabbableNode}}else t=s("fallbackFocus");t&&(e.preventDefault(),u(t))}(e)},f=function(e){Qr(i.clickOutsideDeactivates,e)||o(e.target)||Qr(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(a.active)return $r.activateTrap(n),Pr=i.delayInitialFocus?Zr((function(){u(c())})):u(c()),r.addEventListener("focusin",d,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",f,{capture:!0,passive:!1}),r.addEventListener("keydown",h,{capture:!0,passive:!1}),n},g=function(){if(a.active)return r.removeEventListener("focusin",d,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",f,!0),r.removeEventListener("keydown",h,!0),n};return(n={activate:function(e){if(a.active)return this;l(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement;var t=e&&e.onActivate?e.onActivate:i.onActivate;return t&&t(),m(),this},deactivate:function(e){if(!a.active)return this;clearTimeout(Pr),g(),a.active=!1,a.paused=!1,$r.deactivateTrap(n);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:i.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:i.returnFocusOnDeactivate)&&Zr((function(){var e;u((e=a.nodeFocusedBeforeActivation,s("setReturnFocus")||e))})),this},pause:function(){return a.paused||!a.active||(a.paused=!0,g()),this},unpause:function(){return a.paused&&a.active?(a.paused=!1,l(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),a.active&&l(),this}}).updateContainerElements(e),n},ti=(n(430),!1);var ni=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{overlayMouseDown:!1}),Be()(Re()(e),"handleEscapeKey",(function(t){27===t.keyCode&&e.maybeClose()})),Be()(Re()(e),"maybeClose",(function(){e.props.onRequestClose&&!ti&&e.props.onRequestClose()})),Be()(Re()(e),"handleMouseDownOverlay",(function(t){t.preventDefault(),t.stopPropagation(),e.setState({overlayMouseDown:!0})})),Be()(Re()(e),"handleClickOverlay",(function(t){t.preventDefault(),t.stopPropagation(),e.state.overlayMouseDown&&e.props.onRequestClose&&!ti&&(e.setState({overlayMouseDown:!1}),e.props.onRequestClose())})),Be()(Re()(e),"handleMouseEventModal",(function(e){e.stopPropagation()})),e}return Pe()(n,[{key:"componentDidMount",value:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{this.focusTrap=ei(i.a.findDOMNode(this)),this.focusTrap.activate({initialFocus:this.props.initialFocus})}catch(e){}}},{key:"componentWillUnmount",value:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{this.focusTrap.deactivate()}catch(e){}}},{key:"render",value:function(){var e,t=this.props,n=t.style,r=t.className,i=t.width,a=t.title,s=on()(t,["style","className","width","title"]),c=Object(je.omit)(s,"onRequestClose").forwardedProps;switch(i){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}var l=Object(je.assign)({},n,e);return o.a.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},o.a.createElement("div",tt()({className:rt()("dops-modal",r),style:l,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":a},c),this.props.children))}}]),n}(o.a.Component);Be()(ni,"propTypes",{style:u.a.object,width:u.a.oneOf(["wide","medium","narrow"]),className:u.a.string,title:u.a.string,initialFocus:u.a.string,onRequestClose:u.a.func}),Be()(ni,"defaultProps",{style:{}}),ni.preventClose=function(){ti=!0},ni.allowClose=function(){ti=!1};var ri=ni,ii=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"disconnectJetpack",(function(){e.props.disconnectSite(!0)})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props,t=e.show,n=e.showSurvey,r=e.toggleModal;return t&&o.a.createElement(ri,{className:"jp-connection-settings__modal",onRequestClose:r},o.a.createElement(Ir,{closeDialog:r,location:"dashboard",purpose:"disconnect",showSurvey:n,terminateJetpack:this.disconnectJetpack}))}}]),n}(a.Component);Be()(ii,"propTypes",{show:u.a.bool,showSurvey:u.a.bool,toggleModal:u.a.func}),Be()(ii,"defaultProps",{show:!1,showSurvey:!1,toggleModal:je.noop});var ai=Object(s.b)(null,(function(e){return{disconnectSite:function(){return e(Object(qe.c)(!0))}}}))(ii),oi=(n(431),function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;return Ne()(this,n),r=t.call(this,e),Be()(Re()(r),"handleOpenModal",(function(e){Xe.a.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),r.toggleVisibility()})),Be()(Re()(r),"disconnectSite",(function(){r.toggleVisibility(),r.props.disconnectSite()})),Be()(Re()(r),"toggleVisibility",(function(){r.setState({showModal:!r.state.showModal})})),Be()(Re()(r),"loadIframe",(function(e){e.preventDefault(),r.props.isAuthorizing||r.props.fetchingConnectUrl||(Xe.a.tracks.recordJetpackClick("link_account_in_place"),r.props.customConnect?r.props.customConnect():r.props.authorizeUserInPlace())})),Be()(Re()(r),"renderUserButton",(function(){if(r.props.isLinked)return o.a.createElement("div",null,o.a.createElement("a",{role:"button",tabIndex:"0",className:"jp-jetpack-unlink__button",onKeyDown:Dn(r.props.unlinkUser),onClick:r.props.unlinkUser,disabled:r.props.isUnlinking},r.props.connectLegend||Object(Oe.__)("Disconnect your WordPress.com account","jetpack")));var e=r.props.connectUrl;r.props.from&&(e+="&from=".concat(r.props.from),e+="&additional-user");var t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:r.props.fetchingConnectUrl||r.props.isAuthorizing},n=r.props.connectLegend||Object(Oe.__)("Connect your WordPress.com account","jetpack");return!r.props.connectInPlace||r.props.isSafari||r.props.doNotUseConnectionIframe||(t.onClick=r.loadIframe),r.props.asLink?o.a.createElement("a",t,n):o.a.createElement(sn.a,t,n)})),Be()(Re()(r),"renderContent",(function(){if(r.props.connectUser)return r.renderUserButton();if(r.props.isSiteConnected)return o.a.createElement("a",{role:"button",tabIndex:"0",onKeyDown:Dn(r.handleOpenModal),onClick:r.handleOpenModal,disabled:r.props.isDisconnecting},r.props.connectLegend||Object(Oe.__)("Manage site connection","jetpack"));var e=r.props.connectUrl;r.props.from&&(e+="&from=".concat(r.props.from));var t={className:"jp-jetpack-connect__button",href:e,disabled:r.props.fetchingConnectUrl},n=r.props.connectLegend||Object(Oe.__)("Set up Jetpack","jetpack");return r.props.asLink?o.a.createElement("a",t,n):o.a.createElement(sn.a,t,n)})),r.state={showModal:e.autoOpenInDisconnectRoute&&"#/disconnect"===Object(ur.getFragment)(window.location.href)},r}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("div",null,!this.props.isSiteConnected&&o.a.createElement("p",{className:"jp-banner__tos-blurb"},Object(Zn.createInterpolateElement)(Object(Oe.__)("By clicking the button below, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack"),{tosLink:o.a.createElement("a",{href:Object(Ve.a)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:o.a.createElement("a",{href:Object(Ve.a)("jetpack-support-what-data-does-jetpack-sync"),rel:"noopener noreferrer",target:"_blank"})})),this.renderContent(),this.props.children,o.a.createElement(ai,{show:this.state.showModal,showSurvey:!1,toggleModal:this.toggleVisibility}))}}]),n}(o.a.Component));Be()(oi,"displayName","ConnectButton"),Be()(oi,"propTypes",{connectUser:u.a.bool,from:u.a.string,asLink:u.a.bool,connectLegend:u.a.string,connectInPlace:u.a.bool,customConnect:u.a.func,autoOpenInDisconnectRoute:u.a.bool}),Be()(oi,"defaultProps",{connectUser:!1,from:"",asLink:!1,connectInPlace:!0,autoOpenInDisconnectRoute:!1});var si=Object(s.b)((function(e){return{siteRawUrl:Object(Rt.p)(e),isSiteConnected:Object(qe.i)(e),isDisconnecting:Object(qe.o)(e),fetchingConnectUrl:Object(qe.p)(e),connectUrl:Object(qe.f)(e),isLinked:Object(qe.n)(e),isUnlinking:Object(qe.z)(e),isAuthorizing:Object(qe.l)(e),isSafari:Object(Rt.z)(e),doNotUseConnectionIframe:Object(Rt.c)(e)}}),(function(e){return{disconnectSite:function(){return e(Object(qe.c)())},unlinkUser:function(){return e(Object(qe.B)())},authorizeUserInPlace:function(){return e(Object(qe.a)())}}}))(oi),ci=(n(432),function(e){return o.a.createElement("div",{className:"jp-connect-user-frame"},o.a.createElement("div",{className:"jp-connect-user-frame__left"},e.featureLabel?o.a.createElement("h2",null,Object(Oe.sprintf)(Object(Oe.__)("Unlock %s and other features","jetpack"),e.featureLabel)):o.a.createElement("h2",null,Object(Oe.__)("Unlock this and other features","jetpack")),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement(Mt.a,{icon:"checkmark-circle"})," ",Object(Oe.__)("Receive instant downtime alerts","jetpack")),o.a.createElement("li",null,o.a.createElement(Mt.a,{icon:"checkmark-circle"})," ",Object(Oe.__)("Automatically promote your posts on social media","jetpack")),o.a.createElement("li",null,o.a.createElement(Mt.a,{icon:"checkmark-circle"})," ",Object(Oe.__)("Let your subscribers know when you post","jetpack")),o.a.createElement("li",null,o.a.createElement(Mt.a,{icon:"checkmark-circle"})," ",Object(Oe.__)("Receive notifications of likes and comments","jetpack")),o.a.createElement("li",null,o.a.createElement(Mt.a,{icon:"checkmark-circle"})," ",Object(Oe.__)("Let visitors easily share your content","jetpack"))),o.a.createElement("p",null,o.a.createElement("a",{className:"jp-connect-user-frame__features-link",target:"_blank",rel:"noreferrer",href:"https://jetpack.com/support/features/"},Object(Oe.__)("See all Jetpack features","jetpack"),o.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",className:"gridicon gridicons-external"},o.a.createElement("g",null,o.a.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})))))),o.a.createElement("div",{className:"jp-connect-user-frame__right"},o.a.createElement(Ge,{scrollToIframe:!1,title:"",width:"347",height:"353",location:e.source})))});ci.propTypes={source:u.a.string,featureLabel:u.a.string};var li=ci,ui=(n(433),function(e){var t=Object(a.useState)(!1),n=lr()(t,2),r=n[0],i=n[1],s=Object(a.useCallback)((function(){Xe.a.tracks.recordJetpackClick({target:"connection-bar-click",feature:e.feature,is_user_wpcom_connected:"no",is_connection_owner:"no"}),i(!0)}),[i,e.feature]);return o.a.createElement(en.a,{compact:!0,className:"jp-connect-user-bar__card"},!r&&o.a.createElement("div",{className:"jp-connect-user-bar__text"},Object(Oe.sprintf)(Object(Oe.__)("This feature is provided by the WordPress.com cloud. %s","jetpack"),e.text)),!r&&o.a.createElement("div",{className:"jp-connect-user-bar__button"},o.a.createElement(si,{connectUser:!0,from:"unlinked-user-connect",connectLegend:Object(Oe.__)("Connect your WordPress.com account","jetpack"),customConnect:s})),r&&o.a.createElement(li,{source:"connect-user-bar",featureLabel:e.featureLabel}))});ui.propTypes={text:u.a.string.isRequired,feature:u.a.string,featureLabel:u.a.string};var pi=ui,di=function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;return Ne()(this,n),r=t.call(this,e),Be()(Re()(r),"getInitialState",(function(){return{stb_enabled:r.props.getOptionValue("stb_enabled"),stc_enabled:r.props.getOptionValue("stc_enabled")}})),Be()(Re()(r),"updateOptions",(function(e){r.setState(Be()({},e,!r.state[e]),r.props.updateFormStateModuleOption("subscriptions",e))})),Be()(Re()(r),"trackConfigureClick",(function(){Xe.a.tracks.recordJetpackClick("view-followers")})),Be()(Re()(r),"handleSubscribeToBlogToggleChange",(function(){r.updateOptions("stb_enabled")})),Be()(Re()(r),"handleSubscribeToCommentToggleChange",(function(){r.updateOptions("stc_enabled")})),r.state=r.getInitialState(),r}return Pe()(n,[{key:"render",value:function(){var e=this,t=this.props.getModule("subscriptions"),n=this.props.getOptionValue("subscriptions"),r=this.props.isUnavailableInOfflineMode("subscriptions");return o.a.createElement(tr,tt()({},this.props,{hideButton:!0,module:"subscriptions"}),o.a.createElement(nr.a,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:t,support:{text:Object(Oe.__)("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.","jetpack"),link:Object(Ve.a)("jetpack-support-subscriptions")}},o.a.createElement(bn.a,{slug:"subscriptions",disabled:r,activated:n,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),o.a.createElement(cn,null,o.a.createElement(rn.a,{checked:this.state.stb_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:this.handleSubscribeToBlogToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable the “subscribe to site†option on your comment form","jetpack"))),o.a.createElement(rn.a,{checked:this.state.stc_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:this.handleSubscribeToCommentToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable the “subscribe to comments†option on your comment form","jetpack"))))),!r&&n&&e.props.isLinked?o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackConfigureClick,href:Object(Ve.a)("calypso-people-email-followers",{site:e.props.siteRawUrl})},Object(Oe.__)("View your Email Followers","jetpack")):"",!this.props.isLinked&&!this.props.isOfflineMode&&o.a.createElement(pi,{feature:"subscriptions",featureLabel:Object(Oe.__)("Subscriptions","jetpack"),text:Object(Oe.__)("Connect to manage your subscriptions settings.","jetpack")}))}}]),n}(o.a.Component),hi=Object(ar.a)(di),fi=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode},t=this.props.isModuleFound("comments"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("gravatar-hovercards"),i=this.props.isModuleFound("subscriptions"),a=this.props.isModuleFound("comment-likes");return(this.props.searchTerm||this.props.active)&&(t||i||n||r||a)?o.a.createElement("div",null,o.a.createElement(nn.a,null),o.a.createElement(en.a,{title:this.props.searchTerm?Object(Oe.__)("Discussion","jetpack"):Object(Oe.__)("Manage advanced comment settings and grow your audience with email subscriptions.","jetpack"),className:"jp-settings-description"}),o.a.createElement(sr,tt()({},e,{isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride})),i&&o.a.createElement(hi,tt()({},e,{isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl}))):null}}]),n}(o.a.Component);Be()(fi,"displayName","DiscussionSettings");var mi=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},settings:Object(tn.g)(e),isOfflineMode:Object(qe.s)(e),isUnavailableInOfflineMode:function(t){return Object(qe.x)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)},connectUrl:Object(qe.f)(e),isLinked:Object(qe.n)(e),getModuleOverride:function(t){return Object(Qe.f)(e,t)}}}))(fi),gi=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props.isModuleFound("videopress");if(!e)return null;var t=this.props.module("videopress"),n=Object(vn.fb)(this.props.sitePlan.product_slug),r=Object(je.includes)(["is-premium-plan","is-business-plan","is-daily-security-plan","is-realtime-security-plan","is-complete-plan"],n)&&o.a.createElement(nr.a,{hasChild:!0,disableInOfflineMode:!0,module:t,support:{link:Object(Ve.a)("jetpack-support-videopress")}},o.a.createElement(un,{className:"jp-form-label-wide"},Object(Oe.__)("Video","jetpack")),o.a.createElement("p",null," ",Object(Oe.__)("Make the content you publish more engaging with high-resolution video. With Jetpack Video you can customize your media player and deliver high-speed, ad-free, and unbranded videos to your visitors. Videos are hosted on our WordPress.com servers and do not subtract space from your hosting plan!","jetpack")," "),o.a.createElement(bn.a,{slug:"videopress",disabled:this.props.isUnavailableInOfflineMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable high-speed, ad-free video player","jetpack")))),i="inactive"===this.props.getModuleOverride("videopress");return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe.__)("Media","jetpack"),feature:!i&&vn.g,hideButton:!0}),e&&r)}}]),n}(o.a.Component),bi=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)},sitePlan:Object(Sn.p)(e),getModuleOverride:function(t){return Object(Qe.f)(e,t)}}}))(Object(ar.a)(gi)),vi=Object(Oe.__)("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),_i=Object(Oe.__)("Customize your Search experience.","jetpack"),yi=Object(Oe.__)("Search supports many customizations. ","jetpack");var Ei=Object(s.b)((function(e){var t=Object(vn.fb)(Object(Sn.p)(e).product_slug);return{isLoading:Object(Sn.y)(e),inOfflineMode:Object(qe.s)(e),hasActiveSearchPurchase:Object(Sn.u)(e),isBusinessPlan:"is-business-plan"===t,failedToEnableSearch:!Object(tn.i)(e,"search")&&!Object(tn.j)(e,"search")&&!1===Object(tn.h)(e,"search")}}))(Object(ar.a)((function(e){var t=e.failedToEnableSearch,n=e.hasActiveSearchPurchase,r=e.updateOptions,i=e.getOptionValue("search"),s=e.getOptionValue("instant_search_enabled","search"),c=Object(a.useCallback)((function(){var e={search:!i};s!==(n&&!i)&&(e.instant_search_enabled=n&&!i),r(e)}),[n,s,i,r]),l=Object(a.useCallback)((function(){var e={instant_search_enabled:n&&!s};e.instant_search_enabled&&!i&&(e.search=!0),r(e)}),[n,s,i,r]);Object(a.useEffect)((function(){t&&n&&(r({has_jetpack_search_product:!0}),c())}),[t,n,r,c]);var u=!!e.isSavingAnyOption("search"),p=!!e.isSavingAnyOption("instant_search_enabled"),d=u||p;return o.a.createElement(tr,tt()({},e,{module:"search",feature:vn.c,hideButton:!0}),o.a.createElement(nr.a,{disableInOfflineMode:!0,hasChild:!0,module:{module:"search"},support:{text:yi,link:Object(Ve.a)("jetpack-support-search")}},o.a.createElement("p",null,e.inOfflineMode?Object(Oe.__)("Unavailable in Offline Mode","jetpack"):vi),e.isLoading&&Object(Oe.__)("Loading…","jetpack"),!e.isLoading&&(e.isBusinessPlan||e.hasActiveSearchPurchase)&&o.a.createElement(a.Fragment,null,o.a.createElement(bn.a,{activated:i,compact:!0,disabled:d,slug:"search",toggleModule:c,toggling:u},Object(Oe.__)("Enable Search","jetpack")),o.a.createElement(cn,null,o.a.createElement(rn.a,{checked:i&&s,disabled:d||!e.hasActiveSearchPurchase,onChange:l,toggling:p},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable instant search experience (recommended)","jetpack"))),o.a.createElement("p",{className:"jp-form-setting-explanation jp-form-search-setting-explanation"},Object(Oe.__)("Instant search will allow your visitors to get search results as soon as they start typing. If deactivated, Jetpack Search will still optimize your search results but visitors will have to submit a search query before seeing any results.","jetpack"))))),!e.isLoading&&(e.isBusinessPlan||e.hasActiveSearchPurchase)&&i&&!s&&o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},Object(Oe.__)("Add Jetpack Search Widget","jetpack")),e.hasActiveSearchPurchase&&i&&s&&o.a.createElement(en.a,{className:"jp-settings-card__configure-link",compact:!0,href:"customize.php?autofocus[section]=jetpack_search"},_i))}))),wi=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"toggleModule",(function(t,n){"photon"===t?!1==!n?e.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):e.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):e.props.updateOptions(Be()({},t,!n))})),Be()(Re()(e),"handleSiteAcceleratorChange",(function(){var t=e.props.getOptionValue("photon"),n=e.props.getOptionValue("photon-cdn"),r=t||n,i=e.props.getModuleOverride("photon"),a=e.props.getModuleOverride("photon-cdn");if(!0===r){var o={progress:Object(Oe.__)("Disabling site accelerator…","jetpack"),success:Object(Oe.__)("Site accelerator is no longer speeding up your site!","jetpack"),error:function(e){return Object(Oe.sprintf)(Object(Oe.__)("Error disabling site accelerator. %s","jetpack"),e)}},s={};!1==!t&&"active"!==i&&(t=!1,s={photon:!1,"tiled-gallery":!1,tiled_galleries:!1}),!1==!n&&"active"!==a&&(n=!1,s=Ze()(Ze()({},s),{},{"photon-cdn":!1})),e.props.updateOptions(s,o)}else{var c={progress:Object(Oe.__)("Enabling Site accelerator…","jetpack"),success:Object(Oe.__)("Site accelerator is now speeding up your site!","jetpack"),error:function(e){return Object(Oe.sprintf)(Object(Oe.__)("Error enabling Site accelerator. %s","jetpack"),e)}},l={};!1===t&&"inactive"!==i&&(t=!0,l={photon:!0,"tiled-gallery":!0,tiled_galleries:!0}),!1===n&&"inactive"!==a&&(n=!0,l=Ze()(Ze()({},l),{},{"photon-cdn":!0})),e.props.updateOptions(l,c)}!0===t||!0===n?Xe.a.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"on"}):Xe.a.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"off"}),e.props.getOptionValue("photon")!==t&&Xe.a.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon",toggled:!1===t?"off":"on"}),e.props.getOptionValue("photon-cdn")!==n&&Xe.a.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon-cdn",toggled:!1===n?"off":"on"})})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("photon-cdn"),n=this.props.isModuleFound("lazy-images");if(!e&&!n&&!t)return null;var r,i=this.props.module("lazy-images"),a=this.props.getOptionValue("photon")||this.props.getOptionValue("photon-cdn"),s=this.props.getModuleOverride("photon"),c=this.props.getModuleOverride("photon-cdn"),l=e&&t&&("inactive"!==s||"inactive"!==c),u=(e||t)&&("inactive"!==s||"inactive"!==c);return!this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?r=!this.props.getOptionValue("photon-cdn"):!this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")?r=!this.props.getOptionValue("photon"):this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?(r=!this.props.getOptionValue("photon-cdn"),this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")&&(r=!0)):r=!(!this.props.getOptionValue("photon-cdn")||!this.props.isSavingAnyOption("photon-cdn"))&&!this.props.getOptionValue("photon"),o.a.createElement(tr,tt()({},this.props,{header:Object(Oe.__)("Performance & speed","jetpack"),hideButton:!0,module:"performance-speed"}),(e||t)&&o.a.createElement(nr.a,{hasChild:!0,support:{link:Object(Ve.a)("jetpack-support-site-accelerator")}},o.a.createElement("p",null,Object(Oe.__)("Load pages faster by allowing Jetpack to optimize your images and serve your images and static files (like CSS and JavaScript) from our global network of servers.","jetpack")),u&&o.a.createElement(rn.a,{checked:a,toggling:r,onChange:this.handleSiteAcceleratorChange,disabled:!l},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable site accelerator","jetpack"))),o.a.createElement(cn,null,e&&o.a.createElement(bn.a,{slug:"photon",disabled:this.props.isUnavailableInOfflineMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Speed up image load times","jetpack"))),t&&o.a.createElement(bn.a,{slug:"photon-cdn",activated:this.props.getOptionValue("photon-cdn"),toggling:this.props.isSavingAnyOption("photon-cdn"),toggleModule:this.toggleModule},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Speed up static file load times","jetpack"))))),n&&o.a.createElement(nr.a,{hasChild:!0,module:i,support:{link:Object(Ve.a)("jetpack-support-lazy-images")}},o.a.createElement("p",null,Object(Oe.__)("Lazy-loading images will improve your site’s speed and create a smoother viewing experience. Images will load as visitors scroll down the screen, instead of all at once.","jetpack")),o.a.createElement(bn.a,{slug:"lazy-images",disabled:this.props.isUnavailableInOfflineMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable Lazy Loading for images","jetpack")))))}}]),n}(a.Component)),ki=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)},getModuleOverride:function(t){return Object(Qe.f)(e,t)}}}))(wi),ji=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e={getModule:this.props.module,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride},t=["photon","videopress","lazy-images","photon-cdn","search"].some(this.props.isModuleFound);return(this.props.searchTerm||this.props.active)&&t?o.a.createElement("div",null,o.a.createElement(nn.a,null),o.a.createElement(en.a,{title:this.props.searchTerm?Object(Oe.__)("Performance","jetpack"):Object(Oe.__)("Load pages faster, optimize images, and speed up your visitors’ experience.","jetpack"),className:"jp-settings-description"}),o.a.createElement(Ei,e),o.a.createElement(ki,e),o.a.createElement(bi,e)):null}}]),n}(a.Component),Oi=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},isUnavailableInOfflineMode:function(t){return Object(qe.x)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)},getModuleOverride:function(t){return Object(Qe.f)(e,t)}}}))(ji),Ci=n(43),Si=n(18),Ti=n(105),Ai=function(){return Xe.a.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"})},Mi=function(){return Xe.a.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"})},Ni=function(){return Xe.a.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"})},xi=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"isPrivacyFound",(function(){return!e.props.searchTerm||[Object(Oe._x)("privacy","Search term.","jetpack"),Object(Oe._x)("tracks","Search term.","jetpack"),Object(Oe._x)("data","Search term.","jetpack"),Object(Oe._x)("gdpr","Search term.","jetpack"),Object(Oe._x)("tos","Search term.","jetpack"),Object(Oe._x)("terms of service","Search term.","jetpack")].join(" ").toLowerCase().indexOf(e.props.searchTerm.toLowerCase())>-1})),Be()(Re()(e),"togglePrivacy",(function(){var t=e.props.trackingSettings.tracks_opt_out;e.props.setTrackingSettings(!t)})),e}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchTrackingSettings()}},{key:"render",value:function(){var e=this.props,t=e.searchTerm,n=e.active;return t||n?this.isPrivacyFound()&&o.a.createElement("div",null,o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Privacy Settings","Settings header","jetpack"),hideButton:!0}),o.a.createElement(nr.a,{hasChild:!0},o.a.createElement("p",null,Object(Oe.__)("We are committed to your privacy and security.","jetpack")),o.a.createElement("p",null,o.a.createElement(rn.a,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},Object(Zn.createInterpolateElement)(Object(Oe.__)("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. <cookiePolicyLink>Learn more</cookiePolicyLink>.","jetpack"),{cookiePolicyLink:o.a.createElement(Ci.a,{href:Object(Ve.a)("a8c-cookies"),onClick:Mi,target:"_blank",rel:"noopener noreferrer"})}))),o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("This information helps us improve our products, make marketing to you more relevant, personalize your WordPress.com experience, and more as detailed in our <pp>privacy policy</pp>.","jetpack"),{pp:o.a.createElement(Ci.a,{href:Object(Ve.a)("a8c-privacy"),onClick:Ai,target:"_blank",rel:"noopener noreferrer"})})),o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("We use other tracking tools, including some from third parties. <cookiePolicyLink>Read about these</cookiePolicyLink> and how to control them.","jetpack"),{cookiePolicyLink:o.a.createElement(Ci.a,{href:Object(Ve.a)("a8c-cookies"),onClick:Mi,target:"_blank",rel:"noopener noreferrer"})})),o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("For more information on how specific Jetpack features use data and track activity, please refer to our <privacyCenterLink>Privacy Center</privacyCenterLink>.","jetpack"),{privacyCenterLink:o.a.createElement(Ci.a,{href:Object(Ve.a)("jetpack-support-privacy"),onClick:Ni,target:"_blank",rel:"noopener noreferrer"})}))))):null}}]),n}(o.a.Component);Be()(xi,"displayName","PrivacySettings"),Be()(xi,"propTypes",{searchTerm:u.a.string,active:u.a.bool,toggleTracking:u.a.func,getOptionValue:u.a.func,isSavingAnyOption:u.a.func}),Be()(xi,"defaultProps",{searchTerm:"",active:!1});var Pi=Object(s.b)((function(e){return{settings:Object(tn.g)(e),trackingSettings:Object(Ti.a)(e),isUpdatingTrackingSettings:Object(Ti.c)(e),isFetchingTrackingSettings:Object(Ti.b)(e)}}),(function(e){return{setTrackingSettings:function(t){var n;Xe.a.tracks.setOptOut(t),e((n={tracks_opt_out:t},function(e){var t={progress:Object(Oe.__)("Updating privacy settings…","jetpack"),success:Object(Oe.__)("Updated privacy settings.","jetpack"),error:function(e){return Object(Oe.sprintf)(Object(Oe.__)("Error updating privacy settings. %s","jetpack"),e.message||e.code||e.name||e)}};return e(Object(Si.c)("tracking-settings-update")),e(Object(Si.c)("tracking-settings-update-success")),e(Object(Si.a)("is-info",t.progress,{id:"tracking-settings-update"})),e({type:Ft.USER_TRACKING_SETTINGS_UPDATE,updatedSettings:n}),En.a.updateUserTrackingSettings(n).then((function(r){e({type:Ft.USER_TRACKING_SETTINGS_UPDATE_SUCCESS,updatedSettings:n,success:r}),e(Object(Si.c)("tracking-settings-update")),e(Object(Si.c)("tracking-settings-update-success")),e(Object(Si.a)("is-success",t.success,{id:"tracking-settings-update-success",duration:2e3}))})).catch((function(r){e({type:Ft.USER_TRACKING_SETTINGS_UPDATE_FAIL,updatedSettings:n,success:!1,error:r}),e(Object(Si.c)("tracking-settings-update")),e(Object(Si.c)("tracking-settings-update-success")),e(Object(Si.a)("is-error",t.error(r),{id:"tracking-settings-update"}))}))}))},fetchTrackingSettings:function(){return e((function(e){return e({type:Ft.USER_TRACKING_SETTINGS_FETCH}),En.a.fetchUserTrackingSettings().then((function(t){return e({type:Ft.USER_TRACKING_SETTINGS_FETCH_SUCCESS,settings:t}),t})).catch((function(t){e({type:Ft.USER_TRACKING_SETTINGS_FETCH_FAIL,error:t})}))}))}}}))(Object(ar.a)(xi)),Ii=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"handleBannerClick",(function(t){return function(){return e.props.updateOptions(Be()({},t,!0))}})),e}return Pe()(n,[{key:"render",value:function(){var e=this;if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;var t=["contact-form","enhanced-distribution","json-api","notes"],n=this.props.modules,r=[];return Object(je.forEach)(n,(function(n,i){if(e.props.isModuleFound(i)&&Object(je.includes)(t,i)){var a=e.props.isOfflineMode&&e.props.isUnavailableInOfflineMode(n.module),s=!e.props.hasConnectedOwner&&e.props.isUnavailableInSiteConnectionMode(n.module);if(qe.x||qe.y)return r.push(o.a.createElement(Ri,{key:i,moduleData:n,offlineMode:a,siteConnectionMode:s}));e.props.getOptionValue(n.module)?r.push(o.a.createElement(Ri,{key:i,moduleData:n})):r.push(o.a.createElement(Gn,{className:"jp-searchable-banner",key:i,callToAction:Object(Oe.__)("Activate","jetpack"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.handleBannerClick(n.module),title:n.name}))}})),o.a.createElement("div",null,r)}}]),n}(a.Component));Ii.propTypes={searchTerm:u.a.string},Ii.defaultProps={searchTerm:""};var Ri=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props.moduleData,t=this.props.offlineMode,n=this.props.siteConnectionMode;return o.a.createElement(tr,{module:e.module,header:e.name,action:e.module,hideButton:!0},o.a.createElement(nr.a,{disableInOfflineMode:t,disableInSiteConnectionMode:n,module:{module:e.module},support:{link:e.learn_more_button}},e.description),n&&o.a.createElement(pi,{feature:e.module,featureLabel:e.name,text:Object(Oe.__)("Connect to configure.","jetpack")}))}}]),n}(a.Component),Di=Object(s.b)((function(e){return{modules:Object(Qe.g)(e),isModuleFound:function(t){return Object(Lt.b)(e,t)},canManageModules:Object(Rt.K)(e),isUnavailableInOfflineMode:function(t){return Object(qe.x)(e,t)},isOfflineMode:Object(qe.s)(e),isUnavailableInSiteConnectionMode:function(t){return Object(qe.y)(e,t)}}}))(Ii),Ui=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingRewindStatus||this.props.isOfflineMode||this.props.fetchRewind()}},{key:"render",value:function(){return null}}]),n}(a.Component);Be()(Ui,"propTypes",{isFetchingRewindStatus:u.a.bool,isOfflineMode:u.a.bool,sitePlan:u.a.object}),Be()(Ui,"defaultProps",{isFetchingRewindStatus:!1,isOfflineMode:!1,sitePlan:{}});var Li=Object(s.b)((function(e){return{isFetchingRewindStatus:Object(An.c)(e),isOfflineMode:Object(qe.s)(e),sitePlan:Object(Sn.p)(e)}}),(function(e){return{fetchRewind:function(){return e(Object(An.a)())}}}))(Ui),Fi=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return o.a.createElement(tr,{header:Object(Oe._x)("Backups and security scanning","Settings header","jetpack"),hideButton:!0,action:"scan"},o.a.createElement(nr.a,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:Object(Oe.__)("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:Object(Ve.a)("vaultpress-help-get-to-know")}},Object(Oe.__)("Checking site status…","jetpack")))}}]),n}(a.Component),zi=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"getCardText",(function(){if(e.props.isOfflineMode)return Object(Oe.__)("Unavailable in Offline Mode.","jetpack");var t=e.getRewindMessage(),n=t.title,r=t.icon,i=t.description,a=t.url;return o.a.createElement(Gn,{title:n,icon:r,feature:"rewind",description:i,className:"is-upgrade-premium jp-banner__no-border",href:a})})),e}return Pe()(n,[{key:"getRewindMessage",value:function(){var e=this.props,t=e.siteRawUrl;switch(e.rewindState){case"provisioning":return{title:Object(Oe.__)("Provisioning","jetpack"),icon:"info",description:Object(Oe.__)("Backups and Scan are being configured for your site.","jetpack"),url:""};case"awaiting_credentials":return{title:Object(Oe.__)("Awaiting credentials","jetpack"),icon:"notice",description:Object(Oe.__)("You need to enter your server credentials to finish configuring Backups and Scan.","jetpack"),url:Object(Ve.a)("jetpack-settings-security-credentials",{site:t})};case"active":return{title:Object(Oe.__)("Active","jetpack"),icon:"checkmark-circle",description:Object(Oe.__)("Your site is connected to Jetpack Backup and Scan.","jetpack"),url:Object(Ve.a)("calypso-activity-log",{site:t})};default:return{title:Object(Oe.__)("Oops!","jetpack"),icon:"info",description:Object(Oe.__)("The Jetpack Backup and Scan status could not be retrieved at this time.","jetpack"),url:""}}}},{key:"render",value:function(){return o.a.createElement(tr,tt()({feature:"rewind"},this.props,{header:Object(Oe._x)("Backups and security scanning","Settings header","jetpack"),action:"rewind",hideButton:!0}),this.getCardText())}}]),n}(a.Component);Be()(zi,"propTypes",{isOfflineMode:u.a.bool,siteRawUrl:u.a.string,rewindState:u.a.string}),Be()(zi,"defaultProps",{isOfflineMode:!1,siteRawUrl:"",rewindState:""});var Bi=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"toggleModule",(function(t,n){e.props.updateFormStateOptionValue(t,!n)})),Be()(Re()(e),"trackConfigureClick",(function(){Xe.a.tracks.recordJetpackClick("configure-scan")})),e}return Pe()(n,[{key:"getCardText",value:function(){var e=Object(je.get)(this.props.vaultPressData,["data","features","backups"],!1),t=Object(je.get)(this.props.vaultPressData,["data","features","security"],!1),n=Object(vn.fb)(this.props.sitePlan.product_slug),r="";if(this.props.isOfflineMode)return Object(Oe.__)("Unavailable in Offline Mode.","jetpack");if(e&&t){var i=this.props.hasThreats;return i?o.a.createElement("div",null,o.a.createElement("strong",null,Object(Oe.sprintf)(Object(Oe._n)("Uh oh, %s threat found.","Uh oh, %s threats found.",i,"jetpack"),fr(i))),o.a.createElement("br",null),o.a.createElement("br",null),Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>View details</a>","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("vaultpress-dashboard")})}),o.a.createElement("br",null),Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Contact Support</a>","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("jetpack-support")})})):Object(Oe.__)("Your site is connected to VaultPress for backups and security scanning.","jetpack")}if(e&&Object(je.includes)(["is-free-plan","is-personal-plan","is-daily-backup-plan","is-realtime-backup-plan"],n))return Object(Oe.__)("Your site is connected to VaultPress for backups.","jetpack");switch(n){case"is-personal-plan":r=Object(Oe.__)("You have paid for backups but they're not yet active.","jetpack"),r+=" "+Object(Oe.__)('Click "Set Up" to finish installation.',"jetpack");break;case"is-premium-plan":case"is-business-plan":r=Object(Oe.__)("You have paid for backups and security scanning but they’re not yet active.","jetpack"),r+=" "+Object(Oe.__)('Click "Set Up" to finish installation.',"jetpack")}return r}},{key:"render",value:function(){if(!this.props.showBackups)return null;var e=Object(je.get)(this.props.vaultPressData,["data","features","security"],!1),t=Object(je.get)(this.props.rewindStatus,["state"],!1),n=!1!==t,r="N/A"!==this.props.vaultPressData&&!1!==Object(je.get)(this.props.vaultPressData,["data"],!1);return n||!this.props.vaultPressActive||r?Object(je.includes)(["provisioning","awaiting_credentials","active"],t)?o.a.createElement(zi,tt()({},this.props,{rewindState:t})):o.a.createElement(tr,tt()({feature:vn.d},this.props,{header:Object(Oe._x)("Backups and security scanning","Settings header","jetpack"),action:"scan",hideButton:!0}),o.a.createElement(Li,null),o.a.createElement(nr.a,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:Object(Oe.__)("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:Object(Ve.a)("vaultpress-help-get-to-know")}},this.getCardText()),!this.props.isUnavailableInOfflineMode("backups")&&e&&o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:Object(Ve.a)("vaultpress-dashboard")},Object(Oe.__)("Configure your Security Scans","jetpack"))):o.a.createElement(Fi,null)}}]),n}(a.Component)),Vi=Object(s.b)((function(e){return{sitePlan:Object(Sn.p)(e),vaultPressData:Object(yn.f)(e),hasThreats:Object(yn.g)(e),vaultPressActive:Object(Qe.n)(e,"vaultpress"),showBackups:Object(Rt.D)(e)}}))(Bi),Hi=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=Object(je.assign)({},this.props,{className:rt()(this.props.className,"is-compact")});return o.a.createElement(en.a,e,this.props.children)}}]),n}(o.a.Component);Be()(Hi,"displayName","CompactCard");n(434);var Ki=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{expanded:e.props.expanded}),Be()(Re()(e),"onClick",(function(){e.props.children&&e.setState({expanded:!e.state.expanded}),e.props.onClick&&e.props.onClick(),e.state.expanded?e.props.onClose(e.props.cardKey):e.props.onOpen(e.props.cardKey)})),Be()(Re()(e),"getClickAction",(function(){if(!e.props.disabled)return e.onClick})),Be()(Re()(e),"getActionButton",(function(){return e.state.expanded&&e.props.actionButtonExpanded||e.props.actionButton})),Be()(Re()(e),"renderActionButton",(function(){var t=e.props.clickableHeader?null:e.getClickAction();if(e.props.actionButton)return o.a.createElement("button",{className:"dops-foldable-card__action",onClick:t},e.getActionButton());if(e.props.children){return o.a.createElement("button",{type:"button",disabled:e.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:t},o.a.createElement("span",{className:"screen-reader-text"},"More"),o.a.createElement(Mt.a,{icon:e.props.icon,size:24}))}})),Be()(Re()(e),"renderContent",(function(){return o.a.createElement("div",{className:"dops-foldable-card__content"},e.props.children)})),Be()(Re()(e),"renderHeader",(function(){var t=e.props.summary?o.a.createElement("span",{className:"dops-foldable-card__summary"},e.props.summary," "):null,n=e.props.expandedSummary?o.a.createElement("span",{className:"dops-foldable-card__summary_expanded"},e.props.expandedSummary," "):null,r=e.props.header?o.a.createElement("div",{className:"dops-foldable-card__header-text"},e.props.header):null,i=e.props.subheader?o.a.createElement("div",{className:"dops-foldable-card__subheader"},e.props.subheader):null,a={role:"button",tabIndex:0,onClick:e.getClickAction(),onKeyDown:Dn(e.getClickAction())},s=rt()("dops-foldable-card__header",{"is-clickable":!!e.props.clickableHeader,"has-border":!!e.props.summary}),c=rt()("dops-foldable-card__header-text",{"is-clickable":!!e.props.clickableHeaderText});return o.a.createElement("div",tt()({className:s},e.props.clickableHeader?a:{}),o.a.createElement("span",{className:"dops-foldable-card__main"},o.a.createElement("div",tt()({className:c},e.props.clickableHeaderText?a:{}),r,i)),o.a.createElement("span",{className:"dops-foldable-card__secondary"},t,n,e.renderActionButton()))})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.compact?Hi:en.a,t=rt()("dops-foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return o.a.createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}}]),n}(o.a.Component);Be()(Ki,"propTypes",{actionButton:u.a.element,actionButtonExpanded:u.a.element,cardKey:u.a.string,compact:u.a.bool,disabled:u.a.bool,expandedSummary:u.a.oneOfType([u.a.string,u.a.element]),expanded:u.a.bool,icon:u.a.string,onClick:u.a.func,onClose:u.a.func,onOpen:u.a.func,summary:u.a.oneOfType([u.a.string,u.a.element]),clickableHeader:u.a.bool,clickableHeaderText:u.a.bool}),Be()(Ki,"defaultProps",{onOpen:je.noop,onClose:je.noop,cardKey:"",icon:"chevron-down",isExpanded:!1,clickableHeader:!1,clickableHeaderText:!1});var Ji=Ki,qi=(n(435),function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=rt()({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return o.a.createElement("div",{className:e},o.a.createElement("span",null,o.a.createElement(Mt.a,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}]),n}(o.a.Component));Be()(qi,"displayName","FormInputValidation"),Be()(qi,"propTypes",{isError:u.a.bool,isWarning:u.a.bool,text:u.a.node,icon:u.a.string}),Be()(qi,"defaultProps",{isError:!1});var Wi=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{apiKey:e.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}}),Be()(Re()(e),"keyChanged",!1),Be()(Re()(e),"checkApiKeyTyped",(function(t){e.props.checkAkismetKey(t.currentTarget.value),e.keyChanged=!0,e.setState({delayKeyCheck:!1})})),Be()(Re()(e),"updateText",(function(t){var n=Object(je.assign)({},t);n.currentTarget.value=Object(je.trim)(n.currentTarget.value),e.setState({apiKey:n.currentTarget.value,delayKeyCheck:!0,currentEvent:n},e.debouncedCheckApiKeyTyped(n))})),Be()(Re()(e),"trackOpenCard",(function(){Xe.a.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})})),e}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.debouncedCheckApiKeyTyped=Object(je.debounce)(this.checkApiKeyTyped,500)}},{key:"componentDidUpdate",value:function(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!Object(je.isEmpty)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}},{key:"render",value:function(){var e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText},t="",n=Object(Oe.__)("Checking your spam protection…","jetpack"),r=Object(Zn.createInterpolateElement)(Object(Oe.__)("If you don't already have an API key, then <a>get your API key here</a>, and you'll be guided through the process of getting one.","jetpack"),{a:o.a.createElement("a",{href:"https://akismet.com/wordpress/"})});return null===this.props.isAkismetKeyValid?(e.value=Object(Oe.__)("Fetching key…","jetpack"),e.disabled=!0,r=!1):!this.props.isDirty()&&""===this.props.getSettingCurrentValue("wordpress_api_key")&&this.props.isAkismetKeyValid?(e.value=Object(Oe.__)("A valid key has been set in your site's configuration.","jetpack"),e.isValid=!0,e.disabled=!0,n=Object(Oe.__)("Your site is protected from spam.","jetpack"),r=Object(Oe.__)("It looks like your API key has been set globally.","jetpack"),t=o.a.createElement(qi,{text:Object(Oe.__)("Your Anti-spam key is valid.","jetpack")})):""===this.state.apiKey?(e.value="",n=Object(Oe.__)("Your site needs an Anti-spam key.","jetpack")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=o.a.createElement("div",{className:"form-input-validation is-warning"},o.a.createElement("span",null,o.a.createElement(Mt.a,{size:24,icon:"sync"}),Object(Oe.__)("Checking key…","jetpack"))),r=!1):!1===this.props.isAkismetKeyValid?(t=o.a.createElement(qi,{isError:!0,text:Object(Zn.createInterpolateElement)(Object(Oe.__)("There's a problem with your Anti-spam API key. <a>Learn more</a>.","jetpack"),{a:o.a.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})})}),e.isError=!0,n=Object(Oe.__)("Your site is not protected from spam.","jetpack")):(t=o.a.createElement(qi,{text:Object(Oe.__)("Your Anti-spam key is valid.","jetpack")}),e.isValid=!0,n=Object(Oe.__)("Your site is protected from spam.","jetpack"),r=!1),o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Anti-spam","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:vn.f}),o.a.createElement(Ji,{onOpen:this.trackOpenCard,header:n},o.a.createElement(nr.a,{support:{text:Object(Oe.__)("Removes spam from comments and contact forms.","jetpack"),link:"https://akismet.com/jetpack/"}},o.a.createElement(cn,null,o.a.createElement(ln,null,o.a.createElement("span",{className:"jp-form-label-wide"},Object(Oe.__)("Your API key","jetpack")),o.a.createElement(ir,e),t),r&&o.a.createElement("p",{className:"jp-form-setting-explanation"},r)))))}}]),n}(a.Component)),Gi=Object(s.b)((function(e){return{isAkismetKeyValid:Object(yn.h)(e),isCheckingAkismetKey:Object(yn.i)(e)}}),(function(e){return{checkAkismetKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e(Cn(t))}}}))(Wi),Yi=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"getVaultPressContent",(function(){return o.a.createElement(nr.a,{module:{module:"backups"},support:{text:Object(Oe.__)("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:Object(Ve.a)("jetpack-support-backup")}},Object(Oe.__)("Your site is connected to VaultPress for backups.","jetpack"))})),Be()(Re()(e),"getRewindBanner",(function(){var t=e.getRewindMessage(),n=t.title,r=t.icon,i=t.description,a=t.url;return o.a.createElement(Gn,{title:n,icon:r,feature:"rewind",description:i,className:"is-upgrade-premium jp-banner__no-border",href:a})})),e}return Pe()(n,[{key:"getRewindMessage",value:function(){var e=this.props,t=e.siteRawUrl,n=e.rewindStatus;switch(Object(je.get)(n,"state",!1)){case"provisioning":return{title:Object(Oe.__)("Provisioning","jetpack"),icon:"info",description:Object(Oe.__)("Jetpack Backup is being configured for your site.","jetpack"),url:""};case"awaiting_credentials":return{title:Object(Oe.__)("Awaiting credentials","jetpack"),icon:"notice",description:Object(Oe.__)("You need to enter your server credentials to finish configuring Jetpack Backup.","jetpack"),url:Object(Ve.a)("jetpack-settings-security-credentials",{site:t})};case"active":return{title:Object(Oe.__)("Active","jetpack"),icon:"checkmark-circle",description:Object(Oe.__)("Your site is connected to Jetpack Backup.","jetpack"),url:Object(Ve.a)("calypso-activity-log",{site:t})};default:return{title:Object(Oe.__)("Oops!","jetpack"),icon:"info",description:Object(Oe.__)("The Jetpack Backup status could not be retrieved at this time.","jetpack"),url:""}}}},{key:"render",value:function(){var e=this.props,t=e.rewindStatus,n=e.vaultPressData,r=Object(je.get)(t,"state",!1),i=Object(je.get)(n,["data","features","backups"],!1);return!1!==r||i?o.a.createElement(tr,tt()({feature:vn.e},this.props,{header:Object(Oe._x)("Jetpack Backup","Settings header","jetpack"),hideButton:!0}),"unavailable"===r?this.getVaultPressContent():this.getRewindBanner()):o.a.createElement(tr,{header:Object(Oe._x)("Jetpack Backup","Settings header","jetpack"),hideButton:!0,action:vn.e},o.a.createElement(nr.a,{module:{module:"backups"},support:{text:Object(Oe.__)("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:Object(Ve.a)("jetpack-support-backup")}},Object(Oe.__)("Checking site status…","jetpack")))}}]),n}(a.Component);Be()(Yi,"propTypes",{siteRawUrl:u.a.string,rewindState:u.a.string}),Be()(Yi,"defaultProps",{siteRawUrl:"",rewindState:""});var $i=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackConfigureClick",(function(){Xe.a.tracks.recordJetpackClick("configure-monitor")})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.hasConnectedOwner,t=this.props.isOfflineMode,n=this.props.getOptionValue("monitor"),r=this.props.isUnavailableInOfflineMode("monitor");return o.a.createElement(tr,tt()({},this.props,{hideButton:!0,module:"monitor",header:Object(Oe._x)("Downtime monitoring","Settings header","jetpack")}),o.a.createElement(nr.a,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("monitor"),support:{text:Object(Oe.__)("Jetpack will continuously monitor your site and alert you the moment downtime is detected.","jetpack"),link:Object(Ve.a)("jetpack-support-monitor")}},o.a.createElement(bn.a,{slug:"monitor",disabled:r||!e,activated:n,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Get alerts if your site goes offline. We’ll let you know when it’s back up, too.","jetpack")))),e&&o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:Object(Ve.a)("calypso-settings-security",{site:this.props.siteRawUrl})},Object(Oe.__)("Configure your notification settings","jetpack")),!e&&!t&&o.a.createElement(pi,{feature:"monitor",featureLabel:Object(Oe.__)("Downtime Monitoring","jetpack"),text:Object(Oe.__)("Connect to set up your status alerts.","jetpack")}))}}]),n}(a.Component)),Zi=(n(436),function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("textarea",tt()({},Object(je.omit)(this.props,"className"),{className:rt()(this.props.className,"dops-textarea")}),this.props.children)}}]),n}(o.a.Component));Be()(Zi,"displayName","Textarea");var Xi=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{safelist:e.props.getOptionValue("jetpack_protect_global_whitelist")?e.props.getOptionValue("jetpack_protect_global_whitelist").local:""}),Be()(Re()(e),"currentIpIsSafelisted",(function(){return!!Object(je.includes)(e.state.safelist,e.props.currentIp)})),Be()(Re()(e),"updateText",(function(t){e.currentIpIsSafelisted(),e.setState({safelist:t.target.value}),e.props.onOptionChange(t)})),Be()(Re()(e),"addToSafelist",(function(){var t=e.state.safelist+(0>=e.state.safelist.length?"":"\n")+e.props.currentIp;e.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",t),e.setState({safelist:t}),Xe.a.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})})),Be()(Re()(e),"trackOpenCard",(function(){Xe.a.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInOfflineMode("protect"),n=o.a.createElement(bn.a,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return o.a.createElement(tr,tt()({},this.props,{module:"protect",header:Object(Oe._x)("Protect","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),o.a.createElement(nr.a,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("protect"),className:"foldable-wrapper"},o.a.createElement(Ji,{onOpen:this.trackOpenCard,header:n},o.a.createElement(nr.a,{hasChild:!0,module:this.props.getModule("protect"),support:{text:Object(Oe.__)("Protects your site from traditional and distributed brute force login attacks.","jetpack"),link:Object(Ve.a)("jetpack-support-protect")}},o.a.createElement(cn,null,this.props.currentIp&&o.a.createElement("div",null,o.a.createElement("div",{className:"jp-form-label-wide"},Object(Oe.sprintf)(Object(Oe.__)("Your current IP: %s","jetpack"),this.props.currentIp)),o.a.createElement(sn.a,{disabled:!e||t||this.currentIpIsSafelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToSafelist},Object(Oe.__)("Add to Always Allowed list","jetpack"))),o.a.createElement(ln,null,o.a.createElement(un,null,Object(Oe.__)("Always allowed IP addresses","jetpack")),o.a.createElement(Zi,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.safelist})),o.a.createElement("span",{className:"jp-form-setting-explanation"},Object(Oe.__)('You may mark an IP address (or series of addresses) as "Always allowed", preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100',"jetpack")))))),!this.props.hasConnectedOwner&&!this.props.isOfflineMode&&o.a.createElement(pi,{feature:"protect",featureLabel:Object(Oe.__)("Protect","jetpack"),text:Object(Oe.__)("Connect to set up brute force attack protection.","jetpack")}))}}]),n}(a.Component)),Qi=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{jetpack_sso_match_by_email:e.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:e.props.getOptionValue("jetpack_sso_require_two_step","sso")}),Be()(Re()(e),"handleTwoStepToggleChange",(function(){e.updateOptions("jetpack_sso_require_two_step")})),Be()(Re()(e),"handleMatchByEmailToggleChange",(function(){e.updateOptions("jetpack_sso_match_by_email")})),Be()(Re()(e),"updateOptions",(function(t){e.setState(Be()({},t,!e.state[t]),e.props.updateFormStateModuleOption("sso",t))})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.getOptionValue("sso"),t=this.props.isUnavailableInOfflineMode("sso");return o.a.createElement(tr,tt()({},this.props,{hideButton:!0,module:"sso",header:Object(Oe._x)("WordPress.com login","Settings header, noun.","jetpack")}),o.a.createElement(nr.a,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("sso"),support:{text:Object(Oe.__)("Allows registered users to log in to your site with their WordPress.com accounts.","jetpack"),link:Object(Ve.a)("jetpack-support-sso")}},o.a.createElement("p",null,Object(Oe.__)("Add an extra layer of security to your website by enabling WordPress.com login and secure authentication. If you have multiple sites with this option enabled, you will be able to log in to every one of them with the same credentials.","jetpack")),o.a.createElement(bn.a,{slug:"sso",disabled:t||!this.props.hasConnectedOwner,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),o.a.createElement(cn,null,o.a.createElement(rn.a,{checked:this.state.jetpack_sso_match_by_email,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Match accounts using email addresses","jetpack"))),o.a.createElement(rn.a,{checked:this.state.jetpack_sso_require_two_step,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Require accounts to use WordPress.com Two-Step Authentication","jetpack"))))),!this.props.hasConnectedOwner&&!this.props.isOfflineMode&&o.a.createElement(pi,{feature:"sso",featureLabel:Object(Oe.__)("Secure Sign-On","jetpack"),text:Object(Oe.__)("Connect to enable WordPress.com Secure Sign-On.","jetpack")}))}}]),n}(a.Component)),ea=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"isAkismetFound",(function(){if(!e.props.isPluginActive("akismet/akismet.php"))return!1;if(e.props.searchTerm){var t=e.props.isPluginInstalled("akismet/akismet.php");return["akismet","antispam","spam","comments",t.Description,t.PluginURI].join(" ").toLowerCase().indexOf(e.props.searchTerm.toLowerCase())>-1}return!0})),e}return Pe()(n,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,rewindStatus:this.props.rewindStatus,siteRawUrl:this.props.siteRawUrl,hasConnectedOwner:this.props.hasConnectedOwner},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),i="active"===Object(je.get)(this.props.rewindStatus,["state"],!1),a=this.props.isModuleFound("vaultpress")||i,s=this.props.isModuleFound("monitor"),c=this.props.searchTerm;if(!c&&!this.props.active)return null;if(!(n||t||r||a||s))return null;var l=Object(vn.fb)(Object(je.get)(this.props.sitePlan,["product_slug"])),u=this.props.activeSitePurchases.map((function(e){return Object(vn.fb)(e.product_slug)})),p="is-personal-plan"===l,d="is-free-plan"===l&&(u.includes("is-daily-backup-plan")||u.includes("is-realtime-backup-plan")),h=p||d?o.a.createElement(Yi,tt()({},e,{vaultPressData:this.props.vaultPressData})):o.a.createElement(Vi,e);return o.a.createElement("div",null,o.a.createElement(nn.a,null),o.a.createElement(en.a,{title:c?Object(Oe.__)("Security","jetpack"):Object(Oe.__)("Your site is protected by Jetpack. You’ll be notified if anything needs attention.","jetpack"),className:"jp-settings-description"}),a&&h,s&&o.a.createElement($i,e),r&&o.a.createElement(o.a.Fragment,null,o.a.createElement(Gi,e),o.a.createElement(Rn,null)),t&&o.a.createElement(Xi,e),n&&o.a.createElement(Qi,e))}}]),n}(a.Component);Be()(ea,"displayName","SecuritySettings");var ta=Object(s.b)((function(e){return{activeSitePurchases:Object(Sn.j)(e),module:function(t){return Object(Qe.c)(e,t)},settings:Object(tn.g)(e),sitePlan:Object(Sn.p)(e),isOfflineMode:Object(qe.s)(e),isUnavailableInOfflineMode:function(t){return Object(qe.x)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)},isPluginActive:function(t){return Object(zt.d)(e,t)},isPluginInstalled:function(t){return Object(zt.e)(e,t)},vaultPressData:Object(yn.f)(e),hasConnectedOwner:Object(qe.k)(e)}}))(ea),na=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"trackClickConfigure",value:function(){Xe.a.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isUnavailableInOfflineMode("publicize"),n=this.props.isLinked,r=this.props.isOfflineMode,i=this.props.siteRawUrl,a=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||a?o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Publicize connections","Settings header","jetpack"),module:"publicize",hideButton:!0}),s&&o.a.createElement(nr.a,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"publicize"},support:{text:Object(Oe.__)("Allows you to automatically share your newest content on social media sites, including Facebook and Twitter.","jetpack"),link:Object(Ve.a)("jetpack-support-publicize")}},o.a.createElement("p",null,Object(Oe.__)("Connect your website to the social media networks you use and share your content across all your social accounts with a single click. When you publish a post, it will appear on all connected accounts.","jetpack")),o.a.createElement(bn.a,{slug:"publicize",disabled:t||!this.props.isLinked,activated:a,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Automatically share your posts to social networks","jetpack"))),!n&&!r&&o.a.createElement(pi,{feature:"publicize",featureLabel:Object(Oe.__)("Publicize","jetpack"),text:Object(Oe.__)("Connect to add your social media accounts.","jetpack")}),a&&function(){if(!t)return n&&o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:Object(Ve.a)("calypso-marketing-connections",{site:i})},Object(Oe.__)("Connect your social media accounts","jetpack"))}()):null}}]),n}(a.Component)),ra=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"trackClickConfigure",value:function(){Xe.a.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isLinked,n=this.props.siteRawUrl,r=this.props.siteAdminUrl,i=this.props.isOfflineMode,a=this.props.getOptionValue("sharedaddy");return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Sharing buttons","Settings header","jetpack"),module:"sharing",hideButton:!0}),o.a.createElement(nr.a,{disableInOfflineMode:!0,module:{module:"sharedaddy"},support:{text:Object(Oe.__)("You can customize the sharing buttons and choose which services to display.","jetpack"),link:Object(Ve.a)("jetpack-support-sharing")}},o.a.createElement("p",null,Object(Oe.__)("Add sharing buttons so visitors can share your posts and pages on social media with a couple of quick clicks.","jetpack")),o.a.createElement(bn.a,{slug:"sharedaddy",activated:a,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Add sharing buttons to your posts and pages","jetpack"))),a&&(i||!t?o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",href:r+"options-general.php?page=sharing"},Object(Oe.__)("Configure your sharing buttons","jetpack")):o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:Object(Ve.a)("calypso-marketing-sharing-buttons",{site:n})},Object(Oe.__)("Configure your sharing buttons","jetpack"))))}}]),n}(a.Component)),ia=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props.isUnavailableInOfflineMode("likes"),t=this.props.getOptionValue("likes");return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Like buttons","Settings header","jetpack"),module:"likes",hideButton:!0}),o.a.createElement(nr.a,{disableInOfflineMode:!0,module:{module:"likes"},support:{text:Object(Oe.__)("Adds like buttons to your content so that visitors can show their appreciation or enjoyment.","jetpack"),link:Object(Ve.a)("jetpack-support-likes")}},o.a.createElement("p",null,Object(Oe.__)("The Like button is a way for people on WordPress.com to show their appreciation for your content.","jetpack")),o.a.createElement(bn.a,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Add Like buttons to your posts and pages","jetpack"))))}}]),n}(a.Component)),aa=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?o.a.createElement("div",null,o.a.createElement(nn.a,null),o.a.createElement(en.a,{title:this.props.searchTerm?Object(Oe.__)("Sharing","jetpack"):Object(Oe.__)("Share your content to social media, reaching new audiences and increasing engagement.","jetpack"),className:"jp-settings-description"}),t&&o.a.createElement(na,e),n&&o.a.createElement(ra,e),r&&o.a.createElement(ia,e)):null}}]),n}(a.Component),oa=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},settings:Object(tn.g)(e),isOfflineMode:Object(qe.s)(e),isUnavailableInOfflineMode:function(t){return Object(qe.x)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)},isLinked:Object(qe.n)(e),connectUrl:Object(qe.f)(e),siteRawUrl:Object(Rt.p)(e),siteAdminUrl:Object(Rt.n)(e),userCanManageModules:Object(Rt.K)(e)}}))(aa),sa=function(e){return function(t){return t.length<=e&&t}},ca=function(e,t){return function(n){var r=n.slice(0,t),i=r.lastIndexOf(" ");return i>e&&i<t&&r.slice(0,i).concat("…")}},la=function(e){return function(t){return t.slice(0,e).concat("…")}},ua=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return Object(je.find)(t,(function(t){return!1!==t(e)}))(e)}},pa=function(e){return e?e.replace(/(<([^>]+)>)/gi,""):""},da=(n(437),160),ha=ua(sa(63),ca(23,73),la(63)),fa=ua(sa(da),ca(80,170),la(da));function ma(e){var t=e.description,n=e.title,r=e.url;return o.a.createElement("div",{className:"search-preview"},o.a.createElement("div",{className:"search-preview__display"},o.a.createElement("div",{className:"search-preview__url"},function(e){var t=e.replace(/^[^/]+[/]*/,"").split("/").join(" › ");return ua(sa(68),la(68))(t)}(r)," ▾"),o.a.createElement("div",{className:"search-preview__title"},ha(n)),o.a.createElement("div",{className:"search-preview__description"},fa(pa(t)))))}ma.propTypes={title:u.a.string,url:u.a.string,description:u.a.string},ma.defaultProps={title:"",url:"",description:""};var ga=n(108),ba=n.n(ga),va=n(109),_a=n.n(va),ya=n(110),Ea=n.n(ya),wa=n(152),ka=n.n(wa),ja=(n(441),function(e){return e&&e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,"")}),Oa=ua(sa(80),la(80)),Ca=ua(sa(200),la(200)),Sa=function(e){Ea()(n,e);var t=ka()(n);function n(){return ba()(this,n),t.apply(this,arguments)}return _a()(n,[{key:"render",value:function(){var e=this.props,t=e.url,n=e.type,r=e.title,i=e.description,a=e.image,s=e.author;return o.a.createElement("div",{className:"facebook-preview facebook-preview__".concat(n)},o.a.createElement("div",{className:"facebook-preview__content"},o.a.createElement("div",{className:"facebook-preview__image"},a&&o.a.createElement("img",{alt:"Facebook Preview Thumbnail",src:a})),o.a.createElement("div",{className:"facebook-preview__body"},o.a.createElement("div",{className:"facebook-preview__url"},Object(je.compact)([ja(t),s]).join(" | ")),o.a.createElement("div",{className:"facebook-preview__title"},Oa(r||"")),o.a.createElement("div",{className:"facebook-preview__description"},Ca(pa(i))))))}}]),n}(a.PureComponent);Sa.propTypes={url:u.a.string,type:u.a.string,title:u.a.string,description:u.a.string,image:u.a.string,author:u.a.string};var Ta=Sa,Aa=n(228),Ma=n.n(Aa),Na=n(225),xa=n.n(Na),Pa=n(403),Ia=n.n(Pa),__=(n(398),Oe.__),Ra=ua(sa(200),la(200)),Da=function(e){Ea()(n,e);var t=ka()(n);function n(){return ba()(this,n),t.apply(this,arguments)}return _a()(n,[{key:"renderSidebar",value:function(e,t){return o.a.createElement("div",{className:"twitter-preview__sidebar"},o.a.createElement("div",{className:"twitter-preview__profile-image"},o.a.createElement("img",{alt:__("Twitter profile image"),src:e})),!t&&o.a.createElement("div",{className:"twitter-preview__connector"}))}},{key:"renderHeader",value:function(e,t,n){return o.a.createElement("div",{className:"twitter-preview__header"},o.a.createElement("span",{className:"twitter-preview__name"},e),o.a.createElement("span",{className:"twitter-preview__screen-name"},t),o.a.createElement("span",{className:"twitter-preview__date"},Ia()(n).format("MMM D")))}},{key:"renderText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.url||"",i=e.endsWith(r)?e.substr(0,e.lastIndexOf(r)):e,a=t.reduce((function(e,t){return e.replace(new RegExp("\\("+t+"\\)","g"),'(<a href="'.concat(t,'">').concat(t,"</a>)"))}),pa(i).replace(new RegExp("\\n","g"),"<br/>"));return o.a.createElement("div",{className:"twitter-preview__text",dangerouslySetInnerHTML:{__html:a}})}},{key:"renderMedia",value:function(e){if(e){var t=e.filter((function(e){return e.type.startsWith("image/")||e.type.startsWith("video/")})).filter((function(e,t,n){return 0===t||!n[0].type.startsWith("video/")&&"image/gif"!==n[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type)})).slice(0,4),n=t.length>0&&t[0].type.startsWith("video/"),r=rt()(["twitter-preview__media","twitter-preview__media-children-"+t.length]);if(0!==t.length)return o.a.createElement("div",{className:r},n&&t.map((function(e,t){return o.a.createElement("video",{key:"twitter-preview__media-item-".concat(t),controls:!0},o.a.createElement("source",{src:e.url,type:e.type})," ")})),!n&&t.map((function(e,t){return o.a.createElement("img",{key:"twitter-preview__media-item-".concat(t),alt:e.alt,src:e.url})})))}}},{key:"renderQuoteTweet",value:function(e){if(e)return o.a.createElement("div",{className:"twitter-preview__quote-tweet"},o.a.createElement(pr.SandBox,{html:'<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="'.concat(e,'"></a></blockquote>'),scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet",onFocus:this.hideOverlay}),o.a.createElement("div",{className:"twitter-preview__quote-tweet-overlay"}))}},{key:"renderCard",value:function(e){if(e){var t=e.description,n=e.image,r=e.title,i=e.type,a=e.url,s=rt()("twitter-preview__card-".concat(i),{"twitter-preview__card-has-image":!!n});return o.a.createElement("div",{className:"twitter-preview__card"},o.a.createElement("div",{className:s},n&&o.a.createElement("img",{className:"twitter-preview__card-image",src:n,alt:""}),o.a.createElement("div",{className:"twitter-preview__card-body"},o.a.createElement("div",{className:"twitter-preview__card-title"},r),o.a.createElement("div",{className:"twitter-preview__card-description"},Ra(pa(t))),o.a.createElement("div",{className:"twitter-preview__card-url"},o.a.createElement("svg",{viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M11.96 14.945c-.067 0-.136-.01-.203-.027-1.13-.318-2.097-.986-2.795-1.932-.832-1.125-1.176-2.508-.968-3.893s.942-2.605 2.068-3.438l3.53-2.608c2.322-1.716 5.61-1.224 7.33 1.1.83 1.127 1.175 2.51.967 3.895s-.943 2.605-2.07 3.438l-1.48 1.094c-.333.246-.804.175-1.05-.158-.246-.334-.176-.804.158-1.05l1.48-1.095c.803-.592 1.327-1.463 1.476-2.45.148-.988-.098-1.975-.69-2.778-1.225-1.656-3.572-2.01-5.23-.784l-3.53 2.608c-.802.593-1.326 1.464-1.475 2.45-.15.99.097 1.975.69 2.778.498.675 1.187 1.15 1.992 1.377.4.114.633.528.52.928-.092.33-.394.547-.722.547z"}),o.a.createElement("path",{d:"M7.27 22.054c-1.61 0-3.197-.735-4.225-2.125-.832-1.127-1.176-2.51-.968-3.894s.943-2.605 2.07-3.438l1.478-1.094c.334-.245.805-.175 1.05.158s.177.804-.157 1.05l-1.48 1.095c-.803.593-1.326 1.464-1.475 2.45-.148.99.097 1.975.69 2.778 1.225 1.657 3.57 2.01 5.23.785l3.528-2.608c1.658-1.225 2.01-3.57.785-5.23-.498-.674-1.187-1.15-1.992-1.376-.4-.113-.633-.527-.52-.927.112-.4.528-.63.926-.522 1.13.318 2.096.986 2.794 1.932 1.717 2.324 1.224 5.612-1.1 7.33l-3.53 2.608c-.933.693-2.023 1.026-3.105 1.026z"}))),function(e){return e.replace(/^[^/]+[/]*(www\.)?/,"").replace(/\/.*$/,"")}(a||"")))))}}},{key:"renderFooter",value:function(){return o.a.createElement("div",{className:"twitter-preview__footer"},o.a.createElement("span",{className:"twitter-preview__icon-replies"},o.a.createElement("svg",{viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M14.046 2.242l-4.148-.01h-.002c-4.374 0-7.8 3.427-7.8 7.802 0 4.098 3.186 7.206 7.465 7.37v3.828c0 .108.044.286.12.403.142.225.384.347.632.347.138 0 .277-.038.402-.118.264-.168 6.473-4.14 8.088-5.506 1.902-1.61 3.04-3.97 3.043-6.312v-.017c-.006-4.367-3.43-7.787-7.8-7.788zm3.787 12.972c-1.134.96-4.862 3.405-6.772 4.643V16.67c0-.414-.335-.75-.75-.75h-.396c-3.66 0-6.318-2.476-6.318-5.886 0-3.534 2.768-6.302 6.3-6.302l4.147.01h.002c3.532 0 6.3 2.766 6.302 6.296-.003 1.91-.942 3.844-2.514 5.176z"}))),o.a.createElement("span",{className:"twitter-preview__icon-retweets"},o.a.createElement("svg",{viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M23.77 15.67c-.292-.293-.767-.293-1.06 0l-2.22 2.22V7.65c0-2.068-1.683-3.75-3.75-3.75h-5.85c-.414 0-.75.336-.75.75s.336.75.75.75h5.85c1.24 0 2.25 1.01 2.25 2.25v10.24l-2.22-2.22c-.293-.293-.768-.293-1.06 0s-.294.768 0 1.06l3.5 3.5c.145.147.337.22.53.22s.383-.072.53-.22l3.5-3.5c.294-.292.294-.767 0-1.06zm-10.66 3.28H7.26c-1.24 0-2.25-1.01-2.25-2.25V6.46l2.22 2.22c.148.147.34.22.532.22s.384-.073.53-.22c.293-.293.293-.768 0-1.06l-3.5-3.5c-.293-.294-.768-.294-1.06 0l-3.5 3.5c-.294.292-.294.767 0 1.06s.767.293 1.06 0l2.22-2.22V16.7c0 2.068 1.683 3.75 3.75 3.75h5.85c.414 0 .75-.336.75-.75s-.337-.75-.75-.75z"}))),o.a.createElement("span",{className:"twitter-preview__icon-likes"},o.a.createElement("svg",{viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12zM7.354 4.225c-2.08 0-3.903 1.988-3.903 4.255 0 5.74 7.034 11.596 8.55 11.658 1.518-.062 8.55-5.917 8.55-11.658 0-2.267-1.823-4.255-3.903-4.255-2.528 0-3.94 2.936-3.952 2.965-.23.562-1.156.562-1.387 0-.014-.03-1.425-2.965-3.954-2.965z"}))),o.a.createElement("span",{className:"twitter-preview__icon-share"},o.a.createElement("svg",{viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M17.53 7.47l-5-5c-.293-.293-.768-.293-1.06 0l-5 5c-.294.293-.294.768 0 1.06s.767.294 1.06 0l3.72-3.72V15c0 .414.336.75.75.75s.75-.336.75-.75V4.81l3.72 3.72c.146.147.338.22.53.22s.384-.072.53-.22c.293-.293.293-.767 0-1.06z"}),o.a.createElement("path",{d:"M19.708 21.944H4.292C3.028 21.944 2 20.916 2 19.652V14c0-.414.336-.75.75-.75s.75.336.75.75v5.652c0 .437.355.792.792.792h15.416c.437 0 .792-.355.792-.792V14c0-.414.336-.75.75-.75s.75.336.75.75v5.652c0 1.264-1.028 2.292-2.292 2.292z"}))))}},{key:"render",value:function(){var e=this.props,t=e.isLast,n=e.profileImage,r=e.name,i=e.screenName,a=e.date,s=e.text,c=e.media,l=e.tweet,u=e.urls,p=e.card;return o.a.createElement("div",{className:"twitter-preview__container"},this.renderSidebar(n,t),o.a.createElement("div",{className:"twitter-preview__main"},this.renderHeader(r,i,a),o.a.createElement("div",{className:"twitter-preview__content"},this.renderText(s,u,p),this.renderMedia(c),this.renderQuoteTweet(l),this.renderCard(p)),this.renderFooter()))}}]),n}(a.PureComponent);Da.propTypes={tweets:u.a.array,isLast:u.a.bool,profileImage:u.a.string,name:u.a.string,screenName:u.a.string,date:u.a.number,text:u.a.string,media:u.a.array,tweet:u.a.string,urls:u.a.array,card:u.a.object};var Ua=function(e){Ea()(n,e);var t=ka()(n);function n(){return ba()(this,n),t.apply(this,arguments)}return _a()(n,[{key:"render",value:function(){var e=this.props.tweets||[{text:"",media:[],card:xa()(xa()({},this.props),{},{type:"large_image_summary"===this.props.type?"summary_large_image":this.props.type}),date:Date.now(),name:"Account Name",profileImage:"https://abs.twimg.com/sticky/default_profile_images/default_profile_bigger.png",screenName:"@account"}];return o.a.createElement("div",{className:"twitter-preview"},e&&e.map((function(t,n){return o.a.createElement(Da,Ma()({key:"twitter-preview__tweet-".concat(n),isLast:n+1===e.length},t))})))}}]),n}(a.PureComponent);Ua.propTypes={tweets:u.a.array};var La,Fa=Ua,za=n(229),Ba=n.n(za),Va={pageTypes:[{name:"front_page",label:Object(Oe.__)("Front Page","jetpack")},{name:"posts",label:Object(Oe.__)("Posts","jetpack")},{name:"pages",label:Object(Oe.__)("Pages","jetpack")},{name:"groups",label:Object(Oe.__)("Tags","jetpack")},{name:"archives",label:Object(Oe.__)("Archives","jetpack")}],insertableTokens:{site_name:Object(Oe.__)("Site Title","jetpack"),tagline:Object(Oe.__)("Tagline","jetpack"),post_title:Object(Oe.__)("Post Title","jetpack"),page_title:Object(Oe.__)("Page Title","jetpack"),group_title:Object(Oe.__)("Tag or Category Name","jetpack"),date:Object(Oe.__)("Date","jetpack")},tokensAvailablePerPageType:{front_page:["site_name","tagline"],posts:["site_name","tagline","post_title"],pages:["site_name","tagline","page_title"],groups:["site_name","tagline","group_title"],archives:["site_name","tagline","date"]}},Ha=function(e){var t=e.pageType,n=e.customSeoTitleInputRef,r=e.handleCustomSeoTitleInput,i=e.token,s=Object(a.useCallback)((function(){var e=n.current;e.focus();var a="[".concat(i,"]"),o=e.refs.textField.selectionStart,s=e.props.value.substring(0,o),c=e.props.value.substring(o,e.props.value.length);r(t,s+a+c)}),[t,n,r,i]);return o.a.createElement(sn.a,{className:"jp-seo-custom-titles-input-button",compact:!0,onClick:s},Va.insertableTokens[i])},Ka=function(e){var t=e.pageType,n=e.customSeoTitleInputRef,r=e.handleCustomSeoTitleInput,i=e.value,s=e.siteData;return o.a.createElement("div",{className:"jp-seo-custom-titles-input-container-".concat(t.name),key:t.name},o.a.createElement("div",{className:"jp-seo-custom-titles-input-controls"},o.a.createElement(ln,{className:"jp-seo-custom-titles-input-label",htmlFor:"jp-seo-custom-titles-input-".concat(t.name)},o.a.createElement("span",{className:"jp-form-label"},t.label)),o.a.createElement("div",null,function(e,t,n){return Va.tokensAvailablePerPageType[e.name].map((function(r){return o.a.createElement(Ha,{pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:n,token:r})}))}(t,n,r))),o.a.createElement(ir,{id:"jp-seo-custom-titles-input-".concat(t.name),className:"jp-seo-custom-titles-input",value:i,onChange:Object(a.useCallback)((function(e){return r(t,e.target.value)}),[r,t]),ref:n}),o.a.createElement("div",{className:"jp-seo-custom-titles-input-preview"},function(e,t,n){return Va.tokensAvailablePerPageType[e.name].forEach((function(e){switch(e){case"site_name":t=t.replace(/\[site_name\]/g,n.title);break;case"tagline":t=t.replace(/\[tagline\]/g,n.tagline);break;case"post_title":t=t.replace(/\[post_title\]/g,Object(Oe.__)("Example Title","jetpack"));break;case"page_title":t=t.replace(/\[page_title\]/g,Object(Oe.__)("Example Title","jetpack"));break;case"group_title":t=t.replace(/\[group_title\]/g,Object(Oe.__)("Tag","jetpack"));break;case"date":t=t.replace(/\[date\]/g,Object(dr.dateI18n)("F Y",Date.now()))}})),Object(Oe.sprintf)(Object(Oe.__)("Preview: %s","jetpack"),t)}(t,i,s)))},Ja=function(e){var t=Object(a.useState)({front_page:o.a.createRef(),posts:o.a.createRef(),pages:o.a.createRef(),groups:o.a.createRef(),archives:o.a.createRef()}),n=lr()(t,1)[0],r=Va.pageTypes.reduce((function(t,n){var r;return t[n.name]=(r=e.customSeoTitles[n.name],Array.isArray(r)?r.reduce((function(e,t){return e+("token"===t.type?"[".concat(t.value,"]"):t.value)}),""):""),t}),{}),i=e.updateCustomSeoTitleInputState,s=Object(a.useCallback)((function(e,t){r[e.name]=t;var n=Object.keys(r).reduce((function(e,t){return e[t]=function(e,t){return e.split(/(\[(?:site_name|tagline|post_title|page_title|group_title|date)\])/).filter((function(e){if(e)return e})).map((function(e){var n=null;return Object.keys(Va.insertableTokens).map((function(t){e==="[".concat(t,"]")&&(n=t)})),n&&Va.tokensAvailablePerPageType[t].includes(n)?{type:"token",value:n}:{type:"string",value:e}}))}(r[t],t),e}),{});i(n)}),[r,i]);return o.a.createElement("div",{className:"jp-seo-custom-titles"},Va.pageTypes.map((function(t){return o.a.createElement(Ka,{pageType:t,value:r[t.name],handleCustomSeoTitleInput:s,customSeoTitleInputRef:n[t.name],siteData:e.siteData})})))},qa=[{name:"Yoast SEO",slug:"wordpress-seo/wp-seo.php"},{name:"Yoast SEO Premium",slug:"wordpress-seo-premium/wp-seo-premium.php"},{name:"All In One SEO Pack",slug:"all-in-one-seo-pack/all_in_one_seo_pack.php"},{name:"All in One SEO Pack Pro",slug:"all-in-one-seo-pack-pro/all_in_one_seo_pack.php"}],Wa=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"constants",{frontPageMetaMaxLength:300,frontPageMetaSuggestedLength:159,moduleOptionsArray:["advanced_seo_front_page_description","advanced_seo_title_formats"],siteIconPreviewSize:512}),Be()(Re()(e),"SocialPreviewGoogle",(function(e){return o.a.createElement(ma,{title:e.title,url:e.url,description:e.frontPageMetaDescription})})),Be()(Re()(e),"SocialPreviewFacebook",(function(e){return o.a.createElement(Ta,{title:e.title,url:e.url,type:"website",description:e.frontPageMetaDescription,image:e.image})})),Be()(Re()(e),"SocialPreviewTwitter",(function(e){return o.a.createElement(Fa,{title:e.title,url:e.url,type:"summary",description:e.frontPageMetaDescription,image:e.image})})),Be()(Re()(e),"updateCustomSeoTitleInputState",(function(t){e.props.updateFormStateOptionValue("advanced_seo_title_formats",t)})),Be()(Re()(e),"saveButton",(function(t){var n=e.props.isSavingAnyOption(e.constants.moduleOptionsArray);return o.a.createElement(sn.a,{primary:!0,compact:!0,type:"submit",disabled:n||!t.isDirty()},n?Object(Oe._x)("Saving…","Button caption","jetpack"):Object(Oe._x)("Save settings","Button caption","jetpack"))})),e}return Pe()(n,[{key:"render",value:function(){var e,t=this,n=this.props.isOfflineMode,r=this.props.getModule("seo-tools"),i=this.props.getOptionValue(r.module),a=this.props.getOptionValue("advanced_seo_title_formats"),s=this.props.getOptionValue("advanced_seo_front_page_description"),c={title:this.props.siteData.name||"",tagline:this.props.siteData.description||"",url:this.props.siteData.URL||"",frontPageMetaDescription:s||(this.props.siteData.description||""),image:null!==(e=this.props.siteData.icon)&&void 0!==e&&e.img?"".concat(this.props.siteData.icon.img,"?s=").concat(this.constants.siteIconPreviewSize):""},l=qa.reduce((function(e,n){return Object(zt.d)(t.props.state,n.slug)&&e.push(n),e}),[]),u=l.length>0,p=rt()({"jp-seo-front-page-description-count":!0,"jp-seo-front-page-description-count-max":s.length>=this.constants.frontPageMetaMaxLength,"jp-seo-front-page-description-count-warn":s.length>this.constants.frontPageMetaSuggestedLength&&s.length<this.constants.frontPageMetaMaxLength});return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Search engine optimization","Settings header","jetpack"),feature:"seo-tools-jetpack",module:r.module,saveDisabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray),hideButton:u}),o.a.createElement(nr.a,{disableInOfflineMode:!0,module:{module:"seo-tools"},support:{text:Object(Oe.__)("Allows you to optimize your site and its content for better results in search engines.","jetpack"),link:Object(Ve.a)("jetpack-support-seo-tools")}},u&&o.a.createElement(Un,{showDismiss:!1},Object(Oe.sprintf)(Object(Oe.__)("Your SEO settings are managed by the following plugin: %s","jetpack"),l[0].name)),o.a.createElement("p",null,Object(Oe.__)("Take control of the way search engines represent your site. With Jetpack’s SEO tools you can preview how your content will look on popular search engines and change items like your site name and tagline in seconds.","jetpack")),o.a.createElement(bn.a,{slug:"seo-tools",activated:i,toggling:this.props.isSavingAnyOption(r.module),disabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray)||u,toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Customize your SEO settings","jetpack"))),i&&!n&&!Object(zt.c)(this.props.state)&&!u&&o.a.createElement("div",null,o.a.createElement(Ji,{header:Object(Oe.__)("Expand to customize the page title structures of your site.","jetpack"),clickableHeader:!0,className:"jp-seo-custom-titles-card"},o.a.createElement(nr.a,null,o.a.createElement("p",null,Object(Oe.__)("You can set the structure of page titles for different sections of your site. Doing this will change the way your site title is displayed in search engines, social media sites, and browser tabs.","jetpack")),o.a.createElement(cn,null,o.a.createElement(Ja,{customSeoTitles:a,updateCustomSeoTitleInputState:this.updateCustomSeoTitleInputState,siteData:c})),o.a.createElement("div",{className:"jp-seo-custom-titles-save-button"},this.saveButton(this.props)))),o.a.createElement(Ji,{header:Object(Oe.__)("Expand to edit your front page meta description.","jetpack"),clickableHeader:!0,className:"jp-seo-front-page-description-card"},o.a.createElement(nr.a,null,o.a.createElement("p",{style:{clear:"both"}},Object(Oe.__)("Craft a description of your Website: up to 160 characters that will be used in search engine results for your front page, and when your website is shared on social media sites.","jetpack")),o.a.createElement(ln,{htmlFor:"jp-seo-front-page-description"},o.a.createElement("span",{className:"jp-form-label-wide"},Object(Oe.__)("Front Page Meta Description","jetpack"))),o.a.createElement("div",{className:"jp-seo-front-page-description-container"},o.a.createElement(hn,{name:"advanced_seo_front_page_description",id:"jp-seo-front-page-description",className:"jp-form-textarea-wide",maxLength:this.constants.frontPageMetaMaxLength,value:s,onChange:this.props.onOptionChange}),o.a.createElement("div",{className:p},Object(Oe.sprintf)(Object(Oe._n)("%d character","%d characters",s.length,"jetpack"),s.length),s.length>=this.constants.frontPageMetaMaxLength&&" - "+Object(Oe.__)("Maximum characters reached.","jetpack"))),o.a.createElement("div",{className:"jp-seo-front-page-description-save-button"},this.saveButton(this.props)))),o.a.createElement(Ji,{header:Object(Oe.__)("Expand to preview how the SEO settings will look for your homepage on Google, Facebook, and Twitter.","jetpack"),clickableHeader:!0,className:"jp-seo-social-previews"},o.a.createElement("div",{className:"jp-seo-social-previews-container"},o.a.createElement(Ba.a,{icon:"google",size:24}),o.a.createElement("span",{className:"jp-seo-social-previews-label"},Object(Oe.__)("Google search","jetpack"))),this.SocialPreviewGoogle(c),o.a.createElement("hr",null),o.a.createElement("div",{className:"jp-seo-social-previews-container"},o.a.createElement(Ba.a,{icon:"facebook",size:24}),o.a.createElement("span",{className:"jp-seo-social-previews-label"},Object(Oe.__)("Facebook","jetpack"))),this.SocialPreviewFacebook(c),o.a.createElement("hr",null),o.a.createElement("div",{className:"jp-seo-social-previews-container"},o.a.createElement(Ba.a,{icon:"twitter-alt",size:24}),o.a.createElement("span",{className:"jp-seo-social-previews-label"},Object(Oe.__)("Twitter","jetpack"))),this.SocialPreviewTwitter(c))))}}]),n}(a.Component)),Ga=Object(s.b)((function(e){return{siteData:e.jetpack.siteData.data,state:e}}))(Wa),Ya=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"trackConfigureClick",value:function(){Xe.a.tracks.recordJetpackClick("configure-ga")}},{key:"render",value:function(){return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Google Analytics","Settings header","jetpack"),feature:vn.a,hideButton:!0}),o.a.createElement(nr.a,{disableInOfflineMode:!0,module:{module:"google-analytics"},support:{text:Object(Oe.__)("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions.","jetpack"),link:Object(Ve.a)("jetpack-support-google-analytics")}},Object(Zn.createInterpolateElement)(Object(Oe.__)("Google Analytics is a free service that complements our <a>built-in stats</a> with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("calypso-stats-day",{site:this.props.siteRawUrl})})})),!this.props.isUnavailableInOfflineMode("google-analytics")&&o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},Object(Oe.__)("Configure your Google Analytics settings","jetpack")))}}]),n}(a.Component)),$a=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"updateOptions",(function(t){e.props.updateFormStateModuleOption("wordads",t)})),Be()(Re()(e),"trackConfigureClick",(function(){Xe.a.tracks.recordJetpackClick("view-earnings")})),Be()(Re()(e),"trackConfigureWidgetClick",(function(){Xe.a.tracks.recordJetpackClick("place_ad_widget")})),Be()(Re()(e),"handleChange",(function(t){return function(){return e.updateOptions(t)}})),e}return Pe()(n,[{key:"renderAdsTxtSection",value:function(){var e=this.props,t=e.getOptionValue,n=e.isUnavailableInOfflineMode,r=t("wordads_custom_adstxt_enabled","wordads"),i=t("wordads_custom_adstxt","wordads"),a=t("wordads"),s=n("wordads");return o.a.createElement(nr.a,{hasChild:!0,support:{text:Object(Oe.__)("Ads.txt (Authorized Digital Sellers) is a mechanism that enables content owners to declare who is authorized to sell their ad inventory. It’s the formal list of advertising partners you support as a publisher.","jetpack"),link:"https://jetpack.com/support/ads/"}},o.a.createElement(rn.a,{checked:r,disabled:!a||s||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt_enabled"]),onChange:this.handleChange("wordads_custom_adstxt_enabled")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Customize your ads.txt file","jetpack"))),r&&o.a.createElement(cn,null,o.a.createElement("br",null),o.a.createElement("p",null,a&&Object(Zn.createInterpolateElement)(Object(Oe.__)("Jetpack Ads automatically generates a custom <link1>ads.txt</link1> tailored for your site. If you need to add additional entries for other networks please add them in the space below, one per line. <link2>Check here for more details</link2>.","jetpack"),{link1:o.a.createElement("a",{href:"/ads.txt",target:"_blank",rel:"noopener noreferrer"}),link2:o.a.createElement("a",{href:Object(Ve.a)("jetpack-how-jetpack-ads-members-can-increase-their-earnings-with-ads-txt"),target:"_blank",rel:"noopener noreferrer"})}),!a&&Object(Oe.__)("When ads are enabled, Jetpack automatically generates a custom ads.txt tailored for your site.","jetpack")),o.a.createElement(Zi,{name:"wordads_custom_adstxt",value:i,disabled:!a||s||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt"]),onChange:this.props.onOptionChange})))}},{key:"render",value:function(){var e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInOfflineMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),r=this.props.getOptionValue("wordads_second_belowpost","wordads"),i=this.props.getOptionValue("wordads_display_front_page","wordads"),a=this.props.getOptionValue("wordads_display_post","wordads"),s=this.props.getOptionValue("wordads_display_page","wordads"),c=this.props.getOptionValue("wordads_display_archive","wordads"),l=this.props.getOptionValue("wordads_ccpa_enabled","wordads"),u=this.props.getOptionValue("wordads_ccpa_privacy_policy_url","wordads"),p=-1!==this.props.siteRawUrl.indexOf("::");return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Ads","Ads header","jetpack"),feature:vn.h,saveDisabled:this.props.isSavingAnyOption(["wordads_custom_adstxt"])}),o.a.createElement(nr.a,{disableInOfflineMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:Object(Oe.__)("Displays high-quality ads on your site that allow you to earn income.","jetpack"),link:Object(Ve.a)("jetpack-support-ads")}},o.a.createElement("p",null,Object(Oe.__)("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings.","jetpack"),o.a.createElement("br",null),o.a.createElement("small",{className:"jp-form-setting-explanation"},Object(Zn.createInterpolateElement)(Object(Oe.__)("By activating ads, you agree to the Automattic Ads <link>Terms of Service</link>.","jetpack"),{link:o.a.createElement("a",{href:Object(Ve.a)("wpcom-automattic-ads-tos"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}))),o.a.createElement(bn.a,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable ads and display an ad below each post","jetpack"))),o.a.createElement(cn,null,o.a.createElement(un,null,Object(Oe.__)("Display ads below posts on","jetpack")),o.a.createElement(rn.a,{checked:i,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Front page","jetpack"))),o.a.createElement(rn.a,{checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:this.handleChange("wordads_display_post")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Posts","jetpack"))),o.a.createElement(rn.a,{checked:s,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:this.handleChange("wordads_display_page")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Pages","jetpack"))),o.a.createElement(rn.a,{checked:c,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Archives","jetpack")))),o.a.createElement(cn,null,o.a.createElement(un,null,Object(Oe.__)("Additional ad placements","jetpack")),o.a.createElement(rn.a,{checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:this.handleChange("enable_header_ad")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Top of each page","jetpack"))),o.a.createElement(rn.a,{checked:r,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Second ad below post","jetpack"))),o.a.createElement("small",{className:"jp-form-setting-explanation"},e&&Object(Zn.createInterpolateElement)(Object(Oe.__)("You can place additional ads using the Ad widget. <link>Try it out!</link>","jetpack"),{link:o.a.createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})})))),o.a.createElement(nr.a,{hasChild:!0,support:{text:Object(Oe.__)("Enables a targeted advertising opt-out link for California consumers, as required by the California Consumer Privacy Act (CCPA).","jetpack"),link:this.props.isAtomicSite?Object(Ve.a)("wpcom-support-ccpa"):Object(Ve.a)("jetpack-support-ads")}},o.a.createElement(rn.a,{checked:l,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_ccpa_enabled"]),onChange:this.handleChange("wordads_ccpa_enabled")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enable targeted advertising to California site visitors (CCPA)","jetpack"))),l&&o.a.createElement(cn,null,o.a.createElement("p",null,o.a.createElement("small",{className:"jp-form-setting-explanation"},Object(Zn.createInterpolateElement)(Object(Oe.__)("For more information about the California Consumer Privacy Act (CCPA) <br/>and how it pertains to your site, please consult our <link>CCPA guide for site owners</link>.","jetpack"),{br:o.a.createElement("br",null),link:o.a.createElement(Ci.a,{icon:!0,href:this.props.isAtomicSite?Object(Ve.a)("wpcom-support-ccpa"):Object(Ve.a)("jetpack-support-ads"),target:"_blank",rel:"noopener noreferrer"})}))),o.a.createElement("p",null,o.a.createElement(un,null,Object(Oe.__)("Do Not Sell Link","jetpack")),Object(Zn.createInterpolateElement)(Object(Oe.__)('CCPA requires that you place a "Do Not Sell My Personal Information" link on every page of your site where targeted advertising will appear. <br/>You can use the <widgetLink>Do Not Sell Link (CCPA) Widget</widgetLink>, or the <code>[ccpa-do-not-sell-link]</code> shortcode to automatically place this link on your site. Note: the link will always display to logged in administrators regardless of geolocation.',"jetpack"),{br:o.a.createElement("br",null),code:o.a.createElement("code",null),widgetLink:o.a.createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}),o.a.createElement("span",{className:"jp-form-setting-explanation"},Object(Oe.__)("Failure to add this link will result in non-compliance with CCPA.","jetpack")))),l&&o.a.createElement(cn,null,o.a.createElement(un,null,Object(Oe.__)("Privacy Policy URL","jetpack")),o.a.createElement(ir,{name:"wordads_ccpa_privacy_policy_url",placeholder:"https://",value:u,disabled:!e||t||!l||this.props.isSavingAnyOption(["wordads","wordads_ccpa_privacy_policy_url"]),onChange:this.props.onOptionChange}),o.a.createElement("span",{className:"jp-form-setting-explanation"},Object(Oe.__)("Adds a link to your privacy policy to the bottom of the CCPA notice popup (optional).","jetpack")))),!p&&this.renderAdsTxtSection(),!t&&e&&o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},Object(Oe.__)("View your earnings","jetpack")))}}]),n}(o.a.Component)),Za=function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;Ne()(this,n),r=t.call(this,e),Be()(Re()(r),"updateOptions",(function(e,t){var n=r.props.getOptionValue(t,"stats"),i=!1;r.state["".concat(t,"_").concat(e)]?Object(je.includes)(n,e)&&(n=Object(je.filter)(n,(function(t){return t!==e}))):Object(je.includes)(n,e)||(n.push(e),i=!0),r.setState(Be()({},"".concat(t,"_").concat(e),!r.state["".concat(t,"_").concat(e)]),(function(){r.props.updateOptions(Be()({},t,n))})),Xe.a.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:i?"on":"off"})})),Be()(Re()(r),"activateStats",(function(){r.props.updateOptions({stats:!0})})),Be()(Re()(r),"trackOpenCard",(function(){Xe.a.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})})),Be()(Re()(r),"handleRoleToggleChange",(function(e,t){return function(){return r.updateOptions(e,t)}}));var i=e.getOptionValue("count_roles","stats"),a=e.getOptionValue("roles","stats");return r.state={count_roles:i,roles:a,count_roles_administrator:Object(je.includes)(i,"administrator",!1),count_roles_editor:Object(je.includes)(i,"editor",!1),count_roles_author:Object(je.includes)(i,"author",!1),count_roles_contributor:Object(je.includes)(i,"contributor",!1),count_roles_subscriber:Object(je.includes)(i,"subscriber",!1),roles_administrator:!0,roles_editor:Object(je.includes)(a,"editor",!1),roles_author:Object(je.includes)(a,"author",!1),roles_contributor:Object(je.includes)(a,"contributor",!1),roles_subscriber:Object(je.includes)(a,"subscriber",!1)},r}return Pe()(n,[{key:"handleStatsOptionToggle",value:function(e){var t=this;return function(){return t.props.updateFormStateModuleOption("stats",e)}}},{key:"render",value:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInOfflineMode("stats"),i=this.props.getSiteRoles();return"inactive"===this.props.getModuleOverride("stats")?o.a.createElement(Qn,{moduleName:t.name}):n?o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Site stats","Settings header","jetpack"),hideButton:!0,module:"site-stats"}),o.a.createElement(Ji,{onOpen:this.trackOpenCard,header:Object(Oe.__)("Expand to update settings for how visits are counted and manage who can view this information.","jetpack"),clickableHeader:!0,className:rt()("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},o.a.createElement(nr.a,{disableInOfflineMode:!0,module:t,support:{text:Object(Oe.__)("Displays information on your site activity, including visitors and popular posts or pages.","jetpack"),link:Object(Ve.a)("jetpack-support-wordpress-com-stats")}},o.a.createElement(cn,null,o.a.createElement(rn.a,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),onChange:this.handleStatsOptionToggle("admin_bar")},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Include a small chart in your admin bar with a 48-hour traffic snapshot","jetpack")))),o.a.createElement(cn,null,o.a.createElement(un,null,Object(Oe.__)("Count logged in page views from","jetpack")),Object.keys(i).map((function(t){return o.a.createElement(rn.a,{checked:e.state["count_roles_".concat(t)],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:e.handleRoleToggleChange(t,"count_roles"),key:"count_roles-".concat(t)},o.a.createElement("span",{className:"jp-form-toggle-explanation"},i[t].name))}))),o.a.createElement(cn,null,o.a.createElement(un,null,Object(Oe.__)("Allow stats reports to be viewed by","jetpack")),o.a.createElement(rn.a,{checked:!0,disabled:!0},o.a.createElement("span",{className:"jp-form-toggle-explanation"},i.administrator.name)),Object.keys(i).map((function(t){return"administrator"!==t&&o.a.createElement(rn.a,{checked:e.state["roles_".concat(t)],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:e.handleRoleToggleChange(t,"roles"),key:"roles-".concat(t)},o.a.createElement("span",{className:"jp-form-toggle-explanation"},i[t].name))})))))):o.a.createElement(en.a,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive"},o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},o.a.createElement("img",{src:Vn+"stats.svg",width:"60",height:"60",alt:Object(Oe.__)("Jetpack Stats Icon","jetpack"),className:"jp-at-a-glance__stats-icon"})),o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isOfflineMode?Object(Oe.__)("Unavailable in Offline Mode","jetpack"):Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Activate Site Stats</a> to see detailed stats, likes, followers, subscribers, and more! <a1>Learn More</a1>","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:o.a.createElement("a",{href:Object(Ve.a)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})})),!this.props.isOfflineMode&&o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},o.a.createElement(sn.a,{onClick:this.activateStats,primary:!0},Object(Oe.__)("Activate Site Stats","jetpack")))))}}]),n}(o.a.Component),Xa=Object(ar.a)(Za),Qa=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props.isSiteConnected;return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("WP.me Shortlinks","Settings header","jetpack"),module:"shortlinks",hideButton:!0}),o.a.createElement(nr.a,{module:{module:"shortlinks"},support:{text:this.props.shortlinksModule.description,link:Object(Ve.a)("jetpack-support-shortlinks")},disableInOfflineMode:!0},o.a.createElement(bn.a,{slug:"shortlinks",disabled:!e,activated:this.props.shortlinksActive,toggling:this.props.isSavingAnyOption("shortlinks"),toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Generate shortened URLs for simpler sharing.","jetpack"))))}}]),n}(a.Component),eo=Object(ar.a)(Object(s.b)((function(e,t){return{shortlinksActive:t.getOptionValue("shortlinks"),shortlinksModule:Object(Qe.c)(e,"shortlinks")}}))(Qa)),to=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{show_headline:e.props.getOptionValue("show_headline","related-posts"),show_thumbnails:e.props.getOptionValue("show_thumbnails","related-posts")}),Be()(Re()(e),"updateOptions",(function(t){e.setState(Be()({},t,!e.state[t]),e.props.updateFormStateModuleOption("related-posts",t))})),Be()(Re()(e),"handleShowHeadlineToggleChange",(function(){e.updateOptions("show_headline")})),Be()(Re()(e),"handleShowThumbnailsToggleChange",(function(){e.updateOptions("show_thumbnails")})),Be()(Re()(e),"trackConfigureClick",(function(){Xe.a.tracks.recordJetpackClick("configure-related-posts")})),e}return Pe()(n,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInOfflineMode("related-posts");return o.a.createElement(tr,tt()({},this.props,{hideButton:!0,module:"related-posts"}),o.a.createElement(nr.a,{hasChild:!0,disableInOfflineMode:!0,module:this.props.getModule("related-posts"),support:{text:Object(Oe.__)("The feature helps visitors find more of your content by displaying related posts at the bottom of each post.","jetpack"),link:Object(Ve.a)("jetpack-support-related-posts")}},o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("Keep your visitors engaged with related content at the bottom of each post. These settings won’t apply to <a>related posts added using the block editor</a>.","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("jetpack-support-jetpack-blocks-related-posts-block"),target:"_blank",rel:"noopener noreferrer"})})),o.a.createElement(bn.a,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Show related content after posts","jetpack"))),o.a.createElement(cn,null,o.a.createElement(rn.a,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:this.handleShowHeadlineToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Highlight related content with a heading","jetpack"))),o.a.createElement(rn.a,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Show a thumbnail image where available","jetpack"))),t&&o.a.createElement("div",null,o.a.createElement(ln,{className:"jp-form-label-wide"},Object(Oe._x)("Preview","A header for a preview area in the configuration screen.","jetpack")),o.a.createElement(en.a,{className:"jp-related-posts-preview"},this.state.show_headline&&o.a.createElement("div",{className:"jp-related-posts-preview__title"},Object(Oe.__)("Related","jetpack")),[{url:"cat-blog.png",text:Object(Oe.__)("Big iPhone/iPad Update Now Available","jetpack"),context:Object(Oe._x)('In "Mobile"',"It refers to the category where a post was found. Used in an example preview.","jetpack")},{url:"devices.jpg",text:Object(Oe.__)("The WordPress for Android App Gets a Big Facelift","jetpack"),context:Object(Oe._x)('In "Mobile"',"It refers to the category where a post was found. Used in an example preview.","jetpack")},{url:"mobile-wedding.jpg",text:Object(Oe.__)("Upgrade Focus: VideoPress For Weddings","jetpack"),context:Object(Oe._x)('In "Upgrade"',"It refers to the category where a post was found. Used in an example preview.","jetpack")}].map((function(t,n){return o.a.createElement("div",{key:"preview_".concat(n),className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&o.a.createElement("img",{src:"https://jetpackme.files.wordpress.com/2019/03/".concat(t.url),alt:t.text}),o.a.createElement("h4",{className:"jp-related-posts-preview__post-title"},o.a.createElement("a",{href:"#/traffic"},t.text)),o.a.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))),!this.props.isUnavailableInOfflineMode("related-posts")&&t&&o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},Object(Oe.__)("Configure related posts in the Customizer","jetpack")))}}]),n}(o.a.Component),no=Object(ar.a)(to),ro=n(55);function io(){var e=this;this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=function(t){t.source===e.windowInstance&&e.emit("message",t.data)}}La=io.prototype,Object(je.assign)(La,ro.EventEmitter.prototype),La.emitChange=function(){this.emit("change")},La.off=La.removeListener,io.prototype.open=function(e,t,n){return t=t||Date.now(),this.windowInstance=window.open(e,t,n),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},io.prototype.getScreenCenterSpecs=function(e,t){var n=void 0!==window.screenTop?window.screenTop:window.screenY,r=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(n+window.innerHeight/2-t/2),"left="+(r+window.innerWidth/2-e/2)].join()},io.prototype.isOpen=function(e){var t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(n){}return!t},io.prototype.checkStatus=function(){for(var e in this.intervals)this.intervals.hasOwnProperty(e)&&!this.isOpen(e)&&(this.emit("close",e),delete this.intervals[e]);0===Object.keys(this.intervals).length&&(clearInterval(this.monitorInterval),delete this.monitorInterval,window.removeEventListener("message",this.onMessage))},io.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t};var ao=io,oo=function(e,t){var n,r=new ao;r.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+r.getScreenCenterSpecs(780,700)),r.once("close",(function(){var e=null;n&&n.keyring_id&&(e=Number(n.keyring_id)),t(e)})),r.on("message",(function(e){return n=e}))},so=n(147),co=n(145),lo=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{inputVisible:!1}),Be()(Re()(e),"handleClickAutoVerify",(function(){e.props.fetchingSiteData||e.props.fetchingGoogleSiteVerify||(Xe.a.tracks.recordEvent("jetpack_site_verification_google_auto_verify_click"),oo(e.props.googleSiteVerificationConnectUrl,(function(t){t&&e.checkAndVerifySite(t)})))})),Be()(Re()(e),"handleClickSetManually",(function(t){Xe.a.tracks.recordEvent("jetpack_site_verification_google_manual_verify_click",{is_owner:e.props.isOwner}),e.toggleVerifyMethod(t)})),Be()(Re()(e),"handleClickEdit",(function(t){Xe.a.tracks.recordEvent("jetpack_site_verification_google_edit_click",{is_owner:e.props.isOwner}),e.toggleVerifyMethod(t)})),Be()(Re()(e),"handleClickCancel",(function(t){Xe.a.tracks.recordEvent("jetpack_site_verification_google_cancel_click",{is_owner:e.props.isOwner}),e.props.resetFormStateOption("google"),e.toggleVerifyMethod(t)})),Be()(Re()(e),"quickSave",(function(t){Xe.a.tracks.recordEvent("jetpack_site_verification_google_manual_verify_save",{is_owner:e.props.isOwner,is_empty:!e.props.value}),e.props.onSubmit(t)})),Be()(Re()(e),"toggleVerifyMethod",(function(){e.setState({inputVisible:!e.state.inputVisible})})),Be()(Re()(e),"handleOnTextInputKeyPress",(function(t){"Enter"===t.key&&e.quickSave()})),e}return Pe()(n,[{key:"componentDidMount",value:function(){var e=this;this.props.isCurrentUserLinked&&this.props.checkVerifyStatusGoogle().then((function(t){if(e.props.googleSiteVerificationError&&"unverify-site-error"===e.props.googleSiteVerificationError.code&&e.props.updateOptions({google:""}).then((function(){return e.props.checkVerifyStatusGoogle()})),t)return!e.props.getOptionValue("google")&&t.token?e.props.updateOptions({google:t.token}):void(!e.props.getOptionValue("google")||t.token||t.verified||e.setState({inputVisible:!0}))}))}},{key:"checkAndVerifySite",value:function(e){var t=this;this.props.createNotice("is-info",Object(Oe.__)("Verifying…","jetpack"),{id:"verifying-site-google"}),this.props.checkVerifyStatusGoogle(e).then((function(e){if(e)return e.token!==t.props.value?t.props.updateOptions({google:e.token}):void 0})).then((function(){t.props.removeNotice("verifying-site-google"),t.props.isSiteVerifiedWithGoogle||t.props.verifySiteGoogle(e).then((function(){if(t.props.googleSiteVerificationError){var e=t.props.googleSiteVerificationError.message;Xe.a.tracks.recordEvent("jetpack_site_verification_google_verify_error",{error_message:e}),t.props.createNotice("is-error",Object(Oe.sprintf)(Object(Oe.__)("Site failed to verify: %s","jetpack"),e),{id:"verify-site-google-error",duration:5e3})}else t.props.isSiteVerifiedWithGoogle&&Xe.a.tracks.recordEvent("jetpack_site_verification_google_verify_success")}))}))}},{key:"render",value:function(){var e=this.props.googleSiteVerificationError&&"forbidden"===this.props.googleSiteVerificationError.code;if(this.state.inputVisible||e||!this.props.isCurrentUserLinked)return o.a.createElement("div",null,o.a.createElement(ln,{className:"jp-form-input-with-prefix",key:"verification_service_google"},o.a.createElement("span",null,Object(Oe.__)("Google","jetpack")),o.a.createElement(ir,{name:"google",value:this.props.value,placeholder:this.props.placeholder,className:"code",disabled:this.props.disabled,onChange:this.props.onOptionChange,onKeyPress:this.handleOnTextInputKeyPress}),this.state.inputVisible&&o.a.createElement("div",{className:"jp-form-site-verification-buttons"},o.a.createElement(sn.a,{primary:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.quickSave},Object(Oe.__)("Save","jetpack")),o.a.createElement(sn.a,{type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.handleClickCancel},Object(Oe.__)("Cancel","jetpack")))));if(this.props.isSiteVerifiedWithGoogle)return o.a.createElement("div",null,o.a.createElement("div",{className:"jp-form-input-with-prefix",key:"verification_service_google"},o.a.createElement("span",null,Object(Oe.__)("Google","jetpack")),o.a.createElement("div",{className:"jp-form-site-verification-verified"},o.a.createElement(Mt.a,{icon:"checkmark-circle",size:20})," ",o.a.createElement("span",null,Object(Oe.__)("Your site is verified with Google","jetpack"))),o.a.createElement(sn.a,{type:"button",className:"jp-form-site-verification-edit-button",onClick:this.handleClickEdit},Object(Oe.__)("Edit","jetpack"))),this.props.isOwner&&o.a.createElement("div",{className:"jp-form-input-with-prefix-bottom-message"},o.a.createElement("div",{className:"jp-form-setting-explanation"},o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("Monitor your site's traffic and performance from the <a>Google Search Console</a>.","jetpack"),{a:o.a.createElement(Ci.a,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:this.props.googleSearchConsoleUrl})})," ",Object(Zn.createInterpolateElement)(Object(Oe.__)("Google will email about certain events that occur with your site, including indications that your website has been <a1>hacked</a1>, or problems <a2>crawling or indexing</a2> your site.","jetpack"),{a1:o.a.createElement(Ci.a,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:"https://developers.google.com/web/fundamentals/security/hacked/"}),a2:o.a.createElement(Ci.a,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/insidesearch/howsearchworks/crawling-indexing.html"})})))));var t=this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||this.props.isVerifyingGoogleSite||this.props.disabled;return o.a.createElement("div",{className:"jp-form-input-with-prefix jp-form-google-label-unverified",key:"verification_service_google"},o.a.createElement("span",null,Object(Oe.__)("Google","jetpack")),o.a.createElement("div",{className:"jp-form-google-label-unverified-actions"},Object(Zn.createInterpolateElement)(Object(Oe.__)("<button1>Verify with Google</button1><span>or</span><button2>Manually Verify</button2>","jetpack"),{button1:o.a.createElement(sn.a,{primary:!0,type:"button",disabled:t,onClick:this.handleClickAutoVerify}),span:o.a.createElement("span",{className:"jp-form-google-separator"}),button2:o.a.createElement(sn.a,{type:"button",disabled:t,onClick:this.handleClickSetManually})})))}}]),n}(o.a.Component);Be()(lo,"propTypes",{disabled:u.a.bool}),Be()(lo,"defaultProps",{disabled:!1});var uo=Object(s.b)((function(e){return{fetchingSiteData:Object(Sn.x)(e),googleSiteVerificationConnectUrl:Object(so.a)(e,"google_site_verification"),googleSearchConsoleUrl:Object(co.a)(e),fetchingGoogleSiteVerify:Object(co.d)(e),isConnectedToGoogle:Object(co.c)(e),isSiteVerifiedWithGoogle:Object(co.f)(e),isVerifyingGoogleSite:Object(co.g)(e),userCanManageOptions:Object(Rt.L)(e),googleSiteVerificationError:Object(co.b)(e),isOwner:Object(co.e)(e)}}),{checkVerifyStatusGoogle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t({type:Ft.JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH}),En.a.fetchVerifySiteGoogleStatus(e).then((function(e){if(e.errors&&e.errors.length>0){var n=Object.keys(e.errors)[0],r=e.errors[n];return t({type:Ft.JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL,error:{code:n,message:r}}),e}return t({type:Ft.JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS,verified:e.verified,token:e.token,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url}),e})).catch((function(e){t({type:Ft.JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL,error:e.response})}))}},createNotice:Si.a,removeNotice:Si.c,verifySiteGoogle:function(e){return function(t){return t({type:Ft.JETPACK_SITE_VERIFY_GOOGLE_REQUEST}),En.a.verifySiteGoogle(e).then((function(e){if(e.errors&&e.errors.length>0){var n=Object.keys(e.errors)[0],r=e.errors[n];return t({type:Ft.JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL,error:{code:n,message:r}}),e}return t({verified:e.verified,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url,type:Ft.JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS}),e.verified&&t(Object(Si.a)("is-success",Object(Oe.__)("Site is verified","jetpack"),{id:"verify-site-google-verified",duration:2e3})),e})).catch((function(e){t({type:Ft.JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL,error:e.response})}))}}})(lo),po=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"getMetaTag",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?/^[a-z0-9_-]+$/i.test(t)?Object(je.includes)(t,"<meta")?t:'<meta name="'.concat(Object(je.get)(n.serviceIds,e,""),'" content="').concat(t,'" />'):t:""}},{key:"getSiteVerificationValue",value:function(e){var t=this.props.getOptionValue(e);return t===this.props.getSettingCurrentValue(e)?this.getMetaTag(e,t):t}},{key:"render",value:function(){var e=this.props.getModule("verification-tools");if("inactive"===this.props.getModuleOverride("verification-tools"))return o.a.createElement($n,{title:e.name,icon:"cog",description:Object(Oe.sprintf)(Object(Oe.__)("%s has been disabled by a site administrator.","jetpack"),e.name)});var t=!!this.props.getOptionValue(e.module);return o.a.createElement(tr,tt()({},this.props,{module:e.module,saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex","facebook"])}),o.a.createElement(nr.a,{module:e,support:{text:Object(Oe.__)("Provides the necessary hidden tags needed to verify your WordPress site with various services.","jetpack"),link:Object(Ve.a)("jetpack-support-site-verification-tools")}},o.a.createElement(bn.a,{slug:e.module,activated:t,toggling:this.props.isSavingAnyOption([e.module]),disabled:this.props.isSavingAnyOption([e.module]),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Verify site ownership with third party services","jetpack"))),o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("Note that <b>verifying your site with these services is not necessary</b> in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the <support>full instructions</support> if you are having trouble. Supported verification services: <google>Google Search Console</google>, <bing>Bing Webmaster Center</bing>, <pinterest>Pinterest Site Verification</pinterest>, <yandex>Yandex.Webmaster</yandex>, and <facebook>Facebook Domain Verification</facebook>.","jetpack"),{b:o.a.createElement("strong",null),support:o.a.createElement("a",{href:Object(Ve.a)("jetpack-support-site-verification-tools")}),google:o.a.createElement(Ci.a,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:o.a.createElement(Ci.a,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:o.a.createElement(Ci.a,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:o.a.createElement(Ci.a,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"}),facebook:o.a.createElement(Ci.a,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://business.facebook.com/settings/"})})),o.a.createElement(cn,null,o.a.createElement(uo,tt()({value:this.getSiteVerificationValue("google"),placeholder:this.getMetaTag("google","1234")},this.props,{disabled:this.props.isUpdating("google")||!t})),o.a.createElement(ln,{className:"jp-form-input-with-prefix",key:"verification_service_bing"},o.a.createElement("span",null,Object(Oe.__)("Bing","jetpack")),o.a.createElement(ir,{name:"bing",value:this.getSiteVerificationValue("bing"),placeholder:this.getMetaTag("bing","1234"),className:"code",disabled:this.props.isUpdating("bing")||!t,onChange:this.props.onOptionChange})),o.a.createElement(ln,{className:"jp-form-input-with-prefix",key:"verification_service_pinterest"},o.a.createElement("span",null,Object(Oe.__)("Pinterest","jetpack")),o.a.createElement(ir,{name:"pinterest",value:this.getSiteVerificationValue("pinterest"),placeholder:this.getMetaTag("pinterest","1234"),className:"code",disabled:this.props.isUpdating("pinterest")||!t,onChange:this.props.onOptionChange})),o.a.createElement(ln,{className:"jp-form-input-with-prefix",key:"verification_service_yandex"},o.a.createElement("span",null,Object(Oe.__)("Yandex","jetpack")),o.a.createElement(ir,{name:"yandex",value:this.getSiteVerificationValue("yandex"),placeholder:this.getMetaTag("yandex","1234"),className:"code",disabled:this.props.isUpdating("yandex")||!t,onChange:this.props.onOptionChange})),o.a.createElement(ln,{className:"jp-form-input-with-prefix",key:"verification_service_facebook"},o.a.createElement("span",null,Object(Oe.__)("Facebook","jetpack")),o.a.createElement(ir,{name:"facebook",value:this.getSiteVerificationValue("facebook"),placeholder:this.getMetaTag("facebook","1234"),className:"code",disabled:this.props.isUpdating("facebook")||!t,onChange:this.props.onOptionChange})))))}}]),n}(o.a.Component);Be()(po,"serviceIds",{google:"google-site-verification",bing:"msvalidate.01",pinterest:"p:domain_verify",yandex:"yandex-verification",facebook:"facebook-domain-verification"});var ho=Object(ar.a)(po),fo=n(404),mo=n.n(fo),go=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"displayPrompt",(function(){window.prompt(e.props.prompt,e.props.text)})),e}return Pe()(n,[{key:"componentDidMount",value:function(){var e=this,t=i.a.findDOMNode(this.refs.button);this.clipboard=new mo.a(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard}},{key:"render",value:function(){var e=rt()("dops-clipboard-button",this.props.className);return o.a.createElement(sn.a,tt()({ref:"button"},Object(je.omit)(this.props,Object.keys(this.constructor.propTypes)),{className:e}))}}]),n}(o.a.Component);Be()(go,"displayName","ClipboardButton"),Be()(go,"propTypes",{className:u.a.string,text:u.a.string,prompt:u.a.string,onCopy:u.a.func}),Be()(go,"defaultProps",{onCopy:je.noop});n(442);var bo=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{isCopied:!1,disabled:!1}),Be()(Re()(e),"showConfirmation",(function(){e.setState({isCopied:!0}),e.confirmationTimeout=setTimeout((function(){e.setState({isCopied:!1})}),4e3)})),e}return Pe()(n,[{key:"componentWillUnmount",value:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout}},{key:"render",value:function(){var e=Object(je.omit)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return o.a.createElement("span",{className:rt()("dops-clipboard-button-input",this.props.className)},o.a.createElement(ir,tt()({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),o.a.createElement(go,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}]),n}(o.a.Component);Be()(bo,"displayName","ClipboardButtonInput"),Be()(bo,"propTypes",{value:u.a.string,disabled:u.a.bool,className:u.a.string,copied:u.a.string,copy:u.a.string,prompt:u.a.string}),Be()(bo,"defaultProps",{value:""});var vo=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"renderSitemapRow",(function(e,t){return o.a.createElement("span",{className:"jp-sitemap-row"},o.a.createElement(bo,{value:e,copy:Object(Oe._x)("Copy","verb","jetpack"),copied:Object(Oe.__)("Copied!","jetpack"),prompt:Object(Oe.__)("Highlight and copy the following text to your clipboard:","jetpack")}),o.a.createElement(Ci.a,{onClick:function(){return Xe.a.tracks.recordJetpackClick(t)},icon:!0,target:"_blank",rel:"noopener noreferrer",href:e}))})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.getModule("sitemaps"),t=Object(je.get)(e,["extra","sitemap_url"],""),n=Object(je.get)(e,["extra","news_sitemap_url"],""),r=rt()({"jp-form-setting-explanation":!0,"is-warning":!this.props.isSiteVisibleToSearchEngines&&this.props.getOptionValue("sitemaps")});return o.a.createElement(tr,tt()({},this.props,{module:"sitemaps",hideButton:!0}),o.a.createElement(nr.a,{hasChild:!0,module:{module:"sitemaps"},support:{link:Object(Ve.a)("jetpack-support-sitemaps")}},o.a.createElement("p",null,Object(Oe.__)("Sitemaps are files that search engines like Google or Bing use to index your website. They can help improve your ranking in search results. When you enable this feature, Jetpack will create sitemaps for you and update them automatically when the content on your site changes.","jetpack")),o.a.createElement(bn.a,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Generate XML sitemaps","jetpack")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&o.a.createElement(cn,null,o.a.createElement("p",{className:"jp-form-setting-explanation"},Object(Oe.__)("Good news: Jetpack is sending your sitemap automatically to all major search engines for indexing.","jetpack"),this.renderSitemapRow(t,"sitemap-url-link"),this.renderSitemapRow(n,"sitemap-news-url-link"))):o.a.createElement(cn,null,o.a.createElement("p",{className:r},Object(Zn.createInterpolateElement)(Object(Oe.__)('Search engines can’t access your site at the moment. If you’d like to make your site accessible, check your <a>Reading settings</a> and switch "Search Engine Visibility" on.',"jetpack"),{a:o.a.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})})))))}}]),n}(o.a.Component),_o=Object(s.b)((function(e){return{isSiteVisibleToSearchEngines:Object(Rt.B)(e),siteAdminUrl:Object(Rt.n)(e)}}))(Object(ar.a)(vo)),yo=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e={settings:this.props.settings,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isSiteConnected:this.props.isSiteConnected,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,getModuleOverride:this.props.getModuleOverride,hasConnectedOwner:this.props.hasConnectedOwner},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),i=this.props.isModuleFound("shortlinks"),a=this.props.isModuleFound("related-posts"),s=this.props.isModuleFound("verification-tools"),c=this.props.isModuleFound("sitemaps"),l=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||i||a||s||c||l)?o.a.createElement("div",null,o.a.createElement(nn.a,null),o.a.createElement(en.a,{title:this.props.searchTerm?Object(Oe.__)("Traffic","jetpack"):Object(Oe.__)("Maximize your site’s visibility in search engines and view traffic stats in real time.","jetpack"),className:"jp-settings-description"}),n&&o.a.createElement($a,tt()({},e,{isAtomicSite:this.props.isAtomicSite,configureUrl:Object(Ve.a)("calypso-stats-ads-day",{site:this.props.siteRawUrl})})),a&&o.a.createElement(no,tt()({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&o.a.createElement(Ga,tt()({},e,{configureUrl:Object(Ve.a)("calypso-marketing-traffic",{site:this.props.siteRawUrl,anchor:"seo"})})),l&&o.a.createElement(Ya,tt()({},e,{configureUrl:Object(Ve.a)("calypso-marketing-traffic",{site:this.props.siteRawUrl,anchor:"analytics"})})),r&&o.a.createElement(Xa,e),i&&o.a.createElement(eo,e),c&&o.a.createElement(_o,e),s&&o.a.createElement(ho,e)):null}}]),n}(o.a.Component);Be()(yo,"displayName","TrafficSettings");var Eo=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},settings:Object(tn.g)(e),isOfflineMode:Object(qe.s)(e),isUnavailableInOfflineMode:function(t){return Object(qe.x)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)},isSiteConnected:Object(qe.u)(e),lastPostUrl:Object(Rt.l)(e),getModuleOverride:function(t){return Object(Qe.f)(e,t)},isAtomicSite:Object(Rt.w)(e),hasConnectedOwner:Object(qe.k)(e)}}))(yo),wo=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"updateFormStateByMarkdown",(function(t){return e.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",t)?e.props.updateFormStateModuleOption(t,"wpcom_publish_posts_with_markdown"):e.props.updateFormStateModuleOption(t,"wpcom_publish_posts_with_markdown",!0)})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.isModuleFound("copy-post"),t=this.props.isModuleFound("latex"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("shortcodes");if(!(e||t||n||r))return null;var i=this.props.module("markdown"),a=this.props.module("latex"),s=this.props.module("copy-post"),c=this.props.module("shortcodes"),l=o.a.createElement(nr.a,{module:s,support:{text:Object(Oe.__)("Duplicate existing posts, pages, Testimonials, and Portfolios. All the content will be copied including text, featured images, sharing settings, and more.","jetpack"),link:Object(Ve.a)("jetpack-support-copy-post")}},o.a.createElement(cn,null,o.a.createElement(bn.a,{slug:"copy-post",activated:!!this.props.getOptionValue("copy-post"),toggling:this.props.isSavingAnyOption("copy-post"),disabled:this.props.isSavingAnyOption("copy-post"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},s.description)))),u=o.a.createElement(nr.a,{module:i,support:{text:Object(Oe.__)("Use Markdown syntax to compose content with links, lists, and other styles. This setting enables Markdown in the Classic Editor as well as within a Classic Editor block.","jetpack"),link:Object(Ve.a)("jetpack-support-markdown")}},o.a.createElement(cn,null,o.a.createElement(bn.a,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},o.a.createElement("span",{className:"jp-form-toggle-explanation"},i.description)))),p=o.a.createElement(nr.a,{module:a,support:{text:Object(Oe.__)("LaTeX is a powerful markup language for writing complex mathematical equations and formulas.","jetpack"),link:Object(Ve.a)("jetpack-support-beautiful-math-with-latex")}},o.a.createElement(cn,null,o.a.createElement(bn.a,{slug:"latex",activated:!!this.props.getOptionValue("latex"),toggling:this.props.isSavingAnyOption(["latex"]),disabled:this.props.isSavingAnyOption(["latex"]),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},a.description)))),d=o.a.createElement(nr.a,{module:c,support:{text:c.description,link:Object(Ve.a)("jetpack-support-shortcode-embeds")}},o.a.createElement(cn,null,o.a.createElement(bn.a,{slug:"shortcodes",activated:!!this.props.getOptionValue("shortcodes"),toggling:this.props.isSavingAnyOption(["shortcodes"]),disabled:this.props.isSavingAnyOption(["shortcodes"]),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Compose using shortcodes to embed media from popular sites","jetpack")))));return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Composing","Settings header","jetpack"),module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),e&&l,n&&u,t&&p,r&&d)}}]),n}(o.a.Component),ko=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)}}}))(Object(ar.a)(wo)),jo=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{testimonial:e.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:e.props.getOptionValue("jetpack_portfolio","custom-content-types")}),Be()(Re()(e),"updateCPTs",(function(t){var n="testimonial"===t?!(!e.state.testimonial||e.state.portfolio):!(!e.state.portfolio||e.state.testimonial);e.props.updateFormStateModuleOption("custom-content-types","jetpack_"+t,n),e.setState(Be()({},t,!e.state[t]))})),Be()(Re()(e),"linkIfActiveCPT",(function(t){return e.props.getSettingCurrentValue("jetpack_".concat(t),"custom-content-types")?o.a.createElement("a",{href:"".concat(e.props.siteAdminUrl,"edit.php?post_type=jetpack-").concat(t)}):o.a.createElement("span",null)})),Be()(Re()(e),"handleTestimonialToggleChange",(function(){e.updateCPTs("testimonial")})),Be()(Re()(e),"handlePortfolioToggleChange",(function(){e.updateCPTs("portfolio")})),e}return Pe()(n,[{key:"render",value:function(){if(!this.props.isModuleFound("custom-content-types"))return null;var e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),n=t&&Object(Oe.__)("This feature has been disabled by a site administrator.","jetpack");return o.a.createElement(tr,tt()({},this.props,{module:"custom-content-types",hideButton:!0}),o.a.createElement(nr.a,{hasChild:!0,module:e,support:{link:Object(Ve.a)("jetpack-support-custom-content-types")}},o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("Add <testimonialLink>testimonials</testimonialLink> to your website to attract new customers. If your theme doesn’t support Jetpack Testimonials, you can still use a simple shortcode to display them on your site.","jetpack"),{testimonialLink:this.linkIfActiveCPT("testimonial")})),o.a.createElement(rn.a,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial")||t,onChange:this.handleTestimonialToggleChange,disabledReason:n},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Testimonials","jetpack"))),o.a.createElement(cn,null,o.a.createElement("p",{className:"jp-form-setting-explanation"},Object(Oe.__)("Testimonials shortcode: [testimonials]","jetpack")))),this.props.testimonialActive&&o.a.createElement(Hi,{className:"jp-settings-card__configure-link",href:"".concat(this.props.siteAdminUrl,"post-new.php?post_type=jetpack-testimonial")},Object(Oe.__)("Add a testimonial","jetpack")),o.a.createElement(nr.a,{hasChild:!0,module:e,support:{link:Object(Ve.a)("jetpack-support-custom-content-types")}},o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("Use <portfolioLink>portfolios</portfolioLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Portfolios, you can still use a simple shortcode to display them on your site.","jetpack"),{portfolioLink:this.linkIfActiveCPT("portfolio")})),o.a.createElement(rn.a,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio")||t,onChange:this.handlePortfolioToggleChange,disabledReason:n},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Portfolios","jetpack"))),o.a.createElement(cn,null,o.a.createElement("p",{className:"jp-form-setting-explanation"},Object(Oe.__)("Portfolios shortcode: [portfolio]","jetpack")))),this.props.portfolioActive&&o.a.createElement(Hi,{className:"jp-settings-card__configure-link",href:"".concat(this.props.siteAdminUrl,"post-new.php?post_type=jetpack-portfolio")},Object(Oe.__)("Add a portfolio item","jetpack")))}}]),n}(o.a.Component),Oo=Object(ar.a)(Object(s.b)((function(e,t){return{module:function(t){return Object(Qe.c)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)},getModuleOverride:function(t){return Object(Qe.f)(e,t)},portfolioActive:t.getSettingCurrentValue("jetpack_portfolio","custom-content-types"),testimonialActive:t.getSettingCurrentValue("jetpack_testimonial","custom-content-types")}}))(jo)),Co=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"getInfiniteMode",(function(){return e.props.getOptionValue("infinite-scroll")?e.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"})),Be()(Re()(e),"updateInfiniteMode",(function(t){e.setState({infinite_mode:t},e.prepareOptionsToUpdate)})),Be()(Re()(e),"prepareOptionsToUpdate",(function(){"infinite_default"===e.state.infinite_mode?e.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==e.state.infinite_mode&&"infinite_button"!==e.state.infinite_mode||e.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===e.state.infinite_mode})})),Be()(Re()(e),"updateOptions",(function(t,n){e.setState(Be()({},t,!e.state[t]),e.props.updateFormStateModuleOption(n,t))})),Be()(Re()(e),"trackLearnMoreIS",(function(){Xe.a.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})})),Be()(Re()(e),"state",{infinite_mode:e.getInfiniteMode()}),Be()(Re()(e),"handleInfiniteScrollModeChange",(function(t){return function(){return e.updateInfiniteMode(t)}})),e}return Pe()(n,[{key:"render",value:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("custom-css");if(!t&&!n)return null;var r=this.props.getModule("infinite-scroll"),i=this.props.getModule("custom-css"),a="inactive"===this.props.getModuleOverride("infinite-scroll");return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe.__)("Theme enhancements","jetpack"),hideButton:!t||!this.props.isInfiniteScrollSupported,module:"theme-enhancements"}),a&&o.a.createElement(Qn,{moduleName:r.name,compact:!0}),t&&!a&&o.a.createElement(nr.a,{hasChild:!0,module:{module:r.module},key:"theme_enhancement_".concat(r.module),support:{text:Object(Oe.__)("Loads the next posts automatically when the reader approaches the bottom of the page.","jetpack"),link:Object(Ve.a)("jetpack-support-infinite-scroll")}},o.a.createElement(un,{className:"jp-form-label-wide"},r.name),o.a.createElement("p",null,Object(Oe.__)("Create a smooth, uninterrupted reading experience by loading more content as visitors scroll to the bottom of your archive pages.","jetpack")),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:Object(Oe.__)("Load more posts using the default theme behavior","jetpack")},{key:"infinite_button",label:Object(Oe.__)("Load more posts in page with a button","jetpack")},{key:"infinite_scroll",label:Object(Oe.__)("Load more posts as the reader scrolls down","jetpack")}].map((function(t){return o.a.createElement(ln,{key:"".concat(r.module,"_").concat(t.key)},o.a.createElement("input",{type:"radio",name:"infinite_mode",value:t.key,checked:t.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([r.module,t.key]),onChange:e.handleInfiniteScrollModeChange(t.key)}),o.a.createElement("span",{className:"jp-form-toggle-explanation"},t.label))})):o.a.createElement("span",null,Object(Oe.__)("Theme support required.","jetpack")+" ",o.a.createElement("a",{onClick:this.trackLearnMoreIS,href:r.learn_more_button+"#theme",title:Object(Oe.__)("Learn more about adding support for Infinite Scroll to your theme.","jetpack")},Object(Oe.__)("Learn more","jetpack")))),n&&o.a.createElement(nr.a,{module:{module:i.module},support:{text:i.description,link:Object(Ve.a)("jetpack-support-custom-css")}},o.a.createElement(bn.a,{slug:"custom-css",activated:!!this.props.getOptionValue("custom-css"),toggling:this.props.isSavingAnyOption(["custom-css"]),disabled:this.props.isSavingAnyOption(["custom-css"]),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Enhance CSS customization panel","jetpack")))))}}]),n}(o.a.Component),So=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},isInfiniteScrollSupported:Object(Rt.b)(e,"infinite-scroll"),isModuleFound:function(t){return Object(Lt.b)(e,t)}}}))(Object(ar.a)(Co)),To=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"regeneratePostByEmailAddress",(function(t){Xe.a.tracks.recordJetpackClick("pbe-regenerage-email"),t.preventDefault(),e.props.regeneratePostByEmailAddress()})),Be()(Re()(e),"address",(function(){var t=e.props.getOptionValue("post_by_email_address");return!1===t||"1"===t||null===t?"":t})),e}return Pe()(n,[{key:"render",value:function(){if(!this.props.isModuleFound("post-by-email"))return null;var e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInOfflineMode("post-by-email")||!this.props.isLinked,r=this.address();return o.a.createElement(tr,tt()({},this.props,{module:"post-by-email",hideButton:!0}),o.a.createElement(nr.a,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:e,support:{text:Object(Oe.__)("Allows you to publish new posts by sending an email to a special address.","jetpack"),link:Object(Ve.a)("jetpack-support-post-by-email")}},o.a.createElement("p",null,Object(Oe.__)("Post by email is a quick way to publish new posts without visiting your site. We’ll generate a unique email address for you to send your content to, which will then appear on your site just like any other post.","jetpack")),this.props.userCanManageModules?o.a.createElement(bn.a,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):o.a.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),o.a.createElement(cn,null,o.a.createElement(ln,null,o.a.createElement(un,null,Object(Oe.__)("Send your new posts to this email address:","jetpack")),o.a.createElement(bo,{value:r,disabled:!t||n,copy:Object(Oe._x)("Copy","verb","jetpack"),copied:Object(Oe.__)("Copied!","jetpack"),prompt:Object(Oe.__)("Highlight and copy the following text to your clipboard:","jetpack")})),o.a.createElement(sn.a,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?Object(Oe.__)("Regenerate address","jetpack"):Object(Oe.__)("Create address","jetpack")))),!this.props.isUnavailableInOfflineMode("post-by-email")&&!this.props.isLinked&&o.a.createElement(pi,{feature:"post-by-email",featureLabel:Object(Oe.__)("Post by Email","jetpack"),text:Object(Oe.__)("Connect to enable publishing via email.","jetpack")}))}}]),n}(o.a.Component),Ao=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)}}}))(Object(ar.a)(To)),Mo=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props.isModuleFound("widgets"),t=this.props.isModuleFound("widget-visibility");return e||t?o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("Widgets","Settings header","jetpack"),module:"widgets",hideButton:!0}),e&&o.a.createElement(nr.a,{module:{module:"widgets"},support:{text:this.props.widgetsModule.description,link:Object(Ve.a)("jetpack-support-extra-sidebar-widgets")}},o.a.createElement(bn.a,{slug:"widgets",activated:this.props.widgetsActive,toggling:this.props.isSavingAnyOption("widgets"),toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Make extra widgets available for use on your site including subscription forms and Twitter streams","jetpack"))),t&&o.a.createElement(nr.a,{module:{module:"widget-visibility"},support:{text:Object(Oe.__)("Widget visibility lets you decide which widgets appear on which pages, so you can finely tailor widget content.","jetpack"),link:Object(Ve.a)("jetpack-support-widget-visibility")}},o.a.createElement(bn.a,{slug:"widget-visibility",activated:this.props.widgetVisibilityActive,toggling:this.props.isSavingAnyOption("widget-visibility"),toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Enable widget visibility controls to display widgets only on particular posts or pages","jetpack")))):null}}]),n}(a.Component),No=Object(ar.a)(Object(s.b)((function(e,t){return{widgetVisibilityActive:t.getOptionValue("widget-visibility"),widgetsActive:t.getOptionValue("widgets"),widgetsModule:Object(Qe.c)(e,"widgets"),isModuleFound:function(t){return Object(Lt.b)(e,t)}}}))(Mo)),xo=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInOfflineMode("masterbar"),n=this.props.isLinked;return o.a.createElement(tr,tt()({},this.props,{header:Object(Oe._x)("WordPress.com toolbar","Settings header","jetpack"),module:"masterbar",hideButton:!0}),o.a.createElement(nr.a,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"masterbar"},support:{text:Object(Oe.__)("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader.","jetpack"),link:Object(Ve.a)("jetpack-support-masterbar")}},o.a.createElement("p",null,Object(Oe.__)("The WordPress.com toolbar replaces the default WordPress admin toolbar. It offers one-click access to notifications, your WordPress.com profile and your other Jetpack and WordPress.com websites. You can also catch up on the sites you follow in the Reader.","jetpack")),o.a.createElement(bn.a,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},Object(Oe.__)("Enable the WordPress.com toolbar","jetpack"))),!this.props.isUnavailableInOfflineMode("masterbar")&&!this.props.isLinked&&o.a.createElement(pi,{feature:"masterbar",featureLabel:Object(Oe.__)("WordPress.com Toolbar","jetpack"),text:Object(Oe.__)("Connect to enable the WordPress.com toolbar.","jetpack")}))}}]),n}(a.Component));var Po=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},isModuleFound:function(t){return Object(Lt.b)(e,t)}}}))(Object(ar.a)((function(e){var t=e.isModuleFound("carousel");if(!t)return null;var n=e.getOptionValue("carousel_display_comments","carousel"),r=e.getOptionValue("carousel_display_exif","carousel"),i=e.getOptionValue("carousel"),a=function(t,n,r,a){return o.a.createElement(rn.a,{checked:t,disabled:!i||e.isSavingAnyOption(["carousel",n]),onChange:r},o.a.createElement("span",{className:"jp-form-toggle-explanation"},a))};return o.a.createElement(tr,tt()({},e,{module:"media",header:Object(Oe.__)("Media","jetpack"),hideButton:!t,saveDisabled:e.isSavingAnyOption("carousel_background_color")}),o.a.createElement(nr.a,{hasChild:!0,module:{module:"carousel"},support:{link:Object(Ve.a)("jetpack-support-carousel")}},o.a.createElement("p",null,Object(Oe.__)("Create full-screen carousel slideshows for the images in your posts and pages. Carousel galleries are mobile-friendly and encourage site visitors to interact with your photos.","jetpack")),o.a.createElement(bn.a,{slug:"carousel",activated:i,toggling:e.isSavingAnyOption("carousel"),toggleModule:e.toggleModuleNow},o.a.createElement("span",{className:"jp-form-toggle-explanation"},Object(Oe.__)("Display images in a full-screen carousel gallery","jetpack"))),o.a.createElement(cn,null,a(r,"carousel_display_exif",(function(){e.updateFormStateModuleOption("carousel","carousel_display_exif")}),Object(Oe.__)("Show photo Exif metadata in carousel (when available)","jetpack")),a(n,"carousel_display_comments",(function(){e.updateFormStateModuleOption("carousel","carousel_display_comments")}),Object(Oe.__)("Show comments area in carousel","jetpack")),o.a.createElement(cn,null,o.a.createElement("p",{className:"jp-form-setting-explanation"},Object(Oe.__)("Exif data shows viewers additional technical details of a photo, like its focal length, aperture, and ISO.","jetpack"))),o.a.createElement(ln,null,o.a.createElement(un,{className:"jp-form-label-wide"},Object(Oe.__)("Carousel color scheme","jetpack")),o.a.createElement(gn,tt()({name:"carousel_background_color",value:e.getOptionValue("carousel_background_color"),disabled:!i||e.isSavingAnyOption(["carousel","carousel_background_color"])},e,{validValues:e.validValues("carousel_background_color","carousel")}))))))}))),Io=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isLinked:this.props.isLinked,getModuleOverride:this.props.getModuleOverride},t=["carousel","copy-post","custom-css","latex","masterbar","markdown","shortcodes","custom-content-types","post-by-email","infinite-scroll","widgets","widget-visibility"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;var n=this.props.userCanManageModules||this.props.userCanEditPosts,r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return o.a.createElement("div",null,o.a.createElement(nn.a,null),o.a.createElement(en.a,{title:this.props.searchTerm?Object(Oe.__)("Writing","jetpack"):Object(Oe.__)("Compose content the way you want to and streamline your publishing experience.","jetpack"),className:"jp-settings-description"}),this.props.isModuleFound("carousel")&&o.a.createElement(Po,e),n&&o.a.createElement(ko,tt()({},e,{userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("custom-content-types")&&o.a.createElement(Oo,e),o.a.createElement(So,e),o.a.createElement(No,e),this.props.isModuleFound("post-by-email")&&r&&o.a.createElement(Ao,tt()({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&o.a.createElement(xo,tt()({connectUrl:this.props.connectUrl},e)),!n&&!r&&o.a.createElement(en.a,null,Object(Oe.__)("Writing tools available to you will be shown here when an administrator enables them.","jetpack")))}}]),n}(o.a.Component);Be()(Io,"displayName","WritingSettings");var Ro=Object(s.b)((function(e){return{module:function(t){return Object(Qe.c)(e,t)},settings:Object(tn.g)(e),masterbarIsAlwaysActive:Object(Rt.w)(e),isOfflineMode:Object(qe.s)(e),isUnavailableInOfflineMode:function(t){return Object(qe.x)(e,t)},userCanEditPosts:Object(Rt.J)(e),isModuleActivated:function(t){return Object(Qe.n)(e,t)},isLinked:Object(qe.n)(e),userCanManageModules:Object(Rt.K)(e),isModuleFound:function(t){return Object(Lt.b)(e,t)},connectUrl:Object(qe.f)(e),getModuleOverride:function(t){return Object(Qe.f)(e,t)}}}))(Io),Do=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props,t=e.location,n=void 0===t?{pathname:""}:t,r=e.rewindStatus,i=e.searchTerm,a=e.siteAdminUrl,s=e.siteRawUrl,c=e.userCanManageModules,l=n.pathname,u={searchTerm:i,rewindStatus:r,userCanManageModules:c};return o.a.createElement("div",{className:"jp-settings-container"},o.a.createElement("div",{className:"jp-no-results"},i?Object(Oe.sprintf)(Object(Oe.__)("No search results found for %s","jetpack"),i):Object(Oe.__)("Enter a search term to find settings or close search.","jetpack")),o.a.createElement(ta,tt()({siteAdminUrl:a,siteRawUrl:s,active:"/security"===l||"/settings"===l&&c},u)),o.a.createElement(mi,tt()({siteRawUrl:s,active:"/discussion"===l},u)),o.a.createElement(Oi,tt()({active:"/performance"===l},u)),o.a.createElement(Eo,tt()({siteRawUrl:s,siteAdminUrl:a,active:"/traffic"===l},u)),o.a.createElement(Ro,tt()({siteAdminUrl:a,active:"/writing"===l||!c&&this.props.isModuleActivated("post-by-email")&&!this.props.isModuleActivated("publicize")},u)),o.a.createElement(oa,tt()({siteAdminUrl:a,active:"/sharing"===l||"/settings"===l&&!c&&this.props.isModuleActivated("publicize")},u)),o.a.createElement(Pi,tt()({active:"/privacy"===l},u)),o.a.createElement(Di,{searchTerm:i}))}}]),n}(o.a.Component);Be()(Do,"displayName","SearchableSettings");var Uo=Object(s.b)((function(e){return{isModuleActivated:function(t){return Object(Qe.n)(e,t)}}}))(fe(Do)),Lo=n(405),Fo=n.n(Lo),zo=n(406),Bo=n.n(zo),Vo=n(390),Ho=n.n(Vo),Ko=n(407),Jo=n.n(Ko),qo=n(408),Wo=n.n(qo),Go=n(394),Yo=n.n(Go);n(450);function $o(e){var t=e.children;return o.a.createElement("span",{className:"screen-reader-text"},t)}n(449);var Zo=function(e){Jo()(n,e);var t=Wo()(n);function n(){var e;Fo()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Yo()(Ho()(e),"state",{allTimeMax:e.props.value}),e}return Bo()(n,[{key:"getCompletionPercentage",value:function(){var e=Math.ceil((this.props.canGoBackwards?this.props.value:this.state.allTimeMax)/this.props.total*100);return Math.min(e,100)}},{key:"renderBar",value:function(){var e=this.props,t=e.color,n=e.title,r=e.total,i=e.value,o={width:this.getCompletionPercentage()+"%"};return t&&(o.backgroundColor=t),a.createElement("div",{"aria-valuemax":r,"aria-valuemin":0,"aria-valuenow":i,className:"progress-bar__progress",role:"progressbar",style:o},n&&a.createElement($o,null,n))}},{key:"render",value:function(){var e=rt()(this.props.className,"progress-bar",{"is-compact":this.props.compact,"is-pulsing":this.props.isPulsing});return a.createElement("div",{className:e},this.renderBar())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return{allTimeMax:Math.max(t.allTimeMax,e.value)}}}]),n}(a.PureComponent);Yo()(Zo,"defaultProps",{total:100,compact:!1,isPulsing:!1,canGoBackwards:!1});var Xo=function(e,t){switch(t){case"creative-mail":return{activateFeature:function(){return En.a.installPlugin("creative-mail-by-constant-contact","recommendations").then((function(){e(Object(zt.a)())}))}};case"monitor":return{activateFeature:function(){return e(Object(tn.l)({monitor:!0}))}};case"related-posts":return{activateFeature:function(){return e(Object(tn.l)({"related-posts":!0}))}};case"site-accelerator":return{activateFeature:function(){return e(Object(tn.l)({photon:!0,"photon-cdn":!0,tiled_galleries:!0,"tiled-gallery":!0}))}};case"woocommerce":return{activateFeature:function(){return En.a.installPlugin("woocommerce","recommendations").then((function(){e(Object(zt.a)())}))}};default:throw"Unknown feature slug in mapDispatchToProps recommendations/feature-utils.js: ".concat(t)}},Qo=function(e){switch(e){case"creative-mail":return{progressValue:"83",question:Object(Oe.__)("Would you like to turn site visitors into subscribers with Creative Mail?","jetpack"),description:Object(Oe.__)("The Jetpack <strong>Newsletter Form</strong> combined with <strong>Creative Mail</strong> by Constant Contact can help automatically gather subscribers and send them beautiful emails. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://jetpack.com/support/jetpack-blocks/form-block/newsletter-sign-up-form/",ctaText:Object(Oe.__)("Install Creative Mail","jetpack"),illustrationPath:"/recommendations/creative-mail-illustration.svg"};case"monitor":return{progressValue:"50",question:Object(Oe.__)("Would you like Downtime Monitoring to notify you if your site goes offline?","jetpack"),description:Object(Oe.__)("If your site ever goes down, <strong>Downtime Monitoring</strong> will send you an email or push notitification to let you know. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://jetpack.com/support/monitor/",ctaText:Object(Oe.__)("Enable Downtime Monitoring","jetpack"),illustrationPath:"/recommendations/monitor-illustration.svg"};case"related-posts":return{progressValue:"67",question:Object(Oe.__)("Would you like Related Posts to display at the bottom of your content?","jetpack"),description:Object(Oe.__)("Displaying <strong>Related Posts</strong> at the end of your content keeps visitors engaged and on your site longer. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://jetpack.com/support/related-posts/",ctaText:Object(Oe.__)("Enable Related Posts","jetpack"),illustrationPath:"/recommendations/related-posts-illustration.jpg"};case"site-accelerator":return{progressValue:"99",question:Object(Oe.__)("Would you like Site Accelerator to help your site load faster?","jetpack"),description:Object(Oe.__)("Faster sites get better ranking in search engines and help keep visitors on your site longer. <strong>Site Accelerator</strong> will automatically optimize your image and files. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://jetpack.com/support/site-accelerator/",ctaText:Object(Oe.__)("Enable Site Accelerator","jetpack"),illustrationPath:"/recommendations/site-accelerator-illustration.svg"};case"woocommerce":return{progressValue:"33",question:Object(Oe.__)("Would you like WooCommerce to power your store?","jetpack"),description:Object(Oe.__)("We’re partnered with <strong>WooCommerce</strong> — a customizable, open-source eCommerce platform built for WordPress. It’s everything you need to start selling products today. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://woocommerce.com/woocommerce-features/",ctaText:Object(Oe.__)("Install WooCommerce","jetpack"),illustrationPath:"/recommendations/woocommerce-illustration.jpg"};default:throw"Unknown step slug in recommendations/question: ".concat(e)}},es=(n(443),function(e){var t=e.answer,n=e.description,r=e.illustrationPath,i=e.progressBar,a=e.question;return o.a.createElement("div",{className:"jp-recommendations-question__main"},o.a.createElement("div",{className:"jp-recommendations-question__content"},o.a.createElement("div",{className:"jp-recommendations-question__progress-bar"},i),o.a.createElement("h1",{className:"jp-recommendations-question__question"},a),o.a.createElement("p",{className:"jp-recommendations-question__description"},n),o.a.createElement("div",{className:"jp-recommendations-question__answer"},t)),o.a.createElement("div",{className:"jp-recommendations-question__illustration-container"},o.a.createElement("img",{className:"jp-recommendations-question__illustration-background",src:Vn+"recommendations/background.svg",alt:""}),o.a.createElement("img",{className:"jp-recommendations-question__illustration-foreground",src:Vn+r,alt:""})))});es.propTypes={answer:u.a.element.isRequired,description:u.a.oneOfType([u.a.string,u.a.element]).isRequired,illustrationPath:u.a.string.isRequired,progressBar:u.a.element.isRequired,question:u.a.oneOfType([u.a.string,u.a.element]).isRequired};var ts=n(37),ns=Object(s.b)((function(e,t){return Ze()({nextRoute:Object(ts.f)(e)},Qo(t.stepSlug))}),(function(e,t){return Ze()({addSelectedRecommendation:function(t){return e(Object(ts.a)(t))},addSkippedRecommendation:function(t){return e(Object(ts.b)(t))},updateRecommendationsStep:function(t){return e(Object(ts.s)(t))}},Xo(e,t.stepSlug))}))((function(e){var t=e.activateFeature,n=e.addSelectedRecommendation,r=e.addSkippedRecommendation,i=e.ctaText,s=e.description,c=e.descriptionLink,l=e.illustrationPath,u=e.nextRoute,p=e.progressValue,d=e.question,h=e.stepSlug,f=e.updateRecommendationsStep;Object(a.useEffect)((function(){f(h)}),[h,f]);var m=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommended_feature_learn_more_click",{feature:h})}),[h]),g=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommended_feature_enable_click",{feature:h}),n(h),t()}),[t,n,h]),b=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommended_feature_decide_later_click",{feature:h}),r(h)}),[r,h]);return o.a.createElement(es,{progressBar:o.a.createElement(Zo,{color:"#00A32A",value:p}),question:d,description:Object(Zn.createInterpolateElement)(s,{strong:o.a.createElement("strong",null),ExternalLink:o.a.createElement(Ci.a,{href:c,target:"_blank",icon:!0,iconSize:16,onClick:m})}),answer:o.a.createElement("div",{className:"jp-recommendations-question__install-section"},o.a.createElement(sn.a,{primary:!0,href:u,onClick:g},i),o.a.createElement("a",{href:u,onClick:b},Object(Oe.__)("Not now","jetpack"))),illustrationPath:l})})),rs=n(149),is=(n(451),function(e){var t=e.answerKey,n=e.checked,r=e.info,i=e.title,s=e.updateCheckboxAnswer,c=Object(a.useCallback)((function(e){if("checkbox"===e.target.type){var r=!n;s(Be()({},t,r))}}),[t,n,s]),l=Object(a.useCallback)((function(e){e.stopPropagation()}),[]),u=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_site_type_popover_click",{type:t.replace("-","_")})}),[t]);return o.a.createElement("div",{className:rt()("jp-checkbox-answer__container",{checked:n}),onClick:c,onKeyPress:c,role:"checkbox","aria-checked":n,tabIndex:0},o.a.createElement("div",{className:"jp-checkbox-answer__checkbox"},o.a.createElement("input",{id:t,type:"checkbox",defaultChecked:n,tabIndex:-1})),o.a.createElement("label",{htmlFor:t,className:"jp-checkbox-answer__title"},i),o.a.createElement("div",{className:"jp-checkbox-answer__info",onClick:l,onKeyPress:l,role:"presentation"},o.a.createElement(rs.a,{position:"top right",onClick:u},r)))});is.propTypes={answerKey:u.a.string.isRequired,info:u.a.string.isRequired,title:u.a.string.isRequired};var as=Object(s.b)((function(e,t){return{checked:Object(ts.e)(e,t.answerKey)}}),(function(e){return{updateCheckboxAnswer:function(t){return e(Object(ts.r)(t))}}}))(is),os=(n(452),Object(s.b)((function(e){return{nextRoute:Object(ts.f)(e),siteTitle:Object(Rt.r)(e),answers:{personal:Object(ts.e)(e,"site-type-personal"),business:Object(ts.e)(e,"site-type-business"),store:Object(ts.e)(e,"site-type-store"),other:Object(ts.e)(e,"site-type-other")}}}),(function(e){return{updateRecommendationsStep:function(t){return e(Object(ts.s)(t))},saveRecommendationsData:function(){return e(Object(ts.q)())}}}))((function(e){var t=e.answers,n=e.nextRoute,r=e.saveRecommendationsData,i=e.siteTitle,s=e.updateRecommendationsStep;Object(a.useEffect)((function(){s("site-type-question")}),[s]);var c=Object(a.useCallback)((function(){r(),Xe.a.tracks.recordEvent("jetpack_recommendations_site_type_answered",t)}),[t,r]),l=o.a.createElement("div",{className:"jp-recommendations-question__site-type-answer-container"},o.a.createElement("div",{className:"jp-recommendations-question__site-type-checkboxes"},o.a.createElement(as,{answerKey:"site-type-personal",title:Object(Oe.__)("Personal","jetpack"),info:Object(Oe.__)("Personal sites usually include blogs, resume sites, weddings or other events, and hobby sites.","jetpack")}),o.a.createElement(as,{answerKey:"site-type-business",title:Object(Oe.__)("Business","jetpack"),info:Object(Oe.__)("Business sites usually include shops, services like lawyers, or plumbers, and advertisers or influencers.","jetpack")}),o.a.createElement(as,{answerKey:"site-type-store",title:Object(Oe.__)("Store","jetpack"),info:Object(Oe.__)("Stores typically include online e-commerce stores selling goods, services, or digital downloads.","jetpack")}),o.a.createElement(as,{answerKey:"site-type-other",title:Object(Oe.__)("Other","jetpack"),info:Object(Oe.__)("Other sites may include non-profits, colleges or schools, apps, real-estate, or others.","jetpack")})),o.a.createElement(sn.a,{primary:!0,href:n,onClick:c},Object(Oe.__)("Continue","jetpack")),o.a.createElement("div",{className:"jp-recommendations-site-type-question__continue-description"},Object(Oe.__)("All of Jetpack’s great features await you and we’ll recommend some of our favorites.","jetpack")));return o.a.createElement(es,{progressBar:o.a.createElement(Zo,{color:"#00A32A",value:"17"}),question:Object(Oe.sprintf)(Object(Oe.__)("What type of site is %s?","jetpack"),i),description:Object(Oe.__)("This assistant will help you get the most from Jetpack. Tell us more about your goals and we’ll recommend relevant features to help you succeed.","jetpack"),answer:l,illustrationPath:"/recommendations/site-type-illustration.jpg"})}))),ss=(n(453),function(e){var t=e.isInstalling,n=void 0!==t&&t,r=e.children,i=void 0===r?null:r,a=on()(e,["isInstalling","children"]),s=n?o.a.createElement("div",{className:"jp-install-button__spinner-container"},o.a.createElement(pr.Spinner,null)):i;return o.a.createElement(sn.a,a,s)}),cs=(n(454),Object(s.b)((function(e,t){return Ze()(Ze()({isFeatureActive:Object(ts.l)(e,t.featureSlug)},function(e,t){switch(t){case"creative-mail":return{configureButtonLabel:Object(Oe.__)("Settings","jetpack"),displayName:Object(Oe.__)("Creative Mail","jetpack"),summaryActivateButtonLabel:Object(Oe.__)("Install","jetpack"),configLink:Object(Rt.n)(e)+"admin.php?page=creativemail"};case"monitor":return{configureButtonLabel:Object(Oe.__)("Settings","jetpack"),displayName:Object(Oe.__)("Downtime Monitoring","jetpack"),summaryActivateButtonLabel:Object(Oe.__)("Enable","jetpack"),configLink:"#/settings?term=monitor"};case"related-posts":return{configureButtonLabel:Object(Oe.__)("Settings","jetpack"),displayName:Object(Oe.__)("Related Posts","jetpack"),summaryActivateButtonLabel:Object(Oe.__)("Enable","jetpack"),configLink:"#/settings?term=related%20posts"};case"site-accelerator":return{configureButtonLabel:Object(Oe.__)("Settings","jetpack"),displayName:Object(Oe.__)("Site Accelerator","jetpack"),summaryActivateButtonLabel:Object(Oe.__)("Enable","jetpack"),configLink:"#/settings?term=cdn"};case"woocommerce":return{configureButtonLabel:Object(Oe.__)("Settings","jetpack"),displayName:Object(Oe.__)("WooCommerce","jetpack"),summaryActivateButtonLabel:Object(Oe.__)("Install","jetpack"),configLink:Object(Rt.n)(e)+"admin.php?page=wc-admin&path=%2Fsetup-wizard"};default:throw"Unknown feature slug in mapStateToSummaryFeatureProps() recommendations/feature-utils.js: ".concat(t)}}(e,t.featureSlug)),{},{learnMoreLink:Qo(t.featureSlug).descriptionLink})}),(function(e,t){return Ze()({},Xo(e,t.featureSlug))}))((function(e){var t=e.activateFeature,n=e.configLink,r=e.configureButtonLabel,i=e.displayName,s=e.featureSlug,c=e.learnMoreLink,l=e.summaryActivateButtonLabel,u=Object(a.useState)(!1),p=lr()(u,2),d=p[0],h=p[1],f=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_configure_click",{feature:s})}),[s]),m=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_learn_more_click",{feature:s})}),[s]),g=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_enable_click",{feature:s}),h(!0),t().finally((function(){h(!1)}))}),[t,s,h]),b=o.a.createElement("div",{className:"jp-recommendations-feature-summary__cta"},e.isFeatureActive?o.a.createElement(sn.a,{href:n,onClick:f},r):o.a.createElement(ss,{primary:!0,isInstalling:d,onClick:g},l));return o.a.createElement("div",{className:rt()("jp-recommendations-feature-summary",{"is-feature-enabled":e.isFeatureActive})},e.isFeatureActive&&o.a.createElement("div",{className:"jp-recommendations-feature-summary__checkmark"},o.a.createElement(Mt.a,{icon:"checkmark-circle",size:24})),o.a.createElement("div",{className:"jp-recommendations-feature-summary__display-name"},o.a.createElement(Ci.a,{href:c,onClick:m,target:"_blank",rel:"noopener noreferrer"},i)),o.a.createElement("div",{className:"jp-recommendations-feature-summary__actions"},b))}))),ls=(n(455),function(){return o.a.createElement("div",{className:"jp-recommendations-loading-card"},o.a.createElement("img",{src:Vn+"/jetpack-logomark-blue.svg",alt:"Loading recommendations"}))}),us=(n(456),function(e){var t=e.content,n=e.illustrationPath;return o.a.createElement("div",{className:"jp-recommendations-sidebar-card"},o.a.createElement("div",{className:"jp-recommendations-sidebar-card__illustration-container"},o.a.createElement("div",{className:"jp-recommendations-sidebar-card__illustration"},o.a.createElement("img",{src:n,alt:""}))),o.a.createElement("div",{className:"jp-recommendations-sidebar-card__content"},t))}),ps=(n(457),Object(s.b)((function(e){return{siteRawUrl:Object(Rt.p)(e),planClass:Object(Sn.r)(e)?Object(vn.fb)(Object(Sn.g)(e).product_slug):Object(vn.fb)(Object(Sn.p)(e).product_slug)}}))((function(e){var t=e.planClass,n=e.siteRawUrl;Object(a.useEffect)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"one-click-restores"})}),[]);var r=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"one_click_restores"})}),[]),i=Object(vn.db)(t)?Object(Oe.__)("Real-time Backups","jetpack"):Object(Oe.__)("Daily Backups","jetpack");return o.a.createElement(us,{illustrationPath:Vn+"/recommendations/one-click-restores.svg",content:o.a.createElement("div",{className:"jp-recommendations-one-click-restores"},o.a.createElement("h2",null,Object(Oe.__)("Enable one-click restores","jetpack")),o.a.createElement("p",null,Object(Oe.sprintf)(Object(Oe.__)("Get the most out of your %s. One-click restores ensure you’ll be able to easily restore your site, if anything goes wrong.","jetpack"),i)),o.a.createElement("p",null,Object(Oe.__)("Enter your server credentials to enable one-click restores included in your plan.","jetpack")),o.a.createElement("div",{className:"jp-recommendations-one-click-restores__cta"},o.a.createElement(sn.a,{primary:!0,href:Object(Ve.a)("jetpack-backup-dash-credentials",{site:n}),onClick:r},Object(Oe.__)("Enable one-click restores","jetpack"))))})}))),ds=Object(s.b)((function(e){return{siteRawUrl:Object(Rt.p)(e)}}))((function(e){var t=e.siteRawUrl;Object(a.useEffect)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"security"})}),[]);var n=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"security"})}),[]);return o.a.createElement(us,{illustrationPath:Vn+"/recommendations/manage-security.svg",content:o.a.createElement("div",null,o.a.createElement("h2",null,Object(Oe.__)("Manage your security on Jetpack.com","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Did you know you can manage all your backups right from Jetpack.com?","jetpack")),o.a.createElement("p",null,Object(Oe.__)("You can also use your included Activity feature to monitor every change that occurs on your site!","jetpack")),o.a.createElement(sn.a,{primary:!0,href:Object(Ve.a)("jetpack-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:n},Object(Oe.__)("Manage security on Jetpack.com","jetpack"),o.a.createElement(Mt.a,{icon:"external"})))})})),hs=(n(458),{ios:{defaultSrc:Vn+"/get-apps-ios-store.svg",src:"https://linkmaker.itunes.apple.com/assets/shared/badges/{localeSlug}/appstore-lrg.svg",tracksEvent:"calypso_app_download_ios_click",getStoreLink:function(e){return"https://apps.apple.com/app/apple-store/id335703880?pt=299112&ct=".concat(e,"&mt=8")},getTitleText:function(){return Object(Oe.__)("Download the WordPress iOS mobile app.","jetpack")},getAltText:function(){return Object(Oe.__)("Apple App Store download badge","jetpack")},getLocaleSlug:function(){var e=hr().split("-")[0];return"en"===e?"en-us":"".concat(e,"-").concat(e)}},android:{defaultSrc:Vn+"/get-apps-google-play.png",src:"https://play.google.com/intl/en_us/badges/images/generic/{localeSlug}_badge_web_generic.png",tracksEvent:"calypso_app_download_android_click",getStoreLink:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"web",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mobile-download-promo-pages";return"https://play.google.com/store/apps/details?id=org.wordpress.android&referrer=utm_source%3D%".concat(e,"%26utm_medium%3D").concat(t,"%26utm_campaign%3D").concat(n)},getTitleText:function(){return Object(Oe.__)("Download the WordPress Android mobile app.","jetpack")},getAltText:function(){return Object(Oe.__)("Google Play Store download badge","jetpack")},getLocaleSlug:function(){return hr().split("-")[0]}}}),fs=function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;Ne()(this,n),r=t.call(this,e),Be()(Re()(r),"onLoadImageComplete",(function(){r.setState({hasExternalImageLoaded:!0})})),Be()(Re()(r),"onLoadImageError",(function(){r.setState({hasExternalImageLoaded:!1,imageSrc:hs[r.props.storeName].defaultSrc})})),Be()(Re()(r),"onLinkClick",(function(){Xe.a.tracks.record;var e=r.props.storeName;Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_badge",store:e})}));var i=hs[e.storeName].getLocaleSlug().toLowerCase(),a=!Object(je.startsWith)(i,"en");return r.state={shouldLoadExternalImage:a,imageSrc:a?hs[e.storeName].src.replace("{localeSlug}",i):hs[e.storeName].defaultSrc},a&&(r.image=null,r.loadImage()),r}return Pe()(n,[{key:"loadImage",value:function(){this.image=new window.Image,this.image.src=this.state.imageSrc,this.image.onload=this.onLoadImageComplete,this.image.onerror=this.onLoadImageError}},{key:"render",value:function(){var e,t=this.props,n=t.altText,r=t.titleText,i=t.storeLink,a=t.storeName,s=t.utm_source,c=t.utm_medium,l=t.utm_campaign,u=this.state,p=u.imageSrc,d=u.hasExternalImageLoaded,h=rt()("jp-recommendations__app-badge",(e={},Be()(e,"".concat(a,"-app-badge"),!0),Be()(e,"is-external-image",d),e)),f=hs[a];return o.a.createElement("figure",{className:h},o.a.createElement("a",{href:i||f.getStoreLink(s,c,l),onClick:this.onLinkClick,target:"_blank",rel:"noopener noreferrer"},o.a.createElement("img",{src:p,title:r||f.getTitleText(),alt:n||f.getAltText()})))}}]),n}(a.PureComponent);Be()(fs,"propTypes",{altText:u.a.string,storeLink:u.a.string,storeName:u.a.oneOf(["ios","android"]).isRequired,titleText:u.a.string,utm_source:u.a.string.isRequired,utm_campaign:u.a.string,utm_medium:u.a.string}),Be()(fs,"defaultProps",{altText:"",storeLink:null,titleText:""});var ms,gs,bs,vs,_s=Object(s.b)(null,null)(fs),ys=(n(459),function(){var e=[Object(Oe.__)("Refined post and page editor","jetpack"),Object(Oe.__)("Manage multiple sites from one dashboard","jetpack"),Object(Oe.__)("Multi-site plugin management","jetpack"),Object(Oe.__)("Free stock photo library","jetpack"),Object(Oe.__)("Update your site from any device","jetpack")];Object(a.useEffect)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"mobile_app"})}),[]);var t=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_wpcom"})}),[]);return o.a.createElement(us,{illustrationPath:Vn+"/recommendations/mobile-app.svg",content:o.a.createElement("div",null,o.a.createElement("h2",null,Object(Oe.__)("Explore a better editing experience","jetpack")),o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("With Jetpack, you have <strong>free access</strong> to managing your site with <a>WordPress.com</a> and the Android and iOS WordPress apps.","jetpack"),{strong:o.a.createElement("strong",null),a:o.a.createElement("a",{href:"https://wordpress.com",target:"_blank",rel:"noreferrer",onClick:t})})),o.a.createElement("ul",{className:"jp-recommendations-sidebar-card__features"},e.map((function(e){return o.a.createElement("li",null,o.a.createElement(Mt.a,{icon:"checkmark-circle"}),e)}))),o.a.createElement("div",{className:"jp-recommendations-sidebar-card__apps-badge"},o.a.createElement(_s,{storeName:"ios",utm_source:"jetpack-plugin-recommendations"}),o.a.createElement(_s,{storeName:"android",utm_source:"jetpack-plugin-recommendations"})))})}),Es=(n(460),function(e){var t=e.upgradeUrl;Object(a.useEffect)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"upsell_no_price"})}),[]);var n=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"upsell_no_price"})}),[]),r=[Object(Oe.__)("Robust security to keep your site safe","jetpack"),Object(Oe.__)("Speed-enhancing performance tools","jetpack"),Object(Oe.__)("Increase site growth with marketing","jetpack")];return o.a.createElement("div",{className:"jp-recommendations-product-card-upsell-no-price"},o.a.createElement("div",{className:"jp-recommendations-product-card-upsell-no-price__header-chrome"},o.a.createElement("img",{src:Vn+"/star.svg",alt:""}),Object(Oe.__)("Recommended premium product","jetpack")),o.a.createElement("div",{className:"jp-recommendations-product-card-upsell-no-price__padding"},o.a.createElement("h2",null,Object(Oe.__)("Powerful security, performance, and marketing","jetpack")),o.a.createElement("ul",null,r.map((function(e){return o.a.createElement("li",{key:e},o.a.createElement(Mt.a,{icon:"checkmark-circle"}),e)}))),o.a.createElement("p",null,Object(Oe.__)("Explore premium Jetpack product bundles or pick and choose exactly what you need.","jetpack")),o.a.createElement(sn.a,{primary:!0,href:t,onClick:n,target:"blank",rel:"noopener noreferrer"},Object(Oe.__)("Learn more","jetpack"),o.a.createElement(Mt.a,{icon:"external"}))))}),ws=n(395),ks=n.n(ws),js=n(409),Os=n.n(js),Cs=n(150),Ss=n.n(Cs),Ts=n(410),As=n.n(Ts);ms={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},gs=["(","?"],bs={")":["("],":":["?","?:"]},vs=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Ms={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Ns(e){var t=function(e){for(var t,n,r,i,a=[],o=[];t=e.match(vs);){for(n=t[0],(r=e.substr(0,t.index).trim())&&a.push(r);i=o.pop();){if(bs[n]){if(bs[n][0]===i){n=bs[n][1]||n;break}}else if(gs.indexOf(i)>=0||ms[i]<ms[n]){o.push(i);break}a.push(i)}bs[n]||o.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&a.push(e),a.concat(o.reverse())}(e);return function(e){return function(e,t){var n,r,i,a,o,s,c=[];for(n=0;n<e.length;n++){if(o=e[n],a=Ms[o]){for(r=a.length,i=Array(r);r--;)i[r]=c.pop();try{s=a.apply(null,i)}catch(l){return l}}else s=t.hasOwnProperty(o)?t[o]:+o;c.push(s)}return c[0]}(t,e)}}var xs={contextDelimiter:"",onMissingKey:null};function Ps(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},xs)this.options[n]=void 0!==t&&n in t?t[n]:xs[n]}Ps.prototype.getPluralForm=function(e,t){var n,r,i,a,o=this.pluralForms[e];return o||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),a=Ns(r),i=function(e){return+a({n:e})}),o=this.pluralForms[e]=i),o(t)},Ps.prototype.dcnpgettext=function(e,t,n,r,i){var a,o,s;return a=void 0===i?0:this.getPluralForm(e,i),o=n,t&&(o=t+this.options.contextDelimiter+n),(s=this.data[e][o])&&s[a]?s[a]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===a?n:r)};var Is=n(411),Rs=n.n(Is),Ds=n(219),Us=n.n(Ds),Ls=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function Fs(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(Ls,(function(){var e,r,i,a,o;return e=arguments[3],r=arguments[5],"%"===(a=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(o=t[0][r]):(void 0===e&&(e=n),n++,o=t[e-1]),"f"===a?o=parseFloat(o)||0:"d"===a&&(o=parseInt(o)||0),void 0!==i&&("f"===a?o=o.toFixed(i):"s"===a&&(o=o.substr(0,i))),null!=o?o:"")}))}
/*
 * Exposes number format capability
 *
 * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
 * @license See CREDITS.md
 * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
 */function zs(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,o=void 0===r?",":r,s=void 0===n?".":n,c="";return(c=(a?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,a):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=new Array(a-c[1].length+1).join("0")),c.join(s)}var Bs=Kt()("i18n-calypso"),Vs="number_format_decimals",Hs="number_format_thousands_sep",Ks="messages",Js=[function(e){return e}],qs={};function Ws(){Xs.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function Gs(e){return Array.prototype.slice.call(e)}function Ys(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&Ws("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Gs(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&Ws("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Gs(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function $s(e,t){return e.dcnpgettext(Ks,t.context,t.original,t.plural,t.count)}function Zs(e,t){for(var n=Js.length-1;n>=0;n--){var r=Js[n](Object.assign({},t));if(e.state.locale[r.original])return $s(e.state.tannin,r)}return null}function Xs(){if(!(this instanceof Xs))return new Xs;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:Rs()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new ro.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Xs.throwErrors=!1,Xs.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},Xs.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},Xs.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},Xs.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return zs(e,n,r,i)},Xs.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Xs.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==qs[n+e])return qs[n+e];var r=Us()().update(e).digest("hex");return qs[n+e]=t?r.substr(0,t):r},o=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)Js.push(o(!1));else{var s=i.substr(5).indexOf("-");if(s<0){var c=Number(i.substr(5));Js.push(o(c))}else for(var l=Number(i.substr(5,s)),u=Number(i.substr(6+s)),p=l;p<=u;p++)Js.push(o(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new Ps(Ss()({},Ks,this.state.locale)),this.state.numberFormatSettings.decimal_point=$s(this.state.tannin,Ys([Vs])),this.state.numberFormatSettings.thousands_sep=$s(this.state.tannin,Ys([Hs])),this.state.numberFormatSettings.decimal_point===Vs&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===Hs&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},Xs.prototype.getLocale=function(){return this.state.locale},Xs.prototype.getLocaleSlug=function(){return this.state.localeSlug},Xs.prototype.isRtl=function(){return"rtl"===this.state.textDirection},Xs.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},Xs.prototype.hasTranslation=function(){return!!Zs(this,Ys(arguments))},Xs.prototype.translate=function(){var e=Ys(arguments),t=Zs(this,e);if(t||(t=$s(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=Fs.apply(void 0,Os()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=As()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},Xs.prototype.reRenderTranslations=function(){Bs("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},Xs.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},Xs.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var Qs=Xs,ec=n(389),tc=n.n(ec),nc=n(388),rc=n.n(nc),ic=n(227),ac=n.n(ic),oc=n(412),sc=n.n(oc),cc=n(413),lc=n(414);var uc,pc,dc=new Qs,hc=dc.numberFormat.bind(dc),fc=(dc.translate.bind(dc),dc.configure.bind(dc),dc.setLocale.bind(dc),dc.getLocale.bind(dc),dc.getLocaleSlug.bind(dc),dc.addTranslations.bind(dc),dc.reRenderTranslations.bind(dc),dc.registerComponentUpdateHook.bind(dc),dc.registerTranslateHook.bind(dc),dc.state,dc.stateObserver,dc.on.bind(dc),dc.off.bind(dc),dc.emit.bind(dc),pc={numberFormat:(uc=dc).numberFormat.bind(uc),translate:uc.translate.bind(uc)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(dc),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return Object(cc.useSubscription)(t)}var r=Object(lc.createHigherOrderComponent)((function(e){return Object(a.forwardRef)((function(t,r){var i=n();return o.a.createElement(e,Ma()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(dc)),mc=(fc.useRtl,fc.withRtl,{AED:{symbol:"د.Ø¥.â€",grouping:",",decimal:".",precision:2},AFN:{symbol:"Ø‹",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"Ö",grouping:",",decimal:".",precision:2},ANG:{symbol:"Æ’",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"Æ’",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.â€",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"Ñ€.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"Â¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"â‚¡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"KÄ",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.â€",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.Ù….â€",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.â€",grouping:",",decimal:".",precision:2},IRR:{symbol:"ï·¼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.â€",grouping:",",decimal:".",precision:3},JPY:{symbol:"Â¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"Ñом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"â‚©",grouping:",",decimal:".",precision:0},KRW:{symbol:"â‚©",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.Ùƒ.â€",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"â‚­",grouping:",",decimal:".",precision:0},LBP:{symbol:"Ù„.Ù„.â€",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.Ù„.â€",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.Ù….â€",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"â‚®",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"ï·¼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zÅ‚",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"ï·¼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"ï·¼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£â€",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"â‚¡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.â€",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"â‚´",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"Ñўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"â‚«",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"ï·¼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"â‚©",grouping:",",decimal:".",precision:2}});function gc(e){return mc[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}n(461);var bc=function(e){var t=e.billing_timeframe,n=e.cost_timeframe,r=e.cta_text,i=e.currency_code,s=e.description,c=e.features,l=e.header,u=e.price,p=e.product_slug,d=e.title,h=e.upgradeUrl;Object(a.useEffect)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"upsell_with_price",product_slug:p})}),[p]);var f=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"upsell_with_price",product_slug:p})}),[p]),m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=gc(t);if(!r||isNaN(e))return null;var i=ks()({},r,n),a=i.decimal,o=i.grouping,s=i.precision,c=i.symbol,l=e<0?"-":"",u=Math.abs(e),p=Math.floor(u),d=hc(p,{decimals:0,thousandsSep:o,decPoint:a}),h=s>0?hc(u-p,{decimals:s,thousandsSep:o,decPoint:a}).slice(1):"";return{sign:l,symbol:c,integer:d,fraction:h}}(u,i);return o.a.createElement("div",{className:"jp-recommendations-product-card-upsell"},o.a.createElement("div",{className:"jp-recommendations-product-card-upsell__header-chrome"},o.a.createElement("img",{src:Vn+"/star.svg",alt:""}),l),o.a.createElement("div",{className:"jp-recommendations-product-card-upsell__padding"},o.a.createElement("h1",null,d),o.a.createElement("p",null,s),o.a.createElement("div",{className:"jp-recommendations-product-card-upsell__price"},o.a.createElement("span",{className:"jp-recommendations-product-card-upsell__raw-price"},o.a.createElement("h2",null,o.a.createElement("sup",{className:"jp-recommendations-product-card-upsell__currency-symbol"},m.symbol),o.a.createElement("span",{className:"jp-recommendations-product-card-upsell__price-integer"},m.integer),o.a.createElement("sup",{className:"jp-recommendations-product-card-upsell__price-fraction"},m.fraction))),o.a.createElement("span",{className:"jp-recommendations-product-card-upsell__billing-time-frame"},n,o.a.createElement("br",null),t)),o.a.createElement(sn.a,{className:"jp-recommendations-product-card-upsell__cta-button",primary:!0,href:h,onClick:f,target:"_blank",rel:"noopener noreferrer"},r,o.a.createElement(Mt.a,{icon:"external"})),o.a.createElement("ul",{className:"jp-recommendations-sidebar-card__features"},c.map((function(e){return o.a.createElement("li",{key:e},o.a.createElement(Mt.a,{icon:"checkmark-circle"}),e)})))))};bc.propTypes={title:u.a.string.isRequired,description:u.a.string.isRequired,upgradeUrl:u.a.string.isRequired,features:u.a.arrayOf(u.a.string)};n(473);var vc=Object(s.b)((function(e){var t=Object(zt.b)(e),n=Object(tn.g)(e),r=Object(ts.k)(e);return{isFetchingMainData:Object(je.isEmpty)(n)||Object(je.isEmpty)(t),isFetchingSidebarData:Object(je.isEmpty)(r),sidebarCardSlug:Object(ts.g)(e),siteTypeDisplayName:Object(ts.h)(e),summaryFeatureSlugs:Object(ts.j)(e),upgradeUrl:Object(Rt.t)(e,"jetpack-recommendations-backups"),upsell:r}}),(function(e){return{updateRecommendationsStep:function(t){return e(Object(ts.s)(t))}}}))((function(e){var t=e.isFetchingMainData,n=e.isFetchingSidebarData,r=e.sidebarCardSlug,i=e.siteTypeDisplayName,s=e.summaryFeatureSlugs,c=e.updateRecommendationsStep,l=e.upgradeUrl,u=e.upsell,p=Object(a.useCallback)((function(){Xe.a.tracks.recordEvent("jetpack_recommended_summary_learn_more_click")}),[]);Object(a.useEffect)((function(){c("summary")}),[c]);var d,h=t?o.a.createElement(ls,null):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"jp-recommendations-summary__configuration"},o.a.createElement("h1",null,Object(Oe.sprintf)(Object(Oe.__)("Nice work! Let’s ensure the features you enabled are configured for your %s.","jetpack"),i)),o.a.createElement("section",{"aria-labelledby":"enabled-recommendations"},o.a.createElement("h2",{id:"enabled-recommendations"},Object(Oe.__)("Recommendations enabled","jetpack")),o.a.createElement("div",null,s.selected.length>0?s.selected.map((function(e){return o.a.createElement(cs,{key:e,featureSlug:e})})):o.a.createElement("p",null,o.a.createElement("em",null,Object(Oe.__)("You didn’t enable any recommended features. To get the most out of Jetpack, enable some recommendations or explore all Jetpack features.","jetpack"))))),s.skipped.length>0&&o.a.createElement("section",{"aria-labelledby":"skipped-recommendations"},o.a.createElement("h2",{id:"skipped-recommendations"},Object(Oe.__)("Recommendations skipped","jetpack")),o.a.createElement("div",null,s.skipped.map((function(e){return o.a.createElement(cs,{key:e,featureSlug:e})}))))),o.a.createElement("div",{className:"jp-recommendations-summary__more-features"},o.a.createElement(Mt.a,{icon:"info-outline",size:28}),o.a.createElement("p",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("Curious what else Jetpack has to offer? <ExternalLink>View all Jetpack features</ExternalLink>","jetpack"),{ExternalLink:o.a.createElement(Ci.a,{href:"https://jetpack.com/features/comparison/",target:"_blank",rel:"noopener noreferrer",onClick:p,icon:!0,iconSize:16})}))));if(n)d=o.a.createElement(ls,null);else switch(r){case"loading":d=o.a.createElement(ls,null);break;case"upsell":d=u.hide_upsell?o.a.createElement(Es,{upgradeUrl:l}):o.a.createElement(bc,tt()({},u,{upgradeUrl:l}));break;case"one-click-restores":d=o.a.createElement(ps,null);break;case"manage-security":d=o.a.createElement(ds,null);break;case"download-app":d=o.a.createElement(ys,null);break;default:throw"Unknown sidebarCardSlug in SummaryComponent: ".concat(r)}return o.a.createElement("div",{className:"jp-recommendations-summary"},o.a.createElement("div",{className:rt()("jp-recommendations-summary__content",{isLoading:t})},h),o.a.createElement("div",{className:rt()("jp-recommendations-summary__sidebar",{isLoading:n})},d))})),_c=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"componentDidMount",value:function(){this.props.isFetchingRecommendationsData||this.props.isOfflineMode||this.props.fetchRecommendationsData()}},{key:"render",value:function(){return null}}]),n}(a.Component);Be()(_c,"propTypes",{isFetchingRecommendationsData:u.a.bool,isOfflineMode:u.a.bool}),Be()(_c,"defaultProps",{isFetchingRecommendationsData:!1,isOfflineMode:!1});var yc=Object(s.b)((function(e){return{isFetchingRecommendationsData:Object(ts.m)(e),isOfflineMode:Object(qe.s)(e)}}),(function(e){return{fetchRecommendationsData:function(){return e(Object(ts.c)())}}}))(_c),Ec=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"componentDidMount",value:function(){this.props.isFetchingRecommendationsUpsell||this.props.isOfflineMode||this.props.fetchRecommendationsUpsell()}},{key:"render",value:function(){return null}}]),n}(a.Component);Be()(Ec,"propTypes",{isFetchingRecommendationsUpsell:u.a.bool,isOfflineMode:u.a.bool}),Be()(Ec,"defaultProps",{isFetchingRecommendationsUpsell:!1,isOfflineMode:!1});var wc=Object(s.b)((function(e){return{isFetchingRecommendationsUpsell:Object(ts.n)(e),isOfflineMode:Object(qe.s)(e)}}),(function(e){return{fetchRecommendationsUpsell:function(){return e(Object(ts.d)())}}}))(Ec),kc="not-started",jc="site-type-question",Oc="woocommerce",Cc="monitor",Sc="related-posts",Tc="creative-mail",Ac="site-accelerator",Mc="summary",Nc=Object(s.b)((function(e){return{isLoading:!Object(ts.o)(e),step:Object(ts.i)(e)}}))((function(e){var t,n=e.isLoading,r=e.step;switch(r){case kc:case jc:t="/site-type";break;case Oc:t="/woocommerce";break;case Cc:t="/monitor";break;case Sc:t="/related-posts";break;case Tc:t="/creative-mail";break;case Ac:t="/site-accelerator";break;case Mc:t="/summary";break;default:throw"Unknown step ".concat(r," in RecommendationsComponent")}return o.a.createElement(o.a.Fragment,null,o.a.createElement(yc,null),o.a.createElement(wc,null),o.a.createElement(Li,null),o.a.createElement(nn.a,null),o.a.createElement(Vt,null),n?o.a.createElement("div",{className:"jp-recommendations__loading"},o.a.createElement(ls,null)):o.a.createElement(he,null,o.a.createElement(re,{exact:!0,from:"/recommendations",to:"/recommendations"+t}),o.a.createElement(se,{path:"/recommendations/site-type"},o.a.createElement(os,null)),o.a.createElement(se,{path:"/recommendations/woocommerce"},o.a.createElement(ns,{stepSlug:"woocommerce"})),o.a.createElement(se,{path:"/recommendations/monitor"},o.a.createElement(ns,{stepSlug:"monitor"})),o.a.createElement(se,{path:"/recommendations/related-posts"},o.a.createElement(ns,{stepSlug:"related-posts"})),o.a.createElement(se,{path:"/recommendations/creative-mail"},o.a.createElement(ns,{stepSlug:"creative-mail"})),o.a.createElement(se,{path:"/recommendations/site-accelerator"},o.a.createElement(ns,{stepSlug:"site-accelerator"})),o.a.createElement(se,{path:"/recommendations/summary"},o.a.createElement(vc,null))))})),xc=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackCogClick",(function(){Xe.a.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})})),e}return Pe()(n,[{key:"render",value:function(){var e,t,n=rt()(this.props.className,"jp-dash-section-header");return this.props.externalLink&&(e=o.a.createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(t=o.a.createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),o.a.createElement("div",{className:n},o.a.createElement("div",{className:"jp-dash-section-header__label"},o.a.createElement("h2",{className:"jp-dash-section-header__name"},this.props.label)),e,t)}}]),n}(o.a.Component);Be()(xc,"displayName","DashSectionHeader"),Be()(xc,"propTypes",{label:u.a.string.isRequired,settingsPath:u.a.string,externalLinkPath:u.a.string,externalLink:u.a.string,externalLinkClick:u.a.func}),Be()(xc,"defaultProps",{label:"",settingsPath:"",externalLinkPath:"",externalLink:""});var Pc=xc,Ic=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"toggleModule",(function(){var t=e.props,n=t.updateOptions,r=t.module,i=t.getOptionValue;n(Be()({},r,!i(r)))})),Be()(Re()(e),"trackPaidBtnClick",(function(){Xe.a.tracks.recordJetpackClick({target:"paid-button",feature:e.props.module,page:"aag"})})),e}return Pe()(n,[{key:"render",value:function(){var e,t,n="",r=rt()(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":"");return""!==this.props.module&&(t=Object(je.includes)(["monitor","protect","photon","vaultpress","scan","backups","akismet","search"],this.props.module)&&this.props.isOfflineMode||this.props.noToggle||"manage"===this.props.module?"":o.a.createElement(bn.a,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:this.toggleModule,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=o.a.createElement("a",{href:this.props.isOfflineMode?this.props.siteAdminUrl+"update-core.php":Object(Ve.a)("calypso-plugins-manage",{site:this.props.siteRawUrl})},o.a.createElement(Un,{showDismiss:!1,status:this.props.status,isCompact:!0},Object(Oe._x)("Updates needed","Short warning message","jetpack")))),"is-working"===this.props.status&&(t=o.a.createElement("span",{className:"jp-dash-item__active-label"},Object(Oe.__)("Active","jetpack")))),"rewind"===this.props.module&&(t=null)),this.props.pro&&!this.props.isOfflineMode&&(n=o.a.createElement(sn.a,{onClick:this.trackPaidBtnClick,compact:!0,href:"#/plans"},Object(Oe._x)("Paid","Short label appearing near a paid feature configuration block.","jetpack")),this.props.isModule&&(t=o.a.createElement(Bn,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl}))),this.props.module&&this.props.getModule&&(e=this.props.getModule(this.props.module)),o.a.createElement("div",{className:r},o.a.createElement(Tn,{label:this.props.label,cardBadge:n},this.props.userCanToggle?t:""),this.props.overrideContent?this.props.overrideContent:o.a.createElement(en.a,{className:"jp-dash-item__card",href:this.props.href},o.a.createElement("div",{className:"jp-dash-item__content"},this.props.support.link&&o.a.createElement(rr.a,tt()({module:e},this.props.support)),this.props.children)))}}]),n}(a.Component);Be()(Ic,"propTypes",{label:u.a.string,status:u.a.string,statusText:u.a.string,disabled:u.a.bool,module:u.a.string,pro:u.a.bool,isModule:u.a.bool,support:u.a.object,overrideContent:u.a.element,noToggle:u.a.bool}),Be()(Ic,"defaultProps",{label:"",module:"",pro:!1,isModule:!0,support:{text:"",link:""},noToggle:!1});var Rc=Object(s.b)((function(e){return{getModule:function(t){return Object(Qe.c)(e,t)},isOfflineMode:Object(qe.s)(e),userCanToggle:Object(Rt.K)(e),siteRawUrl:Object(Rt.p)(e),siteAdminUrl:Object(Rt.n)(e)}}))(Object(ar.a)(Ic)),Dc=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props.inOfflineMode,t=Object(Oe.__)("Jetpack keeps a complete record of everything that happens on your site, taking the guesswork out of site management, debugging, and repair.","jetpack");return o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(Rc,{label:Object(Oe.__)("Activity","jetpack"),isModule:!1,className:rt()({"jp-dash-item__is-inactive":e}),pro:!1},o.a.createElement("p",{className:"jp-dash-item__description"},e?Object(Oe.__)("Unavailable in Offline Mode.","jetpack"):t)),o.a.createElement(en.a,{key:"view-activity",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:Object(Ve.a)("calypso-activity-log",{site:this.props.siteRawUrl})},Object(Oe.__)("View site activity","jetpack")))}}]),n}(a.Component);Be()(Dc,"propTypes",{inOfflineMode:u.a.bool.isRequired,siteRawUrl:u.a.string.isRequired,sitePlan:u.a.object.isRequired}),Be()(Dc,"defaultProps",{inOfflineMode:!1,siteRawUrl:"",sitePlan:""});var Uc=Object(s.b)((function(e){return{sitePlan:Object(Sn.p)(e),inOfflineMode:Object(qe.s)(e)}}))(Dc),Lc=n(89),Fc=(n(474),function(){}),zc=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){if(!this.props.showOnMobile&&pt())return null;var e=rt()("dops-popover","dops-tooltip","is-".concat(this.props.position),this.props.className);return o.a.createElement(Lc.a,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:Fc,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),n}(a.Component);Be()(zc,"propTypes",{autoPosition:u.a.bool,className:u.a.string,id:u.a.string,isVisible:u.a.bool,position:u.a.string,rootClassName:u.a.string,status:u.a.string,showDelay:u.a.number,showOnMobile:u.a.bool}),Be()(zc,"defaultProps",{showDelay:100,position:"top",showOnMobile:!1});var Bc=zc,Vc=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{showPopover:!1}),Be()(Re()(e),"buildSections",(function(){var t,n,r=e.props.data.value,i=e.props.max,a=100-(i?Math.ceil(r/i*1e4)/100:0),s=Math.max(1,Math.floor(a)),c=[],l=e.props.data.nestedValue,u={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===a&&!e.props.active},p={height:s+"%"};c.push(o.a.createElement("div",{key:"spacer",className:rt()(u),style:p}));var d={top:s+"%"};return l&&(n={height:(r?Math.ceil(l/r*1e4)/100:0)+"%"},t=o.a.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:n})),c.push(o.a.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:d},t)),c.push(o.a.createElement("div",{key:"label",className:"dops-chart__bar-label"},e.props.label)),c})),Be()(Re()(e),"keyHandler",(function(t){"function"==typeof e.props.clickHandler&&13===t.keyCode&&e.props.clickHandler(e.props.data)})),Be()(Re()(e),"clickHandler",(function(){"function"==typeof e.props.clickHandler&&e.props.clickHandler(e.props.data)})),Be()(Re()(e),"mouseEnter",(function(){e.setState({showPopover:!0})})),Be()(Re()(e),"mouseLeave",(function(){e.setState({showPopover:!1})})),Be()(Re()(e),"renderTooltip",(function(){if(!e.props.data.tooltipData||!e.props.data.tooltipData.length||e.props.isTouch)return null;var t=e.props.data.tooltipData.map((function(e,t){var n,r=["module-content-list-item"];return e.icon&&(n=o.a.createElement(Mt.a,{icon:e.icon,size:18})),r.push(e.className),o.a.createElement("li",{key:t,className:r.join(" ")},o.a.createElement("span",{className:"dops-wrapper"},o.a.createElement("span",{className:"value"},e.value),o.a.createElement("span",{className:"label"},n,e.label)))}));return o.a.createElement(Bc,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:e.refs&&e.refs.valueBar,isVisible:e.state.showPopover,position:e.props.tooltipPosition},o.a.createElement("ul",null,t))})),e}return Pe()(n,[{key:"render",value:function(){var e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);var n={width:1/e*100+"%"};return o.a.createElement("div",{role:"button",tabIndex:0,onKeyUp:this.keyHandler,onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,"aria-label":this.props.data.tooltipData[0].label+" — "+this.props.data.value+".",className:rt()(t),style:n},this.buildSections(),o.a.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),o.a.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),o.a.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}]),n}(o.a.Component);Be()(Vc,"displayName","ModuleChartBar"),Be()(Vc,"propTypes",{isTouch:u.a.bool,tooltipPosition:u.a.string,className:u.a.string,clickHandler:u.a.func,data:u.a.object.isRequired,max:u.a.number,count:u.a.number});var Hc=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e={width:this.props.width+"px"};return e.left=this.props.x+"px",o.a.createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}}]),n}(o.a.Component);Be()(Hc,"displayName","ModuleChartLabel"),Be()(Hc,"propTypes",{width:u.a.number.isRequired,x:u.a.number.isRequired,label:u.a.string.isRequired});var Kc=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{divisor:1,spacing:e.props.labelWidth}),Be()(Re()(e),"resize",(function(t){var n=e.props,r=e.refs.axis;!t||t instanceof Event||(n=t),r.style.overflow="hidden";var i=r.clientWidth;r.style.overflow="visible";var a=i/(n.data.length||1),o=n.labelWidth,s=Math.ceil(o/a);e.setState({divisor:s,spacing:a})})),e}return Pe()(n,[{key:"componentDidMount",value:function(){this.resizeThrottled=Object(je.throttle)(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()}},{key:"componentWillUnmount",value:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.resize(e)}},{key:"render",value:function(){var e=this.props.data,t=e.map((function(t,n){var r,i=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2;return(e.length-n-1)%this.state.divisor==0&&(r=o.a.createElement(Hc,{key:n,label:t.label,width:this.props.labelWidth,x:i})),r}),this);return o.a.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},t)}}]),n}(o.a.Component);Be()(Kc,"displayName","ModuleChartXAxis"),Be()(Kc,"propTypes",{labelWidth:u.a.number.isRequired,data:u.a.array.isRequired});var Jc=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"buildBars",(function(t){var n=e.props.data.length,r=e.props.chartWidth,i=r/n,a="bottom right";return e.props.data.map((function(e,s){var c=i*(s+1);return c+230>r&&c+i-230>0&&(a="bottom left"),o.a.createElement(Vc,{index:s,key:s,isTouch:this.props.isTouch,tooltipPosition:a,className:e.className,clickHandler:this.props.barClick,data:e,max:t,count:n})}),Re()(e))})),e}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),o.a.createElement(Kc,{data:this.props.data,labelWidth:42}))}}]),n}(o.a.Component);
/**
 * This test is for touch events.
 * It may not accurately detect a touch screen, but may be close enough depending on the use case.
 *
 * @copyright Modernizr © 2009-2015.
 * @license See CREDITS.md.
 * @see https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js
 *
 * @returns {Boolean} whether touch screen is available
 */
function qc(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}Be()(Jc,"displayName","ModuleChartBarContainer"),Be()(Jc,"propTypes",{isTouch:u.a.bool,data:u.a.array,yAxisMax:u.a.number,width:u.a.number,barClick:u.a.func});n(475);var Wc=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{maxBars:100,width:650}),Be()(Re()(e),"resize",(function(){var t,n=e.refs.chart.clientWidth-82;qc()?(n=n<=0?350:n,t=Math.floor(n/e.props.minTouchBarWidth)):t=Math.floor(n/e.props.minBarWidth),e.setState({maxBars:t,width:n})})),Be()(Re()(e),"getYAxisMax",(function(e){var t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r})),Be()(Re()(e),"getData",(function(){var t=e.props.data;return t=t.slice(0-e.state.maxBars)})),Be()(Re()(e),"getValues",(function(){var t=e.getData();return t=t.map((function(e){return e.value}),Re()(e))})),Be()(Re()(e),"isEmptyChart",(function(t){return 0===(t=t.filter((function(e){return e>0}),Re()(e))).length})),e}return Pe()(n,[{key:"componentDidMount",value:function(){this.resize=Object(je.throttle)(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.loading&&!e.loading&&this.resize()}},{key:"render",value:function(){var e,t=this.getValues(),n=this.getYAxisMax(t),r=this.getData();return t.length&&this.isEmptyChart(t)&&(e=o.a.createElement("div",{className:"dops-chart__empty"},o.a.createElement("span",{className:"dops-chart__empty_notice"},Object(Oe._x)("No activity this period","Notice in the empty statistics chart","jetpack")))),o.a.createElement("div",{ref:"chart",className:"dops-chart"},o.a.createElement("div",{className:"dops-chart__y-axis-markers"},o.a.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),o.a.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),o.a.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),o.a.createElement("div",{className:"dops-chart__y-axis"},o.a.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),o.a.createElement(Jc,{barClick:this.props.barClick,data:r,yAxisMax:n,chartWidth:this.state.width,isTouch:qc()}),e)}}]),n}(o.a.Component);Be()(Wc,"displayName","ModuleChart"),Be()(Wc,"propTypes",{loading:u.a.bool,data:u.a.array,minTouchBarWidth:u.a.number,minBarWidth:u.a.number,barClick:u.a.func}),Be()(Wc,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:je.noop});var Gc=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackViewDetailedStats",(function(){return Xe.a.tracks.recordJetpackClick("view_detailed_stats")})),Be()(Re()(e),"trackViewWpcomStats",(function(){return Xe.a.tracks.recordJetpackClick("view_wpcom_stats")})),e}return Pe()(n,[{key:"statsBottom",value:function(){var e;return[{viewsToday:(e="object"==typeof this.props.statsData.general?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"}).views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}},{key:"render",value:function(){var e=this.statsBottom()[0];return o.a.createElement("div",null,o.a.createElement("div",{className:"jp-at-a-glance__stats-summary"},o.a.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},Object(Oe._x)("Views today","Referring to a number of page views","jetpack")),o.a.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),o.a.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},Object(Oe._x)("Best overall day","Referring to a number of page views","jetpack")),o.a.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":Object(Oe.sprintf)(Object(Oe._n)("%s View","%s Views",e.bestDay.count,"jetpack"),fr(e.bestDay.count))),o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":Object(dr.dateI18n)(this.props.dateFormat,e.bestDay.day))),o.a.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},o.a.createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},Object(Oe._x)("All-time views","Referring to a number of page views","jetpack")),o.a.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":fr(e.allTime.views))),o.a.createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},o.a.createElement("p",{className:"jp-at-a-glance__stat-details"},Object(Oe._x)("All-time comments","Referring to a number of comments","jetpack")),o.a.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":fr(e.allTime.comments))))),o.a.createElement("div",{className:"jp-at-a-glance__stats-cta"},o.a.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),o.a.createElement("div",{className:"jp-at-a-glance__stats-cta-buttons"},Object(Zn.createInterpolateElement)(Object(Oe.__)("<button>View detailed stats</button>","jetpack"),{button:o.a.createElement(sn.a,{onClick:this.trackViewDetailedStats,href:this.props.siteAdminUrl+"admin.php?page=stats"})}),this.props.isLinked&&Object(Zn.createInterpolateElement)(Object(Oe.__)("<button>View more stats on WordPress.com</button>","jetpack"),{button:o.a.createElement(sn.a,{onClick:this.trackViewWpcomStats,className:"is-primary",href:Object(Ve.a)("calypso-stats-insights",{site:this.props.siteRawUrl})})}))),!this.props.isLinked&&this.props.userCanConnectAccount&&o.a.createElement(en.a,{compact:!0,className:"jp-settings-card__configure-link"},o.a.createElement(si,{connectUser:!0,from:"unlinked-user-connect",connectLegend:Object(Oe.__)("Connect your WordPress.com account to view more stats","jetpack")})))}}]),n}(a.Component);Gc.propTypes={siteRawUrl:u.a.string.isRequired,siteAdminUrl:u.a.string.isRequired,statsData:u.a.object.isRequired,isLinked:u.a.bool.isRequired,dateFormat:u.a.string.isRequired},Gc.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1,dateFormat:"F j, Y"};var Yc=Object(s.b)((function(e){return{userCanConnectAccount:Object(Rt.G)(e)}}))(Gc),$c=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){return null}}]),n}(a.Component);$c.defaultProps={fetchStatsData:function(){}};var Zc=Object(s.b)((function(e){return{fetchStatsData:function(t){return wn(e)},fetchingStatsData:Object(yn.l)(e)}}),(function(e){return{fetchStatsData:function(t){return e(wn(t))}}}))($c),Xc=function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;return Ne()(this,n),r=t.call(this,e),Be()(Re()(r),"dismissCard",(function(){r.setState({emptyStatsDismissed:!0}),r.props.updateOptions({dismiss_empty_stats_card:!0})})),Be()(Re()(r),"activateStats",(function(){return r.props.updateOptions({stats:!0})})),Be()(Re()(r),"switchToDay",(function(){return r.switchTo("day")})),Be()(Re()(r),"switchToWeek",(function(){return r.switchTo("week")})),Be()(Re()(r),"switchToMonth",(function(){return r.switchTo("month")})),r.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},r}return Pe()(n,[{key:"barClick",value:function(e){e.data.link&&(Xe.a.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}},{key:"statsChart",value:function(e){var t=this.props,n=[],r=0,i=Object(Oe.__)("M j","jetpack"),a=Object(Oe.__)("F jS","jetpack"),o=Object(Oe.__)("F Y","jetpack");return"object"!=typeof t.statsData[e]?{chartData:n,totalViews:!1}:(Object(je.forEach)(t.statsData[e].data,(function(s){var c=s[1],l=s[0],u="",p="";r+=c,"day"===e?(u=Object(dr.dateI18n)(i,l),p=Object(dr.dateI18n)(a,l)):"week"===e?(l=l.replace(/W/g,"-"),u=Object(dr.dateI18n)(i,l),p=Object(Oe.sprintf)(Object(Oe.__)("Week of %s","jetpack"),Object(dr.dateI18n)(a,l))):"month"===e&&(u=Object(dr.dateI18n)("M",l),p=Object(dr.dateI18n)(o,l)),n.push({label:u,value:c,nestedValue:null,className:"statsChartbar",data:{link:Object(Ve.a)("calypso-stats-".concat(e),{site:t.siteRawUrl,query:"startDate=".concat(l)})},tooltipData:[{label:p,value:Object(Oe.sprintf)(Object(Oe.__)("Views: %s","jetpack"),fr(c)),className:"tooltip class"},{label:Object(Oe.__)("Click to view detailed stats.","jetpack")}]})})),{chartData:n,totalViews:r})}},{key:"statsErrors",value:function(){return Object(je.get)(this.props.statsData,["general","errors"],!1)}},{key:"renderStatsChart",value:function(e){return o.a.createElement("div",null,o.a.createElement("div",{className:"jp-at-a-glance__stats-chart"},o.a.createElement(Wc,{data:e,barClick:this.barClick}),0===e.length&&o.a.createElement(pr.Spinner,null)),o.a.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},o.a.createElement(Yc,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,dateFormat:this.props.dateFormat})))}},{key:"renderEmptyStatsCard",value:function(){return o.a.createElement(en.a,{className:"jp-at-a-glance__stats-empty"},o.a.createElement("img",{src:Vn+"stats-people.svg",width:"272",height:"144",alt:Object(Oe.__)("Jetpack Stats People","jetpack"),className:"jp-at-a-glance__stats-icon"}),o.a.createElement("p",null,Object(Oe.__)("Hello there! Your stats have been activated.","jetpack"),o.a.createElement("br",null),Object(Oe.__)("Just give us a little time to collect data so we can display it for you here.","jetpack")),o.a.createElement(sn.a,{onClick:this.dismissCard,primary:!0},Object(Oe.__)("Okay, got it!","jetpack")))}},{key:"renderStatsArea",value:function(){if(this.props.getOptionValue("stats")){if(this.statsErrors())return o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive"},o.a.createElement("span",null,Object(Zn.createInterpolateElement)(Object(Oe.__)("Something happened while loading stats. Please try again later or <a>view your stats now on WordPress.com</a>","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("calypso-stats-insights",{site:this.props.siteRawUrl})})})));var e=this.statsChart(this.props.activeTab),t=e.chartData,n=e.totalViews,r=t.length&&n<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return o.a.createElement("div",{className:"jp-at-a-glance__stats-container"},r?this.renderEmptyStatsCard():this.renderStatsChart(t))}return o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive"},o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},o.a.createElement("img",{src:Vn+"stats.svg",width:"60",height:"60",alt:Object(Oe.__)("Jetpack Stats Icon","jetpack"),className:"jp-at-a-glance__stats-icon"})),o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isOfflineMode?Object(Oe.__)("Unavailable in Offline Mode","jetpack"):Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Activate Site Stats</a> to see detailed stats, likes, followers, subscribers, and more! <a1>Learn More</a1>","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:o.a.createElement("a",{href:Object(Ve.a)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})})),!this.props.isOfflineMode&&o.a.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},o.a.createElement(sn.a,{onClick:this.activateStats,primary:!0},Object(Oe.__)("Activate Site Stats","jetpack"))))}},{key:"switchTo",value:function(e){Xe.a.tracks.recordJetpackClick({target:"stats_switch_view",view:e}),this.props.switchView(e),this.props.fetchStatsData(e)}},{key:"maybeShowStatsTabs",value:function(){return!(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)&&(this.props.getOptionValue("stats")&&!this.statsErrors()?o.a.createElement("ul",{className:"jp-at-a-glance__stats-views"},o.a.createElement("li",{className:"jp-at-a-glance__stats-view"},o.a.createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToDay,className:this.getClass("day")},Object(Oe.__)("Days","jetpack"))),o.a.createElement("li",{className:"jp-at-a-glance__stats-view"},o.a.createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToWeek,className:this.getClass("week")},Object(Oe.__)("Weeks","jetpack"))),o.a.createElement("li",{className:"jp-at-a-glance__stats-view"},o.a.createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToMonth,className:this.getClass("month")},Object(Oe.__)("Months","jetpack")))):void 0)}},{key:"getClass",value:function(e){return this.props.activeTab===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}},{key:"render",value:function(){return"inactive"===this.props.getModuleOverride("stats")?o.a.createElement("div",null,o.a.createElement(Qn,{moduleName:Object(Oe.__)("Site Stats","jetpack")})):this.props.isModuleAvailable&&o.a.createElement("div",null,o.a.createElement(Zc,{range:this.props.activeTab}),o.a.createElement(Pc,{label:Object(Oe.__)("Site Stats","jetpack")},this.maybeShowStatsTabs()),o.a.createElement(en.a,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},this.renderStatsArea()))}}]),n}(a.Component);Be()(Xc,"propTypes",{isOfflineMode:u.a.bool.isRequired,siteRawUrl:u.a.string.isRequired,siteAdminUrl:u.a.string.isRequired,statsData:u.a.any.isRequired,isModuleAvailable:u.a.bool.isRequired});var Qc=Object(s.b)((function(e){return{isModuleAvailable:Object(Qe.o)(e,"stats"),activeTab:Object(yn.b)(e),dateFormat:Object(Rt.j)(e),isOfflineMode:Object(qe.s)(e),isLinked:Object(qe.n)(e),connectUrl:Object(qe.f)(e),statsData:Object(je.isEmpty)(Object(yn.e)(e))?Object(Rt.k)(e):Object(yn.e)(e),isEmptyStatsCardDismissed:Object(tn.d)(e),getModuleOverride:function(t){return Object(Qe.f)(e,t)}}}),(function(e){return{switchView:function(t){return e(function(e){return function(t){t({type:Ft.STATS_SWITCH_TAB,activeStatsTab:e})}}(t))},fetchStatsData:function(t){return e(wn(t))}}}))(Xc),el=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}},{key:"render",value:function(){return null}}]),n}(a.Component);el.defaultProps={fetchProtectCount:function(){}};var tl=Object(s.b)((function(e){return{fetchProtectCount:kn(),fetchingProtectData:Object(yn.k)(e),isModuleActivated:function(t){return Object(Qe.n)(e,t)}}}),(function(e){return Object(Nn.b)({fetchProtectCount:kn},e)}))(el),nl=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"activateProtect",(function(){return e.props.updateOptions({protect:!0})})),Be()(Re()(e),"connect",(function(){return e.props.authorizeUserInPlace()})),e}return Pe()(n,[{key:"getContent",value:function(){var e=Object(Oe.__)("Protect","jetpack"),t={text:Object(Oe.__)("Protects your site from traditional and distributed brute force login attacks.","jetpack"),link:Object(Ve.a)("jetpack-support-protect")};if(this.props.getOptionValue("protect")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner){var n=this.props.protectCount;return!1===n||"0"===n||"N/A"===n?o.a.createElement(Rc,{label:e,module:"protect",support:t,status:"is-working",className:"jp-dash-item__recently-activated"},o.a.createElement("div",{className:"jp-dash-item__recently-activated-lower"},o.a.createElement(tl,null),o.a.createElement("p",{className:"jp-dash-item__description"},Object(Oe.__)("Jetpack is actively blocking malicious login attempts. Data will display here soon!","jetpack")))):o.a.createElement(Rc,{label:e,module:"protect",support:t,status:"is-working"},o.a.createElement("h2",{className:"jp-dash-item__count"},fr(n)),o.a.createElement("p",{className:"jp-dash-item__description"},Object(Oe.__)("Total malicious attacks blocked on your site.","jetpack")))}return o.a.createElement(Rc,{label:e,module:"protect",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner},o.a.createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode&&Object(Oe.__)("Unavailable in Offline Mode","jetpack"),!this.props.isOfflineMode&&!this.props.hasConnectedOwner&&Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Connect your WordPress.com</a> account to keep your site protected from malicious sign in attempts.","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.connect})}),!this.props.isOfflineMode&&this.props.hasConnectedOwner&&Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Activate Protect</a> to keep your site protected from malicious sign in attempts.","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateProtect})})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(tl,null),this.getContent())}}]),n}(a.Component);Be()(nl,"propTypes",{isOfflineMode:u.a.bool.isRequired,protectCount:u.a.any.isRequired,isModuleAvailable:u.a.bool.isRequired,hasConnectedOwner:u.a.bool.isRequired,authorizeUserInPlace:u.a.func.isRequired});var rl=Object(s.b)((function(e){return{protectCount:Object(yn.d)(e),isOfflineMode:Object(qe.s)(e),isModuleAvailable:Object(Qe.o)(e,"protect"),hasConnectedOwner:Object(qe.k)(e)}}),(function(e){return{authorizeUserInPlace:function(){return e(Object(qe.a)())}}}))(nl),il=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"activateAndTrack",(function(){Xe.a.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),e.props.updateOptions({monitor:!0})})),Be()(Re()(e),"connect",(function(){return e.props.authorizeUserInPlace()})),e}return Pe()(n,[{key:"getContent",value:function(){var e=Object(Oe.__)("Downtime monitoring","jetpack"),t={text:Object(Oe.__)("Jetpack’s downtime monitor will continuously monitor your site and alert you the moment that downtime is detected.","jetpack"),link:Object(Ve.a)("jetpack-support-monitor")};if(this.props.getOptionValue("monitor")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner)return o.a.createElement(Rc,{label:e,module:"monitor",support:t,status:"is-working"},o.a.createElement("p",{className:"jp-dash-item__description"},Object(Oe.__)("Jetpack is monitoring your site. If we think your site is down, you will receive an email.","jetpack")));var n=this.props.hasConnectedOwner?Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Activate Monitor</a> to receive email notifications if your site goes down.","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateAndTrack})}):Object(Oe.__)("Get alerts if your site goes offline. We’ll let you know when it’s back up, too.","jetpack");return o.a.createElement(Rc,{label:e,module:"monitor",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner},o.a.createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?Object(Oe.__)("Unavailable in Offline Mode.","jetpack"):n),!this.props.isOfflineMode&&!this.props.hasConnectedOwner&&o.a.createElement("p",{className:"jp-dash-item__description jp-dash-item__connect"},Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Connect your WordPress.com</a> account to use this feature.","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.connect})})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&this.getContent()}}]),n}(a.Component);Be()(il,"propTypes",{isOfflineMode:u.a.bool.isRequired,isModuleAvailable:u.a.bool.isRequired,hasConnectedOwner:u.a.bool.isRequired});var al=Object(s.b)((function(e){return{isOfflineMode:Object(qe.s)(e),isModuleAvailable:Object(Qe.o)(e,"monitor"),hasConnectedOwner:Object(qe.k)(e)}}),(function(e){return{authorizeUserInPlace:function(){return e(Object(qe.a)())}}}))(il),ol=function(e){return o.a.createElement(Rc,{label:Object(Oe.__)("Scan","jetpack"),module:e.feature||"scan",support:{text:Object(Oe.__)("Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data.","jetpack"),link:Object(Ve.a)("jetpack-support-security")},className:e.className||"",status:e.status||"",pro:!0,overrideContent:e.overrideContent},Object(je.isArray)(e.content)?e.content:o.a.createElement("p",{className:"jp-dash-item__description"},e.content))},sl=function(e){return ol({className:"jp-dash-item__is-active",status:"is-working",content:e})},cl=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"onActivateVaultPressClick",(function(){return Xe.a.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"vaultpress"}),e.props.createNotice("is-info",Object(Oe.__)("Activating VaultPress…","jetpack"),{id:"activating-vaultpress"}),En.a.activateVaultPress().then((function(){e.props.removeNotice("activating-vaultpress"),window.location.href=e.props.siteAdminUrl+"admin.php?page=vaultpress"})).catch((function(){e.props.removeNotice("activating-vaultpress"),e.props.createNotice("is-error",Object(Oe.__)("Could not activate VaultPress.","jetpack"),{id:"activate-vaultpress-failure"})})),!1})),e}return Pe()(n,[{key:"getVPContent",value:function(){var e=this.props,t=e.vaultPressData,n=e.hasConnectedOwner;if("not_registered"===(null==t?void 0:t.code))return ol({className:"jp-dash-item__is-inactive",status:"not-registered",content:Object(Zn.createInterpolateElement)(Object(Oe.__)("VaultPress is having difficulties scanning. Please make sure your <keyLink>registration key is entered</keyLink>. If you require further assistance please <supportLink>contact support</supportLink>.","jetpack"),{keyLink:o.a.createElement("a",{href:this.props.siteAdminUrl+"admin.php?page=vaultpress"}),supportLink:o.a.createElement("a",{href:Object(Ve.a)("vaultpress-help")})})});if(Object(je.get)(t,["data","features","security"],!1)){var r=this.props.scanThreats;if(0!==r)return this.renderThreatsFound(r,Object(Ve.a)("vaultpress-dashboard"));if("success"===t.code)return ol({status:"is-working",content:Object(Oe.__)("No threats found, you're good to go!","jetpack")})}if(this.props.fetchingSiteData)return ol({content:Object(Oe.__)("Loading…","jetpack")});var i=!1!==this.props.sitePlan,a=["is-premium-plan","is-business-plan"].includes(this.props.planClass);return i&&a?this.props.isVaultPressInstalled?ol({className:"jp-dash-item__is-inactive",status:"pro-inactive",content:[o.a.createElement("p",{className:"jp-dash-item__description",key:"inactive-scanning"},Object(Zn.createInterpolateElement)(Object(Oe.__)("VaultPress is not active, <a>please activate</a> to enable automatic scanning for security for threats.","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.onActivateVaultPressClick})}))]}):ol({className:"jp-dash-item__is-inactive",status:"pro-uninstalled",content:[o.a.createElement("p",{className:"jp-dash-item__description",key:"inactive-scanning"},Object(Zn.createInterpolateElement)(Object(Oe.__)("VaultPress is not installed, <a>please install</a> to enable automatic scanning for security for threats.","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("calypso-plugins-vaultpress"),target:"_blank",rel:"noopener noreferrer"})}))]}):ol({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:n?this.getUpgradeBanner():this.getConnectBanner()})}},{key:"getUpgradeBanner",value:function(){return o.a.createElement($n,{callToAction:Object(Oe.__)("Upgrade","jetpack"),title:Object(Oe.__)("Purchase Jetpack Scan to protect your site from security threats with automated scanning.","jetpack"),disableHref:"false",href:this.props.upgradeUrl,eventFeature:"scan",path:"dashboard",plan:Object(vn.eb)(vn.d)})}},{key:"getConnectBanner",value:function(){return o.a.createElement($n,{callToAction:Object(Oe.__)("Connect","jetpack"),title:Object(Oe.__)("Connect your WordPress.com account to upgrade to Jetpack Scan and protect your site from security threats with automated scanning.","jetpack"),disableHref:"false",href:this.props.connectUrl,eventFeature:"scan",path:"dashboard",plan:Object(vn.eb)(vn.d)})}},{key:"renderAction",value:function(e,t){return this.props.isAtomicSite?null:o.a.createElement(en.a,{compact:!0,key:"manage-scan",className:"jp-dash-item__manage-in-wpcom",href:e,target:"_blank",rel:"noopener noreferrer"},t)}},{key:"renderThreatsFound",value:function(e,t){return o.a.createElement(o.a.Fragment,null,sl([o.a.createElement("h2",{className:"jp-dash-item__count is-alert"},fr(e)),o.a.createElement("p",{className:"jp-dash-item__description"},Object(Zn.createInterpolateElement)(Object(Oe._n)("Security threat found. <a>Click here</a> to fix them immediately.","Security threats found. <a>Click here</a> to fix them immediately.",e,"jetpack"),{a:o.a.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"})}))]),this.renderAction(t,Object(Oe.__)("View security scan details","jetpack")))}},{key:"getRewindContent",value:function(){var e=this.props,t=e.scanStatus,n=e.siteRawUrl,r=Object(Ve.a)("calypso-scanner",{site:n});if(Array.isArray(t.threats)&&t.threats.length>0)return this.renderThreatsFound(t.threats.length,r);if(t.credentials&&0===t.credentials.length)return o.a.createElement(o.a.Fragment,null,sl(Object(Oe.__)("Please finish your setup by entering your server’s credentials.","jetpack")),this.renderAction(Object(Ve.a)("jetpack-scan-dash-credentials",{site:n}),Object(Oe.__)("Enter credentials","jetpack")));switch(t.state){case"provisioning":return o.a.createElement(o.a.Fragment,null,sl(Object(Oe.__)("We are configuring your site protection.","jetpack")));case"idle":case"scanning":return o.a.createElement(o.a.Fragment,null,sl(Object(Oe.__)("No security threats found. Your site will continue to be monitored for future threats.","jetpack")),this.renderAction(Object(Ve.a)("calypso-scanner",{site:n}),Object(Oe.__)("View security scan details","jetpack")))}return!1}},{key:"getUpgradeContent",value:function(){var e=this.props.hasConnectedOwner;return ol({className:"jp-dash-item__is-inactive",overrideContent:e?this.getUpgradeBanner():this.getConnectBanner()})}},{key:"getContent",value:function(){var e=this.props.scanStatus;return e.state&&"unavailable"!==e.state?o.a.createElement("div",{className:"jp-dash-item"},this.getRewindContent()):"vp_active_on_site"===e.reason?this.getVPContent():this.getUpgradeContent()}},{key:"render",value:function(){if(!this.props.showBackups)return null;if(this.props.isOfflineMode)return ol({className:"jp-dash-item__is-inactive",content:Object(Oe.__)("Unavailable in Offline Mode.","jetpack")});var e=this.props.fetchingScanStatus||this.props.fetchingVaultPressData;return o.a.createElement("div",null,e?ol({content:Object(Oe.__)("Loading…","jetpack")}):this.getContent())}}]),n}(a.Component);Be()(cl,"propTypes",{siteRawUrl:u.a.string.isRequired,siteAdminUrl:u.a.string.isRequired,vaultPressData:u.a.any.isRequired,scanThreats:u.a.any.isRequired,sitePlan:u.a.object.isRequired,isOfflineMode:u.a.bool.isRequired,isVaultPressInstalled:u.a.bool.isRequired,fetchingSiteData:u.a.bool.isRequired,upgradeUrl:u.a.string.isRequired,connectUrl:u.a.string.isRequired,hasConnectedOwner:u.a.bool.isRequired}),Be()(cl,"defaultProps",{siteRawUrl:"",siteAdminUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isOfflineMode:!1,isVaultPressInstalled:!1,fetchingSiteData:!1});var ll=Object(s.b)((function(e){var t=Object(Sn.p)(e);return{isAtomicSite:Object(Rt.w)(e),isOfflineMode:Object(qe.s)(e),scanStatus:Object(Mn.a)(e),fetchingScanStatus:Object(Mn.b)(e),isVaultPressInstalled:Object(zt.e)(e,"vaultpress/vaultpress.php"),fetchingVaultPressData:Object(yn.m)(e),vaultPressData:Object(yn.f)(e),scanThreats:Object(yn.g)(e),fetchingSiteData:Object(Sn.x)(e),sitePlan:t,planClass:Object(vn.fb)(Object(je.get)(t,"product_slug","")),showBackups:Object(Rt.D)(e),upgradeUrl:Object(Rt.t)(e,"aag-scan"),connectUrl:Object(qe.f)(e),hasConnectedOwner:Object(qe.k)(e)}}),{createNotice:Si.a,removeNotice:Si.c})(cl),ul=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}},{key:"render",value:function(){return null}}]),n}(a.Component);ul.defaultProps={fetchAkismetData:function(){}};var pl=Object(s.b)((function(e){return{fetchAkismetData:On(),fetchingAkismetData:Object(yn.j)(e)}}),(function(e){return Object(Nn.b)({fetchAkismetData:On},e)}))(ul),dl=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"onActivateClick",(function(){return e.trackActivateClick(),e.props.createNotice("is-info",Object(Oe.__)("Activating Akismet…","jetpack"),{id:"activating-akismet"}),En.a.activateAkismet().then((function(){e.props.removeNotice("activating-akismet"),window.location.href=e.props.siteAdminUrl+"admin.php?page=akismet-key-config"})).catch((function(){e.props.removeNotice("activating-akismet"),e.props.createNotice("is-error",Object(Oe.__)("Could not activate Akismet.","jetpack"),{id:"activate-akismet-failure"})})),!1})),e}return Pe()(n,[{key:"trackActivateClick",value:function(){Xe.a.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"anti-spam"})}},{key:"getContent",value:function(){var e=this,t=this.props.akismetData,n=Object(Oe.__)("Anti-spam","jetpack"),r="jetpack_free"===Object(je.get)(this.props.sitePlan,"product_slug","jetpack_free"),i={text:Object(Oe.__)("Jetpack Anti-spam powered by Akismet. Comments and contact form submissions are checked against our global database of spam.","jetpack"),link:"https://akismet.com/",privacyLink:"https://automattic.com/privacy/"},a=function(){return e.props.hasConnectedOwner?(t=Object(Zn.createInterpolateElement)(Object(Oe.__)("Already have a key? <a>Activate Akismet</a>","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:e.onActivateClick})}),o.a.createElement($n,{callToAction:Object(Oe.__)("Upgrade","jetpack"),title:Object(Oe.__)("Automatically clear spam from comments and forms.","jetpack"),description:t,disableHref:"false",href:e.props.upgradeUrl,eventFeature:"akismet",path:"dashboard",plan:Object(vn.eb)(vn.f)})):o.a.createElement($n,{callToAction:Object(Oe.__)("Connect","jetpack"),title:Object(Oe.__)("Connect your WordPress.com account to upgrade and automatically clear spam from comments and forms","jetpack"),disableHref:"false",href:e.props.connectUrl,eventFeature:"akismet",path:"dashboard",plan:Object(vn.eb)(vn.f)});var t};if("N/A"===t)return o.a.createElement(Rc,{label:n,module:"akismet",support:i,pro:!0},o.a.createElement("p",{className:"jp-dash-item__description"},Object(Oe.__)("Loading…","jetpack")));var s=!1!==this.props.sitePlan;if(r){if("not_installed"===t)return o.a.createElement(Rc,{label:n,module:"akismet",support:i,className:"jp-dash-item__is-inactive",status:s?"pro-uninstalled":"no-pro-uninstalled-or-inactive",pro:!0,overrideContent:a()});if("not_active"===t)return o.a.createElement(Rc,{label:n,module:"akismet",support:i,status:s?"pro-inactive":"no-pro-uninstalled-or-inactive",className:"jp-dash-item__is-inactive",pro:!0,overrideContent:a()});if("invalid_key"===t)return o.a.createElement(Rc,{label:n,module:"akismet",support:i,className:"jp-dash-item__is-inactive",pro:!0,overrideContent:a()})}return["not_installed","not_active","invalid_key"].includes(t)?o.a.createElement(Rc,{label:n,module:"akismet",support:i,className:"jp-dash-item__is-inactive",pro:!0},Object(Oe.__)("Your Jetpack plan provides anti-spam protection through Akismet. Click 'set up' to enable it on your site.","jetpack")):[o.a.createElement(Rc,{key:"comment-moderation",label:n,module:"akismet",support:i,status:"is-working",pro:!0},o.a.createElement("h2",{className:"jp-dash-item__count"},fr(t.all.spam)),o.a.createElement("p",{className:"jp-dash-item__description"},Object(Oe._x)("Spam comments blocked.",'Example: "412 Spam comments blocked"',"jetpack"))),!this.props.isOfflineMode&&o.a.createElement(en.a,{key:"moderate-comments",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:Object(Ve.a)("calypso-comments-all",{site:this.props.siteRawUrl})},Object(Oe.__)("Moderate comments","jetpack"))]}},{key:"render",value:function(){return o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(pl,null),this.getContent())}}]),n}(a.Component);Be()(dl,"propTypes",{siteRawUrl:u.a.string.isRequired,siteAdminUrl:u.a.string.isRequired,akismetData:u.a.oneOfType([u.a.string,u.a.object]).isRequired,isOfflineMode:u.a.bool.isRequired,upgradeUrl:u.a.string.isRequired,connectUrl:u.a.string.isRequired,hasConnectedOwner:u.a.bool.isRequired}),Be()(dl,"defaultProps",{siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isOfflineMode:""});var hl=Object(s.b)((function(e){return{akismetData:Object(yn.c)(e),sitePlan:Object(Sn.p)(e),isOfflineMode:Object(qe.s)(e),upgradeUrl:Object(Rt.t)(e,"aag-akismet"),nonce:Object(Rt.e)(e),connectUrl:Object(qe.f)(e),hasConnectedOwner:Object(qe.k)(e)}}),{createNotice:Si.a,removeNotice:Si.c})(dl),fl=function(e){return o.a.createElement(Rc,{label:Object(Oe.__)("Backup","jetpack"),module:e.feature||"backups",support:{text:Object(Oe.__)("Jetpack Backups allow you to easily restore or download a backup from a specific moment.","jetpack"),link:Object(Ve.a)("jetpack-support-backup")},className:e.className,status:e.status,pro:!0,overrideContent:e.overrideContent},o.a.createElement("p",{className:"jp-dash-item__description"},e.content))},ml=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.isVaultPressInstalled,r=e.getOptionValue,i=e.siteRawUrl,a=e.vaultPressData;return r("vaultpress")&&"success"===Object(je.get)(a,"code","")?fl({className:"jp-dash-item__is-active",status:"is-working",content:o.a.createElement("span",null,Object(je.get)(a,"message","")," ",Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>View backup details</a>.","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("vaultpress-dashboard"),target:"_blank",rel:"noopener noreferrer"})}))}):Object(je.isEmpty)(t)?fl({className:"",status:"",content:Object(Oe.__)("Loading…","jetpack")}):"jetpack_free"!==Object(je.get)(t,"product_slug","jetpack_free")?fl({className:"jp-dash-item__is-inactive",status:n?"pro-inactive":"pro-uninstalled",content:Object(Zn.createInterpolateElement)(Object(Oe.__)("To automatically back up your entire site, please <a>install and activate</a> VaultPress.","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("calypso-plugins-setup",{site:i,query:"only=backups"}),target:"_blank",rel:"noopener noreferrer"})})}):fl({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:this.props.hasConnectedOwner?o.a.createElement($n,{callToAction:Object(Oe.__)("Upgrade","jetpack"),title:Object(Oe.__)("Never worry about losing your site – automatic backups keep your content safe.","jetpack"),disableHref:"false",href:this.props.upgradeUrl,eventFeature:"backups",path:"dashboard",plan:Object(vn.eb)(vn.e)}):o.a.createElement($n,{callToAction:Object(Oe.__)("Connect","jetpack"),title:Object(Oe.__)("Connect your WordPress.com account to upgrade and get automatic backups that keep your content safe.","jetpack"),disableHref:"false",href:this.props.connectUrl,eventFeature:"backups",path:"dashboard",plan:Object(vn.eb)(vn.e)})})}},{key:"getRewindContent",value:function(){var e=this.props,t=e.planClass,n=e.rewindStatus,r=e.siteRawUrl,i=function(e,t){return o.a.createElement(en.a,{compact:!0,key:"manage-backups",className:"jp-dash-item__manage-in-wpcom",href:e},t)},a=function(e){return fl({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",content:e})};switch(n){case"provisioning":return o.a.createElement(o.a.Fragment,null,a(Object(Oe.__)("We are configuring your site's backups.","jetpack")));case"awaiting_credentials":return o.a.createElement(o.a.Fragment,null,a(Object(Oe.__)("You need to enter your server's credentials to finish the setup.","jetpack")),i(Object(Ve.a)("jetpack-backup-dash-credentials",{site:r}),Object(Oe.__)("Enter credentials","jetpack")));case"active":var s=["is-business-plan","is-realtime-backup-plan"].includes(t)?Object(Oe.__)("We are backing up your site in real-time.","jetpack"):Object(Oe.__)("We are backing up your site daily.","jetpack");return o.a.createElement(o.a.Fragment,null,a(s),i(Object(Ve.a)("calypso-activity-log",{site:r,query:"group=rewind"}),Object(Oe.__)("View your site's backups","jetpack")))}return!1}},{key:"render",value:function(){return this.props.showBackups?this.props.isOfflineMode?o.a.createElement("div",{className:"jp-dash-item__interior"},fl({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:Object(Oe.__)("Unavailable in Offline Mode.","jetpack")})):o.a.createElement("div",null,o.a.createElement(Pn,null),"unavailable"===this.props.rewindStatus||""===this.props.rewindStatus?this.getVPContent():o.a.createElement("div",{className:"jp-dash-item"},this.getRewindContent())):null}}]),n}(a.Component);Be()(ml,"propTypes",{siteRawUrl:u.a.string.isRequired,getOptionValue:u.a.func.isRequired,rewindStatus:u.a.string.isRequired,vaultPressData:u.a.any.isRequired,sitePlan:u.a.object.isRequired,isOfflineMode:u.a.bool.isRequired,isVaultPressInstalled:u.a.bool.isRequired,upgradeUrl:u.a.string.isRequired,connectUrl:u.a.string.isRequired,hasConnectedOwner:u.a.bool.isRequired}),Be()(ml,"defaultProps",{siteRawUrl:"",getOptionValue:je.noop,vaultPressData:"",sitePlan:"",isOfflineMode:!1,isVaultPressInstalled:!1,rewindStatus:""});var gl=Object(s.b)((function(e){var t=Object(Sn.p)(e);return{vaultPressData:Object(yn.f)(e),sitePlan:t,planClass:Object(vn.fb)(t),isOfflineMode:Object(qe.s)(e),isVaultPressInstalled:Object(zt.e)(e,"vaultpress/vaultpress.php"),showBackups:Object(Rt.D)(e),upgradeUrl:Object(Rt.t)(e,"aag-backups"),connectUrl:Object(qe.f)(e),hasConnectedOwner:Object(qe.k)(e)}}))(ml),bl=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"activatePhoton",(function(){return e.props.updateOptions({photon:!0})})),e}return Pe()(n,[{key:"getContent",value:function(){var e=Object(Oe.__)("Image Accelerator","jetpack"),t={text:Object(Oe.__)("Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site.","jetpack"),link:Object(Ve.a)("jetpack-support-photon")};return this.props.getOptionValue("photon")?o.a.createElement(Rc,{label:e,module:"photon",support:t,status:"is-working"},o.a.createElement("p",{className:"jp-dash-item__description"},Object(Oe.__)("Jetpack is optimizing your image sizes and download speed using our fast global network of servers. This improves your site's performance on desktop and mobile devices.","jetpack"))):o.a.createElement(Rc,{label:e,module:"photon",support:t,className:"jp-dash-item__is-inactive"},o.a.createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?Object(Oe.__)("Unavailable in Offline Mode","jetpack"):Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Activate</a> to optimize image sizes and load images from Jetpack's fast global network of servers. This improves your site's performance on desktop and mobile devices.","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activatePhoton})})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&this.getContent()}}]),n}(a.Component);Be()(bl,"propTypes",{isOfflineMode:u.a.bool.isRequired,isModuleAvailable:u.a.bool.isRequired});var vl=Object(s.b)((function(e){return{isOfflineMode:Object(qe.s)(e),isModuleAvailable:Object(Qe.o)(e,"photon")}}))(bl),_l=Object(Oe.__)("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),yl=Object(Oe.__)("Customize your Search experience.","jetpack"),El=Object(Oe.__)("Search supports many customizations. ","jetpack"),wl=function(e){return o.a.createElement(Rc,{label:Object(Oe.__)("Search","jetpack"),module:"search",support:{text:El,link:Object(Ve.a)("jetpack-support-search")},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0,overrideContent:e.overrideContent},o.a.createElement("p",{className:"jp-dash-item__description"},e.content))},kl=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"activateSearch",(function(){e.props.updateOptions(Ze()({search:!0},e.props.hasSearchProduct?{instant_search_enabled:!0}:{}))})),e}return Pe()(n,[{key:"trackSearchLink",value:function(){Xe.a.tracks.recordJetpackClick({type:"upgrade-link",target:"at-a-glance",feature:"search"})}},{key:"render",value:function(){return this.props.isFetching?wl({status:"",content:Object(Oe.__)("Loading…","jetpack")}):this.props.isOfflineMode?wl({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,content:Object(Oe.__)("Unavailable in Offline Mode","jetpack")}):this.props.isBusinessPlan||this.props.hasSearchProduct?this.props.getOptionValue("search")?o.a.createElement("div",{className:"jp-dash-item"},o.a.createElement(Rc,{label:Object(Oe.__)("Search","jetpack"),module:"search",support:{text:El,link:Object(Ve.a)("jetpack-support-search")},className:"jp-dash-item__is-active",isModule:!1,pro:!0},o.a.createElement("p",{className:"jp-dash-item__description"},Object(Oe.__)("Jetpack Search is powering search on your site.","jetpack"))),this.props.hasSearchProduct?o.a.createElement(en.a,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[section]=jetpack_search"},yl):o.a.createElement(en.a,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[panel]=widgets"},Object(Oe.__)("Add Search (Jetpack) Widget","jetpack"))):wl({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:Object(Zn.createInterpolateElement)(Object(Oe.__)("<a>Activate</a> to help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),{a:o.a.createElement("a",{href:"javascript:void(0)",onClick:this.activateSearch})})}):wl({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,overrideContent:this.props.hasConnectedOwner?o.a.createElement($n,{callToAction:Object(Oe.__)("Upgrade","jetpack"),title:_l,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"search",path:"dashboard",plan:Object(vn.eb)(vn.c),icon:"search"}):o.a.createElement($n,{callToAction:Object(Oe.__)("Connect","jetpack"),title:Object(Oe.__)("Connect your WordPress.com account to upgrade and get Jetpack Search, which helps your visitors instantly find the right content – right when they need it.","jetpack"),disableHref:"false",href:this.props.connectUrl,eventFeature:"search",path:"dashboard",plan:Object(vn.eb)(vn.c),icon:"search"})})}}]),n}(a.Component);Be()(kl,"propTypes",{getOptionValue:u.a.func.isRequired,isOfflineMode:u.a.bool.isRequired,connectUrl:u.a.string.isRequired,hasConnectedOwner:u.a.string.isRequired}),Be()(kl,"defaultProps",{getOptionValue:je.noop,isOfflineMode:!1});var jl=Object(s.b)((function(e){return{isBusinessPlan:"is-business-plan"===Object(vn.fb)(Object(Sn.p)(e).product_slug),isOfflineMode:Object(qe.s)(e),isFetching:Object(Sn.y)(e),hasSearchProduct:Object(Sn.u)(e),upgradeUrl:Object(Rt.t)(e,"aag-search"),connectUrl:Object(qe.f)(e),hasConnectedOwner:Object(qe.k)(e)}}))(kl),Ol=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){!this.props.isFetchingUserData&&this.props.userCanConnectAccount&&this.props.fetchUserConnectionData()}},{key:"render",value:function(){return null}}]),n}(o.a.Component),Cl=Object(s.b)((function(e){return{isFetchingUserData:Object(qe.q)(e),userCanConnectAccount:Object(Rt.G)(e)}}),(function(e){return{fetchUserConnectionData:function(){return e(Object(qe.e)())}}}))(Ol),Sl=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{showModal:!1}),Be()(Re()(e),"handleOpenModal",(function(t){t.preventDefault(),Xe.a.tracks.recordJetpackClick("login_to_mobile_app_modal"),e.toggleModalVisibility()})),Be()(Re()(e),"toggleModalVisibility",(function(){e.setState({showModal:!e.state.showModal})})),Be()(Re()(e),"clickSendLoginEmail",(function(t){t.preventDefault(),Xe.a.tracks.recordJetpackClick("login_to_mobile_send_link"),e.toggleModalVisibility(),e.props.sendMobileLoginEmail()})),e}return Pe()(n,[{key:"renderModal",value:function(){return o.a.createElement(ri,{className:"mobile-magic-link__modal",onRequestClose:this.toggleModalVisibility},o.a.createElement(en.a,{className:"mobile-magic-link__modal__body"},o.a.createElement("h2",null,Object(Oe.__)("Email me a link to log in to the app","jetpack")),o.a.createElement("h4",null,Object(Oe.__)("Easily log in to the WordPress app by clicking the link we'll send to the email address on your account.","jetpack")),o.a.createElement("div",{className:"mobile-magic-link__modal-actions"},o.a.createElement(sn.a,{className:"mobile-magic-link__modal-cancel",onClick:this.toggleModalVisibility},Object(Oe._x)("Cancel","A caption for a button to cancel an action.","jetpack")),o.a.createElement(sn.a,{onClick:this.clickSendLoginEmail,primary:!0},Object(Oe._x)("Send link","A caption for a button to log in to the WordPress mobile app.","jetpack")))))}},{key:"render",value:function(){var e=this.state.showModal;return o.a.createElement("div",{className:"mobile-magic-link"},o.a.createElement("a",{className:"mobile-magic-link__button",onClick:this.handleOpenModal,onKeyDown:Dn(this.handleOpenModal),role:"button",tabIndex:"0"},Object(Oe.__)("Log in to the WordPress mobile app","jetpack")),e&&this.renderModal())}}]),n}(o.a.Component);Be()(Sl,"displayName","MobileMagicLink");var Tl=Object(s.b)((function(e){return{isSiteConnected:Object(qe.i)(e),isLinked:Object(qe.n)(e)}}),{sendMobileLoginEmail:function(){return function(e){return e({type:Ft.JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL}),e(Object(Si.c)("mobile-login-email-send")),e(Object(Si.c)("mobile-login-email-sent")),e(Object(Si.c)("mobile-login-email-error")),e(Object(Si.a)("is-info",Object(Oe.__)("Sending login email…","jetpack"),{id:"mobile-login-email-send"})),En.a.sendMobileLoginEmail().then((function(t){return e(Object(Si.c)("mobile-login-email-send")),e({type:Ft.JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_SUCCESS}),e(Object(Si.a)("is-success",Object(Oe.__)("Login email sent","jetpack"),{id:"mobile-login-email-sent",duration:2e3})),t})).catch((function(t){e({type:Ft.JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_FAIL,error:t.response}),e(Object(Si.c)("mobile-login-email-send")),e(Object(Si.a)("is-error",Object(Oe.__)("Failed to send login email","jetpack"),{id:"mobile-login-email-error"}))}))}}})(Sl),Al=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"siteConnection",value:function(){var e="";return this.props.isOfflineMode?e=o.a.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?o.a.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):o.a.createElement(Mt.a,{icon:"globe",size:64}),o.a.createElement("div",{className:"jp-connection-settings__text"},Object(Oe.__)("Your site is in Offline Mode, so it can not be connected to WordPress.com.","jetpack"))):!0===this.props.siteConnectionStatus&&(e=o.a.createElement("div",null,o.a.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?o.a.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):o.a.createElement(Mt.a,{icon:"globe",size:64}),o.a.createElement("div",{className:"jp-connection-settings__text"},Object(Oe.__)("Your site is connected to WordPress.com.","jetpack"),this.props.isConnectionOwner&&o.a.createElement("span",{className:"jp-connection-settings__is-owner"},o.a.createElement("br",null),o.a.createElement("em",null,Object(Oe.__)("You are the Jetpack owner.","jetpack"))))),this.props.userCanDisconnectSite&&o.a.createElement("div",{className:"jp-connection-settings__actions"},o.a.createElement(si,{asLink:!0,autoOpenInDisconnectRoute:!0})))),e}},{key:"userConnection",value:function(){var e=this.props.isConnectionOwner?null:o.a.createElement(si,{asLink:!0,connectUser:!0,from:"connection-settings"});return this.props.isOfflineMode?o.a.createElement("div",{className:"jp-connection-settings__info"},this.props.userGravatar?o.a.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userGravatar}):o.a.createElement(Mt.a,{icon:"user",size:64}),o.a.createElement("div",{className:"jp-connection-settings__text"},Object(Oe.__)("The site is in Offline Mode, so you can not connect to WordPress.com.","jetpack"))):this.props.isLinked?this.props.isFetchingUserData?Object(Oe.__)("Loading…","jetpack"):o.a.createElement("div",null,o.a.createElement("div",{className:"jp-connection-settings__info"},o.a.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.wpComConnectedUser.avatar}),o.a.createElement("div",{className:"jp-connection-settings__text"},Object(Zn.createInterpolateElement)(Object(Oe.sprintf)(Object(Oe.__)("Connected as <span>%s</span>","jetpack"),this.props.wpComConnectedUser.login),{span:o.a.createElement("span",{className:"jp-connection-settings__username"})}),o.a.createElement("div",{className:"jp-connection-settings__email"},this.props.wpComConnectedUser.email))),o.a.createElement("div",{className:"jp-connection-settings__actions"},e),o.a.createElement(Tl,null)):o.a.createElement("div",null,o.a.createElement("div",{className:"jp-connection-settings__info"},Object(Oe.__)("Get the most out of Jetpack.","jetpack")),o.a.createElement("div",{className:"jp-connection-settings__actions"},e))}},{key:"render",value:function(){return o.a.createElement("div",null,o.a.createElement(Cl,null),o.a.createElement("div",{className:"jp-at-a-glance__item-grid"},o.a.createElement("div",{className:"jp-at-a-glance__left"},o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(Rc,{className:"jp-connection-type",label:Object(Oe._x)("Site connection","Dashboard widget header","jetpack")},this.siteConnection()))),this.props.userCanConnectAccount&&o.a.createElement("div",{className:"jp-at-a-glance__right"},o.a.createElement("div",{className:"jp-dash-item__interior"},o.a.createElement(Rc,{className:"jp-connection-type",label:Object(Oe._x)("Account connection","Dashboard widget header","jetpack")},this.userConnection())))))}}]),n}(a.Component);Al.propTypes={siteConnectionStatus:u.a.any.isRequired,isOfflineMode:u.a.bool.isRequired,userCanDisconnectSite:u.a.bool.isRequired,isConnectionOwner:u.a.bool.isRequired,isLinked:u.a.bool.isRequired,userGravatar:u.a.any.isRequired,username:u.a.any.isRequired};var Ml=Object(s.b)((function(e){return{siteConnectionStatus:Object(qe.i)(e),isOfflineMode:Object(qe.s)(e),userCanDisconnectSite:Object(Rt.I)(e),userCanConnectAccount:Object(Rt.G)(e),userGravatar:Object(Rt.u)(e),username:Object(Rt.v)(e),isConnectionOwner:Object(qe.m)(e),isLinked:Object(qe.n)(e),siteIcon:Object(Rt.o)(e),isFetchingUserData:Object(qe.q)(e),wpComConnectedUser:Object(qe.g)(e)}}))(Al),Nl=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.isFetchingScanStatus||this.props.isOfflineMode||this.props.fetchScan()}},{key:"render",value:function(){return null}}]),n}(a.Component);Be()(Nl,"propTypes",{isFetchingScanStatus:u.a.bool,isOfflineMode:u.a.bool}),Be()(Nl,"defaultProps",{isFetchingScanStatus:!1,isOfflineMode:!1});var xl=Object(s.b)((function(e){return{isFetchingScanStatus:Object(Mn.b)(e),isOfflineMode:Object(qe.s)(e)}}),(function(e){return{fetchScan:function(){return e((function(e){return e({type:Ft.SCAN_STATUS_FETCH}),En.a.fetchScanStatus().then((function(t){return e({type:Ft.SCAN_STATUS_FETCH_RECEIVE,status:t}),t})).catch((function(t){e({type:Ft.SCAN_STATUS_FETCH_FAIL,error:t})}))}))}}}))(Nl),Pl=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackSecurityClick",(function(){return Xe.a.tracks.recordJetpackClick("aag_manage_security_wpcom")})),e}return Pe()(n,[{key:"render",value:function(){var e,t={updateOptions:this.props.updateOptions,getOptionValue:this.props.getOptionValue,isUpdating:this.props.isUpdating,multisite:this.props.multisite},n={siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl},r=o.a.createElement(Pc,{key:"securityHeader",label:Object(Oe.__)("Security","jetpack"),settingsPath:this.props.userCanManageModules?"#security":void 0,externalLink:this.props.isOfflineMode||!this.props.userCanManageModules?"":Object(Oe.__)("Manage security settings","jetpack"),externalLinkPath:this.props.isOfflineMode?"":"#/security",externalLinkClick:this.trackSecurityClick}),i=o.a.createElement("div",null,o.a.createElement(Pc,{label:Object(Oe.__)("Connections","jetpack"),className:"jp-dash-section-header__connections"}),o.a.createElement(Ml,null)),a=Object(je.get)(this.props.rewindStatus,["state"],""),s=[],c=!this.props.fetchingScanStatus&&"vp_active_on_site"===(null===(e=this.props.scanStatus)||void 0===e?void 0:e.reason);if(this.props.multisite&&!c||s.push(o.a.createElement(ll,tt()({},t,n))),this.props.multisite||s.push(o.a.createElement(gl,tt()({},t,{siteRawUrl:this.props.siteRawUrl,rewindStatus:a}))),s.push(o.a.createElement(hl,n)),"inactive"!==this.props.getModuleOverride("protect")&&s.push(o.a.createElement(rl,t)),"inactive"!==this.props.getModuleOverride("monitor")&&s.push(o.a.createElement(al,t)),"active"===a&&s.unshift(o.a.createElement(Uc,tt()({},t,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules){var l=[{header:r,cards:s}],u=[];return"inactive"!==this.props.getModuleOverride("photon")&&u.push(o.a.createElement(vl,t)),"inactive"!==this.props.getModuleOverride("search")&&u.push(o.a.createElement(jl,t)),u.length&&l.push({header:o.a.createElement(Pc,{key:"performanceHeader",label:Object(Oe.__)("Performance","jetpack")}),cards:u}),o.a.createElement("div",{className:"jp-at-a-glance"},o.a.createElement(Vt,null),o.a.createElement(nn.a,null),o.a.createElement(xl,null),o.a.createElement(Qc,tt()({},t,n)),l.map((function(e,t){return[e.header,Object(je.chunk)(e.cards,2).map((function(e,n){var r=lr()(e,2),i=r[0],a=r[1];return o.a.createElement("div",{className:"jp-at-a-glance__item-grid",key:"card-".concat(t,"-").concat(n)},o.a.createElement("div",{className:"jp-at-a-glance__left"},i),o.a.createElement("div",{className:"jp-at-a-glance__right"},a))}))]})),i)}var p="";this.props.userCanViewStats&&(p=o.a.createElement(Qc,tt()({},t,n)));var d=o.a.createElement(rl,t),h=this.props.getOptionValue("protect")&&this.props.hasConnectedOwner;return this.props.userIsSubscriber?o.a.createElement("div",null,p,i):o.a.createElement("div",null,p,h&&r,h&&d,i)}}]),n}(a.Component),Il=Object(s.b)((function(e){return{userCanManageModules:Object(Rt.K)(e),userCanViewStats:Object(Rt.N)(e),userIsSubscriber:Object(Rt.O)(e),isOfflineMode:Object(qe.s)(e),getModuleOverride:function(t){return Object(Qe.f)(e,t)},multisite:Object(Rt.y)(e),scanStatus:Object(Mn.a)(e),fetchingScanStatus:Object(Mn.b)(e),hasConnectedOwner:Object(qe.k)(e)}}))(Object(ar.a)(Pl)),Rl=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props,t=e.expiryDate,n=e.purchaseDate,r=e.isRefundable,i=e.dateFormat;if(!t&&!n)return null;if(!t||r){var a=new Date(n);return"Invalid Date"!==a.toString()?Object(Oe.sprintf)(Object(Oe.__)("Purchased on %s.","jetpack"),Object(dr.dateI18n)(i,a)):null}var o=new Date(t);return"Invalid Date"===o.toString()?null:Object(dr.isInTheFuture)(o)?Object(Oe.sprintf)(Object(Oe.__)("Renews on %s.","jetpack"),Object(dr.dateI18n)(i,o)):Object(Oe.sprintf)(Object(Oe.__)("Expired on %s.","jetpack"),Object(dr.dateI18n)(i,o))}}]),n}(o.a.PureComponent);Be()(Rl,"propTypes",{expiryDate:u.a.string,purchaseDate:u.a.string,isRefundable:u.a.bool,dateFormat:u.a.string}),Be()(Rl,"defaultProps",{expiryDate:"",purchaseDate:"",isRefundable:!1,dateFormat:"F j, Y"});var Dl=Rl,Ul=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackClick",(function(){var t=e.props,n=t.target,r=t.feature;if(n){var i=r?{feature:r}:{};Xe.a.tracks.recordJetpackClick(Ze()({type:"upgrade-link",target:n},i))}})),e}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("a",{href:this.props.upgradeUrl,target:"_blank",rel:"noopener noreferrer",onClick:this.trackClick},this.props.children)}}]),n}(a.PureComponent);Be()(Ul,"propTypes",{source:u.a.string.isRequired,target:u.a.string.isRequired,feature:u.a.string,upgradeUrl:u.a.string.isRequired});var Ll=Object(s.b)((function(e,t){var n=t.source;return{upgradeUrl:Object(Rt.t)(e,n)}}))(Ul),Fl=Object(s.b)(null,{errorNotice:Si.b,successNotice:Si.d})((function(e){var t=e.errorNotice,n=e.successNotice,r=Object(a.useState)(!1),i=lr()(r,2),s=i[0],c=i[1],l=Object(a.useState)(""),u=lr()(l,2),p=u[0],d=u[1],h=Object(a.useCallback)((function(e){d(e.target.value)}),[]),f=Object(a.useCallback)((function(){p&&!s&&(c(!0),En.a.updateLicenseKey(p).then((function(){n(Object(Oe.__)("Jetpack license key added. It may take a minute for the license to be processed.","jetpack")),c(!1),d("")})).catch((function(){t(Object(Oe.__)("Error adding Jetpack license key.","jetpack")),c(!1)})))}),[t,n,s,p]);return o.a.createElement("div",{className:"jp-landing__plan-features-header-jetpack-license"},o.a.createElement("h3",null,Object(Oe.__)("Jetpack License","jetpack")),o.a.createElement("p",null,Object(Oe.__)('If you have a Jetpack license key paste it here to queue it for activation. Once your license is processed your product will appear under "My Plan".',"jetpack")),o.a.createElement(ir,{name:"jetpack_license_key",className:"code",value:p,placeholder:Object(Oe.__)("Jetpack licence key","jetpack"),disabled:s,onChange:h}),o.a.createElement(sn.a,{primary:!0,compact:!0,onClick:f},s?Object(Oe._x)("Applying…","Button caption","jetpack"):Object(Oe._x)("Apply license","Button caption","jetpack")))})),zl=(n(476),function(e){var t=e.productSlug,n=e.action,r=e.isError,i=e.isPlaceholder,a=e.details,s=e.tagLine,c=e.title,l=rt()("my-plan-card",{"is-placeholder":i,"has-action-only":n&&!a&&!i}),u=rt()("my-plan-card__details",{"is-error":r});return o.a.createElement("div",{className:l},o.a.createElement("div",{className:"my-plan-card__primary"},o.a.createElement("div",{className:"my-plan-card__icon"},o.a.createElement(qn,{plan:t,alt:c})),o.a.createElement("div",{className:"my-plan-card__header"},c&&o.a.createElement("h2",{className:"my-plan-card__title"},c),s&&o.a.createElement("p",{className:"my-plan-card__tag-line"},s))),(a||n||i)&&o.a.createElement("div",{className:"my-plan-card__secondary"},o.a.createElement("div",{className:u},i?null:a),o.a.createElement("div",{className:"my-plan-card__action"},i?null:n)))});zl.propTypes={productSlug:u.a.string.isRequired,action:u.a.oneOfType([u.a.node,u.a.element]),isError:u.a.bool,isPlaceholder:u.a.bool,details:u.a.oneOfType([u.a.string,u.a.node,u.a.element]),tagLine:u.a.oneOfType([u.a.string,u.a.node,u.a.element]),title:u.a.oneOfType([u.a.string,u.a.node,u.a.element])};var Bl=zl,Vl=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackRecommendationsClick",(function(){Xe.a.tracks.recordJetpackClick({target:"recommendations-button",page:"my-plan"})})),e}return Pe()(n,[{key:"getProductProps",value:function(e){var t=this.props,n=t.displayBackups,r=t.dateFormat,i=t.purchases,a={productSlug:e};if(!e)return Ze()(Ze()({},a),{},{isPlaceholder:!0});var s,c=Object(je.find)(i,(function(t){return t.product_slug===e}));switch(c&&(s=o.a.createElement(Dl,{dateFormat:r,expiryDate:c.expiry_date,purchaseDate:c.subscribed_date,isRefundable:c.is_refundable})),Object(vn.fb)(e)){case"is-free-plan":return Ze()(Ze()({},a),{},{tagLine:Object(Zn.createInterpolateElement)(Object(Oe.__)("Worried about security? Get backups, automated security fixes and more: <a>Upgrade now</a>","jetpack"),{a:o.a.createElement(Ll,{source:"my-plan-header-free-plan-text-link",target:"upgrade-now",feature:"my-plan-header-free-upgrade"})}),title:Object(Oe.__)("Jetpack Free","jetpack")});case"is-personal-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:n?Object(Oe.__)("Daily backups, spam filtering, and priority support.","jetpack"):Object(Oe.__)("Spam filtering and priority support.","jetpack"),title:Object(Oe.__)("Jetpack Personal","jetpack")});case"is-premium-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support.","jetpack"),title:Object(Oe.__)("Jetpack Premium","jetpack")});case"is-business-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support.","jetpack"),title:Object(Oe.__)("Jetpack Professional","jetpack")});case"is-security-plan":case"is-security-pro-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Enjoy the peace of mind of complete site protection.","jetpack"),title:Object(Oe.__)("Jetpack Security","jetpack")});case"is-complete-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("The most powerful WordPress sites: Top-tier security bundle, enhanced search.","jetpack"),title:Object(Oe.__)("Jetpack Complete","jetpack")});case"is-backup-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.sprintf)(Object(Oe.__)("Your data is being securely backed up as you edit. You have %1$dGB of storage space.","jetpack"),200),title:Object(Oe.__)("Jetpack Backup","jetpack")});case"is-backup-pro-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.sprintf)(Object(Oe.__)("Your data is being securely backed up as you edit. You have %1$dTB of storage space.","jetpack"),2),title:Object(Oe.__)("Jetpack Backup","jetpack")});case"is-search-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Fast, highly relevant search results and powerful filtering.","jetpack"),title:Object(Oe.__)("Jetpack Search","jetpack")});case"is-scan-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Automatic scanning and one-click fixes keep your site one step ahead of security threats.","jetpack"),title:Object(Zn.createInterpolateElement)(Object(Oe.__)("Jetpack Scan <em>Daily</em>","jetpack"),{em:o.a.createElement("em",null)})});case"is-anti-spam-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Automatically clear spam from comments and forms. Save time, get more responses, give your visitors a better experience – all without lifting a finger.","jetpack"),title:Object(Oe.__)("Jetpack Anti-Spam","jetpack")});case"is-daily-security-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Enjoy the peace of mind of complete site protection. Great for brochure sites, restaurants, blogs, and resume sites.","jetpack"),title:Object(Oe.__)("Jetpack Security Daily","jetpack")});case"is-realtime-security-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Additional security for sites with 24/7 activity. Recommended for eCommerce stores, news organizations, and online forums.","jetpack"),title:Object(Oe.__)("Jetpack Security Real-Time","jetpack")});case"is-daily-backup-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Your data is being securely backed up every day with a 30-day archive.","jetpack"),title:Object(Zn.createInterpolateElement)(Object(Oe.__)("Jetpack Backup <em>Daily</em>","jetpack"),{em:o.a.createElement("em",null)})});case"is-realtime-backup-plan":return Ze()(Ze()({},a),{},{details:s,tagLine:Object(Oe.__)("Your data is being securely backed up as you edit.","jetpack"),title:Object(Zn.createInterpolateElement)(Object(Oe.__)("Jetpack Backup <em>Real-Time</em>","jetpack"),{em:o.a.createElement("em",null)})});default:return Ze()(Ze()({},a),{},{isPlaceholder:!0})}}},{key:"renderPlan",value:function(){return o.a.createElement(en.a,{compact:!0},this.renderHeader(Object(Oe.__)("My Plan","jetpack")),o.a.createElement(Bl,this.getProductProps(this.props.plan)))}},{key:"renderProducts",value:function(){var e=this;return Object(je.isEmpty)(this.props.activeProducts)?null:o.a.createElement(en.a,{compact:!0},this.renderHeader(Object(Oe.__)("My Products","jetpack")),this.props.activeProducts.map((function(t){var n=t.ID,r=t.product_slug;return o.a.createElement(Bl,tt()({key:"product-card-"+n},e.getProductProps(r)))})))}},{key:"renderHeader",value:function(e){return o.a.createElement("h3",{className:"jp-landing__card-header"},e)}},{key:"render",value:function(){return o.a.createElement("div",{className:"jp-landing__plans"},this.renderPlan(),this.renderProducts(),this.props.showRecommendations&&o.a.createElement(en.a,{compact:!0},o.a.createElement("div",{className:"jp-landing__plan-features-header-recommendations-cta-container"},o.a.createElement(sn.a,{href:this.props.siteAdminUrl+"admin.php?page=jetpack#/recommendations",onClick:this.trackRecommendationsClick,primary:!0},Object(Oe._x)("Recommendations","Navigation item.","jetpack")))),this.props.showLicensingUi&&o.a.createElement(en.a,{compact:!0},o.a.createElement(Fl,null)))}}]),n}(o.a.Component);Vl.propTypes={activeProducts:u.a.array,plan:u.a.string,purchases:u.a.array,siteAdminUrl:u.a.string,dateFormat:u.a.string,displayBackups:u.a.bool,plansMainTopUpgradeUrl:u.a.string,showRecommendations:u.a.bool};var Hl=Object(s.b)((function(e){return{dateFormat:Object(Rt.j)(e),displayBackups:Object(Rt.D)(e),plansMainTopUpgradeUrl:Object(Rt.t)(e,"plans-main-top"),showRecommendations:Object(Rt.F)(e),showLicensingUi:Object(Rt.E)(e)}}))(Vl),Kl=n(138),Jl=n(75),ql=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackPlansClick",(function(t){Xe.a.tracks.recordJetpackClick({page:"my-plan",target:t,plan:e.props.plan})})),Be()(Re()(e),"handleButtonClickForTracking",(function(t){return function(){return e.trackPlansClick(t)}})),Be()(Re()(e),"activateAds",(function(){e.props.activateModule("wordads"),e.trackPlansClick("activate_wordads")})),Be()(Re()(e),"activatePublicize",(function(){e.props.activateModule("publicize"),e.trackPlansClick("activate_publicize")})),Be()(Re()(e),"activateVideoPress",(function(){e.props.activateFeature("videopress"),e.trackPlansClick("activate_videopress")})),Be()(Re()(e),"activateGoogleAnalytics",(function(){e.props.activateModule("google-analytics"),e.trackPlansClick("activate_ga")})),e}return Pe()(n,[{key:"render",value:function(){var e,t=this,n="",r="offline"!==this.props.plan?Object(vn.fb)(this.props.plan):"offline",i=Object(je.includes)(["is-premium-plan","is-business-plan","is-security-plan","is-security-pro-plan","is-complete-plan","is-daily-security-plan","is-realtime-security-plan"],r),a="active"===Object(je.get)(this.props.rewindStatus,["state"],!1),s=!this.props.showBackups||!a&&"unavailable"!==Object(je.get)(this.props.rewindStatus,["state"],!1),c=function(e){var n=e.title,r=e.description;return o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-backup.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A Jetpack Site securely backed up with Jetpack Backup","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},n),o.a.createElement("p",null,r),o.a.createElement(sn.a,{onClick:t.handleButtonClickForTracking("view_backup_dash"),href:Object(Ve.a)("calypso-activity-log",{site:t.props.siteRawUrl})},Object(Oe.__)("View your backups","jetpack"))))},l=function(){if(!s){if(a)return o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A secure site, locked and protected by Jetpack","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Site backups","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.","jetpack")),o.a.createElement(sn.a,{onClick:t.handleButtonClickForTracking("view_security_dash_rewind"),href:Object(Ve.a)("calypso-activity-log",{site:t.props.siteRawUrl})},Object(Oe.__)("View your security activity","jetpack"))));var e="";switch(r){case"is-personal-plan":e=Object(Oe.__)("Daily backup of all your site data with unlimited space and one-click restores","jetpack");break;case"is-premium-plan":e=Object(Oe.__)("Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support","jetpack");break;case"is-business-plan":e=Object(Oe.__)("Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support","jetpack");break;default:e=""}return o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A secure site, locked and protected by Jetpack","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Site security","jetpack")),o.a.createElement("p",null,e+Object(Oe.__)(" (powered by VaultPress).","jetpack")),t.props.isPluginInstalled("vaultpress/vaultpress.php")&&t.props.isPluginActive("vaultpress/vaultpress.php")?o.a.createElement(sn.a,{onClick:t.handleButtonClickForTracking("view_security_dash"),href:Object(Ve.a)("vaultpress-dashboard")},Object(Oe.__)("View your security dashboard","jetpack")):o.a.createElement(sn.a,{onClick:t.handleButtonClickForTracking("configure_vault"),href:Object(Ve.a)("calypso-plugins-setup",{site:t.props.siteRawUrl,query:"only=vaultpress"})},Object(Oe.__)("View settings","jetpack"))))}};"is-daily-backup-plan"===r&&(e=c({title:Object(Oe.__)("Automated Daily Backups","jetpack"),description:Object(Oe.__)("We back up your website every day, so you never have to worry about your data again.","jetpack")})),["is-backup-plan","is-backup-pro-plan","is-realtime-backup-plan"].includes(r)&&(e=c({title:Object(Oe.__)("Automated real-time backups","jetpack"),description:Object(Oe.__)("We back up your website with every change you make, making it easy to fix your mistakes.","jetpack")}));var u=function(){return o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-search-icon.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A Jetpack Site with the power of Jetpack Search","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Instant search and filtering","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Relevant search results and filtering tightly integrated with your theme.","jetpack")),o.a.createElement(sn.a,{onClick:t.handleButtonClickForTracking("view_search_customizer"),href:t.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_search"},Object(Oe.__)("Customize Search","jetpack"))))};switch(r){case"is-personal-plan":case"is-premium-plan":case"is-security-plan":case"is-security-pro-plan":case"is-business-plan":case"is-complete-plan":case"is-daily-security-plan":case"is-realtime-security-plan":n=o.a.createElement("div",{className:"jp-landing__plan-features"},"is-personal-plan"===r&&l(),"is-premium-plan"===r&&l(),"is-business-plan"===r&&l(),this.props.hasActiveSearchPurchase&&u(),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-speed-icon.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A fast and performant website","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Optimized performance","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Load pages faster by serving your images from our global network of servers.","jetpack")),o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("paid_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance"},Object(Oe.__)("Make your site faster","jetpack")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-spam.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A folder holding real comments","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Anti-spam","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Spam is automatically blocked from your comments.","jetpack")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("view_spam_stats"),href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config"},Object(Oe.__)("View your spam stats","jetpack")):o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("configure_akismet"),href:Object(Ve.a)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:"only=akismet"})},Object(Oe.__)("View settings","jetpack")))),i&&"inactive"!==this.props.getModuleOverride("videopress")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-video-hosting.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A cloud with multiple types of content floating around it","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Video hosting","jetpack")),o.a.createElement("p",null,Object(Oe.__)("High-speed, high-definition video hosting with no third-party ads.","jetpack")),this.props.getFeatureState("videopress")?o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("upload_videos"),href:this.props.siteAdminUrl+"upload.php"},Object(Oe.__)("Upload videos","jetpack")):o.a.createElement(sn.a,{onClick:this.activateVideoPress,disabled:this.props.isActivatingFeature("videopress")},Object(Oe.__)("Activate video hosting","jetpack")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-site-activity.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("Interface showing a chronological list of changes and updates in a site","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Site activity","jetpack")),o.a.createElement("p",null,Object(Oe.__)("View a chronological list of all the changes and updates to your site in an organized, readable way.","jetpack")),o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("view_site_activity"),href:Object(Ve.a)("calypso-activity-log",{site:this.props.siteRawUrl})},Object(Oe.__)("View your site activity","jetpack")))),i&&"inactive"!==this.props.getModuleOverride("wordads")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-wordads.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A chart showing an healthy increase in earnings","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Monetize your site with ads","jetpack")),o.a.createElement("p",null,Object(Oe.__)("WordAds lets you earn money by displaying promotional content. Start earning today.","jetpack")),this.props.isModuleActivated("wordads")?o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("view_earnings"),href:Object(Ve.a)("wpcom-ads-earnings",{site:this.props.siteRawUrl})},Object(Oe.__)("View your earnings","jetpack")):o.a.createElement(sn.a,{onClick:this.activateAds,disabled:this.props.isActivatingModule("wordads")},Object(Oe.__)("Start earning","jetpack")))),i&&"inactive"!==this.props.getModuleOverride("google-analytics")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-google-analytics.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("Site stats showing an evolution in traffic and engagement","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Google Analytics","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Complement WordPress.com’s stats with Google’s in-depth look at your visitors and traffic patterns.","jetpack")),this.props.isModuleActivated("google-analytics")?o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("configure_ga"),href:Object(Ve.a)("calypso-marketing-traffic",{site:this.props.siteRawUrl})},Object(Oe.__)("Configure Google Analytics","jetpack")):o.a.createElement(sn.a,{onClick:this.activateGoogleAnalytics,disabled:this.props.isActivatingModule("google-analytics")},Object(Oe.__)("Activate Google Analytics","jetpack")))),i&&"inactive"!==this.props.getModuleOverride("publicize")&&o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-marketing.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A secure site, locked and protected by Jetpack","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Marketing automation","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Schedule unlimited tweets, Facebook posts, and other social posts in advance.","jetpack")),this.props.isModuleActivated("publicize")?o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("schedule_posts"),href:Object(Ve.a)("calypso-edit-posts",{site:this.props.siteRawUrl})},Object(Oe.__)("Schedule posts","jetpack")):o.a.createElement(sn.a,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize")},Object(Oe.__)("Activate Publicize","jetpack")))));break;case"is-free-plan":case"is-backup-plan":case"is-backup-pro-plan":case"is-search-plan":case"offline":case"is-daily-backup-plan":case"is-realtime-backup-plan":n=o.a.createElement("div",{className:"jp-landing__plan-features"},e,this.props.hasActiveSearchPurchase&&u(),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A secure site, locked and protected by Jetpack","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Always-on security","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Prevent login attacks, and get instant notifications when there’s an issue with your site.","jetpack")),o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("free_security"),href:Object(Ve.a)("calypso-settings-security",{site:this.props.siteRawUrl})},Object(Oe.__)("Set up your site security","jetpack")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-speed-icon.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A fast and performant website","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Optimized performance","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Load pages faster by serving your images from our global network of servers.","jetpack")),o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("free_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance"},Object(Oe.__)("Make your site faster","jetpack")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-themes.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("A wide variety of themes and tools to customize a site","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Design the perfect website","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Get access to professionally crafted themes offered on WordPress.com, and customize your site exactly how you like it.","jetpack")),o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("free_themes"),href:Object(Ve.a)("calypso-themes",{site:this.props.siteRawUrl})},Object(Oe.__)("Explore themes","jetpack")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-performance-icon.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("Site stats showing an evolution in traffic and engagement","jetpack")})),"inactive"!==this.props.getModuleOverride("publicize")&&o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Increase traffic to your site","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Reach a wider audience by automatically sharing your posts on social media.","jetpack")),this.props.isModuleActivated("publicize")?o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("free_sharing"),href:Object(Ve.a)("calypso-marketing-connections",{site:this.props.siteRawUrl})},Object(Oe.__)("Start sharing","jetpack")):o.a.createElement(sn.a,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize")},Object(Oe.__)("Activate Publicize","jetpack")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-site-activity.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("Interface showing a chronological list of changes and updates in a site","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Site activity","jetpack")),o.a.createElement("p",null,Object(Oe.__)("View a chronological list of all the changes and updates to your site in an organized, readable way.","jetpack")),o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("view_site_activity"),href:Object(Ve.a)("calypso-activity-log",{site:this.props.siteRawUrl})},Object(Oe.__)("View your site activity","jetpack")))),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("div",{className:"jp-landing__plan-features-img"},o.a.createElement("img",{src:Vn+"/jetpack-support.svg",className:"jp-landing__plan-features-icon",alt:Object(Oe.__)("Chat bubbles representing getting in touch with support","jetpack")})),o.a.createElement("div",{className:"jp-landing__plan-features-text"},o.a.createElement("h3",{className:"jp-landing__plan-features-title"},Object(Oe.__)("Support documentation","jetpack")),o.a.createElement("p",null,Object(Oe.__)("Need help? Learn about getting started, customizing your site, using advanced code snippets, and more.","jetpack")),o.a.createElement(sn.a,{onClick:this.handleButtonClickForTracking("free_support_documentation"),href:Object(Ve.a)("jetpack-support")},Object(Oe.__)("Search support docs","jetpack")))));break;default:n=o.a.createElement("div",{className:"jp-landing__plan-features is-loading"},o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.a.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.a.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o.a.createElement("div",{className:"jp-landing__plan-features-card"},o.a.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.a.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return o.a.createElement("div",null,o.a.createElement(Vt,null),n)}}]),n}(o.a.Component);Be()(ql,"propTypes",{plan:u.a.string}),Be()(ql,"defaultProps",{plan:""});var Wl=Object(s.b)((function(e){return{isFetchingPluginsData:Object(zt.c)(e),isPluginActive:function(t){return Object(zt.d)(e,t)},isPluginInstalled:function(t){return Object(zt.e)(e,t)},isModuleActivated:function(t){return Object(Qe.n)(e,t)},isActivatingModule:function(t){return Object(Qe.m)(e,t)},getModuleOverride:function(t){return Object(Qe.f)(e,t)},showBackups:Object(Rt.D)(e),getFeatureState:function(t){return Object(Jl.d)(e,t)},isActivatingFeature:function(t){return Object(Jl.h)(e,t)}}}),(function(e){return{fetchPluginsData:function(){return e(Object(zt.a)())},activateModule:function(t){return e(Object(Qe.a)(t))},activateFeature:function(t){return e(Object(Kl.d)(Be()({},t,!0)))}}}))(ql);var Gl=Object(s.b)((function(e){return{activeFeatures:Object(Sn.h)(e),activeProducts:Object(Sn.i)(e),availableFeatures:Object(Sn.k)(e),getSiteConnectionStatus:function(){return Object(qe.i)(e)},hasActiveSearchPurchase:Object(Sn.u)(e),purchases:Object(Sn.q)(e),sitePlan:Object(Sn.p)(e)}}))((function(e){var t=e.sitePlan.product_slug||"",n=e.availableFeatures,r=e.activeFeatures;return"offline"===e.getSiteConnectionStatus(e)&&(t="offline",n={},r={}),o.a.createElement(o.a.Fragment,null,o.a.createElement(nn.a,null),o.a.createElement(Hl,{activeProducts:e.activeProducts,plan:t,purchases:e.purchases,siteAdminUrl:e.siteAdminUrl}),o.a.createElement(Wl,{activeFeatures:r,availableFeatures:n,hasActiveSearchPurchase:e.hasActiveSearchPurchase,plan:t,rewindStatus:e.rewindStatus,siteAdminUrl:e.siteAdminUrl,siteRawUrl:e.siteRawUrl}))})),Yl=n(141),$l={currentUser:{isMaster:!0,isConnected:!0,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},Zl={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},Xl={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!0,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},Ql={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!1,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},eu={currentUser:{permissions:{view_stats:!0}}},tu={currentUser:{permissions:{view_stats:!1}}},nu={currentUser:{isConnected:!0}},ru={currentUser:{isConnected:!1,isMaster:!1}},iu=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"onPlanChange",(function(t){e.props.switchPlanPreview(t.target.value)})),Be()(Re()(e),"onPermissionsChange",(function(t){e.props.switchUserPermissions(t.target.value)})),Be()(Re()(e),"onThreatsChange",(function(t){e.props.switchThreats(t.target.value)})),Be()(Re()(e),"onRewindStatusChange",(function(t){e.props.switchRewindState(t.target.value)})),Be()(Re()(e),"onScanStatusChange",(function(t){e.props.switchScanState(t.target.value)})),Be()(Re()(e),"maybeShowStatsToggle",(function(){if(!e.props.isAdmin)return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"view_stats"},o.a.createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:e.props.canViewStats,onChange:e.onPermissionsChange}),"Can view stats")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"hide_stats"},o.a.createElement("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!e.props.canViewStats,onChange:e.onPermissionsChange}),"Can not view stats"))))})),Be()(Re()(e),"showIsLinkedToggle",(function(){return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"is_linked"},o.a.createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:e.props.isUserLinked,onChange:e.onPermissionsChange}),"Linked")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"is_unlinked"},o.a.createElement("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!e.props.isUserLinked,onChange:e.onPermissionsChange}),"Unlinked"))))})),e}return Pe()(n,[{key:"render",value:function(){if(!this.props.canDisplayDevCard)return null;var e=rt()(this.props.className,"jp-dev-card"),t=Object(vn.fb)(this.props.sitePlan.product_slug),n=Object(je.get)(this.props.rewindStatus,["state"],!1),r=Object(je.get)(this.props.scanStatus,["state"],!1);return o.a.createElement(en.a,{compact:!0,className:e},o.a.createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:Dn(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),o.a.createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_free"},o.a.createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_personal"},o.a.createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_premium"},o.a.createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_business"},o.a.createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_security"},o.a.createElement("input",{type:"radio",id:"jetpack_security",value:"jetpack_security",name:"jetpack_security",checked:"is-security-plan"===t,onChange:this.onPlanChange}),"Security (200 GB)")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_security_pro"},o.a.createElement("input",{type:"radio",id:"jetpack_security_pro",value:"jetpack_security_pro",name:"jetpack_security_pro",checked:"is-security-pro-plan"===t,onChange:this.onPlanChange}),"Security (2 TB)")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_complete"},o.a.createElement("input",{type:"radio",id:"jetpack_complete",value:"jetpack_complete",name:"jetpack_complete",checked:"is-complete-plan"===t,onChange:this.onPlanChange}),"Complete")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_backup"},o.a.createElement("input",{type:"radio",id:"jetpack_backup",value:"jetpack_backup",name:"jetpack_backup",checked:"is-backup-plan"===t,onChange:this.onPlanChange}),"Backup (200 GB)")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_backup_pro"},o.a.createElement("input",{type:"radio",id:"jetpack_backup_pro",value:"jetpack_backup_pro",name:"jetpack_backup_pro",checked:"is-backup-pro-plan"===t,onChange:this.onPlanChange}),"Backup (2 TB)")),o.a.createElement("li",{className:"jp-dev-card__deprecated-plans-list-header"},"— DEPRECATED —"),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_security_daily"},o.a.createElement("input",{type:"radio",id:"jetpack_security_daily",value:"jetpack_security_daily",name:"jetpack_security_daily",checked:"is-daily-security-plan"===t,onChange:this.onPlanChange}),"Security Daily")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_security_realtime"},o.a.createElement("input",{type:"radio",id:"jetpack_security_realtime",value:"jetpack_security_realtime",name:"jetpack_security_realtime",checked:"is-realtime-security-plan"===t,onChange:this.onPlanChange}),"Security Real-Time")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_backup_daily"},o.a.createElement("input",{type:"radio",id:"jetpack_backup_daily",value:"jetpack_backup_daily",name:"jetpack_backup_daily",checked:"is-daily-backup-plan"===t,onChange:this.onPlanChange}),"Backup Daily")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"jetpack_backup_realtime"},o.a.createElement("input",{type:"radio",id:"jetpack_backup_realtime",value:"jetpack_backup_realtime",name:"jetpack_backup_realtime",checked:"is-realtime-backup-plan"===t,onChange:this.onPlanChange}),"Backup Real-time"))),o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"admin_master"},o.a.createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (master)")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"admin_secondary"},o.a.createElement("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (secondary)")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"editor"},o.a.createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"subscriber"},o.a.createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"nothreats"},o.a.createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"threats"},o.a.createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),o.a.createElement("hr",null),o.a.createElement("ul",null,o.a.createElement("strong",null,"Backup"),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"rewindUnavailable"},o.a.createElement("input",{type:"radio",id:"rewindUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===n,onChange:this.onRewindStatusChange}),"Unavailable")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"rewindProvisioning"},o.a.createElement("input",{type:"radio",id:"rewindProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===n,onChange:this.onRewindStatusChange}),"Provisioning")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"rewindAwatingCreds"},o.a.createElement("input",{type:"radio",id:"rewindAwatingCreds",value:"awaiting_credentials",name:"awaiting_credentials",checked:"awaiting_credentials"===n,onChange:this.onRewindStatusChange}),"Awaiting credentials")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"rewindActive"},o.a.createElement("input",{type:"radio",id:"rewindActive",value:"active",name:"active",checked:"active"===n,onChange:this.onRewindStatusChange}),"Active"))),o.a.createElement("ul",null,o.a.createElement("strong",null,"Scan"),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"scanUnavailable"},o.a.createElement("input",{type:"radio",id:"scanUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===r,onChange:this.onScanStatusChange}),"Unavailable")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"scanProvisioning"},o.a.createElement("input",{type:"radio",id:"scanProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===r,onChange:this.onScanStatusChange}),"Provisioning")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"scanIdle"},o.a.createElement("input",{type:"radio",id:"scanIdle",value:"idle",name:"idle",checked:"idle"===r,onChange:this.onScanStatusChange}),"Idle")),o.a.createElement("li",null,o.a.createElement("label",{htmlFor:"scanScanning"},o.a.createElement("input",{type:"radio",id:"scanScanning",value:"scanning",name:"scanning",checked:"scanning"===r,onChange:this.onScanStatusChange}),"Scanning"))),this.maybeShowStatsToggle(),this.showIsLinkedToggle())}}]),n}(o.a.Component);Be()(iu,"displayName","DevCard");var au=Object(s.b)((function(e){return{isDevVersion:Object(Rt.x)(e),sitePlan:Object(Sn.p)(e),canDisplayDevCard:Object(Yl.a)(e),isUserLinked:Object(qe.n)(e),canViewStats:Object(Rt.N)(e),isConnectionOwner:Object(qe.m)(e),isAdmin:Object(Rt.I)(e),canEditPosts:Object(Rt.J)(e),getVaultPressScanThreatCount:function(){return Object(yn.g)(e)},rewindStatus:Object(An.b)(e),scanStatus:Object(Mn.a)(e)}}),(function(e){return{switchPlanPreview:function(t){return e(function(e){return function(t){t({type:Ft.JETPACK_SITE_DATA_FETCH_RECEIVE,siteData:{plan:{product_slug:e}}})}}(t))},switchUserPermissions:function(t){return e(function(e){var t={};return function(n){switch(e){case"admin_master":t=$l;break;case"admin_secondary":t=Zl;break;case"editor":case"contributor":case"author":t=Xl;break;case"subscriber":t=Ql;break;case"view_stats":t=eu;break;case"hide_stats":t=tu;break;case"is_linked":t=nu;break;case"is_unlinked":t=ru}n({type:Ft.MOCK_SWITCH_USER_PERMISSIONS,initialState:t})}}(t))},switchThreats:function(t){return e(function(e){return function(t){t({type:Ft.MOCK_SWITCH_THREATS,mockCount:e})}}(parseInt(t)))},disableDevCard:function(){return e((function(e){e({type:Ft.DEV_CARD_HIDE})}))},switchRewindState:function(t){return e((n=t,function(e){e({type:Ft.MOCK_SWITCH_REWIND_STATE,rewindState:{state:n}})}));var n},switchScanState:function(t){return e((n=t,function(e){e({type:Ft.MOCK_SWITCH_SCAN_STATE,scanState:{state:n}})}));var n}}}))(iu),ou=function e(){var t=document.getElementById("jp-navigation").offsetTop;window.scrollTo(0,window.scrollY-t/1.5),window.scrollY>t&&window.requestAnimationFrame(e)},su=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"resetOnClick",(function(){window.confirm(Object(Oe.__)("This will reset all Jetpack options, are you sure?","jetpack"))&&e.props.resetOptions()})),Be()(Re()(e),"trackVersionClick",(function(){Xe.a.tracks.recordJetpackClick({target:"footer_link",link:"version"})})),Be()(Re()(e),"trackTermsClick",(function(){Xe.a.tracks.recordJetpackClick({target:"footer_link",link:"terms"})})),Be()(Re()(e),"trackAboutClick",(function(){Xe.a.tracks.recordJetpackClick({target:"footer_link",link:"about"})})),Be()(Re()(e),"trackPrivacyClick",(function(){window.requestAnimationFrame(ou),Xe.a.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})})),Be()(Re()(e),"trackModulesClick",(function(){Xe.a.tracks.recordJetpackClick({target:"footer_link",link:"modules"})})),Be()(Re()(e),"trackDebugClick",(function(){Xe.a.tracks.recordJetpackClick({target:"footer_link",link:"debug"})})),e}return Pe()(n,[{key:"render",value:function(){var e=this,t=rt()(this.props.className,"jp-footer"),n=this.props.currentVersion,r=this.props.siteConnectionStatus?this.props.siteAdminUrl+"admin.php?page=jetpack_about":Object(Ve.a)("jetpack"),i=this.props.siteConnectionStatus?this.props.siteAdminUrl+"admin.php?page=jetpack#/privacy":Object(Ve.a)("a8c-privacy");return o.a.createElement("div",{className:t},o.a.createElement("div",{className:"jp-footer__a8c-attr-container"},o.a.createElement("a",{href:r},o.a.createElement("svg",{role:"img",className:"jp-footer__a8c-attr",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"a8c-svg-title"},o.a.createElement("title",{id:"a8c-svg-title"},Object(Oe.__)("An Automattic Airline","jetpack")),o.a.createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),o.a.createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),o.a.createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})))),o.a.createElement("ul",{className:"jp-footer__links"},o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:this.trackVersionClick,href:Object(Ve.a)("jetpack"),target:"_blank",rel:"noopener noreferrer",className:"jp-footer__link",title:Object(Oe.__)("Jetpack version","jetpack")},n?Object(Oe.sprintf)(Object(Oe.__)("Jetpack version %s","jetpack"),n):"Jetpack")),o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:this.trackAboutClick,href:r,className:"jp-footer__link",title:Object(Oe.__)("About Jetpack","jetpack")},Object(Oe._x)("About","Link to learn more about Jetpack.","jetpack"))),o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:this.trackTermsClick,href:Object(Ve.a)("wpcom-tos"),target:"_blank",rel:"noopener noreferrer",title:Object(Oe.__)("WordPress.com Terms of Service","jetpack"),className:"jp-footer__link"},Object(Oe._x)("Terms","Shorthand for Terms of Service.","jetpack"))),o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:this.trackPrivacyClick,href:i,rel:"noopener noreferrer",title:Object(Oe.__)("Automattic's Privacy Policy","jetpack"),className:"jp-footer__link"},Object(Oe._x)("Privacy","Shorthand for Privacy Policy.","jetpack"))),function(){if(e.props.siteConnectionStatus&&e.props.userCanManageOptions)return o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:e.trackModulesClick,href:e.props.siteAdminUrl+"admin.php?page=jetpack_modules",title:Object(Oe.__)("Access the full list of Jetpack modules available on your site.","jetpack"),className:"jp-footer__link"},Object(Oe._x)("Modules","Navigation item. Noun. Links to a list of modules for Jetpack.","jetpack")))}(),function(){if(e.props.userCanManageOptions)return o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{onClick:e.trackDebugClick,href:e.props.siteAdminUrl+"admin.php?page=jetpack-debugger",title:Object(Oe.__)("Test your site’s compatibility with Jetpack.","jetpack"),className:"jp-footer__link"},Object(Oe._x)("Debug","Navigation item. Noun. Links to a debugger tool for Jetpack.","jetpack")))}(),e.props.isDevVersion&&e.props.userCanManageOptions?o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{role:"button",tabIndex:"0",onKeyDown:Dn(e.resetOnClick),onClick:e.resetOnClick,className:"jp-footer__link"},Object(Oe._x)("Reset Options (dev only)","Navigation item.","jetpack"))):"",e.props.isDevVersion?o.a.createElement("li",{className:"jp-footer__link-item"},o.a.createElement("a",{role:"button",tabIndex:"0",onKeyDown:Dn(e.props.enableDevCard),onClick:e.props.enableDevCard,className:"jp-footer__link"},Object(Oe._x)("Dev Tools","Navigation item.","jetpack"))):"",function(){if(e.props.isDevVersion&&e.props.displayDevCard)return o.a.createElement(au,null)}()))}}]),n}(o.a.Component);Be()(su,"displayName","Footer");var cu=Object(s.b)((function(e){return{currentVersion:Object(Rt.i)(e),displayDevCard:Object(Yl.a)(e),isDevVersion:Object(Rt.x)(e),isInIdentityCrisis:Object(qe.r)(e),siteAdminUrl:Object(Rt.n)(e),siteConnectionStatus:Object(qe.i)(e),userCanManageOptions:Object(Rt.L)(e)}}),(function(e){return{resetOptions:function(){return e((t="options",function(e){return e({type:Ft.RESET_OPTIONS}),e(Object(Si.a)("is-info",Object(Oe.__)("Resetting Jetpack options…","jetpack"),{id:"reset-options"})),En.a.resetOptions(t).then((function(){e({type:Ft.RESET_OPTIONS_SUCCESS}),e(Object(Si.c)("reset-options")),e(Object(Si.a)("is-success",Object(Oe.__)("Options reset.","jetpack"),{id:"reset-options",duration:2e3}))})).catch((function(t){e({type:Ft.RESET_OPTIONS_FAIL,error:t}),e(Object(Si.c)("reset-options")),e(Object(Si.a)("is-error",Object(Oe.__)("Options failed to reset.","jetpack"),{id:"reset-options"}))}))}));var t},enableDevCard:function(){return e((function(e){e({type:Ft.DEV_CARD_DISPLAY})}))}}}))(su),lu=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackBannerClick",(function(){Xe.a.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:e.props.path,is_user_wpcom_connected:e.props.isCurrentUserLinked?"yes":"no",is_connection_owner:e.props.isConnectionOwner?"yes":"no"})})),Be()(Re()(e),"trackAskQuestionClick",(function(){Xe.a.tracks.recordJetpackClick({target:"support-card",button:"support-ask",page:e.props.path})})),Be()(Re()(e),"trackSearchClick",(function(){Xe.a.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:e.props.path})})),e}return Pe()(n,[{key:"shouldComponentUpdate",value:function(e){return e.sitePlan.product_slug!==this.props.sitePlan.product_slug}},{key:"render",value:function(){if(void 0===this.props.sitePlan.product_slug&&this.props.isFetchingSiteData)return o.a.createElement("div",null);var e=rt()(this.props.className,"jp-support-card"),t=void 0===this.props.sitePlan.product_slug||"jetpack_free"===this.props.sitePlan.product_slug,n=this.props.isDevVersion?Kn:Hn;return o.a.createElement("div",{className:e},o.a.createElement(en.a,{className:"jp-support-card__happiness"},o.a.createElement("div",{className:"jp-support-card__happiness-contact"},o.a.createElement("h3",{className:"jp-support-card__header"},Object(Oe.__)("We're here to help","jetpack")),o.a.createElement("p",{className:"jp-support-card__description"},t?Object(Oe.__)("Jetpack offers support via community forums for any site without a paid product.","jetpack"):Object(Oe.__)("Your paid plan gives you access to prioritized Jetpack support.","jetpack")),o.a.createElement("p",{className:"jp-support-card__description"},o.a.createElement(sn.a,{onClick:this.trackAskQuestionClick,href:this.props.isAtomicSite?Object(Ve.a)("calypso-help-contact"):n},Object(Oe.__)("Ask a question","jetpack")),o.a.createElement(sn.a,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?Object(Ve.a)("calypso-help"):Object(Ve.a)("jetpack-support")},Object(Oe.__)("Search our support site","jetpack"))))),this.props.siteConnectionStatus&&t&&this.props.hasConnectedOwner&&o.a.createElement($n,{title:Object(Oe.__)("Get a faster resolution to your support questions.","jetpack"),plan:Object(vn.eb)(vn.b),callToAction:Object(Oe.__)("Upgrade","jetpack"),onClick:this.trackBannerClick,href:this.props.supportUpgradeUrl}),this.props.siteConnectionStatus&&t&&!this.props.hasConnectedOwner&&o.a.createElement($n,{title:Object(Oe.__)("Connect your WordPress.com account and upgrade to get a faster resolution to your support questions.","jetpack"),plan:Object(vn.eb)(vn.b),callToAction:Object(Oe.__)("Connect","jetpack"),onClick:this.trackBannerClick,href:this.props.connectUrl}))}}]),n}(o.a.Component);Be()(lu,"displayName","SupportCard"),Be()(lu,"defaultProps",{className:"",siteConnectionStatus:!1}),lu.propTypes={siteConnectionStatus:u.a.any.isRequired,className:u.a.string,isCurrentUserLinked:u.a.string,isConnectionOwner:u.a.bool};var uu=Object(s.b)((function(e){return{sitePlan:Object(Sn.p)(e),siteConnectionStatus:Object(qe.i)(e),isFetchingSiteData:Object(Sn.x)(e),isAtomicSite:Object(Rt.w)(e),isDevVersion:Object(Rt.x)(e),supportUpgradeUrl:Object(Rt.t)(e,"support"),isCurrentUserLinked:Object(qe.n)(e),isConnectionOwner:Object(qe.m)(e),connectUrl:Object(qe.f)(e),hasConnectedOwner:Object(qe.k)(e)}}))(lu),pu=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackDownloadClick",(function(){Xe.a.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:e.props.path})})),Be()(Re()(e),"dismissCard",(function(){e.props.dismissAppCard(),Xe.a.tracks.recordJetpackClick({target:"apps-card",button:"dismiss",page:e.props.path})})),e}return Pe()(n,[{key:"render",value:function(){if(!this.props.arePromotionsActive||this.props.isAppsCardDismissed)return null;var e=rt()(this.props.className,"jp-apps-card");return o.a.createElement("div",{className:e},o.a.createElement(en.a,{className:"jp-apps-card__content"},this.props.userCanManageOptions&&o.a.createElement(sn.a,{borderless:!0,compact:!0,className:"jp-apps-card__dismiss",href:"javascript:void(0)",onClick:this.dismissCard},o.a.createElement("span",{className:"dashicons dashicons-no"})),o.a.createElement("div",{className:"jp-apps-card__top"},o.a.createElement("img",{src:Vn+"get-apps.svg",alt:""})),o.a.createElement("div",{className:"jp-apps-card__description"},o.a.createElement("h3",{className:"jp-apps-card__header"},Object(Oe.__)("Get WordPress Apps for every device","jetpack")),o.a.createElement("p",{className:"jp-apps-card__paragraph"},Object(Oe.__)("Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.","jetpack")),o.a.createElement(sn.a,{className:"is-primary",onClick:this.trackDownloadClick,href:"https://apps.wordpress.com/get?utm_source=jpdash&utm_medium=cta&utm_campaign=getappscard"},Object(Oe.__)("Download the free apps","jetpack")))))}}]),n}(o.a.Component);Be()(pu,"displayName","AppsCard"),pu.propTypes={className:u.a.string};var du=Object(s.b)((function(e){return{isAppsCardDismissed:Object(tn.a)(e),arePromotionsActive:Object(Rt.a)(e),userCanManageOptions:Object(Rt.L)(e)}}),(function(e){return{dismissAppCard:function(){return e(Object(tn.l)({dismiss_dash_app_card:!0}))}}}))(pu),hu=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"renderMainContent",(function(t){var n,r=o.a.createElement(Ut,e.props);switch(t){case"/dashboard":default:e.props.history.replace("/dashboard"),n=o.a.createElement(Il,e.props);break;case"/settings":case"/writing":case"/sharing":case"/performance":e.props.isSubscriber||(r=o.a.createElement(Qt,e.props),n=o.a.createElement(Uo,{siteAdminUrl:e.props.siteAdminUrl,siteRawUrl:e.props.siteRawUrl,searchTerm:e.props.searchTerm,userCanManageModules:e.props.userCanManageModules}))}return window.wpNavMenuClassChange(),o.a.createElement("div",null,r,n)})),e}return Pe()(n,[{key:"shouldComponentUpdate",value:function(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.location.pathname!==this.props.location.pathname}},{key:"render",value:function(){return this.renderMainContent(this.props.location.pathname)}}]),n}(o.a.Component);hu.propTypes={userCanViewStats:u.a.bool.isRequired,isSubscriber:u.a.bool.isRequired,siteConnectionStatus:u.a.any.isRequired};var fu=Object(s.b)((function(e){return{userCanViewStats:Object(Rt.N)(e),siteConnectionStatus:Object(qe.i)(e),isSubscriber:Object(Rt.O)(e),isModuleActivated:function(t){return Object(Qe.n)(e,t)},userCanManageModules:Object(Rt.K)(e)}}))(hu),mu=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"getIcon",value:function(){var e=this.props.icon;return o.a.createElement("div",{className:"dops-banner__icons"},o.a.createElement("div",{className:"dops-banner__icon"},o.a.createElement(Mt.a,{icon:e||"info-outline",size:18})),o.a.createElement("div",{className:"dops-banner__icon-circle"},o.a.createElement(Mt.a,{icon:e||"info-outline",size:18})))}},{key:"getContent",value:function(){var e=this.props,t=e.description,n=e.title,r={connectUser:e.connectUser,from:e.from,asLink:e.asLink,connectInPlace:e.connectInPlace};return o.a.createElement("div",{className:"dops-banner__content"},o.a.createElement("div",{className:"dops-banner__info"},o.a.createElement("div",{className:"dops-banner__title"},n),t&&o.a.createElement("div",{className:"dops-banner__description"},t)),o.a.createElement("div",{className:"dops-banner__action"},o.a.createElement(si,r)))}},{key:"render",value:function(){var e=rt()("dops-banner",this.props.className);return o.a.createElement(en.a,{className:e},this.getIcon(),this.getContent())}}]),n}(Gn);Be()(mu,"propTypes",{title:u.a.string.isRequired,className:u.a.string,description:u.a.node,icon:u.a.string,connectUser:u.a.bool,from:u.a.string,asLink:u.a.bool,connectInPlace:u.a.bool});var gu=mu,bu=n(142),vu=function(e){return function(t){t({type:Ft.JETPACK_ACTION_NOTICES_DISMISS,notice:e})}},_u=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"dismissJetpackActionNotice",(function(){e.props.dismissJetpackActionNotice(e.props.jetpackNotices)})),Be()(Re()(e),"renderNotices",(function(){e.props.jetpackNotices;return!1})),e}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("div",null,this.renderNotices())}}]),n}(o.a.Component);Be()(_u,"displayName","DismissableNotices");var yu=Object(s.b)((function(e){return{jetpackNotices:Object(bu.a)(e),isDismissed:function(t){return Object(bu.f)(e,t)}}}),(function(e){return Object(Nn.b)({dismissJetpackActionNotice:vu},e)}))(_u),Eu=n(146),wu=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e={className:"dops-notice__action",href:this.props.href,onClick:this.props.onClick};return this.props.external&&(e.target="_blank"),o.a.createElement("a",e,o.a.createElement("span",null,this.props.children),this.props.icon&&o.a.createElement(Mt.a,{icon:this.props.icon,size:24}),this.props.external&&o.a.createElement(Mt.a,{icon:"external",size:24}))}}]),n}(o.a.Component);Be()(wu,"displayName","NoticeAction"),Be()(wu,"propTypes",{href:u.a.string,onClick:u.a.func,external:u.a.bool,icon:u.a.string}),Be()(wu,"defaultProps",{external:!1});var ku=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"maybeDismiss",(function(t){!e.props.showDismiss||t.keyCode&&27!==t.keyCode||e.props.dismiss(t)})),e}return Pe()(n,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.maybeDismiss.bind(this),!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.maybeDismiss.bind(this),!1)}},{key:"clickForeground",value:function(e){e.stopPropagation()}},{key:"render",value:function(){var e=rt()(this.props.className,"jp-dialogue-modern",{"has-featured-image":!!this.props.svg});return o.a.createElement("div",{className:"jp-dialogue-modern-full__container",role:"presentation",onClick:this.maybeDismiss,onKeyDown:Dn(this.maybeDismiss)},o.a.createElement("div",{className:e,role:"presentation",onClick:this.clickForeground,onKeyDown:Dn(this.clickForeground)},this.props.showDismiss&&o.a.createElement(Mt.a,{icon:"cross-small",className:"jp-dialogue-modern-full__dismiss",tabIndex:"0",onKeyDown:Dn(this.props.dismiss),onClick:this.props.dismiss}),this.props.svg,o.a.createElement("div",{className:"jp-dialogue-modern__content"},o.a.createElement("h1",{className:"jp-dialogue-modern__title"},this.props.title),this.props.content),o.a.createElement("div",null,this.props.belowContent)))}}]),n}(a.Component);ku.propTypes={content:u.a.oneOfType([u.a.string,u.a.object]).isRequired,belowContent:u.a.oneOfType([u.a.string,u.a.object]).isRequired,svg:u.a.oneOfType([u.a.bool,u.a.object]),dismissOnClick:u.a.func,showDismiss:u.a.bool,title:u.a.string,adminUrl:u.a.string,dismiss:u.a.func},ku.defaultProps={svg:!1,showDismiss:!0,dismiss:je.noop,content:"",belowContent:"",title:""};var ju=ku,Ou=Object(ar.a)(function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackLearnMoreClick",(function(){Xe.a.tracks.recordJetpackClick({target:"warm_welcome_view_editor",version:e.props.version})})),Be()(Re()(e),"dismissNotice",(function(){Xe.a.tracks.recordJetpackClick({target:"warm_welcome_dismiss",version:e.props.version}),e.props.dismiss()})),e}return Pe()(n,[{key:"componentDidMount",value:function(){jQuery("body").addClass("jp-dialogue-modern-showing"),Xe.a.tracks.recordEvent("jetpack_warm_welcome_view",{version:this.props.version})}},{key:"componentWillUnmount",value:function(){jQuery("body").removeClass("jp-dialogue-modern-showing")}},{key:"renderInnerContent",value:function(){for(var e=(new DOMParser).parseFromString(this.props.releasePostContent,"text/html"),t=e.getElementsByTagName("a"),n=0;n<t.length;n++)t[n].setAttribute("target","_blank"),t[n].setAttribute("rel","noopener noreferrer");var r=e.body.innerHTML;return o.a.createElement("div",{className:"jp-upgrade-notice__content"},o.a.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))}},{key:"render",value:function(){var e=this.props.featuredImage,t=null,n=this.props.title;return e&&e.length>0&&(t=o.a.createElement("img",{src:e,alt:""})),n&&0!==n.length||(n=Object(Oe.sprintf)(Object(Oe.__)("New in Jetpack %s","jetpack"),this.props.version)),o.a.createElement(ju,{svg:t,title:n,content:this.renderInnerContent(),dismiss:this.dismissNotice})}}]),n}(a.Component)),Cu=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{showNotice:!0}),Be()(Re()(e),"dismissJetpackStateNotice",(function(){e.setState({showNotice:!1})})),Be()(Re()(e),"getErrorFromKey",(function(t){var n=e.props.jetpackStateNoticesErrorDescription||!1,r="";switch(t){case"cheatin":r=Object(Oe.__)("Cheatin' uh?","jetpack");break;case"access_denied":r=Object(Zn.createInterpolateElement)(Object(Oe.__)("<p>Would you mind telling us why you did not complete the Jetpack connection in this <a>2 question survey</a>?</p><p>A Jetpack connection is required for our free security and traffic features to work.</p>","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("jetpack-cancelled-connection"),target:"_blank",rel:"noopener noreferrer"}),p:o.a.createElement("p",null)});break;case"wrong_state":r=Object(Oe.__)("You need to stay logged in to your WordPress blog while you authorize Jetpack.","jetpack");break;case"invalid_client":r=Object(Oe.__)("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.","jetpack");break;case"invalid_grant":r=Object(Oe.__)('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.',"jetpack");break;case"site_inaccessible":case"site_requires_authorization":r=Object(Oe.sprintf)(Object(Oe.__)("Your website needs to be publicly accessible to use Jetpack: %s","jetpack"),t);break;case"site_blacklisted":r=Object(Zn.createInterpolateElement)(Object(Oe.__)("This site can't be connected to WordPress.com because it violates our <a>Terms of Service</a>.","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"})});break;case"not_public":r=Object(Zn.createInterpolateElement)(Object(Oe.__)("<s>Your Jetpack has a glitch.</s> Connecting this site with WordPress.com is not possible. This usually means your site is not publicly accessible (localhost).","jetpack"),{s:o.a.createElement("strong",null)});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":r=Object(Oe.__)("WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.","jetpack");break;case"register_http_request_failed":case"token_http_request_failed":r=Object(Oe.sprintf)(Object(Oe.__)("Jetpack could not contact WordPress.com: %s. This usually means something is incorrectly configured on your web host.","jetpack"),t);break;case"no_role":case"no_cap":case"no_code":case"no_state":case"invalid_state":case"invalid_request":case"invalid_scope":case"unsupported_response_type":case"invalid_token":case"no_token":case"missing_secrets":case"home_missing":case"siteurl_missing":case"gmt_offset_missing":case"site_name_missing":case"secret_1_missing":case"secret_2_missing":case"site_lang_missing":case"home_malformed":case"siteurl_malformed":case"gmt_offset_malformed":case"timezone_string_malformed":case"site_name_malformed":case"secret_1_malformed":case"secret_2_malformed":case"site_lang_malformed":case"secrets_mismatch":case"verify_secret_1_missing":case"verify_secret_1_malformed":case"verify_secrets_missing":case"verify_secrets_mismatch":r=Object(Zn.createInterpolateElement)(Object(Oe.sprintf)(Object(Oe.__)("<s>Your Jetpack has a glitch.</s> We’re sorry for the inconvenience. Please try again later, if the issue continues please contact support with this message: %s","jetpack"),t),{s:o.a.createElement("strong",null)});break;default:r=t}return n?o.a.createElement("div",null,r,o.a.createElement("br",null),n):o.a.createElement("div",null,r)})),Be()(Re()(e),"getMessageFromKey",(function(t){var n,r="",i="is-info";switch(t){case"modules_activated":r=Object(Zn.createInterpolateElement)(Object(Oe.sprintf)(Object(Oe.__)("Welcome to <s>Jetpack %s</s>!","jetpack"),e.props.currentVersion),{s:o.a.createElement("strong",null)});break;case"already_authorized":r=Object(Oe.__)("Your Jetpack is already connected.","jetpack"),i="is-success";break;case"authorized":r=Object(Oe.__)("You're fueled up and ready to go, Jetpack is now active.","jetpack"),i="is-success";break;case"linked":r=Object(Oe.__)("You're fueled up and ready to go.","jetpack"),i="is-success";break;case"protect_misconfigured_ip":r=Object(Oe.__)("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site.","jetpack"),i="is-info",n=o.a.createElement(wu,{href:Object(Ve.a)("jetpack-support-security-troubleshooting-protect")},Object(Oe.__)("Learn More","jetpack"));break;case"reconnection_completed":r=Object(Zn.createInterpolateElement)(Object(Oe.__)("Jetpack successfully reconnected! You can check your Jetpack Connection health by visiting the <a>Site Health tool</a>.","jetpack"),{a:o.a.createElement("a",{href:e.props.siteAdminUrl+"site-health.php"})}),i="is-success";break;default:r=t}return[r,i,n]})),Be()(Re()(e),"renderContent",(function(){var t,n="is-info",r="",i=e.props.jetpackStateNoticesErrorCode,a=e.props.jetpackStateNoticesMessageCode,s=e.props.jetpackStateNoticesMessageContent;if(i||a||s){if(i&&(r=e.getErrorFromKey(i),"access_denied"!==i&&(n="is-error")),s&&s.release_post_content)return o.a.createElement(Ou,{dismiss:e.dismissJetpackStateNotice,version:e.props.currentVersion,releasePostContent:s.release_post_content,featuredImage:s.release_post_featured_image,title:s.release_post_title});if(a){var c=e.getMessageFromKey(a);r=c[0],n=c[1],t=c[2]}return o.a.createElement(Un,{status:n,onDismissClick:e.dismissJetpackStateNotice,text:r},t)}})),e}return Pe()(n,[{key:"render",value:function(){return o.a.createElement("div",null,this.state.showNotice?this.renderContent():null)}}]),n}(o.a.Component);Be()(Cu,"displayName","JetpackStateNotices");var Su=Object(s.b)((function(e){return{currentVersion:Object(Rt.i)(e),jetpackStateNoticesErrorCode:Object(bu.b)(e),jetpackStateNoticesMessageCode:Object(bu.d)(e),jetpackStateNoticesErrorDescription:Object(bu.c)(e),jetpackStateNoticesMessageContent:Object(bu.e)(e),siteAdminUrl:Object(Rt.n)(e)}}))(Cu),Tu=n(148),Au=n.n(Tu),Mu=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"getEventProps",(function(){var t={location:"dashboard",purpose:"reconnect"};return e.props.errorCode&&(t.error_code=e.props.errorCode),e.props.errorData&&(e.props.errorData.api_error_code&&(t.api_error_code=e.props.errorData.api_error_code),e.props.errorData.api_http_code&&(t.api_http_code=e.props.errorData.api_http_code)),t})),Be()(Re()(e),"handleDisconnectClick",(function(){e.props.isReconnectingSite||(Xe.a.tracks.recordEvent("jetpack_termination_error_notice_click",e.getEventProps()),e.props.reconnectSite(e.props.action))})),e}return Pe()(n,[{key:"componentDidMount",value:function(){Xe.a.tracks.recordEvent("jetpack_termination_error_notice_view",this.getEventProps())}},{key:"render",value:function(){return o.a.createElement(wu,{icon:this.props.icon,onClick:this.handleDisconnectClick},this.props.children)}}]),n}(o.a.Component);Be()(Mu,"propTypes",{icon:u.a.string,errorCode:u.a.string,errorData:u.a.object,action:u.a.string});var Nu=Object(s.b)((function(e){return{isReconnectingSite:Object(qe.t)(e)}}),(function(e){return{reconnectSite:function(){return e(Object(qe.A)())}}}))(Mu),xu=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return o.a.createElement(Un,{showDismiss:!1,text:this.props.text,status:"is-error",icon:"link-break"},o.a.createElement(Nu,{errorCode:this.props.errorCode,errorData:this.props.errorData,action:this.props.action},Object(Oe.__)("Restore Connection","jetpack")))}}]),n}(o.a.Component);Be()(xu,"defaultProps",{text:Object(Oe.__)("Connection Error, please reconnect.","jetpack")}),Be()(xu,"propTypes",{text:u.a.string.isRequired,errorCode:u.a.string,errorData:u.a.object,action:u.a.string});var Pu=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"getAction",value:function(e,t,n,r,i){switch(e){case"reconnect":return o.a.createElement(xu,{text:t,errorCode:n,errorData:r,action:e});case"support":return o.a.createElement(Un,{text:t,status:"is-error",icon:"link-break",showDismiss:!1},o.a.createElement(wu,{href:i,external:!0},Object(Oe.__)("Contact support","jetpack")))}return null}},{key:"renderOne",value:function(e){var t=this.props.isDevVersion?Kn:Hn,n=this.getAction(e.action,e.message,e.code,e.hasOwnProperty("data")?e.data:{},t);return null===n?null:o.a.createElement(o.a.Fragment,{key:e.action},n)}},{key:"render",value:function(){var e,t=this,n={},r=this.props.errors.filter((function(e){return e.hasOwnProperty("action")})),i=Au()(r);try{for(i.s();!(e=i.n()).done;){var a=e.value;n.hasOwnProperty(a.action)||(n[a.action]=a)}}catch(o){i.e(o)}finally{i.f()}return Object.values(n).map((function(e){return t.renderOne(e)}))}}]),n}(o.a.Component);Be()(Pu,"propTypes",{errors:u.a.array.isRequired});n(477);var Iu=Kt()("calypso:notices");Iu("initializing notices");var Ru={containerNames:{}};!function(e){Object(je.assign)(e,ro.EventEmitter.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}(Ru);var Du=[],Uu={new:function(e,t,n){var r=t.overlay?"overlay-notices":"notices";Ru.containerNames[r]=r,Iu("creating notice",e,t,n),Ru[r]=[];var i={type:t.type||"message",status:n,text:e,duration:t.duration,container:r,button:t.button,href:t.href,onClick:function(e){if("function"==typeof t.onClick){var n=Uu.removeNotice.bind(Uu,i);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?Du.push(i):Ru[r].push(i),Ru.emit("change"),i},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:Ru,removeNotice:function(e){if(e.container){var t=Ru[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),Ru.emit("change"))}},clearNoticesOnNavigation:function(e,t){Iu("clearNoticesOnNavigation");var n,r,i=!1,a=function(e){return e.persistent};for(r in Ru.containerNames)n=Ru[r].length,Ru[r]=Ru[r].filter(a),n!==Ru[r].length&&(i=!0);Du.length&&(Du.forEach((function(e){Ru[e.container]=[],Ru[e.container].push(e)})),Du=[]),i&&Ru.emit("change"),t()},clearNotices:function(e){Ru[e]=[],Ru.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}},Lu=Uu,Fu=(n(478),Kt()("calypso:notices")),zu=function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"removeNotice",(function(e){e&&Lu.removeNotice(e)})),Be()(Re()(e),"handleLocalNoticeDismissClick",(function(t){return function(){return e.removeNotice(t)}})),Be()(Re()(e),"handleReduxNoticeDismissClick",(function(t){return function(){return e.props.removeNotice(t)}})),e}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){Fu("Mounting Global Notices React component.")}},{key:"render",value:function(){var e=(this.props.notices[this.props.id]||[]).map((function(e,t){return o.a.createElement(Un,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.handleLocalNoticeDismissClick(e),showDismiss:e.showDismiss},e.button&&o.a.createElement(wu,{href:e.href,onClick:e.onClick},e.button))}),this);return(e=e.concat(this.props.storeNotices.map((function(e,t){return o.a.createElement(Un,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text})}),this))).length?o.a.createElement("div",{id:this.props.id,className:"global-notices"},e):null}}]),n}(o.a.Component);Be()(zu,"displayName","NoticesList"),Be()(zu,"propTypes",{id:u.a.string,notices:u.a.oneOfType([u.a.object,u.a.array])}),Be()(zu,"defaultProps",{id:"overlay-notices",notices:Object.freeze([])});var Bu=Object(s.b)((function(e){return{storeNotices:e.globalNotices}}),(function(e){return Object(Nn.b)({removeNotice:Si.c},e)}))(zu);var Vu=fe((function(e){var t=e.activeSitePurchases;if("/plans"!==e.location.pathname)return null;if(t.length<=1)return null;var n=t.map((function(e){var t=e.product_slug,n=on()(e,["product_slug"]);return Ze()(Ze()({},n),{},{product_slug:t.replace("_monthly","")})})),r=n.find((function(e){return e.product_slug.includes("backup")}));if(!r)return null;var i=n.find((function(e){var t=e.product_slug;return"jetpack_personal"===t||"jetpack_premium"===t||"jetpack_business"===t}));if(!i)return null;if("jetpack_backup_realtime"===r.product_slug&&"jetpack_business"!==i.product_slug)return null;var a=Object(Oe.__)("daily backups","jetpack");return"jetpack_business"===i.product_slug&&(a=Object(Oe.__)("real-time backups","jetpack")),o.a.createElement(Un,{status:"is-warning",showDismiss:!1,text:Object(Oe.sprintf)(Object(Oe.__)("Your %2$s Plan includes %1$s. Looks like you also purchased the %3$s product. Consider removing %3$s.","jetpack"),a,i.product_name,r.product_name)})})),Hu=Object(s.b)((function(e){return{activeSitePurchases:Object(Sn.j)(e)}}))(Vu),Ku=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&o.a.createElement(Un,{showDismiss:!1,text:Object(Oe.__)("You are currently running a development version of Jetpack.","jetpack")},o.a.createElement(wu,{href:Kn,external:!0},Object(Oe.__)("Submit Beta feedback","jetpack")))}}]),n}(o.a.Component);Be()(Ku,"displayName","DevVersionNotice"),Ku.propTypes={isDevVersion:u.a.bool.isRequired,userIsSubscriber:u.a.bool.isRequired};var Ju=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){if(this.props.isStaging&&!this.props.isInIdentityCrisis){var e=Object(Ve.a)("jetpack-support-staging-sites"),t={text:Object(Oe.__)("You are running Jetpack on a staging server.","jetpack"),status:"is-basic",showDismiss:!1};return o.a.createElement(Un,t,o.a.createElement(wu,{href:e},Object(Oe.__)("More Info","jetpack")))}return!1}}]),n}(o.a.Component);Be()(Ju,"displayName","StagingSiteNotice"),Ju.propTypes={isStaging:u.a.bool.isRequired,isInIdentityCrisis:u.a.bool.isRequired};var qu=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){if("offline"===this.props.siteConnectionStatus){var e=this.props.siteOfflineMode,t=[];e.filter&&t.push(Object(Oe.__)("The jetpack_development_mode filter is active","jetpack")),e.constant&&t.push(Object(Oe.sprintf)(Object(Oe.__)("The %s constant is defined","jetpack"),"JETPACK_DEV_DEBUG")),e.wpLocalConstant&&t.push(Object(Oe.sprintf)(Object(Oe.__)("The %s constant is defined","jetpack"),"WP_LOCAL_DEV")),e.url&&t.push(Object(Oe.__)("Your site URL is a known local development environment URL","jetpack"));var n=Object(Zn.createInterpolateElement)(Object(Oe.__)("Currently in <a>Offline Mode</a> (some features are disabled) because: <reasons/>","jetpack"),{a:o.a.createElement("a",{href:Object(Ve.a)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"}),reasons:o.a.createElement("ul",null,t.map((function(e,t){return o.a.createElement("li",{key:t},e)})))});return o.a.createElement(Un,{showDismiss:!1,status:"is-info",text:n},o.a.createElement(wu,{href:Object(Ve.a)("jetpack-support-development-mode")},Object(Oe.__)("Learn More","jetpack")))}return!1}}]),n}(o.a.Component);Be()(qu,"displayName","OfflineModeNotice"),qu.propTypes={siteConnectionStatus:u.a.oneOfType([u.a.string,u.a.bool]).isRequired,siteOfflineMode:u.a.oneOfType([u.a.bool,u.a.object]).isRequired};var Wu=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&o.a.createElement("div",{className:"jp-unlinked-notice"},o.a.createElement(gu,{title:Object(Oe.__)("Jetpack is powering your site, but to access all of its features you’ll need to connect your account to WordPress.com.","jetpack"),callToAction:Object(Oe.__)("Create account","jetpack"),href:"".concat(this.props.connectUrl,"&from=unlinked-user-connect"),icon:"my-sites",className:"is-jetpack-info",from:"unlinked-user-connect",connectUser:!0}))}}]),n}(o.a.Component);Be()(Wu,"displayName","UserUnlinked"),Wu.propTypes={connectUrl:u.a.string.isRequired,siteConnected:u.a.bool.isRequired};var Gu=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"render",value:function(){var e=this.props.siteDataErrors.filter((function(e){return e.hasOwnProperty("action")}));return o.a.createElement("div",{"aria-live":"polite"},o.a.createElement(Bu,null),this.props.siteConnectionStatus&&this.props.userCanConnectSite&&!this.props.isReconnectingSite&&(this.props.connectionErrors.length>0||e.length>0)&&o.a.createElement(Pu,{errors:this.props.connectionErrors.concat(e)}),o.a.createElement(Su,null),o.a.createElement(Ku,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),o.a.createElement(qu,{siteConnectionStatus:this.props.siteConnectionStatus,siteOfflineMode:this.props.siteOfflineMode}),o.a.createElement(Ju,{isStaging:this.props.isStaging,isInIdentityCrisis:this.props.isInIdentityCrisis}),o.a.createElement(Hu,null),o.a.createElement(yu,null),!this.props.isReconnectingSite&&this.props.userCanConnectAccount&&this.props.hasConnectedOwner&&!e.length&&!this.props.connectionErrors.length&&o.a.createElement(Wu,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&o.a.createElement(Un,{showDismiss:!1,status:"is-warning",text:Object(Oe.__)("This site is not connected to WordPress.com. Please ask the site administrator to connect.","jetpack")}),this.props.licensingError&&o.a.createElement(Un,{showDismiss:!0,status:"is-error",text:this.props.licensingError,onDismissClick:this.props.clearLicensingError}))}}]),n}(o.a.Component);Be()(Gu,"displayName","JetpackNotices");var Yu=Object(s.b)((function(e){return{connectUrl:Object(qe.f)(e),siteConnectionStatus:Object(qe.i)(e),userCanConnectSite:Object(Rt.H)(e),userCanConnectAccount:Object(Rt.G)(e),userIsSubscriber:Object(Rt.O)(e),isLinked:Object(qe.n)(e),isDevVersion:Object(Rt.x)(e),siteOfflineMode:Object(qe.j)(e),isStaging:Object(qe.w)(e),isInIdentityCrisis:Object(qe.r)(e),connectionErrors:Object(Rt.g)(e),siteDataErrors:Object(Sn.n)(e),isReconnectingSite:Object(qe.t)(e),licensingError:Object(Eu.a)(e),hasConnectedOwner:Object(qe.k)(e)}}),(function(e){return{clearLicensingError:function(){return e((function(e){return e({type:Ft.JETPACK_LICENSING_ERROR_UPDATE,error:""}),En.a.updateLicensingError({error:""})}))}}}))(Gu),$u=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"componentDidMount",value:function(){var e=jQuery(this.refs.adminNotices),t=jQuery(".vp-deactivated");t.length>0&&t.each((function(){var t=jQuery(this).addClass("dops-notice is-success is-dismissable").removeClass("wrap vp-notice notice notice-success");t.wrapInner('<span class="dops-notice__content">'),t.find(".dops-notice__content").before('<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></svg></span>').css("display","block"),t.find(".dops-notice__content").after('<span role="button" tabindex="0" class="dops-notice__dismiss"><svg class="gridicon gridicons-cross" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg><span class="screen-reader-text"/></span>'),t.find("h2").replaceWith((function(){return jQuery("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML})})),t.prependTo(e).css("display","flex")}));var n=jQuery(".vp-notice");n.length>0&&n.each((function(){var t=jQuery(this);if(0===t.find(".dops-notice__icon").length){var n=t.hasClass("vp-registered"),r=n?"is-success":"is-error";t.addClass("dops-notice vp-notice-jp "+r),t.wrapInner('<span class="dops-notice__content">');var i=n?'<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></svg></span>':'<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"/></svg></span>';t.find(".dops-notice__content").before(i),t.find(".vp-message").removeClass("vp-message").addClass("dops-notice__text"),t.find("h3").replaceWith((function(){return jQuery("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML})})),t.css("display","flex")}t.find('a[href*="admin.php?page=vaultpress"]').remove(),t.prependTo(e).removeClass("wrap vp-notice")}));var r=jQuery(".woocommerce-message");r.length>0&&r.each((function(){var t=jQuery(this).addClass("dops-notice").removeClass("updated wc-connect");t.find(".button-primary").addClass("dops-notice__action").removeClass("button-primary").detach().appendTo(t),t.find("p").not(".submit").wrapAll('<span class="dops-notice__text"/>');var n=t.find(".dops-notice__text");n.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML,class:"dops-notice__moved_text"})})),n.find("br").remove(),t.find(".button-secondary").removeClass("button-secondary").detach().appendTo(n),t.find(".submit").remove(),t.find(".woocommerce-message-close").removeClass("woocommerce-message-close notice-dismiss").addClass("dops-notice__action"),t.wrapInner('<span class="dops-notice__content">').prependTo(e).css("display","flex"),t.find(".dops-notice__action").not(":first").removeClass("dops-notice__action").detach().appendTo(t.find(".dops-notice__text")),t.find(".dops-notice__action:first").detach().appendTo(t)}));var i=jQuery(".notice");i.length>0&&i.each((function(){jQuery(this).hide()})),e.length>0&&jQuery(".dops-notice__dismiss").click((function(){jQuery(this).parent().closest("div").hide()}))}},{key:"render",value:function(){return o.a.createElement("div",{id:"jp-admin-notices",ref:"adminNotices","aria-live":"polite"})}}]),n}(o.a.Component),Zu=function(e){Ue()(n,e);var t=Fe()(n);function n(){return Ne()(this,n),t.apply(this,arguments)}return Pe()(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&e.searchTerm.length>=3&&t("jetpack_wpa_search_term",{term:e.searchTerm})}},{key:"render",value:function(){return null}}]),n}(a.Component);Zu.propTypes={analytics:u.a.object,searchTerm:u.a.string};var Xu=Object(s.b)((function(e){return{searchTerm:Object(Lt.a)(e)}}))(Zu),Qu=(n(479),function(e){Ue()(n,e);var t=Fe()(n);function n(){var e;Ne()(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"shouldShowModal",(function(){return e.props.show&&e.props.isSiteConnected&&!e.props.isReconnectingSite})),Be()(Re()(e),"closeModal",(function(){e.props.onHide()})),Be()(Re()(e),"clickReconnectSite",(function(t){t.preventDefault(),Xe.a.tracks.recordJetpackClick("confirm_reconnect_modal"),e.props.reconnectSite(),e.closeModal()})),e}return Pe()(n,[{key:"render",value:function(){return this.shouldShowModal()&&o.a.createElement(ri,{className:"reconnect__modal",onRequestClose:this.closeModal},o.a.createElement(en.a,{className:"reconnect__modal__body"},o.a.createElement("h2",null,Object(Oe.__)("Reconnect Jetpack","jetpack")),o.a.createElement("h4",null,Object(Oe.__)("You’ve clicked a link to restore your Jetpack connection.","jetpack")),o.a.createElement("h4",null,o.a.createElement("strong",null,Object(Oe.__)("You should only do this if advised by Site Health tests or Jetpack Support.","jetpack"))),o.a.createElement("h4",null,Object(Oe.__)("Click below to reconnect Jetpack","jetpack")),o.a.createElement("div",{className:"reconnect__modal-actions"},o.a.createElement(sn.a,{className:"reconnect__modal-cancel",onClick:this.closeModal},Object(Oe._x)("Cancel","A caption for a button to cancel an action.","jetpack")),o.a.createElement(sn.a,{className:"reconnect__modal-reconnect",onClick:this.clickReconnectSite,primary:!0},Object(Oe._x)("Reconnect Jetpack","A caption for a button to reconnect Jetpack.","jetpack")))))}}]),n}(o.a.Component));Be()(Qu,"displayName","ReconnectModal"),Be()(Qu,"propTypes",{show:u.a.bool,onHide:u.a.func}),Be()(Qu,"defaultProps",{show:!1});var ep=Object(s.b)((function(e){return{isSiteConnected:Object(qe.u)(e),isReconnectingSite:Object(qe.t)(e)}}),(function(e){return{reconnectSite:function(){return e(Object(qe.A)())}}}))(Qu),tp=["/recommendations","/recommendations/site-type","/recommendations/woocommerce","/recommendations/monitor","/recommendations/related-posts","/recommendations/creative-mail","/recommendations/site-accelerator","/recommendations/summary"],np=["/","/dashboard","/reconnect","/my-plan","/plans"],rp=["/settings","/security","/performance","/writing","/sharing","/discussion","/traffic","/privacy"],ip=function(e){Ue()(n,e);var t=Fe()(n);function n(e){var r;return Ne()(this,n),r=t.call(this,e),Be()(Re()(r),"handleRouterWillLeave",(function(){var e=Object(Oe.__)("There are unsaved settings in this tab that will be lost if you leave it. Proceed?","jetpack");return!!confirm(e)&&(window.setTimeout(r.props.clearUnsavedSettingsFlag,10),!0)})),Be()(Re()(r),"initializeAnalytics",(function(){var e=r.props.tracksUserData;e&&Xe.a.initialize(e.userid,e.username,{blog_id:e.blogid})})),Be()(Re()(r),"renderMainContent",(function(e){if(!r.props.userCanManageModules)return!!r.props.siteConnectionStatus&&o.a.createElement("div",{"aria-live":"assertive"},o.a.createElement(fu,r.props));if(!1===r.props.siteConnectionStatus&&r.props.userCanConnectSite)return o.a.createElement("div",{className:"jp-jetpack-connect__container","aria-live":"assertive"});var t,n=o.a.createElement(Qt,{routeName:r.props.routeName,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl}),i=o.a.createElement(Ut,{routeName:r.props.routeName});switch(e){case"/dashboard":case"/reconnect":case"/disconnect":t=o.a.createElement(Il,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus});break;case"/my-plan":t=o.a.createElement(Gl,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus});break;case"/plans":case"/plans-prompt":window.location.href=Object(Ve.a)("jetpack-plans",{site:r.props.siteRawUrl});break;case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/traffic":case"/privacy":i=n,t=o.a.createElement(Uo,{siteAdminUrl:r.props.siteAdminUrl,siteRawUrl:r.props.siteRawUrl,searchTerm:r.props.searchTerm,rewindStatus:r.props.rewindStatus,userCanManageModules:r.props.userCanManageModules});break;case"/recommendations":case"/recommendations/site-type":case"/recommendations/woocommerce":case"/recommendations/monitor":case"/recommendations/related-posts":case"/recommendations/creative-mail":case"/recommendations/site-accelerator":case"/recommendations/summary":r.props.showRecommendations?t=o.a.createElement(Nc,null):(r.props.history.replace("/dashboard"),t=r.getAtAGlance());break;default:r.props.history.replace("/dashboard"),t=r.getAtAGlance()}return window.wpNavMenuClassChange(),o.a.createElement("div",{"aria-live":"assertive",className:"".concat(r.shouldBlurMainContent()?"blur":"")},i,t)})),r.closeReconnectModal=r.closeReconnectModal.bind(Re()(r)),r}return Pe()(n,[{key:"UNSAFE_componentWillMount",value:function(){this.props.setInitialState(),En.a.setApiRoot(this.props.apiRoot),En.a.setApiNonce(this.props.apiNonce),this.initializeAnalytics(),window.addEventListener("beforeunload",this.props.clearUnsavedSettingsFlag),this.props.isSiteConnected&&Xe.a.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion})}},{key:"componentDidMount",value:function(){var e=jQuery(".jp-jetpack-connect__container"),t=jQuery(".jp-connect-full__container");e&&t.length>0&&t.prependTo(e)}},{key:"shouldComponentUpdate",value:function(e){return!["/wpbody-content","/wp-toolbar"].includes(e.location.pathname)&&(e.siteConnectionStatus!==this.props.siteConnectionStatus||e.isLinked!==this.props.isLinked||e.isAuthorizingInPlace!==this.props.isAuthorizingInPlace||e.location.pathname!==this.props.location.pathname||e.searchTerm!==this.props.searchTerm||e.rewindStatus!==this.props.rewindStatus||e.areThereUnsavedSettings!==this.props.areThereUnsavedSettings||e.isReconnectingSite!==this.props.isReconnectingSite)}},{key:"componentDidUpdate",value:function(e){if(e.location.pathname!==this.props.location.pathname&&this.props.isSiteConnected&&Xe.a.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion}),e.siteConnectionStatus!==this.props.siteConnectionStatus){var t=jQuery("#toplevel_page_jetpack").find("ul.wp-submenu li");t.find('a[href$="#/settings"]').hide(),t.find('a[href$="admin.php?page=stats"]').hide()}}},{key:"getAtAGlance",value:function(){return o.a.createElement(Il,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus})}},{key:"shouldShowAppsCard",value:function(){return this.props.isSiteConnected&&np.includes(this.props.location.pathname)}},{key:"shouldShowSupportCard",value:function(){return this.props.isSiteConnected&&np.includes(this.props.location.pathname)}},{key:"shouldShowRewindStatus",value:function(){return this.props.isSiteConnected&&np.includes(this.props.location.pathname)}},{key:"shouldShowMasthead",value:function(){return[].concat(np,tp,rp).includes(this.props.location.pathname)}},{key:"shouldShowFooter",value:function(){return[].concat(np,rp,tp).includes(this.props.location.pathname)}},{key:"shouldShowAuthIframe",value:function(){return this.props.isAuthorizingInPlace}},{key:"shouldBlurMainContent",value:function(){return this.props.isReconnectingSite}},{key:"shouldShowReconnectModal",value:function(){return"/reconnect"===this.props.location.pathname}},{key:"closeReconnectModal",value:function(){this.props.history.replace("/dashboard")}},{key:"render",value:function(){return o.a.createElement("div",null,this.shouldShowReconnectModal()&&o.a.createElement(ep,{show:!0,onHide:this.closeReconnectModal}),this.shouldShowMasthead()&&o.a.createElement(Ye.a,{location:this.props.location}),o.a.createElement("div",{className:"jp-lower"},this.shouldShowRewindStatus()&&o.a.createElement(Li,null),o.a.createElement($u,null),o.a.createElement(Yu,null),this.shouldShowAuthIframe()&&o.a.createElement(Ge,this.props.isReconnectingSite&&{scrollToIframe:!1,title:Object(Oe.__)("Reconnect to WordPress.com by approving the connection","jetpack")}),o.a.createElement(Q,{when:this.props.areThereUnsavedSettings,message:this.handleRouterWillLeave}),this.renderMainContent(this.props.location.pathname),this.shouldShowSupportCard()&&o.a.createElement(uu,{path:this.props.location.pathname}),this.shouldShowAppsCard()&&o.a.createElement(du,null)),this.shouldShowFooter()&&o.a.createElement(cu,{siteAdminUrl:this.props.siteAdminUrl}),o.a.createElement(Xu,{analytics:Xe.a}))}}]),n}(o.a.Component),ap=Object(s.b)((function(e){return{siteConnectionStatus:Object(qe.i)(e),isLinked:Object(qe.n)(e),isAuthorizingInPlace:Object(qe.l)(e),siteRawUrl:Object(Rt.p)(e),siteAdminUrl:Object(Rt.n)(e),searchTerm:Object(Lt.a)(e),apiRoot:Object(Rt.f)(e),apiNonce:Object(Rt.e)(e),tracksUserData:Object(Rt.s)(e),areThereUnsavedSettings:Object(tn.b)(e),userCanManageModules:Object(Rt.K)(e),userCanConnectSite:Object(Rt.H)(e),isSiteConnected:Object(qe.u)(e),isReconnectingSite:Object(qe.t)(e),rewindStatus:Object(An.b)(e),currentVersion:Object(Rt.i)(e),showRecommendations:Object(Rt.F)(e)}}),(function(e){return{setInitialState:function(){return e(Object(Rt.C)())},clearUnsavedSettingsFlag:function(){return e(Object(tn.c)())},reconnectSite:function(){return e(Object(qe.A)())}}}))(fe(ip));function op(e){switch(e){case"/dashboard":return Object(Oe._x)("At A Glance","Navigation item.","jetpack");case"/setup":return Object(Oe._x)("Set up","Navigation item.","jetpack");case"/my-plan":return Object(Oe._x)("My Plan","Navigation item.","jetpack");case"/plans":case"/plans-prompt":return Object(Oe._x)("Plans","Navigation item.","jetpack");case"/settings":return Object(Oe._x)("Settings","Navigation item.","jetpack");case"/discussion":return Object(Oe._x)("Discussion","Navigation item.","jetpack");case"/security":return Object(Oe._x)("Security","Navigation item.","jetpack");case"/performance":return Object(Oe._x)("Performance","Navigation item.","jetpack");case"/traffic":return Object(Oe._x)("Traffic","Navigation item.","jetpack");case"/writing":return Object(Oe._x)("Writing","Navigation item.","jetpack");case"/sharing":return Object(Oe._x)("Sharing","Navigation item.","jetpack");default:return Object(Oe._x)("At A Glance","Navigation item.","jetpack")}}window.wpNavMenuClassChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dashboard:1,settings:2},t=window.location.hash;jQuery(".current").each((function(e,t){jQuery(t).removeClass("current")}));var n=function(e){return jQuery("#toplevel_page_jetpack").find("li").filter((function(t){return t===e}))[0]};t=t.split("?")[0].replace(/#/,""),np.includes(t)||tp.includes(t)?n(e.dashboard).classList.add("current"):rp.includes(t)&&n(e.settings).classList.add("current");var r=jQuery("body");r.on("click",'a[href$="#/dashboard"], a[href$="#/settings"], .jp-dash-section-header__settings[href="#/security"], .dops-button[href="#/my-plan"], .dops-button[href="#/plans"], .jp-dash-section-header__external-link[href="#/security"]',(function(){window.scrollTo(0,0)})),r.on("click",".jetpack-js-stop-propagation",(function(e){e.stopPropagation()}))},Te(),function(){var e=document.getElementById("jp-plugin-container");if(null===e)return;i.a.render(o.a.createElement("div",null,o.a.createElement(s.a,{store:Ae.a},o.a.createElement(me,null,o.a.createElement(he,null,o.a.createElement(se,{path:"/dashboard"},o.a.createElement(ap,{routeName:op("/dashboard")})),o.a.createElement(se,{path:"/reconnect"},o.a.createElement(ap,{routeName:op("/reconnect")})),o.a.createElement(se,{path:"/setup"},o.a.createElement(ap,{routeName:op("/setup")})),o.a.createElement(se,{path:"/my-plan"},o.a.createElement(ap,{routeName:op("/my-plan")})),o.a.createElement(se,{path:"/plans"},o.a.createElement(ap,{routeName:op("/plans")})),o.a.createElement(se,{path:"/plans-prompt"},o.a.createElement(ap,{routeName:op("/plans-prompt")})),o.a.createElement(se,{path:"/settings"},o.a.createElement(ap,{routeName:op("/settings")})),o.a.createElement(se,{path:"/discussion"},o.a.createElement(ap,{routeName:op("/discussion")})),o.a.createElement(se,{path:"/security"},o.a.createElement(ap,{routeName:op("/security")})),o.a.createElement(se,{path:"/performance"},o.a.createElement(ap,{routeName:op("/performance")})),o.a.createElement(se,{path:"/traffic"},o.a.createElement(ap,{routeName:op("/traffic")})),o.a.createElement(se,{path:"/writing"},o.a.createElement(ap,{routeName:op("/writing")})),o.a.createElement(se,{path:"/sharing"},o.a.createElement(ap,{routeName:op("/sharing")})),o.a.createElement(se,{path:"/wpbody-content",component:ap}),o.a.createElement(se,{path:"/wp-toolbar",component:ap}),o.a.createElement(se,{path:"/privacy",component:ap}),o.a.createElement(se,{path:"/*"},o.a.createElement(ap,{routeName:op("/*")})))))),e)}()}]));