Jetpack by WordPress.com - Version 6.4

Version Description

  • Release date: August 7, 2018
  • Release post: https://wp.me/p1moTy-9md

Enhancements

  • Connection: Updated connect splash screen with new content.
  • Docs: Added documentation for retrieving provision status of a site.
  • Shortcodes: Added oEmbed support for flat.io.
  • Widgets: Added jetpack_top_posts_widget_layout filter that allows you to create a custom display layout for the Top posts widget.
  • Privacy tools: Identify the data export/erasure callbacks for Feedback posts using associative keys, to better match the convention in Core.
  • Privacy tools: Added the grunion_contact_form_delete_feedback_post filter hook to allow specific Feedback posts to be bypassed during data erasure requests, similar to the wp_anonymize_comment filter in Core.
  • Contact Form: Disabled random table optimizations on core tables.

Improved compatibility

  • AMP: Improved AMP compatibility for Comments iframe.
  • General: The SEO Framework is no longer a conflicting Open Graph plugin and is now better compatible with Jetpack.

Bug fixes

  • Shortcodes: Removed extra black bars from YouTube embeds as controls are inside the container now.
  • Simple Payments: Fixed the custom post type bug that affected Simple Payments widget for 2 year subscriptions.
  • Simple Payments: Fixed site failure which happens on Multisite installation with Simple Payments widget.
  • Simple Payments: Fixed syntax and misc compatibility issues with Simple Payments widget on PHP 5.2.
  • Simple Payments: Added warning for admin users if Simple Payments is not enabled but there are products published on pages/posts as a widget.
  • Lazy Images: Fixed an issue with images not loading while updating quantity in WooCommerce shopping cart.
  • Lazy Images: Fixed centered images that do not crop properly when no JavaScript is enabled.
  • General: Fixed auto scrolling to top when following the Quick Tour buttons.
  • General: Removed ability to set custom name for Site Identity section.
  • General: Added advanced control capabilities to image extraction from posts.
Download this release

Release Info

Developer oskosk
Plugin Icon 128x128 Jetpack by WordPress.com
Version 6.4
Comparing to
See all releases

Code changes from version 6.3.3 to 6.4

3rd-party/woocommerce.php CHANGED
@@ -93,3 +93,13 @@ function jetpack_woocommerce_infinite_scroll_style() {
93
  }";
94
  wp_add_inline_style( 'woocommerce-layout', $custom_css );
95
  }
 
 
 
 
 
 
 
 
 
 
93
  }";
94
  wp_add_inline_style( 'woocommerce-layout', $custom_css );
95
  }
96
+
97
+ function jetpack_woocommerce_lazy_images_compat() {
98
+ wp_add_inline_script( 'wc-cart-fragments', "
99
+ jQuery( 'body' ).bind( 'wc_fragments_refreshed', function() {
100
+ jQuery( 'body' ).trigger( 'jetpack-lazy-images-load' );
101
+ } );
102
+ " );
103
+ }
104
+
105
+ add_action( 'wp_enqueue_scripts', 'jetpack_woocommerce_lazy_images_compat', 11 );
_inc/build/admin.js CHANGED
@@ -31,7 +31,7 @@ t.fetchPluginUpdates=t.checkAkismetKey=t.fetchAkismetData=t.fetchVaultPressData=
31
  selected:"/dashboard"===this.props.route.path||"/"===this.props.route.path},(0,k.translate)("At a Glance",{context:"Navigation item."})),M.default.createElement(w.default,{path:"#/plans",onClick:this.trackPlansClick,selected:"/plans"===this.props.route.path},(0,k.translate)("Plans",{context:"Navigation item."}))):M.default.createElement(A.default,{selectedText:this.props.route.name},M.default.createElement(w.default,{path:"#/dashboard",selected:"/dashboard"===this.props.route.path||"/"===this.props.route.path},(0,k.translate)("At a Glance",{context:"Navigation item."}))),M.default.createElement("div",{id:"jp-navigation",className:"dops-navigation"},M.default.createElement(v.default,{selectedText:this.props.route.name},e))}}]),t}(M.default.Component);O.propTypes={route:m.default.object.isRequired},t.default=(0,b.connect)(function(e){return{userCanManageModules:(0,C.userCanManageModules)(e),userCanViewStats:(0,C.userCanViewStats)(e),isModuleActivated:function(t){return(0,S.isModuleActivated)(e,t)}}})(O)},function(e,t,n){"use strict";var r=n(7),a=n(1),i=n(936),o=n(14),s=n(34),c=n(805),u=n(810),l=n(866);n(946);var d=s({displayName:"SectionNav",propTypes:{children:r.node,selectedText:r.node,selectedCount:r.number,hasPinnedItems:r.bool,onMobileNavPanelOpen:r.func},getInitialState:function(){return{mobileOpen:!1}},getDefaultProps:function(){return{onMobileNavPanelOpen:function(){}}},componentWillMount:function(){this.checkForSiblingControls(this.props.children)},componentWillReceiveProps:function(e){i(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())},render:function(){var e=this.getChildren(),t=void 0;return e?(t=o({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),a.createElement("div",{className:t},a.createElement("div",{className:"dops-section-nav__mobile-header",onTouchTap:this.toggleMobileOpenState},a.createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),a.createElement("div",{className:"dops-section-nav__panel"},e))):(t=o({"dops-section-nav":!0,"is-empty":!0}),a.createElement("div",{className:t},a.createElement("div",{className:"dops-section-nav__panel"},a.createElement(u,null))))},getChildren:function(){return a.Children.map(this.props.children,function(e){var t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==c||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===c&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===l&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),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,a.Children.forEach(e,function(e,t){t&&e&&e.type!==l&&(this.hasSiblingControls=!0)}.bind(this))}});e.exports=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(149),M=r(_),b=n(1),g=r(b),v=n(502),y=r(v),A=n(459),E=r(A),w=n(503),k=r(w),T=n(864),L=r(T),S=n(939),C=r(S),O=n(14),z=r(O),N=n(865),D=r(N),P=n(941),x=r(P),j=n(942),R=r(j),Y=n(806),I=r(Y);n(943);var q=g.default.Component,B=function(){},W=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));n.navigateItem=n.navigateItem.bind(n),n.toggleDropdown=n.toggleDropdown.bind(n),n.handleOutsideClick=n.handleOutsideClick.bind(n),n._onClick=n._onClick.bind(n);var r={isOpen:!1};return e.options.length&&(r.selected=n.getInitialSelectedItem(e)),n.state=r,n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.setState({instanceId:++t.instances})}},{key:"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,e.initialSelected)return e.initialSelected;if(e.options.length){var t=(0,y.default)(e.options,function(e){return!e.isLabel});return t&&t.value}}},{key:"dropdownOptions",value:function(){var e=0,t=this;return this.props.children?g.default.Children.map(this.props.children,function(n,r){if(!n)return null;var a=g.default.cloneElement(n,{ref:n.type===D.default?"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===D.default&&e++,a},this):this.props.options.map(function(t,n){if(!t)return g.default.createElement(x.default,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(t.isLabel)return g.default.createElement(R.default,{key:"dropdown-label-"+this.state.instanceId+"-"+n},t.label);var r=g.default.createElement(D.default,{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=(0,z.default)(e),n=this.props.selectedText?this.props.selectedText:(0,C.default)((0,y.default)(this.props.options,{value:this.state.selected}),"label");return g.default.createElement("div",{style:this.props.style,className:t},g.default.createElement("div",{ref:"dropdownContainer",className:"dops-select-dropdown__container",valueLink:this.props.valueLink,tabIndex:this.props.tabIndex||0,role:"listbox","aria-labelledby":"select-dropdown-"+this.state.instanceId,"aria-haspopup":"true","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},g.default.createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},g.default.createElement("span",{className:"dops-select-dropdown__header-text"},n,"number"==typeof this.props.selectedCount&&g.default.createElement(I.default,{count:this.props.selectedCount}))),g.default.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=void 0,n=void 0;if(this.state.isOpen){this.props.options.length?(t=(0,L.default)((0,E.default)(this.props.options,function(e){return e&&!e.isLabel}),"value"),n="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=(0,E.default)(this.props.children,function(e){return e.type===D.default}),n="number"==typeof this.focused?this.focused:(0,k.default)(t,function(e){return e.props.selected}));var r="previous"===e?-1:1,a=n+r;a>=t.length||a<0||(M.default.findDOMNode(this.refs["item-"+a].refs.itemLink).focus(),this.focused=a)}}},{key:"handleOutsideClick",value:function(e){M.default.findDOMNode(this.refs.dropdownContainer).contains(e.target)||this.closeDropdown()}}]),t}(q);W.defaultProps={options:[],onSelect:B,onToggle:B,disabled:!1,style:{}},W.propTypes={selectedText:m.default.string,selectedCount:m.default.number,initialSelected:m.default.string,className:m.default.string,style:m.default.object,onSelect:m.default.func,onToggle:m.default.func,focusSibling:m.default.func,tabIndex:m.default.number,disabled:m.default.bool,options:m.default.arrayOf(m.default.shape({value:m.default.string.isRequired,label:m.default.string.isRequired,path:m.default.string}))},W.instances=0,t.default=W,e.exports=t.default},function(e,t,n){function r(e,t){return(s(e)?a:o)(e,i(t,3))}var a=n(126),i=n(91),o=n(938),s=n(26);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(806),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=_(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return m.createElement("li",{className:"dops-select-dropdown__option"},m.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},m.createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&m.createElement(M,{count:this.props.count}))))}}]),t}(m.Component);b.propTypes={children:h.string.isRequired,path:h.string,selected:h.bool,onClick:h.func,count:h.number},b.defaultProps={selected:!1},e.exports=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}var i=n(11),o=r(i),s=n(2),c=r(s),u=n(3),l=r(u),d=n(6),f=r(d),p=n(4),h=r(p),m=n(5),_=r(m),M=n(149),b=r(M),g=n(7),v=r(g),y=n(1),A=r(y),E=n(14),w=r(E),k=n(504),T=r(k),L=n(64),S=r(L),C=n(15),O=r(C),z=n(867),N=r(z),D=n(65),P=r(D),x=n(809);n(945);var j=function(e){function t(){var e,n,r,a;(0,l.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,h.default)(this,(e=t.__proto__||(0,c.default)(t)).call.apply(e,[this].concat(o))),r.state={keyword:r.props.initialValue||"",isOpen:!!r.props.isOpen,hasFocus:!1},r.scrollOverlay=function(){r.refs.overlay&&window.requestAnimationFrame(function(){r.refs.overlay&&r.refs.searchInput&&(r.refs.overlay.scrollLeft=r.getScrollLeft(r.refs.searchInput))})},r.getScrollLeft=function(e){if(!e.createTextRange)return e.scrollLeft;var t=e.createTextRange(),n=window.getComputedStyle(e,void 0),r=parseFloat(n.paddingLeft),a=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+r-a.left},r.focus=function(){setTimeout(function(){return r.refs.searchInput&&b.default.findDOMNode(r.refs.searchInput).focus()},0)},r.blur=function(){b.default.findDOMNode(r.refs.searchInput).blur()},r.getCurrentSearchValue=function(){return b.default.findDOMNode(r.refs.searchInput).value},r.clear=function(){r.setState({keyword:""})},r.onBlur=function(e){r.props.onBlur&&r.props.onBlur(e),r.setState({hasFocus:!1})},r.onChange=function(){r.setState({keyword:r.getCurrentSearchValue()})},r.openSearch=function(e){r.props.onClick(),e.preventDefault(),r.setState({keyword:"",isOpen:!0}),O.default.ga.recordEvent(r.props.analyticsGroup,"Clicked Open Search")},r.closeSearch=function(e){if(e.preventDefault(),!r.props.disabled){var t=b.default.findDOMNode(r.refs.searchInput);r.setState({keyword:"",isOpen:r.props.isOpen||!1}),t.value="",t.blur(),r.props.pinned&&b.default.findDOMNode(r.refs.openIcon).focus(),r.props.onSearchClose(e),O.default.ga.recordEvent(r.props.analyticsGroup,"Clicked Close Search")}},r.keyUp=function(e){"Enter"===e.key&&(0,x.isMobile)()&&r.blur(),r.props.pinned&&("Escape"===e.key&&r.closeSearch(e),r.scrollOverlay())},r.keyDown=function(e){r.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&r.closeSearch(e),r.props.onKeyDown(e)},r.onFocus=function(){var e=b.default.findDOMNode(r.refs.searchInput),t=e.value;t&&(e.value="",e.value=t),r.setState({hasFocus:!0}),r.props.onSearchOpen()},r.renderStylingDiv=function(){return A.default.createElement("div",{className:"dops-search__text-overlay",ref:"overlay"},r.props.overlayStyling(r.state.keyword))},r.closeButton=function(){return r.props.hideClose||!r.state.keyword&&!r.state.isOpen?null:A.default.createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:r.closeSearch,tabIndex:"0",onKeyDown:r.closeListener,"aria-controls":"dops-search-component-"+r.state.instanceId,"aria-label":"Close Search"},A.default.createElement(P.default,{icon:"cross",className:"dops-search__close-icon"}))},a=n,(0,h.default)(r,a)}return(0,_.default)(t,e),(0,f.default)(t,[{key:"componentWillMount",value:function(){this.setState({instanceId:++t.instances}),this.closeListener=a.bind(this,"closeSearch"),this.openListener=a.bind(this,"openSearch")}},{key:"componentWillReceiveProps",value:function(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?(0,T.default)(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?(0,T.default)(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,a=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},i=(0,w.default)(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=(0,w.default)("dops-search__input-fade",this.props.dir),c=(0,w.default)("dops-search__input",this.props.dir);return A.default.createElement("div",{dir:this.props.dir||null,className:i,role:"search"},A.default.createElement(N.default,null),A.default.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"},A.default.createElement(P.default,{icon:"search",className:"dops-search__open-icon"})),A.default.createElement("div",{className:s},A.default.createElement("input",(0,o.default)({type:"search",id:"dops-search-component-"+this.state.instanceId,className:c,placeholder:t,role:"search",value:e,ref:"searchInput",onInput:this.onChange,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},a)),this.props.overlayStyling&&this.renderStylingDiv()),this.closeButton())}}]),t}(A.default.Component);j.displayName="Search",j.instances=0,j.propTypes={additionalClasses:v.default.string,initialValue:v.default.string,placeholder:v.default.string,pinned:v.default.bool,delaySearch:v.default.bool,delayTimeout:v.default.number,onSearch:v.default.func.isRequired,onSearchChange:v.default.func,onSearchOpen:v.default.func,onSearchClose:v.default.func,analyticsGroup:v.default.string,overlayStyling:v.default.func,autoFocus:v.default.bool,disabled:v.default.bool,onKeyDown:v.default.func,onClick:v.default.func,disableAutocorrect:v.default.bool,onBlur:v.default.func,searching:v.default.bool,isOpen:v.default.bool,dir:v.default.oneOf(["ltr","rtl"]),fitsContainer:v.default.bool,maxLength:v.default.number,hideClose:v.default.bool},j.defaultProps={pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:S.default,onSearchOpen:S.default,onSearchClose:S.default,onKeyDown:S.default,onClick:S.default,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1},e.exports=j},function(e,t,n){"use strict";(function(t){function r(e){return e&&e.__esModule?e:{default:e}}var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14);n(944);var M=function(e){function n(){var e,r,a,o;(0,s.default)(this,n);for(var c=arguments.length,u=Array(c),l=0;l<c;l++)u[l]=arguments[l];return r=a=(0,d.default)(this,(e=n.__proto__||(0,i.default)(n)).call.apply(e,[this].concat(u))),a.isSVGCSSAnimationSupported=function(){return!/(MSIE |Trident\/)/.test(t.window?t.window.navigator.userAgent:"")},a.getClassName=function(){return _("dops-spinner",a.props.className,{"is-fallback":!a.isSVGCSSAnimationSupported()})},a.renderFallback=function(){var e={width:a.props.size,height:a.props.size};return m.createElement("div",{className:a.getClassName(),style:e},m.createElement("span",{className:"dops-spinner__progress is-left"}),m.createElement("span",{className:"dops-spinner__progress is-right"}))},o=r,(0,d.default)(a,o)}return(0,p.default)(n,e),(0,u.default)(n,[{key:"componentWillMount",value:function(){this.setState({instanceId:++n.instances})}},{key:"render",value:function(){var e=parseInt(this.state.instanceId,10);return this.isSVGCSSAnimationSupported()?m.createElement("div",{className:this.getClassName()},m.createElement("svg",{className:"dops-spinner__image",width:this.props.size,height:this.props.size,viewBox:"0 0 100 100",dangerouslySetInnerHTML:{__html:'\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<mask id="maskBorder'+e+'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="100%" height="100%" fill="white" />\n\t\t\t\t\t\t\t<circle r="46%" cx="50%" cy="50%" fill="black" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskDonut'+e+'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="100%" height="100%" fill="black" />\n\t\t\t\t\t\t\t<circle r="46%" cx="50%" cy="50%" fill="white" />\n\t\t\t\t\t\t\t<circle r="30%" cx="50%" cy="50%" fill="black" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskLeft'+e+'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="50%" height="100%" fill="white" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskRight'+e+'">\n\t\t\t\t\t\t\t<rect x="50%" y="0" width="50%" height="100%" fill="white" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t</defs>\n\t\t\t\t\t<circle class="dops-spinner__border" r="50%" cx="50%" cy="50%" mask="url( #maskBorder'+e+' )" />\n\t\t\t\t\t<g mask="url( #maskDonut'+e+' )">\n\t\t\t\t\t\t<g mask="url( #maskLeft'+e+' )">\n\t\t\t\t\t\t\t<rect class="dops-spinner__progress is-left" x="0" y="0" width="50%" height="100%" />\n\t\t\t\t\t\t</g>\n\t\t\t\t\t\t<g mask="url( #maskRight'+e+' )">\n\t\t\t\t\t\t\t<rect class="dops-spinner__progress is-right" x="50%" y="0" width="50%" height="100%" />\n\t\t\t\t\t\t</g>\n\t\t\t\t\t</g>\n\t\t\t\t'}})):this.renderFallback()}}]),n}(m.Component);M.propTypes={className:h.string,size:h.number,duration:h.number},M.instances=0,M.defaultProps={size:20,duration:3e3},e.exports=M}).call(t,n(45))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationSettings=void 0;var a=n(114),i=r(a),o=n(7),s=r(o),c=n(1),u=r(c),l=n(34),d=r(l),f=n(10),p=n(862),h=r(p),m=n(805),_=r(m),M=n(810),b=r(M),g=n(866),v=r(g),y=n(8),A=n(64),E=r(A),w=n(947),k=r(w),T=n(15),L=r(T),S=n(961),C=r(S),O=n(73),z=n(28),N=n(21),D=n(23),P=n(210),x=n(506),j=r(x),R=t.NavigationSettings=(0,d.default)({displayName:"NavigationSettings",mixins:[k.default],moduleList:[],componentWillMount:function(){this.context.router.listen(this.onRouteChange),this.moduleList=(0,i.default)(this.props.moduleList)},onRouteChange:function(e){var t=e.search||"",n=t.substr(1).split("&"),r=n.filter(function(e){return 0===e.indexOf("term=")}),a="";r.length>0&&(a=r[0].split("=")[1]),this.props.searchForTerm(decodeURIComponent(a))},maybeShowSearch:function(){if(this.props.userCanManageModules)return u.default.createElement(v.default,{onClick:this.handleClickForTracking("search"),pinned:!0,fitsContainer:!0,placeholder:(0,y.translate)("Search for a Jetpack feature."),delaySearch:!0,delayTimeout:500,onSearch:this.doSearch,isOpen:!!this.props.searchTerm,initialValue:this.props.searchTerm})},trackNavClick:function(e){L.default.tracks.recordJetpackClick({target:"nav_item",path:e})},buildUrl:function(e,t){var n=e.split("#"),r=n[1].split("?");return this.props.searchForTerm(t),"#"+r[0]+(t?"?term="+t:"")},hasAnyOfThese:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0<(0,C.default)(this.moduleList,e).length},handleClickForTracking:function(e){var t=this;return function(){return t.trackNavClick(e)}},render:function(){var e=void 0,t=void 0;return this.props.userCanManageModules?e=u.default.createElement(_.default,{selectedText:this.props.route.name},this.hasAnyOfThese(["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven"])&&u.default.createElement(b.default,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.route.path||"/settings"===this.props.route.path},(0,y.translate)("Writing",{context:"Navigation item."})),this.hasAnyOfThese(["publicize","sharedaddy","likes"])&&u.default.createElement(b.default,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.route.path},(0,y.translate)("Sharing",{context:"Navigation item."})),this.hasAnyOfThese(["comments","gravatar-hovercards","markdown","subscriptions"])&&u.default.createElement(b.default,{path:"#discussion",onClick:this.handleClickForTracking("discussion"),selected:"/discussion"===this.props.route.path},(0,y.translate)("Discussion",{context:"Navigation item."})),this.hasAnyOfThese(["seo-tools","wordads","stats","related-posts","verification-tools","sitemaps","google-analytics"])&&u.default.createElement(b.default,{path:"#traffic",onClick:this.handleClickForTracking("traffic"),selected:"/traffic"===this.props.route.path},(0,y.translate)("Traffic",{context:"Navigation item."})),(this.hasAnyOfThese(["protect","sso","vaultpress"])||this.props.isPluginActive("akismet/akismet.php"))&&u.default.createElement(b.default,{path:"#security",onClick:this.handleClickForTracking("security"),selected:"/security"===this.props.route.path},(0,y.translate)("Security",{context:"Navigation item."}))):this.props.isSubscriber?e=!1:(t=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.hasAnyOfThese(["publicize"])&&u.default.createElement(b.default,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.route.path},(0,y.translate)("Sharing",{context:"Navigation item."})):"",e=u.default.createElement(_.default,{selectedText:this.props.route.name},this.hasAnyOfThese(["after-the-deadline","post-by-email"])&&u.default.createElement(b.default,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.route.path||"/settings"===this.props.route.path},(0,y.translate)("Writing",{context:"Navigation item."})),t)),u.default.createElement("div",{id:"jp-navigation",className:"dops-navigation"},u.default.createElement(j.default,null),u.default.createElement(h.default,{selectedText:this.props.route.name},e,this.maybeShowSearch()))}});R.contextTypes={router:s.default.object.isRequired},R.propTypes={userCanManageModules:s.default.bool.isRequired,isSubscriber:s.default.bool.isRequired,userCanPublish:s.default.bool.isRequired,isLinked:s.default.bool.isRequired,isSiteConnected:s.default.bool.isRequired,isModuleActivated:s.default.func.isRequired,searchHasFocus:s.default.bool.isRequired},R.defaultProps={userCanManageModules:!1,isSubscriber:!1,userCanPublish:!1,isLinked:!1,isSiteConnected:!1,isModuleActivated:E.default,searchHasFocus:!1},t.default=(0,f.connect)(function(e){return{userCanManageModules:(0,z.userCanManageModules)(e),isSubscriber:(0,z.userIsSubscriber)(e),userCanPublish:(0,z.userCanPublish)(e),isLinked:(0,N.isCurrentUserLinked)(e),isSiteConnected:(0,N.isSiteConnected)(e),isModuleActivated:function(t){return(0,D.isModuleActivated)(e,t)},moduleList:(0,D.getModules)(e),isPluginActive:function(t){return(0,P.isPluginActive)(e,t)},searchTerm:(0,O.getSearchTerm)(e)}},function(e){return{searchForTerm:function(t){return e((0,O.filterSearch)(t))}}})(R)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(968),v=r(g),y=n(1106),A=r(y),E=n(1125),w=r(E),k=n(1134),T=r(k),L=n(1155),S=r(L),C=n(1159),O=r(C),z=n(1160),N=r(z),D=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={route:this.props.route,searchTerm:this.props.searchTerm,rewindStatus:this.props.rewindStatus};return M.default.createElement("div",{className:"jp-settings-container"},M.default.createElement("div",{className:"jp-no-results"},e.searchTerm?(0,b.translate)("No search results found for %(term)s",{args:{term:e.searchTerm}}):(0,b.translate)("Enter a search term to find settings or close search.")),M.default.createElement(v.default,(0,i.default)({siteRawUrl:this.props.siteRawUrl,active:"/discussion"===this.props.route.path},e)),M.default.createElement(A.default,(0,i.default)({siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,active:"/security"===this.props.route.path},e)),M.default.createElement(w.default,(0,i.default)({siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,active:"/traffic"===this.props.route.path},e)),M.default.createElement(T.default,(0,i.default)({siteAdminUrl:this.props.siteAdminUrl,active:"/writing"===this.props.route.path||"/settings"===this.props.route.path},e)),M.default.createElement(S.default,(0,i.default)({siteAdminUrl:this.props.siteAdminUrl,active:"/sharing"===this.props.route.path},e)),M.default.createElement(N.default,(0,i.default)({active:"/privacy"===this.props.route.path},e)),M.default.createElement(O.default,{searchTerm:this.props.searchTerm}))}}]),t}(M.default.Component);D.displayName="SearchableSettings",t.default=D,e.exports=t.default},function(e,t,n){"use strict";var r=n(49).f,a=n(159),i=n(449),o=n(71),s=n(444),c=n(206),u=n(220),l=n(485),d=n(492),f=n(60),p=n(222).fastKey,h=n(835),m=f?"_s":"size",_=function(e,t){var n,r=p(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,u){var l=e(function(e,r){s(e,l,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&c(r,n,e[u],e)});return i(l.prototype,{clear:function(){for(var e=h(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=h(this,t),r=_(n,e);if(r){var a=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=a),a&&(a.p=i),n._f==r&&(n._f=a),n._l==r&&(n._l=i),n[m]--}return!!r},forEach:function(e){h(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!!_(h(this,t),e)}}),f&&r(l.prototype,"size",{get:function(){return h(this,t)[m]}}),l},def:function(e,t,n){var r,a,i=_(e,t);return i?i.v=n:(e._l=i={i:a=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==a&&(e._i[a]=i)),e},getEntry:_,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=h(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)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(31),a=n(35),i=n(222),o=n(82),s=n(72),c=n(449),u=n(206),l=n(444),d=n(50),f=n(124),p=n(49).f,h=n(977)(0),m=n(60);e.exports=function(e,t,n,_,M,b){var g=r[e],v=g,y=M?"set":"add",A=v&&v.prototype,E={};return m&&"function"==typeof v&&(b||A.forEach&&!o(function(){(new v).entries().next()}))?(v=t(function(t,n){l(t,v,e,"_c"),t._c=new g,void 0!=n&&u(n,M,t[y],t)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in A&&(!b||"clear"!=e)&&s(v.prototype,e,function(n,r){if(l(this,v,e),!t&&b&&!d(n))return"get"==e&&void 0;var a=this._c[e](0===n?0:n,r);return t?this:a})}),b||p(v.prototype,"size",{get:function(){return this._c.size}})):(v=_.getConstructor(t,e,M,y),c(v.prototype,n),i.NEED=!0),f(v,e),E[e]=v,a(a.G+a.W+a.F,E),b||_.setStrong(v,e,M),v}},function(e,t,n){var r=n(200),a=n(981);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return a(this)}}},function(e,t,n){"use strict";var r=n(35);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){"use strict";var r=n(35),a=n(123),i=n(71),o=n(206);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,c=arguments[1];return a(this),t=void 0!==c,t&&a(c),void 0==e?new this:(n=[],t?(r=0,s=i(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,n){"use strict";function r(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}function a(e){o.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=n(32).Buffer,o=n(837).Transform;n(20)(a,o),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},
32
  a.prototype.update=function(e,t){if(r(e,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var n=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=e[a++];this._update(),this._blockOffset=0}for(;a<e.length;)n[this._blockOffset++]=e[a++];for(var s=0,c=8*e.length;c>0;++s)this._length[s]+=c,(c=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*c);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){"use strict";(function(t,r){function a(e){return R.from(e)}function i(e){return R.isBuffer(e)||e instanceof Y}function o(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?P(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function s(e,t){D=D||n(212),e=e||{};var r=t instanceof D;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new U,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&&(W||(W=n(840).StringDecoder),this.decoder=new W(e.encoding),this.encoding=e.encoding)}function c(e){if(D=D||n(212),!(this instanceof c))return new c(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),j.call(this)}function u(e,t,n,r,i){var o=e._readableState;if(null===t)o.reading=!1,m(e,o);else{var s;i||(s=d(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===R.prototype||(t=a(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(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?l(e,o,t,!1):b(e,o)):l(e,o,t,!1))):r||(o.reading=!1)}return f(o)}function l(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&&_(e)),b(e,t)}function d(e,t){var n;return i(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function p(e){return e>=X?e=X:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function h(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=p(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function m(e,t){if(!t.ended){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,_(e)}}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(B("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?N.nextTick(M,e):M(e))}function M(e){B("emit readable"),e.emit("readable"),w(e)}function b(e,t){t.readingMore||(t.readingMore=!0,N.nextTick(g,e,t))}function g(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(B("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function v(e){return function(){var t=e._readableState;B("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&x(e,"data")&&(t.flowing=!0,w(e))}}function y(e){B("readable nexttick read 0"),e.read(0)}function A(e,t){t.resumeScheduled||(t.resumeScheduled=!0,N.nextTick(E,e,t))}function E(e,t){t.reading||(B("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),w(e),t.flowing&&!t.reading&&e.read(0)}function w(e){var t=e._readableState;for(B("flow",t.flowing);t.flowing&&null!==e.read(););}function k(e,t){if(0===t.length)return null;var n;return 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=T(e,t.buffer,t.decoder),n}function T(e,t,n){var r;return 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?L(e,t):S(e,t),r}function L(e,t){var n=t.head,r=1,a=n.data;for(e-=a.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(o));break}++r}return t.length-=r,a}function S(e,t){var n=R.allocUnsafe(e),r=t.head,a=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,o),0===(e-=o)){o===i.length?(++a,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++a}return t.length-=a,n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,N.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}var N=n(508);e.exports=c;var D,P=n(440);c.ReadableState=s;var x=(n(147).EventEmitter,function(e,t){return e.listeners(t).length}),j=n(877),R=n(32).Buffer,Y=t.Uint8Array||function(){},I=n(468);I.inherits=n(20);var q=n(995),B=void 0;B=q&&q.debuglog?q.debuglog("stream"):function(){};var W,U=n(996),H=n(878);I.inherits(c,j);var F=["error","close","destroy","pause","resume"];Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),c.prototype.destroy=H.destroy,c.prototype._undestroy=H.undestroy,c.prototype._destroy=function(e,t){this.push(null),t(e)},c.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=R.from(e,t),t=""),n=!0),u(this,e,t,!1,n)},c.prototype.unshift=function(e){return u(this,e,null,!0,!1)},c.prototype.isPaused=function(){return!1===this._readableState.flowing},c.prototype.setEncoding=function(e){return W||(W=n(840).StringDecoder),this._readableState.decoder=new W(e),this._readableState.encoding=e,this};var X=8388608;c.prototype.read=function(e){B("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 B("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?C(this):_(this),null;if(0===(e=h(e,t))&&t.ended)return 0===t.length&&C(this),null;var r=t.needReadable;B("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,B("length less than watermark",r)),t.ended||t.reading?(r=!1,B("reading or ended",r)):r&&(B("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=h(n,t)));var a;return a=e>0?k(e,t):null,null===a?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==a&&this.emit("data",a),a},c.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(e,t){function n(e,t){B("onunpipe"),e===f&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,i())}function a(){B("onend"),e.end()}function i(){B("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",_),e.removeListener("error",c),e.removeListener("unpipe",n),f.removeListener("end",a),f.removeListener("end",d),f.removeListener("data",s),M=!0,!p.awaitDrain||e._writableState&&!e._writableState.needDrain||_()}function s(t){B("ondata"),b=!1,!1!==e.write(t)||b||((1===p.pipesCount&&p.pipes===e||p.pipesCount>1&&-1!==z(p.pipes,e))&&!M&&(B("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,b=!0),f.pause())}function c(t){B("onerror",t),d(),e.removeListener("error",c),0===x(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),d()}function l(){B("onfinish"),e.removeListener("close",u),d()}function d(){B("unpipe"),f.unpipe(e)}var f=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=e;break;case 1:p.pipes=[p.pipes,e];break;default:p.pipes.push(e)}p.pipesCount+=1,B("pipe count=%d opts=%j",p.pipesCount,t);var h=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,m=h?a:d;p.endEmitted?N.nextTick(m):f.once("end",m),e.on("unpipe",n);var _=v(f);e.on("drain",_);var M=!1,b=!1;return f.on("data",s),o(e,"error",c),e.once("close",u),e.once("finish",l),e.emit("pipe",f),p.flowing||(B("pipe resume"),f.resume()),e},c.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?this:(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,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)r[i].emit("unpipe",this,n);return this}var o=z(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},c.prototype.on=function(e,t){var n=j.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&_(this):N.nextTick(y,this))}return n},c.prototype.addListener=c.prototype.on,c.prototype.resume=function(){var e=this._readableState;return e.flowing||(B("resume"),e.flowing=!0,A(this,e)),this},c.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this},c.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on("end",function(){if(B("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){if(B("wrapped data"),n.decoder&&(a=n.decoder.write(a)),(!n.objectMode||null!==a&&void 0!==a)&&(n.objectMode||a&&a.length)){t.push(a)||(r=!0,e.pause())}});for(var a in e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i<F.length;i++)e.on(F[i],this.emit.bind(this,F[i]));return this._read=function(t){B("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(c.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),c._fromList=k}).call(t,n(45),n(63))},function(e,t,n){e.exports=n(147).EventEmitter},function(e,t,n){"use strict";function r(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.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?(o.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)}function a(){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 i(e,t){e.emit("error",t)}var o=n(508);e.exports={destroy:r,undestroy:a}},function(e,t,n){"use strict";function r(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 a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);s.call(this,e),this._transformState={afterTransform:r.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",i)}function i(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){o(e,t,n)}):o(this,null,null)}function o(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)}e.exports=a;var s=n(212),c=n(468);c.inherits=n(20),c.inherits(a,s),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},a.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},a.prototype._destroy=function(e,t){var n=this;s.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){function r(){this.init(),this._w=h,d.call(this,64,56)}function a(e,t,n){return n^e&(t^n)}function i(e,t,n){return e&t|n&(e|t)}function o(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function s(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function c(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function u(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var l=n(20),d=n(236),f=n(32).Buffer,p=[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],h=new Array(64);l(r,d),r.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},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,l=0|this._c,d=0|this._d,f=0|this._e,h=0|this._f,m=0|this._g,_=0|this._h,M=0;M<16;++M)t[M]=e.readInt32BE(4*M);for(;M<64;++M)t[M]=u(t[M-2])+t[M-7]+c(t[M-15])+t[M-16]|0;for(var b=0;b<64;++b){var g=_+s(f)+a(f,h,m)+p[b]+t[b]|0,v=o(n)+i(n,r,l)|0;_=m,m=h,h=f,f=d+g|0,d=l,l=r,r=n,n=g+v|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=l+this._c|0,this._d=d+this._d|0,this._e=f+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=_+this._h|0},r.prototype._hash=function(){var e=f.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=r},function(e,t,n){function r(){this.init(),this._w=M,h.call(this,128,112)}function a(e,t,n){return n^e&(t^n)}function i(e,t,n){return e&t|n&(e|t)}function o(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function s(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function c(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function f(e,t){return e>>>0<t>>>0?1:0}var p=n(20),h=n(236),m=n(32).Buffer,_=[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],M=new Array(160);p(r,h),r.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},r.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,p=0|this._ch,h=0|this._dh,m=0|this._eh,M=0|this._fh,b=0|this._gh,g=0|this._hh,v=0|this._al,y=0|this._bl,A=0|this._cl,E=0|this._dl,w=0|this._el,k=0|this._fl,T=0|this._gl,L=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var C=t[S-30],O=t[S-30+1],z=c(C,O),N=u(O,C);C=t[S-4],O=t[S-4+1];var D=l(C,O),P=d(O,C),x=t[S-14],j=t[S-14+1],R=t[S-32],Y=t[S-32+1],I=N+j|0,q=z+x+f(I,N)|0;I=I+P|0,q=q+D+f(I,P)|0,I=I+Y|0,q=q+R+f(I,Y)|0,t[S]=q,t[S+1]=I}for(var B=0;B<160;B+=2){q=t[B],I=t[B+1];var W=i(n,r,p),U=i(v,y,A),H=o(n,v),F=o(v,n),X=s(m,w),V=s(w,m),K=_[B],J=_[B+1],G=a(m,M,b),Q=a(w,k,T),$=L+V|0,Z=g+X+f($,L)|0;$=$+Q|0,Z=Z+G+f($,Q)|0,$=$+J|0,Z=Z+K+f($,J)|0,$=$+I|0,Z=Z+q+f($,I)|0;var ee=F+U|0,te=H+W+f(ee,F)|0;g=b,L=T,b=M,T=k,M=m,k=w,w=E+$|0,m=h+Z+f(w,E)|0,h=p,E=A,p=r,A=y,r=n,y=v,v=$+ee|0,n=Z+te+f(v,$)|0}this._al=this._al+v|0,this._bl=this._bl+y|0,this._cl=this._cl+A|0,this._dl=this._dl+E|0,this._el=this._el+w|0,this._fl=this._fl+k|0,this._gl=this._gl+T|0,this._hl=this._hl+L|0,this._ah=this._ah+n+f(this._al,v)|0,this._bh=this._bh+r+f(this._bl,y)|0,this._ch=this._ch+p+f(this._cl,A)|0,this._dh=this._dh+h+f(this._dl,E)|0,this._eh=this._eh+m+f(this._el,w)|0,this._fh=this._fh+M+f(this._fl,k)|0,this._gh=this._gh+b+f(this._gl,T)|0,this._hh=this._hh+g+f(this._hl,L)|0},r.prototype._hash=function(){function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}var t=m.allocUnsafe(64);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},e.exports=r},function(e,t,n){"use strict";function r(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var n="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>n){t=("rmd160"===e?new u:l(e)).update(t).digest()}else t.length<n&&(t=s.concat([t,d],n));for(var r=this._ipad=s.allocUnsafe(n),a=this._opad=s.allocUnsafe(n),i=0;i<n;i++)r[i]=54^t[i],a[i]=92^t[i];this._hash="rmd160"===e?new u:l(e),this._hash.update(r)}var a=n(20),i=n(1010),o=n(162),s=n(32).Buffer,c=n(883),u=n(841),l=n(842),d=s.alloc(128);a(r,o),r.prototype._update=function(e){this._hash.update(e)},r.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:l(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return e=e.toLowerCase(),"rmd160"===e||"ripemd160"===e?new r("rmd160",t):"md5"===e?new i(c,t):new r(e,t)}},function(e,t,n){var r=n(836);e.exports=function(e){return(new r).update(e).digest()}},function(e,t){e.exports={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(1012),t.pbkdf2Sync=n(888)},function(e,t,n){(function(t){function n(e,n){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(n+" must be a buffer or string")}var r=Math.pow(2,30)-1;e.exports=function(e,t,a,i){if(n(e,"Password"),n(t,"Salt"),"number"!=typeof a)throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(i<0||i>r||i!==i)throw new TypeError("Bad key length")}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){var n;if(t.browser)n="utf-8";else{n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}e.exports=n}).call(t,n(63))},function(e,t,n){function r(e,t,n){var r=a(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=r(t):t.length<i&&(t=d.concat([t,f],i));for(var o=d.allocUnsafe(i+p[e]),s=d.allocUnsafe(i+p[e]),c=0;c<i;c++)o[c]=54^t[c],s[c]=92^t[c];var u=d.allocUnsafe(i+n+4);o.copy(u,0,0,i),this.ipad1=u,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=i,this.hash=r,this.size=p[e]}function a(e){function t(t){return c(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?s:"md5"===e?o:t}function i(e,t,n,a,i){u(e,t,n,a),d.isBuffer(e)||(e=d.from(e,l)),d.isBuffer(t)||(t=d.from(t,l)),i=i||"sha1";var o=new r(i,e,t.length),s=d.allocUnsafe(a),c=d.allocUnsafe(t.length+4);t.copy(c,0,0,t.length);for(var f=0,h=p[i],m=Math.ceil(a/h),_=1;_<=m;_++){c.writeUInt32BE(_,t.length);for(var M=o.run(c,o.ipad1),b=M,g=1;g<n;g++){b=o.run(b,o.ipad2);for(var v=0;v<h;v++)M[v]^=b[v]}M.copy(s,f),f+=h}return s}var o=n(883),s=n(841),c=n(842),u=n(886),l=n(887),d=n(32).Buffer,f=d.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};r.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=i},function(e,t,n){function r(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var a=n(469),i=n(32).Buffer,o=n(890);t.encrypt=function(e,t){var n=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var c=r(e),u=o+16*s;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),a(t,l)}},function(e,t){function n(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}e.exports=n},function(e,t){e.exports={"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){function r(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),a=0;a<r;++a)n+=e[a]^t[a];return n}function a(e,t,n){if(12===t.length)return e._finID=s.concat([t,s.from([0,0,0,1])]),s.concat([t,s.from([0,0,0,2])]);var r=new l(n),a=t.length,i=a%16;r.update(t),i&&(i=16-i,r.update(s.alloc(i,0))),r.update(s.alloc(8,0));var o=8*a,c=s.alloc(8);c.writeUIntBE(o,0,8),r.update(c),e._finID=r.state;var u=s.from(e._finID);return f(u),u}function i(e,t,n,r){c.call(this);var i=s.alloc(4,0);this._cipher=new o.AES(t);var u=this._cipher.encryptBlock(i);this._ghash=new l(u),n=a(this,n,u),this._prev=s.from(n),this._cache=s.allocUnsafe(0),this._secCache=s.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}var o=n(509),s=n(32).Buffer,c=n(162),u=n(20),l=n(1027),d=n(469),f=n(890);u(i,c),i.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=s.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},i.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&r(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},i.prototype.getAuthTag=function(){if(this._decrypt||!s.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},i.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},i.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=i},function(e,t,n){function r(e,t,n,r){o.call(this),this._cipher=new a.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=r,this._mode=e}var a=n(509),i=n(32).Buffer,o=n(162);n(20)(r,o),r.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},e.exports=r},function(e,t,n){function r(){if(null!==g)return g;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),a=0;a<t&&e[a]<=r&&n%e[a]!=0;a++);t!==a&&e[a]<=r||(e[t++]=n)}return g=e,e}function a(e){for(var t=r(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function i(e){var t=c.mont(e);return 0===p.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function o(e,t){if(e<16)return new c(2===t||5===t?[140,123]:[140,39]);t=new c(t);for(var n,r;;){for(n=new c(s(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(f),n.testn(1)||n.iadd(p),t.cmp(p)){if(!t.cmp(h))for(;n.mod(m).cmp(_);)n.iadd(b)}else for(;n.mod(u).cmp(M);)n.iadd(b);if(r=n.shrn(1),a(r)&&a(n)&&i(r)&&i(n)&&d.test(r)&&d.test(n))return n}}var s=n(235);e.exports=o,o.simpleSieve=a,o.fermatTest=i;var c=n(57),u=new c(24),l=n(895),d=new l,f=new c(1),p=new c(2),h=new c(5),m=(new c(16),new c(8),new c(10)),_=new c(3),M=(new c(7),new c(11)),b=new c(4),g=(new c(12),null)},function(e,t,n){function r(e){this.rand=e||new i.Rand}var a=n(57),i=n(896);e.exports=r,r.create=function(e){return new r(e)},r.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var r=new a(this.rand.generate(n))}while(r.cmp(e)>=0);return r},r.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},r.prototype.test=function(e,t,n){var r=e.bitLength(),i=a.mont(e),o=new a(1).toRed(i)
33
  ;t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(i);t>0;t--){var d=this._randrange(new a(2),s);n&&n(d);var f=d.toRed(i).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(l)){for(var p=1;p<c;p++){if(f=f.redSqr(),0===f.cmp(o))return!1;if(0===f.cmp(l))break}if(p===c)return!1}}return!0},r.prototype.getDivisor=function(e,t){var n=e.bitLength(),r=a.mont(e),i=new a(1).toRed(r);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),u=o.toRed(r);t>0;t--){var l=this._randrange(new a(2),o),d=e.gcd(l);if(0!==d.cmpn(1))return d;var f=l.toRed(r).redPow(c);if(0!==f.cmp(i)&&0!==f.cmp(u)){for(var p=1;p<s;p++){if(f=f.redSqr(),0===f.cmp(i))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(u))break}if(p===s)return f=f.redSqr(),f.fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){function r(e){this.rand=e}var a;if(e.exports=function(e){return a||(a=new r(null)),a.generate(e)},e.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.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?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var i=n(1032);if("function"!=typeof i.randomBytes)throw new Error("Not supported");r.prototype._rand=function(e){return i.randomBytes(e)}}catch(e){}},function(e,t,n){"use strict";function r(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,""),e.length%2!=0&&(e="0"+e);for(var r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var a=e.charCodeAt(r),i=a>>8,o=255&a;i?n.push(i,o):n.push(o)}return n}function a(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t}var o=t;o.toArray=r,o.zero2=a,o.toHex=i,o.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,n){"use strict";function r(e,t,n,r){return 0===e?a(t,n,r):1===e||3===e?o(t,n,r):2===e?i(t,n,r):void 0}function a(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}function s(e){return f(e,2)^f(e,13)^f(e,22)}function c(e){return f(e,6)^f(e,11)^f(e,25)}function u(e){return f(e,7)^f(e,18)^e>>>3}function l(e){return f(e,17)^f(e,19)^e>>>10}var d=n(127),f=d.rotr32;t.ft_1=r,t.ch32=a,t.maj32=i,t.p32=o,t.s0_256=s,t.s1_256=c,t.g0_256=u,t.g1_256=l},function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;M.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}var a=n(127),i=n(470),o=n(898),s=n(105),c=a.sum32,u=a.sum32_4,l=a.sum32_5,d=o.ch32,f=o.maj32,p=o.s0_256,h=o.s1_256,m=o.g0_256,_=o.g1_256,M=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];a.inherits(r,M),e.exports=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.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]=u(_(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var a=this.h[0],i=this.h[1],o=this.h[2],M=this.h[3],b=this.h[4],g=this.h[5],v=this.h[6],y=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var A=l(y,h(b),d(b,g,v),this.k[r],n[r]),E=c(p(a),f(a,i,o));y=v,v=g,g=b,b=c(M,A),M=o,o=i,i=a,a=c(A,E)}this.h[0]=c(this.h[0],a),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],o),this.h[3]=c(this.h[3],M),this.h[4]=c(this.h[4],b),this.h[5]=c(this.h[5],g),this.h[6]=c(this.h[6],v),this.h[7]=c(this.h[7],y)},r.prototype._digest=function(e){return"hex"===e?a.toHex32(this.h,"big"):a.split32(this.h,"big")}},function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;O.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=z,this.W=new Array(160)}function a(e,t,n,r,a){var i=e&n^~e&a;return i<0&&(i+=4294967296),i}function i(e,t,n,r,a,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function o(e,t,n,r,a){var i=e&n^e&a^n&a;return i<0&&(i+=4294967296),i}function s(e,t,n,r,a,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function c(e,t){var n=g(e,t,28),r=g(t,e,2),a=g(t,e,7),i=n^r^a;return i<0&&(i+=4294967296),i}function u(e,t){var n=v(e,t,28),r=v(t,e,2),a=v(t,e,7),i=n^r^a;return i<0&&(i+=4294967296),i}function l(e,t){var n=g(e,t,14),r=g(e,t,18),a=g(t,e,9),i=n^r^a;return i<0&&(i+=4294967296),i}function d(e,t){var n=v(e,t,14),r=v(e,t,18),a=v(t,e,9),i=n^r^a;return i<0&&(i+=4294967296),i}function f(e,t){var n=g(e,t,1),r=g(e,t,8),a=y(e,t,7),i=n^r^a;return i<0&&(i+=4294967296),i}function p(e,t){var n=v(e,t,1),r=v(e,t,8),a=A(e,t,7),i=n^r^a;return i<0&&(i+=4294967296),i}function h(e,t){var n=g(e,t,19),r=g(t,e,29),a=y(e,t,6),i=n^r^a;return i<0&&(i+=4294967296),i}function m(e,t){var n=v(e,t,19),r=v(t,e,29),a=A(e,t,6),i=n^r^a;return i<0&&(i+=4294967296),i}var _=n(127),M=n(470),b=n(105),g=_.rotr64_hi,v=_.rotr64_lo,y=_.shr64_hi,A=_.shr64_lo,E=_.sum64,w=_.sum64_hi,k=_.sum64_lo,T=_.sum64_4_hi,L=_.sum64_4_lo,S=_.sum64_5_hi,C=_.sum64_5_lo,O=M.BlockHash,z=[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];_.inherits(r,O),e.exports=r,r.blockSize=1024,r.outSize=512,r.hmacStrength=192,r.padLength=128,r.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 a=h(n[r-4],n[r-3]),i=m(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=f(n[r-30],n[r-29]),u=p(n[r-30],n[r-29]),l=n[r-32],d=n[r-31];n[r]=T(a,i,o,s,c,u,l,d),n[r+1]=L(a,i,o,s,c,u,l,d)}},r.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],f=this.h[1],p=this.h[2],h=this.h[3],m=this.h[4],_=this.h[5],M=this.h[6],g=this.h[7],v=this.h[8],y=this.h[9],A=this.h[10],T=this.h[11],L=this.h[12],O=this.h[13],z=this.h[14],N=this.h[15];b(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var P=z,x=N,j=l(v,y),R=d(v,y),Y=a(v,y,A,T,L),I=i(v,y,A,T,L,O),q=this.k[D],B=this.k[D+1],W=n[D],U=n[D+1],H=S(P,x,j,R,Y,I,q,B,W,U),F=C(P,x,j,R,Y,I,q,B,W,U);P=c(r,f),x=u(r,f),j=o(r,f,p,h,m),R=s(r,f,p,h,m,_);var X=w(P,x,j,R),V=k(P,x,j,R);z=L,N=O,L=A,O=T,A=v,T=y,v=w(M,g,H,F),y=k(g,g,H,F),M=m,g=_,m=p,_=h,p=r,h=f,r=w(H,F,X,V),f=k(H,F,X,V)}E(this.h,0,r,f),E(this.h,2,p,h),E(this.h,4,m,_),E(this.h,6,M,g),E(this.h,8,v,y),E(this.h,10,A,T),E(this.h,12,L,O),E(this.h,14,z,N)},r.prototype._digest=function(e){return"hex"===e?_.toHex32(this.h,"big"):_.split32(this.h,"big")}},function(e,t,n){function r(e,t){if(o.call(this,t),!s.isBuffer(e))return void this.error("Input not Buffer");this.base=e,this.offset=0,this.length=e.length}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof a||(e=new a(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=s.byteLength(e);else{if(!s.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}var i=n(20),o=n(472).Reporter,s=n(39).Buffer;i(r,o),t.DecoderBuffer=r,r.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},r.prototype.restore=function(e){var t=new r(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},r.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new r(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},r.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=a,a.prototype.join=function(e,t){return e||(e=new s(this.length)),t||(t=0),0===this.length?e:(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):s.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(1064)},function(e,t,n){function r(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new a,this.tree._init(e.body)}function a(e){u.Node.call(this,"der",e)}function i(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=d.tagClass[n>>6],a=0==(32&n);if(31==(31&n)){var i=n;for(n=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:a,tag:n,tagStr:d.tag[n]}}function o(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 a=127&r;if(a>4)return e.error("length octect is too long");r=0;for(var i=0;i<a;i++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}var s=n(20),c=n(471),u=c.base,l=c.bignum,d=c.constants.der;e.exports=r,r.prototype.decode=function(e,t){return e instanceof u.DecoderBuffer||(e=new u.DecoderBuffer(e,t)),this.tree._decode(e,t)},s(a,u.Node),a.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),a=i(e,'Failed to peek tag: "'+t+'"');return e.isError(a)?a:(e.restore(r),a.tag===t||a.tagStr===t||a.tagStr+"of"===t||n)},a.prototype._decodeTag=function(e,t,n){var r=i(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var a=o(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(a))return a;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==a)return e.skip(a,'Failed to match body of: "'+t+'"');var s=e.save(),c=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(c)?c:(a=e.offset-s.offset,e.restore(s),e.skip(a,'Failed to match body of: "'+t+'"'))},a.prototype._skipUntilEnd=function(e,t){for(;;){var n=i(e,t);if(e.isError(n))return n;var r=o(e,n.primitive,t);if(e.isError(r))return r;var a;if(a=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(a))return a;if("end"===n.tagStr)break}},a.prototype._decodeList=function(e,t,n,r){for(var a=[];!e.isEmpty();){var i=this._peekTag(e,"end");if(e.isError(i))return i;var o=n.decode(e,"der",r);if(e.isError(o)&&i)break;a.push(o)}return a},a.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 a="",i=0;i<r.length/2;i++)a+=String.fromCharCode(r.readUInt16BE(2*i));return a}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")},a.prototype._decodeObjid=function(e,t,n){for(var r,a=[],i=0;!e.isEmpty();){var o=e.readUInt8();i<<=7,i|=127&o,0==(128&o)&&(a.push(i),i=0)}128&o&&a.push(i);var s=a[0]/40|0,c=a[0]%40;if(r=n?a:[s,c].concat(a.slice(1)),t){var u=t[r.join(" ")];void 0===u&&(u=t[r.join(".")]),void 0!==u&&(r=u)}return r},a.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),a=0|n.slice(4,6),i=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");var r=0|n.slice(0,2),a=0|n.slice(2,4),i=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,a-1,i,o,s,c,0)},a.prototype._decodeNull=function(e){return null},a.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},a.prototype._decodeInt=function(e,t){var n=e.raw(),r=new l(n);return t&&(r=t[r.toString(10)]||r),r},a.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){function r(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new a,this.tree._init(e.body)}function a(e){l.Node.call(this,"der",e)}function i(e){return e<10?"0"+e:e}function o(e,t,n,r){var a;if("seqof"===e?e="seq":"setof"===e&&(e="set"),d.tagByName.hasOwnProperty(e))a=d.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);a=e}return a>=31?r.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=d.tagClassByName[n||"universal"]<<6)}var s=n(20),c=n(39).Buffer,u=n(471),l=u.base,d=u.constants.der;e.exports=r,r.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},s(a,l.Node),a.prototype._encodeComposite=function(e,t,n,r){var a=o(e,t,n,this.reporter);if(r.length<128){var i=new c(2);return i[0]=a,i[1]=r.length,this._createEncoderBuffer([i,r])}for(var s=1,u=r.length;u>=256;u>>=8)s++;var i=new c(2+s);i[0]=a,i[1]=128|s;for(var u=1+s,l=r.length;l>0;u--,l>>=8)i[u]=255&l;return this._createEncoderBuffer([i,r])},a.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new c(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)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},a.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(var 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])}for(var a=0,r=0;r<e.length;r++){var i=e[r];for(a++;i>=128;i>>=7)a++}for(var o=new c(a),s=o.length-1,r=e.length-1;r>=0;r--){var i=e[r];for(o[s--]=127&i;(i>>=7)>0;)o[s--]=128|127&i}return this._createEncoderBuffer(o)},a.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[i(r.getFullYear()),i(r.getUTCMonth()+1),i(r.getUTCDate()),i(r.getUTCHours()),i(r.getUTCMinutes()),i(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[i(r.getFullYear()%100),i(r.getUTCMonth()+1),i(r.getUTCDate()),i(r.getUTCHours()),i(r.getUTCMinutes()),i(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},a.prototype._encodeNull=function(){return this._createEncoderBuffer("")},a.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&&!c.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new c(n)}if(c.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new c(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]);for(var r=1,i=e;i>=256;i>>=8)r++;for(var a=new Array(r),i=a.length-1;i>=0;i--)a[i]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new c(a))},a.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},a.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},a.prototype._skipDefault=function(e,t,n){var r,a=this._baseState;if(null===a.default)return!1;var i=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),i.length!==a.defaultBuffer.length)return!1;for(r=0;r<i.length;r++)if(i[r]!==a.defaultBuffer[r])return!1;return!0}},function(e,t){e.exports={"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){(function(t){function r(e){var n=new t(4);return n.writeUInt32BE(e,0),n}var a=n(467);e.exports=function(e,n){for(var i,o=new t(""),s=0;o.length<n;)i=r(s++),o=t.concat([o,a("sha1").update(e).update(i).digest()]);return o.slice(0,n)}}).call(t,n(39).Buffer)},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){(function(t){function r(e,n){return new t(e.toRed(a.mont(n.modulus)).redPow(new a(n.publicExponent)).fromRed().toArray())}var a=n(57);e.exports=r}).call(t,n(39).Buffer)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1080),i=r(a),o=n(1083),s=r(o);t.default=function(){function e(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=(0,s.default)(e);!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,i.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(24),y=r(v);n(1092);var A=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=(0,g.default)(this.props.className,"dops-section-header");return M.default.createElement(y.default,{compact:!0,className:e},M.default.createElement("div",{className:"dops-section-header__label"},M.default.createElement("span",{className:"dops-section-header__label-text"},this.props.label)),M.default.createElement("div",{className:"dops-section-header__actions"},this.props.children))}}]),t}(M.default.Component);A.displayName="SectionHeader",A.propTypes={label:m.default.string},A.defaultProps={label:""},t.default=A,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(163),E=r(A),w=n(15),k=r(w),T=n(27),L=r(T),S=n(28),C=n(506),O=r(C),z=n(850),N=r(z),D=n(912),P=r(D),x=n(21),j=n(210),R=n(62),Y=n(61),I=function(e,t){return k.default.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t})},q=function(e,t){return function(){return I(e,t)}},B=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.getProActions=function(e,t){var n="",a=!1,i=!1,o="";switch(e){case"threats":n="is-error",r.props.isCompact?i=(0,g.translate)("Threats",{context:"A caption for a small button to fix security issues."}):(a=(0,g.translate)("Threats found!",{context:"Short warning message about new threats found."}),i=(0,g.translate)("FIX",{context:"A caption for a small button to fix security issues."})),o="https://dashboard.vaultpress.com/";break;case"free":case"personal":e="upgrade",n="is-warning",r.props.isCompact||(a=(0,g.translate)("No scanning",{context:"Short warning message about site having no security scan."})),i=(0,g.translate)("Upgrade",{context:"Caption for a button to purchase a paid feature."}),o="https://jetpack.com/redirect/?source=upgrade&site="+r.props.siteRawUrl;break;case"pro":e="upgrade",n="is-warning",i=(0,g.translate)("Upgrade",{context:"Caption for a button to purchase a pro plan."}),o="https://jetpack.com/redirect/?source=plans-business&site="+r.props.siteRawUrl;break;case"secure":n="is-success",a=(0,g.translate)("Secure",{context:"Short message informing user that the site is secure."});break;case"invalid_key":n="is-warning",i=(0,g.translate)("Invalid key",{context:"Short warning message about an invalid key being used for Akismet."}),o=r.props.siteAdminUrl+"admin.php?page=akismet-key-config";break;case"rewind_connected":return M.default.createElement(E.default,{showDismiss:!1,status:"is-success",isCompact:!0},(0,g.translate)("Connected"));case"active":return M.default.createElement("span",{className:"jp-dash-item__active-label"},(0,g.translate)("ACTIVE"))}return M.default.createElement(E.default,{showDismiss:!1,status:n,isCompact:!0},a,i&&M.default.createElement("a",{className:"dops-notice__text-no-underline",onClick:q(e,t),href:o},i))},r.getSetUpButton=function(e){return M.default.createElement(y.default,{onClick:q("set_up",e),compact:!0,primary:!0,href:"https://wordpress.com/plugins/setup/"+r.props.siteRawUrl+"?only="+e},(0,g.translate)("Set up",{context:"Caption for a button to set up a feature."}))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{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 a=/jetpack_personal*/.test(t.product_slug),i=/jetpack_free*/.test(t.product_slug),o=/jetpack_premium*/.test(t.product_slug),s=(0,L.default)(n,["data","features","backups"],!1),c=(0,L.default)(n,["data","features","security"],!1);return M.default.createElement("div",null,M.default.createElement(O.default,null),M.default.createElement(P.default,null),M.default.createElement(N.default,null),!this.props.isDevMode&&function(u,l,d){switch(u){case"rewind":return e.getProActions("rewind_connected","rewind");case"backups":if(i&&!s&&e.props.isCompact)return e.getProActions("free","backups");break;case"scan":if(e.props.fetchingSiteData||e.props.isFetchingVaultPressData)return"";if((i||a)&&!c)return e.props.isCompact?e.getProActions("free","scan"):a&&!s?e.getSetUpButton("backups"):"";if("N/A"!==n)return c?e.getProActions(0===e.props.getScanThreats()?"secure":"threats","scan"):e.getSetUpButton("scan");break;case"search":return i||a||o?e.getProActions("pro"):"";case"akismet":if(i&&(!l||!d))return e.props.isCompact?e.getProActions("free","anti-spam"):"";if(!e.props.isAkismetKeyValid&&!e.props.fetchingAkismetData&&l&&d)return e.getProActions("invalid_key","anti-spam")}return t.product_slug&&r&&!i?l&&d?e.getProActions("active"):e.getSetUpButton(u):""}(this.props.proFeature,this.props.pluginActive(r),this.props.pluginInstalled(r)))}}]),t}(M.default.Component);B.propTypes={isCompact:m.default.bool,proFeature:m.default.string},B.defaultProps={isCompact:!0,proFeature:""},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,S.getSiteRawUrl)(e),siteAdminUrl:(0,S.getSiteAdminUrl)(e),getScanThreats:function(){return(0,R.getVaultPressScanThreatCount)(e)},getVaultPressData:function(){return(0,R.getVaultPressData)(e)},getAkismetData:function(){return(0,R.getAkismetData)(e)},isFetchingVaultPressData:(0,R.isFetchingVaultPressData)(e),sitePlan:function(){return(0,Y.getSitePlan)(e)},fetchingPluginsData:(0,j.isFetchingPluginsData)(e),pluginActive:function(t){return(0,j.isPluginActive)(e,t)},pluginInstalled:function(t){return(0,j.isPluginInstalled)(e,t)},isDevMode:(0,x.isDevMode)(e),fetchingSiteData:(0,Y.isFetchingSiteData)(e),isAkismetKeyValid:(0,R.isAkismetKeyValid)(e),fetchingAkismetData:(0,R.isFetchingAkismetData)(e)}})(B),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(19),M=n(62),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.defaultProps={checkAkismetKey:function(){}},t.default=(0,m.connect)(function(e){return{checkAkismetKey:(0,M.checkAkismetKey)(),isCheckingAkismetKey:(0,M.isCheckingAkismetKey)(e)}},function(e){return(0,_.bindActionCreators)({checkAkismetKey:M.checkAkismetKey},e)})(b),e.exports=t.default},function(e,t){function n(e){return r.test(e)}var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(8),g=n(15),v=r(g),y=n(1101),A=r(y),E=n(515),w=r(E);n(1104);var k=function(e){function t(){(0,s.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments));return e.getModule=e.getModule.bind(e),e.trackInfoClick=e.trackInfoClick.bind(e),e.trackLearnMoreClick=e.trackLearnMoreClick.bind(e),e.trackPrivacyInfoClick=e.trackPrivacyInfoClick.bind(e),e}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getModule",value:function(){return this.props.module||{}}},{key:"trackInfoClick",value:function(){v.default.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}},{key:"trackLearnMoreClick",value:function(){v.default.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}},{key:"trackPrivacyInfoClick",value:function(){v.default.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"),M.default.createElement("div",{className:"jp-support-info"},M.default.createElement(A.default,{position:"left",onClick:this.trackInfoClick,screenReaderText:(0,b.translate)("Learn more")},t+" ",M.default.createElement("span",{className:"jp-support-info__learn-more"},M.default.createElement(w.default,{href:n,onClick:this.trackLearnMoreClick,target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Learn more"))),M.default.createElement("span",{className:"jp-support-info__privacy"},M.default.createElement(w.default,{href:r,onClick:this.trackPrivacyInfoClick,target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Privacy information")))))}}]),t}(_.Component);k.propTypes={module:m.default.object,text:m.default.string,link:m.default.string,privacyLink:m.default.string},k.defaultProps={module:void 0,text:"",link:"",privacyLink:""},t.default=k,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectButton=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(41),v=r(g),y=n(8),A=n(15),E=r(A),w=n(21),k=n(28),T=n(128),L=r(T),S=n(1163),C=r(S);n(1168);var O=t.ConnectButton=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={showModal:!1},r.handleOpenModal=function(e){E.default.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),r.toggleVisibility()},r.disconnectSite=function(){r.toggleVisibility(),r.props.disconnectSite()},r.toggleVisibility=function(){r.setState({showModal:!r.state.showModal})},r.renderUserButton=function(){if(r.props.isLinked)return M.default.createElement("div",null,M.default.createElement("a",{role:"button",tabIndex:"0",className:"jp-jetpack-unlink__button",onKeyDown:(0,L.default)(r.props.unlinkUser),onClick:r.props.unlinkUser,disabled:r.props.isUnlinking},(0,y.translate)("Unlink me from WordPress.com")));var e=r.props.connectUrl;r.props.from&&(e+="&from="+r.props.from,e+="&additional-user");var t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:r.props.fetchingConnectUrl},n=(0,y.translate)("Link to WordPress.com");return r.props.asLink?M.default.createElement("a",t,n):M.default.createElement(v.default,t,n)},r.renderContent=function(){
34
- if(r.props.connectUser)return r.renderUserButton();if(r.props.isSiteConnected)return M.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,L.default)(r.handleOpenModal),onClick:r.handleOpenModal,disabled:r.props.isDisconnecting},(0,y.translate)("Manage site connection"));var e=r.props.connectUrl;r.props.from&&(e+="&from="+r.props.from);var t={className:"jp-jetpack-connect__button",href:e,disabled:r.props.fetchingConnectUrl},n=(0,y.translate)("Set up Jetpack");return r.props.asLink?M.default.createElement("a",t,n):M.default.createElement(v.default,t,n)},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return M.default.createElement("div",null,!this.props.isSiteConnected&&M.default.createElement("p",{className:"jp-banner__tos-blurb"},(0,y.translate)("By clicking the button below, you agree to our fascinating {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com",{components:{tosLink:M.default.createElement("a",{href:"https://wordpress.com/tos",rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:M.default.createElement("a",{href:"https://jetpack.com/support/what-data-does-jetpack-sync",rel:"noopener noreferrer",target:"_blank"})}})),this.renderContent(),this.props.children,M.default.createElement(C.default,{show:this.state.showModal,toggleModal:this.toggleVisibility,disconnectSite:this.disconnectSite}))}}]),t}(M.default.Component);O.displayName="ConnectButton",O.propTypes={connectUser:m.default.bool,from:m.default.string,asLink:m.default.bool},O.defaultProps={connectUser:!1,from:"",asLink:!1},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,k.getSiteRawUrl)(e),isSiteConnected:(0,w.getSiteConnectionStatus)(e),isDisconnecting:(0,w.isDisconnectingSite)(e),fetchingConnectUrl:(0,w.isFetchingConnectUrl)(e),connectUrl:(0,w.getConnectUrl)(e),isLinked:(0,w.isCurrentUserLinked)(e),isUnlinking:(0,w.isUnlinkingUser)(e)}},function(e){return{disconnectSite:function(){return e((0,w.disconnectSite)())},unlinkUser:function(){return e((0,w.unlinkUser)())}}})(O)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(498),s=r(o),c=n(1170),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(909),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(15),E=r(A),w=n(1171),k=r(w),T=n(27),L=r(T),S=n(30),C=n(918),O=r(C),z=n(1172),N=r(z),D=n(1173),P=r(D),x=n(1185),j=r(x),R=n(1187),Y=r(R),I=n(1188),q=r(I),B=n(1189),W=r(B),U=n(1191),H=r(U),F=n(1192),X=r(F),V=n(1194),K=r(V),J=n(1195),G=r(J),Q=n(1196),$=r(Q),Z=n(506),ee=r(Z),te=n(211),ne=r(te),re=n(28),ae=n(21),ie=n(23),oe=function(e){return e.map(function(e){return[e.header,(0,k.default)(e.cards,2).map(function(e){var t=(0,M.default)(e,2),n=t[0],r=t[1];return g.default.createElement("div",{className:"jp-at-a-glance__item-grid"},g.default.createElement("div",{className:"jp-at-a-glance__left"},n),g.default.createElement("div",{className:"jp-at-a-glance__right"},r))})]})},se=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={updateOptions:this.props.updateOptions,getOptionValue:this.props.getOptionValue,isUpdating:this.props.isUpdating},t={siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl},n=function(){return E.default.tracks.recordJetpackClick("aag_manage_security_wpcom")},r=g.default.createElement(O.default,{label:(0,y.translate)("Security"),settingsPath:this.props.userCanManageModules?"#security":void 0,externalLink:this.props.isDevMode||!this.props.userCanManageModules?"":(0,y.translate)("Manage security on WordPress.com"),externalLinkPath:this.props.isDevMode?"":"https://wordpress.com/settings/security/"+this.props.siteRawUrl,externalLinkClick:n}),a=g.default.createElement("div",null,g.default.createElement(O.default,{label:(0,y.translate)("Connections")}),g.default.createElement($.default,null)),o="active"===(0,L.default)(this.props.rewindStatus,["state"],!1),s=[g.default.createElement(q.default,(0,i.default)({},e,{siteRawUrl:this.props.siteRawUrl,isRewindActive:o})),g.default.createElement(H.default,(0,i.default)({},e,{siteRawUrl:this.props.siteRawUrl,isRewindActive:o})),g.default.createElement(W.default,t),g.default.createElement(X.default,(0,i.default)({},e,t))];if("inactive"!==this.props.getModuleOverride("protect")&&s.push(g.default.createElement(j.default,e)),"inactive"!==this.props.getModuleOverride("monitor")&&s.push(g.default.createElement(Y.default,e)),o&&s.unshift(g.default.createElement(N.default,(0,i.default)({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules){var c=[{header:r,cards:s}],u=[];return"inactive"!==this.props.getModuleOverride("photon")&&u.push(g.default.createElement(K.default,e)),"inactive"!==this.props.getModuleOverride("search")&&u.push(g.default.createElement(G.default,e)),u.length&&c.push({header:g.default.createElement(O.default,{label:(0,y.translate)("Performance")}),cards:u}),g.default.createElement("div",{className:"jp-at-a-glance"},g.default.createElement(ee.default,null),g.default.createElement(ne.default,null),g.default.createElement(P.default,(0,i.default)({},e,t)),oe(c),a)}var l="";this.props.userCanViewStats&&(l=g.default.createElement(P.default,(0,i.default)({},e,t)));var d="";return this.props.getOptionValue("protect")&&(d=g.default.createElement(j.default,e)),this.props.userIsSubscriber?g.default.createElement("div",null,l,a):g.default.createElement("div",null,l,this.props.getOptionValue("protect")&&r,d,a)}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{userCanManageModules:(0,re.userCanManageModules)(e),userCanViewStats:(0,re.userCanViewStats)(e),userIsSubscriber:(0,re.userIsSubscriber)(e),isDevMode:(0,ae.isDevMode)(e),getModuleOverride:function(t){return(0,ie.getModuleOverride)(e,t)}}})((0,S.ModuleSettingsForm)(se)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DashSectionHeader=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(65),y=r(v),A=n(8),E=n(15),w=r(E),k=t.DashSectionHeader=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackCogClick=function(){w.default.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=void 0,t=void 0,n=void 0,r=(0,g.default)(this.props.className,"jp-dash-section-header");return this.props.settingsPath&&(e=M.default.createElement("a",{className:"jp-dash-section-header__settings",href:this.props.settingsPath},M.default.createElement("span",{className:"screen-reader-text"},(0,A.translate)("Settings",{context:"Noun. Displayed to screen readers."})),M.default.createElement(y.default,{onClick:this.trackCogClick,icon:"cog",size:16}))),this.props.externalLink&&(t=M.default.createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(n=M.default.createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),M.default.createElement("div",{className:r},M.default.createElement("div",{className:"jp-dash-section-header__label"},M.default.createElement("h2",{className:"jp-dash-section-header__name"},this.props.label),e),t,n)}}]),t}(M.default.Component);k.displayName="DashSectionHeader",k.propTypes={label:m.default.string.isRequired,settingsPath:m.default.string,externalLinkPath:m.default.string,externalLink:m.default.string,externalLinkClick:m.default.func},k.defaultProps={label:"",settingsPath:"",externalLinkPath:"",externalLink:""},t.default=k},function(e,t,n){function r(e,t,n){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),a(e,t,{leading:r,maxWait:t,trailing:s})}var a=n(504),i=n(42),o="Expected a function";e.exports=r},function(e,t,n){"use strict";function r(e){return"undefined"==typeof DOMParser?e:(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(8),M=n(518),b=r(M),g=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("VideoPress allows you to upload videos from your computer to be hosted on WordPress.com, rather than on your host’s servers. You can then insert these on your self-hosted Jetpack site. ")),m.default.createElement(b.default,{module_slug:"videopress"}))}}]),t}(m.default.Component);t.default=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(149),i=r(a),o=n(1),s=r(o),c=n(10),u=n(274),l=n(218),d=n(646),f=n(25),p=(r(f),n(928)),h=r(p),m=n(934),_=r(m),M=n(660),b=r(M),g=n(8),v=r(g),y=n(935),A=r(y),E=n(16);!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(E);(0,h.default)(),(0,_.default)();var w=window.Initial_State;w.locale=JSON.parse(w.locale),void 0!==w.locale[""]?(w.locale[""].localeSlug=w.localeSlug,Number.prototype.realToLocaleString=Number.prototype.toLocaleString,Number.prototype.toLocaleString=function(e,t){return e=e||w.localeSlug,t=t||{},this.realToLocaleString(e,t)}):w.locale={"":{localeSlug:w.localeSlug}},v.default.setLocale(w.locale);var k=(0,u.useRouterHistory)(d.createHashHistory)(),T=(0,l.syncHistoryWithStore)(k,b.default);!function(){var e=document.getElementById("jp-plugin-container");null!==e&&i.default.render(s.default.createElement("div",null,s.default.createElement(c.Provider,{store:b.default},s.default.createElement(u.Router,{history:T},s.default.createElement(u.Route,{path:"/",name:v.default.translate("At A Glance",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/jumpstart",component:A.default}),s.default.createElement(u.Route,{path:"/dashboard",name:v.default.translate("At A Glance"),component:A.default}),s.default.createElement(u.Route,{path:"/plans",name:v.default.translate("Plans",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/settings",name:v.default.translate("Settings",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/discussion",name:v.default.translate("Discussion",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/security",name:v.default.translate("Security",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/traffic",name:v.default.translate("Traffic",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/writing",name:v.default.translate("Writing",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/sharing",name:v.default.translate("Sharing",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/wpbody-content",component:A.default}),s.default.createElement(u.Route,{path:"/wp-toolbar",component:A.default}),s.default.createElement(u.Route,{path:"/privacy",component:A.default}),s.default.createElement(u.Route,{path:"*",component:A.default})))),e)}()},function(e,t,n){"use strict";var r=n(22),a=n(519),i=n(859),o=n(95),s=n(53),c=n(601),u=n(925),l=n(860),d=n(926);n(13);a.inject();var f={findDOMNode:u,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:c,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:d};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=l(e)),e?r.getNodeFromInstance(e):null}},Mount:i,Reconciler:o});e.exports=f},function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};e.exports=r},function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=o.get(e);if(t)return t=s(t),t?i.getNodeFromInstance(t):null;"function"==typeof e.render?a("44"):a("45",Object.keys(e))}var a=n(12),i=(n(66),n(22)),o=n(134),s=n(860);n(9),n(13);e.exports=r},function(e,t,n){"use strict";var r=n(859);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(29),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(119),s=n(153),c=function(e){var t=function(t){var n=e();if("string"==typeof n)return(t||window.event).returnValue=n,n};return(0,o.addEventListener)(window,"beforeunload",t),function(){return(0,o.removeEventListener)(window,"beforeunload",t)}},u=function(e){return s.canUseDOM||(0,i.default)(!1),function(t){var n=e(t),a=[],i=void 0,o=function(){for(var e=void 0,t=0,n=a.length;null==e&&t<n;++t)e=a[t].call();return e};return r({},n,{listenBeforeUnload:function(e){return 1===a.push(e)&&(i=c(o)),function(){a=a.filter(function(t){return t!==e}),0===a.length&&i&&(i(),i=null)}}})}};t.default=u},function(e,t,n){var r=(n(9),n(929)),a=!1;e.exports=function(e){e=e||{};var t=e.shouldRejectClick||r;a=!0,n(94).injection.injectEventPluginsByName({TapEventPlugin:n(930)(t)})}},function(e,t){e.exports=function(e,t){if(e&&t-e<750)return!0}},function(e,t,n){"use strict";function r(e,t){var n=l.extractSingleTouch(t);return n?n[e.page]:e.page in t?t[e.page]:t[e.client]+d[e.envScroll]}function a(e,t){var n=r(v.x,t),a=r(v.y,t);return Math.pow(Math.pow(n-e.x,2)+Math.pow(a-e.y,2),.5)}function i(e){return{tapMoveThreshold:_,ignoreMouseThreshold:M,eventTypes:E,extractEvents:function(t,n,i,o){if(!p(t)&&!h(t))return null;if(m(t))g=w();else if(e(g,w()))return null;var s=null,l=a(b,i);return h(t)&&l<_&&(s=u.getPooled(E.touchTap,n,i,o)),p(t)?(b.x=r(v.x,i),b.y=r(v.y,i)):h(t)&&(b.x=0,b.y=0),c.accumulateTwoPhaseDispatches(s),s}}}var o=n(931),s=n(150),c=n(93),u=n(96),l=n(932),d=n(213),f=n(933),p=(o.topLevelTypes,s.isStartish),h=s.isEndish,m=function(e){return["topTouchCancel","topTouchEnd","topTouchStart","topTouchMove"].indexOf(e)>=0},_=10,M=750,b={x:null,y:null},g=null,v={x:{page:"pageX",client:"clientX",envScroll:"currentPageScrollLeft"},y:{page:"pageY",client:"clientY",envScroll:"currentPageScrollTop"}},y=["topTouchStart","topTouchCancel","topTouchEnd","topTouchMove"],A=["topMouseDown","topMouseMove","topMouseUp"].concat(y),E={touchTap:{phasedRegistrationNames:{bubbled:f({onTouchTap:null}),captured:f({onTouchTapCapture:null})},dependencies:A}},w=function(){return Date.now?Date.now:function(){return+new Date}}();e.exports=i},function(e,t,n){"use strict";var r={topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null},a={topLevelTypes:r};e.exports=a},function(e,t){var n={extractSingleTouch:function(e){var t=e.touches,n=e.changedTouches,r=t&&t.length>0,a=n&&n.length>0;return!r&&a?n[0]:r?t[0]:e}};e.exports=n},function(e,t,n){"use strict";var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=r},function(e,t,n){"use strict";function r(){document.addEventListener("keydown",function(e){i||-1!==a.indexOf(e.keyCode)&&(i=!0,document.documentElement.classList.add("dops-accessible-focus"))}),document.addEventListener("mouseup",function(){i&&(i=!1,document.documentElement.classList.remove("dops-accessible-focus"))})}var a=[9,32,37,38,39,40],i=!1;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(44),b=r(M),g=n(646),v=n(274),y=n(8),A=n(798),E=r(A),w=n(861),k=r(w),T=n(868),L=r(T),S=n(869),C=r(S),O=n(1162),z=r(O),N=n(1169),D=r(N),P=n(916),x=n(21),j=n(28),R=n(103),Y=n(73),I=n(917),q=r(I),B=n(1198),W=r(B),U=n(852),H=r(U),F=n(1210),X=r(F),V=n(1211),K=r(V),J=n(1212),G=r(J),Q=n(1213),$=r(Q),Z=n(1225),ee=r(Z),te=n(1226),ne=r(te),re=n(15),ae=r(re),ie=n(56),oe=r(ie),se=n(1227),ce=r(se),ue=n(1231),le=r(ue),de=n(476),fe=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.onBeforeUnload=function(){if(r.props.areThereUnsavedSettings){if(!confirm((0,y.translate)("There are unsaved settings in this tab that will be lost if you leave it. Proceed?")))return!1;r.props.clearUnsavedSettingsFlag()}},r.routerWillLeave=function(){if(r.props.areThereUnsavedSettings){if(!confirm((0,y.translate)("There are unsaved settings in this tab that will be lost if you leave it. Proceed?")))return!1;window.setTimeout(r.props.clearUnsavedSettingsFlag,10)}},r.initializeAnalyitics=function(){var e=r.props.tracksUserData;e&&ae.default.initialize(e.userid,e.username)},r.handleJumpstart=function(e){var t=(0,g.createHistory)(),n=e.jumpStartStatus,a=e.isJumpstarting;!r.props.jumpStartStatus&&n&&(window.location.hash="jumpstart",t.push(window.location.pathname+"?page=jetpack#/jumpstart")),!r.props.jumpStartStatus||n||a||(window.location.hash="dashboard",t.push(window.location.pathname+"?page=jetpack#/dashboard"))},r.renderMainContent=function(e){if(r.props.isSiteConnected&&ae.default.tracks.recordEvent("jetpack_wpa_page_view",{path:e}),!r.props.userCanManageModules)return!!r.props.siteConnectionStatus&&m.default.createElement("div",{"aria-live":"assertive"},m.default.createElement(G.default,r.props));if(!r.props.siteConnectionStatus&&r.props.userCanConnectSite)return m.default.createElement("div",{"aria-live":"assertive"},m.default.createElement(z.default,null));if(r.props.isSiteConnected&&r.props.jumpStartStatus)if((0,b.default)(["/","/dashboard"],e)){window.location.hash="jumpstart";var t=(0,g.createHistory)();t.push(window.location.pathname+"?page=jetpack#/jumpstart")}else if("/jumpstart"===e)return m.default.createElement("div",{"aria-live":"assertive"},m.default.createElement(D.default,null));var n=m.default.createElement(L.default,{route:r.props.route,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl}),a=void 0,i=m.default.createElement(k.default,{route:r.props.route});switch(e){case"/dashboard":a=m.default.createElement(q.default,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus});break;case"/plans":a=m.default.createElement(W.default,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus});break;case"/settings":case"/general":case"/engagement":case"/security":case"/traffic":case"/discussion":case"/writing":case"/sharing":case"/privacy":i=n,a=m.default.createElement(C.default,{route:r.props.route,siteAdminUrl:r.props.siteAdminUrl,siteRawUrl:r.props.siteRawUrl,searchTerm:r.props.searchTerm,rewindStatus:r.props.rewindStatus});break;default:(0,g.createHistory)().replace(window.location.pathname+"?page=jetpack#/dashboard"),a=m.default.createElement(q.default,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus})}return window.wpNavMenuClassChange(),m.default.createElement("div",{"aria-live":"assertive"},i,a,m.default.createElement(ce.default,{siteRawUrl:r.props.siteRawUrl,newPlanActivated:r.props.newPlanActivated,userCanManageModules:r.props.userCanManageModules}))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.setInitialState(),oe.default.setApiRoot(this.props.apiRoot),oe.default.setApiNonce(this.props.apiNonce),this.initializeAnalyitics(),window.addEventListener("beforeunload",this.onBeforeUnload),this.props.router.listenBefore(this.routerWillLeave)}},{key:"shouldComponentUpdate",value:function(e){return!(0,b.default)(["/wpbody-content","/wp-toolbar"],e.route.path)&&(e.siteConnectionStatus!==this.props.siteConnectionStatus||e.jumpStartStatus!==this.props.jumpStartStatus||e.isLinked!==this.props.isLinked||e.route.path!==this.props.route.path||e.searchTerm!==this.props.searchTerm||e.newPlanActivated!==this.props.newPlanActivated||e.rewindStatus!==this.props.rewindStatus)}},{key:"componentDidUpdate",value:function(e){if(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:"componentWillReceiveProps",value:function(e){e.jumpStartStatus===this.props.jumpStartStatus&&e.isJumpstarting===this.props.isJumpstarting||this.handleJumpstart(e)}},{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement(E.default,{route:this.props.route}),m.default.createElement("div",{className:"jp-lower"},this.props.isSiteConnected&&m.default.createElement(le.default,null),m.default.createElement(ee.default,null),m.default.createElement($.default,null),this.renderMainContent(this.props.route.path),!this.props.jumpStartStatus&&m.default.createElement(X.default,{path:this.props.route.path}),!this.props.jumpStartStatus&&m.default.createElement(K.default,null)),m.default.createElement(H.default,{siteAdminUrl:this.props.siteAdminUrl}),m.default.createElement(ne.default,{analytics:ae.default}))}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{jumpStartStatus:(0,P.getJumpStartStatus)(e),isJumpstarting:(0,P.isJumpstarting)(e),siteConnectionStatus:(0,x.getSiteConnectionStatus)(e),isLinked:(0,x.isCurrentUserLinked)(e),siteRawUrl:(0,j.getSiteRawUrl)(e),siteAdminUrl:(0,j.getSiteAdminUrl)(e),searchTerm:(0,Y.getSearchTerm)(e),apiRoot:(0,j.getApiRootUrl)(e),apiNonce:(0,j.getApiNonce)(e),tracksUserData:(0,j.getTracksUserData)(e),areThereUnsavedSettings:(0,R.areThereUnsavedSettings)(e),userCanManageModules:(0,j.userCanManageModules)(e),userCanConnectSite:(0,j.userCanConnectSite)(e),isSiteConnected:(0,x.isSiteConnected)(e),newPlanActivated:(0,R.showWelcomeForNewPlan)(e),rewindStatus:(0,de.getRewindStatus)(e)}},function(e){return{setInitialState:function(){return e((0,j.setInitialState)())},clearUnsavedSettingsFlag:function(){return e((0,R.clearUnsavedSettingsFlag)())}}})((0,v.withRouter)(fe)),window.wpNavMenuClassChange=function(){var e=window.location.hash,t=["#/settings","#/general","#/discussion","#/security","#/traffic","#/writing","#/sharing","#/privacy"],n=["#/","#/dashboard","#/plans"];if(jQuery(".current").each(function(e,t){jQuery(t).removeClass("current")}),e=e.split("?")[0],(0,b.default)(n,e)){jQuery("#toplevel_page_jetpack").find("li").filter(function(e){return 1===e})[0].classList.add("current")}else if((0,b.default)(t,e)){var r=jQuery("#toplevel_page_jetpack").find("li").filter(function(e){return 2===e});r[0].classList.add("current")}var a=jQuery("body");a.on("click",'a[href$="#/dashboard"], a[href$="#/settings"], .jp-dash-section-header__settings[href="#/security"], .dops-button[href="#/plans"]',function(){window.scrollTo(0,0)}),a.on("click",".jetpack-js-stop-propagation",function(e){e.stopPropagation()})},e.exports=t.default},function(e,t,n){function r(e,t){return a(e,t)}var a=n(231);e.exports=r},function(e,t,n){var r=n(46),a=function(){return r.Date.now()};e.exports=a},function(e,t,n){function r(e,t){var n=-1,r=i(e)?Array(e.length):[];return a(e,function(e,a,i){r[++n]=t(e,a,i)}),r}var a=n(148),i=n(54);e.exports=r},function(e,t,n){function r(e,t,n){t=a(t,e);var r=-1,s=t.length;for(s||(s=1,e=void 0);++r<s;){var c=null==e?void 0:e[o(t[r])];void 0===c&&(r=s,c=n),e=i(c)?c.call(e):c}return e}var a=n(101),i=n(155),o=n(90);e.exports=r},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return h.createElement("li",{className:"dops-select-dropdown__separator"})}}]),t}(h.Component);e.exports=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=m.default.Component,M=function(e){return e.stopPropagation()},b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("li",{onClick:M,className:"dops-select-dropdown__label"},m.default.createElement("label",null,this.props.children))}}]),t}(_);t.default=b,e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(102)("calypso:url-search"),a=n(948),i=n(950);e.exports={getInitialState:function(){return{searchOpen:!1}},componentWillReceiveProps:function(e){e.search||this.setState({searchOpen:!1})},doSearch:function(e){var t=void 0;if(this.setState({searchOpen:!1!==e}),this.onSearch)return void this.onSearch(e);t=this.buildUrl&&"function"==typeof this.buildUrl?this.buildUrl(window.location.href,e):i(window.location.href,e),r("search posts for:",e),this.props.search&&e?(r("replacing URL: "+t),a.replace(t)):(r("setting URL: "+t),a(t))},getSearchOpen:function(){return!1!==this.state.searchOpen||this.props.search}}},function(e,t,n){"use strict";(function(t){function r(e,t){if("function"==typeof e)return r("*",e);if("function"==typeof t)for(var n=new s(e),a=1;a<arguments.length;++a)r.callbacks.push(n.middleware(arguments[a]));else"string"==typeof e?r["string"==typeof t?"redirect":"show"](e,t):r.start(e)}function a(e){if(!e.handled){var t;t=g?b+m.hash.replace("#!",""):m.pathname+m.search,t!==e.canonicalPath&&(r.stop(),e.handled=!1,m.href=e.canonicalPath)}}function i(e){return"string"!=typeof e?e:M?decodeURIComponent(e.replace(/\+/g," ")):e}function o(e,t){"/"===e[0]&&0!==e.indexOf(b)&&(e=b+(g?"#!":"")+e);var n=e.indexOf("?");if(this.canonicalPath=e,this.path=e.replace(b,"")||"/",g&&(this.path=this.path.replace("#!","")||"/"),this.title=document.title,this.state=t||{},this.state.path=e,this.querystring=~n?i(e.slice(n+1)):"",this.pathname=i(~n?e.slice(0,n):e),this.params={},this.hash="",!g){if(!~this.path.indexOf("#"))return;var r=this.path.split("#");this.path=r[0],this.hash=i(r[1])||"",this.querystring=this.querystring.split("#")[0]}}function s(e,t){t=t||{},this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=d(this.path,this.keys=[],t)}function c(e){if(1===u(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 a=n.getAttribute("href");if((g||n.pathname!==m.pathname||!n.hash&&"#"!==a)&&!(a&&a.indexOf("mailto:")>-1)&&!n.target&&l(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 o=i;0===i.indexOf(b)&&(i=i.substr(b.length)),g&&(i=i.replace("#!","")),b&&o===i||(e.preventDefault(),r.show(o))}}}}function u(e){return e=e||window.event,null===e.which?e.button:e.which}function l(e){var t=m.protocol+"//"+m.hostname;return m.port&&(t+=":"+m.port),e&&0===e.indexOf(t)}var d=n(949);e.exports=r;var f,p,h="undefined"!=typeof document&&document.ontouchstart?"touchstart":"click",m="undefined"!=typeof window&&(window.history.location||window.location),_=!0,M=!0,b="",g=!1;r.callbacks=[],r.exits=[],r.current="",r.len=0,r.base=function(e){if(0===arguments.length)return b;b=e},r.start=function(e){if(e=e||{},!f&&(f=!0,!1===e.dispatch&&(_=!1),!1===e.decodeURLComponents&&(M=!1),!1!==e.popstate&&window.addEventListener("popstate",v,!1),!1!==e.click&&document.addEventListener(h,c,!1),!0===e.hashbang&&(g=!0),_)){var t=g&&~m.hash.indexOf("#!")?m.hash.substr(2)+m.search:m.pathname+m.search+m.hash;r.replace(t,null,!0,_)}},r.stop=function(){f&&(r.current="",r.len=0,f=!1,document.removeEventListener(h,c,!1),window.removeEventListener("popstate",v,!1))},r.show=function(e,t,n,a){var i=new o(e,t);return r.current=i.path,!1!==n&&r.dispatch(i),!1!==i.handled&&!1!==a&&i.pushState(),i},r.back=function(e,t){r.len>0?(history.back(),r.len--):e?setTimeout(function(){r.show(e,t)}):setTimeout(function(){r.show(b,t)})},r.redirect=function(e,t){"string"==typeof e&&"string"==typeof t&&r(e,function(e){setTimeout(function(){r.replace(t)},0)}),"string"==typeof e&&void 0===t&&setTimeout(function(){r.replace(e)},0)},r.replace=function(e,t,n,a){var i=new o(e,t);return r.current=i.path,i.init=n,i.save(),!1!==a&&r.dispatch(i),i},r.dispatch=function(e){function t(){var e=r.exits[s++];if(!e)return n();e(i,t)}function n(){var t=r.callbacks[o++];return e.path!==r.current?void(e.handled=!1):t?void t(e,n):a(e)}var i=p,o=0,s=0;p=e,i?t():n()},r.exit=function(e,t){if("function"==typeof e)return r.exit("*",e);for(var n=new s(e),a=1;a<arguments.length;++a)r.exits.push(n.middleware(arguments[a]))},r.Context=o,o.prototype.pushState=function(){r.len++,history.pushState(this.state,this.title,g&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},o.prototype.save=function(){history.replaceState(this.state,this.title,g&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},r.Route=s,s.prototype.middleware=function(e){var t=this;return function(n,r){
35
  if(t.match(n.path,n.params))return e(n,r);r()}},s.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),a=~r?e.slice(0,r):e,o=this.regexp.exec(decodeURIComponent(a));if(!o)return!1;for(var s=1,c=o.length;s<c;++s){var u=n[s-1],l=i(o[s]);void 0===l&&hasOwnProperty.call(t,u.name)||(t[u.name]=l)}return!0};var v=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;r.replace(n,t.state)}else r.show(m.pathname+m.hash,void 0,void 0,!1)}}();r.sameOrigin=l}).call(t,n(63))},function(e,t,n){function r(e){for(var t,n=[],r=0,a=0,i="";null!=(t=_.exec(e));){var o=t[0],c=t[1],u=t.index;if(i+=e.slice(a,u),a=u+o.length,c)i+=c[1];else{i&&(n.push(i),i="");var l=t[2],d=t[3],f=t[4],p=t[5],h=t[6],m=t[7],M="+"===h||"*"===h,b="?"===h||"*"===h,g=l||"/",v=f||p||(m?".*":"[^"+g+"]+?");n.push({name:d||r++,prefix:l||"",delimiter:g,optional:b,repeat:M,pattern:s(v)})}}return a<e.length&&(i+=e.substr(a)),i&&n.push(i),n}function a(e){return i(r(e))}function i(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 r="",a=n||{},i=0;i<e.length;i++){var o=e[i];if("string"!=typeof o){var s,c=a[o.name];if(null==c){if(o.optional)continue;throw new TypeError('Expected "'+o.name+'" to be defined')}if(m(c)){if(!o.repeat)throw new TypeError('Expected "'+o.name+'" to not repeat, but received "'+c+'"');if(0===c.length){if(o.optional)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var u=0;u<c.length;u++){if(s=encodeURIComponent(c[u]),!t[i].test(s))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but received "'+s+'"');r+=(0===u?o.prefix:o.delimiter)+s}}else{if(s=encodeURIComponent(c),!t[i].test(s))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but received "'+s+'"');r+=o.prefix+s}}else r+=o}return r}}function o(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function u(e){return e.sensitive?"":"i"}function l(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 c(e,t)}function d(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(h(e[a],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",u(n)),t)}function f(e,t,n){for(var a=r(e),i=p(a,n),o=0;o<a.length;o++)"string"!=typeof a[o]&&t.push(a[o]);return c(i,t)}function p(e,t){t=t||{};for(var n=t.strict,r=!1!==t.end,a="",i=e[e.length-1],s="string"==typeof i&&/\/$/.test(i),c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)a+=o(l);else{var d=o(l.prefix),f=l.pattern;l.repeat&&(f+="(?:"+d+f+")*"),f=l.optional?d?"(?:"+d+"("+f+"))?":"("+f+")?":d+"("+f+")",a+=f}}return n||(a=(s?a.slice(0,-2):a)+"(?:\\/(?=$))?"),a+=r?"$":n&&s?"":"(?=\\/|$)",new RegExp("^"+a,u(t))}function h(e,t,n){return t=t||[],m(t)?n||(n={}):(n=t,t=[]),e instanceof RegExp?l(e,t,n):m(e)?d(e,t,n):f(e,t,n)}var m=n(440);e.exports=h,e.exports.parse=r,e.exports.compile=a,e.exports.tokensToFunction=i,e.exports.tokensToRegExp=p;var _=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,n){"use strict";var r=n(951),a=n(957);e.exports=function(e,t){var n=r.parse(e,!0);return t?n.query.s=t:delete n.query.s,n=a(n,"pathname","hash","query"),r.format(n).replace(/\%20/g,"+")}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function a(e,t,n){if(e&&u.isObject(e)&&e instanceof r)return e;var a=new r;return a.parse(e,t,n),a}function i(e){return u.isString(e)&&(e=a(e)),e instanceof r?e.format():r.prototype.format.call(e)}function o(e,t){return a(e,!1,!0).resolve(t)}function s(e,t){return e?a(e,!1,!0).resolveObject(t):t}var c=n(952),u=n(953);t.parse=a,t.resolve=o,t.resolveObject=s,t.format=i,t.Url=r;var l=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(p),m=["'"].concat(h),_=["%","/","?",";","#"].concat(m),M=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=n(954);r.prototype.parse=function(e,t,n){if(!u.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),a=-1!==r&&r<e.indexOf("#")?"?":"#",i=e.split(a),o=/\\/g;i[0]=i[0].replace(o,"/"),e=i.join(a);var s=e;if(s=s.trim(),!n&&1===e.split("#").length){var d=f.exec(s);if(d)return this.path=s,this.href=s,this.pathname=d[1],d[2]?(this.search=d[2],this.query=t?E.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var p=l.exec(s);if(p){p=p[0];var h=p.toLowerCase();this.protocol=h,s=s.substr(p.length)}if(n||p||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===s.substr(0,2);!w||p&&y[p]||(s=s.substr(2),this.slashes=!0)}if(!y[p]&&(w||p&&!A[p])){for(var k=-1,T=0;T<M.length;T++){var L=s.indexOf(M[T]);-1!==L&&(-1===k||L<k)&&(k=L)}var S,C;C=-1===k?s.lastIndexOf("@"):s.lastIndexOf("@",k),-1!==C&&(S=s.slice(0,C),s=s.slice(C+1),this.auth=decodeURIComponent(S)),k=-1;for(var T=0;T<_.length;T++){var L=s.indexOf(_[T]);-1!==L&&(-1===k||L<k)&&(k=L)}-1===k&&(k=s.length),this.host=s.slice(0,k),s=s.slice(k),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var z=this.hostname.split(/\./),T=0,N=z.length;T<N;T++){var D=z[T];if(D&&!D.match(b)){for(var P="",x=0,j=D.length;x<j;x++)D.charCodeAt(x)>127?P+="x":P+=D[x];if(!P.match(b)){var R=z.slice(0,T),Y=z.slice(T+1),I=D.match(g);I&&(R.push(I[1]),Y.unshift(I[2])),Y.length&&(s="/"+Y.join(".")+s),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=c.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!v[h])for(var T=0,N=m.length;T<N;T++){var W=m[T];if(-1!==s.indexOf(W)){var U=encodeURIComponent(W);U===W&&(U=escape(W)),s=s.split(W).join(U)}}var H=s.indexOf("#");-1!==H&&(this.hash=s.substr(H),s=s.slice(0,H));var F=s.indexOf("?");if(-1!==F?(this.search=s.substr(F),this.query=s.substr(F+1),t&&(this.query=E.parse(this.query)),s=s.slice(0,F)):t&&(this.search="",this.query={}),s&&(this.pathname=s),A[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",X=this.search||"";this.path=q+X}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,i="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&u.isObject(this.query)&&Object.keys(this.query).length&&(i=E.stringify(this.query));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||A[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace("#","%23"),t+a+n+o+r},r.prototype.resolve=function(e){return this.resolveObject(a(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(u.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,a=Object.keys(this),i=0;i<a.length;i++){var o=a[i];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var l=s[c];"protocol"!==l&&(n[l]=e[l])}return A[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!A[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||y[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",_=n.search||"";n.path=m+_}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var M=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=b||M||n.host&&e.pathname,v=g,E=n.pathname&&n.pathname.split("/")||[],h=e.pathname&&e.pathname.split("/")||[],w=n.protocol&&!A[n.protocol];if(w&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),g=g&&(""===h[0]||""===E[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=h;else if(h.length)E||(E=[]),E.pop(),E=E.concat(h),n.search=e.search,n.query=e.query;else if(!u.isNullOrUndefined(e.search)){if(w){n.hostname=n.host=E.shift();var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=e.search,n.query=e.query,u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],L=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,S=0,C=E.length;C>=0;C--)T=E[C],"."===T?E.splice(C,1):".."===T?(E.splice(C,1),S++):S&&(E.splice(C,1),S--);if(!g&&!v)for(;S--;S)E.unshift("..");!g||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),L&&"/"!==E.join("/").substr(-1)&&E.push("");var O=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(w){n.hostname=n.host=O?"":E.length?E.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return g=g||n.host&&E.length,g&&!O&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){(function(e,r){var a;!function(i){function o(e){throw new RangeError(N[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function c(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(z,"."),r+s(e.split("."),t).join(".")}function u(e){for(var t,n,r=[],a=0,i=e.length;a<i;)t=e.charCodeAt(a++),t>=55296&&t<=56319&&a<i?(n=e.charCodeAt(a++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),a--)):r.push(t);return r}function l(e){return s(e,function(e){var t="";return e>65535&&(e-=65536,t+=x(e>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function d(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:y}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function p(e,t,n){var r=0;for(e=n?P(e/k):e>>1,e+=P(e/t);e>D*E>>1;r+=y)e=P(e/D);return P(r+(D+1)*e/(e+w))}function h(e){var t,n,r,a,i,s,c,u,f,h,m=[],_=e.length,M=0,b=L,g=T;for(n=e.lastIndexOf(S),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&o("not-basic"),m.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<_;){for(i=M,s=1,c=y;a>=_&&o("invalid-input"),u=d(e.charCodeAt(a++)),(u>=y||u>P((v-M)/s))&&o("overflow"),M+=u*s,f=c<=g?A:c>=g+E?E:c-g,!(u<f);c+=y)h=y-f,s>P(v/h)&&o("overflow"),s*=h;t=m.length+1,g=p(M-i,t,0==i),P(M/t)>v-b&&o("overflow"),b+=P(M/t),M%=t,m.splice(M++,0,b)}return l(m)}function m(e){var t,n,r,a,i,s,c,l,d,h,m,_,M,b,g,w=[];for(e=u(e),_=e.length,t=L,n=0,i=T,s=0;s<_;++s)(m=e[s])<128&&w.push(x(m));for(r=a=w.length,a&&w.push(S);r<_;){for(c=v,s=0;s<_;++s)(m=e[s])>=t&&m<c&&(c=m);for(M=r+1,c-t>P((v-n)/M)&&o("overflow"),n+=(c-t)*M,t=c,s=0;s<_;++s)if(m=e[s],m<t&&++n>v&&o("overflow"),m==t){for(l=n,d=y;h=d<=i?A:d>=i+E?E:d-i,!(l<h);d+=y)g=l-h,b=y-h,w.push(x(f(h+g%b,0))),l=P(g/b);w.push(x(f(l,0))),i=p(n,M,r==a),n=0,++r}++n,++t}return w.join("")}function _(e){return c(e,function(e){return C.test(e)?h(e.slice(4).toLowerCase()):e})}function M(e){return c(e,function(e){return O.test(e)?"xn--"+m(e):e})}var b=("object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType,"object"==typeof r&&r);var g,v=2147483647,y=36,A=1,E=26,w=38,k=700,T=72,L=128,S="-",C=/^xn--/,O=/[^\x20-\x7E]/,z=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=y-A,P=Math.floor,x=String.fromCharCode;g={version:"1.4.1",ucs2:{decode:u,encode:l},decode:h,encode:m,toASCII:M,toUnicode:_},void 0!==(a=function(){return g}.call(t,n,t,e))&&(e.exports=a)}()}).call(t,n(109)(e),n(45))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(955),t.encode=t.stringify=n(956)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var d,f,p,h,m=e[l].replace(s,"%20"),_=m.indexOf(n);_>=0?(d=m.substr(0,_),f=m.substr(_+1)):(d=m,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),r(o,p)?a(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(o(e),function(o){var s=encodeURIComponent(a(o))+n;return i(e[o])?r(e[o],function(e){return s+encodeURIComponent(a(e))}).join(t):s+encodeURIComponent(a(e[o]))}).join(t):s?encodeURIComponent(a(s))+n+encodeURIComponent(a(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){var r=n(958),a=n(505),i=a(function(e,t){return null==e?{}:r(e,t)});e.exports=i},function(e,t,n){function r(e,t){return a(e,t,function(t,n){return i(e,n)})}var a=n(959),i=n(495);e.exports=r},function(e,t,n){function r(e,t,n){for(var r=-1,s=t.length,c={};++r<s;){var u=t[r],l=a(e,u);n(l,u)&&i(c,o(u,e),l)}return c}var a=n(161),i=n(960),o=n(101);e.exports=r},function(e,t,n){function r(e,t,n,r){if(!s(e))return e;t=i(t,e);for(var u=-1,l=t.length,d=l-1,f=e;null!=f&&++u<l;){var p=c(t[u]),h=n;if(u!=d){var m=f[p];h=r?r(m,p,f):void 0,void 0===h&&(h=s(m)?m:o(t[u+1])?[]:{})}a(f,p,h),f=f[p]}return e}var a=n(154),i=n(101),o=n(156),s=n(42),c=n(90);e.exports=r},function(e,t,n){var r=n(126),a=n(962),i=n(484),o=n(965),s=i(function(e){var t=r(e,o);return t.length&&t[0]===e[0]?a(t):[]});e.exports=s},function(e,t,n){function r(e,t,n){for(var r=n?o:i,d=e[0].length,f=e.length,p=f,h=Array(f),m=1/0,_=[];p--;){var M=e[p];p&&t&&(M=s(M,c(t))),m=l(M.length,m),h[p]=!n&&(t||d>=120&&M.length>=120)?new a(p&&M):void 0}M=e[0];var b=-1,g=h[0];e:for(;++b<d&&_.length<m;){var v=M[b],y=t?t(v):v;if(v=n||0!==v?v:0,!(g?u(g,y):r(_,y,n))){for(p=f;--p;){var A=h[p];if(!(A?u(A,y):r(e[p],y,n)))continue e}g&&g.push(y),_.push(v)}}return _}var a=n(493),i=n(963),o=n(964),s=n(126),c=n(158),u=n(494),l=Math.min;e.exports=r},function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&a(e,t,0)>-1}var a=n(226);e.exports=r},function(e,t){function n(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}e.exports=n},function(e,t,n){function r(e){return a(e)?e:[]}var a=n(487);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterSearch=void 0;var r=n(16);t.filterSearch=function(e){return function(t){t({type:r.JETPACK_SEARCH_TERM,term:e})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPluginsData=void 0;var r=n(16),a=n(56),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.fetchPluginsData=function(){return function(e){return e({type:r.JETPACK_PLUGINS_DATA_FETCH}),i.default.fetchPluginsData().then(function(t){return e({type:r.JETPACK_PLUGINS_DATA_FETCH_RECEIVE,pluginsData:t}),t}).catch(function(t){e({type:r.JETPACK_PLUGINS_DATA_FETCH_FAIL,error:t})})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Discussion=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(23),v=n(103),y=n(21),A=n(73),E=n(211),w=r(E),k=n(970),T=n(1105),L=t.Discussion=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode},t=this.props.isModuleFound("comments"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("gravatar-hovercards"),a=this.props.isModuleFound("subscriptions"),o=this.props.isModuleFound("comment-likes");return(this.props.searchTerm||this.props.active)&&(t||a||n||r||o)?M.default.createElement("div",null,M.default.createElement(w.default,null),M.default.createElement(k.Comments,(0,i.default)({},e,{isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride})),a&&M.default.createElement(T.Subscriptions,(0,i.default)({},e,{isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl}))):null}}]),t}(M.default.Component);L.displayName="DiscussionSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},settings:(0,v.getSettings)(e),isDevMode:(0,y.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,y.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,A.isModuleFound)(e,t)},connectUrl:(0,y.getConnectUrl)(e),isLinked:(0,y.isCurrentUserLinked)(e),getModuleOverride:function(t){return(0,g.getModuleOverride)(e,t)}}})(L)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateSettings=t.updateSetting=t.fetchSettings=t.clearUnsavedSettingsFlag=t.setUnsavedSettingsFlag=void 0;var a=n(59),i=r(a),o=n(115),s=n(8),c=n(230),u=r(c),l=n(16),d=n(23),f=n(56),p=r(f);t.setUnsavedSettingsFlag=function(){return{type:l.JETPACK_SETTINGS_SET_UNSAVED_FLAG}},t.clearUnsavedSettingsFlag=function(){return{type:l.JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG}},t.fetchSettings=function(){return function(e){return e({type:l.JETPACK_SETTINGS_FETCH}),p.default.fetchSettings().then(function(t){return e({type:l.JETPACK_SETTINGS_FETCH_RECEIVE,settings:t}),t}).catch(function(t){e({type:l.JETPACK_SETTINGS_FETCH_FAIL,error:t})})}},t.updateSetting=function(e){return function(t){return t({type:l.JETPACK_SETTING_UPDATE,updatedOption:e}),p.default.updateSetting(e).then(function(n){t({type:l.JETPACK_SETTING_UPDATE_SUCCESS,updatedOption:e,success:n})}).catch(function(n){t({type:l.JETPACK_SETTING_UPDATE_FAIL,success:!1,error:n,updatedOption:e})})}},t.updateSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(n){var r={progress:(0,s.translate)("Updating settings…"),success:(0,s.translate)("Updated settings."),error:function(e){return(0,s.translate)("Error updating settings. %(error)s",{args:{error:e.message||e.code||e.name||e}})}},a=function(){return e};"regeneratePbE"===t&&(r={progress:(0,s.translate)("Updating Post by Email address…"),success:(0,s.translate)("Regenerated Post by Email address."),error:function(e){return(0,s.translate)("Error regenerating Post by Email address. %(error)s",{args:{error:e}})}},a=function(e){return{post_by_email_address:e.post_by_email_address}},e={post_by_email_address:"regenerate"});var c=["masterbar","jetpack_testimonial","jetpack_portfolio"];"object"===(void 0===e?"undefined":(0,i.default)(e))&&(0,u.default)(c,function(t){return t in e})&&(r.success=(0,s.translate)("Updated settings. Refreshing page…")),n((0,o.removeNotice)("module-setting-update")),n((0,o.removeNotice)("module-setting-update-success"));var f=["dismiss_dash_app_card","dismiss_empty_stats_card","show_welcome_for_new_plan"];return"object"!==(void 0===e?"undefined":(0,i.default)(e))||(0,u.default)(f,function(t){return t in e})||n((0,o.createNotice)("is-info",r.progress,{id:"module-setting-update"})),n({type:l.JETPACK_SETTINGS_UPDATE,updatedOptions:e}),p.default.updateSettings(e).then(function(t){n({type:l.JETPACK_SETTINGS_UPDATE_SUCCESS,updatedOptions:a(t),success:t}),(0,d.maybeHideNavMenuItem)(e),(0,d.maybeReloadAfterAction)(e),n((0,o.removeNotice)("module-setting-update")),n((0,o.removeNotice)("module-setting-update-success")),"object"!==(void 0===e?"undefined":(0,i.default)(e))||(0,u.default)(f,function(t){return t in e})||n((0,o.createNotice)("is-success",r.success,{id:"module-setting-update-success",duration:2e3}))}).catch(function(t){n({type:l.JETPACK_SETTINGS_UPDATE_FAIL,success:!1,error:t,updatedOptions:e}),n((0,o.removeNotice)("module-setting-update")),n((0,o.createNotice)("is-error",r.error(t),{id:"module-setting-update"}))})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Comments=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(507),v=r(g),y=n(74),A=n(52),E=n(30),w=n(40),k=r(w),T=n(37),L=r(T),S=n(104),C=r(S),O=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.updateFormStateByMarkdown=function(e){return r.props.getSettingCurrentValue("wpcom_publish_posts_with_markdown",e)?r.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown"):r.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown",!0)},r.handleMarkdownCommentsToggle=function(){r.props.updateFormStateModuleOption("markdown","wpcom_publish_comments_with_markdown")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{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 a=this.props,o=a.isUnavailableInDevMode,s=a.getOptionValue,c=this.props.getModule("comments"),u=this.props.getOptionValue("comments"),l=this.props.isUnavailableInDevMode("comments"),d=this.props.getModule("gravatar-hovercards"),f=this.props.getModule("markdown"),p=o("comment-likes"),h=s("comment-likes");return M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Comments"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"])}),e&&M.default.createElement(L.default,{hasChild:!0,disableInDevMode:!0,module:c,support:{text:(0,b.translate)("Replaces the standard WordPress comment form with a new comment system that includes social media login options."),link:"https://jetpack.com/support/comments"}},M.default.createElement(A.ModuleToggle,{slug:"comments",compact:!0,disabled:l,activated:this.props.getOptionValue("comments"),toggling:this.props.isSavingAnyOption("comments"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},c.description)),M.default.createElement(y.FormFieldset,null,M.default.createElement(y.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,b.translate)("Comments headline")),M.default.createElement(v.default,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!u||l||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("A few catchy words to motivate your readers to comment.")),M.default.createElement(y.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,b.translate)("Color scheme")),M.default.createElement(y.FormSelect,(0,i.default)({name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!u||l||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)&&M.default.createElement(L.default,null,t&&M.default.createElement(y.FormFieldset,null,M.default.createElement(A.ModuleToggle,{slug:"gravatar-hovercards",compact:!0,activated:this.props.getOptionValue("gravatar-hovercards"),toggling:this.props.isSavingAnyOption("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},d.description+" ",M.default.createElement("a",{href:d.learn_more_button,target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Learn more")),M.default.createElement("span",{className:"jp-form-toggle-privacy-info"},M.default.createElement("a",{href:d.learn_more_button+"#privacy",target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Privacy Information")))))),n&&M.default.createElement(y.FormFieldset,null,M.default.createElement(C.default,{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},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Enable Markdown use for comments.")+" ",M.default.createElement("a",{href:f.learn_more_button,target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Learn more")),M.default.createElement("span",{className:"jp-form-toggle-privacy-info"},M.default.createElement("a",{href:f.learn_more_button+"#privacy",target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Privacy Information")))))),r&&M.default.createElement(y.FormFieldset,null,M.default.createElement(A.ModuleToggle,{slug:"comment-likes",compact:!0,disabled:p,activated:h,toggling:this.props.isSavingAnyOption("comment-likes"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},"Enable comment likes. ",M.default.createElement("a",{href:"https://jetpack.com/support/comment-likes/",target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Learn more")),M.default.createElement("span",{className:"jp-form-toggle-privacy-info"},M.default.createElement("a",{href:"https://jetpack.com/support/comment-likes/#privacy",target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Privacy Information"))))))))}}]),t}(M.default.Component);t.Comments=(0,E.ModuleSettingsForm)(O)},function(e,t){},function(e,t,n){function r(e,t){return e&&a(e,i(t))}var a=n(229),i=n(491);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(834),y=r(v);n(1089);var A=function(e){function t(){(0,s.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments));return e.state={showPopover:!1},e.togglePopover=function(){e.setState({showPopover:!e.state.showPopover})},e._onPopoverClose=function(){e.setState({showPopover:!1})},e.renderPopover=function(){return M.default.createElement(y.default,{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.onClick=e.onClick.bind(e),e.onLabelClick=e.onLabelClick.bind(e),e}return(0,p.default)(t,e),(0,u.default)(t,[{key:"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=(0,g.default)("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return M.default.createElement("span",null,M.default.createElement("input",{className:t,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),M.default.createElement("label",{className:"form-toggle__label",htmlFor:e},M.default.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"}),M.default.createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)),this.renderPopover())}}]),t}(_.Component);A.propTypes={onChange:m.default.func,onKeyDown:m.default.func,checked:m.default.bool,disabled:m.default.bool,id:m.default.string,className:m.default.string,toggling:m.default.bool,"aria-label":m.default.string,children:m.default.node,disabledReason:m.default.node},A.defaultProps={checked:!1,disabled:!1,onKeyDown:function(){},onChange:function(){},disabledPopoverPosition:"bottom",disabledReason:""},A.idNum=0,t.default=A,e.exports=t.default},function(e,t,n){e.exports={default:n(975),__esModule:!0}},function(e,t,n){n(199),n(110),n(138),n(976),n(980),n(982),n(983),e.exports=n(18).Set},function(e,t,n){"use strict";var r=n(870),a=n(835);e.exports=n(871)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(a(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){
36
  var r=n(71),a=n(221),i=n(100),o=n(160),s=n(978);e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,h){for(var m,_,M=i(t),b=a(M),g=r(s,h,3),v=o(b.length),y=0,A=n?p(t,v):c?p(t,0):void 0;v>y;y++)if((f||y in b)&&(m=b[y],_=g(m,y,M),e))if(n)A[y]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return y;case 2:A.push(m)}else if(l)return!1;return d?-1:u||l?l:A}}},function(e,t,n){var r=n(979);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(50),a=n(486),i=n(36)("species");e.exports=function(e){var t;return a(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!a(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(35);r(r.P+r.R,"Set",{toJSON:n(872)("Set")})},function(e,t,n){var r=n(206);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(873)("Set")},function(e,t,n){n(874)("Set")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return p.set(e,t),function(){p.delete(e)}}function i(e){p.forEach(function(t,n){(0,f.default)(n,e.target)||t.call(n,e)})}function o(e){e||(e=document),l.default.bind(e,"click",i)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(985),c=r(s);t.default=a;var u=n(991),l=r(u),d=n(992),f=r(d),p=new c.default;a.globalClick=i,a.install=o,"undefined"!=typeof document&&o(document),e.exports=t.default},function(e,t,n){e.exports={default:n(986),__esModule:!0}},function(e,t,n){n(199),n(110),n(138),n(987),n(988),n(989),n(990),e.exports=n(18).Map},function(e,t,n){"use strict";var r=n(870),a=n(835);e.exports=n(871)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(a(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(a(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){var r=n(35);r(r.P+r.R,"Map",{toJSON:n(872)("Map")})},function(e,t,n){n(873)("Map")},function(e,t,n){n(874)("Map")},function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",a="addEventListener"!==n?"on":"";t.bind=function(e,t,r,i){return e[n](a+t,r,i||!1),r},t.unbind=function(e,t,n,i){return e[r](a+t,n,i||!1),n}},function(e,t){function n(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}e.exports=n},function(e,t,n){function r(e){var t,n;for(t=[],n=0;n<e.length;n++)t.push(i[e[n]%64]);return t.join("")}function a(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return r(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),a=0;a<e;a++)t[a]=Math.floor(256*Math.random());return r(t)}var i=n(994);try{return r(i.randomBytes(e))}catch(t){return r(i.pseudoRandomBytes(e))}}var i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";e.exports=a},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(235),t.createHash=t.Hash=n(467),t.createHmac=t.Hmac=n(882);var r=n(1011),a=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);t.getHashes=function(){return i};var o=n(885);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(1013);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(1030);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(1035);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(1073);var l=n(1074);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var d=n(1077);t.randomFill=d.randomFill,t.randomFillSync=d.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){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){e.copy(t,n)}var i=n(32).Buffer,o=n(997);e.exports=function(){function e(){r(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 i.alloc(0);if(1===this.length)return this.head.data;for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var a=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,a,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,a,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(a,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(999),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(45))},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(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 r={callback:e,args:t};return u[c]=r,s(c),c++}function a(e){delete u[e]}function i(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function o(e){if(l)setTimeout(o,0,e);else{var t=u[e];if(t){l=!0;try{i(t)}finally{a(e),l=!1}}}}if(!e.setImmediate){var s,c=1,u={},l=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?function(){s=function(e){t.nextTick(function(){o(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&o(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},s=function(t){e.port2.postMessage(t)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var e=d.documentElement;s=function(t){var n=d.createElement("script");n.onreadystatechange=function(){o(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){s=function(e){setTimeout(o,0,e)}}(),f.setImmediate=r,f.clearImmediate=a}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(45),n(63))},function(e,t,n){(function(t){function n(e,t){function n(){if(!a){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),a=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var a=!1;return n}function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(t,n(45))},function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);a.call(this,e)}e.exports=r;var a=n(879),i=n(468);i.inherits=n(20),i.inherits(r,a),r.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(839)},function(e,t,n){e.exports=n(212)},function(e,t,n){e.exports=n(838).Transform},function(e,t,n){e.exports=n(838).PassThrough},function(e,t,n){function r(){this.init(),this._w=d,c.call(this,64,56)}function a(e){return e<<5|e>>>27}function i(e){return e<<30|e>>>2}function o(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var s=n(20),c=n(236),u=n(32).Buffer,l=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);s(r,c),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,s=0|this._c,c=0|this._d,u=0|this._e,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var f=0;f<80;++f){var p=~~(f/20),h=a(n)+o(p,r,s,c)+u+t[f]+l[p]|0;u=c,c=s,s=i(r),r=n,n=h}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=c+this._d|0,this._e=u+this._e|0},r.prototype._hash=function(){var e=u.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=r},function(e,t,n){function r(){this.init(),this._w=f,u.call(this,64,56)}function a(e){return e<<1|e>>>31}function i(e){return e<<5|e>>>27}function o(e){return e<<30|e>>>2}function s(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var c=n(20),u=n(236),l=n(32).Buffer,d=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);c(r,u),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,c=0|this._c,u=0|this._d,l=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=a(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var p=0;p<80;++p){var h=~~(p/20),m=i(n)+s(h,r,c,u)+l+t[p]+d[h]|0;l=u,u=c,c=o(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=c+this._c|0,this._d=u+this._d|0,this._e=l+this._e|0},r.prototype._hash=function(){var e=l.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=r},function(e,t,n){function r(){this.init(),this._w=c,o.call(this,64,56)}var a=n(20),i=n(880),o=n(236),s=n(32).Buffer,c=new Array(64);a(r,i),r.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},r.prototype._hash=function(){var e=s.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=r},function(e,t,n){function r(){this.init(),this._w=c,o.call(this,128,112)}var a=n(20),i=n(881),o=n(236),s=n(32).Buffer,c=new Array(160);a(r,i),r.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},r.prototype._hash=function(){function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}var t=s.allocUnsafe(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},e.exports=r},function(e,t,n){"use strict";function r(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>c?t=e(t):t.length<c&&(t=i.concat([t,s],c));for(var n=this._ipad=i.allocUnsafe(c),r=this._opad=i.allocUnsafe(c),a=0;a<c;a++)n[a]=54^t[a],r[a]=92^t[a];this._hash=[n]}var a=n(20),i=n(32).Buffer,o=n(162),s=i.alloc(128),c=64;a(r,o),r.prototype._update=function(e){this._hash.push(e)},r.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=r},function(e,t,n){e.exports=n(884)},function(e,t,n){(function(t,r){function a(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];s=s||d.alloc(8);var n=i(s,s,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=n,n}function i(e,t,n,r,a){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:a}},e,r<<3)}).then(function(e){return d.from(e)})}function o(e,t){e.then(function(e){r.nextTick(function(){t(null,e)})},function(e){r.nextTick(function(){t(e)})})}var s,c=n(886),u=n(887),l=n(888),d=n(32).Buffer,f=t.crypto&&t.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"},h=[];e.exports=function(e,n,s,f,h,m){"function"==typeof h&&(m=h,h=void 0),h=h||"sha1";var _=p[h.toLowerCase()];if(!_||"function"!=typeof t.Promise)return r.nextTick(function(){var t;try{t=l(e,n,s,f,h)}catch(e){return m(e)}m(null,t)});if(c(e,n,s,f),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");d.isBuffer(e)||(e=d.from(e,u)),d.isBuffer(n)||(n=d.from(n,u)),o(a(_).then(function(t){return t?i(e,n,s,f,_):l(e,n,s,f,h)}),m)}}).call(t,n(45),n(63))},function(e,t,n){function r(e,t){e=e.toLowerCase();var n,r;if(l[e])n=l[e].key,r=l[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var a=f(t,!1,n,r);return i(e,a.key,a.iv)}function a(e,t){e=e.toLowerCase();var n,r;if(l[e])n=l[e].key,r=l[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var a=f(t,!1,n,r);return o(e,a.key,a.iv)}function i(e,t,n){if(e=e.toLowerCase(),l[e])return u.createCipheriv(e,t,n);if(d[e])return new c({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function o(e,t,n){if(e=e.toLowerCase(),l[e])return u.createDecipheriv(e,t,n);if(d[e])return new c({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function s(){return Object.keys(d).concat(u.getCiphers())}var c=n(1014),u=n(844),l=n(845),d=n(1029),f=n(510);t.createCipher=t.Cipher=r,t.createCipheriv=t.Cipheriv=i,t.createDecipher=t.Decipher=a,t.createDecipheriv=t.Decipheriv=o,t.listCiphers=t.getCiphers=s},function(e,t,n){(function(t){function r(e){a.call(this);var n,r=e.mode.toLowerCase(),i=s[r];n=e.decrypt?"decrypt":"encrypt";var o=e.key;"des-ede"!==r&&"des-ede-cbc"!==r||(o=t.concat([o,o.slice(0,8)]));var c=e.iv;this._des=i.create({key:o,iv:c,type:n})}var a=n(162),i=n(843),o=n(20),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};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=r,o(r,a),r.prototype._update=function(e){return new t(this._des.update(e))},r.prototype._final=function(){return new t(this._des.final())}}).call(t,n(39).Buffer)},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 a=0,i=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>>s+o&1}for(var o=6;o>=0;o-=2){for(var s=1;s<=25;s+=8)i<<=1,i|=t>>>s+o&1;for(var s=1;s<=25;s+=8)i<<=1,i|=e>>>s+o&1}n[r+0]=a>>>0,n[r+1]=i>>>0},t.rip=function(e,t,n,r){for(var a=0,i=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;for(var o=4;o<8;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;n[r+0]=a>>>0,n[r+1]=i>>>0},t.pc1=function(e,t,n,r){for(var a=0,i=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var o=1;o<=3;o++){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1;n[r+0]=a>>>0,n[r+1]=i>>>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,a){for(var i=0,o=0,s=r.length>>>1,c=0;c<s;c++)i<<=1,i|=e>>>r[c]&1;for(var c=s;c<r.length;c++)o<<=1,o|=t>>>r[c]&1;n[a+0]=i>>>0,n[a+1]=o>>>0},t.expand=function(e,t,n){var r=0,a=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(var i=11;i>=3;i-=4)a|=e>>>i&63,a<<=6;a|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=a>>>0};var a=[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++){var i=e>>>18-6*r&63,o=a[64*r+i];n<<=4,n|=o}for(var r=0;r<4;r++){var i=t>>>18-6*r&63,o=a[256+64*r+i];n<<=4,n|=o}return n>>>0};var i=[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<i.length;n++)t<<=1,t|=e>>>i[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 a=[],i=0;i<t;i+=n)a.push(r.slice(i,i+n));return a.join(" ")}},function(e,t,n){"use strict";function r(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}var a=n(105);e.exports=r,r.prototype._init=function(){},r.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},r.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},r.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(a,n)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,a,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return a},r.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(a,n);return t+=this._buffer(e,t),a},r.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},r.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},r.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},r.prototype._unpad=function(e){return e},r.prototype._finalDecrypt=function(){a.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){"use strict";function r(){this.tmp=new Array(2),this.keys=null}function a(e){u.call(this,e);var t=new r;this._desState=t,this.deriveKeys(t,e.key)}var i=n(105),o=n(20),s=n(843),c=s.utils,u=s.Cipher;o(a,u),e.exports=a,a.create=function(e){return new a(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];a.prototype.deriveKeys=function(e,t){e.keys=new Array(32),i.equal(t.length,this.blockSize,"Invalid key length");var n=c.readUInt32BE(t,0),r=c.readUInt32BE(t,4);c.pc1(n,r,e.tmp,0),n=e.tmp[0],r=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var o=l[a>>>1];n=c.r28shl(n,o),r=c.r28shl(r,o),c.pc2(n,r,e.keys,a)}},a.prototype._update=function(e,t,n,r){var a=this._desState,i=c.readUInt32BE(e,t),o=c.readUInt32BE(e,t+4);c.ip(i,o,a.tmp,0),i=a.tmp[0],o=a.tmp[1],"encrypt"===this.type?this._encrypt(a,i,o,a.tmp,0):this._decrypt(a,i,o,a.tmp,0),i=a.tmp[0],o=a.tmp[1],c.writeUInt32BE(n,i,r),c.writeUInt32BE(n,o,r+4)},a.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},a.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)i.equal(e[n],t);return e.slice(0,e.length-t)},a.prototype._encrypt=function(e,t,n,r,a){for(var i=t,o=n,s=0;s<e.keys.length;s+=2){var u=e.keys[s],l=e.keys[s+1];c.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=c.substitute(u,l),f=c.permute(d),p=o;o=(i^f)>>>0,i=p}c.rip(o,i,r,a)},a.prototype._decrypt=function(e,t,n,r,a){for(var i=n,o=t,s=e.keys.length-2;s>=0;s-=2){var u=e.keys[s],l=e.keys[s+1];c.expand(i,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=c.substitute(u,l),f=c.permute(d),p=i;i=(o^f)>>>0,o=p}c.rip(i,o,r,a)}},function(e,t,n){"use strict";function r(e){i.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]}function a(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var n=Object.keys(s),r=0;r<n.length;r++){var a=n[r];t.prototype[a]=s[a]}return t.create=function(e){return new t(e)},t}var i=n(105),o=n(20),s={};t.instantiate=a,s._cbcInit=function(){var e=new r(this.options.iv);this._cbcState=e},s._update=function(e,t,n,r){var a=this._cbcState,i=this.constructor.super_.prototype,o=a.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];i._update.call(this,o,0,n,r);for(var s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{i._update.call(this,e,t,n,r);for(var s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(var s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},function(e,t,n){"use strict";function r(e,t){i.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),r=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:r}),u.create({type:"encrypt",key:a})]:[u.create({type:"decrypt",key:a}),u.create({type:"encrypt",key:r}),u.create({type:"decrypt",key:n})]}function a(e){c.call(this,e);var t=new r(this.type,this.options.key);this._edeState=t}var i=n(105),o=n(20),s=n(843),c=s.Cipher,u=s.DES;o(a,c),e.exports=a,a.create=function(e){return new a(e)},a.prototype._update=function(e,t,n,r){var a=this._edeState;a.ciphers[0]._update(e,t,n,r),a.ciphers[1]._update(n,r,n,r),a.ciphers[2]._update(n,r,n,r)},a.prototype._pad=u.prototype._pad,a.prototype._unpad=u.prototype._unpad},function(e,t,n){function r(e,t,n){d.call(this),this._cache=new a,this._cipher=new f.AES(t),this._prev=u.from(n),this._mode=e,this._autopadding=!0}function a(){this.cache=u.allocUnsafe(0)}function i(e,t,n){var a=s[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=u.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=u.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new l(a.module,t,n):"auth"===a.type?new c(a.module,t,n):new r(a.module,t,n)}function o(e,t){var n=s[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=p(t,!1,n.key,n.iv);return i(e,r.key,r.iv)}var s=n(845),c=n(892),u=n(32).Buffer,l=n(893),d=n(162),f=n(509),p=n(510);n(20)(r,d),r.prototype._update=function(e){this._cache.add(e);for(var t,n,r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return u.concat(r)};var h=u.alloc(16,16);r.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(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},a.prototype.add=function(e){this.cache=u.concat([this.cache,e])},a.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},a.prototype.flush=function(){for(var e=16-this.cache.length,t=u.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return u.concat([this.cache,t])},t.createCipheriv=i,t.createCipher=o},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(469);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 a=e._cipher.decryptBlock(t);return r(a,n)}},function(e,t,n){function r(e,t,n){var r=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(r),e._prev=a.concat([e._prev,n?t:o]),o}var a=n(32).Buffer,i=n(469);t.encrypt=function(e,t,n){for(var i,o=a.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=a.allocUnsafe(0)),!(e._cache.length<=t.length)){o=a.concat([o,r(e,t,n)]);break}i=e._cache.length,o=a.concat([o,r(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},function(e,t,n){function r(e,t,n){var r=e._cipher.encryptBlock(e._prev),i=r[0]^t;return e._prev=a.concat([e._prev.slice(1),a.from([n?t:i])]),i}var a=n(32).Buffer;t.encrypt=function(e,t,n){for(var i=t.length,o=a.allocUnsafe(i),s=-1;++s<i;)o[s]=r(e,t[s],n);return o}},function(e,t,n){function r(e,t,n){for(var r,i,o,s=-1,c=0;++s<8;)r=e._cipher.encryptBlock(e._prev),i=t&1<<7-s?128:0,o=r[0]^i,c+=(128&o)>>s%8,e._prev=a(e._prev,n?i:o);return c}function a(e,t){var n=e.length,r=-1,a=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++r<n;)a[r]=e[r]<<1|e[r+1]>>7;return a}var i=n(32).Buffer;t.encrypt=function(e,t,n){for(var a=t.length,o=i.allocUnsafe(a),s=-1;++s<a;)o[s]=r(e,t[s],n);return o}},function(e,t,n){(function(e){function r(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}var a=n(469);t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,r(t)]);var i=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),a(n,i)}}).call(t,n(39).Buffer)},function(e,t,n){function r(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=o.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 i(e){this.h=e,this.state=o.alloc(16,0),this.cache=o.allocUnsafe(0)}var o=n(32).Buffer,s=o.alloc(16,0);i.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},i.prototype._multiply=function(){for(var e,t,n,i=r(this.h),o=[0,0,0,0],s=-1;++s<128;){for(t=0!=(this.state[~~(s/8)]&1<<7-s%8),t&&(o[0]^=i[0],o[1]^=i[1],o[2]^=i[2],o[3]^=i[3]),n=0!=(1&i[3]),e=3;e>0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=a(o)},i.prototype.update=function(e){this.cache=o.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},i.prototype.final=function(e,t){return this.cache.length&&this.ghash(o.concat([this.cache,s],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=i},function(e,t,n){function r(e,t,n){f.call(this),this._cache=new a,this._last=void 0,this._cipher=new p.AES(t),this._prev=u.from(n),this._mode=e,this._autopadding=!0}function a(){this.cache=u.allocUnsafe(0)}function i(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function o(e,t,n){var a=l[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=u.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=u.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new d(a.module,t,n,!0):"auth"===a.type?new c(a.module,t,n,!0):new r(a.module,t,n)}function s(e,t){var n=l[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=h(t,!1,n.key,n.iv);return o(e,r.key,r.iv)}var c=n(892),u=n(32).Buffer,l=n(845),d=n(893),f=n(162),p=n(509),h=n(510);n(20)(r,f),r.prototype._update=function(e){this._cache.add(e);for(var t,n,r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return u.concat(r)},r.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return i(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},a.prototype.add=function(e){this.cache=u.concat([this.cache,e])},a.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},a.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=s,t.createDecipheriv=o},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){function r(t){var n=new e(o[t].prime,"hex"),r=new e(o[t].gen,"hex");return new s(n,r)}function a(t,n,r,o){return e.isBuffer(n)||void 0===c[n]?a(t,"binary",n,r):(n=n||"binary",o=o||"binary",r=r||new e([2]),e.isBuffer(r)||(r=new e(r,o)),"number"==typeof t?new s(i(t,r),r,!0):(e.isBuffer(t)||(t=new e(t,n)),new s(t,r,!0)))}
37
  var i=n(894),o=n(1033),s=n(1034),c={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=r,t.createDiffieHellman=t.DiffieHellman=a}).call(t,n(39).Buffer)},function(e,t){},function(e,t){},function(e,t){e.exports={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){function r(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new c(e),this}function a(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new c(e),this}function i(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in b)return b[r];var a=0;if(e.isEven()||!_.simpleSieve||!_.fermatTest(e)||!l.test(e))return a+=1,a+="02"===n||"05"===n?8:4,b[r]=a,a;l.test(e.shrn(1))||(a+=2);var i;switch(n){case"02":e.mod(d).cmp(f)&&(a+=8);break;case"05":i=e.mod(p),i.cmp(h)&&i.cmp(m)&&(a+=8);break;default:a+=4}return b[r]=a,a}function o(e,t,n){this.setGenerator(t),this.__prime=new c(e),this._prime=c.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=r,this.setPrivateKey=a):this._primeCode=8}function s(e,n){var r=new t(e.toArray());return n?r.toString(n):r}var c=n(57),u=n(895),l=new u,d=new c(24),f=new c(11),p=new c(10),h=new c(3),m=new c(7),_=n(894),M=n(235);e.exports=o;var b={};Object.defineProperty(o.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=i(this.__prime,this.__gen)),this._primeCode}}),o.prototype.generateKeys=function(){return this._priv||(this._priv=new c(M(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},o.prototype.computeSecret=function(e){e=new c(e),e=e.toRed(this._prime);var n=e.redPow(this._priv).fromRed(),r=new t(n.toArray()),a=this.getPrime();if(r.length<a.length){var i=new t(a.length-r.length);i.fill(0),r=t.concat([i,r])}return r},o.prototype.getPublicKey=function(e){return s(this._pub,e)},o.prototype.getPrivateKey=function(e){return s(this._priv,e)},o.prototype.getPrime=function(e){return s(this.__prime,e)},o.prototype.getGenerator=function(e){return s(this._gen,e)},o.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new c(e),this}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e){c.Writable.call(this);var t=f[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=s(t.hash),this._tag=t.id,this._signType=t.sign}function a(e){c.Writable.call(this);var t=f[e];if(!t)throw new Error("Unknown message digest");this._hash=s(t.hash),this._tag=t.id,this._signType=t.sign}function i(e){return new r(e)}function o(e){return new a(e)}var s=n(467),c=n(837),u=n(20),l=n(1036),d=n(1072),f=n(884);Object.keys(f).forEach(function(e){f[e].id=new t(f[e].id,"hex"),f[e.toLowerCase()]=f[e]}),u(r,c.Writable),r.prototype._write=function(e,t,n){this._hash.update(e),n()},r.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},r.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=l(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},u(a,c.Writable),a.prototype._write=function(e,t,n){this._hash.update(e),n()},a.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},a.prototype.verify=function(e,n,r){"string"==typeof n&&(n=new t(n,r)),this.end();var a=this._hash.digest();return d(n,a,e,this._signType,this._tag)},e.exports={Sign:i,Verify:o,createSign:i,createVerify:o}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n,r,o,s){var c=_(n);if(c.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return a(e,c)}if("dsa"===c.type){if("dsa"!==o)throw new Error("wrong private key type");return i(e,c,r)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");e=t.concat([s,e]);for(var u=c.modulus.byteLength(),l=[0,1];e.length+l.length+1<u;)l.push(255);l.push(0);for(var d=-1;++d<e.length;)l.push(e[d]);return p(l,c)}function a(e,n){var r=M[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var a=new h(r),i=a.keyFromPrivate(n.privateKey),o=i.sign(e);return new t(o.toDER())}function i(e,t,n){for(var r,a=t.params.priv_key,i=t.params.p,u=t.params.q,f=t.params.g,p=new m(0),h=c(e,u).mod(u),_=!1,M=s(a,u,e,n);!1===_;)r=l(u,M,n),p=d(f,r,i,u),_=r.invm(u).imul(h.add(a.mul(p))).mod(u),0===_.cmpn(0)&&(_=!1,p=new m(0));return o(p,_)}function o(e,n){e=e.toArray(),n=n.toArray(),128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n));var r=e.length+n.length+4,a=[48,r,2,e.length];return a=a.concat(e,[2,n.length],n),new t(a)}function s(e,n,r,a){if(e=new t(e.toArray()),e.length<n.byteLength()){var i=new t(n.byteLength()-e.length);i.fill(0),e=t.concat([i,e])}var o=r.length,s=u(r,n),c=new t(o);c.fill(1);var l=new t(o);return l.fill(0),l=f(a,l).update(c).update(new t([0])).update(e).update(s).digest(),c=f(a,l).update(c).digest(),l=f(a,l).update(c).update(new t([1])).update(e).update(s).digest(),c=f(a,l).update(c).digest(),{k:l,v:c}}function c(e,t){var n=new m(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function u(e,n){e=c(e,n),e=e.mod(n);var r=new t(e.toArray());if(r.length<n.byteLength()){var a=new t(n.byteLength()-r.length);a.fill(0),r=t.concat([a,r])}return r}function l(e,n,r){var a,i;do{for(a=new t(0);8*a.length<e.bitLength();)n.v=f(r,n.k).update(n.v).digest(),a=t.concat([a,n.v]);i=c(a,e),n.k=f(r,n.k).update(n.v).update(new t([0])).digest(),n.v=f(r,n.k).update(n.v).digest()}while(-1!==i.cmp(e));return i}function d(e,t,n,r){return e.toRed(m.mont(n)).redPow(t).fromRed().mod(r)}var f=n(882),p=n(846),h=n(84).ec,m=n(57),_=n(512),M=n(905);e.exports=r,e.exports.getKey=s,e.exports.makeKey=l}).call(t,n(39).Buffer)},function(e,t){e.exports={name:"elliptic",version:"6.4.0",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",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:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r=1<<t+1,a=e.clone();a.cmpn(1)>=0;){var i;if(a.isOdd()){var o=a.andln(r-1);i=o>(r>>1)-1?(r>>1)-o:o,a.isubn(i)}else i=0;n.push(i);for(var s=0!==a.cmpn(0)&&0===a.andln(r-1)?t+1:1,c=1;c<s;c++)n.push(0);a.iushrn(s)}return n}function a(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,a=0;e.cmpn(-r)>0||t.cmpn(-a)>0;){var i=e.andln(3)+r&3,o=t.andln(3)+a&3;3===i&&(i=-1),3===o&&(o=-1);var s;if(0==(1&i))s=0;else{var c=e.andln(7)+r&7;s=3!==c&&5!==c||2!==o?i:-i}n[0].push(s);var u;if(0==(1&o))u=0;else{var c=t.andln(7)+a&7;u=3!==c&&5!==c||2!==i?o:-o}n[1].push(u),2*r===s+1&&(r=1-r),2*a===u+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n}function i(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}}function o(e){return"string"==typeof e?c.toArray(e,"hex"):e}function s(e){return new u(e,"hex","le")}var c=t,u=n(57),l=n(105),d=n(897);c.assert=l,c.toArray=d.toArray,c.zero2=d.zero2,c.toHex=d.toHex,c.encode=d.encode,c.getNAF=r,c.getJSF=a,c.cachedProperty=i,c.parseBytes=o,c.intFromLE=s},function(e,t,n){"use strict";function r(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(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);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 a(e,t){this.curve=e,this.type=t,this.precomputed=null}var i=n(57),o=n(84),s=o.utils,c=s.getNAF,u=s.getJSF,l=s.assert;e.exports=r,r.prototype.point=function(){throw new Error("Not implemented")},r.prototype.validate=function(){throw new Error("Not implemented")},r.prototype._fixedNafMul=function(e,t){l(e.precomputed);var n=e._getDoubles(),r=c(t,1),a=(1<<n.step+1)-(n.step%2==0?2:1);a/=3;for(var i=[],o=0;o<r.length;o+=n.step){for(var s=0,t=o+n.step-1;t>=o;t--)s=(s<<1)+r[t];i.push(s)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=a;f>0;f--){for(var o=0;o<i.length;o++){var s=i[o];s===f?d=d.mixedAdd(n.points[o]):s===-f&&(d=d.mixedAdd(n.points[o].neg()))}u=u.add(d)}return u.toP()},r.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var a=r.points,i=c(t,n),o=this.jpoint(null,null,null),s=i.length-1;s>=0;s--){for(var t=0;s>=0&&0===i[s];s--)t++;if(s>=0&&t++,o=o.dblp(t),s<0)break;var u=i[s];l(0!==u),o="affine"===e.type?u>0?o.mixedAdd(a[u-1>>1]):o.mixedAdd(a[-u-1>>1].neg()):u>0?o.add(a[u-1>>1]):o.add(a[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},r.prototype._wnafMulAdd=function(e,t,n,r,a){for(var i=this._wnafT1,o=this._wnafT2,s=this._wnafT3,l=0,d=0;d<r;d++){var f=t[d],p=f._getNAFPoints(e);i[d]=p.wnd,o[d]=p.points}for(var d=r-1;d>=1;d-=2){var h=d-1,m=d;if(1===i[h]&&1===i[m]){var _=[t[h],null,null,t[m]];0===t[h].y.cmp(t[m].y)?(_[1]=t[h].add(t[m]),_[2]=t[h].toJ().mixedAdd(t[m].neg())):0===t[h].y.cmp(t[m].y.redNeg())?(_[1]=t[h].toJ().mixedAdd(t[m]),_[2]=t[h].add(t[m].neg())):(_[1]=t[h].toJ().mixedAdd(t[m]),_[2]=t[h].toJ().mixedAdd(t[m].neg()));var M=[-3,-1,-5,-7,0,7,5,1,3],b=u(n[h],n[m]);l=Math.max(b[0].length,l),s[h]=new Array(l),s[m]=new Array(l);for(var g=0;g<l;g++){var v=0|b[0][g],y=0|b[1][g];s[h][g]=M[3*(v+1)+(y+1)],s[m][g]=0,o[h]=_}}else s[h]=c(n[h],i[h]),s[m]=c(n[m],i[m]),l=Math.max(s[h].length,l),l=Math.max(s[m].length,l)}for(var A=this.jpoint(null,null,null),E=this._wnafT4,d=l;d>=0;d--){for(var w=0;d>=0;){for(var k=!0,g=0;g<r;g++)E[g]=0|s[g][d],0!==E[g]&&(k=!1);if(!k)break;w++,d--}if(d>=0&&w++,A=A.dblp(w),d<0)break;for(var g=0;g<r;g++){var f,T=E[g];0!==T&&(T>0?f=o[g][T-1>>1]:T<0&&(f=o[g][-T-1>>1].neg()),A="affine"===f.type?A.mixedAdd(f):A.add(f))}}for(var d=0;d<r;d++)o[d]=null;return a?A:A.toP()},r.BasePoint=a,a.prototype.eq=function(){throw new Error("Not implemented")},a.prototype.validate=function(){return this.curve.validate(this)},r.prototype.decodePoint=function(e,t){e=s.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n){6===e[0]?l(e[e.length-1]%2==0):7===e[0]&&l(e[e.length-1]%2==1);return 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")},a.prototype.encodeCompressed=function(e){return this.encode(e,!0)},a.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))},a.prototype.encode=function(e,t){return s.encode(this._encode(t),e)},a.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},a.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)},a.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a<t;a+=e){for(var i=0;i<e;i++)r=r.dbl();n.push(r)}return{step:e,points:n}},a.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(),a=1;a<n;a++)t[a]=t[a-1].add(r);return{wnd:e,points:t}},a.prototype._getBeta=function(){return null},a.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){"use strict";function r(e){l.call(this,"short",e),this.a=new c(e.a,16).toRed(this.red),this.b=new c(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 a(e,t,n,r){l.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(t,16),this.y=new c(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 i(e,t,n,r){l.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(t,16),this.y=new c(n,16),this.z=new c(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}var o=n(511),s=n(84),c=n(57),u=n(20),l=o.base,d=s.utils.assert;u(r,l),e.exports=r,r.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new c(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=r[0].cmp(r[1])<0?r[0]:r[1],t=t.toRed(this.red)}if(e.lambda)n=new c(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],d(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}var i;return i=e.basis?e.basis.map(function(e){return{a:new c(e.a,16),b:new c(e.b,16)}}):this._getEndoBasis(n),{beta:t,lambda:n,basis:i}}},r.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:c.mont(e),n=new c(2).toRed(t).redInvm(),r=n.redNeg(),a=new c(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},r.prototype._getEndoBasis=function(e){for(var t,n,r,a,i,o,s,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,p=this.n.clone(),h=new c(1),m=new c(0),_=new c(0),M=new c(1),b=0;0!==f.cmpn(0);){var g=p.div(f);u=p.sub(g.mul(f)),l=_.sub(g.mul(h));var v=M.sub(g.mul(m));if(!r&&u.cmp(d)<0)t=s.neg(),n=h,r=u.neg(),a=l;else if(r&&2==++b)break;s=u,p=f,f=u,_=h,h=l,M=m,m=v}i=u.neg(),o=l;var y=r.sqr().add(a.sqr());return i.sqr().add(o.sqr()).cmp(y)>=0&&(i=t,o=n),r.negative&&(r=r.neg(),a=a.neg()),i.negative&&(i=i.neg(),o=o.neg()),[{a:r,b:a},{a:i,b:o}]},r.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),s=i.mul(r.a),c=a.mul(n.b),u=i.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},r.prototype.pointFromX=function(e,t){e=new c(e,16),e.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)},r.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},r.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i<e.length;i++){var o=this._endoSplit(t[i]),s=e[i],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*i]=s,r[2*i+1]=c,a[2*i]=o.k1,a[2*i+1]=o.k2}for(var u=this._wnafMulAdd(1,r,a,2*i,n),l=0;l<2*i;l++)r[l]=null,a[l]=null;return u},u(a,l.BasePoint),r.prototype.point=function(e,t,n){return new a(this,e,t,n)},r.prototype.pointFromJSON=function(e,t){return a.fromJSON(this,e,t)},a.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}},a.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]},a.fromJSON=function(e,t,n){function r(t){return e.point(t[0],t[1],n)}"string"==typeof t&&(t=JSON.parse(t));var a=e.point(t[0],t[1],n);if(!t[2])return a;var i=t[2];return a.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[a].concat(i.doubles.points.map(r))},naf:i.naf&&{wnd:i.naf.wnd,points:[a].concat(i.naf.points.map(r))}},a},a.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)+">"},a.prototype.isInfinity=function(){return this.inf},a.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)},a.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(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},a.prototype.getX=function(){return this.x.fromRed()},a.prototype.getY=function(){return this.y.fromRed()},a.prototype.mul=function(e){return e=new c(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},a.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},a.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},a.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))},a.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},a.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(i,l.BasePoint),r.prototype.jpoint=function(e,t,n){return new i(this,e,t,n)},i.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)},i.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},i.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),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=r.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),p=c.redMul(d.redISub(f)).redISub(i.redMul(l)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,p,h)},i.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),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),l=n.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(a.redMul(u)),p=this.z.redMul(o);return this.curve.jpoint(d,f,p)},i.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}for(var r=this.curve.a,a=this.curve.tinv,i=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),u=o.redAdd(o),n=0;n<e;n++){var l=i.redSqr(),d=u.redSqr(),f=d.redSqr(),p=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(c)),h=i.redMul(d),m=p.redSqr().redISub(h.redAdd(h)),_=h.redISub(m),M=p.redMul(_);M=M.redIAdd(M).redISub(f);var b=u.redMul(s);n+1<e&&(c=c.redMul(f)),i=m,s=b,u=M}return this.curve.jpoint(i,u.redMul(a),s)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},i.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),a=this.y.redSqr(),i=a.redSqr(),o=this.x.redAdd(a).redSqr().redISub(r).redISub(i);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),u=i.redIAdd(i);u=u.redIAdd(u),u=u.redIAdd(u),e=c,t=s.redMul(o.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),p=this.x.redAdd(d).redSqr().redISub(l).redISub(f);p=p.redIAdd(p);var h=l.redAdd(l).redIAdd(l),m=h.redSqr(),_=f.redIAdd(f);_=_.redIAdd(_),_=_.redIAdd(_),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(_),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(e,t,n)},i.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),a=this.y.redSqr(),i=a.redSqr(),o=this.x.redAdd(a).redSqr().redISub(r).redISub(i);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 u=i.redIAdd(i);u=u.redIAdd(u),u=u.redIAdd(u),t=s.redMul(o.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),p=this.x.redSub(l).redMul(this.x.redAdd(l));p=p.redAdd(p).redIAdd(p);var h=f.redIAdd(f);h=h.redIAdd(h);var m=h.redAdd(h);e=p.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(l);var _=d.redSqr();_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_),t=p.redMul(h.redISub(e)).redISub(_)}return this.curve.jpoint(e,t,n)},i.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,a=r.redSqr().redSqr(),i=t.redSqr(),o=n.redSqr(),s=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(a)),c=t.redAdd(t);c=c.redIAdd(c);var u=c.redMul(o),l=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(l),f=o.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var p=s.redMul(d).redISub(f),h=n.redAdd(n).redMul(r);return this.curve.jpoint(l,p,h)},i.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(),a=e.redAdd(e).redIAdd(e),i=a.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r);o=o.redIAdd(o),o=o.redAdd(o).redIAdd(o),o=o.redISub(i);var s=o.redSqr(),c=r.redIAdd(r);c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var u=a.redIAdd(o).redSqr().redISub(i).redISub(s).redISub(c),l=t.redMul(u);l=l.redIAdd(l),l=l.redIAdd(l);var d=this.x.redMul(s).redISub(l);d=d.redIAdd(d),d=d.redIAdd(d);var f=this.y.redMul(u.redMul(c.redISub(u)).redISub(o.redMul(s)));f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var p=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,f,p)},i.prototype.mul=function(e,t){return e=new c(e,t),this.curve._wnafMul(this,e)},i.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),a=n.redMul(e.z);return 0===this.y.redMul(a).redISub(e.y.redMul(r)).cmpn(0)},i.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(),a=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}return!1},
31
  selected:"/dashboard"===this.props.route.path||"/"===this.props.route.path},(0,k.translate)("At a Glance",{context:"Navigation item."})),M.default.createElement(w.default,{path:"#/plans",onClick:this.trackPlansClick,selected:"/plans"===this.props.route.path},(0,k.translate)("Plans",{context:"Navigation item."}))):M.default.createElement(A.default,{selectedText:this.props.route.name},M.default.createElement(w.default,{path:"#/dashboard",selected:"/dashboard"===this.props.route.path||"/"===this.props.route.path},(0,k.translate)("At a Glance",{context:"Navigation item."}))),M.default.createElement("div",{id:"jp-navigation",className:"dops-navigation"},M.default.createElement(v.default,{selectedText:this.props.route.name},e))}}]),t}(M.default.Component);O.propTypes={route:m.default.object.isRequired},t.default=(0,b.connect)(function(e){return{userCanManageModules:(0,C.userCanManageModules)(e),userCanViewStats:(0,C.userCanViewStats)(e),isModuleActivated:function(t){return(0,S.isModuleActivated)(e,t)}}})(O)},function(e,t,n){"use strict";var r=n(7),a=n(1),i=n(936),o=n(14),s=n(34),c=n(805),u=n(810),l=n(866);n(946);var d=s({displayName:"SectionNav",propTypes:{children:r.node,selectedText:r.node,selectedCount:r.number,hasPinnedItems:r.bool,onMobileNavPanelOpen:r.func},getInitialState:function(){return{mobileOpen:!1}},getDefaultProps:function(){return{onMobileNavPanelOpen:function(){}}},componentWillMount:function(){this.checkForSiblingControls(this.props.children)},componentWillReceiveProps:function(e){i(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())},render:function(){var e=this.getChildren(),t=void 0;return e?(t=o({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),a.createElement("div",{className:t},a.createElement("div",{className:"dops-section-nav__mobile-header",onTouchTap:this.toggleMobileOpenState},a.createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),a.createElement("div",{className:"dops-section-nav__panel"},e))):(t=o({"dops-section-nav":!0,"is-empty":!0}),a.createElement("div",{className:t},a.createElement("div",{className:"dops-section-nav__panel"},a.createElement(u,null))))},getChildren:function(){return a.Children.map(this.props.children,function(e){var t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==c||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===c&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===l&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),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,a.Children.forEach(e,function(e,t){t&&e&&e.type!==l&&(this.hasSiblingControls=!0)}.bind(this))}});e.exports=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(149),M=r(_),b=n(1),g=r(b),v=n(502),y=r(v),A=n(459),E=r(A),w=n(503),k=r(w),T=n(864),L=r(T),S=n(939),C=r(S),O=n(14),z=r(O),N=n(865),D=r(N),P=n(941),x=r(P),j=n(942),R=r(j),Y=n(806),I=r(Y);n(943);var q=g.default.Component,B=function(){},W=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));n.navigateItem=n.navigateItem.bind(n),n.toggleDropdown=n.toggleDropdown.bind(n),n.handleOutsideClick=n.handleOutsideClick.bind(n),n._onClick=n._onClick.bind(n);var r={isOpen:!1};return e.options.length&&(r.selected=n.getInitialSelectedItem(e)),n.state=r,n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.setState({instanceId:++t.instances})}},{key:"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,e.initialSelected)return e.initialSelected;if(e.options.length){var t=(0,y.default)(e.options,function(e){return!e.isLabel});return t&&t.value}}},{key:"dropdownOptions",value:function(){var e=0,t=this;return this.props.children?g.default.Children.map(this.props.children,function(n,r){if(!n)return null;var a=g.default.cloneElement(n,{ref:n.type===D.default?"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===D.default&&e++,a},this):this.props.options.map(function(t,n){if(!t)return g.default.createElement(x.default,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(t.isLabel)return g.default.createElement(R.default,{key:"dropdown-label-"+this.state.instanceId+"-"+n},t.label);var r=g.default.createElement(D.default,{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=(0,z.default)(e),n=this.props.selectedText?this.props.selectedText:(0,C.default)((0,y.default)(this.props.options,{value:this.state.selected}),"label");return g.default.createElement("div",{style:this.props.style,className:t},g.default.createElement("div",{ref:"dropdownContainer",className:"dops-select-dropdown__container",valueLink:this.props.valueLink,tabIndex:this.props.tabIndex||0,role:"listbox","aria-labelledby":"select-dropdown-"+this.state.instanceId,"aria-haspopup":"true","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},g.default.createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},g.default.createElement("span",{className:"dops-select-dropdown__header-text"},n,"number"==typeof this.props.selectedCount&&g.default.createElement(I.default,{count:this.props.selectedCount}))),g.default.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=void 0,n=void 0;if(this.state.isOpen){this.props.options.length?(t=(0,L.default)((0,E.default)(this.props.options,function(e){return e&&!e.isLabel}),"value"),n="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=(0,E.default)(this.props.children,function(e){return e.type===D.default}),n="number"==typeof this.focused?this.focused:(0,k.default)(t,function(e){return e.props.selected}));var r="previous"===e?-1:1,a=n+r;a>=t.length||a<0||(M.default.findDOMNode(this.refs["item-"+a].refs.itemLink).focus(),this.focused=a)}}},{key:"handleOutsideClick",value:function(e){M.default.findDOMNode(this.refs.dropdownContainer).contains(e.target)||this.closeDropdown()}}]),t}(q);W.defaultProps={options:[],onSelect:B,onToggle:B,disabled:!1,style:{}},W.propTypes={selectedText:m.default.string,selectedCount:m.default.number,initialSelected:m.default.string,className:m.default.string,style:m.default.object,onSelect:m.default.func,onToggle:m.default.func,focusSibling:m.default.func,tabIndex:m.default.number,disabled:m.default.bool,options:m.default.arrayOf(m.default.shape({value:m.default.string.isRequired,label:m.default.string.isRequired,path:m.default.string}))},W.instances=0,t.default=W,e.exports=t.default},function(e,t,n){function r(e,t){return(s(e)?a:o)(e,i(t,3))}var a=n(126),i=n(91),o=n(938),s=n(26);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(806),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=_(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return m.createElement("li",{className:"dops-select-dropdown__option"},m.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},m.createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&m.createElement(M,{count:this.props.count}))))}}]),t}(m.Component);b.propTypes={children:h.string.isRequired,path:h.string,selected:h.bool,onClick:h.func,count:h.number},b.defaultProps={selected:!1},e.exports=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}var i=n(11),o=r(i),s=n(2),c=r(s),u=n(3),l=r(u),d=n(6),f=r(d),p=n(4),h=r(p),m=n(5),_=r(m),M=n(149),b=r(M),g=n(7),v=r(g),y=n(1),A=r(y),E=n(14),w=r(E),k=n(504),T=r(k),L=n(64),S=r(L),C=n(15),O=r(C),z=n(867),N=r(z),D=n(65),P=r(D),x=n(809);n(945);var j=function(e){function t(){var e,n,r,a;(0,l.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,h.default)(this,(e=t.__proto__||(0,c.default)(t)).call.apply(e,[this].concat(o))),r.state={keyword:r.props.initialValue||"",isOpen:!!r.props.isOpen,hasFocus:!1},r.scrollOverlay=function(){r.refs.overlay&&window.requestAnimationFrame(function(){r.refs.overlay&&r.refs.searchInput&&(r.refs.overlay.scrollLeft=r.getScrollLeft(r.refs.searchInput))})},r.getScrollLeft=function(e){if(!e.createTextRange)return e.scrollLeft;var t=e.createTextRange(),n=window.getComputedStyle(e,void 0),r=parseFloat(n.paddingLeft),a=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+r-a.left},r.focus=function(){setTimeout(function(){return r.refs.searchInput&&b.default.findDOMNode(r.refs.searchInput).focus()},0)},r.blur=function(){b.default.findDOMNode(r.refs.searchInput).blur()},r.getCurrentSearchValue=function(){return b.default.findDOMNode(r.refs.searchInput).value},r.clear=function(){r.setState({keyword:""})},r.onBlur=function(e){r.props.onBlur&&r.props.onBlur(e),r.setState({hasFocus:!1})},r.onChange=function(){r.setState({keyword:r.getCurrentSearchValue()})},r.openSearch=function(e){r.props.onClick(),e.preventDefault(),r.setState({keyword:"",isOpen:!0}),O.default.ga.recordEvent(r.props.analyticsGroup,"Clicked Open Search")},r.closeSearch=function(e){if(e.preventDefault(),!r.props.disabled){var t=b.default.findDOMNode(r.refs.searchInput);r.setState({keyword:"",isOpen:r.props.isOpen||!1}),t.value="",t.blur(),r.props.pinned&&b.default.findDOMNode(r.refs.openIcon).focus(),r.props.onSearchClose(e),O.default.ga.recordEvent(r.props.analyticsGroup,"Clicked Close Search")}},r.keyUp=function(e){"Enter"===e.key&&(0,x.isMobile)()&&r.blur(),r.props.pinned&&("Escape"===e.key&&r.closeSearch(e),r.scrollOverlay())},r.keyDown=function(e){r.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&r.closeSearch(e),r.props.onKeyDown(e)},r.onFocus=function(){var e=b.default.findDOMNode(r.refs.searchInput),t=e.value;t&&(e.value="",e.value=t),r.setState({hasFocus:!0}),r.props.onSearchOpen()},r.renderStylingDiv=function(){return A.default.createElement("div",{className:"dops-search__text-overlay",ref:"overlay"},r.props.overlayStyling(r.state.keyword))},r.closeButton=function(){return r.props.hideClose||!r.state.keyword&&!r.state.isOpen?null:A.default.createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:r.closeSearch,tabIndex:"0",onKeyDown:r.closeListener,"aria-controls":"dops-search-component-"+r.state.instanceId,"aria-label":"Close Search"},A.default.createElement(P.default,{icon:"cross",className:"dops-search__close-icon"}))},a=n,(0,h.default)(r,a)}return(0,_.default)(t,e),(0,f.default)(t,[{key:"componentWillMount",value:function(){this.setState({instanceId:++t.instances}),this.closeListener=a.bind(this,"closeSearch"),this.openListener=a.bind(this,"openSearch")}},{key:"componentWillReceiveProps",value:function(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?(0,T.default)(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?(0,T.default)(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,a=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},i=(0,w.default)(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=(0,w.default)("dops-search__input-fade",this.props.dir),c=(0,w.default)("dops-search__input",this.props.dir);return A.default.createElement("div",{dir:this.props.dir||null,className:i,role:"search"},A.default.createElement(N.default,null),A.default.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"},A.default.createElement(P.default,{icon:"search",className:"dops-search__open-icon"})),A.default.createElement("div",{className:s},A.default.createElement("input",(0,o.default)({type:"search",id:"dops-search-component-"+this.state.instanceId,className:c,placeholder:t,role:"search",value:e,ref:"searchInput",onInput:this.onChange,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},a)),this.props.overlayStyling&&this.renderStylingDiv()),this.closeButton())}}]),t}(A.default.Component);j.displayName="Search",j.instances=0,j.propTypes={additionalClasses:v.default.string,initialValue:v.default.string,placeholder:v.default.string,pinned:v.default.bool,delaySearch:v.default.bool,delayTimeout:v.default.number,onSearch:v.default.func.isRequired,onSearchChange:v.default.func,onSearchOpen:v.default.func,onSearchClose:v.default.func,analyticsGroup:v.default.string,overlayStyling:v.default.func,autoFocus:v.default.bool,disabled:v.default.bool,onKeyDown:v.default.func,onClick:v.default.func,disableAutocorrect:v.default.bool,onBlur:v.default.func,searching:v.default.bool,isOpen:v.default.bool,dir:v.default.oneOf(["ltr","rtl"]),fitsContainer:v.default.bool,maxLength:v.default.number,hideClose:v.default.bool},j.defaultProps={pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:S.default,onSearchOpen:S.default,onSearchClose:S.default,onKeyDown:S.default,onClick:S.default,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1},e.exports=j},function(e,t,n){"use strict";(function(t){function r(e){return e&&e.__esModule?e:{default:e}}var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14);n(944);var M=function(e){function n(){var e,r,a,o;(0,s.default)(this,n);for(var c=arguments.length,u=Array(c),l=0;l<c;l++)u[l]=arguments[l];return r=a=(0,d.default)(this,(e=n.__proto__||(0,i.default)(n)).call.apply(e,[this].concat(u))),a.isSVGCSSAnimationSupported=function(){return!/(MSIE |Trident\/)/.test(t.window?t.window.navigator.userAgent:"")},a.getClassName=function(){return _("dops-spinner",a.props.className,{"is-fallback":!a.isSVGCSSAnimationSupported()})},a.renderFallback=function(){var e={width:a.props.size,height:a.props.size};return m.createElement("div",{className:a.getClassName(),style:e},m.createElement("span",{className:"dops-spinner__progress is-left"}),m.createElement("span",{className:"dops-spinner__progress is-right"}))},o=r,(0,d.default)(a,o)}return(0,p.default)(n,e),(0,u.default)(n,[{key:"componentWillMount",value:function(){this.setState({instanceId:++n.instances})}},{key:"render",value:function(){var e=parseInt(this.state.instanceId,10);return this.isSVGCSSAnimationSupported()?m.createElement("div",{className:this.getClassName()},m.createElement("svg",{className:"dops-spinner__image",width:this.props.size,height:this.props.size,viewBox:"0 0 100 100",dangerouslySetInnerHTML:{__html:'\n\t\t\t\t\t<defs>\n\t\t\t\t\t\t<mask id="maskBorder'+e+'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="100%" height="100%" fill="white" />\n\t\t\t\t\t\t\t<circle r="46%" cx="50%" cy="50%" fill="black" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskDonut'+e+'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="100%" height="100%" fill="black" />\n\t\t\t\t\t\t\t<circle r="46%" cx="50%" cy="50%" fill="white" />\n\t\t\t\t\t\t\t<circle r="30%" cx="50%" cy="50%" fill="black" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskLeft'+e+'">\n\t\t\t\t\t\t\t<rect x="0" y="0" width="50%" height="100%" fill="white" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t\t<mask id="maskRight'+e+'">\n\t\t\t\t\t\t\t<rect x="50%" y="0" width="50%" height="100%" fill="white" />\n\t\t\t\t\t\t</mask>\n\t\t\t\t\t</defs>\n\t\t\t\t\t<circle class="dops-spinner__border" r="50%" cx="50%" cy="50%" mask="url( #maskBorder'+e+' )" />\n\t\t\t\t\t<g mask="url( #maskDonut'+e+' )">\n\t\t\t\t\t\t<g mask="url( #maskLeft'+e+' )">\n\t\t\t\t\t\t\t<rect class="dops-spinner__progress is-left" x="0" y="0" width="50%" height="100%" />\n\t\t\t\t\t\t</g>\n\t\t\t\t\t\t<g mask="url( #maskRight'+e+' )">\n\t\t\t\t\t\t\t<rect class="dops-spinner__progress is-right" x="50%" y="0" width="50%" height="100%" />\n\t\t\t\t\t\t</g>\n\t\t\t\t\t</g>\n\t\t\t\t'}})):this.renderFallback()}}]),n}(m.Component);M.propTypes={className:h.string,size:h.number,duration:h.number},M.instances=0,M.defaultProps={size:20,duration:3e3},e.exports=M}).call(t,n(45))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationSettings=void 0;var a=n(114),i=r(a),o=n(7),s=r(o),c=n(1),u=r(c),l=n(34),d=r(l),f=n(10),p=n(862),h=r(p),m=n(805),_=r(m),M=n(810),b=r(M),g=n(866),v=r(g),y=n(8),A=n(64),E=r(A),w=n(947),k=r(w),T=n(15),L=r(T),S=n(961),C=r(S),O=n(73),z=n(28),N=n(21),D=n(23),P=n(210),x=n(506),j=r(x),R=t.NavigationSettings=(0,d.default)({displayName:"NavigationSettings",mixins:[k.default],moduleList:[],componentWillMount:function(){this.context.router.listen(this.onRouteChange),this.moduleList=(0,i.default)(this.props.moduleList)},onRouteChange:function(e){var t=e.search||"",n=t.substr(1).split("&"),r=n.filter(function(e){return 0===e.indexOf("term=")}),a="";r.length>0&&(a=r[0].split("=")[1]),this.props.searchForTerm(decodeURIComponent(a))},maybeShowSearch:function(){if(this.props.userCanManageModules)return u.default.createElement(v.default,{onClick:this.handleClickForTracking("search"),pinned:!0,fitsContainer:!0,placeholder:(0,y.translate)("Search for a Jetpack feature."),delaySearch:!0,delayTimeout:500,onSearch:this.doSearch,isOpen:!!this.props.searchTerm,initialValue:this.props.searchTerm})},trackNavClick:function(e){L.default.tracks.recordJetpackClick({target:"nav_item",path:e})},buildUrl:function(e,t){var n=e.split("#"),r=n[1].split("?");return this.props.searchForTerm(t),"#"+r[0]+(t?"?term="+t:"")},hasAnyOfThese:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0<(0,C.default)(this.moduleList,e).length},handleClickForTracking:function(e){var t=this;return function(){return t.trackNavClick(e)}},render:function(){var e=void 0,t=void 0;return this.props.userCanManageModules?e=u.default.createElement(_.default,{selectedText:this.props.route.name},this.hasAnyOfThese(["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven"])&&u.default.createElement(b.default,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.route.path||"/settings"===this.props.route.path},(0,y.translate)("Writing",{context:"Navigation item."})),this.hasAnyOfThese(["publicize","sharedaddy","likes"])&&u.default.createElement(b.default,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.route.path},(0,y.translate)("Sharing",{context:"Navigation item."})),this.hasAnyOfThese(["comments","gravatar-hovercards","markdown","subscriptions"])&&u.default.createElement(b.default,{path:"#discussion",onClick:this.handleClickForTracking("discussion"),selected:"/discussion"===this.props.route.path},(0,y.translate)("Discussion",{context:"Navigation item."})),this.hasAnyOfThese(["seo-tools","wordads","stats","related-posts","verification-tools","sitemaps","google-analytics"])&&u.default.createElement(b.default,{path:"#traffic",onClick:this.handleClickForTracking("traffic"),selected:"/traffic"===this.props.route.path},(0,y.translate)("Traffic",{context:"Navigation item."})),(this.hasAnyOfThese(["protect","sso","vaultpress"])||this.props.isPluginActive("akismet/akismet.php"))&&u.default.createElement(b.default,{path:"#security",onClick:this.handleClickForTracking("security"),selected:"/security"===this.props.route.path},(0,y.translate)("Security",{context:"Navigation item."}))):this.props.isSubscriber?e=!1:(t=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.hasAnyOfThese(["publicize"])&&u.default.createElement(b.default,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.route.path},(0,y.translate)("Sharing",{context:"Navigation item."})):"",e=u.default.createElement(_.default,{selectedText:this.props.route.name},this.hasAnyOfThese(["after-the-deadline","post-by-email"])&&u.default.createElement(b.default,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.route.path||"/settings"===this.props.route.path},(0,y.translate)("Writing",{context:"Navigation item."})),t)),u.default.createElement("div",{id:"jp-navigation",className:"dops-navigation"},u.default.createElement(j.default,null),u.default.createElement(h.default,{selectedText:this.props.route.name},e,this.maybeShowSearch()))}});R.contextTypes={router:s.default.object.isRequired},R.propTypes={userCanManageModules:s.default.bool.isRequired,isSubscriber:s.default.bool.isRequired,userCanPublish:s.default.bool.isRequired,isLinked:s.default.bool.isRequired,isSiteConnected:s.default.bool.isRequired,isModuleActivated:s.default.func.isRequired,searchHasFocus:s.default.bool.isRequired},R.defaultProps={userCanManageModules:!1,isSubscriber:!1,userCanPublish:!1,isLinked:!1,isSiteConnected:!1,isModuleActivated:E.default,searchHasFocus:!1},t.default=(0,f.connect)(function(e){return{userCanManageModules:(0,z.userCanManageModules)(e),isSubscriber:(0,z.userIsSubscriber)(e),userCanPublish:(0,z.userCanPublish)(e),isLinked:(0,N.isCurrentUserLinked)(e),isSiteConnected:(0,N.isSiteConnected)(e),isModuleActivated:function(t){return(0,D.isModuleActivated)(e,t)},moduleList:(0,D.getModules)(e),isPluginActive:function(t){return(0,P.isPluginActive)(e,t)},searchTerm:(0,O.getSearchTerm)(e)}},function(e){return{searchForTerm:function(t){return e((0,O.filterSearch)(t))}}})(R)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(968),v=r(g),y=n(1106),A=r(y),E=n(1125),w=r(E),k=n(1134),T=r(k),L=n(1155),S=r(L),C=n(1159),O=r(C),z=n(1160),N=r(z),D=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={route:this.props.route,searchTerm:this.props.searchTerm,rewindStatus:this.props.rewindStatus};return M.default.createElement("div",{className:"jp-settings-container"},M.default.createElement("div",{className:"jp-no-results"},e.searchTerm?(0,b.translate)("No search results found for %(term)s",{args:{term:e.searchTerm}}):(0,b.translate)("Enter a search term to find settings or close search.")),M.default.createElement(v.default,(0,i.default)({siteRawUrl:this.props.siteRawUrl,active:"/discussion"===this.props.route.path},e)),M.default.createElement(A.default,(0,i.default)({siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,active:"/security"===this.props.route.path},e)),M.default.createElement(w.default,(0,i.default)({siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,active:"/traffic"===this.props.route.path},e)),M.default.createElement(T.default,(0,i.default)({siteAdminUrl:this.props.siteAdminUrl,active:"/writing"===this.props.route.path||"/settings"===this.props.route.path},e)),M.default.createElement(S.default,(0,i.default)({siteAdminUrl:this.props.siteAdminUrl,active:"/sharing"===this.props.route.path},e)),M.default.createElement(N.default,(0,i.default)({active:"/privacy"===this.props.route.path},e)),M.default.createElement(O.default,{searchTerm:this.props.searchTerm}))}}]),t}(M.default.Component);D.displayName="SearchableSettings",t.default=D,e.exports=t.default},function(e,t,n){"use strict";var r=n(49).f,a=n(159),i=n(449),o=n(71),s=n(444),c=n(206),u=n(220),l=n(485),d=n(492),f=n(60),p=n(222).fastKey,h=n(835),m=f?"_s":"size",_=function(e,t){var n,r=p(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,u){var l=e(function(e,r){s(e,l,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&c(r,n,e[u],e)});return i(l.prototype,{clear:function(){for(var e=h(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=h(this,t),r=_(n,e);if(r){var a=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=a),a&&(a.p=i),n._f==r&&(n._f=a),n._l==r&&(n._l=i),n[m]--}return!!r},forEach:function(e){h(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!!_(h(this,t),e)}}),f&&r(l.prototype,"size",{get:function(){return h(this,t)[m]}}),l},def:function(e,t,n){var r,a,i=_(e,t);return i?i.v=n:(e._l=i={i:a=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==a&&(e._i[a]=i)),e},getEntry:_,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=h(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)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(31),a=n(35),i=n(222),o=n(82),s=n(72),c=n(449),u=n(206),l=n(444),d=n(50),f=n(124),p=n(49).f,h=n(977)(0),m=n(60);e.exports=function(e,t,n,_,M,b){var g=r[e],v=g,y=M?"set":"add",A=v&&v.prototype,E={};return m&&"function"==typeof v&&(b||A.forEach&&!o(function(){(new v).entries().next()}))?(v=t(function(t,n){l(t,v,e,"_c"),t._c=new g,void 0!=n&&u(n,M,t[y],t)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in A&&(!b||"clear"!=e)&&s(v.prototype,e,function(n,r){if(l(this,v,e),!t&&b&&!d(n))return"get"==e&&void 0;var a=this._c[e](0===n?0:n,r);return t?this:a})}),b||p(v.prototype,"size",{get:function(){return this._c.size}})):(v=_.getConstructor(t,e,M,y),c(v.prototype,n),i.NEED=!0),f(v,e),E[e]=v,a(a.G+a.W+a.F,E),b||_.setStrong(v,e,M),v}},function(e,t,n){var r=n(200),a=n(981);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return a(this)}}},function(e,t,n){"use strict";var r=n(35);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){"use strict";var r=n(35),a=n(123),i=n(71),o=n(206);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,c=arguments[1];return a(this),t=void 0!==c,t&&a(c),void 0==e?new this:(n=[],t?(r=0,s=i(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,n){"use strict";function r(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}function a(e){o.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=n(32).Buffer,o=n(837).Transform;n(20)(a,o),a.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},
32
  a.prototype.update=function(e,t){if(r(e,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var n=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=e[a++];this._update(),this._blockOffset=0}for(;a<e.length;)n[this._blockOffset++]=e[a++];for(var s=0,c=8*e.length;c>0;++s)this._length[s]+=c,(c=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*c);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){"use strict";(function(t,r){function a(e){return R.from(e)}function i(e){return R.isBuffer(e)||e instanceof Y}function o(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?P(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function s(e,t){D=D||n(212),e=e||{};var r=t instanceof D;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new U,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&&(W||(W=n(840).StringDecoder),this.decoder=new W(e.encoding),this.encoding=e.encoding)}function c(e){if(D=D||n(212),!(this instanceof c))return new c(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),j.call(this)}function u(e,t,n,r,i){var o=e._readableState;if(null===t)o.reading=!1,m(e,o);else{var s;i||(s=d(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===R.prototype||(t=a(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(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?l(e,o,t,!1):b(e,o)):l(e,o,t,!1))):r||(o.reading=!1)}return f(o)}function l(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&&_(e)),b(e,t)}function d(e,t){var n;return i(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function p(e){return e>=X?e=X:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function h(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=p(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function m(e,t){if(!t.ended){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,_(e)}}function _(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(B("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?N.nextTick(M,e):M(e))}function M(e){B("emit readable"),e.emit("readable"),w(e)}function b(e,t){t.readingMore||(t.readingMore=!0,N.nextTick(g,e,t))}function g(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(B("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function v(e){return function(){var t=e._readableState;B("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&x(e,"data")&&(t.flowing=!0,w(e))}}function y(e){B("readable nexttick read 0"),e.read(0)}function A(e,t){t.resumeScheduled||(t.resumeScheduled=!0,N.nextTick(E,e,t))}function E(e,t){t.reading||(B("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),w(e),t.flowing&&!t.reading&&e.read(0)}function w(e){var t=e._readableState;for(B("flow",t.flowing);t.flowing&&null!==e.read(););}function k(e,t){if(0===t.length)return null;var n;return 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=T(e,t.buffer,t.decoder),n}function T(e,t,n){var r;return 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?L(e,t):S(e,t),r}function L(e,t){var n=t.head,r=1,a=n.data;for(e-=a.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(o===i.length?a+=i:a+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(o));break}++r}return t.length-=r,a}function S(e,t){var n=R.allocUnsafe(e),r=t.head,a=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,o),0===(e-=o)){o===i.length?(++a,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++a}return t.length-=a,n}function C(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,N.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function z(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}var N=n(508);e.exports=c;var D,P=n(440);c.ReadableState=s;var x=(n(147).EventEmitter,function(e,t){return e.listeners(t).length}),j=n(877),R=n(32).Buffer,Y=t.Uint8Array||function(){},I=n(468);I.inherits=n(20);var q=n(995),B=void 0;B=q&&q.debuglog?q.debuglog("stream"):function(){};var W,U=n(996),H=n(878);I.inherits(c,j);var F=["error","close","destroy","pause","resume"];Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),c.prototype.destroy=H.destroy,c.prototype._undestroy=H.undestroy,c.prototype._destroy=function(e,t){this.push(null),t(e)},c.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=R.from(e,t),t=""),n=!0),u(this,e,t,!1,n)},c.prototype.unshift=function(e){return u(this,e,null,!0,!1)},c.prototype.isPaused=function(){return!1===this._readableState.flowing},c.prototype.setEncoding=function(e){return W||(W=n(840).StringDecoder),this._readableState.decoder=new W(e),this._readableState.encoding=e,this};var X=8388608;c.prototype.read=function(e){B("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 B("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?C(this):_(this),null;if(0===(e=h(e,t))&&t.ended)return 0===t.length&&C(this),null;var r=t.needReadable;B("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,B("length less than watermark",r)),t.ended||t.reading?(r=!1,B("reading or ended",r)):r&&(B("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=h(n,t)));var a;return a=e>0?k(e,t):null,null===a?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&C(this)),null!==a&&this.emit("data",a),a},c.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(e,t){function n(e,t){B("onunpipe"),e===f&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,i())}function a(){B("onend"),e.end()}function i(){B("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",_),e.removeListener("error",c),e.removeListener("unpipe",n),f.removeListener("end",a),f.removeListener("end",d),f.removeListener("data",s),M=!0,!p.awaitDrain||e._writableState&&!e._writableState.needDrain||_()}function s(t){B("ondata"),b=!1,!1!==e.write(t)||b||((1===p.pipesCount&&p.pipes===e||p.pipesCount>1&&-1!==z(p.pipes,e))&&!M&&(B("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,b=!0),f.pause())}function c(t){B("onerror",t),d(),e.removeListener("error",c),0===x(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",l),d()}function l(){B("onfinish"),e.removeListener("close",u),d()}function d(){B("unpipe"),f.unpipe(e)}var f=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=e;break;case 1:p.pipes=[p.pipes,e];break;default:p.pipes.push(e)}p.pipesCount+=1,B("pipe count=%d opts=%j",p.pipesCount,t);var h=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,m=h?a:d;p.endEmitted?N.nextTick(m):f.once("end",m),e.on("unpipe",n);var _=v(f);e.on("drain",_);var M=!1,b=!1;return f.on("data",s),o(e,"error",c),e.once("close",u),e.once("finish",l),e.emit("pipe",f),p.flowing||(B("pipe resume"),f.resume()),e},c.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?this:(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,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)r[i].emit("unpipe",this,n);return this}var o=z(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},c.prototype.on=function(e,t){var n=j.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&_(this):N.nextTick(y,this))}return n},c.prototype.addListener=c.prototype.on,c.prototype.resume=function(){var e=this._readableState;return e.flowing||(B("resume"),e.flowing=!0,A(this,e)),this},c.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this},c.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on("end",function(){if(B("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){if(B("wrapped data"),n.decoder&&(a=n.decoder.write(a)),(!n.objectMode||null!==a&&void 0!==a)&&(n.objectMode||a&&a.length)){t.push(a)||(r=!0,e.pause())}});for(var a in e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i<F.length;i++)e.on(F[i],this.emit.bind(this,F[i]));return this._read=function(t){B("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(c.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),c._fromList=k}).call(t,n(45),n(63))},function(e,t,n){e.exports=n(147).EventEmitter},function(e,t,n){"use strict";function r(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.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?(o.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)}function a(){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 i(e,t){e.emit("error",t)}var o=n(508);e.exports={destroy:r,undestroy:a}},function(e,t,n){"use strict";function r(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 a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);s.call(this,e),this._transformState={afterTransform:r.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",i)}function i(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){o(e,t,n)}):o(this,null,null)}function o(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)}e.exports=a;var s=n(212),c=n(468);c.inherits=n(20),c.inherits(a,s),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var a=this._readableState;(r.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},a.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},a.prototype._destroy=function(e,t){var n=this;s.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){function r(){this.init(),this._w=h,d.call(this,64,56)}function a(e,t,n){return n^e&(t^n)}function i(e,t,n){return e&t|n&(e|t)}function o(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function s(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function c(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function u(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var l=n(20),d=n(236),f=n(32).Buffer,p=[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],h=new Array(64);l(r,d),r.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},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,l=0|this._c,d=0|this._d,f=0|this._e,h=0|this._f,m=0|this._g,_=0|this._h,M=0;M<16;++M)t[M]=e.readInt32BE(4*M);for(;M<64;++M)t[M]=u(t[M-2])+t[M-7]+c(t[M-15])+t[M-16]|0;for(var b=0;b<64;++b){var g=_+s(f)+a(f,h,m)+p[b]+t[b]|0,v=o(n)+i(n,r,l)|0;_=m,m=h,h=f,f=d+g|0,d=l,l=r,r=n,n=g+v|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=l+this._c|0,this._d=d+this._d|0,this._e=f+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=_+this._h|0},r.prototype._hash=function(){var e=f.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=r},function(e,t,n){function r(){this.init(),this._w=M,h.call(this,128,112)}function a(e,t,n){return n^e&(t^n)}function i(e,t,n){return e&t|n&(e|t)}function o(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function s(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function c(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function f(e,t){return e>>>0<t>>>0?1:0}var p=n(20),h=n(236),m=n(32).Buffer,_=[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],M=new Array(160);p(r,h),r.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},r.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,p=0|this._ch,h=0|this._dh,m=0|this._eh,M=0|this._fh,b=0|this._gh,g=0|this._hh,v=0|this._al,y=0|this._bl,A=0|this._cl,E=0|this._dl,w=0|this._el,k=0|this._fl,T=0|this._gl,L=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var C=t[S-30],O=t[S-30+1],z=c(C,O),N=u(O,C);C=t[S-4],O=t[S-4+1];var D=l(C,O),P=d(O,C),x=t[S-14],j=t[S-14+1],R=t[S-32],Y=t[S-32+1],I=N+j|0,q=z+x+f(I,N)|0;I=I+P|0,q=q+D+f(I,P)|0,I=I+Y|0,q=q+R+f(I,Y)|0,t[S]=q,t[S+1]=I}for(var B=0;B<160;B+=2){q=t[B],I=t[B+1];var W=i(n,r,p),U=i(v,y,A),H=o(n,v),F=o(v,n),X=s(m,w),V=s(w,m),K=_[B],J=_[B+1],G=a(m,M,b),Q=a(w,k,T),$=L+V|0,Z=g+X+f($,L)|0;$=$+Q|0,Z=Z+G+f($,Q)|0,$=$+J|0,Z=Z+K+f($,J)|0,$=$+I|0,Z=Z+q+f($,I)|0;var ee=F+U|0,te=H+W+f(ee,F)|0;g=b,L=T,b=M,T=k,M=m,k=w,w=E+$|0,m=h+Z+f(w,E)|0,h=p,E=A,p=r,A=y,r=n,y=v,v=$+ee|0,n=Z+te+f(v,$)|0}this._al=this._al+v|0,this._bl=this._bl+y|0,this._cl=this._cl+A|0,this._dl=this._dl+E|0,this._el=this._el+w|0,this._fl=this._fl+k|0,this._gl=this._gl+T|0,this._hl=this._hl+L|0,this._ah=this._ah+n+f(this._al,v)|0,this._bh=this._bh+r+f(this._bl,y)|0,this._ch=this._ch+p+f(this._cl,A)|0,this._dh=this._dh+h+f(this._dl,E)|0,this._eh=this._eh+m+f(this._el,w)|0,this._fh=this._fh+M+f(this._fl,k)|0,this._gh=this._gh+b+f(this._gl,T)|0,this._hh=this._hh+g+f(this._hl,L)|0},r.prototype._hash=function(){function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}var t=m.allocUnsafe(64);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},e.exports=r},function(e,t,n){"use strict";function r(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var n="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>n){t=("rmd160"===e?new u:l(e)).update(t).digest()}else t.length<n&&(t=s.concat([t,d],n));for(var r=this._ipad=s.allocUnsafe(n),a=this._opad=s.allocUnsafe(n),i=0;i<n;i++)r[i]=54^t[i],a[i]=92^t[i];this._hash="rmd160"===e?new u:l(e),this._hash.update(r)}var a=n(20),i=n(1010),o=n(162),s=n(32).Buffer,c=n(883),u=n(841),l=n(842),d=s.alloc(128);a(r,o),r.prototype._update=function(e){this._hash.update(e)},r.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:l(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return e=e.toLowerCase(),"rmd160"===e||"ripemd160"===e?new r("rmd160",t):"md5"===e?new i(c,t):new r(e,t)}},function(e,t,n){var r=n(836);e.exports=function(e){return(new r).update(e).digest()}},function(e,t){e.exports={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(1012),t.pbkdf2Sync=n(888)},function(e,t,n){(function(t){function n(e,n){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(n+" must be a buffer or string")}var r=Math.pow(2,30)-1;e.exports=function(e,t,a,i){if(n(e,"Password"),n(t,"Salt"),"number"!=typeof a)throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if("number"!=typeof i)throw new TypeError("Key length not a number");if(i<0||i>r||i!==i)throw new TypeError("Bad key length")}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){var n;if(t.browser)n="utf-8";else{n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}e.exports=n}).call(t,n(63))},function(e,t,n){function r(e,t,n){var r=a(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=r(t):t.length<i&&(t=d.concat([t,f],i));for(var o=d.allocUnsafe(i+p[e]),s=d.allocUnsafe(i+p[e]),c=0;c<i;c++)o[c]=54^t[c],s[c]=92^t[c];var u=d.allocUnsafe(i+n+4);o.copy(u,0,0,i),this.ipad1=u,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=i,this.hash=r,this.size=p[e]}function a(e){function t(t){return c(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?s:"md5"===e?o:t}function i(e,t,n,a,i){u(e,t,n,a),d.isBuffer(e)||(e=d.from(e,l)),d.isBuffer(t)||(t=d.from(t,l)),i=i||"sha1";var o=new r(i,e,t.length),s=d.allocUnsafe(a),c=d.allocUnsafe(t.length+4);t.copy(c,0,0,t.length);for(var f=0,h=p[i],m=Math.ceil(a/h),_=1;_<=m;_++){c.writeUInt32BE(_,t.length);for(var M=o.run(c,o.ipad1),b=M,g=1;g<n;g++){b=o.run(b,o.ipad2);for(var v=0;v<h;v++)M[v]^=b[v]}M.copy(s,f),f+=h}return s}var o=n(883),s=n(841),c=n(842),u=n(886),l=n(887),d=n(32).Buffer,f=d.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};r.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=i},function(e,t,n){function r(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var a=n(469),i=n(32).Buffer,o=n(890);t.encrypt=function(e,t){var n=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var c=r(e),u=o+16*s;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),a(t,l)}},function(e,t){function n(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}e.exports=n},function(e,t){e.exports={"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){function r(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),a=0;a<r;++a)n+=e[a]^t[a];return n}function a(e,t,n){if(12===t.length)return e._finID=s.concat([t,s.from([0,0,0,1])]),s.concat([t,s.from([0,0,0,2])]);var r=new l(n),a=t.length,i=a%16;r.update(t),i&&(i=16-i,r.update(s.alloc(i,0))),r.update(s.alloc(8,0));var o=8*a,c=s.alloc(8);c.writeUIntBE(o,0,8),r.update(c),e._finID=r.state;var u=s.from(e._finID);return f(u),u}function i(e,t,n,r){c.call(this);var i=s.alloc(4,0);this._cipher=new o.AES(t);var u=this._cipher.encryptBlock(i);this._ghash=new l(u),n=a(this,n,u),this._prev=s.from(n),this._cache=s.allocUnsafe(0),this._secCache=s.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}var o=n(509),s=n(32).Buffer,c=n(162),u=n(20),l=n(1027),d=n(469),f=n(890);u(i,c),i.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=s.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},i.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&r(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},i.prototype.getAuthTag=function(){if(this._decrypt||!s.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},i.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},i.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=i},function(e,t,n){function r(e,t,n,r){o.call(this),this._cipher=new a.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=r,this._mode=e}var a=n(509),i=n(32).Buffer,o=n(162);n(20)(r,o),r.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},e.exports=r},function(e,t,n){function r(){if(null!==g)return g;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),a=0;a<t&&e[a]<=r&&n%e[a]!=0;a++);t!==a&&e[a]<=r||(e[t++]=n)}return g=e,e}function a(e){for(var t=r(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function i(e){var t=c.mont(e);return 0===p.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function o(e,t){if(e<16)return new c(2===t||5===t?[140,123]:[140,39]);t=new c(t);for(var n,r;;){for(n=new c(s(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(f),n.testn(1)||n.iadd(p),t.cmp(p)){if(!t.cmp(h))for(;n.mod(m).cmp(_);)n.iadd(b)}else for(;n.mod(u).cmp(M);)n.iadd(b);if(r=n.shrn(1),a(r)&&a(n)&&i(r)&&i(n)&&d.test(r)&&d.test(n))return n}}var s=n(235);e.exports=o,o.simpleSieve=a,o.fermatTest=i;var c=n(57),u=new c(24),l=n(895),d=new l,f=new c(1),p=new c(2),h=new c(5),m=(new c(16),new c(8),new c(10)),_=new c(3),M=(new c(7),new c(11)),b=new c(4),g=(new c(12),null)},function(e,t,n){function r(e){this.rand=e||new i.Rand}var a=n(57),i=n(896);e.exports=r,r.create=function(e){return new r(e)},r.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var r=new a(this.rand.generate(n))}while(r.cmp(e)>=0);return r},r.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},r.prototype.test=function(e,t,n){var r=e.bitLength(),i=a.mont(e),o=new a(1).toRed(i)
33
  ;t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(i);t>0;t--){var d=this._randrange(new a(2),s);n&&n(d);var f=d.toRed(i).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(l)){for(var p=1;p<c;p++){if(f=f.redSqr(),0===f.cmp(o))return!1;if(0===f.cmp(l))break}if(p===c)return!1}}return!0},r.prototype.getDivisor=function(e,t){var n=e.bitLength(),r=a.mont(e),i=new a(1).toRed(r);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),u=o.toRed(r);t>0;t--){var l=this._randrange(new a(2),o),d=e.gcd(l);if(0!==d.cmpn(1))return d;var f=l.toRed(r).redPow(c);if(0!==f.cmp(i)&&0!==f.cmp(u)){for(var p=1;p<s;p++){if(f=f.redSqr(),0===f.cmp(i))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(u))break}if(p===s)return f=f.redSqr(),f.fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){function r(e){this.rand=e}var a;if(e.exports=function(e){return a||(a=new r(null)),a.generate(e)},e.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.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?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var i=n(1032);if("function"!=typeof i.randomBytes)throw new Error("Not supported");r.prototype._rand=function(e){return i.randomBytes(e)}}catch(e){}},function(e,t,n){"use strict";function r(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,""),e.length%2!=0&&(e="0"+e);for(var r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var a=e.charCodeAt(r),i=a>>8,o=255&a;i?n.push(i,o):n.push(o)}return n}function a(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t}var o=t;o.toArray=r,o.zero2=a,o.toHex=i,o.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,n){"use strict";function r(e,t,n,r){return 0===e?a(t,n,r):1===e||3===e?o(t,n,r):2===e?i(t,n,r):void 0}function a(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}function s(e){return f(e,2)^f(e,13)^f(e,22)}function c(e){return f(e,6)^f(e,11)^f(e,25)}function u(e){return f(e,7)^f(e,18)^e>>>3}function l(e){return f(e,17)^f(e,19)^e>>>10}var d=n(127),f=d.rotr32;t.ft_1=r,t.ch32=a,t.maj32=i,t.p32=o,t.s0_256=s,t.s1_256=c,t.g0_256=u,t.g1_256=l},function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;M.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}var a=n(127),i=n(470),o=n(898),s=n(105),c=a.sum32,u=a.sum32_4,l=a.sum32_5,d=o.ch32,f=o.maj32,p=o.s0_256,h=o.s1_256,m=o.g0_256,_=o.g1_256,M=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];a.inherits(r,M),e.exports=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.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]=u(_(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var a=this.h[0],i=this.h[1],o=this.h[2],M=this.h[3],b=this.h[4],g=this.h[5],v=this.h[6],y=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var A=l(y,h(b),d(b,g,v),this.k[r],n[r]),E=c(p(a),f(a,i,o));y=v,v=g,g=b,b=c(M,A),M=o,o=i,i=a,a=c(A,E)}this.h[0]=c(this.h[0],a),this.h[1]=c(this.h[1],i),this.h[2]=c(this.h[2],o),this.h[3]=c(this.h[3],M),this.h[4]=c(this.h[4],b),this.h[5]=c(this.h[5],g),this.h[6]=c(this.h[6],v),this.h[7]=c(this.h[7],y)},r.prototype._digest=function(e){return"hex"===e?a.toHex32(this.h,"big"):a.split32(this.h,"big")}},function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;O.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=z,this.W=new Array(160)}function a(e,t,n,r,a){var i=e&n^~e&a;return i<0&&(i+=4294967296),i}function i(e,t,n,r,a,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function o(e,t,n,r,a){var i=e&n^e&a^n&a;return i<0&&(i+=4294967296),i}function s(e,t,n,r,a,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function c(e,t){var n=g(e,t,28),r=g(t,e,2),a=g(t,e,7),i=n^r^a;return i<0&&(i+=4294967296),i}function u(e,t){var n=v(e,t,28),r=v(t,e,2),a=v(t,e,7),i=n^r^a;return i<0&&(i+=4294967296),i}function l(e,t){var n=g(e,t,14),r=g(e,t,18),a=g(t,e,9),i=n^r^a;return i<0&&(i+=4294967296),i}function d(e,t){var n=v(e,t,14),r=v(e,t,18),a=v(t,e,9),i=n^r^a;return i<0&&(i+=4294967296),i}function f(e,t){var n=g(e,t,1),r=g(e,t,8),a=y(e,t,7),i=n^r^a;return i<0&&(i+=4294967296),i}function p(e,t){var n=v(e,t,1),r=v(e,t,8),a=A(e,t,7),i=n^r^a;return i<0&&(i+=4294967296),i}function h(e,t){var n=g(e,t,19),r=g(t,e,29),a=y(e,t,6),i=n^r^a;return i<0&&(i+=4294967296),i}function m(e,t){var n=v(e,t,19),r=v(t,e,29),a=A(e,t,6),i=n^r^a;return i<0&&(i+=4294967296),i}var _=n(127),M=n(470),b=n(105),g=_.rotr64_hi,v=_.rotr64_lo,y=_.shr64_hi,A=_.shr64_lo,E=_.sum64,w=_.sum64_hi,k=_.sum64_lo,T=_.sum64_4_hi,L=_.sum64_4_lo,S=_.sum64_5_hi,C=_.sum64_5_lo,O=M.BlockHash,z=[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];_.inherits(r,O),e.exports=r,r.blockSize=1024,r.outSize=512,r.hmacStrength=192,r.padLength=128,r.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 a=h(n[r-4],n[r-3]),i=m(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=f(n[r-30],n[r-29]),u=p(n[r-30],n[r-29]),l=n[r-32],d=n[r-31];n[r]=T(a,i,o,s,c,u,l,d),n[r+1]=L(a,i,o,s,c,u,l,d)}},r.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],f=this.h[1],p=this.h[2],h=this.h[3],m=this.h[4],_=this.h[5],M=this.h[6],g=this.h[7],v=this.h[8],y=this.h[9],A=this.h[10],T=this.h[11],L=this.h[12],O=this.h[13],z=this.h[14],N=this.h[15];b(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var P=z,x=N,j=l(v,y),R=d(v,y),Y=a(v,y,A,T,L),I=i(v,y,A,T,L,O),q=this.k[D],B=this.k[D+1],W=n[D],U=n[D+1],H=S(P,x,j,R,Y,I,q,B,W,U),F=C(P,x,j,R,Y,I,q,B,W,U);P=c(r,f),x=u(r,f),j=o(r,f,p,h,m),R=s(r,f,p,h,m,_);var X=w(P,x,j,R),V=k(P,x,j,R);z=L,N=O,L=A,O=T,A=v,T=y,v=w(M,g,H,F),y=k(g,g,H,F),M=m,g=_,m=p,_=h,p=r,h=f,r=w(H,F,X,V),f=k(H,F,X,V)}E(this.h,0,r,f),E(this.h,2,p,h),E(this.h,4,m,_),E(this.h,6,M,g),E(this.h,8,v,y),E(this.h,10,A,T),E(this.h,12,L,O),E(this.h,14,z,N)},r.prototype._digest=function(e){return"hex"===e?_.toHex32(this.h,"big"):_.split32(this.h,"big")}},function(e,t,n){function r(e,t){if(o.call(this,t),!s.isBuffer(e))return void this.error("Input not Buffer");this.base=e,this.offset=0,this.length=e.length}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof a||(e=new a(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=s.byteLength(e);else{if(!s.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}var i=n(20),o=n(472).Reporter,s=n(39).Buffer;i(r,o),t.DecoderBuffer=r,r.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},r.prototype.restore=function(e){var t=new r(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},r.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new r(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},r.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=a,a.prototype.join=function(e,t){return e||(e=new s(this.length)),t||(t=0),0===this.length?e:(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):s.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(1064)},function(e,t,n){function r(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new a,this.tree._init(e.body)}function a(e){u.Node.call(this,"der",e)}function i(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=d.tagClass[n>>6],a=0==(32&n);if(31==(31&n)){var i=n;for(n=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:a,tag:n,tagStr:d.tag[n]}}function o(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 a=127&r;if(a>4)return e.error("length octect is too long");r=0;for(var i=0;i<a;i++){r<<=8;var o=e.readUInt8(n);if(e.isError(o))return o;r|=o}return r}var s=n(20),c=n(471),u=c.base,l=c.bignum,d=c.constants.der;e.exports=r,r.prototype.decode=function(e,t){return e instanceof u.DecoderBuffer||(e=new u.DecoderBuffer(e,t)),this.tree._decode(e,t)},s(a,u.Node),a.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),a=i(e,'Failed to peek tag: "'+t+'"');return e.isError(a)?a:(e.restore(r),a.tag===t||a.tagStr===t||a.tagStr+"of"===t||n)},a.prototype._decodeTag=function(e,t,n){var r=i(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var a=o(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(a))return a;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==a)return e.skip(a,'Failed to match body of: "'+t+'"');var s=e.save(),c=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(c)?c:(a=e.offset-s.offset,e.restore(s),e.skip(a,'Failed to match body of: "'+t+'"'))},a.prototype._skipUntilEnd=function(e,t){for(;;){var n=i(e,t);if(e.isError(n))return n;var r=o(e,n.primitive,t);if(e.isError(r))return r;var a;if(a=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(a))return a;if("end"===n.tagStr)break}},a.prototype._decodeList=function(e,t,n,r){for(var a=[];!e.isEmpty();){var i=this._peekTag(e,"end");if(e.isError(i))return i;var o=n.decode(e,"der",r);if(e.isError(o)&&i)break;a.push(o)}return a},a.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 a="",i=0;i<r.length/2;i++)a+=String.fromCharCode(r.readUInt16BE(2*i));return a}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")},a.prototype._decodeObjid=function(e,t,n){for(var r,a=[],i=0;!e.isEmpty();){var o=e.readUInt8();i<<=7,i|=127&o,0==(128&o)&&(a.push(i),i=0)}128&o&&a.push(i);var s=a[0]/40|0,c=a[0]%40;if(r=n?a:[s,c].concat(a.slice(1)),t){var u=t[r.join(" ")];void 0===u&&(u=t[r.join(".")]),void 0!==u&&(r=u)}return r},a.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),a=0|n.slice(4,6),i=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");var r=0|n.slice(0,2),a=0|n.slice(2,4),i=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,a-1,i,o,s,c,0)},a.prototype._decodeNull=function(e){return null},a.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},a.prototype._decodeInt=function(e,t){var n=e.raw(),r=new l(n);return t&&(r=t[r.toString(10)]||r),r},a.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){function r(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new a,this.tree._init(e.body)}function a(e){l.Node.call(this,"der",e)}function i(e){return e<10?"0"+e:e}function o(e,t,n,r){var a;if("seqof"===e?e="seq":"setof"===e&&(e="set"),d.tagByName.hasOwnProperty(e))a=d.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);a=e}return a>=31?r.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=d.tagClassByName[n||"universal"]<<6)}var s=n(20),c=n(39).Buffer,u=n(471),l=u.base,d=u.constants.der;e.exports=r,r.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},s(a,l.Node),a.prototype._encodeComposite=function(e,t,n,r){var a=o(e,t,n,this.reporter);if(r.length<128){var i=new c(2);return i[0]=a,i[1]=r.length,this._createEncoderBuffer([i,r])}for(var s=1,u=r.length;u>=256;u>>=8)s++;var i=new c(2+s);i[0]=a,i[1]=128|s;for(var u=1+s,l=r.length;l>0;u--,l>>=8)i[u]=255&l;return this._createEncoderBuffer([i,r])},a.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new c(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)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},a.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(var 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])}for(var a=0,r=0;r<e.length;r++){var i=e[r];for(a++;i>=128;i>>=7)a++}for(var o=new c(a),s=o.length-1,r=e.length-1;r>=0;r--){var i=e[r];for(o[s--]=127&i;(i>>=7)>0;)o[s--]=128|127&i}return this._createEncoderBuffer(o)},a.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[i(r.getFullYear()),i(r.getUTCMonth()+1),i(r.getUTCDate()),i(r.getUTCHours()),i(r.getUTCMinutes()),i(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[i(r.getFullYear()%100),i(r.getUTCMonth()+1),i(r.getUTCDate()),i(r.getUTCHours()),i(r.getUTCMinutes()),i(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},a.prototype._encodeNull=function(){return this._createEncoderBuffer("")},a.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&&!c.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new c(n)}if(c.isBuffer(e)){var r=e.length;0===e.length&&r++;var a=new c(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]);for(var r=1,i=e;i>=256;i>>=8)r++;for(var a=new Array(r),i=a.length-1;i>=0;i--)a[i]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new c(a))},a.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},a.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},a.prototype._skipDefault=function(e,t,n){var r,a=this._baseState;if(null===a.default)return!1;var i=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),i.length!==a.defaultBuffer.length)return!1;for(r=0;r<i.length;r++)if(i[r]!==a.defaultBuffer[r])return!1;return!0}},function(e,t){e.exports={"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){(function(t){function r(e){var n=new t(4);return n.writeUInt32BE(e,0),n}var a=n(467);e.exports=function(e,n){for(var i,o=new t(""),s=0;o.length<n;)i=r(s++),o=t.concat([o,a("sha1").update(e).update(i).digest()]);return o.slice(0,n)}}).call(t,n(39).Buffer)},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){(function(t){function r(e,n){return new t(e.toRed(a.mont(n.modulus)).redPow(new a(n.publicExponent)).fromRed().toArray())}var a=n(57);e.exports=r}).call(t,n(39).Buffer)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1080),i=r(a),o=n(1083),s=r(o);t.default=function(){function e(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=(0,s.default)(e);!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,i.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(24),y=r(v);n(1092);var A=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=(0,g.default)(this.props.className,"dops-section-header");return M.default.createElement(y.default,{compact:!0,className:e},M.default.createElement("div",{className:"dops-section-header__label"},M.default.createElement("span",{className:"dops-section-header__label-text"},this.props.label)),M.default.createElement("div",{className:"dops-section-header__actions"},this.props.children))}}]),t}(M.default.Component);A.displayName="SectionHeader",A.propTypes={label:m.default.string},A.defaultProps={label:""},t.default=A,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(163),E=r(A),w=n(15),k=r(w),T=n(27),L=r(T),S=n(28),C=n(506),O=r(C),z=n(850),N=r(z),D=n(912),P=r(D),x=n(21),j=n(210),R=n(62),Y=n(61),I=function(e,t){return k.default.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t})},q=function(e,t){return function(){return I(e,t)}},B=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.getProActions=function(e,t){var n="",a=!1,i=!1,o="";switch(e){case"threats":n="is-error",r.props.isCompact?i=(0,g.translate)("Threats",{context:"A caption for a small button to fix security issues."}):(a=(0,g.translate)("Threats found!",{context:"Short warning message about new threats found."}),i=(0,g.translate)("FIX",{context:"A caption for a small button to fix security issues."})),o="https://dashboard.vaultpress.com/";break;case"free":case"personal":e="upgrade",n="is-warning",r.props.isCompact||(a=(0,g.translate)("No scanning",{context:"Short warning message about site having no security scan."})),i=(0,g.translate)("Upgrade",{context:"Caption for a button to purchase a paid feature."}),o="https://jetpack.com/redirect/?source=upgrade&site="+r.props.siteRawUrl;break;case"pro":e="upgrade",n="is-warning",i=(0,g.translate)("Upgrade",{context:"Caption for a button to purchase a pro plan."}),o="https://jetpack.com/redirect/?source=plans-business&site="+r.props.siteRawUrl;break;case"secure":n="is-success",a=(0,g.translate)("Secure",{context:"Short message informing user that the site is secure."});break;case"invalid_key":n="is-warning",i=(0,g.translate)("Invalid key",{context:"Short warning message about an invalid key being used for Akismet."}),o=r.props.siteAdminUrl+"admin.php?page=akismet-key-config";break;case"rewind_connected":return M.default.createElement(E.default,{showDismiss:!1,status:"is-success",isCompact:!0},(0,g.translate)("Connected"));case"active":return M.default.createElement("span",{className:"jp-dash-item__active-label"},(0,g.translate)("ACTIVE"))}return M.default.createElement(E.default,{showDismiss:!1,status:n,isCompact:!0},a,i&&M.default.createElement("a",{className:"dops-notice__text-no-underline",onClick:q(e,t),href:o},i))},r.getSetUpButton=function(e){return M.default.createElement(y.default,{onClick:q("set_up",e),compact:!0,primary:!0,href:"https://wordpress.com/plugins/setup/"+r.props.siteRawUrl+"?only="+e},(0,g.translate)("Set up",{context:"Caption for a button to set up a feature."}))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{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 a=/jetpack_personal*/.test(t.product_slug),i=/jetpack_free*/.test(t.product_slug),o=/jetpack_premium*/.test(t.product_slug),s=(0,L.default)(n,["data","features","backups"],!1),c=(0,L.default)(n,["data","features","security"],!1);return M.default.createElement("div",null,M.default.createElement(O.default,null),M.default.createElement(P.default,null),M.default.createElement(N.default,null),!this.props.isDevMode&&function(u,l,d){switch(u){case"rewind":return e.getProActions("rewind_connected","rewind");case"backups":if(i&&!s&&e.props.isCompact)return e.getProActions("free","backups");break;case"scan":if(e.props.fetchingSiteData||e.props.isFetchingVaultPressData)return"";if((i||a)&&!c)return e.props.isCompact?e.getProActions("free","scan"):a&&!s?e.getSetUpButton("backups"):"";if("N/A"!==n)return c?e.getProActions(0===e.props.getScanThreats()?"secure":"threats","scan"):e.getSetUpButton("scan");break;case"search":return i||a||o?e.getProActions("pro"):"";case"akismet":if(i&&(!l||!d))return e.props.isCompact?e.getProActions("free","anti-spam"):"";if(!e.props.isAkismetKeyValid&&!e.props.fetchingAkismetData&&l&&d)return e.getProActions("invalid_key","anti-spam")}return t.product_slug&&r&&!i?l&&d?e.getProActions("active"):e.getSetUpButton(u):""}(this.props.proFeature,this.props.pluginActive(r),this.props.pluginInstalled(r)))}}]),t}(M.default.Component);B.propTypes={isCompact:m.default.bool,proFeature:m.default.string},B.defaultProps={isCompact:!0,proFeature:""},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,S.getSiteRawUrl)(e),siteAdminUrl:(0,S.getSiteAdminUrl)(e),getScanThreats:function(){return(0,R.getVaultPressScanThreatCount)(e)},getVaultPressData:function(){return(0,R.getVaultPressData)(e)},getAkismetData:function(){return(0,R.getAkismetData)(e)},isFetchingVaultPressData:(0,R.isFetchingVaultPressData)(e),sitePlan:function(){return(0,Y.getSitePlan)(e)},fetchingPluginsData:(0,j.isFetchingPluginsData)(e),pluginActive:function(t){return(0,j.isPluginActive)(e,t)},pluginInstalled:function(t){return(0,j.isPluginInstalled)(e,t)},isDevMode:(0,x.isDevMode)(e),fetchingSiteData:(0,Y.isFetchingSiteData)(e),isAkismetKeyValid:(0,R.isAkismetKeyValid)(e),fetchingAkismetData:(0,R.isFetchingAkismetData)(e)}})(B),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(19),M=n(62),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.defaultProps={checkAkismetKey:function(){}},t.default=(0,m.connect)(function(e){return{checkAkismetKey:(0,M.checkAkismetKey)(),isCheckingAkismetKey:(0,M.isCheckingAkismetKey)(e)}},function(e){return(0,_.bindActionCreators)({checkAkismetKey:M.checkAkismetKey},e)})(b),e.exports=t.default},function(e,t){function n(e){return r.test(e)}var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(8),g=n(15),v=r(g),y=n(1101),A=r(y),E=n(515),w=r(E);n(1104);var k=function(e){function t(){(0,s.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments));return e.getModule=e.getModule.bind(e),e.trackInfoClick=e.trackInfoClick.bind(e),e.trackLearnMoreClick=e.trackLearnMoreClick.bind(e),e.trackPrivacyInfoClick=e.trackPrivacyInfoClick.bind(e),e}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getModule",value:function(){return this.props.module||{}}},{key:"trackInfoClick",value:function(){v.default.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}},{key:"trackLearnMoreClick",value:function(){v.default.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}},{key:"trackPrivacyInfoClick",value:function(){v.default.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"),M.default.createElement("div",{className:"jp-support-info"},M.default.createElement(A.default,{position:"left",onClick:this.trackInfoClick,screenReaderText:(0,b.translate)("Learn more")},t+" ",M.default.createElement("span",{className:"jp-support-info__learn-more"},M.default.createElement(w.default,{href:n,onClick:this.trackLearnMoreClick,target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Learn more"))),M.default.createElement("span",{className:"jp-support-info__privacy"},M.default.createElement(w.default,{href:r,onClick:this.trackPrivacyInfoClick,target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Privacy information")))))}}]),t}(_.Component);k.propTypes={module:m.default.object,text:m.default.string,link:m.default.string,privacyLink:m.default.string},k.defaultProps={module:void 0,text:"",link:"",privacyLink:""},t.default=k,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectButton=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(41),v=r(g),y=n(8),A=n(15),E=r(A),w=n(21),k=n(28),T=n(128),L=r(T),S=n(1163),C=r(S);n(1168);var O=t.ConnectButton=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={showModal:!1},r.handleOpenModal=function(e){E.default.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),r.toggleVisibility()},r.disconnectSite=function(){r.toggleVisibility(),r.props.disconnectSite()},r.toggleVisibility=function(){r.setState({showModal:!r.state.showModal})},r.renderUserButton=function(){if(r.props.isLinked)return M.default.createElement("div",null,M.default.createElement("a",{role:"button",tabIndex:"0",className:"jp-jetpack-unlink__button",onKeyDown:(0,L.default)(r.props.unlinkUser),onClick:r.props.unlinkUser,disabled:r.props.isUnlinking},(0,y.translate)("Unlink me from WordPress.com")));var e=r.props.connectUrl;r.props.from&&(e+="&from="+r.props.from,e+="&additional-user");var t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:r.props.fetchingConnectUrl},n=(0,y.translate)("Link to WordPress.com");return r.props.asLink?M.default.createElement("a",t,n):M.default.createElement(v.default,t,n)},r.renderContent=function(){
34
+ if(r.props.connectUser)return r.renderUserButton();if(r.props.isSiteConnected)return M.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,L.default)(r.handleOpenModal),onClick:r.handleOpenModal,disabled:r.props.isDisconnecting},(0,y.translate)("Manage site connection"));var e=r.props.connectUrl;r.props.from&&(e+="&from="+r.props.from);var t={className:"jp-jetpack-connect__button",href:e,disabled:r.props.fetchingConnectUrl},n=(0,y.translate)("Set up Jetpack");return r.props.asLink?M.default.createElement("a",t,n):M.default.createElement(v.default,t,n)},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return M.default.createElement("div",null,!this.props.isSiteConnected&&M.default.createElement("p",{className:"jp-banner__tos-blurb"},(0,y.translate)("By clicking the button below, you agree to our {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com.",{components:{tosLink:M.default.createElement("a",{href:"https://wordpress.com/tos",rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:M.default.createElement("a",{href:"https://jetpack.com/support/what-data-does-jetpack-sync",rel:"noopener noreferrer",target:"_blank"})}})),this.renderContent(),this.props.children,M.default.createElement(C.default,{show:this.state.showModal,toggleModal:this.toggleVisibility,disconnectSite:this.disconnectSite}))}}]),t}(M.default.Component);O.displayName="ConnectButton",O.propTypes={connectUser:m.default.bool,from:m.default.string,asLink:m.default.bool},O.defaultProps={connectUser:!1,from:"",asLink:!1},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,k.getSiteRawUrl)(e),isSiteConnected:(0,w.getSiteConnectionStatus)(e),isDisconnecting:(0,w.isDisconnectingSite)(e),fetchingConnectUrl:(0,w.isFetchingConnectUrl)(e),connectUrl:(0,w.getConnectUrl)(e),isLinked:(0,w.isCurrentUserLinked)(e),isUnlinking:(0,w.isUnlinkingUser)(e)}},function(e){return{disconnectSite:function(){return e((0,w.disconnectSite)())},unlinkUser:function(){return e((0,w.unlinkUser)())}}})(O)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(498),s=r(o),c=n(1170),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(909),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(15),E=r(A),w=n(1171),k=r(w),T=n(27),L=r(T),S=n(30),C=n(918),O=r(C),z=n(1172),N=r(z),D=n(1173),P=r(D),x=n(1185),j=r(x),R=n(1187),Y=r(R),I=n(1188),q=r(I),B=n(1189),W=r(B),U=n(1191),H=r(U),F=n(1192),X=r(F),V=n(1194),K=r(V),J=n(1195),G=r(J),Q=n(1196),$=r(Q),Z=n(506),ee=r(Z),te=n(211),ne=r(te),re=n(28),ae=n(21),ie=n(23),oe=function(e){return e.map(function(e){return[e.header,(0,k.default)(e.cards,2).map(function(e){var t=(0,M.default)(e,2),n=t[0],r=t[1];return g.default.createElement("div",{className:"jp-at-a-glance__item-grid"},g.default.createElement("div",{className:"jp-at-a-glance__left"},n),g.default.createElement("div",{className:"jp-at-a-glance__right"},r))})]})},se=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={updateOptions:this.props.updateOptions,getOptionValue:this.props.getOptionValue,isUpdating:this.props.isUpdating},t={siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl},n=function(){return E.default.tracks.recordJetpackClick("aag_manage_security_wpcom")},r=g.default.createElement(O.default,{label:(0,y.translate)("Security"),settingsPath:this.props.userCanManageModules?"#security":void 0,externalLink:this.props.isDevMode||!this.props.userCanManageModules?"":(0,y.translate)("Manage security on WordPress.com"),externalLinkPath:this.props.isDevMode?"":"https://wordpress.com/settings/security/"+this.props.siteRawUrl,externalLinkClick:n}),a=g.default.createElement("div",null,g.default.createElement(O.default,{label:(0,y.translate)("Connections")}),g.default.createElement($.default,null)),o="active"===(0,L.default)(this.props.rewindStatus,["state"],!1),s=[g.default.createElement(q.default,(0,i.default)({},e,{siteRawUrl:this.props.siteRawUrl,isRewindActive:o})),g.default.createElement(H.default,(0,i.default)({},e,{siteRawUrl:this.props.siteRawUrl,isRewindActive:o})),g.default.createElement(W.default,t),g.default.createElement(X.default,(0,i.default)({},e,t))];if("inactive"!==this.props.getModuleOverride("protect")&&s.push(g.default.createElement(j.default,e)),"inactive"!==this.props.getModuleOverride("monitor")&&s.push(g.default.createElement(Y.default,e)),o&&s.unshift(g.default.createElement(N.default,(0,i.default)({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules){var c=[{header:r,cards:s}],u=[];return"inactive"!==this.props.getModuleOverride("photon")&&u.push(g.default.createElement(K.default,e)),"inactive"!==this.props.getModuleOverride("search")&&u.push(g.default.createElement(G.default,e)),u.length&&c.push({header:g.default.createElement(O.default,{label:(0,y.translate)("Performance")}),cards:u}),g.default.createElement("div",{className:"jp-at-a-glance"},g.default.createElement(ee.default,null),g.default.createElement(ne.default,null),g.default.createElement(P.default,(0,i.default)({},e,t)),oe(c),a)}var l="";this.props.userCanViewStats&&(l=g.default.createElement(P.default,(0,i.default)({},e,t)));var d="";return this.props.getOptionValue("protect")&&(d=g.default.createElement(j.default,e)),this.props.userIsSubscriber?g.default.createElement("div",null,l,a):g.default.createElement("div",null,l,this.props.getOptionValue("protect")&&r,d,a)}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{userCanManageModules:(0,re.userCanManageModules)(e),userCanViewStats:(0,re.userCanViewStats)(e),userIsSubscriber:(0,re.userIsSubscriber)(e),isDevMode:(0,ae.isDevMode)(e),getModuleOverride:function(t){return(0,ie.getModuleOverride)(e,t)}}})((0,S.ModuleSettingsForm)(se)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DashSectionHeader=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(65),y=r(v),A=n(8),E=n(15),w=r(E),k=t.DashSectionHeader=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackCogClick=function(){w.default.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=void 0,t=void 0,n=void 0,r=(0,g.default)(this.props.className,"jp-dash-section-header");return this.props.settingsPath&&(e=M.default.createElement("a",{className:"jp-dash-section-header__settings",href:this.props.settingsPath},M.default.createElement("span",{className:"screen-reader-text"},(0,A.translate)("Settings",{context:"Noun. Displayed to screen readers."})),M.default.createElement(y.default,{onClick:this.trackCogClick,icon:"cog",size:16}))),this.props.externalLink&&(t=M.default.createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(n=M.default.createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),M.default.createElement("div",{className:r},M.default.createElement("div",{className:"jp-dash-section-header__label"},M.default.createElement("h2",{className:"jp-dash-section-header__name"},this.props.label),e),t,n)}}]),t}(M.default.Component);k.displayName="DashSectionHeader",k.propTypes={label:m.default.string.isRequired,settingsPath:m.default.string,externalLinkPath:m.default.string,externalLink:m.default.string,externalLinkClick:m.default.func},k.defaultProps={label:"",settingsPath:"",externalLinkPath:"",externalLink:""},t.default=k},function(e,t,n){function r(e,t,n){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),a(e,t,{leading:r,maxWait:t,trailing:s})}var a=n(504),i=n(42),o="Expected a function";e.exports=r},function(e,t,n){"use strict";function r(e){return"undefined"==typeof DOMParser?e:(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(8),M=n(518),b=r(M),g=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("VideoPress allows you to upload videos from your computer to be hosted on WordPress.com, rather than on your host’s servers. You can then insert these on your self-hosted Jetpack site. ")),m.default.createElement(b.default,{module_slug:"videopress"}))}}]),t}(m.default.Component);t.default=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(149),i=r(a),o=n(1),s=r(o),c=n(10),u=n(274),l=n(218),d=n(646),f=n(25),p=(r(f),n(928)),h=r(p),m=n(934),_=r(m),M=n(660),b=r(M),g=n(8),v=r(g),y=n(935),A=r(y),E=n(16);!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(E);(0,h.default)(),(0,_.default)();var w=window.Initial_State;w.locale=JSON.parse(w.locale),void 0!==w.locale[""]?(w.locale[""].localeSlug=w.localeSlug,Number.prototype.realToLocaleString=Number.prototype.toLocaleString,Number.prototype.toLocaleString=function(e,t){return e=e||w.localeSlug,t=t||{},this.realToLocaleString(e,t)}):w.locale={"":{localeSlug:w.localeSlug}},v.default.setLocale(w.locale);var k=(0,u.useRouterHistory)(d.createHashHistory)(),T=(0,l.syncHistoryWithStore)(k,b.default);!function(){var e=document.getElementById("jp-plugin-container");null!==e&&i.default.render(s.default.createElement("div",null,s.default.createElement(c.Provider,{store:b.default},s.default.createElement(u.Router,{history:T},s.default.createElement(u.Route,{path:"/",name:v.default.translate("At A Glance",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/jumpstart",component:A.default}),s.default.createElement(u.Route,{path:"/dashboard",name:v.default.translate("At A Glance"),component:A.default}),s.default.createElement(u.Route,{path:"/plans",name:v.default.translate("Plans",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/settings",name:v.default.translate("Settings",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/discussion",name:v.default.translate("Discussion",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/security",name:v.default.translate("Security",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/traffic",name:v.default.translate("Traffic",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/writing",name:v.default.translate("Writing",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/sharing",name:v.default.translate("Sharing",{context:"Navigation item."}),component:A.default}),s.default.createElement(u.Route,{path:"/wpbody-content",component:A.default}),s.default.createElement(u.Route,{path:"/wp-toolbar",component:A.default}),s.default.createElement(u.Route,{path:"/privacy",component:A.default}),s.default.createElement(u.Route,{path:"*",component:A.default})))),e)}()},function(e,t,n){"use strict";var r=n(22),a=n(519),i=n(859),o=n(95),s=n(53),c=n(601),u=n(925),l=n(860),d=n(926);n(13);a.inject();var f={findDOMNode:u,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:c,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:d};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=l(e)),e?r.getNodeFromInstance(e):null}},Mount:i,Reconciler:o});e.exports=f},function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};e.exports=r},function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=o.get(e);if(t)return t=s(t),t?i.getNodeFromInstance(t):null;"function"==typeof e.render?a("44"):a("45",Object.keys(e))}var a=n(12),i=(n(66),n(22)),o=n(134),s=n(860);n(9),n(13);e.exports=r},function(e,t,n){"use strict";var r=n(859);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(29),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(119),s=n(153),c=function(e){var t=function(t){var n=e();if("string"==typeof n)return(t||window.event).returnValue=n,n};return(0,o.addEventListener)(window,"beforeunload",t),function(){return(0,o.removeEventListener)(window,"beforeunload",t)}},u=function(e){return s.canUseDOM||(0,i.default)(!1),function(t){var n=e(t),a=[],i=void 0,o=function(){for(var e=void 0,t=0,n=a.length;null==e&&t<n;++t)e=a[t].call();return e};return r({},n,{listenBeforeUnload:function(e){return 1===a.push(e)&&(i=c(o)),function(){a=a.filter(function(t){return t!==e}),0===a.length&&i&&(i(),i=null)}}})}};t.default=u},function(e,t,n){var r=(n(9),n(929)),a=!1;e.exports=function(e){e=e||{};var t=e.shouldRejectClick||r;a=!0,n(94).injection.injectEventPluginsByName({TapEventPlugin:n(930)(t)})}},function(e,t){e.exports=function(e,t){if(e&&t-e<750)return!0}},function(e,t,n){"use strict";function r(e,t){var n=l.extractSingleTouch(t);return n?n[e.page]:e.page in t?t[e.page]:t[e.client]+d[e.envScroll]}function a(e,t){var n=r(v.x,t),a=r(v.y,t);return Math.pow(Math.pow(n-e.x,2)+Math.pow(a-e.y,2),.5)}function i(e){return{tapMoveThreshold:_,ignoreMouseThreshold:M,eventTypes:E,extractEvents:function(t,n,i,o){if(!p(t)&&!h(t))return null;if(m(t))g=w();else if(e(g,w()))return null;var s=null,l=a(b,i);return h(t)&&l<_&&(s=u.getPooled(E.touchTap,n,i,o)),p(t)?(b.x=r(v.x,i),b.y=r(v.y,i)):h(t)&&(b.x=0,b.y=0),c.accumulateTwoPhaseDispatches(s),s}}}var o=n(931),s=n(150),c=n(93),u=n(96),l=n(932),d=n(213),f=n(933),p=(o.topLevelTypes,s.isStartish),h=s.isEndish,m=function(e){return["topTouchCancel","topTouchEnd","topTouchStart","topTouchMove"].indexOf(e)>=0},_=10,M=750,b={x:null,y:null},g=null,v={x:{page:"pageX",client:"clientX",envScroll:"currentPageScrollLeft"},y:{page:"pageY",client:"clientY",envScroll:"currentPageScrollTop"}},y=["topTouchStart","topTouchCancel","topTouchEnd","topTouchMove"],A=["topMouseDown","topMouseMove","topMouseUp"].concat(y),E={touchTap:{phasedRegistrationNames:{bubbled:f({onTouchTap:null}),captured:f({onTouchTapCapture:null})},dependencies:A}},w=function(){return Date.now?Date.now:function(){return+new Date}}();e.exports=i},function(e,t,n){"use strict";var r={topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null},a={topLevelTypes:r};e.exports=a},function(e,t){var n={extractSingleTouch:function(e){var t=e.touches,n=e.changedTouches,r=t&&t.length>0,a=n&&n.length>0;return!r&&a?n[0]:r?t[0]:e}};e.exports=n},function(e,t,n){"use strict";var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=r},function(e,t,n){"use strict";function r(){document.addEventListener("keydown",function(e){i||-1!==a.indexOf(e.keyCode)&&(i=!0,document.documentElement.classList.add("dops-accessible-focus"))}),document.addEventListener("mouseup",function(){i&&(i=!1,document.documentElement.classList.remove("dops-accessible-focus"))})}var a=[9,32,37,38,39,40],i=!1;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(44),b=r(M),g=n(646),v=n(274),y=n(8),A=n(798),E=r(A),w=n(861),k=r(w),T=n(868),L=r(T),S=n(869),C=r(S),O=n(1162),z=r(O),N=n(1169),D=r(N),P=n(916),x=n(21),j=n(28),R=n(103),Y=n(73),I=n(917),q=r(I),B=n(1198),W=r(B),U=n(852),H=r(U),F=n(1210),X=r(F),V=n(1211),K=r(V),J=n(1212),G=r(J),Q=n(1213),$=r(Q),Z=n(1225),ee=r(Z),te=n(1226),ne=r(te),re=n(15),ae=r(re),ie=n(56),oe=r(ie),se=n(1227),ce=r(se),ue=n(1231),le=r(ue),de=n(476),fe=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.onBeforeUnload=function(){if(r.props.areThereUnsavedSettings){if(!confirm((0,y.translate)("There are unsaved settings in this tab that will be lost if you leave it. Proceed?")))return!1;r.props.clearUnsavedSettingsFlag()}},r.routerWillLeave=function(){if(r.props.areThereUnsavedSettings){if(!confirm((0,y.translate)("There are unsaved settings in this tab that will be lost if you leave it. Proceed?")))return!1;window.setTimeout(r.props.clearUnsavedSettingsFlag,10)}},r.initializeAnalyitics=function(){var e=r.props.tracksUserData;e&&ae.default.initialize(e.userid,e.username)},r.handleJumpstart=function(e){var t=(0,g.createHistory)(),n=e.jumpStartStatus,a=e.isJumpstarting;!r.props.jumpStartStatus&&n&&(window.location.hash="jumpstart",t.push(window.location.pathname+"?page=jetpack#/jumpstart")),!r.props.jumpStartStatus||n||a||(window.location.hash="dashboard",t.push(window.location.pathname+"?page=jetpack#/dashboard"))},r.renderMainContent=function(e){if(r.props.isSiteConnected&&ae.default.tracks.recordEvent("jetpack_wpa_page_view",{path:e}),!r.props.userCanManageModules)return!!r.props.siteConnectionStatus&&m.default.createElement("div",{"aria-live":"assertive"},m.default.createElement(G.default,r.props));if(!r.props.siteConnectionStatus&&r.props.userCanConnectSite)return m.default.createElement("div",{"aria-live":"assertive"},m.default.createElement(z.default,null));if(r.props.isSiteConnected&&r.props.jumpStartStatus)if((0,b.default)(["/","/dashboard"],e)){window.location.hash="jumpstart";var t=(0,g.createHistory)();t.push(window.location.pathname+"?page=jetpack#/jumpstart")}else if("/jumpstart"===e)return m.default.createElement("div",{"aria-live":"assertive"},m.default.createElement(D.default,null));var n=m.default.createElement(L.default,{route:r.props.route,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl}),a=void 0,i=m.default.createElement(k.default,{route:r.props.route});switch(e){case"/dashboard":a=m.default.createElement(q.default,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus});break;case"/plans":a=m.default.createElement(W.default,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus});break;case"/settings":case"/general":case"/engagement":case"/security":case"/traffic":case"/discussion":case"/writing":case"/sharing":case"/privacy":i=n,a=m.default.createElement(C.default,{route:r.props.route,siteAdminUrl:r.props.siteAdminUrl,siteRawUrl:r.props.siteRawUrl,searchTerm:r.props.searchTerm,rewindStatus:r.props.rewindStatus});break;default:(0,g.createHistory)().replace(window.location.pathname+"?page=jetpack#/dashboard"),a=m.default.createElement(q.default,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus})}return window.wpNavMenuClassChange(),m.default.createElement("div",{"aria-live":"assertive"},i,a,m.default.createElement(ce.default,{siteRawUrl:r.props.siteRawUrl,newPlanActivated:r.props.newPlanActivated,userCanManageModules:r.props.userCanManageModules}))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.setInitialState(),oe.default.setApiRoot(this.props.apiRoot),oe.default.setApiNonce(this.props.apiNonce),this.initializeAnalyitics(),window.addEventListener("beforeunload",this.onBeforeUnload),this.props.router.listenBefore(this.routerWillLeave)}},{key:"shouldComponentUpdate",value:function(e){return!(0,b.default)(["/wpbody-content","/wp-toolbar"],e.route.path)&&(e.siteConnectionStatus!==this.props.siteConnectionStatus||e.jumpStartStatus!==this.props.jumpStartStatus||e.isLinked!==this.props.isLinked||e.route.path!==this.props.route.path||e.searchTerm!==this.props.searchTerm||e.newPlanActivated!==this.props.newPlanActivated||e.rewindStatus!==this.props.rewindStatus)}},{key:"componentDidUpdate",value:function(e){if(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:"componentWillReceiveProps",value:function(e){e.jumpStartStatus===this.props.jumpStartStatus&&e.isJumpstarting===this.props.isJumpstarting||this.handleJumpstart(e)}},{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement(E.default,{route:this.props.route}),m.default.createElement("div",{className:"jp-lower"},this.props.isSiteConnected&&m.default.createElement(le.default,null),m.default.createElement(ee.default,null),m.default.createElement($.default,null),this.renderMainContent(this.props.route.path),!this.props.jumpStartStatus&&m.default.createElement(X.default,{path:this.props.route.path}),!this.props.jumpStartStatus&&m.default.createElement(K.default,null)),m.default.createElement(H.default,{siteAdminUrl:this.props.siteAdminUrl}),m.default.createElement(ne.default,{analytics:ae.default}))}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{jumpStartStatus:(0,P.getJumpStartStatus)(e),isJumpstarting:(0,P.isJumpstarting)(e),siteConnectionStatus:(0,x.getSiteConnectionStatus)(e),isLinked:(0,x.isCurrentUserLinked)(e),siteRawUrl:(0,j.getSiteRawUrl)(e),siteAdminUrl:(0,j.getSiteAdminUrl)(e),searchTerm:(0,Y.getSearchTerm)(e),apiRoot:(0,j.getApiRootUrl)(e),apiNonce:(0,j.getApiNonce)(e),tracksUserData:(0,j.getTracksUserData)(e),areThereUnsavedSettings:(0,R.areThereUnsavedSettings)(e),userCanManageModules:(0,j.userCanManageModules)(e),userCanConnectSite:(0,j.userCanConnectSite)(e),isSiteConnected:(0,x.isSiteConnected)(e),newPlanActivated:(0,R.showWelcomeForNewPlan)(e),rewindStatus:(0,de.getRewindStatus)(e)}},function(e){return{setInitialState:function(){return e((0,j.setInitialState)())},clearUnsavedSettingsFlag:function(){return e((0,R.clearUnsavedSettingsFlag)())}}})((0,v.withRouter)(fe)),window.wpNavMenuClassChange=function(){var e=window.location.hash,t=["#/settings","#/general","#/discussion","#/security","#/traffic","#/writing","#/sharing","#/privacy"],n=["#/","#/dashboard","#/plans"];if(jQuery(".current").each(function(e,t){jQuery(t).removeClass("current")}),e=e.split("?")[0],(0,b.default)(n,e)){jQuery("#toplevel_page_jetpack").find("li").filter(function(e){return 1===e})[0].classList.add("current")}else if((0,b.default)(t,e)){var r=jQuery("#toplevel_page_jetpack").find("li").filter(function(e){return 2===e});r[0].classList.add("current")}var a=jQuery("body");a.on("click",'a[href$="#/dashboard"], a[href$="#/settings"], .jp-dash-section-header__settings[href="#/security"], .dops-button[href="#/plans"]',function(){window.scrollTo(0,0)}),a.on("click",".jetpack-js-stop-propagation",function(e){e.stopPropagation()})},e.exports=t.default},function(e,t,n){function r(e,t){return a(e,t)}var a=n(231);e.exports=r},function(e,t,n){var r=n(46),a=function(){return r.Date.now()};e.exports=a},function(e,t,n){function r(e,t){var n=-1,r=i(e)?Array(e.length):[];return a(e,function(e,a,i){r[++n]=t(e,a,i)}),r}var a=n(148),i=n(54);e.exports=r},function(e,t,n){function r(e,t,n){t=a(t,e);var r=-1,s=t.length;for(s||(s=1,e=void 0);++r<s;){var c=null==e?void 0:e[o(t[r])];void 0===c&&(r=s,c=n),e=i(c)?c.call(e):c}return e}var a=n(101),i=n(155),o=n(90);e.exports=r},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return h.createElement("li",{className:"dops-select-dropdown__separator"})}}]),t}(h.Component);e.exports=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=m.default.Component,M=function(e){return e.stopPropagation()},b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("li",{onClick:M,className:"dops-select-dropdown__label"},m.default.createElement("label",null,this.props.children))}}]),t}(_);t.default=b,e.exports=t.default},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(102)("calypso:url-search"),a=n(948),i=n(950);e.exports={getInitialState:function(){return{searchOpen:!1}},componentWillReceiveProps:function(e){e.search||this.setState({searchOpen:!1})},doSearch:function(e){var t=void 0;if(this.setState({searchOpen:!1!==e}),this.onSearch)return void this.onSearch(e);t=this.buildUrl&&"function"==typeof this.buildUrl?this.buildUrl(window.location.href,e):i(window.location.href,e),r("search posts for:",e),this.props.search&&e?(r("replacing URL: "+t),a.replace(t)):(r("setting URL: "+t),a(t))},getSearchOpen:function(){return!1!==this.state.searchOpen||this.props.search}}},function(e,t,n){"use strict";(function(t){function r(e,t){if("function"==typeof e)return r("*",e);if("function"==typeof t)for(var n=new s(e),a=1;a<arguments.length;++a)r.callbacks.push(n.middleware(arguments[a]));else"string"==typeof e?r["string"==typeof t?"redirect":"show"](e,t):r.start(e)}function a(e){if(!e.handled){var t;t=g?b+m.hash.replace("#!",""):m.pathname+m.search,t!==e.canonicalPath&&(r.stop(),e.handled=!1,m.href=e.canonicalPath)}}function i(e){return"string"!=typeof e?e:M?decodeURIComponent(e.replace(/\+/g," ")):e}function o(e,t){"/"===e[0]&&0!==e.indexOf(b)&&(e=b+(g?"#!":"")+e);var n=e.indexOf("?");if(this.canonicalPath=e,this.path=e.replace(b,"")||"/",g&&(this.path=this.path.replace("#!","")||"/"),this.title=document.title,this.state=t||{},this.state.path=e,this.querystring=~n?i(e.slice(n+1)):"",this.pathname=i(~n?e.slice(0,n):e),this.params={},this.hash="",!g){if(!~this.path.indexOf("#"))return;var r=this.path.split("#");this.path=r[0],this.hash=i(r[1])||"",this.querystring=this.querystring.split("#")[0]}}function s(e,t){t=t||{},this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=d(this.path,this.keys=[],t)}function c(e){if(1===u(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 a=n.getAttribute("href");if((g||n.pathname!==m.pathname||!n.hash&&"#"!==a)&&!(a&&a.indexOf("mailto:")>-1)&&!n.target&&l(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 o=i;0===i.indexOf(b)&&(i=i.substr(b.length)),g&&(i=i.replace("#!","")),b&&o===i||(e.preventDefault(),r.show(o))}}}}function u(e){return e=e||window.event,null===e.which?e.button:e.which}function l(e){var t=m.protocol+"//"+m.hostname;return m.port&&(t+=":"+m.port),e&&0===e.indexOf(t)}var d=n(949);e.exports=r;var f,p,h="undefined"!=typeof document&&document.ontouchstart?"touchstart":"click",m="undefined"!=typeof window&&(window.history.location||window.location),_=!0,M=!0,b="",g=!1;r.callbacks=[],r.exits=[],r.current="",r.len=0,r.base=function(e){if(0===arguments.length)return b;b=e},r.start=function(e){if(e=e||{},!f&&(f=!0,!1===e.dispatch&&(_=!1),!1===e.decodeURLComponents&&(M=!1),!1!==e.popstate&&window.addEventListener("popstate",v,!1),!1!==e.click&&document.addEventListener(h,c,!1),!0===e.hashbang&&(g=!0),_)){var t=g&&~m.hash.indexOf("#!")?m.hash.substr(2)+m.search:m.pathname+m.search+m.hash;r.replace(t,null,!0,_)}},r.stop=function(){f&&(r.current="",r.len=0,f=!1,document.removeEventListener(h,c,!1),window.removeEventListener("popstate",v,!1))},r.show=function(e,t,n,a){var i=new o(e,t);return r.current=i.path,!1!==n&&r.dispatch(i),!1!==i.handled&&!1!==a&&i.pushState(),i},r.back=function(e,t){r.len>0?(history.back(),r.len--):e?setTimeout(function(){r.show(e,t)}):setTimeout(function(){r.show(b,t)})},r.redirect=function(e,t){"string"==typeof e&&"string"==typeof t&&r(e,function(e){setTimeout(function(){r.replace(t)},0)}),"string"==typeof e&&void 0===t&&setTimeout(function(){r.replace(e)},0)},r.replace=function(e,t,n,a){var i=new o(e,t);return r.current=i.path,i.init=n,i.save(),!1!==a&&r.dispatch(i),i},r.dispatch=function(e){function t(){var e=r.exits[s++];if(!e)return n();e(i,t)}function n(){var t=r.callbacks[o++];return e.path!==r.current?void(e.handled=!1):t?void t(e,n):a(e)}var i=p,o=0,s=0;p=e,i?t():n()},r.exit=function(e,t){if("function"==typeof e)return r.exit("*",e);for(var n=new s(e),a=1;a<arguments.length;++a)r.exits.push(n.middleware(arguments[a]))},r.Context=o,o.prototype.pushState=function(){r.len++,history.pushState(this.state,this.title,g&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},o.prototype.save=function(){history.replaceState(this.state,this.title,g&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},r.Route=s,s.prototype.middleware=function(e){var t=this;return function(n,r){
35
  if(t.match(n.path,n.params))return e(n,r);r()}},s.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),a=~r?e.slice(0,r):e,o=this.regexp.exec(decodeURIComponent(a));if(!o)return!1;for(var s=1,c=o.length;s<c;++s){var u=n[s-1],l=i(o[s]);void 0===l&&hasOwnProperty.call(t,u.name)||(t[u.name]=l)}return!0};var v=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;r.replace(n,t.state)}else r.show(m.pathname+m.hash,void 0,void 0,!1)}}();r.sameOrigin=l}).call(t,n(63))},function(e,t,n){function r(e){for(var t,n=[],r=0,a=0,i="";null!=(t=_.exec(e));){var o=t[0],c=t[1],u=t.index;if(i+=e.slice(a,u),a=u+o.length,c)i+=c[1];else{i&&(n.push(i),i="");var l=t[2],d=t[3],f=t[4],p=t[5],h=t[6],m=t[7],M="+"===h||"*"===h,b="?"===h||"*"===h,g=l||"/",v=f||p||(m?".*":"[^"+g+"]+?");n.push({name:d||r++,prefix:l||"",delimiter:g,optional:b,repeat:M,pattern:s(v)})}}return a<e.length&&(i+=e.substr(a)),i&&n.push(i),n}function a(e){return i(r(e))}function i(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 r="",a=n||{},i=0;i<e.length;i++){var o=e[i];if("string"!=typeof o){var s,c=a[o.name];if(null==c){if(o.optional)continue;throw new TypeError('Expected "'+o.name+'" to be defined')}if(m(c)){if(!o.repeat)throw new TypeError('Expected "'+o.name+'" to not repeat, but received "'+c+'"');if(0===c.length){if(o.optional)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var u=0;u<c.length;u++){if(s=encodeURIComponent(c[u]),!t[i].test(s))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but received "'+s+'"');r+=(0===u?o.prefix:o.delimiter)+s}}else{if(s=encodeURIComponent(c),!t[i].test(s))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but received "'+s+'"');r+=o.prefix+s}}else r+=o}return r}}function o(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function u(e){return e.sensitive?"":"i"}function l(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 c(e,t)}function d(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(h(e[a],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",u(n)),t)}function f(e,t,n){for(var a=r(e),i=p(a,n),o=0;o<a.length;o++)"string"!=typeof a[o]&&t.push(a[o]);return c(i,t)}function p(e,t){t=t||{};for(var n=t.strict,r=!1!==t.end,a="",i=e[e.length-1],s="string"==typeof i&&/\/$/.test(i),c=0;c<e.length;c++){var l=e[c];if("string"==typeof l)a+=o(l);else{var d=o(l.prefix),f=l.pattern;l.repeat&&(f+="(?:"+d+f+")*"),f=l.optional?d?"(?:"+d+"("+f+"))?":"("+f+")?":d+"("+f+")",a+=f}}return n||(a=(s?a.slice(0,-2):a)+"(?:\\/(?=$))?"),a+=r?"$":n&&s?"":"(?=\\/|$)",new RegExp("^"+a,u(t))}function h(e,t,n){return t=t||[],m(t)?n||(n={}):(n=t,t=[]),e instanceof RegExp?l(e,t,n):m(e)?d(e,t,n):f(e,t,n)}var m=n(440);e.exports=h,e.exports.parse=r,e.exports.compile=a,e.exports.tokensToFunction=i,e.exports.tokensToRegExp=p;var _=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,n){"use strict";var r=n(951),a=n(957);e.exports=function(e,t){var n=r.parse(e,!0);return t?n.query.s=t:delete n.query.s,n=a(n,"pathname","hash","query"),r.format(n).replace(/\%20/g,"+")}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function a(e,t,n){if(e&&u.isObject(e)&&e instanceof r)return e;var a=new r;return a.parse(e,t,n),a}function i(e){return u.isString(e)&&(e=a(e)),e instanceof r?e.format():r.prototype.format.call(e)}function o(e,t){return a(e,!1,!0).resolve(t)}function s(e,t){return e?a(e,!1,!0).resolveObject(t):t}var c=n(952),u=n(953);t.parse=a,t.resolve=o,t.resolveObject=s,t.format=i,t.Url=r;var l=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(p),m=["'"].concat(h),_=["%","/","?",";","#"].concat(m),M=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=n(954);r.prototype.parse=function(e,t,n){if(!u.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),a=-1!==r&&r<e.indexOf("#")?"?":"#",i=e.split(a),o=/\\/g;i[0]=i[0].replace(o,"/"),e=i.join(a);var s=e;if(s=s.trim(),!n&&1===e.split("#").length){var d=f.exec(s);if(d)return this.path=s,this.href=s,this.pathname=d[1],d[2]?(this.search=d[2],this.query=t?E.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var p=l.exec(s);if(p){p=p[0];var h=p.toLowerCase();this.protocol=h,s=s.substr(p.length)}if(n||p||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===s.substr(0,2);!w||p&&y[p]||(s=s.substr(2),this.slashes=!0)}if(!y[p]&&(w||p&&!A[p])){for(var k=-1,T=0;T<M.length;T++){var L=s.indexOf(M[T]);-1!==L&&(-1===k||L<k)&&(k=L)}var S,C;C=-1===k?s.lastIndexOf("@"):s.lastIndexOf("@",k),-1!==C&&(S=s.slice(0,C),s=s.slice(C+1),this.auth=decodeURIComponent(S)),k=-1;for(var T=0;T<_.length;T++){var L=s.indexOf(_[T]);-1!==L&&(-1===k||L<k)&&(k=L)}-1===k&&(k=s.length),this.host=s.slice(0,k),s=s.slice(k),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var z=this.hostname.split(/\./),T=0,N=z.length;T<N;T++){var D=z[T];if(D&&!D.match(b)){for(var P="",x=0,j=D.length;x<j;x++)D.charCodeAt(x)>127?P+="x":P+=D[x];if(!P.match(b)){var R=z.slice(0,T),Y=z.slice(T+1),I=D.match(g);I&&(R.push(I[1]),Y.unshift(I[2])),Y.length&&(s="/"+Y.join(".")+s),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=c.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!v[h])for(var T=0,N=m.length;T<N;T++){var W=m[T];if(-1!==s.indexOf(W)){var U=encodeURIComponent(W);U===W&&(U=escape(W)),s=s.split(W).join(U)}}var H=s.indexOf("#");-1!==H&&(this.hash=s.substr(H),s=s.slice(0,H));var F=s.indexOf("?");if(-1!==F?(this.search=s.substr(F),this.query=s.substr(F+1),t&&(this.query=E.parse(this.query)),s=s.slice(0,F)):t&&(this.search="",this.query={}),s&&(this.pathname=s),A[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",X=this.search||"";this.path=q+X}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,i="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&u.isObject(this.query)&&Object.keys(this.query).length&&(i=E.stringify(this.query));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||A[t])&&!1!==a?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace("#","%23"),t+a+n+o+r},r.prototype.resolve=function(e){return this.resolveObject(a(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(u.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,a=Object.keys(this),i=0;i<a.length;i++){var o=a[i];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var l=s[c];"protocol"!==l&&(n[l]=e[l])}return A[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!A[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||y[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",_=n.search||"";n.path=m+_}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var M=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),g=b||M||n.host&&e.pathname,v=g,E=n.pathname&&n.pathname.split("/")||[],h=e.pathname&&e.pathname.split("/")||[],w=n.protocol&&!A[n.protocol];if(w&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),g=g&&(""===h[0]||""===E[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=h;else if(h.length)E||(E=[]),E.pop(),E=E.concat(h),n.search=e.search,n.query=e.query;else if(!u.isNullOrUndefined(e.search)){if(w){n.hostname=n.host=E.shift();var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=e.search,n.query=e.query,u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],L=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,S=0,C=E.length;C>=0;C--)T=E[C],"."===T?E.splice(C,1):".."===T?(E.splice(C,1),S++):S&&(E.splice(C,1),S--);if(!g&&!v)for(;S--;S)E.unshift("..");!g||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),L&&"/"!==E.join("/").substr(-1)&&E.push("");var O=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(w){n.hostname=n.host=O?"":E.length?E.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return g=g||n.host&&E.length,g&&!O&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){(function(e,r){var a;!function(i){function o(e){throw new RangeError(N[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function c(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(z,"."),r+s(e.split("."),t).join(".")}function u(e){for(var t,n,r=[],a=0,i=e.length;a<i;)t=e.charCodeAt(a++),t>=55296&&t<=56319&&a<i?(n=e.charCodeAt(a++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),a--)):r.push(t);return r}function l(e){return s(e,function(e){var t="";return e>65535&&(e-=65536,t+=x(e>>>10&1023|55296),e=56320|1023&e),t+=x(e)}).join("")}function d(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:y}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function p(e,t,n){var r=0;for(e=n?P(e/k):e>>1,e+=P(e/t);e>D*E>>1;r+=y)e=P(e/D);return P(r+(D+1)*e/(e+w))}function h(e){var t,n,r,a,i,s,c,u,f,h,m=[],_=e.length,M=0,b=L,g=T;for(n=e.lastIndexOf(S),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&o("not-basic"),m.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<_;){for(i=M,s=1,c=y;a>=_&&o("invalid-input"),u=d(e.charCodeAt(a++)),(u>=y||u>P((v-M)/s))&&o("overflow"),M+=u*s,f=c<=g?A:c>=g+E?E:c-g,!(u<f);c+=y)h=y-f,s>P(v/h)&&o("overflow"),s*=h;t=m.length+1,g=p(M-i,t,0==i),P(M/t)>v-b&&o("overflow"),b+=P(M/t),M%=t,m.splice(M++,0,b)}return l(m)}function m(e){var t,n,r,a,i,s,c,l,d,h,m,_,M,b,g,w=[];for(e=u(e),_=e.length,t=L,n=0,i=T,s=0;s<_;++s)(m=e[s])<128&&w.push(x(m));for(r=a=w.length,a&&w.push(S);r<_;){for(c=v,s=0;s<_;++s)(m=e[s])>=t&&m<c&&(c=m);for(M=r+1,c-t>P((v-n)/M)&&o("overflow"),n+=(c-t)*M,t=c,s=0;s<_;++s)if(m=e[s],m<t&&++n>v&&o("overflow"),m==t){for(l=n,d=y;h=d<=i?A:d>=i+E?E:d-i,!(l<h);d+=y)g=l-h,b=y-h,w.push(x(f(h+g%b,0))),l=P(g/b);w.push(x(f(l,0))),i=p(n,M,r==a),n=0,++r}++n,++t}return w.join("")}function _(e){return c(e,function(e){return C.test(e)?h(e.slice(4).toLowerCase()):e})}function M(e){return c(e,function(e){return O.test(e)?"xn--"+m(e):e})}var b=("object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType,"object"==typeof r&&r);var g,v=2147483647,y=36,A=1,E=26,w=38,k=700,T=72,L=128,S="-",C=/^xn--/,O=/[^\x20-\x7E]/,z=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=y-A,P=Math.floor,x=String.fromCharCode;g={version:"1.4.1",ucs2:{decode:u,encode:l},decode:h,encode:m,toASCII:M,toUnicode:_},void 0!==(a=function(){return g}.call(t,n,t,e))&&(e.exports=a)}()}).call(t,n(109)(e),n(45))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(955),t.encode=t.stringify=n(956)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var d,f,p,h,m=e[l].replace(s,"%20"),_=m.indexOf(n);_>=0?(d=m.substr(0,_),f=m.substr(_+1)):(d=m,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),r(o,p)?a(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(o(e),function(o){var s=encodeURIComponent(a(o))+n;return i(e[o])?r(e[o],function(e){return s+encodeURIComponent(a(e))}).join(t):s+encodeURIComponent(a(e[o]))}).join(t):s?encodeURIComponent(a(s))+n+encodeURIComponent(a(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){var r=n(958),a=n(505),i=a(function(e,t){return null==e?{}:r(e,t)});e.exports=i},function(e,t,n){function r(e,t){return a(e,t,function(t,n){return i(e,n)})}var a=n(959),i=n(495);e.exports=r},function(e,t,n){function r(e,t,n){for(var r=-1,s=t.length,c={};++r<s;){var u=t[r],l=a(e,u);n(l,u)&&i(c,o(u,e),l)}return c}var a=n(161),i=n(960),o=n(101);e.exports=r},function(e,t,n){function r(e,t,n,r){if(!s(e))return e;t=i(t,e);for(var u=-1,l=t.length,d=l-1,f=e;null!=f&&++u<l;){var p=c(t[u]),h=n;if(u!=d){var m=f[p];h=r?r(m,p,f):void 0,void 0===h&&(h=s(m)?m:o(t[u+1])?[]:{})}a(f,p,h),f=f[p]}return e}var a=n(154),i=n(101),o=n(156),s=n(42),c=n(90);e.exports=r},function(e,t,n){var r=n(126),a=n(962),i=n(484),o=n(965),s=i(function(e){var t=r(e,o);return t.length&&t[0]===e[0]?a(t):[]});e.exports=s},function(e,t,n){function r(e,t,n){for(var r=n?o:i,d=e[0].length,f=e.length,p=f,h=Array(f),m=1/0,_=[];p--;){var M=e[p];p&&t&&(M=s(M,c(t))),m=l(M.length,m),h[p]=!n&&(t||d>=120&&M.length>=120)?new a(p&&M):void 0}M=e[0];var b=-1,g=h[0];e:for(;++b<d&&_.length<m;){var v=M[b],y=t?t(v):v;if(v=n||0!==v?v:0,!(g?u(g,y):r(_,y,n))){for(p=f;--p;){var A=h[p];if(!(A?u(A,y):r(e[p],y,n)))continue e}g&&g.push(y),_.push(v)}}return _}var a=n(493),i=n(963),o=n(964),s=n(126),c=n(158),u=n(494),l=Math.min;e.exports=r},function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&a(e,t,0)>-1}var a=n(226);e.exports=r},function(e,t){function n(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}e.exports=n},function(e,t,n){function r(e){return a(e)?e:[]}var a=n(487);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterSearch=void 0;var r=n(16);t.filterSearch=function(e){return function(t){t({type:r.JETPACK_SEARCH_TERM,term:e})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPluginsData=void 0;var r=n(16),a=n(56),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.fetchPluginsData=function(){return function(e){return e({type:r.JETPACK_PLUGINS_DATA_FETCH}),i.default.fetchPluginsData().then(function(t){return e({type:r.JETPACK_PLUGINS_DATA_FETCH_RECEIVE,pluginsData:t}),t}).catch(function(t){e({type:r.JETPACK_PLUGINS_DATA_FETCH_FAIL,error:t})})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Discussion=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(23),v=n(103),y=n(21),A=n(73),E=n(211),w=r(E),k=n(970),T=n(1105),L=t.Discussion=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode},t=this.props.isModuleFound("comments"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("gravatar-hovercards"),a=this.props.isModuleFound("subscriptions"),o=this.props.isModuleFound("comment-likes");return(this.props.searchTerm||this.props.active)&&(t||a||n||r||o)?M.default.createElement("div",null,M.default.createElement(w.default,null),M.default.createElement(k.Comments,(0,i.default)({},e,{isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride})),a&&M.default.createElement(T.Subscriptions,(0,i.default)({},e,{isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl}))):null}}]),t}(M.default.Component);L.displayName="DiscussionSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},settings:(0,v.getSettings)(e),isDevMode:(0,y.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,y.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,A.isModuleFound)(e,t)},connectUrl:(0,y.getConnectUrl)(e),isLinked:(0,y.isCurrentUserLinked)(e),getModuleOverride:function(t){return(0,g.getModuleOverride)(e,t)}}})(L)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateSettings=t.updateSetting=t.fetchSettings=t.clearUnsavedSettingsFlag=t.setUnsavedSettingsFlag=void 0;var a=n(59),i=r(a),o=n(115),s=n(8),c=n(230),u=r(c),l=n(16),d=n(23),f=n(56),p=r(f);t.setUnsavedSettingsFlag=function(){return{type:l.JETPACK_SETTINGS_SET_UNSAVED_FLAG}},t.clearUnsavedSettingsFlag=function(){return{type:l.JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG}},t.fetchSettings=function(){return function(e){return e({type:l.JETPACK_SETTINGS_FETCH}),p.default.fetchSettings().then(function(t){return e({type:l.JETPACK_SETTINGS_FETCH_RECEIVE,settings:t}),t}).catch(function(t){e({type:l.JETPACK_SETTINGS_FETCH_FAIL,error:t})})}},t.updateSetting=function(e){return function(t){return t({type:l.JETPACK_SETTING_UPDATE,updatedOption:e}),p.default.updateSetting(e).then(function(n){t({type:l.JETPACK_SETTING_UPDATE_SUCCESS,updatedOption:e,success:n})}).catch(function(n){t({type:l.JETPACK_SETTING_UPDATE_FAIL,success:!1,error:n,updatedOption:e})})}},t.updateSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(n){var r={progress:(0,s.translate)("Updating settings…"),success:(0,s.translate)("Updated settings."),error:function(e){return(0,s.translate)("Error updating settings. %(error)s",{args:{error:e.message||e.code||e.name||e}})}},a=function(){return e};"regeneratePbE"===t&&(r={progress:(0,s.translate)("Updating Post by Email address…"),success:(0,s.translate)("Regenerated Post by Email address."),error:function(e){return(0,s.translate)("Error regenerating Post by Email address. %(error)s",{args:{error:e}})}},a=function(e){return{post_by_email_address:e.post_by_email_address}},e={post_by_email_address:"regenerate"});var c=["masterbar","jetpack_testimonial","jetpack_portfolio"];"object"===(void 0===e?"undefined":(0,i.default)(e))&&(0,u.default)(c,function(t){return t in e})&&(r.success=(0,s.translate)("Updated settings. Refreshing page…")),n((0,o.removeNotice)("module-setting-update")),n((0,o.removeNotice)("module-setting-update-success"));var f=["dismiss_dash_app_card","dismiss_empty_stats_card","show_welcome_for_new_plan"];return"object"!==(void 0===e?"undefined":(0,i.default)(e))||(0,u.default)(f,function(t){return t in e})||n((0,o.createNotice)("is-info",r.progress,{id:"module-setting-update"})),n({type:l.JETPACK_SETTINGS_UPDATE,updatedOptions:e}),p.default.updateSettings(e).then(function(t){n({type:l.JETPACK_SETTINGS_UPDATE_SUCCESS,updatedOptions:a(t),success:t}),(0,d.maybeHideNavMenuItem)(e),(0,d.maybeReloadAfterAction)(e),n((0,o.removeNotice)("module-setting-update")),n((0,o.removeNotice)("module-setting-update-success")),"object"!==(void 0===e?"undefined":(0,i.default)(e))||(0,u.default)(f,function(t){return t in e})||n((0,o.createNotice)("is-success",r.success,{id:"module-setting-update-success",duration:2e3}))}).catch(function(t){n({type:l.JETPACK_SETTINGS_UPDATE_FAIL,success:!1,error:t,updatedOptions:e}),n((0,o.removeNotice)("module-setting-update")),n((0,o.createNotice)("is-error",r.error(t),{id:"module-setting-update"}))})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Comments=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(507),v=r(g),y=n(74),A=n(52),E=n(30),w=n(40),k=r(w),T=n(37),L=r(T),S=n(104),C=r(S),O=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.updateFormStateByMarkdown=function(e){return r.props.getSettingCurrentValue("wpcom_publish_posts_with_markdown",e)?r.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown"):r.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown",!0)},r.handleMarkdownCommentsToggle=function(){r.props.updateFormStateModuleOption("markdown","wpcom_publish_comments_with_markdown")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{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 a=this.props,o=a.isUnavailableInDevMode,s=a.getOptionValue,c=this.props.getModule("comments"),u=this.props.getOptionValue("comments"),l=this.props.isUnavailableInDevMode("comments"),d=this.props.getModule("gravatar-hovercards"),f=this.props.getModule("markdown"),p=o("comment-likes"),h=s("comment-likes");return M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Comments"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"])}),e&&M.default.createElement(L.default,{hasChild:!0,disableInDevMode:!0,module:c,support:{text:(0,b.translate)("Replaces the standard WordPress comment form with a new comment system that includes social media login options."),link:"https://jetpack.com/support/comments"}},M.default.createElement(A.ModuleToggle,{slug:"comments",compact:!0,disabled:l,activated:this.props.getOptionValue("comments"),toggling:this.props.isSavingAnyOption("comments"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},c.description)),M.default.createElement(y.FormFieldset,null,M.default.createElement(y.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,b.translate)("Comments headline")),M.default.createElement(v.default,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!u||l||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("A few catchy words to motivate your readers to comment.")),M.default.createElement(y.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,b.translate)("Color scheme")),M.default.createElement(y.FormSelect,(0,i.default)({name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!u||l||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)&&M.default.createElement(L.default,null,t&&M.default.createElement(y.FormFieldset,null,M.default.createElement(A.ModuleToggle,{slug:"gravatar-hovercards",compact:!0,activated:this.props.getOptionValue("gravatar-hovercards"),toggling:this.props.isSavingAnyOption("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},d.description+" ",M.default.createElement("a",{href:d.learn_more_button,target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Learn more")),M.default.createElement("span",{className:"jp-form-toggle-privacy-info"},M.default.createElement("a",{href:d.learn_more_button+"#privacy",target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Privacy Information")))))),n&&M.default.createElement(y.FormFieldset,null,M.default.createElement(C.default,{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},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Enable Markdown use for comments.")+" ",M.default.createElement("a",{href:f.learn_more_button,target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Learn more")),M.default.createElement("span",{className:"jp-form-toggle-privacy-info"},M.default.createElement("a",{href:f.learn_more_button+"#privacy",target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Privacy Information")))))),r&&M.default.createElement(y.FormFieldset,null,M.default.createElement(A.ModuleToggle,{slug:"comment-likes",compact:!0,disabled:p,activated:h,toggling:this.props.isSavingAnyOption("comment-likes"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},"Enable comment likes. ",M.default.createElement("a",{href:"https://jetpack.com/support/comment-likes/",target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Learn more")),M.default.createElement("span",{className:"jp-form-toggle-privacy-info"},M.default.createElement("a",{href:"https://jetpack.com/support/comment-likes/#privacy",target:"_blank",rel:"noopener noreferrer"},(0,b.translate)("Privacy Information"))))))))}}]),t}(M.default.Component);t.Comments=(0,E.ModuleSettingsForm)(O)},function(e,t){},function(e,t,n){function r(e,t){return e&&a(e,i(t))}var a=n(229),i=n(491);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(834),y=r(v);n(1089);var A=function(e){function t(){(0,s.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments));return e.state={showPopover:!1},e.togglePopover=function(){e.setState({showPopover:!e.state.showPopover})},e._onPopoverClose=function(){e.setState({showPopover:!1})},e.renderPopover=function(){return M.default.createElement(y.default,{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.onClick=e.onClick.bind(e),e.onLabelClick=e.onLabelClick.bind(e),e}return(0,p.default)(t,e),(0,u.default)(t,[{key:"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=(0,g.default)("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return M.default.createElement("span",null,M.default.createElement("input",{className:t,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),M.default.createElement("label",{className:"form-toggle__label",htmlFor:e},M.default.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"}),M.default.createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)),this.renderPopover())}}]),t}(_.Component);A.propTypes={onChange:m.default.func,onKeyDown:m.default.func,checked:m.default.bool,disabled:m.default.bool,id:m.default.string,className:m.default.string,toggling:m.default.bool,"aria-label":m.default.string,children:m.default.node,disabledReason:m.default.node},A.defaultProps={checked:!1,disabled:!1,onKeyDown:function(){},onChange:function(){},disabledPopoverPosition:"bottom",disabledReason:""},A.idNum=0,t.default=A,e.exports=t.default},function(e,t,n){e.exports={default:n(975),__esModule:!0}},function(e,t,n){n(199),n(110),n(138),n(976),n(980),n(982),n(983),e.exports=n(18).Set},function(e,t,n){"use strict";var r=n(870),a=n(835);e.exports=n(871)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(a(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){
36
  var r=n(71),a=n(221),i=n(100),o=n(160),s=n(978);e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,h){for(var m,_,M=i(t),b=a(M),g=r(s,h,3),v=o(b.length),y=0,A=n?p(t,v):c?p(t,0):void 0;v>y;y++)if((f||y in b)&&(m=b[y],_=g(m,y,M),e))if(n)A[y]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return y;case 2:A.push(m)}else if(l)return!1;return d?-1:u||l?l:A}}},function(e,t,n){var r=n(979);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(50),a=n(486),i=n(36)("species");e.exports=function(e){var t;return a(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!a(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(35);r(r.P+r.R,"Set",{toJSON:n(872)("Set")})},function(e,t,n){var r=n(206);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(873)("Set")},function(e,t,n){n(874)("Set")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return p.set(e,t),function(){p.delete(e)}}function i(e){p.forEach(function(t,n){(0,f.default)(n,e.target)||t.call(n,e)})}function o(e){e||(e=document),l.default.bind(e,"click",i)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(985),c=r(s);t.default=a;var u=n(991),l=r(u),d=n(992),f=r(d),p=new c.default;a.globalClick=i,a.install=o,"undefined"!=typeof document&&o(document),e.exports=t.default},function(e,t,n){e.exports={default:n(986),__esModule:!0}},function(e,t,n){n(199),n(110),n(138),n(987),n(988),n(989),n(990),e.exports=n(18).Map},function(e,t,n){"use strict";var r=n(870),a=n(835);e.exports=n(871)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(a(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(a(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){var r=n(35);r(r.P+r.R,"Map",{toJSON:n(872)("Map")})},function(e,t,n){n(873)("Map")},function(e,t,n){n(874)("Map")},function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",a="addEventListener"!==n?"on":"";t.bind=function(e,t,r,i){return e[n](a+t,r,i||!1),r},t.unbind=function(e,t,n,i){return e[r](a+t,n,i||!1),n}},function(e,t){function n(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}e.exports=n},function(e,t,n){function r(e){var t,n;for(t=[],n=0;n<e.length;n++)t.push(i[e[n]%64]);return t.join("")}function a(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return r(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),a=0;a<e;a++)t[a]=Math.floor(256*Math.random());return r(t)}var i=n(994);try{return r(i.randomBytes(e))}catch(t){return r(i.pseudoRandomBytes(e))}}var i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";e.exports=a},function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(235),t.createHash=t.Hash=n(467),t.createHmac=t.Hmac=n(882);var r=n(1011),a=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);t.getHashes=function(){return i};var o=n(885);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(1013);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(1030);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(1035);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(1073);var l=n(1074);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var d=n(1077);t.randomFill=d.randomFill,t.randomFillSync=d.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){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){e.copy(t,n)}var i=n(32).Buffer,o=n(997);e.exports=function(){function e(){r(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 i.alloc(0);if(1===this.length)return this.head.data;for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var a=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,a,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,a,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(a,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(999),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(45))},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(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 r={callback:e,args:t};return u[c]=r,s(c),c++}function a(e){delete u[e]}function i(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function o(e){if(l)setTimeout(o,0,e);else{var t=u[e];if(t){l=!0;try{i(t)}finally{a(e),l=!1}}}}if(!e.setImmediate){var s,c=1,u={},l=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?function(){s=function(e){t.nextTick(function(){o(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&o(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},s=function(t){e.port2.postMessage(t)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var e=d.documentElement;s=function(t){var n=d.createElement("script");n.onreadystatechange=function(){o(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){s=function(e){setTimeout(o,0,e)}}(),f.setImmediate=r,f.clearImmediate=a}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(45),n(63))},function(e,t,n){(function(t){function n(e,t){function n(){if(!a){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),a=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var a=!1;return n}function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(t,n(45))},function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);a.call(this,e)}e.exports=r;var a=n(879),i=n(468);i.inherits=n(20),i.inherits(r,a),r.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(839)},function(e,t,n){e.exports=n(212)},function(e,t,n){e.exports=n(838).Transform},function(e,t,n){e.exports=n(838).PassThrough},function(e,t,n){function r(){this.init(),this._w=d,c.call(this,64,56)}function a(e){return e<<5|e>>>27}function i(e){return e<<30|e>>>2}function o(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var s=n(20),c=n(236),u=n(32).Buffer,l=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);s(r,c),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,s=0|this._c,c=0|this._d,u=0|this._e,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var f=0;f<80;++f){var p=~~(f/20),h=a(n)+o(p,r,s,c)+u+t[f]+l[p]|0;u=c,c=s,s=i(r),r=n,n=h}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=c+this._d|0,this._e=u+this._e|0},r.prototype._hash=function(){var e=u.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=r},function(e,t,n){function r(){this.init(),this._w=f,u.call(this,64,56)}function a(e){return e<<1|e>>>31}function i(e){return e<<5|e>>>27}function o(e){return e<<30|e>>>2}function s(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var c=n(20),u=n(236),l=n(32).Buffer,d=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);c(r,u),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,c=0|this._c,u=0|this._d,l=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=a(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var p=0;p<80;++p){var h=~~(p/20),m=i(n)+s(h,r,c,u)+l+t[p]+d[h]|0;l=u,u=c,c=o(r),r=n,n=m}this._a=n+this._a|0,this._b=r+this._b|0,this._c=c+this._c|0,this._d=u+this._d|0,this._e=l+this._e|0},r.prototype._hash=function(){var e=l.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=r},function(e,t,n){function r(){this.init(),this._w=c,o.call(this,64,56)}var a=n(20),i=n(880),o=n(236),s=n(32).Buffer,c=new Array(64);a(r,i),r.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},r.prototype._hash=function(){var e=s.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=r},function(e,t,n){function r(){this.init(),this._w=c,o.call(this,128,112)}var a=n(20),i=n(881),o=n(236),s=n(32).Buffer,c=new Array(160);a(r,i),r.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},r.prototype._hash=function(){function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}var t=s.allocUnsafe(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},e.exports=r},function(e,t,n){"use strict";function r(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>c?t=e(t):t.length<c&&(t=i.concat([t,s],c));for(var n=this._ipad=i.allocUnsafe(c),r=this._opad=i.allocUnsafe(c),a=0;a<c;a++)n[a]=54^t[a],r[a]=92^t[a];this._hash=[n]}var a=n(20),i=n(32).Buffer,o=n(162),s=i.alloc(128),c=64;a(r,o),r.prototype._update=function(e){this._hash.push(e)},r.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=r},function(e,t,n){e.exports=n(884)},function(e,t,n){(function(t,r){function a(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];s=s||d.alloc(8);var n=i(s,s,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=n,n}function i(e,t,n,r,a){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:a}},e,r<<3)}).then(function(e){return d.from(e)})}function o(e,t){e.then(function(e){r.nextTick(function(){t(null,e)})},function(e){r.nextTick(function(){t(e)})})}var s,c=n(886),u=n(887),l=n(888),d=n(32).Buffer,f=t.crypto&&t.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"},h=[];e.exports=function(e,n,s,f,h,m){"function"==typeof h&&(m=h,h=void 0),h=h||"sha1";var _=p[h.toLowerCase()];if(!_||"function"!=typeof t.Promise)return r.nextTick(function(){var t;try{t=l(e,n,s,f,h)}catch(e){return m(e)}m(null,t)});if(c(e,n,s,f),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");d.isBuffer(e)||(e=d.from(e,u)),d.isBuffer(n)||(n=d.from(n,u)),o(a(_).then(function(t){return t?i(e,n,s,f,_):l(e,n,s,f,h)}),m)}}).call(t,n(45),n(63))},function(e,t,n){function r(e,t){e=e.toLowerCase();var n,r;if(l[e])n=l[e].key,r=l[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var a=f(t,!1,n,r);return i(e,a.key,a.iv)}function a(e,t){e=e.toLowerCase();var n,r;if(l[e])n=l[e].key,r=l[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var a=f(t,!1,n,r);return o(e,a.key,a.iv)}function i(e,t,n){if(e=e.toLowerCase(),l[e])return u.createCipheriv(e,t,n);if(d[e])return new c({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function o(e,t,n){if(e=e.toLowerCase(),l[e])return u.createDecipheriv(e,t,n);if(d[e])return new c({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function s(){return Object.keys(d).concat(u.getCiphers())}var c=n(1014),u=n(844),l=n(845),d=n(1029),f=n(510);t.createCipher=t.Cipher=r,t.createCipheriv=t.Cipheriv=i,t.createDecipher=t.Decipher=a,t.createDecipheriv=t.Decipheriv=o,t.listCiphers=t.getCiphers=s},function(e,t,n){(function(t){function r(e){a.call(this);var n,r=e.mode.toLowerCase(),i=s[r];n=e.decrypt?"decrypt":"encrypt";var o=e.key;"des-ede"!==r&&"des-ede-cbc"!==r||(o=t.concat([o,o.slice(0,8)]));var c=e.iv;this._des=i.create({key:o,iv:c,type:n})}var a=n(162),i=n(843),o=n(20),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};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=r,o(r,a),r.prototype._update=function(e){return new t(this._des.update(e))},r.prototype._final=function(){return new t(this._des.final())}}).call(t,n(39).Buffer)},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 a=0,i=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>>s+o&1}for(var o=6;o>=0;o-=2){for(var s=1;s<=25;s+=8)i<<=1,i|=t>>>s+o&1;for(var s=1;s<=25;s+=8)i<<=1,i|=e>>>s+o&1}n[r+0]=a>>>0,n[r+1]=i>>>0},t.rip=function(e,t,n,r){for(var a=0,i=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;for(var o=4;o<8;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;n[r+0]=a>>>0,n[r+1]=i>>>0},t.pc1=function(e,t,n,r){for(var a=0,i=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var o=1;o<=3;o++){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1;n[r+0]=a>>>0,n[r+1]=i>>>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,a){for(var i=0,o=0,s=r.length>>>1,c=0;c<s;c++)i<<=1,i|=e>>>r[c]&1;for(var c=s;c<r.length;c++)o<<=1,o|=t>>>r[c]&1;n[a+0]=i>>>0,n[a+1]=o>>>0},t.expand=function(e,t,n){var r=0,a=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(var i=11;i>=3;i-=4)a|=e>>>i&63,a<<=6;a|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=a>>>0};var a=[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++){var i=e>>>18-6*r&63,o=a[64*r+i];n<<=4,n|=o}for(var r=0;r<4;r++){var i=t>>>18-6*r&63,o=a[256+64*r+i];n<<=4,n|=o}return n>>>0};var i=[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<i.length;n++)t<<=1,t|=e>>>i[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 a=[],i=0;i<t;i+=n)a.push(r.slice(i,i+n));return a.join(" ")}},function(e,t,n){"use strict";function r(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}var a=n(105);e.exports=r,r.prototype._init=function(){},r.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},r.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},r.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(a,n)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,a,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return a},r.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(a,n);return t+=this._buffer(e,t),a},r.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},r.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},r.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},r.prototype._unpad=function(e){return e},r.prototype._finalDecrypt=function(){a.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){"use strict";function r(){this.tmp=new Array(2),this.keys=null}function a(e){u.call(this,e);var t=new r;this._desState=t,this.deriveKeys(t,e.key)}var i=n(105),o=n(20),s=n(843),c=s.utils,u=s.Cipher;o(a,u),e.exports=a,a.create=function(e){return new a(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];a.prototype.deriveKeys=function(e,t){e.keys=new Array(32),i.equal(t.length,this.blockSize,"Invalid key length");var n=c.readUInt32BE(t,0),r=c.readUInt32BE(t,4);c.pc1(n,r,e.tmp,0),n=e.tmp[0],r=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var o=l[a>>>1];n=c.r28shl(n,o),r=c.r28shl(r,o),c.pc2(n,r,e.keys,a)}},a.prototype._update=function(e,t,n,r){var a=this._desState,i=c.readUInt32BE(e,t),o=c.readUInt32BE(e,t+4);c.ip(i,o,a.tmp,0),i=a.tmp[0],o=a.tmp[1],"encrypt"===this.type?this._encrypt(a,i,o,a.tmp,0):this._decrypt(a,i,o,a.tmp,0),i=a.tmp[0],o=a.tmp[1],c.writeUInt32BE(n,i,r),c.writeUInt32BE(n,o,r+4)},a.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},a.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)i.equal(e[n],t);return e.slice(0,e.length-t)},a.prototype._encrypt=function(e,t,n,r,a){for(var i=t,o=n,s=0;s<e.keys.length;s+=2){var u=e.keys[s],l=e.keys[s+1];c.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=c.substitute(u,l),f=c.permute(d),p=o;o=(i^f)>>>0,i=p}c.rip(o,i,r,a)},a.prototype._decrypt=function(e,t,n,r,a){for(var i=n,o=t,s=e.keys.length-2;s>=0;s-=2){var u=e.keys[s],l=e.keys[s+1];c.expand(i,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=c.substitute(u,l),f=c.permute(d),p=i;i=(o^f)>>>0,o=p}c.rip(i,o,r,a)}},function(e,t,n){"use strict";function r(e){i.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]}function a(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var n=Object.keys(s),r=0;r<n.length;r++){var a=n[r];t.prototype[a]=s[a]}return t.create=function(e){return new t(e)},t}var i=n(105),o=n(20),s={};t.instantiate=a,s._cbcInit=function(){var e=new r(this.options.iv);this._cbcState=e},s._update=function(e,t,n,r){var a=this._cbcState,i=this.constructor.super_.prototype,o=a.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];i._update.call(this,o,0,n,r);for(var s=0;s<this.blockSize;s++)o[s]=n[r+s]}else{i._update.call(this,e,t,n,r);for(var s=0;s<this.blockSize;s++)n[r+s]^=o[s];for(var s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},function(e,t,n){"use strict";function r(e,t){i.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),r=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:r}),u.create({type:"encrypt",key:a})]:[u.create({type:"decrypt",key:a}),u.create({type:"encrypt",key:r}),u.create({type:"decrypt",key:n})]}function a(e){c.call(this,e);var t=new r(this.type,this.options.key);this._edeState=t}var i=n(105),o=n(20),s=n(843),c=s.Cipher,u=s.DES;o(a,c),e.exports=a,a.create=function(e){return new a(e)},a.prototype._update=function(e,t,n,r){var a=this._edeState;a.ciphers[0]._update(e,t,n,r),a.ciphers[1]._update(n,r,n,r),a.ciphers[2]._update(n,r,n,r)},a.prototype._pad=u.prototype._pad,a.prototype._unpad=u.prototype._unpad},function(e,t,n){function r(e,t,n){d.call(this),this._cache=new a,this._cipher=new f.AES(t),this._prev=u.from(n),this._mode=e,this._autopadding=!0}function a(){this.cache=u.allocUnsafe(0)}function i(e,t,n){var a=s[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=u.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=u.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new l(a.module,t,n):"auth"===a.type?new c(a.module,t,n):new r(a.module,t,n)}function o(e,t){var n=s[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=p(t,!1,n.key,n.iv);return i(e,r.key,r.iv)}var s=n(845),c=n(892),u=n(32).Buffer,l=n(893),d=n(162),f=n(509),p=n(510);n(20)(r,d),r.prototype._update=function(e){this._cache.add(e);for(var t,n,r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return u.concat(r)};var h=u.alloc(16,16);r.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(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},a.prototype.add=function(e){this.cache=u.concat([this.cache,e])},a.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},a.prototype.flush=function(){for(var e=16-this.cache.length,t=u.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return u.concat([this.cache,t])},t.createCipheriv=i,t.createCipher=o},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(469);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 a=e._cipher.decryptBlock(t);return r(a,n)}},function(e,t,n){function r(e,t,n){var r=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(r),e._prev=a.concat([e._prev,n?t:o]),o}var a=n(32).Buffer,i=n(469);t.encrypt=function(e,t,n){for(var i,o=a.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=a.allocUnsafe(0)),!(e._cache.length<=t.length)){o=a.concat([o,r(e,t,n)]);break}i=e._cache.length,o=a.concat([o,r(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},function(e,t,n){function r(e,t,n){var r=e._cipher.encryptBlock(e._prev),i=r[0]^t;return e._prev=a.concat([e._prev.slice(1),a.from([n?t:i])]),i}var a=n(32).Buffer;t.encrypt=function(e,t,n){for(var i=t.length,o=a.allocUnsafe(i),s=-1;++s<i;)o[s]=r(e,t[s],n);return o}},function(e,t,n){function r(e,t,n){for(var r,i,o,s=-1,c=0;++s<8;)r=e._cipher.encryptBlock(e._prev),i=t&1<<7-s?128:0,o=r[0]^i,c+=(128&o)>>s%8,e._prev=a(e._prev,n?i:o);return c}function a(e,t){var n=e.length,r=-1,a=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++r<n;)a[r]=e[r]<<1|e[r+1]>>7;return a}var i=n(32).Buffer;t.encrypt=function(e,t,n){for(var a=t.length,o=i.allocUnsafe(a),s=-1;++s<a;)o[s]=r(e,t[s],n);return o}},function(e,t,n){(function(e){function r(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}var a=n(469);t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,r(t)]);var i=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),a(n,i)}}).call(t,n(39).Buffer)},function(e,t,n){function r(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=o.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 i(e){this.h=e,this.state=o.alloc(16,0),this.cache=o.allocUnsafe(0)}var o=n(32).Buffer,s=o.alloc(16,0);i.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},i.prototype._multiply=function(){for(var e,t,n,i=r(this.h),o=[0,0,0,0],s=-1;++s<128;){for(t=0!=(this.state[~~(s/8)]&1<<7-s%8),t&&(o[0]^=i[0],o[1]^=i[1],o[2]^=i[2],o[3]^=i[3]),n=0!=(1&i[3]),e=3;e>0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=a(o)},i.prototype.update=function(e){this.cache=o.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},i.prototype.final=function(e,t){return this.cache.length&&this.ghash(o.concat([this.cache,s],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=i},function(e,t,n){function r(e,t,n){f.call(this),this._cache=new a,this._last=void 0,this._cipher=new p.AES(t),this._prev=u.from(n),this._mode=e,this._autopadding=!0}function a(){this.cache=u.allocUnsafe(0)}function i(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var n=-1;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function o(e,t,n){var a=l[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=u.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=u.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new d(a.module,t,n,!0):"auth"===a.type?new c(a.module,t,n,!0):new r(a.module,t,n)}function s(e,t){var n=l[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=h(t,!1,n.key,n.iv);return o(e,r.key,r.iv)}var c=n(892),u=n(32).Buffer,l=n(845),d=n(893),f=n(162),p=n(509),h=n(510);n(20)(r,f),r.prototype._update=function(e){this._cache.add(e);for(var t,n,r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return u.concat(r)},r.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return i(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},a.prototype.add=function(e){this.cache=u.concat([this.cache,e])},a.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},a.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=s,t.createDecipheriv=o},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){function r(t){var n=new e(o[t].prime,"hex"),r=new e(o[t].gen,"hex");return new s(n,r)}function a(t,n,r,o){return e.isBuffer(n)||void 0===c[n]?a(t,"binary",n,r):(n=n||"binary",o=o||"binary",r=r||new e([2]),e.isBuffer(r)||(r=new e(r,o)),"number"==typeof t?new s(i(t,r),r,!0):(e.isBuffer(t)||(t=new e(t,n)),new s(t,r,!0)))}
37
  var i=n(894),o=n(1033),s=n(1034),c={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=r,t.createDiffieHellman=t.DiffieHellman=a}).call(t,n(39).Buffer)},function(e,t){},function(e,t){},function(e,t){e.exports={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){function r(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new c(e),this}function a(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new c(e),this}function i(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in b)return b[r];var a=0;if(e.isEven()||!_.simpleSieve||!_.fermatTest(e)||!l.test(e))return a+=1,a+="02"===n||"05"===n?8:4,b[r]=a,a;l.test(e.shrn(1))||(a+=2);var i;switch(n){case"02":e.mod(d).cmp(f)&&(a+=8);break;case"05":i=e.mod(p),i.cmp(h)&&i.cmp(m)&&(a+=8);break;default:a+=4}return b[r]=a,a}function o(e,t,n){this.setGenerator(t),this.__prime=new c(e),this._prime=c.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=r,this.setPrivateKey=a):this._primeCode=8}function s(e,n){var r=new t(e.toArray());return n?r.toString(n):r}var c=n(57),u=n(895),l=new u,d=new c(24),f=new c(11),p=new c(10),h=new c(3),m=new c(7),_=n(894),M=n(235);e.exports=o;var b={};Object.defineProperty(o.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=i(this.__prime,this.__gen)),this._primeCode}}),o.prototype.generateKeys=function(){return this._priv||(this._priv=new c(M(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},o.prototype.computeSecret=function(e){e=new c(e),e=e.toRed(this._prime);var n=e.redPow(this._priv).fromRed(),r=new t(n.toArray()),a=this.getPrime();if(r.length<a.length){var i=new t(a.length-r.length);i.fill(0),r=t.concat([i,r])}return r},o.prototype.getPublicKey=function(e){return s(this._pub,e)},o.prototype.getPrivateKey=function(e){return s(this._priv,e)},o.prototype.getPrime=function(e){return s(this.__prime,e)},o.prototype.getGenerator=function(e){return s(this._gen,e)},o.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new c(e),this}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e){c.Writable.call(this);var t=f[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=s(t.hash),this._tag=t.id,this._signType=t.sign}function a(e){c.Writable.call(this);var t=f[e];if(!t)throw new Error("Unknown message digest");this._hash=s(t.hash),this._tag=t.id,this._signType=t.sign}function i(e){return new r(e)}function o(e){return new a(e)}var s=n(467),c=n(837),u=n(20),l=n(1036),d=n(1072),f=n(884);Object.keys(f).forEach(function(e){f[e].id=new t(f[e].id,"hex"),f[e.toLowerCase()]=f[e]}),u(r,c.Writable),r.prototype._write=function(e,t,n){this._hash.update(e),n()},r.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},r.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=l(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},u(a,c.Writable),a.prototype._write=function(e,t,n){this._hash.update(e),n()},a.prototype.update=function(e,n){return"string"==typeof e&&(e=new t(e,n)),this._hash.update(e),this},a.prototype.verify=function(e,n,r){"string"==typeof n&&(n=new t(n,r)),this.end();var a=this._hash.digest();return d(n,a,e,this._signType,this._tag)},e.exports={Sign:i,Verify:o,createSign:i,createVerify:o}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n,r,o,s){var c=_(n);if(c.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return a(e,c)}if("dsa"===c.type){if("dsa"!==o)throw new Error("wrong private key type");return i(e,c,r)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");e=t.concat([s,e]);for(var u=c.modulus.byteLength(),l=[0,1];e.length+l.length+1<u;)l.push(255);l.push(0);for(var d=-1;++d<e.length;)l.push(e[d]);return p(l,c)}function a(e,n){var r=M[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var a=new h(r),i=a.keyFromPrivate(n.privateKey),o=i.sign(e);return new t(o.toDER())}function i(e,t,n){for(var r,a=t.params.priv_key,i=t.params.p,u=t.params.q,f=t.params.g,p=new m(0),h=c(e,u).mod(u),_=!1,M=s(a,u,e,n);!1===_;)r=l(u,M,n),p=d(f,r,i,u),_=r.invm(u).imul(h.add(a.mul(p))).mod(u),0===_.cmpn(0)&&(_=!1,p=new m(0));return o(p,_)}function o(e,n){e=e.toArray(),n=n.toArray(),128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n));var r=e.length+n.length+4,a=[48,r,2,e.length];return a=a.concat(e,[2,n.length],n),new t(a)}function s(e,n,r,a){if(e=new t(e.toArray()),e.length<n.byteLength()){var i=new t(n.byteLength()-e.length);i.fill(0),e=t.concat([i,e])}var o=r.length,s=u(r,n),c=new t(o);c.fill(1);var l=new t(o);return l.fill(0),l=f(a,l).update(c).update(new t([0])).update(e).update(s).digest(),c=f(a,l).update(c).digest(),l=f(a,l).update(c).update(new t([1])).update(e).update(s).digest(),c=f(a,l).update(c).digest(),{k:l,v:c}}function c(e,t){var n=new m(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function u(e,n){e=c(e,n),e=e.mod(n);var r=new t(e.toArray());if(r.length<n.byteLength()){var a=new t(n.byteLength()-r.length);a.fill(0),r=t.concat([a,r])}return r}function l(e,n,r){var a,i;do{for(a=new t(0);8*a.length<e.bitLength();)n.v=f(r,n.k).update(n.v).digest(),a=t.concat([a,n.v]);i=c(a,e),n.k=f(r,n.k).update(n.v).update(new t([0])).digest(),n.v=f(r,n.k).update(n.v).digest()}while(-1!==i.cmp(e));return i}function d(e,t,n,r){return e.toRed(m.mont(n)).redPow(t).fromRed().mod(r)}var f=n(882),p=n(846),h=n(84).ec,m=n(57),_=n(512),M=n(905);e.exports=r,e.exports.getKey=s,e.exports.makeKey=l}).call(t,n(39).Buffer)},function(e,t){e.exports={name:"elliptic",version:"6.4.0",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",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:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r=1<<t+1,a=e.clone();a.cmpn(1)>=0;){var i;if(a.isOdd()){var o=a.andln(r-1);i=o>(r>>1)-1?(r>>1)-o:o,a.isubn(i)}else i=0;n.push(i);for(var s=0!==a.cmpn(0)&&0===a.andln(r-1)?t+1:1,c=1;c<s;c++)n.push(0);a.iushrn(s)}return n}function a(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,a=0;e.cmpn(-r)>0||t.cmpn(-a)>0;){var i=e.andln(3)+r&3,o=t.andln(3)+a&3;3===i&&(i=-1),3===o&&(o=-1);var s;if(0==(1&i))s=0;else{var c=e.andln(7)+r&7;s=3!==c&&5!==c||2!==o?i:-i}n[0].push(s);var u;if(0==(1&o))u=0;else{var c=t.andln(7)+a&7;u=3!==c&&5!==c||2!==i?o:-o}n[1].push(u),2*r===s+1&&(r=1-r),2*a===u+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return n}function i(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}}function o(e){return"string"==typeof e?c.toArray(e,"hex"):e}function s(e){return new u(e,"hex","le")}var c=t,u=n(57),l=n(105),d=n(897);c.assert=l,c.toArray=d.toArray,c.zero2=d.zero2,c.toHex=d.toHex,c.encode=d.encode,c.getNAF=r,c.getJSF=a,c.cachedProperty=i,c.parseBytes=o,c.intFromLE=s},function(e,t,n){"use strict";function r(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(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);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 a(e,t){this.curve=e,this.type=t,this.precomputed=null}var i=n(57),o=n(84),s=o.utils,c=s.getNAF,u=s.getJSF,l=s.assert;e.exports=r,r.prototype.point=function(){throw new Error("Not implemented")},r.prototype.validate=function(){throw new Error("Not implemented")},r.prototype._fixedNafMul=function(e,t){l(e.precomputed);var n=e._getDoubles(),r=c(t,1),a=(1<<n.step+1)-(n.step%2==0?2:1);a/=3;for(var i=[],o=0;o<r.length;o+=n.step){for(var s=0,t=o+n.step-1;t>=o;t--)s=(s<<1)+r[t];i.push(s)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=a;f>0;f--){for(var o=0;o<i.length;o++){var s=i[o];s===f?d=d.mixedAdd(n.points[o]):s===-f&&(d=d.mixedAdd(n.points[o].neg()))}u=u.add(d)}return u.toP()},r.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var a=r.points,i=c(t,n),o=this.jpoint(null,null,null),s=i.length-1;s>=0;s--){for(var t=0;s>=0&&0===i[s];s--)t++;if(s>=0&&t++,o=o.dblp(t),s<0)break;var u=i[s];l(0!==u),o="affine"===e.type?u>0?o.mixedAdd(a[u-1>>1]):o.mixedAdd(a[-u-1>>1].neg()):u>0?o.add(a[u-1>>1]):o.add(a[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},r.prototype._wnafMulAdd=function(e,t,n,r,a){for(var i=this._wnafT1,o=this._wnafT2,s=this._wnafT3,l=0,d=0;d<r;d++){var f=t[d],p=f._getNAFPoints(e);i[d]=p.wnd,o[d]=p.points}for(var d=r-1;d>=1;d-=2){var h=d-1,m=d;if(1===i[h]&&1===i[m]){var _=[t[h],null,null,t[m]];0===t[h].y.cmp(t[m].y)?(_[1]=t[h].add(t[m]),_[2]=t[h].toJ().mixedAdd(t[m].neg())):0===t[h].y.cmp(t[m].y.redNeg())?(_[1]=t[h].toJ().mixedAdd(t[m]),_[2]=t[h].add(t[m].neg())):(_[1]=t[h].toJ().mixedAdd(t[m]),_[2]=t[h].toJ().mixedAdd(t[m].neg()));var M=[-3,-1,-5,-7,0,7,5,1,3],b=u(n[h],n[m]);l=Math.max(b[0].length,l),s[h]=new Array(l),s[m]=new Array(l);for(var g=0;g<l;g++){var v=0|b[0][g],y=0|b[1][g];s[h][g]=M[3*(v+1)+(y+1)],s[m][g]=0,o[h]=_}}else s[h]=c(n[h],i[h]),s[m]=c(n[m],i[m]),l=Math.max(s[h].length,l),l=Math.max(s[m].length,l)}for(var A=this.jpoint(null,null,null),E=this._wnafT4,d=l;d>=0;d--){for(var w=0;d>=0;){for(var k=!0,g=0;g<r;g++)E[g]=0|s[g][d],0!==E[g]&&(k=!1);if(!k)break;w++,d--}if(d>=0&&w++,A=A.dblp(w),d<0)break;for(var g=0;g<r;g++){var f,T=E[g];0!==T&&(T>0?f=o[g][T-1>>1]:T<0&&(f=o[g][-T-1>>1].neg()),A="affine"===f.type?A.mixedAdd(f):A.add(f))}}for(var d=0;d<r;d++)o[d]=null;return a?A:A.toP()},r.BasePoint=a,a.prototype.eq=function(){throw new Error("Not implemented")},a.prototype.validate=function(){return this.curve.validate(this)},r.prototype.decodePoint=function(e,t){e=s.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n){6===e[0]?l(e[e.length-1]%2==0):7===e[0]&&l(e[e.length-1]%2==1);return 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")},a.prototype.encodeCompressed=function(e){return this.encode(e,!0)},a.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))},a.prototype.encode=function(e,t){return s.encode(this._encode(t),e)},a.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},a.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)},a.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a<t;a+=e){for(var i=0;i<e;i++)r=r.dbl();n.push(r)}return{step:e,points:n}},a.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(),a=1;a<n;a++)t[a]=t[a-1].add(r);return{wnd:e,points:t}},a.prototype._getBeta=function(){return null},a.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){"use strict";function r(e){l.call(this,"short",e),this.a=new c(e.a,16).toRed(this.red),this.b=new c(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 a(e,t,n,r){l.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(t,16),this.y=new c(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 i(e,t,n,r){l.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(t,16),this.y=new c(n,16),this.z=new c(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}var o=n(511),s=n(84),c=n(57),u=n(20),l=o.base,d=s.utils.assert;u(r,l),e.exports=r,r.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new c(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=r[0].cmp(r[1])<0?r[0]:r[1],t=t.toRed(this.red)}if(e.lambda)n=new c(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],d(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}var i;return i=e.basis?e.basis.map(function(e){return{a:new c(e.a,16),b:new c(e.b,16)}}):this._getEndoBasis(n),{beta:t,lambda:n,basis:i}}},r.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:c.mont(e),n=new c(2).toRed(t).redInvm(),r=n.redNeg(),a=new c(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(a).fromRed(),r.redSub(a).fromRed()]},r.prototype._getEndoBasis=function(e){for(var t,n,r,a,i,o,s,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,p=this.n.clone(),h=new c(1),m=new c(0),_=new c(0),M=new c(1),b=0;0!==f.cmpn(0);){var g=p.div(f);u=p.sub(g.mul(f)),l=_.sub(g.mul(h));var v=M.sub(g.mul(m));if(!r&&u.cmp(d)<0)t=s.neg(),n=h,r=u.neg(),a=l;else if(r&&2==++b)break;s=u,p=f,f=u,_=h,h=l,M=m,m=v}i=u.neg(),o=l;var y=r.sqr().add(a.sqr());return i.sqr().add(o.sqr()).cmp(y)>=0&&(i=t,o=n),r.negative&&(r=r.neg(),a=a.neg()),i.negative&&(i=i.neg(),o=o.neg()),[{a:r,b:a},{a:i,b:o}]},r.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),s=i.mul(r.a),c=a.mul(n.b),u=i.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},r.prototype.pointFromX=function(e,t){e=new c(e,16),e.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)},r.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},r.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i<e.length;i++){var o=this._endoSplit(t[i]),s=e[i],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*i]=s,r[2*i+1]=c,a[2*i]=o.k1,a[2*i+1]=o.k2}for(var u=this._wnafMulAdd(1,r,a,2*i,n),l=0;l<2*i;l++)r[l]=null,a[l]=null;return u},u(a,l.BasePoint),r.prototype.point=function(e,t,n){return new a(this,e,t,n)},r.prototype.pointFromJSON=function(e,t){return a.fromJSON(this,e,t)},a.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}},a.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]},a.fromJSON=function(e,t,n){function r(t){return e.point(t[0],t[1],n)}"string"==typeof t&&(t=JSON.parse(t));var a=e.point(t[0],t[1],n);if(!t[2])return a;var i=t[2];return a.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[a].concat(i.doubles.points.map(r))},naf:i.naf&&{wnd:i.naf.wnd,points:[a].concat(i.naf.points.map(r))}},a},a.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)+">"},a.prototype.isInfinity=function(){return this.inf},a.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)},a.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(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},a.prototype.getX=function(){return this.x.fromRed()},a.prototype.getY=function(){return this.y.fromRed()},a.prototype.mul=function(e){return e=new c(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},a.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},a.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},a.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))},a.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},a.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(i,l.BasePoint),r.prototype.jpoint=function(e,t,n){return new i(this,e,t,n)},i.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)},i.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},i.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),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=r.redMul(u),f=c.redSqr().redIAdd(l).redISub(d).redISub(d),p=c.redMul(d.redISub(f)).redISub(i.redMul(l)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,p,h)},i.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),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),l=n.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),f=s.redMul(l.redISub(d)).redISub(a.redMul(u)),p=this.z.redMul(o);return this.curve.jpoint(d,f,p)},i.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}for(var r=this.curve.a,a=this.curve.tinv,i=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),u=o.redAdd(o),n=0;n<e;n++){var l=i.redSqr(),d=u.redSqr(),f=d.redSqr(),p=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(c)),h=i.redMul(d),m=p.redSqr().redISub(h.redAdd(h)),_=h.redISub(m),M=p.redMul(_);M=M.redIAdd(M).redISub(f);var b=u.redMul(s);n+1<e&&(c=c.redMul(f)),i=m,s=b,u=M}return this.curve.jpoint(i,u.redMul(a),s)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},i.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),a=this.y.redSqr(),i=a.redSqr(),o=this.x.redAdd(a).redSqr().redISub(r).redISub(i);o=o.redIAdd(o);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(o).redISub(o),u=i.redIAdd(i);u=u.redIAdd(u),u=u.redIAdd(u),e=c,t=s.redMul(o.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),p=this.x.redAdd(d).redSqr().redISub(l).redISub(f);p=p.redIAdd(p);var h=l.redAdd(l).redIAdd(l),m=h.redSqr(),_=f.redIAdd(f);_=_.redIAdd(_),_=_.redIAdd(_),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(_),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(e,t,n)},i.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),a=this.y.redSqr(),i=a.redSqr(),o=this.x.redAdd(a).redSqr().redISub(r).redISub(i);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 u=i.redIAdd(i);u=u.redIAdd(u),u=u.redIAdd(u),t=s.redMul(o.redISub(c)).redISub(u),n=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),p=this.x.redSub(l).redMul(this.x.redAdd(l));p=p.redAdd(p).redIAdd(p);var h=f.redIAdd(f);h=h.redIAdd(h);var m=h.redAdd(h);e=p.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(l);var _=d.redSqr();_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_),t=p.redMul(h.redISub(e)).redISub(_)}return this.curve.jpoint(e,t,n)},i.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,a=r.redSqr().redSqr(),i=t.redSqr(),o=n.redSqr(),s=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(a)),c=t.redAdd(t);c=c.redIAdd(c);var u=c.redMul(o),l=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(l),f=o.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var p=s.redMul(d).redISub(f),h=n.redAdd(n).redMul(r);return this.curve.jpoint(l,p,h)},i.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(),a=e.redAdd(e).redIAdd(e),i=a.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r);o=o.redIAdd(o),o=o.redAdd(o).redIAdd(o),o=o.redISub(i);var s=o.redSqr(),c=r.redIAdd(r);c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var u=a.redIAdd(o).redSqr().redISub(i).redISub(s).redISub(c),l=t.redMul(u);l=l.redIAdd(l),l=l.redIAdd(l);var d=this.x.redMul(s).redISub(l);d=d.redIAdd(d),d=d.redIAdd(d);var f=this.y.redMul(u.redMul(c.redISub(u)).redISub(o.redMul(s)));f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var p=this.z.redAdd(o).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,f,p)},i.prototype.mul=function(e,t){return e=new c(e,t),this.curve._wnafMul(this,e)},i.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),a=n.redMul(e.z);return 0===this.y.redMul(a).redISub(e.y.redMul(r)).cmpn(0)},i.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(),a=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}return!1},
_inc/build/jetpack-connection-banner.min.js CHANGED
@@ -1,3 +1,3 @@
1
  /* Do not modify this file directly. It is compiled from other files. */
2
  /* global jQuery, jp_banner */
3
- !function(e){function n(e){c.find(".vertical-menu__feature-item-is-selected").removeClass("vertical-menu__feature-item-is-selected"),i.find(".jp__slide-is-active").removeClass("jp__slide-is-active"),c.children().eq(e).addClass("vertical-menu__feature-item-is-selected"),i.children().eq(e).addClass("jp__slide-is-active")}var c=e(".jp-wpcom-connect__vertical-nav-container"),i=e(".jp-wpcom-connect__content-container"),t=e(".jp-banner__button-container .next-feature"),o=e(".jp-connect-full__container"),s=e(".jp-connect-full__dismiss, .jp-connect-full__dismiss-paragraph"),a=e("#welcome-panel"),l=e("#message"),r=e(".connection-banner-dismiss");e(window).on("load",function(){a.insertBefore(l)}),r.on("click",function(){e(l).hide();var n={action:"jetpack_connection_banner",nonce:jp_banner.connectionBannerNonce,dismissBanner:!0};e.post(jp_banner.ajax_url,n,function(n){!0!==n.success&&e(l).show()})}),c.on("click",".vertical-menu__feature-item:not( .vertical-menu__feature-item-is-selected )",function(){n(e(this).index())}),t.on("click",function(){n(e(this).closest(".jp-wpcom-connect__slide").index()+1)}),s.on("click",function(){e(o).hide()}),e(document).keyup(function(n){27===n.keyCode&&e(s).click()})}(jQuery);
1
  /* Do not modify this file directly. It is compiled from other files. */
2
  /* global jQuery, jp_banner */
3
+ !function(e){function n(e){c.find(".vertical-menu__feature-item-is-selected").removeClass("vertical-menu__feature-item-is-selected"),i.find(".jp__slide-is-active").removeClass("jp__slide-is-active"),c.children().eq(e).addClass("vertical-menu__feature-item-is-selected"),i.children().eq(e).addClass("jp__slide-is-active")}var c=e(".jp-wpcom-connect__vertical-nav-container"),i=e(".jp-wpcom-connect__content-container"),t=e(".jp-banner__button-container .next-feature"),o=e(".jp-connect-full__container"),s=e(".jp-connect-full__dismiss, .jp-connect-full__dismiss-paragraph"),a=e("#welcome-panel"),l=e("#message"),r=e(".connection-banner-dismiss");e(window).on("load",function(){a.insertBefore(l)}),r.on("click",function(){e(l).hide();var n={action:"jetpack_connection_banner",nonce:jp_banner.connectionBannerNonce,dismissBanner:!0};e.post(jp_banner.ajax_url,n,function(n){!0!==n.success&&e(l).show()})}),c.on("click",".vertical-menu__feature-item:not( .vertical-menu__feature-item-is-selected )",function(){n(e(this).index())}),t.on("click",function(c){c.preventDefault(),n(e(this).closest(".jp-wpcom-connect__slide").index()+1)}),s.on("click",function(){e(o).hide()}),e(document).keyup(function(n){27===n.keyCode&&e(s).click()})}(jQuery);
_inc/class.jetpack-provision.php CHANGED
@@ -24,7 +24,7 @@ class Jetpack_Provision { //phpcs:ignore
24
  // WP_SITEURL constants if the constant hasn't already been defined.
25
  if ( isset( $named_args[ $url_arg ] ) ) {
26
  if ( version_compare( phpversion(), '5.3.0', '>=' ) ) {
27
- add_filter( $url_arg, function() use ( $url_arg, $named_args ) {
28
  return $named_args[ $url_arg ];
29
  }, 11 );
30
  } elseif ( ! defined( $constant_name ) ) {
@@ -274,7 +274,7 @@ class Jetpack_Provision { //phpcs:ignore
274
  if ( isset( $body_json->error ) ) {
275
  return new WP_Error( $body_json->error, $body_json->message );
276
  } else {
277
- return new WP_Error( 'server_error', sprintf( __( "Request failed with code %s" ), $response_code ) );
278
  }
279
  }
280
 
24
  // WP_SITEURL constants if the constant hasn't already been defined.
25
  if ( isset( $named_args[ $url_arg ] ) ) {
26
  if ( version_compare( phpversion(), '5.3.0', '>=' ) ) {
27
+ add_filter( $url_arg, function() use ( $url_arg, $named_args ) { // phpcs:ignore PHPCompatibility
28
  return $named_args[ $url_arg ];
29
  }, 11 );
30
  } elseif ( ! defined( $constant_name ) ) {
274
  if ( isset( $body_json->error ) ) {
275
  return new WP_Error( $body_json->error, $body_json->message );
276
  } else {
277
+ return new WP_Error( 'server_error', sprintf( __( 'Request failed with code %s', 'jetpack' ), $response_code ) );
278
  }
279
  }
280
 
_inc/jetpack-connection-banner.js CHANGED
@@ -36,7 +36,9 @@
36
  transitionSlideToIndex( $( this ).index() );
37
  } );
38
 
39
- nextFeatureButtons.on( 'click', function() {
 
 
40
  var slideIndex = $( this )
41
  .closest( '.jp-wpcom-connect__slide' )
42
  .index();
36
  transitionSlideToIndex( $( this ).index() );
37
  } );
38
 
39
+ nextFeatureButtons.on( 'click', function( e ) {
40
+ e.preventDefault();
41
+
42
  var slideIndex = $( this )
43
  .closest( '.jp-wpcom-connect__slide' )
44
  .index();
_inc/jetpack-strings.php CHANGED
@@ -141,6 +141,87 @@ __( "Connect your user account to WordPress.com to view your email followers", "
141
  __( "Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:81
142
  __( "Show a \"follow blog\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:106
143
  __( "Show a \"follow comments\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  _x( "privacy", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:61
145
  _x( "tracks", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:62
146
  _x( "data", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:63
@@ -365,87 +446,6 @@ __( "Enables a lightweight, mobile-friendly theme that will be displayed to visi
365
  __( "Use excerpts instead of full posts on front page and archive pages", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:221
366
  __( "Show featured images", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:225
367
  __( "Show an ad for the WordPress mobile apps in the footer of the mobile theme", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:229
368
- _n( "Please correct the issue below and try again.", "Please correct the issues listed below and try again.", 1, "jetpack" ), // _inc/client/notices/validation-error-list.jsx:20
369
- __( "Daily backup of all your site data with unlimited space and one-click restores", "jetpack" ), // _inc/client/plans/plan-body.jsx:103
370
- __( "Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:106
371
- __( "Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:109
372
- __( "Backups", "jetpack" ), // _inc/client/plans/plan-body.jsx:118
373
- __( "Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.", "jetpack" ), // _inc/client/plans/plan-body.jsx:119
374
- __( "View your security activity", "jetpack" ), // _inc/client/plans/plan-body.jsx:121
375
- __( "Backups", "jetpack" ), // _inc/client/plans/plan-body.jsx:129
376
- __( " (powered by VaultPress).", "jetpack" ), // _inc/client/plans/plan-body.jsx:130
377
- __( "View your security dashboard", "jetpack" ), // _inc/client/plans/plan-body.jsx:134
378
- __( "Configure VaultPress", "jetpack" ), // _inc/client/plans/plan-body.jsx:139
379
- __( "Unlimited Premium Themes", "jetpack" ), // _inc/client/plans/plan-body.jsx:156
380
- __( "Exclusive hand-crafted designs you will love with dedicated support directly from the theme authors.", "jetpack" ), // _inc/client/plans/plan-body.jsx:157
381
- __( "Browse Themes", "jetpack" ), // _inc/client/plans/plan-body.jsx:162
382
- __( "Spam Protection", "jetpack" ), // _inc/client/plans/plan-body.jsx:168
383
- __( "State-of-the-art spam defense powered by Akismet.", "jetpack" ), // _inc/client/plans/plan-body.jsx:169
384
- __( "View your spam stats", "jetpack" ), // _inc/client/plans/plan-body.jsx:173
385
- __( "Configure Akismet", "jetpack" ), // _inc/client/plans/plan-body.jsx:178
386
- __( "Ads", "jetpack" ), // _inc/client/plans/plan-body.jsx:200
387
- __( "Earn income by allowing Jetpack to display high quality ads (powered by WordAds).", "jetpack" ), // _inc/client/plans/plan-body.jsx:201
388
- __( "View your earnings", "jetpack" ), // _inc/client/plans/plan-body.jsx:205
389
- __( "Activate Ads", "jetpack" ), // _inc/client/plans/plan-body.jsx:214
390
- __( "Search", "jetpack" ), // _inc/client/plans/plan-body.jsx:226
391
- __( "Replace the default WordPress search with better results that will help your users find what they are looking for.", "jetpack" ), // _inc/client/plans/plan-body.jsx:227
392
- __( "Customize Search Widget", "jetpack" ), // _inc/client/plans/plan-body.jsx:231
393
- __( "Activate Search", "jetpack" ), // _inc/client/plans/plan-body.jsx:240
394
- __( "Social Media Scheduling", "jetpack" ), // _inc/client/plans/plan-body.jsx:252
395
- __( "Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.", "jetpack" ), // _inc/client/plans/plan-body.jsx:253
396
- __( "Schedule Posts", "jetpack" ), // _inc/client/plans/plan-body.jsx:258
397
- __( "Activate Publicize", "jetpack" ), // _inc/client/plans/plan-body.jsx:267
398
- __( "Video Hosting", "jetpack" ), // _inc/client/plans/plan-body.jsx:279
399
- __( "Fast, optimized, ad-free, and unlimited video hosting for your site.", "jetpack" ), // _inc/client/plans/plan-body.jsx:280
400
- __( "Upload Videos Now", "jetpack" ), // _inc/client/plans/plan-body.jsx:284
401
- __( "Activate Video Hosting", "jetpack" ), // _inc/client/plans/plan-body.jsx:293
402
- __( "SEO Tools", "jetpack" ), // _inc/client/plans/plan-body.jsx:305
403
- __( "Advanced SEO tools to help your site get found when people search for relevant content.", "jetpack" ), // _inc/client/plans/plan-body.jsx:306
404
- __( "Configure Site SEO", "jetpack" ), // _inc/client/plans/plan-body.jsx:310
405
- __( "Activate SEO Tools", "jetpack" ), // _inc/client/plans/plan-body.jsx:319
406
- __( "Google Analytics", "jetpack" ), // _inc/client/plans/plan-body.jsx:331
407
- __( "Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.", "jetpack" ), // _inc/client/plans/plan-body.jsx:332
408
- __( "Configure Google Analytics", "jetpack" ), // _inc/client/plans/plan-body.jsx:336
409
- __( "Activate Google Analytics", "jetpack" ), // _inc/client/plans/plan-body.jsx:345
410
- __( "Three great reasons to go Pro", "jetpack" ), // _inc/client/plans/plan-body.jsx:356
411
- __( "Design the perfect site with unlimited access to hundreds of themes and unlimited, high-speed, and ad-free video hosting.", "jetpack" ), // _inc/client/plans/plan-body.jsx:357
412
- __( "Always-on security including real-time backups, malware scanning, and automatic threat resolution.", "jetpack" ), // _inc/client/plans/plan-body.jsx:358
413
- __( "Grow your traffic and revenue with social media scheduling, enhanced site search, SEO tools, PayPal payments, and an ad program.", "jetpack" ), // _inc/client/plans/plan-body.jsx:359
414
- __( "Compare Plans", "jetpack" ), // _inc/client/plans/plan-body.jsx:362
415
- __( "Two great reasons to go Pro", "jetpack" ), // _inc/client/plans/plan-body.jsx:372
416
- __( "Unlimited access to hundreds of premium WordPress themes with dedicated support directly from the theme authors.", "jetpack" ), // _inc/client/plans/plan-body.jsx:373
417
- __( "A superior search experience powered by Elasticsearch providing your users with faster and more relevant search results. Previously only available to WordPress.com VIP customers and trusted by industry-leading brands.", "jetpack" ), // _inc/client/plans/plan-body.jsx:374
418
- __( "Explore Jetpack Professional", "jetpack" ), // _inc/client/plans/plan-body.jsx:377
419
- __( "Design the perfect website", "jetpack" ), // _inc/client/plans/plan-body.jsx:392
420
- __( "Get unlimited access to hundreds of professional themes, a superior search experience for your users, and unlimited high-speed, and ad-free video hosting.", "jetpack" ), // _inc/client/plans/plan-body.jsx:393
421
- __( "Increase traffic and revenue", "jetpack" ), // _inc/client/plans/plan-body.jsx:397
422
- __( "Reach more people and earn money with automated social media scheduling, better search results, SEO preview tools, PayPal payments, and an ad program.", "jetpack" ), // _inc/client/plans/plan-body.jsx:398
423
- __( "Always-on Security", "jetpack" ), // _inc/client/plans/plan-body.jsx:402
424
- __( "Automatic defense against hacks, malware, spam, data loss, and downtime with automated backups, unlimited storage, and malware scanning.", "jetpack" ), // _inc/client/plans/plan-body.jsx:403
425
- __( "Enjoy priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:407
426
- __( "We support all Jetpack users, regardless of plan. But customers on a paid subscription enjoy priority support so that security issues are identified and fixed for you as soon as possible.", "jetpack" ), // _inc/client/plans/plan-body.jsx:408
427
- __( "Compare Plans", "jetpack" ), // _inc/client/plans/plan-body.jsx:415
428
- __( "You’re currently on Jetpack %(plan)s.", "jetpack" ), // _inc/client/plans/plan-grid.jsx:62
429
- __( "Your Plan", "jetpack" ), // _inc/client/plans/plan-grid.jsx:70
430
- __( "Manage your plan", "jetpack" ), // _inc/client/plans/plan-grid.jsx:73
431
- __( "View all Jetpack plans", "jetpack" ), // _inc/client/plans/plan-grid.jsx:76
432
- __( "Jetpack Premium now includes our full security suite", "jetpack" ), // _inc/client/plans/plan-header.jsx:35
433
- __( "Automated backups, one-click restores, spam filtering, and malware scanning.", "jetpack" ), // _inc/client/plans/plan-header.jsx:38
434
- __( "How much is your website worth?", "jetpack" ), // _inc/client/plans/plan-header.jsx:42
435
- __( "For less than the price of a coffee a month you can rest easy knowing your hard work (or livelihood) is backed up.", "jetpack" ), // _inc/client/plans/plan-header.jsx:44
436
- __( "Upgrade to a weekly coffee and fully protect your site from malware, infiltrations, and security loopholes with automated malware scanning.", "jetpack" ), // _inc/client/plans/plan-header.jsx:46
437
- __( "Learn more", "jetpack" ), // _inc/client/plans/plan-header.jsx:50
438
- __( "Image of WordPress login screen protected by Jetpack", "jetpack" ), // _inc/client/plans/plan-header.jsx:55
439
- __( "Powerful services for your site", "jetpack" ), // _inc/client/plans/plan-header.jsx:69
440
- __( "Always-on security, a better search experience, unlimited CDN use, advanced marketing tools, and monetization services.", "jetpack" ), // _inc/client/plans/plan-header.jsx:70
441
- __( "Welcome to Jetpack Personal", "jetpack" ), // _inc/client/plans/plan-header.jsx:83
442
- __( "Daily backups, spam filtering, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:84
443
- __( "Welcome to Jetpack Premium", "jetpack" ), // _inc/client/plans/plan-header.jsx:97
444
- __( "Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:98
445
- __( "Welcome to Jetpack Professional", "jetpack" ), // _inc/client/plans/plan-header.jsx:111
446
- __( "Full security suite, marketing and revenue automation tools, unlimited video hosting, unlimited themes, enhanced search, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:112
447
- __( "Your site is on Development Mode", "jetpack" ), // _inc/client/plans/plan-header.jsx:125
448
- __( "Once you connect, you can upgrade to a paid plan in order to unlock world-class security, spam protection tools, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:126
449
  /* translators: Referring to a number of page views */
450
  __( "Views today", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:53
451
  /* translators: Referring to a number of page views */
@@ -483,7 +483,7 @@ __( "Unlink me from WordPress.com", "jetpack" ), // _inc/client/components/conne
483
  __( "Link to WordPress.com", "jetpack" ), // _inc/client/components/connect-button/index.jsx:93
484
  __( "Manage site connection", "jetpack" ), // _inc/client/components/connect-button/index.jsx:113
485
  __( "Set up Jetpack", "jetpack" ), // _inc/client/components/connect-button/index.jsx:128
486
- __( "By clicking the button below, you agree to our fascinating {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com", "jetpack" ), // _inc/client/components/connect-button/index.jsx:140
487
  _x( "Updates needed", "Short warning message", "jetpack" ), // _inc/client/components/dash-item/index.jsx:92
488
  __( "Active", "jetpack" ), // _inc/client/components/dash-item/index.jsx:98
489
  _x( "Paid", "Short label appearing near a paid feature configuration block.", "jetpack" ), // _inc/client/components/dash-item/index.jsx:114
141
  __( "Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:81
142
  __( "Show a \"follow blog\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:106
143
  __( "Show a \"follow comments\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:116
144
+ _n( "Please correct the issue below and try again.", "Please correct the issues listed below and try again.", 1, "jetpack" ), // _inc/client/notices/validation-error-list.jsx:20
145
+ __( "Daily backup of all your site data with unlimited space and one-click restores", "jetpack" ), // _inc/client/plans/plan-body.jsx:103
146
+ __( "Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:106
147
+ __( "Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:109
148
+ __( "Backups", "jetpack" ), // _inc/client/plans/plan-body.jsx:118
149
+ __( "Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.", "jetpack" ), // _inc/client/plans/plan-body.jsx:119
150
+ __( "View your security activity", "jetpack" ), // _inc/client/plans/plan-body.jsx:121
151
+ __( "Backups", "jetpack" ), // _inc/client/plans/plan-body.jsx:129
152
+ __( " (powered by VaultPress).", "jetpack" ), // _inc/client/plans/plan-body.jsx:130
153
+ __( "View your security dashboard", "jetpack" ), // _inc/client/plans/plan-body.jsx:134
154
+ __( "Configure VaultPress", "jetpack" ), // _inc/client/plans/plan-body.jsx:139
155
+ __( "Unlimited Premium Themes", "jetpack" ), // _inc/client/plans/plan-body.jsx:156
156
+ __( "Exclusive hand-crafted designs you will love with dedicated support directly from the theme authors.", "jetpack" ), // _inc/client/plans/plan-body.jsx:157
157
+ __( "Browse Themes", "jetpack" ), // _inc/client/plans/plan-body.jsx:162
158
+ __( "Spam Protection", "jetpack" ), // _inc/client/plans/plan-body.jsx:168
159
+ __( "State-of-the-art spam defense powered by Akismet.", "jetpack" ), // _inc/client/plans/plan-body.jsx:169
160
+ __( "View your spam stats", "jetpack" ), // _inc/client/plans/plan-body.jsx:173
161
+ __( "Configure Akismet", "jetpack" ), // _inc/client/plans/plan-body.jsx:178
162
+ __( "Ads", "jetpack" ), // _inc/client/plans/plan-body.jsx:200
163
+ __( "Earn income by allowing Jetpack to display high quality ads (powered by WordAds).", "jetpack" ), // _inc/client/plans/plan-body.jsx:201
164
+ __( "View your earnings", "jetpack" ), // _inc/client/plans/plan-body.jsx:205
165
+ __( "Activate Ads", "jetpack" ), // _inc/client/plans/plan-body.jsx:214
166
+ __( "Search", "jetpack" ), // _inc/client/plans/plan-body.jsx:226
167
+ __( "Replace the default WordPress search with better results that will help your users find what they are looking for.", "jetpack" ), // _inc/client/plans/plan-body.jsx:227
168
+ __( "Customize Search Widget", "jetpack" ), // _inc/client/plans/plan-body.jsx:231
169
+ __( "Activate Search", "jetpack" ), // _inc/client/plans/plan-body.jsx:240
170
+ __( "Social Media Scheduling", "jetpack" ), // _inc/client/plans/plan-body.jsx:252
171
+ __( "Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.", "jetpack" ), // _inc/client/plans/plan-body.jsx:253
172
+ __( "Schedule Posts", "jetpack" ), // _inc/client/plans/plan-body.jsx:258
173
+ __( "Activate Publicize", "jetpack" ), // _inc/client/plans/plan-body.jsx:267
174
+ __( "Video Hosting", "jetpack" ), // _inc/client/plans/plan-body.jsx:279
175
+ __( "Fast, optimized, ad-free, and unlimited video hosting for your site.", "jetpack" ), // _inc/client/plans/plan-body.jsx:280
176
+ __( "Upload Videos Now", "jetpack" ), // _inc/client/plans/plan-body.jsx:284
177
+ __( "Activate Video Hosting", "jetpack" ), // _inc/client/plans/plan-body.jsx:293
178
+ __( "SEO Tools", "jetpack" ), // _inc/client/plans/plan-body.jsx:305
179
+ __( "Advanced SEO tools to help your site get found when people search for relevant content.", "jetpack" ), // _inc/client/plans/plan-body.jsx:306
180
+ __( "Configure Site SEO", "jetpack" ), // _inc/client/plans/plan-body.jsx:310
181
+ __( "Activate SEO Tools", "jetpack" ), // _inc/client/plans/plan-body.jsx:319
182
+ __( "Google Analytics", "jetpack" ), // _inc/client/plans/plan-body.jsx:331
183
+ __( "Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.", "jetpack" ), // _inc/client/plans/plan-body.jsx:332
184
+ __( "Configure Google Analytics", "jetpack" ), // _inc/client/plans/plan-body.jsx:336
185
+ __( "Activate Google Analytics", "jetpack" ), // _inc/client/plans/plan-body.jsx:345
186
+ __( "Three great reasons to go Pro", "jetpack" ), // _inc/client/plans/plan-body.jsx:356
187
+ __( "Design the perfect site with unlimited access to hundreds of themes and unlimited, high-speed, and ad-free video hosting.", "jetpack" ), // _inc/client/plans/plan-body.jsx:357
188
+ __( "Always-on security including real-time backups, malware scanning, and automatic threat resolution.", "jetpack" ), // _inc/client/plans/plan-body.jsx:358
189
+ __( "Grow your traffic and revenue with social media scheduling, enhanced site search, SEO tools, PayPal payments, and an ad program.", "jetpack" ), // _inc/client/plans/plan-body.jsx:359
190
+ __( "Compare Plans", "jetpack" ), // _inc/client/plans/plan-body.jsx:362
191
+ __( "Two great reasons to go Pro", "jetpack" ), // _inc/client/plans/plan-body.jsx:372
192
+ __( "Unlimited access to hundreds of premium WordPress themes with dedicated support directly from the theme authors.", "jetpack" ), // _inc/client/plans/plan-body.jsx:373
193
+ __( "A superior search experience powered by Elasticsearch providing your users with faster and more relevant search results. Previously only available to WordPress.com VIP customers and trusted by industry-leading brands.", "jetpack" ), // _inc/client/plans/plan-body.jsx:374
194
+ __( "Explore Jetpack Professional", "jetpack" ), // _inc/client/plans/plan-body.jsx:377
195
+ __( "Design the perfect website", "jetpack" ), // _inc/client/plans/plan-body.jsx:392
196
+ __( "Get unlimited access to hundreds of professional themes, a superior search experience for your users, and unlimited high-speed, and ad-free video hosting.", "jetpack" ), // _inc/client/plans/plan-body.jsx:393
197
+ __( "Increase traffic and revenue", "jetpack" ), // _inc/client/plans/plan-body.jsx:397
198
+ __( "Reach more people and earn money with automated social media scheduling, better search results, SEO preview tools, PayPal payments, and an ad program.", "jetpack" ), // _inc/client/plans/plan-body.jsx:398
199
+ __( "Always-on Security", "jetpack" ), // _inc/client/plans/plan-body.jsx:402
200
+ __( "Automatic defense against hacks, malware, spam, data loss, and downtime with automated backups, unlimited storage, and malware scanning.", "jetpack" ), // _inc/client/plans/plan-body.jsx:403
201
+ __( "Enjoy priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:407
202
+ __( "We support all Jetpack users, regardless of plan. But customers on a paid subscription enjoy priority support so that security issues are identified and fixed for you as soon as possible.", "jetpack" ), // _inc/client/plans/plan-body.jsx:408
203
+ __( "Compare Plans", "jetpack" ), // _inc/client/plans/plan-body.jsx:415
204
+ __( "You’re currently on Jetpack %(plan)s.", "jetpack" ), // _inc/client/plans/plan-grid.jsx:62
205
+ __( "Your Plan", "jetpack" ), // _inc/client/plans/plan-grid.jsx:70
206
+ __( "Manage your plan", "jetpack" ), // _inc/client/plans/plan-grid.jsx:73
207
+ __( "View all Jetpack plans", "jetpack" ), // _inc/client/plans/plan-grid.jsx:76
208
+ __( "Jetpack Premium now includes our full security suite", "jetpack" ), // _inc/client/plans/plan-header.jsx:35
209
+ __( "Automated backups, one-click restores, spam filtering, and malware scanning.", "jetpack" ), // _inc/client/plans/plan-header.jsx:38
210
+ __( "How much is your website worth?", "jetpack" ), // _inc/client/plans/plan-header.jsx:42
211
+ __( "For less than the price of a coffee a month you can rest easy knowing your hard work (or livelihood) is backed up.", "jetpack" ), // _inc/client/plans/plan-header.jsx:44
212
+ __( "Upgrade to a weekly coffee and fully protect your site from malware, infiltrations, and security loopholes with automated malware scanning.", "jetpack" ), // _inc/client/plans/plan-header.jsx:46
213
+ __( "Learn more", "jetpack" ), // _inc/client/plans/plan-header.jsx:50
214
+ __( "Image of WordPress login screen protected by Jetpack", "jetpack" ), // _inc/client/plans/plan-header.jsx:55
215
+ __( "Powerful services for your site", "jetpack" ), // _inc/client/plans/plan-header.jsx:69
216
+ __( "Always-on security, a better search experience, unlimited CDN use, advanced marketing tools, and monetization services.", "jetpack" ), // _inc/client/plans/plan-header.jsx:70
217
+ __( "Welcome to Jetpack Personal", "jetpack" ), // _inc/client/plans/plan-header.jsx:83
218
+ __( "Daily backups, spam filtering, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:84
219
+ __( "Welcome to Jetpack Premium", "jetpack" ), // _inc/client/plans/plan-header.jsx:97
220
+ __( "Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:98
221
+ __( "Welcome to Jetpack Professional", "jetpack" ), // _inc/client/plans/plan-header.jsx:111
222
+ __( "Full security suite, marketing and revenue automation tools, unlimited video hosting, unlimited themes, enhanced search, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:112
223
+ __( "Your site is on Development Mode", "jetpack" ), // _inc/client/plans/plan-header.jsx:125
224
+ __( "Once you connect, you can upgrade to a paid plan in order to unlock world-class security, spam protection tools, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:126
225
  _x( "privacy", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:61
226
  _x( "tracks", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:62
227
  _x( "data", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:63
446
  __( "Use excerpts instead of full posts on front page and archive pages", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:221
447
  __( "Show featured images", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:225
448
  __( "Show an ad for the WordPress mobile apps in the footer of the mobile theme", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
449
  /* translators: Referring to a number of page views */
450
  __( "Views today", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:53
451
  /* translators: Referring to a number of page views */
483
  __( "Link to WordPress.com", "jetpack" ), // _inc/client/components/connect-button/index.jsx:93
484
  __( "Manage site connection", "jetpack" ), // _inc/client/components/connect-button/index.jsx:113
485
  __( "Set up Jetpack", "jetpack" ), // _inc/client/components/connect-button/index.jsx:128
486
+ __( "By clicking the button below, you agree to our {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com.", "jetpack" ), // _inc/client/components/connect-button/index.jsx:140
487
  _x( "Updates needed", "Short warning message", "jetpack" ), // _inc/client/components/dash-item/index.jsx:92
488
  __( "Active", "jetpack" ), // _inc/client/components/dash-item/index.jsx:98
489
  _x( "Paid", "Short label appearing near a paid feature configuration block.", "jetpack" ), // _inc/client/components/dash-item/index.jsx:114
changelog.txt CHANGED
@@ -1,232 +1,249 @@
1
  == Changelog ==
2
-
3
- = 6.3.2 =
4
-
5
- * Release date: July 4, 2018
6
- * Release post: https://wp.me/p1moTy-96E
7
-
8
- **Bug fixes**
9
-
10
- * Simple Payment: Fix compatibility issues with PHP versions 5.3 and below
11
-
12
- = 6.3 =
13
-
14
- * Release date: July 3, 2018
15
- * Release post: https://wp.me/p1moTy-8ag
16
-
17
- **Major Enhancements**
18
-
19
- * Simple Payment: Added Simple Payment Products as Widgets, with the option to manage them via the Customizer.
20
-
21
- **Enhancements**
22
-
23
- * Connection: Added a new connect splash screen content.
24
- * Jetpack Dashboard: We removed the labels reading 'PAID' in order to introduce a better way to remark paid features.
25
- * General: Added support to display geo-location data added to posts and pages with Calypso.
26
-
27
- **Improved compatibility**
28
-
29
- * Protect: We solved an issue related to interaction with bbPress when trying to log in via a bbPress login widget. You would get redirected a few times to log in again after solving the math puzzle.
30
-
31
- **Bug fixes**
32
-
33
- * Comments: Implemented Core WordPress' Comment Cookie Consent Checkbox in Jetpack Comments.
34
- * General: We solved an issue that arised when using the Front End Editor feature plugin. A fatal error wass thrown due to us assuming the `enter_title_here` filter would only run within wp-admin.
35
- * General: Fixed a compatibility problem between WordPress TinyMCE and Jetpack Markdown when visiting the WordPress Dashboard.
36
- * Lazy Images: Fixed behaviour for when JavaScript is disabled.
37
- * Markdown: We fixed the naming of the class used for code blocks that specify a language.
38
- * Simple Payments: Fixed an error when the user had published Simple Payment Products but their Professional Subscription had expired.
39
- * Sitemap: We fixed the format of the date shown for videos on the video sitemap.
40
- * Stats: We fixed the width of the Stats page for wide screens.
41
-
42
- = 6.2.1 =
43
-
44
- * Release date: June 8, 2018
45
- * Release post: https://wp.me/p1moTy-8am
46
-
47
-
48
- **Bug fixes**
49
-
50
- * AMP: We fixed the rendering of the stats pixel for legacy, non-paired, non-canonical AMP pages.
51
- * Shortcodes: Fixed a fatal coming form the VR shortcode when using the Gutenberg editor in the frontend.
52
-
53
- = 6.2 =
54
-
55
- * Release date: June 5, 2018
56
- * Release post: https://wp.me/p1moTy-88v
57
-
58
- **Major Enhancements**
59
-
60
- * Shortcodes: Added Gutenberg block for the [vr] shortcode.
61
-
62
- **Enhancements**
63
-
64
- * AMP: Allow Jetpack features to work on AMP pages, and prevent Jetpack features from rendering to the front end at all.
65
- * Content Options: We now exclude Custom Post Types like Portfolio and Testimonial when we toggle content/excerpt via the Blog Display option in the customizer.
66
- * Cookies & Consent Widget: Added a "top" option for the cookie widget position. The existing bottom of the screen position is the default.
67
- * Tiled Galleries: use Photon if active when a Tiled Gallery links to media file.
68
-
69
- **Improved compatibility**
70
-
71
- * Widgets: Deprecated the use of Widget IDs in the Twitter Timeline Widget given that Twitter deprecates Widget IDs on July, 27th 2018.
72
-
73
- **Bug fixes**
74
-
75
- * Contact Form: Fixed an issue with undefined variables and a warning being logged when submitting the Contact Form.
76
- * Contact Form: Fixed scrolling/height for very large contact forms.
77
- * Widgets: Fixed Cookies & Consent Widget's bottom margin for themes that set a specific margin for forms.
78
- * Related Posts: Made it not try to fetch related posts for an unpublished post.
79
- * Sharing: Fixed an issue that resulted in wrong URLs for sharing on WhatsApp.
80
- * Sharing: Fixed the way we check if Akismet is active and has a valid key by caching the result of the verification.
81
- * Shortcodes: Fixed the Facebook shortcode in wp-admin.
82
- * Widget Visibility: Fixed styling for MS Edge.
83
- * Widgets: Removed .widget class from Cookies and Consent widget styles since .widget is not used in every theme.
84
-
85
- = 6.1.1 =
86
-
87
- * Release date: May 22, 2018
88
- * Release post: https://wp.me/p1moTy-85t
89
-
90
- **Enhancements**
91
-
92
- * Ads: Added new setting for Banner consent expiration. Added new filter jetpack_disable_eu_cookie_law_widget, which can be used to disable the banner.
93
- * Ads: Added a new personalized-ads-consent cookie for ads-enabled sites.
94
- * Ads: Added requirement and notice, and button-click opt-in for ads module users.
95
- * Ads: When a user site has a Privacy Policy page set (introduced in 4.9.6), we now default to using that privacy policy as a custom policy URL.
96
- * GDPR: A new warning is displayed while configuring an instance of the EU Cookie Law widget: "Caution: The default policy URL only covers cookies set by Jetpack. If you're running other plugins, custom cookies, or third-party tracking technologies, you should create and link to your own cookie statement."
97
- * GDPR: Added Feedback data (i.e., Contact Form Submissions) to the Personal Data exported and/or erased by the latest version of WordPress core.
98
-
99
- **Bug fixes**
100
-
101
- * Ads: We updated Ads behaviour to not show unless the visitor is on the main query within the loop.
102
- * General: We fixed a bug that resulted in an alert box showing for sites set to languages deriving from main ones.
103
- * Lazy Images: Fixed a bug where images would disappear when scrolling.
104
- * Sharing: make sure JS files can be loaded on development sites.
105
- * Sharing: Added check for validating Akismet key before allowing sharing by email.
106
- * WooCommerce Analytics: Fixed PHP warning when attemping to get a list of plugins.
107
-
108
- = 6.1 =
109
-
110
- * Release date: May 1, 2018
111
- * Release post: https://wp.me/p1moTy-7Sj
112
-
113
- **Major Enhancements**
114
-
115
- * WordAds: Introduced shortcode for inline Ad placement.
116
- * WordAds: Added support for the ads.txt file.
117
-
118
- **Enhancements**
119
-
120
- * Dashboard: We improved the styles of status numbers so it doesn't look like floating.
121
- * JSON API: Added support for Google My Business integration available on WordPress.com.
122
- * Masterbar: We removed the Next Steps link from the Account sidebar.
123
- * Publicize: Let the user know that we are going to send emails to subscribers and publicize to the different accounts.
124
- * Settings: Added "Privacy Information" links to each Jetpack module/feature card.
125
- * Shortcodes: Mixcloud shortcode now uses oEmbed.
126
- * Stats: Added a new filter jetpack_honor_dnt_header_for_stats, which if enabled would not track stats for visitors with DNT enabled.
127
- * Sync: Removed requirement for gzencode.
128
- * Widgets: always load script via HTTPS for Gravatar Hovercards.
129
-
130
- **Improved compatibility**
131
-
132
- * Social Icons Widget: Improved support on screen reader text for themes that do not provide support out of the box.
133
- * Sharing: Removed the sharing and like display functionality from Cart, Checkout, and Account WooCommerce pages.
134
-
135
- **Bug fixes**
136
-
137
- * Admin Page: We fixed the internationalization of the plans page.
138
- * Ads: We fixed a problem that impeded Premium Plan customers to activate Google Analytics.
139
- * Auto Updates: We fixed a warning being thrown due to a bad concatenation of strings.
140
- * General: Fixed a warning that was being logged due to attempting to use in_array() over a variable that didn't always contain an array.
141
- * General: Fixed Warning: count(): Parameter must be an array or an object that implements Countable showing on PHP 7.x.
142
- * JSON API: Fixed internationalization on embed endpoint.
143
- * Theme Tools: Show featured images in WooCommerce pages when Display on blog and archives is turned off for Themes that support this feature.
144
- * Publicize: Avoid adding Publicize post meta when a post transitions to publish and it is not a publicize-able post type.
145
- * Settings: Fixed the icon representing the minimum plan needed for SEO and Google Analytics features.
146
- * Slideshow: Fixed an invalid argument supplied for foreach() warning.
147
- * SSO: We fixed the name of a filter which contained a typo before. The filter is now named: `jetpack_sso_auth_cookie_expiration`.
148
- * SSO: Fixed some cases where we were not handling secure cookies for sites running over https.
149
- * Sync: Fixed Warning: Invalid argument supplied for foreach().
150
- * Sync: Fixed Warning: Warning: json_encode(): recursion detected.
151
- * WooCommerce Analytics: fixed broken Remove From Cart link.
152
-
153
- = 6.0 =
154
-
155
- * Release date: April 3, 2018
156
- * Release post: https://wp.me/p1moTy-7xM
157
-
158
- **Major Enhancements**
159
- * Admin Page: Introduced a new Privacy admin page linked at the bottom of the Jetpack dashboard.
160
- * Admin Page: Introduced a Privacy toggle that allows the user to disable event tracking.
161
- * Widgets: Added new Social Icons widget and deprecated old Social Media Icons widget.
162
-
163
- **Enhancements**
164
-
165
- * Activity Log: Started syncing comment untrashed and comment unspammed events.
166
- * Admin Page: Added inline module settings for plan welcome page.
167
- * Admin Page: Removed Javascript patterns previously used in the Admin Page that should improve performance lightly (bind pattern).
168
- * Admin Page: Made Jetpack Monitor setting management easier by adding a simple toggle.
169
- * Admin Page: Moved the button for closing the Jumpstart modal closer to the dialog so it's more visible.
170
- * Admin Page: Updated the "install and activate" link in the Backups card to be a functional link matching the "Set up" button.
171
- * Admin Page: Updated notices style to be more accessible.
172
- * Admin Page: We now show a link to see all plans on small screens.
173
- * Admin Page: Settings in Jetpack dashboard now feature contextual help and a link to learn more about it.
174
- * Ads: Added site id to head meta.
175
- * Comments: Improved accessibility of comments form by adding title attributes.
176
- * Connect: Removed account creation links from below the Set Up Jetpack buttons.
177
- * General: Show correct available status in Jetpack modules list if module is not supported by current plan.
178
- * General: Removed holiday snow module.
179
- * General: Return error in wp-cli if activating a module that is not supported by the current plan.
180
- * Google Translate Widget: Made sure the widget is responsive by default.
181
- * JITM: We now allow specifying that a jitm can be opened in a new window, or the same window.
182
- * JITM: We now don't use all caps for buttons text.
183
- * Likes: Removed Likes from Jumpstart.
184
- * Likes/Sharing: Moved metabox in post editor to the right side for a better fit.
185
- * Masterbar: Made the Sign Out link in the Master always log you out from WordPress.com.
186
- * Publicize: Made styling of Publicize more consistent with wp-admin.
187
- * Protect: Started blocking XML RPC requests when they get marked as blocked by Protect.
188
- * Search: Made the Search widget available whether or not Extra Sidebar Widgets is enabled.
189
- * SEO Tools: Removed SEO Tools from Jumpstart
190
- * Shortcodes: We now load Twitters widget.js over https.
191
- * Subscriptions: We've made it a better experience if you try to subscribe to a site you are already subscribed to.
192
- * Sync: Stopped syncing personal data coming from WooCommerce orders.
193
- * VideoPress: Default to grid view when linking to upload videos
194
- * Warm Welcome: Added Search to the features listed on the Warm Welcome dialog for Professional Plan.
195
- * Widgets: Added rel=noopener attribute to links in the Display WordPress Posts widget if set to open in a new window.
196
-
197
-
198
- **Improved compatibility**
199
-
200
- * bbPress: Markdown support added for bbPress CPTs.
201
- * PHP 7.1: Fixed an error coming from one of our json-api endpoints.
202
-
203
- **Bug fixes**
204
-
205
- * Admin Page: Fixed Dashboard connection card from showing text that overflows the card.
206
- * Admin Page: Fixed directory separator character used when displaying the site URL on the disconnect dialog.
207
- * Admin Page: Fixed an issue by which clicking the back button on a page visited after the Admin Page would result in the Admin Page being rendered with cached data.
208
- * Admin Page: Don't show a Set Up button when searching for modules that are inactive in Jetpack Settings page. The Set Up button is meant for paid features coming from plugins.
209
- * Admin Page: Make it clear when tracking begins in the connetion dialog.
210
- * Admin Page: Hide the date range tabs when the initial dialog is shown.
211
- * Admin Page: Fixed the positioning of popovers in the Jetpack Settings page.
212
- * Admin Page: Fixed a bug with the Ads settings toggle.
213
- * Admin Page: Fixed a display issue for the custom user capability "jetpack_connect".
214
- * Admin Page: Made sure translations are properly applied to several phrases.
215
- * Connection Banner: Updated style to better fit wide screens.
216
- * Connection Banner: Added illustration SVGs.
217
- * Contact Form: Fixed width style of input for Website address.
218
- * Google Analytics: fix PHP notice on search pages.
219
- * Infinite Scroll: Fixed issues where the first was being duplicated on scroll.
220
- * Likes: Made manually enabled likes remain being likeable if Likes are enabled for all posts
221
- * Masterbar: Fixed a javascript error that would pop up with the Grammarly extension enabled on Chrome macOS.
222
- * Search: Added default values for the Search widget so it can be added from the Customizer.
223
- * Settings: Fixed overflow/overlap when there are many ignored phrases in spelling options.
224
- * Settings: Updated SEO/analytics links to avoid unnecessary redirects.
225
- * Stats: Fixed column spacing styling issues in WP Dashboard box for Jetpack stats.
226
- * VaultPress: Remove menu item that links nowhere when Rewind is enabled.
227
- * Widgets: Fixed issue with custom URL choice and selective refresh in the EU Cookie Law widget.
228
- * WooCommerce Analytics: Fixed PHP warning coming from str_replace usage.
229
- * WooCommerce Analytics: Started tracking all possible ways to add a product to a cart.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
 
231
  == 5.9 ==
232
 
1
  == Changelog ==
2
+
3
+ = 6.3.3 =
4
+
5
+ * Release date: July 30, 2018
6
+ * Release post: https://wp.me/p1moTy-9n0
7
+
8
+ **Facebook API Maintenance**
9
+
10
+ On the 1st of August, 2018 Facebook sunsets its API allowing to post updates to your Profile Page. Only the API allowing to post to Facebook Pages will remain. This required several changes to Jetpack that we are presenting in this release:
11
+
12
+ * Publicize: making sure we are handling existing connections gracefully.
13
+ * Publicize: using logo font instead of images to make the UI up to date and mobile ready.
14
+ * Publicize: removing the ability to select Facebook Profile connections in the UI.
15
+
16
+ **Bug fixes**
17
+
18
+ * General: properly handle Jetpack connection owner transition process.
19
+
20
+ = 6.3.2 =
21
+
22
+ * Release date: July 4, 2018
23
+ * Release post: https://wp.me/p1moTy-96E
24
+
25
+ **Bug fixes**
26
+
27
+ * Simple Payment: Fix compatibility issues with PHP versions 5.3 and below
28
+
29
+ = 6.3 =
30
+
31
+ * Release date: July 3, 2018
32
+ * Release post: https://wp.me/p1moTy-8ag
33
+
34
+ **Major Enhancements**
35
+
36
+ * Simple Payment: Added Simple Payment Products as Widgets, with the option to manage them via the Customizer.
37
+
38
+ **Enhancements**
39
+
40
+ * Connection: Added a new connect splash screen content.
41
+ * Jetpack Dashboard: We removed the labels reading 'PAID' in order to introduce a better way to remark paid features.
42
+ * General: Added support to display geo-location data added to posts and pages with Calypso.
43
+
44
+ **Improved compatibility**
45
+
46
+ * Protect: We solved an issue related to interaction with bbPress when trying to log in via a bbPress login widget. You would get redirected a few times to log in again after solving the math puzzle.
47
+
48
+ **Bug fixes**
49
+
50
+ * Comments: Implemented Core WordPress' Comment Cookie Consent Checkbox in Jetpack Comments.
51
+ * General: We solved an issue that arised when using the Front End Editor feature plugin. A fatal error wass thrown due to us assuming the `enter_title_here` filter would only run within wp-admin.
52
+ * General: Fixed a compatibility problem between WordPress TinyMCE and Jetpack Markdown when visiting the WordPress Dashboard.
53
+ * Lazy Images: Fixed behaviour for when JavaScript is disabled.
54
+ * Markdown: We fixed the naming of the class used for code blocks that specify a language.
55
+ * Simple Payments: Fixed an error when the user had published Simple Payment Products but their Professional Subscription had expired.
56
+ * Sitemap: We fixed the format of the date shown for videos on the video sitemap.
57
+ * Stats: We fixed the width of the Stats page for wide screens.
58
+
59
+ = 6.2.1 =
60
+
61
+ * Release date: June 8, 2018
62
+ * Release post: https://wp.me/p1moTy-8am
63
+
64
+
65
+ **Bug fixes**
66
+
67
+ * AMP: We fixed the rendering of the stats pixel for legacy, non-paired, non-canonical AMP pages.
68
+ * Shortcodes: Fixed a fatal coming form the VR shortcode when using the Gutenberg editor in the frontend.
69
+
70
+ = 6.2 =
71
+
72
+ * Release date: June 5, 2018
73
+ * Release post: https://wp.me/p1moTy-88v
74
+
75
+ **Major Enhancements**
76
+
77
+ * Shortcodes: Added Gutenberg block for the [vr] shortcode.
78
+
79
+ **Enhancements**
80
+
81
+ * AMP: Allow Jetpack features to work on AMP pages, and prevent Jetpack features from rendering to the front end at all.
82
+ * Content Options: We now exclude Custom Post Types like Portfolio and Testimonial when we toggle content/excerpt via the Blog Display option in the customizer.
83
+ * Cookies & Consent Widget: Added a "top" option for the cookie widget position. The existing bottom of the screen position is the default.
84
+ * Tiled Galleries: use Photon if active when a Tiled Gallery links to media file.
85
+
86
+ **Improved compatibility**
87
+
88
+ * Widgets: Deprecated the use of Widget IDs in the Twitter Timeline Widget given that Twitter deprecates Widget IDs on July, 27th 2018.
89
+
90
+ **Bug fixes**
91
+
92
+ * Contact Form: Fixed an issue with undefined variables and a warning being logged when submitting the Contact Form.
93
+ * Contact Form: Fixed scrolling/height for very large contact forms.
94
+ * Widgets: Fixed Cookies & Consent Widget's bottom margin for themes that set a specific margin for forms.
95
+ * Related Posts: Made it not try to fetch related posts for an unpublished post.
96
+ * Sharing: Fixed an issue that resulted in wrong URLs for sharing on WhatsApp.
97
+ * Sharing: Fixed the way we check if Akismet is active and has a valid key by caching the result of the verification.
98
+ * Shortcodes: Fixed the Facebook shortcode in wp-admin.
99
+ * Widget Visibility: Fixed styling for MS Edge.
100
+ * Widgets: Removed .widget class from Cookies and Consent widget styles since .widget is not used in every theme.
101
+
102
+ = 6.1.1 =
103
+
104
+ * Release date: May 22, 2018
105
+ * Release post: https://wp.me/p1moTy-85t
106
+
107
+ **Enhancements**
108
+
109
+ * Ads: Added new setting for Banner consent expiration. Added new filter jetpack_disable_eu_cookie_law_widget, which can be used to disable the banner.
110
+ * Ads: Added a new personalized-ads-consent cookie for ads-enabled sites.
111
+ * Ads: Added requirement and notice, and button-click opt-in for ads module users.
112
+ * Ads: When a user site has a Privacy Policy page set (introduced in 4.9.6), we now default to using that privacy policy as a custom policy URL.
113
+ * GDPR: A new warning is displayed while configuring an instance of the EU Cookie Law widget: "Caution: The default policy URL only covers cookies set by Jetpack. If you're running other plugins, custom cookies, or third-party tracking technologies, you should create and link to your own cookie statement."
114
+ * GDPR: Added Feedback data (i.e., Contact Form Submissions) to the Personal Data exported and/or erased by the latest version of WordPress core.
115
+
116
+ **Bug fixes**
117
+
118
+ * Ads: We updated Ads behaviour to not show unless the visitor is on the main query within the loop.
119
+ * General: We fixed a bug that resulted in an alert box showing for sites set to languages deriving from main ones.
120
+ * Lazy Images: Fixed a bug where images would disappear when scrolling.
121
+ * Sharing: make sure JS files can be loaded on development sites.
122
+ * Sharing: Added check for validating Akismet key before allowing sharing by email.
123
+ * WooCommerce Analytics: Fixed PHP warning when attemping to get a list of plugins.
124
+
125
+ = 6.1 =
126
+
127
+ * Release date: May 1, 2018
128
+ * Release post: https://wp.me/p1moTy-7Sj
129
+
130
+ **Major Enhancements**
131
+
132
+ * WordAds: Introduced shortcode for inline Ad placement.
133
+ * WordAds: Added support for the ads.txt file.
134
+
135
+ **Enhancements**
136
+
137
+ * Dashboard: We improved the styles of status numbers so it doesn't look like floating.
138
+ * JSON API: Added support for Google My Business integration available on WordPress.com.
139
+ * Masterbar: We removed the Next Steps link from the Account sidebar.
140
+ * Publicize: Let the user know that we are going to send emails to subscribers and publicize to the different accounts.
141
+ * Settings: Added "Privacy Information" links to each Jetpack module/feature card.
142
+ * Shortcodes: Mixcloud shortcode now uses oEmbed.
143
+ * Stats: Added a new filter jetpack_honor_dnt_header_for_stats, which if enabled would not track stats for visitors with DNT enabled.
144
+ * Sync: Removed requirement for gzencode.
145
+ * Widgets: always load script via HTTPS for Gravatar Hovercards.
146
+
147
+ **Improved compatibility**
148
+
149
+ * Social Icons Widget: Improved support on screen reader text for themes that do not provide support out of the box.
150
+ * Sharing: Removed the sharing and like display functionality from Cart, Checkout, and Account WooCommerce pages.
151
+
152
+ **Bug fixes**
153
+
154
+ * Admin Page: We fixed the internationalization of the plans page.
155
+ * Ads: We fixed a problem that impeded Premium Plan customers to activate Google Analytics.
156
+ * Auto Updates: We fixed a warning being thrown due to a bad concatenation of strings.
157
+ * General: Fixed a warning that was being logged due to attempting to use in_array() over a variable that didn't always contain an array.
158
+ * General: Fixed Warning: count(): Parameter must be an array or an object that implements Countable showing on PHP 7.x.
159
+ * JSON API: Fixed internationalization on embed endpoint.
160
+ * Theme Tools: Show featured images in WooCommerce pages when Display on blog and archives is turned off for Themes that support this feature.
161
+ * Publicize: Avoid adding Publicize post meta when a post transitions to publish and it is not a publicize-able post type.
162
+ * Settings: Fixed the icon representing the minimum plan needed for SEO and Google Analytics features.
163
+ * Slideshow: Fixed an invalid argument supplied for foreach() warning.
164
+ * SSO: We fixed the name of a filter which contained a typo before. The filter is now named: `jetpack_sso_auth_cookie_expiration`.
165
+ * SSO: Fixed some cases where we were not handling secure cookies for sites running over https.
166
+ * Sync: Fixed Warning: Invalid argument supplied for foreach().
167
+ * Sync: Fixed Warning: Warning: json_encode(): recursion detected.
168
+ * WooCommerce Analytics: fixed broken Remove From Cart link.
169
+
170
+ = 6.0 =
171
+
172
+ * Release date: April 3, 2018
173
+ * Release post: https://wp.me/p1moTy-7xM
174
+
175
+ **Major Enhancements**
176
+ * Admin Page: Introduced a new Privacy admin page linked at the bottom of the Jetpack dashboard.
177
+ * Admin Page: Introduced a Privacy toggle that allows the user to disable event tracking.
178
+ * Widgets: Added new Social Icons widget and deprecated old Social Media Icons widget.
179
+
180
+ **Enhancements**
181
+
182
+ * Activity Log: Started syncing comment untrashed and comment unspammed events.
183
+ * Admin Page: Added inline module settings for plan welcome page.
184
+ * Admin Page: Removed Javascript patterns previously used in the Admin Page that should improve performance lightly (bind pattern).
185
+ * Admin Page: Made Jetpack Monitor setting management easier by adding a simple toggle.
186
+ * Admin Page: Moved the button for closing the Jumpstart modal closer to the dialog so it's more visible.
187
+ * Admin Page: Updated the "install and activate" link in the Backups card to be a functional link matching the "Set up" button.
188
+ * Admin Page: Updated notices style to be more accessible.
189
+ * Admin Page: We now show a link to see all plans on small screens.
190
+ * Admin Page: Settings in Jetpack dashboard now feature contextual help and a link to learn more about it.
191
+ * Ads: Added site id to head meta.
192
+ * Comments: Improved accessibility of comments form by adding title attributes.
193
+ * Connect: Removed account creation links from below the Set Up Jetpack buttons.
194
+ * General: Show correct available status in Jetpack modules list if module is not supported by current plan.
195
+ * General: Removed holiday snow module.
196
+ * General: Return error in wp-cli if activating a module that is not supported by the current plan.
197
+ * Google Translate Widget: Made sure the widget is responsive by default.
198
+ * JITM: We now allow specifying that a jitm can be opened in a new window, or the same window.
199
+ * JITM: We now don't use all caps for buttons text.
200
+ * Likes: Removed Likes from Jumpstart.
201
+ * Likes/Sharing: Moved metabox in post editor to the right side for a better fit.
202
+ * Masterbar: Made the Sign Out link in the Master always log you out from WordPress.com.
203
+ * Publicize: Made styling of Publicize more consistent with wp-admin.
204
+ * Protect: Started blocking XML RPC requests when they get marked as blocked by Protect.
205
+ * Search: Made the Search widget available whether or not Extra Sidebar Widgets is enabled.
206
+ * SEO Tools: Removed SEO Tools from Jumpstart
207
+ * Shortcodes: We now load Twitters widget.js over https.
208
+ * Subscriptions: We've made it a better experience if you try to subscribe to a site you are already subscribed to.
209
+ * Sync: Stopped syncing personal data coming from WooCommerce orders.
210
+ * VideoPress: Default to grid view when linking to upload videos
211
+ * Warm Welcome: Added Search to the features listed on the Warm Welcome dialog for Professional Plan.
212
+ * Widgets: Added rel=noopener attribute to links in the Display WordPress Posts widget if set to open in a new window.
213
+
214
+
215
+ **Improved compatibility**
216
+
217
+ * bbPress: Markdown support added for bbPress CPTs.
218
+ * PHP 7.1: Fixed an error coming from one of our json-api endpoints.
219
+
220
+ **Bug fixes**
221
+
222
+ * Admin Page: Fixed Dashboard connection card from showing text that overflows the card.
223
+ * Admin Page: Fixed directory separator character used when displaying the site URL on the disconnect dialog.
224
+ * Admin Page: Fixed an issue by which clicking the back button on a page visited after the Admin Page would result in the Admin Page being rendered with cached data.
225
+ * Admin Page: Don't show a Set Up button when searching for modules that are inactive in Jetpack Settings page. The Set Up button is meant for paid features coming from plugins.
226
+ * Admin Page: Make it clear when tracking begins in the connetion dialog.
227
+ * Admin Page: Hide the date range tabs when the initial dialog is shown.
228
+ * Admin Page: Fixed the positioning of popovers in the Jetpack Settings page.
229
+ * Admin Page: Fixed a bug with the Ads settings toggle.
230
+ * Admin Page: Fixed a display issue for the custom user capability "jetpack_connect".
231
+ * Admin Page: Made sure translations are properly applied to several phrases.
232
+ * Connection Banner: Updated style to better fit wide screens.
233
+ * Connection Banner: Added illustration SVGs.
234
+ * Contact Form: Fixed width style of input for Website address.
235
+ * Google Analytics: fix PHP notice on search pages.
236
+ * Infinite Scroll: Fixed issues where the first was being duplicated on scroll.
237
+ * Likes: Made manually enabled likes remain being likeable if Likes are enabled for all posts
238
+ * Masterbar: Fixed a javascript error that would pop up with the Grammarly extension enabled on Chrome macOS.
239
+ * Search: Added default values for the Search widget so it can be added from the Customizer.
240
+ * Settings: Fixed overflow/overlap when there are many ignored phrases in spelling options.
241
+ * Settings: Updated SEO/analytics links to avoid unnecessary redirects.
242
+ * Stats: Fixed column spacing styling issues in WP Dashboard box for Jetpack stats.
243
+ * VaultPress: Remove menu item that links nowhere when Rewind is enabled.
244
+ * Widgets: Fixed issue with custom URL choice and selective refresh in the EU Cookie Law widget.
245
+ * WooCommerce Analytics: Fixed PHP warning coming from str_replace usage.
246
+ * WooCommerce Analytics: Started tracking all possible ways to add a product to a cart.
247
 
248
  == 5.9 ==
249
 
class.jetpack-cli.php CHANGED
@@ -384,7 +384,7 @@ class Jetpack_CLI extends WP_CLI_Command {
384
  : __( 'Inactive', 'jetpack' ),
385
  );
386
  }
387
- WP_CLI\Utils\format_items( $assoc_args['format'], $modules_list, array( 'slug', 'status' ) );
388
  break;
389
  case 'activate':
390
  $module = Jetpack::get_module( $module_slug );
@@ -689,7 +689,7 @@ class Jetpack_CLI extends WP_CLI_Command {
689
  );
690
  }
691
 
692
- WP_CLI\Utils\format_items( 'table', $collection, array( 'option', 'value' ) );
693
  break;
694
  case 'start':
695
  // Get the original settings so that we can restore them later
@@ -830,7 +830,7 @@ class Jetpack_CLI extends WP_CLI_Command {
830
  'importing' => (string) $item[4],
831
  );
832
  }
833
- WP_CLI\Utils\format_items(
834
  'table',
835
  $collection,
836
  array(
@@ -1148,7 +1148,7 @@ class Jetpack_CLI extends WP_CLI_Command {
1148
  if ( isset( $named_args['pretty'] ) ) {
1149
  $decoded_output = json_decode( $output );
1150
  if ( $decoded_output ) {
1151
- $output = wp_json_encode( $decoded_output, JSON_PRETTY_PRINT );
1152
  }
1153
  }
1154
 
@@ -1331,7 +1331,7 @@ class Jetpack_CLI extends WP_CLI_Command {
1331
  'connection_data',
1332
  );
1333
 
1334
- WP_CLI\Utils\format_items( $named_args['format'], $connections_to_return, $expected_keys );
1335
  break; // list.
1336
  case 'disconnect':
1337
  if ( ! $identifier ) {
@@ -1369,7 +1369,7 @@ class Jetpack_CLI extends WP_CLI_Command {
1369
 
1370
  if ( ! empty( $connections ) ) {
1371
  $count = count( $connections );
1372
- $progress = \WP_CLI\Utils\make_progress_bar(
1373
  /* translators: %s is a lowercase string for a social network. */
1374
  sprintf( __( 'Disconnecting all connections to %s.', 'jetpack' ), $service ),
1375
  $count
@@ -1447,10 +1447,9 @@ function jetpack_cli_are_you_sure( $flagged = false, $error_msg = false ) {
1447
  }
1448
 
1449
  if ( ! $flagged ) {
1450
- $prompt_message = __( 'Are you sure? This cannot be undone. Type "yes" to continue:', '"yes" is a command. Do not translate that.', 'jetpack' );
1451
  } else {
1452
- /* translators: Don't translate the word yes here. */
1453
- $prompt_message = __( 'Are you sure? Modifying this option may disrupt your Jetpack connection. Type "yes" to continue.', 'jetpack' );
1454
  }
1455
 
1456
  WP_CLI::line( $prompt_message );
384
  : __( 'Inactive', 'jetpack' ),
385
  );
386
  }
387
+ WP_CLI\Utils\format_items( $assoc_args['format'], $modules_list, array( 'slug', 'status' ) ); // phpcs:ignore PHPCompatibility
388
  break;
389
  case 'activate':
390
  $module = Jetpack::get_module( $module_slug );
689
  );
690
  }
691
 
692
+ WP_CLI\Utils\format_items( 'table', $collection, array( 'option', 'value' ) ); // phpcs:ignore PHPCompatibility
693
  break;
694
  case 'start':
695
  // Get the original settings so that we can restore them later
830
  'importing' => (string) $item[4],
831
  );
832
  }
833
+ WP_CLI\Utils\format_items( // phpcs:ignore PHPCompatibility
834
  'table',
835
  $collection,
836
  array(
1148
  if ( isset( $named_args['pretty'] ) ) {
1149
  $decoded_output = json_decode( $output );
1150
  if ( $decoded_output ) {
1151
+ $output = wp_json_encode( $decoded_output, JSON_PRETTY_PRINT ); // phpcs:ignore PHPCompatibility
1152
  }
1153
  }
1154
 
1331
  'connection_data',
1332
  );
1333
 
1334
+ WP_CLI\Utils\format_items( $named_args['format'], $connections_to_return, $expected_keys ); // phpcs:ignore PHPCompatibility
1335
  break; // list.
1336
  case 'disconnect':
1337
  if ( ! $identifier ) {
1369
 
1370
  if ( ! empty( $connections ) ) {
1371
  $count = count( $connections );
1372
+ $progress = \WP_CLI\Utils\make_progress_bar( // phpcs:ignore PHPCompatibility
1373
  /* translators: %s is a lowercase string for a social network. */
1374
  sprintf( __( 'Disconnecting all connections to %s.', 'jetpack' ), $service ),
1375
  $count
1447
  }
1448
 
1449
  if ( ! $flagged ) {
1450
+ $prompt_message = _x( 'Are you sure? This cannot be undone. Type "yes" to continue:', '"yes" is a command - do not translate.', 'jetpack' );
1451
  } else {
1452
+ $prompt_message = _x( 'Are you sure? Modifying this option may disrupt your Jetpack connection. Type "yes" to continue.', '"yes" is a command - do not translate.', 'jetpack' );
 
1453
  }
1454
 
1455
  WP_CLI::line( $prompt_message );
class.jetpack-connection-banner.php CHANGED
@@ -883,7 +883,7 @@ class Jetpack_Connection_Banner {
883
  ?></p>
884
  <p><?php
885
  esc_html_e(
886
- 'Publish: Post on the go from any device using the WordPress apps for iOS, Android, Windows, Linux, and OSX.',
887
  'jetpack'
888
  );
889
  ?></p>
@@ -973,7 +973,7 @@ class Jetpack_Connection_Banner {
973
 
974
  <p class="jp-connect-full__button-container">
975
  <a href="https://jetpack.com/contact-support/" class="dops-button">
976
- <?php esc_html_e( 'Chat with us', 'jetpack' ); ?>
977
  </a>
978
  <a href="https://jetpack.com/support" class="dops-button">
979
  <?php esc_html_e( 'Search our support site', 'jetpack' ); ?>
883
  ?></p>
884
  <p><?php
885
  esc_html_e(
886
+ 'Publish: Post on the go from any device using the WordPress apps for iOS, Android, Windows, Linux, and macOS.',
887
  'jetpack'
888
  );
889
  ?></p>
973
 
974
  <p class="jp-connect-full__button-container">
975
  <a href="https://jetpack.com/contact-support/" class="dops-button">
976
+ <?php esc_html_e( 'Get in touch with us', 'jetpack' ); ?>
977
  </a>
978
  <a href="https://jetpack.com/support" class="dops-button">
979
  <?php esc_html_e( 'Search our support site', 'jetpack' ); ?>
class.jetpack-post-images.php CHANGED
@@ -383,11 +383,28 @@ class Jetpack_PostImages {
383
  'height' => (int) $image_tag->getAttribute( 'height' ),
384
  );
385
 
 
 
 
 
 
 
 
 
 
 
 
 
386
  // Must be larger than 200x200 (or user-specified).
387
- if ( empty( $meta['width'] ) || $meta['width'] < $width ) {
388
- continue;
389
- }
390
- if ( empty( $meta['height'] ) || $meta['height'] < $height ) {
 
 
 
 
 
391
  continue;
392
  }
393
 
383
  'height' => (int) $image_tag->getAttribute( 'height' ),
384
  );
385
 
386
+ /**
387
+ * Filters the switch to ignore minimum image size requirements. Can be used
388
+ * to add custom logic to image dimensions, like only enforcing one of the dimensions,
389
+ * or disabling it entirely.
390
+ *
391
+ * @since 6.4.0
392
+ *
393
+ * @param bool $ignore Should the image dimensions be ignored?
394
+ * @param array $meta Array containing image dimensions parsed from the markup.
395
+ */
396
+ $ignore_dimensions = apply_filters( 'jetpack_postimages_ignore_minimum_dimensions', false, $meta );
397
+
398
  // Must be larger than 200x200 (or user-specified).
399
+ if (
400
+ ! $ignore_dimensions
401
+ && (
402
+ empty( $meta['width'] )
403
+ || empty( $meta['height'] )
404
+ || $meta['width'] < $width
405
+ || $meta['height'] < $height
406
+ )
407
+ ) {
408
  continue;
409
  }
410
 
class.jetpack-xmlrpc-server.php CHANGED
@@ -389,7 +389,7 @@ class Jetpack_XMLRPC_Server {
389
  return $this->error( new Jetpack_Error( 'verify_secrets_incomplete', 'Verification secrets are incomplete', 400 ), $tracks_failure_event_name, $user );
390
  }
391
 
392
- if ( ! hash_equals( $verify_secret, $secrets['secret_1'] ) ) {
393
  Jetpack::delete_secrets( $action, $state );
394
  return $this->error( new Jetpack_Error( 'verify_secrets_mismatch', 'Secret mismatch', 400 ), $tracks_failure_event_name, $user );
395
  }
@@ -500,7 +500,7 @@ class Jetpack_XMLRPC_Server {
500
  'code' => (string) $api_user_code,
501
  ) ), $jetpack_token->secret );
502
 
503
- if ( ! hash_equals( $hmac, $verify ) ) {
504
  return false;
505
  }
506
 
389
  return $this->error( new Jetpack_Error( 'verify_secrets_incomplete', 'Verification secrets are incomplete', 400 ), $tracks_failure_event_name, $user );
390
  }
391
 
392
+ if ( ! hash_equals( $verify_secret, $secrets['secret_1'] ) ) { // phpcs:ignore PHPCompatibility -- skipping since `hash_equals` is part of WP core
393
  Jetpack::delete_secrets( $action, $state );
394
  return $this->error( new Jetpack_Error( 'verify_secrets_mismatch', 'Secret mismatch', 400 ), $tracks_failure_event_name, $user );
395
  }
500
  'code' => (string) $api_user_code,
501
  ) ), $jetpack_token->secret );
502
 
503
+ if ( ! hash_equals( $hmac, $verify ) ) { // phpcs:ignore PHPCompatibility -- skipping since `hash_equals` is part of WP core
504
  return false;
505
  }
506
 
class.jetpack.php CHANGED
@@ -179,12 +179,14 @@ class Jetpack {
179
  'WordPress SEO Premium by Yoast' => 'wordpress-seo-premium/wp-seo-premium.php',
180
  'All in One SEO Pack' => 'all-in-one-seo-pack/all_in_one_seo_pack.php',
181
  'All in One SEO Pack Pro' => 'all-in-one-seo-pack-pro/all_in_one_seo_pack.php',
 
182
  ),
183
  'verification-tools' => array(
184
  'WordPress SEO by Yoast' => 'wordpress-seo/wp-seo.php',
185
  'WordPress SEO Premium by Yoast' => 'wordpress-seo-premium/wp-seo-premium.php',
186
  'All in One SEO Pack' => 'all-in-one-seo-pack/all_in_one_seo_pack.php',
187
  'All in One SEO Pack Pro' => 'all-in-one-seo-pack-pro/all_in_one_seo_pack.php',
 
188
  ),
189
  'widget-visibility' => array(
190
  'Widget Logic' => 'widget-logic/widget_logic.php',
@@ -200,6 +202,7 @@ class Jetpack {
200
  'WordPress SEO Premium by Yoast' => 'wordpress-seo-premium/wp-seo-premium.php',
201
  'All in One SEO Pack' => 'all-in-one-seo-pack/all_in_one_seo_pack.php',
202
  'All in One SEO Pack Pro' => 'all-in-one-seo-pack-pro/all_in_one_seo_pack.php',
 
203
  'Sitemap' => 'sitemap/sitemap.php',
204
  'Simple Wp Sitemap' => 'simple-wp-sitemap/simple-wp-sitemap.php',
205
  'Simple Sitemap' => 'simple-sitemap/simple-sitemap.php',
@@ -227,7 +230,6 @@ class Jetpack {
227
  // 2 Click Social Media Buttons
228
  'add-link-to-facebook/add-link-to-facebook.php', // Add Link to Facebook
229
  'add-meta-tags/add-meta-tags.php', // Add Meta Tags
230
- 'autodescription/autodescription.php', // The SEO Framework
231
  'easy-facebook-share-thumbnails/esft.php', // Easy Facebook Share Thumbnail
232
  'heateor-open-graph-meta-tags/heateor-open-graph-meta-tags.php',
233
  // Open Graph Meta Tags by Heateor
@@ -1488,6 +1490,7 @@ class Jetpack {
1488
  'jetpack_personal',
1489
  'jetpack_personal_monthly',
1490
  'personal-bundle',
 
1491
  );
1492
 
1493
  if ( in_array( $plan['product_slug'], $personal_plans ) ) {
@@ -1501,6 +1504,7 @@ class Jetpack {
1501
  'jetpack_premium',
1502
  'jetpack_premium_monthly',
1503
  'value_bundle',
 
1504
  );
1505
 
1506
  if ( in_array( $plan['product_slug'], $premium_plans ) ) {
@@ -1515,6 +1519,7 @@ class Jetpack {
1515
  'jetpack_business',
1516
  'jetpack_business_monthly',
1517
  'business-bundle',