Version Description
- Release date: February 6, 2018
- Release post: https://wp.me/p1moTy-731
Major Enhancements
- Lazy Images: after a Beta period, you can now enable this new feature from Jetpack > Settings in your dashboard.
- Elasticsearch-powered search: also out of Beta! We've improved the way data is indexed behind the scenes, and made changes to the Search widget and its filters. (Elasticsearch is a trademark of Elasticsearch BV, registered in the U.S. and in other countries.)
Enhancements
- Comment moderation tools: moderation emails now point to WordPress.com when using the
edit_links_calypso_redirect
option. - Custom CSS: add CSS Grid Layout support.
- Dashboard: update list of features available in Paid plans.
- Dashboard: improve the display of notices inside the Jetpack dashboard.
- Dashboard: update content displayed in the Jetpack dashboard when not connected to WordPress.com.
- Development mode: improve the display of the development notice.
- General: add a new filter,
jetpack_active_modules
, allowing site owners to filter the list of active modules. - Notices: add rel tags to notice links to avoid issues when links open in a new window.
- Onboarding: add functionality for saving Business Address in the Contact Info widget.
- Onboarding: save site type during site setup process.
- Onboarding: enable loading of specific modules when using the Onboarding process.
- Post Images: allow passing size when searching for images in HTML.
- REST API: update the plugin installation process to use a new library.
- REST API: allow changing the number of posts displayed in the RSS feed, and whether feeds display full text or a summary.
- REST API: simplify our invites endpoint.
- Sharing: make sure the Whatsapp button works on mobile and on desktop.
- Sharing: add new filter,
wp_sharing_email_send_post_subject
, to allow modifying the email sharing subject line. - Shortcodes: update the GettyImages shortcode to use the new format required by GettyImages.
- Site Settings: add support for site language and timezone settings.
- Sync: improve synchronization of user actions, theme and plugin edits / updates, post status, updates on Multisite networks, Protect events, and WooCommerce's meta data.
- WordAds: enable the Ads in the header by default.
- WordAds: add filters so site owners can control the display of the ads via code as well.
Improved compatibility
- Lazy Images: fix issues with the Gazette theme.
- Open Graph: add Open Graph Metabox to the list of conflicting plugins.
- Masterbar: fix incompatibility with BeaverBuilder plugin.
- PHP 7.2: fix issues when running Jetpack with PHP 7.2.
Bug fixes
- Carousel: fix PHP Notice with images using custom meta.
- Dashboard: make sure all links to WordPress.com point to the right site's settings on WordPress.com.
- Dashboard: update links to the plugin interface on WordPress.com to load the full plugin management page.
- General: fix images shown in the dashboard when Jetpack is installed in a directory different than
jetpack
. - Lazy Images: make sure Lazy Load can be triggered even when images are added to the content very late.
- Stats: make sure the Stats script is XHTML compliant.
- Widgets: Mailchimp - avoid conflicts with jQuery UI.
Download this release
Release Info
Developer | zinigor |
Plugin | Jetpack by WordPress.com |
Version | 5.8 |
Comparing to | |
See all releases |
Code changes from version 5.8-beta2 to 5.8
- _inc/build/admin.js +7 -7
_inc/build/admin.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=912)}([function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Sr.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return kt(e,t,n,r,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(e){return null==e._pf&&(e._pf=p()),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=Cr.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function _(e){var t=f(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}function M(e,t){var n,r,a;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=h(t)),o(t._locale)||(e._locale=t._locale),zr.length>0)for(n=0;n<zr.length;n++)r=zr[n],a=t[r],o(a)||(e[r]=a);return e}function b(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Or&&(Or=!0,t.updateOffset(this),Or=!1)}function g(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function v(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=v(t)),n}function A(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&y(e[r])!==y(t[r]))&&o++;return o+i}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,n){var r=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var a,i=[],o=0;o<arguments.length;o++){if(a="","object"==typeof arguments[o]){a+="\n["+o+"] ";for(var s in arguments[0])a+=s+": "+arguments[0][s]+", ";a=a.slice(0,-2)}else a=arguments[o];i.push(a)}w(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function k(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Nr[e]||(w(n),Nr[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e){var t,n;for(n in e)t=e[n],T(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(e,t){var n,r=d({},e);for(n in t)l(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function C(e){null!=e&&this.set(e)}function z(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r}function O(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function N(){return this._invalidDate}function D(e){return this._ordinal.replace("%d",e)}function P(e,t,n,r){var a=this._relativeTime[n];return T(a)?a(e,t,n,r):a.replace(/%d/i,e)}function x(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function j(e,t){var n=e.toLowerCase();Yr[n]=Yr[n+"s"]=Yr[t]=e}function R(e){return"string"==typeof e?Yr[e]||Yr[e.toLowerCase()]:void 0}function Y(e){var t,n,r={};for(n in e)l(e,n)&&(t=R(n))&&(r[t]=e[n]);return r}function I(e,t){Ir[e]=t}function q(e){var t=[];for(var n in e)t.push({unit:n,priority:Ir[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}function W(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(Ur[e]=a),t&&(Ur[t[0]]=function(){return B(a.apply(this,arguments),t[1],t[2])}),n&&(Ur[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(qr);for(t=0,n=r.length;t<n;t++)Ur[r[t]]?r[t]=Ur[r[t]]:r[t]=U(r[t]);return function(t){var a,i="";for(a=0;a<n;a++)i+=T(r[a])?r[a].call(t,e):r[a];return i}}function F(e,t){return e.isValid()?(t=X(t,e.localeData()),Wr[t]=Wr[t]||H(t),Wr[t](e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Br.lastIndex=0;r>=0&&Br.test(e);)e=e.replace(Br,n),Br.lastIndex=0,r-=1;return e}function V(e,t,n){sa[e]=T(t)?t:function(e,r){return e&&n?n:t}}function K(e,t){return l(sa,e)?sa[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return G(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}function G(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=y(e)}),n=0;n<e.length;n++)ca[e[n]]=r}function Z(e,t){Q(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function $(e,t,n){null!=t&&l(ca,e)&&ca[e](t,n._a,n,e)}function ee(e){return te(e)?366:365}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(){return te(this.year())}function re(e,n){return function(r){return null!=r?(ie(this,e,r),t.updateOffset(this,n),this):ae(this,e)}}function ae(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ie(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ue(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function oe(e){return e=R(e),T(this[e])?this[e]():this}function se(e,t){if("object"==typeof e){e=Y(e);for(var n=q(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=R(e),T(this[e]))return this[e](t);return this}function ce(e,t){return(e%t+t)%t}function ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ce(t,12);return e+=(t-n)/12,1===n?te(e)?29:28:31-n%7%2}function le(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||va).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function de(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[va.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fe(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(a=ba.call(this._shortMonthsParse,o),-1!==a?a:null):(a=ba.call(this._longMonthsParse,o),-1!==a?a:null):"MMM"===t?-1!==(a=ba.call(this._shortMonthsParse,o))?a:(a=ba.call(this._longMonthsParse,o),-1!==a?a:null):-1!==(a=ba.call(this._longMonthsParse,o))?a:(a=ba.call(this._shortMonthsParse,o),-1!==a?a:null)}function pe(e,t,n){var r,a,i;if(this._monthsParseExact)return fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function he(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=y(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ue(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function me(e){return null!=e?(he(this,e),t.updateOffset(this,!0),this):ae(this,"Month")}function _e(){return ue(this.year(),this.month())}function Me(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=wa),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function be(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Ea),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ge(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],i=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),i.sort(e),t=0;t<12;t++)r[t]=G(r[t]),a[t]=G(a[t]);for(t=0;t<24;t++)i[t]=G(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ve(e,t,n,r,a,i,o){var s=new Date(e,t,n,r,a,i,o);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ae(e,t,n){var r=7+t-n;return-(7+ye(e,0,r).getUTCDay()-t)%7+r-1}function we(e,t,n,r,a){var i,o,s=(7+n-r)%7,c=Ae(e,r,a),u=1+7*(t-1)+s+c;return u<=0?(i=e-1,o=ee(i)+u):u>ee(e)?(i=e+1,o=u-ee(e)):(i=e,o=u),{year:i,dayOfYear:o}}function Ee(e,t,n){var r,a,i=Ae(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?(a=e.year()-1,r=o+ke(a,t,n)):o>ke(e.year(),t,n)?(r=o-ke(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function ke(e,t,n){var r=Ae(e,t,n),a=Ae(e+1,t,n);return(ee(e)-r+a)/7}function Te(e){return Ee(e,this._week.dow,this._week.doy).week}function Le(){return this._week.dow}function Se(){return this._week.doy}function Ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function ze(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Oe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function De(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function xe(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function je(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(a=ba.call(this._weekdaysParse,o),-1!==a?a:null):"ddd"===t?(a=ba.call(this._shortWeekdaysParse,o),-1!==a?a:null):(a=ba.call(this._minWeekdaysParse,o),-1!==a?a:null):"dddd"===t?-1!==(a=ba.call(this._weekdaysParse,o))?a:-1!==(a=ba.call(this._shortWeekdaysParse,o))?a:(a=ba.call(this._minWeekdaysParse,o),-1!==a?a:null):"ddd"===t?-1!==(a=ba.call(this._shortWeekdaysParse,o))?a:-1!==(a=ba.call(this._weekdaysParse,o))?a:(a=ba.call(this._minWeekdaysParse,o),-1!==a?a:null):-1!==(a=ba.call(this._minWeekdaysParse,o))?a:-1!==(a=ba.call(this._weekdaysParse,o))?a:(a=ba.call(this._shortWeekdaysParse,o),-1!==a?a:null)}function Re(e,t,n){var r,a,i;if(this._weekdaysParseExact)return je.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ye(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Oe(e,this.localeData()),this.add(e-t,"d")):t}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ca),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function We(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=za),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ue(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function He(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),i=this.weekdays(n,""),o.push(r),s.push(a),c.push(i),u.push(r),u.push(a),u.push(i);for(o.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s[t]=G(s[t]),c[t]=G(c[t]),u[t]=G(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Fe(){return this.hours()%12||12}function Xe(){return this.hours()||24}function Ve(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}function Je(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ge(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,a,i=0;i<e.length;){for(a=Qe(e[i]).split("-"),t=a.length,n=Qe(e[i+1]),n=n?n.split("-"):null;t>0;){if(r=$e(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&A(a,n,!0)>=t-1)break;t--}i++}return null}function $e(t){var r=null;if(!ja[t]&&void 0!==e&&e&&e.exports)try{r=Na._abbr;n(739)("./"+t),et(r)}catch(e){}return ja[t]}function et(e,t){var n;return e&&(n=o(t)?rt(e):tt(e,t))&&(Na=n),Na._abbr}function tt(e,t){if(null!==t){var n=xa;if(t.abbr=e,null!=ja[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ja[e]._config;else if(null!=t.parentLocale){if(null==ja[t.parentLocale])return Ra[t.parentLocale]||(Ra[t.parentLocale]=[]),Ra[t.parentLocale].push({name:e,config:t}),null;n=ja[t.parentLocale]._config}return ja[e]=new C(S(n,t)),Ra[e]&&Ra[e].forEach(function(e){tt(e.name,e.config)}),et(e),ja[e]}return delete ja[e],null}function nt(e,t){if(null!=t){var n,r,a=xa;r=$e(e),null!=r&&(a=r._config),t=S(a,t),n=new C(t),n.parentLocale=ja[e],ja[e]=n,et(e)}else null!=ja[e]&&(null!=ja[e].parentLocale?ja[e]=ja[e].parentLocale:null!=ja[e]&&delete ja[e]);return ja[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Na;if(!r(e)){if(t=$e(e))return t;e=[e]}return Ze(e)}function at(){return Dr(ja)}function it(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[la]<0||n[la]>11?la:n[da]<1||n[da]>ue(n[ua],n[la])?da:n[fa]<0||n[fa]>24||24===n[fa]&&(0!==n[pa]||0!==n[ha]||0!==n[ma])?fa:n[pa]<0||n[pa]>59?pa:n[ha]<0||n[ha]>59?ha:n[ma]<0||n[ma]>999?ma:-1,h(e)._overflowDayOfYear&&(t<ua||t>da)&&(t=da),h(e)._overflowWeeks&&-1===t&&(t=_a),h(e)._overflowWeekday&&-1===t&&(t=Ma),h(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,r,a,i,o=[];if(!e._d){for(r=st(e),e._w&&null==e._a[da]&&null==e._a[la]&&ut(e),null!=e._dayOfYear&&(i=ot(e._a[ua],r[ua]),(e._dayOfYear>ee(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=ye(i,0,e._dayOfYear),e._a[la]=n.getUTCMonth(),e._a[da]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[fa]&&0===e._a[pa]&&0===e._a[ha]&&0===e._a[ma]&&(e._nextDay=!0,e._a[fa]=0),e._d=(e._useUTC?ye:ve).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[fa]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}function ut(e){var t,n,r,a,i,o,s,c;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,o=4,n=ot(t.GG,e._a[ua],Ee(Tt(),1,4).year),r=ot(t.W,1),((a=ot(t.E,1))<1||a>7)&&(c=!0);else{i=e._locale._week.dow,o=e._locale._week.doy;var u=Ee(Tt(),i,o);n=ot(t.gg,e._a[ua],u.year),r=ot(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(c=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(c=!0)):a=i}r<1||r>ke(n,i,o)?h(e)._overflowWeeks=!0:null!=c?h(e)._overflowWeekday=!0:(s=we(n,r,a,i,o),e._a[ua]=s.year,e._dayOfYear=s.dayOfYear)}function lt(e){var t,n,r,a,i,o,s=e._i,c=Ya.exec(s)||Ia.exec(s);if(c){for(h(e).iso=!0,t=0,n=Ba.length;t<n;t++)if(Ba[t][1].exec(c[1])){a=Ba[t][0],r=!1!==Ba[t][2];break}if(null==a)return void(e._isValid=!1);if(c[3]){for(t=0,n=Wa.length;t<n;t++)if(Wa[t][1].exec(c[3])){i=(c[2]||" ")+Wa[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(c[4]){if(!qa.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),bt(e)}else e._isValid=!1}function dt(e,t,n,r,a,i){var o=[ft(e),Aa.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function ft(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ht(e,t,n){if(e){if(La.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function mt(e,t,n){if(e)return Fa[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function _t(e){var t=Ha.exec(pt(e._i));if(t){var n=dt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!ht(t[1],n,e))return;e._a=n,e._tzm=mt(t[8],t[9],t[10]),e._d=ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Mt(e){var n=Ua.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));lt(e),!1===e._isValid&&(delete e._isValid,_t(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function bt(e){if(e._f===t.ISO_8601)return void lt(e);if(e._f===t.RFC_2822)return void _t(e);e._a=[],h(e).empty=!0;var n,r,a,i,o,s=""+e._i,c=s.length,u=0;for(a=X(e._f,e._locale).match(qr)||[],n=0;n<a.length;n++)i=a[n],r=(s.match(K(i,e))||[])[0],r&&(o=s.substr(0,s.indexOf(r)),o.length>0&&h(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),u+=r.length),Ur[i]?(r?h(e).empty=!1:h(e).unusedTokens.push(i),$(i,r,e)):e._strict&&!r&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-u,s.length>0&&h(e).unusedInput.push(s),e._a[fa]<=12&&!0===h(e).bigHour&&e._a[fa]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[fa]=gt(e._locale,e._a[fa],e._meridiem),ct(e),it(e)}function gt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function vt(e){var t,n,r,a,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)i=0,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],bt(t),m(t)&&(i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,(null==r||i<r)&&(r=i,n=t));d(e,n||t)}function yt(e){if(!e._d){var t=Y(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ct(e)}}function At(e){var t=new b(it(wt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||rt(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new b(it(t)):(c(t)?e._d=t:r(n)?vt(e):n?bt(e):Et(e),m(e)||(e._d=null),e))}function Et(e){var n=e._i;o(n)?e._d=new Date(t.now()):c(n)?e._d=new Date(n.valueOf()):"string"==typeof n?Mt(e):r(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),ct(e)):a(n)?yt(e):s(n)?e._d=new Date(n):t.createFromInputFallback(e)}function kt(e,t,n,o,s){var c={};return!0!==n&&!1!==n||(o=n,n=void 0),(a(e)&&i(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=e,c._f=t,c._strict=o,At(c)}function Tt(e,t,n,r){return kt(e,t,n,r,!1)}function Lt(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function St(){return Lt("isBefore",[].slice.call(arguments,0))}function Ct(){return Lt("isAfter",[].slice.call(arguments,0))}function zt(e){for(var t in e)if(-1===ba.call(Ja,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Ja.length;++r)if(e[Ja[r]]){if(n)return!1;parseFloat(e[Ja[r]])!==y(e[Ja[r]])&&(n=!0)}return!0}function Ot(){return this._isValid}function Nt(){return Qt(NaN)}function Dt(e){var t=Y(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||0,o=t.day||0,s=t.hour||0,c=t.minute||0,u=t.second||0,l=t.millisecond||0;this._isValid=zt(t),this._milliseconds=+l+1e3*u+6e4*c+1e3*s*60*60,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=rt(),this._bubble()}function Pt(e){return e instanceof Dt}function xt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function Rt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],a=(r+"").match(Ga)||["-",0,0],i=60*a[1]+y(a[2]);return 0===i?0:"+"===a[0]?i:-i}function Yt(e,n){var r,a;return n._isUTC?(r=n.clone(),a=(g(e)||c(e)?e.valueOf():Tt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),t.updateOffset(r,!1),r):Tt(e).local()}function It(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function qt(e,n,r){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Rt(aa,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(a=It(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!n||this._changeInProgress?nn(this,Qt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:It(this)}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wt(e){return this.utcOffset(0,e)}function Ut(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(It(this),"m")),this}function Ht(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Rt(ra,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ft(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Xt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),e=wt(e),e._a){var t=e._isUTC?f(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&A(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Kt(){return!!this.isValid()&&!this._isUTC}function Jt(){return!!this.isValid()&&this._isUTC}function Gt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var n,r,a,i=e,o=null;return Pt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(i={},t?i[t]=e:i.milliseconds=e):(o=Qa.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:y(o[da])*n,h:y(o[fa])*n,m:y(o[pa])*n,s:y(o[ha])*n,ms:y(xt(1e3*o[ma]))*n}):(o=Za.exec(e))?(n="-"===o[1]?-1:(o[1],1),i={y:Zt(o[2],n),M:Zt(o[3],n),w:Zt(o[4],n),d:Zt(o[5],n),h:Zt(o[6],n),m:Zt(o[7],n),s:Zt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=en(Tt(i.from),Tt(i.to)),i={},i.ms=a.milliseconds,i.M=a.months),r=new Dt(i),Pt(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function $t(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){var n;return e.isValid()&&t.isValid()?(t=Yt(t,e),e.isBefore(t)?n=$t(e,t):(n=$t(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(e,t){return function(n,r){var a,i;return null===r||isNaN(+r)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),n="string"==typeof n?+n:n,a=Qt(n,r),nn(this,a,e),this}}function nn(e,n,r,a){var i=n._milliseconds,o=xt(n._days),s=xt(n._months);e.isValid()&&(a=null==a||a,s&&he(e,ae(e,"Month")+s*r),o&&ie(e,"Date",ae(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),a&&t.updateOffset(e,o||s))}function rn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function an(e,n){var r=e||Tt(),a=Yt(r,this).startOf("day"),i=t.calendarFormat(this,a)||"sameElse",o=n&&(T(n[i])?n[i].call(this,r):n[i]);return this.format(o||this.localeData().calendar(i,this,Tt(r)))}function on(){return new b(this)}function sn(e,t){var n=g(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=R(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function cn(e,t){var n=g(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=R(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function un(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function ln(e,t){var n,r=g(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&(t=R(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function dn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function fn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function pn(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(r=Yt(e,this),!r.isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=R(t)){case"year":i=hn(this,r)/12;break;case"month":i=hn(this,r);break;case"quarter":i=hn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:v(i)}function hn(e,t){var n,r,a=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(a,"months");return t-i<0?(n=e.clone().add(a-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(a+1,"months"),r=(t-i)/(n-i)),-(a+r)||0}function mn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _n(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Mn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)}function bn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=F(this,e);return this.localeData().postformat(n)}function gn(e,t){return this.isValid()&&(g(e)&&e.isValid()||Tt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vn(e){return this.from(Tt(),e)}function yn(e,t){return this.isValid()&&(g(e)&&e.isValid()||Tt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function An(e){return this.to(Tt(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=rt(e),null!=t&&(this._locale=t),this)}function En(){return this._locale}function kn(e){switch(e=R(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":
|
2 |
this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Tn(e){return void 0===(e=R(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Ln(){return this._d.valueOf()-6e4*(this._offset||0)}function Sn(){return Math.floor(this.valueOf()/1e3)}function Cn(){return new Date(this.valueOf())}function zn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function On(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Nn(){return this.isValid()?this.toISOString():null}function Dn(){return m(this)}function Pn(){return d({},h(this))}function xn(){return h(this).overflow}function jn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Rn(e,t){W(0,[e,e.length],0,t)}function Yn(e){return Wn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function In(e){return Wn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qn(){return ke(this.year(),1,4)}function Bn(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function Wn(e,t,n,r,a){var i;return null==e?Ee(this,r,a).year:(i=ke(e,r,a),t>i&&(t=i),Un.call(this,e,t,n,r,a))}function Un(e,t,n,r,a){var i=we(e,t,n,r,a),o=ye(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Hn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Fn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Xn(e,t){t[ma]=y(1e3*("0."+e))}function Vn(){return this._isUTC?"UTC":""}function Kn(){return this._isUTC?"Coordinated Universal Time":""}function Jn(e){return Tt(1e3*e)}function Gn(){return Tt.apply(null,arguments).parseZone()}function Qn(e){return e}function Zn(e,t,n,r){var a=rt(),i=f().set(r,t);return a[n](i,e)}function $n(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Zn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Zn(e,r,n,"month");return a}function er(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var a=rt(),i=e?a._week.dow:0;if(null!=n)return Zn(t,(n+i)%7,r,"day");var o,c=[];for(o=0;o<7;o++)c[o]=Zn(t,(o+i)%7,r,"day");return c}function tr(e,t){return $n(e,t,"months")}function nr(e,t){return $n(e,t,"monthsShort")}function rr(e,t,n){return er(e,t,n,"weekdays")}function ar(e,t,n){return er(e,t,n,"weekdaysShort")}function ir(e,t,n){return er(e,t,n,"weekdaysMin")}function or(){var e=this._data;return this._milliseconds=ui(this._milliseconds),this._days=ui(this._days),this._months=ui(this._months),e.milliseconds=ui(e.milliseconds),e.seconds=ui(e.seconds),e.minutes=ui(e.minutes),e.hours=ui(e.hours),e.months=ui(e.months),e.years=ui(e.years),this}function sr(e,t,n,r){var a=Qt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function cr(e,t){return sr(this,e,t,1)}function ur(e,t){return sr(this,e,t,-1)}function lr(e){return e<0?Math.floor(e):Math.ceil(e)}function dr(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,c=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*lr(pr(s)+o),o=0,s=0),c.milliseconds=i%1e3,e=v(i/1e3),c.seconds=e%60,t=v(e/60),c.minutes=t%60,n=v(t/60),c.hours=n%24,o+=v(n/24),a=v(fr(o)),s+=a,o-=lr(pr(a)),r=v(s/12),s%=12,c.days=o,c.months=s,c.years=r,this}function fr(e){return 4800*e/146097}function pr(e){return 146097*e/4800}function hr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=R(e))||"year"===e)return t=this._days+r/864e5,n=this._months+fr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(pr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function mr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN}function _r(e){return function(){return this.as(e)}}function Mr(){return Qt(this)}function br(e){return e=R(e),this.isValid()?this[e+"s"]():NaN}function gr(e){return function(){return this.isValid()?this._data[e]:NaN}}function vr(){return v(this.days()/7)}function yr(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Ar(e,t,n){var r=Qt(e).abs(),a=ki(r.as("s")),i=ki(r.as("m")),o=ki(r.as("h")),s=ki(r.as("d")),c=ki(r.as("M")),u=ki(r.as("y")),l=a<=Ti.ss&&["s",a]||a<Ti.s&&["ss",a]||i<=1&&["m"]||i<Ti.m&&["mm",i]||o<=1&&["h"]||o<Ti.h&&["hh",o]||s<=1&&["d"]||s<Ti.d&&["dd",s]||c<=1&&["M"]||c<Ti.M&&["MM",c]||u<=1&&["y"]||["yy",u];return l[2]=t,l[3]=+e>0,l[4]=n,yr.apply(null,l)}function wr(e){return void 0===e?ki:"function"==typeof e&&(ki=e,!0)}function Er(e,t){return void 0!==Ti[e]&&(void 0===t?Ti[e]:(Ti[e]=t,"s"===e&&(Ti.ss=t-1),!0))}function kr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Ar(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Tr(e){return(e>0)-(e<0)||+e}function Lr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Li(this._milliseconds)/1e3,a=Li(this._days),i=Li(this._months);e=v(r/60),t=v(e/60),r%=60,e%=60,n=v(i/12),i%=12;var o=n,s=i,c=a,u=t,l=e,d=r?r.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var p=f<0?"-":"",h=Tr(this._months)!==Tr(f)?"-":"",m=Tr(this._days)!==Tr(f)?"-":"",_=Tr(this._milliseconds)!==Tr(f)?"-":"";return p+"P"+(o?h+o+"Y":"")+(s?h+s+"M":"")+(c?m+c+"D":"")+(u||l||d?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(d?_+d+"S":"")}var Sr,Cr;Cr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var zr=t.momentProperties=[],Or=!1,Nr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Dr;Dr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Pr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},xr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},jr=/\d{1,2}/,Rr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Yr={},Ir={},qr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Br=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wr={},Ur={},Hr=/\d/,Fr=/\d\d/,Xr=/\d{3}/,Vr=/\d{4}/,Kr=/[+-]?\d{6}/,Jr=/\d\d?/,Gr=/\d\d\d\d?/,Qr=/\d\d\d\d\d\d?/,Zr=/\d{1,3}/,$r=/\d{1,4}/,ea=/[+-]?\d{1,6}/,ta=/\d+/,na=/[+-]?\d+/,ra=/Z|[+-]\d\d:?\d\d/gi,aa=/Z|[+-]\d\d(?::?\d\d)?/gi,ia=/[+-]?\d+(\.\d{1,3})?/,oa=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,sa={},ca={},ua=0,la=1,da=2,fa=3,pa=4,ha=5,ma=6,_a=7,Ma=8;W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),j("year","y"),I("year",1),V("Y",na),V("YY",Jr,Fr),V("YYYY",$r,Vr),V("YYYYY",ea,Kr),V("YYYYYY",ea,Kr),Q(["YYYYY","YYYYYY"],ua),Q("YYYY",function(e,n){n[ua]=2===e.length?t.parseTwoDigitYear(e):y(e)}),Q("YY",function(e,n){n[ua]=t.parseTwoDigitYear(e)}),Q("Y",function(e,t){t[ua]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var ba,ga=re("FullYear",!0);ba=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),j("month","M"),I("month",8),V("M",Jr),V("MM",Jr,Fr),V("MMM",function(e,t){return t.monthsShortRegex(e)}),V("MMMM",function(e,t){return t.monthsRegex(e)}),Q(["M","MM"],function(e,t){t[la]=y(e)-1}),Q(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[la]=a:h(n).invalidMonth=e});var va=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ya="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),wa=oa,Ea=oa;W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),I("week",5),I("isoWeek",5),V("w",Jr),V("ww",Jr,Fr),V("W",Jr),V("WW",Jr,Fr),Z(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=y(e)});var ka={dow:0,doy:6};W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),V("d",Jr),V("e",Jr),V("E",Jr),V("dd",function(e,t){return t.weekdaysMinRegex(e)}),V("ddd",function(e,t){return t.weekdaysShortRegex(e)}),V("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,r){t[r]=y(e)});var Ta="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),La="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Sa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ca=oa,za=oa,Oa=oa;W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Fe),W("k",["kk",2],0,Xe),W("hmm",0,0,function(){return""+Fe.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Fe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Ve("a",!0),Ve("A",!1),j("hour","h"),I("hour",13),V("a",Ke),V("A",Ke),V("H",Jr),V("h",Jr),V("k",Jr),V("HH",Jr,Fr),V("hh",Jr,Fr),V("kk",Jr,Fr),V("hmm",Gr),V("hmmss",Qr),V("Hmm",Gr),V("Hmmss",Qr),Q(["H","HH"],fa),Q(["k","kk"],function(e,t,n){var r=y(e);t[fa]=24===r?0:r}),Q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Q(["h","hh"],function(e,t,n){t[fa]=y(e),h(n).bigHour=!0}),Q("hmm",function(e,t,n){var r=e.length-2;t[fa]=y(e.substr(0,r)),t[pa]=y(e.substr(r)),h(n).bigHour=!0}),Q("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[fa]=y(e.substr(0,r)),t[pa]=y(e.substr(r,2)),t[ha]=y(e.substr(a)),h(n).bigHour=!0}),Q("Hmm",function(e,t,n){var r=e.length-2;t[fa]=y(e.substr(0,r)),t[pa]=y(e.substr(r))}),Q("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[fa]=y(e.substr(0,r)),t[pa]=y(e.substr(r,2)),t[ha]=y(e.substr(a))});var Na,Da=/[ap]\.?m?\.?/i,Pa=re("Hours",!0),xa={calendar:Pr,longDateFormat:xr,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:jr,relativeTime:Rr,months:ya,monthsShort:Aa,week:ka,weekdays:Ta,weekdaysMin:Sa,weekdaysShort:La,meridiemParse:Da},ja={},Ra={},Ya=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ia=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qa=/Z|[+-]\d\d(?::?\d\d)?/,Ba=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Wa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ua=/^\/?Date\((\-?\d+)/i,Ha=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Fa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Xa=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),Va=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}),Ka=function(){return Date.now?Date.now():+new Date},Ja=["year","quarter","month","week","day","hour","minute","second","millisecond"];jt("Z",":"),jt("ZZ",""),V("Z",aa),V("ZZ",aa),Q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Rt(aa,e)});var Ga=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Qa=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Za=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qt.fn=Dt.prototype,Qt.invalid=Nt;var $a=tn(1,"add"),ei=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ti=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rn("gggg","weekYear"),Rn("ggggg","weekYear"),Rn("GGGG","isoWeekYear"),Rn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),V("G",na),V("g",na),V("GG",Jr,Fr),V("gg",Jr,Fr),V("GGGG",$r,Vr),V("gggg",$r,Vr),V("GGGGG",ea,Kr),V("ggggg",ea,Kr),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=y(e)}),Z(["gg","GG"],function(e,n,r,a){n[a]=t.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),j("quarter","Q"),I("quarter",7),V("Q",Hr),Q("Q",function(e,t){t[la]=3*(y(e)-1)}),W("D",["DD",2],"Do","date"),j("date","D"),I("date",9),V("D",Jr),V("DD",Jr,Fr),V("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],da),Q("Do",function(e,t){t[da]=y(e.match(Jr)[0])});var ni=re("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),I("dayOfYear",4),V("DDD",Zr),V("DDDD",Xr),Q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=y(e)}),W("m",["mm",2],0,"minute"),j("minute","m"),I("minute",14),V("m",Jr),V("mm",Jr,Fr),Q(["m","mm"],pa);var ri=re("Minutes",!1);W("s",["ss",2],0,"second"),j("second","s"),I("second",15),V("s",Jr),V("ss",Jr,Fr),Q(["s","ss"],ha);var ai=re("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),I("millisecond",16),V("S",Zr,Hr),V("SS",Zr,Fr),V("SSS",Zr,Xr);var ii;for(ii="SSSS";ii.length<=9;ii+="S")V(ii,ta);for(ii="S";ii.length<=9;ii+="S")Q(ii,Xn);var oi=re("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var si=b.prototype;si.add=$a,si.calendar=an,si.clone=on,si.diff=pn,si.endOf=Tn,si.format=bn,si.from=gn,si.fromNow=vn,si.to=yn,si.toNow=An,si.get=oe,si.invalidAt=xn,si.isAfter=sn,si.isBefore=cn,si.isBetween=un,si.isSame=ln,si.isSameOrAfter=dn,si.isSameOrBefore=fn,si.isValid=Dn,si.lang=ti,si.locale=wn,si.localeData=En,si.max=Va,si.min=Xa,si.parsingFlags=Pn,si.set=se,si.startOf=kn,si.subtract=ei,si.toArray=zn,si.toObject=On,si.toDate=Cn,si.toISOString=_n,si.inspect=Mn,si.toJSON=Nn,si.toString=mn,si.unix=Sn,si.valueOf=Ln,si.creationData=jn,si.year=ga,si.isLeapYear=ne,si.weekYear=Yn,si.isoWeekYear=In,si.quarter=si.quarters=Hn,si.month=me,si.daysInMonth=_e,si.week=si.weeks=Ce,si.isoWeek=si.isoWeeks=ze,si.weeksInYear=Bn,si.isoWeeksInYear=qn,si.date=ni,si.day=si.days=Ye,si.weekday=Ie,si.isoWeekday=qe,si.dayOfYear=Fn,si.hour=si.hours=Pa,si.minute=si.minutes=ri,si.second=si.seconds=ai,si.millisecond=si.milliseconds=oi,si.utcOffset=qt,si.utc=Wt,si.local=Ut,si.parseZone=Ht,si.hasAlignedHourOffset=Ft,si.isDST=Xt,si.isLocal=Kt,si.isUtcOffset=Jt,si.isUtc=Gt,si.isUTC=Gt,si.zoneAbbr=Vn,si.zoneName=Kn,si.dates=E("dates accessor is deprecated. Use date instead.",ni),si.months=E("months accessor is deprecated. Use month instead",me),si.years=E("years accessor is deprecated. Use year instead",ga),si.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Bt),si.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vt);var ci=C.prototype;ci.calendar=z,ci.longDateFormat=O,ci.invalidDate=N,ci.ordinal=D,ci.preparse=Qn,ci.postformat=Qn,ci.relativeTime=P,ci.pastFuture=x,ci.set=L,ci.months=le,ci.monthsShort=de,ci.monthsParse=pe,ci.monthsRegex=be,ci.monthsShortRegex=Me,ci.week=Te,ci.firstDayOfYear=Se,ci.firstDayOfWeek=Le,ci.weekdays=De,ci.weekdaysMin=xe,ci.weekdaysShort=Pe,ci.weekdaysParse=Re,ci.weekdaysRegex=Be,ci.weekdaysShortRegex=We,ci.weekdaysMinRegex=Ue,ci.isPM=Je,ci.meridiem=Ge,et("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=E("moment.lang is deprecated. Use moment.locale instead.",et),t.langData=E("moment.langData is deprecated. Use moment.localeData instead.",rt);var ui=Math.abs,li=_r("ms"),di=_r("s"),fi=_r("m"),pi=_r("h"),hi=_r("d"),mi=_r("w"),_i=_r("M"),Mi=_r("y"),bi=gr("milliseconds"),gi=gr("seconds"),vi=gr("minutes"),yi=gr("hours"),Ai=gr("days"),wi=gr("months"),Ei=gr("years"),ki=Math.round,Ti={ss:44,s:45,m:45,h:22,d:26,M:11},Li=Math.abs,Si=Dt.prototype;return Si.isValid=Ot,Si.abs=or,Si.add=cr,Si.subtract=ur,Si.as=hr,Si.asMilliseconds=li,Si.asSeconds=di,Si.asMinutes=fi,Si.asHours=pi,Si.asDays=hi,Si.asWeeks=mi,Si.asMonths=_i,Si.asYears=Mi,Si.valueOf=mr,Si._bubble=dr,Si.clone=Mr,Si.get=br,Si.milliseconds=bi,Si.seconds=gi,Si.minutes=vi,Si.hours=yi,Si.days=Ai,Si.weeks=vr,Si.months=wi,Si.years=Ei,Si.humanize=kr,Si.toISOString=Lr,Si.toString=Lr,Si.toJSON=Lr,Si.locale=wn,Si.localeData=En,Si.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Lr),Si.lang=ti,W("X",0,0,"unix"),W("x",0,0,"valueOf"),V("x",na),V("X",ia),Q("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Q("x",function(e,t,n){n._d=new Date(y(e))}),t.version="2.20.1",function(e){Sr=e}(Tt),t.fn=si,t.min=St,t.max=Ct,t.now=Ka,t.utc=f,t.unix=Jn,t.months=tr,t.isDate=c,t.locale=et,t.invalid=_,t.duration=Qt,t.isMoment=g,t.weekdays=rr,t.parseZone=Gn,t.localeData=rt,t.isDuration=Pt,t.monthsShort=nr,t.weekdaysMin=ir,t.defineLocale=tt,t.updateLocale=nt,t.locales=at,t.weekdaysShort=ar,t.normalizeUnits=R,t.relativeTimeRounding=wr,t.relativeTimeThreshold=Er,t.calendarFormat=rn,t.prototype=si,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t})}).call(t,n(88)(e))},function(e,t,n){"use strict";e.exports=n(86)},function(e,t,n){e.exports={default:n(759),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(58),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(761),i=r(a),o=n(765),s=r(o),c=n(58),u=r(c);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(308),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,a.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,c){if(a(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,s,c],d=0;u=new Error(t.replace(/%s/g,function(){return l[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var a=function(e){};e.exports=r},function(e,t,n){var r=n(733),a=new r;e.exports={moment:a.moment,numberFormat:a.numberFormat.bind(a),translate:a.translate.bind(a),configure:a.configure.bind(a),setLocale:a.setLocale.bind(a),getLocale:a.getLocale.bind(a),getLocaleSlug:a.getLocaleSlug.bind(a),addTranslations:a.addTranslations.bind(a),reRenderTranslations:a.reRenderTranslations.bind(a),registerComponentUpdateHook:a.registerComponentUpdateHook.bind(a),registerTranslateHook:a.registerTranslateHook.bind(a),state:a.state,stateObserver:a.stateObserver,on:a.stateObserver.on.bind(a.stateObserver),off:a.stateObserver.removeListener.bind(a.stateObserver),emit:a.stateObserver.emit.bind(a.stateObserver),mixin:n(746)(a),localize:n(749)(a),$this:a,I18N:r}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.connect=t.Provider=void 0;var a=n(596),i=r(a),o=n(598),s=r(o);t.Provider=i.default,t.connect=s.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(727),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=a.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=new Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=r},function(e,t,n){"use strict";var r=n(37),a=r;e.exports=a},function(e,t,n){var r,a;!function(){"use strict";function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e+=" "+r;else if(Array.isArray(r))e+=" "+n.apply(null,r);else if("object"===a)for(var o in r)i.call(r,o)&&r[o]&&(e+=" "+o)}}return e.substr(1)}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(a=function(){return n}.apply(t,r))&&(e.exports=a))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n="";if("object"===(void 0===e?"undefined":(0,d.default)(e))){for(var r in e)n+="&x_"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);f("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),f('Bumping stat "%s" in group "%s"',t,e);return n}function i(e,t){var n="";if("object"===(void 0===e?"undefined":(0,d.default)(e))){for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);f("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),f('Built stat "%s" in group "%s"',t,e);return n}var o,s,c=n(439),u=r(c),l=n(58),d=r(l),f=n(102)("dops:analytics"),p=n(25),h=n(796);window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;var m={initialize:function(e,t,n){m.setUser(e,t),m.setSuperProps(n),m.identifyUser()},setUser:function(e,t){s={ID:e,username:t}},setSuperProps:function(e){o=e},mc:{bumpStat:function(e,t){var n=a(e,t);h("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){var n=i(e,t);h("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){m.tracks.recordPageView(e),m.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,a,i,o){m.ga.recordPurchase(e,t,n,r,a,i,o)}},tracks:{recordEvent:function(e,t){var n;if(t=t||{},f('Record event "%s" called with props %s',e,(0,u.default)(t)),0!==e.indexOf("akismet_")&&0!==e.indexOf("jetpack_"))return void f('- Event name must be prefixed by "akismet_" or "jetpack_"');o&&(n=o.getAll(),f("- Super Props: %o",n),t=p(t,n)),window._tkq.push(["recordEvent",e,t])},recordJetpackClick:function(e){var t="object"===(void 0===e?"undefined":(0,d.default)(e))?e:{target:e};m.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){m.tracks.recordEvent("akismet_page_view",{path:e})}},ga:{initialized:!1,initialize:function(){var e={};m.ga.initialized||(s&&(e={userId:"u-"+s.ID}),window.ga("create",h("google_analytics_key"),"auto",e),m.ga.initialized=!0)},recordPageView:function(e,t){m.ga.initialize(),f("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),h("google_analytics_enabled")&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){m.ga.initialize();var a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==r&&(a+=" [Option Value: "+r+"]"),f(a),h("google_analytics_enabled")&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,a,i,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:a,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){s&&window._tkq.push(["identifyUser",s.ID,s.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};e.exports=m},function(e,t,n){e.exports=n(597)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.JETPACK_SET_INITIAL_STATE="JETPACK_SET_INITIAL_STATE",t.CONNECT_URL_FETCH="CONNECT_URL_FETCH",t.CONNECT_URL_FETCH_FAIL="CONNECT_URL_FETCH_FAIL",t.CONNECT_URL_FETCH_SUCCESS="CONNECT_URL_FETCH_SUCCESS",t.DISCONNECT_SITE="DISCONNECT_SITE",t.DISCONNECT_SITE_FAIL="DISCONNECT_SITE_FAIL",t.DISCONNECT_SITE_SUCCESS="DISCONNECT_SITE_SUCCESS",t.UNLINK_USER="UNLINK_USER",t.UNLINK_USER_FAIL="UNLINK_USER_FAIL",t.UNLINK_USER_SUCCESS="UNLINK_USER_SUCCESS",t.USER_CONNECTION_DATA_FETCH="USER_CONNECTION_DATA_FETCH",t.USER_CONNECTION_DATA_FETCH_FAIL="USER_CONNECTION_DATA_FETCH_FAIL",t.USER_CONNECTION_DATA_FETCH_SUCCESS="USER_CONNECTION_DATA_FETCH_SUCCESS",t.JETPACK_MODULES_LIST_FETCH="JETPACK_MODULES_LIST_FETCH",t.JETPACK_MODULES_LIST_FETCH_FAIL="JETPACK_MODULES_LIST_FETCH_FAIL",t.JETPACK_MODULES_LIST_RECEIVE="JETPACK_MODULES_LIST_RECEIVE",t.JETPACK_MODULE_FETCH="JETPACK_MODULE_FETCH",t.JETPACK_MODULE_FETCH_FAIL="JETPACK_MODULE_FETCH_FAIL",t.JETPACK_MODULE_RECEIVE="JETPACK_MODULE_RECEIVE",t.JETPACK_MODULE_ACTIVATE="JETPACK_MODULE_ACTIVATE",t.JETPACK_MODULE_ACTIVATE_SUCCESS="JETPACK_MODULE_ACTIVATE_SUCCESS",t.JETPACK_MODULE_ACTIVATE_FAIL="JETPACK_MODULE_ACTIVATE_FAIL",t.JETPACK_MODULE_DEACTIVATE="JETPACK_MODULE_DEACTIVATE",t.JETPACK_MODULE_DEACTIVATE_FAIL="JETPACK_MODULE_DEACTIVATE_FAIL",t.JETPACK_MODULE_DEACTIVATE_SUCCESS="JETPACK_MODULE_DEACTIVATE_SUCCESS",t.JETPACK_MODULE_UPDATE_OPTIONS="JETPACK_MODULE_UPDATE_OPTIONS",t.JETPACK_MODULE_UPDATE_OPTIONS_FAIL="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",t.JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",t.JETPACK_CONNECTION_STATUS_FETCH="JETPACK_CONNECTION_STATUS_FETCH",t.JUMPSTART_ACTIVATE="JUMPSTART_ACTIVATE",t.JUMPSTART_ACTIVATE_FAIL="JUMPSTART_ACTIVATE_FAIL",t.JUMPSTART_ACTIVATE_SUCCESS="JUMPSTART_ACTIVATE_SUCCESS",t.JUMPSTART_SKIP="JUMPSTART_SKIP",t.JUMPSTART_SKIP_FAIL="JUMPSTART_SKIP_FAIL",t.JUMPSTART_SKIP_SUCCESS="JUMPSTART_SKIP_SUCCESS",t.DASHBOARD_PROTECT_COUNT_FETCH="DASHBOARD_PROTECT_COUNT_FETCH",t.DASHBOARD_PROTECT_COUNT_FETCH_FAIL="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",t.DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",t.RESET_OPTIONS="RESET_OPTIONS",t.RESET_OPTIONS_FAIL="RESET_OPTIONS_FAIL",t.RESET_OPTIONS_SUCCESS="RESET_OPTIONS_SUCCESS",t.VAULTPRESS_SITE_DATA_FETCH="VAULTPRESS_SITE_DATA_FETCH",t.VAULTPRESS_SITE_DATA_FETCH_FAIL="VAULTPRESS_SITE_DATA_FETCH_FAIL",t.VAULTPRESS_SITE_DATA_FETCH_SUCCESS="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",t.AKISMET_DATA_FETCH="AKISMET_DATA_FETCH",t.AKISMET_DATA_FETCH_FAIL="AKISMET_DATA_FETCH_FAIL",t.AKISMET_DATA_FETCH_SUCCESS="AKISMET_DATA_FETCH_SUCCESS",t.AKISMET_KEY_CHECK_FETCH="AKISMET_KEY_CHECK_FETCH",t.AKISMET_KEY_CHECK_FETCH_FAIL="AKISMET_KEY_CHECK_FETCH_FAIL",t.AKISMET_KEY_CHECK_FETCH_SUCCESS="AKISMET_KEY_CHECK_FETCH_SUCCESS",t.PLUGIN_UPDATES_FETCH="PLUGIN_UPDATES_FETCH",t.PLUGIN_UPDATES_FETCH_FAIL="PLUGIN_UPDATES_FETCH_FAIL",t.PLUGIN_UPDATES_FETCH_SUCCESS="PLUGIN_UPDATES_FETCH_SUCCESS",t.STATS_SWITCH_TAB="STATS_SWITCH_TAB",t.STATS_DATA_FETCH="STATS_DATA_FETCH",t.STATS_DATA_FETCH_FAIL="STATS_DATA_FETCH_FAIL",t.STATS_DATA_FETCH_SUCCESS="STATS_DATA_FETCH_SUCCESS",t.JETPACK_SETTINGS_FETCH="JETPACK_SETTINGS_FETCH",t.JETPACK_SETTINGS_FETCH_RECEIVE="JETPACK_SETTINGS_FETCH_RECEIVE",t.JETPACK_SETTINGS_FETCH_FAIL="JETPACK_SETTINGS_FETCH_FAIL",t.JETPACK_SETTING_UPDATE="JETPACK_SETTING_UPDATE",t.JETPACK_SETTING_UPDATE_SUCCESS="JETPACK_SETTING_UPDATE_SUCCESS",t.JETPACK_SETTING_UPDATE_FAIL="JETPACK_SETTING_UPDATE_FAIL",t.JETPACK_SETTINGS_UPDATE="JETPACK_SETTINGS_UPDATE",t.JETPACK_SETTINGS_UPDATE_FAIL="JETPACK_SETTINGS_UPDATE_FAIL",t.JETPACK_SETTINGS_UPDATE_SUCCESS="JETPACK_SETTINGS_UPDATE_SUCCESS",t.JETPACK_SETTINGS_SET_UNSAVED_FLAG="JETPACK_SETTINGS_SET_UNSAVED_FLAG",t.JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",t.JETPACK_SITE_DATA_FETCH="JETPACK_SITE_DATA_FETCH",
|
3 |
t.JETPACK_SITE_DATA_FETCH_RECEIVE="JETPACK_SITE_DATA_FETCH_RECEIVE",t.JETPACK_SITE_DATA_FETCH_FAIL="JETPACK_SITE_DATA_FETCH_FAIL",t.JETPACK_SITE_FEATURES_FETCH="JETPACK_SITE_FEATURES_FETCH",t.JETPACK_SITE_FEATURES_FETCH_RECEIVE="JETPACK_SITE_FEATURES_FETCH_RECEIVE",t.JETPACK_SITE_FEATURES_FETCH_FAIL="JETPACK_SITE_FEATURES_FETCH_FAIL",t.JETPACK_ACTION_NOTICES_DISMISS="JETPACK_ACTION_NOTICES_DISMISS",t.JETPACK_NOTICES_DISPATCH_TYPE="JETPACK_NOTICES_DISPATCH_TYPE",t.JETPACK_NOTICES_DISMISS="JETPACK_NOTICES_DISMISS",t.JETPACK_NOTICES_DISMISS_FAIL="JETPACK_NOTICES_DISMISS_FAIL",t.JETPACK_NOTICES_DISMISS_SUCCESS="JETPACK_NOTICES_DISMISS_SUCCESS",t.JETPACK_PLUGINS_DATA_FETCH="JETPACK_PLUGINS_DATA_FETCH",t.JETPACK_PLUGINS_DATA_FETCH_RECEIVE="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",t.JETPACK_PLUGINS_DATA_FETCH_FAIL="JETPACK_PLUGINS_DATA_FETCH_FAIL",t.JETPACK_SEARCH_TERM="JETPACK_SEARCH_TERM",t.JETPACK_SEARCH_FOCUS="JETPACK_SEARCH_FOCUS",t.JETPACK_SEARCH_BLUR="JETPACK_SEARCH_BLUR",t.DEV_CARD_DISPLAY="DEV_CARD_DISPLAY",t.DEV_CARD_HIDE="DEV_CARD_HIDE",t.MOCK_SWITCH_USER_PERMISSIONS="MOCK_SWITCH_USER_PERMISSIONS",t.MOCK_SWITCH_THREATS="MOCK_SWITCH_THREATS",t.REWIND_STATUS_FETCH="REWIND_STATUS_FETCH",t.REWIND_STATUS_FETCH_RECEIVE="REWIND_STATUS_FETCH_RECEIVE",t.REWIND_STATUS_FETCH_FAIL="REWIND_STATUS_FETCH_FAIL",t.MOCK_SWITCH_REWIND_STATE="MOCK_SWITCH_REWIND_STATE"},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var l in n)i.call(n,l)&&(c[l]=n[l]);if(a){s=a(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(c[s[d]]=n[s[d]])}}return c}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(h)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function a(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=a(e);n._hostNode=t,t[_]=n}function o(e){var t=e._hostNode;t&&(delete t[_],e._hostNode=null)}function s(e,t){if(!(e._flags&m.hasCachedChildNodes)){var n=e._renderedChildren,o=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var c=n[s],u=a(c)._domID;if(0!==u){for(;null!==o;o=o.nextSibling)if(r(o,u)){i(c,o);continue e}d("32",u)}}e._flags|=m.hasCachedChildNodes}}function c(e){if(e[_])return e[_];for(var t=[];!e[_];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[_]);e=t.pop())n=r,t.length&&s(r,e);return n}function u(e){var t=c(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode&&d("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||d("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var d=n(11),f=n(93),p=n(231),h=(n(7),f.ID_ATTRIBUTE_NAME),m=p,_="__reactInternalInstance$"+Math.random().toString(36).slice(2),M={getClosestInstanceFromNode:c,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:s,precacheNode:i,uncacheNode:o};e.exports=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(260),a=n(612),i=n(613),o=n(614),s=n(264);n(263);n.d(t,"createStore",function(){return r.b}),n.d(t,"combineReducers",function(){return a.a}),n.d(t,"bindActionCreators",function(){return i.a}),n.d(t,"applyMiddleware",function(){return o.a}),n.d(t,"compose",function(){return s.a})},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(309),s=r(o),c=n(797),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,t){if(-1!==t.indexOf("deprecated")){if(s[t])return;s[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];o.default.apply(void 0,[e,t].concat(r))}function a(){s={}}t.__esModule=!0,t.default=r,t._resetWarned=a;var i=n(46),o=function(e){return e&&e.__esModule?e:{default:e}}(i),s={}},function(e,t,n){function r(e,t,n){var r=null==e?void 0:a(e,t);return void 0===r?n:r}var a=n(160);e.exports=r},function(e,t,n){var r=n(154),a=n(78),i=n(283),o=n(52),s=n(117),c=n(68),u=Object.prototype,l=u.hasOwnProperty,d=i(function(e,t){if(s(t)||o(t))return void a(t,c(t),e);for(var n in t)l.call(t,n)&&r(e,n,t[n])});e.exports=d},function(e,t){var n=Array.isArray;e.exports=n},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(201),s=r(o),c=n(731),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){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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(299),s=r(o),c=n(798),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){"use strict";var r=function(e,t,n,r,a,i,o,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,i,o,s],l=0;c=new Error(t.replace(/%s/g,function(){return u[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(25),i=r(a),o=n(114),s=r(o),c=n(1),u=n(61),l=n(13);n(830);var d=c.createClass({displayName:"CardSection",propTypes:{title:c.PropTypes.any,vertical:c.PropTypes.any,style:c.PropTypes.object,className:c.PropTypes.string,device:c.PropTypes.oneOf(["desktop","tablet","phone"])},getDefaultProps:function(){return{vertical:null}},render:function(){return c.createElement("div",{className:l("dops-card-section",this.props.className),style:this.props.style},this.props.title?this._renderWithTitle():this.props.children)},_renderWithTitle:function(){var e=this.props.vertical?"vertical":"horizontal",t="dops-card-section-orient-"+e;return c.createElement("div",{className:t},c.createElement("h4",{ref:"label",className:"dops-card-section-label"},this.props.title),c.createElement("div",{ref:"content",className:"dops-card-section-content"},this.props.children))}}),f=c.createClass({displayName:"CardFooter",render:function(){return c.createElement("div",{className:"dops-card-footer"},this.props.children)}}),p=c.createClass({displayName:"Card",propTypes:{meta:c.PropTypes.any,icon:c.PropTypes.string,iconLabel:c.PropTypes.any,iconColor:c.PropTypes.string,style:c.PropTypes.object,className:c.PropTypes.string,href:c.PropTypes.string,title:c.PropTypes.string,tagName:c.PropTypes.string,target:c.PropTypes.string,compact:c.PropTypes.bool,children:c.PropTypes.node},getDefaultProps:function(){return{iconColor:"#787878",className:"",tagName:"div"}},render:function(){var e=l("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),t=["compact","tagName","meta","iconColor"],n=void 0;this.props.href?n=c.createElement(u,{className:"dops-card__link-indicator",icon:this.props.target?"external":"chevron-right"}):t.push("href","target");var r=void 0;return this.props.title&&(r=c.createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&c.createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),c.createElement(this.props.href?"a":this.props.tagName,(0,i.default)((0,s.default)(this.props,t),{className:e}),n,r,this.props.children)},_renderIcon:function(){return c.createElement("span",{className:"dops-card-icon",style:{color:this.props.iconColor}},this.props.icon&&c.createElement(u,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel)}});p.Section=d,p.Footer=f,e.exports=p},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=a},function(e,t,n){var r=n(190)("wks"),a=n(136),i=n(35).Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},function(e,t,n){function r(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}var i=n(39),o=i.Buffer;o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=a),r(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){var r=n(35),a=n(21),i=n(71),o=n(72),s=function(e,t,n){var c,u,l,d=e&s.F,f=e&s.G,p=e&s.S,h=e&s.P,m=e&s.B,_=e&s.W,M=f?a:a[t]||(a[t]={}),b=M.prototype,g=f?r:p?r[t]:(r[t]||{}).prototype;f&&(n=t);for(c in n)(u=!d&&g&&void 0!==g[c])&&c in M||(l=u?g[c]:n[c],M[c]=f&&"function"!=typeof g[c]?n[c]:m&&u?i(l,r):_&&g[c]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((M.virtual||(M.virtual={}))[c]=l,e&s.R&&b&&!b[c]&&o(b,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=function(t){function n(){var e,t,r,a;(0,h.default)(this,n);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return t=r=(0,b.default)(this,(e=n.__proto__||(0,f.default)(n)).call.apply(e,[this].concat(s))),r.state={options:{}},r.onOptionChange=function(e){var t=e.target.name,n=void 0;n="checkbox"===e.target.type&&void 0!==e.target.checked?e.target.checked:e.target.value,r.updateFormStateOptionValue(t,n)},r.updateFormStateOptionValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;"string"==typeof e&&(e=(0,l.default)({},e,t));var n=(0,c.default)({},r.state.options,e);return r.setState({options:n}),!0},r.updateFormStateModuleOption=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r.trackSettingsToggle(e,t,!r.getOptionValue(t)),r.getOptionValue(e))if(n){var a;r.props.updateOptions((a={},(0,l.default)(a,e,!1),(0,l.default)(a,t,!r.getOptionValue(t)),a))}else r.props.updateOptions((0,l.default)({},t,!r.getOptionValue(t)));else{var i;r.props.updateOptions((i={},(0,l.default)(i,e,!0),(0,l.default)(i,t,!0),i))}},r.toggleModuleNow=function(e){r.props.updateOptions((0,l.default)({},e,!r.getOptionValue(e)))},r.onSubmit=function(e){e.preventDefault(),r.props.updateOptions(r.state.options).then(function(){r.trackFormSubmission(r.state.options),r.setState({options:{}})}).then(function(){r.props.clearUnsavedSettingsFlag()})},r.getOptionValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,E.default)(r.state.options,e,r.props.getSettingCurrentValue(e,t))},r.shouldSaveButtonBeDisabled=function(){return r.isSavingAnyOption()||!r.isDirty()},r.isDirty=function(){return!!(0,o.default)(r.state.options).length},r.isSavingAnyOption=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r.props.isUpdating(e)},r.trackFormSubmission=function(e){T.default.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)},r.trackSettingsToggle=function(e,t,n){T.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:n?"on":"off"})},a=t,(0,b.default)(r,a)}return(0,v.default)(n,t),(0,_.default)(n,[{key:"componentDidUpdate",value:function(){this.isDirty()&&this.props.setUnsavedSettingsFlag()}},{key:"render",value:function(){return A.default.createElement(e,(0,c.default)({getOptionValue:this.getOptionValue,onSubmit:this.onSubmit,onOptionChange:this.onOptionChange,updateFormStateOptionValue:this.updateFormStateOptionValue,toggleModuleNow:this.toggleModuleNow,updateFormStateModuleOption:this.updateFormStateModuleOption,shouldSaveButtonBeDisabled:this.shouldSaveButtonBeDisabled,isSavingAnyOption:this.isSavingAnyOption,isDirty:this.isDirty},this.props))}}]),n}(A.default.Component);return(0,L.connectModuleOptions)(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(80),o=r(i),s=n(10),c=r(s),u=n(49),l=r(u),d=n(2),f=r(d),p=n(3),h=r(p),m=n(6),_=r(m),M=n(4),b=r(M),g=n(5),v=r(g);t.ModuleSettingsForm=a;var y=n(1),A=r(y),w=n(24),E=r(w),k=n(14),T=r(k),L=n(967)},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsGroup=void 0;var a=n(15),i=r(a),o=n(1),s=r(o),c=n(9),u=n(8),l=n(30),d=r(l),f=n(13),p=r(f),h=n(976),m=r(h),_=n(509),M=r(_),b=n(40),g=r(b),v=n(69),y=r(v),A=n(14),w=r(A),E=n(22),k=n(28),T=n(27),L=t.SettingsGroup=function(e){var t=e.module;if(t.module&&!e.userCanManageModules&&!(0,g.default)(["after-the-deadline","post-by-email","publicize"],t.module))return s.default.createElement("span",null);var n=e.disableInDevMode&&e.isUnavailableInDevMode(t.module),r=!e.support&&t&&""!==t.learn_more_button?t.learn_more_button:e.support,a=n;("post-by-email"===t.module&&!e.isLinked||"after-the-deadline"===t.module&&!e.userCanManageModules&&e.userCanEditPosts&&!e.isModuleActivated("after-the-deadline"))&&(a=!0);var i=function(){w.default.tracks.recordJetpackClick({target:"info-icon",feature:t.module})},o=function(){w.default.tracks.recordJetpackClick({target:"learn-more",feature:t.module})};return s.default.createElement("div",{className:"jp-form-settings-group"},s.default.createElement(d.default,{className:(0,p.default)({"jp-form-has-child":e.hasChild,"jp-form-settings-disable":n})},a&&s.default.createElement("div",{className:"jp-form-block-fade"}),r&&s.default.createElement("div",{className:"jp-module-settings__learn-more"},s.default.createElement(m.default,{onClick:i,screenReaderText:(0,u.translate)("Learn more")},s.default.createElement(M.default,{onClick:o,icon:!1,href:r,target:"_blank",rel:"noopener noreferrer"},(0,u.translate)("Learn more")))),e.children))};L.propTypes={support:i.default.string,module:i.default.object,disableInDevMode:i.default.bool.isRequired,isDevMode:i.default.bool.isRequired,isSitePublic:i.default.bool.isRequired,userCanManageModules:i.default.bool.isRequired,isLinked:i.default.bool.isRequired,isUnavailableInDevMode:i.default.func.isRequired},L.defaultProps={support:"",module:{},disableInDevMode:!1,isDevMode:!1,isSitePublic:!0,userCanManageModules:!1,isLinked:!1,isUnavailableInDevMode:y.default},t.default=(0,c.connect)(function(e){return{isDevMode:(0,E.isDevMode)(e),isSitePublic:(0,k.isSitePublic)(e),userCanManageModules:(0,k.userCanManageModules)(e),userCanEditPosts:(0,k.userCanEditPosts)(e),isLinked:(0,E.isCurrentUserLinked)(e),isModuleActivated:function(t){return(0,T.isModuleActivated)(e,t)},isUnavailableInDevMode:function(t){return(0,E.isUnavailableInDevMode)(e,t)}}})(L)},function(e,t,n){"use strict";(function(e){function r(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=i.prototype):(null===e&&(e=new i(t)),e.length=t),e}function i(e,t,n){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return o(this,e,t,n)}function o(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?f(e,t,n,r):"string"==typeof t?l(e,t,n):p(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return s(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}function u(e,t){if(s(t),e=a(e,t<0?0:0|h(t)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function l(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!i.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(t,n);e=a(e,r);var o=e.write(t,n);return o!==r&&(e=e.slice(0,o)),e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),i.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=i.prototype):e=d(e,t),e}function p(e,t){if(i.isBuffer(t)){var n=0|h(t.length);return e=a(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||J(t.length)?a(e,0):d(e,t);if("Buffer"===t.type&&Z(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function _(e,t){if(i.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function M(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return z(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,a);if("number"==typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,a){function i(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}var u;if(a){var l=-1;for(u=n;u<s;u++)if(i(e,u)===i(t,-1===l?0:u-l)){if(-1===l&&(l=u),u-l+1===c)return l*o}else-1!==l&&(u-=u-l),l=-1}else for(n+c>s&&(n=s-c),u=n;u>=0;u--){for(var d=!0,f=0;f<c;f++)if(i(e,u+f)!==i(t,f)){d=!1;break}if(d)return u}return-1}function y(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function A(e,t,n,r){return K(H(t,e.length-n),e,n,r)}function w(e,t,n,r){return K(F(t),e,n,r)}function E(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return K(V(t),e,n,r)}function T(e,t,n,r){return K(X(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var i=e[a],o=null,s=i>239?4:i>223?3:i>191?2:1;if(a+s<=n){var c,u,l,d;switch(s){case 1:i<128&&(o=i);break;case 2:c=e[a+1],128==(192&c)&&(d=(31&i)<<6|63&c)>127&&(o=d);break;case 3:c=e[a+1],u=e[a+2],128==(192&c)&&128==(192&u)&&(d=(15&i)<<12|(63&c)<<6|63&u)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:c=e[a+1],u=e[a+2],l=e[a+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(d=(15&i)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=s}return C(r)}function C(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=$));return n}function z(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=t;i<n;++i)a+=U(e[i]);return a}function D(e,t,n){for(var r=e.slice(t,n),a="",i=0;i<r.length;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,a,o){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a<i;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a<i;++a)e[n+a]=t>>>8*(r?a:3-a)&255}function Y(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,a){return a||Y(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,a){return a||Y(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,n,r,52,8),n+8}function B(e){if(e=W(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,a=null,i=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function X(e,t){for(var n,r,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,a=n%256,i.push(a),i.push(r);return i}function V(e){return G.toByteArray(B(e))}function K(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function J(e){return e!==e}var G=n(998),Q=n(999),Z=n(806);t.Buffer=i,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return o(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return c(null,e,t,n)},i.allocUnsafe=function(e){return u(null,e)},i.allocUnsafeSlow=function(e){return u(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a<o;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Z(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=i.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var o=e[n];if(!i.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,a),a+=o.length}return r},i.byteLength=_,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},i.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},i.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},i.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):M.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e,t,n,r,a){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var o=a-r,s=n-t,c=Math.min(o,s),u=this.slice(r,a),l=e.slice(t,n),d=0;d<c;++d)if(u[d]!==l[d]){o=u[d],s=l[d];break}return o<s?-1:s<o?1:0},i.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},i.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},i.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},i.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r;if(i.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=i.prototype;else{var a=t-e;r=new i(a,void 0);for(var o=0;o<a;++o)r[o]=this[o+e]}return r},i.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r},i.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},i.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},
|
4 |
-
i.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),Q.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),Q.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),Q.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),Q.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){x(this,e,t,n,Math.pow(2,8*n)-1,0)}var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},i.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){x(this,e,t,n,Math.pow(2,8*n)-1,0)}var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a,o=r-n;if(this===e&&n<t&&t<r)for(a=o-1;a>=0;--a)e[a+t]=this[a+n];else if(o<1e3||!i.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},i.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!i.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=i.isBuffer(e)?e:H(new i(e,r).toString()),c=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%c]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,n(51))},function(e,t,n){function r(e,t,n,r){e=i(e)?e:c(e),n=n&&!r?s(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&a(e,t,n)>-1}var a=n(223),i=n(52),o=n(482),s=n(224),c=n(725),u=Math.max;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}),t.SettingsCard=void 0;var a=n(15),i=r(a),o=n(1),s=r(o),c=n(9),u=n(8),l=n(40),d=r(l),f=n(456),p=r(f),h=n(43),m=r(h),_=n(14),M=r(_),b=n(24),g=r(b),v=n(55),y=n(28),A=n(62),w=n(64),E=n(862),k=r(E),T=n(863),L=r(T),S=n(503),C=r(S),z=t.SettingsCard=function(e){var t=function(e){M.default.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})},n=!!e.module&&e.getModule(e.module),r=e.vaultPressData,a=(0,g.default)(r,["data","features","backups"],!1),i=(0,g.default)(r,["data","features","security"],!1);if(!e.userCanManageModules&&!(0,d.default)(["composing","post-by-email","publicize"],e.module))return s.default.createElement("span",null);var o=e.saveDisabled,c=!!e.feature&&e.feature,l=e.siteRawUrl,f=e.header?e.header:"";""===f&&n&&(f=n.name);return s.default.createElement("form",{className:"jp-form-settings-card"},s.default.createElement(k.default,{label:f},!e.hideButton&&s.default.createElement(m.default,{primary:!0,compact:!0,onClick:o?function(){}:e.onSubmit,disabled:o||!e.isDirty()},o?(0,u.translate)("Saving…",{context:"Button caption"}):(0,u.translate)("Save settings",{context:"Button caption"})),e.action&&s.default.createElement(L.default,{proFeature:e.action,siteAdminUrl:e.siteAdminUrl,isCompact:!1})),function(){if(e.fetchingSiteData)return!0;var t=(0,v.getPlanClass)(e.sitePlan.product_slug);switch(c){case v.FEATURE_SECURITY_SCANNING_JETPACK:if("is-free-plan"===t&&!i)return!1;break;case v.FEATURE_WORDADS_JETPACK:if("is-premium-plan"!==t&&"is-business-plan"!==t)return!1;break;case v.FEATURE_GOOGLE_ANALYTICS_JETPACK:case v.FEATURE_SEO_TOOLS_JETPACK:case v.FEATURE_SEARCH_JETPACK:if("is-business-plan"!==t)return!1;break;case v.FEATURE_SPAM_AKISMET_PLUS:if(((0,d.default)(["is-free-plan"],t)||(0,p.default)(t))&&!e.isAkismetKeyValid&&!e.isCheckingAkismetKey)return!1}return!0}()&&e.children,!e.fetchingSiteData&&function(){var n=(0,v.getPlanClass)(e.sitePlan.product_slug),r=(0,u.translate)("Upgrade",{context:"A caption for a button to upgrade an existing paid feature to a higher tier."});switch(c){case v.FEATURE_VIDEO_HOSTING_JETPACK:return"is-premium-plan"===n||"is-business-plan"===n?"":s.default.createElement(C.default,{title:(0,u.translate)("Host fast, high-quality, ad-free video."),callToAction:r,plan:v.PLAN_JETPACK_PREMIUM,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-video-premium&site="+l});case v.FEATURE_WORDADS_JETPACK:return"is-premium-plan"===n||"is-business-plan"===n?"":s.default.createElement(C.default,{title:(0,u.translate)("Generate income with high-quality ads."),callToAction:r,plan:v.PLAN_JETPACK_PREMIUM,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-ads&site="+l});case v.FEATURE_SECURITY_SCANNING_JETPACK:return a||"is-business-plan"===n?"":"is-premium-plan"===n?s.default.createElement(C.default,{title:(0,u.translate)("Real-time site backups and automatic threat resolution."),plan:v.PLAN_JETPACK_BUSINESS,callToAction:r,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-security-pro&site="+l}):s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Protect against data loss, malware, and malicious attacks."),plan:v.PLAN_JETPACK_PREMIUM,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-security-premium&site="+l});case v.FEATURE_GOOGLE_ANALYTICS_JETPACK:return"is-business-plan"===n?"":s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Integrate easily with Google Analytics."),plan:v.PLAN_JETPACK_BUSINESS,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-ga&site="+l});case v.FEATURE_SEO_TOOLS_JETPACK:return"is-business-plan"===n?"":s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Help your content get found and shared with SEO tools."),plan:v.PLAN_JETPACK_BUSINESS,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-seo&site="+l});case v.FEATURE_SEARCH_JETPACK:return"is-business-plan"===n?"":s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Faster, more relevant and more powerful sitewide search."),plan:v.PLAN_JETPACK_BUSINESS,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-search&site="+l});case v.FEATURE_SPAM_AKISMET_PLUS:return e.isCheckingAkismetKey||e.isAkismetKeyValid||(0,d.default)(["is-personal-plan","is-premium-plan","is-business-plan"],n)?"":s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Protect your site from spam."),plan:v.PLAN_JETPACK_PERSONAL,feature:c,href:"https://jetpack.com/redirect/?source=settings-spam&site="+l});default:return""}}())};z.propTypes={action:i.default.string,saveDisabled:i.default.bool},z.defaultProps={action:"",saveDisabled:!1},t.default=(0,c.connect)(function(e){return{sitePlan:(0,w.getSitePlan)(e),fetchingSiteData:(0,w.isFetchingSiteData)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e),isAkismetKeyValid:(0,A.isAkismetKeyValid)(e),isCheckingAkismetKey:(0,A.isCheckingAkismetKey)(e),vaultPressData:(0,A.getVaultPressData)(e)}})(z)},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}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(455),i=r(a),o=n(1),s=r(o),c=n(13),u=r(c),l=n(69),d=r(l);n(793),t.default=s.default.createClass({displayName:"Button",propTypes:{disabled:s.default.PropTypes.bool,compact:s.default.PropTypes.bool,primary:s.default.PropTypes.bool,scary:s.default.PropTypes.bool,type:s.default.PropTypes.string,href:s.default.PropTypes.string,onClick:s.default.PropTypes.func,borderless:s.default.PropTypes.bool,className:s.default.PropTypes.string},getDefaultProps:function(){return{disabled:!1,type:"button",onClick:d.default,borderless:!1}},render:function(){var e=this.props.href?"a":"button",t=this.props,n=t.primary,r=t.compact,a=t.scary,o=t.borderless,c=t.className,l=(0,i.default)(t,["primary","compact","scary","borderless","className"]),d=(0,u.default)({"dops-button":!0,"is-compact":r,"is-primary":n,"is-scary":a,"is-borderless":o});return l.className=(0,u.default)(c,d),s.default.createElement(e,l,this.props.children)}}),e.exports=t.default},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t,n){var r=n(265),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r=n(53),a=n(288),i=n(188),o=Object.defineProperty;t.f=n(59)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(308),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(){S.ReactReconcileTransaction&&A||l("123")}function a(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,a,i,o){return r(),A.batchedUpdates(e,t,n,a,i,o)}function o(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==b.length&&l("124",t,b.length),b.sort(o),g++;for(var n=0;n<t;n++){var r=b[n],a=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(h.logTopLevelRenders){var s=r;r._currentElement.type.isReactTopLevelWrapper&&(s=r._renderedComponent),i="React update: "+s.getName(),console.time(i)}if(m.performUpdateIfNecessary(r,e.reconcileTransaction,g),i&&console.timeEnd(i),a)for(var c=0;c<a.length;c++)e.callbackQueue.enqueue(a[c],r.getPublicInstance())}}function c(e){if(r(),!A.isBatchingUpdates)return void A.batchedUpdates(c,e);b.push(e),null==e._updateBatchNumber&&(e._updateBatchNumber=g+1)}function u(e,t){M(A.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."),v.enqueue(e,t),y=!0}var l=n(11),d=n(17),f=n(235),p=n(73),h=n(469),m=n(96),_=n(126),M=n(7),b=[],g=0,v=f.getPooled(),y=!1,A=null,w={initialize:function(){this.dirtyComponentsLength=b.length},close:function(){this.dirtyComponentsLength!==b.length?(b.splice(0,this.dirtyComponentsLength),T()):b.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},k=[w,E];d(a.prototype,_,{getTransactionWrappers:function(){return k},destructor:function(){this.dirtyComponentsLength=null,f.release(this.callbackQueue),this.callbackQueue=null,S.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return _.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(a);var T=function(){for(;b.length||y;){if(b.length){var e=a.getPooled();e.perform(s,null,e),a.release(e)}if(y){y=!1;var t=v;v=f.getPooled(),t.notifyAll(),f.release(t)}}},L={injectReconcileTransaction:function(e){e||l("126"),S.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e||l("127"),"function"!=typeof e.batchedUpdates&&l("128"),"boolean"!=typeof e.isBatchingUpdates&&l("129"),A=e}},S={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:c,flushBatchedUpdates:T,injection:L,asap:u};e.exports=S},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){function r(e){return null!=e&&i(e.length)&&!a(e)}var a=n(155),i=n(184);e.exports=r},function(e,t,n){var r=n(48);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleToggle=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(15),m=r(h),_=n(1),M=r(_),b=n(124),g=r(b),v=n(14),y=r(v),A=t.ModuleToggle=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.toggleModule=function(){return r.trackModuleToggle(r.props.slug,r.props.activated),r.props.toggleModule(r.props.slug,r.props.activated)},r.trackModuleToggle=function(e,t){"stats"!==e&&y.default.tracks.recordEvent("jetpack_wpa_module_toggle",{module:e,toggled:t?"off":"on"})},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(g.default,{checked:this.props.activated,toggling:this.props.toggling,className:this.props.className,disabled:this.props.disabled,id:this.props.id,onChange:this.toggleModule},this.props.children)}}]),t}(M.default.Component);A.propTypes={toggleModule:m.default.func,activated:m.default.bool,disabled:m.default.bool,className:m.default.string,compact:m.default.bool,id:m.default.string},A.defaultProps={activated:!1,disabled:!1}},function(e,t,n){"use strict";function r(e){return(0,u.default)(w,e)}function a(e){return(0,u.default)(y,e)}function i(e){return(0,u.default)(A,e)}function o(e){switch(e){case h:case p:return"is-free-plan";case f:case M:case v:return"is-personal-plan";case d:case m:case b:return"is-premium-plan";case l:case _:case g:return"is-business-plan";default:return""}}function s(e){switch(e){case m:return b;case _:return g;case M:return v;default:return""}}Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURE_SEARCH_JETPACK=t.FEATURE_GOOGLE_ANALYTICS_JETPACK=t.FEATURE_WORDADS_JETPACK=t.FEATURE_SEO_TOOLS_JETPACK=t.FEATURE_PRIORITY_SUPPORT_JETPACK=t.FEATURE_SECURITY_ESSENTIALS_JETPACK=t.FEATURE_VIDEO_HOSTING_JETPACK=t.FEATURE_REVENUE_GENERATION_JETPACK=t.FEATURE_SECURITY_SCANNING_JETPACK=t.FEATURE_REALTIME_BACKUPS_JETPACK=t.FEATURE_SITE_BACKUPS_JETPACK=t.FEATURE_BASIC_SECURITY_JETPACK=t.FEATURE_BASIC_SUPPORT_JETPACK=t.FEATURE_CORE_JETPACK=t.FEATURE_POLLS_PRO=t.FEATURE_ONE_CLICK_THREAT_RESOLUTION=t.FEATURE_MALWARE_SCANNING_DAILY_AND_ON_DEMAND=t.FEATURE_MALWARE_SCANNING_DAILY=t.FEATURE_EASY_SITE_MIGRATION=t.FEATURE_AUTOMATED_RESTORES=t.FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED=t.FEATURE_BACKUP_ARCHIVE_UNLIMITED=t.FEATURE_BACKUP_ARCHIVE_15=t.FEATURE_BACKUP_ARCHIVE_30=t.FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME=t.FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY=t.FEATURE_SPAM_AKISMET_PLUS=t.FEATURE_MANAGE=t.FEATURE_TRAFFIC_TOOLS=t.FEATURE_SITE_STATS=t.FEATURE_STANDARD_SECURITY_TOOLS=t.FEATURE_UPLOAD_PLUGINS=t.FEATURE_BUSINESS_ONBOARDING=t.FEATURE_ADVANCED_SEO=t.FEATURE_NO_BRANDING=t.FEATURE_WORDADS_INSTANT=t.FEATURE_AUDIO_UPLOADS=t.FEATURE_VIDEO_UPLOADS_JETPACK_PRO=t.FEATURE_VIDEO_UPLOADS_JETPACK_PREMIUM=t.FEATURE_VIDEO_UPLOADS=t.FEATURE_NO_ADS=t.FEATURE_LIVE_CHAT_SUPPORT=t.FEATURE_GOOGLE_ANALYTICS=t.FEATURE_ADVANCED_DESIGN=t.FEATURE_BASIC_DESIGN=t.FEATURE_PREMIUM_SUPPORT=t.FEATURE_EMAIL_LIVE_CHAT_SUPPORT=t.FEATURE_COMMUNITY_SUPPORT=t.FEATURE_UNLIMITED_STORAGE=t.FEATURE_13GB_STORAGE=t.FEATURE_6GB_STORAGE=t.FEATURE_3GB_STORAGE=t.FEATURE_UNLIMITED_PREMIUM_THEMES=t.FEATURE_ALL_PREMIUM_THEMES=t.FEATURE_SELECT_PREMIUM_THEMES=t.FEATURE_FREE_THEMES=t.FEATURE_JETPACK_ESSENTIAL=t.FEATURE_CUSTOM_DOMAIN=t.FEATURE_WP_SUBDOMAIN=t.PLAN_ANNUAL_PERIOD=t.PLAN_MONTHLY_PERIOD=t.JETPACK_MONTHLY_PLANS=t.NEW_PLANS=t.POPULAR_PLANS=t.PLAN_CHARGEBACK=t.PLAN_WPCOM_ENTERPRISE=t.PLAN_HOST_BUNDLE=t.PLAN_JETPACK_PERSONAL_MONTHLY=t.PLAN_JETPACK_BUSINESS_MONTHLY=t.PLAN_JETPACK_PREMIUM_MONTHLY=t.PLAN_JETPACK_PERSONAL=t.PLAN_JETPACK_BUSINESS=t.PLAN_JETPACK_PREMIUM=t.PLAN_JETPACK_FREE=t.PLAN_FREE=t.PLAN_PERSONAL=t.PLAN_PREMIUM=t.PLAN_BUSINESS=void 0,t.isMonthly=r,t.isPopular=a,t.isNew=i,t.getPlanClass=o,t.getMonthlyPlanByYearly=s;var c=n(40),u=function(e){return e&&e.__esModule?e:{default:e}}(c),l=t.PLAN_BUSINESS="business-bundle",d=t.PLAN_PREMIUM="value_bundle",f=t.PLAN_PERSONAL="personal-bundle",p=t.PLAN_FREE="free_plan",h=t.PLAN_JETPACK_FREE="jetpack_free",m=t.PLAN_JETPACK_PREMIUM="jetpack_premium",_=t.PLAN_JETPACK_BUSINESS="jetpack_business",M=t.PLAN_JETPACK_PERSONAL="jetpack_personal",b=t.PLAN_JETPACK_PREMIUM_MONTHLY="jetpack_premium_monthly",g=t.PLAN_JETPACK_BUSINESS_MONTHLY="jetpack_business_monthly",v=t.PLAN_JETPACK_PERSONAL_MONTHLY="jetpack_personal_monthly",y=(t.PLAN_HOST_BUNDLE="host-bundle",t.PLAN_WPCOM_ENTERPRISE="wpcom-enterprise",t.PLAN_CHARGEBACK="chargeback",t.POPULAR_PLANS=[d]),A=t.NEW_PLANS=[M,v],w=t.JETPACK_MONTHLY_PLANS=[b,g,v];t.PLAN_MONTHLY_PERIOD=31,t.PLAN_ANNUAL_PERIOD=365,t.FEATURE_WP_SUBDOMAIN="wordpress-subdomain",t.FEATURE_CUSTOM_DOMAIN="custom-domain",t.FEATURE_JETPACK_ESSENTIAL="jetpack-essential",t.FEATURE_FREE_THEMES="free-themes",t.FEATURE_SELECT_PREMIUM_THEMES="select-premium-themes",t.FEATURE_ALL_PREMIUM_THEMES="all-premium-themes",t.FEATURE_UNLIMITED_PREMIUM_THEMES="premium-themes",t.FEATURE_3GB_STORAGE="3gb-storage",t.FEATURE_6GB_STORAGE="6gb-storage",t.FEATURE_13GB_STORAGE="13gb-storage",t.FEATURE_UNLIMITED_STORAGE="unlimited-storage",t.FEATURE_COMMUNITY_SUPPORT="community-support",t.FEATURE_EMAIL_LIVE_CHAT_SUPPORT="email-live-chat-support",t.FEATURE_PREMIUM_SUPPORT="priority-support",t.FEATURE_BASIC_DESIGN="basic-design",t.FEATURE_ADVANCED_DESIGN="advanced-design",t.FEATURE_GOOGLE_ANALYTICS="google-analytics",t.FEATURE_LIVE_CHAT_SUPPORT="live-chat-support",t.FEATURE_NO_ADS="no-adverts",t.FEATURE_VIDEO_UPLOADS="video-upload",t.FEATURE_VIDEO_UPLOADS_JETPACK_PREMIUM="video-upload-jetpack-premium",t.FEATURE_VIDEO_UPLOADS_JETPACK_PRO="video-upload-jetpack-pro",t.FEATURE_AUDIO_UPLOADS="audio-upload",t.FEATURE_WORDADS_INSTANT="wordads-instant",t.FEATURE_NO_BRANDING="no-wp-branding",t.FEATURE_ADVANCED_SEO="advanced-seo",t.FEATURE_BUSINESS_ONBOARDING="business-onboarding",t.FEATURE_UPLOAD_PLUGINS="upload-plugins",t.FEATURE_STANDARD_SECURITY_TOOLS="standard-security-tools",t.FEATURE_SITE_STATS="site-stats",t.FEATURE_TRAFFIC_TOOLS="traffic-tools",t.FEATURE_MANAGE="jetpack-manage",t.FEATURE_SPAM_AKISMET_PLUS="spam-akismet-plus",t.FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY="offsite-backup-vaultpress-daily",t.FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME="offsite-backup-vaultpress-realtime",t.FEATURE_BACKUP_ARCHIVE_30="backup-archive-30",t.FEATURE_BACKUP_ARCHIVE_15="backup-archive-15",t.FEATURE_BACKUP_ARCHIVE_UNLIMITED="backup-archive-unlimited",t.FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED="backup-storage-space-unlimited",t.FEATURE_AUTOMATED_RESTORES="automated-restores",t.FEATURE_EASY_SITE_MIGRATION="easy-site-migration",t.FEATURE_MALWARE_SCANNING_DAILY="malware-scanning-daily",t.FEATURE_MALWARE_SCANNING_DAILY_AND_ON_DEMAND="malware-scanning-daily-and-on-demand",t.FEATURE_ONE_CLICK_THREAT_RESOLUTION="one-click-threat-resolution",t.FEATURE_POLLS_PRO="polls-pro",t.FEATURE_CORE_JETPACK="core-jetpack",t.FEATURE_BASIC_SUPPORT_JETPACK="basic-support-jetpack",t.FEATURE_BASIC_SECURITY_JETPACK="basic-security-jetpack",t.FEATURE_SITE_BACKUPS_JETPACK="site-backups-jetpack",t.FEATURE_REALTIME_BACKUPS_JETPACK="realtime-backups-jetpack",t.FEATURE_SECURITY_SCANNING_JETPACK="security-scanning-jetpack",t.FEATURE_REVENUE_GENERATION_JETPACK="revenue-generation-jetpack",t.FEATURE_VIDEO_HOSTING_JETPACK="video-hosting-jetpack",t.FEATURE_SECURITY_ESSENTIALS_JETPACK="security-essentials-jetpack",t.FEATURE_PRIORITY_SUPPORT_JETPACK="priority-support-jetpack",t.FEATURE_SEO_TOOLS_JETPACK="seo-tools-jetpack",t.FEATURE_WORDADS_JETPACK="wordads-jetpack",t.FEATURE_GOOGLE_ANALYTICS_JETPACK="google-analytics-jetpack",t.FEATURE_SEARCH_JETPACK="search-jetpack"},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}function o(e,t,n){for(var r=0,a=Math.min(e.length,n),i=t;i<a;i++){var o=e.charCodeAt(i)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function s(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o<i;o++){var s=e.charCodeAt(o)-48;a*=r,a+=s>=49?s-49+10:s>=17?s-17+10:s}return a}function c(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,a=n%26;t[n]=(e.words[r]&1<<a)>>>a}return t}function u(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var l=c>>>26,d=67108863&c,f=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=f;p++){var h=u-p|0;a=0|e.words[h],i=0|t.words[p],o=a*i+d,l+=o/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function l(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i<n.length-1;i++){var o=a;a=0;for(var s=67108863&r,c=Math.min(i,t.length-1),u=Math.max(0,i-e.length+1);u<=c;u++){var l=i-u,d=0|e.words[l],f=0|t.words[u],p=d*f,h=67108863&p;o=o+(p/67108864|0)|0,h=h+s|0,s=67108863&h,o=o+(h>>>26)|0,a+=o>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}function d(e,t,n){return(new f).mulp(e,t,n)}function f(e,t){this.x=e,this.y=t}function p(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function h(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function g(e){b.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var v;try{v=n(1037).Buffer}catch(e){}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var a=0;"-"===e[0]&&a++,16===t?this._parseHex(e,a):this._parseBase(e,t,a),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var i,o,s=0;if("be"===n)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a,i=0;for(n=e.length-6,r=0;n>=t;n-=6)a=o(e,n,n+6),this.words[r]|=a<<i&67108863,this.words[r+1]|=a>>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(a=o(e,t,n+6),this.words[r]|=a<<i&67108863,this.words[r+1]|=a>>>26-i&4194303),this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,c=Math.min(i,i-o)+n,u=0,l=n;l<c;l+=r)u=s(e,l,l+r,t),this.imuln(a),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var d=1;for(u=s(e,l,e.length,t),l=0;l<o;l++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var y=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){e=e||10,t=0|t||1;var n;if(16===e||"hex"===e){n="";for(var a=0,i=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<a|i)).toString(16);i=s>>>24-a&16777215,n=0!==i||o!==this.length-1?y[6-c.length]+c+n:c+n,a+=2,a>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=A[e],l=w[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var f=d.modn(l).toString(e);d=d.idivn(l),n=d.isZero()?f+n:y[u-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==v),this.toArrayLike(v,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),l=this.clone();if(c){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[s]=o;for(;s<i;s++)u[s]=0}else{for(s=0;s<i-a;s++)u[s]=0;for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[i-s-1]=o}return u},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},
|
5 |
-
i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a<t;a++)this.words[a]=67108863&~this.words[a];return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<a:this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var t;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var n,r;this.length>e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i<r.length;i++)t=(0|n.words[i])+(0|r.words[i])+a,this.words[i]=67108863&t,a=t>>>26;for(;0!==a&&i<n.length;i++)t=(0|n.words[i])+a,this.words[i]=67108863&t,a=t>>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;i<n.length;i++)this.words[i]=n.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,a;n>0?(r=this,a=e):(r=e,a=this);for(var i=0,o=0;o<a.length;o++)t=(0|r.words[o])-(0|a.words[o])+i,i=t>>26,this.words[o]=67108863&t;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,i=t>>26,this.words[o]=67108863&t;if(0===i&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var E=function(e,t,n){var r,a,i,o=e.words,s=t.words,c=n.words,u=0,l=0|o[0],d=8191&l,f=l>>>13,p=0|o[1],h=8191&p,m=p>>>13,_=0|o[2],M=8191&_,b=_>>>13,g=0|o[3],v=8191&g,y=g>>>13,A=0|o[4],w=8191&A,E=A>>>13,k=0|o[5],T=8191&k,L=k>>>13,S=0|o[6],C=8191&S,z=S>>>13,O=0|o[7],N=8191&O,D=O>>>13,P=0|o[8],x=8191&P,j=P>>>13,R=0|o[9],Y=8191&R,I=R>>>13,q=0|s[0],B=8191&q,W=q>>>13,U=0|s[1],H=8191&U,F=U>>>13,X=0|s[2],V=8191&X,K=X>>>13,J=0|s[3],G=8191&J,Q=J>>>13,Z=0|s[4],$=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19,r=Math.imul(d,B),a=Math.imul(d,W),a=a+Math.imul(f,B)|0,i=Math.imul(f,W);var _e=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(h,B),a=Math.imul(h,W),a=a+Math.imul(m,B)|0,i=Math.imul(m,W),r=r+Math.imul(d,H)|0,a=a+Math.imul(d,F)|0,a=a+Math.imul(f,H)|0,i=i+Math.imul(f,F)|0;var Me=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(M,B),a=Math.imul(M,W),a=a+Math.imul(b,B)|0,i=Math.imul(b,W),r=r+Math.imul(h,H)|0,a=a+Math.imul(h,F)|0,a=a+Math.imul(m,H)|0,i=i+Math.imul(m,F)|0,r=r+Math.imul(d,V)|0,a=a+Math.imul(d,K)|0,a=a+Math.imul(f,V)|0,i=i+Math.imul(f,K)|0;var be=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(v,B),a=Math.imul(v,W),a=a+Math.imul(y,B)|0,i=Math.imul(y,W),r=r+Math.imul(M,H)|0,a=a+Math.imul(M,F)|0,a=a+Math.imul(b,H)|0,i=i+Math.imul(b,F)|0,r=r+Math.imul(h,V)|0,a=a+Math.imul(h,K)|0,a=a+Math.imul(m,V)|0,i=i+Math.imul(m,K)|0,r=r+Math.imul(d,G)|0,a=a+Math.imul(d,Q)|0,a=a+Math.imul(f,G)|0,i=i+Math.imul(f,Q)|0;var ge=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,B),a=Math.imul(w,W),a=a+Math.imul(E,B)|0,i=Math.imul(E,W),r=r+Math.imul(v,H)|0,a=a+Math.imul(v,F)|0,a=a+Math.imul(y,H)|0,i=i+Math.imul(y,F)|0,r=r+Math.imul(M,V)|0,a=a+Math.imul(M,K)|0,a=a+Math.imul(b,V)|0,i=i+Math.imul(b,K)|0,r=r+Math.imul(h,G)|0,a=a+Math.imul(h,Q)|0,a=a+Math.imul(m,G)|0,i=i+Math.imul(m,Q)|0,r=r+Math.imul(d,$)|0,a=a+Math.imul(d,ee)|0,a=a+Math.imul(f,$)|0,i=i+Math.imul(f,ee)|0;var ve=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(T,B),a=Math.imul(T,W),a=a+Math.imul(L,B)|0,i=Math.imul(L,W),r=r+Math.imul(w,H)|0,a=a+Math.imul(w,F)|0,a=a+Math.imul(E,H)|0,i=i+Math.imul(E,F)|0,r=r+Math.imul(v,V)|0,a=a+Math.imul(v,K)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(y,K)|0,r=r+Math.imul(M,G)|0,a=a+Math.imul(M,Q)|0,a=a+Math.imul(b,G)|0,i=i+Math.imul(b,Q)|0,r=r+Math.imul(h,$)|0,a=a+Math.imul(h,ee)|0,a=a+Math.imul(m,$)|0,i=i+Math.imul(m,ee)|0,r=r+Math.imul(d,ne)|0,a=a+Math.imul(d,re)|0,a=a+Math.imul(f,ne)|0,i=i+Math.imul(f,re)|0;var ye=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,B),a=Math.imul(C,W),a=a+Math.imul(z,B)|0,i=Math.imul(z,W),r=r+Math.imul(T,H)|0,a=a+Math.imul(T,F)|0,a=a+Math.imul(L,H)|0,i=i+Math.imul(L,F)|0,r=r+Math.imul(w,V)|0,a=a+Math.imul(w,K)|0,a=a+Math.imul(E,V)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(v,G)|0,a=a+Math.imul(v,Q)|0,a=a+Math.imul(y,G)|0,i=i+Math.imul(y,Q)|0,r=r+Math.imul(M,$)|0,a=a+Math.imul(M,ee)|0,a=a+Math.imul(b,$)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(h,ne)|0,a=a+Math.imul(h,re)|0,a=a+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0,r=r+Math.imul(d,ie)|0,a=a+Math.imul(d,oe)|0,a=a+Math.imul(f,ie)|0,i=i+Math.imul(f,oe)|0;var Ae=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,B),a=Math.imul(N,W),a=a+Math.imul(D,B)|0,i=Math.imul(D,W),r=r+Math.imul(C,H)|0,a=a+Math.imul(C,F)|0,a=a+Math.imul(z,H)|0,i=i+Math.imul(z,F)|0,r=r+Math.imul(T,V)|0,a=a+Math.imul(T,K)|0,a=a+Math.imul(L,V)|0,i=i+Math.imul(L,K)|0,r=r+Math.imul(w,G)|0,a=a+Math.imul(w,Q)|0,a=a+Math.imul(E,G)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(v,$)|0,a=a+Math.imul(v,ee)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(y,ee)|0,r=r+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,a=a+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(h,ie)|0,a=a+Math.imul(h,oe)|0,a=a+Math.imul(m,ie)|0,i=i+Math.imul(m,oe)|0,r=r+Math.imul(d,ce)|0,a=a+Math.imul(d,ue)|0,a=a+Math.imul(f,ce)|0,i=i+Math.imul(f,ue)|0;var we=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(x,B),a=Math.imul(x,W),a=a+Math.imul(j,B)|0,i=Math.imul(j,W),r=r+Math.imul(N,H)|0,a=a+Math.imul(N,F)|0,a=a+Math.imul(D,H)|0,i=i+Math.imul(D,F)|0,r=r+Math.imul(C,V)|0,a=a+Math.imul(C,K)|0,a=a+Math.imul(z,V)|0,i=i+Math.imul(z,K)|0,r=r+Math.imul(T,G)|0,a=a+Math.imul(T,Q)|0,a=a+Math.imul(L,G)|0,i=i+Math.imul(L,Q)|0,r=r+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,a=a+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,a=a+Math.imul(y,ne)|0,i=i+Math.imul(y,re)|0,r=r+Math.imul(M,ie)|0,a=a+Math.imul(M,oe)|0,a=a+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0,r=r+Math.imul(h,ce)|0,a=a+Math.imul(h,ue)|0,a=a+Math.imul(m,ce)|0,i=i+Math.imul(m,ue)|0,r=r+Math.imul(d,de)|0,a=a+Math.imul(d,fe)|0,a=a+Math.imul(f,de)|0,i=i+Math.imul(f,fe)|0;var Ee=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(Y,B),a=Math.imul(Y,W),a=a+Math.imul(I,B)|0,i=Math.imul(I,W),r=r+Math.imul(x,H)|0,a=a+Math.imul(x,F)|0,a=a+Math.imul(j,H)|0,i=i+Math.imul(j,F)|0,r=r+Math.imul(N,V)|0,a=a+Math.imul(N,K)|0,a=a+Math.imul(D,V)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(C,G)|0,a=a+Math.imul(C,Q)|0,a=a+Math.imul(z,G)|0,i=i+Math.imul(z,Q)|0,r=r+Math.imul(T,$)|0,a=a+Math.imul(T,ee)|0,a=a+Math.imul(L,$)|0,i=i+Math.imul(L,ee)|0,r=r+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,a=a+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(v,ie)|0,a=a+Math.imul(v,oe)|0,a=a+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,r=r+Math.imul(M,ce)|0,a=a+Math.imul(M,ue)|0,a=a+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0,r=r+Math.imul(h,de)|0,a=a+Math.imul(h,fe)|0,a=a+Math.imul(m,de)|0,i=i+Math.imul(m,fe)|0,r=r+Math.imul(d,he)|0,a=a+Math.imul(d,me)|0,a=a+Math.imul(f,he)|0,i=i+Math.imul(f,me)|0;var ke=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(Y,H),a=Math.imul(Y,F),a=a+Math.imul(I,H)|0,i=Math.imul(I,F),r=r+Math.imul(x,V)|0,a=a+Math.imul(x,K)|0,a=a+Math.imul(j,V)|0,i=i+Math.imul(j,K)|0,r=r+Math.imul(N,G)|0,a=a+Math.imul(N,Q)|0,a=a+Math.imul(D,G)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(C,$)|0,a=a+Math.imul(C,ee)|0,a=a+Math.imul(z,$)|0,i=i+Math.imul(z,ee)|0,r=r+Math.imul(T,ne)|0,a=a+Math.imul(T,re)|0,a=a+Math.imul(L,ne)|0,i=i+Math.imul(L,re)|0,r=r+Math.imul(w,ie)|0,a=a+Math.imul(w,oe)|0,a=a+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(v,ce)|0,a=a+Math.imul(v,ue)|0,a=a+Math.imul(y,ce)|0,i=i+Math.imul(y,ue)|0,r=r+Math.imul(M,de)|0,a=a+Math.imul(M,fe)|0,a=a+Math.imul(b,de)|0,i=i+Math.imul(b,fe)|0,r=r+Math.imul(h,he)|0,a=a+Math.imul(h,me)|0,a=a+Math.imul(m,he)|0,i=i+Math.imul(m,me)|0;var Te=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(Y,V),a=Math.imul(Y,K),a=a+Math.imul(I,V)|0,i=Math.imul(I,K),r=r+Math.imul(x,G)|0,a=a+Math.imul(x,Q)|0,a=a+Math.imul(j,G)|0,i=i+Math.imul(j,Q)|0,r=r+Math.imul(N,$)|0,a=a+Math.imul(N,ee)|0,a=a+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,a=a+Math.imul(z,ne)|0,i=i+Math.imul(z,re)|0,r=r+Math.imul(T,ie)|0,a=a+Math.imul(T,oe)|0,a=a+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,r=r+Math.imul(w,ce)|0,a=a+Math.imul(w,ue)|0,a=a+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(v,de)|0,a=a+Math.imul(v,fe)|0,a=a+Math.imul(y,de)|0,i=i+Math.imul(y,fe)|0,r=r+Math.imul(M,he)|0,a=a+Math.imul(M,me)|0,a=a+Math.imul(b,he)|0,i=i+Math.imul(b,me)|0;var Le=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(Y,G),a=Math.imul(Y,Q),a=a+Math.imul(I,G)|0,i=Math.imul(I,Q),r=r+Math.imul(x,$)|0,a=a+Math.imul(x,ee)|0,a=a+Math.imul(j,$)|0,i=i+Math.imul(j,ee)|0,r=r+Math.imul(N,ne)|0,a=a+Math.imul(N,re)|0,a=a+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(C,ie)|0,a=a+Math.imul(C,oe)|0,a=a+Math.imul(z,ie)|0,i=i+Math.imul(z,oe)|0,r=r+Math.imul(T,ce)|0,a=a+Math.imul(T,ue)|0,a=a+Math.imul(L,ce)|0,i=i+Math.imul(L,ue)|0,r=r+Math.imul(w,de)|0,a=a+Math.imul(w,fe)|0,a=a+Math.imul(E,de)|0,i=i+Math.imul(E,fe)|0,r=r+Math.imul(v,he)|0,a=a+Math.imul(v,me)|0,a=a+Math.imul(y,he)|0,i=i+Math.imul(y,me)|0;var Se=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(Y,$),a=Math.imul(Y,ee),a=a+Math.imul(I,$)|0,i=Math.imul(I,ee),r=r+Math.imul(x,ne)|0,a=a+Math.imul(x,re)|0,a=a+Math.imul(j,ne)|0,i=i+Math.imul(j,re)|0,r=r+Math.imul(N,ie)|0,a=a+Math.imul(N,oe)|0,a=a+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(C,ce)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(z,ce)|0,i=i+Math.imul(z,ue)|0,r=r+Math.imul(T,de)|0,a=a+Math.imul(T,fe)|0,a=a+Math.imul(L,de)|0,i=i+Math.imul(L,fe)|0,r=r+Math.imul(w,he)|0,a=a+Math.imul(w,me)|0,a=a+Math.imul(E,he)|0,i=i+Math.imul(E,me)|0;var Ce=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(Y,ne),a=Math.imul(Y,re),a=a+Math.imul(I,ne)|0,i=Math.imul(I,re),r=r+Math.imul(x,ie)|0,a=a+Math.imul(x,oe)|0,a=a+Math.imul(j,ie)|0,i=i+Math.imul(j,oe)|0,r=r+Math.imul(N,ce)|0,a=a+Math.imul(N,ue)|0,a=a+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(C,de)|0,a=a+Math.imul(C,fe)|0,a=a+Math.imul(z,de)|0,i=i+Math.imul(z,fe)|0,r=r+Math.imul(T,he)|0,a=a+Math.imul(T,me)|0,a=a+Math.imul(L,he)|0,i=i+Math.imul(L,me)|0;var ze=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ze>>>26)|0,ze&=67108863,r=Math.imul(Y,ie),a=Math.imul(Y,oe),a=a+Math.imul(I,ie)|0,i=Math.imul(I,oe),r=r+Math.imul(x,ce)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(j,ce)|0,i=i+Math.imul(j,ue)|0,r=r+Math.imul(N,de)|0,a=a+Math.imul(N,fe)|0,a=a+Math.imul(D,de)|0,i=i+Math.imul(D,fe)|0,r=r+Math.imul(C,he)|0,a=a+Math.imul(C,me)|0,a=a+Math.imul(z,he)|0,i=i+Math.imul(z,me)|0;var Oe=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(Y,ce),a=Math.imul(Y,ue),a=a+Math.imul(I,ce)|0,i=Math.imul(I,ue),r=r+Math.imul(x,de)|0,a=a+Math.imul(x,fe)|0,a=a+Math.imul(j,de)|0,i=i+Math.imul(j,fe)|0,r=r+Math.imul(N,he)|0,a=a+Math.imul(N,me)|0,a=a+Math.imul(D,he)|0,i=i+Math.imul(D,me)|0;var Ne=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(Y,de),a=Math.imul(Y,fe),a=a+Math.imul(I,de)|0,i=Math.imul(I,fe),r=r+Math.imul(x,he)|0,a=a+Math.imul(x,me)|0,a=a+Math.imul(j,he)|0,i=i+Math.imul(j,me)|0;var De=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(Y,he),a=Math.imul(Y,me),a=a+Math.imul(I,he)|0,i=Math.imul(I,me);var Pe=(u+r|0)+((8191&a)<<13)|0;return u=(i+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=_e,c[1]=Me,c[2]=be,c[3]=ge,c[4]=ve,c[5]=ye,c[6]=Ae,c[7]=we,c[8]=Ee,c[9]=ke,c[10]=Te,c[11]=Le,c[12]=Se,c[13]=Ce,c[14]=ze,c[15]=Oe,c[16]=Ne,c[17]=De,c[18]=Pe,0!==u&&(c[19]=u,n.length++),n};Math.imul||(E=u),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?E(this,e,t):n<63?u(this,e,t):n<1024?l(this,e,t):d(this,e,t)},f.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},f.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,a=0;a<t;a++)r|=(1&e)<<t-a-1,e>>=1;return r},f.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o<i;o++)r[o]=t[e[o]],a[o]=n[e[o]]},f.prototype.transform=function(e,t,n,r,a,i){this.permute(i,e,t,n,r,a);for(var o=1;o<a;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<a;l+=s)for(var d=c,f=u,p=0;p<o;p++){var h=n[l+p],m=r[l+p],_=n[l+p+o],M=r[l+p+o],b=d*_-f*M;M=d*M+f*_,_=b,n[l+p]=h+_,r[l+p]=m+M,n[l+p+o]=h-_,r[l+p+o]=m-M,p!==s&&(b=c*d-u*f,f=c*f+u*d,d=b)}},f.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,a=0;for(n=n/2|0;n;n>>>=1)a++;return 1<<a+1+r},f.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var a=e[r];e[r]=e[n-r-1],e[n-r-1]=a,a=t[r],t[r]=-t[n-r-1],t[n-r-1]=-a}},f.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var a=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&a,n=a<67108864?0:a/67108864|0}return e},f.prototype.convert13b=function(e,t,n,a){for(var i=0,o=0;o<t;o++)i+=0|e[o],n[2*o]=8191&i,i>>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o<a;++o)n[o]=0;r(0===i),r(0==(-8192&i))},f.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},f.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),a=this.makeRBT(r),i=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),u=new Array(r),l=new Array(r),d=new Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,u,r),this.transform(o,i,s,c,r,a),this.transform(u,i,l,d,r,a);for(var p=0;p<r;p++){var h=s[p]*l[p]-c[p]*d[p];c[p]=s[p]*d[p]+c[p]*l[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,f,i,r,a),this.conjugate(f,i,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),d(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var a=(0|this.words[n])*e,i=(67108863&a)+(67108863&t);t>>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=c(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())0!==t[r]&&(n=n.mul(a));return n},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&i,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t<a;t++)this.words[t]=0;this.length+=a}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){r("number"==typeof e&&e>=0);var a;a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,c=n;if(a-=o,a=Math.max(0,a),c){for(var u=0;u<o;u++)c.words[u]=this.words[u];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=a);u--){var d=0|this.words[u];this.words[u]=l<<26-i|d>>>i,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<<t;return!(this.length<=n)&&!!(this.words[n]&a)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<<t;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var a,i=e.length+n;this._expand(i);var o,s=0;for(a=0;a<e.length;a++){o=(0|this.words[a+n])+s;var c=(0|e.words[a])*t;o-=67108863&c,s=(o>>26)-(c/67108864|0),this.words[a+n]=67108863&o}for(;a<this.length-n;a++)o=(0|this.words[a+n])+s,s=o>>26,this.words[a+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a<this.length;a++)o=-(0|this.words[a])+s,s=o>>26,this.words[a]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),a=e,o=0|a.words[a.length-1];0!==(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){s=new i(null),s.length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=r.clone()._ishlnsubmul(a,1,c);0===l.negative&&(r=l,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var f=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(a,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){if(r(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,s;return 0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;0==(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(l),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(n.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(o)):(n.isub(t),o.isub(a))}var f;return f=0===t.cmpn(1)?a:o,f.cmpn(0)<0&&f.iadd(e),f},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var i=a,o=n;0!==i&&o<this.length;o++){var s=0|this.words[o];s+=i,i=s>>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];n=a===e?0:a<e?-1:1}return 0!==this.negative?0|-n:n},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){r<a?t=-1:r>a&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new b(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var k={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},p.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),t=n.bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},p.prototype.split=function(e,t){e.iushrn(this.n,0,t)},p.prototype.imulK=function(e){return e.imul(this.k)},a(h,p),h.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=4194303&a,r=10;r<e.length;r++){var i=0|e.words[r];e.words[r-10]=(4194303&i)<<4|a>>>22,a=i}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},h.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},a(m,p),a(_,p),a(M,p),M.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,a=67108863&r;r>>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(k[e])return k[e];var t;if("k256"===e)t=new h;else if("p224"===e)t=new m;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return k[e]=t,t},b.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},b.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},b.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},b.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},b.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},b.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},b.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},b.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},
|
6 |
-
b.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},b.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},b.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},b.prototype.isqr=function(e){return this.imul(e,e.clone())},b.prototype.sqr=function(e){return this.mul(e,e)},b.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,a),f=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),h=o;0!==p.cmp(s);){for(var m=p,_=0;0!==m.cmp(s);_++)m=m.redSqr();r(_<h);var M=this.pow(d,new i(1).iushln(h-_-1));f=f.redMul(M),d=M.redSqr(),p=p.redMul(d),h=_}return f},b.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},b.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var d=u>>l&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===l)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},b.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},b.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new g(e)},a(g,b),g.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},g.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},g.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},g.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},g.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,n(88)(e))},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var a=this.constructor.Interface;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var c=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=c?o.thatReturnsTrue:o.thatReturnsFalse,this.isPropagationStopped=o.thatReturnsFalse,this}var a=n(17),i=n(73),o=n(37),s=(n(12),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),c={type:null,target:null,currentTarget:o.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=o.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=o.thatReturnsTrue)},persist:function(){this.isPersistent=o.thatReturnsTrue},isPersistent:o.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<s.length;n++)this[s[n]]=null}}),r.Interface=c,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var o=new r;a(o,e.prototype),e.prototype=o,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(662),i=r(a),o=n(671),s=r(o),c="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===c(i.default)?function(e){return void 0===e?"undefined":c(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":c(e)}},function(e,t,n){e.exports=!n(83)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return function(t){function n(){var t;(0,M.default)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=(0,g.default)(this,(t=n.__proto__||(0,m.default)(n)).call.apply(t,[this].concat(a)));return o.name=e,o}return(0,y.default)(n,t),n}(Error)}function i(e,t){function n(e){var t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")}function r(e,t){return fetch(n(e),t)}function a(e,t,n){return fetch(e,(0,w.default)({},t,n)).catch(u)}function i(e){var t=c+"jetpack/v4/module/stats/data";return t=-1!==t.indexOf("?")?t+"&range="+encodeURIComponent(e):t+"?range="+encodeURIComponent(e)}var c=e,l={"X-WP-Nonce":t},d={credentials:"same-origin",headers:l},f={method:"post",credentials:"same-origin",headers:(0,w.default)({},l,{"Content-type":"application/json"})},h={setApiRoot:function(e){c=e},setApiNonce:function(e){l={"X-WP-Nonce":e},d={credentials:"same-origin",headers:l},f={method:"post",credentials:"same-origin",headers:(0,w.default)({},l,{"Content-type":"application/json"})}},fetchSiteConnectionStatus:function(){return r(c+"jetpack/v4/connection",d).then(s)},fetchUserConnectionData:function(){return r(c+"jetpack/v4/connection/data",d).then(s)},disconnectSite:function(){return a(c+"jetpack/v4/connection",f,{body:(0,p.default)({isActive:!1})}).then(o).then(s)},fetchConnectUrl:function(){return r(c+"jetpack/v4/connection/url",d).then(o).then(s)},unlinkUser:function(){return a(c+"jetpack/v4/connection/user",f,{body:(0,p.default)({linked:!1})}).then(o).then(s)},jumpStart:function(e){var t=void 0;return"activate"===e&&(t=!0),"deactivate"===e&&(t=!1),a(c+"jetpack/v4/jumpstart",f,{body:(0,p.default)({active:t})}).then(o).then(s)},fetchModules:function(){return r(c+"jetpack/v4/module/all",d).then(o).then(s)},fetchModule:function(e){return r(c+"jetpack/v4/module/"+e,d).then(o).then(s)},activateModule:function(e){return a(c+"jetpack/v4/module/"+e+"/active",f,{body:(0,p.default)({active:!0})}).then(o).then(s)},deactivateModule:function(e){return a(c+"jetpack/v4/module/"+e+"/active",f,{body:(0,p.default)({active:!1})})},updateModuleOptions:function(e,t){return a(c+"jetpack/v4/module/"+e,f,{body:(0,p.default)(t)}).then(o).then(s)},updateSettings:function(e){return a(c+"jetpack/v4/settings",f,{body:(0,p.default)(e)}).then(o).then(s)},getProtectCount:function(){return r(c+"jetpack/v4/module/protect/data",d).then(o).then(s)},resetOptions:function(e){return a(c+"jetpack/v4/options/"+e,f,{body:(0,p.default)({reset:!0})}).then(o).then(s)},getVaultPressData:function(){return r(c+"jetpack/v4/module/vaultpress/data",d).then(o).then(s)},getAkismetData:function(){return r(c+"jetpack/v4/module/akismet/data",d).then(o).then(s)},checkAkismetKey:function(){return r(c+"jetpack/v4/module/akismet/key/check",d).then(o).then(s)},checkAkismetKeyTyped:function(e){return a(c+"jetpack/v4/module/akismet/key/check",f,{body:(0,p.default)({api_key:e})}).then(o).then(s)},fetchStatsData:function(e){return r(i(e),d).then(o).then(s)},getPluginUpdates:function(){return r(c+"jetpack/v4/updates/plugins",d).then(o).then(s)},fetchSettings:function(){return r(c+"jetpack/v4/settings",d).then(o).then(s)},updateSetting:function(e){return a(c+"jetpack/v4/settings",f,{body:(0,p.default)(e)}).then(o).then(s)},fetchSiteData:function(){return r(c+"jetpack/v4/site",d).then(o).then(s).then(function(e){return JSON.parse(e.data)})},fetchSiteFeatures:function(){return r(c+"jetpack/v4/site/features",d).then(o).then(s).then(function(e){return JSON.parse(e.data)})},fetchRewindStatus:function(){return r(c+"jetpack/v4/rewind",d).then(o).then(s).then(function(e){return JSON.parse(e.data)})},dismissJetpackNotice:function(e){return a(c+"jetpack/v4/notice/"+e,f,{body:(0,p.default)({dismissed:!0})}).then(o).then(s)},fetchPluginsData:function(){return r(c+"jetpack/v4/plugins",d).then(o).then(s)}};(0,w.default)(this,h)}function o(e){return e.status>=200&&e.status<300?e:404===e.status?new d.default(function(){throw e.redirected?new L(e.redirected):new T}):e.json().then(function(t){var n=new Error(t.message+" (Status "+e.status+")");throw n.response=t,n})}function s(e){return e.json().catch(function(t){return c(t,e.redirected,e.url)})}function c(e,t,n){throw t?new k(n):new E}function u(){throw new S}Object.defineProperty(t,"__esModule",{value:!0}),t.FetchNetworkError=t.Api404AfterRedirectError=t.Api404Error=t.JsonParseAfterRedirectError=t.JsonParseError=void 0;var l=n(751),d=r(l),f=n(439),p=r(f),h=n(2),m=r(h),_=n(3),M=r(_),b=n(4),g=r(b),v=n(5),y=r(v);n(768);var A=n(25),w=r(A);n(769).polyfill();var E=t.JsonParseError=a("JsonParseError"),k=t.JsonParseAfterRedirectError=a("JsonParseAfterRedirectError"),T=t.Api404Error=a("Api404Error"),L=t.Api404AfterRedirectError=a("Api404AfterRedirectError"),S=t.FetchNetworkError=a("FetchNetworkError"),C=new i;t.default=C},function(e,t,n){"use strict";var r=n(1),a=n(228),i=n(13);n(805);var o=r.createClass({displayName:"Gridicon",mixins:[a],getDefaultProps:function(){return{className:"",size:24}},propTypes:{icon:r.PropTypes.string.isRequired,size:r.PropTypes.number,onClick:r.PropTypes.func,className:r.PropTypes.string},needsOffset:function(e,t){return["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-backspace","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle"].indexOf(e)>=0&&t%18==0},needsOffsetX:function(e,t){return["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e)>=0&&t%18==0},needsOffsetY:function(e,t){return["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e)>=0&&t%18==0},render:function(){var e,t,n="gridicons-"+this.props.icon,a=this.needsOffset(n,this.props.size),o=this.needsOffsetX(n,this.props.size),s=this.needsOffsetY(n,this.props.size);switch(t=i("gridicon",n,this.props.className,{"needs-offset":a,"needs-offset-x":o,"needs-offset-y":s}),n){default:e=r.createElement("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-backspace":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 7H8l-5 5 5 5h11c1.104 0 2-.896 2-2V9c0-1.104-.896-2-2-2zm-.647 6.646l-.707.707L16 12.707l-1.647 1.647-.707-.707L15.293 12l-1.647-1.646.707-.707L16 11.293l1.646-1.647.707.707L16.707 12l1.646 1.646z"})));break;case"gridicons-bell":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 6h-4V3c0-.5-.5-1-1-1H8c-.5 0-1 .5-1 1v3H3c-.6 0-1 .4-1 1v5h20V7c0-.6-.4-1-1-1zm-6 0H9V4h6v2zM14 15h-4v-2H2v8c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-8h-8v2z"})));break;case"gridicons-calendar":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-cart":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-checkmark-circle":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4.83 12l4.58 4.59L8 18l-6-6 6-6 1.41 1.41L4.83 12zm9.76 4.59L16 18l6-6-6-6-1.41 1.41L19.17 12l-4.58 4.59z"})));break;case"gridicons-cog":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"})));break;case"gridicons-computer":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-create":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 11v8c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h8l-2 2H5v14h14v-6l2-2zM7 17h3l7.5-7.5-3-3L7 14v3zm9.94-12.94L15.5 5.5l3 3 1.44-1.44c.585-.585.585-1.535 0-2.12l-.88-.88c-.585-.585-1.535-.585-2.12 0z"})));break;case"gridicons-credit-card":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,
|
7 |
-
onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-small":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})));break;case"gridicons-custom-post-type":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-dropdown":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-flag":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-globe":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-1.962-2v-.528c0-.4.082-.74.246-1.017.163-.276.454-.546.87-.808.333-.21.572-.397.717-.565.146-.168.22-.36.22-.577 0-.172-.078-.308-.234-.41-.156-.1-.358-.15-.608-.15-.62 0-1.34.22-2.168.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.287-.23.362-.6.705-1.11 1.03-.43.278-.7.48-.807.61-.108.13-.163.282-.163.458V13h-1.885z"})));break;case"gridicons-help":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm2.003-6.41c-.23.36-.6.704-1.108 1.028-.43.28-.7.482-.808.61-.108.13-.163.283-.163.46V13H11.04v-.528c0-.4.08-.74.245-1.017.163-.276.454-.546.872-.808.332-.21.57-.397.716-.565.145-.168.217-.36.217-.577 0-.172-.077-.308-.233-.41-.156-.1-.358-.15-.608-.15-.62 0-1.342.22-2.17.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.286z"})));break;case"gridicons-history":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),r.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"})));break;case"gridicons-indent-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10v-2c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8v.5c0 .827-.673 1.5-1.5 1.5s-1.5-.673-1.5-1.5V12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.65 0 3.102-.81 4.013-2.043C16.648 15.6 17.527 16 18.5 16c1.93 0 3.5-1.57 3.5-3.5V12c0-5.523-4.477-10-10-10zm0 13c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3z"})));break;case"gridicons-menu":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 13c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2-1.105 0-2 .896-2 2v5c0 1.104.895 2 2 2zm4-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6c0 2.972 2.164 5.433 5 5.91V20h2v-3.09c2.836-.478 5-2.94 5-5.91h-2z"})));break;case"gridicons-minus-small":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-my-sites-horizon":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-not-visible":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-pages":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pencil":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-plugins":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 13h-7v7h-2v-7H4v-2h7V4h2v7h7v2z"})));break;case"gridicons-popout":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-quote":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-reader":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reader-following":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M23,13.482L15.508,21L12,17.4l1.412-1.388l2.106,2.188l6.094-6.094L23,13.482z M15.545,15.344L20,10.889V2H2v14c0,1.1,0.9,2,2,2h4.538l4.913-4.832L15.545,15.344z M8,13H4v-1h4V13z M11,11H4v-1h7V11z M11,9H4V8h7V9z M18,6H4V4h14V6z"})));break;case"gridicons-reblog":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{
|
8 |
d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-reply":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14 8H6.828l2.586-2.586L8 4 3 9l5 5 1.414-1.414L6.828 10H14c2.206 0 4 1.794 4 4s-1.794 4-4 4h-2v2h2c3.314 0 6-2.686 6-6s-2.686-6-6-6z"})));break;case"gridicons-rotate":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-ios":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-sign-out":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-circle":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"})));break;case"gridicons-visible":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-chat":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20,4h-8c-1.1,0-2,0.9-2,2v2h2c1.7,0,3,1.3,3,3v2h2v3.5l3.3-2.3c1.1-0.8,1.7-2,1.7-3.3V6C22,4.9,21.1,4,20,4z"}),r.createElement("g",null,r.createElement("path",{d:"M14,11v5c0,1.1-0.9,2-2,2H7v3.5l-3.3-2.3c-1.1-0.8-1.7-2-1.7-3.3V11c0-1.1,0.9-2,2-2h8C13.1,9,14,9.9,14,11z"}))))}return e}});e.exports=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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(307),s=r(o),c=n(829),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){m&&p&&(m=!1,p.length?h=p.concat(h):_=-1,h.length&&s())}function s(){if(!m){var e=a(o);m=!0;for(var t=h.length;t;){for(p=h,h=[];++_<t;)p&&p[_].run();_=-1,t=h.length}p=null,m=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function u(){}var l,d,f=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var p,h=[],m=!1,_=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||m||a(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(451),s=r(o),c=n(810),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){"use strict";var r={current:null};e.exports=r},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";function r(e){return null==e||d.default.isValidElement(e)}function a(e){return r(e)||Array.isArray(e)&&e.every(r)}function i(e,t){return u({},e,t)}function o(e){var t=e.type,n=i(t.defaultProps,e.props);if(n.children){var r=s(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function s(e,t){var n=[];return d.default.Children.forEach(e,function(e){if(d.default.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(o(e))}),n}function c(e){return a(e)?e=s(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isReactChildren=a,t.createRouteFromReactElement=o,t.createRoutesFromReactChildren=s,t.createRoutes=c;var l=n(1),d=function(e){return e&&e.__esModule?e:{default:e}}(l)},function(e,t,n){function r(e){return o(e)?a(e):i(e)}var a=n(286),i=n(287),o=n(52);e.exports=r},function(e,t){function n(){}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}),t.FormSelect=t.FormButton=t.FormRadio=t.FormTextarea=t.FormTextInput=t.FormCheckbox=t.FormLegend=t.FormLabel=t.FormFieldset=void 0;var a=n(455),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(10),M=r(_),b=n(1),g=r(b),v=n(13),y=r(v),A=n(114),w=r(A),E=n(964),k=r(E),T=n(456),L=r(T),S=n(8),C=n(43),z=r(C),O=n(856),N=r(O);t.FormFieldset=function(e){return g.default.createElement("fieldset",(0,M.default)({},(0,w.default)(e,"className"),{className:(0,y.default)(e.className,"jp-form-fieldset")}),e.children)};(t.FormLabel=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=this.props,t=e.className,n=e.htmlFor,r=(0,i.default)(e,["className","htmlFor"]);return g.default.createElement("label",(0,M.default)({},r,{htmlFor:n,className:(0,y.default)(t,"jp-form-label")}),this.props.children)}}]),t}(g.default.Component)).displayName="FormLabel",(t.FormLegend=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(){return g.default.createElement("legend",(0,M.default)({},(0,w.default)(this.props,"className"),{className:(0,y.default)(this.props.className,"jp-form-legend")}),this.props.children)}}]),t}(g.default.Component)).displayName="FormLegend",(t.FormCheckbox=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=(0,w.default)(this.props,["className","type"]);return g.default.createElement("input",(0,M.default)({},e,{type:"checkbox",className:(0,y.default)(this.props.className,"jp-form-checkbox")}))}}]),t}(g.default.Component)).displayName="FormInputCheckbox";var D=t.FormTextInput=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.focus=function(){r.refs.textField.focus()},r.selectOnFocus=function(e){e.target.select()},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,t=e.className,n=e.selectOnFocus,r=(0,y.default)(t,{"jp-form-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid});return g.default.createElement("input",(0,M.default)({},this.props,{ref:"textField",className:r,onClick:n?this.selectOnFocus:null}))}}]),t}(g.default.Component);D.displayName="FormTextInput",D.defaultProps={isError:!1,isValid:!1,selectOnFocus:!1,type:"text"},(t.FormTextarea=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(){return g.default.createElement("textarea",(0,M.default)({},(0,w.default)(this.props,"className"),{className:(0,y.default)(this.props.className,"jp-form-textarea")}),this.props.children)}}]),t}(g.default.Component)).displayName="FormTextarea",(t.FormRadio=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=(0,w.default)(this.props,["className","type"]);return g.default.createElement("input",(0,M.default)({},e,{type:"radio",className:(0,y.default)(this.props.className,"jp-form-radio")}))}}]),t}(g.default.Component)).displayName="FormRadio";var P=t.FormButton=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.getDefaultButtonAction=function(){return r.props.isSubmitting?(0,S.translate)("Saving…"):(0,S.translate)("Save Settings")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=(0,y.default)({"jp-form-button":!0});return g.default.createElement(z.default,(0,M.default)({},(0,w.default)(this.props,"className"),{primary:this.props.isPrimary,className:(0,y.default)(this.props.className,e)}),(0,L.default)(this.props.children)?this.getDefaultButtonAction():this.props.children)}}]),t}(g.default.Component);P.displayName="FormsButton",P.defaultProps={isSubmitting:!1,isPrimary:!0,type:"submit"};t.FormSelect=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.handleOnSelect=function(e){r.props.onOptionChange({target:{type:"select",name:r.props.name,value:e.value}})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=[];return(0,k.default)(this.props.validValues,function(t,n){e.push({label:t,value:n})}),g.default.createElement(N.default,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value})}}]),t}(g.default.Component)},function(e,t,n){var r=n(120);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(47),a=n(110);e.exports=n(59)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r=n(11),a=(n(7),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},o=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},s=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},c=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=a,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||u,n.poolSize||(n.poolSize=10),n.release=c,n},d={addPoolingTo:l,oneArgumentPooler:a,twoArgumentPooler:i,threeArgumentPooler:o,fourArgumentPooler:s};e.exports=d},function(e,t,n){function r(e){return null==e?void 0===e?c:s:u&&u in Object(e)?i(e):o(e)}var a=n(89),i=n(615),o=n(616),s="[object Null]",c="[object Undefined]",u=a?a.toStringTag:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){if(e[t])return new Error("<"+n+'> should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var a=n(1),i=a.PropTypes.func,o=a.PropTypes.object,s=a.PropTypes.arrayOf,c=a.PropTypes.oneOfType,u=a.PropTypes.element,l=a.PropTypes.shape,d=a.PropTypes.string,f=(t.history=l({listen:i.isRequired,push:i.isRequired,replace:i.isRequired,go:i.isRequired,goBack:i.isRequired,goForward:i.isRequired}),t.component=c([i,d])),p=(t.components=c([f,o]),t.route=c([o,u]));t.routes=c([p,s(p)])},function(e,t,n){"use strict";function r(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}function a(e){var t=r(e),n="",a="",i=t.indexOf("#");-1!==i&&(a=t.substring(i),t=t.substring(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substring(o),t=t.substring(0,o)),""===t&&(t="/"),{pathname:t,search:n,hash:a}}t.__esModule=!0,t.extractPath=r,t.parsePath=a;var i=n(46);!function(e){e&&e.__esModule}(i)},function(e,t,n){function r(e,t){var n=i(e,t);return a(n)?n:void 0}var a=n(647),i=n(650);e.exports=r},function(e,t,n){function r(e,t,n,r){var o=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=r?r(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),o?i(n,u,l):a(n,u,l)}return n}var a=n(154),i=n(133);e.exports=r},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports={default:n(718),__esModule:!0}},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(494),s=r(o),c=n(958),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;t.PUSH="PUSH";t.REPLACE="REPLACE";t.POP="POP",t.default={PUSH:"PUSH",REPLACE:"REPLACE",POP:"POP"}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=t;r.version=n(1043).version,r.utils=n(1044),r.rand=n(892),r.curve=n(507),r.curves=n(1049),r.ec=n(1057),r.eddsa=n(1061)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.imagePath=window.Initial_State.pluginBaseUrl+"/images/",t.JETPACK_CONTACT_SUPPORT="https://jetpack.com/contact-support",t.JETPACK_CONTACT_BETA_SUPPORT="https://jetpack.com/contact-support/beta-group"},function(e,t,n){"use strict";var r=n(17),a=n(244),i=n(548),o=n(553),s=n(87),c=n(554),u=n(555),l=n(556),d=n(557),f=s.createElement,p=s.createFactory,h=s.cloneElement,m=r,_=function(e){return e},M={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:d},Component:a.Component,PureComponent:a.PureComponent,createElement:f,cloneElement:h,isValidElement:s.isValidElement,PropTypes:c,createClass:l,createFactory:p,createMixin:_,DOM:o,version:u,__spread:m};e.exports=M},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function a(e){return void 0!==e.key}var i=n(17),o=n(65),s=(n(12),n(246),Object.prototype.hasOwnProperty),c=n(247),u={key:!0,ref:!0,__self:!0,__source:!0},l=function(e,t,n,r,a,i,o){var s={$$typeof:c,type:e,key:t,ref:n,props:o,_owner:i};return s};l.createElement=function(e,t,n){var i,c={},d=null,f=null;if(null!=t){r(t)&&(f=t.ref),a(t)&&(d=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!u.hasOwnProperty(i)&&(c[i]=t[i])}var p=arguments.length-2;if(1===p)c.children=n;else if(p>1){for(var h=Array(p),m=0;m<p;m++)h[m]=arguments[m+2];c.children=h}if(e&&e.defaultProps){var _=e.defaultProps;for(i in _)void 0===c[i]&&(c[i]=_[i])}return l(e,d,f,0,0,o.current,c)},l.createFactory=function(e){var t=l.createElement.bind(null,e);return t.type=e,t},l.cloneAndReplaceKey=function(e,t){return l(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},l.cloneElement=function(e,t,n){var c,d=i({},e.props),f=e.key,p=e.ref,h=(e._self,e._source,e._owner);if(null!=t){r(t)&&(p=t.ref,h=o.current),a(t)&&(f=""+t.key);var m;e.type&&e.type.defaultProps&&(m=e.type.defaultProps)
|
9 |
;for(c in t)s.call(t,c)&&!u.hasOwnProperty(c)&&(void 0===t[c]&&void 0!==m?d[c]=m[c]:d[c]=t[c])}var _=arguments.length-2;if(1===_)d.children=n;else if(_>1){for(var M=Array(_),b=0;b<_;b++)M[b]=arguments[b+2];d.children=M}return l(e.type,f,p,0,0,h,d)},l.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},e.exports=l},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(45),a=r.Symbol;e.exports=a},function(e,t,n){"use strict";function r(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function a(e){for(var t="",n=[],a=[],i=void 0,o=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;i=s.exec(e);)i.index!==o&&(a.push(e.slice(o,i.index)),t+=r(e.slice(o,i.index))),i[1]?(t+="([^/]+)",n.push(i[1])):"**"===i[0]?(t+="(.*)",n.push("splat")):"*"===i[0]?(t+="(.*?)",n.push("splat")):"("===i[0]?t+="(?:":")"===i[0]&&(t+=")?"),a.push(i[0]),o=s.lastIndex;return o!==e.length&&(a.push(e.slice(o,e.length)),t+=r(e.slice(o,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:a}}function i(e){return f[e]||(f[e]=a(e)),f[e]}function o(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=i(e),r=n.regexpSource,a=n.paramNames,o=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===o[o.length-1]&&(r+="$");var s=t.match(new RegExp("^"+r,"i"));if(null==s)return null;var c=s[0],u=t.substr(c.length);if(u){if("/"!==c.charAt(c.length-1))return null;u="/"+u}return{remainingPathname:u,paramNames:a,paramValues:s.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function s(e){return i(e).paramNames}function c(e,t){var n=o(e,t);if(!n)return null;var r=n.paramNames,a=n.paramValues,i={};return r.forEach(function(e,t){i[e]=a[t]}),i}function u(e,t){t=t||{};for(var n=i(e),r=n.tokens,a=0,o="",s=0,c=void 0,u=void 0,l=void 0,f=0,p=r.length;f<p;++f)c=r[f],"*"===c||"**"===c?(l=Array.isArray(t.splat)?t.splat[s++]:t.splat,null!=l||a>0||(0,d.default)(!1),null!=l&&(o+=encodeURI(l))):"("===c?a+=1:")"===c?a-=1:":"===c.charAt(0)?(u=c.substring(1),l=t[u],null!=l||a>0||(0,d.default)(!1),null!=l&&(o+=encodeURIComponent(l))):o+=c;return o.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=o,t.getParamNames=s,t.getParams=c,t.formatPattern=u;var l=n(29),d=function(e){return e&&e.__esModule?e:{default:e}}(l),f=Object.create(null)},function(e,t,n){var r=n(218),a=n(186);e.exports=function(e){return r(a(e))}},function(e,t,n){function r(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}var a=n(146),i=1/0;e.exports=r},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var a=n(11),i=(n(7),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},o=e.DOMAttributeNamespaces||{},c=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},l=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var d in n){s.properties.hasOwnProperty(d)&&a("48",d);var f=d.toLowerCase(),p=n[d],h={attributeName:f,attributeNamespace:null,propertyName:d,mutationMethod:null,mustUseProperty:r(p,t.MUST_USE_PROPERTY),hasBooleanValue:r(p,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(p,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(p,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(p,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1||a("50",d),c.hasOwnProperty(d)){var m=c[d];h.attributeName=m}o.hasOwnProperty(d)&&(h.attributeNamespace=o[d]),u.hasOwnProperty(d)&&(h.propertyName=u[d]),l.hasOwnProperty(d)&&(h.mutationMethod=l[d]),s.properties[d]=h}}}),o=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:o,ATTRIBUTE_NAME_CHAR:o+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){if((0,s._isCustomAttributeFunctions[t])(e))return!0}return!1},injection:i};e.exports=s},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return M(e,r)}function a(e,t,n){var a=r(e,n,t);a&&(n._dispatchListeners=m(n._dispatchListeners,a),n._dispatchInstances=m(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,a,e)}function o(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,a,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,a=M(e,r);a&&(n._dispatchListeners=m(n._dispatchListeners,a),n._dispatchInstances=m(n._dispatchInstances,e))}}function c(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function u(e){_(e,i)}function l(e){_(e,o)}function d(e,t,n,r){h.traverseEnterLeave(n,r,s,e,t)}function f(e){_(e,c)}var p=n(95),h=n(150),m=n(232),_=n(233),M=(n(12),p.getListener),b={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:d};e.exports=b},function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function a(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var i=n(11),o=n(164),s=n(150),c=n(165),u=n(232),l=n(233),d=(n(7),{}),f=null,p=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},h=function(e){return p(e,!0)},m=function(e){return p(e,!1)},_=function(e){return"."+e._rootNodeID},M={injection:{injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n&&i("94",t,typeof n);var r=_(e);(d[t]||(d[t]={}))[r]=n;var a=o.registrationNameModules[t];a&&a.didPutListener&&a.didPutListener(e,t,n)},getListener:function(e,t){var n=d[t];if(a(t,e._currentElement.type,e._currentElement.props))return null;var r=_(e);return n&&n[r]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=d[t];if(r){delete r[_(e)]}},deleteAllListeners:function(e){var t=_(e);for(var n in d)if(d.hasOwnProperty(n)&&d[n][t]){var r=o.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete d[n][t]}},extractEvents:function(e,t,n,r){for(var a,i=o.plugins,s=0;s<i.length;s++){var c=i[s];if(c){var l=c.extractEvents(e,t,n,r);l&&(a=u(a,l))}}return a},enqueueEvents:function(e){e&&(f=u(f,e))},processEventQueue:function(e){var t=f;f=null,e?l(t,h):l(t,m),f&&i("95"),c.rethrowCaughtError()},__purge:function(){d={}},__getListenerBank:function(){return d}};e.exports=M},function(e,t,n){"use strict";function r(){a.attachRefs(this,this._currentElement)}var a=n(520),i=(n(44),n(12),{mountComponent:function(e,t,n,a,i,o){var s=e.mountComponent(t,n,a,i,o);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){a.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,i){var o=e._currentElement;if(t!==o||i!==e._context){var s=a.shouldUpdateRefs(o,t);s&&a.detachRefs(e,o),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(57),i=n(166),o={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};a.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e){if(h){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)m(t,n[r],null);else null!=e.html?d(t,e.html):null!=e.text&&p(t,e.text)}}function a(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){h?e.children.push(t):e.node.appendChild(t.node)}function o(e,t){h?e.html=t:d(e.node,t)}function s(e,t){h?e.text=t:p(e.node,t)}function c(){return this.node.nodeName}function u(e){return{node:e,children:[],html:null,text:null,toString:c}}var l=n(170),d=n(151),f=n(171),p=n(238),h="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),m=f(function(e,t,n){11===t.node.nodeType||1===t.node.nodeType&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===l.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});u.insertTreeBefore=m,u.replaceChildWithTree=a,u.queueChild=i,u.queueHTML=o,u.queueText=s,e.exports=u},function(e,t){e.exports={}},function(e,t,n){var r=n(186);e.exports=function(e){return Object(r(e))}},function(e,t,n){function r(e,t){return a(e)?e:i(e,t)?[e]:o(s(e))}var a=n(26),i=n(200),o=n(715),s=n(221);e.exports=r},function(e,t,n){(function(r){function a(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))}),e.splice(i,0,r)}}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(734),t.log=o,t.formatArgs=i,t.save=s,t.load=c,t.useColors=a,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(t,n(63))},function(e,t,n){function r(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):a(e):c(e)}var a=n(771),i=n(783),o=n(134),s=n(26),c=n(786);e.exports=r},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=new Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var a=n(46);!function(e){e&&e.__esModule}(a);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return u.stringify(e).replace(/%20/g,"+")}function o(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=A(t.substring(1)),e[m]={search:t,searchBase:""}}return e}function n(e,t){var n,r=e[m],a=t?y(t):"";if(!r&&!a)return e;"string"==typeof e&&(e=f.parsePath(e));var i=void 0;i=r&&e.search===r.search?r.searchBase:e.search||"";var o=i;return a&&(o+=(o?"&":"?")+a),s({},e,(n={search:o},n[m]={search:o,searchBase:i},n))}function r(e){return E.listenBefore(function(n,r){d.default(e,t(n),r)})}function o(e){return E.listen(function(n){e(t(n))})}function c(e){E.push(n(e,e.query))}function u(e){E.replace(n(e,e.query))}function l(e,t){return E.createPath(n(e,t||e.query))}function p(e,t){return E.createHref(n(e,t||e.query))}function M(e){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];var o=E.createLocation.apply(E,[n(e,e.query)].concat(a));return e.query&&(o.query=e.query),t(o)}function b(e,t,n){"string"==typeof t&&(t=f.parsePath(t)),c(s({state:e},t,{query:n}))}function g(e,t,n){"string"==typeof t&&(t=f.parsePath(t)),u(s({state:e},t,{query:n}))}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],y=v.stringifyQuery,A=v.parseQueryString,w=a(v,["stringifyQuery","parseQueryString"]),E=e(w);return"function"!=typeof y&&(y=i),"function"!=typeof A&&(A=_),s({},E,{listenBefore:r,listen:o,push:c,replace:u,createPath:l,createHref:p,createLocation:M,pushState:h.default(b,"pushState is deprecated; use push instead"),replaceState:h.default(g,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var s=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},c=n(46),u=(r(c),n(622)),l=n(181),d=r(l),f=n(76),p=n(106),h=r(p),m="$searchBase",_=u.parse;t.default=o,e.exports=t.default},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){"use strict";var r=n(664)(!0);n(217)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(290),a=n(191);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(492),s=r(o),c=n(961),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){var r=n(122),a=n(811),i=n(825),o=n(101),s=n(78),c=n(828),u=n(498),l=n(458),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=o(t,e),u||(u=t.length>1),t}),s(e,l(e),n),u&&(n=a(n,7,c));for(var d=t.length;d--;)i(n,t[d]);return n});e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){13!==t.which&&32!==t.which||e(t)}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=r},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t,n){var r=n(656),a=n(66),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(45),a=n(657),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i,c=s?r.Buffer:void 0,u=c?c.isBuffer:void 0,l=u||a;e.exports=l}).call(t,n(88)(e))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(47).f,a=n(79),i=n(32)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}e.exports=n},function(e,t,n){"use strict";function r(e){return{noticeId:e,type:s.REMOVE_NOTICE}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={noticeId:n.id||(0,o.default)(),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t};return{type:s.NEW_NOTICE,notice:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.warningNotice=t.infoNotice=t.errorNotice=t.successNotice=void 0,t.removeNotice=r,t.createNotice=a;var i=n(732),o=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(298);t.successNotice=a.bind(null,"is-success"),t.errorNotice=a.bind(null,"is-error"),t.infoNotice=a.bind(null,"is-info"),t.warningNotice=a.bind(null,"is-warning")},function(e,t,n){"use strict";var r=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(r),i=n(1),o=n(13),s=n(114),c=n(965);e.exports=i.createClass({displayName:"CompactFormToggle",render:function(){return i.createElement(c,(0,a.default)({},s(this.props,"className"),{className:o(this.props.className,"is-compact")}),this.props.children)}})},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)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),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)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n}function a(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e,t){for(var n="",r=0;r<e.length;r++){var a=e[r];"little"===t&&(a=i(a)),n+=c(a.toString(16))}return n}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function u(e,t,n,r){var a=n-t;S(a%4==0);for(var i=new Array(a/4),o=0,s=t;o<i.length;o++,s+=4){var c;c="big"===r?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],i[o]=c>>>0}return i}function l(e,t){for(var n=new Array(4*e.length),r=0,a=0;r<e.length;r++,a+=4){var i=e[r];"big"===t?(n[a]=i>>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n}function d(e,t){return e>>>t|e<<32-t}function f(e,t){return e<<t|e>>>32-t}function p(e,t){return e+t>>>0}function h(e,t,n){return e+t+n>>>0}function m(e,t,n,r){return e+t+n+r>>>0}function _(e,t,n,r,a){return e+t+n+r+a>>>0}function M(e,t,n,r){var a=e[t],i=e[t+1],o=r+i>>>0,s=(o<r?1:0)+n+a;e[t]=s>>>0,e[t+1]=o}function b(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0}function g(e,t,n,r){return t+r>>>0}function v(e,t,n,r,a,i,o,s){var c=0,u=t;return u=u+r>>>0,c+=u<t?1:0,u=u+i>>>0,c+=u<i?1:0,u=u+s>>>0,c+=u<s?1:0,e+n+a+o+c>>>0}function y(e,t,n,r,a,i,o,s){return t+r+i+s>>>0}function A(e,t,n,r,a,i,o,s,c,u){var l=0,d=t;return d=d+r>>>0,l+=d<t?1:0,d=d+i>>>0,l+=d<i?1:0,d=d+s>>>0,l+=d<s?1:0,d=d+u>>>0,l+=d<u?1:0,e+n+a+o+c+l>>>0}function w(e,t,n,r,a,i,o,s,c,u){return t+r+i+s+u>>>0}function E(e,t,n){return(t<<32-n|e>>>n)>>>0}function k(e,t,n){return(e<<32-n|t>>>n)>>>0}function T(e,t,n){return e>>>n}function L(e,t,n){return(e<<32-n|t>>>n)>>>0}var S=n(104),C=n(18);t.inherits=C,t.toArray=r,t.toHex=a,t.htonl=i,t.toHex32=o,t.zero2=s,t.zero8=c,t.join32=u,t.split32=l,t.rotr32=d,t.rotl32=f,t.sum32=p,t.sum32_3=h,t.sum32_4=m,t.sum32_5=_,t.sum64=M,t.sum64_hi=b,t.sum64_lo=g,t.sum64_4_hi=v,t.sum64_4_lo=y,t.sum64_5_hi=A,t.sum64_5_lo=w,t.rotr64_hi=E,t.rotr64_lo=k,t.shr64_hi=T,t.shr64_lo=L},function(e,t,n){"use strict";var r=n(11),a=(n(7),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,a,i,o,s,c){this.isInTransaction()&&r("27");var u,l;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),l=e.call(t,n,a,i,o,s,c),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=a,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===a)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()||r("28");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var i,o=t[n],s=this.wrapperInitData[n];try{i=!0,s!==a&&o.close&&o.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(97),i=n(210),o=n(168),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:o,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};a.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,a="",o=0,s=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=r}return s!==o?a+t.substring(s,o):a}function a(e){return"boolean"==typeof e||"number"==typeof e?""+e:r(e)}var i=/["'&<>]/;e.exports=a},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=r},function(e,t,n){"use strict";t.__esModule=!0,t.canUseMembrane=void 0;var r=n(23),a=(function(e){e&&e.__esModule}(r),t.canUseMembrane=!1,function(e){return e});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=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},o=n(29),s=r(o),c=n(1),u=r(c),l=n(131),d=(r(l),n(629)),f=r(d),p=n(67),h=n(23),m=(r(h),u.default.PropTypes),_=m.array,M=m.func,b=m.object,g=u.default.createClass({displayName:"RouterContext",propTypes:{history:b,router:b.isRequired,location:b.isRequired,routes:_.isRequired,params:b.isRequired,components:_.isRequired,createElement:M.isRequired},getDefaultProps:function(){return{createElement:u.default.createElement}},childContextTypes:{history:b,location:b.isRequired,router:b.isRequired},getChildContext:function(){var e=this.props,t=e.router,n=e.history,r=e.location;return t||(t=i({},n,{setRouteLeaveHook:n.listenBeforeLeavingRoute}),delete t.listenBeforeLeavingRoute),{history:n,location:r,router:t}},createElement:function(e,t){return null==e?null:this.props.createElement(e,t)},render:function(){var e=this,t=this.props,n=t.history,r=t.location,o=t.routes,c=t.params,l=t.components,d=null;return l&&(d=l.reduceRight(function(t,s,u){if(null==s)return t;var l=o[u],d=(0,f.default)(l,c),h={history:n,location:r,params:c,route:l,routeParams:d,routes:o};if((0,p.isReactChildren)(t))h.children=t;else if(t)for(var m in t)Object.prototype.hasOwnProperty.call(t,m)&&(h[m]=t[m]);if("object"===(void 0===s?"undefined":a(s))){var _={};for(var M in s)Object.prototype.hasOwnProperty.call(s,M)&&(_[M]=e.createElement(s[M],i({key:M},h)));return _}return e.createElement(s,h)},d)),null===d||!1===d||u.default.isValidElement(d)||(0,s.default)(!1),d}});t.default=g,e.exports=t.default},function(e,t,n){function r(e,t,n){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a=n(281);e.exports=r},function(e,t){function n(e){return e}e.exports=n},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){n(669);for(var r=n(35),a=n(72),i=n(99),o=n(32)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],d=l&&l.prototype;d&&!d[o]&&a(d,o,u),i[u]=i.Array}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(686),a=n(283),i=a(function(e,t,n){r(e,t,n)});e.exports=i},function(e,t,n){function r(e){var t=this.__data__=new a(e);this.size=t.size}var a=n(141),i=n(692),o=n(693),s=n(694),c=n(695),u=n(696);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=s,r.prototype.has=c,r.prototype.set=u,e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var a=n(687),i=n(688),o=n(689),s=n(690),c=n(691);r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=s,r.prototype.set=c,e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}var a=n(108);e.exports=r},function(e,t,n){var r=n(77),a=r(Object,"create");e.exports=a},function(e,t,n){function r(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}var a=n(705);e.exports=r},function(e,t,n){function r(e){return o(e)?a(e,!0):i(e)}var a=n(286),i=n(713),o=n(52);e.exports=r},function(e,t,n){function r(e){return"symbol"==typeof e||i(e)&&a(e)==o}var a=n(74),i=n(66),o="[object Symbol]";e.exports=r},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function a(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!a(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],o(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),a=u.length,c=0;c<a;c++)u[c].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),a||(a=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var a=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,a,o,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,a=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=s;break}if(a<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DashItem=void 0;var a=n(49),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(15),M=r(_),b=n(1),g=r(b),v=n(13),y=r(v),A=n(9),w=n(162),E=r(w),k=n(8),T=n(43),L=r(T),S=n(40),C=r(S),z=n(14),O=r(z),N=n(36),D=n(30),P=r(D),x=n(862),j=r(x),R=n(54),Y=n(22),I=n(27),q=n(863),B=r(q),W=n(28),U=function(){return O.default.tracks.recordJetpackClick({target:"monitor-settings",page:"aag"})},H=t.DashItem=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=this,t=void 0,n="",r=(0,
|
10 |
y.default)(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":""),a=function(){return e.props.updateOptions((0,i.default)({},e.props.module,!e.props.getOptionValue(e.props.module)))},o=function(){O.default.tracks.recordJetpackClick({target:"paid-button",feature:e.props.module,page:"aag"})};return""!==this.props.module&&(t=(0,C.default)(["protect","photon","vaultpress","scan","backups","akismet"],this.props.module)&&this.props.isDevMode?"":g.default.createElement(R.ModuleToggle,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:a,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=g.default.createElement("a",{href:this.props.isDevMode?this.props.siteAdminUrl+"update-core.php":"https://wordpress.com/plugins/manage/"+this.props.siteRawUrl},g.default.createElement(E.default,{showDismiss:!1,status:this.props.status,isCompact:!0},(0,k.translate)("Updates needed",{context:"Short warning message"})))),"is-working"===this.props.status&&(t=g.default.createElement("span",{className:"jp-dash-item__active-label"},(0,k.translate)("Active")))),"monitor"===this.props.module&&(t=!this.props.isDevMode&&this.props.getOptionValue(this.props.module)&&g.default.createElement(L.default,{onClick:U,href:"https://wordpress.com/settings/security/"+this.props.siteRawUrl,compact:!0},(0,k.translate)("Settings"))),"rewind"===this.props.module&&(t=null)),this.props.pro&&!this.props.isDevMode&&(n=g.default.createElement(L.default,{onClick:o,compact:!0,href:"#/plans"},(0,k.translate)("Paid",{context:"Short label appearing near a paid feature configuration block."})),this.props.isModule&&(t=g.default.createElement(B.default,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl}))),g.default.createElement("div",{className:r},g.default.createElement(j.default,{label:this.props.label,cardBadge:n},this.props.userCanToggle?t:""),g.default.createElement(P.default,{className:"jp-dash-item__card",href:this.props.href},g.default.createElement("div",{className:"jp-dash-item__content"},this.props.children)))}}]),t}(b.Component);H.propTypes={label:M.default.string,status:M.default.string,statusText:M.default.string,disabled:M.default.bool,module:M.default.string,pro:M.default.bool,isModule:M.default.bool},H.defaultProps={label:"",module:"",pro:!1,isModule:!0},t.default=(0,A.connect)(function(e){return{getModule:function(t){return(0,I.getModule)(e,t)},isDevMode:(0,Y.isDevMode)(e),userCanToggle:(0,W.userCanManageModules)(e),siteRawUrl:(0,W.getSiteRawUrl)(e),siteAdminUrl:(0,W.getSiteAdminUrl)(e)}})((0,N.ModuleSettingsForm)(H))},function(e,t,n){"use strict";e.exports=n(913)},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function a(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function o(e,t,n,r){var a=e.type||"unknown-event";e.currentTarget=M.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(a,n,e):m.invokeGuardedCallback(a,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var a=0;a<n.length&&!e.isPropagationStopped();a++)o(e,t,n[a],r[a]);else n&&o(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function c(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function u(e){var t=c(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function l(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)&&h("103"),e.currentTarget=t?M.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function d(e){return!!e._dispatchListeners}var f,p,h=n(11),m=n(165),_=(n(7),n(12),{injectComponentTree:function(e){f=e},injectTreeTraversal:function(e){p=e}}),M={isEndish:r,isMoveish:a,isStartish:i,executeDirectDispatch:l,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:u,hasDispatches:d,getInstanceFromNode:function(e){return f.getInstanceFromNode(e)},getNodeFromInstance:function(e){return f.getNodeFromInstance(e)},isAncestor:function(e,t){return p.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return p.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return p.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return p.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,a){return p.traverseEnterLeave(e,t,n,r,a)},injection:_};e.exports=M},function(e,t,n){"use strict";var r,a=n(31),i=n(170),o=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=n(171),u=c(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+t+"</svg>";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(a.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=u},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=p++,d[e[m]]={}),d[e[m]]}var a,i=n(17),o=n(164),s=n(541),c=n(210),u=n(542),l=n(167),d={},f=!1,p=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),_=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(_.handleTopLevel),_.ReactEventListener=e}},setEnabled:function(e){_.ReactEventListener&&_.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!_.ReactEventListener||!_.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),i=o.registrationNameDependencies[e],s=0;s<i.length;s++){var c=i[s];a.hasOwnProperty(c)&&a[c]||("topWheel"===c?l("wheel")?_.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):l("mousewheel")?_.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):_.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===c?l("scroll",!0)?_.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):_.ReactEventListener.trapBubbledEvent("topScroll","scroll",_.ReactEventListener.WINDOW_HANDLE):"topFocus"===c||"topBlur"===c?(l("focus",!0)?(_.ReactEventListener.trapCapturedEvent("topFocus","focus",n),_.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):l("focusin")&&(_.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),_.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),a.topBlur=!0,a.topFocus=!0):h.hasOwnProperty(c)&&_.ReactEventListener.trapBubbledEvent(c,h[c],n),a[c]=!0)}},trapBubbledEvent:function(e,t,n){return _.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return _.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===a&&(a=_.supportsEventPageXY()),!a&&!f){var e=c.refreshScrollValues;_.ReactEventListener.monitorScrollValue(e),f=!0}}});e.exports=_},function(e,t,n){"use strict";function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function a(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function i(){return window.location.href.split("#")[1]||""}function o(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function s(){return window.location.pathname+window.location.search+window.location.hash}function c(e){e&&window.history.go(e)}function u(e,t){t(window.confirm(e))}function l(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}function d(){return-1===navigator.userAgent.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=r,t.removeEventListener=a,t.getHashPath=i,t.replaceHashPath=o,t.getWindowPath=s,t.go=c,t.getUserConfirmation=u,t.supportsHistory=l,t.supportsGoWithoutReloadUsingHash=d},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||a(e,t,n)}var a=n(133),i=n(108),o=Object.prototype,s=o.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){if(!i(e))return!1;var t=a(e);return t==s||t==c||t==o||t==u}var a=n(74),i=n(42),o="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},function(e,t){function n(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,a=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){var r=n(658),a=n(477),i=n(659),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},function(e,t,n){var r=n(53),a=n(666),i=n(191),o=n(189)("IE_PROTO"),s=function(){},c=function(){var e,t=n(187)("iframe"),r=i.length;for(t.style.display="none",n(291).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=c(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(185),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t,n){function r(e,t){t=a(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[i(t[n++])];return n&&n==r?e:void 0}var a=n(101),i=n(92);e.exports=r},function(e,t,n){var r=n(225),a=n(750),i=a(r);e.exports=i},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(1),i=r(a),o=n(13),s=r(o),c=n(69),u=r(c),l=n(115),d=r(l),f=n(61),p=r(f);n(501),t.default=i.default.createClass({displayName:"SimpleNotice",dismissTimeout:null,getDefaultProps:function(){return{duration:0,status:null,showDismiss:!0,className:"",onDismissClick:u.default}},propTypes:{status:a.PropTypes.string,showDismiss:a.PropTypes.bool,isCompact:a.PropTypes.bool,duration:i.default.PropTypes.number,text:a.PropTypes.oneOfType([a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.node]),a.PropTypes.arrayOf(a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.node]))]),icon:a.PropTypes.string,className:a.PropTypes.string},componentDidMount:function(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))},componentWillUnmount:function(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)},getIcon:function(){var e=void 0;switch(this.props.status){case"is-info":e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice";break;default:e="info"}return e},render:function(){var e=this.props,t=e.status,n=e.className,r=e.isCompact,a=e.showDismiss,o=(0,s.default)("dops-notice",t,n,{"is-compact":r,"is-dismissable":a}),c=this.props,u=c.icon,l=c.text,f=c.children,h=c.onDismissClick,m=c.dismissText;return i.default.createElement("div",{className:o},i.default.createElement(p.default,{className:"dops-notice__icon",icon:u||this.getIcon(),size:24}),i.default.createElement("span",{className:"dops-notice__content"},i.default.createElement("span",{className:"dops-notice__text"},l||f)),l?f:null,a&&i.default.createElement("span",{role:"button",tabIndex:"0",onClick:h,onKeyDown:(0,d.default)(h),className:"dops-notice__dismiss"},i.default.createElement(p.default,{icon:"cross",size:24}),i.default.createElement("span",{className:"screen-reader-text"},m)))}}),e.exports=t.default},function(e,t,n){function r(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var a=n(33).Buffer,i=n(836).Transform,o=n(839).StringDecoder;n(18)(r,i),r.prototype.update=function(e,t,n){"string"==typeof e&&(e=a.from(e,t));var r=this._update(e);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},r.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},r.prototype._finalOrDigest=function(e){var t=this.__final()||a.alloc(0);return e&&(t=this._toString(t,e,!0)),t},r.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=r},function(e,t,n){"use strict";function r(){if(s)for(var e in c){var t=c[e],n=s.indexOf(e);if(n>-1||o("96",e),!u.plugins[n]){t.extractEvents||o("97",e),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(r[i],t,i)||o("98",i,e)}}}function a(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&o("99",n),u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&o("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var o=n(11),s=(n(7),null),c={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&o("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];c.hasOwnProperty(n)&&c[n]===a||(c[n]&&o("102",n),c[n]=a,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var a=u.registrationNameModules[n[r]];if(a)return a}}return null},_resetEventPlugins:function(){s=null;for(var e in c)c.hasOwnProperty(e)&&delete c[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=u},function(e,t,n){"use strict";function r(e,t,n){try{t(n)}catch(e){null===a&&(a=e)}}var a=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(a){var e=a;throw a=null,e}}};e.exports=i},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&a&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var a,i=n(31);i.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function a(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=a},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function a(e,t,n){l.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):m(e,t,n)}function o(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],c(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var a=t;;){var i=a.nextSibling;if(m(e,a,r),a===n)break;a=i}}function c(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,a=e.nextSibling;a===t?n&&m(r,document.createTextNode(n),a):n?(h(a,n),c(r,a,t)):c(r,e,t)}var l=n(98),d=n(526),f=(n(19),n(44),n(171)),p=n(151),h=n(238),m=f(function(e,t,n){e.insertBefore(t,n)}),_=d.dangerouslyReplaceNodeWithMarkup,M={dangerouslyReplaceNodeWithMarkup:_,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=0;n<t.length;n++){var s=t[n];switch(s.type){case"INSERT_MARKUP":a(e,s.content,r(e,s.afterNode));break;case"MOVE_EXISTING":i(e,s.fromNode,r(e,s.afterNode));break;case"SET_MARKUP":p(e,s.content);break;case"TEXT_CONTENT":h(e,s.content);break;case"REMOVE_NODE":o(e,s.fromNode)}}}};e.exports=M},function(e,t,n){"use strict";var r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};e.exports=r},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink&&s("87")}function a(e){r(e),(null!=e.value||null!=e.onChange)&&s("88")}function i(e){r(e),(null!=e.checked||null!=e.onChange)&&s("89")}function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(11),c=n(544),u=n(242),l=n(86),d=u(l.isValidElement),f=(n(7),n(12),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),p={value:function(e,t,n){return!e[t]||f[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:d.func},h={},m={checkPropTypes:function(e,t,n){for(var r in p){if(p.hasOwnProperty(r))var a=p[r](t,r,e,"prop",null,c);if(a instanceof Error&&!(a.message in h)){h[a.message]=!0;o(n)}}},getValue:function(e){return e.valueLink?(a(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(a(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=m},function(e,t,n){"use strict";var r=n(11),a=(n(7),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){a&&r("104"),i.replaceNodeWithMarkup=e.replaceNodeWithMarkup,i.processChildrenUpdates=e.processChildrenUpdates,a=!0}}};e.exports=i},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function a(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;o<n.length;o++)if(!i.call(t,n[o])||!r(e[n[o]],t[n[o]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;e.exports=a},function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function a(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:r,unescape:a};e.exports=i},function(e,t,n){"use strict";var r=(n(17),n(37)),a=(n(12),r);e.exports=a},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){function r(e){if(!o(e)||a(e)!=s)return!1;var t=i(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}var a=n(74),i=n(179),o=n(66),s="[object Object]",c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=l.call(Object);e.exports=r},function(e,t,n){var r=n(266),a=r(Object.getPrototypeOf,Object);e.exports=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.router=t.routes=t.route=t.components=t.component=t.location=t.history=t.falsy=t.locationShape=t.routerShape=void 0;var a=n(1),i=n(131),o=(r(i),n(75)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o),c=n(23),u=(r(c),a.PropTypes.func),l=a.PropTypes.object,d=a.PropTypes.shape,f=a.PropTypes.string,p=t.routerShape=d({push:u.isRequired,replace:u.isRequired,go:u.isRequired,goBack:u.isRequired,goForward:u.isRequired,setRouteLeaveHook:u.isRequired,isActive:u.isRequired}),h=t.locationShape=d({pathname:f.isRequired,search:f.isRequired,state:l,action:f.isRequired,key:f}),m=t.falsy=s.falsy,_=t.history=s.history,M=t.location=h,b=t.component=s.component,g=t.components=s.components,v=t.route=s.route,y=(t.routes=s.routes,t.router=p),A={falsy:m,history:_,location:M,component:b,components:g,route:v,router:y};t.default=A},function(e,t,n){"use strict";function r(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var a=n(46);!function(e){e&&e.__esModule}(a);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e,t){function n(t){var n=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],a=void 0;return n&&!0!==n||null!==r?(t={pathname:t,query:n},a=r||!1):(t=e.createLocation(t),a=n),(0,f.default)(t,a,g.location,g.routes,g.params)}function r(e,n){v&&v.location===e?i(v,n):(0,_.default)(t,e,function(t,r){t?n(t):r?i(o({},r,{location:e}),n):n()})}function i(e,t){function n(n,a){if(n||a)return r(n,a);(0,h.default)(e,function(n,r){n?t(n):t(null,null,g=o({},e,{components:r}))})}function r(e,n){e?t(e):t(null,n)}var a=(0,u.default)(g,e),i=a.leaveRoutes,s=a.changeRoutes,c=a.enterRoutes;(0,l.runLeaveHooks)(i,g),i.filter(function(e){return-1===c.indexOf(e)}).forEach(m),(0,l.runChangeHooks)(s,g,e,function(t,a){if(t||a)return r(t,a);(0,l.runEnterHooks)(c,e,n)})}function s(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];return e.__id__||t&&(e.__id__=y++)}function c(e){return e.reduce(function(e,t){return e.push.apply(e,A[s(t)]),e},[])}function d(e,n){(0,_.default)(t,e,function(t,r){if(null==r)return void n();v=o({},r,{location:e});for(var a=c((0,u.default)(g,v).leaveRoutes),i=void 0,s=0,l=a.length;null==i&&s<l;++s)i=a[s](e);n(i)})}function p(){if(g.routes){for(var e=c(g.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&n<r;++n)t=e[n]();return t}}function m(e){var t=s(e,!1);t&&(delete A[t],a(A)||(w&&(w(),w=null),E&&(E(),E=null)))}function M(t,n){var r=s(t),i=A[r];if(i)-1===i.indexOf(n)&&i.push(n);else{var o=!a(A);A[r]=[n],o&&(w=e.listenBefore(d),e.listenBeforeUnload&&(E=e.listenBeforeUnload(p)))}return function(){var e=A[r];if(e){var a=e.filter(function(e){return e!==n});0===a.length?m(t):A[r]=a}}}function b(t){return e.listen(function(n){g.location===n?t(null,g):r(n,function(n,r,a){n?t(n):r?e.replace(r):a&&t(null,a)})})}var g={},v=void 0,y=1,A=Object.create(null),w=void 0,E=void 0;return{isActive:n,match:r,listenBeforeLeavingRoute:M,listen:b}}t.__esModule=!0;var o=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};t.default=i;var s=n(23),c=(r(s),n(624)),u=r(c),l=n(625),d=n(626),f=r(d),p=n(627),h=r(p),m=n(628),_=r(m);e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){function r(){if(o=!0,s)return void(u=[].concat(Array.prototype.slice.call(arguments)));n.apply(this,arguments)}function a(){if(!o&&(c=!0,!s)){for(s=!0;!o&&i<e&&c;)c=!1,t.call(this,i++,a,r);if(s=!1,o)return void n.apply(this,u);i>=e&&c&&(o=!0,n())}}var i=0,o=!1,s=!1,c=!1,u=void 0;a()}function a(e,t,n){function r(e,t,r){o||(t?(o=!0,n(t)):(i[e]=r,(o=++s===a)&&n(null,i)))}var a=e.length,i=[];if(0===a)return n(null,i);var o=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=r,t.mapAsync=a},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(48),a=n(35).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,n){var r=n(48);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(190)("keys"),a=n(136);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(35),a=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){t.f=n(32)},function(e,t,n){var r=n(35),a=n(21),i=n(135),o=n(192),s=n(47).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){},function(e,t,n){var r=n(112),a=n(32)("toStringTag"),i="Arguments"==r(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=o(t=Object(e),a))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(77),a=n(45),i=r(a,"Map");e.exports=i},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var a=n(697),i=n(704),o=n(706),s=n(707),c=n(708);r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=s,r.prototype.set=c,e.exports=r},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new a(t).set(new a(e)),t}var a=n(304);e.exports=r},function(e,t,n){function r(e,t){if(a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var a=n(26),i=n(146),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return!!e.jetpack.modules.requests.fetchingModulesList}function i(e,t){return!!e.jetpack.modules.requests.activating[t]}function o(e,t){return!!e.jetpack.modules.requests.deactivating[t]}function s(e,t,n){return(0,y.default)(e.jetpack.modules.requests.updatingOption,[t,n],!1)}function c(e,t,n){return(0,y.default)(e.jetpack.modules.items,[t,"options",n,"current_value"])}function u(e,t,n){return(0,y.default)(e.jetpack.modules.items,[t,"options",n,"enum_labels"],!1)}function l(e){return e.jetpack.modules.items}function d(e,t){return(0,y.default)(e.jetpack.modules.items,t,{})}function f(e,t){return(0,_.default)(e.jetpack.modules.items).filter(function(n){return-1!==e.jetpack.modules.items[n].feature.indexOf(t)}).map(function(t){return e.jetpack.modules.items[t]})}function p(e){return(0,_.default)(e.jetpack.modules.items).filter(function(t){return e.jetpack.modules.items[t].requires_connection})}function h(e,t){return!!(0,y.default)(e.jetpack.modules.items,[t,"activated"],!1)}Object.defineProperty(t,"__esModule",{value:!0}),t.reducer=t.requests=t.initialRequestsState=t.items=void 0;var m=n(80),_=r(m),M=n(49),b=r(M);t.isFetchingModulesList=a,t.isActivatingModule=i,t.isDeactivatingModule=o,t.isUpdatingModuleOption=s,t.getModuleOption=c,t.getModuleOptionValidValues=u,t.getModules=l,t.getModule=d,t.getModulesByFeature=f,t.getModulesThatRequireConnection=p,t.isModuleActivated=h;var g=n(20),v=n(24),y=r(v),A=n(25),w=r(A),E=n(16),k=t.items=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case E.JETPACK_SET_INITIAL_STATE:return(0,w.default)({},t.initialState.getModules);case E.JETPACK_MODULES_LIST_RECEIVE:return(0,w.default)({},e,t.modules);case E.JETPACK_MODULE_ACTIVATE_SUCCESS:return(0,w.default)({},e,(0,b.default)({},t.module,(0,w.default)({},e[t.module],{activated:!0})));case E.JETPACK_MODULE_DEACTIVATE_SUCCESS:return(0,w.default)({},e,(0,b.default)({},t.module,(0,w.default)({},e[t.module],{activated:!1})));case E.JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS:var n=(0,w.default)({},e[t.module]);return(0,_.default)(t.newOptionValues).forEach(function(e){n.options[e].current_value=t.newOptionValues[e]}),(0,w.default)({},e,(0,b.default)({},t.module,n));default:return e}},T=t.initialRequestsState={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},L=t.requests=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments[1];switch(t.type){case E.JETPACK_MODULES_LIST_FETCH:return(0,w.default)({},e,{fetchingModulesList:!0});case E.JETPACK_MODULES_LIST_FETCH_FAIL:case E.JETPACK_MODULES_LIST_RECEIVE:return(0,w.default)({},e,{fetchingModulesList:!1});case E.JETPACK_MODULE_ACTIVATE:return(0,w.default)({},e,{
|
@@ -30,8 +30,8 @@ links:["Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abi
|
|
30 |
g.translate)("An Automattic Airline")),m.default.createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),m.default.createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),m.default.createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})))),m.default.createElement("ul",{className:"jp-footer__links"},m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{onClick:this.trackVersionClick,href:"https://jetpack.com",target:"_blank",rel:"noopener noreferrer",className:"jp-footer__link",title:(0,g.translate)("Jetpack version")},n?(0,g.translate)("Jetpack version %(version)s",{args:{version:n}}):(0,g.translate)("Jetpack"))),m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{onClick:this.trackTermsClick,href:"https://wordpress.com/tos/",target:"_blank",rel:"noopener noreferrer",title:(0,g.translate)("WordPress.com Terms of Service"),className:"jp-footer__link"},(0,g.translate)("Terms",{context:"Shorthand for Terms of Service."}))),m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{onClick:this.trackPrivacyClick,href:"https://automattic.com/privacy/",target:"_blank",rel:"noopener noreferrer",title:(0,g.translate)("Automattic's Privacy Policy"),className:"jp-footer__link"},(0,g.translate)("Privacy",{context:"Shorthand for Privacy Policy."}))),function(){if(e.props.userCanManageOptions)return m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{onClick:e.trackDebugClick,href:e.props.siteAdminUrl+"admin.php?page=jetpack-debugger",title:(0,g.translate)("Test your site’s compatibility with Jetpack."),className:"jp-footer__link"},(0,g.translate)("Debug",{context:"Navigation item. Noun. Links to a debugger tool for Jetpack."})))}(),function(){return e.props.isDevVersion&&e.props.userCanManageOptions?m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,S.default)(e.resetOnClick),onClick:e.resetOnClick,className:"jp-footer__link"},(0,g.translate)("Reset Options (dev only)",{context:"Navigation item."}))):""}(),function(){return e.props.isDevVersion?m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,S.default)(e.props.enableDevCard),onClick:e.props.enableDevCard,className:"jp-footer__link"},(0,g.translate)("Dev Tools",{context:"Navigation item."}))):""}(),function(){if(e.props.isDevVersion&&e.props.displayDevCard)return m.default.createElement(T.default,null)}()))}}]),t}(m.default.Component);C.displayName="Footer",t.default=(0,_.connect)(function(e){return{currentVersion:(0,A.getCurrentVersion)(e),userCanManageOptions:(0,A.userCanManageOptions)(e),isDevVersion:(0,A.isDevVersion)(e),siteAdminUrl:(0,A.getSiteAdminUrl)(e),isInIdentityCrisis:(0,E.isInIdentityCrisis)(e),displayDevCard:(0,w.canDisplayDevCard)(e)}},function(e){return{resetOptions:function(){return e((0,w.resetOptions)("options"))},enableDevCard:function(){return e((0,w.enableDevCard)())}}})(C)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchRewindState=t.switchThreats=t.switchUserPermission=t.switchPlanPreview=t.disableDevCard=t.enableDevCard=t.resetOptions=void 0;var r=n(123),a=n(8),i=n(16),o=n(60),s=function(e){return e&&e.__esModule?e:{default:e}}(o),c=(t.resetOptions=function(e){return function(t){return t({type:i.RESET_OPTIONS}),t((0,r.createNotice)("is-info",(0,a.translate)("Resetting Jetpack options…"),{id:"reset-options"})),s.default.resetOptions(e).then(function(){t({type:i.RESET_OPTIONS_SUCCESS}),t((0,r.removeNotice)("reset-options")),t((0,r.createNotice)("is-success",(0,a.translate)("Options reset."),{id:"reset-options",duration:2e3}))}).catch(function(e){t({type:i.RESET_OPTIONS_FAIL,error:e}),t((0,r.removeNotice)("reset-options")),t((0,r.createNotice)("is-error",(0,a.translate)("Options failed to reset."),{id:"reset-options"}))})}},t.enableDevCard=function(){return function(e){e({type:i.DEV_CARD_DISPLAY})}},t.disableDevCard=function(){return function(e){e({type:i.DEV_CARD_HIDE})}},t.switchPlanPreview=function(e){return function(t){t({type:i.JETPACK_SITE_DATA_FETCH_RECEIVE,siteData:{plan:{product_slug:e}}})}},{currentUser:{isMaster:!0,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}}),u={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},l={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!0,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},d={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!1,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},f={currentUser:{permissions:{view_stats:!0}}},p={currentUser:{permissions:{view_stats:!1}}},h={currentUser:{isConnected:!0}},m={currentUser:{isConnected:!1}};t.switchUserPermission=function(e){var t={};return function(n){switch(e){case"admin_master":t=c;break;case"admin_secondary":t=u;break;case"editor":case"contributor":case"author":t=l;break;case"subscriber":t=d;break;case"view_stats":t=f;break;case"hide_stats":t=p;break;case"is_linked":t=h;break;case"is_unlinked":t=m}n({type:i.MOCK_SWITCH_USER_PERMISSIONS,initialState:t})}},t.switchThreats=function(e){return function(t){t({type:i.MOCK_SWITCH_THREATS,mockCount:e})}},t.switchRewindState=function(e){return function(t){t({type:i.MOCK_SWITCH_REWIND_STATE,rewindState:{state:e}})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DevCard=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(1),m=r(h),_=n(9),M=n(13),b=r(M),g=n(55),v=n(24),y=r(v),A=n(28),w=n(64),E=n(22),k=n(467),T=n(62),L=n(30),S=r(L),C=n(115),z=r(C),O=n(468),N=t.DevCard=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.onPlanChange=function(e){r.props.switchPlanPreview(e.target.value)},r.onPermissionsChange=function(e){r.props.switchUserPermissions(e.target.value)},r.onThreatsChange=function(e){r.props.switchThreats(e.target.value)},r.onRewindStatusChange=function(e){r.props.switchRewindState(e.target.value)},r.maybeShowStatsToggle=function(){if(!r.props.isAdmin)return m.default.createElement("div",null,m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"view_stats"},m.default.createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:r.props.canViewStats,onChange:r.onPermissionsChange}),"Can view stats")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"hide_stats"},m.default.createElement("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!r.props.canViewStats,onChange:r.onPermissionsChange}),"Can not view stats"))))},r.maybeShowIsLinkedToggle=function(){if(!r.props.isMaster)return m.default.createElement("div",null,m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"is_linked"},m.default.createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:r.props.isUserLinked,onChange:r.onPermissionsChange}),"Linked")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"is_unlinked"},m.default.createElement("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!r.props.isUserLinked,onChange:r.onPermissionsChange}),"Unlinked"))))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.canDisplayDevCard)return null;var e=(0,b.default)(this.props.className,"jp-dev-card"),t=(0,g.getPlanClass)(this.props.sitePlan.product_slug),n=(0,y.default)(this.props.rewindStatus,["state"],!1);return m.default.createElement(S.default,{compact:!0,className:e},m.default.createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,z.default)(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),m.default.createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"jetpack_free"},m.default.createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"jetpack_personal"},m.default.createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"jetpack_premium"},m.default.createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"jetpack_business"},m.default.createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro"))),m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"admin_master"},m.default.createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (master)")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"admin_secondary"},m.default.createElement("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (secondary)")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"editor"},m.default.createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"subscriber"},m.default.createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"nothreats"},m.default.createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"threats"},m.default.createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("strong",null,"Rewind"),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"rewindUnavailable"},m.default.createElement("input",{type:"radio",id:"rewindUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===n,onChange:this.onRewindStatusChange}),"Unavailable")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"rewindAvailable"},m.default.createElement("input",{type:"radio",id:"rewindAvailable",value:"available",name:"available",checked:"unavailable"!==n&&"active"!==n,onChange:this.onRewindStatusChange}),"Available")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"rewindActive"},m.default.createElement("input",{type:"radio",id:"rewindActive",value:"active",name:"active",checked:"active"===n,onChange:this.onRewindStatusChange}),"Active"))),this.maybeShowStatsToggle(),this.maybeShowIsLinkedToggle())}}]),t}(m.default.Component);N.displayName="DevCard",t.default=(0,_.connect)(function(e){return{isDevVersion:(0,A.isDevVersion)(e),sitePlan:(0,w.getSitePlan)(e),canDisplayDevCard:(0,k.canDisplayDevCard)(e),isUserLinked:(0,E.isCurrentUserLinked)(e),canViewStats:(0,A.userCanViewStats)(e),isMaster:(0,A.userIsMaster)(e),isAdmin:(0,A.userCanDisconnectSite)(e),canEditPosts:(0,A.userCanEditPosts)(e),getVaultPressScanThreatCount:function(){return(0,T.getVaultPressScanThreatCount)(e)},rewindStatus:(0,O.getRewindStatus)(e)}},function(e){return{switchPlanPreview:function(t){return e((0,k.switchPlanPreview)(t))},switchUserPermissions:function(t){return e((0,k.switchUserPermission)(t))},switchThreats:function(t){return e((0,k.switchThreats)(parseInt(t)))},disableDevCard:function(){return e((0,k.disableDevCard)())},switchRewindState:function(t){return e((0,k.switchRewindState)(t))}}})(N)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchRewindStatus=void 0;var r=n(16),a=n(60),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.fetchRewindStatus=function(){return function(e){return e({type:r.REWIND_STATUS_FETCH}),i.default.fetchRewindStatus().then(function(t){return e({type:r.REWIND_STATUS_FETCH_RECEIVE,status:t}),t}).catch(function(t){e({type:r.REWIND_STATUS_FETCH_FAIL,error:t})})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dismissJetpackActionNotice=t.dismissJetpackNotice=void 0;var r=n(16),a=n(60),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.dismissJetpackNotice=function(e){return function(t){return t({type:r.JETPACK_NOTICES_DISMISS,notice:e}),i.default.dismissJetpackNotice(e).then(function(e){t({type:r.JETPACK_NOTICES_DISMISS_SUCCESS,dismissedNotices:e,success:!0})}).catch(function(e){t({type:r.JETPACK_NOTICES_DISMISS_FAIL,error:e})})}},t.dismissJetpackActionNotice=function(e){return function(t){t({type:r.JETPACK_ACTION_NOTICES_DISMISS,notice:e})}}},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function a(e){return e?e.nodeType===P?e.documentElement:e.firstChild:null}function i(e){return e.getAttribute&&e.getAttribute(O)||""}function o(e,t,n,r,a){var i;if(y.logTopLevelRenders){var o=e._currentElement.props.child,s=o.type;i="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(i)}var c=E.mountComponent(e,n,null,g(e,t),a,0);i&&console.timeEnd(i),e._renderedComponent._topLevelWrapper=e,I._mountImageIntoNode(c,t,e,r,n)}function s(e,t,n,r){var a=T.ReactReconcileTransaction.getPooled(!n&&v.useCreateElement);a.perform(o,null,e,t,a,n,r),T.ReactReconcileTransaction.release(a)}function c(e,t,n){for(E.unmountComponent(e,n),t.nodeType===P&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function u(e){var t=a(e);if(t){var n=b.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function l(e){return!(!e||e.nodeType!==D&&e.nodeType!==P&&e.nodeType!==x)}function d(e){var t=a(e),n=t&&b.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function f(e){var t=d(e);return t?t._hostContainerInfo._topLevelWrapper:null}var p=n(11),h=n(98),m=n(93),_=n(86),M=n(152),b=(n(65),n(19)),g=n(592),v=n(914),y=n(469),A=n(130),w=(n(44),n(593)),E=n(96),k=n(212),T=n(50),L=n(129),S=n(250),C=(n(7),n(151)),z=n(211),O=(n(12),m.ID_ATTRIBUTE_NAME),N=m.ROOT_ATTRIBUTE_NAME,D=1,P=9,x=11,j={},R=1,Y=function(){this.rootID=R++};Y.prototype.isReactComponent={},Y.prototype.render=function(){return this.props.child},Y.isReactTopLevelWrapper=!0;var I={TopLevelWrapper:Y,_instancesByReactRootID:j,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,a){return I.scrollMonitor(r,function(){k.enqueueElementInternal(e,t,n),a&&k.enqueueCallbackInternal(e,a)}),e},_renderNewRootComponent:function(e,t,n,r){l(t)||p("37"),M.ensureScrollValueMonitoring();var a=S(e,!1);T.batchedUpdates(s,a,t,n,r);var i=a._instance.rootID;return j[i]=a,a},renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&A.has(e)||p("38"),I._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){k.validateCallback(r,"ReactDOM.render"),_.isValidElement(t)||p("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var o,s=_.createElement(Y,{child:t});if(e){var c=A.get(e);o=c._processChildContext(c._context)}else o=L;var l=f(n);if(l){var d=l._currentElement,h=d.props.child;if(z(h,t)){var m=l._renderedComponent.getPublicInstance(),M=r&&function(){r.call(m)};return I._updateRootComponent(l,s,o,n,M),m}I.unmountComponentAtNode(n)}var b=a(n),g=b&&!!i(b),v=u(n),y=g&&!l&&!v,w=I._renderNewRootComponent(s,n,y,o)._renderedComponent.getPublicInstance();return r&&r.call(w),w},render:function(e,t,n){return I._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||p("40");var t=f(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(N);return!1}return delete j[t._instance.rootID],T.batchedUpdates(c,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,o){if(l(t)||p("41"),i){var s=a(t);if(w.canReuseMarkup(e,s))return void b.precacheNode(n,s);var c=s.getAttribute(w.CHECKSUM_ATTR_NAME);s.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(w.CHECKSUM_ATTR_NAME,c);var d=e,f=r(d,u),m=" (client) "+d.substring(f-20,f+20)+"\n (server) "+u.substring(f-20,f+20);t.nodeType===P&&p("42",m)}if(t.nodeType===P&&p("43"),o.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else C(t,e),b.precacheNode(n,t.firstChild)}};e.exports=I},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===a.COMPOSITE;)e=e._renderedComponent;return t===a.HOST?e._renderedComponent:t===a.EMPTY?null:void 0}var a=n(470);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(t){var n=e();if("string"==typeof n)return(t||window.event).returnValue=n,n}return u.addEventListener(window,"beforeunload",t),function(){u.removeEventListener(window,"beforeunload",t)}}function i(e){return function(t){function n(){for(var e=void 0,t=0,n=f.length;null==e&&t<n;++t)e=f[t].call();return e}function r(e){return f.push(e),1===f.length&&c.canUseDOM&&(l=a(n)),function(){f=f.filter(function(t){return t!==e}),0===f.length&&l&&(l(),l=null)}}function i(e){c.canUseDOM&&-1===f.indexOf(e)&&(f.push(e),1===f.length&&(l=a(n)))}function s(e){f.length>0&&(f=f.filter(function(t){return t!==e}),0===f.length&&l())}var u=e(t),l=void 0,f=[];return o({},u,{listenBeforeUnload:r,registerBeforeUnloadHook:d.default(i,"registerBeforeUnloadHook is deprecated; use listenBeforeUnload instead"),unregisterBeforeUnloadHook:d.default(s,"unregisterBeforeUnloadHook is deprecated; use the callback returned from listenBeforeUnload instead")})}}t.__esModule=!0;var o=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},s=n(46),c=(r(s),n(116)),u=n(153),l=n(106),d=r(l);t.default=i,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.Navigation=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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(855),v=r(g),y=n(799),A=r(y),w=n(804),E=r(w),k=n(8),T=n(14),L=r(T),S=n(27),C=n(28),z=t.Navigation=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.trackNavClick=function(e){L.default.tracks.recordJetpackClick({target:"nav_item",path:e})},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=void 0;return t=this.props.userCanManageModules?M.default.createElement(A.default,{selectedText:this.props.route.name},M.default.createElement(E.default,{path:"#/dashboard",onClick:function(){return e.trackNavClick("dashboard")},selected:"/dashboard"===this.props.route.path||"/"===this.props.route.path},(0,k.translate)("At a Glance",{context:"Navigation item."})),M.default.createElement(E.default,{path:"#/plans",onClick:function(){return e.trackNavClick("plans")},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(E.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",{className:"dops-navigation"},M.default.createElement(v.default,{selectedText:this.props.route.name},t))}}]),t}(M.default.Component);z.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)}}})(z)},function(e,t,n){"use strict";var r=n(1),a=n(927),i=n(13),o=n(799),s=n(804),c=n(858);n(938);var u=r.createClass({displayName:"SectionNav",propTypes:{children:r.PropTypes.node,selectedText:r.PropTypes.node,selectedCount:r.PropTypes.number,hasPinnedItems:r.PropTypes.bool,onMobileNavPanelOpen:r.PropTypes.func},getInitialState:function(){return{mobileOpen:!1}},getDefaultProps:function(){return{onMobileNavPanelOpen:function(){}}},componentWillMount:function(){this.checkForSiblingControls(this.props.children)},componentWillReceiveProps:function(e){a(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())},render:function(){var e,t=this.getChildren();return t?(e=i({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),r.createElement("div",{className:e},r.createElement("div",{className:"dops-section-nav__mobile-header",onTouchTap:this.toggleMobileOpenState},r.createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),r.createElement("div",{className:"dops-section-nav__panel"},t))):(e=i({"dops-section-nav":!0,"is-empty":!0}),r.createElement("div",{className:e},r.createElement("div",{className:"dops-section-nav__panel"},r.createElement(s,null))))},getChildren:function(){return r.Children.map(this.props.children,function(e){var t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==o||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===o&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===c&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),r.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,r.Children.forEach(e,function(e,t){t&&e&&e.type!==c&&(this.hasSiblingControls=!0)}.bind(this))}});e.exports=u},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(149),m=r(h),_=n(1),M=r(_),b=n(495),g=r(b),v=n(450),y=r(v),A=n(496),w=r(A),E=n(929),k=r(E),T=n(931),L=r(T),S=n(13),C=r(S),z=n(857),O=r(z),N=n(933),D=r(N),P=n(934),x=r(P),j=n(800),R=r(j);n(935);var Y=M.default.Component,I=M.default.PropTypes,q=function(){},B=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,g.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?M.default.Children.map(this.props.children,function(n,r){if(!n)return null;var a=M.default.cloneElement(n,{ref:n.type===O.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===O.default&&e++,a},this):this.props.options.map(function(t,n){if(!t)return M.default.createElement(D.default,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(t.isLabel)return M.default.createElement(x.default,{key:"dropdown-label-"+this.state.instanceId+"-"+n},t.label);var r=M.default.createElement(O.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,C.default)(e),n=this.props.selectedText?this.props.selectedText:(0,L.default)((0,g.default)(this.props.options,{value:this.state.selected}),"label");return M.default.createElement("div",{style:this.props.style,className:t},M.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},M.default.createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},M.default.createElement("span",{className:"dops-select-dropdown__header-text"},n,"number"==typeof this.props.selectedCount&&M.default.createElement(R.default,{count:this.props.selectedCount}))),M.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){var t;this.state.isOpen&&(e.preventDefault(),t=e.shiftKey?"previous":"next",this.focusSibling(t))}},{key:"activateItem",value:function(){if(!this.state.isOpen)return this.openDropdown();document.activeElement.click()}},{key:"focusSibling",value:function(e){var t,n,r,a;this.state.isOpen&&(this.props.options.length?(n=(0,k.default)((0,y.default)(this.props.options,function(e){return e&&!e.isLabel}),"value"),r="number"==typeof this.focused?this.focused:n.indexOf(this.state.selected)):(n=(0,y.default)(this.props.children,function(e){return e.type===O.default}),r="number"==typeof this.focused?this.focused:(0,w.default)(n,function(e){return e.props.selected})),t="previous"===e?-1:1,
|
31 |
(a=r+t)>=n.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}(Y);B.defaultProps={options:[],onSelect:q,onToggle:q,disabled:!1,style:{}},B.propTypes={selectedText:I.string,selectedCount:I.number,initialSelected:I.string,className:I.string,style:I.object,onSelect:I.func,onToggle:I.func,focusSibling:I.func,tabIndex:I.number,disabled:I.bool,options:I.arrayOf(I.shape({value:I.string.isRequired,label:I.string.isRequired,path:I.string}))},B.instances=0,t.default=B,e.exports=t.default},function(e,t,n){"use strict";var r=n(1),a=n(13),i=n(800),o=r.createClass({displayName:"SelectDropdownItem",propTypes:{children:r.PropTypes.string.isRequired,path:r.PropTypes.string,selected:r.PropTypes.bool,onClick:r.PropTypes.func,count:r.PropTypes.number},getDefaultProps:function(){return{selected:!1}},render:function(){var e=a(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return r.createElement("li",{className:"dops-select-dropdown__option"},r.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},r.createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&r.createElement(i,{count:this.props.count}))))}});e.exports=o},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(10),o=r(i),s=n(149),c=r(s),u=n(1),l=r(u),d=n(13),f=r(d),p=n(497),h=r(p),m=n(69),_=r(m),M=n(14),b=r(M),g=n(859),v=r(g),y=n(61),A=r(y),w=n(803);n(937);var E=l.default.createClass({displayName:"Search",statics:{instances:0},propTypes:{additionalClasses:u.PropTypes.string,initialValue:u.PropTypes.string,placeholder:u.PropTypes.string,pinned:u.PropTypes.bool,delaySearch:u.PropTypes.bool,delayTimeout:u.PropTypes.number,onSearch:u.PropTypes.func.isRequired,onSearchChange:u.PropTypes.func,onSearchOpen:u.PropTypes.func,onSearchClose:u.PropTypes.func,analyticsGroup:u.PropTypes.string,overlayStyling:u.PropTypes.func,autoFocus:u.PropTypes.bool,disabled:u.PropTypes.bool,onKeyDown:u.PropTypes.func,onClick:u.PropTypes.func,disableAutocorrect:u.PropTypes.bool,onBlur:u.PropTypes.func,searching:u.PropTypes.bool,isOpen:u.PropTypes.bool,dir:u.PropTypes.oneOf(["ltr","rtl"]),fitsContainer:u.PropTypes.bool,maxLength:u.PropTypes.number,hideClose:u.PropTypes.bool},getInitialState:function(){return{keyword:this.props.initialValue||"",isOpen:!!this.props.isOpen,hasFocus:!1}},getDefaultProps:function(){return{pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:_.default,onSearchOpen:_.default,onSearchClose:_.default,onKeyDown:_.default,onClick:_.default,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1}},componentWillMount:function(){this.setState({instanceId:++E.instances}),this.closeListener=a.bind(this,"closeSearch"),this.openListener=a.bind(this,"openSearch")},componentWillReceiveProps:function(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?(0,h.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||""})},componentDidUpdate: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))},componentDidMount:function(){var e=this;this.onSearch=this.props.delaySearch?(0,h.default)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch,this.props.autoFocus&&setTimeout(function(){return e.focus()},0)},scrollOverlay:function(){var e=this;this.refs.overlay&&window.requestAnimationFrame(function(){e.refs.overlay&&e.refs.searchInput&&(e.refs.overlay.scrollLeft=e.getScrollLeft(e.refs.searchInput))})},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},focus:function(){var e=this;setTimeout(function(){return e.refs.searchInput&&c.default.findDOMNode(e.refs.searchInput).focus()},0)},blur:function(){c.default.findDOMNode(this.refs.searchInput).blur()},getCurrentSearchValue:function(){return c.default.findDOMNode(this.refs.searchInput).value},clear:function(){this.setState({keyword:""})},onBlur:function(e){this.props.onBlur&&this.props.onBlur(e),this.setState({hasFocus:!1})},onChange:function(){this.setState({keyword:this.getCurrentSearchValue()})},openSearch:function(e){this.props.onClick(),e.preventDefault(),this.setState({keyword:"",isOpen:!0}),b.default.ga.recordEvent(this.props.analyticsGroup,"Clicked Open Search")},closeSearch:function(e){if(e.preventDefault(),!this.props.disabled){var t=c.default.findDOMNode(this.refs.searchInput);this.setState({keyword:"",isOpen:this.props.isOpen||!1}),t.value="",t.blur(),this.props.pinned&&c.default.findDOMNode(this.refs.openIcon).focus(),this.props.onSearchClose(e),b.default.ga.recordEvent(this.props.analyticsGroup,"Clicked Close Search")}},keyUp:function(e){"Enter"===e.key&&(0,w.isMobile)()&&this.blur(),this.props.pinned&&("Escape"===e.key&&this.closeSearch(e),this.scrollOverlay())},keyDown:function(e){this.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&this.closeSearch(e),this.props.onKeyDown(e)},onFocus:function(){var e=c.default.findDOMNode(this.refs.searchInput),t=e.value;t&&(e.value="",e.value=t),this.setState({hasFocus:!0}),this.props.onSearchOpen()},render: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,f.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,f.default)("dops-search__input-fade",this.props.dir),c=(0,f.default)("dops-search__input",this.props.dir);return l.default.createElement("div",{dir:this.props.dir||null,className:i,role:"search"},l.default.createElement(v.default,null),l.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"},l.default.createElement(A.default,{icon:"search",className:"dops-search__open-icon"})),l.default.createElement("div",{className:s},l.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())},renderStylingDiv:function(){return l.default.createElement("div",{className:"dops-search__text-overlay",ref:"overlay"},this.props.overlayStyling(this.state.keyword))},closeButton:function(){return this.props.hideClose||!this.state.keyword&&!this.state.isOpen?null:l.default.createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:this.closeSearch,tabIndex:"0",onKeyDown:this.closeListener,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Close Search"},l.default.createElement(A.default,{icon:"cross",className:"dops-search__close-icon"}))}});e.exports=E},function(e,t,n){"use strict";(function(t){var r=n(1),a=n(13);n(936);var i;i=r.createClass({displayName:"Spinner",propTypes:{className:r.PropTypes.string,size:r.PropTypes.number,duration:r.PropTypes.number},statics:{instances:0},getDefaultProps:function(){return{size:20,duration:3e3}},componentWillMount:function(){this.setState({instanceId:++i.instances})},isSVGCSSAnimationSupported:function(){return!/(MSIE |Trident\/)/.test(t.window?t.window.navigator.userAgent:"")},getClassName:function(){return a("dops-spinner",this.props.className,{"is-fallback":!this.isSVGCSSAnimationSupported()})},renderFallback:function(){var e={width:this.props.size,height:this.props.size};return r.createElement("div",{className:this.getClassName(),style:e},r.createElement("span",{className:"dops-spinner__progress is-left"}),r.createElement("span",{className:"dops-spinner__progress is-right"}))},render:function(){var e=parseInt(this.state.instanceId,10);return this.isSVGCSSAnimationSupported()?r.createElement("div",{className:this.getClassName()},r.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()}}),e.exports=i}).call(t,n(51))},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(80),i=r(a),o=n(15),s=r(o),c=n(1),u=r(c),l=n(484),d=r(l),f=n(9),p=n(855),h=r(p),m=n(799),_=r(m),M=n(804),b=r(M),g=n(858),v=r(g),y=n(8),A=n(69),w=r(A),E=n(939),k=r(E),T=n(14),L=r(T),S=n(953),C=r(S),z=n(81),O=n(28),N=n(22),D=n(27),P=n(207),x=n(499),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(){var e=this;if(this.props.userCanManageModules)return u.default.createElement(v.default,{onClick:function(){return e.trackNavClick("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},render:function(){var e=this,t=void 0,n=void 0;return this.props.userCanManageModules?t=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:function(){return e.trackNavClick("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:function(){return e.trackNavClick("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:function(){return e.trackNavClick("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:function(){return e.trackNavClick("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:function(){return e.trackNavClick("security")},selected:"/security"===this.props.route.path},(0,y.translate)("Security",{context:"Navigation item."}))):this.props.isSubscriber?t=!1:(n=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.hasAnyOfThese(["publicize"])&&u.default.createElement(b.default,{path:"#sharing",onClick:function(){return e.trackNavClick("sharing")},selected:"/sharing"===this.props.route.path},(0,y.translate)("Sharing",{context:"Navigation item."})):"",t=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:function(){return e.trackNavClick("writing")},selected:"/writing"===this.props.route.path||"/settings"===this.props.route.path},(0,y.translate)("Writing",{context:"Navigation item."})),n)),u.default.createElement("div",{className:"dops-navigation"},u.default.createElement(j.default,null),u.default.createElement(h.default,{selectedText:this.props.route.name},t,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:w.default,searchHasFocus:!1},t.default=(0,f.connect)(function(e){return{userCanManageModules:(0,O.userCanManageModules)(e),isSubscriber:(0,O.userIsSubscriber)(e),userCanPublish:(0,O.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,z.getSearchTerm)(e)}},function(e){return{searchForTerm:function(t){return e((0,z.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(10),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(960),v=r(g),y=n(1098),A=r(y),w=n(1116),E=r(w),k=n(1125),T=r(k),L=n(1146),S=r(L),C=n(1150),z=r(C),O=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(E.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(z.default,{searchTerm:this.props.searchTerm}))}}]),t}(M.default.Component);O.displayName="SearchableSettings",t.default=O,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(1),i=r(a),o=n(13),s=r(o),c=n(30),u=r(c);n(968),t.default=i.default.createClass({displayName:"SectionHeader",propTypes:{label:i.default.PropTypes.string,cardBadge:i.default.PropTypes.oneOfType([i.default.PropTypes.string,i.default.PropTypes.element,i.default.PropTypes.object])},getDefaultProps:function(){return{label:"",cardBadge:""}},render:function(){var e=(0,s.default)(this.props.className,"dops-section-header"),t=""!==this.props.cardBadge?i.default.createElement("span",{className:"dops-section-header__card-badge"},this.props.cardBadge):"";return i.default.createElement(u.default,{compact:!0,className:(0,s.default)(e,{"has-card-badge":""!==this.props.cardBadge})},i.default.createElement("div",{className:"dops-section-header__label"},i.default.createElement("span",{className:"dops-section-header__label-text"},this.props.label),t),i.default.createElement("div",{className:"dops-section-header__actions"},this.props.children))}}),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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(8),v=n(43),y=r(v),A=n(162),w=r(A),E=n(502),k=r(E),T=n(14),L=r(T),S=n(24),C=r(S),z=n(28),O=n(499),N=r(O),D=n(831),P=r(D),x=n(864),j=r(x),R=n(22),Y=n(207),I=n(62),q=n(64),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.trackProStatusClick=function(e,t){L.default.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t})},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"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(w.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(w.default,{showDismiss:!1,status:n,isCompact:!0},a,i&&M.default.createElement(k.default,{onClick:function(){return r.trackProStatusClick(e,t)},href:o},i))},r.getSetUpButton=function(e){return M.default.createElement(y.default,{onClick:function(){return r.trackProStatusClick("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?"vaultpress/vaultpress.php":"akismet/akismet.php",a=/jetpack_personal*/.test(t.product_slug),i=/jetpack_free*/.test(t.product_slug),o=(0,C.default)(n,["data","features","backups"],!1),s=(0,C.default)(n,["data","features","security"],!1);return M.default.createElement("div",null,M.default.createElement(N.default,null),M.default.createElement(j.default,null),M.default.createElement(P.default,null),function(r,c,u){if(e.props.isDevMode)return"";if("rewind"===r)return e.getProActions("rewind_connected","rewind");if("backups"===r&&i&&!o&&e.props.isCompact)return e.getProActions("free","backups");if("scan"===r){if(e.props.fetchingSiteData||e.props.isFetchingVaultPressData)return"";if((i||a)&&!s)return e.props.isCompact?e.getProActions("free","scan"):a&&!o?e.getSetUpButton("backups"):"";if("N/A"!==n){if(!s)return e.getSetUpButton("scan");var l=e.props.getScanThreats();if(0!==l)return e.getProActions("threats","scan");if(0===l)return e.getProActions("secure","scan")}}if("akismet"===r){if(i&&(!c||!u))return e.props.isCompact?e.getProActions("free","anti-spam"):"";if(!e.props.isAkismetKeyValid&&!e.props.fetchingAkismetData&&c&&u)return e.getProActions("invalid_key","anti-spam")}return t.product_slug&&!i?c&&u?e.getProActions("active"):e.getSetUpButton(r):""}(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,z.getSiteRawUrl)(e),siteAdminUrl:(0,z.getSiteAdminUrl)(e),getScanThreats:function(){return(0,I.getVaultPressScanThreatCount)(e)},getVaultPressData:function(){return(0,I.getVaultPressData)(e)},getAkismetData:function(){return(0,I.getAkismetData)(e)},isFetchingVaultPressData:(0,I.isFetchingVaultPressData)(e),sitePlan:function(){return(0,q.getSitePlan)(e)},fetchingPluginsData:(0,Y.isFetchingPluginsData)(e),pluginActive:function(t){return(0,Y.isPluginActive)(e,t)},pluginInstalled:function(t){return(0,Y.isPluginInstalled)(e,t)},isDevMode:(0,R.isDevMode)(e),fetchingSiteData:(0,q.isFetchingSiteData)(e),isAkismetKeyValid:(0,I.isAkismetKeyValid)(e),fetchingAkismetData:(0,I.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(9),_=n(20),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(977),m=r(h),_=n(1),M=r(_),b=n(149),g=r(b),v=n(102),y=r(v),A=n(13),w=r(A),E=n(987),k=r(E),T=n(996),L=r(T),S=n(25),C=r(S),z=n(1084),O=r(z),N=n(1085);n(1094);var D=function(){},P=(0,y.default)("calypso:popover"),x=new m.default,j=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));return n.setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(n),n.setPosition=n.setPosition.bind(n),n.onClickout=n.onClickout.bind(n),n.onKeydown=n.onKeydown.bind(n),n.onWindowChange=n.onWindowChange.bind(n),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.bindEscKeyListener(),this.bindDebouncedReposition(),(0,N.bindWindowListeners)()}},{key:"componentWillReceiveProps",value:function(e){if((0,N.isElement)(e.context)?this.domContext=e.context:this.domContext=g.default.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e){var t=this.props.isVisible;return t!==e.isVisible&&(t?this.show():this.hide()),this.domContainer&&this.domContext&&t&&t!==e.isVisible?(this.debug("Update position after inject DOM"),void this.setPosition()):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),(0,N.unbindWindowListeners)(),x.delete(this.id),P("current popover instances: ",x.size)}},{key:"bindEscKeyListener",value:function(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}},{key:"unbindEscKeyListener",value:function(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=(0,k.default)(e,this.onClickout))):(this.debug("no element to bind clickout side "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=g.default.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,(0,N.isElement)(this.props.context)?this.domContext=this.props.context:this.domContext=g.default.findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}},{key:"getPositionClass",value:function(){return"is-"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position).replace(/\s+/g,"-")}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props.position;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var r=n;this.debug("position: %o",n),this.props.autoPosition&&(r=(0,N.suggested)(n,e,t),this.debug("suggested position: %o",r));var a=(0,C.default)({},(0,N.constrainLeft)((0,N.offset)(r,e,t),e),{positionClass:this.getPositionClass(r)});return this.debug("updating reposition: ",a),a}},{key:"debug",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];P.apply(void 0,["[%s] "+e,this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__"+(0,L.default)(16),x.add(this.id),this.debug("creating ..."),P("current popover instances: ",x.size)}},{key:"setPosition",value:function(){var e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o",this.props.showDelay+"ms"),this.clearShowTimer(),this._openDelayTimer=setTimeout(function(){e.setState({show:!0})},this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=(0,w.default)("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),M.default.createElement(O.default,{className:this.props.rootClassName},M.default.createElement("div",{
|
32 |
style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},M.default.createElement("div",{className:"dops-popover__arrow"}),M.default.createElement("div",{className:"dops-popover__inner"},this.props.children)))}}]),t}(_.Component);j.propTypes={autoPosition:_.PropTypes.bool,className:_.PropTypes.string,closeOnEsc:_.PropTypes.bool,id:_.PropTypes.string,ignoreContext:_.PropTypes.shape({getDOMNode:M.default.PropTypes.function}),position:_.PropTypes.string,rootClassName:_.PropTypes.string,showDelay:_.PropTypes.number,onClose:_.PropTypes.func.isRequired,onShow:_.PropTypes.func},j.defaultProps={autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:D},t.default=j,e.exports=t.default},function(e,t,n){"use strict";var r=n(47).f,a=n(158),i=n(438),o=n(71),s=n(433),c=n(202),u=n(217),l=n(478),d=n(486),f=n(59),p=n(219).fastKey,h=n(833),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(35),a=n(34),i=n(219),o=n(83),s=n(72),c=n(438),u=n(202),l=n(433),d=n(48),f=n(121),p=n(47).f,h=n(980)(0),m=n(59);e.exports=function(e,t,n,_,M,b){var g=r[e],v=g,y=M?"set":"add",A=v&&v.prototype,w={};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),w[e]=v,a(a.G+a.W+a.F,w),b||_.setStrong(v,e,M),v}},function(e,t,n){var r=n(196),a=n(984);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(34);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(34),a=n(120),i=n(71),o=n(202);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(t){function r(e){a.call(this),this._block=new t(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var a=n(836).Transform;n(18)(r,a),r.prototype._transform=function(e,n,r){var a=null;try{"buffer"!==n&&(e=new t(e,n)),this.update(e)}catch(e){a=e}r(a)},r.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},r.prototype.update=function(e,n){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");t.isBuffer(e)||(e=new t(e,n||"binary"));for(var r=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[a++];this._update(),this._blockOffset=0}for(;a<e.length;)r[this._blockOffset++]=e[a++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},r.prototype._update=function(e){throw new Error("_update is not implemented")},r.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},r.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=r}).call(t,n(39).Buffer)},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(209),e=e||{},this.objectMode=!!e.objectMode,t instanceof D&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:a,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(839).StringDecoder),this.decoder=new W(e.encoding),this.encoding=e.encoding)}function c(e){if(D=D||n(209),!(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(M,e):M(e))}function M(e){B("emit readable"),e.emit("readable"),E(e)}function b(e,t){t.readingMore||(t.readingMore=!0,N(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,E(e))}}function y(e){B("readable nexttick read 0"),e.read(0)}function A(e,t){t.resumeScheduled||(t.resumeScheduled=!0,N(w,e,t))}function w(e,t){t.reading||(B("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(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(z,t,e))}function z(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function O(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}var N=n(504);e.exports=c;var D,P=n(806);c.ReadableState=s;var x=(n(147).EventEmitter,function(e,t){return e.listeners(t).length}),j=n(874),R=n(33).Buffer,Y=t.Uint8Array||function(){},I=n(462);I.inherits=n(18);var q=n(1001),B=void 0;B=q&&q.debuglog?q.debuglog("stream"):function(){};var W,U=n(1002),H=n(875);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(839).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!==O(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(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=O(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(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._readableState,n=!1,r=this;e.on("end",function(){if(B("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(a){if(B("wrapped data"),t.decoder&&(a=t.decoder.write(a)),(!t.objectMode||null!==a&&void 0!==a)&&(t.objectMode||a&&a.length)){r.push(a)||(n=!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],r.emit.bind(r,F[i]));return r._read=function(t){B("wrapped _read",t),n&&(n=!1,e.resume())},r},c._fromList=k}).call(t,n(51),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;if(r||a)return void(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o(i,this,e));this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})}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(504);e.exports={destroy:r,undestroy:a}},function(e,t,n){"use strict";function r(e){this.afterTransform=function(t,n){return a(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function a(e,t,n){var r=e._transformState;r.transforming=!1;var a=r.writecb;if(!a)return e.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),a(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&e._read(i.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState=new r(this);var t=this;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.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){o(t,e,n)}):o(t)})}function o(e,t,n){if(t)return e.emit("error",t);null!==n&&void 0!==n&&e.push(n);var r=e._writableState,a=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(a.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}e.exports=i;var s=n(209),c=n(462);c.inherits=n(18),c.inherits(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},i.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)}},i.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},i.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(18),d=n(230),f=n(33).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(18),h=n(230),m=n(33).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,w=0|this._dl,E=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],z=t[S-30+1],O=c(C,z),N=u(z,C);C=t[S-4],z=t[S-4+1];var D=l(C,z),P=d(z,C),x=t[S-14],j=t[S-14+1],R=t[S-32],Y=t[S-32+1],I=N+j|0,q=O+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,E),V=s(E,m),K=_[B],J=_[B+1],G=a(m,M,b),Q=a(E,k,T),Z=L+V|0,$=g+X+f(Z,L)|0;Z=Z+Q|0,$=$+G+f(Z,Q)|0,Z=Z+J|0,$=$+K+f(Z,J)|0,Z=Z+I|0,$=$+q+f(Z,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=E,E=w+Z|0,m=h+$+f(E,w)|0,h=p,w=A,p=r,A=y,r=n,y=v,v=Z+ee|0,n=$+te+f(v,Z)|0}this._al=this._al+v|0,this._bl=this._bl+y|0,this._cl=this._cl+A|0,this._dl=this._dl+w|0,this._el=this._el+E|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,w)|0,this._eh=this._eh+m+f(this._el,E)|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(18),i=n(1015),o=n(163),s=n(33).Buffer,c=n(834),u=n(835),l=n(840),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){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(1017),t.pbkdf2Sync=n(884)},function(e,t){var n=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!==t)throw new TypeError("Bad key length")}},function(e,t,n){(function(t){var n;if(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){d.isBuffer(e)||(e=d.from(e,l)),d.isBuffer(t)||(t=d.from(t,l)),u(n,a),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(834),s=n(835),c=n(840),u=n(882),l=n(883),d=n(33).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(463),i=n(33).Buffer,o=n(886);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]
|
33 |
-
;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(506),s=n(33).Buffer,c=n(163),u=n(18),l=n(1027),d=n(463),f=n(886);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(506),i=n(33).Buffer,o=n(163);n(18)(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(229);e.exports=o,o.simpleSieve=a,o.fermatTest=i;var c=n(56),u=new c(24),l=n(891),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(56),i=n(892);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);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(1038);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(125),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(125),i=n(464),o=n(894),s=n(104),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]),w=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,w)}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;z.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=O,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(125),M=n(464),b=n(104),g=_.rotr64_hi,v=_.rotr64_lo,y=_.shr64_hi,A=_.shr64_lo,w=_.sum64,E=_.sum64_hi,k=_.sum64_lo,T=_.sum64_4_hi,L=_.sum64_4_lo,S=_.sum64_5_hi,C=_.sum64_5_lo,z=M.BlockHash,O=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];_.inherits(r,z),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],z=this.h[13],O=this.h[14],N=this.h[15];b(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var P=O,x=N,j=l(v,y),R=d(v,y),Y=a(v,y,A,T,L),I=i(v,y,A,T,L,z),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=E(P,x,j,R),V=k(P,x,j,R);O=L,N=z,L=A,z=T,A=v,T=y,v=E(M,g,H,F),y=k(g,g,H,F),M=m,g=_,m=p,_=h,p=r,h=f,r=E(H,F,X,V),f=k(H,F,X,V)}w(this.h,0,r,f),w(this.h,2,p,h),w(this.h,4,m,_),w(this.h,6,M,g),w(this.h,8,v,y),w(this.h,10,A,T),w(this.h,12,L,z),w(this.h,14,O,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(18),o=n(466).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(1070)},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(18),c=n(465),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(18),c=n(39).Buffer,u=n(465),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(461);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(56);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(1086),i=r(a),o=n(1089),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"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}),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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(43),v=r(g),y=n(8),A=n(14),w=r(A),E=n(22),k=n(28),T=n(115),L=r(T),S=n(1152),C=r(S);n(1157);var z=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){w.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",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(){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.renderContent(),this.props.children,!this.props.isSiteConnected&&M.default.createElement("p",{className:"jp-banner__tos-blurb"},(0,y.translate)("By connecting your site 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"})}})),M.default.createElement(C.default,{show:this.state.showModal,toggleModal:this.toggleVisibility,disconnectSite:this.disconnectSite}))}}]),t}(M.default.Component);z.displayName="ConnectButton",z.propTypes={connectUser:m.default.bool,from:m.default.string,asLink:m.default.bool},z.defaultProps={connectUser:!1,from:"",asLink:!1},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,k.getSiteRawUrl)(e),isSiteConnected:(0,E.getSiteConnectionStatus)(e),isDisconnecting:(0,E.isDisconnectingSite)(e),fetchingConnectUrl:(0,E.isFetchingConnectUrl)(e),connectUrl:(0,E.getConnectUrl)(e),isLinked:(0,E.isCurrentUserLinked)(e),isUnlinking:(0,E.isUnlinkingUser)(e)}},function(e){return{disconnectSite:function(){return e((0,E.disconnectSite)())},unlinkUser:function(){return e((0,E.unlinkUser)())}}})(z)},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(491),s=r(o),c=n(1159),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(10),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(905),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(14),w=r(A),E=n(1160),k=r(E),T=n(24),L=r(T),S=n(36),C=n(910),z=r(C),O=n(1161),N=r(O),D=n(1162),P=r(D),x=n(1174),j=r(x),R=n(1176),Y=r(R),I=n(1177),q=r(I),B=n(1178),W=r(B),U=n(1180),H=r(U),F=n(1181),X=r(F),V=n(1183),K=r(V),J=n(1184),G=r(J),Q=n(499),Z=r(Q),$=n(208),ee=r($),te=n(28),ne=n(22),re=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))})]})},ae=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 w.default.tracks.recordJetpackClick("aag_manage_security_wpcom")},r=g.default.createElement(z.default,{label:(0,y.translate)("Security"),settingsPath:this.props.userCanManageModules&&"#security",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(z.default,{label:(0,y.translate)("Connections")}),g.default.createElement(G.default,null)),o="active"===(0,L.default)(this.props.rewindStatus,["state"],!1),s=[g.default.createElement(j.default,e),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(Y.default,e),g.default.createElement(W.default,t),g.default.createElement(X.default,(0,i.default)({},e,t))];if(o&&s.unshift(g.default.createElement(N.default,(0,i.default)({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules)return g.default.createElement("div",{className:"jp-at-a-glance"},g.default.createElement(Z.default,null),g.default.createElement(ee.default,null),g.default.createElement(P.default,(0,i.default)({},e,t)),re([{header:r,cards:s},{header:g.default.createElement(z.default,{label:(0,y.translate)("Performance")}),cards:[g.default.createElement(K.default,e)]}]),a);var c="";this.props.userCanViewStats&&(c=g.default.createElement(P.default,(0,i.default)({},e,t)));var u="";return this.props.getOptionValue("protect")&&(u=g.default.createElement(j.default,e)),this.props.userIsSubscriber?g.default.createElement("div",null,c,a):g.default.createElement("div",null,c,this.props.getOptionValue("protect")&&r,u,a)}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{
|
34 |
-
userCanManageModules:(0,te.userCanManageModules)(e),userCanViewStats:(0,te.userCanViewStats)(e),userIsSubscriber:(0,te.userIsSubscriber)(e),isDevMode:(0,ne.isDevMode)(e)}})((0,S.ModuleSettingsForm)(ae)),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(15),m=r(h),_=n(1),M=r(_),b=n(13),g=r(b),v=n(61),y=r(v),A=n(8),w=n(14),E=r(w),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(){E.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(497),i=n(42),o="Expected a function";e.exports=r},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(9),u=n(268),l=n(215),d=n(646),f=n(25),p=(r(f),n(919)),h=r(p),m=n(925),_=r(m),M=n(661),b=r(M),g=n(8),v=r(g),y=n(926),A=r(y),w=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}(w);(0,h.default)(),(0,_.default)();var E=window.Initial_State;E.locale=JSON.parse(E.locale),void 0!==E.locale[""]?(E.locale[""].localeSlug=E.localeSlug,Number.prototype.realToLocaleString=Number.prototype.toLocaleString,Number.prototype.toLocaleString=function(e,t){return e=e||E.localeSlug,t=t||{},this.realToLocaleString(e,t)}):E.locale={"":{localeSlug:E.localeSlug}},v.default.setLocale(E.locale);var k=(0,u.useRouterHistory)(d.createHashHistory)({queryKey:!1}),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:"*",component:A.default})))),e)}()},function(e,t,n){"use strict";var r=n(19),a=n(513),i=n(851),o=n(96),s=n(50),c=n(595),u=n(915),l=n(852),d=n(916);n(12);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(11),i=(n(65),n(19)),o=n(130),s=n(852);n(7),n(12);e.exports=r},function(e,t,n){"use strict";var r=n(851);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(106),i=r(a),o=n(853),s=r(o);t.default=i.default(s.default,"enableBeforeUnload is deprecated, use useBeforeUnload instead"),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(106),i=r(a),o=n(107),s=r(o);t.default=i.default(s.default,"enableQueries is deprecated, use useQueries instead"),e.exports=t.default},function(e,t,n){var r=(n(7),n(920)),a=!1;e.exports=function(e){e=e||{};var t=e.shouldRejectClick||r;a=!0,n(95).injection.injectEventPluginsByName({TapEventPlugin:n(921)(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:w,extractEvents:function(t,n,i,o){if(!p(t)&&!h(t))return null;if(m(t))g=E();else if(e(g,E()))return null;var s=null,l=a(b,i);return h(t)&&l<_&&(s=u.getPooled(w.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(922),s=n(150),c=n(94),u=n(97),l=n(923),d=n(210),f=n(924),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),w={touchTap:{phasedRegistrationNames:{bubbled:f({onTouchTap:null}),captured:f({onTouchTapCapture:null})},dependencies:A}},E=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){a||-1!==i.indexOf(e.keyCode)&&(a=!0,document.documentElement.classList.add("dops-accessible-focus"))}),document.addEventListener("mouseup",function(){a&&(a=!1,document.documentElement.classList.remove("dops-accessible-focus"))})}var a=!1,i=[9,32,37,38,39,40];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(9),M=n(40),b=r(M),g=n(646),v=n(268),y=n(8),A=n(792),w=r(A),E=n(854),k=r(E),T=n(860),L=r(T),S=n(861),C=r(S),z=n(1151),O=r(z),N=n(1158),D=r(N),P=n(908),x=n(22),j=n(28),R=n(113),Y=n(81),I=n(909),q=r(I),B=n(1186),W=r(B),U=n(846),H=r(U),F=n(1190),X=r(F),V=n(1191),K=r(V),J=n(1192),G=r(J),Q=n(1193),Z=r(Q),$=n(1205),ee=r($),te=n(1206),ne=r(te),re=n(14),ae=r(re),ie=n(60),oe=r(ie),se=n(1207),ce=r(se),ue=n(1211),le=r(ue),de=n(468),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)return m.default.createElement("div",{"aria-live":"assertive"},m.default.createElement(O.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=void 0,a=m.default.createElement(k.default,{route:r.props.route}),i=m.default.createElement(L.default,{route:r.props.route,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl});switch(e){case"/dashboard":n=m.default.createElement(q.default,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus});break;case"/plans":n=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":a=i,n=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"),n=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"},a,n,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(w.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(Z.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),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"],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(227);e.exports=r},function(e,t,n){var r=n(45),a=function(){return r.Date.now()};e.exports=a},function(e,t,n){function r(e,t){return(s(e)?a:o)(e,i(t,3))}var a=n(122),i=n(103),o=n(930),s=n(26);e.exports=r},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(161),i=n(52);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(92);e.exports=r},function(e,t){},function(e,t,n){"use strict";var r=n(1),a=r.createClass({displayName:"SelectDropdownSeparator",render:function(){return r.createElement("li",{className:"dops-select-dropdown__separator"})}});e.exports=a},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(940),i=n(942);e.exports={getInitialState:function(){return{searchOpen:!1}},componentWillReceiveProps:function(e){e.search||this.setState({searchOpen:!1})},doSearch:function(e){var t;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(941);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){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(806);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(943),a=n(949);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(944),u=n(945);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},w=n(946);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?w.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 E="//"===s.substr(0,2);!E||p&&y[p]||(s=s.substr(2),this.slashes=!0)}if(!y[p]&&(E||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 z="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!z)for(var O=this.hostname.split(/\./),T=0,N=O.length;T<N;T++){var D=O[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=O.slice(0,T),Y=O.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(),z||(this.hostname=c.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,z&&(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=w.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=w.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}
|
35 |
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,w=n.pathname&&n.pathname.split("/")||[],h=e.pathname&&e.pathname.split("/")||[],E=n.protocol&&!A[n.protocol];if(E&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.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]||""===w[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,w=h;else if(h.length)w||(w=[]),w.pop(),w=w.concat(h),n.search=e.search,n.query=e.query;else if(!u.isNullOrUndefined(e.search)){if(E){n.hostname=n.host=w.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(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=w.slice(-1)[0],L=(n.host||e.host||w.length>1)&&("."===T||".."===T)||""===T,S=0,C=w.length;C>=0;C--)T=w[C],"."===T?w.splice(C,1):".."===T?(w.splice(C,1),S++):S&&(w.splice(C,1),S--);if(!g&&!v)for(;S--;S)w.unshift("..");!g||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),L&&"/"!==w.join("/").substr(-1)&&w.push("");var z=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(E){n.hostname=n.host=z?"":w.length?w.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&&w.length,g&&!z&&w.unshift(""),w.length?n.pathname=w.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(O,"."),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*w>>1;r+=y)e=P(e/D);return P(r+(D+1)*e/(e+E))}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+w?w: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,E=[];for(e=u(e),_=e.length,t=L,n=0,i=T,s=0;s<_;++s)(m=e[s])<128&&E.push(x(m));for(r=a=E.length,a&&E.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+w?w:d-i,!(l<h);d+=y)g=l-h,b=y-h,E.push(x(f(h+g%b,0))),l=P(g/b);E.push(x(f(l,0))),i=p(n,M,r==a),n=0,++r}++n,++t}return E.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 z.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,w=26,E=38,k=700,T=72,L=128,S="-",C=/^xn--/,z=/[^\x20-\x7E]/,O=/[\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(88)(e),n(51))},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(947),t.encode=t.stringify=n(948)},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(950),a=n(498),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(951),i=n(489);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(160),i=n(952),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(92);e.exports=r},function(e,t,n){var r=n(122),a=n(954),i=n(476),o=n(957),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(487),i=n(955),o=n(956),s=n(122),c=n(477),u=n(488),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(223);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(480);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(60),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(10),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(9),g=n(27),v=n(113),y=n(22),A=n(81),w=n(208),E=r(w),k=n(962),T=n(1097),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(E.default,null),M.default.createElement(k.Comments,(0,i.default)({},e,{isModuleFound:this.props.isModuleFound})),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)}})(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(58),i=r(a),o=n(123),s=n(8),c=n(226),u=r(c),l=n(16),d=n(27),f=n(60),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(10),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(500),v=r(g),y=n(70),A=n(54),w=n(36),E=n(41),k=r(E),T=n(38),L=r(T),S=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)},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},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"))))),n&&M.default.createElement(y.FormFieldset,null,M.default.createElement(A.ModuleToggle,{slug:"markdown",compact:!0,activated:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_comments_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},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"))))),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")))))))}}]),t}(M.default.Component);t.Comments=(0,w.ModuleSettingsForm)(S)},function(e,t){},function(e,t,n){function r(e,t){return e&&a(e,i(t))}var a=n(225),i=n(485);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(13),M=r(_);n(966);var b=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.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.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,M.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}),m.default.createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)))}}]),t}(h.Component);b.propTypes={onChange:h.PropTypes.func,onKeyDown:h.PropTypes.func,checked:h.PropTypes.bool,disabled:h.PropTypes.bool,id:h.PropTypes.string,className:h.PropTypes.string,toggling:h.PropTypes.bool,"aria-label":h.PropTypes.string,children:h.PropTypes.node},b.defaultProps={checked:!1,disabled:!1,onKeyDown:function(){},onChange:function(){}},b.idNum=0,t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return(0,a.connect)(function(e,t){return{validValues:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof(0,o.default)(t,["module","module"])&&(r=t.module.module),(0,s.getModuleOptionValidValues)(e,r,n)},getOptionCurrentValue:function(t,n){return(0,s.getModuleOption)(e,t,n)},getSettingCurrentValue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,c.getSetting)(e,t,n)},getSiteRoles:function(){return(0,u.getSiteRoles)(e)},isUpdating:function(t){return(0,c.isUpdatingSetting)(e,t)},adminEmailAddress:(0,u.getAdminEmailAddress)(e),currentIp:(0,u.getCurrentIp)(e),siteAdminUrl:(0,u.getSiteAdminUrl)(e),isCurrentUserLinked:(0,l.isCurrentUserLinked)(e)}},function(e){return{updateOptions:function(t){return e((0,c.updateSettings)(t))},regeneratePostByEmailAddress:function(t){return e((0,c.updateSettings)(t,"regeneratePbE"))},setUnsavedSettingsFlag:function(){return e((0,c.setUnsavedSettingsFlag)())},clearUnsavedSettingsFlag:function(){return e((0,c.clearUnsavedSettingsFlag)())}}})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.connectModuleOptions=r;var a=n(9),i=n(24),o=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(27),c=n(113),u=n(28),l=n(22)},function(e,t){},function(e,t,n){function r(e){if(null==e)return 0;if(o(e))return s(e)?c(e):e.length;var t=i(e);return t==u||t==l?e.size:a(e).length}var a=n(287),i=n(206),o=n(52),s=n(482),c=n(970),u="[object Map]",l="[object Set]";e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(971),i=n(865),o=n(972);e.exports=r},function(e,t,n){var r=n(490),a=r("length");e.exports=a},function(e,t){function n(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");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(1),m=r(h),_=n(13),M=r(_),b=n(55);n(974);var 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:"getIconClassNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.plan,r=t.className,a=(0,b.getPlanClass)(n);return(0,M.default)("dops-plan-icon",a,r,e)}},{key:"getPersonalIcon",value:function(){return m.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__personal"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 125"},m.default.createElement("circle",{className:"dops-plan-icon__personal-0",cx:"62",cy:"62.1",r:"62"}),m.default.createElement("path",{className:"dops-plan-icon__personal-1",d:"M64 106.1l4-9.8v-3.5H62v14.6C62.9 107.4 63.6 106.9 64 106.1z"}),m.default.createElement("path",{className:"dops-plan-icon__personal-2",d:"M56.2 92.8v3.5l4 9.8c0.3 0.8 1.1 1.3 1.9 1.3V92.8H56.2z"}),m.default.createElement("path",{className:"dops-plan-icon__personal-2",d:"M62 32.9h17.1V2.5C73.7 0.9 68 0.1 62 0.1V32.9z"}),m.default.createElement("path",{className:"dops-plan-icon__personal-3",d:"M62 32.9V0.1c0 0 0 0 0 0 -5.9 0-11.6 0.8-17 2.4v30.5H62z"}),m.default.createElement("polygon",{className:"dops-plan-icon__personal-4",points:"62 32.9 45 32.9 48.3 48.7 53.3 92.8 62 92.8 "}),m.default.createElement("polygon",{className:"dops-plan-icon__personal-5",points:"62 32.9 79.2 32.9 75.9 48.7 70.9 92.8 62 92.8 "}))}},{key:"getPremiumIcon",value:function(){return m.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__premium"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 62 61.5"},m.default.createElement("ellipse",{className:"dops-plan-icon__premium-0",cx:"31",cy:"30.8",rx:"31",ry:"30.8"}),m.default.createElement("path",{className:"dops-plan-icon__premium-1",d:"M27.8 46.3v1.9l2.2 5.4c0.2 0.5 0.5 0.7 1 0.7v-7.9L27.8 46.3z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-2",d:"M32 53.6l2.2-5.4v-1.9H31v3.8 4.1C31.5 54.3 31.9 54 32 53.6z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-3",d:"M21.6 18c0.2 2 4.8 28.3 4.8 28.3l4.6 0.1V18H21.6z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-4",d:"M40.5 18H31v23.4 5l4.5-0.1C35.5 46.3 40.1 20.4 40.5 18z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-5",d:"M31 18V0c-3.9 0-7.7 0.7-11.2 2.1 0.7 6 1.8 15.9 1.8 15.9H31z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-6",d:"M31 18h9.5c0 0 1.1-9.9 1.8-15.9C38.8 0.7 35 0 31 0V18z"}))}},{key:"getBusinessIcon",value:function(){return m.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__business"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 124"},m.default.createElement("circle",{className:"dops-plan-icon__business-0",cx:"62",cy:"62",r:"62"}),m.default.createElement("path",{className:"dops-plan-icon__business-1",d:"M57.4 73.8c0-2.5 2-4.6 4.6-4.6V36.8h-9.6v12.1c-8 3.7-13.5 11.7-13.5 21.1 0 4.9 1.5 9.4 4.1 13.1l0 0c15.4 22.4 15.4 22.4 17 24.8h0.3V78.1C58.6 77.4 57.4 75.7 57.4 73.8L57.4 73.8z"}),m.default.createElement("path",{className:"dops-plan-icon__business-2",d:"M85.2 69.8c0-9.4-5.6-17.4-13.5-21.1v-12H62v32.5c2.5 0 4.6 2 4.6 4.6 0 1.9-1.2 3.5-2.9 4.2v29.8H64c1.6-2.4 1.6-2.4 17-24.8l0 0C83.6 79.2 85.2 74.7 85.2 69.8L85.2 69.8z"}),m.default.createElement("path",{className:"dops-plan-icon__business-3",d:"M48.6 32h-2.4c-3.2 0-5.8 2.6-5.8 5.8V38c0 3.2 2.6 5.8 5.8 5.8H62v-4.7V32 0c-7.2 0-14.1 1.2-20.6 3.5 1.1 5.5 2.5 11 4.1 16.5L48.6 32z"}),m.default.createElement("path",{className:"dops-plan-icon__business-4",d:"M62 39.1v4.7h15.8c3.2 0 5.8-2.6 5.8-5.8v-0.2c0-3.2-2.6-5.8-5.8-5.8h-2.4l3.1-12c1.6-5.5 3-11 4.1-16.5C76.1 1.2 69.2 0 62 0v32V39.1z"}))}},{key:"getDefaultIcon",value:function(){return m.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__free"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 61.8 61.8"},m.default.createElement("circle",{className:"dops-plan-icon__free-0",cx:"30.9",cy:"30.9",r:"30.9"}),m.default.createElement("polygon",{className:"dops-plan-icon__free-1",points:"41.4 32.8 30.9 22.5 20.3 32.8 30.9 51.8 "}),m.default.createElement("path",{className:"dops-plan-icon__free-2",d:"M30.9 41.6L30.9 41.6c-2 0-3.7 1.6-3.7 3.6l3.7 6.5 3.7-6.5C34.5 43.2 32.9 41.6 30.9 41.6L30.9 41.6z"}),m.default.createElement("path",{className:"dops-plan-icon__free-3",d:"M25.6 27.7c0 2.9 2.3 5.2 5.2 5.2h0.1c2.9 0 5.2-2.3 5.2-5.2v-0.1V0.4c-1.7-0.3-3.5-0.5-5.3-0.5s-3.6 0.2-5.3 0.5v27.3H25.6z"}),m.default.createElement("path",{className:"dops-plan-icon__free-4",d:"M25.6 27.6V0.4c-1.8 0.3-3.6 0.8-5.3 1.4v31C23.2 32.8 25.6 30.5 25.6 27.6z"}),m.default.createElement("path",{className:"dops-plan-icon__free-2",d:"M41.4 32.8v-31c-1.7-0.6-3.5-1.1-5.3-1.4v27.2C36.1 30.5 38.5 32.8 41.4 32.8z"}))}},{key:"render",value:function(){switch(this.props.plan){case b.PLAN_PERSONAL:case b.PLAN_JETPACK_PERSONAL:case b.PLAN_JETPACK_PERSONAL_MONTHLY:return this.getPersonalIcon();case b.PLAN_PREMIUM:case b.PLAN_JETPACK_PREMIUM:case b.PLAN_JETPACK_PREMIUM_MONTHLY:return this.getPremiumIcon();case b.PLAN_BUSINESS:case b.PLAN_JETPACK_BUSINESS:case b.PLAN_JETPACK_BUSINESS_MONTHLY:return this.getBusinessIcon();default:return this.getDefaultIcon()}}}]),t}(h.Component);t.default=g,g.propTypes={classNames:m.default.PropTypes.string,plan:m.default.PropTypes.oneOf([b.PLAN_FREE,b.PLAN_PREMIUM,b.PLAN_BUSINESS,b.PLAN_JETPACK_FREE,b.PLAN_JETPACK_BUSINESS,b.PLAN_JETPACK_BUSINESS_MONTHLY,b.PLAN_JETPACK_PREMIUM,b.PLAN_JETPACK_PREMIUM_MONTHLY,b.PLAN_JETPACK_PERSONAL,b.PLAN_JETPACK_PERSONAL_MONTHLY,b.PLAN_PERSONAL]).isRequired},e.exports=t.default},function(e,t){},function(e,t){},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(1),i=r(a),o=n(69),s=r(o),c=n(866),u=r(c),l=n(61),d=r(l),f=n(13),p=r(f),h=n(14),m=r(h);n(1095),t.default=i.default.createClass({displayName:"InfoPopover",propTypes:{id:i.default.PropTypes.string,position:i.default.PropTypes.string,className:i.default.PropTypes.string,rootClassName:i.default.PropTypes.string,gaEventCategory:i.default.PropTypes.string,popoverName:i.default.PropTypes.string,onClick:i.default.PropTypes.func,ignoreContext:i.default.PropTypes.shape({getDOMNode:i.default.PropTypes.function})},getDefaultProps:function(){return{position:"bottom",onClick:s.default}},getInitialState:function(){return{showPopover:!1}},render:function(){var e=(0,p.default)("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return i.default.createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},i.default.createElement(d.default,{icon:"info-outline",size:18}),this.props.screenReaderText?i.default.createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",i.default.createElement(u.default,{id:this.props.id,isVisible:this.state.showPopover,context:this.refs&&this.refs.infoPopover,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className:(0,p.default)("dops-info-popover__tooltip",this.props.className),rootClassName:this.props.rootClassName},this.props.children))},_onClick:function(e){this.props.onClick(),e.preventDefault(),this.setState({showPopover:!this.state.showPopover},this._recordStats)},_onClose:function(){this.setState({showPopover:!1},this._recordStats)},_recordStats:function(){var e=this.props,t=e.gaEventCategory,n=e.popoverName;if(t&&n){var r=this.state.showPopover?" Opened":" Closed"
|
36 |
;m.default.ga.recordEvent(t,"InfoPopover: "+n+r)}}}),e.exports=t.default},function(e,t,n){e.exports={default:n(978),__esModule:!0}},function(e,t,n){n(195),n(109),n(137),n(979),n(983),n(985),n(986),e.exports=n(21).Set},function(e,t,n){"use strict";var r=n(867),a=n(833);e.exports=n(868)("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){var r=n(71),a=n(218),i=n(100),o=n(159),s=n(981);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(982);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(48),a=n(479),i=n(32)("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(34);r(r.P+r.R,"Set",{toJSON:n(869)("Set")})},function(e,t,n){var r=n(202);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(870)("Set")},function(e,t,n){n(871)("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(988),c=r(s);t.default=a;var u=n(994),l=r(u),d=n(995),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(989),__esModule:!0}},function(e,t,n){n(195),n(109),n(137),n(990),n(991),n(992),n(993),e.exports=n(21).Map},function(e,t,n){"use strict";var r=n(867),a=n(833);e.exports=n(868)("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(34);r(r.P+r.R,"Map",{toJSON:n(869)("Map")})},function(e,t,n){n(870)("Map")},function(e,t,n){n(871)("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(997);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(229),t.createHash=t.Hash=n(461),t.createHmac=t.Hmac=n(879);var r=n(1016),a=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);t.getHashes=function(){return i};var o=n(881);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(1018);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(1036);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(1041);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(1079);var l=n(1080);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var d=n(1083);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,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function a(e){return 3*e.length/4-r(e)}function i(e){var t,n,a,i,o,s=e.length;i=r(e),o=new d(3*s/4-i),n=i>0?s-4:s;var c=0;for(t=0;t<n;t+=4)a=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],o[c++]=a>>16&255,o[c++]=a>>8&255,o[c++]=255&a;return 2===i?(a=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,o[c++]=255&a):1===i&&(a=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,o[c++]=a>>8&255,o[c++]=255&a),o}function o(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function s(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(o(r));return a.join("")}function c(e){for(var t,n=e.length,r=n%3,a="",i=[],o=0,c=n-r;o<c;o+=16383)i.push(s(e,o,o+16383>c?c:o+16383));return 1===r?(t=e[n-1],a+=u[t>>2],a+=u[t<<4&63],a+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],a+=u[t>>10],a+=u[t>>4&63],a+=u[t<<2&63],a+="="),i.push(a),i.join("")}t.byteLength=a,t.toByteArray=i,t.fromByteArray=c;for(var u=[],l=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,h=f.length;p<h;++p)u[p]=f[p],l[f.charCodeAt(p)]=p;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?a-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+d],d+=f,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=r;l>0;o=256*o+e[t+d],d+=f,l-=8);if(0===i)i=1-u;else{if(i===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=u}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,c,u=8*i-a-1,l=(1<<u)-1,d=l>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),t+=o+d>=1?f/c:f*Math.pow(2,1-d),t*c>=2&&(o++,c/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*c-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&s,p+=h,s/=256,a-=8);for(o=o<<a|s,u+=a;u>0;e[n+p]=255&o,p+=h,o/=256,u-=8);e[n+p-h]|=128*m}},function(e,t,n){"use strict";(function(t){function n(e){if(e.length%r!=0){var n=e.length+(r-e.length%r);e=t.concat([e,a],n)}for(var i=new Array(e.length>>>2),o=0,s=0;o<e.length;o+=r,s++)i[s]=e.readInt32LE(o);return i}var r=4,a=new t(r);a.fill(0);e.exports=function(e,r){var a=r(n(e),8*e.length);e=new t(16);for(var i=0;i<a.length;i++)e.writeInt32LE(a[i],i<<2,!0);return e}}).call(t,n(39).Buffer)},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(33).Buffer;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}()},function(e,t,n){function r(e,t){this._id=e,this._clearFn=t}var a=Function.prototype.apply;t.setTimeout=function(){return new r(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(a.call(setInterval,window,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(window,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(1004),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},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(51),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(51))},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(876),i=n(462);i.inherits=n(18),i.inherits(r,a),r.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(838)},function(e,t,n){e.exports=n(209)},function(e,t,n){e.exports=n(837).Transform},function(e,t,n){e.exports=n(837).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(18),c=n(230),u=n(33).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(18),u=n(230),l=n(33).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(18),i=n(877),o=n(230),s=n(33).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(18),i=n(878),o=n(230),s=n(33).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(18),i=n(33).Buffer,o=n(163),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(880)},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(882),u=n(883),l=n(884),d=n(33).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){if(d.isBuffer(e)||(e=d.from(e,u)),d.isBuffer(n)||(n=d.from(n,u)),c(s,f),"function"==typeof h&&(m=h,h=void 0),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");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)});o(a(_).then(function(t){return t?i(e,n,s,f,_):l(e,n,s,f,h)}),m)}}).call(t,n(51),n(63))},function(e,t,n){function r(e,t){var n,r;if(e=e.toLowerCase(),f[e])n=f[e].key,r=f[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var a=c(t,!1,n,r);return i(e,a.key,a.iv)}function a(e,t){var n,r;if(e=e.toLowerCase(),f[e])n=f[e].key,r=f[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var a=c(t,!1,n,r);return o(e,a.key,a.iv)}function i(e,t,n){if(e=e.toLowerCase(),f[e])return u.createCipheriv(e,t,n);if(d[e])return new l({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function o(e,t,n){if(e=e.toLowerCase(),f[e])return u.createDecipheriv(e,t,n);if(d[e])return new l({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(505),u=n(841),l=n(1029),d=n(1035),f=n(842);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){"use strict";(function(t){function r(){l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function a(e,t){return e<<t|e>>>32-t}function i(e,t,n,r,i,o,s){return a(e+(t&n|~t&r)+i+o|0,s)+t|0}function o(e,t,n,r,i,o,s){return a(e+(t&r|n&~r)+i+o|0,s)+t|0}function s(e,t,n,r,i,o,s){return a(e+(t^n^r)+i+o|0,s)+t|0}function c(e,t,n,r,i,o,s){return a(e+(n^(t|~r))+i+o|0,s)+t|0}var u=n(18),l=n(872),d=new Array(16);u(r,l),r.prototype._update=function(){for(var e=d,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,a=this._c,u=this._d;n=i(n,r,a,u,e[0],3614090360,7),u=i(u,n,r,a,e[1],3905402710,12),a=i(a,u,n,r,e[2],606105819,17),r=i(r,a,u,n,e[3],3250441966,22),n=i(n,r,a,u,e[4],4118548399,7),u=i(u,n,r,a,e[5],1200080426,12),a=i(a,u,n,r,e[6],2821735955,17),r=i(r,a,u,n,e[7],4249261313,22),n=i(n,r,a,u,e[8],1770035416,7),u=i(u,n,r,a,e[9],2336552879,12),a=i(a,u,n,r,e[10],4294925233,17),r=i(r,a,u,n,e[11],2304563134,22),n=i(n,r,a,u,e[12],1804603682,7),u=i(u,n,r,a,e[13],4254626195,12),a=i(a,u,n,r,e[14],2792965006,17),r=i(r,a,u,n,e[15],1236535329,22),n=o(n,r,a,u,e[1],4129170786,5),u=o(u,n,r,a,e[6],3225465664,9),a=o(a,u,n,r,e[11],643717713,14),r=o(r,a,u,n,e[0],3921069994,20),n=o(n,r,a,u,e[5],3593408605,5),u=o(u,n,r,a,e[10],38016083,9),a=o(a,u,n,r,e[15],3634488961,14),r=o(r,a,u,n,e[4],3889429448,20),n=o(n,r,a,u,e[9],568446438,5),u=o(u,n,r,a,e[14],3275163606,9),a=o(a,u,n,r,e[3],4107603335,14),r=o(r,a,u,n,e[8],1163531501,20),n=o(n,r,a,u,e[13],2850285829,5),u=o(u,n,r,a,e[2],4243563512,9),a=o(a,u,n,r,e[7],1735328473,14),r=o(r,a,u,n,e[12],2368359562,20),n=s(n,r,a,u,e[5],4294588738,4),u=s(u,n,r,a,e[8],2272392833,11),a=s(a,u,n,r,e[11],1839030562,16),r=s(r,a,u,n,e[14],4259657740,23),n=s(n,r,a,u,e[1],2763975236,4),u=s(u,n,r,a,e[4],1272893353,11),a=s(a,u,n,r,e[7],4139469664,16),r=s(r,a,u,n,e[10],3200236656,23),n=s(n,r,a,u,e[13],681279174,4),u=s(u,n,r,a,e[0],3936430074,11),a=s(a,u,n,r,e[3],3572445317,16),r=s(r,a,u,n,e[6],76029189,23),n=s(n,r,a,u,e[9],3654602809,4),u=s(u,n,r,a,e[12],3873151461,11),a=s(a,u,n,r,e[15],530742520,16),r=s(r,a,u,n,e[2],3299628645,23),n=c(n,r,a,u,e[0],4096336452,6),u=c(u,n,r,a,e[7],1126891415,10),a=c(a,u,n,r,e[14],2878612391,15),r=c(r,a,u,n,e[5],4237533241,21),n=c(n,r,a,u,e[12],1700485571,6),u=c(u,n,r,a,e[3],2399980690,10),a=c(a,u,n,r,e[10],4293915773,15),r=c(r,a,u,n,e[1],2240044497,21),n=c(n,r,a,u,e[8],1873313359,6),u=c(u,n,r,a,e[15],4264355552,10),a=c(a,u,n,r,e[6],2734768916,15),r=c(r,a,u,n,e[13],1309151649,21),n=c(n,r,a,u,e[4],4149444226,6),u=c(u,n,r,a,e[11],3174756917,10),a=c(a,u,n,r,e[2],718787259,15),r=c(r,a,u,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+u|0},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=r}).call(t,n(39).Buffer)},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(842),c=n(888),u=n(33).Buffer,l=n(889),d=n(163),f=n(506),p=n(505);n(18)(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(463);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(33).Buffer,i=n(463);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(33).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(33).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(463);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(33).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){for(var t=e[15],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(888),u=n(33).Buffer,l=n(842),d=n(889),f=n(163),p=n(506),h=n(505);n(18)(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,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(163),i=n(843),o=n(18),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},
|
37 |
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(104);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(104),o=n(18),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(104),o=n(18),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(104),o=n(18),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){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)))}var i=n(890),o=n(1039),s=n(1040),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(56),u=n(891),l=new u,d=new c(24),f=new c(11),p=new c(10),h=new c(3),m=new c(7),_=n(890),M=n(229);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(461),c=n(836),u=n(18),l=n(1042),d=n(1078),f=n(880);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(879),p=n(844),h=n(84).ec,m=n(56),_=n(508),M=n(901);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(56),l=n(104),d=n(893);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(56),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),w=this._wnafT4,d=l;d>=0;d--){for(var E=0;d>=0;){for(var k=!0,g=0;g<r;g++)w[g]=0|s[g][d],0!==w[g]&&(k=!1);if(!k)break;E++,d--}if(d>=0&&E++,A=A.dblp(E),d<0)break;for(var g=0;g<r;g++){var f,T=w[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(507),s=n(84),c=n(56),u=n(18),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){
|
@@ -40,11 +40,11 @@ points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e
|
|
40 |
this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?s(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||s(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},r.prototype.derive=function(e){return e.mul(this.priv).getX()},r.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},r.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";function r(e,t){if(e instanceof r)return e;this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new c(e.r,16),this.s=new c(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function i(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,a=0,i=0,o=t.place;i<r;i++,o++)a<<=8,a|=e[o];return t.place=o,a}function o(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function s(e,t){if(t<128)return void e.push(t);var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}var c=n(56),u=n(84),l=u.utils,d=l.assert;e.exports=r,r.prototype._importDER=function(e,t){e=l.toArray(e,t);var n=new a;if(48!==e[n.place++])return!1;if(i(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var r=i(e,n),o=e.slice(n.place,r+n.place);if(n.place+=r,2!==e[n.place++])return!1;var s=i(e,n);if(e.length!==s+n.place)return!1;var u=e.slice(n.place,s+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new c(o),this.s=new c(u),this.recoveryParam=null,!0},r.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=o(t),n=o(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];s(r,t.length),r=r.concat(t),r.push(2),s(r,n.length);var a=r.concat(n),i=[48];return s(i,a.length),i=i.concat(a),l.encode(i,e)}},function(e,t,n){"use strict";function r(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof r))return new r(e);var e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=a.sha512}var a=n(845),i=n(84),o=i.utils,s=o.assert,c=o.parseBytes,u=n(1062),l=n(1063);e.exports=r,r.prototype.sign=function(e,t){e=c(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),a=this.g.mul(r),i=this.encodePoint(a),o=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),s=r.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:s,Rencoded:i})},r.prototype.verify=function(e,t,n){e=c(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),a=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(a)).eq(i)},r.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},r.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},r.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},r.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},r.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},r.prototype.decodePoint=function(e){e=o.parseBytes(e);var t=e.length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),a=o.intFromLE(n);return this.curve.pointFromY(a,r)},r.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},r.prototype.decodeInt=function(e){return o.intFromLE(e)},r.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";function r(e,t){this.eddsa=e,this._secret=s(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=s(t.pub)}var a=n(84),i=a.utils,o=i.assert,s=i.parseBytes,c=i.cachedProperty;r.fromPublic=function(e,t){return t instanceof r?t:new r(e,{pub:t})},r.fromSecret=function(e,t){return t instanceof r?t:new r(e,{secret:t})},r.prototype.secret=function(){return this._secret},c(r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(r,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),c(r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),r.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},r.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},r.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},r.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=r},function(e,t,n){"use strict";function r(e,t){this.eddsa=e,"object"!=typeof t&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),s(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof a&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}var a=n(56),i=n(84),o=i.utils,s=o.assert,c=o.cachedProperty,u=o.parseBytes;c(r,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(r,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(r,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(r,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=r},function(e,t,n){"use strict";var r=n(465);t.certificate=n(1075);var a=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=a;var i=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=i;var o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=o;var s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=u;var l=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=l,t.DSAparam=r.define("DSAparam",function(){this.int()});var d=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=d;var f=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,n){function r(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}var a=n(465),i=n(18);t.define=function(e,t){return new r(e,t)},r.prototype._createNamed=function(e){var t;try{t=n(1066).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},r.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(a.decoders[e])),this.decoders[e]},r.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},r.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(a.encoders[e])),this.encoders[e]},r.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(1067),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,a=n.execScript;!r&&a&&(a.call(n,"null"),r=n.eval),forEach(Object_keys(e),function(t){n[t]=e[t]}),forEach(globals,function(t){e[t]&&(n[t]=e[t])});var i=Object_keys(n),o=r.call(n,this.code);return forEach(Object_keys(n),function(t){(t in e||-1===indexOf(i,t))&&(e[t]=n[t])}),forEach(globals,function(t){t in e||defineProp(e,t,n[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return forEach(Object_keys(t),function(n){e[n]=t[n]}),n},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(n){t[n]=e[n]}),t}},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}var i=n(18);t.Reporter=r,r.prototype.isError=function(e){return e instanceof a},r.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},r.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},r.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){function r(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var a=n(466).Reporter,i=n(466).EncoderBuffer,o=n(466).DecoderBuffer,s=n(104),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];e.exports=r;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];r.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(n){t[n]=e[n]});var n=new this.constructor(t.parent);return n._baseState=t,n},r.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},r.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n}),t}))},l.forEach(function(e){r.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),c.forEach(function(e){r.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}}),r.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},r.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},r.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},r.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},r.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},r.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},r.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r=n.default,a=!0,i=null;if(null!==n.key&&(i=e.enterKey(n.key)),n.optional){var s=null;if(null!==n.explicit?s=n.explicit:null!==n.implicit?s=n.implicit:null!==n.tag&&(s=n.tag),null!==s||n.any){if(a=this._peekTag(e,s,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}var u;if(n.obj&&a&&(u=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)var c=e.save();var f=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?r=e.raw(c):e=f}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),r=n.any?r:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(r))return r;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new o(r);r=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&a&&(r=e.leaveObject(u)),null===n.key||null===r&&!0!==a?null!==i&&e.exitKey(i):e.leaveKey(i,n.key,r),r},r.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},r.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},r.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,a=!1;return Object.keys(n.choice).some(function(i){var o=e.save(),s=n.choice[i];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:i,value:c},a=!0}catch(t){return e.restore(o),!1}return!0},this),a?r:e.error("Choice not matched")},r.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},r.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var a=this._encodeValue(e,t,n);if(void 0!==a&&!this._skipDefault(a,t,n))return a}},r.prototype._encodeValue=function(e,t,n){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new a);var i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}var o=null,s=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,n)._encode(e,t),s=!0;else if(r.children)o=r.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var a=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),a},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)},c))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(o=this._encodePrimitive(r.tag,e),s=!0);var i;if(!r.any&&null===r.choice){var u=null!==r.implicit?r.implicit:r.tag,l=null===r.implicit?"universal":"context";null===u?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(u,s,l,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},r.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},r.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},r.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},r.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(898);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(899),r.pem=n(1072)},function(e,t,n){function r(e){o.call(this,e),this.enc="pem"}var a=n(18),i=n(39).Buffer,o=n(899);a(r,o),e.exports=r,r.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u<n.length;u++){var l=n[u].match(a);if(null!==l&&l[2]===r){if(-1!==s){if("END"!==l[1])break;c=u;break}if("BEGIN"!==l[1])break;s=u}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);var d=n.slice(s+1,c).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new i(d,"base64");return o.prototype.decode.call(this,f,t)}},function(e,t,n){var r=t;r.der=n(900),r.pem=n(1074)},function(e,t,n){function r(e){i.call(this,e),this.enc="pem"}var a=n(18),i=n(900);a(r,i),e.exports=r,r.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e),r=n.toString("base64"),a=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)a.push(r.slice(o,o+64));return a.push("-----END "+t.label+"-----"),a.join("\n")}},function(e,t,n){"use strict";var r=n(465),a=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),i=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(i)}),u=r.define("RDNSequence",function(){this.seqof(c)}),l=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),d=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),f=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(l),this.key("validity").use(d),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),h=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});e.exports=h},function(e,t){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(e,t,n){(function(t){var r=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,a=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,o=n(505),s=n(841);e.exports=function(e,n){var c,u=e.toString(),l=u.match(r);if(l){var d="aes"+l[1],f=new t(l[2],"hex"),p=new t(l[3].replace(/\r?\n/g,""),"base64"),h=o(n,f.slice(0,8),parseInt(l[1],10)).key,m=[],_=s.createDecipheriv(d,h,f);m.push(_.update(p)),m.push(_.final()),c=t.concat(m)}else{var M=u.match(i);c=new t(M[2].replace(/\r?\n/g,""),"base64")}return{tag:u.match(a)[1],data:c}}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n,r,o,c){var l=u(r);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return a(e,n,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return i(e,n,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");n=t.concat([c,n]);for(var d=l.modulus.byteLength(),f=[1],p=0;n.length+f.length+2<d;)f.push(255),p++;f.push(0);for(var h=-1;++h<n.length;)f.push(n[h]);f=new t(f);var m=s.mont(l.modulus);e=new s(e).toRed(m),e=e.redPow(new s(l.publicExponent)),e=new t(e.fromRed().toArray());var _=p<8?1:0;for(d=Math.min(e.length,f.length),e.length!==f.length&&(_=1),h=-1;++h<d;)_|=e[h]^f[h];return 0===_}function a(e,t,n){var r=l[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new c(r),i=n.data.subjectPrivateKey.data;return a.verify(t,e,i)}function i(e,t,n){var r=n.data.p,a=n.data.q,i=n.data.g,c=n.data.pub_key,l=u.signature.decode(e,"der"),d=l.s,f=l.r;o(d,a),o(f,a);var p=s.mont(r),h=d.invm(a);return 0===i.toRed(p).redPow(new s(t).mul(h).mod(a)).fromRed().mul(c.toRed(p).redPow(f.mul(h).mod(a)).fromRed()).mod(r).mod(a).cmp(f)}function o(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}var s=n(56),c=n(84).ec,u=n(508),l=n(901);e.exports=r}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e){this.curveType=s[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function a(e,n,r){Array.isArray(e)||(e=e.toArray());var a=new t(e);if(r&&a.length<r){var i=new t(r-a.length);i.fill(0),a=t.concat([i,a])}return n?a.toString(n):a}var i=n(84),o=n(56);e.exports=function(e){return new r(e)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,r.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},r.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},r.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),a(n,e)},r.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},r.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},r.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new o(e);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(t,n(39).Buffer)},function(e,t,n){t.publicEncrypt=n(1081),t.privateDecrypt=n(1082),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){(function(t){function r(e,n){var r=e.modulus.byteLength(),a=n.length,i=c("sha1").update(new t("")).digest(),o=i.length,f=2*o;if(a>r-f-2)throw new Error("message too long");var p=new t(r-a-f-2);p.fill(0);var h=r-o-1,m=s(o),_=l(t.concat([i,p,new t([1]),n],h),u(m,h)),M=l(m,u(_,o));return new d(t.concat([new t([0]),M,_],r))}function a(e,n,r){var a=n.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");var s;return r?(s=new t(o-a-3),s.fill(255)):s=i(o-a-3),new d(t.concat([new t([0,r?1:2]),s,new t([0]),n],o))}function i(e,n){for(var r,a=new t(e),i=0,o=s(2*e),c=0;i<e;)c===o.length&&(o=s(2*e),c=0),(r=o[c++])&&(a[i++]=r);return a}var o=n(508),s=n(229),c=n(461),u=n(902),l=n(903),d=n(56),f=n(904),p=n(844);e.exports=function(e,t,n){var i;i=e.padding?e.padding:n?1:4;var s,c=o(e);if(4===i)s=r(c,t);else if(1===i)s=a(c,t,n);else{if(3!==i)throw new Error("unknown padding");if(s=new d(t),s.cmp(c.modulus)>=0)throw new Error("data too long for modulus")}return n?p(s,c):f(s,c)}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n){var r=(e.modulus,e.modulus.byteLength()),a=(n.length,d("sha1").update(new t("")).digest()),o=a.length;if(0!==n[0])throw new Error("decryption error");var u=n.slice(1,o+1),l=n.slice(o+1),f=c(u,s(l,o)),p=c(l,s(f,r-o-1));if(i(a,p.slice(0,o)))throw new Error("decryption error");for(var h=o;0===p[h];)h++;if(1!==p[h++])throw new Error("decryption error");return p.slice(h)}function a(e,t,n){for(var r=t.slice(0,2),a=2,i=0;0!==t[a++];)if(a>=t.length){i++;break}var o=t.slice(2,a-1);t.slice(a-1,a);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++,o.length<8&&i++,i)throw new Error("decryption error");return t.slice(a)}function i(e,n){e=new t(e),n=new t(n);var r=0,a=e.length;e.length!==n.length&&(r++,a=Math.min(e.length,n.length));for(var i=-1;++i<a;)r+=e[i]^n[i];return r}var o=n(508),s=n(902),c=n(903),u=n(56),l=n(844),d=n(461),f=n(904);e.exports=function(e,n,i){var s;s=e.padding?e.padding:i?1:4;var c=o(e),d=c.modulus.byteLength();if(n.length>d||new u(n).cmp(c.modulus)>=0)throw new Error("decryption error");var p;p=i?f(new u(n),c):l(n,c);var h=new t(d-p.length);if(h.fill(0),p=t.concat([h,p],d),4===s)return r(c,p);if(1===s)return a(c,p,i);if(3===s)return p;throw new Error("unknown padding")}}).call(t,n(39).Buffer)},function(e,t,n){"use strict";(function(e,r){function a(){
|
41 |
throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function i(e,t){if("number"!=typeof e||e!==e)throw new TypeError("offset must be a number");if(e>m||e<0)throw new TypeError("offset must be a uint32");if(e>p||e>t)throw new RangeError("offset out of range")}function o(e,t,n){if("number"!=typeof e||e!==e)throw new TypeError("size must be a number");if(e>m||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>p)throw new RangeError("buffer too small")}function s(t,n,r,a){if(!(f.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)a=n,n=0,r=t.length;else if("function"==typeof r)a=r,r=t.length-n;else if("function"!=typeof a)throw new TypeError('"cb" argument must be a function');return i(n,t.length),o(r,n,t.length),c(t,n,r,a)}function c(e,t,n,a){if(r.browser){var i=e.buffer,o=new Uint8Array(i,t,n);return h.getRandomValues(o),a?void r.nextTick(function(){a(null,e)}):e}return a?void d(n,function(n,r){if(n)return a(n);r.copy(e,t),a(null,e)}):(d(n).copy(e,t),e)}function u(t,n,r){if(void 0===n&&(n=0),!(f.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return i(n,t.length),void 0===r&&(r=t.length-n),o(r,n,t.length),c(t,n,r)}var l=n(33),d=n(229),f=l.Buffer,p=l.kMaxLength,h=e.crypto||e.msCrypto,m=Math.pow(2,32)-1;h&&h.getRandomValues||!r.browser?(t.randomFill=s,t.randomFillSync=u):(t.randomFill=a,t.randomFillSync=a)}).call(t,n(51),n(63))},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(80),i=r(a),o=n(149),s=r(o),c=n(1),u=r(c),l=n(9);t.default=u.default.createClass({displayName:"RootChild",propTypes:{children:c.PropTypes.node},contextTypes:{store:c.PropTypes.object},componentDidMount:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()},componentDidUpdate:function(){this.renderChildren()},componentWillUnmount:function(){this.container&&(s.default.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)},renderChildren:function(){var e;e=this.props&&((0,i.default)(this.props).length>1||!this.props.children)?u.default.createElement("div",this.props,this.props.children):this.props.children,this.context.store&&(e=u.default.createElement(l.Provider,{store:this.context.store},e)),s.default.render(e,this.container)},render:function(){return null}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,b("viewport: %o",e),e}function i(){y=a()}function o(e,t){for(var n=[e,g[e],v[e],g[v[e]]],r=-1/0,a=void 0,i=0,o=n.length;i<o;i++){var s=n[i],c=t[s];if(c>0)return s;c>r&&(r=c,a=e)}return a}function s(e,t,n,r,a,i){for(var o=t?[e+" "+t,e,e+" "+g[t]]:[e,e+" "+v[e],e+" "+g[v[e]]],s=void 0,u=0,l=a*i,d=0,f=o.length;d<f;d++){var p=o[d],h=c(p,n,r),m=h.left+a,_=h.top+i,M=Math.min(h.top<y.top?_-y.top:y.bottom-h.top,i),b=Math.min(h.left<y.left?m-y.left:y.right-h.left,a),A=b*M;if(A===l)return p;A>u&&(u=A,s=p)}return s}function c(e,t,n){var r=(0,m.default)(t);if(!r)throw new Error("could not get bounding client rect of Tip element");var a=r.width,i=r.height,o=(0,m.default)(n);if(!o)throw new Error("could not get bounding client rect of `target`");var s=o.width,c=o.height,l=u(o,document);if(!l)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:l.top-i,left:l.left+s/2-a/2};break;case"bottom":d={top:l.top+c,left:l.left+s/2-a/2};break;case"right":d={top:l.top+c/2-i/2,left:l.left+s};break;case"left":d={top:l.top+c/2-i/2,left:l.left-a};break;case"top left":d={top:l.top-i,left:l.left+s/2-a+15};break;case"top right":d={top:l.top-i,left:l.left+s/2-15};break;case"bottom left":d={top:l.top+c,left:l.left+s/2-a+15};break;case"bottom right":d={top:l.top+c,left:l.left+s/2-15};break;case"left top":d={top:l.top+c/2-i,left:l.left-a};break;case"left bottom":d={top:l.top+c/2,left:l.left-a};break;case"right top":d={top:l.top+c/2-i,left:l.left+s};break;case"right bottom":d={top:l.top+c/2,left:l.left+s};break;default:throw new Error('invalid position "'+e+'"')}return d}function u(e,t){var n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,a=r.clientTop||n.clientTop||0,i=r.clientLeft||n.clientLeft||0,o=window.pageYOffset||r.scrollTop,s=window.pageXOffset||r.scrollLeft;return{top:e.top+o-a,left:e.left+s-i}}Object.defineProperty(t,"__esModule",{value:!0}),t.isElement=t.offset=t.suggested=t.unbindWindowListeners=t.bindWindowListeners=t.constrainLeft=void 0;var l=n(58),d=r(l),f=n(905),p=r(f),h=n(1092),m=r(h),_=n(102),M=r(_),b=(0,M.default)("calypso:popover:util"),g={top:"bottom",bottom:"top",left:"right",right:"left"},v={top:"right",left:"top",bottom:"left",right:"bottom"},y=a(),A=!1,w=function(){if(A)return b("window events already bound");A=!0,b("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",i,!0),window.addEventListener("scroll",i,!0)},E=function(){if(!A)return b("window events are not bound");A=!1,b("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",i,!0),window.removeEventListener("scroll",i,!0)},k=function(e,t,n){var r=(0,m.default)(n),a=t.clientHeight,i=t.clientWidth,c={top:r.top-a,bottom:y.height-r.bottom-a,left:r.left-i,right:y.width-r.right-i},u=e.split(/\s+/),l=(0,p.default)(u,1),d=l[0],f=(0,p.default)(u,2),h=f[1],_=o(d,c);return h!==_&&h!==g[_]||(h=null),s(_,h,t,n,i,a)||e},T=function(e,t){var n=(0,m.default)(t).width;return e.left=Math.max(0,Math.min(e.left,y.width-n)),e},L=function(e){try{return e instanceof HTMLElement}catch(t){return"object"===(void 0===e?"undefined":(0,d.default)(e))&&1===e.nodeType&&"object"===(0,d.default)(e.style)&&"object"===(0,d.default)(e.ownerDocument)}};t.constrainLeft=T,t.bindWindowListeners=w,t.unbindWindowListeners=E,t.suggested=k,t.offset=c,t.isElement=L},function(e,t,n){e.exports={default:n(1087),__esModule:!0}},function(e,t,n){n(137),n(109),e.exports=n(1088)},function(e,t,n){var r=n(196),a=n(32)("iterator"),i=n(99);e.exports=n(21).isIterable=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){e.exports={default:n(1090),__esModule:!0}},function(e,t,n){n(137),n(109),e.exports=n(1091)},function(e,t,n){var r=n(53),a=n(220);e.exports=n(21).getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){function r(e){var t=null,n=a(e);if(3===e.nodeType){var r=n.createRange();r.selectNodeContents(e),e=r}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var i=n.createElement("span");i.appendChild(n.createTextNode("")),e.insertNode(i),t=i.getBoundingClientRect();var o=i.parentNode;o.removeChild(i),o.normalize()}return t}var a=n(1093);e.exports=r},function(e,t){function n(e){return e&&e.nodeType===a}function r(e){return n(e)?e:n(e.ownerDocument)?e.ownerDocument:n(e.document)?e.document:e.parentNode?r(e.parentNode):e.commonAncestorContainer?r(e.commonAncestorContainer):e.startContainer?r(e.startContainer):e.anchorNode?r(e.anchorNode):void 0}e.exports=r;var a=9},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Subscriptions=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(124),A=r(y),w=n(30),E=r(w),k=n(14),T=r(k),L=n(70),S=n(54),C=n(36),z=n(41),O=r(z),N=n(38),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={stb_enabled:r.props.getOptionValue("stb_enabled","subscriptions"),stc_enabled:r.props.getOptionValue("stc_enabled","subscriptions")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("subscriptions",e))},r.trackConfigureClick=function(){T.default.tracks.recordJetpackClick("view-followers")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("subscriptions"),n=this.props.getOptionValue("subscriptions"),r=this.props.isUnavailableInDevMode("subscriptions");return g.default.createElement(O.default,(0,i.default)({},this.props,{hideButton:!0,module:"subscriptions"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:t},g.default.createElement(S.ModuleToggle,{slug:"subscriptions",disabled:r,activated:n,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),g.default.createElement(L.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.stb_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:function(){return e.updateOptions("stb_enabled")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "follow blog" option in the comment form'))),g.default.createElement(A.default,{checked:this.state.stc_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:function(){return e.updateOptions("stc_enabled")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "follow comments" option in the comment form'))))),function(){return r||!n?"":e.props.isLinked?g.default.createElement(E.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackConfigureClick,href:"https://wordpress.com/people/email-followers/"+e.props.siteRawUrl},(0,v.translate)("View your Email Followers")):g.default.createElement(E.default,{compact:!0,className:"jp-settings-card__configure-link",href:e.props.connectUrl+"&from=unlinked-user-connect-masterbar"},(0,v.translate)("Connect your user account to WordPress.com to view your email followers")," ")}())}}]),t}(g.default.Component);t.Subscriptions=(0,C.ModuleSettingsForm)(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Security=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(1),m=r(h),_=n(9),M=n(24),b=r(M),g=n(27),v=n(113),y=n(22),A=n(81),w=n(207),E=n(208),k=r(E),T=n(864),L=r(T),S=n(1099),C=r(S),z=n(1100),O=r(z),N=n(1112),D=n(1115),P=t.Security=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.isAkismetFound=function(){if(!r.props.isPluginActive("akismet/akismet.php"))return!1;if(r.props.searchTerm){var e=r.props.isPluginInstalled("akismet/akismet.php");return["akismet","antispam","spam","comments",e.Description,e.PluginURI].join(" ").toLowerCase().indexOf(r.props.searchTerm.toLowerCase())>-1}return!0},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,rewindStatus:this.props.rewindStatus,siteRawUrl:this.props.siteRawUrl},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),a="active"===(0,b.default)(this.props.rewindStatus,["state"],!1),i=this.props.isModuleFound("vaultpress")||a;return(this.props.searchTerm||this.props.active)&&(n||t||r||i)?m.default.createElement("div",null,m.default.createElement(k.default,null),i&&m.default.createElement(C.default,e),r&&m.default.createElement("div",null,m.default.createElement(O.default,e),m.default.createElement(L.default,null)),t&&m.default.createElement(N.Protect,e),n&&m.default.createElement(D.SSO,e)):null}}]),t}(h.Component);P.displayName="SecuritySettings",t.default=(0,_.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)},isPluginActive:function(t){return(0,w.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,w.isPluginInstalled)(e,t)}}})(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.BackupsScan=void 0;var a=n(10),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(9),g=n(8),v=n(30),y=r(v),A=n(14),w=r(A),E=n(24),k=r(E),T=n(55),L=n(832),S=r(L),C=n(36),z=n(41),O=r(z),N=n(38),D=r(N),P=n(62),x=n(64),j=n(40),R=r(j),Y=n(27),I=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(){return M.default.createElement(O.default,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),hideButton:!0,action:"scan"},M.default.createElement(D.default,{disableInDevMode:!0,module:{module:"backups"},support:"https://help.vaultpress.com/get-to-know/"},(0,g.translate)("Checking site status…")))}}]),t}(_.Component),q=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.getCardText=function(){return r.props.isDevMode?(0,g.translate)("Unavailable in Dev Mode."):M.default.createElement(S.default,{title:(0,g.translate)("Connected"),icon:"checkmark-circle",feature:"rewind",description:(0,g.translate)("Your site is being backed up in real time and regularly scanned for security threats."),className:"is-upgrade-premium jp-banner__no-border",href:"https://wordpress.com/stats/activity/"+r.props.siteRawUrl})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(O.default,(0,i.default)({feature:"rewind"},this.props,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),action:"rewind",hideButton:!0}),this.getCardText())}}]),t}(_.Component),B=t.BackupsScan=(0,C.ModuleSettingsForm)(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.toggleModule=function(e,t){r.props.updateFormStateOptionValue(e,!t)},r.trackConfigureClick=function(){w.default.tracks.recordJetpackClick("configure-scan")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getCardText",value:function(){var e=(0,k.default)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,k.default)(this.props.vaultPressData,["data","features","security"],!1),n=(0,T.getPlanClass)(this.props.sitePlan.product_slug),r="";if(this.props.isDevMode)return(0,g.translate)("Unavailable in Dev Mode.");if(e&&t){var a=this.props.hasThreats;return a?M.default.createElement("div",null,M.default.createElement("strong",null,(0,g.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:a,args:{number:(0,g.numberFormat)(a)}})),M.default.createElement("br",null),M.default.createElement("br",null),(0,g.translate)("{{a}}View details{{/a}}",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),M.default.createElement("br",null),(0,g.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}})):(0,g.translate)("Your site is backed up and threat-free.")}if(e&&(0,R.default)(["is-free-plan","is-personal-plan"],n))return(0,g.translate)("Your site is backed up.");switch(n){case"is-personal-plan":r=(0,g.translate)("You have paid for backups but they're not yet active."),r+=" "+(0,g.translate)('Click "Set Up" to finish installation.');break;case"is-premium-plan":case"is-business-plan":r=(0,g.translate)("You have paid for backups and security scanning but they’re not yet active."),r+=" "+(0,g.translate)('Click "Set Up" to finish installation.')}return r}},{key:"render",value:function(){var e=(0,k.default)(this.props.vaultPressData,["data","features","security"],!1),t="active"===(0,k.default)(this.props.rewindStatus,["state"],!1),n=!1!==(0,k.default)(this.props.rewindStatus,["state"],!1),r="N/A"!==this.props.vaultPressData&&!1!==(0,k.default)(this.props.vaultPressData,["data"],!1);return!n||this.props.vaultPressActive&&!r?M.default.createElement(I,null):t?M.default.createElement(q,this.props):M.default.createElement(O.default,(0,i.default)({feature:T.FEATURE_SECURITY_SCANNING_JETPACK},this.props,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),action:"scan",hideButton:!0}),M.default.createElement(D.default,{disableInDevMode:!0,module:{module:"backups"},support:"https://help.vaultpress.com/get-to-know/"},this.getCardText()),!this.props.isUnavailableInDevMode("backups")&&e&&M.default.createElement(y.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:"https://dashboard.vaultpress.com/"},(0,g.translate)("Configure your Security Scans")))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{sitePlan:(0,x.getSitePlan)(e),vaultPressData:(0,P.getVaultPressData)(e),hasThreats:(0,P.getVaultPressScanThreatCount)(e),vaultPressActive:(0,Y.isModuleActivated)(e,"vaultpress")}})(B)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Antispam=void 0;var a=n(10),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(9),g=n(8),v=n(500),y=r(v),A=n(510),w=r(A),E=n(1103),k=r(E),T=n(61),L=r(T),S=n(497),C=r(S),z=n(25),O=r(z),N=n(456),D=r(N),P=n(1105),x=r(P),j=n(62),R=n(55),Y=n(14),I=r(Y),q=n(70),B=n(36),W=n(41),U=r(W),H=n(38),F=r(H),X=t.Antispam=(0,B.ModuleSettingsForm)(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.state={apiKey:r.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}},r.keyChanged=!1,r.checkApiKeyTyped=function(e){0<e.currentTarget.value.length&&r.props.checkAkismetKey(e.currentTarget.value),r.keyChanged=!0,r.setState({delayKeyCheck:!1})},r.updateText=function(e){var t=(0,O.default)({},e);t.currentTarget.value=(0,x.default)(t.currentTarget.value),r.setState({apiKey:t.currentTarget.value,delayKeyCheck:!0,currentEvent:t},r.debouncedCheckApiKeyTyped(t))},r.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){this.debouncedCheckApiKeyTyped=(0,C.default)(this.checkApiKeyTyped,500)}},{key:"componentDidUpdate",value:function(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!(0,D.default)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}},{key:"render",value:function(){var e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText},t="",n=(0,g.translate)("Checking your spam protection…"),r=!0;return null===this.props.isAkismetKeyValid?(e.value=(0,g.translate)("Fetching key…"),e.disabled=!0,r=!1):""===this.state.apiKey?(e.value="",n=(0,g.translate)("Your site needs an Antispam key.")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=M.default.createElement("div",{className:"form-input-validation is-warning"},M.default.createElement("span",null,M.default.createElement(L.default,{size:24,icon:"sync"}),(0,g.translate)("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=M.default.createElement(k.default,{isError:!0,text:(0,g.translate)("There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})}})}),e.isError=!0,n=(0,g.translate)("Your site is not protected from spam.")):(t=M.default.createElement(k.default,{text:(0,g.translate)("Your Antispam key is valid.")}),e.isValid=!0,n=(0,g.translate)("Your site is protected from spam."),r=!1),M.default.createElement(U.default,(0,i.default)({},this.props,{header:(0,g.translate)("Spam filtering",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:R.FEATURE_SPAM_AKISMET_PLUS}),M.default.createElement(w.default,{onOpen:this.trackOpenCard,header:n},M.default.createElement(F.default,{support:"https://akismet.com/jetpack/"},M.default.createElement(q.FormFieldset,null,M.default.createElement(q.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,g.translate)("Your API key")),M.default.createElement(y.default,e),t),r&&M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("If you don't already have an API key, then {{a}}get your API key here{{/a}}, and you'll be guided through the process of getting one.",{components:{a:M.default.createElement("a",{href:"https://akismet.com/wordpress/"})}}))))))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{isAkismetKeyValid:(0,j.isAkismetKeyValid)(e),isCheckingAkismetKey:(0,j.isCheckingAkismetKey)(e)}},function(e){return{checkAkismetKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e((0,j.checkAkismetKey)(t))}}})(X)},function(e,t,n){"use strict";var r=n(1),a=n(25),i=n(13),o=n(30);e.exports=r.createClass({displayName:"CompactCard",render:function(){var e=a({},this.props,{className:i(this.props.className,"is-compact")});return r.createElement(o,e,this.props.children)}})},function(e,t){},function(e,t,n){"use strict";var r=n(1),a=n(13),i=n(61);n(1104),e.exports=r.createClass({displayName:"FormInputValidation",propTypes:{isError:r.PropTypes.bool,isWarning:r.PropTypes.bool,text:r.PropTypes.node,icon:r.PropTypes.string},getDefaultProps:function(){return{isError:!1}},render:function(){var e=a({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return r.createElement("div",{className:e},r.createElement("span",null,r.createElement(i,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}})},function(e,t){},function(e,t,n){function r(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=a(t)))return e;var r=c(e),d=c(t),f=s(r,d),p=o(r,d)+1;return i(r,f,p).join("")}var a=n(481),i=n(1106),o=n(1107),s=n(1108),c=n(1109),u=n(221),l=/^\s+|\s+$/g;e.exports=r},function(e,t,n){function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:a(e,t,n)}var a=n(460);e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--&&a(t,e[n],0)>-1;);return n}var a=n(223);e.exports=r},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&a(t,e[n],0)>-1;);return n}var a=n(223);e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(1110),i=n(865),o=n(1111);e.exports=r},function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e){return e.match(d)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");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}),t.Protect=void 0;var a=n(10),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(43),v=r(g),y=n(1113),A=r(y),w=n(40),E=r(w),k=n(510),T=r(k),L=n(13),S=r(L),C=n(14),z=r(C),O=n(70),N=n(54),D=n(36),P=n(41),x=r(P),j=n(38),R=r(j);t.Protect=(0,D.ModuleSettingsForm)(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.state={whitelist:r.props.getOptionValue("jetpack_protect_global_whitelist")?r.props.getOptionValue("jetpack_protect_global_whitelist").local:""},r.currentIpIsWhitelisted=function(){return!!(0,E.default)(r.state.whitelist,r.props.currentIp)},r.updateText=function(e){r.currentIpIsWhitelisted(),r.setState({whitelist:e.target.value}),r.props.onOptionChange(e)},r.addToWhitelist=function(){var e=r.state.whitelist+(0>=r.state.whitelist.length?"":"\n")+r.props.currentIp;r.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",e),r.setState({whitelist:e}),z.default.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})},r.trackOpenCard=function(){z.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})},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.getOptionValue("protect"),t=this.props.isUnavailableInDevMode("protect"),n=M.default.createElement(N.ModuleToggle,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return M.default.createElement(x.default,(0,i.default)({},this.props,{module:"protect",header:(0,b.translate)("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),M.default.createElement(T.default,{onOpen:this.trackOpenCard,header:n,className:(0,S.default)({"jp-foldable-settings-disable":t})},M.default.createElement(R.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("protect")},M.default.createElement(O.FormFieldset,null,this.props.currentIp&&M.default.createElement("div",null,M.default.createElement("div",{className:"jp-form-label-wide"},(0,b.translate)("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),M.default.createElement(v.default,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},(0,b.translate)("Add to whitelist"))),M.default.createElement(O.FormLabel,null,M.default.createElement(O.FormLegend,null,(0,b.translate)("Whitelisted IP addresses")),M.default.createElement(A.default,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.whitelist})),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("You may whitelist an IP address or series of addresses preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100",{components:{br:M.default.createElement("br",null)}}))))))}}]),t}(_.Component))},function(e,t,n){"use strict";var r=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(r),i=n(1),o=n(13),s=n(114);n(1114),e.exports=i.createClass({displayName:"Textarea",render:function(){return i.createElement("textarea",(0,a.default)({},s(this.props,"className"),{className:o(this.props.className,"dops-textarea")}),this.props.children)}})},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SSO=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(124),A=r(y),w=n(70),E=n(54),k=n(36),T=n(41),L=r(T),S=n(38),C=r(S);t.SSO=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={jetpack_sso_match_by_email:r.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:r.props.getOptionValue("jetpack_sso_require_two_step","sso")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("sso",e))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("sso"),n=this.props.isUnavailableInDevMode("sso");return g.default.createElement(L.default,(0,i.default)({},this.props,{hideButton:!0,module:"sso",header:(0,v.translate)("WordPress.com log in",{context:"Settings header"})}),g.default.createElement(C.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso")},g.default.createElement(E.ModuleToggle,{slug:"sso",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),g.default.createElement(w.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.jetpack_sso_match_by_email,disabled:!t||n||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:function(){return e.updateOptions("jetpack_sso_match_by_email")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Match accounts using email addresses"))),g.default.createElement(A.default,{checked:this.state.jetpack_sso_require_two_step,disabled:!t||n||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:function(){return e.updateOptions("jetpack_sso_require_two_step")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(b.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Traffic=void 0;var a=n(10),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(9),g=n(27),v=n(113),y=n(22),A=n(81),w=n(208),E=r(w),k=n(1117),T=n(1118),L=n(1119),S=n(1120),C=n(1121),z=n(1122),O=r(z),N=n(1123),D=n(1124),P=r(D),x=n(28),j=t.Traffic=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,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode
|
42 |
},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),a=this.props.isModuleFound("related-posts"),o=this.props.isModuleFound("verification-tools"),s=this.props.isModuleFound("sitemaps"),c=this.props.isModuleFound("search"),u=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||a||o||s||u||c)?M.default.createElement("div",null,M.default.createElement(E.default,null),r&&M.default.createElement(S.SiteStats,e),c&&M.default.createElement(O.default,e),n&&M.default.createElement(L.Ads,(0,i.default)({},e,{configureUrl:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl})),a&&M.default.createElement(C.RelatedPosts,(0,i.default)({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&M.default.createElement(k.SEO,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/seo/"+this.props.siteRawUrl})),u&&M.default.createElement(T.GoogleAnalytics,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/analytics/"+this.props.siteRawUrl})),s&&M.default.createElement(P.default,e),o&&M.default.createElement(N.VerificationServices,e)):null}}]),t}(M.default.Component);j.displayName="TrafficSettings",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)},lastPostUrl:(0,x.getLastPostUrl)(e)}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SEO=void 0;var a=n(10),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(30),v=r(g),y=n(14),A=r(y),w=n(55),E=n(36),k=n(41),T=r(k),L=n(38),S=r(L),C=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.trackConfigureClick=function(){A.default.tracks.recordJetpackClick("configure-seo")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Search engine optimization",{context:"Settings header"}),feature:w.FEATURE_SEO_TOOLS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"seo-tools"},support:"https://jetpack.com/support/seo-tools/"},M.default.createElement("span",null,(0,b.translate)("You can tweak these settings if you'd like more advanced control. Read more about what you can do to {{a}}optimize your site's SEO{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support/seo-tools/"})}}))),!this.props.isUnavailableInDevMode("seo-tools")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your SEO settings")))}}]),t}(M.default.Component);t.SEO=(0,E.ModuleSettingsForm)(C)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;var a=n(10),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(30),v=r(g),y=n(14),A=r(y),w=n(55),E=n(36),k=n(41),T=r(k),L=n(38),S=r(L);t.GoogleAnalytics=(0,E.ModuleSettingsForm)(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:"trackConfigureClick",value:function(){A.default.tracks.recordJetpackClick("configure-ga")}},{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Google Analytics",{context:"Settings header"}),feature:w.FEATURE_GOOGLE_ANALYTICS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"google-analytics"},support:"https://jetpack.com/support/google-analytics/"},M.default.createElement("p",null,(0,b.translate)("Google Analytics is a free service that complements our {{a}}built-in stats{{/a}} with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/stats/day/"+this.props.siteRawUrl})}}))),!this.props.isUnavailableInDevMode("google-analytics")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your Google Analytics settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Ads=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(30),A=r(y),w=n(124),E=r(w),k=n(14),T=r(k),L=n(55),S=n(70),C=n(36),z=n(54),O=n(41),N=r(O),D=n(38),P=r(D);t.Ads=(0,C.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={enable_header_ad:r.props.getOptionValue("enable_header_ad","wordads"),wordads_second_belowpost:r.props.getOptionValue("wordads_second_belowpost","wordads"),wordads_display_front_page:r.props.getOptionValue("wordads_display_front_page","wordads"),wordads_display_post:r.props.getOptionValue("wordads_display_post","wordads"),wordads_display_page:r.props.getOptionValue("wordads_display_page","wordads"),wordads_display_archive:r.props.getOptionValue("wordads_display_archive","wordads")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("wordads",e))},r.trackConfigureClick=function(){T.default.tracks.recordJetpackClick("view-earnings")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("wordads"),n=this.props.isUnavailableInDevMode("wordads");return g.default.createElement(N.default,(0,i.default)({},this.props,{header:(0,v.translate)("Ads",{context:"Ads header"}),feature:L.FEATURE_WORDADS_JETPACK,hideButton:!0}),g.default.createElement(P.default,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:"https://jetpack.com/support/ads/"},g.default.createElement("p",null,(0,v.translate)("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings."),g.default.createElement("br",null),g.default.createElement("small",{className:"jp-form-setting-explanation"},(0,v.translate)("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:g.default.createElement("a",{href:"https://wordpress.com/automattic-ads-tos/",target:"_blank",rel:"noopener noreferrer"})}}))),g.default.createElement(z.ModuleToggle,{slug:"wordads",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Enable ads and display an ad below each post"))),g.default.createElement(S.FormFieldset,null,g.default.createElement(S.FormLegend,null,(0,v.translate)("Display ads below posts on")),g.default.createElement(E.default,{checked:this.state.wordads_display_front_page,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:function(){return e.updateOptions("wordads_display_front_page")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Front page"))),g.default.createElement(E.default,{checked:this.state.wordads_display_post,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:function(){return e.updateOptions("wordads_display_post")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Posts"))),g.default.createElement(E.default,{checked:this.state.wordads_display_page,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:function(){return e.updateOptions("wordads_display_page")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Pages"))),g.default.createElement(E.default,{checked:this.state.wordads_display_archive,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:function(){return e.updateOptions("wordads_display_archive")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Archives")))),g.default.createElement(S.FormFieldset,null,g.default.createElement(S.FormLegend,null,(0,v.translate)("Additional ad placements")),g.default.createElement(E.default,{checked:this.state.enable_header_ad,disabled:!t||n||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:function(){return e.updateOptions("enable_header_ad")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Top of each page"))),g.default.createElement(E.default,{checked:this.state.wordads_second_belowpost,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:function(){return e.updateOptions("wordads_second_belowpost")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Second ad below post"))))),!n&&t&&g.default.createElement(A.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,v.translate)("View your earnings")))}}]),t}(g.default.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SiteStats=void 0;var a=n(10),i=r(a),o=n(80),s=r(o),c=n(49),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(1),y=r(v),A=n(8),w=n(124),E=r(w),k=n(510),T=r(k),L=n(43),S=r(L),C=n(30),z=r(C),O=n(40),N=r(O),D=n(450),P=r(D),x=n(13),j=r(x),R=n(85),Y=n(14),I=r(Y),q=n(70),B=n(54),W=n(36),U=n(38),H=r(U),F=n(41),X=r(F),V=function(e){function t(e){(0,p.default)(this,t);var n=(0,M.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));n.updateOptions=function(e,t){var r=n.props.getOptionValue(t,"stats"),a=!1;n.state[t+"_"+e]?(0,N.default)(r,e)&&(r=(0,P.default)(r,function(t){return t!==e})):(0,N.default)(r,e)||(r.push(e),a=!0),n.setState((0,u.default)({},t+"_"+e,!n.state[t+"_"+e]),function(){n.props.updateOptions((0,u.default)({},t,r))}),I.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:a?"on":"off"})},n.activateStats=function(){n.props.updateOptions({stats:!0})},n.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})};var r=e.getOptionValue("count_roles","stats"),a=e.getOptionValue("roles","stats");return n.state={count_roles:r,roles:a,count_roles_administrator:(0,N.default)(r,"administrator",!1),count_roles_editor:(0,N.default)(r,"editor",!1),count_roles_author:(0,N.default)(r,"author",!1),count_roles_contributor:(0,N.default)(r,"contributor",!1),count_roles_subscriber:(0,N.default)(r,"subscriber",!1),roles_administrator:!0,roles_editor:(0,N.default)(a,"editor",!1),roles_author:(0,N.default)(a,"author",!1),roles_contributor:(0,N.default)(a,"contributor",!1),roles_subscriber:(0,N.default)(a,"subscriber",!1)},n}return(0,g.default)(t,e),(0,m.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),a=this.props.getSiteRoles();return n?y.default.createElement(X.default,(0,i.default)({},this.props,{header:(0,A.translate)("Site stats",{context:"Settings header"}),hideButton:!0}),y.default.createElement(T.default,{onOpen:this.trackOpenCard,header:(0,A.translate)("Collecting valuable traffic stats and insights"),clickableHeader:!0,className:(0,j.default)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},y.default.createElement(H.default,{disableInDevMode:!0,module:t},y.default.createElement(q.FormFieldset,null,y.default.createElement(B.ModuleToggle,{slug:"stats",compact:!0,disabled:!n||r,activated:!!this.props.getOptionValue("admin_bar"),toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),toggleModule:function(t){return e.props.updateFormStateModuleOption(t,"admin_bar")}},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Put a chart showing 48 hours of views in the admin bar"))),y.default.createElement(B.ModuleToggle,{slug:"stats",disabled:!n||r,activated:!!this.props.getOptionValue("hide_smile"),toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),toggleModule:function(t){return e.props.updateFormStateModuleOption(t,"hide_smile")}},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Hide the stats smiley face image")),y.default.createElement("span",{className:"jp-form-setting-explanation"},(0,A.translate)("The image helps collect stats, but should work when hidden.")))),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Count logged in page views from")),(0,s.default)(a).map(function(t){return y.default.createElement(E.default,{checked:e.state["count_roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:function(){return e.updateOptions(t,"count_roles")},key:"count_roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))})),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Allow stats reports to be viewed by")),y.default.createElement(E.default,{checked:!0,disabled:!0},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a.administrator.name)),(0,s.default)(a).map(function(t){return"administrator"!==t&&y.default.createElement(E.default,{checked:e.state["roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:function(){return e.updateOptions(t,"roles")},key:"roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))}))))):y.default.createElement(z.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},y.default.createElement("img",{src:R.imagePath+"stats.svg",width:"60",height:"60",alt:(0,A.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,A.translate)("Unavailable in Dev Mode"):(0,A.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:y.default.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:y.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},y.default.createElement(S.default,{onClick:this.activateStats,primary:!0},(0,A.translate)("Activate Site Stats")))))}}]),t}(y.default.Component);t.SiteStats=(0,W.ModuleSettingsForm)(V)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedPosts=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(509),A=r(y),w=n(30),E=r(w),k=n(124),T=r(k),L=n(70),S=n(54),C=n(36),z=n(41),O=r(z),N=n(38),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={show_headline:r.props.getOptionValue("show_headline","related-posts"),show_thumbnails:r.props.getOptionValue("show_thumbnails","related-posts")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("related-posts",e))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return g.default.createElement(O.default,(0,i.default)({},this.props,{hideButton:!0,module:"related-posts"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts")},g.default.createElement(S.ModuleToggle,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Show related content after posts"))),g.default.createElement(L.FormFieldset,null,g.default.createElement(T.default,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:function(){return e.updateOptions("show_headline")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "Related" header to more clearly separate the related section from posts'))),g.default.createElement(T.default,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:function(){return e.updateOptions("show_thumbnails")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Use a large and visually striking layout"))),(0,v.translate)("{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}",{components:{span:g.default.createElement("span",{className:"jp-form-setting-explanation"}),ExternalLink:g.default.createElement(A.default,{className:"jp-module-settings__external-link",href:this.props.configureUrl})}}),g.default.createElement(L.FormLabel,{className:"jp-form-label-wide"},(0,v.translate)("Preview",{context:"A header for a preview area in the configuration screen."})),g.default.createElement(E.default,{className:"jp-related-posts-preview"},this.state.show_headline&&g.default.createElement("div",{className:"jp-related-posts-preview__title"},(0,v.translate)("Related")),[{url:"1-wpios-ipad-3-1-viewsite.png",text:(0,v.translate)("Big iPhone/iPad Update Now Available"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"wordpress-com-news-wordpress-for-android-ui-update2.jpg",text:(0,v.translate)("The WordPress for Android App Gets a Big Facelift"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"videopresswedding.jpg",text:(0,v.translate)("Upgrade Focus: VideoPress For Weddings"),context:(0,v.translate)('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map(function(t,n){return g.default.createElement("div",{key:"preview_"+n,className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&g.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2014/08/"+t.url+"?w=350&h=200&crop=1",alt:t.text}),g.default.createElement("h4",{className:"jp-related-posts-preview__post-title"},g.default.createElement("a",{href:"#/traffic"},t.text)),g.default.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))}}]),t}(g.default.Component);t.RelatedPosts=(0,C.ModuleSettingsForm)(P)},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(10),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(9),g=n(8),v=n(55),y=n(36),A=n(54),w=n(41),E=r(w),k=n(38),T=r(k),L=n(28),S=n(64),C=n(70),z=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(){return M.default.createElement(E.default,(0,i.default)({},this.props,{module:"search",feature:v.FEATURE_SEARCH_JETPACK,hideButton:!0}),M.default.createElement(T.default,{module:{module:"search"},hasChild:!0,support:"https://jetpack.com/support/search"},M.default.createElement(A.ModuleToggle,{slug:"search",compact:!0,activated:this.props.getOptionValue("search"),toggling:this.props.isSavingAnyOption("search"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Replace WordPress built-in search with an improved search experience")),this.props.getOptionValue("search")&&M.default.createElement(C.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("To configure search filters add the {{link}}Jetpack Search widget to your sidebar{{/link}}.",{components:{link:M.default.createElement("a",{href:"widgets.php"})}})))))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{siteAdminUrl:(0,L.getSiteAdminUrl)(e),sitePlan:(0,S.getSitePlan)(e),fetchingSiteData:(0,S.isFetchingSiteData)(e)}})((0,y.ModuleSettingsForm)(z)),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.VerificationServices=void 0;var a=n(10),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(500),v=r(g),y=n(509),A=r(y),w=n(70),E=n(36),k=n(41),T=r(k),L=n(38),S=r(L),C=n(503),z=r(C),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.activateVerificationTools=function(){return r.props.updateOptions({"verification-tools":!0})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("verification-tools");return this.props.getOptionValue("verification-tools")?M.default.createElement(T.default,(0,i.default)({},this.props,{module:"verification-tools",saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),M.default.createElement(S.default,{module:t,support:t.learn_more_button},M.default.createElement("p",null,(0,b.translate)("Note that {{b}}verifying your site with these services is not necessary{{/b}} in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the {{support}}full instructions{{/support}} if you are having trouble. Supported verification services: {{google}}Google Search Console{{/google}}, {{bing}}Bing Webmaster Center{{/bing}}, {{pinterest}}Pinterest Site Verification{{/pinterest}}, and {{yandex}}Yandex.Webmaster{{/yandex}}.",{components:{b:M.default.createElement("strong",null),support:M.default.createElement("a",{href:"https://jetpack.com/support/site-verification-tools/"}),google:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),M.default.createElement(w.FormFieldset,null,[{id:"google",label:(0,b.translate)("Google"),placeholder:'<meta name="google-site-verification" content="1234" />'},{id:"bing",label:(0,b.translate)("Bing"),placeholder:'<meta name="msvalidate.01" content="1234" />'},{id:"pinterest",label:(0,b.translate)("Pinterest"),placeholder:'<meta name="p:domain_verify" content="1234" />'},{id:"yandex",label:(0,b.translate)("Yandex"),placeholder:'<meta name="yandex-verification" content="1234" />'}].map(function(t){return M.default.createElement(w.FormLabel,{className:"jp-form-input-with-prefix",key:"verification_service_"+t.id},M.default.createElement("span",null,t.label),M.default.createElement(v.default,{name:t.id,value:e.props.getOptionValue(t.id),placeholder:t.placeholder,className:"code",disabled:e.props.isUpdating(t.id),onChange:e.props.onOptionChange}))})))):M.default.createElement(z.default,{callToAction:(0,b.translate)("Activate"),title:t.name,icon:"cog",description:t.long_description,onClick:this.activateVerificationTools})}}]),t}(M.default.Component);t.VerificationServices=(0,E.ModuleSettingsForm)(O)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sitemaps=void 0;var a=n(10),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(9),g=n(8),v=n(509),y=r(v),A=n(24),w=r(A),E=n(14),k=r(E),T=n(70),L=n(36),S=n(54),C=n(41),z=r(C),O=n(38),N=r(O),D=n(28),P=t.Sitemaps=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.trackSitemapUrl=function(){k.default.tracks.recordJetpackClick("sitemap-url-link")},r.trackSitemapNewsUrl=function(){k.default.tracks.recordJetpackClick("sitemap-news-url-link")},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.getModule("sitemaps"),t=(0,w.default)(e,["extra","sitemap_url"],""),n=(0,w.default)(e,["extra","news_sitemap_url"],"");return M.default.createElement(z.default,(0,i.default)({},this.props,{module:"sitemaps",hideButton:!0}),M.default.createElement(N.default,{module:{module:"sitemaps"},hasChild:!0,support:e.learn_more_button},M.default.createElement(S.ModuleToggle,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Your sitemap is automatically sent to all major search engines for indexing.")),M.default.createElement("p",null,M.default.createElement(y.default,{onClick:this.trackSitemapUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:t},t),M.default.createElement("br",null),M.default.createElement(y.default,{onClick:this.trackSitemapNewsUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:n},n))):M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)('Your site is not currently accessible to search engines. You might have "Search Engine Visibility" disabled in your {{a}}Reading Settings{{/a}}.',{components:{a:M.default.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{isSiteVisibleToSearchEngines:(0,D.isSiteVisibleToSearchEngines)(e),siteAdminUrl:(0,D.getSiteAdminUrl)(e)}})((0,L.ModuleSettingsForm)(P))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Writing=void 0;var a=n(10),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(9),g=n(8),v=n(30),y=r(v),A=n(27),w=n(113),E=n(28),k=n(22),T=n(81),L=n(208),S=r(L),C=n(1126),z=r(C),O=n(1129),N=r(O),D=n(1130),P=r(D),x=n(1131),j=r(x),R=n(1132),Y=r(R),I=n(1144),q=n(1145),B=r(q),W=t.Writing=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,isLinked:this.props.isLinked},t=["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven","videopress","lazy-images"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;var n=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("after-the-deadline"),r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return M.default.createElement("div",null,M.default.createElement(S.default,null),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&M.default.createElement(I.Masterbar,(0,i.default)({connectUrl:this.props.connectUrl},e)),n&&M.default.createElement(z.default,(0,i.default)({},e,{userCanManageModules:this.props.userCanManageModules})),M.default.createElement(N.default,e),M.default.createElement(B.default,e),this.props.isModuleFound("custom-content-types")&&M.default.createElement(P.default,e),M.default.createElement(j.default,e),this.props.isModuleFound("post-by-email")&&r&&M.default.createElement(Y.default,(0,i.default)({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!n&&!r&&M.default.createElement(y.default,null,(0,g.translate)("Writing tools available to you will be shown here when an administrator enables them.")))}}]),t}(M.default.Component);W.displayName="WritingSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,A.getModule)(e,t)},settings:(0,w.getSettings)(e),masterbarIsAlwaysActive:(0,E.isAtomicSite)(e),isDevMode:(0,k.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,k.isUnavailableInDevMode)(e,t)},userCanEditPosts:(0,E.userCanEditPosts)(e),isModuleActivated:function(t){return(0,A.isModuleActivated)(e,t)},isLinked:(0,k.isCurrentUserLinked)(e),userCanManageModules:(0,E.userCanManageModules)(e),isModuleFound:function(t){return(0,T.isModuleFound)(e,t)},connectUrl:(0,k.getConnectUrl)(e)}})(W)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Composing=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(124),w=r(A),E=n(510),k=r(E),T=n(13),L=r(T),S=n(14),C=r(S),z=n(70),O=n(81),N=n(54),D=n(36),P=n(27),x=n(1127),j=r(x),R=n(41),Y=r(R),I=n(38),q=r(I),B=t.Composing=function(e){function t(){
|
43 |
-
var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={onpublish:r.props.getOptionValue("onpublish","after-the-deadline"),onupdate:r.props.getOptionValue("onupdate","after-the-deadline"),guess_lang:r.props.getOptionValue("guess_lang","after-the-deadline"),"Bias Language":r.props.getOptionValue("Bias Language","after-the-deadline"),Cliches:r.props.getOptionValue("Cliches","after-the-deadline"),"Complex Expression":r.props.getOptionValue("Complex Expression","after-the-deadline"),"Diacritical Marks":r.props.getOptionValue("Diacritical Marks","after-the-deadline"),"Double Negative":r.props.getOptionValue("Double Negative","after-the-deadline"),"Hidden Verbs":r.props.getOptionValue("Hidden Verbs","after-the-deadline"),"Jargon Language":r.props.getOptionValue("Jargon Language","after-the-deadline"),"Passive voice":r.props.getOptionValue("Passive voice","after-the-deadline"),"Phrases to Avoid":r.props.getOptionValue("Phrases to Avoid","after-the-deadline"),"Redundant Expression":r.props.getOptionValue("Redundant Expression","after-the-deadline")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("after-the-deadline",e))},r.getToggle=function(e,t){return g.default.createElement(w.default,{checked:r.state[e],disabled:!r.props.getOptionValue("after-the-deadline")||r.props.isUnavailableInDevMode("after-the-deadline")||r.props.isSavingAnyOption(["after-the-deadline",e]),onChange:function(){return r.updateOptions(e)}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t))},r.getAtdSettings=function(){var e=r.props.getOptionValue("ignored_phrases");return g.default.createElement(q.default,{hasChild:!0,disableInDevMode:!0,module:r.props.getModule("after-the-deadline")},g.default.createElement(z.FormFieldset,null,g.default.createElement(z.FormLegend,null," ",(0,y.translate)("Proofreading")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Automatically proofread content when: ")),r.getToggle("onpublish",(0,y.translate)("A post or page is first published")),r.getToggle("onupdate",(0,y.translate)("A post or page is updated"))),g.default.createElement(z.FormFieldset,null,g.default.createElement(z.FormLegend,null," ",(0,y.translate)("Automatic Language Detection")),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("The proofreader supports English, French, German, Portuguese and Spanish.")),r.getToggle("guess_lang",(0,y.translate)("Use automatically detected language to proofread posts and pages"))),g.default.createElement(z.FormFieldset,null,g.default.createElement(z.FormLegend,null," ",(0,y.translate)("English Options")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Enable proofreading for the following grammar and style rules: ")),r.getToggle("Bias Language",(0,y.translate)("Bias Language")),r.getToggle("Cliches",(0,y.translate)("Clichés")),r.getToggle("Complex Expression",(0,y.translate)("Complex Phrases")),r.getToggle("Diacritical Marks",(0,y.translate)("Diacritical Marks")),r.getToggle("Double Negative",(0,y.translate)("Double Negatives")),r.getToggle("Hidden Verbs",(0,y.translate)("Hidden Verbs")),r.getToggle("Jargon Language",(0,y.translate)("Jargon")),r.getToggle("Passive voice",(0,y.translate)("Passive Voice")),r.getToggle("Phrases to Avoid",(0,y.translate)("Phrases to Avoid")),r.getToggle("Redundant Expression",(0,y.translate)("Redundant Phrases"))),g.default.createElement(z.FormFieldset,null,g.default.createElement(z.FormLegend,null,(0,y.translate)("Ignored Phrases")),g.default.createElement(j.default,{name:"ignored_phrases",disabled:!r.props.getOptionValue("after-the-deadline"),placeholder:(0,y.translate)("Add a phrase"),value:void 0!==e&&""!==e?e.split(","):[],onChange:r.props.onOptionChange}),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Confirm each new phrase you add by pressing enter."))))},r.updateFormStateByMarkdown=function(e){return r.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)},r.trackOpenCard=function(){C.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"atd"})},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("after-the-deadline"),t=this.props.isModuleFound("markdown");if(!t&&!e)return null;var n=this.props.module("markdown"),r=this.props.module("after-the-deadline"),a=this.props.isUnavailableInDevMode("after-the-deadline"),o=g.default.createElement(q.default,{module:n},g.default.createElement(z.FormFieldset,null,g.default.createElement(N.ModuleToggle,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)))),s=g.default.createElement(k.default,{onOpen:this.trackOpenCard,className:(0,L.default)("jp-foldable-card__main-settings",{"jp-foldable-settings-disable":a}),header:this.props.userCanManageModules?g.default.createElement(N.ModuleToggle,{slug:"after-the-deadline",compact:!0,disabled:a,activated:this.props.getOptionValue("after-the-deadline"),toggling:this.props.isSavingAnyOption("after-the-deadline"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)):g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)},this.getAtdSettings());return g.default.createElement(Y.default,(0,i.default)({},this.props,{header:(0,y.translate)("Composing",{context:"Settings header"}),hideButton:!e,module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),t&&o,e&&s)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,O.isModuleFound)(e,t)}}})((0,D.ModuleSettingsForm)(B))},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(1128),M=r(_),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.state={tags:r.props.value||[]},r.handleChange=function(e){r.setState({tags:e}),r.props.onChange&&r.props.onChange({target:{name:r.props.name,value:e.join(",")}})},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(M.default,{disabled:this.props.disabled,inputProps:{placeholder:this.props.placeholder},onChange:this.handleChange,value:this.state.tags})}}]),t}(m.default.Component);t.default=b,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,t,n(1),n(15)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function f(e){var t=e.tag,n=e.key,r=e.disabled,a=e.onRemove,i=e.classNameRemove,o=e.getTagDisplayValue,s=u(e,["tag","key","disabled","onRemove","classNameRemove","getTagDisplayValue"]);return _.default.createElement("span",b({key:n},s),o(t),!r&&_.default.createElement("a",{className:i,onClick:function(e){return a(n)}}))}function p(e){var t=(e.addTag,u(e,["addTag"])),n=t.onChange,r=t.value,a=u(t,["onChange","value"]);return _.default.createElement("input",b({type:"text",onChange:n,value:r},a))}function h(e,t){return _.default.createElement("span",null,e,t)}function m(e){return e.split(" ").map(function(e){return e.trim()})}Object.defineProperty(t,"__esModule",{value:!0});var _=a(n),M=(a(r),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),b=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},g={className:"react-tagsinput-input",placeholder:"Add a tag"},v=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={tag:"",isFocused:!1},e.focus=e.focus.bind(e),e.blur=e.blur.bind(e),e}return c(t,e),M(t,[{key:"_getTagDisplayValue",value:function(e){var t=this.props.tagDisplayProp;return t?e[t]:e}},{key:"_makeTag",value:function(e){var t=this.props.tagDisplayProp;return t?i({},t,e):e}},{key:"_removeTag",value:function(e){var t=this.props.value.concat([]);if(e>-1&&e<t.length){var n=t.splice(e,1);this.props.onChange(t,n,[e])}}},{key:"_clearInput",value:function(){this.hasControlledInput()?this.props.onChangeInput(""):this.setState({tag:""})}},{key:"_tag",value:function(){return this.hasControlledInput()?this.props.inputValue:this.state.tag}},{key:"_addTags",value:function(e){var t=this,n=this.props,r=n.validationRegex,a=n.onChange,i=n.onValidationReject,o=n.onlyUnique,s=n.maxTags,c=n.value;o&&(e=l(e),e=e.filter(function(e){return c.every(function(n){return t._getTagDisplayValue(n)!==t._getTagDisplayValue(e)})}));var u=e.filter(function(e){return!r.test(t._getTagDisplayValue(e))});if(e=e.filter(function(e){return r.test(t._getTagDisplayValue(e))}),e=e.filter(function(e){var n=t._getTagDisplayValue(e);return"function"==typeof n.trim?n.trim().length>0:n}),s>=0){var d=Math.max(s-c.length,0);e=e.slice(0,d)}if(i&&u.length>0&&i(u),e.length>0){for(var f=c.concat(e),p=[],h=0;h<e.length;h++)p.push(c.length+h);return a(f,e,p),this._clearInput(),!0}return!(u.length>0)&&(this._clearInput(),!1)}},{key:"_shouldPreventDefaultEventOnAdd",value:function(e,t,n){return!!e||13===n&&(this.props.preventSubmit||!this.props.preventSubmit&&!t)}},{key:"focus",value:function(){this.input&&"function"==typeof this.input.focus&&this.input.focus(),this.handleOnFocus()}},{key:"blur",value:function(){this.input&&"function"==typeof this.input.blur&&this.input.blur(),this.handleOnBlur()}},{key:"accept",value:function(){var e=this._tag();return""!==e&&(e=this._makeTag(e),this._addTags([e]))}},{key:"addTag",value:function(e){return this._addTags([e])}},{key:"clearInput",value:function(){this._clearInput()}},{key:"handlePaste",value:function(e){var t=this,n=this.props,r=n.addOnPaste,a=n.pasteSplit;if(r){e.preventDefault();var i=d(e),o=a(i).map(function(e){return t._makeTag(e)});this._addTags(o)}}},{key:"handleKeyDown",value:function(e){if(!e.defaultPrevented){var t=this.props,n=t.value,r=t.removeKeys,a=t.addKeys,i=this._tag(),o=""===i,s=e.keyCode,c=e.key,u=-1!==a.indexOf(s)||-1!==a.indexOf(c),l=-1!==r.indexOf(s)||-1!==r.indexOf(c);if(u){var d=this.accept();this._shouldPreventDefaultEventOnAdd(d,o,s)&&e.preventDefault()}l&&n.length>0&&o&&(e.preventDefault(),this._removeTag(n.length-1))}}},{key:"handleClick",value:function(e){e.target===this.div&&this.focus()}},{key:"handleChange",value:function(e){var t=this.props.onChangeInput,n=this.props.inputProps.onChange,r=e.target.value;n&&n(e),this.hasControlledInput()?t(r):this.setState({tag:r})}},{key:"handleOnFocus",value:function(e){var t=this.props.inputProps.onFocus;t&&t(e),this.setState({isFocused:!0})}},{key:"handleOnBlur",value:function(e){var t=this.props.inputProps.onBlur;if(this.setState({isFocused:!1}),null!=e&&(t&&t(e),this.props.addOnBlur)){var n=this._makeTag(e.target.value);this._addTags([n])}}},{key:"handleRemove",value:function(e){this._removeTag(e)}},{key:"inputProps",value:function(){var e=this.props.inputProps,t=(e.onChange,e.onFocus,e.onBlur,u(e,["onChange","onFocus","onBlur"])),n=b({},g,t);return this.props.disabled&&(n.disabled=!0),n}},{key:"inputValue",value:function(e){return e.currentValue||e.inputValue||""}},{key:"hasControlledInput",value:function(){var e=this.props,t=e.inputValue;return"function"==typeof e.onChangeInput&&"string"==typeof t}},{key:"componentDidMount",value:function(){this.hasControlledInput()||this.setState({tag:this.inputValue(this.props)})}},{key:"componentWillReceiveProps",value:function(e){this.hasControlledInput()||this.inputValue(e)&&this.setState({tag:this.inputValue(e)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=(t.onChange,t.tagProps),a=t.renderLayout,i=t.renderTag,o=t.renderInput,s=(t.addKeys,t.removeKeys,t.className),c=t.focusedClassName,l=(t.addOnBlur,t.addOnPaste,t.inputProps,t.pasteSplit,t.onlyUnique,t.maxTags,t.validationRegex,t.disabled);t.tagDisplayProp,t.inputValue,t.onChangeInput,u(t,["value","onChange","tagProps","renderLayout","renderTag","renderInput","addKeys","removeKeys","className","focusedClassName","addOnBlur","addOnPaste","inputProps","pasteSplit","onlyUnique","maxTags","validationRegex","disabled","tagDisplayProp","inputValue","onChangeInput"]);this.state.isFocused&&(s+=" "+c);var d=n.map(function(t,n){return i(b({key:n,tag:t,onRemove:e.handleRemove.bind(e),disabled:l,getTagDisplayValue:e._getTagDisplayValue.bind(e)},r))}),f=o(b({ref:function(t){e.input=t},value:this._tag(),onPaste:this.handlePaste.bind(this),onKeyDown:this.handleKeyDown.bind(this),onChange:this.handleChange.bind(this),onFocus:this.handleOnFocus.bind(this),onBlur:this.handleOnBlur.bind(this),addTag:this.addTag.bind(this)},this.inputProps()));return _.default.createElement("div",{ref:function(t){e.div=t},onClick:this.handleClick.bind(this),className:s},a(d,f))}}]),t}(_.default.Component);v.defaultProps={className:"react-tagsinput",focusedClassName:"react-tagsinput--focused",addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],renderInput:p,renderTag:f,renderLayout:h,pasteSplit:m,tagProps:{className:"react-tagsinput-tag",classNameRemove:"react-tagsinput-remove"},onlyUnique:!1,maxTags:-1,validationRegex:/.*/,disabled:!1,tagDisplayProp:null,preventSubmit:!0},t.default=v,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(10),i=r(a),o=n(49),s=r(o),c=n(1),u=r(c),l=n(9),d=n(8),f=n(124),p=r(f),h=n(40),m=r(h),_=n(55),M=n(70),b=n(54),g=n(36),v=n(41),y=r(v),A=n(38),w=r(A),E=n(27),k=n(81),T=n(64),L=(0,g.ModuleSettingsForm)(u.default.createClass({displayName:"Media",getInitialState:function(){return{carousel_display_exif:this.props.getOptionValue("carousel_display_exif","carousel")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("carousel",e))},render:function(){var e=this,t=this.props.isModuleFound("carousel"),n=this.props.isModuleFound("videopress");if(!t&&!n)return null;var r=this.props.module("carousel"),a=this.props.getOptionValue("carousel"),o=this.props.module("videopress"),s=(0,_.getPlanClass)(this.props.sitePlan.product_slug),c=u.default.createElement(w.default,{module:{module:"carousel"},hasChild:!0,support:r.learn_more_button},u.default.createElement(b.ModuleToggle,{slug:"carousel",activated:a,toggling:this.props.isSavingAnyOption("carousel"),toggleModule:this.props.toggleModuleNow},u.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)),u.default.createElement(M.FormFieldset,null,u.default.createElement(p.default,{checked:this.state.carousel_display_exif,disabled:!a||this.props.isSavingAnyOption(["carousel","carousel_display_exif"]),onChange:function(){return e.updateOptions("carousel_display_exif")}},u.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,d.translate)("Show photo metadata (Exif) in carousel, when available"))),u.default.createElement(M.FormLabel,null,u.default.createElement(M.FormLegend,{className:"jp-form-label-wide"},(0,d.translate)("Color scheme")),u.default.createElement(M.FormSelect,(0,i.default)({name:"carousel_background_color",value:this.props.getOptionValue("carousel_background_color"),disabled:!a||this.props.isSavingAnyOption(["carousel","carousel_background_color"])},this.props,{validValues:this.props.validValues("carousel_background_color","carousel")}))))),l=(0,m.default)(["is-premium-plan","is-business-plan"],s)&&u.default.createElement(w.default,{hasChild:!0,disableInDevMode:!0,module:o},u.default.createElement(b.ModuleToggle,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},u.default.createElement("span",{className:"jp-form-toggle-explanation"},o.description)));return u.default.createElement(y.default,(0,i.default)({},this.props,{header:(0,d.translate)("Media"),hideButton:!t,feature:_.FEATURE_VIDEO_HOSTING_JETPACK,saveDisabled:this.props.isSavingAnyOption("carousel_background_color")}),t&&c,n&&l)}}));t.default=(0,l.connect)(function(e){return{module:function(t){return(0,E.getModule)(e,t)},isModuleFound:function(t){return(0,k.isModuleFound)(e,t)},sitePlan:(0,T.getSitePlan)(e)}})(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}),t.CustomContentTypes=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(124),w=r(A),E=n(70),k=n(36),T=n(27),L=n(81),S=n(41),C=r(S),z=n(38),O=r(z),N=t.CustomContentTypes=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={testimonial:r.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:r.props.getOptionValue("jetpack_portfolio","custom-content-types")},r.updateCPTs=function(e){var t="testimonial"===e?!(!r.state.testimonial||r.state.portfolio):!(!r.state.portfolio||r.state.testimonial);r.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),r.setState((0,s.default)({},e,!r.state[e]))},r.linkIfActiveCPT=function(e){return r.props.getSettingCurrentValue("jetpack_"+e,"custom-content-types")?g.default.createElement("a",{href:r.props.siteAdminUrl+"edit.php?post_type=jetpack-"+e}):g.default.createElement("span",null)},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this;if(!this.props.isModuleFound("custom-content-types"))return null;var t=this.props.module("custom-content-types");return g.default.createElement(C.default,(0,i.default)({},this.props,{module:"custom-content-types",hideButton:!0}),g.default.createElement(O.default,{hasChild:!0,module:t,support:t.learn_more_button},g.default.createElement(w.default,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial"),onChange:function(){return e.updateCPTs("testimonial")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Testimonials"))),g.default.createElement(E.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{testimonialLink}}testimonials{{/testimonialLink}}. If your theme doesn’t support testimonials yet, you can display them using the shortcode\t( [testimonials] ).",{components:{testimonialLink:this.linkIfActiveCPT("testimonial")}}))),g.default.createElement(w.default,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio"),onChange:function(){return e.updateCPTs("portfolio")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Portfolios"))),g.default.createElement(E.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).",{components:{portfolioLink:this.linkIfActiveCPT("portfolio")}})))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)}}})((0,k.ModuleSettingsForm)(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(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(124),w=r(A),E=n(14),k=r(E),T=n(70),L=n(54),S=n(27),C=n(28),z=n(81),O=n(36),N=n(41),D=r(N),P=n(38),x=r(P),j=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.getInfiniteMode=function(){return r.props.getOptionValue("infinite-scroll")?r.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"},r.updateInfiniteMode=function(e){r.setState({infinite_mode:e},r.prepareOptionsToUpdate)},r.prepareOptionsToUpdate=function(){"infinite_default"===r.state.infinite_mode?r.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==r.state.infinite_mode&&"infinite_button"!==r.state.infinite_mode||r.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===r.state.infinite_mode})},r.updateOptions=function(e,t){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption(t,e))},r.trackLearnMoreIS=function(){k.default.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})},r.state={infinite_mode:r.getInfiniteMode(),wp_mobile_excerpt:r.props.getOptionValue("wp_mobile_excerpt","minileven"),wp_mobile_featured_images:r.props.getOptionValue("wp_mobile_featured_images","minileven"),wp_mobile_app_promos:r.props.getOptionValue("wp_mobile_app_promos","minileven")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("minileven");return t||n?g.default.createElement(D.default,(0,i.default)({},this.props,{header:(0,y.translate)("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported}),t&&[(0,i.default)({},this.props.getModule("infinite-scroll"),{radios:[{key:"infinite_default",label:(0,y.translate)("Load more posts using the default theme behavior")},{key:"infinite_button",label:(0,y.translate)("Load more posts in page with a button")},{key:"infinite_scroll",label:(0,y.translate)("Load more posts as the reader scrolls down")}]})].map(function(t){return e.props.isModuleFound(t.module)?g.default.createElement(x.default,{hasChild:!0,module:{module:t.module},key:"theme_enhancement_"+t.module,support:t.learn_more_button},g.default.createElement(T.FormLegend,{className:"jp-form-label-wide"},t.name),e.props.isInfiniteScrollSupported?t.radios.map(function(n){return g.default.createElement(T.FormLabel,{key:t.module+"_"+n.key},g.default.createElement("input",{type:"radio",name:"infinite_mode",value:n.key,checked:n.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([t.module,n.key]),onChange:function(){return e.updateInfiniteMode(n.key)}}),g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.label))}):g.default.createElement("span",null,(0,y.translate)("Theme support required.")+" ",g.default.createElement("a",{onClick:e.trackLearnMoreIS,href:t.learn_more_button+"#theme",title:(0,y.translate)("Learn more about adding support for Infinite Scroll to your theme.")},(0,y.translate)("Learn more")))):null}),n&&[(0,i.default)({},this.props.getModule("minileven"),{checkboxes:[{key:"wp_mobile_excerpt",label:(0,y.translate)("Use excerpts instead of full posts on front page and archive pages")},{key:"wp_mobile_featured_images",label:(0,y.translate)("Show featured images")},{key:"wp_mobile_app_promos",label:(0,y.translate)("Show an ad for the WordPress mobile apps in the footer of the mobile theme")}]})].map(function(t){var n=e.props.getOptionValue(t.module);return e.props.isModuleFound(t.module)?g.default.createElement(x.default,{hasChild:!0,module:{module:t.module},key:"theme_enhancement_"+t.module,support:t.learn_more_button},g.default.createElement(L.ModuleToggle,{slug:t.module,activated:n,toggling:e.props.isSavingAnyOption(t.module),toggleModule:e.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),g.default.createElement(T.FormFieldset,null,t.checkboxes.map(function(r){return g.default.createElement(w.default,{checked:e.state[r.key],disabled:!n||e.props.isSavingAnyOption([t.module,r.key]),onChange:function(){return e.updateOptions(r.key,t.module)},key:t.module+"_"+r.key},g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.label))}))):null})):null}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,S.getModule)(e,t)},isInfiniteScrollSupported:(0,C.currentThemeSupports)(e,"infinite-scroll"),isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,O.ModuleSettingsForm)(j)),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(10),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(9),g=n(8),v=n(43),y=r(v),A=n(1133),w=r(A),E=n(30),k=r(E),T=n(14),L=r(T),S=n(70),C=n(54),z=n(27),O=n(81),N=n(36),D=n(41),P=r(D),x=n(38),j=r(x),R=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.regeneratePostByEmailAddress=function(e){L.default.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),r.props.regeneratePostByEmailAddress()},r.address=function(){var e=r.props.getOptionValue("post_by_email_address");return!1===e||"1"===e?"":e},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("post-by-email"))return null;var e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInDevMode("post-by-email")||!this.props.isLinked,r=this.address();return M.default.createElement(P.default,(0,i.default)({},this.props,{module:"post-by-email",hideButton:!0}),M.default.createElement(j.default,{hasChild:!0,disableInDevMode:!0,module:e},this.props.userCanManageModules?M.default.createElement(C.ModuleToggle,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),M.default.createElement(S.FormFieldset,null,M.default.createElement(S.FormLabel,null,M.default.createElement(S.FormLegend,null,(0,g.translate)("Email Address")),M.default.createElement(w.default,{value:r,disabled:!t||n,copy:(0,g.translate)("Copy",{context:"verb"}),copied:(0,g.translate)("Copied!"),prompt:(0,g.translate)("Highlight and copy the following text to your clipboard:")})),M.default.createElement(y.default,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?(0,g.translate)("Regenerate address"):(0,g.translate)("Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&M.default.createElement(k.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-pbe"},(0,g.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{module:function(t){return(0,z.getModule)(e,t)},isModuleFound:function(t){return(0,O.isModuleFound)(e,t)}}})((0,N.ModuleSettingsForm)(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(10),i=r(a),o=n(1),s=r(o),c=n(13),u=r(c),l=n(114),d=r(l),f=n(1134),p=r(f),h=n(500),m=r(h);n(1143),t.default=s.default.createClass({displayName:"ClipboardButtonInput",propTypes:{value:o.PropTypes.string,disabled:o.PropTypes.bool,className:o.PropTypes.string,copied:o.PropTypes.string,copy:o.PropTypes.string,prompt:o.PropTypes.string},getInitialState:function(){return{isCopied:!1,disabled:!1}},getDefaultProps:function(){return{value:""}},componentWillUnmount:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout},showConfirmation:function(){var e=this;this.setState({isCopied:!0}),this.confirmationTimeout=setTimeout(function(){e.setState({isCopied:!1})},4e3)},render:function(){var e=(0,d.default)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return s.default.createElement("span",{className:(0,u.default)("dops-clipboard-button-input",this.props.className)},s.default.createElement(m.default,(0,i.default)({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),s.default.createElement(p.default,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(10),i=r(a),o=n(80),s=r(o),c=n(43),u=r(c),l=n(149),d=n(1),f=n(1135),p=n(114),h=n(69),m=n(13);e.exports=d.createClass({displayName:"ClipboardButton",propTypes:{className:d.PropTypes.string,text:d.PropTypes.string,prompt:d.PropTypes.string,onCopy:d.PropTypes.func},getDefaultProps:function(){return{onCopy:h}},componentDidMount:function(){var e=this,t=l.findDOMNode(this.refs.button);this.clipboard=new f(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)},componentWillUnmount:function(){this.clipboard.destroy(),
|
44 |
delete this.clipboard},displayPrompt:function(){window.prompt(this.props.prompt,this.props.text)},render:function(){var e=m("dops-clipboard-button",this.props.className);return d.createElement(u.default,(0,i.default)({ref:"button"},p(this.props,(0,s.default)(this.constructor.propTypes)),{className:e}))}})},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1136),n(1138),n(1139)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var u=a(t),l=a(n),d=a(r),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,d.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return c("action",e)}},{key:"defaultTarget",value:function(e){var t=c("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return c("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(l.default);e.exports=h})},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1137)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(e){return e&&e.__esModule?e:{default:e}}(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=o})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){a.off(e,r),t.apply(n,arguments)}var a=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=n.length;for(r;r<a;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],a=[];if(r&&t)for(var i=0,o=r.length;i<o;i++)r[i].fn!==t&&r[i].fn._!==t&&a.push(r[i]);return a.length?n[e]=a:delete n[e],this}},e.exports=n},function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,n);if(s.nodeList(e))return i(e,t,n);if(s.string(e))return o(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function i(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function o(e,t,n){return c(document.body,e,t,n)}var s=n(1140),c=n(1141);e.exports=r},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e,t,n,r,a){var o=i.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function a(e,t,n,a,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,a,i)}))}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=n(1142);e.exports=a},function(e,t){function n(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Masterbar=void 0;var a=n(10),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(30),v=r(g),y=n(36),A=n(41),w=r(A),E=n(38),k=r(E),T=n(54);t.Masterbar=(0,y.ModuleSettingsForm)(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=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInDevMode("masterbar"),n=this.props.isLinked;return M.default.createElement(w.default,(0,i.default)({},this.props,{header:(0,b.translate)("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"masterbar"},support:"https://jetpack.com/support/masterbar/"},M.default.createElement(T.ModuleToggle,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Enable the WordPress.com toolbar"),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("The WordPress.com toolbar replaces the default admin bar and offers quick links to the Reader, all your sites, your WordPress.com profile, and notifications. Centralize your WordPress experience with a single global toolbar.")))),!this.props.isUnavailableInDevMode("masterbar")&&!this.props.isLinked&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-masterbar"},(0,b.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(_.Component))},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(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(906),w=r(A),E=n(70),k=n(36),T=n(27),L=n(81),S=n(41),C=r(S),z=n(38),O=r(z),N=n(54),D=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.toggleModule=function(e,t){"photon"===e?!1==!t?r.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):r.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):r.props.updateOptions((0,s.default)({},e,!t))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("lazy-images");if(!e&&!t)return null;var n=this.props.module("photon"),r=this.props.module("lazy-images");return g.default.createElement(C.default,(0,i.default)({},this.props,{header:(0,y.translate)("Speed up your site"),hideButton:!0}),g.default.createElement(O.default,{hasChild:!0,disableInDevMode:!0,module:n},g.default.createElement(N.ModuleToggle,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,w.default)(n.description))),g.default.createElement(E.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,w.default)(n.long_description)))),g.default.createElement(O.default,{hasChild:!0,module:r},g.default.createElement(N.ModuleToggle,{slug:"lazy-images",disabled:this.props.isUnavailableInDevMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,w.default)(r.description))),g.default.createElement(E.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,w.default)(r.long_description)))))}}]),t}(b.Component));t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)}}})(D),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(9),M=n(27),b=n(113),g=n(22),v=n(81),y=n(28),A=n(208),w=r(A),E=n(1147),k=n(1148),T=n(1149),L=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={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?m.default.createElement("div",null,m.default.createElement(w.default,null),t&&m.default.createElement(E.Publicize,e),n&&m.default.createElement(k.ShareButtons,e),r&&m.default.createElement(T.Likes,e)):null}}]),t}(h.Component);t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,b.getSettings)(e),isDevMode:(0,g.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,g.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,v.isModuleFound)(e,t)},isLinked:(0,g.isCurrentUserLinked)(e),connectUrl:(0,g.getConnectUrl)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e)}})(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}),t.Publicize=void 0;var a=n(10),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(30),v=r(g),y=n(14),A=r(y),w=n(36),E=n(41),k=r(E),T=n(38),L=r(T),S=n(54);t.Publicize=(0,w.ModuleSettingsForm)(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:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isUnavailableInDevMode("publicize"),n=this.props.isLinked,r=this.props.connectUrl,a=this.props.siteRawUrl,o=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||o?M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),s&&M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"publicize"},support:"https://jetpack.com/support/publicize/"},M.default.createElement(S.ModuleToggle,{slug:"publicize",disabled:t,activated:o,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Automatically share your posts to social networks"))),o&&function(){if(!t)return n?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/"+a},(0,b.translate)("Connect your social media accounts")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:r+"&from=unlinked-user-connect-publicize"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}()):null}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ShareButtons=void 0;var a=n(10),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(30),v=r(g),y=n(14),A=r(y),w=n(36),E=n(41),k=r(E),T=n(38),L=r(T),S=n(54);t.ShareButtons=(0,w.ModuleSettingsForm)(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:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isLinked,n=this.props.connectUrl,r=this.props.siteRawUrl,a=this.props.siteAdminUrl,o=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"sharing"},support:"https://jetpack.com/support/sharing/"},M.default.createElement(S.ModuleToggle,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Add sharing buttons to your posts"))),s&&function(){return o?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:a+"options-general.php?page=sharing"},(0,b.translate)("Configure your sharing buttons")):t?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/buttons/"+r},(0,b.translate)("Configure your sharing buttons")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:n+"&from=unlinked-user-connect-sharing"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}())}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Likes=void 0;var a=n(10),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(36),v=n(41),y=r(v),A=n(38),w=r(A),E=n(54);t.Likes=(0,g.ModuleSettingsForm)(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=this.props.isUnavailableInDevMode("likes"),t=this.props.getOptionValue("likes");return M.default.createElement(y.default,(0,i.default)({},this.props,{header:(0,b.translate)("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),M.default.createElement(w.default,{disableInDevMode:!0,module:{module:"likes"},support:"https://jetpack.com/support/likes/"},M.default.createElement(E.ModuleToggle,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Allow readers to show their appreciation of your posts by adding a like button to your content"))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SearchableModules=void 0;var a=n(49),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(431),A=r(y),w=n(40),E=r(w),k=n(8),T=n(832),L=r(T),S=n(36),C=n(27),z=n(81),O=n(41),N=r(O),D=n(38),P=r(D),x=n(28),j=n(22),R=t.SearchableModules=(0,S.ModuleSettingsForm)(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=this;if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;var t=["contact-form","custom-css","enhanced-distribution","json-api","latex","monitor","notes","shortcodes","shortlinks","widget-visibility","widgets"],n=this.props.modules,r=[];return(0,A.default)(n,function(n,a){if(e.props.isModuleFound(a)&&(0,E.default)(t,a)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(g.default.createElement(Y,{key:a,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(g.default.createElement(Y,{key:a,moduleData:n})):r.push(g.default.createElement(L.default,{className:"jp-searchable-banner",key:a,callToAction:(0,k.translate)("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.props.updateOptions.bind(null,(0,i.default)({},n.module,!0)),title:n.name}))}}),g.default.createElement("div",null,r)}}]),t}(b.Component));R.propTypes={searchTerm:M.default.string},R.defaultProps={searchTerm:""};var Y=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=this.props.moduleData,t=this.props.devMode;return g.default.createElement(N.default,{header:e.name,action:e.module,hideButton:!0},g.default.createElement(P.default,{disableInDevMode:t,module:{module:e.module},support:e.learn_more_button},e.description))}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{modules:(0,C.getModules)(e),isModuleFound:function(t){return(0,z.isModuleFound)(e,t)},canManageModules:(0,x.userCanManageModules)(e),isUnavailableInDevMode:function(t){return(0,j.isUnavailableInDevMode)(e,t)},isDevMode:(0,j.isDevMode)(e)}})(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(1),i=r(a),o=n(9),s=n(30),c=r(s),u=n(8),l=n(907),d=r(l),f=n(22),p=n(85),h=i.default.createClass({displayName:"JetpackConnect",render:function(){var e=this.props.connectUrl+"&from=new-account-button";return i.default.createElement("div",{className:"jp-jetpack-connect__container"},i.default.createElement("h1",{className:"jp-jetpack-connect__container-title",title:"Welcome to Jetpack"},(0,u.translate)("Welcome to Jetpack")),i.default.createElement(c.default,{className:"jp-jetpack-connect__cta"},i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Hassle-free design, marketing, and security for your WordPress site. Connect Jetpack to a WordPress.com account to start building your own success story.")),i.default.createElement(d.default,{from:"landing-page-top"},i.default.createElement("p",null,i.default.createElement("a",{href:e,className:"jp-jetpack-connect__link"},(0,u.translate)("No account? Create one for free."))))),i.default.createElement(c.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__design"},i.default.createElement("header",{className:"jp-jetpack-connect__header"},i.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,u.translate)("WordPress themes and customization tools for designing your site.")},(0,u.translate)("Design the perfect website")),i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Bring your ideas to life with elegant and professional designs and code-free customization tools."))),i.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},i.default.createElement("img",{src:p.imagePath+"feature-photon-med.jpg",srcSet:p.imagePath+"feature-photon-sm.jpg 600w, "+p.imagePath+"feature-photon-med.jpg 770w, "+p.imagePath+"feature-photon-lrg.jpg 1200w",className:"jp-jetpack-connect__feature-image",alt:(0,u.translate)("Jetpack's photon serves up lightning fast, optimized images")}),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's WordPress themes"),className:"dops-section-header__label"},(0,u.translate)("Professional themes")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Find the perfect design for your site from hundreds of available themes.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's customization tools"),className:"dops-section-header__label"},(0,u.translate)("Code-free customization")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Customize your site with endless widget options, image galleries, and embedded media.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's performance features"),className:"dops-section-header__label"},(0,u.translate)("Speed up your site")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Deliver blazing fast images and video and improve site load times."))))))),i.default.createElement(c.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__traffic"},i.default.createElement("header",{className:"jp-jetpack-connect__header"},i.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,u.translate)("Drive more traffic to your site with Jetpack")},(0,u.translate)("Increase traffic and revenue")),i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Reach more people and earn money with automated marketing tools.")),i.default.createElement("div",{className:"jp-jetpack-connect__header-img-container"},i.default.createElement("img",{src:p.imagePath+"long-clouds.svg",width:"1160",height:"63",alt:(0,u.translate)("Decoration: Jetpack clouds",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"})," ",i.default.createElement("img",{src:p.imagePath+"stat-bars.svg",width:"400",alt:(0,u.translate)("Decoration: Jetpack bar graph",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"}))),i.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's site stats feature"),className:"dops-section-header__label"},(0,u.translate)("Track your growth")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Keep an eye on your success with simple, concise, and mobile-friendly stats.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's publicize features"),className:"dops-section-header__label"},(0,u.translate)("Automated marketing")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Schedule social media posts in advance, show related content, and give better search results.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's ads and PayPal features"),className:"dops-section-header__label"},(0,u.translate)("Generate revenue")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Monetize your site with high-quality ads and take PayPal payments."))))))),i.default.createElement(c.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__security"},i.default.createElement("header",{className:"jp-jetpack-connect__header"},i.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,u.translate)("Keep your site safe, 24/7")},(0,u.translate)("Keep your site safe, 24/7")),i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Automatic defense against hacks, malware, spam, data loss, and downtime."))),i.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's monitor feature"),className:"dops-section-header__label"},(0,u.translate)("Monitor",{context:"Header. Noun: Monitor is a module of Jetpack."})),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Be alerted about any unexpected downtime the moment it happens.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's Protect features"),className:"dops-section-header__label"},(0,u.translate)("Protect",{context:"Header. Noun: Protect is a module of Jetpack."})),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Guard your site against brute force login attacks, spam, and harmfulmalware injections.")))),i.default.createElement("div",{
|
45 |
className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:"Jetpack's backup feature",className:"dops-section-header__label"},(0,u.translate)("Backup and restore")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Automatic, real-time backups mean your entire site is always ready to be restored."))))))),i.default.createElement(c.default,{className:"jp-jetpack-connect__cta"},i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Join the millions of users who rely on Jetpack to enhance and secure their sites. We're passionate about WordPress and here to make your life easier.")),i.default.createElement(d.default,{from:"landing-page-bottom"},i.default.createElement("p",null,i.default.createElement("a",{href:e,className:"jp-jetpack-connect__link"},(0,u.translate)("No account? Create one for free."))))))}});t.default=(0,o.connect)(function(e){return{connectUrl:(0,f.getConnectUrl)(e)}})(h),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.JetpackDisconnectDialog=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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(8),v=n(43),y=r(v),A=n(30),w=r(A),E=n(61),k=r(E),T=n(1153),L=r(T),S=n(55),C=n(69),z=r(C),O=n(14),N=r(O),D=n(64),P=n(22),x=n(28),j=t.JetpackDisconnectDialog=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.getPlanFeatures=function(){switch((0,S.getPlanClass)(r.props.sitePlan.product_slug)){case"is-personal-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Spam filtering"),icon:"spam"}];case"is-premium-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("13Gb of high-speed video hosting"),icon:"video"}];case"is-business-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning with automated resolution"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Unlimited high-speed video hosting"),icon:"video"},{text:(0,g.translate)("SEO preview tools"),icon:"globe"}];default:return[{text:(0,g.translate)("Site stats, related content, and sharing tools"),icon:"stats-alt"},{text:(0,g.translate)("Brute force attack protection and uptime monitoring"),icon:"lock"},{text:(0,g.translate)("Unlimited, high-speed image hosting"),icon:"image"}]}},r.closeModal=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"stay-connected"}),r.props.toggleModal()},r.disconnectSiteTrack=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"disconnect-site"}),r.props.disconnectSite()},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return this.props.show&&M.default.createElement(L.default,{className:"jp-connection-settings__modal",onRequestClose:this.props.toggleModal},M.default.createElement(w.default,{className:"jp-connection-settings__modal-body"},M.default.createElement("h2",null,(0,g.translate)("Disconnect Jetpack")),M.default.createElement("h4",null,(0,g.translate)("By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:",{args:{siteName:this.props.siteRawUrl.replace("::","/")}})),M.default.createElement("ul",null,this.getPlanFeatures().map(function(e){return M.default.createElement("li",{key:"feature_"+e.icon},M.default.createElement(k.default,{icon:e.icon,size:18}),e.text)})),M.default.createElement("div",{className:"jp-connection-settings__modal-actions"},M.default.createElement(y.default,{className:"jp-connection-settings__modal-cancel",onClick:this.closeModal},(0,g.translate)("Stay connected",{context:"A caption for a button to cancel disconnection."})),M.default.createElement(y.default,{onClick:this.disconnectSiteTrack,scary:!0,primary:!0},(0,g.translate)("Disconnect",{context:"A caption for a button to disconnect."}))),M.default.createElement("p",{className:"jp-connection-settings__modal-more"},M.default.createElement("a",{href:"https://jetpack.com/features/"},(0,g.translate)("Read more about Jetpack benefits")))))}}]),t}(M.default.Component);j.propTypes={show:m.default.bool,toggleModal:m.default.func,disconnectSite:m.default.func},j.defaultProps={show:!1,toggleModal:z.default,disconnectSite:z.default},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,x.getSiteRawUrl)(e),isDisconnecting:(0,P.isDisconnectingSite)(e),sitePlan:(0,D.getSitePlan)(e)}},function(e){return{disconnectSite:function(){return e((0,P.disconnectSite)())}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){_=!0}function i(){_=!1}var o=n(10),s=r(o),c=n(455),u=r(c),l=n(1),d=n(149),f=n(13),p=n(25),h=n(114),m=n(1154),_=!1;n(1156);var M=l.createClass({displayName:"Modal",propTypes:{style:l.PropTypes.object,width:l.PropTypes.oneOf(["wide","medium","narrow"]),className:l.PropTypes.string,title:l.PropTypes.string,initialFocus:l.PropTypes.string,onRequestClose:l.PropTypes.func},getInitialState:function(){return{overlayMouseDown:!1}},getDefaultProps:function(){return{style:{}}},componentDidMount:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{m.activate(d.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}},componentWillUnmount:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{m.deactivate()}catch(e){}},handleEscapeKey:function(e){27===e.keyCode&&this.maybeClose()},maybeClose:function(){this.props.onRequestClose&&!_&&this.props.onRequestClose()},handleMouseDownOverlay:function(e){e.preventDefault(),e.stopPropagation(),this.setState({overlayMouseDown:!0})},handleClickOverlay:function(e){e.preventDefault(),e.stopPropagation(),this.state.overlayMouseDown&&this.props.onRequestClose&&!_&&(this.setState({overlayMouseDown:!1}),this.props.onRequestClose())},handleMouseEventModal:function(e){e.stopPropagation()},render:function(){var e,t,n=this.props,r=n.style,a=n.className,i=n.width,o=n.title,c=(0,u.default)(n,["style","className","width","title"]),d=h(c,"onRequestClose"),m=d.forwardedProps;switch(i){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}return t=p({},r,e),l.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},l.createElement("div",(0,s.default)({className:f("dops-modal",a),style:t,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":o},m),this.props.children))}});M.preventClose=a,M.allowClose=i,e.exports=M},function(e,t,n){function r(e,t){function n(e){if(!k){var t={onActivate:e&&void 0!==e.onActivate?e.onActivate:C.onActivate};return k=!0,T=!1,E=document.activeElement,t.onActivate&&t.onActivate(),l(),z}}function r(e){if(k){var t={returnFocus:e&&void 0!==e.returnFocus?e.returnFocus:C.returnFocusOnDeactivate,onDeactivate:e&&void 0!==e.onDeactivate?e.onDeactivate:C.onDeactivate};return d(),t.onDeactivate&&t.onDeactivate(),t.returnFocus&&setTimeout(function(){i(E)},0),k=!1,T=!1,this}}function c(){!T&&k&&(T=!0,d())}function u(){T&&k&&(T=!1,l())}function l(){if(k)return s&&s.pause(),s=z,g(),i(p()),document.addEventListener("focus",_,!0),document.addEventListener("click",m,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("touchstart",h,!0),document.addEventListener("keydown",M,!0),z}function d(){if(k&&s===z)return document.removeEventListener("focus",_,!0),document.removeEventListener("click",m,!0),document.removeEventListener("mousedown",h,!0),document.removeEventListener("touchstart",h,!0),document.removeEventListener("keydown",M,!0),s=null,z}function f(e){var t=C[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw new Error("`"+e+"` did not return a node");return n}function p(){var e;if(!(e=null!==f("initialFocus")?f("initialFocus"):S.contains(document.activeElement)?document.activeElement:y[0]||f("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function h(e){C.clickOutsideDeactivates&&!S.contains(e.target)&&r({returnFocus:!1})}function m(e){C.clickOutsideDeactivates||S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function _(e){S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation(),"function"==typeof e.target.blur&&e.target.blur(),L&&v(L))}function M(e){"Tab"!==e.key&&9!==e.keyCode||b(e),!1!==C.escapeDeactivates&&a(e)&&r()}function b(e){if(g(),e.target.hasAttribute("tabindex")&&Number(e.target.getAttribute("tabindex"))<0)return L=e;e.preventDefault();var t=y.indexOf(e.target);return e.shiftKey?i(e.target===A||-1===y.indexOf(e.target)?w:y[t-1]):e.target===w?i(A):void i(y[t+1])}function g(){y=o(S),A=y[0],w=y[y.length-1]}function v(e){if(e.shiftKey)return i(w);i(A)}var y=[],A=null,w=null,E=null,k=!1,T=!1,L=null,S="string"==typeof e?document.querySelector(e):e,C=t||{};C.returnFocusOnDeactivate=!t||void 0===t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,C.escapeDeactivates=!t||void 0===t.escapeDeactivates||t.escapeDeactivates;var z={activate:n,deactivate:r,pause:c,unpause:u};return z}function a(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function i(e){e&&e.focus&&e!==document.activeElement&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}var o=n(1155),s=null;e.exports=r},function(e,t){function n(e){function t(r,a){if(r===e.documentElement)return!1;for(var i=0,o=n.length;i<o;i++)if(n[i][0]===r)return n[i][1];a=a||e.defaultView.getComputedStyle(r);var s=!1;return"none"===a.display?s=!0:r.parentNode&&(s=t(r.parentNode)),n.push([r,s]),s}var n=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!t(n,r)||"hidden"===r.visibility}}e.exports=function(e,t){t=t||{};var r=e.ownerDocument||e,a=[],i=[],o=n(r),s=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(s.join(","));if(t.includeContainer){var u=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;s.some(function(t){return u.call(e,t)})&&(c=Array.prototype.slice.apply(c),c.unshift(e))}for(var l,d,f=0,p=c.length;f<p;f++)l=c[f],(d=parseInt(l.getAttribute("tabindex"),10)||l.tabIndex)<0||"INPUT"===l.tagName&&"hidden"===l.type||l.disabled||o(l,r)||(0===d?a.push(l):i.push({index:f,tabIndex:d,node:l}));var h=i.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return{__html:e.jumpstart_desc}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),s=n(3),c=r(s),u=n(6),l=r(u),d=n(4),f=r(d),p=n(5),h=r(p),m=n(1),_=r(m),M=n(20),b=n(9),g=n(30),v=r(g),y=n(43),A=r(y),w=n(8),E=n(61),k=r(E),T=n(908),L=n(27),S=n(115),C=r(S),z=n(85),O=function(e){function t(){var e,n,r,a;(0,c.default)(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return n=r=(0,f.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),r.activateButton=function(){return _.default.createElement(A.default,{primary:!0,onClick:r.props.jumpStartActivate,disabled:r.props.isJumpstarting},r.props.isJumpstarting?(0,w.translate)("Activating recommended features…"):(0,w.translate)("Activate recommended features"))},a=n,(0,f.default)(r,a)}return(0,h.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props.jumpstartFeatures.map(function(e){return _.default.createElement("div",{className:"jp-jumpstart__feature-list-column",key:"module-card_"+e.name},_.default.createElement("div",{className:"jp-jumpstart__feature-content"},_.default.createElement("h4",{className:"jp-jumpstart__feature-content-title",title:e.name},e.name),_.default.createElement("p",{dangerouslySetInnerHTML:a(e)})))});return _.default.createElement("div",{className:"jp-jumpstart-full__container"},_.default.createElement("img",{src:z.imagePath+"stars-full.svg",width:"60",height:"60",alt:(0,w.translate)("Stars"),className:"jp-jumpstart-full__svg-stars"}),_.default.createElement("img",{src:z.imagePath+"jupiter.svg",width:"50",height:"100",alt:(0,w.translate)("Jupiter"),className:"jp-jumpstart-full__svg-jupiter"}),_.default.createElement(k.default,{icon:"cross-small",className:"jp-jumpstart-full__dismiss",tabIndex:"0",onKeyDown:(0,C.default)(this.props.jumpStartSkip),onClick:this.props.jumpStartSkip}),_.default.createElement("div",{className:"jp-jumpstart"},_.default.createElement("img",{src:z.imagePath+"man-and-laptop.svg",width:"199",height:"153",alt:(0,w.translate)("Person with laptop")}),_.default.createElement("h1",{className:"jp-jumpstart__title"},(0,w.translate)("Your Jetpack site is ready to go!")),_.default.createElement(v.default,{className:"jp-jumpstart__description"},_.default.createElement("p",null,(0,w.translate)("We're now collecting stats, securing your site, and speeding up your images. Pretty soon you'll be able to see everything going on with your site right through Jetpack! Welcome aboard."))),_.default.createElement(v.default,null,this.activateButton()),_.default.createElement(v.default,null,_.default.createElement("h2",{className:"jp-jumpstart__feature-heading"},(0,w.translate)("Jetpack's recommended features include:")),_.default.createElement("div",{className:"jp-jumpstart__feature-list"},e),this.activateButton(),_.default.createElement("p",{className:"jp-jumpstart__note"},(0,w.translate)("Features can be activated or deactivated at any time.")))))}}]),t}(_.default.Component);O.displayName="JumpStart",t.default=(0,b.connect)(function(e){return{isJumpstarting:(0,T.isJumpstarting)(e),jumpstartFeatures:(0,L.getModulesByFeature)(e,"Jumpstart")}},function(e){return(0,M.bindActionCreators)({jumpStartActivate:T.jumpStartActivate,jumpStartSkip:T.jumpStartSkip},e)})(O),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.jumpStartSkip=t.jumpStartActivate=void 0;var a=n(123),i=n(8),o=n(646),s=n(14),c=r(s),u=n(16),l=n(60),d=r(l),f=n(27),p=n(113),h=(t.jumpStartActivate=function(){return function(e){return e({type:u.JUMPSTART_ACTIVATE}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-info",(0,i.translate)("Activating recommended features…"),{id:"jumpstart-activate"})),d.default.jumpStart("activate").then(function(){e({type:u.JUMPSTART_ACTIVATE_SUCCESS,jumpStart:!0}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_submit",{}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-success",(0,i.translate)("Recommended features active."),{id:"jumpstart-activate",duration:2e3})),e((0,f.fetchModules)()),e((0,p.fetchSettings)())}).catch(function(t){e({type:u.JUMPSTART_ACTIVATE_FAIL,error:t}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-error",(0,i.translate)("Recommended features failed to activate. %(error)s",{args:{error:t}}),{id:"jumpstart-activate"}))})}},(0,o.createHistory)());t.jumpStartSkip=function(){return function(e){return e({type:u.JUMPSTART_SKIP}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_skip",{}),h.push(window.location.pathname+"?page=jetpack#/dashboard"),d.default.jumpStart("deactivate").then(function(){e({type:u.JUMPSTART_SKIP_SUCCESS,jumpStart:!1})}).catch(function(t){e({type:u.JUMPSTART_SKIP_FAIL,error:t})})}}},function(e,t,n){function r(e,t,n){t=(n?i(e,t,n):void 0===t)?1:c(o(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var u=0,l=0,d=Array(s(r/t));u<r;)d[l++]=a(e,u,u+=t);return d}var a=n(460),i=n(216),o=n(224),s=Math.ceil,c=Math.max;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(15),M=r(_),b=n(9),g=n(148),v=r(g),y=n(8),A=n(13),w=r(A),E=n(64),k=n(22),T=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,t=e.siteRawUrl,n=e.inDevMode,r=m.default.createElement("a",{href:"https://wordpress.com/stats/activity/"+t}),a=(0,y.translate)("{{a}}View your site's activity{{/a}} in a single feed.",{components:{a:r}});return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(v.default,{label:(0,y.translate)("Activity"),isModule:!1,className:(0,w.default)({"jp-dash-item__is-inactive":n}),pro:!1},m.default.createElement("p",{className:"jp-dash-item__description"},n?(0,y.translate)("Unavailable in Dev Mode."):a)))}}]),t}(h.Component);T.propTypes={inDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,sitePlan:M.default.object.isRequired},T.defaultProps={inDevMode:!1,siteRawUrl:"",sitePlan:""},t.default=(0,b.connect)(function(e){return{sitePlan:(0,E.getSitePlan)(e),inDevMode:(0,k.isDevMode)(e)}})(T),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(80),i=r(a),o=n(58),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(15),g=r(b),v=n(1),y=r(v),A=n(431),w=r(A),E=n(24),k=r(E),T=n(30),L=r(T),S=n(1163),C=r(S),z=n(9),O=n(910),N=r(O),D=n(43),P=r(D),x=n(859),j=r(x),R=n(8),Y=n(14),I=r(Y),q=n(40),B=r(q),W=n(85),U=n(22),H=n(28),F=n(1172),X=r(F),V=n(1173),K=r(V),J=n(62),G=n(27),Q=n(113),Z=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return(0,M.default)(t,e),(0,p.default)(t,[{key:"barClick",value:function(e){e.data.link&&(I.default.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}},{key:"statsChart",value:function(e){var t=this.props,n=[],r=0;return"object"!==(0,s.default)(t.statsData[e])?{chartData:n,totalViews:!1}:((0,w.default)(t.statsData[e].data,function(a){var i=a[1],o=a[0],s="",c="";r+=i,"day"===e?(s=(0,R.moment)(o).format("MMM D"),c=(0,R.moment)(o).format("MMMM Do")):"week"===e?(o=o.replace(/W/g,"-"),s=(0,R.moment)(o).format("MMM D"),c=(0,R.translate)("Week of %(date)s",{args:{date:(0,R.moment)(o).format("MMMM Do")}})):(s=(0,R.moment)(o).format("MMM"),c=(0,R.moment)(o).format("MMMM, YYYY")),n.push({label:s,value:i,nestedValue:null,className:"statsChartbar",data:{link:"https://wordpress.com/stats/"+e+"/"+t.siteRawUrl+"?startDate="+o},tooltipData:[{label:c,value:(0,R.translate)("Views: %(numberOfViews)s",{args:{numberOfViews:(0,R.numberFormat)(i)}}),className:"tooltip class"},{label:(0,R.translate)("Click to view detailed stats.")}]})}),{chartData:n,totalViews:r})}},{key:"statsErrors",value:function(){return(0,k.default)(this.props.statsData,["general","errors"],!1)}},{key:"renderStatsChart",value:function(e){return y.default.createElement("div",null,y.default.createElement("div",{className:"jp-at-a-glance__stats-chart"},y.default.createElement(C.default,{data:e,barClick:this.barClick}),0<e.length?"":y.default.createElement(j.default,null)),y.default.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},y.default.createElement(K.default,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl})))}},{key:"renderEmptyStatsCard",value:function(){var e=this,t=function(){e.setState({emptyStatsDismissed:!0}),e.props.updateOptions({dismiss_empty_stats_card:!0})};return y.default.createElement(L.default,{className:"jp-at-a-glance__stats-empty"},y.default.createElement("img",{src:W.imagePath+"stats-people.svg",width:"272",height:"144",alt:(0,R.translate)("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),y.default.createElement("p",null,(0,R.translate)("Hello there! Your stats have been activated."),y.default.createElement("br",null),(0,R.translate)("Just give us a little time to collect data so we can display it for you here.")),y.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Okay, got it!")))}},{key:"renderStatsArea",value:function(){var e=this,t=function(){return e.props.updateOptions({stats:!0})};if(this.props.getOptionValue("stats")){if(this.statsErrors())return y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("span",null,(0,R.translate)("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:y.default.createElement("a",{href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}})));var n=this.statsChart(this.props.activeTab()),r=n.chartData,a=n.totalViews,i=r.length>0&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return y.default.createElement("div",{className:"jp-at-a-glance__stats-container"},i?this.renderEmptyStatsCard():this.renderStatsChart(r))}return y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},y.default.createElement("img",{src:W.imagePath+"stats.svg",width:"60",height:"60",alt:(0,R.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,R.translate)("Unavailable in Dev Mode"):(0,R.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:y.default.createElement("a",{href:"javascript:void(0)",onClick:t}),a1:y.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),this.props.isDevMode?"":y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},y.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Activate Site Stats"))))}},{key:"maybeShowStatsTabs",value:function(){var e=this,t=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"day"}),e.props.switchView("day"),e.props.fetchStatsData("day")},n=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"week"}),e.props.switchView("week"),e.props.fetchStatsData("week")},r=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"month"}),e.props.switchView("month"),e.props.fetchStatsData("month")};if(this.props.getOptionValue("stats")&&!this.statsErrors())return y.default.createElement("ul",{className:"jp-at-a-glance__stats-views"},y.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},y.default.createElement("a",{href:"javascript:void(0)",onClick:t,className:this.getClass("day")},(0,R.translate)("Days"))),y.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},y.default.createElement("a",{href:"javascript:void(0)",onClick:n,className:this.getClass("week")},(0,R.translate)("Weeks"))),y.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},y.default.createElement("a",{href:"javascript:void(0)",onClick:r,className:this.getClass("month")},(0,R.translate)("Months"))))}},{key:"getClass",value:function(e){return this.props.activeTab()===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);if(!(0,B.default)(e,"stats"))return null;var t=this.props.activeTab();return y.default.createElement("div",null,y.default.createElement(X.default,{range:t}),y.default.createElement(N.default,{label:(0,R.translate)("Site Stats")},this.maybeShowStatsTabs()),y.default.createElement(L.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(v.Component);Z.propTypes={isDevMode:g.default.bool.isRequired,siteRawUrl:g.default.string.isRequired,siteAdminUrl:g.default.string.isRequired,statsData:g.default.any.isRequired},t.default=(0,z.connect)(function(e){return{moduleList:(0,G.getModules)(e),activeTab:function(){return(0,J.getActiveStatsTab)(e)},isDevMode:(0,U.isDevMode)(e),isLinked:(0,U.isCurrentUserLinked)(e),connectUrl:(0,U.getConnectUrl)(e),statsData:"N/A"!==(0,J.getStatsData)(e)?(0,J.getStatsData)(e):(0,H.getInitialStateStatsData)(e),isEmptyStatsCardDismissed:(0,Q.emptyStatsCardDismissed)(e)}},function(e){return{switchView:function(t){return e((0,J.statsSwitchTab)(t))},fetchStatsData:function(t){return e((0,J.fetchStatsData)(t))}}})(Z),e.exports=t.default},function(e,t,n){"use strict";var r=n(1),a=n(15),i=n(69),o=n(911),s=n(1164),c=n(1170);n(1171),e.exports=r.createClass({displayName:"ModuleChart",propTypes:{loading:a.bool,data:a.array,minTouchBarWidth:a.number,minBarWidth:a.number,barClick:a.func},getInitialState:function(){return{maxBars:100,width:650}},getDefaultProps:function(){return{minTouchBarWidth:42,minBarWidth:15,barClick:i}},componentDidMount:function(){this.resize=o(this.resize,400),window.addEventListener("resize",this.resize),this.resize()},componentWillUnmount:function(){window.removeEventListener("resize",this.resize)},componentWillReceiveProps:function(e){this.props.loading&&!e.loading&&this.resize()},resize:function(){var e,t=this.refs.chart,n=t.clientWidth-82;c.hasTouch()?(n=n<=0?350:n,e=Math.floor(n/this.props.minTouchBarWidth)):e=Math.floor(n/this.props.minBarWidth),this.setState({maxBars:e,width:n})},getYAxisMax:function(e){var t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r},getData:function(){var e=this.props.data;return e=e.slice(0-this.state.maxBars)},getValues:function(){var e=this.getData();return e=e.map(function(e){return e.value},this)},isEmptyChart:function(e){return e=e.filter(function(e){return e>0},this),0===e.length},render:function(){var e,t=this.getValues(),n=this.getYAxisMax(t),a=this.getData();return t.length&&this.isEmptyChart(t)&&(e=r.createElement("div",{className:"dops-chart__empty"},r.createElement("span",{className:"dops-chart__empty_notice"},"No activity this period"))),r.createElement("div",{ref:"chart",className:"dops-chart"},r.createElement("div",{className:"dops-chart__y-axis-markers"},r.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),r.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),r.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),r.createElement("div",{className:"dops-chart__y-axis"},r.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),r.createElement(s,{barClick:this.props.barClick,data:a,yAxisMax:n,chartWidth:this.state.width,isTouch:c.hasTouch()}),e)}})},function(e,t,n){"use strict";var r=n(1),a=n(1165),i=n(1168);e.exports=r.createClass({displayName:"ModuleChartBarContainer",propTypes:{isTouch:r.PropTypes.bool,data:r.PropTypes.array,yAxisMax:r.PropTypes.number,width:r.PropTypes.number,barClick:r.PropTypes.func},buildBars:function(e){var t=this.props.data.length,n="bottom right",i=this.props.chartWidth,o=i/t;return this.props.data.map(function(s,c){var u=o*(c+1);return u+230>i&&u+o-230>0&&(n="bottom left"),r.createElement(a,{index:c,key:c,isTouch:this.props.isTouch,tooltipPosition:n,className:s.className,clickHandler:this.props.barClick,data:s,max:e,count:t})},this)},render:function(){return r.createElement("div",null,r.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),r.createElement(i,{data:this.props.data,labelWidth:42}))}})},function(e,t,n){"use strict";var r=n(1),a=n(13),i=n(1166),o=n(61);e.exports=r.createClass({displayName:"ModuleChartBar",propTypes:{isTouch:r.PropTypes.bool,tooltipPosition:r.PropTypes.string,className:r.PropTypes.string,clickHandler:r.PropTypes.func,data:r.PropTypes.object.isRequired,max:r.PropTypes.number,count:r.PropTypes.number},getInitialState:function(){return{showPopover:!1}},buildSections:function(){var e,t,n,i,o,s=this.props.data.value,c=this.props.max,u=c?Math.ceil(s/c*1e4)/100:0,l=100-u,d=Math.max(1,Math.floor(l)),f=[],p=this.props.data.nestedValue,h={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===l&&!this.props.active};return e={height:d+"%"},f.push(r.createElement("div",{key:"spacer",className:a(h),style:e})),t={top:d+"%"},p&&(i=s?Math.ceil(p/s*1e4)/100:0,o={height:i+"%"},n=r.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:o})),f.push(r.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:t},n)),f.push(r.createElement("div",{key:"label",className:"dops-chart__bar-label"},this.props.label)),f},clickHandler:function(){"function"==typeof this.props.clickHandler&&this.props.clickHandler(this.props.data)},mouseEnter:function(){this.setState({showPopover:!0})},mouseLeave:function(){this.setState({showPopover:!1})},renderTooltip:function(){if(!this.props.data.tooltipData||!this.props.data.tooltipData.length||this.props.isTouch)return null;var e=this.props.data.tooltipData,t=e.map(function(e,t){var n,a=["module-content-list-item"];return e.icon&&(n=r.createElement(o,{icon:e.icon,size:18})),a.push(e.className),r.createElement("li",{key:t,className:a.join(" ")},r.createElement("span",{className:"dops-wrapper"},r.createElement("span",{className:"value"},e.value),r.createElement("span",{className:"label"},n,e.label)))});return r.createElement(i,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:this.refs&&this.refs.valueBar,isVisible:this.state.showPopover,position:this.props.tooltipPosition},r.createElement("ul",null,t))},render:function(){var e,t,n=this.props.count||1;return t={"dops-chart__bar":!0},this.props.className&&(t[this.props.className]=!0),e={width:1/n*100+"%"},r.createElement("div",{onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:a(t),style:e},this.buildSections(),r.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),r.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),r.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}})},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(13),M=r(_),b=n(866),g=r(b),v=n(803),y=r(v);n(1167);var A=function(){},w=function(e){
|
46 |
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(){if(!this.props.showOnMobile&&y.default.isMobile())return null;var e=(0,M.default)("dops-popover","dops-tooltip","is-"+this.props.position,this.props.className);return m.default.createElement(g.default,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:A,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(h.Component);w.propTypes={autoPosition:h.PropTypes.bool,className:h.PropTypes.string,id:h.PropTypes.string,isVisible:h.PropTypes.bool,position:h.PropTypes.string,rootClassName:h.PropTypes.string,status:h.PropTypes.string,showDelay:h.PropTypes.number,showOnMobile:h.PropTypes.bool},w.defaultProps={showDelay:100,position:"top",showOnMobile:!1},t.default=w,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";var r=n(1),a=n(15),i=n(911),o=n(1169);e.exports=r.createClass({displayName:"ModuleChartXAxis",propTypes:{labelWidth:a.number.isRequired,data:a.array.isRequired},getInitialState:function(){return{divisor:1,spacing:this.props.labelWidth}},componentDidMount:function(){this.resizeThrottled=i(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()},componentWillUnmount:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)},componentWillReceiveProps:function(e){this.resize(e)},resize:function(e){var t,n,r,a,i,o,s=this.props;t=this.refs.axis,!e||e instanceof Event||(s=e),t.style.overflow="hidden",n=t.clientWidth,t.style.overflow="visible",r=s.data.length||1,a=n/r,i=s.labelWidth,o=Math.ceil(i/a),this.setState({divisor:o,spacing:a})},render:function(){var e,t=this.props.data;return e=t.map(function(e,n){var a,i=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2,s=t.length-n-1;return s%this.state.divisor==0&&(a=r.createElement(o,{key:n,label:e.label,width:this.props.labelWidth,x:i})),a},this),r.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},e)}})},function(e,t,n){"use strict";var r=n(1);e.exports=r.createClass({displayName:"ModuleChartLabel",propTypes:{width:r.PropTypes.number.isRequired,x:r.PropTypes.number.isRequired,label:r.PropTypes.string.isRequired},render:function(){var e;return e={width:this.props.width+"px"},e.left=this.props.x+"px",r.createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}})},function(e,t,n){"use strict";e.exports={hasTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}}},function(e,t){},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(9),_=n(62),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:"componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){return null}}]),t}(h.Component);M.defaultProps={fetchStatsData:function(){}},t.default=(0,m.connect)(function(e){return{fetchStatsData:function(t){return(0,_.fetchStatsData)(e,t)},fetchingStatsData:(0,_.isFetchingStatsData)(e)}},function(e){return{fetchStatsData:function(t){return e((0,_.fetchStatsData)(t))}}})(M),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(58),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(15),M=r(_),b=n(1),g=r(b),v=n(43),y=r(v),A=n(14),w=r(A),E=n(30),k=r(E),T=n(8),L=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:"statsBottom",value:function(){var e=void 0;return e="object"===(0,i.default)(this.props.statsData.general)?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"},[{viewsToday:e.views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}},{key:"render",value:function(){var e=this.statsBottom()[0],t=function(){return w.default.tracks.recordJetpackClick("view_detailed_stats")},n=function(){return w.default.tracks.recordJetpackClick("view_wpcom_stats")};return g.default.createElement("div",null,g.default.createElement("div",{className:"jp-at-a-glance__stats-summary"},g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Views today",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Best overall day",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":(0,T.translate)("%(number)s View","%(number)s Views",{count:e.bestDay.count,args:{number:(0,T.numberFormat)(e.bestDay.count)}})),g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,T.moment)(e.bestDay.day).format("MMMM Do, YYYY"))),g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},g.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time views",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,T.numberFormat)(e.allTime.views))),g.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time comments",{comment:"Referring to a number of comments"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,T.numberFormat)(e.allTime.comments))))),g.default.createElement("div",{className:"jp-at-a-glance__stats-cta"},g.default.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),g.default.createElement("div",{className:"jp-at-a-glance__stats-cta-buttons"},(0,T.translate)("{{button}}View detailed stats{{/button}}",{components:{button:g.default.createElement(y.default,{onClick:t,href:this.props.siteAdminUrl+"admin.php?page=stats"})}}),this.props.isLinked&&(0,T.translate)("{{button}}View more stats on WordPress.com {{/button}}",{components:{button:g.default.createElement(y.default,{onClick:n,className:"is-primary",href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}}))),!this.props.isLinked&&g.default.createElement(k.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-connect"},(0,T.translate)("Connect your account to WordPress.com to view more stats")))}}]),t}(b.Component);L.propTypes={siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,statsData:M.default.object.isRequired,isLinked:M.default.bool.isRequired},L.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1},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(80),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(148),A=r(y),w=n(8),E=n(40),k=r(E),T=n(1175),L=r(T),S=n(27),C=n(62),z=n(22),O=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:"getContent",value:function(){var e=this,t=function(){return e.props.updateOptions({protect:!0})};if(this.props.getOptionValue("protect")){var n=this.props.protectCount;return!1===n||"0"===n||"N/A"===n?g.default.createElement(A.default,{label:"Protect",module:"protect",status:"is-working",className:"jp-dash-item__recently-activated"},g.default.createElement("div",{className:"jp-dash-item__recently-activated-lower"},g.default.createElement(L.default,null),g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Jetpack is actively blocking malicious login attempts. Data will display here soon!")))):g.default.createElement(A.default,{label:"Protect",module:"protect",status:"is-working"},g.default.createElement("h2",{className:"jp-dash-item__count"},(0,w.numberFormat)(n)),g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Total malicious attacks blocked on your site.")))}return g.default.createElement(A.default,{label:"Protect",module:"protect",className:"jp-dash-item__is-inactive"},g.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,w.translate)("Unavailable in Dev Mode"):(0,w.translate)("{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:t})}})))}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);return(0,k.default)(e,"protect")?g.default.createElement("div",{className:"jp-dash-item__interior"},g.default.createElement(L.default,null),this.getContent()):null}}]),t}(b.Component);O.propTypes={isDevMode:M.default.bool.isRequired,protectCount:M.default.any.isRequired},t.default=(0,v.connect)(function(e){return{protectCount:(0,C.getProtectCount)(e),isDevMode:(0,z.isDevMode)(e),moduleList:(0,S.getModules)(e)}})(O),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(9),_=n(20),M=n(62),b=n(27),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:"componentWillMount",value:function(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}},{key:"render",value:function(){return null}}]),t}(h.Component);g.defaultProps={fetchProtectCount:function(){}},t.default=(0,m.connect)(function(e){return{fetchProtectCount:(0,M.fetchProtectCount)(),fetchingProtectData:(0,M.isFetchingProtectData)(e),isModuleActivated:function(t){return(0,b.isModuleActivated)(e,t)}}},function(e){return(0,_.bindActionCreators)({fetchProtectCount:M.fetchProtectCount},e)})(g),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(80),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(40),w=r(A),E=n(14),k=r(E),T=n(27),L=n(22),S=n(148),C=r(S),z=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:"getContent",value:function(){var e=this,t=(0,y.translate)("Downtime Monitoring"),n=function(){k.default.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),e.props.updateOptions({monitor:!0})};return this.props.getOptionValue("monitor")?g.default.createElement(C.default,{label:t,module:"monitor",status:"is-working"},g.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Jetpack is monitoring your site. If we think your site is down, you will receive an email."))):g.default.createElement(C.default,{label:t,module:"monitor",className:"jp-dash-item__is-inactive"},g.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,y.translate)("Unavailable in Dev Mode."):(0,y.translate)("{{a}}Activate Monitor{{/a}} to receive notifications if your site goes down.",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})))}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);return(0,w.default)(e,"monitor")?g.default.createElement("div",null,this.getContent()):null}}]),t}(b.Component);z.propTypes={isDevMode:M.default.bool.isRequired},t.default=(0,v.connect)(function(e){return{isDevMode:(0,L.isDevMode)(e),moduleList:(0,T.getModules)(e)}})(z),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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(8),v=n(55),y=n(831),A=r(y),w=n(64),E=n(207),k=n(62),T=n(22),L=n(148),S=r(L),C=n(26),z=r(C),O=n(24),N=r(O),D=function(e){return M.default.createElement(S.default,{label:(0,g.translate)("Security Scanning"),module:e.feature||"scan",className:e.className||"",status:e.status||"",pro:!0},(0,z.default)(e.content)?e.content:M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},P=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:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.siteRawUrl,r=e.fetchingSiteData,a=!1!==t,i=this.props.vaultPressData,o=(0,N.default)(i,["data","features","security"],!1);if(this.props.getOptionValue("vaultpress")){if("N/A"===i)return D({status:"",content:(0,g.translate)("Loading…")});if(o){var s=this.props.scanThreats;if(0!==s)return D({content:[M.default.createElement("h3",null,(0,g.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:s,args:{number:(0,g.numberFormat)(s)}})),M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("{{a}}View details at VaultPress.com{{/a}}",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),M.default.createElement("br",null),(0,g.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}}))]});if("success"===i.code)return D({status:"is-working",content:(0,g.translate)("No threats found, you're good to go!")})}}if(r)return D({status:"",content:(0,g.translate)("Loading…")});var c=this.props.isVaultPressInstalled?"pro-inactive":"pro-uninstalled",u=(0,v.getPlanClass)((0,N.default)(t,"product_slug","")),l="is-premium-plan"===u,d="is-business-plan"===u;return D({className:"jp-dash-item__is-inactive",status:a?c:"no-pro-uninstalled-or-inactive",content:l||d||o?(0,g.translate)("For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/vaultpress",target:"_blank",rel:"noopener noreferrer"})}}):(0,g.translate)("For automated, comprehensive scanning of security threats, please {{a}}upgrade your account{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/redirect/?source=aag-scan&site="+n,target:"_blank",rel:"noopener noreferrer"})}})})}},{key:"render",value:function(){return this.props.isDevMode?D({className:"jp-dash-item__is-inactive",content:(0,g.translate)("Unavailable in Dev Mode.")}):M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(A.default,null),this.props.isRewindActive?M.default.createElement("div",{className:"jp-dash-item__interior"},D({className:"jp-dash-item__is-active",status:"is-working",content:(0,g.translate)("We are making sure your site stays free of security threats. You will be notified if we find one."),feature:"rewind"})):this.getVPContent())}}]),t}(_.Component);P.propTypes={siteRawUrl:m.default.string.isRequired,vaultPressData:m.default.any.isRequired,scanThreats:m.default.any.isRequired,sitePlan:m.default.object.isRequired,isDevMode:m.default.bool.isRequired,isPluginInstalled:m.default.bool.isRequired,fetchingSiteData:m.default.bool.isRequired},P.defaultProps={siteRawUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isDevMode:!1,isPluginInstalled:!1,fetchingSiteData:!1},t.default=(0,b.connect)(function(e){return{vaultPressData:(0,k.getVaultPressData)(e),scanThreats:(0,k.getVaultPressScanThreatCount)(e),sitePlan:(0,w.getSitePlan)(e),isDevMode:(0,T.isDevMode)(e),isVaultPressInstalled:(0,E.isPluginInstalled)(e,"vaultpress/vaultpress.php"),fetchingSiteData:(0,w.isFetchingSiteData)(e)}})(P),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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(148),v=r(g),y=n(8),A=n(1179),w=r(A),E=n(62),k=n(64),T=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:"getContent",value:function(){var e=this.props.akismetData,t=this.props.siteAdminUrl+"admin.php?page=akismet-key-config",n=(0,y.translate)("Spam Protection"),r=!1!==this.props.sitePlan;return"N/A"===e?M.default.createElement(v.default,{label:n,module:"akismet",pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Loading…"))):"not_installed"===e?M.default.createElement(v.default,{label:n,module:"akismet",className:"jp-dash-item__is-inactive",status:r?"pro-uninstalled":"no-pro-uninstalled-or-inactive",pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("For state-of-the-art spam defense, please {{a}}install Akismet{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/akismet/"+this.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}}))):"not_active"===e?M.default.createElement(v.default,{label:n,module:"akismet",status:r?"pro-inactive":"no-pro-uninstalled-or-inactive",className:"jp-dash-item__is-inactive",pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("For state-of-the-art spam defense, please {{a}}activate Akismet{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/akismet/"+this.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}}))):"invalid_key"===e?M.default.createElement(v.default,{label:n,module:"akismet",className:"jp-dash-item__is-inactive",status:"is-warning",statusText:(0,y.translate)("Invalid key"),pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.",{components:{akismetSettings:M.default.createElement("a",{href:t})}}))):M.default.createElement(v.default,{label:n,module:"akismet",status:"is-working",pro:!0},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,y.numberFormat)(e.all.spam)),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Spam comments blocked.",{context:'Example: "412 Spam comments blocked"'})))}},{key:"render",value:function(){return M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(w.default,null),this.getContent())}}]),t}(_.Component);T.propTypes={siteRawUrl:m.default.string.isRequired,siteAdminUrl:m.default.string.isRequired},t.default=(0,b.connect)(function(e){return{akismetData:(0,E.getAkismetData)(e),sitePlan:(0,k.getSitePlan)(e)}})(T),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(9),_=n(20),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.fetchingAkismetData||this.props.fetchAkismetData()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.defaultProps={fetchAkismetData:function(){}},t.default=(0,m.connect)(function(e){return{fetchAkismetData:(0,M.fetchAkismetData)(),fetchingAkismetData:(0,M.isFetchingAkismetData)(e)}},function(e){return(0,_.bindActionCreators)({fetchAkismetData:M.fetchAkismetData},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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(148),v=r(g),y=n(8),A=n(69),w=r(A),E=n(456),k=r(E),T=n(24),L=r(T),S=n(831),C=r(S),z=n(64),O=n(207),N=n(62),D=n(22),P=function(e){return M.default.createElement(v.default,{label:(0,y.translate)("Backups"),module:e.feature||"backups",className:e.className,status:e.status,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},x=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:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.isVaultPressInstalled,r=e.getOptionValue,a=e.siteRawUrl,i=e.vaultPressData;return P(r("vaultpress")&&"success"===(0,L.default)(i,"code","")?{className:"jp-dash-item__is-active",status:"is-working",content:M.default.createElement("span",null,(0,L.default)(i,"message","")," ",(0,y.translate)("{{a}}View backup details{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com",target:"_blank",rel:"noopener noreferrer"})}}))}:(0,k.default)(t)?{className:"",status:"",content:(0,y.translate)("Loading…")}:"jetpack_free"!==(0,L.default)(t,"product_slug","jetpack_free")?{className:"jp-dash-item__is-inactive",status:n?"pro-inactive":"pro-uninstalled",content:(0,y.translate)("To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/vaultpress",target:"_blank",rel:"noopener noreferrer"})}})}:{className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:(0,y.translate)("To automatically back up your entire site, please {{a}}upgrade your account{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/redirect/?source=aag-backups&site="+a,target:"_blank",rel:"noopener noreferrer"})}})})}},{key:"render",value:function(){return this.props.isDevMode?M.default.createElement("div",{className:"jp-dash-item__interior"},P({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:(0,y.translate)("Unavailable in Dev Mode.")})):M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(C.default,null),this.props.isRewindActive?P({className:"jp-dash-item__is-active",status:"is-working",content:(0,y.translate)("Your site is being backed up in real-time."),feature:"rewind"}):this.getVPContent())}}]),t}(_.Component);x.propTypes={siteRawUrl:m.default.string.isRequired,getOptionValue:m.default.func.isRequired,isRewindActive:m.default.bool.isRequired,vaultPressData:m.default.any.isRequired,sitePlan:m.default.object.isRequired,isDevMode:m.default.bool.isRequired,isVaultPressInstalled:m.default.bool.isRequired},x.defaultProps={siteRawUrl:"",getOptionValue:w.default,isRewindActive:!1,vaultPressData:"",sitePlan:"",isDevMode:!1,isVaultPressInstalled:!1},t.default=(0,b.connect)(function(e){return{vaultPressData:(0,N.getVaultPressData)(e),sitePlan:(0,z.getSitePlan)(e),isDevMode:(0,D.isDevMode)(e),isVaultPressInstalled:(0,O.isPluginInstalled)(e,"vaultpress/vaultpress.php")}})(x),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(80),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(148),A=r(y),w=n(8),E=n(40),k=r(E),T=n(1182),L=r(T),S=n(62),C=n(27),z=n(22),O=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:"activateAndRedirect",value:function(e){e.preventDefault(),this.props.activateManage().then(window.location="https://wordpress.com/plugins/manage/"+this.props.siteRawUrl)}},{key:"getContent",value:function(){var e=(0,w.translate)("Plugin Updates"),t=this.props.pluginUpdates,n=this.props.getOptionValue("manage");return"N/A"===t?g.default.createElement(A.default,{label:e,module:"manage",status:"is-working"},g.default.createElement(L.default,null),g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Loading…"))):"updates-available"===t.code?g.default.createElement(A.default,{label:e,module:"manage",status:"is-warning"},g.default.createElement("h2",{className:"jp-dash-item__count"},(0,w.translate)("%(number)s plugin","%(number)s plugins",{count:t.count,args:{number:t.count}})),g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Needs updating. ","Need updating. ",{count:t.count,args:{number:t.count}}),this.props.isDevMode?"":(0,w.translate)("{{a}}Turn on plugin auto updates{{/a}}",{components:{a:g.default.createElement("a",{href:"https://wordpress.com/plugins/manage/"+this.props.siteRawUrl})}}))):g.default.createElement(A.default,{label:e,module:"manage",status:n?"is-working":"is-inactive"},g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("All plugins are up-to-date. Awesome work!")))}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);return(0,k.default)(e,"manage")?g.default.createElement("div",null,g.default.createElement(L.default,null),this.getContent()):null}}]),t}(b.Component);O.propTypes={isDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,pluginUpdates:M.default.any.isRequired},t.default=(0,v.connect)(function(e){return{pluginUpdates:(0,S.getPluginUpdates)(e),isDevMode:(0,z.isDevMode)(e),moduleList:(0,C.getModules)(e)}})(O),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(9),_=n(20),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.fetchingPluginUpdates||this.props.fetchPluginUpdates()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.defaultProps={fetchPluginUpdates:function(){}},t.default=(0,m.connect)(function(e){return{fetchPluginUpdates:(0,M.fetchPluginUpdates)(),fetchingPluginUpdates:(0,M.isFetchingPluginUpdates)(e)}},function(e){return(0,_.bindActionCreators)({fetchPluginUpdates:M.fetchPluginUpdates},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(80),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(148),A=r(y),w=n(8),E=n(40),k=r(E),T=n(27),L=n(22),S=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:"getContent",value:function(){var e=this,t=(0,w.translate)("Image Performance"),n=function(){return e.props.updateOptions({photon:!0})};return this.props.getOptionValue("photon")?g.default.createElement(A.default,{label:t,module:"photon",status:"is-working"},g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Jetpack is improving and optimizing your image speed."))):g.default.createElement(A.default,{label:t,module:"photon",className:"jp-dash-item__is-inactive"},g.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,w.translate)("Unavailable in Dev Mode"):(0,w.translate)("{{a}}Activate{{/a}} to enhance the performance and speed of your images.",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})))}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);return(0,k.default)(e,"photon")?g.default.createElement("div",{className:"jp-dash-item__interior"},this.getContent()):null}}]),t}(b.Component);S.propTypes={isDevMode:M.default.bool.isRequired},t.default=(0,v.connect)(function(e){return{isDevMode:(0,L.isDevMode)(e),moduleList:(0,T.getModules)(e)}})(S),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.DashConnections=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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(8),v=n(61),y=r(v),A=n(148),w=r(A),E=n(22),k=n(28),T=n(1185),L=r(T),S=n(907),C=r(S),z=t.DashConnections=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:"siteConnection",value:function(){var e="";return this.props.isDevMode?e=M.default.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?M.default.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):M.default.createElement(y.default,{icon:"globe",size:64}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.translate)("Your site is in Development Mode, so it can not be connected to WordPress.com."))):!0===this.props.siteConnectionStatus&&(e=M.default.createElement("div",null,M.default.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?M.default.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):M.default.createElement(y.default,{icon:"globe",size:64}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.translate)("Your site is connected to WordPress.com."),this.props.userIsMaster&&M.default.createElement("span",{className:"jp-connection-settings__is-owner"},M.default.createElement("br",null),M.default.createElement("em",null,(0,g.translate)("You are the Jetpack owner."))))),this.props.userCanDisconnectSite&&M.default.createElement("div",{className:"jp-connection-settings__actions"},M.default.createElement(C.default,{asLink:!0})))),e}},{key:"userConnection",value:function(){var e=this.props.userIsMaster?null:M.default.createElement(C.default,{asLink:!0,connectUser:!0,from:"connection-settings"});return this.props.isDevMode?M.default.createElement("div",{className:"jp-connection-settings__info"},M.default.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,
|
47 |
g.translate)("The site is in Development Mode, so you can not connect to WordPress.com."))):this.props.isLinked?M.default.createElement("div",null,M.default.createElement("div",{className:"jp-connection-settings__info"},M.default.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.translate)("Connected as {{span}}%(username)s{{/span}}",{args:{username:this.props.userWpComLogin},components:{span:M.default.createElement("span",{className:"jp-connection-settings__username"})},comment:"%(username) is the WordPress user login name."}),M.default.createElement("div",{className:"jp-connection-settings__email"},this.props.userWpComEmail))),M.default.createElement("div",{className:"jp-connection-settings__actions"},e)):M.default.createElement("div",null,M.default.createElement("div",{className:"jp-connection-settings__info"},(0,g.translate)("Link your account to WordPress.com to get the most out of Jetpack.")),M.default.createElement("div",{className:"jp-connection-settings__actions"},e))}},{key:"render",value:function(){return M.default.createElement("div",null,M.default.createElement(L.default,null),M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(w.default,{className:"jp-connection-type",label:(0,g.translate)("Site connection",{context:"Dashboard widget header"})},this.siteConnection()))),M.default.createElement("div",{className:"jp-at-a-glance__right"},M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(w.default,{className:"jp-connection-type",label:(0,g.translate)("Account connection",{context:"Dashboard widget header"})},this.userConnection())))))}}]),t}(_.Component);z.propTypes={siteConnectionStatus:m.default.any.isRequired,isDevMode:m.default.bool.isRequired,userCanDisconnectSite:m.default.bool.isRequired,userIsMaster:m.default.bool.isRequired,isLinked:m.default.bool.isRequired,userWpComLogin:m.default.any.isRequired,userWpComEmail:m.default.any.isRequired,userWpComAvatar:m.default.any.isRequired,username:m.default.any.isRequired},t.default=(0,b.connect)(function(e){return{siteConnectionStatus:(0,E.getSiteConnectionStatus)(e),isDevMode:(0,E.isDevMode)(e),userCanDisconnectSite:(0,k.userCanDisconnectSite)(e),userIsMaster:(0,k.userIsMaster)(e),userWpComLogin:(0,k.getUserWpComLogin)(e),userWpComEmail:(0,k.getUserWpComEmail)(e),userWpComAvatar:(0,k.getUserWpComAvatar)(e),username:(0,k.getUsername)(e),isLinked:(0,E.isCurrentUserLinked)(e),siteIcon:(0,k.getSiteIcon)(e)}})(z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.QueryUserConnectionData=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(1),m=r(h),_=n(9),M=n(22),b=t.QueryUserConnectionData=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.isFetchingUserData||this.props.isDevMode||this.props.fetchUserConnectionData()}},{key:"render",value:function(){return null}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{isFetchingUserData:(0,M.isFetchingUserData)(e),isDevMode:(0,M.isDevMode)(e)}},function(e){return{fetchUserConnectionData:function(){return e((0,M.fetchUserConnectionData)())}}})(b)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Plans=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(1),m=r(h),_=n(9),M=n(55),b=n(40),g=r(b),v=n(64),y=n(208),A=r(y),w=n(22),E=n(1187),k=r(E),T=n(1188),L=r(T),S=n(1189),C=r(S),z=t.Plans=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.themesPromo=function(){var e=r.props.sitePlan.product_slug||"",t="dev"!==r.props.plan?(0,M.getPlanClass)(e):"dev";switch(t){case"is-personal-plan":case"is-premium-plan":case"is-free-plan":return m.default.createElement(k.default,{plan:t,siteRawUrl:r.props.siteRawUrl})}return null},r.renderContent=function(){var e=r.props.sitePlan.product_slug||"",t=r.props.availableFeatures,n=r.props.activeFeatures,a="",i="dev"!==r.props.plan?(0,M.getPlanClass)(e):"dev";"dev"===r.props.getSiteConnectionStatus(r.props)&&(e="dev",t={},n={});var o=void 0!==r.props.availableFeatures[M.FEATURE_UNLIMITED_PREMIUM_THEMES],s=(0,g.default)(r.props.activeFeatures,M.FEATURE_UNLIMITED_PREMIUM_THEMES);return o&&!s&&(a=r.themesPromo(),"is-free-plan"===i)?a:m.default.createElement("div",null,a,m.default.createElement("div",{className:"jp-landing__plans dops-card"},m.default.createElement(L.default,{plan:e,siteRawUrl:r.props.siteRawUrl}),m.default.createElement(C.default,{plan:e,availableFeatures:t,activeFeatures:n,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus})))},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,m.default.createElement(A.default,null),this.renderContent())}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{getSiteConnectionStatus:function(){return(0,w.getSiteConnectionStatus)(e)},sitePlan:(0,v.getSitePlan)(e),availableFeatures:(0,v.getAvailableFeatures)(e),activeFeatures:(0,v.getActiveFeatures)(e)}})(z)},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(15),m=r(h),_=n(1),M=r(_),b=n(13),g=r(b),v=n(8),y=n(30),A=r(y),w=n(43),E=r(w),k=n(14),T=r(k),L=n(85),S=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.trackGetStarted=function(){T.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-get-started",plan:r.props.plan,type:"upgrade"})},r.trackComparePlans=function(){T.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-compare-all",plan:r.props.plan,type:"upgrade"})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=(0,g.default)(this.props.className,"jp-themes-card"),t=this.props.plan,n=/(?![is-])(.*)(?=-plan)/g,r=Array.isArray(t.match(n))?t.match(n)[0]:"";return M.default.createElement("div",{className:e},M.default.createElement(A.default,{className:"jp-apps-card__content"},M.default.createElement("div",{className:"jp-apps-card__top"},M.default.createElement("svg",{id:"customizeTheme",viewBox:"0 0 1562.02 968.34"},M.default.createElement("path",{style:{fill:"none"},d:"M2782.37,1785.75v304h186.89V1766.4H2801.72A19.34,19.34,0,0,0,2782.37,1785.75Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#f3f6f8"},d:"M2694.2,1577.67v-66.48H2489.65c1.43,2.42,2.76,4.91,4,7.46a97.51,97.51,0,0,1-45.91,129.77l-1.12.53-1.7.78a103.66,103.66,0,0,1-12.4,4.49l-1.95.52c-.74.19-1.49.39-2.24.57q-1.71.41-3.44.76c-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29,97.48,97.48,0,0,1-78.41-138.84c1.22-2.55,2.55-5,4-7.46H2109.11v345.3c30.68.61,91.09-10.69,91.91,17.83V1771.63h395.1V1893.7c31.53-.25,63.17,7.34,94.57,2.12a2.54,2.54,0,0,1,3,1.87c3.06,18.42,15.24,184.72,16.49,201.18,1.13,15,3.61,29.66.47,44.63a2.57,2.57,0,0,1-2.49,1.75c-11.26.59-22.59,2.08-33.86,2-10.57,0-50.89-1.13-53.77-2.15-3.56-1.26-20.91,2.91-29.77,3.48-8.49.54-42.08,2.8-50.36,3-10.37.2-21.3-.12-21.55-10.11-.14-5.61-5.37-46-4.63-51.76h-310c0,1.3-64.18-.14-95-.4v91.12h923.76V1577.67Zm275.06,512H2782.37v-304a19.34,19.34,0,0,1,19.34-19.34h167.55Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c2f4ff"},d:"M2493.63,1518.65c-1.22-2.55-2.55-5-4-7.46-1.13-1.92-2.32-3.81-3.57-5.64a97.45,97.45,0,0,0-160.89,0c-1.26,1.84-2.45,3.74-3.59,5.67-1.43,2.42-2.76,4.91-4,7.46A97.48,97.48,0,0,0,2396,1657.5a45.49,45.49,0,0,1,4.29-20.29c4.75-10.25,11.85-15.85,17.3-13.66,3.44,1.4,3.76,6.1,4.33,14.63.36,5.22,1,14.32,3,17.89q1.73-.35,3.44-.76c.75-.18,1.49-.37,2.24-.57l1.95-.52a103.66,103.66,0,0,0,12.4-4.49l1.7-.78,1.12-.53a97.51,97.51,0,0,0,45.91-129.77Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2969,1767.15H2801.47a19.34,19.34,0,0,0-19.34,19.34v304H2969Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("polygon",{style:{fill:"#00a9de"},points:"936.97 71.05 936.97 148.82 936.97 215.3 1275.64 215.3 1327.68 215.3 1327.68 71.05 936.97 71.05"}),M.default.createElement("path",{style:{fill:"#f3f6f8"},d:"M2136.25,1998.84l52-.38,3.78,41.27-42.35-3.82S2132.86,2032.54,2136.25,1998.84Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2125.33,1518.65h-16.79a6.71,6.71,0,0,1-6.71-6.71v-16.79a6.71,6.71,0,1,1,13.43,0v10.07h10.07a6.71,6.71,0,0,1,0,13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2108.55,1467.71a6.71,6.71,0,0,1-6.71-6.71v-34.16a6.71,6.71,0,0,1,13.43,0V1461A6.71,6.71,0,0,1,2108.55,1467.71Zm9.13-66.52a6.71,6.71,0,0,1-5.59-10.43,61.47,61.47,0,0,1,29.41-23.59,6.71,6.71,0,1,1,4.8,12.54,48.88,48.88,0,0,0-23,18.48A6.7,6.7,0,0,1,2117.68,1401.19Zm905.71-.17a6.7,6.7,0,0,1-5.59-3,48.78,48.78,0,0,0-23.09-18.39,6.71,6.71,0,0,1,4.75-12.56,61.51,61.51,0,0,1,29.51,23.47,6.71,6.71,0,0,1-5.57,10.45Zm-60-24.48h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43H2895a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,1,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,1,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43H2690a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,1,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,1,1,0,13.43Zm-68.32,0h-34.17a6.71,6.71,0,1,1,0-13.43h34.17a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2595.87,2146.26s-4.79,103.66-20.35,167.09l-91.65,1.2s-7.35-4.68,2.39-9.57c10.22-5.13,37.63-10.63,40.69-16.76,6-12,3.59-135.24,3.59-135.24",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2631.51,2149.4s4.79,96.94,20.35,160.37L2732,2311s7.35-4.68-2.39-9.57c-10.22-5.13-37.63-10.63-40.69-16.76-6-12,11.69-142,11.69-142",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2428.56,1659.71s2.15,1.76,2.95-5.22a96.8,96.8,0,0,1-9.45,2.1C2423.44,1659.33,2425.48,1660.74,2428.56,1659.71Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2428.56,1659.71c-3.08,1-5.12-.39-6.51-3.12a98.07,98.07,0,0,1-16.43,1.39c-2,0-3.92-.07-5.86-.18.71,10.87,6.35,22.22,21.32,30l10.92,5.91,18.25-11.25c1.85-15.18-1.32-26.11-4.73-33a96.7,96.7,0,0,1-14,5C2430.72,1661.48,2428.56,1659.71,2428.56,1659.71Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2422.06,1656.59c-4.26-8.42-2.32-29.41-5.46-30.69-5.95-2.42-18,14.09-16.83,31.89,1.94.11,3.89.18,5.86.18A98.07,98.07,0,0,0,2422.06,1656.59Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2669.78,2003.53a3.36,3.36,0,0,1-.35-6.69l37.1-4a3.36,3.36,0,1,1,.72,6.67l-37.1,4Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2695.47,2023.4a24.39,24.39,0,0,1-17.25-6.64,18.91,18.91,0,0,1-6-14.79,3.21,3.21,0,0,1,3.55-3.15,3.35,3.35,0,0,1,3.15,3.55,12.26,12.26,0,0,0,4,9.57,18.38,18.38,0,0,0,14.33,4.73l6.47-1.8a3.35,3.35,0,0,1,1.74,6.48l-7,1.9C2697.41,2023.35,2696.44,2023.4,2695.47,2023.4Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2510.57,1801.68a3.36,3.36,0,0,1-1.38-6.42l29-13a3.36,3.36,0,1,1,2.75,6.12l-29,13A3.32,3.32,0,0,1,2510.57,1801.68Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2546.66,1602.62c.17,4,1.34,7,2.68,7.81.92.57,2.35-.09,3.47-.81q-.24-2.52-.3-5.06Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2550.45,1591.37a9.56,9.56,0,0,0-3,4.43l5.24,1.75c.16-2.17.43-4.32.79-6.45a3.31,3.31,0,0,1-1-.72A4.74,4.74,0,0,0,2550.45,1591.37Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2580.7,1637.25a20.24,20.24,0,0,1-10.18-17.25l1-9.1-12.14-4a64.44,64.44,0,0,0,1.22,9.25c3.32,15.85,7.25,28.2,24.71,31a3.37,3.37,0,0,1,2.81,2.92l2.16,18.43a3.37,3.37,0,0,1-2.94,3.73l-.4,0a3.34,3.34,0,0,1-2.14-.78v8.46l42,2.24V1644.6a24.54,24.54,0,0,1-5.72,2.1C2603.51,1650.74,2589.78,1642.36,2580.7,1637.25Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2616.75,1611,2606,1582s-14.32-8-27.77-7.19C2585.13,1590.91,2599.26,1606.61,2616.75,1611Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2561,1587.76a62.57,62.57,0,0,0-1.69,12l12.91,4.3,1.53-14.5S2566,1590.51,2561,1587.76Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f84"},d:"M2642.18,1608.93a40.09,40.09,0,0,1-25.43,2c-17.49-4.36-31.61-20.06-38.5-36.2-3.84-9-5.43-18.16-4.09-25.55-6.69,5.25-12.38,13.71-16.59,26.57a18.47,18.47,0,0,0-.66,2.65c-.72,1.84-1.33,3.72-1.87,5.64a7.23,7.23,0,0,0-4-.26c-4.5,1-9.8,5.64-10.81,13.69-.81,6.49.17,15.26,5.63,18.63a8.18,8.18,0,0,0,4.33,1.21,10.19,10.19,0,0,0,3.69-.74c.06.28.1.57.16.85,3.44,16.44,8.2,31.53,27.7,35.78l1.87,16a3.39,3.39,0,0,0,3.33,3l.4,0a3.37,3.37,0,0,0,2.94-3.73l-2.16-18.43a3.37,3.37,0,0,0-2.81-2.92c-17.45-2.8-21.38-15.15-24.71-31a64.44,64.44,0,0,1-1.22-9.25l12.14,4-1,9.1a20.24,20.24,0,0,0,10.18,17.25c9.08,5.11,22.81,13.49,40.3,9.45a24.54,24.54,0,0,0,5.72-2.1c11.87-6.1,18.57-21.52,20.71-38.28A40.64,40.64,0,0,1,2642.18,1608.93Zm-92.84,1.5c-1.34-.83-2.51-3.81-2.68-7.81l5.85,1.95q.06,2.53.3,5.06C2551.69,1610.34,2550.26,1611,2549.34,1610.44Zm3.34-12.89-5.24-1.75a9.56,9.56,0,0,1,3-4.43,4.74,4.74,0,0,1,2-1,3.31,3.31,0,0,0,1,.72C2553.1,1593.22,2552.84,1595.38,2552.68,1597.55Zm19.52,6.5-12.91-4.3a62.57,62.57,0,0,1,1.69-12c5,2.75,12.75,1.79,12.75,1.79Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#74dcfc"},d:"M2584.48,1535.27c-5.88,2.56-9.17,7.61-10.32,13.94-4.83,26.63,28.33,76.05,68,59.72a40.64,40.64,0,0,0,5.24-2.61C2686.87,1583,2632.3,1514.44,2584.48,1535.27Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#86a6bd",opacity:"0.26"},d:"M2032.34,1985.67h150.18a8.52,8.52,0,0,0,8.52-8.89l-4.28-99.89a6.41,6.41,0,0,0-6.42-6.15H2030.4l2,101.93",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2191.39,2039.77c-2.76-16-4.06-32-5.43-48.07l-.8-12.05-.4-6-.1-1.51a14.89,14.89,0,0,1,0-2,8.56,8.56,0,0,1,1.94-4.75,10.8,10.8,0,0,1,8-3.8l6.15-.07,12.08-.07,12.08.12,6.15.07a10.76,10.76,0,0,1,8,3.78,8.47,8.47,0,0,1,1.92,4.72l.15,3.1.28,6,.52,12.07c.57,16.1,1.08,32.19.8,48.34a1.35,1.35,0,0,1-2.68.15c-2.1-16-3.41-32.06-4.67-48.12l-.85-12-.4-6-.2-2.93a1.39,1.39,0,0,0-.37-.76,3.69,3.69,0,0,0-2.7-1.08l-5.92.05-12.08.12-12.08-.07-5.92,0a3.64,3.64,0,0,0-2.66,1.06,1.39,1.39,0,0,0-.37.73s0,.47,0,1l.07,1.51.28,6,.57,12.06c.45,16.1,1,32.2,0,48.38a.68.68,0,0,1-1.34.08Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("polygon",{style:{fill:"#f3f6f8"},points:"471.79 657.89 469.28 613.56 442.97 613.56 445.48 657.83 471.79 657.89"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2149.71,2064.26a21.59,21.59,0,0,1,9.06-2.71,83.69,83.69,0,0,1,9.06-.42c3,.08,6,.26,9.06.51a34.08,34.08,0,0,1,9.06,2,1.44,1.44,0,0,1,0,2.68,34.08,34.08,0,0,1-9.06,2c-3,.25-6,.44-9.06.51a83.69,83.69,0,0,1-9.06-.42,21.59,21.59,0,0,1-9.06-2.71.78.78,0,0,1-.28-1.06A.8.8,0,0,1,2149.71,2064.26Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2181.34,2034.57c-17.22-1.19-34.44-1.6-51.66-1.94l-25.83-.28-12.92-.12-6.46-.06a18,18,0,0,1-5.17-.89,16.73,16.73,0,0,1-11.49-16.09l-.16-17.54c-2.3-.12-4.6-.15-6.9-.15l-.16,17.7a24,24,0,0,0,16.34,23.3,25.54,25.54,0,0,0,7.53,1.15l6.46-.06,12.92-.12,25.83-.28c17.22-.34,34.44-.74,51.66-1.94a1.35,1.35,0,0,0,0-2.69Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2156.47,2034.57c-8.58-1.15-15.3-7.64-16.55-15.28-.52-3.45-.09-8.55-.11-13l.17-9.79h-7.46l.17,9.79c.28,4.67-.32,8.81.82,14.38a22.45,22.45,0,0,0,8.62,12.8,20.63,20.63,0,0,0,14.34,3.78,1.38,1.38,0,0,0,1.18-1.18A1.35,1.35,0,0,0,2156.47,2034.57Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2189,1994.51a19.45,19.45,0,0,1-5.57.7h-4.77v0h-.5c-28.24.05-56.47.45-84.71.69-30.47.46-60.93,1.09-91.4,2.05a.67.67,0,0,0,0,1.34c30.47,1,60.93,1.59,91.4,2.05,30.47.26,60.93.72,91.4.71h.15a3.45,3.45,0,0,0,.65-.09,27.44,27.44,0,0,0,3.36-.4Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2207.27,1957.36l-2.43-61.2-.61-15.3c-.15-2.7-.09-4.75-.44-8a21.85,21.85,0,0,0-18.16-18.52,36.58,36.58,0,0,0-6.11-.28,3.76,3.76,0,0,0-.72-.07l-159,.55-9.94.09a16.26,16.26,0,0,0-11.19,3.89,15.82,15.82,0,0,0-5.41,10.68c-.07,3.91.13,6.79.18,10.23l1,39.73c.59,26.49,1.48,53,2.47,79.45a1.34,1.34,0,0,0,2.68,0c.11-26.5.14-53-.15-79.49l-.29-39.74c0-3.18-.1-6.93,0-9.63a9.79,9.79,0,0,1,3.47-6.54,10,10,0,0,1,7.22-2.24l3.91,0,1.63,55c.48,19.37,1.43,38.74,2.16,58.1a1.34,1.34,0,0,0,2.68-.05c0-19.38.13-38.77-.16-58.14l-.56-54.84h.27l155.34.54.13-.07h2.09a54.42,54.42,0,0,1,7,.23,14.2,14.2,0,0,1,9.76,6.53,14,14,0,0,1,2,5.63c.2,1.84.24,4.9.38,7.29l.7,15.29,1.41,30.59,1.41,30.59.28,6.14a47.87,47.87,0,0,1,7.11.15Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2191.39,2039.77c-2.76-16-4.06-32-5.43-48.07l-.8-12.05-.4-6-.1-1.51a14.89,14.89,0,0,1,0-2,8.56,8.56,0,0,1,1.94-4.75,10.8,10.8,0,0,1,8-3.8l6.15-.07,12.08-.07,12.08.12,6.15.07a10.76,10.76,0,0,1,8,3.78,8.47,8.47,0,0,1,1.92,4.72l.15,3.1.28,6,.52,12.07c.57,16.1,1.08,32.19.8,48.34a1.35,1.35,0,0,1-2.68.15c-2.1-16-3.41-32.06-4.67-48.12l-.85-12-.4-6-.2-2.93a1.39,1.39,0,0,0-.37-.76,3.69,3.69,0,0,0-2.7-1.08l-5.92.05-12.08.12-12.08-.07-5.92,0a3.64,3.64,0,0,0-2.66,1.06,1.39,1.39,0,0,0-.37.73s0,.47,0,1l.07,1.51.28,6,.57,12.06c.45,16.1,1,32.2,0,48.38a.68.68,0,0,1-1.34.08Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("polygon",{style:{fill:"#f3f6f8"},points:"471.79 657.89 469.28 613.56 442.97 613.56 445.48 657.83 471.79 657.89"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2149.71,2064.26a21.59,21.59,0,0,1,9.06-2.71,83.69,83.69,0,0,1,9.06-.42c3,.08,6,.26,9.06.51a34.08,34.08,0,0,1,9.06,2,1.44,1.44,0,0,1,0,2.68,34.08,34.08,0,0,1-9.06,2c-3,.25-6,.44-9.06.51a83.69,83.69,0,0,1-9.06-.42,21.59,21.59,0,0,1-9.06-2.71.78.78,0,0,1-.28-1.06A.8.8,0,0,1,2149.71,2064.26Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M1758.29,2322.51c129.84-3.7,259.68-4.48,389.52-5.4l389.52-.85c259.68.81,519.36.35,779,4.91a2.69,2.69,0,0,1,0,5.37c-259.68,4.56-519.36,4.1-779,4.91l-389.52-.85c-129.84-.92-259.68-1.7-389.52-5.4a1.34,1.34,0,0,1,0-2.68Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2531.81,2280.22a3.36,3.36,0,0,1-3.21-4.33c4.87-16,2.75-48.59.71-80-1-15.5-2-30.14-2.1-42.83a3.36,3.36,0,0,1,3.32-3.4h0a3.36,3.36,0,0,1,3.36,3.32c.14,12.51,1.09,27.07,2.09,42.47,2.09,32.06,4.24,65.22-1,82.44A3.36,3.36,0,0,1,2531.81,2280.22Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2651.85,2313.12a3.35,3.35,0,0,1-3.31-2.86c-.12-.81-12.12-81.19-20.37-160.52a3.36,3.36,0,1,1,6.67-.7c8.24,79.19,20.21,159.42,20.33,160.22a3.36,3.36,0,0,1-2.82,3.82A3.27,3.27,0,0,1,2651.85,2313.12Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M3025.91,1433.5v-6.88a6.71,6.71,0,0,1,13.43,0V1434",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2798.25,1578.5v-1.72a26.28,26.28,0,0,1-8.95,4.54s7.5-27.34-.45-29.17-38.4,52.06-38.4,52.06l11,26.43s11.83-10.63,49.88-30.13c8.64-8.13,13.71-15.59,16.29-22Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2782.12,1618.79a3.36,3.36,0,0,1,0-6.71c3.78-.14,30-13.82,42.82-38.15a3.36,3.36,0,1,1,5.94,3.13C2817.51,1602.39,2789,1618.79,2782.12,1618.79Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2761.47,1597.25a3.36,3.36,0,0,1-2.22-5.87c2.76-2.45,7.26-11.57,11.23-19.61,8.05-16.3,11.8-23,16.48-23.58a4.9,4.9,0,0,1,4.44,1.78c4.62,5.4,3.46,18.48,2.22,26.39,2.84-1.22,6-3.06,7.75-5.51a3.36,3.36,0,1,1,5.47,3.89c-5.18,7.26-16.36,9.76-16.83,9.86a3.36,3.36,0,0,1-4-4c1.66-7.7,2.93-20,1.06-24.9-2.73,3.15-7.36,12.54-10.58,19-4.66,9.44-9.05,18.35-12.81,21.66A3.31,3.31,0,0,1,2761.47,1597.25Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2416.59,1625.9c3.14,1.27,1.2,22.27,5.46,30.69.95-.16,1.89-.34,2.83-.53-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29c1.24.12,2.48.23,3.74.3C2398.59,1640,2410.65,1623.49,2416.59,1625.9Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2428.33,1655.3l2.24-.57C2429.82,1654.93,2429.08,1655.12,2428.33,1655.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2447.73,1648.42l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2191.3,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2257.26,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2587.08,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2686,1505.23a6.71,6.71,0,1,0,0,13.43h8v-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2653,1499.58h-33a6.71,6.71,0,0,0,0,13.43h33a6.71,6.71,0,0,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2323.22,1505.23h-33a6.71,6.71,0,0,0,0,13.43h27.37a97.31,97.31,0,0,1,7.57-13.14A6.72,6.72,0,0,0,2323.22,1505.23Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2521.11,1505.23h-33a6.71,6.71,0,0,0-2.05.32,97.32,97.32,0,0,1,7.55,13.11h27.48a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2430.57,1654.73l-2.24.57c-.16,1-.49,1.78-1.08,2-.92.31-1.21.1-1.35,0a3.51,3.51,0,0,1-1-1.23c-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29c.39,12.48,6.62,25.37,23.26,34.07a3.4,3.4,0,0,0,1.55.38,3.36,3.36,0,0,0,1.55-6.33c-23.86-12.47-20.37-32.83-17.76-41,2.86-9,7.67-13.76,9.75-14.69a83.07,83.07,0,0,1,.87,8.7c.65,9.63,1.39,20.54,6.92,24.25a7.94,7.94,0,0,0,7.21.78c4.91-1.64,5.87-5.42,5.78-10.24-.57.2-1.57.5-2.65.8l-1,.28Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2431.51,1654.49l1-.28-1.95.52Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2445.52,1649.46l-.61.27c-1.23.56-2.56,1.13-3.32,1.39a57.89,57.89,0,0,1,4.6,24,3.36,3.36,0,0,0,3.31,3.4h0a3.36,3.36,0,0,0,3.36-3.31,66.28,66.28,0,0,0-5.19-26.75l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2446.61,1648.95l-1.7.78.61-.27Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2547.12,2156.58c-11.43,0-21.7-1.43-27.18-5.63a11.37,11.37,0,0,1-4.7-8.56c-.17-3-.55-7.36-1-12.93-3-34.13-10-114,4.45-204.92a3.36,3.36,0,0,1,6.64,1c-14.33,90.06-7.37,169.4-4.39,203.28.5,5.66.89,10.09,1.06,13.15a4.69,4.69,0,0,0,2.09,3.6c11.59,8.87,57.88,1.65,74.75-1.89a3.36,3.36,0,0,1,1.38,6.57C2595.85,2151.2,2569.3,2156.58,2547.12,2156.58Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2643.2,2151.66c-12.44,0-22.94-1.1-27.65-4.25-10.39-6.93-8.37-101.49-7-141.83a3.18,3.18,0,0,1,3.47-3.25,3.37,3.37,0,0,1,3.25,3.47c-2.09,62.26-1.09,130.21,4.2,136.16,9.2,6.1,58.16,1.8,88.94-2.62l-5.81-102.27a3.36,3.36,0,0,1,3.16-3.54,3.19,3.19,0,0,1,3.54,3.16l6,105.34a3.36,3.36,0,0,1-2.85,3.51C2706.69,2146.4,2670.33,2151.66,2643.2,2151.66Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2701.14,1985.18a3.35,3.35,0,0,1-3.34-3.09l-7.19-88.58a3.35,3.35,0,1,1,6.69-.54l7.19,88.58a3.36,3.36,0,0,1-3.08,3.61Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#74dcfc"},d:"M2790.95,1624l-32.31-33.51c-15.78,31.57-62.67,78.58-98.1,87.42-.81-.32-1.63-.64-2.49-1-11.37-4.19-76.46-8.61-92-2-10,4.25-16.9,7.49-21.52,11.79-30.74,24.06-50,44.9-50,44.9L2457,1673l-33.51,23.94s28.72,105.32,73,102.93a107.17,107.17,0,0,0,41.78-11.27l3.7,105.84,148.35-2.55-3.6-151.61C2742,1712.26,2790.95,1624,2790.95,1624Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2535.2,1898.17a3.36,3.36,0,0,1,0-6.71l158.76-1.57a3.23,3.23,0,0,1,3.39,3.32,3.36,3.36,0,0,1-3.32,3.39l-158.76,1.57Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2510.57,1801.68a3.36,3.36,0,0,1-1.38-6.42l29-13a3.36,3.36,0,1,1,2.75,6.12l-29,13A3.32,3.32,0,0,1,2510.57,1801.68Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2363.75,2092.76h-.48l-96.46,1.48-97.41,1-195.87.76a3.72,3.72,0,0,1-3.73-3.7v0l-.07-54.71a3.79,3.79,0,0,1,3.78-3.8h0l194.63.42,194.63,1.45h0a1.9,1.9,0,0,1,1.89,1.92v0Zm-1.9-.95v-.47l-1-53.76,1.93,1.93L2168.15,2041l-194.63.42,3.8-3.8-.07,54.71-3.73-3.73,193.41.76,97.22,1Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"216.54",x2:"216.54",y1:"709.01",y2:"947.85"}),M.default.cr
|
1 |
!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=912)}([function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Sr.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return kt(e,t,n,r,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(e){return null==e._pf&&(e._pf=p()),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=Cr.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function _(e){var t=f(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}function M(e,t){var n,r,a;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=h(t)),o(t._locale)||(e._locale=t._locale),zr.length>0)for(n=0;n<zr.length;n++)r=zr[n],a=t[r],o(a)||(e[r]=a);return e}function b(e){M(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Or&&(Or=!0,t.updateOffset(this),Or=!1)}function g(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function v(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=v(t)),n}function A(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&y(e[r])!==y(t[r]))&&o++;return o+i}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,n){var r=!0;return d(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),r){for(var a,i=[],o=0;o<arguments.length;o++){if(a="","object"==typeof arguments[o]){a+="\n["+o+"] ";for(var s in arguments[0])a+=s+": "+arguments[0][s]+", ";a=a.slice(0,-2)}else a=arguments[o];i.push(a)}w(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function k(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Nr[e]||(w(n),Nr[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e){var t,n;for(n in e)t=e[n],T(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(e,t){var n,r=d({},e);for(n in t)l(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&a(e[n])&&(r[n]=d({},r[n]));return r}function C(e){null!=e&&this.set(e)}function z(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r}function O(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function N(){return this._invalidDate}function D(e){return this._ordinal.replace("%d",e)}function P(e,t,n,r){var a=this._relativeTime[n];return T(a)?a(e,t,n,r):a.replace(/%d/i,e)}function x(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function j(e,t){var n=e.toLowerCase();Yr[n]=Yr[n+"s"]=Yr[t]=e}function R(e){return"string"==typeof e?Yr[e]||Yr[e.toLowerCase()]:void 0}function Y(e){var t,n,r={};for(n in e)l(e,n)&&(t=R(n))&&(r[t]=e[n]);return r}function I(e,t){Ir[e]=t}function q(e){var t=[];for(var n in e)t.push({unit:n,priority:Ir[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}function W(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(Ur[e]=a),t&&(Ur[t[0]]=function(){return B(a.apply(this,arguments),t[1],t[2])}),n&&(Ur[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(qr);for(t=0,n=r.length;t<n;t++)Ur[r[t]]?r[t]=Ur[r[t]]:r[t]=U(r[t]);return function(t){var a,i="";for(a=0;a<n;a++)i+=T(r[a])?r[a].call(t,e):r[a];return i}}function F(e,t){return e.isValid()?(t=X(t,e.localeData()),Wr[t]=Wr[t]||H(t),Wr[t](e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Br.lastIndex=0;r>=0&&Br.test(e);)e=e.replace(Br,n),Br.lastIndex=0,r-=1;return e}function V(e,t,n){sa[e]=T(t)?t:function(e,r){return e&&n?n:t}}function K(e,t){return l(sa,e)?sa[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return G(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}function G(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=y(e)}),n=0;n<e.length;n++)ca[e[n]]=r}function Z(e,t){Q(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function $(e,t,n){null!=t&&l(ca,e)&&ca[e](t,n._a,n,e)}function ee(e){return te(e)?366:365}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(){return te(this.year())}function re(e,n){return function(r){return null!=r?(ie(this,e,r),t.updateOffset(this,n),this):ae(this,e)}}function ae(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ie(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ue(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function oe(e){return e=R(e),T(this[e])?this[e]():this}function se(e,t){if("object"==typeof e){e=Y(e);for(var n=q(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=R(e),T(this[e]))return this[e](t);return this}function ce(e,t){return(e%t+t)%t}function ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ce(t,12);return e+=(t-n)/12,1===n?te(e)?29:28:31-n%7%2}function le(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||va).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function de(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[va.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fe(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(a=ba.call(this._shortMonthsParse,o),-1!==a?a:null):(a=ba.call(this._longMonthsParse,o),-1!==a?a:null):"MMM"===t?-1!==(a=ba.call(this._shortMonthsParse,o))?a:(a=ba.call(this._longMonthsParse,o),-1!==a?a:null):-1!==(a=ba.call(this._longMonthsParse,o))?a:(a=ba.call(this._shortMonthsParse,o),-1!==a?a:null)}function pe(e,t,n){var r,a,i;if(this._monthsParseExact)return fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function he(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=y(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ue(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function me(e){return null!=e?(he(this,e),t.updateOffset(this,!0),this):ae(this,"Month")}function _e(){return ue(this.year(),this.month())}function Me(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=wa),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function be(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Ea),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ge(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],i=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),i.sort(e),t=0;t<12;t++)r[t]=G(r[t]),a[t]=G(a[t]);for(t=0;t<24;t++)i[t]=G(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ve(e,t,n,r,a,i,o){var s=new Date(e,t,n,r,a,i,o);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ae(e,t,n){var r=7+t-n;return-(7+ye(e,0,r).getUTCDay()-t)%7+r-1}function we(e,t,n,r,a){var i,o,s=(7+n-r)%7,c=Ae(e,r,a),u=1+7*(t-1)+s+c;return u<=0?(i=e-1,o=ee(i)+u):u>ee(e)?(i=e+1,o=u-ee(e)):(i=e,o=u),{year:i,dayOfYear:o}}function Ee(e,t,n){var r,a,i=Ae(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?(a=e.year()-1,r=o+ke(a,t,n)):o>ke(e.year(),t,n)?(r=o-ke(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function ke(e,t,n){var r=Ae(e,t,n),a=Ae(e+1,t,n);return(ee(e)-r+a)/7}function Te(e){return Ee(e,this._week.dow,this._week.doy).week}function Le(){return this._week.dow}function Se(){return this._week.doy}function Ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function ze(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Oe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function De(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function xe(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function je(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(a=ba.call(this._weekdaysParse,o),-1!==a?a:null):"ddd"===t?(a=ba.call(this._shortWeekdaysParse,o),-1!==a?a:null):(a=ba.call(this._minWeekdaysParse,o),-1!==a?a:null):"dddd"===t?-1!==(a=ba.call(this._weekdaysParse,o))?a:-1!==(a=ba.call(this._shortWeekdaysParse,o))?a:(a=ba.call(this._minWeekdaysParse,o),-1!==a?a:null):"ddd"===t?-1!==(a=ba.call(this._shortWeekdaysParse,o))?a:-1!==(a=ba.call(this._weekdaysParse,o))?a:(a=ba.call(this._minWeekdaysParse,o),-1!==a?a:null):-1!==(a=ba.call(this._minWeekdaysParse,o))?a:-1!==(a=ba.call(this._weekdaysParse,o))?a:(a=ba.call(this._shortWeekdaysParse,o),-1!==a?a:null)}function Re(e,t,n){var r,a,i;if(this._weekdaysParseExact)return je.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ye(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Oe(e,this.localeData()),this.add(e-t,"d")):t}function Ie(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ca),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function We(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=za),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ue(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function He(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),i=this.weekdays(n,""),o.push(r),s.push(a),c.push(i),u.push(r),u.push(a),u.push(i);for(o.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s[t]=G(s[t]),c[t]=G(c[t]),u[t]=G(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Fe(){return this.hours()%12||12}function Xe(){return this.hours()||24}function Ve(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}function Je(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ge(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,a,i=0;i<e.length;){for(a=Qe(e[i]).split("-"),t=a.length,n=Qe(e[i+1]),n=n?n.split("-"):null;t>0;){if(r=$e(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&A(a,n,!0)>=t-1)break;t--}i++}return null}function $e(t){var r=null;if(!ja[t]&&void 0!==e&&e&&e.exports)try{r=Na._abbr;n(739)("./"+t),et(r)}catch(e){}return ja[t]}function et(e,t){var n;return e&&(n=o(t)?rt(e):tt(e,t))&&(Na=n),Na._abbr}function tt(e,t){if(null!==t){var n=xa;if(t.abbr=e,null!=ja[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ja[e]._config;else if(null!=t.parentLocale){if(null==ja[t.parentLocale])return Ra[t.parentLocale]||(Ra[t.parentLocale]=[]),Ra[t.parentLocale].push({name:e,config:t}),null;n=ja[t.parentLocale]._config}return ja[e]=new C(S(n,t)),Ra[e]&&Ra[e].forEach(function(e){tt(e.name,e.config)}),et(e),ja[e]}return delete ja[e],null}function nt(e,t){if(null!=t){var n,r,a=xa;r=$e(e),null!=r&&(a=r._config),t=S(a,t),n=new C(t),n.parentLocale=ja[e],ja[e]=n,et(e)}else null!=ja[e]&&(null!=ja[e].parentLocale?ja[e]=ja[e].parentLocale:null!=ja[e]&&delete ja[e]);return ja[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Na;if(!r(e)){if(t=$e(e))return t;e=[e]}return Ze(e)}function at(){return Dr(ja)}function it(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[la]<0||n[la]>11?la:n[da]<1||n[da]>ue(n[ua],n[la])?da:n[fa]<0||n[fa]>24||24===n[fa]&&(0!==n[pa]||0!==n[ha]||0!==n[ma])?fa:n[pa]<0||n[pa]>59?pa:n[ha]<0||n[ha]>59?ha:n[ma]<0||n[ma]>999?ma:-1,h(e)._overflowDayOfYear&&(t<ua||t>da)&&(t=da),h(e)._overflowWeeks&&-1===t&&(t=_a),h(e)._overflowWeekday&&-1===t&&(t=Ma),h(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,r,a,i,o=[];if(!e._d){for(r=st(e),e._w&&null==e._a[da]&&null==e._a[la]&&ut(e),null!=e._dayOfYear&&(i=ot(e._a[ua],r[ua]),(e._dayOfYear>ee(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=ye(i,0,e._dayOfYear),e._a[la]=n.getUTCMonth(),e._a[da]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[fa]&&0===e._a[pa]&&0===e._a[ha]&&0===e._a[ma]&&(e._nextDay=!0,e._a[fa]=0),e._d=(e._useUTC?ye:ve).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[fa]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}function ut(e){var t,n,r,a,i,o,s,c;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,o=4,n=ot(t.GG,e._a[ua],Ee(Tt(),1,4).year),r=ot(t.W,1),((a=ot(t.E,1))<1||a>7)&&(c=!0);else{i=e._locale._week.dow,o=e._locale._week.doy;var u=Ee(Tt(),i,o);n=ot(t.gg,e._a[ua],u.year),r=ot(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(c=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(c=!0)):a=i}r<1||r>ke(n,i,o)?h(e)._overflowWeeks=!0:null!=c?h(e)._overflowWeekday=!0:(s=we(n,r,a,i,o),e._a[ua]=s.year,e._dayOfYear=s.dayOfYear)}function lt(e){var t,n,r,a,i,o,s=e._i,c=Ya.exec(s)||Ia.exec(s);if(c){for(h(e).iso=!0,t=0,n=Ba.length;t<n;t++)if(Ba[t][1].exec(c[1])){a=Ba[t][0],r=!1!==Ba[t][2];break}if(null==a)return void(e._isValid=!1);if(c[3]){for(t=0,n=Wa.length;t<n;t++)if(Wa[t][1].exec(c[3])){i=(c[2]||" ")+Wa[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(c[4]){if(!qa.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),bt(e)}else e._isValid=!1}function dt(e,t,n,r,a,i){var o=[ft(e),Aa.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function ft(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ht(e,t,n){if(e){if(La.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function mt(e,t,n){if(e)return Fa[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function _t(e){var t=Ha.exec(pt(e._i));if(t){var n=dt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!ht(t[1],n,e))return;e._a=n,e._tzm=mt(t[8],t[9],t[10]),e._d=ye.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Mt(e){var n=Ua.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));lt(e),!1===e._isValid&&(delete e._isValid,_t(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function bt(e){if(e._f===t.ISO_8601)return void lt(e);if(e._f===t.RFC_2822)return void _t(e);e._a=[],h(e).empty=!0;var n,r,a,i,o,s=""+e._i,c=s.length,u=0;for(a=X(e._f,e._locale).match(qr)||[],n=0;n<a.length;n++)i=a[n],r=(s.match(K(i,e))||[])[0],r&&(o=s.substr(0,s.indexOf(r)),o.length>0&&h(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),u+=r.length),Ur[i]?(r?h(e).empty=!1:h(e).unusedTokens.push(i),$(i,r,e)):e._strict&&!r&&h(e).unusedTokens.push(i);h(e).charsLeftOver=c-u,s.length>0&&h(e).unusedInput.push(s),e._a[fa]<=12&&!0===h(e).bigHour&&e._a[fa]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[fa]=gt(e._locale,e._a[fa],e._meridiem),ct(e),it(e)}function gt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function vt(e){var t,n,r,a,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)i=0,t=M({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],bt(t),m(t)&&(i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,(null==r||i<r)&&(r=i,n=t));d(e,n||t)}function yt(e){if(!e._d){var t=Y(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ct(e)}}function At(e){var t=new b(it(wt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||rt(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new b(it(t)):(c(t)?e._d=t:r(n)?vt(e):n?bt(e):Et(e),m(e)||(e._d=null),e))}function Et(e){var n=e._i;o(n)?e._d=new Date(t.now()):c(n)?e._d=new Date(n.valueOf()):"string"==typeof n?Mt(e):r(n)?(e._a=u(n.slice(0),function(e){return parseInt(e,10)}),ct(e)):a(n)?yt(e):s(n)?e._d=new Date(n):t.createFromInputFallback(e)}function kt(e,t,n,o,s){var c={};return!0!==n&&!1!==n||(o=n,n=void 0),(a(e)&&i(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=e,c._f=t,c._strict=o,At(c)}function Tt(e,t,n,r){return kt(e,t,n,r,!1)}function Lt(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function St(){return Lt("isBefore",[].slice.call(arguments,0))}function Ct(){return Lt("isAfter",[].slice.call(arguments,0))}function zt(e){for(var t in e)if(-1===ba.call(Ja,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Ja.length;++r)if(e[Ja[r]]){if(n)return!1;parseFloat(e[Ja[r]])!==y(e[Ja[r]])&&(n=!0)}return!0}function Ot(){return this._isValid}function Nt(){return Qt(NaN)}function Dt(e){var t=Y(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||0,o=t.day||0,s=t.hour||0,c=t.minute||0,u=t.second||0,l=t.millisecond||0;this._isValid=zt(t),this._milliseconds=+l+1e3*u+6e4*c+1e3*s*60*60,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=rt(),this._bubble()}function Pt(e){return e instanceof Dt}function xt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function jt(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function Rt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],a=(r+"").match(Ga)||["-",0,0],i=60*a[1]+y(a[2]);return 0===i?0:"+"===a[0]?i:-i}function Yt(e,n){var r,a;return n._isUTC?(r=n.clone(),a=(g(e)||c(e)?e.valueOf():Tt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),t.updateOffset(r,!1),r):Tt(e).local()}function It(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function qt(e,n,r){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Rt(aa,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&n&&(a=It(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!n||this._changeInProgress?nn(this,Qt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:It(this)}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wt(e){return this.utcOffset(0,e)}function Ut(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(It(this),"m")),this}function Ht(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Rt(ra,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ft(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Xt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(M(e,this),e=wt(e),e._a){var t=e._isUTC?f(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&A(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Kt(){return!!this.isValid()&&!this._isUTC}function Jt(){return!!this.isValid()&&this._isUTC}function Gt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qt(e,t){var n,r,a,i=e,o=null;return Pt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(i={},t?i[t]=e:i.milliseconds=e):(o=Qa.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:y(o[da])*n,h:y(o[fa])*n,m:y(o[pa])*n,s:y(o[ha])*n,ms:y(xt(1e3*o[ma]))*n}):(o=Za.exec(e))?(n="-"===o[1]?-1:(o[1],1),i={y:Zt(o[2],n),M:Zt(o[3],n),w:Zt(o[4],n),d:Zt(o[5],n),h:Zt(o[6],n),m:Zt(o[7],n),s:Zt(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=en(Tt(i.from),Tt(i.to)),i={},i.ms=a.milliseconds,i.M=a.months),r=new Dt(i),Pt(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function $t(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){var n;return e.isValid()&&t.isValid()?(t=Yt(t,e),e.isBefore(t)?n=$t(e,t):(n=$t(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(e,t){return function(n,r){var a,i;return null===r||isNaN(+r)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),n="string"==typeof n?+n:n,a=Qt(n,r),nn(this,a,e),this}}function nn(e,n,r,a){var i=n._milliseconds,o=xt(n._days),s=xt(n._months);e.isValid()&&(a=null==a||a,s&&he(e,ae(e,"Month")+s*r),o&&ie(e,"Date",ae(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),a&&t.updateOffset(e,o||s))}function rn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function an(e,n){var r=e||Tt(),a=Yt(r,this).startOf("day"),i=t.calendarFormat(this,a)||"sameElse",o=n&&(T(n[i])?n[i].call(this,r):n[i]);return this.format(o||this.localeData().calendar(i,this,Tt(r)))}function on(){return new b(this)}function sn(e,t){var n=g(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=R(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function cn(e,t){var n=g(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&(t=R(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function un(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function ln(e,t){var n,r=g(e)?e:Tt(e);return!(!this.isValid()||!r.isValid())&&(t=R(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function dn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function fn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function pn(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(r=Yt(e,this),!r.isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=R(t)){case"year":i=hn(this,r)/12;break;case"month":i=hn(this,r);break;case"quarter":i=hn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:v(i)}function hn(e,t){var n,r,a=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(a,"months");return t-i<0?(n=e.clone().add(a-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(a+1,"months"),r=(t-i)/(n-i)),-(a+r)||0}function mn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _n(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Mn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)}function bn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=F(this,e);return this.localeData().postformat(n)}function gn(e,t){return this.isValid()&&(g(e)&&e.isValid()||Tt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vn(e){return this.from(Tt(),e)}function yn(e,t){return this.isValid()&&(g(e)&&e.isValid()||Tt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function An(e){return this.to(Tt(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=rt(e),null!=t&&(this._locale=t),this)}function En(){return this._locale}function kn(e){switch(e=R(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":
|
2 |
this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Tn(e){return void 0===(e=R(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Ln(){return this._d.valueOf()-6e4*(this._offset||0)}function Sn(){return Math.floor(this.valueOf()/1e3)}function Cn(){return new Date(this.valueOf())}function zn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function On(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Nn(){return this.isValid()?this.toISOString():null}function Dn(){return m(this)}function Pn(){return d({},h(this))}function xn(){return h(this).overflow}function jn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Rn(e,t){W(0,[e,e.length],0,t)}function Yn(e){return Wn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function In(e){return Wn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qn(){return ke(this.year(),1,4)}function Bn(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function Wn(e,t,n,r,a){var i;return null==e?Ee(this,r,a).year:(i=ke(e,r,a),t>i&&(t=i),Un.call(this,e,t,n,r,a))}function Un(e,t,n,r,a){var i=we(e,t,n,r,a),o=ye(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Hn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Fn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Xn(e,t){t[ma]=y(1e3*("0."+e))}function Vn(){return this._isUTC?"UTC":""}function Kn(){return this._isUTC?"Coordinated Universal Time":""}function Jn(e){return Tt(1e3*e)}function Gn(){return Tt.apply(null,arguments).parseZone()}function Qn(e){return e}function Zn(e,t,n,r){var a=rt(),i=f().set(r,t);return a[n](i,e)}function $n(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Zn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Zn(e,r,n,"month");return a}function er(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var a=rt(),i=e?a._week.dow:0;if(null!=n)return Zn(t,(n+i)%7,r,"day");var o,c=[];for(o=0;o<7;o++)c[o]=Zn(t,(o+i)%7,r,"day");return c}function tr(e,t){return $n(e,t,"months")}function nr(e,t){return $n(e,t,"monthsShort")}function rr(e,t,n){return er(e,t,n,"weekdays")}function ar(e,t,n){return er(e,t,n,"weekdaysShort")}function ir(e,t,n){return er(e,t,n,"weekdaysMin")}function or(){var e=this._data;return this._milliseconds=ui(this._milliseconds),this._days=ui(this._days),this._months=ui(this._months),e.milliseconds=ui(e.milliseconds),e.seconds=ui(e.seconds),e.minutes=ui(e.minutes),e.hours=ui(e.hours),e.months=ui(e.months),e.years=ui(e.years),this}function sr(e,t,n,r){var a=Qt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function cr(e,t){return sr(this,e,t,1)}function ur(e,t){return sr(this,e,t,-1)}function lr(e){return e<0?Math.floor(e):Math.ceil(e)}function dr(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,c=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*lr(pr(s)+o),o=0,s=0),c.milliseconds=i%1e3,e=v(i/1e3),c.seconds=e%60,t=v(e/60),c.minutes=t%60,n=v(t/60),c.hours=n%24,o+=v(n/24),a=v(fr(o)),s+=a,o-=lr(pr(a)),r=v(s/12),s%=12,c.days=o,c.months=s,c.years=r,this}function fr(e){return 4800*e/146097}function pr(e){return 146097*e/4800}function hr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=R(e))||"year"===e)return t=this._days+r/864e5,n=this._months+fr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(pr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function mr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN}function _r(e){return function(){return this.as(e)}}function Mr(){return Qt(this)}function br(e){return e=R(e),this.isValid()?this[e+"s"]():NaN}function gr(e){return function(){return this.isValid()?this._data[e]:NaN}}function vr(){return v(this.days()/7)}function yr(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Ar(e,t,n){var r=Qt(e).abs(),a=ki(r.as("s")),i=ki(r.as("m")),o=ki(r.as("h")),s=ki(r.as("d")),c=ki(r.as("M")),u=ki(r.as("y")),l=a<=Ti.ss&&["s",a]||a<Ti.s&&["ss",a]||i<=1&&["m"]||i<Ti.m&&["mm",i]||o<=1&&["h"]||o<Ti.h&&["hh",o]||s<=1&&["d"]||s<Ti.d&&["dd",s]||c<=1&&["M"]||c<Ti.M&&["MM",c]||u<=1&&["y"]||["yy",u];return l[2]=t,l[3]=+e>0,l[4]=n,yr.apply(null,l)}function wr(e){return void 0===e?ki:"function"==typeof e&&(ki=e,!0)}function Er(e,t){return void 0!==Ti[e]&&(void 0===t?Ti[e]:(Ti[e]=t,"s"===e&&(Ti.ss=t-1),!0))}function kr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Ar(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Tr(e){return(e>0)-(e<0)||+e}function Lr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Li(this._milliseconds)/1e3,a=Li(this._days),i=Li(this._months);e=v(r/60),t=v(e/60),r%=60,e%=60,n=v(i/12),i%=12;var o=n,s=i,c=a,u=t,l=e,d=r?r.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var p=f<0?"-":"",h=Tr(this._months)!==Tr(f)?"-":"",m=Tr(this._days)!==Tr(f)?"-":"",_=Tr(this._milliseconds)!==Tr(f)?"-":"";return p+"P"+(o?h+o+"Y":"")+(s?h+s+"M":"")+(c?m+c+"D":"")+(u||l||d?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(d?_+d+"S":"")}var Sr,Cr;Cr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var zr=t.momentProperties=[],Or=!1,Nr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Dr;Dr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Pr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},xr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},jr=/\d{1,2}/,Rr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Yr={},Ir={},qr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Br=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wr={},Ur={},Hr=/\d/,Fr=/\d\d/,Xr=/\d{3}/,Vr=/\d{4}/,Kr=/[+-]?\d{6}/,Jr=/\d\d?/,Gr=/\d\d\d\d?/,Qr=/\d\d\d\d\d\d?/,Zr=/\d{1,3}/,$r=/\d{1,4}/,ea=/[+-]?\d{1,6}/,ta=/\d+/,na=/[+-]?\d+/,ra=/Z|[+-]\d\d:?\d\d/gi,aa=/Z|[+-]\d\d(?::?\d\d)?/gi,ia=/[+-]?\d+(\.\d{1,3})?/,oa=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,sa={},ca={},ua=0,la=1,da=2,fa=3,pa=4,ha=5,ma=6,_a=7,Ma=8;W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),j("year","y"),I("year",1),V("Y",na),V("YY",Jr,Fr),V("YYYY",$r,Vr),V("YYYYY",ea,Kr),V("YYYYYY",ea,Kr),Q(["YYYYY","YYYYYY"],ua),Q("YYYY",function(e,n){n[ua]=2===e.length?t.parseTwoDigitYear(e):y(e)}),Q("YY",function(e,n){n[ua]=t.parseTwoDigitYear(e)}),Q("Y",function(e,t){t[ua]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var ba,ga=re("FullYear",!0);ba=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),j("month","M"),I("month",8),V("M",Jr),V("MM",Jr,Fr),V("MMM",function(e,t){return t.monthsShortRegex(e)}),V("MMMM",function(e,t){return t.monthsRegex(e)}),Q(["M","MM"],function(e,t){t[la]=y(e)-1}),Q(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[la]=a:h(n).invalidMonth=e});var va=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ya="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Aa="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),wa=oa,Ea=oa;W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),I("week",5),I("isoWeek",5),V("w",Jr),V("ww",Jr,Fr),V("W",Jr),V("WW",Jr,Fr),Z(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=y(e)});var ka={dow:0,doy:6};W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),V("d",Jr),V("e",Jr),V("E",Jr),V("dd",function(e,t){return t.weekdaysMinRegex(e)}),V("ddd",function(e,t){return t.weekdaysShortRegex(e)}),V("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,r){t[r]=y(e)});var Ta="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),La="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Sa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ca=oa,za=oa,Oa=oa;W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Fe),W("k",["kk",2],0,Xe),W("hmm",0,0,function(){return""+Fe.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Fe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Ve("a",!0),Ve("A",!1),j("hour","h"),I("hour",13),V("a",Ke),V("A",Ke),V("H",Jr),V("h",Jr),V("k",Jr),V("HH",Jr,Fr),V("hh",Jr,Fr),V("kk",Jr,Fr),V("hmm",Gr),V("hmmss",Qr),V("Hmm",Gr),V("Hmmss",Qr),Q(["H","HH"],fa),Q(["k","kk"],function(e,t,n){var r=y(e);t[fa]=24===r?0:r}),Q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Q(["h","hh"],function(e,t,n){t[fa]=y(e),h(n).bigHour=!0}),Q("hmm",function(e,t,n){var r=e.length-2;t[fa]=y(e.substr(0,r)),t[pa]=y(e.substr(r)),h(n).bigHour=!0}),Q("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[fa]=y(e.substr(0,r)),t[pa]=y(e.substr(r,2)),t[ha]=y(e.substr(a)),h(n).bigHour=!0}),Q("Hmm",function(e,t,n){var r=e.length-2;t[fa]=y(e.substr(0,r)),t[pa]=y(e.substr(r))}),Q("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[fa]=y(e.substr(0,r)),t[pa]=y(e.substr(r,2)),t[ha]=y(e.substr(a))});var Na,Da=/[ap]\.?m?\.?/i,Pa=re("Hours",!0),xa={calendar:Pr,longDateFormat:xr,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:jr,relativeTime:Rr,months:ya,monthsShort:Aa,week:ka,weekdays:Ta,weekdaysMin:Sa,weekdaysShort:La,meridiemParse:Da},ja={},Ra={},Ya=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ia=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qa=/Z|[+-]\d\d(?::?\d\d)?/,Ba=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Wa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ua=/^\/?Date\((\-?\d+)/i,Ha=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Fa={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Xa=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),Va=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()}),Ka=function(){return Date.now?Date.now():+new Date},Ja=["year","quarter","month","week","day","hour","minute","second","millisecond"];jt("Z",":"),jt("ZZ",""),V("Z",aa),V("ZZ",aa),Q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Rt(aa,e)});var Ga=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Qa=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Za=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qt.fn=Dt.prototype,Qt.invalid=Nt;var $a=tn(1,"add"),ei=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ti=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rn("gggg","weekYear"),Rn("ggggg","weekYear"),Rn("GGGG","isoWeekYear"),Rn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),V("G",na),V("g",na),V("GG",Jr,Fr),V("gg",Jr,Fr),V("GGGG",$r,Vr),V("gggg",$r,Vr),V("GGGGG",ea,Kr),V("ggggg",ea,Kr),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=y(e)}),Z(["gg","GG"],function(e,n,r,a){n[a]=t.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),j("quarter","Q"),I("quarter",7),V("Q",Hr),Q("Q",function(e,t){t[la]=3*(y(e)-1)}),W("D",["DD",2],"Do","date"),j("date","D"),I("date",9),V("D",Jr),V("DD",Jr,Fr),V("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Q(["D","DD"],da),Q("Do",function(e,t){t[da]=y(e.match(Jr)[0])});var ni=re("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),I("dayOfYear",4),V("DDD",Zr),V("DDDD",Xr),Q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=y(e)}),W("m",["mm",2],0,"minute"),j("minute","m"),I("minute",14),V("m",Jr),V("mm",Jr,Fr),Q(["m","mm"],pa);var ri=re("Minutes",!1);W("s",["ss",2],0,"second"),j("second","s"),I("second",15),V("s",Jr),V("ss",Jr,Fr),Q(["s","ss"],ha);var ai=re("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),I("millisecond",16),V("S",Zr,Hr),V("SS",Zr,Fr),V("SSS",Zr,Xr);var ii;for(ii="SSSS";ii.length<=9;ii+="S")V(ii,ta);for(ii="S";ii.length<=9;ii+="S")Q(ii,Xn);var oi=re("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var si=b.prototype;si.add=$a,si.calendar=an,si.clone=on,si.diff=pn,si.endOf=Tn,si.format=bn,si.from=gn,si.fromNow=vn,si.to=yn,si.toNow=An,si.get=oe,si.invalidAt=xn,si.isAfter=sn,si.isBefore=cn,si.isBetween=un,si.isSame=ln,si.isSameOrAfter=dn,si.isSameOrBefore=fn,si.isValid=Dn,si.lang=ti,si.locale=wn,si.localeData=En,si.max=Va,si.min=Xa,si.parsingFlags=Pn,si.set=se,si.startOf=kn,si.subtract=ei,si.toArray=zn,si.toObject=On,si.toDate=Cn,si.toISOString=_n,si.inspect=Mn,si.toJSON=Nn,si.toString=mn,si.unix=Sn,si.valueOf=Ln,si.creationData=jn,si.year=ga,si.isLeapYear=ne,si.weekYear=Yn,si.isoWeekYear=In,si.quarter=si.quarters=Hn,si.month=me,si.daysInMonth=_e,si.week=si.weeks=Ce,si.isoWeek=si.isoWeeks=ze,si.weeksInYear=Bn,si.isoWeeksInYear=qn,si.date=ni,si.day=si.days=Ye,si.weekday=Ie,si.isoWeekday=qe,si.dayOfYear=Fn,si.hour=si.hours=Pa,si.minute=si.minutes=ri,si.second=si.seconds=ai,si.millisecond=si.milliseconds=oi,si.utcOffset=qt,si.utc=Wt,si.local=Ut,si.parseZone=Ht,si.hasAlignedHourOffset=Ft,si.isDST=Xt,si.isLocal=Kt,si.isUtcOffset=Jt,si.isUtc=Gt,si.isUTC=Gt,si.zoneAbbr=Vn,si.zoneName=Kn,si.dates=E("dates accessor is deprecated. Use date instead.",ni),si.months=E("months accessor is deprecated. Use month instead",me),si.years=E("years accessor is deprecated. Use year instead",ga),si.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Bt),si.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vt);var ci=C.prototype;ci.calendar=z,ci.longDateFormat=O,ci.invalidDate=N,ci.ordinal=D,ci.preparse=Qn,ci.postformat=Qn,ci.relativeTime=P,ci.pastFuture=x,ci.set=L,ci.months=le,ci.monthsShort=de,ci.monthsParse=pe,ci.monthsRegex=be,ci.monthsShortRegex=Me,ci.week=Te,ci.firstDayOfYear=Se,ci.firstDayOfWeek=Le,ci.weekdays=De,ci.weekdaysMin=xe,ci.weekdaysShort=Pe,ci.weekdaysParse=Re,ci.weekdaysRegex=Be,ci.weekdaysShortRegex=We,ci.weekdaysMinRegex=Ue,ci.isPM=Je,ci.meridiem=Ge,et("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=E("moment.lang is deprecated. Use moment.locale instead.",et),t.langData=E("moment.langData is deprecated. Use moment.localeData instead.",rt);var ui=Math.abs,li=_r("ms"),di=_r("s"),fi=_r("m"),pi=_r("h"),hi=_r("d"),mi=_r("w"),_i=_r("M"),Mi=_r("y"),bi=gr("milliseconds"),gi=gr("seconds"),vi=gr("minutes"),yi=gr("hours"),Ai=gr("days"),wi=gr("months"),Ei=gr("years"),ki=Math.round,Ti={ss:44,s:45,m:45,h:22,d:26,M:11},Li=Math.abs,Si=Dt.prototype;return Si.isValid=Ot,Si.abs=or,Si.add=cr,Si.subtract=ur,Si.as=hr,Si.asMilliseconds=li,Si.asSeconds=di,Si.asMinutes=fi,Si.asHours=pi,Si.asDays=hi,Si.asWeeks=mi,Si.asMonths=_i,Si.asYears=Mi,Si.valueOf=mr,Si._bubble=dr,Si.clone=Mr,Si.get=br,Si.milliseconds=bi,Si.seconds=gi,Si.minutes=vi,Si.hours=yi,Si.days=Ai,Si.weeks=vr,Si.months=wi,Si.years=Ei,Si.humanize=kr,Si.toISOString=Lr,Si.toString=Lr,Si.toJSON=Lr,Si.locale=wn,Si.localeData=En,Si.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Lr),Si.lang=ti,W("X",0,0,"unix"),W("x",0,0,"valueOf"),V("x",na),V("X",ia),Q("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Q("x",function(e,t,n){n._d=new Date(y(e))}),t.version="2.20.1",function(e){Sr=e}(Tt),t.fn=si,t.min=St,t.max=Ct,t.now=Ka,t.utc=f,t.unix=Jn,t.months=tr,t.isDate=c,t.locale=et,t.invalid=_,t.duration=Qt,t.isMoment=g,t.weekdays=rr,t.parseZone=Gn,t.localeData=rt,t.isDuration=Pt,t.monthsShort=nr,t.weekdaysMin=ir,t.defineLocale=tt,t.updateLocale=nt,t.locales=at,t.weekdaysShort=ar,t.normalizeUnits=R,t.relativeTimeRounding=wr,t.relativeTimeThreshold=Er,t.calendarFormat=rn,t.prototype=si,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t})}).call(t,n(88)(e))},function(e,t,n){"use strict";e.exports=n(86)},function(e,t,n){e.exports={default:n(759),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(58),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,a.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(761),i=r(a),o=n(765),s=r(o),c=n(58),u=r(c);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(308),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,a.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,c){if(a(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,s,c],d=0;u=new Error(t.replace(/%s/g,function(){return l[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var a=function(e){};e.exports=r},function(e,t,n){var r=n(733),a=new r;e.exports={moment:a.moment,numberFormat:a.numberFormat.bind(a),translate:a.translate.bind(a),configure:a.configure.bind(a),setLocale:a.setLocale.bind(a),getLocale:a.getLocale.bind(a),getLocaleSlug:a.getLocaleSlug.bind(a),addTranslations:a.addTranslations.bind(a),reRenderTranslations:a.reRenderTranslations.bind(a),registerComponentUpdateHook:a.registerComponentUpdateHook.bind(a),registerTranslateHook:a.registerTranslateHook.bind(a),state:a.state,stateObserver:a.stateObserver,on:a.stateObserver.on.bind(a.stateObserver),off:a.stateObserver.removeListener.bind(a.stateObserver),emit:a.stateObserver.emit.bind(a.stateObserver),mixin:n(746)(a),localize:n(749)(a),$this:a,I18N:r}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.connect=t.Provider=void 0;var a=n(596),i=r(a),o=n(598),s=r(o);t.Provider=i.default,t.connect=s.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(727),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=a.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=new Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=r},function(e,t,n){"use strict";var r=n(37),a=r;e.exports=a},function(e,t,n){var r,a;!function(){"use strict";function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e+=" "+r;else if(Array.isArray(r))e+=" "+n.apply(null,r);else if("object"===a)for(var o in r)i.call(r,o)&&r[o]&&(e+=" "+o)}}return e.substr(1)}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(a=function(){return n}.apply(t,r))&&(e.exports=a))}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n="";if("object"===(void 0===e?"undefined":(0,d.default)(e))){for(var r in e)n+="&x_"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);f("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),f('Bumping stat "%s" in group "%s"',t,e);return n}function i(e,t){var n="";if("object"===(void 0===e?"undefined":(0,d.default)(e))){for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);f("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),f('Built stat "%s" in group "%s"',t,e);return n}var o,s,c=n(439),u=r(c),l=n(58),d=r(l),f=n(102)("dops:analytics"),p=n(25),h=n(796);window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;var m={initialize:function(e,t,n){m.setUser(e,t),m.setSuperProps(n),m.identifyUser()},setUser:function(e,t){s={ID:e,username:t}},setSuperProps:function(e){o=e},mc:{bumpStat:function(e,t){var n=a(e,t);h("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){var n=i(e,t);h("mc_analytics_enabled")&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){m.tracks.recordPageView(e),m.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,a,i,o){m.ga.recordPurchase(e,t,n,r,a,i,o)}},tracks:{recordEvent:function(e,t){var n;if(t=t||{},f('Record event "%s" called with props %s',e,(0,u.default)(t)),0!==e.indexOf("akismet_")&&0!==e.indexOf("jetpack_"))return void f('- Event name must be prefixed by "akismet_" or "jetpack_"');o&&(n=o.getAll(),f("- Super Props: %o",n),t=p(t,n)),window._tkq.push(["recordEvent",e,t])},recordJetpackClick:function(e){var t="object"===(void 0===e?"undefined":(0,d.default)(e))?e:{target:e};m.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){m.tracks.recordEvent("akismet_page_view",{path:e})}},ga:{initialized:!1,initialize:function(){var e={};m.ga.initialized||(s&&(e={userId:"u-"+s.ID}),window.ga("create",h("google_analytics_key"),"auto",e),m.ga.initialized=!0)},recordPageView:function(e,t){m.ga.initialize(),f("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),h("google_analytics_enabled")&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){m.ga.initialize();var a="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(a+=" [Option Label: "+n+"]"),void 0!==r&&(a+=" [Option Value: "+r+"]"),f(a),h("google_analytics_enabled")&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,a,i,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:a,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){s&&window._tkq.push(["identifyUser",s.ID,s.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};e.exports=m},function(e,t,n){e.exports=n(597)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.JETPACK_SET_INITIAL_STATE="JETPACK_SET_INITIAL_STATE",t.CONNECT_URL_FETCH="CONNECT_URL_FETCH",t.CONNECT_URL_FETCH_FAIL="CONNECT_URL_FETCH_FAIL",t.CONNECT_URL_FETCH_SUCCESS="CONNECT_URL_FETCH_SUCCESS",t.DISCONNECT_SITE="DISCONNECT_SITE",t.DISCONNECT_SITE_FAIL="DISCONNECT_SITE_FAIL",t.DISCONNECT_SITE_SUCCESS="DISCONNECT_SITE_SUCCESS",t.UNLINK_USER="UNLINK_USER",t.UNLINK_USER_FAIL="UNLINK_USER_FAIL",t.UNLINK_USER_SUCCESS="UNLINK_USER_SUCCESS",t.USER_CONNECTION_DATA_FETCH="USER_CONNECTION_DATA_FETCH",t.USER_CONNECTION_DATA_FETCH_FAIL="USER_CONNECTION_DATA_FETCH_FAIL",t.USER_CONNECTION_DATA_FETCH_SUCCESS="USER_CONNECTION_DATA_FETCH_SUCCESS",t.JETPACK_MODULES_LIST_FETCH="JETPACK_MODULES_LIST_FETCH",t.JETPACK_MODULES_LIST_FETCH_FAIL="JETPACK_MODULES_LIST_FETCH_FAIL",t.JETPACK_MODULES_LIST_RECEIVE="JETPACK_MODULES_LIST_RECEIVE",t.JETPACK_MODULE_FETCH="JETPACK_MODULE_FETCH",t.JETPACK_MODULE_FETCH_FAIL="JETPACK_MODULE_FETCH_FAIL",t.JETPACK_MODULE_RECEIVE="JETPACK_MODULE_RECEIVE",t.JETPACK_MODULE_ACTIVATE="JETPACK_MODULE_ACTIVATE",t.JETPACK_MODULE_ACTIVATE_SUCCESS="JETPACK_MODULE_ACTIVATE_SUCCESS",t.JETPACK_MODULE_ACTIVATE_FAIL="JETPACK_MODULE_ACTIVATE_FAIL",t.JETPACK_MODULE_DEACTIVATE="JETPACK_MODULE_DEACTIVATE",t.JETPACK_MODULE_DEACTIVATE_FAIL="JETPACK_MODULE_DEACTIVATE_FAIL",t.JETPACK_MODULE_DEACTIVATE_SUCCESS="JETPACK_MODULE_DEACTIVATE_SUCCESS",t.JETPACK_MODULE_UPDATE_OPTIONS="JETPACK_MODULE_UPDATE_OPTIONS",t.JETPACK_MODULE_UPDATE_OPTIONS_FAIL="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",t.JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",t.JETPACK_CONNECTION_STATUS_FETCH="JETPACK_CONNECTION_STATUS_FETCH",t.JUMPSTART_ACTIVATE="JUMPSTART_ACTIVATE",t.JUMPSTART_ACTIVATE_FAIL="JUMPSTART_ACTIVATE_FAIL",t.JUMPSTART_ACTIVATE_SUCCESS="JUMPSTART_ACTIVATE_SUCCESS",t.JUMPSTART_SKIP="JUMPSTART_SKIP",t.JUMPSTART_SKIP_FAIL="JUMPSTART_SKIP_FAIL",t.JUMPSTART_SKIP_SUCCESS="JUMPSTART_SKIP_SUCCESS",t.DASHBOARD_PROTECT_COUNT_FETCH="DASHBOARD_PROTECT_COUNT_FETCH",t.DASHBOARD_PROTECT_COUNT_FETCH_FAIL="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",t.DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",t.RESET_OPTIONS="RESET_OPTIONS",t.RESET_OPTIONS_FAIL="RESET_OPTIONS_FAIL",t.RESET_OPTIONS_SUCCESS="RESET_OPTIONS_SUCCESS",t.VAULTPRESS_SITE_DATA_FETCH="VAULTPRESS_SITE_DATA_FETCH",t.VAULTPRESS_SITE_DATA_FETCH_FAIL="VAULTPRESS_SITE_DATA_FETCH_FAIL",t.VAULTPRESS_SITE_DATA_FETCH_SUCCESS="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",t.AKISMET_DATA_FETCH="AKISMET_DATA_FETCH",t.AKISMET_DATA_FETCH_FAIL="AKISMET_DATA_FETCH_FAIL",t.AKISMET_DATA_FETCH_SUCCESS="AKISMET_DATA_FETCH_SUCCESS",t.AKISMET_KEY_CHECK_FETCH="AKISMET_KEY_CHECK_FETCH",t.AKISMET_KEY_CHECK_FETCH_FAIL="AKISMET_KEY_CHECK_FETCH_FAIL",t.AKISMET_KEY_CHECK_FETCH_SUCCESS="AKISMET_KEY_CHECK_FETCH_SUCCESS",t.PLUGIN_UPDATES_FETCH="PLUGIN_UPDATES_FETCH",t.PLUGIN_UPDATES_FETCH_FAIL="PLUGIN_UPDATES_FETCH_FAIL",t.PLUGIN_UPDATES_FETCH_SUCCESS="PLUGIN_UPDATES_FETCH_SUCCESS",t.STATS_SWITCH_TAB="STATS_SWITCH_TAB",t.STATS_DATA_FETCH="STATS_DATA_FETCH",t.STATS_DATA_FETCH_FAIL="STATS_DATA_FETCH_FAIL",t.STATS_DATA_FETCH_SUCCESS="STATS_DATA_FETCH_SUCCESS",t.JETPACK_SETTINGS_FETCH="JETPACK_SETTINGS_FETCH",t.JETPACK_SETTINGS_FETCH_RECEIVE="JETPACK_SETTINGS_FETCH_RECEIVE",t.JETPACK_SETTINGS_FETCH_FAIL="JETPACK_SETTINGS_FETCH_FAIL",t.JETPACK_SETTING_UPDATE="JETPACK_SETTING_UPDATE",t.JETPACK_SETTING_UPDATE_SUCCESS="JETPACK_SETTING_UPDATE_SUCCESS",t.JETPACK_SETTING_UPDATE_FAIL="JETPACK_SETTING_UPDATE_FAIL",t.JETPACK_SETTINGS_UPDATE="JETPACK_SETTINGS_UPDATE",t.JETPACK_SETTINGS_UPDATE_FAIL="JETPACK_SETTINGS_UPDATE_FAIL",t.JETPACK_SETTINGS_UPDATE_SUCCESS="JETPACK_SETTINGS_UPDATE_SUCCESS",t.JETPACK_SETTINGS_SET_UNSAVED_FLAG="JETPACK_SETTINGS_SET_UNSAVED_FLAG",t.JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",t.JETPACK_SITE_DATA_FETCH="JETPACK_SITE_DATA_FETCH",
|
3 |
t.JETPACK_SITE_DATA_FETCH_RECEIVE="JETPACK_SITE_DATA_FETCH_RECEIVE",t.JETPACK_SITE_DATA_FETCH_FAIL="JETPACK_SITE_DATA_FETCH_FAIL",t.JETPACK_SITE_FEATURES_FETCH="JETPACK_SITE_FEATURES_FETCH",t.JETPACK_SITE_FEATURES_FETCH_RECEIVE="JETPACK_SITE_FEATURES_FETCH_RECEIVE",t.JETPACK_SITE_FEATURES_FETCH_FAIL="JETPACK_SITE_FEATURES_FETCH_FAIL",t.JETPACK_ACTION_NOTICES_DISMISS="JETPACK_ACTION_NOTICES_DISMISS",t.JETPACK_NOTICES_DISPATCH_TYPE="JETPACK_NOTICES_DISPATCH_TYPE",t.JETPACK_NOTICES_DISMISS="JETPACK_NOTICES_DISMISS",t.JETPACK_NOTICES_DISMISS_FAIL="JETPACK_NOTICES_DISMISS_FAIL",t.JETPACK_NOTICES_DISMISS_SUCCESS="JETPACK_NOTICES_DISMISS_SUCCESS",t.JETPACK_PLUGINS_DATA_FETCH="JETPACK_PLUGINS_DATA_FETCH",t.JETPACK_PLUGINS_DATA_FETCH_RECEIVE="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",t.JETPACK_PLUGINS_DATA_FETCH_FAIL="JETPACK_PLUGINS_DATA_FETCH_FAIL",t.JETPACK_SEARCH_TERM="JETPACK_SEARCH_TERM",t.JETPACK_SEARCH_FOCUS="JETPACK_SEARCH_FOCUS",t.JETPACK_SEARCH_BLUR="JETPACK_SEARCH_BLUR",t.DEV_CARD_DISPLAY="DEV_CARD_DISPLAY",t.DEV_CARD_HIDE="DEV_CARD_HIDE",t.MOCK_SWITCH_USER_PERMISSIONS="MOCK_SWITCH_USER_PERMISSIONS",t.MOCK_SWITCH_THREATS="MOCK_SWITCH_THREATS",t.REWIND_STATUS_FETCH="REWIND_STATUS_FETCH",t.REWIND_STATUS_FETCH_RECEIVE="REWIND_STATUS_FETCH_RECEIVE",t.REWIND_STATUS_FETCH_FAIL="REWIND_STATUS_FETCH_FAIL",t.MOCK_SWITCH_REWIND_STATE="MOCK_SWITCH_REWIND_STATE"},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var l in n)i.call(n,l)&&(c[l]=n[l]);if(a){s=a(n);for(var d=0;d<s.length;d++)o.call(n,s[d])&&(c[s[d]]=n[s[d]])}}return c}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(h)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function a(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=a(e);n._hostNode=t,t[_]=n}function o(e){var t=e._hostNode;t&&(delete t[_],e._hostNode=null)}function s(e,t){if(!(e._flags&m.hasCachedChildNodes)){var n=e._renderedChildren,o=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var c=n[s],u=a(c)._domID;if(0!==u){for(;null!==o;o=o.nextSibling)if(r(o,u)){i(c,o);continue e}d("32",u)}}e._flags|=m.hasCachedChildNodes}}function c(e){if(e[_])return e[_];for(var t=[];!e[_];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[_]);e=t.pop())n=r,t.length&&s(r,e);return n}function u(e){var t=c(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode&&d("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||d("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var d=n(11),f=n(93),p=n(231),h=(n(7),f.ID_ATTRIBUTE_NAME),m=p,_="__reactInternalInstance$"+Math.random().toString(36).slice(2),M={getClosestInstanceFromNode:c,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:s,precacheNode:i,uncacheNode:o};e.exports=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(260),a=n(612),i=n(613),o=n(614),s=n(264);n(263);n.d(t,"createStore",function(){return r.b}),n.d(t,"combineReducers",function(){return a.a}),n.d(t,"bindActionCreators",function(){return i.a}),n.d(t,"applyMiddleware",function(){return o.a}),n.d(t,"compose",function(){return s.a})},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(309),s=r(o),c=n(797),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,t){if(-1!==t.indexOf("deprecated")){if(s[t])return;s[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];o.default.apply(void 0,[e,t].concat(r))}function a(){s={}}t.__esModule=!0,t.default=r,t._resetWarned=a;var i=n(46),o=function(e){return e&&e.__esModule?e:{default:e}}(i),s={}},function(e,t,n){function r(e,t,n){var r=null==e?void 0:a(e,t);return void 0===r?n:r}var a=n(160);e.exports=r},function(e,t,n){var r=n(154),a=n(78),i=n(283),o=n(52),s=n(117),c=n(68),u=Object.prototype,l=u.hasOwnProperty,d=i(function(e,t){if(s(t)||o(t))return void a(t,c(t),e);for(var n in t)l.call(t,n)&&r(e,n,t[n])});e.exports=d},function(e,t){var n=Array.isArray;e.exports=n},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(201),s=r(o),c=n(731),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){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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(299),s=r(o),c=n(798),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){"use strict";var r=function(e,t,n,r,a,i,o,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,i,o,s],l=0;c=new Error(t.replace(/%s/g,function(){return u[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(25),i=r(a),o=n(114),s=r(o),c=n(1),u=n(61),l=n(13);n(830);var d=c.createClass({displayName:"CardSection",propTypes:{title:c.PropTypes.any,vertical:c.PropTypes.any,style:c.PropTypes.object,className:c.PropTypes.string,device:c.PropTypes.oneOf(["desktop","tablet","phone"])},getDefaultProps:function(){return{vertical:null}},render:function(){return c.createElement("div",{className:l("dops-card-section",this.props.className),style:this.props.style},this.props.title?this._renderWithTitle():this.props.children)},_renderWithTitle:function(){var e=this.props.vertical?"vertical":"horizontal",t="dops-card-section-orient-"+e;return c.createElement("div",{className:t},c.createElement("h4",{ref:"label",className:"dops-card-section-label"},this.props.title),c.createElement("div",{ref:"content",className:"dops-card-section-content"},this.props.children))}}),f=c.createClass({displayName:"CardFooter",render:function(){return c.createElement("div",{className:"dops-card-footer"},this.props.children)}}),p=c.createClass({displayName:"Card",propTypes:{meta:c.PropTypes.any,icon:c.PropTypes.string,iconLabel:c.PropTypes.any,iconColor:c.PropTypes.string,style:c.PropTypes.object,className:c.PropTypes.string,href:c.PropTypes.string,title:c.PropTypes.string,tagName:c.PropTypes.string,target:c.PropTypes.string,compact:c.PropTypes.bool,children:c.PropTypes.node},getDefaultProps:function(){return{iconColor:"#787878",className:"",tagName:"div"}},render:function(){var e=l("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),t=["compact","tagName","meta","iconColor"],n=void 0;this.props.href?n=c.createElement(u,{className:"dops-card__link-indicator",icon:this.props.target?"external":"chevron-right"}):t.push("href","target");var r=void 0;return this.props.title&&(r=c.createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&c.createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),c.createElement(this.props.href?"a":this.props.tagName,(0,i.default)((0,s.default)(this.props,t),{className:e}),n,r,this.props.children)},_renderIcon:function(){return c.createElement("span",{className:"dops-card-icon",style:{color:this.props.iconColor}},this.props.icon&&c.createElement(u,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel)}});p.Section=d,p.Footer=f,e.exports=p},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=a},function(e,t,n){var r=n(190)("wks"),a=n(136),i=n(35).Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},function(e,t,n){function r(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}var i=n(39),o=i.Buffer;o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(r(i,t),t.Buffer=a),r(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){var r=n(35),a=n(21),i=n(71),o=n(72),s=function(e,t,n){var c,u,l,d=e&s.F,f=e&s.G,p=e&s.S,h=e&s.P,m=e&s.B,_=e&s.W,M=f?a:a[t]||(a[t]={}),b=M.prototype,g=f?r:p?r[t]:(r[t]||{}).prototype;f&&(n=t);for(c in n)(u=!d&&g&&void 0!==g[c])&&c in M||(l=u?g[c]:n[c],M[c]=f&&"function"!=typeof g[c]?n[c]:m&&u?i(l,r):_&&g[c]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((M.virtual||(M.virtual={}))[c]=l,e&s.R&&b&&!b[c]&&o(b,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=function(t){function n(){var e,t,r,a;(0,h.default)(this,n);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return t=r=(0,b.default)(this,(e=n.__proto__||(0,f.default)(n)).call.apply(e,[this].concat(s))),r.state={options:{}},r.onOptionChange=function(e){var t=e.target.name,n=void 0;n="checkbox"===e.target.type&&void 0!==e.target.checked?e.target.checked:e.target.value,r.updateFormStateOptionValue(t,n)},r.updateFormStateOptionValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;"string"==typeof e&&(e=(0,l.default)({},e,t));var n=(0,c.default)({},r.state.options,e);return r.setState({options:n}),!0},r.updateFormStateModuleOption=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r.trackSettingsToggle(e,t,!r.getOptionValue(t)),r.getOptionValue(e))if(n){var a;r.props.updateOptions((a={},(0,l.default)(a,e,!1),(0,l.default)(a,t,!r.getOptionValue(t)),a))}else r.props.updateOptions((0,l.default)({},t,!r.getOptionValue(t)));else{var i;r.props.updateOptions((i={},(0,l.default)(i,e,!0),(0,l.default)(i,t,!0),i))}},r.toggleModuleNow=function(e){r.props.updateOptions((0,l.default)({},e,!r.getOptionValue(e)))},r.onSubmit=function(e){e.preventDefault(),r.props.updateOptions(r.state.options).then(function(){r.trackFormSubmission(r.state.options),r.setState({options:{}})}).then(function(){r.props.clearUnsavedSettingsFlag()})},r.getOptionValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,E.default)(r.state.options,e,r.props.getSettingCurrentValue(e,t))},r.shouldSaveButtonBeDisabled=function(){return r.isSavingAnyOption()||!r.isDirty()},r.isDirty=function(){return!!(0,o.default)(r.state.options).length},r.isSavingAnyOption=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r.props.isUpdating(e)},r.trackFormSubmission=function(e){T.default.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)},r.trackSettingsToggle=function(e,t,n){T.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:n?"on":"off"})},a=t,(0,b.default)(r,a)}return(0,v.default)(n,t),(0,_.default)(n,[{key:"componentDidUpdate",value:function(){this.isDirty()&&this.props.setUnsavedSettingsFlag()}},{key:"render",value:function(){return A.default.createElement(e,(0,c.default)({getOptionValue:this.getOptionValue,onSubmit:this.onSubmit,onOptionChange:this.onOptionChange,updateFormStateOptionValue:this.updateFormStateOptionValue,toggleModuleNow:this.toggleModuleNow,updateFormStateModuleOption:this.updateFormStateModuleOption,shouldSaveButtonBeDisabled:this.shouldSaveButtonBeDisabled,isSavingAnyOption:this.isSavingAnyOption,isDirty:this.isDirty},this.props))}}]),n}(A.default.Component);return(0,L.connectModuleOptions)(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(80),o=r(i),s=n(10),c=r(s),u=n(49),l=r(u),d=n(2),f=r(d),p=n(3),h=r(p),m=n(6),_=r(m),M=n(4),b=r(M),g=n(5),v=r(g);t.ModuleSettingsForm=a;var y=n(1),A=r(y),w=n(24),E=r(w),k=n(14),T=r(k),L=n(967)},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsGroup=void 0;var a=n(15),i=r(a),o=n(1),s=r(o),c=n(9),u=n(8),l=n(30),d=r(l),f=n(13),p=r(f),h=n(976),m=r(h),_=n(509),M=r(_),b=n(40),g=r(b),v=n(69),y=r(v),A=n(14),w=r(A),E=n(22),k=n(28),T=n(27),L=t.SettingsGroup=function(e){var t=e.module;if(t.module&&!e.userCanManageModules&&!(0,g.default)(["after-the-deadline","post-by-email","publicize"],t.module))return s.default.createElement("span",null);var n=e.disableInDevMode&&e.isUnavailableInDevMode(t.module),r=!e.support&&t&&""!==t.learn_more_button?t.learn_more_button:e.support,a=n;("post-by-email"===t.module&&!e.isLinked||"after-the-deadline"===t.module&&!e.userCanManageModules&&e.userCanEditPosts&&!e.isModuleActivated("after-the-deadline"))&&(a=!0);var i=function(){w.default.tracks.recordJetpackClick({target:"info-icon",feature:t.module})},o=function(){w.default.tracks.recordJetpackClick({target:"learn-more",feature:t.module})};return s.default.createElement("div",{className:"jp-form-settings-group"},s.default.createElement(d.default,{className:(0,p.default)({"jp-form-has-child":e.hasChild,"jp-form-settings-disable":n})},a&&s.default.createElement("div",{className:"jp-form-block-fade"}),r&&s.default.createElement("div",{className:"jp-module-settings__learn-more"},s.default.createElement(m.default,{onClick:i,screenReaderText:(0,u.translate)("Learn more")},s.default.createElement(M.default,{onClick:o,icon:!1,href:r,target:"_blank",rel:"noopener noreferrer"},(0,u.translate)("Learn more")))),e.children))};L.propTypes={support:i.default.string,module:i.default.object,disableInDevMode:i.default.bool.isRequired,isDevMode:i.default.bool.isRequired,isSitePublic:i.default.bool.isRequired,userCanManageModules:i.default.bool.isRequired,isLinked:i.default.bool.isRequired,isUnavailableInDevMode:i.default.func.isRequired},L.defaultProps={support:"",module:{},disableInDevMode:!1,isDevMode:!1,isSitePublic:!0,userCanManageModules:!1,isLinked:!1,isUnavailableInDevMode:y.default},t.default=(0,c.connect)(function(e){return{isDevMode:(0,E.isDevMode)(e),isSitePublic:(0,k.isSitePublic)(e),userCanManageModules:(0,k.userCanManageModules)(e),userCanEditPosts:(0,k.userCanEditPosts)(e),isLinked:(0,E.isCurrentUserLinked)(e),isModuleActivated:function(t){return(0,T.isModuleActivated)(e,t)},isUnavailableInDevMode:function(t){return(0,E.isUnavailableInDevMode)(e,t)}}})(L)},function(e,t,n){"use strict";(function(e){function r(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=i.prototype):(null===e&&(e=new i(t)),e.length=t),e}function i(e,t,n){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return o(this,e,t,n)}function o(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?f(e,t,n,r):"string"==typeof t?l(e,t,n):p(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return s(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}function u(e,t){if(s(t),e=a(e,t<0?0:0|h(t)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function l(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!i.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(t,n);e=a(e,r);var o=e.write(t,n);return o!==r&&(e=e.slice(0,o)),e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),i.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=i.prototype):e=d(e,t),e}function p(e,t){if(i.isBuffer(t)){var n=0|h(t.length);return e=a(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||J(t.length)?a(e,0):d(e,t);if("Buffer"===t.type&&Z(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),i.alloc(+e)}function _(e,t){if(i.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function M(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return z(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,a);if("number"==typeof t)return t&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,a){function i(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}var u;if(a){var l=-1;for(u=n;u<s;u++)if(i(e,u)===i(t,-1===l?0:u-l)){if(-1===l&&(l=u),u-l+1===c)return l*o}else-1!==l&&(u-=u-l),l=-1}else for(n+c>s&&(n=s-c),u=n;u>=0;u--){for(var d=!0,f=0;f<c;f++)if(i(e,u+f)!==i(t,f)){d=!1;break}if(d)return u}return-1}function y(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function A(e,t,n,r){return K(H(t,e.length-n),e,n,r)}function w(e,t,n,r){return K(F(t),e,n,r)}function E(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return K(V(t),e,n,r)}function T(e,t,n,r){return K(X(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var i=e[a],o=null,s=i>239?4:i>223?3:i>191?2:1;if(a+s<=n){var c,u,l,d;switch(s){case 1:i<128&&(o=i);break;case 2:c=e[a+1],128==(192&c)&&(d=(31&i)<<6|63&c)>127&&(o=d);break;case 3:c=e[a+1],u=e[a+2],128==(192&c)&&128==(192&u)&&(d=(15&i)<<12|(63&c)<<6|63&u)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:c=e[a+1],u=e[a+2],l=e[a+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(d=(15&i)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=s}return C(r)}function C(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=$));return n}function z(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=t;i<n;++i)a+=U(e[i]);return a}function D(e,t,n){for(var r=e.slice(t,n),a="",i=0;i<r.length;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,a,o){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a<i;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a<i;++a)e[n+a]=t>>>8*(r?a:3-a)&255}function Y(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,a){return a||Y(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,a){return a||Y(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,n,r,52,8),n+8}function B(e){if(e=W(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,a=null,i=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function X(e,t){for(var n,r,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,a=n%256,i.push(a),i.push(r);return i}function V(e){return G.toByteArray(B(e))}function K(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function J(e){return e!==e}var G=n(998),Q=n(999),Z=n(806);t.Buffer=i,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),i.poolSize=8192,i._augment=function(e){return e.__proto__=i.prototype,e},i.from=function(e,t,n){return o(null,e,t,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(e,t,n){return c(null,e,t,n)},i.allocUnsafe=function(e){return u(null,e)},i.allocUnsafeSlow=function(e){return u(null,e)},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a<o;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Z(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=i.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var o=e[n];if(!i.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,a),a+=o.length}return r},i.byteLength=_,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},i.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},i.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},i.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):M.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e,t,n,r,a){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var o=a-r,s=n-t,c=Math.min(o,s),u=this.slice(r,a),l=e.slice(t,n),d=0;d<c;++d)if(u[d]!==l[d]){o=u[d],s=l[d];break}return o<s?-1:s<o?1:0},i.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},i.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},i.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},i.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r;if(i.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=i.prototype;else{var a=t-e;r=new i(a,void 0);for(var o=0;o<a;++o)r[o]=this[o+e]}return r},i.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r},i.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},i.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},
|
4 |
+
i.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),Q.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),Q.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),Q.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),Q.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){x(this,e,t,n,Math.pow(2,8*n)-1,0)}var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},i.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){x(this,e,t,n,Math.pow(2,8*n)-1,0)}var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a,o=r-n;if(this===e&&n<t&&t<r)for(a=o-1;a>=0;--a)e[a+t]=this[a+n];else if(o<1e3||!i.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},i.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!i.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=i.isBuffer(e)?e:H(new i(e,r).toString()),c=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%c]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,n(51))},function(e,t,n){function r(e,t,n,r){e=i(e)?e:c(e),n=n&&!r?s(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&a(e,t,n)>-1}var a=n(223),i=n(52),o=n(482),s=n(224),c=n(725),u=Math.max;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}),t.SettingsCard=void 0;var a=n(15),i=r(a),o=n(1),s=r(o),c=n(9),u=n(8),l=n(40),d=r(l),f=n(456),p=r(f),h=n(43),m=r(h),_=n(14),M=r(_),b=n(24),g=r(b),v=n(55),y=n(28),A=n(62),w=n(64),E=n(862),k=r(E),T=n(863),L=r(T),S=n(503),C=r(S),z=t.SettingsCard=function(e){var t=function(e){M.default.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})},n=!!e.module&&e.getModule(e.module),r=e.vaultPressData,a=(0,g.default)(r,["data","features","backups"],!1),i=(0,g.default)(r,["data","features","security"],!1);if(!e.userCanManageModules&&!(0,d.default)(["composing","post-by-email","publicize"],e.module))return s.default.createElement("span",null);var o=e.saveDisabled,c=!!e.feature&&e.feature,l=e.siteRawUrl,f=e.header?e.header:"";""===f&&n&&(f=n.name);return s.default.createElement("form",{className:"jp-form-settings-card"},s.default.createElement(k.default,{label:f},!e.hideButton&&s.default.createElement(m.default,{primary:!0,compact:!0,onClick:o?function(){}:e.onSubmit,disabled:o||!e.isDirty()},o?(0,u.translate)("Saving…",{context:"Button caption"}):(0,u.translate)("Save settings",{context:"Button caption"})),e.action&&s.default.createElement(L.default,{proFeature:e.action,siteAdminUrl:e.siteAdminUrl,isCompact:!1})),function(){if(e.fetchingSiteData)return!0;var t=(0,v.getPlanClass)(e.sitePlan.product_slug);switch(c){case v.FEATURE_SECURITY_SCANNING_JETPACK:if("is-free-plan"===t&&!i)return!1;break;case v.FEATURE_WORDADS_JETPACK:if("is-premium-plan"!==t&&"is-business-plan"!==t)return!1;break;case v.FEATURE_GOOGLE_ANALYTICS_JETPACK:case v.FEATURE_SEO_TOOLS_JETPACK:if("is-business-plan"!==t&&"is-premium-plan"!==t)return!1;break;case v.FEATURE_SEARCH_JETPACK:if("is-business-plan"!==t)return!1;break;case v.FEATURE_SPAM_AKISMET_PLUS:if(((0,d.default)(["is-free-plan"],t)||(0,p.default)(t))&&!e.isAkismetKeyValid&&!e.isCheckingAkismetKey)return!1}return!0}()&&e.children,!e.fetchingSiteData&&function(){var n=(0,v.getPlanClass)(e.sitePlan.product_slug),r=(0,u.translate)("Upgrade",{context:"A caption for a button to upgrade an existing paid feature to a higher tier."});switch(c){case v.FEATURE_VIDEO_HOSTING_JETPACK:return"is-premium-plan"===n||"is-business-plan"===n?"":s.default.createElement(C.default,{title:(0,u.translate)("Host fast, high-quality, ad-free video."),callToAction:r,plan:v.PLAN_JETPACK_PREMIUM,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-video-premium&site="+l});case v.FEATURE_WORDADS_JETPACK:return"is-premium-plan"===n||"is-business-plan"===n?"":s.default.createElement(C.default,{title:(0,u.translate)("Generate income with high-quality ads."),callToAction:r,plan:v.PLAN_JETPACK_PREMIUM,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-ads&site="+l});case v.FEATURE_SECURITY_SCANNING_JETPACK:return a||"is-business-plan"===n?"":"is-premium-plan"===n?s.default.createElement(C.default,{title:(0,u.translate)("Real-time site backups and automatic threat resolution."),plan:v.PLAN_JETPACK_BUSINESS,callToAction:r,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-security-pro&site="+l}):s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Protect against data loss, malware, and malicious attacks."),plan:v.PLAN_JETPACK_PREMIUM,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-security-premium&site="+l});case v.FEATURE_GOOGLE_ANALYTICS_JETPACK:return"is-business-plan"===n||"is-premium-plan"===n?"":s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Integrate easily with Google Analytics."),plan:v.PLAN_JETPACK_BUSINESS,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-ga&site="+l});case v.FEATURE_SEO_TOOLS_JETPACK:return"is-business-plan"===n||"is-premium-plan"===n?"":s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Help your content get found and shared with SEO tools."),plan:v.PLAN_JETPACK_BUSINESS,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-seo&site="+l});case v.FEATURE_SEARCH_JETPACK:return"is-business-plan"===n?"":s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Faster, more relevant and more powerful sitewide search."),plan:v.PLAN_JETPACK_BUSINESS,feature:c,onClick:function(){return t(c)},href:"https://jetpack.com/redirect/?source=settings-search&site="+l});case v.FEATURE_SPAM_AKISMET_PLUS:return e.isCheckingAkismetKey||e.isAkismetKeyValid||(0,d.default)(["is-personal-plan","is-premium-plan","is-business-plan"],n)?"":s.default.createElement(C.default,{callToAction:r,title:(0,u.translate)("Protect your site from spam."),plan:v.PLAN_JETPACK_PERSONAL,feature:c,href:"https://jetpack.com/redirect/?source=settings-spam&site="+l});default:return""}}())};z.propTypes={action:i.default.string,saveDisabled:i.default.bool},z.defaultProps={action:"",saveDisabled:!1},t.default=(0,c.connect)(function(e){return{sitePlan:(0,w.getSitePlan)(e),fetchingSiteData:(0,w.isFetchingSiteData)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e),isAkismetKeyValid:(0,A.isAkismetKeyValid)(e),isCheckingAkismetKey:(0,A.isCheckingAkismetKey)(e),vaultPressData:(0,A.getVaultPressData)(e)}})(z)},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}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(455),i=r(a),o=n(1),s=r(o),c=n(13),u=r(c),l=n(69),d=r(l);n(793),t.default=s.default.createClass({displayName:"Button",propTypes:{disabled:s.default.PropTypes.bool,compact:s.default.PropTypes.bool,primary:s.default.PropTypes.bool,scary:s.default.PropTypes.bool,type:s.default.PropTypes.string,href:s.default.PropTypes.string,onClick:s.default.PropTypes.func,borderless:s.default.PropTypes.bool,className:s.default.PropTypes.string},getDefaultProps:function(){return{disabled:!1,type:"button",onClick:d.default,borderless:!1}},render:function(){var e=this.props.href?"a":"button",t=this.props,n=t.primary,r=t.compact,a=t.scary,o=t.borderless,c=t.className,l=(0,i.default)(t,["primary","compact","scary","borderless","className"]),d=(0,u.default)({"dops-button":!0,"is-compact":r,"is-primary":n,"is-scary":a,"is-borderless":o});return l.className=(0,u.default)(c,d),s.default.createElement(e,l,this.props.children)}}),e.exports=t.default},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t,n){var r=n(265),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r=n(53),a=n(288),i=n(188),o=Object.defineProperty;t.f=n(59)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(308),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(){S.ReactReconcileTransaction&&A||l("123")}function a(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,a,i,o){return r(),A.batchedUpdates(e,t,n,a,i,o)}function o(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==b.length&&l("124",t,b.length),b.sort(o),g++;for(var n=0;n<t;n++){var r=b[n],a=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(h.logTopLevelRenders){var s=r;r._currentElement.type.isReactTopLevelWrapper&&(s=r._renderedComponent),i="React update: "+s.getName(),console.time(i)}if(m.performUpdateIfNecessary(r,e.reconcileTransaction,g),i&&console.timeEnd(i),a)for(var c=0;c<a.length;c++)e.callbackQueue.enqueue(a[c],r.getPublicInstance())}}function c(e){if(r(),!A.isBatchingUpdates)return void A.batchedUpdates(c,e);b.push(e),null==e._updateBatchNumber&&(e._updateBatchNumber=g+1)}function u(e,t){M(A.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."),v.enqueue(e,t),y=!0}var l=n(11),d=n(17),f=n(235),p=n(73),h=n(469),m=n(96),_=n(126),M=n(7),b=[],g=0,v=f.getPooled(),y=!1,A=null,w={initialize:function(){this.dirtyComponentsLength=b.length},close:function(){this.dirtyComponentsLength!==b.length?(b.splice(0,this.dirtyComponentsLength),T()):b.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},k=[w,E];d(a.prototype,_,{getTransactionWrappers:function(){return k},destructor:function(){this.dirtyComponentsLength=null,f.release(this.callbackQueue),this.callbackQueue=null,S.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return _.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(a);var T=function(){for(;b.length||y;){if(b.length){var e=a.getPooled();e.perform(s,null,e),a.release(e)}if(y){y=!1;var t=v;v=f.getPooled(),t.notifyAll(),f.release(t)}}},L={injectReconcileTransaction:function(e){e||l("126"),S.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e||l("127"),"function"!=typeof e.batchedUpdates&&l("128"),"boolean"!=typeof e.isBatchingUpdates&&l("129"),A=e}},S={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:c,flushBatchedUpdates:T,injection:L,asap:u};e.exports=S},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){function r(e){return null!=e&&i(e.length)&&!a(e)}var a=n(155),i=n(184);e.exports=r},function(e,t,n){var r=n(48);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleToggle=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(15),m=r(h),_=n(1),M=r(_),b=n(124),g=r(b),v=n(14),y=r(v),A=t.ModuleToggle=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.toggleModule=function(){return r.trackModuleToggle(r.props.slug,r.props.activated),r.props.toggleModule(r.props.slug,r.props.activated)},r.trackModuleToggle=function(e,t){"stats"!==e&&y.default.tracks.recordEvent("jetpack_wpa_module_toggle",{module:e,toggled:t?"off":"on"})},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(g.default,{checked:this.props.activated,toggling:this.props.toggling,className:this.props.className,disabled:this.props.disabled,id:this.props.id,onChange:this.toggleModule},this.props.children)}}]),t}(M.default.Component);A.propTypes={toggleModule:m.default.func,activated:m.default.bool,disabled:m.default.bool,className:m.default.string,compact:m.default.bool,id:m.default.string},A.defaultProps={activated:!1,disabled:!1}},function(e,t,n){"use strict";function r(e){return(0,u.default)(w,e)}function a(e){return(0,u.default)(y,e)}function i(e){return(0,u.default)(A,e)}function o(e){switch(e){case h:case p:return"is-free-plan";case f:case M:case v:return"is-personal-plan";case d:case m:case b:return"is-premium-plan";case l:case _:case g:return"is-business-plan";default:return""}}function s(e){switch(e){case m:return b;case _:return g;case M:return v;default:return""}}Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURE_SEARCH_JETPACK=t.FEATURE_GOOGLE_ANALYTICS_JETPACK=t.FEATURE_WORDADS_JETPACK=t.FEATURE_SEO_TOOLS_JETPACK=t.FEATURE_PRIORITY_SUPPORT_JETPACK=t.FEATURE_SECURITY_ESSENTIALS_JETPACK=t.FEATURE_VIDEO_HOSTING_JETPACK=t.FEATURE_REVENUE_GENERATION_JETPACK=t.FEATURE_SECURITY_SCANNING_JETPACK=t.FEATURE_REALTIME_BACKUPS_JETPACK=t.FEATURE_SITE_BACKUPS_JETPACK=t.FEATURE_BASIC_SECURITY_JETPACK=t.FEATURE_BASIC_SUPPORT_JETPACK=t.FEATURE_CORE_JETPACK=t.FEATURE_POLLS_PRO=t.FEATURE_ONE_CLICK_THREAT_RESOLUTION=t.FEATURE_MALWARE_SCANNING_DAILY_AND_ON_DEMAND=t.FEATURE_MALWARE_SCANNING_DAILY=t.FEATURE_EASY_SITE_MIGRATION=t.FEATURE_AUTOMATED_RESTORES=t.FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED=t.FEATURE_BACKUP_ARCHIVE_UNLIMITED=t.FEATURE_BACKUP_ARCHIVE_15=t.FEATURE_BACKUP_ARCHIVE_30=t.FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME=t.FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY=t.FEATURE_SPAM_AKISMET_PLUS=t.FEATURE_MANAGE=t.FEATURE_TRAFFIC_TOOLS=t.FEATURE_SITE_STATS=t.FEATURE_STANDARD_SECURITY_TOOLS=t.FEATURE_UPLOAD_PLUGINS=t.FEATURE_BUSINESS_ONBOARDING=t.FEATURE_ADVANCED_SEO=t.FEATURE_NO_BRANDING=t.FEATURE_WORDADS_INSTANT=t.FEATURE_AUDIO_UPLOADS=t.FEATURE_VIDEO_UPLOADS_JETPACK_PRO=t.FEATURE_VIDEO_UPLOADS_JETPACK_PREMIUM=t.FEATURE_VIDEO_UPLOADS=t.FEATURE_NO_ADS=t.FEATURE_LIVE_CHAT_SUPPORT=t.FEATURE_GOOGLE_ANALYTICS=t.FEATURE_ADVANCED_DESIGN=t.FEATURE_BASIC_DESIGN=t.FEATURE_PREMIUM_SUPPORT=t.FEATURE_EMAIL_LIVE_CHAT_SUPPORT=t.FEATURE_COMMUNITY_SUPPORT=t.FEATURE_UNLIMITED_STORAGE=t.FEATURE_13GB_STORAGE=t.FEATURE_6GB_STORAGE=t.FEATURE_3GB_STORAGE=t.FEATURE_UNLIMITED_PREMIUM_THEMES=t.FEATURE_ALL_PREMIUM_THEMES=t.FEATURE_SELECT_PREMIUM_THEMES=t.FEATURE_FREE_THEMES=t.FEATURE_JETPACK_ESSENTIAL=t.FEATURE_CUSTOM_DOMAIN=t.FEATURE_WP_SUBDOMAIN=t.PLAN_ANNUAL_PERIOD=t.PLAN_MONTHLY_PERIOD=t.JETPACK_MONTHLY_PLANS=t.NEW_PLANS=t.POPULAR_PLANS=t.PLAN_CHARGEBACK=t.PLAN_WPCOM_ENTERPRISE=t.PLAN_HOST_BUNDLE=t.PLAN_JETPACK_PERSONAL_MONTHLY=t.PLAN_JETPACK_BUSINESS_MONTHLY=t.PLAN_JETPACK_PREMIUM_MONTHLY=t.PLAN_JETPACK_PERSONAL=t.PLAN_JETPACK_BUSINESS=t.PLAN_JETPACK_PREMIUM=t.PLAN_JETPACK_FREE=t.PLAN_FREE=t.PLAN_PERSONAL=t.PLAN_PREMIUM=t.PLAN_BUSINESS=void 0,t.isMonthly=r,t.isPopular=a,t.isNew=i,t.getPlanClass=o,t.getMonthlyPlanByYearly=s;var c=n(40),u=function(e){return e&&e.__esModule?e:{default:e}}(c),l=t.PLAN_BUSINESS="business-bundle",d=t.PLAN_PREMIUM="value_bundle",f=t.PLAN_PERSONAL="personal-bundle",p=t.PLAN_FREE="free_plan",h=t.PLAN_JETPACK_FREE="jetpack_free",m=t.PLAN_JETPACK_PREMIUM="jetpack_premium",_=t.PLAN_JETPACK_BUSINESS="jetpack_business",M=t.PLAN_JETPACK_PERSONAL="jetpack_personal",b=t.PLAN_JETPACK_PREMIUM_MONTHLY="jetpack_premium_monthly",g=t.PLAN_JETPACK_BUSINESS_MONTHLY="jetpack_business_monthly",v=t.PLAN_JETPACK_PERSONAL_MONTHLY="jetpack_personal_monthly",y=(t.PLAN_HOST_BUNDLE="host-bundle",t.PLAN_WPCOM_ENTERPRISE="wpcom-enterprise",t.PLAN_CHARGEBACK="chargeback",t.POPULAR_PLANS=[d]),A=t.NEW_PLANS=[M,v],w=t.JETPACK_MONTHLY_PLANS=[b,g,v];t.PLAN_MONTHLY_PERIOD=31,t.PLAN_ANNUAL_PERIOD=365,t.FEATURE_WP_SUBDOMAIN="wordpress-subdomain",t.FEATURE_CUSTOM_DOMAIN="custom-domain",t.FEATURE_JETPACK_ESSENTIAL="jetpack-essential",t.FEATURE_FREE_THEMES="free-themes",t.FEATURE_SELECT_PREMIUM_THEMES="select-premium-themes",t.FEATURE_ALL_PREMIUM_THEMES="all-premium-themes",t.FEATURE_UNLIMITED_PREMIUM_THEMES="premium-themes",t.FEATURE_3GB_STORAGE="3gb-storage",t.FEATURE_6GB_STORAGE="6gb-storage",t.FEATURE_13GB_STORAGE="13gb-storage",t.FEATURE_UNLIMITED_STORAGE="unlimited-storage",t.FEATURE_COMMUNITY_SUPPORT="community-support",t.FEATURE_EMAIL_LIVE_CHAT_SUPPORT="email-live-chat-support",t.FEATURE_PREMIUM_SUPPORT="priority-support",t.FEATURE_BASIC_DESIGN="basic-design",t.FEATURE_ADVANCED_DESIGN="advanced-design",t.FEATURE_GOOGLE_ANALYTICS="google-analytics",t.FEATURE_LIVE_CHAT_SUPPORT="live-chat-support",t.FEATURE_NO_ADS="no-adverts",t.FEATURE_VIDEO_UPLOADS="video-upload",t.FEATURE_VIDEO_UPLOADS_JETPACK_PREMIUM="video-upload-jetpack-premium",t.FEATURE_VIDEO_UPLOADS_JETPACK_PRO="video-upload-jetpack-pro",t.FEATURE_AUDIO_UPLOADS="audio-upload",t.FEATURE_WORDADS_INSTANT="wordads-instant",t.FEATURE_NO_BRANDING="no-wp-branding",t.FEATURE_ADVANCED_SEO="advanced-seo",t.FEATURE_BUSINESS_ONBOARDING="business-onboarding",t.FEATURE_UPLOAD_PLUGINS="upload-plugins",t.FEATURE_STANDARD_SECURITY_TOOLS="standard-security-tools",t.FEATURE_SITE_STATS="site-stats",t.FEATURE_TRAFFIC_TOOLS="traffic-tools",t.FEATURE_MANAGE="jetpack-manage",t.FEATURE_SPAM_AKISMET_PLUS="spam-akismet-plus",t.FEATURE_OFFSITE_BACKUP_VAULTPRESS_DAILY="offsite-backup-vaultpress-daily",t.FEATURE_OFFSITE_BACKUP_VAULTPRESS_REALTIME="offsite-backup-vaultpress-realtime",t.FEATURE_BACKUP_ARCHIVE_30="backup-archive-30",t.FEATURE_BACKUP_ARCHIVE_15="backup-archive-15",t.FEATURE_BACKUP_ARCHIVE_UNLIMITED="backup-archive-unlimited",t.FEATURE_BACKUP_STORAGE_SPACE_UNLIMITED="backup-storage-space-unlimited",t.FEATURE_AUTOMATED_RESTORES="automated-restores",t.FEATURE_EASY_SITE_MIGRATION="easy-site-migration",t.FEATURE_MALWARE_SCANNING_DAILY="malware-scanning-daily",t.FEATURE_MALWARE_SCANNING_DAILY_AND_ON_DEMAND="malware-scanning-daily-and-on-demand",t.FEATURE_ONE_CLICK_THREAT_RESOLUTION="one-click-threat-resolution",t.FEATURE_POLLS_PRO="polls-pro",t.FEATURE_CORE_JETPACK="core-jetpack",t.FEATURE_BASIC_SUPPORT_JETPACK="basic-support-jetpack",t.FEATURE_BASIC_SECURITY_JETPACK="basic-security-jetpack",t.FEATURE_SITE_BACKUPS_JETPACK="site-backups-jetpack",t.FEATURE_REALTIME_BACKUPS_JETPACK="realtime-backups-jetpack",t.FEATURE_SECURITY_SCANNING_JETPACK="security-scanning-jetpack",t.FEATURE_REVENUE_GENERATION_JETPACK="revenue-generation-jetpack",t.FEATURE_VIDEO_HOSTING_JETPACK="video-hosting-jetpack",t.FEATURE_SECURITY_ESSENTIALS_JETPACK="security-essentials-jetpack",t.FEATURE_PRIORITY_SUPPORT_JETPACK="priority-support-jetpack",t.FEATURE_SEO_TOOLS_JETPACK="seo-tools-jetpack",t.FEATURE_WORDADS_JETPACK="wordads-jetpack",t.FEATURE_GOOGLE_ANALYTICS_JETPACK="google-analytics-jetpack",t.FEATURE_SEARCH_JETPACK="search-jetpack"},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}function o(e,t,n){for(var r=0,a=Math.min(e.length,n),i=t;i<a;i++){var o=e.charCodeAt(i)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function s(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o<i;o++){var s=e.charCodeAt(o)-48;a*=r,a+=s>=49?s-49+10:s>=17?s-17+10:s}return a}function c(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,a=n%26;t[n]=(e.words[r]&1<<a)>>>a}return t}function u(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u<r;u++){for(var l=c>>>26,d=67108863&c,f=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=f;p++){var h=u-p|0;a=0|e.words[h],i=0|t.words[p],o=a*i+d,l+=o/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function l(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i<n.length-1;i++){var o=a;a=0;for(var s=67108863&r,c=Math.min(i,t.length-1),u=Math.max(0,i-e.length+1);u<=c;u++){var l=i-u,d=0|e.words[l],f=0|t.words[u],p=d*f,h=67108863&p;o=o+(p/67108864|0)|0,h=h+s|0,s=67108863&h,o=o+(h>>>26)|0,a+=o>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}function d(e,t,n){return(new f).mulp(e,t,n)}function f(e,t){this.x=e,this.y=t}function p(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function h(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function g(e){b.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var v;try{v=n(1037).Buffer}catch(e){}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var a=0;"-"===e[0]&&a++,16===t?this._parseHex(e,a):this._parseBase(e,t,a),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var i,o,s=0;if("be"===n)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a,i=0;for(n=e.length-6,r=0;n>=t;n-=6)a=o(e,n,n+6),this.words[r]|=a<<i&67108863,this.words[r+1]|=a>>>26-i&4194303,(i+=24)>=26&&(i-=26,r++);n+6!==t&&(a=o(e,t,n+6),this.words[r]|=a<<i&67108863,this.words[r+1]|=a>>>26-i&4194303),this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,c=Math.min(i,i-o)+n,u=0,l=n;l<c;l+=r)u=s(e,l,l+r,t),this.imuln(a),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var d=1;for(u=s(e,l,e.length,t),l=0;l<o;l++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var y=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){e=e||10,t=0|t||1;var n;if(16===e||"hex"===e){n="";for(var a=0,i=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<a|i)).toString(16);i=s>>>24-a&16777215,n=0!==i||o!==this.length-1?y[6-c.length]+c+n:c+n,a+=2,a>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=A[e],l=w[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var f=d.modn(l).toString(e);d=d.idivn(l),n=d.isZero()?f+n:y[u-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==v),this.toArrayLike(v,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),l=this.clone();if(c){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[s]=o;for(;s<i;s++)u[s]=0}else{for(s=0;s<i-a;s++)u[s]=0;for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[i-s-1]=o}return u},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0
|
5 |
+
;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a<t;a++)this.words[a]=67108863&~this.words[a];return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<a:this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var t;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var n,r;this.length>e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i<r.length;i++)t=(0|n.words[i])+(0|r.words[i])+a,this.words[i]=67108863&t,a=t>>>26;for(;0!==a&&i<n.length;i++)t=(0|n.words[i])+a,this.words[i]=67108863&t,a=t>>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;i<n.length;i++)this.words[i]=n.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,a;n>0?(r=this,a=e):(r=e,a=this);for(var i=0,o=0;o<a.length;o++)t=(0|r.words[o])-(0|a.words[o])+i,i=t>>26,this.words[o]=67108863&t;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,i=t>>26,this.words[o]=67108863&t;if(0===i&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var E=function(e,t,n){var r,a,i,o=e.words,s=t.words,c=n.words,u=0,l=0|o[0],d=8191&l,f=l>>>13,p=0|o[1],h=8191&p,m=p>>>13,_=0|o[2],M=8191&_,b=_>>>13,g=0|o[3],v=8191&g,y=g>>>13,A=0|o[4],w=8191&A,E=A>>>13,k=0|o[5],T=8191&k,L=k>>>13,S=0|o[6],C=8191&S,z=S>>>13,O=0|o[7],N=8191&O,D=O>>>13,P=0|o[8],x=8191&P,j=P>>>13,R=0|o[9],Y=8191&R,I=R>>>13,q=0|s[0],B=8191&q,W=q>>>13,U=0|s[1],H=8191&U,F=U>>>13,X=0|s[2],V=8191&X,K=X>>>13,J=0|s[3],G=8191&J,Q=J>>>13,Z=0|s[4],$=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19,r=Math.imul(d,B),a=Math.imul(d,W),a=a+Math.imul(f,B)|0,i=Math.imul(f,W);var _e=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(h,B),a=Math.imul(h,W),a=a+Math.imul(m,B)|0,i=Math.imul(m,W),r=r+Math.imul(d,H)|0,a=a+Math.imul(d,F)|0,a=a+Math.imul(f,H)|0,i=i+Math.imul(f,F)|0;var Me=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(M,B),a=Math.imul(M,W),a=a+Math.imul(b,B)|0,i=Math.imul(b,W),r=r+Math.imul(h,H)|0,a=a+Math.imul(h,F)|0,a=a+Math.imul(m,H)|0,i=i+Math.imul(m,F)|0,r=r+Math.imul(d,V)|0,a=a+Math.imul(d,K)|0,a=a+Math.imul(f,V)|0,i=i+Math.imul(f,K)|0;var be=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(v,B),a=Math.imul(v,W),a=a+Math.imul(y,B)|0,i=Math.imul(y,W),r=r+Math.imul(M,H)|0,a=a+Math.imul(M,F)|0,a=a+Math.imul(b,H)|0,i=i+Math.imul(b,F)|0,r=r+Math.imul(h,V)|0,a=a+Math.imul(h,K)|0,a=a+Math.imul(m,V)|0,i=i+Math.imul(m,K)|0,r=r+Math.imul(d,G)|0,a=a+Math.imul(d,Q)|0,a=a+Math.imul(f,G)|0,i=i+Math.imul(f,Q)|0;var ge=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,B),a=Math.imul(w,W),a=a+Math.imul(E,B)|0,i=Math.imul(E,W),r=r+Math.imul(v,H)|0,a=a+Math.imul(v,F)|0,a=a+Math.imul(y,H)|0,i=i+Math.imul(y,F)|0,r=r+Math.imul(M,V)|0,a=a+Math.imul(M,K)|0,a=a+Math.imul(b,V)|0,i=i+Math.imul(b,K)|0,r=r+Math.imul(h,G)|0,a=a+Math.imul(h,Q)|0,a=a+Math.imul(m,G)|0,i=i+Math.imul(m,Q)|0,r=r+Math.imul(d,$)|0,a=a+Math.imul(d,ee)|0,a=a+Math.imul(f,$)|0,i=i+Math.imul(f,ee)|0;var ve=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(T,B),a=Math.imul(T,W),a=a+Math.imul(L,B)|0,i=Math.imul(L,W),r=r+Math.imul(w,H)|0,a=a+Math.imul(w,F)|0,a=a+Math.imul(E,H)|0,i=i+Math.imul(E,F)|0,r=r+Math.imul(v,V)|0,a=a+Math.imul(v,K)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(y,K)|0,r=r+Math.imul(M,G)|0,a=a+Math.imul(M,Q)|0,a=a+Math.imul(b,G)|0,i=i+Math.imul(b,Q)|0,r=r+Math.imul(h,$)|0,a=a+Math.imul(h,ee)|0,a=a+Math.imul(m,$)|0,i=i+Math.imul(m,ee)|0,r=r+Math.imul(d,ne)|0,a=a+Math.imul(d,re)|0,a=a+Math.imul(f,ne)|0,i=i+Math.imul(f,re)|0;var ye=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,B),a=Math.imul(C,W),a=a+Math.imul(z,B)|0,i=Math.imul(z,W),r=r+Math.imul(T,H)|0,a=a+Math.imul(T,F)|0,a=a+Math.imul(L,H)|0,i=i+Math.imul(L,F)|0,r=r+Math.imul(w,V)|0,a=a+Math.imul(w,K)|0,a=a+Math.imul(E,V)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(v,G)|0,a=a+Math.imul(v,Q)|0,a=a+Math.imul(y,G)|0,i=i+Math.imul(y,Q)|0,r=r+Math.imul(M,$)|0,a=a+Math.imul(M,ee)|0,a=a+Math.imul(b,$)|0,i=i+Math.imul(b,ee)|0,r=r+Math.imul(h,ne)|0,a=a+Math.imul(h,re)|0,a=a+Math.imul(m,ne)|0,i=i+Math.imul(m,re)|0,r=r+Math.imul(d,ie)|0,a=a+Math.imul(d,oe)|0,a=a+Math.imul(f,ie)|0,i=i+Math.imul(f,oe)|0;var Ae=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,B),a=Math.imul(N,W),a=a+Math.imul(D,B)|0,i=Math.imul(D,W),r=r+Math.imul(C,H)|0,a=a+Math.imul(C,F)|0,a=a+Math.imul(z,H)|0,i=i+Math.imul(z,F)|0,r=r+Math.imul(T,V)|0,a=a+Math.imul(T,K)|0,a=a+Math.imul(L,V)|0,i=i+Math.imul(L,K)|0,r=r+Math.imul(w,G)|0,a=a+Math.imul(w,Q)|0,a=a+Math.imul(E,G)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(v,$)|0,a=a+Math.imul(v,ee)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(y,ee)|0,r=r+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,a=a+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,r=r+Math.imul(h,ie)|0,a=a+Math.imul(h,oe)|0,a=a+Math.imul(m,ie)|0,i=i+Math.imul(m,oe)|0,r=r+Math.imul(d,ce)|0,a=a+Math.imul(d,ue)|0,a=a+Math.imul(f,ce)|0,i=i+Math.imul(f,ue)|0;var we=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(x,B),a=Math.imul(x,W),a=a+Math.imul(j,B)|0,i=Math.imul(j,W),r=r+Math.imul(N,H)|0,a=a+Math.imul(N,F)|0,a=a+Math.imul(D,H)|0,i=i+Math.imul(D,F)|0,r=r+Math.imul(C,V)|0,a=a+Math.imul(C,K)|0,a=a+Math.imul(z,V)|0,i=i+Math.imul(z,K)|0,r=r+Math.imul(T,G)|0,a=a+Math.imul(T,Q)|0,a=a+Math.imul(L,G)|0,i=i+Math.imul(L,Q)|0,r=r+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,a=a+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,a=a+Math.imul(y,ne)|0,i=i+Math.imul(y,re)|0,r=r+Math.imul(M,ie)|0,a=a+Math.imul(M,oe)|0,a=a+Math.imul(b,ie)|0,i=i+Math.imul(b,oe)|0,r=r+Math.imul(h,ce)|0,a=a+Math.imul(h,ue)|0,a=a+Math.imul(m,ce)|0,i=i+Math.imul(m,ue)|0,r=r+Math.imul(d,de)|0,a=a+Math.imul(d,fe)|0,a=a+Math.imul(f,de)|0,i=i+Math.imul(f,fe)|0;var Ee=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(Y,B),a=Math.imul(Y,W),a=a+Math.imul(I,B)|0,i=Math.imul(I,W),r=r+Math.imul(x,H)|0,a=a+Math.imul(x,F)|0,a=a+Math.imul(j,H)|0,i=i+Math.imul(j,F)|0,r=r+Math.imul(N,V)|0,a=a+Math.imul(N,K)|0,a=a+Math.imul(D,V)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(C,G)|0,a=a+Math.imul(C,Q)|0,a=a+Math.imul(z,G)|0,i=i+Math.imul(z,Q)|0,r=r+Math.imul(T,$)|0,a=a+Math.imul(T,ee)|0,a=a+Math.imul(L,$)|0,i=i+Math.imul(L,ee)|0,r=r+Math.imul(w,ne)|0,a=a+Math.imul(w,re)|0,a=a+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(v,ie)|0,a=a+Math.imul(v,oe)|0,a=a+Math.imul(y,ie)|0,i=i+Math.imul(y,oe)|0,r=r+Math.imul(M,ce)|0,a=a+Math.imul(M,ue)|0,a=a+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0,r=r+Math.imul(h,de)|0,a=a+Math.imul(h,fe)|0,a=a+Math.imul(m,de)|0,i=i+Math.imul(m,fe)|0,r=r+Math.imul(d,he)|0,a=a+Math.imul(d,me)|0,a=a+Math.imul(f,he)|0,i=i+Math.imul(f,me)|0;var ke=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(Y,H),a=Math.imul(Y,F),a=a+Math.imul(I,H)|0,i=Math.imul(I,F),r=r+Math.imul(x,V)|0,a=a+Math.imul(x,K)|0,a=a+Math.imul(j,V)|0,i=i+Math.imul(j,K)|0,r=r+Math.imul(N,G)|0,a=a+Math.imul(N,Q)|0,a=a+Math.imul(D,G)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(C,$)|0,a=a+Math.imul(C,ee)|0,a=a+Math.imul(z,$)|0,i=i+Math.imul(z,ee)|0,r=r+Math.imul(T,ne)|0,a=a+Math.imul(T,re)|0,a=a+Math.imul(L,ne)|0,i=i+Math.imul(L,re)|0,r=r+Math.imul(w,ie)|0,a=a+Math.imul(w,oe)|0,a=a+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(v,ce)|0,a=a+Math.imul(v,ue)|0,a=a+Math.imul(y,ce)|0,i=i+Math.imul(y,ue)|0,r=r+Math.imul(M,de)|0,a=a+Math.imul(M,fe)|0,a=a+Math.imul(b,de)|0,i=i+Math.imul(b,fe)|0,r=r+Math.imul(h,he)|0,a=a+Math.imul(h,me)|0,a=a+Math.imul(m,he)|0,i=i+Math.imul(m,me)|0;var Te=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(Y,V),a=Math.imul(Y,K),a=a+Math.imul(I,V)|0,i=Math.imul(I,K),r=r+Math.imul(x,G)|0,a=a+Math.imul(x,Q)|0,a=a+Math.imul(j,G)|0,i=i+Math.imul(j,Q)|0,r=r+Math.imul(N,$)|0,a=a+Math.imul(N,ee)|0,a=a+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,a=a+Math.imul(z,ne)|0,i=i+Math.imul(z,re)|0,r=r+Math.imul(T,ie)|0,a=a+Math.imul(T,oe)|0,a=a+Math.imul(L,ie)|0,i=i+Math.imul(L,oe)|0,r=r+Math.imul(w,ce)|0,a=a+Math.imul(w,ue)|0,a=a+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(v,de)|0,a=a+Math.imul(v,fe)|0,a=a+Math.imul(y,de)|0,i=i+Math.imul(y,fe)|0,r=r+Math.imul(M,he)|0,a=a+Math.imul(M,me)|0,a=a+Math.imul(b,he)|0,i=i+Math.imul(b,me)|0;var Le=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(Y,G),a=Math.imul(Y,Q),a=a+Math.imul(I,G)|0,i=Math.imul(I,Q),r=r+Math.imul(x,$)|0,a=a+Math.imul(x,ee)|0,a=a+Math.imul(j,$)|0,i=i+Math.imul(j,ee)|0,r=r+Math.imul(N,ne)|0,a=a+Math.imul(N,re)|0,a=a+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(C,ie)|0,a=a+Math.imul(C,oe)|0,a=a+Math.imul(z,ie)|0,i=i+Math.imul(z,oe)|0,r=r+Math.imul(T,ce)|0,a=a+Math.imul(T,ue)|0,a=a+Math.imul(L,ce)|0,i=i+Math.imul(L,ue)|0,r=r+Math.imul(w,de)|0,a=a+Math.imul(w,fe)|0,a=a+Math.imul(E,de)|0,i=i+Math.imul(E,fe)|0,r=r+Math.imul(v,he)|0,a=a+Math.imul(v,me)|0,a=a+Math.imul(y,he)|0,i=i+Math.imul(y,me)|0;var Se=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(Y,$),a=Math.imul(Y,ee),a=a+Math.imul(I,$)|0,i=Math.imul(I,ee),r=r+Math.imul(x,ne)|0,a=a+Math.imul(x,re)|0,a=a+Math.imul(j,ne)|0,i=i+Math.imul(j,re)|0,r=r+Math.imul(N,ie)|0,a=a+Math.imul(N,oe)|0,a=a+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(C,ce)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(z,ce)|0,i=i+Math.imul(z,ue)|0,r=r+Math.imul(T,de)|0,a=a+Math.imul(T,fe)|0,a=a+Math.imul(L,de)|0,i=i+Math.imul(L,fe)|0,r=r+Math.imul(w,he)|0,a=a+Math.imul(w,me)|0,a=a+Math.imul(E,he)|0,i=i+Math.imul(E,me)|0;var Ce=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(Y,ne),a=Math.imul(Y,re),a=a+Math.imul(I,ne)|0,i=Math.imul(I,re),r=r+Math.imul(x,ie)|0,a=a+Math.imul(x,oe)|0,a=a+Math.imul(j,ie)|0,i=i+Math.imul(j,oe)|0,r=r+Math.imul(N,ce)|0,a=a+Math.imul(N,ue)|0,a=a+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(C,de)|0,a=a+Math.imul(C,fe)|0,a=a+Math.imul(z,de)|0,i=i+Math.imul(z,fe)|0,r=r+Math.imul(T,he)|0,a=a+Math.imul(T,me)|0,a=a+Math.imul(L,he)|0,i=i+Math.imul(L,me)|0;var ze=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ze>>>26)|0,ze&=67108863,r=Math.imul(Y,ie),a=Math.imul(Y,oe),a=a+Math.imul(I,ie)|0,i=Math.imul(I,oe),r=r+Math.imul(x,ce)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(j,ce)|0,i=i+Math.imul(j,ue)|0,r=r+Math.imul(N,de)|0,a=a+Math.imul(N,fe)|0,a=a+Math.imul(D,de)|0,i=i+Math.imul(D,fe)|0,r=r+Math.imul(C,he)|0,a=a+Math.imul(C,me)|0,a=a+Math.imul(z,he)|0,i=i+Math.imul(z,me)|0;var Oe=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(Y,ce),a=Math.imul(Y,ue),a=a+Math.imul(I,ce)|0,i=Math.imul(I,ue),r=r+Math.imul(x,de)|0,a=a+Math.imul(x,fe)|0,a=a+Math.imul(j,de)|0,i=i+Math.imul(j,fe)|0,r=r+Math.imul(N,he)|0,a=a+Math.imul(N,me)|0,a=a+Math.imul(D,he)|0,i=i+Math.imul(D,me)|0;var Ne=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(Y,de),a=Math.imul(Y,fe),a=a+Math.imul(I,de)|0,i=Math.imul(I,fe),r=r+Math.imul(x,he)|0,a=a+Math.imul(x,me)|0,a=a+Math.imul(j,he)|0,i=i+Math.imul(j,me)|0;var De=(u+r|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(Y,he),a=Math.imul(Y,me),a=a+Math.imul(I,he)|0,i=Math.imul(I,me);var Pe=(u+r|0)+((8191&a)<<13)|0;return u=(i+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,c[0]=_e,c[1]=Me,c[2]=be,c[3]=ge,c[4]=ve,c[5]=ye,c[6]=Ae,c[7]=we,c[8]=Ee,c[9]=ke,c[10]=Te,c[11]=Le,c[12]=Se,c[13]=Ce,c[14]=ze,c[15]=Oe,c[16]=Ne,c[17]=De,c[18]=Pe,0!==u&&(c[19]=u,n.length++),n};Math.imul||(E=u),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?E(this,e,t):n<63?u(this,e,t):n<1024?l(this,e,t):d(this,e,t)},f.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},f.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,a=0;a<t;a++)r|=(1&e)<<t-a-1,e>>=1;return r},f.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o<i;o++)r[o]=t[e[o]],a[o]=n[e[o]]},f.prototype.transform=function(e,t,n,r,a,i){this.permute(i,e,t,n,r,a);for(var o=1;o<a;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<a;l+=s)for(var d=c,f=u,p=0;p<o;p++){var h=n[l+p],m=r[l+p],_=n[l+p+o],M=r[l+p+o],b=d*_-f*M;M=d*M+f*_,_=b,n[l+p]=h+_,r[l+p]=m+M,n[l+p+o]=h-_,r[l+p+o]=m-M,p!==s&&(b=c*d-u*f,f=c*f+u*d,d=b)}},f.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,a=0;for(n=n/2|0;n;n>>>=1)a++;return 1<<a+1+r},f.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var a=e[r];e[r]=e[n-r-1],e[n-r-1]=a,a=t[r],t[r]=-t[n-r-1],t[n-r-1]=-a}},f.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var a=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&a,n=a<67108864?0:a/67108864|0}return e},f.prototype.convert13b=function(e,t,n,a){for(var i=0,o=0;o<t;o++)i+=0|e[o],n[2*o]=8191&i,i>>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o<a;++o)n[o]=0;r(0===i),r(0==(-8192&i))},f.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},f.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),a=this.makeRBT(r),i=this.stub(r),o=new Array(r),s=new Array(r),c=new Array(r),u=new Array(r),l=new Array(r),d=new Array(r),f=n.words;f.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,u,r),this.transform(o,i,s,c,r,a),this.transform(u,i,l,d,r,a);for(var p=0;p<r;p++){var h=s[p]*l[p]-c[p]*d[p];c[p]=s[p]*d[p]+c[p]*l[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,f,i,r,a),this.conjugate(f,i,r),this.normalize13b(f,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),d(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var a=(0|this.words[n])*e,i=(67108863&a)+(67108863&t);t>>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=c(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())0!==t[r]&&(n=n.mul(a));return n},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&i,c=(0|this.words[t])-s<<n;this.words[t]=c|o,o=s>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t<a;t++)this.words[t]=0;this.length+=a}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){r("number"==typeof e&&e>=0);var a;a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,c=n;if(a-=o,a=Math.max(0,a),c){for(var u=0;u<o;u++)c.words[u]=this.words[u];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=a);u--){var d=0|this.words[u];this.words[u]=l<<26-i|d>>>i,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<<t;return!(this.length<=n)&&!!(this.words[n]&a)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<<t;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var a,i=e.length+n;this._expand(i);var o,s=0;for(a=0;a<e.length;a++){o=(0|this.words[a+n])+s;var c=(0|e.words[a])*t;o-=67108863&c,s=(o>>26)-(c/67108864|0),this.words[a+n]=67108863&o}for(;a<this.length-n;a++)o=(0|this.words[a+n])+s,s=o>>26,this.words[a+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a<this.length;a++)o=-(0|this.words[a])+s,s=o>>26,this.words[a]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),a=e,o=0|a.words[a.length-1];0!==(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){s=new i(null),s.length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=r.clone()._ishlnsubmul(a,1,c);0===l.negative&&(r=l,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var f=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(a,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){if(r(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,s;return 0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;0==(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(l),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(n.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(o)):(n.isub(t),o.isub(a))}var f;return f=0===t.cmpn(1)?a:o,f.cmpn(0)<0&&f.iadd(e),f},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var i=a,o=n;0!==i&&o<this.length;o++){var s=0|this.words[o];s+=i,i=s>>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];n=a===e?0:a<e?-1:1}return 0!==this.negative?0|-n:n},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){r<a?t=-1:r>a&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new b(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var k={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},p.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),t=n.bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},p.prototype.split=function(e,t){e.iushrn(this.n,0,t)},p.prototype.imulK=function(e){return e.imul(this.k)},a(h,p),h.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=4194303&a,r=10;r<e.length;r++){var i=0|e.words[r];e.words[r-10]=(4194303&i)<<4|a>>>22,a=i}a>>>=22,e.words[r-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},h.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},a(m,p),a(_,p),a(M,p),M.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,a=67108863&r;r>>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(k[e])return k[e];var t;if("k256"===e)t=new h;else if("p224"===e)t=new m;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return k[e]=t,t},b.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},b.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},b.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},b.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},b.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},b.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},b.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},b.prototype.isub=function(e,t){
|
6 |
+
this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},b.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},b.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},b.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},b.prototype.isqr=function(e){return this.imul(e,e.clone())},b.prototype.sqr=function(e){return this.mul(e,e)},b.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,a),f=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),h=o;0!==p.cmp(s);){for(var m=p,_=0;0!==m.cmp(s);_++)m=m.redSqr();r(_<h);var M=this.pow(d,new i(1).iushln(h-_-1));f=f.redMul(M),d=M.redSqr(),p=p.redMul(d),h=_}return f},b.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},b.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var a=n[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var d=u>>l&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===l)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},b.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},b.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new g(e)},a(g,b),g.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},g.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},g.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},g.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},g.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,n(88)(e))},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var a=this.constructor.Interface;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var c=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=c?o.thatReturnsTrue:o.thatReturnsFalse,this.isPropagationStopped=o.thatReturnsFalse,this}var a=n(17),i=n(73),o=n(37),s=(n(12),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),c={type:null,target:null,currentTarget:o.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=o.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=o.thatReturnsTrue)},persist:function(){this.isPersistent=o.thatReturnsTrue},isPersistent:o.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<s.length;n++)this[s[n]]=null}}),r.Interface=c,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var o=new r;a(o,e.prototype),e.prototype=o,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(662),i=r(a),o=n(671),s=r(o),c="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===c(i.default)?function(e){return void 0===e?"undefined":c(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":c(e)}},function(e,t,n){e.exports=!n(83)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return function(t){function n(){var t;(0,M.default)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=(0,g.default)(this,(t=n.__proto__||(0,m.default)(n)).call.apply(t,[this].concat(a)));return o.name=e,o}return(0,y.default)(n,t),n}(Error)}function i(e,t){function n(e){var t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")}function r(e,t){return fetch(n(e),t)}function a(e,t,n){return fetch(e,(0,w.default)({},t,n)).catch(u)}function i(e){var t=c+"jetpack/v4/module/stats/data";return t=-1!==t.indexOf("?")?t+"&range="+encodeURIComponent(e):t+"?range="+encodeURIComponent(e)}var c=e,l={"X-WP-Nonce":t},d={credentials:"same-origin",headers:l},f={method:"post",credentials:"same-origin",headers:(0,w.default)({},l,{"Content-type":"application/json"})},h={setApiRoot:function(e){c=e},setApiNonce:function(e){l={"X-WP-Nonce":e},d={credentials:"same-origin",headers:l},f={method:"post",credentials:"same-origin",headers:(0,w.default)({},l,{"Content-type":"application/json"})}},fetchSiteConnectionStatus:function(){return r(c+"jetpack/v4/connection",d).then(s)},fetchUserConnectionData:function(){return r(c+"jetpack/v4/connection/data",d).then(s)},disconnectSite:function(){return a(c+"jetpack/v4/connection",f,{body:(0,p.default)({isActive:!1})}).then(o).then(s)},fetchConnectUrl:function(){return r(c+"jetpack/v4/connection/url",d).then(o).then(s)},unlinkUser:function(){return a(c+"jetpack/v4/connection/user",f,{body:(0,p.default)({linked:!1})}).then(o).then(s)},jumpStart:function(e){var t=void 0;return"activate"===e&&(t=!0),"deactivate"===e&&(t=!1),a(c+"jetpack/v4/jumpstart",f,{body:(0,p.default)({active:t})}).then(o).then(s)},fetchModules:function(){return r(c+"jetpack/v4/module/all",d).then(o).then(s)},fetchModule:function(e){return r(c+"jetpack/v4/module/"+e,d).then(o).then(s)},activateModule:function(e){return a(c+"jetpack/v4/module/"+e+"/active",f,{body:(0,p.default)({active:!0})}).then(o).then(s)},deactivateModule:function(e){return a(c+"jetpack/v4/module/"+e+"/active",f,{body:(0,p.default)({active:!1})})},updateModuleOptions:function(e,t){return a(c+"jetpack/v4/module/"+e,f,{body:(0,p.default)(t)}).then(o).then(s)},updateSettings:function(e){return a(c+"jetpack/v4/settings",f,{body:(0,p.default)(e)}).then(o).then(s)},getProtectCount:function(){return r(c+"jetpack/v4/module/protect/data",d).then(o).then(s)},resetOptions:function(e){return a(c+"jetpack/v4/options/"+e,f,{body:(0,p.default)({reset:!0})}).then(o).then(s)},getVaultPressData:function(){return r(c+"jetpack/v4/module/vaultpress/data",d).then(o).then(s)},getAkismetData:function(){return r(c+"jetpack/v4/module/akismet/data",d).then(o).then(s)},checkAkismetKey:function(){return r(c+"jetpack/v4/module/akismet/key/check",d).then(o).then(s)},checkAkismetKeyTyped:function(e){return a(c+"jetpack/v4/module/akismet/key/check",f,{body:(0,p.default)({api_key:e})}).then(o).then(s)},fetchStatsData:function(e){return r(i(e),d).then(o).then(s)},getPluginUpdates:function(){return r(c+"jetpack/v4/updates/plugins",d).then(o).then(s)},fetchSettings:function(){return r(c+"jetpack/v4/settings",d).then(o).then(s)},updateSetting:function(e){return a(c+"jetpack/v4/settings",f,{body:(0,p.default)(e)}).then(o).then(s)},fetchSiteData:function(){return r(c+"jetpack/v4/site",d).then(o).then(s).then(function(e){return JSON.parse(e.data)})},fetchSiteFeatures:function(){return r(c+"jetpack/v4/site/features",d).then(o).then(s).then(function(e){return JSON.parse(e.data)})},fetchRewindStatus:function(){return r(c+"jetpack/v4/rewind",d).then(o).then(s).then(function(e){return JSON.parse(e.data)})},dismissJetpackNotice:function(e){return a(c+"jetpack/v4/notice/"+e,f,{body:(0,p.default)({dismissed:!0})}).then(o).then(s)},fetchPluginsData:function(){return r(c+"jetpack/v4/plugins",d).then(o).then(s)}};(0,w.default)(this,h)}function o(e){return e.status>=200&&e.status<300?e:404===e.status?new d.default(function(){throw e.redirected?new L(e.redirected):new T}):e.json().then(function(t){var n=new Error(t.message+" (Status "+e.status+")");throw n.response=t,n})}function s(e){return e.json().catch(function(t){return c(t,e.redirected,e.url)})}function c(e,t,n){throw t?new k(n):new E}function u(){throw new S}Object.defineProperty(t,"__esModule",{value:!0}),t.FetchNetworkError=t.Api404AfterRedirectError=t.Api404Error=t.JsonParseAfterRedirectError=t.JsonParseError=void 0;var l=n(751),d=r(l),f=n(439),p=r(f),h=n(2),m=r(h),_=n(3),M=r(_),b=n(4),g=r(b),v=n(5),y=r(v);n(768);var A=n(25),w=r(A);n(769).polyfill();var E=t.JsonParseError=a("JsonParseError"),k=t.JsonParseAfterRedirectError=a("JsonParseAfterRedirectError"),T=t.Api404Error=a("Api404Error"),L=t.Api404AfterRedirectError=a("Api404AfterRedirectError"),S=t.FetchNetworkError=a("FetchNetworkError"),C=new i;t.default=C},function(e,t,n){"use strict";var r=n(1),a=n(228),i=n(13);n(805);var o=r.createClass({displayName:"Gridicon",mixins:[a],getDefaultProps:function(){return{className:"",size:24}},propTypes:{icon:r.PropTypes.string.isRequired,size:r.PropTypes.number,onClick:r.PropTypes.func,className:r.PropTypes.string},needsOffset:function(e,t){return["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-backspace","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle"].indexOf(e)>=0&&t%18==0},needsOffsetX:function(e,t){return["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e)>=0&&t%18==0},needsOffsetY:function(e,t){return["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e)>=0&&t%18==0},render:function(){var e,t,n="gridicons-"+this.props.icon,a=this.needsOffset(n,this.props.size),o=this.needsOffsetX(n,this.props.size),s=this.needsOffsetY(n,this.props.size);switch(t=i("gridicon",n,this.props.className,{"needs-offset":a,"needs-offset-x":o,"needs-offset-y":s}),n){default:e=r.createElement("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-backspace":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 7H8l-5 5 5 5h11c1.104 0 2-.896 2-2V9c0-1.104-.896-2-2-2zm-.647 6.646l-.707.707L16 12.707l-1.647 1.647-.707-.707L15.293 12l-1.647-1.646.707-.707L16 11.293l1.646-1.647.707.707L16.707 12l1.646 1.646z"})));break;case"gridicons-bell":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 6h-4V3c0-.5-.5-1-1-1H8c-.5 0-1 .5-1 1v3H3c-.6 0-1 .4-1 1v5h20V7c0-.6-.4-1-1-1zm-6 0H9V4h6v2zM14 15h-4v-2H2v8c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-8h-8v2z"})));break;case"gridicons-calendar":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-cart":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-checkmark-circle":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4.83 12l4.58 4.59L8 18l-6-6 6-6 1.41 1.41L4.83 12zm9.76 4.59L16 18l6-6-6-6-1.41 1.41L19.17 12l-4.58 4.59z"})));break;case"gridicons-cog":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"})));break;case"gridicons-computer":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-create":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 11v8c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h8l-2 2H5v14h14v-6l2-2zM7 17h3l7.5-7.5-3-3L7 14v3zm9.94-12.94L15.5 5.5l3 3 1.44-1.44c.585-.585.585-1.535 0-2.12l-.88-.88c-.585-.585-1.535-.585-2.12 0z"})));break;case"gridicons-credit-card":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":
|
7 |
+
e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-small":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})));break;case"gridicons-custom-post-type":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-dropdown":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-flag":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-globe":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-1.962-2v-.528c0-.4.082-.74.246-1.017.163-.276.454-.546.87-.808.333-.21.572-.397.717-.565.146-.168.22-.36.22-.577 0-.172-.078-.308-.234-.41-.156-.1-.358-.15-.608-.15-.62 0-1.34.22-2.168.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.287-.23.362-.6.705-1.11 1.03-.43.278-.7.48-.807.61-.108.13-.163.282-.163.458V13h-1.885z"})));break;case"gridicons-help":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm2.003-6.41c-.23.36-.6.704-1.108 1.028-.43.28-.7.482-.808.61-.108.13-.163.283-.163.46V13H11.04v-.528c0-.4.08-.74.245-1.017.163-.276.454-.546.872-.808.332-.21.57-.397.716-.565.145-.168.217-.36.217-.577 0-.172-.077-.308-.233-.41-.156-.1-.358-.15-.608-.15-.62 0-1.342.22-2.17.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.286z"})));break;case"gridicons-history":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),r.createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"})));break;case"gridicons-indent-left":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10v-2c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8v.5c0 .827-.673 1.5-1.5 1.5s-1.5-.673-1.5-1.5V12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.65 0 3.102-.81 4.013-2.043C16.648 15.6 17.527 16 18.5 16c1.93 0 3.5-1.57 3.5-3.5V12c0-5.523-4.477-10-10-10zm0 13c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3z"})));break;case"gridicons-menu":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 13c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2-1.105 0-2 .896-2 2v5c0 1.104.895 2 2 2zm4-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6c0 2.972 2.164 5.433 5 5.91V20h2v-3.09c2.836-.478 5-2.94 5-5.91h-2z"})));break;case"gridicons-minus-small":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-my-sites-horizon":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-not-visible":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-pages":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pencil":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-plugins":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 13h-7v7h-2v-7H4v-2h7V4h2v7h7v2z"})));break;case"gridicons-popout":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-quote":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-reader":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reader-following":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M23,13.482L15.508,21L12,17.4l1.412-1.388l2.106,2.188l6.094-6.094L23,13.482z M15.545,15.344L20,10.889V2H2v14c0,1.1,0.9,2,2,2h4.538l4.913-4.832L15.545,15.344z M8,13H4v-1h4V13z M11,11H4v-1h7V11z M11,9H4V8h7V9z M18,6H4V4h14V6z"})));break;case"gridicons-reblog":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{
|
8 |
d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-reply":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14 8H6.828l2.586-2.586L8 4 3 9l5 5 1.414-1.414L6.828 10H14c2.206 0 4 1.794 4 4s-1.794 4-4 4h-2v2h2c3.314 0 6-2.686 6-6s-2.686-6-6-6z"})));break;case"gridicons-rotate":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-ios":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-sign-out":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-circle":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"})));break;case"gridicons-visible":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-chat":e=r.createElement("svg",{className:t,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{d:"M20,4h-8c-1.1,0-2,0.9-2,2v2h2c1.7,0,3,1.3,3,3v2h2v3.5l3.3-2.3c1.1-0.8,1.7-2,1.7-3.3V6C22,4.9,21.1,4,20,4z"}),r.createElement("g",null,r.createElement("path",{d:"M14,11v5c0,1.1-0.9,2-2,2H7v3.5l-3.3-2.3c-1.1-0.8-1.7-2-1.7-3.3V11c0-1.1,0.9-2,2-2h8C13.1,9,14,9.9,14,11z"}))))}return e}});e.exports=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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(307),s=r(o),c=n(829),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){m&&p&&(m=!1,p.length?h=p.concat(h):_=-1,h.length&&s())}function s(){if(!m){var e=a(o);m=!0;for(var t=h.length;t;){for(p=h,h=[];++_<t;)p&&p[_].run();_=-1,t=h.length}p=null,m=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function u(){}var l,d,f=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var p,h=[],m=!1,_=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||m||a(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(451),s=r(o),c=n(810),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){"use strict";var r={current:null};e.exports=r},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";function r(e){return null==e||d.default.isValidElement(e)}function a(e){return r(e)||Array.isArray(e)&&e.every(r)}function i(e,t){return u({},e,t)}function o(e){var t=e.type,n=i(t.defaultProps,e.props);if(n.children){var r=s(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function s(e,t){var n=[];return d.default.Children.forEach(e,function(e){if(d.default.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(o(e))}),n}function c(e){return a(e)?e=s(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isReactChildren=a,t.createRouteFromReactElement=o,t.createRoutesFromReactChildren=s,t.createRoutes=c;var l=n(1),d=function(e){return e&&e.__esModule?e:{default:e}}(l)},function(e,t,n){function r(e){return o(e)?a(e):i(e)}var a=n(286),i=n(287),o=n(52);e.exports=r},function(e,t){function n(){}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}),t.FormSelect=t.FormButton=t.FormRadio=t.FormTextarea=t.FormTextInput=t.FormCheckbox=t.FormLegend=t.FormLabel=t.FormFieldset=void 0;var a=n(455),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(10),M=r(_),b=n(1),g=r(b),v=n(13),y=r(v),A=n(114),w=r(A),E=n(964),k=r(E),T=n(456),L=r(T),S=n(8),C=n(43),z=r(C),O=n(856),N=r(O);t.FormFieldset=function(e){return g.default.createElement("fieldset",(0,M.default)({},(0,w.default)(e,"className"),{className:(0,y.default)(e.className,"jp-form-fieldset")}),e.children)};(t.FormLabel=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=this.props,t=e.className,n=e.htmlFor,r=(0,i.default)(e,["className","htmlFor"]);return g.default.createElement("label",(0,M.default)({},r,{htmlFor:n,className:(0,y.default)(t,"jp-form-label")}),this.props.children)}}]),t}(g.default.Component)).displayName="FormLabel",(t.FormLegend=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(){return g.default.createElement("legend",(0,M.default)({},(0,w.default)(this.props,"className"),{className:(0,y.default)(this.props.className,"jp-form-legend")}),this.props.children)}}]),t}(g.default.Component)).displayName="FormLegend",(t.FormCheckbox=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=(0,w.default)(this.props,["className","type"]);return g.default.createElement("input",(0,M.default)({},e,{type:"checkbox",className:(0,y.default)(this.props.className,"jp-form-checkbox")}))}}]),t}(g.default.Component)).displayName="FormInputCheckbox";var D=t.FormTextInput=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.focus=function(){r.refs.textField.focus()},r.selectOnFocus=function(e){e.target.select()},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,t=e.className,n=e.selectOnFocus,r=(0,y.default)(t,{"jp-form-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid});return g.default.createElement("input",(0,M.default)({},this.props,{ref:"textField",className:r,onClick:n?this.selectOnFocus:null}))}}]),t}(g.default.Component);D.displayName="FormTextInput",D.defaultProps={isError:!1,isValid:!1,selectOnFocus:!1,type:"text"},(t.FormTextarea=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(){return g.default.createElement("textarea",(0,M.default)({},(0,w.default)(this.props,"className"),{className:(0,y.default)(this.props.className,"jp-form-textarea")}),this.props.children)}}]),t}(g.default.Component)).displayName="FormTextarea",(t.FormRadio=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=(0,w.default)(this.props,["className","type"]);return g.default.createElement("input",(0,M.default)({},e,{type:"radio",className:(0,y.default)(this.props.className,"jp-form-radio")}))}}]),t}(g.default.Component)).displayName="FormRadio";var P=t.FormButton=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.getDefaultButtonAction=function(){return r.props.isSubmitting?(0,S.translate)("Saving…"):(0,S.translate)("Save Settings")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=(0,y.default)({"jp-form-button":!0});return g.default.createElement(z.default,(0,M.default)({},(0,w.default)(this.props,"className"),{primary:this.props.isPrimary,className:(0,y.default)(this.props.className,e)}),(0,L.default)(this.props.children)?this.getDefaultButtonAction():this.props.children)}}]),t}(g.default.Component);P.displayName="FormsButton",P.defaultProps={isSubmitting:!1,isPrimary:!0,type:"submit"};t.FormSelect=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.handleOnSelect=function(e){r.props.onOptionChange({target:{type:"select",name:r.props.name,value:e.value}})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=[];return(0,k.default)(this.props.validValues,function(t,n){e.push({label:t,value:n})}),g.default.createElement(N.default,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value})}}]),t}(g.default.Component)},function(e,t,n){var r=n(120);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(47),a=n(110);e.exports=n(59)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r=n(11),a=(n(7),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},o=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},s=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},c=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=a,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||u,n.poolSize||(n.poolSize=10),n.release=c,n},d={addPoolingTo:l,oneArgumentPooler:a,twoArgumentPooler:i,threeArgumentPooler:o,fourArgumentPooler:s};e.exports=d},function(e,t,n){function r(e){return null==e?void 0===e?c:s:u&&u in Object(e)?i(e):o(e)}var a=n(89),i=n(615),o=n(616),s="[object Null]",c="[object Undefined]",u=a?a.toStringTag:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){if(e[t])return new Error("<"+n+'> should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var a=n(1),i=a.PropTypes.func,o=a.PropTypes.object,s=a.PropTypes.arrayOf,c=a.PropTypes.oneOfType,u=a.PropTypes.element,l=a.PropTypes.shape,d=a.PropTypes.string,f=(t.history=l({listen:i.isRequired,push:i.isRequired,replace:i.isRequired,go:i.isRequired,goBack:i.isRequired,goForward:i.isRequired}),t.component=c([i,d])),p=(t.components=c([f,o]),t.route=c([o,u]));t.routes=c([p,s(p)])},function(e,t,n){"use strict";function r(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}function a(e){var t=r(e),n="",a="",i=t.indexOf("#");-1!==i&&(a=t.substring(i),t=t.substring(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substring(o),t=t.substring(0,o)),""===t&&(t="/"),{pathname:t,search:n,hash:a}}t.__esModule=!0,t.extractPath=r,t.parsePath=a;var i=n(46);!function(e){e&&e.__esModule}(i)},function(e,t,n){function r(e,t){var n=i(e,t);return a(n)?n:void 0}var a=n(647),i=n(650);e.exports=r},function(e,t,n){function r(e,t,n,r){var o=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=r?r(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),o?i(n,u,l):a(n,u,l)}return n}var a=n(154),i=n(133);e.exports=r},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports={default:n(718),__esModule:!0}},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(494),s=r(o),c=n(958),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;t.PUSH="PUSH";t.REPLACE="REPLACE";t.POP="POP",t.default={PUSH:"PUSH",REPLACE:"REPLACE",POP:"POP"}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=t;r.version=n(1043).version,r.utils=n(1044),r.rand=n(892),r.curve=n(507),r.curves=n(1049),r.ec=n(1057),r.eddsa=n(1061)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.imagePath=window.Initial_State.pluginBaseUrl+"/images/",t.JETPACK_CONTACT_SUPPORT="https://jetpack.com/contact-support",t.JETPACK_CONTACT_BETA_SUPPORT="https://jetpack.com/contact-support/beta-group"},function(e,t,n){"use strict";var r=n(17),a=n(244),i=n(548),o=n(553),s=n(87),c=n(554),u=n(555),l=n(556),d=n(557),f=s.createElement,p=s.createFactory,h=s.cloneElement,m=r,_=function(e){return e},M={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:d},Component:a.Component,PureComponent:a.PureComponent,createElement:f,cloneElement:h,isValidElement:s.isValidElement,PropTypes:c,createClass:l,createFactory:p,createMixin:_,DOM:o,version:u,__spread:m};e.exports=M},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function a(e){return void 0!==e.key}var i=n(17),o=n(65),s=(n(12),n(246),Object.prototype.hasOwnProperty),c=n(247),u={key:!0,ref:!0,__self:!0,__source:!0},l=function(e,t,n,r,a,i,o){var s={$$typeof:c,type:e,key:t,ref:n,props:o,_owner:i};return s};l.createElement=function(e,t,n){var i,c={},d=null,f=null;if(null!=t){r(t)&&(f=t.ref),a(t)&&(d=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!u.hasOwnProperty(i)&&(c[i]=t[i])}var p=arguments.length-2;if(1===p)c.children=n;else if(p>1){for(var h=Array(p),m=0;m<p;m++)h[m]=arguments[m+2];c.children=h}if(e&&e.defaultProps){var _=e.defaultProps;for(i in _)void 0===c[i]&&(c[i]=_[i])}return l(e,d,f,0,0,o.current,c)},l.createFactory=function(e){var t=l.createElement.bind(null,e);return t.type=e,t},l.cloneAndReplaceKey=function(e,t){return l(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},l.cloneElement=function(e,t,n){var c,d=i({},e.props),f=e.key,p=e.ref,h=(e._self,e._source,e._owner);if(null!=t){r(t)&&(p=t.ref,h=o.current),a(t)&&(f=""+t.key);var m;e.type&&e.type.defaultProps&&(m=e.type.defaultProps)
|
9 |
;for(c in t)s.call(t,c)&&!u.hasOwnProperty(c)&&(void 0===t[c]&&void 0!==m?d[c]=m[c]:d[c]=t[c])}var _=arguments.length-2;if(1===_)d.children=n;else if(_>1){for(var M=Array(_),b=0;b<_;b++)M[b]=arguments[b+2];d.children=M}return l(e.type,f,p,0,0,h,d)},l.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},e.exports=l},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(45),a=r.Symbol;e.exports=a},function(e,t,n){"use strict";function r(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function a(e){for(var t="",n=[],a=[],i=void 0,o=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;i=s.exec(e);)i.index!==o&&(a.push(e.slice(o,i.index)),t+=r(e.slice(o,i.index))),i[1]?(t+="([^/]+)",n.push(i[1])):"**"===i[0]?(t+="(.*)",n.push("splat")):"*"===i[0]?(t+="(.*?)",n.push("splat")):"("===i[0]?t+="(?:":")"===i[0]&&(t+=")?"),a.push(i[0]),o=s.lastIndex;return o!==e.length&&(a.push(e.slice(o,e.length)),t+=r(e.slice(o,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:a}}function i(e){return f[e]||(f[e]=a(e)),f[e]}function o(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=i(e),r=n.regexpSource,a=n.paramNames,o=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===o[o.length-1]&&(r+="$");var s=t.match(new RegExp("^"+r,"i"));if(null==s)return null;var c=s[0],u=t.substr(c.length);if(u){if("/"!==c.charAt(c.length-1))return null;u="/"+u}return{remainingPathname:u,paramNames:a,paramValues:s.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function s(e){return i(e).paramNames}function c(e,t){var n=o(e,t);if(!n)return null;var r=n.paramNames,a=n.paramValues,i={};return r.forEach(function(e,t){i[e]=a[t]}),i}function u(e,t){t=t||{};for(var n=i(e),r=n.tokens,a=0,o="",s=0,c=void 0,u=void 0,l=void 0,f=0,p=r.length;f<p;++f)c=r[f],"*"===c||"**"===c?(l=Array.isArray(t.splat)?t.splat[s++]:t.splat,null!=l||a>0||(0,d.default)(!1),null!=l&&(o+=encodeURI(l))):"("===c?a+=1:")"===c?a-=1:":"===c.charAt(0)?(u=c.substring(1),l=t[u],null!=l||a>0||(0,d.default)(!1),null!=l&&(o+=encodeURIComponent(l))):o+=c;return o.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=o,t.getParamNames=s,t.getParams=c,t.formatPattern=u;var l=n(29),d=function(e){return e&&e.__esModule?e:{default:e}}(l),f=Object.create(null)},function(e,t,n){var r=n(218),a=n(186);e.exports=function(e){return r(a(e))}},function(e,t,n){function r(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}var a=n(146),i=1/0;e.exports=r},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var a=n(11),i=(n(7),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},o=e.DOMAttributeNamespaces||{},c=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},l=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var d in n){s.properties.hasOwnProperty(d)&&a("48",d);var f=d.toLowerCase(),p=n[d],h={attributeName:f,attributeNamespace:null,propertyName:d,mutationMethod:null,mustUseProperty:r(p,t.MUST_USE_PROPERTY),hasBooleanValue:r(p,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(p,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(p,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(p,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1||a("50",d),c.hasOwnProperty(d)){var m=c[d];h.attributeName=m}o.hasOwnProperty(d)&&(h.attributeNamespace=o[d]),u.hasOwnProperty(d)&&(h.propertyName=u[d]),l.hasOwnProperty(d)&&(h.mutationMethod=l[d]),s.properties[d]=h}}}),o=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:o,ATTRIBUTE_NAME_CHAR:o+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){if((0,s._isCustomAttributeFunctions[t])(e))return!0}return!1},injection:i};e.exports=s},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return M(e,r)}function a(e,t,n){var a=r(e,n,t);a&&(n._dispatchListeners=m(n._dispatchListeners,a),n._dispatchInstances=m(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,a,e)}function o(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,a,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,a=M(e,r);a&&(n._dispatchListeners=m(n._dispatchListeners,a),n._dispatchInstances=m(n._dispatchInstances,e))}}function c(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function u(e){_(e,i)}function l(e){_(e,o)}function d(e,t,n,r){h.traverseEnterLeave(n,r,s,e,t)}function f(e){_(e,c)}var p=n(95),h=n(150),m=n(232),_=n(233),M=(n(12),p.getListener),b={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:d};e.exports=b},function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function a(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var i=n(11),o=n(164),s=n(150),c=n(165),u=n(232),l=n(233),d=(n(7),{}),f=null,p=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},h=function(e){return p(e,!0)},m=function(e){return p(e,!1)},_=function(e){return"."+e._rootNodeID},M={injection:{injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n&&i("94",t,typeof n);var r=_(e);(d[t]||(d[t]={}))[r]=n;var a=o.registrationNameModules[t];a&&a.didPutListener&&a.didPutListener(e,t,n)},getListener:function(e,t){var n=d[t];if(a(t,e._currentElement.type,e._currentElement.props))return null;var r=_(e);return n&&n[r]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=d[t];if(r){delete r[_(e)]}},deleteAllListeners:function(e){var t=_(e);for(var n in d)if(d.hasOwnProperty(n)&&d[n][t]){var r=o.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete d[n][t]}},extractEvents:function(e,t,n,r){for(var a,i=o.plugins,s=0;s<i.length;s++){var c=i[s];if(c){var l=c.extractEvents(e,t,n,r);l&&(a=u(a,l))}}return a},enqueueEvents:function(e){e&&(f=u(f,e))},processEventQueue:function(e){var t=f;f=null,e?l(t,h):l(t,m),f&&i("95"),c.rethrowCaughtError()},__purge:function(){d={}},__getListenerBank:function(){return d}};e.exports=M},function(e,t,n){"use strict";function r(){a.attachRefs(this,this._currentElement)}var a=n(520),i=(n(44),n(12),{mountComponent:function(e,t,n,a,i,o){var s=e.mountComponent(t,n,a,i,o);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){a.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,i){var o=e._currentElement;if(t!==o||i!==e._context){var s=a.shouldUpdateRefs(o,t);s&&a.detachRefs(e,o),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(57),i=n(166),o={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};a.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e){if(h){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)m(t,n[r],null);else null!=e.html?d(t,e.html):null!=e.text&&p(t,e.text)}}function a(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){h?e.children.push(t):e.node.appendChild(t.node)}function o(e,t){h?e.html=t:d(e.node,t)}function s(e,t){h?e.text=t:p(e.node,t)}function c(){return this.node.nodeName}function u(e){return{node:e,children:[],html:null,text:null,toString:c}}var l=n(170),d=n(151),f=n(171),p=n(238),h="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),m=f(function(e,t,n){11===t.node.nodeType||1===t.node.nodeType&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===l.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});u.insertTreeBefore=m,u.replaceChildWithTree=a,u.queueChild=i,u.queueHTML=o,u.queueText=s,e.exports=u},function(e,t){e.exports={}},function(e,t,n){var r=n(186);e.exports=function(e){return Object(r(e))}},function(e,t,n){function r(e,t){return a(e)?e:i(e,t)?[e]:o(s(e))}var a=n(26),i=n(200),o=n(715),s=n(221);e.exports=r},function(e,t,n){(function(r){function a(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))}),e.splice(i,0,r)}}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(734),t.log=o,t.formatArgs=i,t.save=s,t.load=c,t.useColors=a,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(t,n(63))},function(e,t,n){function r(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):a(e):c(e)}var a=n(771),i=n(783),o=n(134),s=n(26),c=n(786);e.exports=r},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=new Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var a=n(46);!function(e){e&&e.__esModule}(a);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return u.stringify(e).replace(/%20/g,"+")}function o(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=A(t.substring(1)),e[m]={search:t,searchBase:""}}return e}function n(e,t){var n,r=e[m],a=t?y(t):"";if(!r&&!a)return e;"string"==typeof e&&(e=f.parsePath(e));var i=void 0;i=r&&e.search===r.search?r.searchBase:e.search||"";var o=i;return a&&(o+=(o?"&":"?")+a),s({},e,(n={search:o},n[m]={search:o,searchBase:i},n))}function r(e){return E.listenBefore(function(n,r){d.default(e,t(n),r)})}function o(e){return E.listen(function(n){e(t(n))})}function c(e){E.push(n(e,e.query))}function u(e){E.replace(n(e,e.query))}function l(e,t){return E.createPath(n(e,t||e.query))}function p(e,t){return E.createHref(n(e,t||e.query))}function M(e){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];var o=E.createLocation.apply(E,[n(e,e.query)].concat(a));return e.query&&(o.query=e.query),t(o)}function b(e,t,n){"string"==typeof t&&(t=f.parsePath(t)),c(s({state:e},t,{query:n}))}function g(e,t,n){"string"==typeof t&&(t=f.parsePath(t)),u(s({state:e},t,{query:n}))}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],y=v.stringifyQuery,A=v.parseQueryString,w=a(v,["stringifyQuery","parseQueryString"]),E=e(w);return"function"!=typeof y&&(y=i),"function"!=typeof A&&(A=_),s({},E,{listenBefore:r,listen:o,push:c,replace:u,createPath:l,createHref:p,createLocation:M,pushState:h.default(b,"pushState is deprecated; use push instead"),replaceState:h.default(g,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var s=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},c=n(46),u=(r(c),n(622)),l=n(181),d=r(l),f=n(76),p=n(106),h=r(p),m="$searchBase",_=u.parse;t.default=o,e.exports=t.default},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){"use strict";var r=n(664)(!0);n(217)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(290),a=n(191);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(492),s=r(o),c=n(961),u=r(c),l=(0,i.default)({},s,u);t.default=l,e.exports=t.default},function(e,t,n){var r=n(122),a=n(811),i=n(825),o=n(101),s=n(78),c=n(828),u=n(498),l=n(458),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=o(t,e),u||(u=t.length>1),t}),s(e,l(e),n),u&&(n=a(n,7,c));for(var d=t.length;d--;)i(n,t[d]);return n});e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){13!==t.which&&32!==t.which||e(t)}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=r},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t,n){var r=n(656),a=n(66),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(45),a=n(657),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i,c=s?r.Buffer:void 0,u=c?c.isBuffer:void 0,l=u||a;e.exports=l}).call(t,n(88)(e))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(47).f,a=n(79),i=n(32)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}e.exports=n},function(e,t,n){"use strict";function r(e){return{noticeId:e,type:s.REMOVE_NOTICE}}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={noticeId:n.id||(0,o.default)(),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t};return{type:s.NEW_NOTICE,notice:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.warningNotice=t.infoNotice=t.errorNotice=t.successNotice=void 0,t.removeNotice=r,t.createNotice=a;var i=n(732),o=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(298);t.successNotice=a.bind(null,"is-success"),t.errorNotice=a.bind(null,"is-error"),t.infoNotice=a.bind(null,"is-info"),t.warningNotice=a.bind(null,"is-warning")},function(e,t,n){"use strict";var r=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(r),i=n(1),o=n(13),s=n(114),c=n(965);e.exports=i.createClass({displayName:"CompactFormToggle",render:function(){return i.createElement(c,(0,a.default)({},s(this.props,"className"),{className:o(this.props.className,"is-compact")}),this.props.children)}})},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)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),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)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n}function a(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e,t){for(var n="",r=0;r<e.length;r++){var a=e[r];"little"===t&&(a=i(a)),n+=c(a.toString(16))}return n}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function u(e,t,n,r){var a=n-t;S(a%4==0);for(var i=new Array(a/4),o=0,s=t;o<i.length;o++,s+=4){var c;c="big"===r?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],i[o]=c>>>0}return i}function l(e,t){for(var n=new Array(4*e.length),r=0,a=0;r<e.length;r++,a+=4){var i=e[r];"big"===t?(n[a]=i>>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n}function d(e,t){return e>>>t|e<<32-t}function f(e,t){return e<<t|e>>>32-t}function p(e,t){return e+t>>>0}function h(e,t,n){return e+t+n>>>0}function m(e,t,n,r){return e+t+n+r>>>0}function _(e,t,n,r,a){return e+t+n+r+a>>>0}function M(e,t,n,r){var a=e[t],i=e[t+1],o=r+i>>>0,s=(o<r?1:0)+n+a;e[t]=s>>>0,e[t+1]=o}function b(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0}function g(e,t,n,r){return t+r>>>0}function v(e,t,n,r,a,i,o,s){var c=0,u=t;return u=u+r>>>0,c+=u<t?1:0,u=u+i>>>0,c+=u<i?1:0,u=u+s>>>0,c+=u<s?1:0,e+n+a+o+c>>>0}function y(e,t,n,r,a,i,o,s){return t+r+i+s>>>0}function A(e,t,n,r,a,i,o,s,c,u){var l=0,d=t;return d=d+r>>>0,l+=d<t?1:0,d=d+i>>>0,l+=d<i?1:0,d=d+s>>>0,l+=d<s?1:0,d=d+u>>>0,l+=d<u?1:0,e+n+a+o+c+l>>>0}function w(e,t,n,r,a,i,o,s,c,u){return t+r+i+s+u>>>0}function E(e,t,n){return(t<<32-n|e>>>n)>>>0}function k(e,t,n){return(e<<32-n|t>>>n)>>>0}function T(e,t,n){return e>>>n}function L(e,t,n){return(e<<32-n|t>>>n)>>>0}var S=n(104),C=n(18);t.inherits=C,t.toArray=r,t.toHex=a,t.htonl=i,t.toHex32=o,t.zero2=s,t.zero8=c,t.join32=u,t.split32=l,t.rotr32=d,t.rotl32=f,t.sum32=p,t.sum32_3=h,t.sum32_4=m,t.sum32_5=_,t.sum64=M,t.sum64_hi=b,t.sum64_lo=g,t.sum64_4_hi=v,t.sum64_4_lo=y,t.sum64_5_hi=A,t.sum64_5_lo=w,t.rotr64_hi=E,t.rotr64_lo=k,t.shr64_hi=T,t.shr64_lo=L},function(e,t,n){"use strict";var r=n(11),a=(n(7),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,a,i,o,s,c){this.isInTransaction()&&r("27");var u,l;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),l=e.call(t,n,a,i,o,s,c),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=a,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===a)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()||r("28");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var i,o=t[n],s=this.wrapperInitData[n];try{i=!0,s!==a&&o.close&&o.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(97),i=n(210),o=n(168),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:o,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};a.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,a="",o=0,s=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=r}return s!==o?a+t.substring(s,o):a}function a(e){return"boolean"==typeof e||"number"==typeof e?""+e:r(e)}var i=/["'&<>]/;e.exports=a},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=r},function(e,t,n){"use strict";t.__esModule=!0,t.canUseMembrane=void 0;var r=n(23),a=(function(e){e&&e.__esModule}(r),t.canUseMembrane=!1,function(e){return e});t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=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},o=n(29),s=r(o),c=n(1),u=r(c),l=n(131),d=(r(l),n(629)),f=r(d),p=n(67),h=n(23),m=(r(h),u.default.PropTypes),_=m.array,M=m.func,b=m.object,g=u.default.createClass({displayName:"RouterContext",propTypes:{history:b,router:b.isRequired,location:b.isRequired,routes:_.isRequired,params:b.isRequired,components:_.isRequired,createElement:M.isRequired},getDefaultProps:function(){return{createElement:u.default.createElement}},childContextTypes:{history:b,location:b.isRequired,router:b.isRequired},getChildContext:function(){var e=this.props,t=e.router,n=e.history,r=e.location;return t||(t=i({},n,{setRouteLeaveHook:n.listenBeforeLeavingRoute}),delete t.listenBeforeLeavingRoute),{history:n,location:r,router:t}},createElement:function(e,t){return null==e?null:this.props.createElement(e,t)},render:function(){var e=this,t=this.props,n=t.history,r=t.location,o=t.routes,c=t.params,l=t.components,d=null;return l&&(d=l.reduceRight(function(t,s,u){if(null==s)return t;var l=o[u],d=(0,f.default)(l,c),h={history:n,location:r,params:c,route:l,routeParams:d,routes:o};if((0,p.isReactChildren)(t))h.children=t;else if(t)for(var m in t)Object.prototype.hasOwnProperty.call(t,m)&&(h[m]=t[m]);if("object"===(void 0===s?"undefined":a(s))){var _={};for(var M in s)Object.prototype.hasOwnProperty.call(s,M)&&(_[M]=e.createElement(s[M],i({key:M},h)));return _}return e.createElement(s,h)},d)),null===d||!1===d||u.default.isValidElement(d)||(0,s.default)(!1),d}});t.default=g,e.exports=t.default},function(e,t,n){function r(e,t,n){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a=n(281);e.exports=r},function(e,t){function n(e){return e}e.exports=n},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){n(669);for(var r=n(35),a=n(72),i=n(99),o=n(32)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],d=l&&l.prototype;d&&!d[o]&&a(d,o,u),i[u]=i.Array}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(686),a=n(283),i=a(function(e,t,n){r(e,t,n)});e.exports=i},function(e,t,n){function r(e){var t=this.__data__=new a(e);this.size=t.size}var a=n(141),i=n(692),o=n(693),s=n(694),c=n(695),u=n(696);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=s,r.prototype.has=c,r.prototype.set=u,e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var a=n(687),i=n(688),o=n(689),s=n(690),c=n(691);r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=s,r.prototype.set=c,e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}var a=n(108);e.exports=r},function(e,t,n){var r=n(77),a=r(Object,"create");e.exports=a},function(e,t,n){function r(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}var a=n(705);e.exports=r},function(e,t,n){function r(e){return o(e)?a(e,!0):i(e)}var a=n(286),i=n(713),o=n(52);e.exports=r},function(e,t,n){function r(e){return"symbol"==typeof e||i(e)&&a(e)==o}var a=n(74),i=n(66),o="[object Symbol]";e.exports=r},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function a(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!a(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],o(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),a=u.length,c=0;c<a;c++)u[c].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),a||(a=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var a=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,a,o,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,a=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=s;break}if(a<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DashItem=void 0;var a=n(49),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(15),M=r(_),b=n(1),g=r(b),v=n(13),y=r(v),A=n(9),w=n(162),E=r(w),k=n(8),T=n(43),L=r(T),S=n(40),C=r(S),z=n(14),O=r(z),N=n(36),D=n(30),P=r(D),x=n(862),j=r(x),R=n(54),Y=n(22),I=n(27),q=n(863),B=r(q),W=n(28),U=function(){return O.default.tracks.recordJetpackClick({target:"monitor-settings",page:"aag"})},H=t.DashItem=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=this,t=void 0,n="",r=(0,
|
10 |
y.default)(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":""),a=function(){return e.props.updateOptions((0,i.default)({},e.props.module,!e.props.getOptionValue(e.props.module)))},o=function(){O.default.tracks.recordJetpackClick({target:"paid-button",feature:e.props.module,page:"aag"})};return""!==this.props.module&&(t=(0,C.default)(["protect","photon","vaultpress","scan","backups","akismet"],this.props.module)&&this.props.isDevMode?"":g.default.createElement(R.ModuleToggle,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:a,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=g.default.createElement("a",{href:this.props.isDevMode?this.props.siteAdminUrl+"update-core.php":"https://wordpress.com/plugins/manage/"+this.props.siteRawUrl},g.default.createElement(E.default,{showDismiss:!1,status:this.props.status,isCompact:!0},(0,k.translate)("Updates needed",{context:"Short warning message"})))),"is-working"===this.props.status&&(t=g.default.createElement("span",{className:"jp-dash-item__active-label"},(0,k.translate)("Active")))),"monitor"===this.props.module&&(t=!this.props.isDevMode&&this.props.getOptionValue(this.props.module)&&g.default.createElement(L.default,{onClick:U,href:"https://wordpress.com/settings/security/"+this.props.siteRawUrl,compact:!0},(0,k.translate)("Settings"))),"rewind"===this.props.module&&(t=null)),this.props.pro&&!this.props.isDevMode&&(n=g.default.createElement(L.default,{onClick:o,compact:!0,href:"#/plans"},(0,k.translate)("Paid",{context:"Short label appearing near a paid feature configuration block."})),this.props.isModule&&(t=g.default.createElement(B.default,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl}))),g.default.createElement("div",{className:r},g.default.createElement(j.default,{label:this.props.label,cardBadge:n},this.props.userCanToggle?t:""),g.default.createElement(P.default,{className:"jp-dash-item__card",href:this.props.href},g.default.createElement("div",{className:"jp-dash-item__content"},this.props.children)))}}]),t}(b.Component);H.propTypes={label:M.default.string,status:M.default.string,statusText:M.default.string,disabled:M.default.bool,module:M.default.string,pro:M.default.bool,isModule:M.default.bool},H.defaultProps={label:"",module:"",pro:!1,isModule:!0},t.default=(0,A.connect)(function(e){return{getModule:function(t){return(0,I.getModule)(e,t)},isDevMode:(0,Y.isDevMode)(e),userCanToggle:(0,W.userCanManageModules)(e),siteRawUrl:(0,W.getSiteRawUrl)(e),siteAdminUrl:(0,W.getSiteAdminUrl)(e)}})((0,N.ModuleSettingsForm)(H))},function(e,t,n){"use strict";e.exports=n(913)},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function a(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function o(e,t,n,r){var a=e.type||"unknown-event";e.currentTarget=M.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(a,n,e):m.invokeGuardedCallback(a,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var a=0;a<n.length&&!e.isPropagationStopped();a++)o(e,t,n[a],r[a]);else n&&o(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function c(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function u(e){var t=c(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function l(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)&&h("103"),e.currentTarget=t?M.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function d(e){return!!e._dispatchListeners}var f,p,h=n(11),m=n(165),_=(n(7),n(12),{injectComponentTree:function(e){f=e},injectTreeTraversal:function(e){p=e}}),M={isEndish:r,isMoveish:a,isStartish:i,executeDirectDispatch:l,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:u,hasDispatches:d,getInstanceFromNode:function(e){return f.getInstanceFromNode(e)},getNodeFromInstance:function(e){return f.getNodeFromInstance(e)},isAncestor:function(e,t){return p.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return p.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return p.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return p.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,a){return p.traverseEnterLeave(e,t,n,r,a)},injection:_};e.exports=M},function(e,t,n){"use strict";var r,a=n(31),i=n(170),o=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=n(171),u=c(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+t+"</svg>";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(a.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=u},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=p++,d[e[m]]={}),d[e[m]]}var a,i=n(17),o=n(164),s=n(541),c=n(210),u=n(542),l=n(167),d={},f=!1,p=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),_=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(_.handleTopLevel),_.ReactEventListener=e}},setEnabled:function(e){_.ReactEventListener&&_.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!_.ReactEventListener||!_.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),i=o.registrationNameDependencies[e],s=0;s<i.length;s++){var c=i[s];a.hasOwnProperty(c)&&a[c]||("topWheel"===c?l("wheel")?_.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):l("mousewheel")?_.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):_.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===c?l("scroll",!0)?_.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):_.ReactEventListener.trapBubbledEvent("topScroll","scroll",_.ReactEventListener.WINDOW_HANDLE):"topFocus"===c||"topBlur"===c?(l("focus",!0)?(_.ReactEventListener.trapCapturedEvent("topFocus","focus",n),_.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):l("focusin")&&(_.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),_.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),a.topBlur=!0,a.topFocus=!0):h.hasOwnProperty(c)&&_.ReactEventListener.trapBubbledEvent(c,h[c],n),a[c]=!0)}},trapBubbledEvent:function(e,t,n){return _.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return _.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===a&&(a=_.supportsEventPageXY()),!a&&!f){var e=c.refreshScrollValues;_.ReactEventListener.monitorScrollValue(e),f=!0}}});e.exports=_},function(e,t,n){"use strict";function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function a(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function i(){return window.location.href.split("#")[1]||""}function o(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function s(){return window.location.pathname+window.location.search+window.location.hash}function c(e){e&&window.history.go(e)}function u(e,t){t(window.confirm(e))}function l(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}function d(){return-1===navigator.userAgent.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=r,t.removeEventListener=a,t.getHashPath=i,t.replaceHashPath=o,t.getWindowPath=s,t.go=c,t.getUserConfirmation=u,t.supportsHistory=l,t.supportsGoWithoutReloadUsingHash=d},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||a(e,t,n)}var a=n(133),i=n(108),o=Object.prototype,s=o.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){if(!i(e))return!1;var t=a(e);return t==s||t==c||t==o||t==u}var a=n(74),i=n(42),o="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},function(e,t){function n(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,a=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){var r=n(658),a=n(477),i=n(659),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},function(e,t,n){var r=n(53),a=n(666),i=n(191),o=n(189)("IE_PROTO"),s=function(){},c=function(){var e,t=n(187)("iframe"),r=i.length;for(t.style.display="none",n(291).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=c(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(185),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t,n){function r(e,t){t=a(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[i(t[n++])];return n&&n==r?e:void 0}var a=n(101),i=n(92);e.exports=r},function(e,t,n){var r=n(225),a=n(750),i=a(r);e.exports=i},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(1),i=r(a),o=n(13),s=r(o),c=n(69),u=r(c),l=n(115),d=r(l),f=n(61),p=r(f);n(501),t.default=i.default.createClass({displayName:"SimpleNotice",dismissTimeout:null,getDefaultProps:function(){return{duration:0,status:null,showDismiss:!0,className:"",onDismissClick:u.default}},propTypes:{status:a.PropTypes.string,showDismiss:a.PropTypes.bool,isCompact:a.PropTypes.bool,duration:i.default.PropTypes.number,text:a.PropTypes.oneOfType([a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.node]),a.PropTypes.arrayOf(a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.node]))]),icon:a.PropTypes.string,className:a.PropTypes.string},componentDidMount:function(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))},componentWillUnmount:function(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)},getIcon:function(){var e=void 0;switch(this.props.status){case"is-info":e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice";break;default:e="info"}return e},render:function(){var e=this.props,t=e.status,n=e.className,r=e.isCompact,a=e.showDismiss,o=(0,s.default)("dops-notice",t,n,{"is-compact":r,"is-dismissable":a}),c=this.props,u=c.icon,l=c.text,f=c.children,h=c.onDismissClick,m=c.dismissText;return i.default.createElement("div",{className:o},i.default.createElement(p.default,{className:"dops-notice__icon",icon:u||this.getIcon(),size:24}),i.default.createElement("span",{className:"dops-notice__content"},i.default.createElement("span",{className:"dops-notice__text"},l||f)),l?f:null,a&&i.default.createElement("span",{role:"button",tabIndex:"0",onClick:h,onKeyDown:(0,d.default)(h),className:"dops-notice__dismiss"},i.default.createElement(p.default,{icon:"cross",size:24}),i.default.createElement("span",{className:"screen-reader-text"},m)))}}),e.exports=t.default},function(e,t,n){function r(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var a=n(33).Buffer,i=n(836).Transform,o=n(839).StringDecoder;n(18)(r,i),r.prototype.update=function(e,t,n){"string"==typeof e&&(e=a.from(e,t));var r=this._update(e);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},r.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},r.prototype._finalOrDigest=function(e){var t=this.__final()||a.alloc(0);return e&&(t=this._toString(t,e,!0)),t},r.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=r},function(e,t,n){"use strict";function r(){if(s)for(var e in c){var t=c[e],n=s.indexOf(e);if(n>-1||o("96",e),!u.plugins[n]){t.extractEvents||o("97",e),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(r[i],t,i)||o("98",i,e)}}}function a(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&o("99",n),u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&o("100",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var o=n(11),s=(n(7),null),c={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&o("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];c.hasOwnProperty(n)&&c[n]===a||(c[n]&&o("102",n),c[n]=a,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var a=u.registrationNameModules[n[r]];if(a)return a}}return null},_resetEventPlugins:function(){s=null;for(var e in c)c.hasOwnProperty(e)&&delete c[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=u},function(e,t,n){"use strict";function r(e,t,n){try{t(n)}catch(e){null===a&&(a=e)}}var a=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(a){var e=a;throw a=null,e}}};e.exports=i},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&a&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var a,i=n(31);i.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function a(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=a},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function a(e,t,n){l.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):m(e,t,n)}function o(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],c(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var a=t;;){var i=a.nextSibling;if(m(e,a,r),a===n)break;a=i}}function c(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,a=e.nextSibling;a===t?n&&m(r,document.createTextNode(n),a):n?(h(a,n),c(r,a,t)):c(r,e,t)}var l=n(98),d=n(526),f=(n(19),n(44),n(171)),p=n(151),h=n(238),m=f(function(e,t,n){e.insertBefore(t,n)}),_=d.dangerouslyReplaceNodeWithMarkup,M={dangerouslyReplaceNodeWithMarkup:_,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=0;n<t.length;n++){var s=t[n];switch(s.type){case"INSERT_MARKUP":a(e,s.content,r(e,s.afterNode));break;case"MOVE_EXISTING":i(e,s.fromNode,r(e,s.afterNode));break;case"SET_MARKUP":p(e,s.content);break;case"TEXT_CONTENT":h(e,s.content);break;case"REMOVE_NODE":o(e,s.fromNode)}}}};e.exports=M},function(e,t,n){"use strict";var r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};e.exports=r},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink&&s("87")}function a(e){r(e),(null!=e.value||null!=e.onChange)&&s("88")}function i(e){r(e),(null!=e.checked||null!=e.onChange)&&s("89")}function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(11),c=n(544),u=n(242),l=n(86),d=u(l.isValidElement),f=(n(7),n(12),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),p={value:function(e,t,n){return!e[t]||f[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:d.func},h={},m={checkPropTypes:function(e,t,n){for(var r in p){if(p.hasOwnProperty(r))var a=p[r](t,r,e,"prop",null,c);if(a instanceof Error&&!(a.message in h)){h[a.message]=!0;o(n)}}},getValue:function(e){return e.valueLink?(a(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(a(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=m},function(e,t,n){"use strict";var r=n(11),a=(n(7),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){a&&r("104"),i.replaceNodeWithMarkup=e.replaceNodeWithMarkup,i.processChildrenUpdates=e.processChildrenUpdates,a=!0}}};e.exports=i},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function a(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=0;o<n.length;o++)if(!i.call(t,n[o])||!r(e[n[o]],t[n[o]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;e.exports=a},function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function a(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:r,unescape:a};e.exports=i},function(e,t,n){"use strict";var r=(n(17),n(37)),a=(n(12),r);e.exports=a},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){function r(e){if(!o(e)||a(e)!=s)return!1;var t=i(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}var a=n(74),i=n(179),o=n(66),s="[object Object]",c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=l.call(Object);e.exports=r},function(e,t,n){var r=n(266),a=r(Object.getPrototypeOf,Object);e.exports=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.router=t.routes=t.route=t.components=t.component=t.location=t.history=t.falsy=t.locationShape=t.routerShape=void 0;var a=n(1),i=n(131),o=(r(i),n(75)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o),c=n(23),u=(r(c),a.PropTypes.func),l=a.PropTypes.object,d=a.PropTypes.shape,f=a.PropTypes.string,p=t.routerShape=d({push:u.isRequired,replace:u.isRequired,go:u.isRequired,goBack:u.isRequired,goForward:u.isRequired,setRouteLeaveHook:u.isRequired,isActive:u.isRequired}),h=t.locationShape=d({pathname:f.isRequired,search:f.isRequired,state:l,action:f.isRequired,key:f}),m=t.falsy=s.falsy,_=t.history=s.history,M=t.location=h,b=t.component=s.component,g=t.components=s.components,v=t.route=s.route,y=(t.routes=s.routes,t.router=p),A={falsy:m,history:_,location:M,component:b,components:g,route:v,router:y};t.default=A},function(e,t,n){"use strict";function r(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var a=n(46);!function(e){e&&e.__esModule}(a);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e,t){function n(t){var n=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],a=void 0;return n&&!0!==n||null!==r?(t={pathname:t,query:n},a=r||!1):(t=e.createLocation(t),a=n),(0,f.default)(t,a,g.location,g.routes,g.params)}function r(e,n){v&&v.location===e?i(v,n):(0,_.default)(t,e,function(t,r){t?n(t):r?i(o({},r,{location:e}),n):n()})}function i(e,t){function n(n,a){if(n||a)return r(n,a);(0,h.default)(e,function(n,r){n?t(n):t(null,null,g=o({},e,{components:r}))})}function r(e,n){e?t(e):t(null,n)}var a=(0,u.default)(g,e),i=a.leaveRoutes,s=a.changeRoutes,c=a.enterRoutes;(0,l.runLeaveHooks)(i,g),i.filter(function(e){return-1===c.indexOf(e)}).forEach(m),(0,l.runChangeHooks)(s,g,e,function(t,a){if(t||a)return r(t,a);(0,l.runEnterHooks)(c,e,n)})}function s(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];return e.__id__||t&&(e.__id__=y++)}function c(e){return e.reduce(function(e,t){return e.push.apply(e,A[s(t)]),e},[])}function d(e,n){(0,_.default)(t,e,function(t,r){if(null==r)return void n();v=o({},r,{location:e});for(var a=c((0,u.default)(g,v).leaveRoutes),i=void 0,s=0,l=a.length;null==i&&s<l;++s)i=a[s](e);n(i)})}function p(){if(g.routes){for(var e=c(g.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&n<r;++n)t=e[n]();return t}}function m(e){var t=s(e,!1);t&&(delete A[t],a(A)||(w&&(w(),w=null),E&&(E(),E=null)))}function M(t,n){var r=s(t),i=A[r];if(i)-1===i.indexOf(n)&&i.push(n);else{var o=!a(A);A[r]=[n],o&&(w=e.listenBefore(d),e.listenBeforeUnload&&(E=e.listenBeforeUnload(p)))}return function(){var e=A[r];if(e){var a=e.filter(function(e){return e!==n});0===a.length?m(t):A[r]=a}}}function b(t){return e.listen(function(n){g.location===n?t(null,g):r(n,function(n,r,a){n?t(n):r?e.replace(r):a&&t(null,a)})})}var g={},v=void 0,y=1,A=Object.create(null),w=void 0,E=void 0;return{isActive:n,match:r,listenBeforeLeavingRoute:M,listen:b}}t.__esModule=!0;var o=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};t.default=i;var s=n(23),c=(r(s),n(624)),u=r(c),l=n(625),d=n(626),f=r(d),p=n(627),h=r(p),m=n(628),_=r(m);e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){function r(){if(o=!0,s)return void(u=[].concat(Array.prototype.slice.call(arguments)));n.apply(this,arguments)}function a(){if(!o&&(c=!0,!s)){for(s=!0;!o&&i<e&&c;)c=!1,t.call(this,i++,a,r);if(s=!1,o)return void n.apply(this,u);i>=e&&c&&(o=!0,n())}}var i=0,o=!1,s=!1,c=!1,u=void 0;a()}function a(e,t,n){function r(e,t,r){o||(t?(o=!0,n(t)):(i[e]=r,(o=++s===a)&&n(null,i)))}var a=e.length,i=[];if(0===a)return n(null,i);var o=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=r,t.mapAsync=a},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(48),a=n(35).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},function(e,t,n){var r=n(48);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(190)("keys"),a=n(136);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(35),a=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){t.f=n(32)},function(e,t,n){var r=n(35),a=n(21),i=n(135),o=n(192),s=n(47).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){},function(e,t,n){var r=n(112),a=n(32)("toStringTag"),i="Arguments"==r(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=o(t=Object(e),a))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(77),a=n(45),i=r(a,"Map");e.exports=i},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var a=n(697),i=n(704),o=n(706),s=n(707),c=n(708);r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=s,r.prototype.set=c,e.exports=r},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new a(t).set(new a(e)),t}var a=n(304);e.exports=r},function(e,t,n){function r(e,t){if(a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var a=n(26),i=n(146),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return!!e.jetpack.modules.requests.fetchingModulesList}function i(e,t){return!!e.jetpack.modules.requests.activating[t]}function o(e,t){return!!e.jetpack.modules.requests.deactivating[t]}function s(e,t,n){return(0,y.default)(e.jetpack.modules.requests.updatingOption,[t,n],!1)}function c(e,t,n){return(0,y.default)(e.jetpack.modules.items,[t,"options",n,"current_value"])}function u(e,t,n){return(0,y.default)(e.jetpack.modules.items,[t,"options",n,"enum_labels"],!1)}function l(e){return e.jetpack.modules.items}function d(e,t){return(0,y.default)(e.jetpack.modules.items,t,{})}function f(e,t){return(0,_.default)(e.jetpack.modules.items).filter(function(n){return-1!==e.jetpack.modules.items[n].feature.indexOf(t)}).map(function(t){return e.jetpack.modules.items[t]})}function p(e){return(0,_.default)(e.jetpack.modules.items).filter(function(t){return e.jetpack.modules.items[t].requires_connection})}function h(e,t){return!!(0,y.default)(e.jetpack.modules.items,[t,"activated"],!1)}Object.defineProperty(t,"__esModule",{value:!0}),t.reducer=t.requests=t.initialRequestsState=t.items=void 0;var m=n(80),_=r(m),M=n(49),b=r(M);t.isFetchingModulesList=a,t.isActivatingModule=i,t.isDeactivatingModule=o,t.isUpdatingModuleOption=s,t.getModuleOption=c,t.getModuleOptionValidValues=u,t.getModules=l,t.getModule=d,t.getModulesByFeature=f,t.getModulesThatRequireConnection=p,t.isModuleActivated=h;var g=n(20),v=n(24),y=r(v),A=n(25),w=r(A),E=n(16),k=t.items=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case E.JETPACK_SET_INITIAL_STATE:return(0,w.default)({},t.initialState.getModules);case E.JETPACK_MODULES_LIST_RECEIVE:return(0,w.default)({},e,t.modules);case E.JETPACK_MODULE_ACTIVATE_SUCCESS:return(0,w.default)({},e,(0,b.default)({},t.module,(0,w.default)({},e[t.module],{activated:!0})));case E.JETPACK_MODULE_DEACTIVATE_SUCCESS:return(0,w.default)({},e,(0,b.default)({},t.module,(0,w.default)({},e[t.module],{activated:!1})));case E.JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS:var n=(0,w.default)({},e[t.module]);return(0,_.default)(t.newOptionValues).forEach(function(e){n.options[e].current_value=t.newOptionValues[e]}),(0,w.default)({},e,(0,b.default)({},t.module,n));default:return e}},T=t.initialRequestsState={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},L=t.requests=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments[1];switch(t.type){case E.JETPACK_MODULES_LIST_FETCH:return(0,w.default)({},e,{fetchingModulesList:!0});case E.JETPACK_MODULES_LIST_FETCH_FAIL:case E.JETPACK_MODULES_LIST_RECEIVE:return(0,w.default)({},e,{fetchingModulesList:!1});case E.JETPACK_MODULE_ACTIVATE:return(0,w.default)({},e,{
|
30 |
g.translate)("An Automattic Airline")),m.default.createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),m.default.createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),m.default.createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})))),m.default.createElement("ul",{className:"jp-footer__links"},m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{onClick:this.trackVersionClick,href:"https://jetpack.com",target:"_blank",rel:"noopener noreferrer",className:"jp-footer__link",title:(0,g.translate)("Jetpack version")},n?(0,g.translate)("Jetpack version %(version)s",{args:{version:n}}):(0,g.translate)("Jetpack"))),m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{onClick:this.trackTermsClick,href:"https://wordpress.com/tos/",target:"_blank",rel:"noopener noreferrer",title:(0,g.translate)("WordPress.com Terms of Service"),className:"jp-footer__link"},(0,g.translate)("Terms",{context:"Shorthand for Terms of Service."}))),m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{onClick:this.trackPrivacyClick,href:"https://automattic.com/privacy/",target:"_blank",rel:"noopener noreferrer",title:(0,g.translate)("Automattic's Privacy Policy"),className:"jp-footer__link"},(0,g.translate)("Privacy",{context:"Shorthand for Privacy Policy."}))),function(){if(e.props.userCanManageOptions)return m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{onClick:e.trackDebugClick,href:e.props.siteAdminUrl+"admin.php?page=jetpack-debugger",title:(0,g.translate)("Test your site’s compatibility with Jetpack."),className:"jp-footer__link"},(0,g.translate)("Debug",{context:"Navigation item. Noun. Links to a debugger tool for Jetpack."})))}(),function(){return e.props.isDevVersion&&e.props.userCanManageOptions?m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,S.default)(e.resetOnClick),onClick:e.resetOnClick,className:"jp-footer__link"},(0,g.translate)("Reset Options (dev only)",{context:"Navigation item."}))):""}(),function(){return e.props.isDevVersion?m.default.createElement("li",{className:"jp-footer__link-item"},m.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,S.default)(e.props.enableDevCard),onClick:e.props.enableDevCard,className:"jp-footer__link"},(0,g.translate)("Dev Tools",{context:"Navigation item."}))):""}(),function(){if(e.props.isDevVersion&&e.props.displayDevCard)return m.default.createElement(T.default,null)}()))}}]),t}(m.default.Component);C.displayName="Footer",t.default=(0,_.connect)(function(e){return{currentVersion:(0,A.getCurrentVersion)(e),userCanManageOptions:(0,A.userCanManageOptions)(e),isDevVersion:(0,A.isDevVersion)(e),siteAdminUrl:(0,A.getSiteAdminUrl)(e),isInIdentityCrisis:(0,E.isInIdentityCrisis)(e),displayDevCard:(0,w.canDisplayDevCard)(e)}},function(e){return{resetOptions:function(){return e((0,w.resetOptions)("options"))},enableDevCard:function(){return e((0,w.enableDevCard)())}}})(C)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchRewindState=t.switchThreats=t.switchUserPermission=t.switchPlanPreview=t.disableDevCard=t.enableDevCard=t.resetOptions=void 0;var r=n(123),a=n(8),i=n(16),o=n(60),s=function(e){return e&&e.__esModule?e:{default:e}}(o),c=(t.resetOptions=function(e){return function(t){return t({type:i.RESET_OPTIONS}),t((0,r.createNotice)("is-info",(0,a.translate)("Resetting Jetpack options…"),{id:"reset-options"})),s.default.resetOptions(e).then(function(){t({type:i.RESET_OPTIONS_SUCCESS}),t((0,r.removeNotice)("reset-options")),t((0,r.createNotice)("is-success",(0,a.translate)("Options reset."),{id:"reset-options",duration:2e3}))}).catch(function(e){t({type:i.RESET_OPTIONS_FAIL,error:e}),t((0,r.removeNotice)("reset-options")),t((0,r.createNotice)("is-error",(0,a.translate)("Options failed to reset."),{id:"reset-options"}))})}},t.enableDevCard=function(){return function(e){e({type:i.DEV_CARD_DISPLAY})}},t.disableDevCard=function(){return function(e){e({type:i.DEV_CARD_HIDE})}},t.switchPlanPreview=function(e){return function(t){t({type:i.JETPACK_SITE_DATA_FETCH_RECEIVE,siteData:{plan:{product_slug:e}}})}},{currentUser:{isMaster:!0,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}}),u={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},l={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!0,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},d={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!1,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},f={currentUser:{permissions:{view_stats:!0}}},p={currentUser:{permissions:{view_stats:!1}}},h={currentUser:{isConnected:!0}},m={currentUser:{isConnected:!1}};t.switchUserPermission=function(e){var t={};return function(n){switch(e){case"admin_master":t=c;break;case"admin_secondary":t=u;break;case"editor":case"contributor":case"author":t=l;break;case"subscriber":t=d;break;case"view_stats":t=f;break;case"hide_stats":t=p;break;case"is_linked":t=h;break;case"is_unlinked":t=m}n({type:i.MOCK_SWITCH_USER_PERMISSIONS,initialState:t})}},t.switchThreats=function(e){return function(t){t({type:i.MOCK_SWITCH_THREATS,mockCount:e})}},t.switchRewindState=function(e){return function(t){t({type:i.MOCK_SWITCH_REWIND_STATE,rewindState:{state:e}})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DevCard=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(1),m=r(h),_=n(9),M=n(13),b=r(M),g=n(55),v=n(24),y=r(v),A=n(28),w=n(64),E=n(22),k=n(467),T=n(62),L=n(30),S=r(L),C=n(115),z=r(C),O=n(468),N=t.DevCard=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.onPlanChange=function(e){r.props.switchPlanPreview(e.target.value)},r.onPermissionsChange=function(e){r.props.switchUserPermissions(e.target.value)},r.onThreatsChange=function(e){r.props.switchThreats(e.target.value)},r.onRewindStatusChange=function(e){r.props.switchRewindState(e.target.value)},r.maybeShowStatsToggle=function(){if(!r.props.isAdmin)return m.default.createElement("div",null,m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"view_stats"},m.default.createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:r.props.canViewStats,onChange:r.onPermissionsChange}),"Can view stats")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"hide_stats"},m.default.createElement("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!r.props.canViewStats,onChange:r.onPermissionsChange}),"Can not view stats"))))},r.maybeShowIsLinkedToggle=function(){if(!r.props.isMaster)return m.default.createElement("div",null,m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"is_linked"},m.default.createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:r.props.isUserLinked,onChange:r.onPermissionsChange}),"Linked")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"is_unlinked"},m.default.createElement("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!r.props.isUserLinked,onChange:r.onPermissionsChange}),"Unlinked"))))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.canDisplayDevCard)return null;var e=(0,b.default)(this.props.className,"jp-dev-card"),t=(0,g.getPlanClass)(this.props.sitePlan.product_slug),n=(0,y.default)(this.props.rewindStatus,["state"],!1);return m.default.createElement(S.default,{compact:!0,className:e},m.default.createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,z.default)(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),m.default.createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"jetpack_free"},m.default.createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"jetpack_personal"},m.default.createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"jetpack_premium"},m.default.createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"jetpack_business"},m.default.createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro"))),m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"admin_master"},m.default.createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (master)")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"admin_secondary"},m.default.createElement("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (secondary)")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"editor"},m.default.createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"subscriber"},m.default.createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"nothreats"},m.default.createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"threats"},m.default.createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),m.default.createElement("hr",null),m.default.createElement("ul",null,m.default.createElement("strong",null,"Rewind"),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"rewindUnavailable"},m.default.createElement("input",{type:"radio",id:"rewindUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===n,onChange:this.onRewindStatusChange}),"Unavailable")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"rewindAvailable"},m.default.createElement("input",{type:"radio",id:"rewindAvailable",value:"available",name:"available",checked:"unavailable"!==n&&"active"!==n,onChange:this.onRewindStatusChange}),"Available")),m.default.createElement("li",null,m.default.createElement("label",{htmlFor:"rewindActive"},m.default.createElement("input",{type:"radio",id:"rewindActive",value:"active",name:"active",checked:"active"===n,onChange:this.onRewindStatusChange}),"Active"))),this.maybeShowStatsToggle(),this.maybeShowIsLinkedToggle())}}]),t}(m.default.Component);N.displayName="DevCard",t.default=(0,_.connect)(function(e){return{isDevVersion:(0,A.isDevVersion)(e),sitePlan:(0,w.getSitePlan)(e),canDisplayDevCard:(0,k.canDisplayDevCard)(e),isUserLinked:(0,E.isCurrentUserLinked)(e),canViewStats:(0,A.userCanViewStats)(e),isMaster:(0,A.userIsMaster)(e),isAdmin:(0,A.userCanDisconnectSite)(e),canEditPosts:(0,A.userCanEditPosts)(e),getVaultPressScanThreatCount:function(){return(0,T.getVaultPressScanThreatCount)(e)},rewindStatus:(0,O.getRewindStatus)(e)}},function(e){return{switchPlanPreview:function(t){return e((0,k.switchPlanPreview)(t))},switchUserPermissions:function(t){return e((0,k.switchUserPermission)(t))},switchThreats:function(t){return e((0,k.switchThreats)(parseInt(t)))},disableDevCard:function(){return e((0,k.disableDevCard)())},switchRewindState:function(t){return e((0,k.switchRewindState)(t))}}})(N)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchRewindStatus=void 0;var r=n(16),a=n(60),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.fetchRewindStatus=function(){return function(e){return e({type:r.REWIND_STATUS_FETCH}),i.default.fetchRewindStatus().then(function(t){return e({type:r.REWIND_STATUS_FETCH_RECEIVE,status:t}),t}).catch(function(t){e({type:r.REWIND_STATUS_FETCH_FAIL,error:t})})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dismissJetpackActionNotice=t.dismissJetpackNotice=void 0;var r=n(16),a=n(60),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.dismissJetpackNotice=function(e){return function(t){return t({type:r.JETPACK_NOTICES_DISMISS,notice:e}),i.default.dismissJetpackNotice(e).then(function(e){t({type:r.JETPACK_NOTICES_DISMISS_SUCCESS,dismissedNotices:e,success:!0})}).catch(function(e){t({type:r.JETPACK_NOTICES_DISMISS_FAIL,error:e})})}},t.dismissJetpackActionNotice=function(e){return function(t){t({type:r.JETPACK_ACTION_NOTICES_DISMISS,notice:e})}}},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function a(e){return e?e.nodeType===P?e.documentElement:e.firstChild:null}function i(e){return e.getAttribute&&e.getAttribute(O)||""}function o(e,t,n,r,a){var i;if(y.logTopLevelRenders){var o=e._currentElement.props.child,s=o.type;i="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(i)}var c=E.mountComponent(e,n,null,g(e,t),a,0);i&&console.timeEnd(i),e._renderedComponent._topLevelWrapper=e,I._mountImageIntoNode(c,t,e,r,n)}function s(e,t,n,r){var a=T.ReactReconcileTransaction.getPooled(!n&&v.useCreateElement);a.perform(o,null,e,t,a,n,r),T.ReactReconcileTransaction.release(a)}function c(e,t,n){for(E.unmountComponent(e,n),t.nodeType===P&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function u(e){var t=a(e);if(t){var n=b.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function l(e){return!(!e||e.nodeType!==D&&e.nodeType!==P&&e.nodeType!==x)}function d(e){var t=a(e),n=t&&b.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function f(e){var t=d(e);return t?t._hostContainerInfo._topLevelWrapper:null}var p=n(11),h=n(98),m=n(93),_=n(86),M=n(152),b=(n(65),n(19)),g=n(592),v=n(914),y=n(469),A=n(130),w=(n(44),n(593)),E=n(96),k=n(212),T=n(50),L=n(129),S=n(250),C=(n(7),n(151)),z=n(211),O=(n(12),m.ID_ATTRIBUTE_NAME),N=m.ROOT_ATTRIBUTE_NAME,D=1,P=9,x=11,j={},R=1,Y=function(){this.rootID=R++};Y.prototype.isReactComponent={},Y.prototype.render=function(){return this.props.child},Y.isReactTopLevelWrapper=!0;var I={TopLevelWrapper:Y,_instancesByReactRootID:j,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,a){return I.scrollMonitor(r,function(){k.enqueueElementInternal(e,t,n),a&&k.enqueueCallbackInternal(e,a)}),e},_renderNewRootComponent:function(e,t,n,r){l(t)||p("37"),M.ensureScrollValueMonitoring();var a=S(e,!1);T.batchedUpdates(s,a,t,n,r);var i=a._instance.rootID;return j[i]=a,a},renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&A.has(e)||p("38"),I._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){k.validateCallback(r,"ReactDOM.render"),_.isValidElement(t)||p("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var o,s=_.createElement(Y,{child:t});if(e){var c=A.get(e);o=c._processChildContext(c._context)}else o=L;var l=f(n);if(l){var d=l._currentElement,h=d.props.child;if(z(h,t)){var m=l._renderedComponent.getPublicInstance(),M=r&&function(){r.call(m)};return I._updateRootComponent(l,s,o,n,M),m}I.unmountComponentAtNode(n)}var b=a(n),g=b&&!!i(b),v=u(n),y=g&&!l&&!v,w=I._renderNewRootComponent(s,n,y,o)._renderedComponent.getPublicInstance();return r&&r.call(w),w},render:function(e,t,n){return I._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||p("40");var t=f(e);if(!t){u(e),1===e.nodeType&&e.hasAttribute(N);return!1}return delete j[t._instance.rootID],T.batchedUpdates(c,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,o){if(l(t)||p("41"),i){var s=a(t);if(w.canReuseMarkup(e,s))return void b.precacheNode(n,s);var c=s.getAttribute(w.CHECKSUM_ATTR_NAME);s.removeAttribute(w.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(w.CHECKSUM_ATTR_NAME,c);var d=e,f=r(d,u),m=" (client) "+d.substring(f-20,f+20)+"\n (server) "+u.substring(f-20,f+20);t.nodeType===P&&p("42",m)}if(t.nodeType===P&&p("43"),o.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else C(t,e),b.precacheNode(n,t.firstChild)}};e.exports=I},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===a.COMPOSITE;)e=e._renderedComponent;return t===a.HOST?e._renderedComponent:t===a.EMPTY?null:void 0}var a=n(470);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){function t(t){var n=e();if("string"==typeof n)return(t||window.event).returnValue=n,n}return u.addEventListener(window,"beforeunload",t),function(){u.removeEventListener(window,"beforeunload",t)}}function i(e){return function(t){function n(){for(var e=void 0,t=0,n=f.length;null==e&&t<n;++t)e=f[t].call();return e}function r(e){return f.push(e),1===f.length&&c.canUseDOM&&(l=a(n)),function(){f=f.filter(function(t){return t!==e}),0===f.length&&l&&(l(),l=null)}}function i(e){c.canUseDOM&&-1===f.indexOf(e)&&(f.push(e),1===f.length&&(l=a(n)))}function s(e){f.length>0&&(f=f.filter(function(t){return t!==e}),0===f.length&&l())}var u=e(t),l=void 0,f=[];return o({},u,{listenBeforeUnload:r,registerBeforeUnloadHook:d.default(i,"registerBeforeUnloadHook is deprecated; use listenBeforeUnload instead"),unregisterBeforeUnloadHook:d.default(s,"unregisterBeforeUnloadHook is deprecated; use the callback returned from listenBeforeUnload instead")})}}t.__esModule=!0;var o=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},s=n(46),c=(r(s),n(116)),u=n(153),l=n(106),d=r(l);t.default=i,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.Navigation=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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(855),v=r(g),y=n(799),A=r(y),w=n(804),E=r(w),k=n(8),T=n(14),L=r(T),S=n(27),C=n(28),z=t.Navigation=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.trackNavClick=function(e){L.default.tracks.recordJetpackClick({target:"nav_item",path:e})},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=void 0;return t=this.props.userCanManageModules?M.default.createElement(A.default,{selectedText:this.props.route.name},M.default.createElement(E.default,{path:"#/dashboard",onClick:function(){return e.trackNavClick("dashboard")},selected:"/dashboard"===this.props.route.path||"/"===this.props.route.path},(0,k.translate)("At a Glance",{context:"Navigation item."})),M.default.createElement(E.default,{path:"#/plans",onClick:function(){return e.trackNavClick("plans")},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(E.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",{className:"dops-navigation"},M.default.createElement(v.default,{selectedText:this.props.route.name},t))}}]),t}(M.default.Component);z.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)}}})(z)},function(e,t,n){"use strict";var r=n(1),a=n(927),i=n(13),o=n(799),s=n(804),c=n(858);n(938);var u=r.createClass({displayName:"SectionNav",propTypes:{children:r.PropTypes.node,selectedText:r.PropTypes.node,selectedCount:r.PropTypes.number,hasPinnedItems:r.PropTypes.bool,onMobileNavPanelOpen:r.PropTypes.func},getInitialState:function(){return{mobileOpen:!1}},getDefaultProps:function(){return{onMobileNavPanelOpen:function(){}}},componentWillMount:function(){this.checkForSiblingControls(this.props.children)},componentWillReceiveProps:function(e){a(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())},render:function(){var e,t=this.getChildren();return t?(e=i({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),r.createElement("div",{className:e},r.createElement("div",{className:"dops-section-nav__mobile-header",onTouchTap:this.toggleMobileOpenState},r.createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),r.createElement("div",{className:"dops-section-nav__panel"},t))):(e=i({"dops-section-nav":!0,"is-empty":!0}),r.createElement("div",{className:e},r.createElement("div",{className:"dops-section-nav__panel"},r.createElement(s,null))))},getChildren:function(){return r.Children.map(this.props.children,function(e){var t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==o||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===o&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===c&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),r.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,r.Children.forEach(e,function(e,t){t&&e&&e.type!==c&&(this.hasSiblingControls=!0)}.bind(this))}});e.exports=u},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(149),m=r(h),_=n(1),M=r(_),b=n(495),g=r(b),v=n(450),y=r(v),A=n(496),w=r(A),E=n(929),k=r(E),T=n(931),L=r(T),S=n(13),C=r(S),z=n(857),O=r(z),N=n(933),D=r(N),P=n(934),x=r(P),j=n(800),R=r(j);n(935);var Y=M.default.Component,I=M.default.PropTypes,q=function(){},B=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,g.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?M.default.Children.map(this.props.children,function(n,r){if(!n)return null;var a=M.default.cloneElement(n,{ref:n.type===O.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===O.default&&e++,a},this):this.props.options.map(function(t,n){if(!t)return M.default.createElement(D.default,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(t.isLabel)return M.default.createElement(x.default,{key:"dropdown-label-"+this.state.instanceId+"-"+n},t.label);var r=M.default.createElement(O.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,C.default)(e),n=this.props.selectedText?this.props.selectedText:(0,L.default)((0,g.default)(this.props.options,{value:this.state.selected}),"label");return M.default.createElement("div",{style:this.props.style,className:t},M.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},M.default.createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},M.default.createElement("span",{className:"dops-select-dropdown__header-text"},n,"number"==typeof this.props.selectedCount&&M.default.createElement(R.default,{count:this.props.selectedCount}))),M.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){var t;this.state.isOpen&&(e.preventDefault(),t=e.shiftKey?"previous":"next",this.focusSibling(t))}},{key:"activateItem",value:function(){if(!this.state.isOpen)return this.openDropdown();document.activeElement.click()}},{key:"focusSibling",value:function(e){var t,n,r,a;this.state.isOpen&&(this.props.options.length?(n=(0,k.default)((0,y.default)(this.props.options,function(e){return e&&!e.isLabel}),"value"),r="number"==typeof this.focused?this.focused:n.indexOf(this.state.selected)):(n=(0,y.default)(this.props.children,function(e){return e.type===O.default}),r="number"==typeof this.focused?this.focused:(0,w.default)(n,function(e){return e.props.selected})),t="previous"===e?-1:1,
|
31 |
(a=r+t)>=n.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}(Y);B.defaultProps={options:[],onSelect:q,onToggle:q,disabled:!1,style:{}},B.propTypes={selectedText:I.string,selectedCount:I.number,initialSelected:I.string,className:I.string,style:I.object,onSelect:I.func,onToggle:I.func,focusSibling:I.func,tabIndex:I.number,disabled:I.bool,options:I.arrayOf(I.shape({value:I.string.isRequired,label:I.string.isRequired,path:I.string}))},B.instances=0,t.default=B,e.exports=t.default},function(e,t,n){"use strict";var r=n(1),a=n(13),i=n(800),o=r.createClass({displayName:"SelectDropdownItem",propTypes:{children:r.PropTypes.string.isRequired,path:r.PropTypes.string,selected:r.PropTypes.bool,onClick:r.PropTypes.func,count:r.PropTypes.number},getDefaultProps:function(){return{selected:!1}},render:function(){var e=a(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return r.createElement("li",{className:"dops-select-dropdown__option"},r.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},r.createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&r.createElement(i,{count:this.props.count}))))}});e.exports=o},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(10),o=r(i),s=n(149),c=r(s),u=n(1),l=r(u),d=n(13),f=r(d),p=n(497),h=r(p),m=n(69),_=r(m),M=n(14),b=r(M),g=n(859),v=r(g),y=n(61),A=r(y),w=n(803);n(937);var E=l.default.createClass({displayName:"Search",statics:{instances:0},propTypes:{additionalClasses:u.PropTypes.string,initialValue:u.PropTypes.string,placeholder:u.PropTypes.string,pinned:u.PropTypes.bool,delaySearch:u.PropTypes.bool,delayTimeout:u.PropTypes.number,onSearch:u.PropTypes.func.isRequired,onSearchChange:u.PropTypes.func,onSearchOpen:u.PropTypes.func,onSearchClose:u.PropTypes.func,analyticsGroup:u.PropTypes.string,overlayStyling:u.PropTypes.func,autoFocus:u.PropTypes.bool,disabled:u.PropTypes.bool,onKeyDown:u.PropTypes.func,onClick:u.PropTypes.func,disableAutocorrect:u.PropTypes.bool,onBlur:u.PropTypes.func,searching:u.PropTypes.bool,isOpen:u.PropTypes.bool,dir:u.PropTypes.oneOf(["ltr","rtl"]),fitsContainer:u.PropTypes.bool,maxLength:u.PropTypes.number,hideClose:u.PropTypes.bool},getInitialState:function(){return{keyword:this.props.initialValue||"",isOpen:!!this.props.isOpen,hasFocus:!1}},getDefaultProps:function(){return{pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:_.default,onSearchOpen:_.default,onSearchClose:_.default,onKeyDown:_.default,onClick:_.default,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1}},componentWillMount:function(){this.setState({instanceId:++E.instances}),this.closeListener=a.bind(this,"closeSearch"),this.openListener=a.bind(this,"openSearch")},componentWillReceiveProps:function(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?(0,h.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||""})},componentDidUpdate: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))},componentDidMount:function(){var e=this;this.onSearch=this.props.delaySearch?(0,h.default)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch,this.props.autoFocus&&setTimeout(function(){return e.focus()},0)},scrollOverlay:function(){var e=this;this.refs.overlay&&window.requestAnimationFrame(function(){e.refs.overlay&&e.refs.searchInput&&(e.refs.overlay.scrollLeft=e.getScrollLeft(e.refs.searchInput))})},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},focus:function(){var e=this;setTimeout(function(){return e.refs.searchInput&&c.default.findDOMNode(e.refs.searchInput).focus()},0)},blur:function(){c.default.findDOMNode(this.refs.searchInput).blur()},getCurrentSearchValue:function(){return c.default.findDOMNode(this.refs.searchInput).value},clear:function(){this.setState({keyword:""})},onBlur:function(e){this.props.onBlur&&this.props.onBlur(e),this.setState({hasFocus:!1})},onChange:function(){this.setState({keyword:this.getCurrentSearchValue()})},openSearch:function(e){this.props.onClick(),e.preventDefault(),this.setState({keyword:"",isOpen:!0}),b.default.ga.recordEvent(this.props.analyticsGroup,"Clicked Open Search")},closeSearch:function(e){if(e.preventDefault(),!this.props.disabled){var t=c.default.findDOMNode(this.refs.searchInput);this.setState({keyword:"",isOpen:this.props.isOpen||!1}),t.value="",t.blur(),this.props.pinned&&c.default.findDOMNode(this.refs.openIcon).focus(),this.props.onSearchClose(e),b.default.ga.recordEvent(this.props.analyticsGroup,"Clicked Close Search")}},keyUp:function(e){"Enter"===e.key&&(0,w.isMobile)()&&this.blur(),this.props.pinned&&("Escape"===e.key&&this.closeSearch(e),this.scrollOverlay())},keyDown:function(e){this.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&this.closeSearch(e),this.props.onKeyDown(e)},onFocus:function(){var e=c.default.findDOMNode(this.refs.searchInput),t=e.value;t&&(e.value="",e.value=t),this.setState({hasFocus:!0}),this.props.onSearchOpen()},render: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,f.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,f.default)("dops-search__input-fade",this.props.dir),c=(0,f.default)("dops-search__input",this.props.dir);return l.default.createElement("div",{dir:this.props.dir||null,className:i,role:"search"},l.default.createElement(v.default,null),l.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"},l.default.createElement(A.default,{icon:"search",className:"dops-search__open-icon"})),l.default.createElement("div",{className:s},l.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())},renderStylingDiv:function(){return l.default.createElement("div",{className:"dops-search__text-overlay",ref:"overlay"},this.props.overlayStyling(this.state.keyword))},closeButton:function(){return this.props.hideClose||!this.state.keyword&&!this.state.isOpen?null:l.default.createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:this.closeSearch,tabIndex:"0",onKeyDown:this.closeListener,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Close Search"},l.default.createElement(A.default,{icon:"cross",className:"dops-search__close-icon"}))}});e.exports=E},function(e,t,n){"use strict";(function(t){var r=n(1),a=n(13);n(936);var i;i=r.createClass({displayName:"Spinner",propTypes:{className:r.PropTypes.string,size:r.PropTypes.number,duration:r.PropTypes.number},statics:{instances:0},getDefaultProps:function(){return{size:20,duration:3e3}},componentWillMount:function(){this.setState({instanceId:++i.instances})},isSVGCSSAnimationSupported:function(){return!/(MSIE |Trident\/)/.test(t.window?t.window.navigator.userAgent:"")},getClassName:function(){return a("dops-spinner",this.props.className,{"is-fallback":!this.isSVGCSSAnimationSupported()})},renderFallback:function(){var e={width:this.props.size,height:this.props.size};return r.createElement("div",{className:this.getClassName(),style:e},r.createElement("span",{className:"dops-spinner__progress is-left"}),r.createElement("span",{className:"dops-spinner__progress is-right"}))},render:function(){var e=parseInt(this.state.instanceId,10);return this.isSVGCSSAnimationSupported()?r.createElement("div",{className:this.getClassName()},r.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()}}),e.exports=i}).call(t,n(51))},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(80),i=r(a),o=n(15),s=r(o),c=n(1),u=r(c),l=n(484),d=r(l),f=n(9),p=n(855),h=r(p),m=n(799),_=r(m),M=n(804),b=r(M),g=n(858),v=r(g),y=n(8),A=n(69),w=r(A),E=n(939),k=r(E),T=n(14),L=r(T),S=n(953),C=r(S),z=n(81),O=n(28),N=n(22),D=n(27),P=n(207),x=n(499),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(){var e=this;if(this.props.userCanManageModules)return u.default.createElement(v.default,{onClick:function(){return e.trackNavClick("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},render:function(){var e=this,t=void 0,n=void 0;return this.props.userCanManageModules?t=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:function(){return e.trackNavClick("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:function(){return e.trackNavClick("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:function(){return e.trackNavClick("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:function(){return e.trackNavClick("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:function(){return e.trackNavClick("security")},selected:"/security"===this.props.route.path},(0,y.translate)("Security",{context:"Navigation item."}))):this.props.isSubscriber?t=!1:(n=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.hasAnyOfThese(["publicize"])&&u.default.createElement(b.default,{path:"#sharing",onClick:function(){return e.trackNavClick("sharing")},selected:"/sharing"===this.props.route.path},(0,y.translate)("Sharing",{context:"Navigation item."})):"",t=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:function(){return e.trackNavClick("writing")},selected:"/writing"===this.props.route.path||"/settings"===this.props.route.path},(0,y.translate)("Writing",{context:"Navigation item."})),n)),u.default.createElement("div",{className:"dops-navigation"},u.default.createElement(j.default,null),u.default.createElement(h.default,{selectedText:this.props.route.name},t,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:w.default,searchHasFocus:!1},t.default=(0,f.connect)(function(e){return{userCanManageModules:(0,O.userCanManageModules)(e),isSubscriber:(0,O.userIsSubscriber)(e),userCanPublish:(0,O.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,z.getSearchTerm)(e)}},function(e){return{searchForTerm:function(t){return e((0,z.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(10),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(960),v=r(g),y=n(1098),A=r(y),w=n(1116),E=r(w),k=n(1125),T=r(k),L=n(1146),S=r(L),C=n(1150),z=r(C),O=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(E.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(z.default,{searchTerm:this.props.searchTerm}))}}]),t}(M.default.Component);O.displayName="SearchableSettings",t.default=O,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(1),i=r(a),o=n(13),s=r(o),c=n(30),u=r(c);n(968),t.default=i.default.createClass({displayName:"SectionHeader",propTypes:{label:i.default.PropTypes.string,cardBadge:i.default.PropTypes.oneOfType([i.default.PropTypes.string,i.default.PropTypes.element,i.default.PropTypes.object])},getDefaultProps:function(){return{label:"",cardBadge:""}},render:function(){var e=(0,s.default)(this.props.className,"dops-section-header"),t=""!==this.props.cardBadge?i.default.createElement("span",{className:"dops-section-header__card-badge"},this.props.cardBadge):"";return i.default.createElement(u.default,{compact:!0,className:(0,s.default)(e,{"has-card-badge":""!==this.props.cardBadge})},i.default.createElement("div",{className:"dops-section-header__label"},i.default.createElement("span",{className:"dops-section-header__label-text"},this.props.label),t),i.default.createElement("div",{className:"dops-section-header__actions"},this.props.children))}}),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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(8),v=n(43),y=r(v),A=n(162),w=r(A),E=n(502),k=r(E),T=n(14),L=r(T),S=n(24),C=r(S),z=n(28),O=n(499),N=r(O),D=n(831),P=r(D),x=n(864),j=r(x),R=n(22),Y=n(207),I=n(62),q=n(64),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.trackProStatusClick=function(e,t){L.default.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t})},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"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(w.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(w.default,{showDismiss:!1,status:n,isCompact:!0},a,i&&M.default.createElement(k.default,{onClick:function(){return r.trackProStatusClick(e,t)},href:o},i))},r.getSetUpButton=function(e){return M.default.createElement(y.default,{onClick:function(){return r.trackProStatusClick("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?"vaultpress/vaultpress.php":"akismet/akismet.php",a=/jetpack_personal*/.test(t.product_slug),i=/jetpack_free*/.test(t.product_slug),o=(0,C.default)(n,["data","features","backups"],!1),s=(0,C.default)(n,["data","features","security"],!1);return M.default.createElement("div",null,M.default.createElement(N.default,null),M.default.createElement(j.default,null),M.default.createElement(P.default,null),function(r,c,u){if(e.props.isDevMode)return"";if("rewind"===r)return e.getProActions("rewind_connected","rewind");if("backups"===r&&i&&!o&&e.props.isCompact)return e.getProActions("free","backups");if("scan"===r){if(e.props.fetchingSiteData||e.props.isFetchingVaultPressData)return"";if((i||a)&&!s)return e.props.isCompact?e.getProActions("free","scan"):a&&!o?e.getSetUpButton("backups"):"";if("N/A"!==n){if(!s)return e.getSetUpButton("scan");var l=e.props.getScanThreats();if(0!==l)return e.getProActions("threats","scan");if(0===l)return e.getProActions("secure","scan")}}if("akismet"===r){if(i&&(!c||!u))return e.props.isCompact?e.getProActions("free","anti-spam"):"";if(!e.props.isAkismetKeyValid&&!e.props.fetchingAkismetData&&c&&u)return e.getProActions("invalid_key","anti-spam")}return t.product_slug&&!i?c&&u?e.getProActions("active"):e.getSetUpButton(r):""}(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,z.getSiteRawUrl)(e),siteAdminUrl:(0,z.getSiteAdminUrl)(e),getScanThreats:function(){return(0,I.getVaultPressScanThreatCount)(e)},getVaultPressData:function(){return(0,I.getVaultPressData)(e)},getAkismetData:function(){return(0,I.getAkismetData)(e)},isFetchingVaultPressData:(0,I.isFetchingVaultPressData)(e),sitePlan:function(){return(0,q.getSitePlan)(e)},fetchingPluginsData:(0,Y.isFetchingPluginsData)(e),pluginActive:function(t){return(0,Y.isPluginActive)(e,t)},pluginInstalled:function(t){return(0,Y.isPluginInstalled)(e,t)},isDevMode:(0,R.isDevMode)(e),fetchingSiteData:(0,q.isFetchingSiteData)(e),isAkismetKeyValid:(0,I.isAkismetKeyValid)(e),fetchingAkismetData:(0,I.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(9),_=n(20),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(977),m=r(h),_=n(1),M=r(_),b=n(149),g=r(b),v=n(102),y=r(v),A=n(13),w=r(A),E=n(987),k=r(E),T=n(996),L=r(T),S=n(25),C=r(S),z=n(1084),O=r(z),N=n(1085);n(1094);var D=function(){},P=(0,y.default)("calypso:popover"),x=new m.default,j=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));return n.setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(n),n.setPosition=n.setPosition.bind(n),n.onClickout=n.onClickout.bind(n),n.onKeydown=n.onKeydown.bind(n),n.onWindowChange=n.onWindowChange.bind(n),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.bindEscKeyListener(),this.bindDebouncedReposition(),(0,N.bindWindowListeners)()}},{key:"componentWillReceiveProps",value:function(e){if((0,N.isElement)(e.context)?this.domContext=e.context:this.domContext=g.default.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e){var t=this.props.isVisible;return t!==e.isVisible&&(t?this.show():this.hide()),this.domContainer&&this.domContext&&t&&t!==e.isVisible?(this.debug("Update position after inject DOM"),void this.setPosition()):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),(0,N.unbindWindowListeners)(),x.delete(this.id),P("current popover instances: ",x.size)}},{key:"bindEscKeyListener",value:function(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}},{key:"unbindEscKeyListener",value:function(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=(0,k.default)(e,this.onClickout))):(this.debug("no element to bind clickout side "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=g.default.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,(0,N.isElement)(this.props.context)?this.domContext=this.props.context:this.domContext=g.default.findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}},{key:"getPositionClass",value:function(){return"is-"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position).replace(/\s+/g,"-")}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props.position;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var r=n;this.debug("position: %o",n),this.props.autoPosition&&(r=(0,N.suggested)(n,e,t),this.debug("suggested position: %o",r));var a=(0,C.default)({},(0,N.constrainLeft)((0,N.offset)(r,e,t),e),{positionClass:this.getPositionClass(r)});return this.debug("updating reposition: ",a),a}},{key:"debug",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];P.apply(void 0,["[%s] "+e,this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__"+(0,L.default)(16),x.add(this.id),this.debug("creating ..."),P("current popover instances: ",x.size)}},{key:"setPosition",value:function(){var e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o",this.props.showDelay+"ms"),this.clearShowTimer(),this._openDelayTimer=setTimeout(function(){e.setState({show:!0})},this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=(0,w.default)("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),M.default.createElement(O.default,{className:this.props.rootClassName},M.default.createElement("div",{
|
32 |
style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},M.default.createElement("div",{className:"dops-popover__arrow"}),M.default.createElement("div",{className:"dops-popover__inner"},this.props.children)))}}]),t}(_.Component);j.propTypes={autoPosition:_.PropTypes.bool,className:_.PropTypes.string,closeOnEsc:_.PropTypes.bool,id:_.PropTypes.string,ignoreContext:_.PropTypes.shape({getDOMNode:M.default.PropTypes.function}),position:_.PropTypes.string,rootClassName:_.PropTypes.string,showDelay:_.PropTypes.number,onClose:_.PropTypes.func.isRequired,onShow:_.PropTypes.func},j.defaultProps={autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:D},t.default=j,e.exports=t.default},function(e,t,n){"use strict";var r=n(47).f,a=n(158),i=n(438),o=n(71),s=n(433),c=n(202),u=n(217),l=n(478),d=n(486),f=n(59),p=n(219).fastKey,h=n(833),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(35),a=n(34),i=n(219),o=n(83),s=n(72),c=n(438),u=n(202),l=n(433),d=n(48),f=n(121),p=n(47).f,h=n(980)(0),m=n(59);e.exports=function(e,t,n,_,M,b){var g=r[e],v=g,y=M?"set":"add",A=v&&v.prototype,w={};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),w[e]=v,a(a.G+a.W+a.F,w),b||_.setStrong(v,e,M),v}},function(e,t,n){var r=n(196),a=n(984);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(34);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(34),a=n(120),i=n(71),o=n(202);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(t){function r(e){a.call(this),this._block=new t(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var a=n(836).Transform;n(18)(r,a),r.prototype._transform=function(e,n,r){var a=null;try{"buffer"!==n&&(e=new t(e,n)),this.update(e)}catch(e){a=e}r(a)},r.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},r.prototype.update=function(e,n){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");t.isBuffer(e)||(e=new t(e,n||"binary"));for(var r=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[a++];this._update(),this._blockOffset=0}for(;a<e.length;)r[this._blockOffset++]=e[a++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},r.prototype._update=function(e){throw new Error("_update is not implemented")},r.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},r.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=r}).call(t,n(39).Buffer)},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(209),e=e||{},this.objectMode=!!e.objectMode,t instanceof D&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,a=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:a,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(839).StringDecoder),this.decoder=new W(e.encoding),this.encoding=e.encoding)}function c(e){if(D=D||n(209),!(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(M,e):M(e))}function M(e){B("emit readable"),e.emit("readable"),E(e)}function b(e,t){t.readingMore||(t.readingMore=!0,N(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,E(e))}}function y(e){B("readable nexttick read 0"),e.read(0)}function A(e,t){t.resumeScheduled||(t.resumeScheduled=!0,N(w,e,t))}function w(e,t){t.reading||(B("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(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(z,t,e))}function z(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function O(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}var N=n(504);e.exports=c;var D,P=n(806);c.ReadableState=s;var x=(n(147).EventEmitter,function(e,t){return e.listeners(t).length}),j=n(874),R=n(33).Buffer,Y=t.Uint8Array||function(){},I=n(462);I.inherits=n(18);var q=n(1001),B=void 0;B=q&&q.debuglog?q.debuglog("stream"):function(){};var W,U=n(1002),H=n(875);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(839).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!==O(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(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=O(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(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._readableState,n=!1,r=this;e.on("end",function(){if(B("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(a){if(B("wrapped data"),t.decoder&&(a=t.decoder.write(a)),(!t.objectMode||null!==a&&void 0!==a)&&(t.objectMode||a&&a.length)){r.push(a)||(n=!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],r.emit.bind(r,F[i]));return r._read=function(t){B("wrapped _read",t),n&&(n=!1,e.resume())},r},c._fromList=k}).call(t,n(51),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;if(r||a)return void(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o(i,this,e));this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})}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(504);e.exports={destroy:r,undestroy:a}},function(e,t,n){"use strict";function r(e){this.afterTransform=function(t,n){return a(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function a(e,t,n){var r=e._transformState;r.transforming=!1;var a=r.writecb;if(!a)return e.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),a(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&e._read(i.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState=new r(this);var t=this;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.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){o(t,e,n)}):o(t)})}function o(e,t,n){if(t)return e.emit("error",t);null!==n&&void 0!==n&&e.push(n);var r=e._writableState,a=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(a.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}e.exports=i;var s=n(209),c=n(462);c.inherits=n(18),c.inherits(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},i.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)}},i.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},i.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(18),d=n(230),f=n(33).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(18),h=n(230),m=n(33).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,w=0|this._dl,E=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],z=t[S-30+1],O=c(C,z),N=u(z,C);C=t[S-4],z=t[S-4+1];var D=l(C,z),P=d(z,C),x=t[S-14],j=t[S-14+1],R=t[S-32],Y=t[S-32+1],I=N+j|0,q=O+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,E),V=s(E,m),K=_[B],J=_[B+1],G=a(m,M,b),Q=a(E,k,T),Z=L+V|0,$=g+X+f(Z,L)|0;Z=Z+Q|0,$=$+G+f(Z,Q)|0,Z=Z+J|0,$=$+K+f(Z,J)|0,Z=Z+I|0,$=$+q+f(Z,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=E,E=w+Z|0,m=h+$+f(E,w)|0,h=p,w=A,p=r,A=y,r=n,y=v,v=Z+ee|0,n=$+te+f(v,Z)|0}this._al=this._al+v|0,this._bl=this._bl+y|0,this._cl=this._cl+A|0,this._dl=this._dl+w|0,this._el=this._el+E|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,w)|0,this._eh=this._eh+m+f(this._el,E)|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(18),i=n(1015),o=n(163),s=n(33).Buffer,c=n(834),u=n(835),l=n(840),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){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(1017),t.pbkdf2Sync=n(884)},function(e,t){var n=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!==t)throw new TypeError("Bad key length")}},function(e,t,n){(function(t){var n;if(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){d.isBuffer(e)||(e=d.from(e,l)),d.isBuffer(t)||(t=d.from(t,l)),u(n,a),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(834),s=n(835),c=n(840),u=n(882),l=n(883),d=n(33).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(463),i=n(33).Buffer,o=n(886);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]
|
33 |
+
;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(506),s=n(33).Buffer,c=n(163),u=n(18),l=n(1027),d=n(463),f=n(886);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(506),i=n(33).Buffer,o=n(163);n(18)(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(229);e.exports=o,o.simpleSieve=a,o.fermatTest=i;var c=n(56),u=new c(24),l=n(891),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(56),i=n(892);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);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(1038);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(125),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(125),i=n(464),o=n(894),s=n(104),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]),w=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,w)}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;z.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=O,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(125),M=n(464),b=n(104),g=_.rotr64_hi,v=_.rotr64_lo,y=_.shr64_hi,A=_.shr64_lo,w=_.sum64,E=_.sum64_hi,k=_.sum64_lo,T=_.sum64_4_hi,L=_.sum64_4_lo,S=_.sum64_5_hi,C=_.sum64_5_lo,z=M.BlockHash,O=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];_.inherits(r,z),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],z=this.h[13],O=this.h[14],N=this.h[15];b(this.k.length===n.length);for(var D=0;D<n.length;D+=2){var P=O,x=N,j=l(v,y),R=d(v,y),Y=a(v,y,A,T,L),I=i(v,y,A,T,L,z),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=E(P,x,j,R),V=k(P,x,j,R);O=L,N=z,L=A,z=T,A=v,T=y,v=E(M,g,H,F),y=k(g,g,H,F),M=m,g=_,m=p,_=h,p=r,h=f,r=E(H,F,X,V),f=k(H,F,X,V)}w(this.h,0,r,f),w(this.h,2,p,h),w(this.h,4,m,_),w(this.h,6,M,g),w(this.h,8,v,y),w(this.h,10,A,T),w(this.h,12,L,z),w(this.h,14,O,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(18),o=n(466).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(1070)},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(18),c=n(465),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(18),c=n(39).Buffer,u=n(465),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(461);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(56);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(1086),i=r(a),o=n(1089),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"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}),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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(43),v=r(g),y=n(8),A=n(14),w=r(A),E=n(22),k=n(28),T=n(115),L=r(T),S=n(1152),C=r(S);n(1157);var z=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){w.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",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(){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.renderContent(),this.props.children,!this.props.isSiteConnected&&M.default.createElement("p",{className:"jp-banner__tos-blurb"},(0,y.translate)("By connecting your site 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"})}})),M.default.createElement(C.default,{show:this.state.showModal,toggleModal:this.toggleVisibility,disconnectSite:this.disconnectSite}))}}]),t}(M.default.Component);z.displayName="ConnectButton",z.propTypes={connectUser:m.default.bool,from:m.default.string,asLink:m.default.bool},z.defaultProps={connectUser:!1,from:"",asLink:!1},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,k.getSiteRawUrl)(e),isSiteConnected:(0,E.getSiteConnectionStatus)(e),isDisconnecting:(0,E.isDisconnectingSite)(e),fetchingConnectUrl:(0,E.isFetchingConnectUrl)(e),connectUrl:(0,E.getConnectUrl)(e),isLinked:(0,E.isCurrentUserLinked)(e),isUnlinking:(0,E.isUnlinkingUser)(e)}},function(e){return{disconnectSite:function(){return e((0,E.disconnectSite)())},unlinkUser:function(){return e((0,E.unlinkUser)())}}})(z)},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(10),i=function(e){return e&&e.__esModule?e:{default:e}}(a),o=n(491),s=r(o),c=n(1159),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(10),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(905),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(14),w=r(A),E=n(1160),k=r(E),T=n(24),L=r(T),S=n(36),C=n(910),z=r(C),O=n(1161),N=r(O),D=n(1162),P=r(D),x=n(1174),j=r(x),R=n(1176),Y=r(R),I=n(1177),q=r(I),B=n(1178),W=r(B),U=n(1180),H=r(U),F=n(1181),X=r(F),V=n(1183),K=r(V),J=n(1184),G=r(J),Q=n(499),Z=r(Q),$=n(208),ee=r($),te=n(28),ne=n(22),re=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))})]})},ae=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 w.default.tracks.recordJetpackClick("aag_manage_security_wpcom")},r=g.default.createElement(z.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(z.default,{label:(0,y.translate)("Connections")}),g.default.createElement(G.default,null)),o="active"===(0,L.default)(this.props.rewindStatus,["state"],!1),s=[g.default.createElement(j.default,e),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(Y.default,e),g.default.createElement(W.default,t),g.default.createElement(X.default,(0,i.default)({},e,t))];if(o&&s.unshift(g.default.createElement(N.default,(0,i.default)({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules)return g.default.createElement("div",{className:"jp-at-a-glance"},g.default.createElement(Z.default,null),g.default.createElement(ee.default,null),g.default.createElement(P.default,(0,i.default)({},e,t)),re([{header:r,cards:s},{header:g.default.createElement(z.default,{label:(0,y.translate)("Performance")}),cards:[g.default.createElement(K.default,e)]}]),a);var c="";this.props.userCanViewStats&&(c=g.default.createElement(P.default,(0,i.default)({},e,t)));var u="";return this.props.getOptionValue("protect")&&(u=g.default.createElement(j.default,e)),this.props.userIsSubscriber?g.default.createElement("div",null,c,a):g.default.createElement("div",null,c,this.props.getOptionValue("protect")&&r,u,a)}}]),t}(b.Component);t.default=(0,v.connect)(function(e){
|
34 |
+
return{userCanManageModules:(0,te.userCanManageModules)(e),userCanViewStats:(0,te.userCanViewStats)(e),userIsSubscriber:(0,te.userIsSubscriber)(e),isDevMode:(0,ne.isDevMode)(e)}})((0,S.ModuleSettingsForm)(ae)),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(15),m=r(h),_=n(1),M=r(_),b=n(13),g=r(b),v=n(61),y=r(v),A=n(8),w=n(14),E=r(w),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(){E.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(497),i=n(42),o="Expected a function";e.exports=r},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(9),u=n(268),l=n(215),d=n(646),f=n(25),p=(r(f),n(919)),h=r(p),m=n(925),_=r(m),M=n(661),b=r(M),g=n(8),v=r(g),y=n(926),A=r(y),w=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}(w);(0,h.default)(),(0,_.default)();var E=window.Initial_State;E.locale=JSON.parse(E.locale),void 0!==E.locale[""]?(E.locale[""].localeSlug=E.localeSlug,Number.prototype.realToLocaleString=Number.prototype.toLocaleString,Number.prototype.toLocaleString=function(e,t){return e=e||E.localeSlug,t=t||{},this.realToLocaleString(e,t)}):E.locale={"":{localeSlug:E.localeSlug}},v.default.setLocale(E.locale);var k=(0,u.useRouterHistory)(d.createHashHistory)({queryKey:!1}),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:"*",component:A.default})))),e)}()},function(e,t,n){"use strict";var r=n(19),a=n(513),i=n(851),o=n(96),s=n(50),c=n(595),u=n(915),l=n(852),d=n(916);n(12);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(11),i=(n(65),n(19)),o=n(130),s=n(852);n(7),n(12);e.exports=r},function(e,t,n){"use strict";var r=n(851);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(106),i=r(a),o=n(853),s=r(o);t.default=i.default(s.default,"enableBeforeUnload is deprecated, use useBeforeUnload instead"),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(106),i=r(a),o=n(107),s=r(o);t.default=i.default(s.default,"enableQueries is deprecated, use useQueries instead"),e.exports=t.default},function(e,t,n){var r=(n(7),n(920)),a=!1;e.exports=function(e){e=e||{};var t=e.shouldRejectClick||r;a=!0,n(95).injection.injectEventPluginsByName({TapEventPlugin:n(921)(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:w,extractEvents:function(t,n,i,o){if(!p(t)&&!h(t))return null;if(m(t))g=E();else if(e(g,E()))return null;var s=null,l=a(b,i);return h(t)&&l<_&&(s=u.getPooled(w.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(922),s=n(150),c=n(94),u=n(97),l=n(923),d=n(210),f=n(924),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),w={touchTap:{phasedRegistrationNames:{bubbled:f({onTouchTap:null}),captured:f({onTouchTapCapture:null})},dependencies:A}},E=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){a||-1!==i.indexOf(e.keyCode)&&(a=!0,document.documentElement.classList.add("dops-accessible-focus"))}),document.addEventListener("mouseup",function(){a&&(a=!1,document.documentElement.classList.remove("dops-accessible-focus"))})}var a=!1,i=[9,32,37,38,39,40];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(9),M=n(40),b=r(M),g=n(646),v=n(268),y=n(8),A=n(792),w=r(A),E=n(854),k=r(E),T=n(860),L=r(T),S=n(861),C=r(S),z=n(1151),O=r(z),N=n(1158),D=r(N),P=n(908),x=n(22),j=n(28),R=n(113),Y=n(81),I=n(909),q=r(I),B=n(1186),W=r(B),U=n(846),H=r(U),F=n(1190),X=r(F),V=n(1191),K=r(V),J=n(1192),G=r(J),Q=n(1193),Z=r(Q),$=n(1205),ee=r($),te=n(1206),ne=r(te),re=n(14),ae=r(re),ie=n(60),oe=r(ie),se=n(1207),ce=r(se),ue=n(1211),le=r(ue),de=n(468),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)return m.default.createElement("div",{"aria-live":"assertive"},m.default.createElement(O.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=void 0,a=m.default.createElement(k.default,{route:r.props.route}),i=m.default.createElement(L.default,{route:r.props.route,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl});switch(e){case"/dashboard":n=m.default.createElement(q.default,{siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus});break;case"/plans":n=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":a=i,n=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"),n=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"},a,n,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(w.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(Z.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),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"],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(227);e.exports=r},function(e,t,n){var r=n(45),a=function(){return r.Date.now()};e.exports=a},function(e,t,n){function r(e,t){return(s(e)?a:o)(e,i(t,3))}var a=n(122),i=n(103),o=n(930),s=n(26);e.exports=r},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(161),i=n(52);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(92);e.exports=r},function(e,t){},function(e,t,n){"use strict";var r=n(1),a=r.createClass({displayName:"SelectDropdownSeparator",render:function(){return r.createElement("li",{className:"dops-select-dropdown__separator"})}});e.exports=a},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(940),i=n(942);e.exports={getInitialState:function(){return{searchOpen:!1}},componentWillReceiveProps:function(e){e.search||this.setState({searchOpen:!1})},doSearch:function(e){var t;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(941);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){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(806);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(943),a=n(949);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(944),u=n(945);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},w=n(946);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?w.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 E="//"===s.substr(0,2);!E||p&&y[p]||(s=s.substr(2),this.slashes=!0)}if(!y[p]&&(E||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 z="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!z)for(var O=this.hostname.split(/\./),T=0,N=O.length;T<N;T++){var D=O[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=O.slice(0,T),Y=O.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(),z||(this.hostname=c.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,z&&(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=w.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=w.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}
|
35 |
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,w=n.pathname&&n.pathname.split("/")||[],h=e.pathname&&e.pathname.split("/")||[],E=n.protocol&&!A[n.protocol];if(E&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.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]||""===w[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,w=h;else if(h.length)w||(w=[]),w.pop(),w=w.concat(h),n.search=e.search,n.query=e.query;else if(!u.isNullOrUndefined(e.search)){if(E){n.hostname=n.host=w.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(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=w.slice(-1)[0],L=(n.host||e.host||w.length>1)&&("."===T||".."===T)||""===T,S=0,C=w.length;C>=0;C--)T=w[C],"."===T?w.splice(C,1):".."===T?(w.splice(C,1),S++):S&&(w.splice(C,1),S--);if(!g&&!v)for(;S--;S)w.unshift("..");!g||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),L&&"/"!==w.join("/").substr(-1)&&w.push("");var z=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(E){n.hostname=n.host=z?"":w.length?w.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&&w.length,g&&!z&&w.unshift(""),w.length?n.pathname=w.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(O,"."),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*w>>1;r+=y)e=P(e/D);return P(r+(D+1)*e/(e+E))}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+w?w: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,E=[];for(e=u(e),_=e.length,t=L,n=0,i=T,s=0;s<_;++s)(m=e[s])<128&&E.push(x(m));for(r=a=E.length,a&&E.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+w?w:d-i,!(l<h);d+=y)g=l-h,b=y-h,E.push(x(f(h+g%b,0))),l=P(g/b);E.push(x(f(l,0))),i=p(n,M,r==a),n=0,++r}++n,++t}return E.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 z.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,w=26,E=38,k=700,T=72,L=128,S="-",C=/^xn--/,z=/[^\x20-\x7E]/,O=/[\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(88)(e),n(51))},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(947),t.encode=t.stringify=n(948)},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(950),a=n(498),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(951),i=n(489);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(160),i=n(952),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(92);e.exports=r},function(e,t,n){var r=n(122),a=n(954),i=n(476),o=n(957),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(487),i=n(955),o=n(956),s=n(122),c=n(477),u=n(488),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(223);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(480);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(60),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(10),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(9),g=n(27),v=n(113),y=n(22),A=n(81),w=n(208),E=r(w),k=n(962),T=n(1097),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(E.default,null),M.default.createElement(k.Comments,(0,i.default)({},e,{isModuleFound:this.props.isModuleFound})),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)}})(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(58),i=r(a),o=n(123),s=n(8),c=n(226),u=r(c),l=n(16),d=n(27),f=n(60),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(10),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(500),v=r(g),y=n(70),A=n(54),w=n(36),E=n(41),k=r(E),T=n(38),L=r(T),S=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)},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},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"))))),n&&M.default.createElement(y.FormFieldset,null,M.default.createElement(A.ModuleToggle,{slug:"markdown",compact:!0,activated:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_comments_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},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"))))),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")))))))}}]),t}(M.default.Component);t.Comments=(0,w.ModuleSettingsForm)(S)},function(e,t){},function(e,t,n){function r(e,t){return e&&a(e,i(t))}var a=n(225),i=n(485);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(13),M=r(_);n(966);var b=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.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.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,M.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}),m.default.createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)))}}]),t}(h.Component);b.propTypes={onChange:h.PropTypes.func,onKeyDown:h.PropTypes.func,checked:h.PropTypes.bool,disabled:h.PropTypes.bool,id:h.PropTypes.string,className:h.PropTypes.string,toggling:h.PropTypes.bool,"aria-label":h.PropTypes.string,children:h.PropTypes.node},b.defaultProps={checked:!1,disabled:!1,onKeyDown:function(){},onChange:function(){}},b.idNum=0,t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return(0,a.connect)(function(e,t){return{validValues:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof(0,o.default)(t,["module","module"])&&(r=t.module.module),(0,s.getModuleOptionValidValues)(e,r,n)},getOptionCurrentValue:function(t,n){return(0,s.getModuleOption)(e,t,n)},getSettingCurrentValue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,c.getSetting)(e,t,n)},getSiteRoles:function(){return(0,u.getSiteRoles)(e)},isUpdating:function(t){return(0,c.isUpdatingSetting)(e,t)},adminEmailAddress:(0,u.getAdminEmailAddress)(e),currentIp:(0,u.getCurrentIp)(e),siteAdminUrl:(0,u.getSiteAdminUrl)(e),isCurrentUserLinked:(0,l.isCurrentUserLinked)(e)}},function(e){return{updateOptions:function(t){return e((0,c.updateSettings)(t))},regeneratePostByEmailAddress:function(t){return e((0,c.updateSettings)(t,"regeneratePbE"))},setUnsavedSettingsFlag:function(){return e((0,c.setUnsavedSettingsFlag)())},clearUnsavedSettingsFlag:function(){return e((0,c.clearUnsavedSettingsFlag)())}}})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.connectModuleOptions=r;var a=n(9),i=n(24),o=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n(27),c=n(113),u=n(28),l=n(22)},function(e,t){},function(e,t,n){function r(e){if(null==e)return 0;if(o(e))return s(e)?c(e):e.length;var t=i(e);return t==u||t==l?e.size:a(e).length}var a=n(287),i=n(206),o=n(52),s=n(482),c=n(970),u="[object Map]",l="[object Set]";e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(971),i=n(865),o=n(972);e.exports=r},function(e,t,n){var r=n(490),a=r("length");e.exports=a},function(e,t){function n(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");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(1),m=r(h),_=n(13),M=r(_),b=n(55);n(974);var 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:"getIconClassNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.plan,r=t.className,a=(0,b.getPlanClass)(n);return(0,M.default)("dops-plan-icon",a,r,e)}},{key:"getPersonalIcon",value:function(){return m.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__personal"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 125"},m.default.createElement("circle",{className:"dops-plan-icon__personal-0",cx:"62",cy:"62.1",r:"62"}),m.default.createElement("path",{className:"dops-plan-icon__personal-1",d:"M64 106.1l4-9.8v-3.5H62v14.6C62.9 107.4 63.6 106.9 64 106.1z"}),m.default.createElement("path",{className:"dops-plan-icon__personal-2",d:"M56.2 92.8v3.5l4 9.8c0.3 0.8 1.1 1.3 1.9 1.3V92.8H56.2z"}),m.default.createElement("path",{className:"dops-plan-icon__personal-2",d:"M62 32.9h17.1V2.5C73.7 0.9 68 0.1 62 0.1V32.9z"}),m.default.createElement("path",{className:"dops-plan-icon__personal-3",d:"M62 32.9V0.1c0 0 0 0 0 0 -5.9 0-11.6 0.8-17 2.4v30.5H62z"}),m.default.createElement("polygon",{className:"dops-plan-icon__personal-4",points:"62 32.9 45 32.9 48.3 48.7 53.3 92.8 62 92.8 "}),m.default.createElement("polygon",{className:"dops-plan-icon__personal-5",points:"62 32.9 79.2 32.9 75.9 48.7 70.9 92.8 62 92.8 "}))}},{key:"getPremiumIcon",value:function(){return m.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__premium"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 62 61.5"},m.default.createElement("ellipse",{className:"dops-plan-icon__premium-0",cx:"31",cy:"30.8",rx:"31",ry:"30.8"}),m.default.createElement("path",{className:"dops-plan-icon__premium-1",d:"M27.8 46.3v1.9l2.2 5.4c0.2 0.5 0.5 0.7 1 0.7v-7.9L27.8 46.3z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-2",d:"M32 53.6l2.2-5.4v-1.9H31v3.8 4.1C31.5 54.3 31.9 54 32 53.6z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-3",d:"M21.6 18c0.2 2 4.8 28.3 4.8 28.3l4.6 0.1V18H21.6z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-4",d:"M40.5 18H31v23.4 5l4.5-0.1C35.5 46.3 40.1 20.4 40.5 18z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-5",d:"M31 18V0c-3.9 0-7.7 0.7-11.2 2.1 0.7 6 1.8 15.9 1.8 15.9H31z"}),m.default.createElement("path",{className:"dops-plan-icon__premium-6",d:"M31 18h9.5c0 0 1.1-9.9 1.8-15.9C38.8 0.7 35 0 31 0V18z"}))}},{key:"getBusinessIcon",value:function(){return m.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__business"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 124 124"},m.default.createElement("circle",{className:"dops-plan-icon__business-0",cx:"62",cy:"62",r:"62"}),m.default.createElement("path",{className:"dops-plan-icon__business-1",d:"M57.4 73.8c0-2.5 2-4.6 4.6-4.6V36.8h-9.6v12.1c-8 3.7-13.5 11.7-13.5 21.1 0 4.9 1.5 9.4 4.1 13.1l0 0c15.4 22.4 15.4 22.4 17 24.8h0.3V78.1C58.6 77.4 57.4 75.7 57.4 73.8L57.4 73.8z"}),m.default.createElement("path",{className:"dops-plan-icon__business-2",d:"M85.2 69.8c0-9.4-5.6-17.4-13.5-21.1v-12H62v32.5c2.5 0 4.6 2 4.6 4.6 0 1.9-1.2 3.5-2.9 4.2v29.8H64c1.6-2.4 1.6-2.4 17-24.8l0 0C83.6 79.2 85.2 74.7 85.2 69.8L85.2 69.8z"}),m.default.createElement("path",{className:"dops-plan-icon__business-3",d:"M48.6 32h-2.4c-3.2 0-5.8 2.6-5.8 5.8V38c0 3.2 2.6 5.8 5.8 5.8H62v-4.7V32 0c-7.2 0-14.1 1.2-20.6 3.5 1.1 5.5 2.5 11 4.1 16.5L48.6 32z"}),m.default.createElement("path",{className:"dops-plan-icon__business-4",d:"M62 39.1v4.7h15.8c3.2 0 5.8-2.6 5.8-5.8v-0.2c0-3.2-2.6-5.8-5.8-5.8h-2.4l3.1-12c1.6-5.5 3-11 4.1-16.5C76.1 1.2 69.2 0 62 0v32V39.1z"}))}},{key:"getDefaultIcon",value:function(){return m.default.createElement("svg",{className:this.getIconClassNames("dops-plan-icon__free"),xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0",y:"0",viewBox:"0 0 61.8 61.8"},m.default.createElement("circle",{className:"dops-plan-icon__free-0",cx:"30.9",cy:"30.9",r:"30.9"}),m.default.createElement("polygon",{className:"dops-plan-icon__free-1",points:"41.4 32.8 30.9 22.5 20.3 32.8 30.9 51.8 "}),m.default.createElement("path",{className:"dops-plan-icon__free-2",d:"M30.9 41.6L30.9 41.6c-2 0-3.7 1.6-3.7 3.6l3.7 6.5 3.7-6.5C34.5 43.2 32.9 41.6 30.9 41.6L30.9 41.6z"}),m.default.createElement("path",{className:"dops-plan-icon__free-3",d:"M25.6 27.7c0 2.9 2.3 5.2 5.2 5.2h0.1c2.9 0 5.2-2.3 5.2-5.2v-0.1V0.4c-1.7-0.3-3.5-0.5-5.3-0.5s-3.6 0.2-5.3 0.5v27.3H25.6z"}),m.default.createElement("path",{className:"dops-plan-icon__free-4",d:"M25.6 27.6V0.4c-1.8 0.3-3.6 0.8-5.3 1.4v31C23.2 32.8 25.6 30.5 25.6 27.6z"}),m.default.createElement("path",{className:"dops-plan-icon__free-2",d:"M41.4 32.8v-31c-1.7-0.6-3.5-1.1-5.3-1.4v27.2C36.1 30.5 38.5 32.8 41.4 32.8z"}))}},{key:"render",value:function(){switch(this.props.plan){case b.PLAN_PERSONAL:case b.PLAN_JETPACK_PERSONAL:case b.PLAN_JETPACK_PERSONAL_MONTHLY:return this.getPersonalIcon();case b.PLAN_PREMIUM:case b.PLAN_JETPACK_PREMIUM:case b.PLAN_JETPACK_PREMIUM_MONTHLY:return this.getPremiumIcon();case b.PLAN_BUSINESS:case b.PLAN_JETPACK_BUSINESS:case b.PLAN_JETPACK_BUSINESS_MONTHLY:return this.getBusinessIcon();default:return this.getDefaultIcon()}}}]),t}(h.Component);t.default=g,g.propTypes={classNames:m.default.PropTypes.string,plan:m.default.PropTypes.oneOf([b.PLAN_FREE,b.PLAN_PREMIUM,b.PLAN_BUSINESS,b.PLAN_JETPACK_FREE,b.PLAN_JETPACK_BUSINESS,b.PLAN_JETPACK_BUSINESS_MONTHLY,b.PLAN_JETPACK_PREMIUM,b.PLAN_JETPACK_PREMIUM_MONTHLY,b.PLAN_JETPACK_PERSONAL,b.PLAN_JETPACK_PERSONAL_MONTHLY,b.PLAN_PERSONAL]).isRequired},e.exports=t.default},function(e,t){},function(e,t){},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(1),i=r(a),o=n(69),s=r(o),c=n(866),u=r(c),l=n(61),d=r(l),f=n(13),p=r(f),h=n(14),m=r(h);n(1095),t.default=i.default.createClass({displayName:"InfoPopover",propTypes:{id:i.default.PropTypes.string,position:i.default.PropTypes.string,className:i.default.PropTypes.string,rootClassName:i.default.PropTypes.string,gaEventCategory:i.default.PropTypes.string,popoverName:i.default.PropTypes.string,onClick:i.default.PropTypes.func,ignoreContext:i.default.PropTypes.shape({getDOMNode:i.default.PropTypes.function})},getDefaultProps:function(){return{position:"bottom",onClick:s.default}},getInitialState:function(){return{showPopover:!1}},render:function(){var e=(0,p.default)("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return i.default.createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},i.default.createElement(d.default,{icon:"info-outline",size:18}),this.props.screenReaderText?i.default.createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",i.default.createElement(u.default,{id:this.props.id,isVisible:this.state.showPopover,context:this.refs&&this.refs.infoPopover,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className:(0,p.default)("dops-info-popover__tooltip",this.props.className),rootClassName:this.props.rootClassName},this.props.children))},_onClick:function(e){this.props.onClick(),e.preventDefault(),this.setState({showPopover:!this.state.showPopover},this._recordStats)},_onClose:function(){this.setState({showPopover:!1},this._recordStats)},_recordStats:function(){var e=this.props,t=e.gaEventCategory,n=e.popoverName;if(t&&n){var r=this.state.showPopover?" Opened":" Closed"
|
36 |
;m.default.ga.recordEvent(t,"InfoPopover: "+n+r)}}}),e.exports=t.default},function(e,t,n){e.exports={default:n(978),__esModule:!0}},function(e,t,n){n(195),n(109),n(137),n(979),n(983),n(985),n(986),e.exports=n(21).Set},function(e,t,n){"use strict";var r=n(867),a=n(833);e.exports=n(868)("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){var r=n(71),a=n(218),i=n(100),o=n(159),s=n(981);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(982);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(48),a=n(479),i=n(32)("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(34);r(r.P+r.R,"Set",{toJSON:n(869)("Set")})},function(e,t,n){var r=n(202);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(870)("Set")},function(e,t,n){n(871)("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(988),c=r(s);t.default=a;var u=n(994),l=r(u),d=n(995),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(989),__esModule:!0}},function(e,t,n){n(195),n(109),n(137),n(990),n(991),n(992),n(993),e.exports=n(21).Map},function(e,t,n){"use strict";var r=n(867),a=n(833);e.exports=n(868)("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(34);r(r.P+r.R,"Map",{toJSON:n(869)("Map")})},function(e,t,n){n(870)("Map")},function(e,t,n){n(871)("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(997);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(229),t.createHash=t.Hash=n(461),t.createHmac=t.Hmac=n(879);var r=n(1016),a=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);t.getHashes=function(){return i};var o=n(881);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(1018);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(1036);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(1041);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(1079);var l=n(1080);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var d=n(1083);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,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function a(e){return 3*e.length/4-r(e)}function i(e){var t,n,a,i,o,s=e.length;i=r(e),o=new d(3*s/4-i),n=i>0?s-4:s;var c=0;for(t=0;t<n;t+=4)a=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],o[c++]=a>>16&255,o[c++]=a>>8&255,o[c++]=255&a;return 2===i?(a=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,o[c++]=255&a):1===i&&(a=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,o[c++]=a>>8&255,o[c++]=255&a),o}function o(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function s(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(o(r));return a.join("")}function c(e){for(var t,n=e.length,r=n%3,a="",i=[],o=0,c=n-r;o<c;o+=16383)i.push(s(e,o,o+16383>c?c:o+16383));return 1===r?(t=e[n-1],a+=u[t>>2],a+=u[t<<4&63],a+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],a+=u[t>>10],a+=u[t>>4&63],a+=u[t<<2&63],a+="="),i.push(a),i.join("")}t.byteLength=a,t.toByteArray=i,t.fromByteArray=c;for(var u=[],l=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,h=f.length;p<h;++p)u[p]=f[p],l[f.charCodeAt(p)]=p;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?a-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+d],d+=f,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=r;l>0;o=256*o+e[t+d],d+=f,l-=8);if(0===i)i=1-u;else{if(i===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=u}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,c,u=8*i-a-1,l=(1<<u)-1,d=l>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),t+=o+d>=1?f/c:f*Math.pow(2,1-d),t*c>=2&&(o++,c/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*c-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&s,p+=h,s/=256,a-=8);for(o=o<<a|s,u+=a;u>0;e[n+p]=255&o,p+=h,o/=256,u-=8);e[n+p-h]|=128*m}},function(e,t,n){"use strict";(function(t){function n(e){if(e.length%r!=0){var n=e.length+(r-e.length%r);e=t.concat([e,a],n)}for(var i=new Array(e.length>>>2),o=0,s=0;o<e.length;o+=r,s++)i[s]=e.readInt32LE(o);return i}var r=4,a=new t(r);a.fill(0);e.exports=function(e,r){var a=r(n(e),8*e.length);e=new t(16);for(var i=0;i<a.length;i++)e.writeInt32LE(a[i],i<<2,!0);return e}}).call(t,n(39).Buffer)},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(33).Buffer;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}()},function(e,t,n){function r(e,t){this._id=e,this._clearFn=t}var a=Function.prototype.apply;t.setTimeout=function(){return new r(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(a.call(setInterval,window,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(window,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(1004),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},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(51),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(51))},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(876),i=n(462);i.inherits=n(18),i.inherits(r,a),r.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(838)},function(e,t,n){e.exports=n(209)},function(e,t,n){e.exports=n(837).Transform},function(e,t,n){e.exports=n(837).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(18),c=n(230),u=n(33).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(18),u=n(230),l=n(33).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(18),i=n(877),o=n(230),s=n(33).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(18),i=n(878),o=n(230),s=n(33).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(18),i=n(33).Buffer,o=n(163),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(880)},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(882),u=n(883),l=n(884),d=n(33).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){if(d.isBuffer(e)||(e=d.from(e,u)),d.isBuffer(n)||(n=d.from(n,u)),c(s,f),"function"==typeof h&&(m=h,h=void 0),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");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)});o(a(_).then(function(t){return t?i(e,n,s,f,_):l(e,n,s,f,h)}),m)}}).call(t,n(51),n(63))},function(e,t,n){function r(e,t){var n,r;if(e=e.toLowerCase(),f[e])n=f[e].key,r=f[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var a=c(t,!1,n,r);return i(e,a.key,a.iv)}function a(e,t){var n,r;if(e=e.toLowerCase(),f[e])n=f[e].key,r=f[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var a=c(t,!1,n,r);return o(e,a.key,a.iv)}function i(e,t,n){if(e=e.toLowerCase(),f[e])return u.createCipheriv(e,t,n);if(d[e])return new l({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function o(e,t,n){if(e=e.toLowerCase(),f[e])return u.createDecipheriv(e,t,n);if(d[e])return new l({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(505),u=n(841),l=n(1029),d=n(1035),f=n(842);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){"use strict";(function(t){function r(){l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function a(e,t){return e<<t|e>>>32-t}function i(e,t,n,r,i,o,s){return a(e+(t&n|~t&r)+i+o|0,s)+t|0}function o(e,t,n,r,i,o,s){return a(e+(t&r|n&~r)+i+o|0,s)+t|0}function s(e,t,n,r,i,o,s){return a(e+(t^n^r)+i+o|0,s)+t|0}function c(e,t,n,r,i,o,s){return a(e+(n^(t|~r))+i+o|0,s)+t|0}var u=n(18),l=n(872),d=new Array(16);u(r,l),r.prototype._update=function(){for(var e=d,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,a=this._c,u=this._d;n=i(n,r,a,u,e[0],3614090360,7),u=i(u,n,r,a,e[1],3905402710,12),a=i(a,u,n,r,e[2],606105819,17),r=i(r,a,u,n,e[3],3250441966,22),n=i(n,r,a,u,e[4],4118548399,7),u=i(u,n,r,a,e[5],1200080426,12),a=i(a,u,n,r,e[6],2821735955,17),r=i(r,a,u,n,e[7],4249261313,22),n=i(n,r,a,u,e[8],1770035416,7),u=i(u,n,r,a,e[9],2336552879,12),a=i(a,u,n,r,e[10],4294925233,17),r=i(r,a,u,n,e[11],2304563134,22),n=i(n,r,a,u,e[12],1804603682,7),u=i(u,n,r,a,e[13],4254626195,12),a=i(a,u,n,r,e[14],2792965006,17),r=i(r,a,u,n,e[15],1236535329,22),n=o(n,r,a,u,e[1],4129170786,5),u=o(u,n,r,a,e[6],3225465664,9),a=o(a,u,n,r,e[11],643717713,14),r=o(r,a,u,n,e[0],3921069994,20),n=o(n,r,a,u,e[5],3593408605,5),u=o(u,n,r,a,e[10],38016083,9),a=o(a,u,n,r,e[15],3634488961,14),r=o(r,a,u,n,e[4],3889429448,20),n=o(n,r,a,u,e[9],568446438,5),u=o(u,n,r,a,e[14],3275163606,9),a=o(a,u,n,r,e[3],4107603335,14),r=o(r,a,u,n,e[8],1163531501,20),n=o(n,r,a,u,e[13],2850285829,5),u=o(u,n,r,a,e[2],4243563512,9),a=o(a,u,n,r,e[7],1735328473,14),r=o(r,a,u,n,e[12],2368359562,20),n=s(n,r,a,u,e[5],4294588738,4),u=s(u,n,r,a,e[8],2272392833,11),a=s(a,u,n,r,e[11],1839030562,16),r=s(r,a,u,n,e[14],4259657740,23),n=s(n,r,a,u,e[1],2763975236,4),u=s(u,n,r,a,e[4],1272893353,11),a=s(a,u,n,r,e[7],4139469664,16),r=s(r,a,u,n,e[10],3200236656,23),n=s(n,r,a,u,e[13],681279174,4),u=s(u,n,r,a,e[0],3936430074,11),a=s(a,u,n,r,e[3],3572445317,16),r=s(r,a,u,n,e[6],76029189,23),n=s(n,r,a,u,e[9],3654602809,4),u=s(u,n,r,a,e[12],3873151461,11),a=s(a,u,n,r,e[15],530742520,16),r=s(r,a,u,n,e[2],3299628645,23),n=c(n,r,a,u,e[0],4096336452,6),u=c(u,n,r,a,e[7],1126891415,10),a=c(a,u,n,r,e[14],2878612391,15),r=c(r,a,u,n,e[5],4237533241,21),n=c(n,r,a,u,e[12],1700485571,6),u=c(u,n,r,a,e[3],2399980690,10),a=c(a,u,n,r,e[10],4293915773,15),r=c(r,a,u,n,e[1],2240044497,21),n=c(n,r,a,u,e[8],1873313359,6),u=c(u,n,r,a,e[15],4264355552,10),a=c(a,u,n,r,e[6],2734768916,15),r=c(r,a,u,n,e[13],1309151649,21),n=c(n,r,a,u,e[4],4149444226,6),u=c(u,n,r,a,e[11],3174756917,10),a=c(a,u,n,r,e[2],718787259,15),r=c(r,a,u,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+u|0},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=r}).call(t,n(39).Buffer)},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(842),c=n(888),u=n(33).Buffer,l=n(889),d=n(163),f=n(506),p=n(505);n(18)(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(463);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(33).Buffer,i=n(463);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(33).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(33).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(463);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(33).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){for(var t=e[15],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(888),u=n(33).Buffer,l=n(842),d=n(889),f=n(163),p=n(506),h=n(505);n(18)(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,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(163),i=n(843),o=n(18),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},
|
37 |
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(104);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(104),o=n(18),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(104),o=n(18),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(104),o=n(18),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){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)))}var i=n(890),o=n(1039),s=n(1040),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(56),u=n(891),l=new u,d=new c(24),f=new c(11),p=new c(10),h=new c(3),m=new c(7),_=n(890),M=n(229);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(461),c=n(836),u=n(18),l=n(1042),d=n(1078),f=n(880);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(879),p=n(844),h=n(84).ec,m=n(56),_=n(508),M=n(901);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(56),l=n(104),d=n(893);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(56),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),w=this._wnafT4,d=l;d>=0;d--){for(var E=0;d>=0;){for(var k=!0,g=0;g<r;g++)w[g]=0|s[g][d],0!==w[g]&&(k=!1);if(!k)break;E++,d--}if(d>=0&&E++,A=A.dblp(E),d<0)break;for(var g=0;g<r;g++){var f,T=w[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(507),s=n(84),c=n(56),u=n(18),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){
|
40 |
this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?s(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||s(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},r.prototype.derive=function(e){return e.mul(this.priv).getX()},r.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},r.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";function r(e,t){if(e instanceof r)return e;this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new c(e.r,16),this.s=new c(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function i(e,t){var n=e[t.place++];if(!(128&n))return n;for(var r=15&n,a=0,i=0,o=t.place;i<r;i++,o++)a<<=8,a|=e[o];return t.place=o,a}function o(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function s(e,t){if(t<128)return void e.push(t);var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}var c=n(56),u=n(84),l=u.utils,d=l.assert;e.exports=r,r.prototype._importDER=function(e,t){e=l.toArray(e,t);var n=new a;if(48!==e[n.place++])return!1;if(i(e,n)+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var r=i(e,n),o=e.slice(n.place,r+n.place);if(n.place+=r,2!==e[n.place++])return!1;var s=i(e,n);if(e.length!==s+n.place)return!1;var u=e.slice(n.place,s+n.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===u[0]&&128&u[1]&&(u=u.slice(1)),this.r=new c(o),this.s=new c(u),this.recoveryParam=null,!0},r.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=o(t),n=o(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];s(r,t.length),r=r.concat(t),r.push(2),s(r,n.length);var a=r.concat(n),i=[48];return s(i,a.length),i=i.concat(a),l.encode(i,e)}},function(e,t,n){"use strict";function r(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof r))return new r(e);var e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=a.sha512}var a=n(845),i=n(84),o=i.utils,s=o.assert,c=o.parseBytes,u=n(1062),l=n(1063);e.exports=r,r.prototype.sign=function(e,t){e=c(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),a=this.g.mul(r),i=this.encodePoint(a),o=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),s=r.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:s,Rencoded:i})},r.prototype.verify=function(e,t,n){e=c(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),a=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(a)).eq(i)},r.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},r.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},r.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},r.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},r.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},r.prototype.decodePoint=function(e){e=o.parseBytes(e);var t=e.length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),a=o.intFromLE(n);return this.curve.pointFromY(a,r)},r.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},r.prototype.decodeInt=function(e){return o.intFromLE(e)},r.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";function r(e,t){this.eddsa=e,this._secret=s(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=s(t.pub)}var a=n(84),i=a.utils,o=i.assert,s=i.parseBytes,c=i.cachedProperty;r.fromPublic=function(e,t){return t instanceof r?t:new r(e,{pub:t})},r.fromSecret=function(e,t){return t instanceof r?t:new r(e,{secret:t})},r.prototype.secret=function(){return this._secret},c(r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(r,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),c(r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),r.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},r.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},r.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},r.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=r},function(e,t,n){"use strict";function r(e,t){this.eddsa=e,"object"!=typeof t&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),s(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof a&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}var a=n(56),i=n(84),o=i.utils,s=o.assert,c=o.cachedProperty,u=o.parseBytes;c(r,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(r,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(r,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(r,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=r},function(e,t,n){"use strict";var r=n(465);t.certificate=n(1075);var a=r.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=a;var i=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=i;var o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=o;var s=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=u;var l=r.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=l,t.DSAparam=r.define("DSAparam",function(){this.int()});var d=r.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=d;var f=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,n){function r(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}var a=n(465),i=n(18);t.define=function(e,t){return new r(e,t)},r.prototype._createNamed=function(e){var t;try{t=n(1066).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},r.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(a.decoders[e])),this.decoders[e]},r.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},r.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(a.encoders[e])),this.encoders[e]},r.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(1067),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,r=n.eval,a=n.execScript;!r&&a&&(a.call(n,"null"),r=n.eval),forEach(Object_keys(e),function(t){n[t]=e[t]}),forEach(globals,function(t){e[t]&&(n[t]=e[t])});var i=Object_keys(n),o=r.call(n,this.code);return forEach(Object_keys(n),function(t){(t in e||-1===indexOf(i,t))&&(e[t]=n[t])}),forEach(globals,function(t){t in e||defineProp(e,t,n[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return forEach(Object_keys(t),function(n){e[n]=t[n]}),n},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(n){t[n]=e[n]}),t}},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}var i=n(18);t.Reporter=r,r.prototype.isError=function(e){return e instanceof a},r.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},r.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof a;if(t=r?e:new a(n.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},r.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){function r(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var a=n(466).Reporter,i=n(466).EncoderBuffer,o=n(466).DecoderBuffer,s=n(104),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];e.exports=r;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];r.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(n){t[n]=e[n]});var n=new this.constructor(t.parent);return n._baseState=t,n},r.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},r.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(e){var t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(s(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n}),t}))},l.forEach(function(e){r.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),c.forEach(function(e){r.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(n),this}}),r.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},r.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},r.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},r.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},r.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},r.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},r.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r=n.default,a=!0,i=null;if(null!==n.key&&(i=e.enterKey(n.key)),n.optional){var s=null;if(null!==n.explicit?s=n.explicit:null!==n.implicit?s=n.implicit:null!==n.tag&&(s=n.tag),null!==s||n.any){if(a=this._peekTag(e,s,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}var u;if(n.obj&&a&&(u=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===n.use&&null===n.choice){if(n.any)var c=e.save();var f=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(f))return f;n.any?r=e.raw(c):e=f}if(t&&t.track&&null!==n.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),r=n.any?r:null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(r))return r;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new o(r);r=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&a&&(r=e.leaveObject(u)),null===n.key||null===r&&!0!==a?null!==i&&e.exitKey(i):e.leaveKey(i,n.key,r),r},r.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},r.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},r.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,a=!1;return Object.keys(n.choice).some(function(i){var o=e.save(),s=n.choice[i];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:i,value:c},a=!0}catch(t){return e.restore(o),!1}return!0},this),a?r:e.error("Choice not matched")},r.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},r.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var a=this._encodeValue(e,t,n);if(void 0!==a&&!this._skipDefault(a,t,n))return a}},r.prototype._encodeValue=function(e,t,n){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new a);var i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}var o=null,s=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,n)._encode(e,t),s=!0;else if(r.children)o=r.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var a=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),a},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)},c))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(o=this._encodePrimitive(r.tag,e),s=!0);var i;if(!r.any&&null===r.choice){var u=null!==r.implicit?r.implicit:r.tag,l=null===r.implicit?"universal":"context";null===u?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(u,s,l,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},r.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},r.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},r.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},r.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(898);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(899),r.pem=n(1072)},function(e,t,n){function r(e){o.call(this,e),this.enc="pem"}var a=n(18),i=n(39).Buffer,o=n(899);a(r,o),e.exports=r,r.prototype.decode=function(e,t){for(var n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u<n.length;u++){var l=n[u].match(a);if(null!==l&&l[2]===r){if(-1!==s){if("END"!==l[1])break;c=u;break}if("BEGIN"!==l[1])break;s=u}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);var d=n.slice(s+1,c).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new i(d,"base64");return o.prototype.decode.call(this,f,t)}},function(e,t,n){var r=t;r.der=n(900),r.pem=n(1074)},function(e,t,n){function r(e){i.call(this,e),this.enc="pem"}var a=n(18),i=n(900);a(r,i),e.exports=r,r.prototype.encode=function(e,t){for(var n=i.prototype.encode.call(this,e),r=n.toString("base64"),a=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)a.push(r.slice(o,o+64));return a.push("-----END "+t.label+"-----"),a.join("\n")}},function(e,t,n){"use strict";var r=n(465),a=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),i=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=r.define("RelativeDistinguishedName",function(){this.setof(i)}),u=r.define("RDNSequence",function(){this.seqof(c)}),l=r.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),d=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),f=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(l),this.key("validity").use(d),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),h=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});e.exports=h},function(e,t){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(e,t,n){(function(t){var r=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,a=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,o=n(505),s=n(841);e.exports=function(e,n){var c,u=e.toString(),l=u.match(r);if(l){var d="aes"+l[1],f=new t(l[2],"hex"),p=new t(l[3].replace(/\r?\n/g,""),"base64"),h=o(n,f.slice(0,8),parseInt(l[1],10)).key,m=[],_=s.createDecipheriv(d,h,f);m.push(_.update(p)),m.push(_.final()),c=t.concat(m)}else{var M=u.match(i);c=new t(M[2].replace(/\r?\n/g,""),"base64")}return{tag:u.match(a)[1],data:c}}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n,r,o,c){var l=u(r);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return a(e,n,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return i(e,n,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");n=t.concat([c,n]);for(var d=l.modulus.byteLength(),f=[1],p=0;n.length+f.length+2<d;)f.push(255),p++;f.push(0);for(var h=-1;++h<n.length;)f.push(n[h]);f=new t(f);var m=s.mont(l.modulus);e=new s(e).toRed(m),e=e.redPow(new s(l.publicExponent)),e=new t(e.fromRed().toArray());var _=p<8?1:0;for(d=Math.min(e.length,f.length),e.length!==f.length&&(_=1),h=-1;++h<d;)_|=e[h]^f[h];return 0===_}function a(e,t,n){var r=l[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new c(r),i=n.data.subjectPrivateKey.data;return a.verify(t,e,i)}function i(e,t,n){var r=n.data.p,a=n.data.q,i=n.data.g,c=n.data.pub_key,l=u.signature.decode(e,"der"),d=l.s,f=l.r;o(d,a),o(f,a);var p=s.mont(r),h=d.invm(a);return 0===i.toRed(p).redPow(new s(t).mul(h).mod(a)).fromRed().mul(c.toRed(p).redPow(f.mul(h).mod(a)).fromRed()).mod(r).mod(a).cmp(f)}function o(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}var s=n(56),c=n(84).ec,u=n(508),l=n(901);e.exports=r}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e){this.curveType=s[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function a(e,n,r){Array.isArray(e)||(e=e.toArray());var a=new t(e);if(r&&a.length<r){var i=new t(r-a.length);i.fill(0),a=t.concat([i,a])}return n?a.toString(n):a}var i=n(84),o=n(56);e.exports=function(e){return new r(e)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,r.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},r.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},r.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),a(n,e)},r.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},r.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},r.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new o(e);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(t,n(39).Buffer)},function(e,t,n){t.publicEncrypt=n(1081),t.privateDecrypt=n(1082),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){(function(t){function r(e,n){var r=e.modulus.byteLength(),a=n.length,i=c("sha1").update(new t("")).digest(),o=i.length,f=2*o;if(a>r-f-2)throw new Error("message too long");var p=new t(r-a-f-2);p.fill(0);var h=r-o-1,m=s(o),_=l(t.concat([i,p,new t([1]),n],h),u(m,h)),M=l(m,u(_,o));return new d(t.concat([new t([0]),M,_],r))}function a(e,n,r){var a=n.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");var s;return r?(s=new t(o-a-3),s.fill(255)):s=i(o-a-3),new d(t.concat([new t([0,r?1:2]),s,new t([0]),n],o))}function i(e,n){for(var r,a=new t(e),i=0,o=s(2*e),c=0;i<e;)c===o.length&&(o=s(2*e),c=0),(r=o[c++])&&(a[i++]=r);return a}var o=n(508),s=n(229),c=n(461),u=n(902),l=n(903),d=n(56),f=n(904),p=n(844);e.exports=function(e,t,n){var i;i=e.padding?e.padding:n?1:4;var s,c=o(e);if(4===i)s=r(c,t);else if(1===i)s=a(c,t,n);else{if(3!==i)throw new Error("unknown padding");if(s=new d(t),s.cmp(c.modulus)>=0)throw new Error("data too long for modulus")}return n?p(s,c):f(s,c)}}).call(t,n(39).Buffer)},function(e,t,n){(function(t){function r(e,n){var r=(e.modulus,e.modulus.byteLength()),a=(n.length,d("sha1").update(new t("")).digest()),o=a.length;if(0!==n[0])throw new Error("decryption error");var u=n.slice(1,o+1),l=n.slice(o+1),f=c(u,s(l,o)),p=c(l,s(f,r-o-1));if(i(a,p.slice(0,o)))throw new Error("decryption error");for(var h=o;0===p[h];)h++;if(1!==p[h++])throw new Error("decryption error");return p.slice(h)}function a(e,t,n){for(var r=t.slice(0,2),a=2,i=0;0!==t[a++];)if(a>=t.length){i++;break}var o=t.slice(2,a-1);t.slice(a-1,a);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++,o.length<8&&i++,i)throw new Error("decryption error");return t.slice(a)}function i(e,n){e=new t(e),n=new t(n);var r=0,a=e.length;e.length!==n.length&&(r++,a=Math.min(e.length,n.length));for(var i=-1;++i<a;)r+=e[i]^n[i];return r}var o=n(508),s=n(902),c=n(903),u=n(56),l=n(844),d=n(461),f=n(904);e.exports=function(e,n,i){var s;s=e.padding?e.padding:i?1:4;var c=o(e),d=c.modulus.byteLength();if(n.length>d||new u(n).cmp(c.modulus)>=0)throw new Error("decryption error");var p;p=i?f(new u(n),c):l(n,c);var h=new t(d-p.length);if(h.fill(0),p=t.concat([h,p],d),4===s)return r(c,p);if(1===s)return a(c,p,i);if(3===s)return p;throw new Error("unknown padding")}}).call(t,n(39).Buffer)},function(e,t,n){"use strict";(function(e,r){function a(){
|
41 |
throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function i(e,t){if("number"!=typeof e||e!==e)throw new TypeError("offset must be a number");if(e>m||e<0)throw new TypeError("offset must be a uint32");if(e>p||e>t)throw new RangeError("offset out of range")}function o(e,t,n){if("number"!=typeof e||e!==e)throw new TypeError("size must be a number");if(e>m||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>p)throw new RangeError("buffer too small")}function s(t,n,r,a){if(!(f.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)a=n,n=0,r=t.length;else if("function"==typeof r)a=r,r=t.length-n;else if("function"!=typeof a)throw new TypeError('"cb" argument must be a function');return i(n,t.length),o(r,n,t.length),c(t,n,r,a)}function c(e,t,n,a){if(r.browser){var i=e.buffer,o=new Uint8Array(i,t,n);return h.getRandomValues(o),a?void r.nextTick(function(){a(null,e)}):e}return a?void d(n,function(n,r){if(n)return a(n);r.copy(e,t),a(null,e)}):(d(n).copy(e,t),e)}function u(t,n,r){if(void 0===n&&(n=0),!(f.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return i(n,t.length),void 0===r&&(r=t.length-n),o(r,n,t.length),c(t,n,r)}var l=n(33),d=n(229),f=l.Buffer,p=l.kMaxLength,h=e.crypto||e.msCrypto,m=Math.pow(2,32)-1;h&&h.getRandomValues||!r.browser?(t.randomFill=s,t.randomFillSync=u):(t.randomFill=a,t.randomFillSync=a)}).call(t,n(51),n(63))},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(80),i=r(a),o=n(149),s=r(o),c=n(1),u=r(c),l=n(9);t.default=u.default.createClass({displayName:"RootChild",propTypes:{children:c.PropTypes.node},contextTypes:{store:c.PropTypes.object},componentDidMount:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()},componentDidUpdate:function(){this.renderChildren()},componentWillUnmount:function(){this.container&&(s.default.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)},renderChildren:function(){var e;e=this.props&&((0,i.default)(this.props).length>1||!this.props.children)?u.default.createElement("div",this.props,this.props.children):this.props.children,this.context.store&&(e=u.default.createElement(l.Provider,{store:this.context.store},e)),s.default.render(e,this.container)},render:function(){return null}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){var e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,b("viewport: %o",e),e}function i(){y=a()}function o(e,t){for(var n=[e,g[e],v[e],g[v[e]]],r=-1/0,a=void 0,i=0,o=n.length;i<o;i++){var s=n[i],c=t[s];if(c>0)return s;c>r&&(r=c,a=e)}return a}function s(e,t,n,r,a,i){for(var o=t?[e+" "+t,e,e+" "+g[t]]:[e,e+" "+v[e],e+" "+g[v[e]]],s=void 0,u=0,l=a*i,d=0,f=o.length;d<f;d++){var p=o[d],h=c(p,n,r),m=h.left+a,_=h.top+i,M=Math.min(h.top<y.top?_-y.top:y.bottom-h.top,i),b=Math.min(h.left<y.left?m-y.left:y.right-h.left,a),A=b*M;if(A===l)return p;A>u&&(u=A,s=p)}return s}function c(e,t,n){var r=(0,m.default)(t);if(!r)throw new Error("could not get bounding client rect of Tip element");var a=r.width,i=r.height,o=(0,m.default)(n);if(!o)throw new Error("could not get bounding client rect of `target`");var s=o.width,c=o.height,l=u(o,document);if(!l)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:l.top-i,left:l.left+s/2-a/2};break;case"bottom":d={top:l.top+c,left:l.left+s/2-a/2};break;case"right":d={top:l.top+c/2-i/2,left:l.left+s};break;case"left":d={top:l.top+c/2-i/2,left:l.left-a};break;case"top left":d={top:l.top-i,left:l.left+s/2-a+15};break;case"top right":d={top:l.top-i,left:l.left+s/2-15};break;case"bottom left":d={top:l.top+c,left:l.left+s/2-a+15};break;case"bottom right":d={top:l.top+c,left:l.left+s/2-15};break;case"left top":d={top:l.top+c/2-i,left:l.left-a};break;case"left bottom":d={top:l.top+c/2,left:l.left-a};break;case"right top":d={top:l.top+c/2-i,left:l.left+s};break;case"right bottom":d={top:l.top+c/2,left:l.left+s};break;default:throw new Error('invalid position "'+e+'"')}return d}function u(e,t){var n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,a=r.clientTop||n.clientTop||0,i=r.clientLeft||n.clientLeft||0,o=window.pageYOffset||r.scrollTop,s=window.pageXOffset||r.scrollLeft;return{top:e.top+o-a,left:e.left+s-i}}Object.defineProperty(t,"__esModule",{value:!0}),t.isElement=t.offset=t.suggested=t.unbindWindowListeners=t.bindWindowListeners=t.constrainLeft=void 0;var l=n(58),d=r(l),f=n(905),p=r(f),h=n(1092),m=r(h),_=n(102),M=r(_),b=(0,M.default)("calypso:popover:util"),g={top:"bottom",bottom:"top",left:"right",right:"left"},v={top:"right",left:"top",bottom:"left",right:"bottom"},y=a(),A=!1,w=function(){if(A)return b("window events already bound");A=!0,b("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",i,!0),window.addEventListener("scroll",i,!0)},E=function(){if(!A)return b("window events are not bound");A=!1,b("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",i,!0),window.removeEventListener("scroll",i,!0)},k=function(e,t,n){var r=(0,m.default)(n),a=t.clientHeight,i=t.clientWidth,c={top:r.top-a,bottom:y.height-r.bottom-a,left:r.left-i,right:y.width-r.right-i},u=e.split(/\s+/),l=(0,p.default)(u,1),d=l[0],f=(0,p.default)(u,2),h=f[1],_=o(d,c);return h!==_&&h!==g[_]||(h=null),s(_,h,t,n,i,a)||e},T=function(e,t){var n=(0,m.default)(t).width;return e.left=Math.max(0,Math.min(e.left,y.width-n)),e},L=function(e){try{return e instanceof HTMLElement}catch(t){return"object"===(void 0===e?"undefined":(0,d.default)(e))&&1===e.nodeType&&"object"===(0,d.default)(e.style)&&"object"===(0,d.default)(e.ownerDocument)}};t.constrainLeft=T,t.bindWindowListeners=w,t.unbindWindowListeners=E,t.suggested=k,t.offset=c,t.isElement=L},function(e,t,n){e.exports={default:n(1087),__esModule:!0}},function(e,t,n){n(137),n(109),e.exports=n(1088)},function(e,t,n){var r=n(196),a=n(32)("iterator"),i=n(99);e.exports=n(21).isIterable=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){e.exports={default:n(1090),__esModule:!0}},function(e,t,n){n(137),n(109),e.exports=n(1091)},function(e,t,n){var r=n(53),a=n(220);e.exports=n(21).getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){function r(e){var t=null,n=a(e);if(3===e.nodeType){var r=n.createRange();r.selectNodeContents(e),e=r}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var i=n.createElement("span");i.appendChild(n.createTextNode("")),e.insertNode(i),t=i.getBoundingClientRect();var o=i.parentNode;o.removeChild(i),o.normalize()}return t}var a=n(1093);e.exports=r},function(e,t){function n(e){return e&&e.nodeType===a}function r(e){return n(e)?e:n(e.ownerDocument)?e.ownerDocument:n(e.document)?e.document:e.parentNode?r(e.parentNode):e.commonAncestorContainer?r(e.commonAncestorContainer):e.startContainer?r(e.startContainer):e.anchorNode?r(e.anchorNode):void 0}e.exports=r;var a=9},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Subscriptions=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(124),A=r(y),w=n(30),E=r(w),k=n(14),T=r(k),L=n(70),S=n(54),C=n(36),z=n(41),O=r(z),N=n(38),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={stb_enabled:r.props.getOptionValue("stb_enabled","subscriptions"),stc_enabled:r.props.getOptionValue("stc_enabled","subscriptions")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("subscriptions",e))},r.trackConfigureClick=function(){T.default.tracks.recordJetpackClick("view-followers")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("subscriptions"),n=this.props.getOptionValue("subscriptions"),r=this.props.isUnavailableInDevMode("subscriptions");return g.default.createElement(O.default,(0,i.default)({},this.props,{hideButton:!0,module:"subscriptions"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:t},g.default.createElement(S.ModuleToggle,{slug:"subscriptions",disabled:r,activated:n,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),g.default.createElement(L.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.stb_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:function(){return e.updateOptions("stb_enabled")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "follow blog" option in the comment form'))),g.default.createElement(A.default,{checked:this.state.stc_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:function(){return e.updateOptions("stc_enabled")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "follow comments" option in the comment form'))))),function(){return r||!n?"":e.props.isLinked?g.default.createElement(E.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackConfigureClick,href:"https://wordpress.com/people/email-followers/"+e.props.siteRawUrl},(0,v.translate)("View your Email Followers")):g.default.createElement(E.default,{compact:!0,className:"jp-settings-card__configure-link",href:e.props.connectUrl+"&from=unlinked-user-connect-masterbar"},(0,v.translate)("Connect your user account to WordPress.com to view your email followers")," ")}())}}]),t}(g.default.Component);t.Subscriptions=(0,C.ModuleSettingsForm)(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Security=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(1),m=r(h),_=n(9),M=n(24),b=r(M),g=n(27),v=n(113),y=n(22),A=n(81),w=n(207),E=n(208),k=r(E),T=n(864),L=r(T),S=n(1099),C=r(S),z=n(1100),O=r(z),N=n(1112),D=n(1115),P=t.Security=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.isAkismetFound=function(){if(!r.props.isPluginActive("akismet/akismet.php"))return!1;if(r.props.searchTerm){var e=r.props.isPluginInstalled("akismet/akismet.php");return["akismet","antispam","spam","comments",e.Description,e.PluginURI].join(" ").toLowerCase().indexOf(r.props.searchTerm.toLowerCase())>-1}return!0},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,rewindStatus:this.props.rewindStatus,siteRawUrl:this.props.siteRawUrl},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),a="active"===(0,b.default)(this.props.rewindStatus,["state"],!1),i=this.props.isModuleFound("vaultpress")||a;return(this.props.searchTerm||this.props.active)&&(n||t||r||i)?m.default.createElement("div",null,m.default.createElement(k.default,null),i&&m.default.createElement(C.default,e),r&&m.default.createElement("div",null,m.default.createElement(O.default,e),m.default.createElement(L.default,null)),t&&m.default.createElement(N.Protect,e),n&&m.default.createElement(D.SSO,e)):null}}]),t}(h.Component);P.displayName="SecuritySettings",t.default=(0,_.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)},isPluginActive:function(t){return(0,w.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,w.isPluginInstalled)(e,t)}}})(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.BackupsScan=void 0;var a=n(10),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(9),g=n(8),v=n(30),y=r(v),A=n(14),w=r(A),E=n(24),k=r(E),T=n(55),L=n(832),S=r(L),C=n(36),z=n(41),O=r(z),N=n(38),D=r(N),P=n(62),x=n(64),j=n(40),R=r(j),Y=n(27),I=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(){return M.default.createElement(O.default,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),hideButton:!0,action:"scan"},M.default.createElement(D.default,{disableInDevMode:!0,module:{module:"backups"},support:"https://help.vaultpress.com/get-to-know/"},(0,g.translate)("Checking site status…")))}}]),t}(_.Component),q=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.getCardText=function(){return r.props.isDevMode?(0,g.translate)("Unavailable in Dev Mode."):M.default.createElement(S.default,{title:(0,g.translate)("Connected"),icon:"checkmark-circle",feature:"rewind",description:(0,g.translate)("Your site is being backed up in real time and regularly scanned for security threats."),className:"is-upgrade-premium jp-banner__no-border",href:"https://wordpress.com/stats/activity/"+r.props.siteRawUrl})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(O.default,(0,i.default)({feature:"rewind"},this.props,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),action:"rewind",hideButton:!0}),this.getCardText())}}]),t}(_.Component),B=t.BackupsScan=(0,C.ModuleSettingsForm)(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.toggleModule=function(e,t){r.props.updateFormStateOptionValue(e,!t)},r.trackConfigureClick=function(){w.default.tracks.recordJetpackClick("configure-scan")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getCardText",value:function(){var e=(0,k.default)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,k.default)(this.props.vaultPressData,["data","features","security"],!1),n=(0,T.getPlanClass)(this.props.sitePlan.product_slug),r="";if(this.props.isDevMode)return(0,g.translate)("Unavailable in Dev Mode.");if(e&&t){var a=this.props.hasThreats;return a?M.default.createElement("div",null,M.default.createElement("strong",null,(0,g.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:a,args:{number:(0,g.numberFormat)(a)}})),M.default.createElement("br",null),M.default.createElement("br",null),(0,g.translate)("{{a}}View details{{/a}}",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),M.default.createElement("br",null),(0,g.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}})):(0,g.translate)("Your site is backed up and threat-free.")}if(e&&(0,R.default)(["is-free-plan","is-personal-plan"],n))return(0,g.translate)("Your site is backed up.");switch(n){case"is-personal-plan":r=(0,g.translate)("You have paid for backups but they're not yet active."),r+=" "+(0,g.translate)('Click "Set Up" to finish installation.');break;case"is-premium-plan":case"is-business-plan":r=(0,g.translate)("You have paid for backups and security scanning but they’re not yet active."),r+=" "+(0,g.translate)('Click "Set Up" to finish installation.')}return r}},{key:"render",value:function(){var e=(0,k.default)(this.props.vaultPressData,["data","features","security"],!1),t="active"===(0,k.default)(this.props.rewindStatus,["state"],!1),n=!1!==(0,k.default)(this.props.rewindStatus,["state"],!1),r="N/A"!==this.props.vaultPressData&&!1!==(0,k.default)(this.props.vaultPressData,["data"],!1);return!n||this.props.vaultPressActive&&!r?M.default.createElement(I,null):t?M.default.createElement(q,this.props):M.default.createElement(O.default,(0,i.default)({feature:T.FEATURE_SECURITY_SCANNING_JETPACK},this.props,{header:(0,g.translate)("Backups and security scanning",{context:"Settings header"}),action:"scan",hideButton:!0}),M.default.createElement(D.default,{disableInDevMode:!0,module:{module:"backups"},support:"https://help.vaultpress.com/get-to-know/"},this.getCardText()),!this.props.isUnavailableInDevMode("backups")&&e&&M.default.createElement(y.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:"https://dashboard.vaultpress.com/"},(0,g.translate)("Configure your Security Scans")))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{sitePlan:(0,x.getSitePlan)(e),vaultPressData:(0,P.getVaultPressData)(e),hasThreats:(0,P.getVaultPressScanThreatCount)(e),vaultPressActive:(0,Y.isModuleActivated)(e,"vaultpress")}})(B)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Antispam=void 0;var a=n(10),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(9),g=n(8),v=n(500),y=r(v),A=n(510),w=r(A),E=n(1103),k=r(E),T=n(61),L=r(T),S=n(497),C=r(S),z=n(25),O=r(z),N=n(456),D=r(N),P=n(1105),x=r(P),j=n(62),R=n(55),Y=n(14),I=r(Y),q=n(70),B=n(36),W=n(41),U=r(W),H=n(38),F=r(H),X=t.Antispam=(0,B.ModuleSettingsForm)(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.state={apiKey:r.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}},r.keyChanged=!1,r.checkApiKeyTyped=function(e){0<e.currentTarget.value.length&&r.props.checkAkismetKey(e.currentTarget.value),r.keyChanged=!0,r.setState({delayKeyCheck:!1})},r.updateText=function(e){var t=(0,O.default)({},e);t.currentTarget.value=(0,x.default)(t.currentTarget.value),r.setState({apiKey:t.currentTarget.value,delayKeyCheck:!0,currentEvent:t},r.debouncedCheckApiKeyTyped(t))},r.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){this.debouncedCheckApiKeyTyped=(0,C.default)(this.checkApiKeyTyped,500)}},{key:"componentDidUpdate",value:function(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!(0,D.default)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}},{key:"render",value:function(){var e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText},t="",n=(0,g.translate)("Checking your spam protection…"),r=!0;return null===this.props.isAkismetKeyValid?(e.value=(0,g.translate)("Fetching key…"),e.disabled=!0,r=!1):""===this.state.apiKey?(e.value="",n=(0,g.translate)("Your site needs an Antispam key.")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=M.default.createElement("div",{className:"form-input-validation is-warning"},M.default.createElement("span",null,M.default.createElement(L.default,{size:24,icon:"sync"}),(0,g.translate)("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=M.default.createElement(k.default,{isError:!0,text:(0,g.translate)("There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})}})}),e.isError=!0,n=(0,g.translate)("Your site is not protected from spam.")):(t=M.default.createElement(k.default,{text:(0,g.translate)("Your Antispam key is valid.")}),e.isValid=!0,n=(0,g.translate)("Your site is protected from spam."),r=!1),M.default.createElement(U.default,(0,i.default)({},this.props,{header:(0,g.translate)("Spam filtering",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:R.FEATURE_SPAM_AKISMET_PLUS}),M.default.createElement(w.default,{onOpen:this.trackOpenCard,header:n},M.default.createElement(F.default,{support:"https://akismet.com/jetpack/"},M.default.createElement(q.FormFieldset,null,M.default.createElement(q.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,g.translate)("Your API key")),M.default.createElement(y.default,e),t),r&&M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("If you don't already have an API key, then {{a}}get your API key here{{/a}}, and you'll be guided through the process of getting one.",{components:{a:M.default.createElement("a",{href:"https://akismet.com/wordpress/"})}}))))))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{isAkismetKeyValid:(0,j.isAkismetKeyValid)(e),isCheckingAkismetKey:(0,j.isCheckingAkismetKey)(e)}},function(e){return{checkAkismetKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e((0,j.checkAkismetKey)(t))}}})(X)},function(e,t,n){"use strict";var r=n(1),a=n(25),i=n(13),o=n(30);e.exports=r.createClass({displayName:"CompactCard",render:function(){var e=a({},this.props,{className:i(this.props.className,"is-compact")});return r.createElement(o,e,this.props.children)}})},function(e,t){},function(e,t,n){"use strict";var r=n(1),a=n(13),i=n(61);n(1104),e.exports=r.createClass({displayName:"FormInputValidation",propTypes:{isError:r.PropTypes.bool,isWarning:r.PropTypes.bool,text:r.PropTypes.node,icon:r.PropTypes.string},getDefaultProps:function(){return{isError:!1}},render:function(){var e=a({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return r.createElement("div",{className:e},r.createElement("span",null,r.createElement(i,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}})},function(e,t){},function(e,t,n){function r(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=a(t)))return e;var r=c(e),d=c(t),f=s(r,d),p=o(r,d)+1;return i(r,f,p).join("")}var a=n(481),i=n(1106),o=n(1107),s=n(1108),c=n(1109),u=n(221),l=/^\s+|\s+$/g;e.exports=r},function(e,t,n){function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:a(e,t,n)}var a=n(460);e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--&&a(t,e[n],0)>-1;);return n}var a=n(223);e.exports=r},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&a(t,e[n],0)>-1;);return n}var a=n(223);e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(1110),i=n(865),o=n(1111);e.exports=r},function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e){return e.match(d)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");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}),t.Protect=void 0;var a=n(10),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(43),v=r(g),y=n(1113),A=r(y),w=n(40),E=r(w),k=n(510),T=r(k),L=n(13),S=r(L),C=n(14),z=r(C),O=n(70),N=n(54),D=n(36),P=n(41),x=r(P),j=n(38),R=r(j);t.Protect=(0,D.ModuleSettingsForm)(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.state={whitelist:r.props.getOptionValue("jetpack_protect_global_whitelist")?r.props.getOptionValue("jetpack_protect_global_whitelist").local:""},r.currentIpIsWhitelisted=function(){return!!(0,E.default)(r.state.whitelist,r.props.currentIp)},r.updateText=function(e){r.currentIpIsWhitelisted(),r.setState({whitelist:e.target.value}),r.props.onOptionChange(e)},r.addToWhitelist=function(){var e=r.state.whitelist+(0>=r.state.whitelist.length?"":"\n")+r.props.currentIp;r.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",e),r.setState({whitelist:e}),z.default.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})},r.trackOpenCard=function(){z.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})},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.getOptionValue("protect"),t=this.props.isUnavailableInDevMode("protect"),n=M.default.createElement(N.ModuleToggle,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return M.default.createElement(x.default,(0,i.default)({},this.props,{module:"protect",header:(0,b.translate)("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),M.default.createElement(T.default,{onOpen:this.trackOpenCard,header:n,className:(0,S.default)({"jp-foldable-settings-disable":t})},M.default.createElement(R.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("protect")},M.default.createElement(O.FormFieldset,null,this.props.currentIp&&M.default.createElement("div",null,M.default.createElement("div",{className:"jp-form-label-wide"},(0,b.translate)("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),M.default.createElement(v.default,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},(0,b.translate)("Add to whitelist"))),M.default.createElement(O.FormLabel,null,M.default.createElement(O.FormLegend,null,(0,b.translate)("Whitelisted IP addresses")),M.default.createElement(A.default,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.whitelist})),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("You may whitelist an IP address or series of addresses preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100",{components:{br:M.default.createElement("br",null)}}))))))}}]),t}(_.Component))},function(e,t,n){"use strict";var r=n(10),a=function(e){return e&&e.__esModule?e:{default:e}}(r),i=n(1),o=n(13),s=n(114);n(1114),e.exports=i.createClass({displayName:"Textarea",render:function(){return i.createElement("textarea",(0,a.default)({},s(this.props,"className"),{className:o(this.props.className,"dops-textarea")}),this.props.children)}})},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SSO=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(124),A=r(y),w=n(70),E=n(54),k=n(36),T=n(41),L=r(T),S=n(38),C=r(S);t.SSO=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={jetpack_sso_match_by_email:r.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:r.props.getOptionValue("jetpack_sso_require_two_step","sso")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("sso",e))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("sso"),n=this.props.isUnavailableInDevMode("sso");return g.default.createElement(L.default,(0,i.default)({},this.props,{hideButton:!0,module:"sso",header:(0,v.translate)("WordPress.com log in",{context:"Settings header"})}),g.default.createElement(C.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso")},g.default.createElement(E.ModuleToggle,{slug:"sso",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),g.default.createElement(w.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.jetpack_sso_match_by_email,disabled:!t||n||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:function(){return e.updateOptions("jetpack_sso_match_by_email")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Match accounts using email addresses"))),g.default.createElement(A.default,{checked:this.state.jetpack_sso_require_two_step,disabled:!t||n||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:function(){return e.updateOptions("jetpack_sso_require_two_step")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(b.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Traffic=void 0;var a=n(10),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(9),g=n(27),v=n(113),y=n(22),A=n(81),w=n(208),E=r(w),k=n(1117),T=n(1118),L=n(1119),S=n(1120),C=n(1121),z=n(1122),O=r(z),N=n(1123),D=n(1124),P=r(D),x=n(28),j=t.Traffic=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,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode
|
42 |
},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),a=this.props.isModuleFound("related-posts"),o=this.props.isModuleFound("verification-tools"),s=this.props.isModuleFound("sitemaps"),c=this.props.isModuleFound("search"),u=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||a||o||s||u||c)?M.default.createElement("div",null,M.default.createElement(E.default,null),r&&M.default.createElement(S.SiteStats,e),c&&M.default.createElement(O.default,e),n&&M.default.createElement(L.Ads,(0,i.default)({},e,{configureUrl:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl})),a&&M.default.createElement(C.RelatedPosts,(0,i.default)({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&M.default.createElement(k.SEO,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/seo/"+this.props.siteRawUrl})),u&&M.default.createElement(T.GoogleAnalytics,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/analytics/"+this.props.siteRawUrl})),s&&M.default.createElement(P.default,e),o&&M.default.createElement(N.VerificationServices,e)):null}}]),t}(M.default.Component);j.displayName="TrafficSettings",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)},lastPostUrl:(0,x.getLastPostUrl)(e)}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SEO=void 0;var a=n(10),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(30),v=r(g),y=n(14),A=r(y),w=n(55),E=n(36),k=n(41),T=r(k),L=n(38),S=r(L),C=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.trackConfigureClick=function(){A.default.tracks.recordJetpackClick("configure-seo")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Search engine optimization",{context:"Settings header"}),feature:w.FEATURE_SEO_TOOLS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"seo-tools"},support:"https://jetpack.com/support/seo-tools/"},M.default.createElement("span",null,(0,b.translate)("You can tweak these settings if you'd like more advanced control. Read more about what you can do to {{a}}optimize your site's SEO{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support/seo-tools/"})}}))),!this.props.isUnavailableInDevMode("seo-tools")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your SEO settings")))}}]),t}(M.default.Component);t.SEO=(0,E.ModuleSettingsForm)(C)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;var a=n(10),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(30),v=r(g),y=n(14),A=r(y),w=n(55),E=n(36),k=n(41),T=r(k),L=n(38),S=r(L);t.GoogleAnalytics=(0,E.ModuleSettingsForm)(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:"trackConfigureClick",value:function(){A.default.tracks.recordJetpackClick("configure-ga")}},{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Google Analytics",{context:"Settings header"}),feature:w.FEATURE_GOOGLE_ANALYTICS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"google-analytics"},support:"https://jetpack.com/support/google-analytics/"},M.default.createElement("p",null,(0,b.translate)("Google Analytics is a free service that complements our {{a}}built-in stats{{/a}} with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/stats/day/"+this.props.siteRawUrl})}}))),!this.props.isUnavailableInDevMode("google-analytics")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your Google Analytics settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Ads=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(30),A=r(y),w=n(124),E=r(w),k=n(14),T=r(k),L=n(55),S=n(70),C=n(36),z=n(54),O=n(41),N=r(O),D=n(38),P=r(D);t.Ads=(0,C.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={enable_header_ad:r.props.getOptionValue("enable_header_ad","wordads"),wordads_second_belowpost:r.props.getOptionValue("wordads_second_belowpost","wordads"),wordads_display_front_page:r.props.getOptionValue("wordads_display_front_page","wordads"),wordads_display_post:r.props.getOptionValue("wordads_display_post","wordads"),wordads_display_page:r.props.getOptionValue("wordads_display_page","wordads"),wordads_display_archive:r.props.getOptionValue("wordads_display_archive","wordads")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("wordads",e))},r.trackConfigureClick=function(){T.default.tracks.recordJetpackClick("view-earnings")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("wordads"),n=this.props.isUnavailableInDevMode("wordads");return g.default.createElement(N.default,(0,i.default)({},this.props,{header:(0,v.translate)("Ads",{context:"Ads header"}),feature:L.FEATURE_WORDADS_JETPACK,hideButton:!0}),g.default.createElement(P.default,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:"https://jetpack.com/support/ads/"},g.default.createElement("p",null,(0,v.translate)("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings."),g.default.createElement("br",null),g.default.createElement("small",{className:"jp-form-setting-explanation"},(0,v.translate)("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:g.default.createElement("a",{href:"https://wordpress.com/automattic-ads-tos/",target:"_blank",rel:"noopener noreferrer"})}}))),g.default.createElement(z.ModuleToggle,{slug:"wordads",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Enable ads and display an ad below each post"))),g.default.createElement(S.FormFieldset,null,g.default.createElement(S.FormLegend,null,(0,v.translate)("Display ads below posts on")),g.default.createElement(E.default,{checked:this.state.wordads_display_front_page,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:function(){return e.updateOptions("wordads_display_front_page")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Front page"))),g.default.createElement(E.default,{checked:this.state.wordads_display_post,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:function(){return e.updateOptions("wordads_display_post")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Posts"))),g.default.createElement(E.default,{checked:this.state.wordads_display_page,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:function(){return e.updateOptions("wordads_display_page")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Pages"))),g.default.createElement(E.default,{checked:this.state.wordads_display_archive,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:function(){return e.updateOptions("wordads_display_archive")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Archives")))),g.default.createElement(S.FormFieldset,null,g.default.createElement(S.FormLegend,null,(0,v.translate)("Additional ad placements")),g.default.createElement(E.default,{checked:this.state.enable_header_ad,disabled:!t||n||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:function(){return e.updateOptions("enable_header_ad")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Top of each page"))),g.default.createElement(E.default,{checked:this.state.wordads_second_belowpost,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:function(){return e.updateOptions("wordads_second_belowpost")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Second ad below post"))))),!n&&t&&g.default.createElement(A.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,v.translate)("View your earnings")))}}]),t}(g.default.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SiteStats=void 0;var a=n(10),i=r(a),o=n(80),s=r(o),c=n(49),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(1),y=r(v),A=n(8),w=n(124),E=r(w),k=n(510),T=r(k),L=n(43),S=r(L),C=n(30),z=r(C),O=n(40),N=r(O),D=n(450),P=r(D),x=n(13),j=r(x),R=n(85),Y=n(14),I=r(Y),q=n(70),B=n(54),W=n(36),U=n(38),H=r(U),F=n(41),X=r(F),V=function(e){function t(e){(0,p.default)(this,t);var n=(0,M.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));n.updateOptions=function(e,t){var r=n.props.getOptionValue(t,"stats"),a=!1;n.state[t+"_"+e]?(0,N.default)(r,e)&&(r=(0,P.default)(r,function(t){return t!==e})):(0,N.default)(r,e)||(r.push(e),a=!0),n.setState((0,u.default)({},t+"_"+e,!n.state[t+"_"+e]),function(){n.props.updateOptions((0,u.default)({},t,r))}),I.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:a?"on":"off"})},n.activateStats=function(){n.props.updateOptions({stats:!0})},n.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})};var r=e.getOptionValue("count_roles","stats"),a=e.getOptionValue("roles","stats");return n.state={count_roles:r,roles:a,count_roles_administrator:(0,N.default)(r,"administrator",!1),count_roles_editor:(0,N.default)(r,"editor",!1),count_roles_author:(0,N.default)(r,"author",!1),count_roles_contributor:(0,N.default)(r,"contributor",!1),count_roles_subscriber:(0,N.default)(r,"subscriber",!1),roles_administrator:!0,roles_editor:(0,N.default)(a,"editor",!1),roles_author:(0,N.default)(a,"author",!1),roles_contributor:(0,N.default)(a,"contributor",!1),roles_subscriber:(0,N.default)(a,"subscriber",!1)},n}return(0,g.default)(t,e),(0,m.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),a=this.props.getSiteRoles();return n?y.default.createElement(X.default,(0,i.default)({},this.props,{header:(0,A.translate)("Site stats",{context:"Settings header"}),hideButton:!0}),y.default.createElement(T.default,{onOpen:this.trackOpenCard,header:(0,A.translate)("Collecting valuable traffic stats and insights"),clickableHeader:!0,className:(0,j.default)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},y.default.createElement(H.default,{disableInDevMode:!0,module:t},y.default.createElement(q.FormFieldset,null,y.default.createElement(B.ModuleToggle,{slug:"stats",compact:!0,disabled:!n||r,activated:!!this.props.getOptionValue("admin_bar"),toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),toggleModule:function(t){return e.props.updateFormStateModuleOption(t,"admin_bar")}},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Put a chart showing 48 hours of views in the admin bar"))),y.default.createElement(B.ModuleToggle,{slug:"stats",disabled:!n||r,activated:!!this.props.getOptionValue("hide_smile"),toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),toggleModule:function(t){return e.props.updateFormStateModuleOption(t,"hide_smile")}},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Hide the stats smiley face image")),y.default.createElement("span",{className:"jp-form-setting-explanation"},(0,A.translate)("The image helps collect stats, but should work when hidden.")))),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Count logged in page views from")),(0,s.default)(a).map(function(t){return y.default.createElement(E.default,{checked:e.state["count_roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:function(){return e.updateOptions(t,"count_roles")},key:"count_roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))})),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Allow stats reports to be viewed by")),y.default.createElement(E.default,{checked:!0,disabled:!0},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a.administrator.name)),(0,s.default)(a).map(function(t){return"administrator"!==t&&y.default.createElement(E.default,{checked:e.state["roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:function(){return e.updateOptions(t,"roles")},key:"roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))}))))):y.default.createElement(z.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},y.default.createElement("img",{src:R.imagePath+"stats.svg",width:"60",height:"60",alt:(0,A.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,A.translate)("Unavailable in Dev Mode"):(0,A.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:y.default.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:y.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},y.default.createElement(S.default,{onClick:this.activateStats,primary:!0},(0,A.translate)("Activate Site Stats")))))}}]),t}(y.default.Component);t.SiteStats=(0,W.ModuleSettingsForm)(V)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedPosts=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(509),A=r(y),w=n(30),E=r(w),k=n(124),T=r(k),L=n(70),S=n(54),C=n(36),z=n(41),O=r(z),N=n(38),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={show_headline:r.props.getOptionValue("show_headline","related-posts"),show_thumbnails:r.props.getOptionValue("show_thumbnails","related-posts")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("related-posts",e))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return g.default.createElement(O.default,(0,i.default)({},this.props,{hideButton:!0,module:"related-posts"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts")},g.default.createElement(S.ModuleToggle,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Show related content after posts"))),g.default.createElement(L.FormFieldset,null,g.default.createElement(T.default,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:function(){return e.updateOptions("show_headline")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "Related" header to more clearly separate the related section from posts'))),g.default.createElement(T.default,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:function(){return e.updateOptions("show_thumbnails")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Use a large and visually striking layout"))),(0,v.translate)("{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}",{components:{span:g.default.createElement("span",{className:"jp-form-setting-explanation"}),ExternalLink:g.default.createElement(A.default,{className:"jp-module-settings__external-link",href:this.props.configureUrl})}}),g.default.createElement(L.FormLabel,{className:"jp-form-label-wide"},(0,v.translate)("Preview",{context:"A header for a preview area in the configuration screen."})),g.default.createElement(E.default,{className:"jp-related-posts-preview"},this.state.show_headline&&g.default.createElement("div",{className:"jp-related-posts-preview__title"},(0,v.translate)("Related")),[{url:"1-wpios-ipad-3-1-viewsite.png",text:(0,v.translate)("Big iPhone/iPad Update Now Available"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"wordpress-com-news-wordpress-for-android-ui-update2.jpg",text:(0,v.translate)("The WordPress for Android App Gets a Big Facelift"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"videopresswedding.jpg",text:(0,v.translate)("Upgrade Focus: VideoPress For Weddings"),context:(0,v.translate)('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map(function(t,n){return g.default.createElement("div",{key:"preview_"+n,className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&g.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2014/08/"+t.url+"?w=350&h=200&crop=1",alt:t.text}),g.default.createElement("h4",{className:"jp-related-posts-preview__post-title"},g.default.createElement("a",{href:"#/traffic"},t.text)),g.default.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))}}]),t}(g.default.Component);t.RelatedPosts=(0,C.ModuleSettingsForm)(P)},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(10),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(9),g=n(8),v=n(55),y=n(36),A=n(54),w=n(41),E=r(w),k=n(38),T=r(k),L=n(28),S=n(64),C=n(70),z=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(){return M.default.createElement(E.default,(0,i.default)({},this.props,{module:"search",feature:v.FEATURE_SEARCH_JETPACK,hideButton:!0}),M.default.createElement(T.default,{module:{module:"search"},hasChild:!0,support:"https://jetpack.com/support/search"},M.default.createElement(A.ModuleToggle,{slug:"search",compact:!0,activated:this.props.getOptionValue("search"),toggling:this.props.isSavingAnyOption("search"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Replace WordPress built-in search with an improved search experience")),this.props.getOptionValue("search")&&M.default.createElement(C.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("To configure search filters add the {{link}}Jetpack Search widget to your sidebar{{/link}}.",{components:{link:M.default.createElement("a",{href:"widgets.php"})}})))))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{siteAdminUrl:(0,L.getSiteAdminUrl)(e),sitePlan:(0,S.getSitePlan)(e),fetchingSiteData:(0,S.isFetchingSiteData)(e)}})((0,y.ModuleSettingsForm)(z)),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.VerificationServices=void 0;var a=n(10),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(500),v=r(g),y=n(509),A=r(y),w=n(70),E=n(36),k=n(41),T=r(k),L=n(38),S=r(L),C=n(503),z=r(C),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.activateVerificationTools=function(){return r.props.updateOptions({"verification-tools":!0})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("verification-tools");return this.props.getOptionValue("verification-tools")?M.default.createElement(T.default,(0,i.default)({},this.props,{module:"verification-tools",saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),M.default.createElement(S.default,{module:t,support:t.learn_more_button},M.default.createElement("p",null,(0,b.translate)("Note that {{b}}verifying your site with these services is not necessary{{/b}} in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the {{support}}full instructions{{/support}} if you are having trouble. Supported verification services: {{google}}Google Search Console{{/google}}, {{bing}}Bing Webmaster Center{{/bing}}, {{pinterest}}Pinterest Site Verification{{/pinterest}}, and {{yandex}}Yandex.Webmaster{{/yandex}}.",{components:{b:M.default.createElement("strong",null),support:M.default.createElement("a",{href:"https://jetpack.com/support/site-verification-tools/"}),google:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),M.default.createElement(w.FormFieldset,null,[{id:"google",label:(0,b.translate)("Google"),placeholder:'<meta name="google-site-verification" content="1234" />'},{id:"bing",label:(0,b.translate)("Bing"),placeholder:'<meta name="msvalidate.01" content="1234" />'},{id:"pinterest",label:(0,b.translate)("Pinterest"),placeholder:'<meta name="p:domain_verify" content="1234" />'},{id:"yandex",label:(0,b.translate)("Yandex"),placeholder:'<meta name="yandex-verification" content="1234" />'}].map(function(t){return M.default.createElement(w.FormLabel,{className:"jp-form-input-with-prefix",key:"verification_service_"+t.id},M.default.createElement("span",null,t.label),M.default.createElement(v.default,{name:t.id,value:e.props.getOptionValue(t.id),placeholder:t.placeholder,className:"code",disabled:e.props.isUpdating(t.id),onChange:e.props.onOptionChange}))})))):M.default.createElement(z.default,{callToAction:(0,b.translate)("Activate"),title:t.name,icon:"cog",description:t.long_description,onClick:this.activateVerificationTools})}}]),t}(M.default.Component);t.VerificationServices=(0,E.ModuleSettingsForm)(O)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sitemaps=void 0;var a=n(10),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(9),g=n(8),v=n(509),y=r(v),A=n(24),w=r(A),E=n(14),k=r(E),T=n(70),L=n(36),S=n(54),C=n(41),z=r(C),O=n(38),N=r(O),D=n(28),P=t.Sitemaps=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.trackSitemapUrl=function(){k.default.tracks.recordJetpackClick("sitemap-url-link")},r.trackSitemapNewsUrl=function(){k.default.tracks.recordJetpackClick("sitemap-news-url-link")},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.getModule("sitemaps"),t=(0,w.default)(e,["extra","sitemap_url"],""),n=(0,w.default)(e,["extra","news_sitemap_url"],"");return M.default.createElement(z.default,(0,i.default)({},this.props,{module:"sitemaps",hideButton:!0}),M.default.createElement(N.default,{module:{module:"sitemaps"},hasChild:!0,support:e.learn_more_button},M.default.createElement(S.ModuleToggle,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Your sitemap is automatically sent to all major search engines for indexing.")),M.default.createElement("p",null,M.default.createElement(y.default,{onClick:this.trackSitemapUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:t},t),M.default.createElement("br",null),M.default.createElement(y.default,{onClick:this.trackSitemapNewsUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:n},n))):M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)('Your site is not currently accessible to search engines. You might have "Search Engine Visibility" disabled in your {{a}}Reading Settings{{/a}}.',{components:{a:M.default.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{isSiteVisibleToSearchEngines:(0,D.isSiteVisibleToSearchEngines)(e),siteAdminUrl:(0,D.getSiteAdminUrl)(e)}})((0,L.ModuleSettingsForm)(P))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Writing=void 0;var a=n(10),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(9),g=n(8),v=n(30),y=r(v),A=n(27),w=n(113),E=n(28),k=n(22),T=n(81),L=n(208),S=r(L),C=n(1126),z=r(C),O=n(1129),N=r(O),D=n(1130),P=r(D),x=n(1131),j=r(x),R=n(1132),Y=r(R),I=n(1144),q=n(1145),B=r(q),W=t.Writing=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,isLinked:this.props.isLinked},t=["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven","videopress","lazy-images"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;var n=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("after-the-deadline"),r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return M.default.createElement("div",null,M.default.createElement(S.default,null),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&M.default.createElement(I.Masterbar,(0,i.default)({connectUrl:this.props.connectUrl},e)),n&&M.default.createElement(z.default,(0,i.default)({},e,{userCanManageModules:this.props.userCanManageModules})),M.default.createElement(N.default,e),M.default.createElement(B.default,e),this.props.isModuleFound("custom-content-types")&&M.default.createElement(P.default,e),M.default.createElement(j.default,e),this.props.isModuleFound("post-by-email")&&r&&M.default.createElement(Y.default,(0,i.default)({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!n&&!r&&M.default.createElement(y.default,null,(0,g.translate)("Writing tools available to you will be shown here when an administrator enables them.")))}}]),t}(M.default.Component);W.displayName="WritingSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,A.getModule)(e,t)},settings:(0,w.getSettings)(e),masterbarIsAlwaysActive:(0,E.isAtomicSite)(e),isDevMode:(0,k.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,k.isUnavailableInDevMode)(e,t)},userCanEditPosts:(0,E.userCanEditPosts)(e),isModuleActivated:function(t){return(0,A.isModuleActivated)(e,t)},isLinked:(0,k.isCurrentUserLinked)(e),userCanManageModules:(0,E.userCanManageModules)(e),isModuleFound:function(t){return(0,T.isModuleFound)(e,t)},connectUrl:(0,k.getConnectUrl)(e)}})(W)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Composing=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(124),w=r(A),E=n(510),k=r(E),T=n(13),L=r(T),S=n(14),C=r(S),z=n(70),O=n(81),N=n(54),D=n(36),P=n(27),x=n(1127),j=r(x),R=n(41),Y=r(R),I=n(38),q=r(I),B=t.Composing=function(e){function t(){
|
43 |
+
var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={onpublish:r.props.getOptionValue("onpublish","after-the-deadline"),onupdate:r.props.getOptionValue("onupdate","after-the-deadline"),guess_lang:r.props.getOptionValue("guess_lang","after-the-deadline"),"Bias Language":r.props.getOptionValue("Bias Language","after-the-deadline"),Cliches:r.props.getOptionValue("Cliches","after-the-deadline"),"Complex Expression":r.props.getOptionValue("Complex Expression","after-the-deadline"),"Diacritical Marks":r.props.getOptionValue("Diacritical Marks","after-the-deadline"),"Double Negative":r.props.getOptionValue("Double Negative","after-the-deadline"),"Hidden Verbs":r.props.getOptionValue("Hidden Verbs","after-the-deadline"),"Jargon Language":r.props.getOptionValue("Jargon Language","after-the-deadline"),"Passive voice":r.props.getOptionValue("Passive voice","after-the-deadline"),"Phrases to Avoid":r.props.getOptionValue("Phrases to Avoid","after-the-deadline"),"Redundant Expression":r.props.getOptionValue("Redundant Expression","after-the-deadline")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("after-the-deadline",e))},r.getToggle=function(e,t){return g.default.createElement(w.default,{checked:r.state[e],disabled:!r.props.getOptionValue("after-the-deadline")||r.props.isUnavailableInDevMode("after-the-deadline")||r.props.isSavingAnyOption(["after-the-deadline",e]),onChange:function(){return r.updateOptions(e)}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t))},r.getAtdSettings=function(){var e=r.props.getOptionValue("ignored_phrases");return g.default.createElement(q.default,{hasChild:!0,disableInDevMode:!0,module:r.props.getModule("after-the-deadline")},g.default.createElement(z.FormFieldset,null,g.default.createElement(z.FormLegend,null," ",(0,y.translate)("Proofreading")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Automatically proofread content when: ")),r.getToggle("onpublish",(0,y.translate)("A post or page is first published")),r.getToggle("onupdate",(0,y.translate)("A post or page is updated"))),g.default.createElement(z.FormFieldset,null,g.default.createElement(z.FormLegend,null," ",(0,y.translate)("Automatic Language Detection")),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("The proofreader supports English, French, German, Portuguese and Spanish.")),r.getToggle("guess_lang",(0,y.translate)("Use automatically detected language to proofread posts and pages"))),g.default.createElement(z.FormFieldset,null,g.default.createElement(z.FormLegend,null," ",(0,y.translate)("English Options")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Enable proofreading for the following grammar and style rules: ")),r.getToggle("Bias Language",(0,y.translate)("Bias Language")),r.getToggle("Cliches",(0,y.translate)("Clichés")),r.getToggle("Complex Expression",(0,y.translate)("Complex Phrases")),r.getToggle("Diacritical Marks",(0,y.translate)("Diacritical Marks")),r.getToggle("Double Negative",(0,y.translate)("Double Negatives")),r.getToggle("Hidden Verbs",(0,y.translate)("Hidden Verbs")),r.getToggle("Jargon Language",(0,y.translate)("Jargon")),r.getToggle("Passive voice",(0,y.translate)("Passive Voice")),r.getToggle("Phrases to Avoid",(0,y.translate)("Phrases to Avoid")),r.getToggle("Redundant Expression",(0,y.translate)("Redundant Phrases"))),g.default.createElement(z.FormFieldset,null,g.default.createElement(z.FormLegend,null,(0,y.translate)("Ignored Phrases")),g.default.createElement(j.default,{name:"ignored_phrases",disabled:!r.props.getOptionValue("after-the-deadline"),placeholder:(0,y.translate)("Add a phrase"),value:void 0!==e&&""!==e?e.split(","):[],onChange:r.props.onOptionChange}),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Confirm each new phrase you add by pressing enter."))))},r.updateFormStateByMarkdown=function(e){return r.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)},r.trackOpenCard=function(){C.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"atd"})},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("after-the-deadline"),t=this.props.isModuleFound("markdown");if(!t&&!e)return null;var n=this.props.module("markdown"),r=this.props.module("after-the-deadline"),a=this.props.isUnavailableInDevMode("after-the-deadline"),o=g.default.createElement(q.default,{module:n},g.default.createElement(z.FormFieldset,null,g.default.createElement(N.ModuleToggle,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)))),s=g.default.createElement(k.default,{onOpen:this.trackOpenCard,className:(0,L.default)("jp-foldable-card__main-settings",{"jp-foldable-settings-disable":a}),header:this.props.userCanManageModules?g.default.createElement(N.ModuleToggle,{slug:"after-the-deadline",compact:!0,disabled:a,activated:this.props.getOptionValue("after-the-deadline"),toggling:this.props.isSavingAnyOption("after-the-deadline"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)):g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)},this.getAtdSettings());return g.default.createElement(Y.default,(0,i.default)({},this.props,{header:(0,y.translate)("Composing",{context:"Settings header"}),hideButton:!e,module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),t&&o,e&&s)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,O.isModuleFound)(e,t)}}})((0,D.ModuleSettingsForm)(B))},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(1128),M=r(_),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.state={tags:r.props.value||[]},r.handleChange=function(e){r.setState({tags:e}),r.props.onChange&&r.props.onChange({target:{name:r.props.name,value:e.join(",")}})},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(M.default,{disabled:this.props.disabled,inputProps:{placeholder:this.props.placeholder},onChange:this.handleChange,value:this.state.tags})}}]),t}(m.default.Component);t.default=b,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,t,n(1),n(15)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function f(e){var t=e.tag,n=e.key,r=e.disabled,a=e.onRemove,i=e.classNameRemove,o=e.getTagDisplayValue,s=u(e,["tag","key","disabled","onRemove","classNameRemove","getTagDisplayValue"]);return _.default.createElement("span",b({key:n},s),o(t),!r&&_.default.createElement("a",{className:i,onClick:function(e){return a(n)}}))}function p(e){var t=(e.addTag,u(e,["addTag"])),n=t.onChange,r=t.value,a=u(t,["onChange","value"]);return _.default.createElement("input",b({type:"text",onChange:n,value:r},a))}function h(e,t){return _.default.createElement("span",null,e,t)}function m(e){return e.split(" ").map(function(e){return e.trim()})}Object.defineProperty(t,"__esModule",{value:!0});var _=a(n),M=(a(r),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),b=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},g={className:"react-tagsinput-input",placeholder:"Add a tag"},v=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={tag:"",isFocused:!1},e.focus=e.focus.bind(e),e.blur=e.blur.bind(e),e}return c(t,e),M(t,[{key:"_getTagDisplayValue",value:function(e){var t=this.props.tagDisplayProp;return t?e[t]:e}},{key:"_makeTag",value:function(e){var t=this.props.tagDisplayProp;return t?i({},t,e):e}},{key:"_removeTag",value:function(e){var t=this.props.value.concat([]);if(e>-1&&e<t.length){var n=t.splice(e,1);this.props.onChange(t,n,[e])}}},{key:"_clearInput",value:function(){this.hasControlledInput()?this.props.onChangeInput(""):this.setState({tag:""})}},{key:"_tag",value:function(){return this.hasControlledInput()?this.props.inputValue:this.state.tag}},{key:"_addTags",value:function(e){var t=this,n=this.props,r=n.validationRegex,a=n.onChange,i=n.onValidationReject,o=n.onlyUnique,s=n.maxTags,c=n.value;o&&(e=l(e),e=e.filter(function(e){return c.every(function(n){return t._getTagDisplayValue(n)!==t._getTagDisplayValue(e)})}));var u=e.filter(function(e){return!r.test(t._getTagDisplayValue(e))});if(e=e.filter(function(e){return r.test(t._getTagDisplayValue(e))}),e=e.filter(function(e){var n=t._getTagDisplayValue(e);return"function"==typeof n.trim?n.trim().length>0:n}),s>=0){var d=Math.max(s-c.length,0);e=e.slice(0,d)}if(i&&u.length>0&&i(u),e.length>0){for(var f=c.concat(e),p=[],h=0;h<e.length;h++)p.push(c.length+h);return a(f,e,p),this._clearInput(),!0}return!(u.length>0)&&(this._clearInput(),!1)}},{key:"_shouldPreventDefaultEventOnAdd",value:function(e,t,n){return!!e||13===n&&(this.props.preventSubmit||!this.props.preventSubmit&&!t)}},{key:"focus",value:function(){this.input&&"function"==typeof this.input.focus&&this.input.focus(),this.handleOnFocus()}},{key:"blur",value:function(){this.input&&"function"==typeof this.input.blur&&this.input.blur(),this.handleOnBlur()}},{key:"accept",value:function(){var e=this._tag();return""!==e&&(e=this._makeTag(e),this._addTags([e]))}},{key:"addTag",value:function(e){return this._addTags([e])}},{key:"clearInput",value:function(){this._clearInput()}},{key:"handlePaste",value:function(e){var t=this,n=this.props,r=n.addOnPaste,a=n.pasteSplit;if(r){e.preventDefault();var i=d(e),o=a(i).map(function(e){return t._makeTag(e)});this._addTags(o)}}},{key:"handleKeyDown",value:function(e){if(!e.defaultPrevented){var t=this.props,n=t.value,r=t.removeKeys,a=t.addKeys,i=this._tag(),o=""===i,s=e.keyCode,c=e.key,u=-1!==a.indexOf(s)||-1!==a.indexOf(c),l=-1!==r.indexOf(s)||-1!==r.indexOf(c);if(u){var d=this.accept();this._shouldPreventDefaultEventOnAdd(d,o,s)&&e.preventDefault()}l&&n.length>0&&o&&(e.preventDefault(),this._removeTag(n.length-1))}}},{key:"handleClick",value:function(e){e.target===this.div&&this.focus()}},{key:"handleChange",value:function(e){var t=this.props.onChangeInput,n=this.props.inputProps.onChange,r=e.target.value;n&&n(e),this.hasControlledInput()?t(r):this.setState({tag:r})}},{key:"handleOnFocus",value:function(e){var t=this.props.inputProps.onFocus;t&&t(e),this.setState({isFocused:!0})}},{key:"handleOnBlur",value:function(e){var t=this.props.inputProps.onBlur;if(this.setState({isFocused:!1}),null!=e&&(t&&t(e),this.props.addOnBlur)){var n=this._makeTag(e.target.value);this._addTags([n])}}},{key:"handleRemove",value:function(e){this._removeTag(e)}},{key:"inputProps",value:function(){var e=this.props.inputProps,t=(e.onChange,e.onFocus,e.onBlur,u(e,["onChange","onFocus","onBlur"])),n=b({},g,t);return this.props.disabled&&(n.disabled=!0),n}},{key:"inputValue",value:function(e){return e.currentValue||e.inputValue||""}},{key:"hasControlledInput",value:function(){var e=this.props,t=e.inputValue;return"function"==typeof e.onChangeInput&&"string"==typeof t}},{key:"componentDidMount",value:function(){this.hasControlledInput()||this.setState({tag:this.inputValue(this.props)})}},{key:"componentWillReceiveProps",value:function(e){this.hasControlledInput()||this.inputValue(e)&&this.setState({tag:this.inputValue(e)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=(t.onChange,t.tagProps),a=t.renderLayout,i=t.renderTag,o=t.renderInput,s=(t.addKeys,t.removeKeys,t.className),c=t.focusedClassName,l=(t.addOnBlur,t.addOnPaste,t.inputProps,t.pasteSplit,t.onlyUnique,t.maxTags,t.validationRegex,t.disabled);t.tagDisplayProp,t.inputValue,t.onChangeInput,u(t,["value","onChange","tagProps","renderLayout","renderTag","renderInput","addKeys","removeKeys","className","focusedClassName","addOnBlur","addOnPaste","inputProps","pasteSplit","onlyUnique","maxTags","validationRegex","disabled","tagDisplayProp","inputValue","onChangeInput"]);this.state.isFocused&&(s+=" "+c);var d=n.map(function(t,n){return i(b({key:n,tag:t,onRemove:e.handleRemove.bind(e),disabled:l,getTagDisplayValue:e._getTagDisplayValue.bind(e)},r))}),f=o(b({ref:function(t){e.input=t},value:this._tag(),onPaste:this.handlePaste.bind(this),onKeyDown:this.handleKeyDown.bind(this),onChange:this.handleChange.bind(this),onFocus:this.handleOnFocus.bind(this),onBlur:this.handleOnBlur.bind(this),addTag:this.addTag.bind(this)},this.inputProps()));return _.default.createElement("div",{ref:function(t){e.div=t},onClick:this.handleClick.bind(this),className:s},a(d,f))}}]),t}(_.default.Component);v.defaultProps={className:"react-tagsinput",focusedClassName:"react-tagsinput--focused",addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],renderInput:p,renderTag:f,renderLayout:h,pasteSplit:m,tagProps:{className:"react-tagsinput-tag",classNameRemove:"react-tagsinput-remove"},onlyUnique:!1,maxTags:-1,validationRegex:/.*/,disabled:!1,tagDisplayProp:null,preventSubmit:!0},t.default=v,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(10),i=r(a),o=n(49),s=r(o),c=n(1),u=r(c),l=n(9),d=n(8),f=n(124),p=r(f),h=n(40),m=r(h),_=n(55),M=n(70),b=n(54),g=n(36),v=n(41),y=r(v),A=n(38),w=r(A),E=n(27),k=n(81),T=n(64),L=(0,g.ModuleSettingsForm)(u.default.createClass({displayName:"Media",getInitialState:function(){return{carousel_display_exif:this.props.getOptionValue("carousel_display_exif","carousel")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("carousel",e))},render:function(){var e=this,t=this.props.isModuleFound("carousel"),n=this.props.isModuleFound("videopress");if(!t&&!n)return null;var r=this.props.module("carousel"),a=this.props.getOptionValue("carousel"),o=this.props.module("videopress"),s=(0,_.getPlanClass)(this.props.sitePlan.product_slug),c=u.default.createElement(w.default,{module:{module:"carousel"},hasChild:!0,support:r.learn_more_button},u.default.createElement(b.ModuleToggle,{slug:"carousel",activated:a,toggling:this.props.isSavingAnyOption("carousel"),toggleModule:this.props.toggleModuleNow},u.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)),u.default.createElement(M.FormFieldset,null,u.default.createElement(p.default,{checked:this.state.carousel_display_exif,disabled:!a||this.props.isSavingAnyOption(["carousel","carousel_display_exif"]),onChange:function(){return e.updateOptions("carousel_display_exif")}},u.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,d.translate)("Show photo metadata (Exif) in carousel, when available"))),u.default.createElement(M.FormLabel,null,u.default.createElement(M.FormLegend,{className:"jp-form-label-wide"},(0,d.translate)("Color scheme")),u.default.createElement(M.FormSelect,(0,i.default)({name:"carousel_background_color",value:this.props.getOptionValue("carousel_background_color"),disabled:!a||this.props.isSavingAnyOption(["carousel","carousel_background_color"])},this.props,{validValues:this.props.validValues("carousel_background_color","carousel")}))))),l=(0,m.default)(["is-premium-plan","is-business-plan"],s)&&u.default.createElement(w.default,{hasChild:!0,disableInDevMode:!0,module:o},u.default.createElement(b.ModuleToggle,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},u.default.createElement("span",{className:"jp-form-toggle-explanation"},o.description)));return u.default.createElement(y.default,(0,i.default)({},this.props,{header:(0,d.translate)("Media"),hideButton:!t,feature:_.FEATURE_VIDEO_HOSTING_JETPACK,saveDisabled:this.props.isSavingAnyOption("carousel_background_color")}),t&&c,n&&l)}}));t.default=(0,l.connect)(function(e){return{module:function(t){return(0,E.getModule)(e,t)},isModuleFound:function(t){return(0,k.isModuleFound)(e,t)},sitePlan:(0,T.getSitePlan)(e)}})(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}),t.CustomContentTypes=void 0;var a=n(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(124),w=r(A),E=n(70),k=n(36),T=n(27),L=n(81),S=n(41),C=r(S),z=n(38),O=r(z),N=t.CustomContentTypes=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={testimonial:r.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:r.props.getOptionValue("jetpack_portfolio","custom-content-types")},r.updateCPTs=function(e){var t="testimonial"===e?!(!r.state.testimonial||r.state.portfolio):!(!r.state.portfolio||r.state.testimonial);r.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),r.setState((0,s.default)({},e,!r.state[e]))},r.linkIfActiveCPT=function(e){return r.props.getSettingCurrentValue("jetpack_"+e,"custom-content-types")?g.default.createElement("a",{href:r.props.siteAdminUrl+"edit.php?post_type=jetpack-"+e}):g.default.createElement("span",null)},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this;if(!this.props.isModuleFound("custom-content-types"))return null;var t=this.props.module("custom-content-types");return g.default.createElement(C.default,(0,i.default)({},this.props,{module:"custom-content-types",hideButton:!0}),g.default.createElement(O.default,{hasChild:!0,module:t,support:t.learn_more_button},g.default.createElement(w.default,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial"),onChange:function(){return e.updateCPTs("testimonial")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Testimonials"))),g.default.createElement(E.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{testimonialLink}}testimonials{{/testimonialLink}}. If your theme doesn’t support testimonials yet, you can display them using the shortcode\t( [testimonials] ).",{components:{testimonialLink:this.linkIfActiveCPT("testimonial")}}))),g.default.createElement(w.default,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio"),onChange:function(){return e.updateCPTs("portfolio")}},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Portfolios"))),g.default.createElement(E.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).",{components:{portfolioLink:this.linkIfActiveCPT("portfolio")}})))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)}}})((0,k.ModuleSettingsForm)(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(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(124),w=r(A),E=n(14),k=r(E),T=n(70),L=n(54),S=n(27),C=n(28),z=n(81),O=n(36),N=n(41),D=r(N),P=n(38),x=r(P),j=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.getInfiniteMode=function(){return r.props.getOptionValue("infinite-scroll")?r.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"},r.updateInfiniteMode=function(e){r.setState({infinite_mode:e},r.prepareOptionsToUpdate)},r.prepareOptionsToUpdate=function(){"infinite_default"===r.state.infinite_mode?r.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==r.state.infinite_mode&&"infinite_button"!==r.state.infinite_mode||r.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===r.state.infinite_mode})},r.updateOptions=function(e,t){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption(t,e))},r.trackLearnMoreIS=function(){k.default.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})},r.state={infinite_mode:r.getInfiniteMode(),wp_mobile_excerpt:r.props.getOptionValue("wp_mobile_excerpt","minileven"),wp_mobile_featured_images:r.props.getOptionValue("wp_mobile_featured_images","minileven"),wp_mobile_app_promos:r.props.getOptionValue("wp_mobile_app_promos","minileven")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("minileven");return t||n?g.default.createElement(D.default,(0,i.default)({},this.props,{header:(0,y.translate)("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported}),t&&[(0,i.default)({},this.props.getModule("infinite-scroll"),{radios:[{key:"infinite_default",label:(0,y.translate)("Load more posts using the default theme behavior")},{key:"infinite_button",label:(0,y.translate)("Load more posts in page with a button")},{key:"infinite_scroll",label:(0,y.translate)("Load more posts as the reader scrolls down")}]})].map(function(t){return e.props.isModuleFound(t.module)?g.default.createElement(x.default,{hasChild:!0,module:{module:t.module},key:"theme_enhancement_"+t.module,support:t.learn_more_button},g.default.createElement(T.FormLegend,{className:"jp-form-label-wide"},t.name),e.props.isInfiniteScrollSupported?t.radios.map(function(n){return g.default.createElement(T.FormLabel,{key:t.module+"_"+n.key},g.default.createElement("input",{type:"radio",name:"infinite_mode",value:n.key,checked:n.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([t.module,n.key]),onChange:function(){return e.updateInfiniteMode(n.key)}}),g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.label))}):g.default.createElement("span",null,(0,y.translate)("Theme support required.")+" ",g.default.createElement("a",{onClick:e.trackLearnMoreIS,href:t.learn_more_button+"#theme",title:(0,y.translate)("Learn more about adding support for Infinite Scroll to your theme.")},(0,y.translate)("Learn more")))):null}),n&&[(0,i.default)({},this.props.getModule("minileven"),{checkboxes:[{key:"wp_mobile_excerpt",label:(0,y.translate)("Use excerpts instead of full posts on front page and archive pages")},{key:"wp_mobile_featured_images",label:(0,y.translate)("Show featured images")},{key:"wp_mobile_app_promos",label:(0,y.translate)("Show an ad for the WordPress mobile apps in the footer of the mobile theme")}]})].map(function(t){var n=e.props.getOptionValue(t.module);return e.props.isModuleFound(t.module)?g.default.createElement(x.default,{hasChild:!0,module:{module:t.module},key:"theme_enhancement_"+t.module,support:t.learn_more_button},g.default.createElement(L.ModuleToggle,{slug:t.module,activated:n,toggling:e.props.isSavingAnyOption(t.module),toggleModule:e.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),g.default.createElement(T.FormFieldset,null,t.checkboxes.map(function(r){return g.default.createElement(w.default,{checked:e.state[r.key],disabled:!n||e.props.isSavingAnyOption([t.module,r.key]),onChange:function(){return e.updateOptions(r.key,t.module)},key:t.module+"_"+r.key},g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.label))}))):null})):null}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,S.getModule)(e,t)},isInfiniteScrollSupported:(0,C.currentThemeSupports)(e,"infinite-scroll"),isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,O.ModuleSettingsForm)(j)),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(10),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(9),g=n(8),v=n(43),y=r(v),A=n(1133),w=r(A),E=n(30),k=r(E),T=n(14),L=r(T),S=n(70),C=n(54),z=n(27),O=n(81),N=n(36),D=n(41),P=r(D),x=n(38),j=r(x),R=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.regeneratePostByEmailAddress=function(e){L.default.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),r.props.regeneratePostByEmailAddress()},r.address=function(){var e=r.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("post-by-email"))return null;var e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInDevMode("post-by-email")||!this.props.isLinked,r=this.address();return M.default.createElement(P.default,(0,i.default)({},this.props,{module:"post-by-email",hideButton:!0}),M.default.createElement(j.default,{hasChild:!0,disableInDevMode:!0,module:e},this.props.userCanManageModules?M.default.createElement(C.ModuleToggle,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),M.default.createElement(S.FormFieldset,null,M.default.createElement(S.FormLabel,null,M.default.createElement(S.FormLegend,null,(0,g.translate)("Email Address")),M.default.createElement(w.default,{value:r,disabled:!t||n,copy:(0,g.translate)("Copy",{context:"verb"}),copied:(0,g.translate)("Copied!"),prompt:(0,g.translate)("Highlight and copy the following text to your clipboard:")})),M.default.createElement(y.default,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?(0,g.translate)("Regenerate address"):(0,g.translate)("Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&M.default.createElement(k.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-pbe"},(0,g.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{module:function(t){return(0,z.getModule)(e,t)},isModuleFound:function(t){return(0,O.isModuleFound)(e,t)}}})((0,N.ModuleSettingsForm)(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(10),i=r(a),o=n(1),s=r(o),c=n(13),u=r(c),l=n(114),d=r(l),f=n(1134),p=r(f),h=n(500),m=r(h);n(1143),t.default=s.default.createClass({displayName:"ClipboardButtonInput",propTypes:{value:o.PropTypes.string,disabled:o.PropTypes.bool,className:o.PropTypes.string,copied:o.PropTypes.string,copy:o.PropTypes.string,prompt:o.PropTypes.string},getInitialState:function(){return{isCopied:!1,disabled:!1}},getDefaultProps:function(){return{value:""}},componentWillUnmount:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout},showConfirmation:function(){var e=this;this.setState({isCopied:!0}),this.confirmationTimeout=setTimeout(function(){e.setState({isCopied:!1})},4e3)},render:function(){var e=(0,d.default)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return s.default.createElement("span",{className:(0,u.default)("dops-clipboard-button-input",this.props.className)},s.default.createElement(m.default,(0,i.default)({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),s.default.createElement(p.default,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(10),i=r(a),o=n(80),s=r(o),c=n(43),u=r(c),l=n(149),d=n(1),f=n(1135),p=n(114),h=n(69),m=n(13);e.exports=d.createClass({displayName:"ClipboardButton",propTypes:{className:d.PropTypes.string,text:d.PropTypes.string,prompt:d.PropTypes.string,onCopy:d.PropTypes.func},getDefaultProps:function(){return{onCopy:h}},componentDidMount:function(){var e=this,t=l.findDOMNode(this.refs.button);this.clipboard=new f(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)},componentWillUnmount:function(){this.clipboard.destroy(),
|
44 |
delete this.clipboard},displayPrompt:function(){window.prompt(this.props.prompt,this.props.text)},render:function(){var e=m("dops-clipboard-button",this.props.className);return d.createElement(u.default,(0,i.default)({ref:"button"},p(this.props,(0,s.default)(this.constructor.propTypes)),{className:e}))}})},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1136),n(1138),n(1139)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var u=a(t),l=a(n),d=a(r),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,d.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return c("action",e)}},{key:"defaultTarget",value:function(e){var t=c("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return c("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(l.default);e.exports=h})},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1137)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(e){return e&&e.__esModule?e:{default:e}}(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=o})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){a.off(e,r),t.apply(n,arguments)}var a=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=n.length;for(r;r<a;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],a=[];if(r&&t)for(var i=0,o=r.length;i<o;i++)r[i].fn!==t&&r[i].fn._!==t&&a.push(r[i]);return a.length?n[e]=a:delete n[e],this}},e.exports=n},function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,n);if(s.nodeList(e))return i(e,t,n);if(s.string(e))return o(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function i(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function o(e,t,n){return c(document.body,e,t,n)}var s=n(1140),c=n(1141);e.exports=r},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e,t,n,r,a){var o=i.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function a(e,t,n,a,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,a,i)}))}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=n(1142);e.exports=a},function(e,t){function n(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Masterbar=void 0;var a=n(10),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(30),v=r(g),y=n(36),A=n(41),w=r(A),E=n(38),k=r(E),T=n(54);t.Masterbar=(0,y.ModuleSettingsForm)(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=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInDevMode("masterbar"),n=this.props.isLinked;return M.default.createElement(w.default,(0,i.default)({},this.props,{header:(0,b.translate)("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"masterbar"},support:"https://jetpack.com/support/masterbar/"},M.default.createElement(T.ModuleToggle,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Enable the WordPress.com toolbar"),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("The WordPress.com toolbar replaces the default admin bar and offers quick links to the Reader, all your sites, your WordPress.com profile, and notifications. Centralize your WordPress experience with a single global toolbar.")))),!this.props.isUnavailableInDevMode("masterbar")&&!this.props.isLinked&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-masterbar"},(0,b.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(_.Component))},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(10),i=r(a),o=n(49),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(906),w=r(A),E=n(70),k=n(36),T=n(27),L=n(81),S=n(41),C=r(S),z=n(38),O=r(z),N=n(54),D=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.toggleModule=function(e,t){"photon"===e?!1==!t?r.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):r.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):r.props.updateOptions((0,s.default)({},e,!t))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("lazy-images");if(!e&&!t)return null;var n=this.props.module("photon"),r=this.props.module("lazy-images");return g.default.createElement(C.default,(0,i.default)({},this.props,{header:(0,y.translate)("Speed up your site"),hideButton:!0}),g.default.createElement(O.default,{hasChild:!0,disableInDevMode:!0,module:n},g.default.createElement(N.ModuleToggle,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,w.default)(n.description))),g.default.createElement(E.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,w.default)(n.long_description)))),g.default.createElement(O.default,{hasChild:!0,module:r},g.default.createElement(N.ModuleToggle,{slug:"lazy-images",disabled:this.props.isUnavailableInDevMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,w.default)(r.description))),g.default.createElement(E.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,w.default)(r.long_description)))))}}]),t}(b.Component));t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)}}})(D),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(9),M=n(27),b=n(113),g=n(22),v=n(81),y=n(28),A=n(208),w=r(A),E=n(1147),k=n(1148),T=n(1149),L=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={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?m.default.createElement("div",null,m.default.createElement(w.default,null),t&&m.default.createElement(E.Publicize,e),n&&m.default.createElement(k.ShareButtons,e),r&&m.default.createElement(T.Likes,e)):null}}]),t}(h.Component);t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,b.getSettings)(e),isDevMode:(0,g.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,g.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,v.isModuleFound)(e,t)},isLinked:(0,g.isCurrentUserLinked)(e),connectUrl:(0,g.getConnectUrl)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e)}})(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}),t.Publicize=void 0;var a=n(10),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(30),v=r(g),y=n(14),A=r(y),w=n(36),E=n(41),k=r(E),T=n(38),L=r(T),S=n(54);t.Publicize=(0,w.ModuleSettingsForm)(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:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isUnavailableInDevMode("publicize"),n=this.props.isLinked,r=this.props.connectUrl,a=this.props.siteRawUrl,o=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||o?M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),s&&M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"publicize"},support:"https://jetpack.com/support/publicize/"},M.default.createElement(S.ModuleToggle,{slug:"publicize",disabled:t,activated:o,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Automatically share your posts to social networks"))),o&&function(){if(!t)return n?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/"+a},(0,b.translate)("Connect your social media accounts")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:r+"&from=unlinked-user-connect-publicize"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}()):null}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ShareButtons=void 0;var a=n(10),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(30),v=r(g),y=n(14),A=r(y),w=n(36),E=n(41),k=r(E),T=n(38),L=r(T),S=n(54);t.ShareButtons=(0,w.ModuleSettingsForm)(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:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isLinked,n=this.props.connectUrl,r=this.props.siteRawUrl,a=this.props.siteAdminUrl,o=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"sharing"},support:"https://jetpack.com/support/sharing/"},M.default.createElement(S.ModuleToggle,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Add sharing buttons to your posts"))),s&&function(){return o?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:a+"options-general.php?page=sharing"},(0,b.translate)("Configure your sharing buttons")):t?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/buttons/"+r},(0,b.translate)("Configure your sharing buttons")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:n+"&from=unlinked-user-connect-sharing"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}())}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Likes=void 0;var a=n(10),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(36),v=n(41),y=r(v),A=n(38),w=r(A),E=n(54);t.Likes=(0,g.ModuleSettingsForm)(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=this.props.isUnavailableInDevMode("likes"),t=this.props.getOptionValue("likes");return M.default.createElement(y.default,(0,i.default)({},this.props,{header:(0,b.translate)("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),M.default.createElement(w.default,{disableInDevMode:!0,module:{module:"likes"},support:"https://jetpack.com/support/likes/"},M.default.createElement(E.ModuleToggle,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Allow readers to show their appreciation of your posts by adding a like button to your content"))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SearchableModules=void 0;var a=n(49),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(431),A=r(y),w=n(40),E=r(w),k=n(8),T=n(832),L=r(T),S=n(36),C=n(27),z=n(81),O=n(41),N=r(O),D=n(38),P=r(D),x=n(28),j=n(22),R=t.SearchableModules=(0,S.ModuleSettingsForm)(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=this;if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;var t=["contact-form","custom-css","enhanced-distribution","json-api","latex","monitor","notes","shortcodes","shortlinks","widget-visibility","widgets"],n=this.props.modules,r=[];return(0,A.default)(n,function(n,a){if(e.props.isModuleFound(a)&&(0,E.default)(t,a)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(g.default.createElement(Y,{key:a,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(g.default.createElement(Y,{key:a,moduleData:n})):r.push(g.default.createElement(L.default,{className:"jp-searchable-banner",key:a,callToAction:(0,k.translate)("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.props.updateOptions.bind(null,(0,i.default)({},n.module,!0)),title:n.name}))}}),g.default.createElement("div",null,r)}}]),t}(b.Component));R.propTypes={searchTerm:M.default.string},R.defaultProps={searchTerm:""};var Y=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=this.props.moduleData,t=this.props.devMode;return g.default.createElement(N.default,{header:e.name,action:e.module,hideButton:!0},g.default.createElement(P.default,{disableInDevMode:t,module:{module:e.module},support:e.learn_more_button},e.description))}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{modules:(0,C.getModules)(e),isModuleFound:function(t){return(0,z.isModuleFound)(e,t)},canManageModules:(0,x.userCanManageModules)(e),isUnavailableInDevMode:function(t){return(0,j.isUnavailableInDevMode)(e,t)},isDevMode:(0,j.isDevMode)(e)}})(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(1),i=r(a),o=n(9),s=n(30),c=r(s),u=n(8),l=n(907),d=r(l),f=n(22),p=n(85),h=i.default.createClass({displayName:"JetpackConnect",render:function(){var e=this.props.connectUrl+"&from=new-account-button";return i.default.createElement("div",{className:"jp-jetpack-connect__container"},i.default.createElement("h1",{className:"jp-jetpack-connect__container-title",title:"Welcome to Jetpack"},(0,u.translate)("Welcome to Jetpack")),i.default.createElement(c.default,{className:"jp-jetpack-connect__cta"},i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Hassle-free design, marketing, and security for your WordPress site. Connect Jetpack to a WordPress.com account to start building your own success story.")),i.default.createElement(d.default,{from:"landing-page-top"},i.default.createElement("p",null,i.default.createElement("a",{href:e,className:"jp-jetpack-connect__link"},(0,u.translate)("No account? Create one for free."))))),i.default.createElement(c.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__design"},i.default.createElement("header",{className:"jp-jetpack-connect__header"},i.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,u.translate)("WordPress themes and customization tools for designing your site.")},(0,u.translate)("Design the perfect website")),i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Bring your ideas to life with elegant and professional designs and code-free customization tools."))),i.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},i.default.createElement("img",{src:p.imagePath+"feature-photon-med.jpg",srcSet:p.imagePath+"feature-photon-sm.jpg 600w, "+p.imagePath+"feature-photon-med.jpg 770w, "+p.imagePath+"feature-photon-lrg.jpg 1200w",className:"jp-jetpack-connect__feature-image",alt:(0,u.translate)("Jetpack's photon serves up lightning fast, optimized images")}),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's WordPress themes"),className:"dops-section-header__label"},(0,u.translate)("Professional themes")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Find the perfect design for your site from hundreds of available themes.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's customization tools"),className:"dops-section-header__label"},(0,u.translate)("Code-free customization")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Customize your site with endless widget options, image galleries, and embedded media.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's performance features"),className:"dops-section-header__label"},(0,u.translate)("Speed up your site")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Deliver blazing fast images and video and improve site load times."))))))),i.default.createElement(c.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__traffic"},i.default.createElement("header",{className:"jp-jetpack-connect__header"},i.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,u.translate)("Drive more traffic to your site with Jetpack")},(0,u.translate)("Increase traffic and revenue")),i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Reach more people and earn money with automated marketing tools.")),i.default.createElement("div",{className:"jp-jetpack-connect__header-img-container"},i.default.createElement("img",{src:p.imagePath+"long-clouds.svg",width:"1160",height:"63",alt:(0,u.translate)("Decoration: Jetpack clouds",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"})," ",i.default.createElement("img",{src:p.imagePath+"stat-bars.svg",width:"400",alt:(0,u.translate)("Decoration: Jetpack bar graph",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"}))),i.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's site stats feature"),className:"dops-section-header__label"},(0,u.translate)("Track your growth")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Keep an eye on your success with simple, concise, and mobile-friendly stats.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's publicize features"),className:"dops-section-header__label"},(0,u.translate)("Automated marketing")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Schedule social media posts in advance, show related content, and give better search results.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's ads and PayPal features"),className:"dops-section-header__label"},(0,u.translate)("Generate revenue")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Monetize your site with high-quality ads and take PayPal payments."))))))),i.default.createElement(c.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__security"},i.default.createElement("header",{className:"jp-jetpack-connect__header"},i.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,u.translate)("Keep your site safe, 24/7")},(0,u.translate)("Keep your site safe, 24/7")),i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Automatic defense against hacks, malware, spam, data loss, and downtime."))),i.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's monitor feature"),className:"dops-section-header__label"},(0,u.translate)("Monitor",{context:"Header. Noun: Monitor is a module of Jetpack."})),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Be alerted about any unexpected downtime the moment it happens.")))),i.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:(0,u.translate)("Jetpack's Protect features"),className:"dops-section-header__label"},(0,u.translate)("Protect",{context:"Header. Noun: Protect is a module of Jetpack."})),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Guard your site against brute force login attacks, spam, and harmfulmalware injections.")))),i.default.createElement("div",{
|
45 |
className:"jp-jetpack-connect__feature-list-column"},i.default.createElement("h3",{title:"Jetpack's backup feature",className:"dops-section-header__label"},(0,u.translate)("Backup and restore")),i.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},i.default.createElement("p",null,(0,u.translate)("Automatic, real-time backups mean your entire site is always ready to be restored."))))))),i.default.createElement(c.default,{className:"jp-jetpack-connect__cta"},i.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,u.translate)("Join the millions of users who rely on Jetpack to enhance and secure their sites. We're passionate about WordPress and here to make your life easier.")),i.default.createElement(d.default,{from:"landing-page-bottom"},i.default.createElement("p",null,i.default.createElement("a",{href:e,className:"jp-jetpack-connect__link"},(0,u.translate)("No account? Create one for free."))))))}});t.default=(0,o.connect)(function(e){return{connectUrl:(0,f.getConnectUrl)(e)}})(h),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.JetpackDisconnectDialog=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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(8),v=n(43),y=r(v),A=n(30),w=r(A),E=n(61),k=r(E),T=n(1153),L=r(T),S=n(55),C=n(69),z=r(C),O=n(14),N=r(O),D=n(64),P=n(22),x=n(28),j=t.JetpackDisconnectDialog=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.getPlanFeatures=function(){switch((0,S.getPlanClass)(r.props.sitePlan.product_slug)){case"is-personal-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Spam filtering"),icon:"spam"}];case"is-premium-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("13Gb of high-speed video hosting"),icon:"video"}];case"is-business-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning with automated resolution"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Unlimited high-speed video hosting"),icon:"video"},{text:(0,g.translate)("SEO preview tools"),icon:"globe"}];default:return[{text:(0,g.translate)("Site stats, related content, and sharing tools"),icon:"stats-alt"},{text:(0,g.translate)("Brute force attack protection and uptime monitoring"),icon:"lock"},{text:(0,g.translate)("Unlimited, high-speed image hosting"),icon:"image"}]}},r.closeModal=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"stay-connected"}),r.props.toggleModal()},r.disconnectSiteTrack=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"disconnect-site"}),r.props.disconnectSite()},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return this.props.show&&M.default.createElement(L.default,{className:"jp-connection-settings__modal",onRequestClose:this.props.toggleModal},M.default.createElement(w.default,{className:"jp-connection-settings__modal-body"},M.default.createElement("h2",null,(0,g.translate)("Disconnect Jetpack")),M.default.createElement("h4",null,(0,g.translate)("By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:",{args:{siteName:this.props.siteRawUrl.replace("::","/")}})),M.default.createElement("ul",null,this.getPlanFeatures().map(function(e){return M.default.createElement("li",{key:"feature_"+e.icon},M.default.createElement(k.default,{icon:e.icon,size:18}),e.text)})),M.default.createElement("div",{className:"jp-connection-settings__modal-actions"},M.default.createElement(y.default,{className:"jp-connection-settings__modal-cancel",onClick:this.closeModal},(0,g.translate)("Stay connected",{context:"A caption for a button to cancel disconnection."})),M.default.createElement(y.default,{onClick:this.disconnectSiteTrack,scary:!0,primary:!0},(0,g.translate)("Disconnect",{context:"A caption for a button to disconnect."}))),M.default.createElement("p",{className:"jp-connection-settings__modal-more"},M.default.createElement("a",{href:"https://jetpack.com/features/"},(0,g.translate)("Read more about Jetpack benefits")))))}}]),t}(M.default.Component);j.propTypes={show:m.default.bool,toggleModal:m.default.func,disconnectSite:m.default.func},j.defaultProps={show:!1,toggleModal:z.default,disconnectSite:z.default},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,x.getSiteRawUrl)(e),isDisconnecting:(0,P.isDisconnectingSite)(e),sitePlan:(0,D.getSitePlan)(e)}},function(e){return{disconnectSite:function(){return e((0,P.disconnectSite)())}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){_=!0}function i(){_=!1}var o=n(10),s=r(o),c=n(455),u=r(c),l=n(1),d=n(149),f=n(13),p=n(25),h=n(114),m=n(1154),_=!1;n(1156);var M=l.createClass({displayName:"Modal",propTypes:{style:l.PropTypes.object,width:l.PropTypes.oneOf(["wide","medium","narrow"]),className:l.PropTypes.string,title:l.PropTypes.string,initialFocus:l.PropTypes.string,onRequestClose:l.PropTypes.func},getInitialState:function(){return{overlayMouseDown:!1}},getDefaultProps:function(){return{style:{}}},componentDidMount:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{m.activate(d.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}},componentWillUnmount:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{m.deactivate()}catch(e){}},handleEscapeKey:function(e){27===e.keyCode&&this.maybeClose()},maybeClose:function(){this.props.onRequestClose&&!_&&this.props.onRequestClose()},handleMouseDownOverlay:function(e){e.preventDefault(),e.stopPropagation(),this.setState({overlayMouseDown:!0})},handleClickOverlay:function(e){e.preventDefault(),e.stopPropagation(),this.state.overlayMouseDown&&this.props.onRequestClose&&!_&&(this.setState({overlayMouseDown:!1}),this.props.onRequestClose())},handleMouseEventModal:function(e){e.stopPropagation()},render:function(){var e,t,n=this.props,r=n.style,a=n.className,i=n.width,o=n.title,c=(0,u.default)(n,["style","className","width","title"]),d=h(c,"onRequestClose"),m=d.forwardedProps;switch(i){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}return t=p({},r,e),l.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},l.createElement("div",(0,s.default)({className:f("dops-modal",a),style:t,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":o},m),this.props.children))}});M.preventClose=a,M.allowClose=i,e.exports=M},function(e,t,n){function r(e,t){function n(e){if(!k){var t={onActivate:e&&void 0!==e.onActivate?e.onActivate:C.onActivate};return k=!0,T=!1,E=document.activeElement,t.onActivate&&t.onActivate(),l(),z}}function r(e){if(k){var t={returnFocus:e&&void 0!==e.returnFocus?e.returnFocus:C.returnFocusOnDeactivate,onDeactivate:e&&void 0!==e.onDeactivate?e.onDeactivate:C.onDeactivate};return d(),t.onDeactivate&&t.onDeactivate(),t.returnFocus&&setTimeout(function(){i(E)},0),k=!1,T=!1,this}}function c(){!T&&k&&(T=!0,d())}function u(){T&&k&&(T=!1,l())}function l(){if(k)return s&&s.pause(),s=z,g(),i(p()),document.addEventListener("focus",_,!0),document.addEventListener("click",m,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("touchstart",h,!0),document.addEventListener("keydown",M,!0),z}function d(){if(k&&s===z)return document.removeEventListener("focus",_,!0),document.removeEventListener("click",m,!0),document.removeEventListener("mousedown",h,!0),document.removeEventListener("touchstart",h,!0),document.removeEventListener("keydown",M,!0),s=null,z}function f(e){var t=C[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw new Error("`"+e+"` did not return a node");return n}function p(){var e;if(!(e=null!==f("initialFocus")?f("initialFocus"):S.contains(document.activeElement)?document.activeElement:y[0]||f("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function h(e){C.clickOutsideDeactivates&&!S.contains(e.target)&&r({returnFocus:!1})}function m(e){C.clickOutsideDeactivates||S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function _(e){S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation(),"function"==typeof e.target.blur&&e.target.blur(),L&&v(L))}function M(e){"Tab"!==e.key&&9!==e.keyCode||b(e),!1!==C.escapeDeactivates&&a(e)&&r()}function b(e){if(g(),e.target.hasAttribute("tabindex")&&Number(e.target.getAttribute("tabindex"))<0)return L=e;e.preventDefault();var t=y.indexOf(e.target);return e.shiftKey?i(e.target===A||-1===y.indexOf(e.target)?w:y[t-1]):e.target===w?i(A):void i(y[t+1])}function g(){y=o(S),A=y[0],w=y[y.length-1]}function v(e){if(e.shiftKey)return i(w);i(A)}var y=[],A=null,w=null,E=null,k=!1,T=!1,L=null,S="string"==typeof e?document.querySelector(e):e,C=t||{};C.returnFocusOnDeactivate=!t||void 0===t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,C.escapeDeactivates=!t||void 0===t.escapeDeactivates||t.escapeDeactivates;var z={activate:n,deactivate:r,pause:c,unpause:u};return z}function a(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function i(e){e&&e.focus&&e!==document.activeElement&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}var o=n(1155),s=null;e.exports=r},function(e,t){function n(e){function t(r,a){if(r===e.documentElement)return!1;for(var i=0,o=n.length;i<o;i++)if(n[i][0]===r)return n[i][1];a=a||e.defaultView.getComputedStyle(r);var s=!1;return"none"===a.display?s=!0:r.parentNode&&(s=t(r.parentNode)),n.push([r,s]),s}var n=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!t(n,r)||"hidden"===r.visibility}}e.exports=function(e,t){t=t||{};var r=e.ownerDocument||e,a=[],i=[],o=n(r),s=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(s.join(","));if(t.includeContainer){var u=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;s.some(function(t){return u.call(e,t)})&&(c=Array.prototype.slice.apply(c),c.unshift(e))}for(var l,d,f=0,p=c.length;f<p;f++)l=c[f],(d=parseInt(l.getAttribute("tabindex"),10)||l.tabIndex)<0||"INPUT"===l.tagName&&"hidden"===l.type||l.disabled||o(l,r)||(0===d?a.push(l):i.push({index:f,tabIndex:d,node:l}));var h=i.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return{__html:e.jumpstart_desc}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),s=n(3),c=r(s),u=n(6),l=r(u),d=n(4),f=r(d),p=n(5),h=r(p),m=n(1),_=r(m),M=n(20),b=n(9),g=n(30),v=r(g),y=n(43),A=r(y),w=n(8),E=n(61),k=r(E),T=n(908),L=n(27),S=n(115),C=r(S),z=n(85),O=function(e){function t(){var e,n,r,a;(0,c.default)(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return n=r=(0,f.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),r.activateButton=function(){return _.default.createElement(A.default,{primary:!0,onClick:r.props.jumpStartActivate,disabled:r.props.isJumpstarting},r.props.isJumpstarting?(0,w.translate)("Activating recommended features…"):(0,w.translate)("Activate recommended features"))},a=n,(0,f.default)(r,a)}return(0,h.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props.jumpstartFeatures.map(function(e){return _.default.createElement("div",{className:"jp-jumpstart__feature-list-column",key:"module-card_"+e.name},_.default.createElement("div",{className:"jp-jumpstart__feature-content"},_.default.createElement("h4",{className:"jp-jumpstart__feature-content-title",title:e.name},e.name),_.default.createElement("p",{dangerouslySetInnerHTML:a(e)})))});return _.default.createElement("div",{className:"jp-jumpstart-full__container"},_.default.createElement("img",{src:z.imagePath+"stars-full.svg",width:"60",height:"60",alt:(0,w.translate)("Stars"),className:"jp-jumpstart-full__svg-stars"}),_.default.createElement("img",{src:z.imagePath+"jupiter.svg",width:"50",height:"100",alt:(0,w.translate)("Jupiter"),className:"jp-jumpstart-full__svg-jupiter"}),_.default.createElement(k.default,{icon:"cross-small",className:"jp-jumpstart-full__dismiss",tabIndex:"0",onKeyDown:(0,C.default)(this.props.jumpStartSkip),onClick:this.props.jumpStartSkip}),_.default.createElement("div",{className:"jp-jumpstart"},_.default.createElement("img",{src:z.imagePath+"man-and-laptop.svg",width:"199",height:"153",alt:(0,w.translate)("Person with laptop")}),_.default.createElement("h1",{className:"jp-jumpstart__title"},(0,w.translate)("Your Jetpack site is ready to go!")),_.default.createElement(v.default,{className:"jp-jumpstart__description"},_.default.createElement("p",null,(0,w.translate)("We're now collecting stats, securing your site, and speeding up your images. Pretty soon you'll be able to see everything going on with your site right through Jetpack! Welcome aboard."))),_.default.createElement(v.default,null,this.activateButton()),_.default.createElement(v.default,null,_.default.createElement("h2",{className:"jp-jumpstart__feature-heading"},(0,w.translate)("Jetpack's recommended features include:")),_.default.createElement("div",{className:"jp-jumpstart__feature-list"},e),this.activateButton(),_.default.createElement("p",{className:"jp-jumpstart__note"},(0,w.translate)("Features can be activated or deactivated at any time.")))))}}]),t}(_.default.Component);O.displayName="JumpStart",t.default=(0,b.connect)(function(e){return{isJumpstarting:(0,T.isJumpstarting)(e),jumpstartFeatures:(0,L.getModulesByFeature)(e,"Jumpstart")}},function(e){return(0,M.bindActionCreators)({jumpStartActivate:T.jumpStartActivate,jumpStartSkip:T.jumpStartSkip},e)})(O),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.jumpStartSkip=t.jumpStartActivate=void 0;var a=n(123),i=n(8),o=n(646),s=n(14),c=r(s),u=n(16),l=n(60),d=r(l),f=n(27),p=n(113),h=(t.jumpStartActivate=function(){return function(e){return e({type:u.JUMPSTART_ACTIVATE}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-info",(0,i.translate)("Activating recommended features…"),{id:"jumpstart-activate"})),d.default.jumpStart("activate").then(function(){e({type:u.JUMPSTART_ACTIVATE_SUCCESS,jumpStart:!0}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_submit",{}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-success",(0,i.translate)("Recommended features active."),{id:"jumpstart-activate",duration:2e3})),e((0,f.fetchModules)()),e((0,p.fetchSettings)())}).catch(function(t){e({type:u.JUMPSTART_ACTIVATE_FAIL,error:t}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-error",(0,i.translate)("Recommended features failed to activate. %(error)s",{args:{error:t}}),{id:"jumpstart-activate"}))})}},(0,o.createHistory)());t.jumpStartSkip=function(){return function(e){return e({type:u.JUMPSTART_SKIP}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_skip",{}),h.push(window.location.pathname+"?page=jetpack#/dashboard"),d.default.jumpStart("deactivate").then(function(){e({type:u.JUMPSTART_SKIP_SUCCESS,jumpStart:!1})}).catch(function(t){e({type:u.JUMPSTART_SKIP_FAIL,error:t})})}}},function(e,t,n){function r(e,t,n){t=(n?i(e,t,n):void 0===t)?1:c(o(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var u=0,l=0,d=Array(s(r/t));u<r;)d[l++]=a(e,u,u+=t);return d}var a=n(460),i=n(216),o=n(224),s=Math.ceil,c=Math.max;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(15),M=r(_),b=n(9),g=n(148),v=r(g),y=n(8),A=n(13),w=r(A),E=n(64),k=n(22),T=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,t=e.siteRawUrl,n=e.inDevMode,r=m.default.createElement("a",{href:"https://wordpress.com/stats/activity/"+t}),a=(0,y.translate)("{{a}}View your site's activity{{/a}} in a single feed.",{components:{a:r}});return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(v.default,{label:(0,y.translate)("Activity"),isModule:!1,className:(0,w.default)({"jp-dash-item__is-inactive":n}),pro:!1},m.default.createElement("p",{className:"jp-dash-item__description"},n?(0,y.translate)("Unavailable in Dev Mode."):a)))}}]),t}(h.Component);T.propTypes={inDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,sitePlan:M.default.object.isRequired},T.defaultProps={inDevMode:!1,siteRawUrl:"",sitePlan:""},t.default=(0,b.connect)(function(e){return{sitePlan:(0,E.getSitePlan)(e),inDevMode:(0,k.isDevMode)(e)}})(T),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(80),i=r(a),o=n(58),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(15),g=r(b),v=n(1),y=r(v),A=n(431),w=r(A),E=n(24),k=r(E),T=n(30),L=r(T),S=n(1163),C=r(S),z=n(9),O=n(910),N=r(O),D=n(43),P=r(D),x=n(859),j=r(x),R=n(8),Y=n(14),I=r(Y),q=n(40),B=r(q),W=n(85),U=n(22),H=n(28),F=n(1172),X=r(F),V=n(1173),K=r(V),J=n(62),G=n(27),Q=n(113),Z=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||(0,u.default)(t)).call(this,e));return n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return(0,M.default)(t,e),(0,p.default)(t,[{key:"barClick",value:function(e){e.data.link&&(I.default.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}},{key:"statsChart",value:function(e){var t=this.props,n=[],r=0;return"object"!==(0,s.default)(t.statsData[e])?{chartData:n,totalViews:!1}:((0,w.default)(t.statsData[e].data,function(a){var i=a[1],o=a[0],s="",c="";r+=i,"day"===e?(s=(0,R.moment)(o).format("MMM D"),c=(0,R.moment)(o).format("MMMM Do")):"week"===e?(o=o.replace(/W/g,"-"),s=(0,R.moment)(o).format("MMM D"),c=(0,R.translate)("Week of %(date)s",{args:{date:(0,R.moment)(o).format("MMMM Do")}})):(s=(0,R.moment)(o).format("MMM"),c=(0,R.moment)(o).format("MMMM, YYYY")),n.push({label:s,value:i,nestedValue:null,className:"statsChartbar",data:{link:"https://wordpress.com/stats/"+e+"/"+t.siteRawUrl+"?startDate="+o},tooltipData:[{label:c,value:(0,R.translate)("Views: %(numberOfViews)s",{args:{numberOfViews:(0,R.numberFormat)(i)}}),className:"tooltip class"},{label:(0,R.translate)("Click to view detailed stats.")}]})}),{chartData:n,totalViews:r})}},{key:"statsErrors",value:function(){return(0,k.default)(this.props.statsData,["general","errors"],!1)}},{key:"renderStatsChart",value:function(e){return y.default.createElement("div",null,y.default.createElement("div",{className:"jp-at-a-glance__stats-chart"},y.default.createElement(C.default,{data:e,barClick:this.barClick}),0<e.length?"":y.default.createElement(j.default,null)),y.default.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},y.default.createElement(K.default,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl})))}},{key:"renderEmptyStatsCard",value:function(){var e=this,t=function(){e.setState({emptyStatsDismissed:!0}),e.props.updateOptions({dismiss_empty_stats_card:!0})};return y.default.createElement(L.default,{className:"jp-at-a-glance__stats-empty"},y.default.createElement("img",{src:W.imagePath+"stats-people.svg",width:"272",height:"144",alt:(0,R.translate)("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),y.default.createElement("p",null,(0,R.translate)("Hello there! Your stats have been activated."),y.default.createElement("br",null),(0,R.translate)("Just give us a little time to collect data so we can display it for you here.")),y.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Okay, got it!")))}},{key:"renderStatsArea",value:function(){var e=this,t=function(){return e.props.updateOptions({stats:!0})};if(this.props.getOptionValue("stats")){if(this.statsErrors())return y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("span",null,(0,R.translate)("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:y.default.createElement("a",{href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}})));var n=this.statsChart(this.props.activeTab()),r=n.chartData,a=n.totalViews,i=r.length>0&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return y.default.createElement("div",{className:"jp-at-a-glance__stats-container"},i?this.renderEmptyStatsCard():this.renderStatsChart(r))}return y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},y.default.createElement("img",{src:W.imagePath+"stats.svg",width:"60",height:"60",alt:(0,R.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,R.translate)("Unavailable in Dev Mode"):(0,R.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:y.default.createElement("a",{href:"javascript:void(0)",onClick:t}),a1:y.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),this.props.isDevMode?"":y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},y.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Activate Site Stats"))))}},{key:"maybeShowStatsTabs",value:function(){var e=this,t=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"day"}),e.props.switchView("day"),e.props.fetchStatsData("day")},n=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"week"}),e.props.switchView("week"),e.props.fetchStatsData("week")},r=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"month"}),e.props.switchView("month"),e.props.fetchStatsData("month")};if(this.props.getOptionValue("stats")&&!this.statsErrors())return y.default.createElement("ul",{className:"jp-at-a-glance__stats-views"},y.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},y.default.createElement("a",{href:"javascript:void(0)",onClick:t,className:this.getClass("day")},(0,R.translate)("Days"))),y.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},y.default.createElement("a",{href:"javascript:void(0)",onClick:n,className:this.getClass("week")},(0,R.translate)("Weeks"))),y.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},y.default.createElement("a",{href:"javascript:void(0)",onClick:r,className:this.getClass("month")},(0,R.translate)("Months"))))}},{key:"getClass",value:function(e){return this.props.activeTab()===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);if(!(0,B.default)(e,"stats"))return null;var t=this.props.activeTab();return y.default.createElement("div",null,y.default.createElement(X.default,{range:t}),y.default.createElement(N.default,{label:(0,R.translate)("Site Stats")},this.maybeShowStatsTabs()),y.default.createElement(L.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(v.Component);Z.propTypes={isDevMode:g.default.bool.isRequired,siteRawUrl:g.default.string.isRequired,siteAdminUrl:g.default.string.isRequired,statsData:g.default.any.isRequired},t.default=(0,z.connect)(function(e){return{moduleList:(0,G.getModules)(e),activeTab:function(){return(0,J.getActiveStatsTab)(e)},isDevMode:(0,U.isDevMode)(e),isLinked:(0,U.isCurrentUserLinked)(e),connectUrl:(0,U.getConnectUrl)(e),statsData:"N/A"!==(0,J.getStatsData)(e)?(0,J.getStatsData)(e):(0,H.getInitialStateStatsData)(e),isEmptyStatsCardDismissed:(0,Q.emptyStatsCardDismissed)(e)}},function(e){return{switchView:function(t){return e((0,J.statsSwitchTab)(t))},fetchStatsData:function(t){return e((0,J.fetchStatsData)(t))}}})(Z),e.exports=t.default},function(e,t,n){"use strict";var r=n(1),a=n(15),i=n(69),o=n(911),s=n(1164),c=n(1170);n(1171),e.exports=r.createClass({displayName:"ModuleChart",propTypes:{loading:a.bool,data:a.array,minTouchBarWidth:a.number,minBarWidth:a.number,barClick:a.func},getInitialState:function(){return{maxBars:100,width:650}},getDefaultProps:function(){return{minTouchBarWidth:42,minBarWidth:15,barClick:i}},componentDidMount:function(){this.resize=o(this.resize,400),window.addEventListener("resize",this.resize),this.resize()},componentWillUnmount:function(){window.removeEventListener("resize",this.resize)},componentWillReceiveProps:function(e){this.props.loading&&!e.loading&&this.resize()},resize:function(){var e,t=this.refs.chart,n=t.clientWidth-82;c.hasTouch()?(n=n<=0?350:n,e=Math.floor(n/this.props.minTouchBarWidth)):e=Math.floor(n/this.props.minBarWidth),this.setState({maxBars:e,width:n})},getYAxisMax:function(e){var t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r},getData:function(){var e=this.props.data;return e=e.slice(0-this.state.maxBars)},getValues:function(){var e=this.getData();return e=e.map(function(e){return e.value},this)},isEmptyChart:function(e){return e=e.filter(function(e){return e>0},this),0===e.length},render:function(){var e,t=this.getValues(),n=this.getYAxisMax(t),a=this.getData();return t.length&&this.isEmptyChart(t)&&(e=r.createElement("div",{className:"dops-chart__empty"},r.createElement("span",{className:"dops-chart__empty_notice"},"No activity this period"))),r.createElement("div",{ref:"chart",className:"dops-chart"},r.createElement("div",{className:"dops-chart__y-axis-markers"},r.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),r.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),r.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),r.createElement("div",{className:"dops-chart__y-axis"},r.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),r.createElement(s,{barClick:this.props.barClick,data:a,yAxisMax:n,chartWidth:this.state.width,isTouch:c.hasTouch()}),e)}})},function(e,t,n){"use strict";var r=n(1),a=n(1165),i=n(1168);e.exports=r.createClass({displayName:"ModuleChartBarContainer",propTypes:{isTouch:r.PropTypes.bool,data:r.PropTypes.array,yAxisMax:r.PropTypes.number,width:r.PropTypes.number,barClick:r.PropTypes.func},buildBars:function(e){var t=this.props.data.length,n="bottom right",i=this.props.chartWidth,o=i/t;return this.props.data.map(function(s,c){var u=o*(c+1);return u+230>i&&u+o-230>0&&(n="bottom left"),r.createElement(a,{index:c,key:c,isTouch:this.props.isTouch,tooltipPosition:n,className:s.className,clickHandler:this.props.barClick,data:s,max:e,count:t})},this)},render:function(){return r.createElement("div",null,r.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),r.createElement(i,{data:this.props.data,labelWidth:42}))}})},function(e,t,n){"use strict";var r=n(1),a=n(13),i=n(1166),o=n(61);e.exports=r.createClass({displayName:"ModuleChartBar",propTypes:{isTouch:r.PropTypes.bool,tooltipPosition:r.PropTypes.string,className:r.PropTypes.string,clickHandler:r.PropTypes.func,data:r.PropTypes.object.isRequired,max:r.PropTypes.number,count:r.PropTypes.number},getInitialState:function(){return{showPopover:!1}},buildSections:function(){var e,t,n,i,o,s=this.props.data.value,c=this.props.max,u=c?Math.ceil(s/c*1e4)/100:0,l=100-u,d=Math.max(1,Math.floor(l)),f=[],p=this.props.data.nestedValue,h={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===l&&!this.props.active};return e={height:d+"%"},f.push(r.createElement("div",{key:"spacer",className:a(h),style:e})),t={top:d+"%"},p&&(i=s?Math.ceil(p/s*1e4)/100:0,o={height:i+"%"},n=r.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:o})),f.push(r.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:t},n)),f.push(r.createElement("div",{key:"label",className:"dops-chart__bar-label"},this.props.label)),f},clickHandler:function(){"function"==typeof this.props.clickHandler&&this.props.clickHandler(this.props.data)},mouseEnter:function(){this.setState({showPopover:!0})},mouseLeave:function(){this.setState({showPopover:!1})},renderTooltip:function(){if(!this.props.data.tooltipData||!this.props.data.tooltipData.length||this.props.isTouch)return null;var e=this.props.data.tooltipData,t=e.map(function(e,t){var n,a=["module-content-list-item"];return e.icon&&(n=r.createElement(o,{icon:e.icon,size:18})),a.push(e.className),r.createElement("li",{key:t,className:a.join(" ")},r.createElement("span",{className:"dops-wrapper"},r.createElement("span",{className:"value"},e.value),r.createElement("span",{className:"label"},n,e.label)))});return r.createElement(i,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:this.refs&&this.refs.valueBar,isVisible:this.state.showPopover,position:this.props.tooltipPosition},r.createElement("ul",null,t))},render:function(){var e,t,n=this.props.count||1;return t={"dops-chart__bar":!0},this.props.className&&(t[this.props.className]=!0),e={width:1/n*100+"%"},r.createElement("div",{onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:a(t),style:e},this.buildSections(),r.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),r.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),r.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}})},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(13),M=r(_),b=n(866),g=r(b),v=n(803),y=r(v);n(1167);var A=function(){},w=function(e){
|
46 |
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(){if(!this.props.showOnMobile&&y.default.isMobile())return null;var e=(0,M.default)("dops-popover","dops-tooltip","is-"+this.props.position,this.props.className);return m.default.createElement(g.default,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:A,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(h.Component);w.propTypes={autoPosition:h.PropTypes.bool,className:h.PropTypes.string,id:h.PropTypes.string,isVisible:h.PropTypes.bool,position:h.PropTypes.string,rootClassName:h.PropTypes.string,status:h.PropTypes.string,showDelay:h.PropTypes.number,showOnMobile:h.PropTypes.bool},w.defaultProps={showDelay:100,position:"top",showOnMobile:!1},t.default=w,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";var r=n(1),a=n(15),i=n(911),o=n(1169);e.exports=r.createClass({displayName:"ModuleChartXAxis",propTypes:{labelWidth:a.number.isRequired,data:a.array.isRequired},getInitialState:function(){return{divisor:1,spacing:this.props.labelWidth}},componentDidMount:function(){this.resizeThrottled=i(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()},componentWillUnmount:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)},componentWillReceiveProps:function(e){this.resize(e)},resize:function(e){var t,n,r,a,i,o,s=this.props;t=this.refs.axis,!e||e instanceof Event||(s=e),t.style.overflow="hidden",n=t.clientWidth,t.style.overflow="visible",r=s.data.length||1,a=n/r,i=s.labelWidth,o=Math.ceil(i/a),this.setState({divisor:o,spacing:a})},render:function(){var e,t=this.props.data;return e=t.map(function(e,n){var a,i=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2,s=t.length-n-1;return s%this.state.divisor==0&&(a=r.createElement(o,{key:n,label:e.label,width:this.props.labelWidth,x:i})),a},this),r.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},e)}})},function(e,t,n){"use strict";var r=n(1);e.exports=r.createClass({displayName:"ModuleChartLabel",propTypes:{width:r.PropTypes.number.isRequired,x:r.PropTypes.number.isRequired,label:r.PropTypes.string.isRequired},render:function(){var e;return e={width:this.props.width+"px"},e.left=this.props.x+"px",r.createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}})},function(e,t,n){"use strict";e.exports={hasTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}}},function(e,t){},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(9),_=n(62),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:"componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){return null}}]),t}(h.Component);M.defaultProps={fetchStatsData:function(){}},t.default=(0,m.connect)(function(e){return{fetchStatsData:function(t){return(0,_.fetchStatsData)(e,t)},fetchingStatsData:(0,_.isFetchingStatsData)(e)}},function(e){return{fetchStatsData:function(t){return e((0,_.fetchStatsData)(t))}}})(M),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(58),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(15),M=r(_),b=n(1),g=r(b),v=n(43),y=r(v),A=n(14),w=r(A),E=n(30),k=r(E),T=n(8),L=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:"statsBottom",value:function(){var e=void 0;return e="object"===(0,i.default)(this.props.statsData.general)?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"},[{viewsToday:e.views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}},{key:"render",value:function(){var e=this.statsBottom()[0],t=function(){return w.default.tracks.recordJetpackClick("view_detailed_stats")},n=function(){return w.default.tracks.recordJetpackClick("view_wpcom_stats")};return g.default.createElement("div",null,g.default.createElement("div",{className:"jp-at-a-glance__stats-summary"},g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Views today",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Best overall day",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":(0,T.translate)("%(number)s View","%(number)s Views",{count:e.bestDay.count,args:{number:(0,T.numberFormat)(e.bestDay.count)}})),g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,T.moment)(e.bestDay.day).format("MMMM Do, YYYY"))),g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},g.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time views",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,T.numberFormat)(e.allTime.views))),g.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time comments",{comment:"Referring to a number of comments"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,T.numberFormat)(e.allTime.comments))))),g.default.createElement("div",{className:"jp-at-a-glance__stats-cta"},g.default.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),g.default.createElement("div",{className:"jp-at-a-glance__stats-cta-buttons"},(0,T.translate)("{{button}}View detailed stats{{/button}}",{components:{button:g.default.createElement(y.default,{onClick:t,href:this.props.siteAdminUrl+"admin.php?page=stats"})}}),this.props.isLinked&&(0,T.translate)("{{button}}View more stats on WordPress.com {{/button}}",{components:{button:g.default.createElement(y.default,{onClick:n,className:"is-primary",href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}}))),!this.props.isLinked&&g.default.createElement(k.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-connect"},(0,T.translate)("Connect your account to WordPress.com to view more stats")))}}]),t}(b.Component);L.propTypes={siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,statsData:M.default.object.isRequired,isLinked:M.default.bool.isRequired},L.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1},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(80),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(148),A=r(y),w=n(8),E=n(40),k=r(E),T=n(1175),L=r(T),S=n(27),C=n(62),z=n(22),O=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:"getContent",value:function(){var e=this,t=function(){return e.props.updateOptions({protect:!0})};if(this.props.getOptionValue("protect")){var n=this.props.protectCount;return!1===n||"0"===n||"N/A"===n?g.default.createElement(A.default,{label:"Protect",module:"protect",status:"is-working",className:"jp-dash-item__recently-activated"},g.default.createElement("div",{className:"jp-dash-item__recently-activated-lower"},g.default.createElement(L.default,null),g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Jetpack is actively blocking malicious login attempts. Data will display here soon!")))):g.default.createElement(A.default,{label:"Protect",module:"protect",status:"is-working"},g.default.createElement("h2",{className:"jp-dash-item__count"},(0,w.numberFormat)(n)),g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Total malicious attacks blocked on your site.")))}return g.default.createElement(A.default,{label:"Protect",module:"protect",className:"jp-dash-item__is-inactive"},g.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,w.translate)("Unavailable in Dev Mode"):(0,w.translate)("{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:t})}})))}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);return(0,k.default)(e,"protect")?g.default.createElement("div",{className:"jp-dash-item__interior"},g.default.createElement(L.default,null),this.getContent()):null}}]),t}(b.Component);O.propTypes={isDevMode:M.default.bool.isRequired,protectCount:M.default.any.isRequired},t.default=(0,v.connect)(function(e){return{protectCount:(0,C.getProtectCount)(e),isDevMode:(0,z.isDevMode)(e),moduleList:(0,S.getModules)(e)}})(O),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(9),_=n(20),M=n(62),b=n(27),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:"componentWillMount",value:function(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}},{key:"render",value:function(){return null}}]),t}(h.Component);g.defaultProps={fetchProtectCount:function(){}},t.default=(0,m.connect)(function(e){return{fetchProtectCount:(0,M.fetchProtectCount)(),fetchingProtectData:(0,M.isFetchingProtectData)(e),isModuleActivated:function(t){return(0,b.isModuleActivated)(e,t)}}},function(e){return(0,_.bindActionCreators)({fetchProtectCount:M.fetchProtectCount},e)})(g),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(80),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(8),A=n(40),w=r(A),E=n(14),k=r(E),T=n(27),L=n(22),S=n(148),C=r(S),z=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:"getContent",value:function(){var e=this,t=(0,y.translate)("Downtime Monitoring"),n=function(){k.default.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),e.props.updateOptions({monitor:!0})};return this.props.getOptionValue("monitor")?g.default.createElement(C.default,{label:t,module:"monitor",status:"is-working"},g.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Jetpack is monitoring your site. If we think your site is down, you will receive an email."))):g.default.createElement(C.default,{label:t,module:"monitor",className:"jp-dash-item__is-inactive"},g.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,y.translate)("Unavailable in Dev Mode."):(0,y.translate)("{{a}}Activate Monitor{{/a}} to receive notifications if your site goes down.",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})))}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);return(0,w.default)(e,"monitor")?g.default.createElement("div",null,this.getContent()):null}}]),t}(b.Component);z.propTypes={isDevMode:M.default.bool.isRequired},t.default=(0,v.connect)(function(e){return{isDevMode:(0,L.isDevMode)(e),moduleList:(0,T.getModules)(e)}})(z),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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(8),v=n(55),y=n(831),A=r(y),w=n(64),E=n(207),k=n(62),T=n(22),L=n(148),S=r(L),C=n(26),z=r(C),O=n(24),N=r(O),D=function(e){return M.default.createElement(S.default,{label:(0,g.translate)("Security Scanning"),module:e.feature||"scan",className:e.className||"",status:e.status||"",pro:!0},(0,z.default)(e.content)?e.content:M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},P=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:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.siteRawUrl,r=e.fetchingSiteData,a=!1!==t,i=this.props.vaultPressData,o=(0,N.default)(i,["data","features","security"],!1);if(this.props.getOptionValue("vaultpress")){if("N/A"===i)return D({status:"",content:(0,g.translate)("Loading…")});if(o){var s=this.props.scanThreats;if(0!==s)return D({content:[M.default.createElement("h3",null,(0,g.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:s,args:{number:(0,g.numberFormat)(s)}})),M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("{{a}}View details at VaultPress.com{{/a}}",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),M.default.createElement("br",null),(0,g.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}}))]});if("success"===i.code)return D({status:"is-working",content:(0,g.translate)("No threats found, you're good to go!")})}}if(r)return D({status:"",content:(0,g.translate)("Loading…")});var c=this.props.isVaultPressInstalled?"pro-inactive":"pro-uninstalled",u=(0,v.getPlanClass)((0,N.default)(t,"product_slug","")),l="is-premium-plan"===u,d="is-business-plan"===u;return D({className:"jp-dash-item__is-inactive",status:a?c:"no-pro-uninstalled-or-inactive",content:l||d||o?(0,g.translate)("For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/vaultpress",target:"_blank",rel:"noopener noreferrer"})}}):(0,g.translate)("For automated, comprehensive scanning of security threats, please {{a}}upgrade your account{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/redirect/?source=aag-scan&site="+n,target:"_blank",rel:"noopener noreferrer"})}})})}},{key:"render",value:function(){return this.props.isDevMode?D({className:"jp-dash-item__is-inactive",content:(0,g.translate)("Unavailable in Dev Mode.")}):M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(A.default,null),this.props.isRewindActive?M.default.createElement("div",{className:"jp-dash-item__interior"},D({className:"jp-dash-item__is-active",status:"is-working",content:(0,g.translate)("We are making sure your site stays free of security threats. You will be notified if we find one."),feature:"rewind"})):this.getVPContent())}}]),t}(_.Component);P.propTypes={siteRawUrl:m.default.string.isRequired,vaultPressData:m.default.any.isRequired,scanThreats:m.default.any.isRequired,sitePlan:m.default.object.isRequired,isDevMode:m.default.bool.isRequired,isPluginInstalled:m.default.bool.isRequired,fetchingSiteData:m.default.bool.isRequired},P.defaultProps={siteRawUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isDevMode:!1,isPluginInstalled:!1,fetchingSiteData:!1},t.default=(0,b.connect)(function(e){return{vaultPressData:(0,k.getVaultPressData)(e),scanThreats:(0,k.getVaultPressScanThreatCount)(e),sitePlan:(0,w.getSitePlan)(e),isDevMode:(0,T.isDevMode)(e),isVaultPressInstalled:(0,E.isPluginInstalled)(e,"vaultpress/vaultpress.php"),fetchingSiteData:(0,w.isFetchingSiteData)(e)}})(P),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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(148),v=r(g),y=n(8),A=n(1179),w=r(A),E=n(62),k=n(64),T=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:"getContent",value:function(){var e=this.props.akismetData,t=this.props.siteAdminUrl+"admin.php?page=akismet-key-config",n=(0,y.translate)("Spam Protection"),r=!1!==this.props.sitePlan;return"N/A"===e?M.default.createElement(v.default,{label:n,module:"akismet",pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Loading…"))):"not_installed"===e?M.default.createElement(v.default,{label:n,module:"akismet",className:"jp-dash-item__is-inactive",status:r?"pro-uninstalled":"no-pro-uninstalled-or-inactive",pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("For state-of-the-art spam defense, please {{a}}install Akismet{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/akismet/"+this.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}}))):"not_active"===e?M.default.createElement(v.default,{label:n,module:"akismet",status:r?"pro-inactive":"no-pro-uninstalled-or-inactive",className:"jp-dash-item__is-inactive",pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("For state-of-the-art spam defense, please {{a}}activate Akismet{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/akismet/"+this.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}}))):"invalid_key"===e?M.default.createElement(v.default,{label:n,module:"akismet",className:"jp-dash-item__is-inactive",status:"is-warning",statusText:(0,y.translate)("Invalid key"),pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.",{components:{akismetSettings:M.default.createElement("a",{href:t})}}))):M.default.createElement(v.default,{label:n,module:"akismet",status:"is-working",pro:!0},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,y.numberFormat)(e.all.spam)),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Spam comments blocked.",{context:'Example: "412 Spam comments blocked"'})))}},{key:"render",value:function(){return M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(w.default,null),this.getContent())}}]),t}(_.Component);T.propTypes={siteRawUrl:m.default.string.isRequired,siteAdminUrl:m.default.string.isRequired},t.default=(0,b.connect)(function(e){return{akismetData:(0,E.getAkismetData)(e),sitePlan:(0,k.getSitePlan)(e)}})(T),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(9),_=n(20),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.fetchingAkismetData||this.props.fetchAkismetData()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.defaultProps={fetchAkismetData:function(){}},t.default=(0,m.connect)(function(e){return{fetchAkismetData:(0,M.fetchAkismetData)(),fetchingAkismetData:(0,M.isFetchingAkismetData)(e)}},function(e){return(0,_.bindActionCreators)({fetchAkismetData:M.fetchAkismetData},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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(148),v=r(g),y=n(8),A=n(69),w=r(A),E=n(456),k=r(E),T=n(24),L=r(T),S=n(831),C=r(S),z=n(64),O=n(207),N=n(62),D=n(22),P=function(e){return M.default.createElement(v.default,{label:(0,y.translate)("Backups"),module:e.feature||"backups",className:e.className,status:e.status,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},x=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:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.isVaultPressInstalled,r=e.getOptionValue,a=e.siteRawUrl,i=e.vaultPressData;return P(r("vaultpress")&&"success"===(0,L.default)(i,"code","")?{className:"jp-dash-item__is-active",status:"is-working",content:M.default.createElement("span",null,(0,L.default)(i,"message","")," ",(0,y.translate)("{{a}}View backup details{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com",target:"_blank",rel:"noopener noreferrer"})}}))}:(0,k.default)(t)?{className:"",status:"",content:(0,y.translate)("Loading…")}:"jetpack_free"!==(0,L.default)(t,"product_slug","jetpack_free")?{className:"jp-dash-item__is-inactive",status:n?"pro-inactive":"pro-uninstalled",content:(0,y.translate)("To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/vaultpress",target:"_blank",rel:"noopener noreferrer"})}})}:{className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:(0,y.translate)("To automatically back up your entire site, please {{a}}upgrade your account{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/redirect/?source=aag-backups&site="+a,target:"_blank",rel:"noopener noreferrer"})}})})}},{key:"render",value:function(){return this.props.isDevMode?M.default.createElement("div",{className:"jp-dash-item__interior"},P({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:(0,y.translate)("Unavailable in Dev Mode.")})):M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(C.default,null),this.props.isRewindActive?P({className:"jp-dash-item__is-active",status:"is-working",content:(0,y.translate)("Your site is being backed up in real-time."),feature:"rewind"}):this.getVPContent())}}]),t}(_.Component);x.propTypes={siteRawUrl:m.default.string.isRequired,getOptionValue:m.default.func.isRequired,isRewindActive:m.default.bool.isRequired,vaultPressData:m.default.any.isRequired,sitePlan:m.default.object.isRequired,isDevMode:m.default.bool.isRequired,isVaultPressInstalled:m.default.bool.isRequired},x.defaultProps={siteRawUrl:"",getOptionValue:w.default,isRewindActive:!1,vaultPressData:"",sitePlan:"",isDevMode:!1,isVaultPressInstalled:!1},t.default=(0,b.connect)(function(e){return{vaultPressData:(0,N.getVaultPressData)(e),sitePlan:(0,z.getSitePlan)(e),isDevMode:(0,D.isDevMode)(e),isVaultPressInstalled:(0,O.isPluginInstalled)(e,"vaultpress/vaultpress.php")}})(x),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(80),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(148),A=r(y),w=n(8),E=n(40),k=r(E),T=n(1182),L=r(T),S=n(62),C=n(27),z=n(22),O=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:"activateAndRedirect",value:function(e){e.preventDefault(),this.props.activateManage().then(window.location="https://wordpress.com/plugins/manage/"+this.props.siteRawUrl)}},{key:"getContent",value:function(){var e=(0,w.translate)("Plugin Updates"),t=this.props.pluginUpdates,n=this.props.getOptionValue("manage");return"N/A"===t?g.default.createElement(A.default,{label:e,module:"manage",status:"is-working"},g.default.createElement(L.default,null),g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Loading…"))):"updates-available"===t.code?g.default.createElement(A.default,{label:e,module:"manage",status:"is-warning"},g.default.createElement("h2",{className:"jp-dash-item__count"},(0,w.translate)("%(number)s plugin","%(number)s plugins",{count:t.count,args:{number:t.count}})),g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Needs updating. ","Need updating. ",{count:t.count,args:{number:t.count}}),this.props.isDevMode?"":(0,w.translate)("{{a}}Turn on plugin auto updates{{/a}}",{components:{a:g.default.createElement("a",{href:"https://wordpress.com/plugins/manage/"+this.props.siteRawUrl})}}))):g.default.createElement(A.default,{label:e,module:"manage",status:n?"is-working":"is-inactive"},g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("All plugins are up-to-date. Awesome work!")))}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);return(0,k.default)(e,"manage")?g.default.createElement("div",null,g.default.createElement(L.default,null),this.getContent()):null}}]),t}(b.Component);O.propTypes={isDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,pluginUpdates:M.default.any.isRequired},t.default=(0,v.connect)(function(e){return{pluginUpdates:(0,S.getPluginUpdates)(e),isDevMode:(0,z.isDevMode)(e),moduleList:(0,C.getModules)(e)}})(O),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(9),_=n(20),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.fetchingPluginUpdates||this.props.fetchPluginUpdates()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.defaultProps={fetchPluginUpdates:function(){}},t.default=(0,m.connect)(function(e){return{fetchPluginUpdates:(0,M.fetchPluginUpdates)(),fetchingPluginUpdates:(0,M.isFetchingPluginUpdates)(e)}},function(e){return(0,_.bindActionCreators)({fetchPluginUpdates:M.fetchPluginUpdates},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(80),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(15),M=r(_),b=n(1),g=r(b),v=n(9),y=n(148),A=r(y),w=n(8),E=n(40),k=r(E),T=n(27),L=n(22),S=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:"getContent",value:function(){var e=this,t=(0,w.translate)("Image Performance"),n=function(){return e.props.updateOptions({photon:!0})};return this.props.getOptionValue("photon")?g.default.createElement(A.default,{label:t,module:"photon",status:"is-working"},g.default.createElement("p",{className:"jp-dash-item__description"},(0,w.translate)("Jetpack is improving and optimizing your image speed."))):g.default.createElement(A.default,{label:t,module:"photon",className:"jp-dash-item__is-inactive"},g.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,w.translate)("Unavailable in Dev Mode"):(0,w.translate)("{{a}}Activate{{/a}} to enhance the performance and speed of your images.",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})))}},{key:"render",value:function(){var e=(0,i.default)(this.props.moduleList);return(0,k.default)(e,"photon")?g.default.createElement("div",{className:"jp-dash-item__interior"},this.getContent()):null}}]),t}(b.Component);S.propTypes={isDevMode:M.default.bool.isRequired},t.default=(0,v.connect)(function(e){return{isDevMode:(0,L.isDevMode)(e),moduleList:(0,T.getModules)(e)}})(S),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.DashConnections=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(15),m=r(h),_=n(1),M=r(_),b=n(9),g=n(8),v=n(61),y=r(v),A=n(148),w=r(A),E=n(22),k=n(28),T=n(1185),L=r(T),S=n(907),C=r(S),z=t.DashConnections=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:"siteConnection",value:function(){var e="";return this.props.isDevMode?e=M.default.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?M.default.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):M.default.createElement(y.default,{icon:"globe",size:64}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.translate)("Your site is in Development Mode, so it can not be connected to WordPress.com."))):!0===this.props.siteConnectionStatus&&(e=M.default.createElement("div",null,M.default.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?M.default.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):M.default.createElement(y.default,{icon:"globe",size:64}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.translate)("Your site is connected to WordPress.com."),this.props.userIsMaster&&M.default.createElement("span",{className:"jp-connection-settings__is-owner"},M.default.createElement("br",null),M.default.createElement("em",null,(0,g.translate)("You are the Jetpack owner."))))),this.props.userCanDisconnectSite&&M.default.createElement("div",{className:"jp-connection-settings__actions"},M.default.createElement(C.default,{asLink:!0})))),e}},{key:"userConnection",value:function(){var e=this.props.userIsMaster?null:M.default.createElement(C.default,{asLink:!0,connectUser:!0,from:"connection-settings"});return this.props.isDevMode?M.default.createElement("div",{className:"jp-connection-settings__info"},M.default.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,
|
47 |
g.translate)("The site is in Development Mode, so you can not connect to WordPress.com."))):this.props.isLinked?M.default.createElement("div",null,M.default.createElement("div",{className:"jp-connection-settings__info"},M.default.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.translate)("Connected as {{span}}%(username)s{{/span}}",{args:{username:this.props.userWpComLogin},components:{span:M.default.createElement("span",{className:"jp-connection-settings__username"})},comment:"%(username) is the WordPress user login name."}),M.default.createElement("div",{className:"jp-connection-settings__email"},this.props.userWpComEmail))),M.default.createElement("div",{className:"jp-connection-settings__actions"},e)):M.default.createElement("div",null,M.default.createElement("div",{className:"jp-connection-settings__info"},(0,g.translate)("Link your account to WordPress.com to get the most out of Jetpack.")),M.default.createElement("div",{className:"jp-connection-settings__actions"},e))}},{key:"render",value:function(){return M.default.createElement("div",null,M.default.createElement(L.default,null),M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(w.default,{className:"jp-connection-type",label:(0,g.translate)("Site connection",{context:"Dashboard widget header"})},this.siteConnection()))),M.default.createElement("div",{className:"jp-at-a-glance__right"},M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(w.default,{className:"jp-connection-type",label:(0,g.translate)("Account connection",{context:"Dashboard widget header"})},this.userConnection())))))}}]),t}(_.Component);z.propTypes={siteConnectionStatus:m.default.any.isRequired,isDevMode:m.default.bool.isRequired,userCanDisconnectSite:m.default.bool.isRequired,userIsMaster:m.default.bool.isRequired,isLinked:m.default.bool.isRequired,userWpComLogin:m.default.any.isRequired,userWpComEmail:m.default.any.isRequired,userWpComAvatar:m.default.any.isRequired,username:m.default.any.isRequired},t.default=(0,b.connect)(function(e){return{siteConnectionStatus:(0,E.getSiteConnectionStatus)(e),isDevMode:(0,E.isDevMode)(e),userCanDisconnectSite:(0,k.userCanDisconnectSite)(e),userIsMaster:(0,k.userIsMaster)(e),userWpComLogin:(0,k.getUserWpComLogin)(e),userWpComEmail:(0,k.getUserWpComEmail)(e),userWpComAvatar:(0,k.getUserWpComAvatar)(e),username:(0,k.getUsername)(e),isLinked:(0,E.isCurrentUserLinked)(e),siteIcon:(0,k.getSiteIcon)(e)}})(z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.QueryUserConnectionData=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(1),m=r(h),_=n(9),M=n(22),b=t.QueryUserConnectionData=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.isFetchingUserData||this.props.isDevMode||this.props.fetchUserConnectionData()}},{key:"render",value:function(){return null}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{isFetchingUserData:(0,M.isFetchingUserData)(e),isDevMode:(0,M.isDevMode)(e)}},function(e){return{fetchUserConnectionData:function(){return e((0,M.fetchUserConnectionData)())}}})(b)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Plans=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(1),m=r(h),_=n(9),M=n(55),b=n(40),g=r(b),v=n(64),y=n(208),A=r(y),w=n(22),E=n(1187),k=r(E),T=n(1188),L=r(T),S=n(1189),C=r(S),z=t.Plans=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.themesPromo=function(){var e=r.props.sitePlan.product_slug||"",t="dev"!==r.props.plan?(0,M.getPlanClass)(e):"dev";switch(t){case"is-personal-plan":case"is-premium-plan":case"is-free-plan":return m.default.createElement(k.default,{plan:t,siteRawUrl:r.props.siteRawUrl})}return null},r.renderContent=function(){var e=r.props.sitePlan.product_slug||"",t=r.props.availableFeatures,n=r.props.activeFeatures,a="",i="dev"!==r.props.plan?(0,M.getPlanClass)(e):"dev";"dev"===r.props.getSiteConnectionStatus(r.props)&&(e="dev",t={},n={});var o=void 0!==r.props.availableFeatures[M.FEATURE_UNLIMITED_PREMIUM_THEMES],s=(0,g.default)(r.props.activeFeatures,M.FEATURE_UNLIMITED_PREMIUM_THEMES);return o&&!s&&(a=r.themesPromo(),"is-free-plan"===i)?a:m.default.createElement("div",null,a,m.default.createElement("div",{className:"jp-landing__plans dops-card"},m.default.createElement(L.default,{plan:e,siteRawUrl:r.props.siteRawUrl}),m.default.createElement(C.default,{plan:e,availableFeatures:t,activeFeatures:n,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus})))},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,m.default.createElement(A.default,null),this.renderContent())}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{getSiteConnectionStatus:function(){return(0,w.getSiteConnectionStatus)(e)},sitePlan:(0,v.getSitePlan)(e),availableFeatures:(0,v.getAvailableFeatures)(e),activeFeatures:(0,v.getActiveFeatures)(e)}})(z)},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(15),m=r(h),_=n(1),M=r(_),b=n(13),g=r(b),v=n(8),y=n(30),A=r(y),w=n(43),E=r(w),k=n(14),T=r(k),L=n(85),S=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.trackGetStarted=function(){T.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-get-started",plan:r.props.plan,type:"upgrade"})},r.trackComparePlans=function(){T.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-compare-all",plan:r.props.plan,type:"upgrade"})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=(0,g.default)(this.props.className,"jp-themes-card"),t=this.props.plan,n=/(?![is-])(.*)(?=-plan)/g,r=Array.isArray(t.match(n))?t.match(n)[0]:"";return M.default.createElement("div",{className:e},M.default.createElement(A.default,{className:"jp-apps-card__content"},M.default.createElement("div",{className:"jp-apps-card__top"},M.default.createElement("svg",{id:"customizeTheme",viewBox:"0 0 1562.02 968.34"},M.default.createElement("path",{style:{fill:"none"},d:"M2782.37,1785.75v304h186.89V1766.4H2801.72A19.34,19.34,0,0,0,2782.37,1785.75Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#f3f6f8"},d:"M2694.2,1577.67v-66.48H2489.65c1.43,2.42,2.76,4.91,4,7.46a97.51,97.51,0,0,1-45.91,129.77l-1.12.53-1.7.78a103.66,103.66,0,0,1-12.4,4.49l-1.95.52c-.74.19-1.49.39-2.24.57q-1.71.41-3.44.76c-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29,97.48,97.48,0,0,1-78.41-138.84c1.22-2.55,2.55-5,4-7.46H2109.11v345.3c30.68.61,91.09-10.69,91.91,17.83V1771.63h395.1V1893.7c31.53-.25,63.17,7.34,94.57,2.12a2.54,2.54,0,0,1,3,1.87c3.06,18.42,15.24,184.72,16.49,201.18,1.13,15,3.61,29.66.47,44.63a2.57,2.57,0,0,1-2.49,1.75c-11.26.59-22.59,2.08-33.86,2-10.57,0-50.89-1.13-53.77-2.15-3.56-1.26-20.91,2.91-29.77,3.48-8.49.54-42.08,2.8-50.36,3-10.37.2-21.3-.12-21.55-10.11-.14-5.61-5.37-46-4.63-51.76h-310c0,1.3-64.18-.14-95-.4v91.12h923.76V1577.67Zm275.06,512H2782.37v-304a19.34,19.34,0,0,1,19.34-19.34h167.55Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c2f4ff"},d:"M2493.63,1518.65c-1.22-2.55-2.55-5-4-7.46-1.13-1.92-2.32-3.81-3.57-5.64a97.45,97.45,0,0,0-160.89,0c-1.26,1.84-2.45,3.74-3.59,5.67-1.43,2.42-2.76,4.91-4,7.46A97.48,97.48,0,0,0,2396,1657.5a45.49,45.49,0,0,1,4.29-20.29c4.75-10.25,11.85-15.85,17.3-13.66,3.44,1.4,3.76,6.1,4.33,14.63.36,5.22,1,14.32,3,17.89q1.73-.35,3.44-.76c.75-.18,1.49-.37,2.24-.57l1.95-.52a103.66,103.66,0,0,0,12.4-4.49l1.7-.78,1.12-.53a97.51,97.51,0,0,0,45.91-129.77Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2969,1767.15H2801.47a19.34,19.34,0,0,0-19.34,19.34v304H2969Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("polygon",{style:{fill:"#00a9de"},points:"936.97 71.05 936.97 148.82 936.97 215.3 1275.64 215.3 1327.68 215.3 1327.68 71.05 936.97 71.05"}),M.default.createElement("path",{style:{fill:"#f3f6f8"},d:"M2136.25,1998.84l52-.38,3.78,41.27-42.35-3.82S2132.86,2032.54,2136.25,1998.84Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2125.33,1518.65h-16.79a6.71,6.71,0,0,1-6.71-6.71v-16.79a6.71,6.71,0,1,1,13.43,0v10.07h10.07a6.71,6.71,0,0,1,0,13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2108.55,1467.71a6.71,6.71,0,0,1-6.71-6.71v-34.16a6.71,6.71,0,0,1,13.43,0V1461A6.71,6.71,0,0,1,2108.55,1467.71Zm9.13-66.52a6.71,6.71,0,0,1-5.59-10.43,61.47,61.47,0,0,1,29.41-23.59,6.71,6.71,0,1,1,4.8,12.54,48.88,48.88,0,0,0-23,18.48A6.7,6.7,0,0,1,2117.68,1401.19Zm905.71-.17a6.7,6.7,0,0,1-5.59-3,48.78,48.78,0,0,0-23.09-18.39,6.71,6.71,0,0,1,4.75-12.56,61.51,61.51,0,0,1,29.51,23.47,6.71,6.71,0,0,1-5.57,10.45Zm-60-24.48h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43H2895a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,1,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,1,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43H2690a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,1,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,1,1,0,13.43Zm-68.32,0h-34.17a6.71,6.71,0,1,1,0-13.43h34.17a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2595.87,2146.26s-4.79,103.66-20.35,167.09l-91.65,1.2s-7.35-4.68,2.39-9.57c10.22-5.13,37.63-10.63,40.69-16.76,6-12,3.59-135.24,3.59-135.24",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2631.51,2149.4s4.79,96.94,20.35,160.37L2732,2311s7.35-4.68-2.39-9.57c-10.22-5.13-37.63-10.63-40.69-16.76-6-12,11.69-142,11.69-142",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2428.56,1659.71s2.15,1.76,2.95-5.22a96.8,96.8,0,0,1-9.45,2.1C2423.44,1659.33,2425.48,1660.74,2428.56,1659.71Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2428.56,1659.71c-3.08,1-5.12-.39-6.51-3.12a98.07,98.07,0,0,1-16.43,1.39c-2,0-3.92-.07-5.86-.18.71,10.87,6.35,22.22,21.32,30l10.92,5.91,18.25-11.25c1.85-15.18-1.32-26.11-4.73-33a96.7,96.7,0,0,1-14,5C2430.72,1661.48,2428.56,1659.71,2428.56,1659.71Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2422.06,1656.59c-4.26-8.42-2.32-29.41-5.46-30.69-5.95-2.42-18,14.09-16.83,31.89,1.94.11,3.89.18,5.86.18A98.07,98.07,0,0,0,2422.06,1656.59Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2669.78,2003.53a3.36,3.36,0,0,1-.35-6.69l37.1-4a3.36,3.36,0,1,1,.72,6.67l-37.1,4Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2695.47,2023.4a24.39,24.39,0,0,1-17.25-6.64,18.91,18.91,0,0,1-6-14.79,3.21,3.21,0,0,1,3.55-3.15,3.35,3.35,0,0,1,3.15,3.55,12.26,12.26,0,0,0,4,9.57,18.38,18.38,0,0,0,14.33,4.73l6.47-1.8a3.35,3.35,0,0,1,1.74,6.48l-7,1.9C2697.41,2023.35,2696.44,2023.4,2695.47,2023.4Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2510.57,1801.68a3.36,3.36,0,0,1-1.38-6.42l29-13a3.36,3.36,0,1,1,2.75,6.12l-29,13A3.32,3.32,0,0,1,2510.57,1801.68Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2546.66,1602.62c.17,4,1.34,7,2.68,7.81.92.57,2.35-.09,3.47-.81q-.24-2.52-.3-5.06Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2550.45,1591.37a9.56,9.56,0,0,0-3,4.43l5.24,1.75c.16-2.17.43-4.32.79-6.45a3.31,3.31,0,0,1-1-.72A4.74,4.74,0,0,0,2550.45,1591.37Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2580.7,1637.25a20.24,20.24,0,0,1-10.18-17.25l1-9.1-12.14-4a64.44,64.44,0,0,0,1.22,9.25c3.32,15.85,7.25,28.2,24.71,31a3.37,3.37,0,0,1,2.81,2.92l2.16,18.43a3.37,3.37,0,0,1-2.94,3.73l-.4,0a3.34,3.34,0,0,1-2.14-.78v8.46l42,2.24V1644.6a24.54,24.54,0,0,1-5.72,2.1C2603.51,1650.74,2589.78,1642.36,2580.7,1637.25Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2616.75,1611,2606,1582s-14.32-8-27.77-7.19C2585.13,1590.91,2599.26,1606.61,2616.75,1611Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2561,1587.76a62.57,62.57,0,0,0-1.69,12l12.91,4.3,1.53-14.5S2566,1590.51,2561,1587.76Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f84"},d:"M2642.18,1608.93a40.09,40.09,0,0,1-25.43,2c-17.49-4.36-31.61-20.06-38.5-36.2-3.84-9-5.43-18.16-4.09-25.55-6.69,5.25-12.38,13.71-16.59,26.57a18.47,18.47,0,0,0-.66,2.65c-.72,1.84-1.33,3.72-1.87,5.64a7.23,7.23,0,0,0-4-.26c-4.5,1-9.8,5.64-10.81,13.69-.81,6.49.17,15.26,5.63,18.63a8.18,8.18,0,0,0,4.33,1.21,10.19,10.19,0,0,0,3.69-.74c.06.28.1.57.16.85,3.44,16.44,8.2,31.53,27.7,35.78l1.87,16a3.39,3.39,0,0,0,3.33,3l.4,0a3.37,3.37,0,0,0,2.94-3.73l-2.16-18.43a3.37,3.37,0,0,0-2.81-2.92c-17.45-2.8-21.38-15.15-24.71-31a64.44,64.44,0,0,1-1.22-9.25l12.14,4-1,9.1a20.24,20.24,0,0,0,10.18,17.25c9.08,5.11,22.81,13.49,40.3,9.45a24.54,24.54,0,0,0,5.72-2.1c11.87-6.1,18.57-21.52,20.71-38.28A40.64,40.64,0,0,1,2642.18,1608.93Zm-92.84,1.5c-1.34-.83-2.51-3.81-2.68-7.81l5.85,1.95q.06,2.53.3,5.06C2551.69,1610.34,2550.26,1611,2549.34,1610.44Zm3.34-12.89-5.24-1.75a9.56,9.56,0,0,1,3-4.43,4.74,4.74,0,0,1,2-1,3.31,3.31,0,0,0,1,.72C2553.1,1593.22,2552.84,1595.38,2552.68,1597.55Zm19.52,6.5-12.91-4.3a62.57,62.57,0,0,1,1.69-12c5,2.75,12.75,1.79,12.75,1.79Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#74dcfc"},d:"M2584.48,1535.27c-5.88,2.56-9.17,7.61-10.32,13.94-4.83,26.63,28.33,76.05,68,59.72a40.64,40.64,0,0,0,5.24-2.61C2686.87,1583,2632.3,1514.44,2584.48,1535.27Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#86a6bd",opacity:"0.26"},d:"M2032.34,1985.67h150.18a8.52,8.52,0,0,0,8.52-8.89l-4.28-99.89a6.41,6.41,0,0,0-6.42-6.15H2030.4l2,101.93",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2191.39,2039.77c-2.76-16-4.06-32-5.43-48.07l-.8-12.05-.4-6-.1-1.51a14.89,14.89,0,0,1,0-2,8.56,8.56,0,0,1,1.94-4.75,10.8,10.8,0,0,1,8-3.8l6.15-.07,12.08-.07,12.08.12,6.15.07a10.76,10.76,0,0,1,8,3.78,8.47,8.47,0,0,1,1.92,4.72l.15,3.1.28,6,.52,12.07c.57,16.1,1.08,32.19.8,48.34a1.35,1.35,0,0,1-2.68.15c-2.1-16-3.41-32.06-4.67-48.12l-.85-12-.4-6-.2-2.93a1.39,1.39,0,0,0-.37-.76,3.69,3.69,0,0,0-2.7-1.08l-5.92.05-12.08.12-12.08-.07-5.92,0a3.64,3.64,0,0,0-2.66,1.06,1.39,1.39,0,0,0-.37.73s0,.47,0,1l.07,1.51.28,6,.57,12.06c.45,16.1,1,32.2,0,48.38a.68.68,0,0,1-1.34.08Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("polygon",{style:{fill:"#f3f6f8"},points:"471.79 657.89 469.28 613.56 442.97 613.56 445.48 657.83 471.79 657.89"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2149.71,2064.26a21.59,21.59,0,0,1,9.06-2.71,83.69,83.69,0,0,1,9.06-.42c3,.08,6,.26,9.06.51a34.08,34.08,0,0,1,9.06,2,1.44,1.44,0,0,1,0,2.68,34.08,34.08,0,0,1-9.06,2c-3,.25-6,.44-9.06.51a83.69,83.69,0,0,1-9.06-.42,21.59,21.59,0,0,1-9.06-2.71.78.78,0,0,1-.28-1.06A.8.8,0,0,1,2149.71,2064.26Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2181.34,2034.57c-17.22-1.19-34.44-1.6-51.66-1.94l-25.83-.28-12.92-.12-6.46-.06a18,18,0,0,1-5.17-.89,16.73,16.73,0,0,1-11.49-16.09l-.16-17.54c-2.3-.12-4.6-.15-6.9-.15l-.16,17.7a24,24,0,0,0,16.34,23.3,25.54,25.54,0,0,0,7.53,1.15l6.46-.06,12.92-.12,25.83-.28c17.22-.34,34.44-.74,51.66-1.94a1.35,1.35,0,0,0,0-2.69Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2156.47,2034.57c-8.58-1.15-15.3-7.64-16.55-15.28-.52-3.45-.09-8.55-.11-13l.17-9.79h-7.46l.17,9.79c.28,4.67-.32,8.81.82,14.38a22.45,22.45,0,0,0,8.62,12.8,20.63,20.63,0,0,0,14.34,3.78,1.38,1.38,0,0,0,1.18-1.18A1.35,1.35,0,0,0,2156.47,2034.57Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2189,1994.51a19.45,19.45,0,0,1-5.57.7h-4.77v0h-.5c-28.24.05-56.47.45-84.71.69-30.47.46-60.93,1.09-91.4,2.05a.67.67,0,0,0,0,1.34c30.47,1,60.93,1.59,91.4,2.05,30.47.26,60.93.72,91.4.71h.15a3.45,3.45,0,0,0,.65-.09,27.44,27.44,0,0,0,3.36-.4Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2207.27,1957.36l-2.43-61.2-.61-15.3c-.15-2.7-.09-4.75-.44-8a21.85,21.85,0,0,0-18.16-18.52,36.58,36.58,0,0,0-6.11-.28,3.76,3.76,0,0,0-.72-.07l-159,.55-9.94.09a16.26,16.26,0,0,0-11.19,3.89,15.82,15.82,0,0,0-5.41,10.68c-.07,3.91.13,6.79.18,10.23l1,39.73c.59,26.49,1.48,53,2.47,79.45a1.34,1.34,0,0,0,2.68,0c.11-26.5.14-53-.15-79.49l-.29-39.74c0-3.18-.1-6.93,0-9.63a9.79,9.79,0,0,1,3.47-6.54,10,10,0,0,1,7.22-2.24l3.91,0,1.63,55c.48,19.37,1.43,38.74,2.16,58.1a1.34,1.34,0,0,0,2.68-.05c0-19.38.13-38.77-.16-58.14l-.56-54.84h.27l155.34.54.13-.07h2.09a54.42,54.42,0,0,1,7,.23,14.2,14.2,0,0,1,9.76,6.53,14,14,0,0,1,2,5.63c.2,1.84.24,4.9.38,7.29l.7,15.29,1.41,30.59,1.41,30.59.28,6.14a47.87,47.87,0,0,1,7.11.15Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2191.39,2039.77c-2.76-16-4.06-32-5.43-48.07l-.8-12.05-.4-6-.1-1.51a14.89,14.89,0,0,1,0-2,8.56,8.56,0,0,1,1.94-4.75,10.8,10.8,0,0,1,8-3.8l6.15-.07,12.08-.07,12.08.12,6.15.07a10.76,10.76,0,0,1,8,3.78,8.47,8.47,0,0,1,1.92,4.72l.15,3.1.28,6,.52,12.07c.57,16.1,1.08,32.19.8,48.34a1.35,1.35,0,0,1-2.68.15c-2.1-16-3.41-32.06-4.67-48.12l-.85-12-.4-6-.2-2.93a1.39,1.39,0,0,0-.37-.76,3.69,3.69,0,0,0-2.7-1.08l-5.92.05-12.08.12-12.08-.07-5.92,0a3.64,3.64,0,0,0-2.66,1.06,1.39,1.39,0,0,0-.37.73s0,.47,0,1l.07,1.51.28,6,.57,12.06c.45,16.1,1,32.2,0,48.38a.68.68,0,0,1-1.34.08Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("polygon",{style:{fill:"#f3f6f8"},points:"471.79 657.89 469.28 613.56 442.97 613.56 445.48 657.83 471.79 657.89"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2149.71,2064.26a21.59,21.59,0,0,1,9.06-2.71,83.69,83.69,0,0,1,9.06-.42c3,.08,6,.26,9.06.51a34.08,34.08,0,0,1,9.06,2,1.44,1.44,0,0,1,0,2.68,34.08,34.08,0,0,1-9.06,2c-3,.25-6,.44-9.06.51a83.69,83.69,0,0,1-9.06-.42,21.59,21.59,0,0,1-9.06-2.71.78.78,0,0,1-.28-1.06A.8.8,0,0,1,2149.71,2064.26Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e9eff4"},d:"M1758.29,2322.51c129.84-3.7,259.68-4.48,389.52-5.4l389.52-.85c259.68.81,519.36.35,779,4.91a2.69,2.69,0,0,1,0,5.37c-259.68,4.56-519.36,4.1-779,4.91l-389.52-.85c-129.84-.92-259.68-1.7-389.52-5.4a1.34,1.34,0,0,1,0-2.68Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2531.81,2280.22a3.36,3.36,0,0,1-3.21-4.33c4.87-16,2.75-48.59.71-80-1-15.5-2-30.14-2.1-42.83a3.36,3.36,0,0,1,3.32-3.4h0a3.36,3.36,0,0,1,3.36,3.32c.14,12.51,1.09,27.07,2.09,42.47,2.09,32.06,4.24,65.22-1,82.44A3.36,3.36,0,0,1,2531.81,2280.22Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2651.85,2313.12a3.35,3.35,0,0,1-3.31-2.86c-.12-.81-12.12-81.19-20.37-160.52a3.36,3.36,0,1,1,6.67-.7c8.24,79.19,20.21,159.42,20.33,160.22a3.36,3.36,0,0,1-2.82,3.82A3.27,3.27,0,0,1,2651.85,2313.12Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M3025.91,1433.5v-6.88a6.71,6.71,0,0,1,13.43,0V1434",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2798.25,1578.5v-1.72a26.28,26.28,0,0,1-8.95,4.54s7.5-27.34-.45-29.17-38.4,52.06-38.4,52.06l11,26.43s11.83-10.63,49.88-30.13c8.64-8.13,13.71-15.59,16.29-22Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2782.12,1618.79a3.36,3.36,0,0,1,0-6.71c3.78-.14,30-13.82,42.82-38.15a3.36,3.36,0,1,1,5.94,3.13C2817.51,1602.39,2789,1618.79,2782.12,1618.79Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2761.47,1597.25a3.36,3.36,0,0,1-2.22-5.87c2.76-2.45,7.26-11.57,11.23-19.61,8.05-16.3,11.8-23,16.48-23.58a4.9,4.9,0,0,1,4.44,1.78c4.62,5.4,3.46,18.48,2.22,26.39,2.84-1.22,6-3.06,7.75-5.51a3.36,3.36,0,1,1,5.47,3.89c-5.18,7.26-16.36,9.76-16.83,9.86a3.36,3.36,0,0,1-4-4c1.66-7.7,2.93-20,1.06-24.9-2.73,3.15-7.36,12.54-10.58,19-4.66,9.44-9.05,18.35-12.81,21.66A3.31,3.31,0,0,1,2761.47,1597.25Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2416.59,1625.9c3.14,1.27,1.2,22.27,5.46,30.69.95-.16,1.89-.34,2.83-.53-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29c1.24.12,2.48.23,3.74.3C2398.59,1640,2410.65,1623.49,2416.59,1625.9Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2428.33,1655.3l2.24-.57C2429.82,1654.93,2429.08,1655.12,2428.33,1655.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2447.73,1648.42l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2191.3,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2257.26,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2587.08,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2686,1505.23a6.71,6.71,0,1,0,0,13.43h8v-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2653,1499.58h-33a6.71,6.71,0,0,0,0,13.43h33a6.71,6.71,0,0,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2323.22,1505.23h-33a6.71,6.71,0,0,0,0,13.43h27.37a97.31,97.31,0,0,1,7.57-13.14A6.72,6.72,0,0,0,2323.22,1505.23Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2521.11,1505.23h-33a6.71,6.71,0,0,0-2.05.32,97.32,97.32,0,0,1,7.55,13.11h27.48a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2430.57,1654.73l-2.24.57c-.16,1-.49,1.78-1.08,2-.92.31-1.21.1-1.35,0a3.51,3.51,0,0,1-1-1.23c-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29c.39,12.48,6.62,25.37,23.26,34.07a3.4,3.4,0,0,0,1.55.38,3.36,3.36,0,0,0,1.55-6.33c-23.86-12.47-20.37-32.83-17.76-41,2.86-9,7.67-13.76,9.75-14.69a83.07,83.07,0,0,1,.87,8.7c.65,9.63,1.39,20.54,6.92,24.25a7.94,7.94,0,0,0,7.21.78c4.91-1.64,5.87-5.42,5.78-10.24-.57.2-1.57.5-2.65.8l-1,.28Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2431.51,1654.49l1-.28-1.95.52Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2445.52,1649.46l-.61.27c-1.23.56-2.56,1.13-3.32,1.39a57.89,57.89,0,0,1,4.6,24,3.36,3.36,0,0,0,3.31,3.4h0a3.36,3.36,0,0,0,3.36-3.31,66.28,66.28,0,0,0-5.19-26.75l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2446.61,1648.95l-1.7.78.61-.27Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2547.12,2156.58c-11.43,0-21.7-1.43-27.18-5.63a11.37,11.37,0,0,1-4.7-8.56c-.17-3-.55-7.36-1-12.93-3-34.13-10-114,4.45-204.92a3.36,3.36,0,0,1,6.64,1c-14.33,90.06-7.37,169.4-4.39,203.28.5,5.66.89,10.09,1.06,13.15a4.69,4.69,0,0,0,2.09,3.6c11.59,8.87,57.88,1.65,74.75-1.89a3.36,3.36,0,0,1,1.38,6.57C2595.85,2151.2,2569.3,2156.58,2547.12,2156.58Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2643.2,2151.66c-12.44,0-22.94-1.1-27.65-4.25-10.39-6.93-8.37-101.49-7-141.83a3.18,3.18,0,0,1,3.47-3.25,3.37,3.37,0,0,1,3.25,3.47c-2.09,62.26-1.09,130.21,4.2,136.16,9.2,6.1,58.16,1.8,88.94-2.62l-5.81-102.27a3.36,3.36,0,0,1,3.16-3.54,3.19,3.19,0,0,1,3.54,3.16l6,105.34a3.36,3.36,0,0,1-2.85,3.51C2706.69,2146.4,2670.33,2151.66,2643.2,2151.66Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#00a9de"},d:"M2701.14,1985.18a3.35,3.35,0,0,1-3.34-3.09l-7.19-88.58a3.35,3.35,0,1,1,6.69-.54l7.19,88.58a3.36,3.36,0,0,1-3.08,3.61Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#74dcfc"},d:"M2790.95,1624l-32.31-33.51c-15.78,31.57-62.67,78.58-98.1,87.42-.81-.32-1.63-.64-2.49-1-11.37-4.19-76.46-8.61-92-2-10,4.25-16.9,7.49-21.52,11.79-30.74,24.06-50,44.9-50,44.9L2457,1673l-33.51,23.94s28.72,105.32,73,102.93a107.17,107.17,0,0,0,41.78-11.27l3.7,105.84,148.35-2.55-3.6-151.61C2742,1712.26,2790.95,1624,2790.95,1624Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2535.2,1898.17a3.36,3.36,0,0,1,0-6.71l158.76-1.57a3.23,3.23,0,0,1,3.39,3.32,3.36,3.36,0,0,1-3.32,3.39l-158.76,1.57Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2510.57,1801.68a3.36,3.36,0,0,1-1.38-6.42l29-13a3.36,3.36,0,1,1,2.75,6.12l-29,13A3.32,3.32,0,0,1,2510.57,1801.68Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2363.75,2092.76h-.48l-96.46,1.48-97.41,1-195.87.76a3.72,3.72,0,0,1-3.73-3.7v0l-.07-54.71a3.79,3.79,0,0,1,3.78-3.8h0l194.63.42,194.63,1.45h0a1.9,1.9,0,0,1,1.89,1.92v0Zm-1.9-.95v-.47l-1-53.76,1.93,1.93L2168.15,2041l-194.63.42,3.8-3.8-.07,54.71-3.73-3.73,193.41.76,97.22,1Z",transform:"translate(-1756.98 -1363.12)"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"216.54",x2:"216.54",y1:"709.01",y2:"947.85"}),M.default.cr
|