Full Site Editing - Version 3.30625

Version Description

Download this release

Release Info

Developer ebuccelli
Plugin Icon wp plugin Full Site Editing
Version 3.30625
Comparing to
See all releases

Code changes from version 3.30395 to 3.30625

build_meta.txt CHANGED
@@ -1,3 +1,3 @@
1
- commit_hash=3a786a05407bd58126b7c0c16c777ff4e88beffd
2
- commit_url=https://github.com/Automattic/wp-calypso/commit/3a786a05407bd58126b7c0c16c777ff4e88beffd
3
- build_number=3.30395
1
+ commit_hash=88e43f8c3aa960972322c106eb4029010e7e12a2
2
+ commit_url=https://github.com/Automattic/wp-calypso/commit/88e43f8c3aa960972322c106eb4029010e7e12a2
3
+ build_number=3.30625
common/dist/data-stores.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-polyfill'), 'version' => '9078ef28431c5175a125258524159a0c');
1
+ <?php return array('dependencies' => array('react', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-polyfill'), 'version' => '46c41ffbf26c8c8ee936bd180c9ee2a2');
common/dist/data-stores.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(){var e={7266:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(5854),o=r(730);function i(e){var t=(0,n.Z)(e);return function(e){return(0,o.Z)(t,e)}}},730:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};function o(e,t){var r,o,i,a,u,s,l=[];for(r=0;r<e.length;r++){if(u=e[r],a=n[u]){for(o=a.length,i=Array(o);o--;)i[o]=l.pop();try{s=a.apply(null,i)}catch(c){return c}}else s=t.hasOwnProperty(u)?t[u]:+u;l.push(s)}return l[0]}},1184:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7266);function o(e){var t=(0,n.Z)(e);return function(e){return+t({n:e})}}},5854:function(e,t,r){"use strict";var n,o,i,a;function u(e){for(var t,r,u,s,l=[],c=[];t=e.match(a);){for(r=t[0],(u=e.substr(0,t.index).trim())&&l.push(u);s=c.pop();){if(i[r]){if(i[r][0]===s){r=i[r][1]||r;break}}else if(o.indexOf(s)>=0||n[s]<n[r]){c.push(s);break}l.push(s)}i[r]||c.push(r),e=e.substr(t.index+r.length)}return(e=e.trim())&&l.push(e),l.concat(c.reverse())}r.d(t,{Z:function(){return u}}),n={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},a=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},6668:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function o(e,t){var r;if(!Array.isArray(t))for(t=new Array(arguments.length-1),r=1;r<arguments.length;r++)t[r-1]=arguments[r];return r=1,e.replace(n,(function(){var e,n,o,i,a;return e=arguments[3],n=arguments[5],"%"===(i=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[r-1],r++),void 0!==n?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(n)&&(a=t[0][n]):(void 0===e&&(e=r),r++,a=t[e-1]),"f"===i?a=parseFloat(a)||0:"d"===i&&(a=parseInt(a)||0),void 0!==o&&("f"===i?a=a.toFixed(o):"s"===i&&(a=a.substr(0,o))),null!=a?a:"")}))}},2680:function(e,t,r){"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},9429:function(e,t,r){"use strict";var n=r(4090),o=r(7286),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(d){l=null}e.exports=function(e){var t=u(n,a,arguments);if(s&&l){var r=s(t,"length");r.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return u(n,i,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},2699:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,o),n(r)},e.once("error",i)),e.once(t,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var o,i,a,l;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,l=c,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=c.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):y(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var l=s.length,c=y(s,l);for(r=0;r<l;++r)n(c[r],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5695:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(r=t.cmp,function(e){return function(t,n){var o={key:t,value:e[t]},i={key:n,value:e[n]};return r(o,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(t)-1,s=Object.keys(t).sort(o&&o(t));for(a="",r=0;r<s.length;r++){var l=s[r],c=e(t[l]);c&&(a&&(a+=","),a+=JSON.stringify(l)+":"+c)}return i.splice(u,1),"{"+a+"}"}}(e)}},7795:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(t+i);for(var a,u=r.call(arguments,1),s=function(){if(this instanceof a){var t=i.apply(this,u.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,u.concat(r.call(arguments)))},l=Math.max(0,i.length-u.length),c=[],f=0;f<l;f++)c.push("$"+f);if(a=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),i.prototype){var d=function(){};d.prototype=i.prototype,a.prototype=new d,d.prototype=null}return a}},4090:function(e,t,r){"use strict";var n=r(7795);e.exports=Function.prototype.bind||n},7286:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,u=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(O){s=null}var l=function(){throw new a},c=s?function(){try{return l}catch(e){try{return s(arguments,"callee").get}catch(t){return l}}}():l,f=r(2636)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},y="undefined"==typeof Uint8Array?n:d(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},m=function e(t){var r;if("%AsyncFunction%"===t)r=u("async function () {}");else if("%GeneratorFunction%"===t)r=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=u("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=d(o.prototype))}return g[t]=r,r},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(4090),b=r(3198),_=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),A=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,M=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return A(e,P,(function(e,t,r,o){n[n.length]=r?A(o,I,"$1"):t||e})),n},C=function(e,t){var r,n=e;if(b(h,n)&&(n="%"+(r=h[n])[0]+"%"),b(g,n)){var i=g[n];if(i===p&&(i=m(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=M(e),n=r.length>0?r[0]:"",i=C("%"+n+"%",t),u=i.name,l=i.value,c=!1,f=i.alias;f&&(n=f[0],S(r,_([0,1],f)));for(var d=1,p=!0;d<r.length;d+=1){var y=r[d],m=E(y,0,1),h=E(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new o("property names with quotes must have matching quotes");if("constructor"!==y&&p||(c=!0),b(g,u="%"+(n+="."+y)+"%"))l=g[u];else if(null!=l){if(!(y in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=r.length){var v=s(l,y);l=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[y]}else p=b(l,y),l=l[y];p&&!c&&(g[u]=l)}}return l}},2636:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6679:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3198:function(e,t,r){"use strict";var n=r(4090);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},4495:function(e,t,r){"use strict";var n=r(212),o=r(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=e>>>24&255,n[o++]=e>>>16&255,n[o++]=e>>>8&255,n[o++]=255&e}else for(n[o++]=255&e,n[o++]=e>>>8&255,n[o++]=e>>>16&255,n[o++]=e>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n}},5079:function(e,t,r){"use strict";var n=r(212),o=r(4495),i=r(713),a=n.rotl32,u=n.sum32,s=n.sum32_5,l=i.ft_1,c=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],d=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var y=~~(n/20),g=s(a(o,5),l(y,i,c,d),p,r[n],f[y]);p=d,d=c,c=a(i,30),i=o,o=g}this.h[0]=u(this.h[0],o),this.h[1]=u(this.h[1],i),this.h[2]=u(this.h[2],c),this.h[3]=u(this.h[3],d),this.h[4]=u(this.h[4],p)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},713:function(e,t,r){"use strict";var n=r(212).rotr32;function o(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?a(t,r,n):2===e?i(t,r,n):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},212:function(e,t,r){"use strict";var n=r(9561),o=r(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=u(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e[n];"little"===t&&(o=a(o)),r+=s(o.toString(16))}return r},t.zero2=u,t.zero8=s,t.join32=function(e,t,r,o){var i=r-t;n(i%4==0);for(var a=new Array(i/4),u=0,s=t;u<a.length;u++,s+=4){var l;l="big"===o?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],a[u]=l>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,o=0;n<e.length;n++,o+=4){var i=e[n];"big"===t?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,o){return e+t+r+n+o>>>0},t.sum64=function(e,t,r,n){var o=e[t],i=n+e[t+1]>>>0,a=(i<n?1:0)+r+o;e[t]=a>>>0,e[t+1]=i},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,o,i,a,u){var s=0,l=t;return s+=(l=l+n>>>0)<t?1:0,s+=(l=l+i>>>0)<i?1:0,e+r+o+a+(s+=(l=l+u>>>0)<u?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,o,i,a,u){return t+n+i+u>>>0},t.sum64_5_hi=function(e,t,r,n,o,i,a,u,s,l){var c=0,f=t;return c+=(f=f+n>>>0)<t?1:0,c+=(f=f+i>>>0)<i?1:0,c+=(f=f+u>>>0)<u?1:0,e+r+o+a+s+(c+=(f=f+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,o,i,a,u,s,l){return t+n+i+u+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},7839:function(e,t,r){var n=r(2699),o=r(1285);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),n.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,o(i,n.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,r){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=r,this.cache[this.tail].prev=null):(this.cache[t].next=r,this.cache[r].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var r;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((r=this.cache[e]).value=t,this.maxAge&&(r.modified=Date.now()),e===this.head)return t;this._unlink(e,r.prev,r.next)}else r={value:t,modified:0,next:null,prev:null},this.maxAge&&(r.modified=Date.now()),this.cache[e]=r,this.length===this.max&&this.evict();return this.length++,r.next=null,r.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,r=60*t,n=60*r,o=24*n,i=7*o,a=365.25*o;function u(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,s){s=s||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!u)return;var s=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"weeks":case"week":case"w":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&isFinite(e))return s.long?function(e){var i=Math.abs(e);if(i>=o)return u(e,i,o,"day");if(i>=n)return u(e,i,n,"hour");if(i>=r)return u(e,i,r,"minute");if(i>=t)return u(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=n)return Math.round(e/n)+"h";if(i>=r)return Math.round(e/r)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9500:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&s&&"function"==typeof s.get?s.get:null,c=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,h=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A=Object.prototype.propertyIsEnumerable,E=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),P=r(3260).custom,I=P&&$(P)?P:null,M="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function O(e){return String(e).replace(/"/g,"&quot;")}function w(e){return!("[object Array]"!==F(e)||M&&"object"==typeof e&&M in e)}function $(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,n,o){var u=r||{};if(L(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!L(u,"customInspect")||u.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return R(t,u);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===u.depth?5:u.depth;if(void 0===n&&(n=0),n>=g&&g>0&&"object"==typeof t)return w(t)?"[Array]":"[Object]";var b=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(u,n);if(void 0===o)o=[];else if(T(o,t)>=0)return"[Circular]";function A(t,r,i){if(r&&(o=o.slice()).push(r),i){var a={depth:u.depth};return L(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,n+1,o)}return e(t,u,n+1,o)}if("function"==typeof t){var P=function(e){if(e.name)return e.name;var t=h.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),x=B(t,A);return"[Function"+(P?": "+P:" (anonymous)")+"]"+(x.length>0?" { "+x.join(", ")+" }":"")}if($(t)){var N=S?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?N:D(N)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var k="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],H=0;H<G.length;H++)k+=" "+G[H].name+"="+C(O(G[H].value),"double",u);return k+=">",t.childNodes&&t.childNodes.length&&(k+="..."),k+="</"+String(t.nodeName).toLowerCase()+">"}if(w(t)){if(0===t.length)return"[]";var W=B(t,A);return b&&!function(e){for(var t=0;t<e.length;t++)if(T(e[t],"\n")>=0)return!1;return!0}(W)?"["+U(W,b)+"]":"[ "+W.join(", ")+" ]"}if(function(e){return!("[object Error]"!==F(e)||M&&"object"==typeof e&&M in e)}(t)){var V=B(t,A);return 0===V.length?"["+String(t)+"]":"{ ["+String(t)+"] "+V.join(", ")+" }"}if("object"==typeof t&&s){if(I&&"function"==typeof t[I])return t[I]();if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(k){return!0}return e instanceof Map}catch(t){}return!1}(t)){var Y=[];return a.call(t,(function(e,r){Y.push(A(r,t,!0)+" => "+A(e,t))})),Z("Map",i.call(t),Y,b)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var K=[];return c.call(t,(function(e){K.push(A(e,t))})),Z("Set",l.call(t),K,b)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(k){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return j("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(k){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return j("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return j("WeakRef");if(function(e){return!("[object Number]"!==F(e)||M&&"object"==typeof e&&M in e)}(t))return D(A(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return D(A(v.call(t)));if(function(e){return!("[object Boolean]"!==F(e)||M&&"object"==typeof e&&M in e)}(t))return D(y.call(t));if(function(e){return!("[object String]"!==F(e)||M&&"object"==typeof e&&M in e)}(t))return D(A(String(t)));if(!function(e){return!("[object Date]"!==F(e)||M&&"object"==typeof e&&M in e)}(t)&&!function(e){return!("[object RegExp]"!==F(e)||M&&"object"==typeof e&&M in e)}(t)){var z=B(t,A),q=E?E(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!q&&M&&Object(t)===t&&M in t?F(t).slice(8,-1):J?"Object":"",Q=(q||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===z.length?Q+"{}":b?Q+"{"+U(z,b)+"}":Q+"{ "+z.join(", ")+" }"}return String(t)};var x=Object.prototype.hasOwnProperty||function(e){return e in this};function L(e,t){return x.call(e,t)}function F(e){return g.call(e)}function T(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function R(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return R(e.slice(0,t.maxStringLength),t)+n}return C(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",t)}function N(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function D(e){return"Object("+e+")"}function j(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?U(r,n):r.join(", "))+"}"}function U(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function B(e,t){var r=w(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=L(e,o)?t(e[o],e):""}var i,a="function"==typeof b?b(e):[];if(S){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in e)L(e,s)&&(r&&String(Number(s))===s&&s<e.length||S&&i["$"+s]instanceof Symbol||(/[^\w$]/.test(s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if("function"==typeof b)for(var l=0;l<a.length;l++)A.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}},8650:function(e){var t,r=window.ProgressEvent,n=!!r;try{t=new r("loaded"),n="loaded"===t.type,t=null}catch(o){n=!1}e.exports=n?r:"function"==typeof document.createEvent?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,!1,!1),t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}:function(e,t){var r=document.createEventObject();return r.type=e,t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}},5527:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:o}},9126:function(e,t,r){"use strict";var n=r(6845),o=r(9166),i=r(5527);e.exports={formats:i,parse:o,stringify:n}},9166:function(e,t,r){"use strict";var n=r(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=u?i.slice(0,u.index):i,c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;r.depth>0&&null!==(u=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&u!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:a[l]=o:a={0:o}}o=a}return o}(c,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?y="utf-8":"utf8=%26%2310003%3B"===d[r]&&(y="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var g,m,h=d[r],v=h.indexOf("]="),b=-1===v?h.indexOf("="):v+1;-1===b?(g=t.decoder(h,a.decoder,y,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(h.slice(0,b),a.decoder,y,"key"),m=n.maybeMap(s(h.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,y,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=u(m)),h.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(l,g)?l[g]=n.combine(l[g],m):l[g]=m}return l}(e,r):e,f=r.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var y=d[p],g=l(y,c[y],r,"string"==typeof e);f=n.merge(f,g,r)}return!0===r.allowSparse?f:n.compact(f)}},6845:function(e,t,r){"use strict";var n=r(4294),o=r(2493),i=r(5527),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},y=function e(t,r,i,a,u,l,f,d,y,g,m,h,v,b,_){var S,A=t;if(_.has(t))throw new RangeError("Cyclic object value");if("function"==typeof f?A=f(r,A):A instanceof Date?A=g(A):"comma"===i&&s(A)&&(A=o.maybeMap(A,(function(e){return e instanceof Date?g(e):e}))),null===A){if(a)return l&&!v?l(r,p.encoder,b,"key",m):r;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(A))return l?[h(v?r:l(r,p.encoder,b,"key",m))+"="+h(l(A,p.encoder,b,"value",m))]:[h(r)+"="+h(String(A))];var E,P=[];if(void 0===A)return P;if("comma"===i&&s(A))E=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(f))E=f;else{var I=Object.keys(A);E=d?I.sort(d):I}for(var M=0;M<E.length;++M){var C=E[M],O="object"==typeof C&&void 0!==C.value?C.value:A[C];if(!u||null!==O){var w=s(A)?"function"==typeof i?i(r,C):r:r+(y?"."+C:"["+C+"]");_.set(t,!0);var $=n();c(P,e(O,w,i,a,u,l,f,d,y,g,m,h,v,b,$))}}return P};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=p.filter;return("function"==typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):s(l.filter)&&(r=l.filter);var f,d=[];if("object"!=typeof o||null===o)return"";f=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=u[f];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var m=n(),h=0;h<r.length;++h){var v=r[h];l.skipNulls&&null===o[v]||c(d,y(o[v],v,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var b=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2493:function(e,t,r){"use strict";var n=r(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],u=Object.keys(a),s=0;s<u.length;++s){var l=u[s],c=a[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:a,prop:l}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===r)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",l=0;l<u.length;++l){var c=u.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===n.RFC1738&&(40===c||41===c)?s+=u.charAt(l):c<128?s+=a[c]:c<2048?s+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?s+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(l)),s+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=u(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},4294:function(e,t,r){"use strict";var n=r(7286),o=r(2680),i=r(9500),a=n("%TypeError%"),u=n("%WeakMap%",!0),s=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(u&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(s){if(t)return d(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(u&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(s){if(t)return y(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,o){u&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new u),c(e,n,o)):s?(t||(t=new s),p(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},9830:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(1184),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},o)this.options[r]=void 0!==t&&r in t?t[r]:o[r]}i.prototype.getPluralForm=function(e,t){var r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(o=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=(0,n.Z)(o)),a=this.pluralForms[e]=i),a(t)},i.prototype.dcnpgettext=function(e,t,r,n,o){var i,a,u;return i=void 0===o?0:this.getPluralForm(e,o),a=r,t&&(a=t+this.options.contextDelimiter+r),(u=this.data[e][a])&&u[i]?u[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)}},6274:function(e,t,r){"use strict";r(8077).z2()},5608:function(e,t,r){"use strict";r(1635).z()},3857:function(e,t,r){"use strict";r(9734).register()},561:function(e,t,r){"use strict";r(2369).z2({client_id:"",client_secret:""})},9512:function(e,t,r){"use strict";r(182).z()},3600:function(e,t,r){"use strict";r.r(t),r.d(t,{receiveCategories:function(){return n},fetchDomainSuggestions:function(){return o},receiveDomainAvailability:function(){return i},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});const n=e=>({type:"RECEIVE_CATEGORIES",categories:e}),o=()=>({type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}),i=(e,t)=>({type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}),a=(e,t)=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}),u=e=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()})},584:function(e,t,r){"use strict";r.d(t,{L:function(){return n},r:function(){return o}});const n="automattic/domains/suggestions";let o;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(o||(o={}))},8077:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(9818),o=r(3661),i=r(3600),a=r(584),u=r(3717),s=r(2269),l=r(267);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.L,{actions:i,controls:o.ai,reducer:u.Z,resolvers:s,selectors:l})),a.L}},3717:function(e,t,r){"use strict";var n=r(9818),o=r(584),i=r(4211);const a={state:o.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},u=(0,n.combineReducers)({categories:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?{...e,state:o.r.Pending,errorMessage:null,pendingSince:t.timeStamp}:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?{...e,state:o.r.Success,data:{...e.data,[(0,i.Le)(t.queryObject)]:t.suggestions},errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?{...e,state:o.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}:e},availability:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?{...e,[t.domainName]:t.availability}:e}});t.Z=u},2269:function(e,t,r){"use strict";r.r(t),r.d(t,{isAvailable:function(){return c},getCategories:function(){return f},__internalGetDomainSuggestions:function(){return d}});var n=r(1481),o=r(9126),i=r(6468),a=r.n(i),u=r(3661),s=r(3600),l=r(4211);const c=function*(e){const t=function(e){return`https://public-api.wordpress.com/rest/v1.3/domains/${encodeURIComponent(e)}/is-available?is_cart_pre_check=true`}(e);try{const{body:r}=yield(0,u.An)(t);return(0,s.receiveDomainAvailability)(e,r)}catch{return(0,s.receiveDomainAvailability)(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})}};function*f(){const{body:e}=yield(0,u.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");return(0,s.receiveCategories)(e)}function*d(e){if(!e.query)return(0,s.receiveDomainSuggestionsError)("Empty query");yield(0,s.fetchDomainSuggestions)();try{const t=yield(0,u._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});if(!Array.isArray(t))return(0,s.receiveDomainSuggestionsError)((0,n.Iu)("Invalid response from the server"));if(function(e,t){return a().isFQDN(t)&&!e.some((e=>e.domain_name.toLowerCase()===t))}(t,e.query)){const r={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""};t.unshift(r)}const r=t.map((e=>e.unavailable?e:{...e,...e.raw_price&&e.currency_code&&{cost:(0,l._B)(e.raw_price,e.currency_code)}}));return(0,s.receiveDomainSuggestionsSuccess)(e,r)}catch(t){return(0,s.receiveDomainSuggestionsError)(t.message||(0,n.Iu)("Error while fetching server response"))}}},267:function(e,t,r){"use strict";r.r(t),r.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return u},getDomainState:function(){return s},getDomainErrorMessage:function(){return l},isLoadingDomainSuggestions:function(){return c},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return d},getDomainAvailabilities:function(){return p}});var n=r(9818),o=r(584),i=r(4211);const a=e=>[...e.categories.filter((e=>{let{tier:t}=e;return null!==t})).sort(((e,t)=>e>t?1:-1)),...e.categories.filter((e=>{let{tier:t}=e;return null===t})).sort(((e,t)=>e.title.localeCompare(t.title)))],u=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(0,i.o0)(t,r);return(0,n.select)(o.L).__internalGetDomainSuggestions(a)},s=e=>e.domainSuggestions.state,l=e=>e.domainSuggestions.errorMessage,c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(0,i.o0)(t,r);return(0,n.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[a])},f=(e,t)=>e.domainSuggestions.data[(0,i.Le)(t)],d=(e,t)=>e.availability[t],p=e=>e.availability},4211:function(e,t,r){"use strict";r.d(t,{Le:function(){return i},_B:function(){return a},o0:function(){return u}});var n=r(1621),o=r(5695);const i=r.n(o)();function a(e,t){return(0,n.ZP)(e,t,{stripZeros:!0})}function u(e,t){return{include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front",...t,query:e.trim().toLocaleLowerCase()}}},6108:function(e,t,r){"use strict";r.r(t),r.d(t,{setSidebarFullscreen:function(){return i},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return f},setDomainSearch:function(){return d},setPlanProductId:function(){return p},unsetPlanProductId:function(){return y},updatePlan:function(){return g},openSidebar:function(){return m},closeSidebar:function(){return h},openFocusedLaunch:function(){return v},closeFocusedLaunch:function(){return b},enableAnchorFm:function(){return _},showSiteTitleStep:function(){return S},setModalDismissible:function(){return A},unsetModalDismissible:function(){return E},showModalTitle:function(){return P},hideModalTitle:function(){return I},enablePersistentSuccessView:function(){return M},disablePersistentSuccessView:function(){return C}});var n=r(9818),o=r(9149);const i=()=>({type:"SET_SIDEBAR_FULLSCREEN"}),a=()=>({type:"UNSET_SIDEBAR_FULLSCREEN"}),u=e=>({type:"SET_STEP",step:e}),s=e=>({type:"SET_SITE_TITLE",title:e}),l=e=>({type:"SET_DOMAIN",domain:e}),c=()=>({type:"UNSET_DOMAIN"}),f=()=>({type:"CONFIRM_DOMAIN_SELECTION"}),d=e=>({type:"SET_DOMAIN_SEARCH",domainSearch:e}),p=function*(e){if(!(0,n.select)(o.Fs).isPlanProductFree(e)){const t=(0,n.select)(o.Fs).getPlanProductById(e),r=(null==t?void 0:t.billingPeriod)??"ANNUALLY";yield(e=>({type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}))(r)}return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},y=()=>({type:"UNSET_PLAN_PRODUCT_ID"});function g(e){return p(e)}const m=()=>({type:"OPEN_SIDEBAR"}),h=()=>({type:"CLOSE_SIDEBAR"}),v=()=>({type:"OPEN_FOCUSED_LAUNCH"}),b=()=>({type:"CLOSE_FOCUSED_LAUNCH"}),_=()=>({type:"ENABLE_ANCHOR_FM"}),S=()=>({type:"SHOW_SITE_TITLE_STEP"}),A=()=>({type:"SET_MODAL_DISMISSIBLE"}),E=()=>({type:"UNSET_MODAL_DISMISSIBLE"}),P=()=>({type:"SHOW_MODAL_TITLE"}),I=()=>({type:"HIDE_MODAL_TITLE"}),M=()=>({type:"ENABLE_SUCCESS_VIEW"}),C=()=>({type:"DISABLE_SUCCESS_VIEW"})},9149:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Fs:function(){return o}});const n="automattic/launch",o="automattic/onboard/plans"},3610:function(e,t,r){"use strict";r.d(t,{y:function(){return n},M:function(){return o}});const n={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},o=[n.Name,n.Domain,n.Plan,n.Final]},1635:function(e,t,r){"use strict";r.d(t,{z:function(){return f}});var n=r(9818),o=r(3418),i=r(6108),a=r(9149),u=r(594),s=r(4648),l=r(7092);(0,n.use)(n.plugins.persistence,u.Z);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.Ls,{actions:i,controls:o.controls,reducer:s.Z,selectors:l,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,r){"use strict";var n=r(492);t.Z=(0,n.Z)("WP_LAUNCH")},4648:function(e,t,r){"use strict";var n=r(9818),o=r(3610);const i=(0,n.combineReducers)({step:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.y.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:(e,t)=>"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0,confirmedDomainSelection:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planBillingPeriod:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e},planProductId:(e,t)=>"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0,isSidebarOpen:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isAnchorFm:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===t.type||e},isFocusedLaunchOpen:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e}});t.Z=i},7092:function(e,t,r){"use strict";r.r(t),r.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return f},getLastPlanBillingPeriod:function(){return d},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return y},isStepCompleted:function(){return g},isFlowCompleted:function(){return m},isFlowStarted:function(){return h},getFirstIncompleteStep:function(){return v},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var n=r(9818),o=r(9149),i=r(3610);const a=()=>i.M,u=()=>i.y,s=e=>e,l=e=>!!e.domain&&!e.domain.is_free,c=e=>e.domain,f=e=>e.planProductId,d=e=>e.planBillingPeriod,p=e=>void 0!==e.planProductId&&!(0,n.select)(o.Fs).isPlanProductFree(e.planProductId),y=e=>!!c(e)||e.confirmedDomainSelection,g=(e,t)=>{if(t===i.y.Plan)return!!f(e);if(t===i.y.Name){const e=(0,n.select)("core").getEntityRecord("root","site",void 0);return!(null==e||!e.title)}return t===i.y.Domain&&(0,n.select)(o.Ls).hasSelectedDomainOrSubdomain()},m=e=>i.M.slice(0,i.M.length-1).every((t=>g(e,t))),h=e=>i.M.some((t=>g(e,t))),v=e=>i.M.find((t=>!g(e,t))),b=e=>null==e?void 0:e.siteTitle,_=e=>e.step,S=e=>e.domainSearch},492:function(e,t,r){"use strict";function n(e){const t=e,r=e+"_TS",n={},o={getItem:e=>n.hasOwnProperty(e)?n[e]:null,setItem(e,t){n[e]=String(t)},removeItem(e){delete n[e]}},i=(()=>{try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}})()?window.localStorage:o;return{storageKey:t,storage:{getItem(e){const n=i.getItem(r);return n&&(e=>{const t=Number(e);return Boolean(t)&&t+6048e5>Date.now()})(n)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(r),null)},setItem(e,t){i.setItem(r,JSON.stringify(Date.now())),i.setItem(e,t)}}}}r.d(t,{Z:function(){return n}})},9068:function(e,t,r){"use strict";r.r(t),r.d(t,{setFeatures:function(){return n},setFeaturesByType:function(){return o},setPlans:function(){return i},setPlanProducts:function(){return a},resetPlan:function(){return u}});const n=(e,t)=>({type:"SET_FEATURES",features:e,locale:t}),o=(e,t)=>({type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}),i=(e,t)=>({type:"SET_PLANS",plans:e,locale:t}),a=e=>({type:"SET_PLAN_PRODUCTS",products:e}),u=()=>({type:"RESET_PLAN"})},4703:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Ho:function(){return o},TO:function(){return i},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},B6:function(){return c},xT:function(){return f},AX:function(){return d},bS:function(){return p},UB:function(){return y},BV:function(){return g},nN:function(){return m}});const n="automattic/onboard/plans",o=1,i="free",a="personal",u="premium",s="business",l="ecommerce",c=[i,a,u,s,l],f=c,d=u,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],y=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan",...p,...y],m=["custom-domain","support-live","priority-support"]},9734:function(e,t,r){"use strict";r.r(t),r.d(t,{plansSlugs:function(){return a.B6},plansProductSlugs:function(){return a.BV},TIMELESS_PLAN_FREE:function(){return a.TO},TIMELESS_PLAN_PERSONAL:function(){return a.YS},TIMELESS_PLAN_PREMIUM:function(){return a.Gz},TIMELESS_PLAN_BUSINESS:function(){return a.hx},TIMELESS_PLAN_ECOMMERCE:function(){return a.iL},FREE_PLAN_PRODUCT_ID:function(){return a.Ho},register:function(){return f}});var n=r(9818),o=r(3661),i=r(9068),a=r(4703),u=r(9438),s=r(5261),l=r(7738);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.Ls,{resolvers:s,actions:i,controls:o.ai,reducer:u.ZP,selectors:l})),a.Ls}},9438:function(e,t,r){"use strict";var n=r(9818);const o=(0,n.combineReducers)({features:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_FEATURES"===t.type?{...e,[t.locale]:t.features}:e},featuresByType:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_FEATURES_BY_TYPE"===t.type?{...e,[t.locale]:t.featuresByType}:e},planProducts:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_PRODUCTS"===t.type?t.products:e},plans:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_PLANS"===t.type?{...e,[t.locale]:t.plans}:e}});t.ZP=o},5261:function(e,t,r){"use strict";r.r(t),r.d(t,{getSupportedPlans:function(){return y}});var n=r(1621),o=r(9126),i=r(3661),a=r(9068),u=r(4703);function s(e){return(0,n.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(e){return(0,n.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return e.reduce(((e,t)=>(e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:u.nN.indexOf(t.id)>-1},e)),{})}function f(e,t){const r=Object.keys(t).find((r=>t[r].name===e));return!!r&&t[r].requiresAnnuallyBilledPlan}function d(e,t){const r=e.highlighted_features.map((e=>({name:e,requiresAnnuallyBilledPlan:f(e,t)})));return r.sort(((e,t)=>Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan))),r}function p(e,t){const r=u.BV.reduce(((r,o)=>{const i=e.find((e=>e.product_slug===o));if(!i)return r;const a=t.find((e=>e.productIds.indexOf(i.product_id)>-1));var u;return r.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?l(i):(u=i,(0,n.ZP)(u.raw_price/12,u.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?s(i):l(i)}),r}),[]);return function(e){for(let t=0;t<u.bS.length;t++){const r=e.find((e=>e.storeSlug===u.bS[t])),n=e.find((e=>e.storeSlug===u.UB[t]));if(r&&n){const e=12*n.rawPrice,t=r.rawPrice,o=Math.round(100*(1-t/e));r.annualDiscount=o,n.annualDiscount=o}}}(r),r}function*y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";const t=yield(0,i._9)({path:"/plans",query:(0,o.stringify)({locale:e}),apiVersion:"1.5"}),{body:r}=yield(0,i.An)(`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${encodeURIComponent(e)}`,{mode:"cors",credentials:"omit"}),n=c(r.features),s=r.plans.map((e=>{var t;const r=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:d(e,n),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce(((e,t)=>(e[t]=!0,e)),{}),isFree:r===u.TO,isPopular:r===u.Gz,periodAgnosticSlug:r,productIds:e.products.map((e=>{let{plan_id:t}=e;return t}))}})),l=p(t,s);yield(0,a.setPlans)(s,e),yield(0,a.setPlanProducts)(l),yield(0,a.setFeatures)(n,e),yield(0,a.setFeaturesByType)(r.features_by_type,e)}},7738:function(e,t,r){"use strict";r.r(t),r.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return f},getDefaultPaidPlan:function(){return d},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return y},getPlansProducts:function(){return g},getPrices:function(){return m},getPlanByPath:function(){return h},getPlanProduct:function(){return v},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var n=r(9818),o=r(7180),i=r.n(o),a=r(4703);const u=(e,t)=>e.features[t]??{},s=(e,t)=>e.featuresByType[t]??[],l=(e,t,r)=>{if(t)return(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.productIds.indexOf(t)>-1))},c=(e,t)=>{if(t)return(0,n.select)(a.Ls).getPlansProducts().find((e=>e.productId===t))},f=(e,t,r)=>{if(t)return(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.periodAgnosticSlug===t))},d=(e,t)=>(0,n.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.AX)),p=(e,t)=>(0,n.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.TO)),y=(e,t)=>e.plans[t]??[],g=e=>e.planProducts,m=(e,t)=>(i()("getPrices",{alternative:"getPlanProduct().price"}),(0,n.select)(a.Ls).getPlansProducts().reduce(((e,t)=>(e[t.storeSlug]=t.price,e)),{})),h=(e,t,r)=>{if(!t)return;const o=(0,n.select)(a.Ls).getPlansProducts().find((e=>e.pathSlug===t));return o?(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.periodAgnosticSlug===o.periodAgnosticSlug)):void 0},v=(e,t,r)=>{if(t&&r)return(0,n.select)(a.Ls).getPlansProducts().find((e=>{const n=e.periodAgnosticSlug===t,o=t===a.TO||e.billingPeriod===r;return n&&o}))},b=(e,t)=>t===a.iL,_=(e,t)=>t===a.TO,S=(e,t)=>t===a.Ho},8459:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(3661),o=r(9639);function i(e){const t=()=>({type:"FETCH_NEW_SITE"}),r=e=>({type:"RECEIVE_NEW_SITE",response:e}),i=e=>({type:"RECEIVE_NEW_SITE_FAILED",error:e});const a=(e,t)=>({type:"RECEIVE_SITE_TITLE",siteId:e,name:t}),u=(e,t)=>({type:"RECEIVE_SITE_TAGLINE",siteId:e,tagline:t}),s=e=>({type:"LAUNCH_SITE_START",siteId:e}),l=e=>({type:"LAUNCH_SITE_SUCCESS",siteId:e}),c=(e,t)=>({type:"LAUNCH_SITE_FAILURE",siteId:e,error:t});function*f(e,t){try{yield(0,n._9)({path:`/sites/${encodeURIComponent(e)}/settings`,apiVersion:"1.4",body:t,method:"POST"}),"blogname"in t&&(yield a(e,t.blogname)),"blogdescription"in t&&(yield u(e,t.blogdescription))}catch(r){}}return{receiveSiteDomains:(e,t)=>({type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}),saveSiteTitle:function*(e,t){yield f(e,{blogname:t})},saveSiteSettings:f,receiveSiteTitle:a,fetchNewSite:t,fetchSite:()=>({type:"FETCH_SITE"}),receiveNewSite:r,receiveNewSiteFailed:i,resetNewSiteFailed:()=>({type:"RESET_RECEIVE_NEW_SITE_FAILED"}),setDesignOnSite:function*(e,t){yield(0,n._9)({path:`/sites/${e}/themes/mine`,apiVersion:"1.1",body:{theme:t.theme,dont_change_homepage:!0},method:"POST"}),yield(0,n._9)({path:`/sites/${encodeURIComponent(e)}/theme-setup`,apiNamespace:"wpcom/v2",body:{trim_content:!0},method:"POST"});const r=yield(0,n._9)({path:`/sites/${e}/block-editor`,apiNamespace:"wpcom/v2",method:"GET"});return(null==r?void 0:r.is_fse_active)??!1},createSite:function*(t){yield{type:"FETCH_NEW_SITE"};try{const{authToken:o,...i}=t,a={...{client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},...i,validate:!1},u=yield(0,n._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:o});return yield r(u),!0}catch(o){return yield i(o),!1}},receiveSite:(e,t)=>({type:"RECEIVE_SITE",siteId:e,response:t}),receiveSiteFailed:(e,t)=>({type:"RECEIVE_SITE_FAILED",siteId:e,response:t}),receiveSiteTagline:u,saveSiteTagline:function*(e,t){yield f(e,{blogdescription:t})},reset:()=>({type:"RESET_SITE_STORE"}),launchSite:function*(e){yield s(e);try{yield(0,n._9)({path:`/sites/${e}/launch`,apiVersion:"1.1",method:"post"}),yield l(e)}catch(t){yield c(e,o.Hc.INTERNAL)}},launchSiteStart:s,launchSiteSuccess:l,launchSiteFailure:c,getCart:function*(e){return yield(0,n._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})},setCart:function*(e,t){return yield(0,n._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})}}}},2005:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n="automattic/site"},2369:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(9818),o=r(3661),i=r(8459),a=r(2005),u=r(2701),s=r(7862),l=r(4309);let c=!1;function f(e){return c||(c=!0,(0,n.registerStore)(a.L,{actions:(0,i.d)(e),controls:o.ai,reducer:u.ZP,resolvers:s,selectors:l})),a.L}},2701:function(e,t,r){"use strict";var n=r(9818),o=r(9639);const i=(0,n.combineReducers)({data:(e,t)=>{if("RECEIVE_NEW_SITE"===t.type){const{response:e}=t;return e.blog_details}if("RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type)return e},error:(e,t)=>{switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),a=(0,n.combineReducers)({isFetchingSiteDetails:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:i,sites:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return t.response?{...e,[t.response.ID]:t.response}:e;if("RECEIVE_SITE_FAILED"===t.type){const{[t.siteId]:r,...n}=e;return{...n}}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?{...e,[t.siteId]:{...e[t.siteId],name:t.name}}:"RECEIVE_SITE_TAGLINE"===t.type?{...e,[t.siteId]:{...e[t.siteId],description:t.tagline??""}}:e},launchStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?{...e,[t.siteId]:{status:o.uS.IN_PROGRESS,errorCode:void 0}}:"LAUNCH_SITE_SUCCESS"===t.type?{...e,[t.siteId]:{status:o.uS.SUCCESS,errorCode:void 0}}:"LAUNCH_SITE_FAILURE"===t.type?{...e,[t.siteId]:{status:o.uS.FAILURE,errorCode:t.error}}:e},sitesDomains:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?{...e,[t.siteId]:t.domains}:e}});t.ZP=a},7862:function(e,t,r){"use strict";r.r(t),r.d(t,{getSite:function(){return a},getSiteDomains:function(){return u}});var n=r(9818),o=r(3661),i=r(2005);function*a(e){yield(0,n.dispatch)(i.L).fetchSite();try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});yield(0,n.dispatch)(i.L).receiveSite(e,t)}catch(t){yield(0,n.dispatch)(i.L).receiveSiteFailed(e,void 0)}}function*u(e){try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});yield(0,n.dispatch)(i.L).receiveSiteDomains(e,null==t?void 0:t.domains)}catch(t){}}},4309:function(e,t,r){"use strict";r.r(t),r.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return f},getSite:function(){return d},getSiteIdBySlug:function(){return p},getSiteTitle:function(){return y},isSiteLaunched:function(){return g},isSiteLaunching:function(){return m},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return b}});var n=r(9818),o=r(2005),i=r(9639);const a=e=>e,u=e=>e.newSite.data,s=e=>e.newSite.error,l=e=>e.newSite.isFetching,c=e=>e.isFetchingSiteDetails,f=e=>!!e.newSite.data,d=(e,t)=>e.sites[t]||Object.values(e.sites).find((e=>e&&new URL(e.URL).host===t)),p=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSite(t))||void 0===r?void 0:r.ID},y=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSite(t))||void 0===r?void 0:r.name},g=(e,t)=>{var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.SUCCESS},m=(e,t)=>{var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.IN_PROGRESS},h=(e,t)=>e.sitesDomains[t],v=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((e=>e.primary_domain))},b=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((e=>e.is_subdomain))}},9639:function(e,t,r){"use strict";let n,o,i;r.d(t,{Hc:function(){return o},uS:function(){return i}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(n||(n={})),function(e){e.INTERNAL="internal"}(o||(o={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(i||(i={}))},4366:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n="automattic/wpcom-features"},2613:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(9734);const{TIMELESS_PLAN_PERSONAL:o,TIMELESS_PLAN_PREMIUM:i,TIMELESS_PLAN_BUSINESS:a,TIMELESS_PLAN_ECOMMERCE:u}=n,s={domain:{id:"domain",minSupportedPlan:o},store:{id:"store",minSupportedPlan:u},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:o},"image-storage":{id:"image-storage",minSupportedPlan:i},"video-storage":{id:"video-storage",minSupportedPlan:i},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(9818),o=r(3418),i=r(4366),a=r(8638),u=r(335);let s=!1;function l(){return s||(s=!0,(0,n.registerStore)(i.L,{controls:o.controls,reducer:a.Z,selectors:u})),i.L}},8638:function(e,t,r){"use strict";var n=r(2613);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.$;return e}},335:function(e,t,r){"use strict";r.r(t),r.d(t,{getAllFeatures:function(){return o},getRecommendedPlanSlug:function(){return i}});var n=r(4703);const o=e=>e,i=(e,t)=>{const r=o(e);if(t.length)return t.reduce(((e,t)=>{const o=r[t].minSupportedPlan;return n.xT.indexOf(o)>n.xT.indexOf(e)?o:e}),r[t[0]].minSupportedPlan)}},3661:function(e,t,r){"use strict";r.d(t,{_9:function(){return o},An:function(){return i},ai:function(){return a}});var n=r(8552);const o=e=>({type:"WPCOM_REQUEST",request:e}),i=(e,t)=>({type:"FETCH_AND_PARSE",resource:e,options:t}),a={WPCOM_REQUEST:e=>{let{request:t}=e;return(0,n.ZP)(t)},FETCH_AND_PARSE:async e=>{let{resource:t,options:r}=e;const n=await window.fetch(t,r);return{ok:n.ok,body:await n.json()}},RELOAD_PROXY:()=>{(0,n.sS)()},REQUEST_ALL_BLOGS_ACCESS:()=>(0,n.Vw)(),WAIT:e=>{let{ms:t}=e;return new Promise((e=>setTimeout(e,t)))}}},3759:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});const n={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,r){"use strict";r.d(t,{ZP:function(){return i}});var n=r(1481),o=r(3759);function i(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(0,o.X)(t);if(!i||isNaN(e))return null;const{decimal:u,grouping:s,precision:l,symbol:c}={...i,...r},f=e<0?"-":"";let d=(0,n.Y4)(Math.abs(e),{decimals:l,thousandsSep:s,decPoint:u});return r.stripZeros&&(d=a(d,u)),`${f}${c}${d}`}function a(e,t){const r=new RegExp(`\\${t}0+$`);return e.replace(r,"")}},4724:function(e,t,r){"use strict";var n=r(914);t.Z=new n.Z},914:function(e,t,r){"use strict";var n=r(2699),o=r(2594),i=r(6668),a=r(8049),u=r.n(a),s=r(5079),l=r.n(s),c=r(7839),f=r.n(c),d=r(9830),p=r(3);const y=u()("i18n-calypso"),g="number_format_decimals",m="number_format_thousands_sep",h="messages",v=[function(e){return e}],b={};function _(){I.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function S(e){return Array.prototype.slice.call(e)}function A(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&_("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",S(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&_("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",S(e));let r={};for(let n=0;n<e.length;n++)"object"==typeof e[n]&&(r=e[n]);if("string"==typeof t?r.original=t:"object"==typeof r.original&&(r.plural=r.original.plural,r.count=r.original.count,r.original=r.original.single),"string"==typeof e[1]&&(r.plural=e[1]),void 0===r.original)throw new Error("Translate called without a `string` value as first argument.");return r}function E(e,t){return e.dcnpgettext(h,t.context,t.original,t.plural,t.count)}function P(e,t){for(let r=v.length-1;r>=0;r--){const n=v[r](Object.assign({},t)),o=n.context?n.context+""+n.original:n.original;if(e.state.locale[o])return E(e.state.tannin,n)}return null}function I(){if(!(this instanceof I))return new I;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:f()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new n.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}I.throwErrors=!1,I.prototype.on=function(){this.stateObserver.on(...arguments)},I.prototype.off=function(){this.stateObserver.off(...arguments)},I.prototype.emit=function(){this.stateObserver.emit(...arguments)},I.prototype.numberFormat=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r="number"==typeof t?t:t.decimals||0,n=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(e,r,n,o)},I.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},I.prototype.setLocale=function(e){var t,r,n;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],r=function(e,t){const r=!1===t?"":String(t);if(void 0!==b[r+e])return b[r+e];const n=l()().update(e).digest("hex");return b[r+e]=t?n.substr(0,t):n},n=function(e){return function(t){return t.context?(t.original=r(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=r(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)v.push(n(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));v.push(n(e))}else{const r=Number(t.substr(5,e)),o=Number(t.substr(6+e));for(let e=r;e<=o;e++)v.push(n(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(r=this.state.locale[""])||void 0===r||null===(n=r.momentjs_locale)||void 0===n?void 0:n.textDirection),this.state.tannin=new d.Z({[h]:this.state.locale}),this.state.numberFormatSettings.decimal_point=E(this.state.tannin,A([g])),this.state.numberFormatSettings.thousands_sep=E(this.state.tannin,A([m])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===m&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},I.prototype.getLocale=function(){return this.state.locale},I.prototype.getLocaleSlug=function(){return this.state.localeSlug},I.prototype.getLocaleVariant=function(){return this.state.localeVariant},I.prototype.isRtl=function(){return"rtl"===this.state.textDirection},I.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},I.prototype.hasTranslation=function(){return!!P(this,A(arguments))},I.prototype.translate=function(){const e=A(arguments);let t=P(this,e);if(t||(t=E(this.state.tannin,e)),e.args){const n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=(0,i.Z)(...n)}catch(r){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof r?window.console[e](r):window.console[e]("i18n sprintf error:",n)}}return e.components&&(t=(0,o.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(r){t=r(t,e)})),t},I.prototype.reRenderTranslations=function(){y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},I.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},I.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=I},1481:function(e,t,r){"use strict";r.d(t,{Y4:function(){return o},Iu:function(){return i}});var n=r(4724);const o=n.Z.numberFormat.bind(n.Z),i=n.Z.translate.bind(n.Z);n.Z.configure.bind(n.Z),n.Z.setLocale.bind(n.Z),n.Z.getLocale.bind(n.Z),n.Z.getLocaleSlug.bind(n.Z),n.Z.getLocaleVariant.bind(n.Z),n.Z.isRtl.bind(n.Z),n.Z.addTranslations.bind(n.Z),n.Z.reRenderTranslations.bind(n.Z),n.Z.registerComponentUpdateHook.bind(n.Z),n.Z.registerTranslateHook.bind(n.Z),n.Z.state,n.Z.stateObserver,n.Z.on.bind(n.Z),n.Z.off.bind(n.Z),n.Z.emit.bind(n.Z)},3:function(e,t,r){"use strict";function n(e,t,r,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===n?",":n,u=void 0===r?".":r;let s="";return s=(i?
2
  /*
3
  * Exposes number format capability
4
  *
1
+ !function(){var e={7266:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(5854),o=r(730);function i(e){var t=(0,n.Z)(e);return function(e){return(0,o.Z)(t,e)}}},730:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};function o(e,t){var r,o,i,a,u,s,l=[];for(r=0;r<e.length;r++){if(u=e[r],a=n[u]){for(o=a.length,i=Array(o);o--;)i[o]=l.pop();try{s=a.apply(null,i)}catch(c){return c}}else s=t.hasOwnProperty(u)?t[u]:+u;l.push(s)}return l[0]}},1184:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7266);function o(e){var t=(0,n.Z)(e);return function(e){return+t({n:e})}}},5854:function(e,t,r){"use strict";var n,o,i,a;function u(e){for(var t,r,u,s,l=[],c=[];t=e.match(a);){for(r=t[0],(u=e.substr(0,t.index).trim())&&l.push(u);s=c.pop();){if(i[r]){if(i[r][0]===s){r=i[r][1]||r;break}}else if(o.indexOf(s)>=0||n[s]<n[r]){c.push(s);break}l.push(s)}i[r]||c.push(r),e=e.substr(t.index+r.length)}return(e=e.trim())&&l.push(e),l.concat(c.reverse())}r.d(t,{Z:function(){return u}}),n={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},a=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},6668:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function o(e,t){var r;if(!Array.isArray(t))for(t=new Array(arguments.length-1),r=1;r<arguments.length;r++)t[r-1]=arguments[r];return r=1,e.replace(n,(function(){var e,n,o,i,a;return e=arguments[3],n=arguments[5],"%"===(i=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[r-1],r++),void 0!==n?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(n)&&(a=t[0][n]):(void 0===e&&(e=r),r++,a=t[e-1]),"f"===i?a=parseFloat(a)||0:"d"===i&&(a=parseInt(a)||0),void 0!==o&&("f"===i?a=a.toFixed(o):"s"===i&&(a=a.substr(0,o))),null!=a?a:"")}))}},2680:function(e,t,r){"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},9429:function(e,t,r){"use strict";var n=r(4090),o=r(7286),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(d){l=null}e.exports=function(e){var t=u(n,a,arguments);if(s&&l){var r=s(t,"length");r.configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var f=function(){return u(n,i,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f},2699:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(r,n){function o(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,o),n(r)},e.once("error",i)),e.once(t,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var o,i,a,l;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,l=c,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=c.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):y(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var l=s.length,c=y(s,l);for(r=0;r<l;++r)n(c[r],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5695:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(r=t.cmp,function(e){return function(t,n){var o={key:t,value:e[t]},i={key:n,value:e[n]};return r(o,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(t)-1,s=Object.keys(t).sort(o&&o(t));for(a="",r=0;r<s.length;r++){var l=s[r],c=e(t[l]);c&&(a&&(a+=","),a+=JSON.stringify(l)+":"+c)}return i.splice(u,1),"{"+a+"}"}}(e)}},7795:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(t+i);for(var a,u=r.call(arguments,1),s=function(){if(this instanceof a){var t=i.apply(this,u.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,u.concat(r.call(arguments)))},l=Math.max(0,i.length-u.length),c=[],f=0;f<l;f++)c.push("$"+f);if(a=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),i.prototype){var d=function(){};d.prototype=i.prototype,a.prototype=new d,d.prototype=null}return a}},4090:function(e,t,r){"use strict";var n=r(7795);e.exports=Function.prototype.bind||n},7286:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,u=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(O){s=null}var l=function(){throw new a},c=s?function(){try{return l}catch(e){try{return s(arguments,"callee").get}catch(t){return l}}}():l,f=r(2636)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},y="undefined"==typeof Uint8Array?n:d(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},m=function e(t){var r;if("%AsyncFunction%"===t)r=u("async function () {}");else if("%GeneratorFunction%"===t)r=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=u("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=d(o.prototype))}return g[t]=r,r},h={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(4090),b=r(3198),_=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),A=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,M=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return A(e,P,(function(e,t,r,o){n[n.length]=r?A(o,I,"$1"):t||e})),n},C=function(e,t){var r,n=e;if(b(h,n)&&(n="%"+(r=h[n])[0]+"%"),b(g,n)){var i=g[n];if(i===p&&(i=m(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=M(e),n=r.length>0?r[0]:"",i=C("%"+n+"%",t),u=i.name,l=i.value,c=!1,f=i.alias;f&&(n=f[0],S(r,_([0,1],f)));for(var d=1,p=!0;d<r.length;d+=1){var y=r[d],m=E(y,0,1),h=E(y,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new o("property names with quotes must have matching quotes");if("constructor"!==y&&p||(c=!0),b(g,u="%"+(n+="."+y)+"%"))l=g[u];else if(null!=l){if(!(y in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=r.length){var v=s(l,y);l=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[y]}else p=b(l,y),l=l[y];p&&!c&&(g[u]=l)}}return l}},2636:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},6679:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3198:function(e,t,r){"use strict";var n=r(4090);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},4495:function(e,t,r){"use strict";var n=r(212),o=r(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=e>>>24&255,n[o++]=e>>>16&255,n[o++]=e>>>8&255,n[o++]=255&e}else for(n[o++]=255&e,n[o++]=e>>>8&255,n[o++]=e>>>16&255,n[o++]=e>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n}},5079:function(e,t,r){"use strict";var n=r(212),o=r(4495),i=r(713),a=n.rotl32,u=n.sum32,s=n.sum32_5,l=i.ft_1,c=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,c),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],d=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var y=~~(n/20),g=s(a(o,5),l(y,i,c,d),p,r[n],f[y]);p=d,d=c,c=a(i,30),i=o,o=g}this.h[0]=u(this.h[0],o),this.h[1]=u(this.h[1],i),this.h[2]=u(this.h[2],c),this.h[3]=u(this.h[3],d),this.h[4]=u(this.h[4],p)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},713:function(e,t,r){"use strict";var n=r(212).rotr32;function o(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?a(t,r,n):2===e?i(t,r,n):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},212:function(e,t,r){"use strict";var n=r(9561),o=r(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=u(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e[n];"little"===t&&(o=a(o)),r+=s(o.toString(16))}return r},t.zero2=u,t.zero8=s,t.join32=function(e,t,r,o){var i=r-t;n(i%4==0);for(var a=new Array(i/4),u=0,s=t;u<a.length;u++,s+=4){var l;l="big"===o?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],a[u]=l>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,o=0;n<e.length;n++,o+=4){var i=e[n];"big"===t?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,o){return e+t+r+n+o>>>0},t.sum64=function(e,t,r,n){var o=e[t],i=n+e[t+1]>>>0,a=(i<n?1:0)+r+o;e[t]=a>>>0,e[t+1]=i},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,o,i,a,u){var s=0,l=t;return s+=(l=l+n>>>0)<t?1:0,s+=(l=l+i>>>0)<i?1:0,e+r+o+a+(s+=(l=l+u>>>0)<u?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,o,i,a,u){return t+n+i+u>>>0},t.sum64_5_hi=function(e,t,r,n,o,i,a,u,s,l){var c=0,f=t;return c+=(f=f+n>>>0)<t?1:0,c+=(f=f+i>>>0)<i?1:0,c+=(f=f+u>>>0)<u?1:0,e+r+o+a+s+(c+=(f=f+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,o,i,a,u,s,l){return t+n+i+u+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},7839:function(e,t,r){var n=r(2699),o=r(1285);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),n.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,o(i,n.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,r){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=r,this.cache[this.tail].prev=null):(this.cache[t].next=r,this.cache[r].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var r;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((r=this.cache[e]).value=t,this.maxAge&&(r.modified=Date.now()),e===this.head)return t;this._unlink(e,r.prev,r.next)}else r={value:t,modified:0,next:null,prev:null},this.maxAge&&(r.modified=Date.now()),this.cache[e]=r,this.length===this.max&&this.evict();return this.length++,r.next=null,r.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,r=60*t,n=60*r,o=24*n,i=7*o,a=365.25*o;function u(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,s){s=s||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!u)return;var s=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"weeks":case"week":case"w":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&isFinite(e))return s.long?function(e){var i=Math.abs(e);if(i>=o)return u(e,i,o,"day");if(i>=n)return u(e,i,n,"hour");if(i>=r)return u(e,i,r,"minute");if(i>=t)return u(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=o)return Math.round(e/o)+"d";if(i>=n)return Math.round(e/n)+"h";if(i>=r)return Math.round(e/r)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9500:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&s&&"function"==typeof s.get?s.get:null,c=u&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,h=String.prototype.match,v="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A=Object.prototype.propertyIsEnumerable,E=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),P=r(3260).custom,I=P&&$(P)?P:null,M="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function O(e){return String(e).replace(/"/g,"&quot;")}function w(e){return!("[object Array]"!==F(e)||M&&"object"==typeof e&&M in e)}function $(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,n,o){var u=r||{};if(L(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(L(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!L(u,"customInspect")||u.customInspect;if("boolean"!=typeof s&&"symbol"!==s)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(L(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return R(t,u);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===u.depth?5:u.depth;if(void 0===n&&(n=0),n>=g&&g>0&&"object"==typeof t)return w(t)?"[Array]":"[Object]";var b=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Array(e.indent+1).join(" ")}return{base:r,prev:Array(t+1).join(r)}}(u,n);if(void 0===o)o=[];else if(T(o,t)>=0)return"[Circular]";function A(t,r,i){if(r&&(o=o.slice()).push(r),i){var a={depth:u.depth};return L(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(t,a,n+1,o)}return e(t,u,n+1,o)}if("function"==typeof t){var P=function(e){if(e.name)return e.name;var t=h.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),x=B(t,A);return"[Function"+(P?": "+P:" (anonymous)")+"]"+(x.length>0?" { "+x.join(", ")+" }":"")}if($(t)){var N=S?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?N:D(N)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var k="<"+String(t.nodeName).toLowerCase(),G=t.attributes||[],H=0;H<G.length;H++)k+=" "+G[H].name+"="+C(O(G[H].value),"double",u);return k+=">",t.childNodes&&t.childNodes.length&&(k+="..."),k+="</"+String(t.nodeName).toLowerCase()+">"}if(w(t)){if(0===t.length)return"[]";var W=B(t,A);return b&&!function(e){for(var t=0;t<e.length;t++)if(T(e[t],"\n")>=0)return!1;return!0}(W)?"["+U(W,b)+"]":"[ "+W.join(", ")+" ]"}if(function(e){return!("[object Error]"!==F(e)||M&&"object"==typeof e&&M in e)}(t)){var V=B(t,A);return 0===V.length?"["+String(t)+"]":"{ ["+String(t)+"] "+V.join(", ")+" }"}if("object"==typeof t&&s){if(I&&"function"==typeof t[I])return t[I]();if("symbol"!==s&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(k){return!0}return e instanceof Map}catch(t){}return!1}(t)){var Y=[];return a.call(t,(function(e,r){Y.push(A(r,t,!0)+" => "+A(e,t))})),Z("Map",i.call(t),Y,b)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var K=[];return c.call(t,(function(e){K.push(A(e,t))})),Z("Set",l.call(t),K,b)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(k){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return j("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(k){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return j("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return j("WeakRef");if(function(e){return!("[object Number]"!==F(e)||M&&"object"==typeof e&&M in e)}(t))return D(A(Number(t)));if(function(e){if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(t){}return!1}(t))return D(A(v.call(t)));if(function(e){return!("[object Boolean]"!==F(e)||M&&"object"==typeof e&&M in e)}(t))return D(y.call(t));if(function(e){return!("[object String]"!==F(e)||M&&"object"==typeof e&&M in e)}(t))return D(A(String(t)));if(!function(e){return!("[object Date]"!==F(e)||M&&"object"==typeof e&&M in e)}(t)&&!function(e){return!("[object RegExp]"!==F(e)||M&&"object"==typeof e&&M in e)}(t)){var z=B(t,A),q=E?E(t)===Object.prototype:t instanceof Object||t.constructor===Object,J=t instanceof Object?"":"null prototype",X=!q&&M&&Object(t)===t&&M in t?F(t).slice(8,-1):J?"Object":"",Q=(q||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(X||J?"["+[].concat(X||[],J||[]).join(": ")+"] ":"");return 0===z.length?Q+"{}":b?Q+"{"+U(z,b)+"}":Q+"{ "+z.join(", ")+" }"}return String(t)};var x=Object.prototype.hasOwnProperty||function(e){return e in this};function L(e,t){return x.call(e,t)}function F(e){return g.call(e)}function T(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function R(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return R(e.slice(0,t.maxStringLength),t)+n}return C(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",t)}function N(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function D(e){return"Object("+e+")"}function j(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?U(r,n):r.join(", "))+"}"}function U(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+e.join(","+r)+"\n"+t.prev}function B(e,t){var r=w(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=L(e,o)?t(e[o],e):""}var i,a="function"==typeof b?b(e):[];if(S){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in e)L(e,s)&&(r&&String(Number(s))===s&&s<e.length||S&&i["$"+s]instanceof Symbol||(/[^\w$]/.test(s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if("function"==typeof b)for(var l=0;l<a.length;l++)A.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}},8650:function(e){var t,r=window.ProgressEvent,n=!!r;try{t=new r("loaded"),n="loaded"===t.type,t=null}catch(o){n=!1}e.exports=n?r:"function"==typeof document.createEvent?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,!1,!1),t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}:function(e,t){var r=document.createEventObject();return r.type=e,t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}},5527:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:o}},9126:function(e,t,r){"use strict";var n=r(6845),o=r(9166),i=r(5527);e.exports={formats:i,parse:o,stringify:n}},9166:function(e,t,r){"use strict";var n=r(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=u?i.slice(0,u.index):i,c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;r.depth>0&&null!==(u=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&u!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=o:a[l]=o:a={0:o}}o=a}return o}(c,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var r,l={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?y="utf-8":"utf8=%26%2310003%3B"===d[r]&&(y="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var g,m,h=d[r],v=h.indexOf("]="),b=-1===v?h.indexOf("="):v+1;-1===b?(g=t.decoder(h,a.decoder,y,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(h.slice(0,b),a.decoder,y,"key"),m=n.maybeMap(s(h.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,y,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=u(m)),h.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(l,g)?l[g]=n.combine(l[g],m):l[g]=m}return l}(e,r):e,f=r.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var y=d[p],g=l(y,c[y],r,"string"==typeof e);f=n.merge(f,g,r)}return!0===r.allowSparse?f:n.compact(f)}},6845:function(e,t,r){"use strict";var n=r(4294),o=r(2493),i=r(5527),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,d=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},y=function e(t,r,i,a,u,l,f,d,y,g,m,h,v,b,_){var S,A=t;if(_.has(t))throw new RangeError("Cyclic object value");if("function"==typeof f?A=f(r,A):A instanceof Date?A=g(A):"comma"===i&&s(A)&&(A=o.maybeMap(A,(function(e){return e instanceof Date?g(e):e}))),null===A){if(a)return l&&!v?l(r,p.encoder,b,"key",m):r;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(A))return l?[h(v?r:l(r,p.encoder,b,"key",m))+"="+h(l(A,p.encoder,b,"value",m))]:[h(r)+"="+h(String(A))];var E,P=[];if(void 0===A)return P;if("comma"===i&&s(A))E=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(f))E=f;else{var I=Object.keys(A);E=d?I.sort(d):I}for(var M=0;M<E.length;++M){var C=E[M],O="object"==typeof C&&void 0!==C.value?C.value:A[C];if(!u||null!==O){var w=s(A)?"function"==typeof i?i(r,C):r:r+(y?"."+C:"["+C+"]");_.set(t,!0);var $=n();c(P,e(O,w,i,a,u,l,f,d,y,g,m,h,v,b,$))}}return P};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=p.filter;return("function"==typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):s(l.filter)&&(r=l.filter);var f,d=[];if("object"!=typeof o||null===o)return"";f=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=u[f];r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var m=n(),h=0;h<r.length;++h){var v=r[h];l.skipNulls&&null===o[v]||c(d,y(o[v],v,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var b=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2493:function(e,t,r){"use strict";var n=r(5527),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],u=Object.keys(a),s=0;s<u.length;++s){var l=u[s],c=a[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t.push({obj:a,prop:l}),r.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===r)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",l=0;l<u.length;++l){var c=u.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===n.RFC1738&&(40===c||41===c)?s+=u.charAt(l):c<128?s+=a[c]:c<2048?s+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?s+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(l)),s+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=u(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},4294:function(e,t,r){"use strict";var n=r(7286),o=r(2680),i=r(9500),a=n("%TypeError%"),u=n("%WeakMap%",!0),s=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),g=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(u&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(s){if(t)return d(t,n)}else if(r)return function(e,t){var r=g(e,t);return r&&r.value}(r,n)},has:function(n){if(u&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(s){if(t)return y(t,n)}else if(r)return function(e,t){return!!g(e,t)}(r,n);return!1},set:function(n,o){u&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new u),c(e,n,o)):s?(t||(t=new s),p(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=g(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},9830:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(1184),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},o)this.options[r]=void 0!==t&&r in t?t[r]:o[r]}i.prototype.getPluralForm=function(e,t){var r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(o=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=(0,n.Z)(o)),a=this.pluralForms[e]=i),a(t)},i.prototype.dcnpgettext=function(e,t,r,n,o){var i,a,u;return i=void 0===o?0:this.getPluralForm(e,o),a=r,t&&(a=t+this.options.contextDelimiter+r),(u=this.data[e][a])&&u[i]?u[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)}},6274:function(e,t,r){"use strict";r(8077).z2()},5608:function(e,t,r){"use strict";r(1635).z()},3857:function(e,t,r){"use strict";r(9734).register()},561:function(e,t,r){"use strict";r(2369).z2({client_id:"",client_secret:""})},9512:function(e,t,r){"use strict";r(182).z()},3600:function(e,t,r){"use strict";r.r(t),r.d(t,{receiveCategories:function(){return n},fetchDomainSuggestions:function(){return o},receiveDomainAvailability:function(){return i},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});const n=e=>({type:"RECEIVE_CATEGORIES",categories:e}),o=()=>({type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}),i=(e,t)=>({type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}),a=(e,t)=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}),u=e=>({type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()})},584:function(e,t,r){"use strict";r.d(t,{L:function(){return n},r:function(){return o}});const n="automattic/domains/suggestions";let o;!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(o||(o={}))},8077:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(9818),o=r(3661),i=r(3600),a=r(584),u=r(3717),s=r(2269),l=r(267);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.L,{actions:i,controls:o.ai,reducer:u.Z,resolvers:s,selectors:l})),a.L}},3717:function(e,t,r){"use strict";var n=r(9818),o=r(584),i=r(4211);const a={state:o.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},u=(0,n.combineReducers)({categories:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?{...e,state:o.r.Pending,errorMessage:null,pendingSince:t.timeStamp}:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?{...e,state:o.r.Success,data:{...e.data,[(0,i.Le)(t.queryObject)]:t.suggestions},errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?{...e,state:o.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}:e},availability:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?{...e,[t.domainName]:t.availability}:e}});t.Z=u},2269:function(e,t,r){"use strict";r.r(t),r.d(t,{isAvailable:function(){return c},getCategories:function(){return f},__internalGetDomainSuggestions:function(){return d}});var n=r(1481),o=r(9126),i=r(6468),a=r.n(i),u=r(3661),s=r(3600),l=r(4211);const c=function*(e){const t=function(e){return`https://public-api.wordpress.com/rest/v1.3/domains/${encodeURIComponent(e)}/is-available?is_cart_pre_check=true`}(e);try{const{body:r}=yield(0,u.An)(t);return(0,s.receiveDomainAvailability)(e,r)}catch{return(0,s.receiveDomainAvailability)(e,{domain_name:e,mappable:"unknown",status:"unknown",supports_privacy:!1})}};function*f(){const{body:e}=yield(0,u.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");return(0,s.receiveCategories)(e)}function*d(e){if(!e.query)return(0,s.receiveDomainSuggestionsError)("Empty query");yield(0,s.fetchDomainSuggestions)();try{const t=yield(0,u._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});if(!Array.isArray(t))return(0,s.receiveDomainSuggestionsError)((0,n.Iu)("Invalid response from the server"));if(function(e,t){return a().isFQDN(t)&&!e.some((e=>e.domain_name.toLowerCase()===t))}(t,e.query)){const r={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""};t.unshift(r)}const r=t.map((e=>e.unavailable?e:{...e,...e.raw_price&&e.currency_code&&{cost:(0,l._B)(e.raw_price,e.currency_code)}}));return(0,s.receiveDomainSuggestionsSuccess)(e,r)}catch(t){return(0,s.receiveDomainSuggestionsError)(t.message||(0,n.Iu)("Error while fetching server response"))}}},267:function(e,t,r){"use strict";r.r(t),r.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return u},getDomainState:function(){return s},getDomainErrorMessage:function(){return l},isLoadingDomainSuggestions:function(){return c},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return d},getDomainAvailabilities:function(){return p}});var n=r(9818),o=r(584),i=r(4211);const a=e=>[...e.categories.filter((e=>{let{tier:t}=e;return null!==t})).sort(((e,t)=>e>t?1:-1)),...e.categories.filter((e=>{let{tier:t}=e;return null===t})).sort(((e,t)=>e.title.localeCompare(t.title)))],u=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(0,i.o0)(t,r);return(0,n.select)(o.L).__internalGetDomainSuggestions(a)},s=e=>e.domainSuggestions.state,l=e=>e.domainSuggestions.errorMessage,c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(0,i.o0)(t,r);return(0,n.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[a])},f=(e,t)=>e.domainSuggestions.data[(0,i.Le)(t)],d=(e,t)=>e.availability[t],p=e=>e.availability},4211:function(e,t,r){"use strict";r.d(t,{Le:function(){return i},_B:function(){return a},o0:function(){return u}});var n=r(1621),o=r(5695);const i=r.n(o)();function a(e,t){return(0,n.ZP)(e,t,{stripZeros:!0})}function u(e,t){return{include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front",...t,query:e.trim().toLocaleLowerCase()}}},6108:function(e,t,r){"use strict";r.r(t),r.d(t,{setSidebarFullscreen:function(){return i},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return f},setDomainSearch:function(){return d},setPlanProductId:function(){return p},unsetPlanProductId:function(){return y},updatePlan:function(){return g},openSidebar:function(){return m},closeSidebar:function(){return h},openFocusedLaunch:function(){return v},closeFocusedLaunch:function(){return b},enableAnchorFm:function(){return _},showSiteTitleStep:function(){return S},setModalDismissible:function(){return A},unsetModalDismissible:function(){return E},showModalTitle:function(){return P},hideModalTitle:function(){return I},enablePersistentSuccessView:function(){return M},disablePersistentSuccessView:function(){return C}});var n=r(9818),o=r(9149);const i=()=>({type:"SET_SIDEBAR_FULLSCREEN"}),a=()=>({type:"UNSET_SIDEBAR_FULLSCREEN"}),u=e=>({type:"SET_STEP",step:e}),s=e=>({type:"SET_SITE_TITLE",title:e}),l=e=>({type:"SET_DOMAIN",domain:e}),c=()=>({type:"UNSET_DOMAIN"}),f=()=>({type:"CONFIRM_DOMAIN_SELECTION"}),d=e=>({type:"SET_DOMAIN_SEARCH",domainSearch:e}),p=function*(e){if(!(0,n.select)(o.Fs).isPlanProductFree(e)){const t=(0,n.select)(o.Fs).getPlanProductById(e),r=(null==t?void 0:t.billingPeriod)??"ANNUALLY";yield(e=>({type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}))(r)}return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},y=()=>({type:"UNSET_PLAN_PRODUCT_ID"});function g(e){return p(e)}const m=()=>({type:"OPEN_SIDEBAR"}),h=()=>({type:"CLOSE_SIDEBAR"}),v=()=>({type:"OPEN_FOCUSED_LAUNCH"}),b=()=>({type:"CLOSE_FOCUSED_LAUNCH"}),_=()=>({type:"ENABLE_ANCHOR_FM"}),S=()=>({type:"SHOW_SITE_TITLE_STEP"}),A=()=>({type:"SET_MODAL_DISMISSIBLE"}),E=()=>({type:"UNSET_MODAL_DISMISSIBLE"}),P=()=>({type:"SHOW_MODAL_TITLE"}),I=()=>({type:"HIDE_MODAL_TITLE"}),M=()=>({type:"ENABLE_SUCCESS_VIEW"}),C=()=>({type:"DISABLE_SUCCESS_VIEW"})},9149:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Fs:function(){return o}});const n="automattic/launch",o="automattic/onboard/plans"},3610:function(e,t,r){"use strict";r.d(t,{y:function(){return n},M:function(){return o}});const n={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},o=[n.Name,n.Domain,n.Plan,n.Final]},1635:function(e,t,r){"use strict";r.d(t,{z:function(){return f}});var n=r(9818),o=r(3418),i=r(6108),a=r(9149),u=r(594),s=r(4648),l=r(7092);(0,n.use)(n.plugins.persistence,u.Z);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.Ls,{actions:i,controls:o.controls,reducer:s.Z,selectors:l,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,r){"use strict";var n=r(492);t.Z=(0,n.Z)("WP_LAUNCH")},4648:function(e,t,r){"use strict";var n=r(9818),o=r(3610);const i=(0,n.combineReducers)({step:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.y.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:(e,t)=>"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0,confirmedDomainSelection:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planBillingPeriod:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e},planProductId:(e,t)=>"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0,isSidebarOpen:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isAnchorFm:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===t.type||e},isFocusedLaunchOpen:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e}});t.Z=i},7092:function(e,t,r){"use strict";r.r(t),r.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return f},getLastPlanBillingPeriod:function(){return d},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return y},isStepCompleted:function(){return g},isFlowCompleted:function(){return m},isFlowStarted:function(){return h},getFirstIncompleteStep:function(){return v},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var n=r(9818),o=r(9149),i=r(3610);const a=()=>i.M,u=()=>i.y,s=e=>e,l=e=>!!e.domain&&!e.domain.is_free,c=e=>e.domain,f=e=>e.planProductId,d=e=>e.planBillingPeriod,p=e=>void 0!==e.planProductId&&!(0,n.select)(o.Fs).isPlanProductFree(e.planProductId),y=e=>!!c(e)||e.confirmedDomainSelection,g=(e,t)=>{if(t===i.y.Plan)return!!f(e);if(t===i.y.Name){const e=(0,n.select)("core").getEntityRecord("root","site",void 0);return!(null==e||!e.title)}return t===i.y.Domain&&(0,n.select)(o.Ls).hasSelectedDomainOrSubdomain()},m=e=>i.M.slice(0,i.M.length-1).every((t=>g(e,t))),h=e=>i.M.some((t=>g(e,t))),v=e=>i.M.find((t=>!g(e,t))),b=e=>null==e?void 0:e.siteTitle,_=e=>e.step,S=e=>e.domainSearch},492:function(e,t,r){"use strict";function n(e){const t=e,r=e+"_TS",n={},o={getItem:e=>n.hasOwnProperty(e)?n[e]:null,setItem(e,t){n[e]=String(t)},removeItem(e){delete n[e]}},i=(()=>{try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}})()?window.localStorage:o;return{storageKey:t,storage:{getItem(e){const n=i.getItem(r);return n&&(e=>{const t=Number(e);return Boolean(t)&&t+6048e5>Date.now()})(n)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(r),null)},setItem(e,t){i.setItem(r,JSON.stringify(Date.now())),i.setItem(e,t)}}}}r.d(t,{Z:function(){return n}})},9068:function(e,t,r){"use strict";r.r(t),r.d(t,{setFeatures:function(){return n},setFeaturesByType:function(){return o},setPlans:function(){return i},setPlanProducts:function(){return a},resetPlan:function(){return u}});const n=(e,t)=>({type:"SET_FEATURES",features:e,locale:t}),o=(e,t)=>({type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}),i=(e,t)=>({type:"SET_PLANS",plans:e,locale:t}),a=e=>({type:"SET_PLAN_PRODUCTS",products:e}),u=()=>({type:"RESET_PLAN"})},4703:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Ho:function(){return o},TO:function(){return i},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},B6:function(){return c},xT:function(){return f},AX:function(){return d},bS:function(){return p},UB:function(){return y},BV:function(){return g},nN:function(){return m}});const n="automattic/onboard/plans",o=1,i="free",a="personal",u="premium",s="business",l="ecommerce",c=[i,a,u,s,l],f=c,d=u,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],y=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan",...p,...y],m=["custom-domain","support-live","priority-support"]},9734:function(e,t,r){"use strict";r.r(t),r.d(t,{plansSlugs:function(){return a.B6},plansProductSlugs:function(){return a.BV},TIMELESS_PLAN_FREE:function(){return a.TO},TIMELESS_PLAN_PERSONAL:function(){return a.YS},TIMELESS_PLAN_PREMIUM:function(){return a.Gz},TIMELESS_PLAN_BUSINESS:function(){return a.hx},TIMELESS_PLAN_ECOMMERCE:function(){return a.iL},FREE_PLAN_PRODUCT_ID:function(){return a.Ho},register:function(){return f}});var n=r(9818),o=r(3661),i=r(9068),a=r(4703),u=r(9438),s=r(5261),l=r(7738);let c=!1;function f(){return c||(c=!0,(0,n.registerStore)(a.Ls,{resolvers:s,actions:i,controls:o.ai,reducer:u.ZP,selectors:l})),a.Ls}},9438:function(e,t,r){"use strict";var n=r(9818);const o=(0,n.combineReducers)({features:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_FEATURES"===t.type?{...e,[t.locale]:t.features}:e},featuresByType:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_FEATURES_BY_TYPE"===t.type?{...e,[t.locale]:t.featuresByType}:e},planProducts:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_PRODUCTS"===t.type?t.products:e},plans:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_PLANS"===t.type?{...e,[t.locale]:t.plans}:e}});t.ZP=o},5261:function(e,t,r){"use strict";r.r(t),r.d(t,{getSupportedPlans:function(){return y}});var n=r(1621),o=r(9126),i=r(3661),a=r(9068),u=r(4703);function s(e){return(0,n.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(e){return(0,n.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return e.reduce(((e,t)=>(e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:u.nN.indexOf(t.id)>-1},e)),{})}function f(e,t){const r=Object.keys(t).find((r=>t[r].name===e));return!!r&&t[r].requiresAnnuallyBilledPlan}function d(e,t){const r=e.highlighted_features.map((e=>({name:e,requiresAnnuallyBilledPlan:f(e,t)})));return r.sort(((e,t)=>Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan))),r}function p(e,t){const r=u.BV.reduce(((r,o)=>{const i=e.find((e=>e.product_slug===o));if(!i)return r;const a=t.find((e=>e.productIds.indexOf(i.product_id)>-1));var u;return r.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?l(i):(u=i,(0,n.ZP)(u.raw_price/12,u.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?s(i):l(i)}),r}),[]);return function(e){for(let t=0;t<u.bS.length;t++){const r=e.find((e=>e.storeSlug===u.bS[t])),n=e.find((e=>e.storeSlug===u.UB[t]));if(r&&n){const e=12*n.rawPrice,t=r.rawPrice,o=Math.round(100*(1-t/e));r.annualDiscount=o,n.annualDiscount=o}}}(r),r}function*y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";const t=yield(0,i._9)({path:"/plans",query:(0,o.stringify)({locale:e}),apiVersion:"1.5"}),{body:r}=yield(0,i.An)(`https://public-api.wordpress.com/wpcom/v2/plans/details?locale=${encodeURIComponent(e)}`,{mode:"cors",credentials:"omit"}),n=c(r.features),s=r.plans.map((e=>{var t;const r=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:d(e,n),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce(((e,t)=>(e[t]=!0,e)),{}),isFree:r===u.TO,isPopular:r===u.Gz,periodAgnosticSlug:r,productIds:e.products.map((e=>{let{plan_id:t}=e;return t}))}})),l=p(t,s);yield(0,a.setPlans)(s,e),yield(0,a.setPlanProducts)(l),yield(0,a.setFeatures)(n,e),yield(0,a.setFeaturesByType)(r.features_by_type,e)}},7738:function(e,t,r){"use strict";r.r(t),r.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return f},getDefaultPaidPlan:function(){return d},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return y},getPlansProducts:function(){return g},getPrices:function(){return m},getPlanByPath:function(){return h},getPlanProduct:function(){return v},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var n=r(9818),o=r(7180),i=r.n(o),a=r(4703);const u=(e,t)=>e.features[t]??{},s=(e,t)=>e.featuresByType[t]??[],l=(e,t,r)=>{if(t)return(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.productIds.indexOf(t)>-1))},c=(e,t)=>{if(t)return(0,n.select)(a.Ls).getPlansProducts().find((e=>e.productId===t))},f=(e,t,r)=>{if(t)return(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.periodAgnosticSlug===t))},d=(e,t)=>(0,n.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.AX)),p=(e,t)=>(0,n.select)(a.Ls).getSupportedPlans(t).find((e=>e.periodAgnosticSlug===a.TO)),y=(e,t)=>e.plans[t]??[],g=e=>e.planProducts,m=(e,t)=>(i()("getPrices",{alternative:"getPlanProduct().price"}),(0,n.select)(a.Ls).getPlansProducts().reduce(((e,t)=>(e[t.storeSlug]=t.price,e)),{})),h=(e,t,r)=>{if(!t)return;const o=(0,n.select)(a.Ls).getPlansProducts().find((e=>e.pathSlug===t));return o?(0,n.select)(a.Ls).getSupportedPlans(r).find((e=>e.periodAgnosticSlug===o.periodAgnosticSlug)):void 0},v=(e,t,r)=>{if(t&&r)return(0,n.select)(a.Ls).getPlansProducts().find((e=>{const n=e.periodAgnosticSlug===t,o=t===a.TO||e.billingPeriod===r;return n&&o}))},b=(e,t)=>t===a.iL,_=(e,t)=>t===a.TO,S=(e,t)=>t===a.Ho},8459:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(3661),o=r(9639);function i(e){const t=()=>({type:"FETCH_NEW_SITE"}),r=e=>({type:"RECEIVE_NEW_SITE",response:e}),i=e=>({type:"RECEIVE_NEW_SITE_FAILED",error:e});const a=(e,t)=>({type:"RECEIVE_SITE_TITLE",siteId:e,name:t}),u=(e,t)=>({type:"RECEIVE_SITE_TAGLINE",siteId:e,tagline:t}),s=e=>({type:"LAUNCH_SITE_START",siteId:e}),l=e=>({type:"LAUNCH_SITE_SUCCESS",siteId:e}),c=(e,t)=>({type:"LAUNCH_SITE_FAILURE",siteId:e,error:t});function*f(e,t){try{yield(0,n._9)({path:`/sites/${encodeURIComponent(e)}/settings`,apiVersion:"1.4",body:t,method:"POST"}),"blogname"in t&&(yield a(e,t.blogname)),"blogdescription"in t&&(yield u(e,t.blogdescription))}catch(r){}}return{receiveSiteDomains:(e,t)=>({type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}),saveSiteTitle:function*(e,t){yield f(e,{blogname:t})},saveSiteSettings:f,receiveSiteTitle:a,fetchNewSite:t,fetchSite:()=>({type:"FETCH_SITE"}),receiveNewSite:r,receiveNewSiteFailed:i,resetNewSiteFailed:()=>({type:"RESET_RECEIVE_NEW_SITE_FAILED"}),setDesignOnSite:function*(e,t){yield(0,n._9)({path:`/sites/${e}/themes/mine`,apiVersion:"1.1",body:{theme:t.theme,dont_change_homepage:!0},method:"POST"}),yield(0,n._9)({path:`/sites/${encodeURIComponent(e)}/theme-setup`,apiNamespace:"wpcom/v2",body:{trim_content:!0},method:"POST"});const r=yield(0,n._9)({path:`/sites/${e}/block-editor`,apiNamespace:"wpcom/v2",method:"GET"});return(null==r?void 0:r.is_fse_active)??!1},createSite:function*(t){yield{type:"FETCH_NEW_SITE"};try{const{authToken:o,...i}=t,a={...{client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},...i,validate:!1},u=yield(0,n._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:o});return yield r(u),!0}catch(o){return yield i(o),!1}},receiveSite:(e,t)=>({type:"RECEIVE_SITE",siteId:e,response:t}),receiveSiteFailed:(e,t)=>({type:"RECEIVE_SITE_FAILED",siteId:e,response:t}),receiveSiteTagline:u,saveSiteTagline:function*(e,t){yield f(e,{blogdescription:t})},reset:()=>({type:"RESET_SITE_STORE"}),launchSite:function*(e){yield s(e);try{yield(0,n._9)({path:`/sites/${e}/launch`,apiVersion:"1.1",method:"post"}),yield l(e)}catch(t){yield c(e,o.Hc.INTERNAL)}},launchSiteStart:s,launchSiteSuccess:l,launchSiteFailure:c,getCart:function*(e){return yield(0,n._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"})},setCart:function*(e,t){return yield(0,n._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t})}}}},2005:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n="automattic/site"},2369:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(9818),o=r(3661),i=r(8459),a=r(2005),u=r(2701),s=r(7862),l=r(4309);let c=!1;function f(e){return c||(c=!0,(0,n.registerStore)(a.L,{actions:(0,i.d)(e),controls:o.ai,reducer:u.ZP,resolvers:s,selectors:l})),a.L}},2701:function(e,t,r){"use strict";var n=r(9818),o=r(9639);const i=(0,n.combineReducers)({data:(e,t)=>{if("RECEIVE_NEW_SITE"===t.type){const{response:e}=t;return e.blog_details}if("RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type)return e},error:(e,t)=>{switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),a=(0,n.combineReducers)({isFetchingSiteDetails:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:i,sites:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return t.response?{...e,[t.response.ID]:t.response}:e;if("RECEIVE_SITE_FAILED"===t.type){const{[t.siteId]:r,...n}=e;return{...n}}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?{...e,[t.siteId]:{...e[t.siteId],name:t.name}}:"RECEIVE_SITE_TAGLINE"===t.type?{...e,[t.siteId]:{...e[t.siteId],description:t.tagline??""}}:e},launchStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?{...e,[t.siteId]:{status:o.uS.IN_PROGRESS,errorCode:void 0}}:"LAUNCH_SITE_SUCCESS"===t.type?{...e,[t.siteId]:{status:o.uS.SUCCESS,errorCode:void 0}}:"LAUNCH_SITE_FAILURE"===t.type?{...e,[t.siteId]:{status:o.uS.FAILURE,errorCode:t.error}}:e},sitesDomains:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?{...e,[t.siteId]:t.domains}:e}});t.ZP=a},7862:function(e,t,r){"use strict";r.r(t),r.d(t,{getSite:function(){return a},getSiteDomains:function(){return u}});var n=r(9818),o=r(3661),i=r(2005);function*a(e){yield(0,n.dispatch)(i.L).fetchSite();try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});yield(0,n.dispatch)(i.L).receiveSite(e,t)}catch(t){yield(0,n.dispatch)(i.L).receiveSiteFailed(e,void 0)}}function*u(e){try{const t=yield(0,o._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});yield(0,n.dispatch)(i.L).receiveSiteDomains(e,null==t?void 0:t.domains)}catch(t){}}},4309:function(e,t,r){"use strict";r.r(t),r.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return f},getSite:function(){return d},getSiteIdBySlug:function(){return p},getSiteTitle:function(){return y},isSiteLaunched:function(){return g},isSiteLaunching:function(){return m},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return b},hasActiveSiteFeature:function(){return _}});var n=r(9818),o=r(2005),i=r(9639);const a=e=>e,u=e=>e.newSite.data,s=e=>e.newSite.error,l=e=>e.newSite.isFetching,c=e=>e.isFetchingSiteDetails,f=e=>!!e.newSite.data,d=(e,t)=>e.sites[t]||Object.values(e.sites).find((e=>e&&new URL(e.URL).host===t)),p=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSite(t))||void 0===r?void 0:r.ID},y=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSite(t))||void 0===r?void 0:r.name},g=(e,t)=>{var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.SUCCESS},m=(e,t)=>{var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.IN_PROGRESS},h=(e,t)=>e.sitesDomains[t],v=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((e=>e.primary_domain))},b=(e,t)=>{var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((e=>e.is_subdomain))},_=(e,t,r)=>{var i,a;return Boolean(t&&(null===(i=(0,n.select)(o.L).getSite(t))||void 0===i||null===(a=i.plan)||void 0===a?void 0:a.features.active.includes(r)))}},9639:function(e,t,r){"use strict";let n,o,i;r.d(t,{Hc:function(){return o},uS:function(){return i}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(n||(n={})),function(e){e.INTERNAL="internal"}(o||(o={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(i||(i={}))},4366:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n="automattic/wpcom-features"},2613:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(9734);const{TIMELESS_PLAN_PERSONAL:o,TIMELESS_PLAN_PREMIUM:i,TIMELESS_PLAN_BUSINESS:a,TIMELESS_PLAN_ECOMMERCE:u}=n,s={domain:{id:"domain",minSupportedPlan:o},store:{id:"store",minSupportedPlan:u},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:o},"image-storage":{id:"image-storage",minSupportedPlan:i},"video-storage":{id:"video-storage",minSupportedPlan:i},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(9818),o=r(3418),i=r(4366),a=r(8638),u=r(335);let s=!1;function l(){return s||(s=!0,(0,n.registerStore)(i.L,{controls:o.controls,reducer:a.Z,selectors:u})),i.L}},8638:function(e,t,r){"use strict";var n=r(2613);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.$;return e}},335:function(e,t,r){"use strict";r.r(t),r.d(t,{getAllFeatures:function(){return o},getRecommendedPlanSlug:function(){return i}});var n=r(4703);const o=e=>e,i=(e,t)=>{const r=o(e);if(t.length)return t.reduce(((e,t)=>{const o=r[t].minSupportedPlan;return n.xT.indexOf(o)>n.xT.indexOf(e)?o:e}),r[t[0]].minSupportedPlan)}},3661:function(e,t,r){"use strict";r.d(t,{_9:function(){return o},An:function(){return i},ai:function(){return a}});var n=r(8552);const o=e=>({type:"WPCOM_REQUEST",request:e}),i=(e,t)=>({type:"FETCH_AND_PARSE",resource:e,options:t}),a={WPCOM_REQUEST:e=>{let{request:t}=e;return(0,n.ZP)(t)},FETCH_AND_PARSE:async e=>{let{resource:t,options:r}=e;const n=await window.fetch(t,r);return{ok:n.ok,body:await n.json()}},RELOAD_PROXY:()=>{(0,n.sS)()},REQUEST_ALL_BLOGS_ACCESS:()=>(0,n.Vw)(),WAIT:e=>{let{ms:t}=e;return new Promise((e=>setTimeout(e,t)))}}},3759:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});const n={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,r){"use strict";r.d(t,{ZP:function(){return i}});var n=r(1481),o=r(3759);function i(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(0,o.X)(t);if(!i||isNaN(e))return null;const{decimal:u,grouping:s,precision:l,symbol:c}={...i,...r},f=e<0?"-":"";let d=(0,n.Y4)(Math.abs(e),{decimals:l,thousandsSep:s,decPoint:u});return r.stripZeros&&(d=a(d,u)),`${f}${c}${d}`}function a(e,t){const r=new RegExp(`\\${t}0+$`);return e.replace(r,"")}},4724:function(e,t,r){"use strict";var n=r(914);t.Z=new n.Z},914:function(e,t,r){"use strict";var n=r(2699),o=r(2594),i=r(6668),a=r(8049),u=r.n(a),s=r(5079),l=r.n(s),c=r(7839),f=r.n(c),d=r(9830),p=r(3);const y=u()("i18n-calypso"),g="number_format_decimals",m="number_format_thousands_sep",h="messages",v=[function(e){return e}],b={};function _(){I.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function S(e){return Array.prototype.slice.call(e)}function A(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&_("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",S(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&_("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",S(e));let r={};for(let n=0;n<e.length;n++)"object"==typeof e[n]&&(r=e[n]);if("string"==typeof t?r.original=t:"object"==typeof r.original&&(r.plural=r.original.plural,r.count=r.original.count,r.original=r.original.single),"string"==typeof e[1]&&(r.plural=e[1]),void 0===r.original)throw new Error("Translate called without a `string` value as first argument.");return r}function E(e,t){return e.dcnpgettext(h,t.context,t.original,t.plural,t.count)}function P(e,t){for(let r=v.length-1;r>=0;r--){const n=v[r](Object.assign({},t)),o=n.context?n.context+""+n.original:n.original;if(e.state.locale[o])return E(e.state.tannin,n)}return null}function I(){if(!(this instanceof I))return new I;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:f()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new n.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}I.throwErrors=!1,I.prototype.on=function(){this.stateObserver.on(...arguments)},I.prototype.off=function(){this.stateObserver.off(...arguments)},I.prototype.emit=function(){this.stateObserver.emit(...arguments)},I.prototype.numberFormat=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r="number"==typeof t?t:t.decimals||0,n=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,p.Z)(e,r,n,o)},I.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},I.prototype.setLocale=function(e){var t,r,n;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],r=function(e,t){const r=!1===t?"":String(t);if(void 0!==b[r+e])return b[r+e];const n=l()().update(e).digest("hex");return b[r+e]=t?n.substr(0,t):n},n=function(e){return function(t){return t.context?(t.original=r(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=r(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)v.push(n(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));v.push(n(e))}else{const r=Number(t.substr(5,e)),o=Number(t.substr(6+e));for(let e=r;e<=o;e++)v.push(n(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(r=this.state.locale[""])||void 0===r||null===(n=r.momentjs_locale)||void 0===n?void 0:n.textDirection),this.state.tannin=new d.Z({[h]:this.state.locale}),this.state.numberFormatSettings.decimal_point=E(this.state.tannin,A([g])),this.state.numberFormatSettings.thousands_sep=E(this.state.tannin,A([m])),this.state.numberFormatSettings.decimal_point===g&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===m&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},I.prototype.getLocale=function(){return this.state.locale},I.prototype.getLocaleSlug=function(){return this.state.localeSlug},I.prototype.getLocaleVariant=function(){return this.state.localeVariant},I.prototype.isRtl=function(){return"rtl"===this.state.textDirection},I.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},I.prototype.hasTranslation=function(){return!!P(this,A(arguments))},I.prototype.translate=function(){const e=A(arguments);let t=P(this,e);if(t||(t=E(this.state.tannin,e)),e.args){const n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=(0,i.Z)(...n)}catch(r){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof r?window.console[e](r):window.console[e]("i18n sprintf error:",n)}}return e.components&&(t=(0,o.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(r){t=r(t,e)})),t},I.prototype.reRenderTranslations=function(){y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},I.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},I.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=I},1481:function(e,t,r){"use strict";r.d(t,{Y4:function(){return o},Iu:function(){return i}});var n=r(4724);const o=n.Z.numberFormat.bind(n.Z),i=n.Z.translate.bind(n.Z);n.Z.configure.bind(n.Z),n.Z.setLocale.bind(n.Z),n.Z.getLocale.bind(n.Z),n.Z.getLocaleSlug.bind(n.Z),n.Z.getLocaleVariant.bind(n.Z),n.Z.isRtl.bind(n.Z),n.Z.addTranslations.bind(n.Z),n.Z.reRenderTranslations.bind(n.Z),n.Z.registerComponentUpdateHook.bind(n.Z),n.Z.registerTranslateHook.bind(n.Z),n.Z.state,n.Z.stateObserver,n.Z.on.bind(n.Z),n.Z.off.bind(n.Z),n.Z.emit.bind(n.Z)},3:function(e,t,r){"use strict";function n(e,t,r,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===n?",":n,u=void 0===r?".":r;let s="";return s=(i?
2
  /*
3
  * Exposes number format capability
4
  *
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.30395
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.30395' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
@@ -333,6 +333,18 @@ function load_tags_education() {
333
  }
334
  add_action( 'plugins_loaded', __NAMESPACE__ . '\load_tags_education' );
335
 
 
 
 
 
 
 
 
 
 
 
 
 
336
  /**
337
  * Load paragraph block
338
  */
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.30625
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.30625' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
333
  }
334
  add_action( 'plugins_loaded', __NAMESPACE__ . '\load_tags_education' );
335
 
336
+ /**
337
+ * Help center
338
+ */
339
+ function load_help_center() {
340
+ /* phpcs:ignore WordPress.Security.NonceVerification */
341
+ if ( ! isset( $_GET['enable-help-center'] ) ) {
342
+ return;
343
+ }
344
+ require_once __DIR__ . '/help-center/class-help-center.php';
345
+ }
346
+ add_action( 'plugins_loaded', __NAMESPACE__ . '\load_help_center' );
347
+
348
  /**
349
  * Load paragraph block
350
  */
help-center/class-help-center.php ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Help center
4
+ *
5
+ * @package A8C\FSE
6
+ */
7
+
8
+ namespace A8C\FSE;
9
+
10
+ /**
11
+ * Class Help_Center
12
+ */
13
+ class Help_Center {
14
+ /**
15
+ * Class instance.
16
+ *
17
+ * @var Help_Center
18
+ */
19
+ private static $instance = null;
20
+
21
+ /**
22
+ * Help_Center constructor.
23
+ */
24
+ public function __construct() {
25
+ add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_script' ), 100 );
26
+ }
27
+
28
+ /**
29
+ * Creates instance.
30
+ *
31
+ * @return \A8C\FSE\Help_Center
32
+ */
33
+ public static function init() {
34
+ if ( is_null( self::$instance ) ) {
35
+ self::$instance = new self();
36
+ }
37
+ return self::$instance;
38
+ }
39
+
40
+ /**
41
+ * Enqueue block editor assets.
42
+ */
43
+ public function enqueue_script() {
44
+ $asset_file = include plugin_dir_path( __FILE__ ) . 'dist/help-center.asset.php';
45
+ $script_dependencies = $asset_file['dependencies'];
46
+ $version = $asset_file['version'];
47
+
48
+ wp_enqueue_script(
49
+ 'help-center-script',
50
+ plugins_url( 'dist/help-center.js', __FILE__ ),
51
+ is_array( $script_dependencies ) ? $script_dependencies : array(),
52
+ $version,
53
+ true
54
+ );
55
+
56
+ wp_enqueue_style(
57
+ 'help-center-style',
58
+ plugins_url( 'dist/help-center' . ( is_rtl() ? '.rtl.css' : '.css' ), __FILE__ ),
59
+ array(),
60
+ $version
61
+ );
62
+
63
+ wp_localize_script(
64
+ 'help-center-script',
65
+ 'helpCenterLocale',
66
+ \A8C\FSE\Common\get_iso_639_locale( determine_locale() )
67
+ );
68
+
69
+ wp_set_script_translations( 'help-center-script', 'full-site-editing' );
70
+ }
71
+ }
72
+ add_action( 'init', array( __NAMESPACE__ . '\Help_Center', 'init' ) );
help-center/dist/help-center.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '3cb5fc1d63e86e495db1c4370db7485b');
help-center/dist/help-center.css ADDED
@@ -0,0 +1 @@
 
1
+ .etk-help-center .entry-point-button.is-active{background:#1e1e1e}.help-center__container.is-mobile{height:calc(100% - 46px);margin-top:46px}.help-center__container.is-mobile.is-minimized{margin-top:0}.help-center__container{background-color:#fff;color:#000}.help-center__container.is-desktop{background:#fff;border-radius:2px;box-shadow:0 0 3px 0 rgba(0,0,0,.25);cursor:default;display:inline;min-width:300px;position:fixed;right:16px;top:74px;width:20vw;z-index:9999}.help-center__container.is-desktop .help-center__container-header{cursor:pointer;height:50px;padding-left:10px;padding-right:5px}.help-center__container.is-desktop .help-center__container-content{max-height:70vh;min-height:300px;overflow-y:auto}.help-center__container.is-desktop.is-minimized{top:calc(100vh - 65px)}.help-center__container.is-desktop.is-minimized .help-center__container-header{cursor:default}.help-center__container.is-mobile{background-color:#fff;bottom:0;left:0;max-height:100vh;position:fixed!important;right:0;top:0;z-index:9999}.help-center__container.is-mobile.is-minimized{top:calc(100vh - 50px)}.help-center__container.is-mobile .help-center__container-header{height:50px}.help-center__container.is-mobile .help-center__container-content{max-height:90vh;overflow-y:auto;padding:10px}.help-center__container .components-button:hover{box-shadow:none;color:inherit}.help-center__container.is-desktop.is-minimized,.help-center__container.is-mobile.is-minimized{max-height:50px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}
help-center/dist/help-center.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ !function(){var e={715:function(e,t,n){"use strict";var r=n(307),o=n(444);const a=(0,r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.Z=a},565:function(e,t,n){"use strict";var r=n(307),o=n(444);const a=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.Z=a},103:function(e,t,n){"use strict";var r=n(307),o=n(444);const a=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,r.createElement)(o.Path,{d:"M5 11.25h14v1.5H5z"}));t.Z=a},173:function(e,t,n){"use strict";n.d(t,{Ox:function(){return r.Z}});var r=n(749)},749:function(e,t,n){"use strict";var r=n(896),o=n(307),a=n(819),i=n(779),u=n.n(i),c=n(609);function s(e){let{scope:t,...n}=e;return(0,o.createElement)(c.Fill,(0,r.Z)({name:`PinnedItems/${t}`},n))}s.Slot=function(e){let{scope:t,className:n,...i}=e;return(0,o.createElement)(c.Slot,(0,r.Z)({name:`PinnedItems/${t}`},i),(e=>!(0,a.isEmpty)(e)&&(0,o.createElement)("div",{className:u()(n,"interface-pinned-items")},e)))},t.Z=s},192:function(e,t,n){"use strict";n.d(t,{Ox:function(){return r.Ox}});var r=n(173);n(14)},262:function(e,t,n){"use strict";function r(e,t,n){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:n}}function o(e,t){return r("complementaryArea",e,t)}function a(e){return r("complementaryArea",e,void 0)}function i(e,t,n,r){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:n,isEnable:r}}function u(e,t){return i("pinnedItems",e,t,!0)}function c(e,t){return i("pinnedItems",e,t,!1)}function s(e,t){return function(n){let{select:r,dispatch:o}=n;const a=r.isFeatureActive(e,t);o.setFeatureValue(e,t,!a)}}function l(e,t,n){return{type:"SET_FEATURE_VALUE",scope:e,featureName:t,value:!!n}}function f(e,t){return{type:"SET_FEATURE_DEFAULTS",scope:e,defaults:t}}n.r(t),n.d(t,{enableComplementaryArea:function(){return o},disableComplementaryArea:function(){return a},pinItem:function(){return u},unpinItem:function(){return c},toggleFeature:function(){return s},setFeatureValue:function(){return l},setFeatureDefaults:function(){return f}})},112:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});const r="core/interface"},14:function(e,t,n){"use strict";var r=n(818),o=n(350),a=n(262),i=n(844),u=n(112);(0,r.createReduxStore)(u.G,{reducer:o.ZP,actions:a,selectors:i,persist:["enableItems","preferences"],__experimentalUseThunks:!0});(0,r.registerStore)(u.G,{reducer:o.ZP,actions:a,selectors:i,persist:["enableItems","preferences"],__experimentalUseThunks:!0})},350:function(e,t,n){"use strict";var r=n(819),o=n(818);const a=(0,o.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("SET_FEATURE_DEFAULTS"===t.type){const{scope:n,defaults:r}=t;return{...e,[n]:{...e[n],...r}}}return e}}),i=(0,o.combineReducers)({features(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("SET_FEATURE_VALUE"===t.type){const{scope:n,featureName:r,value:o}=t;return{...e,[n]:{...e[n],[r]:o}}}return e}}),u=(0,o.combineReducers)({singleEnableItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,itemType:n,scope:r,item:o}=arguments.length>1?arguments[1]:void 0;return"SET_SINGLE_ENABLE_ITEM"===t&&n&&r?{...e,[n]:{...e[n],[r]:o||null}}:e},multipleEnableItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,itemType:n,scope:o,item:a,isEnable:i}=arguments.length>1?arguments[1]:void 0;if("SET_MULTIPLE_ENABLE_ITEM"!==t||!n||!o||!a||(0,r.get)(e,[n,o,a])===i)return e;const u=e[n]||{},c=u[o]||{};return{...e,[n]:{...u,[o]:{...c,[a]:i||!1}}}}});t.ZP=(0,o.combineReducers)({enableItems:u,preferenceDefaults:a,preferences:i})},844:function(e,t,n){"use strict";n.r(t),n.d(t,{getActiveComplementaryArea:function(){return o},isItemPinned:function(){return a},isFeatureActive:function(){return i}});var r=n(819);function o(e,t){return function(e,t,n){return(0,r.get)(e.enableItems.singleEnableItems,[t,n])}(e,"complementaryArea",t)}function a(e,t,n){return!1!==function(e,t,n,o){return(0,r.get)(e.enableItems.multipleEnableItems,[t,n,o])}(e,"pinnedItems",t,n)}function i(e,t,n){var r,o;const a=null===(r=e.preferences.features[t])||void 0===r?void 0:r[n];return!!(void 0!==a?a:null===(o=e.preferenceDefaults.features[t])||void 0===o?void 0:o[n])}},779:function(e,t){var n;
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var u in n)r.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},277:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.r(t),n.d(t,{default:function(){return o}})},142:function(){},829:function(){},12:function(e,t,n){"use strict";var r=n(586);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},980:function(e,t,n){e.exports=n(12)()},586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},997:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,n&&n.set(e,o);return o}(n(196)),a=m(n(980)),i=m(n(850)),u=m(n(277)),c=n(688),s=n(585),l=n(136),f=m(n(816)),p=m(n(177)),d=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function y(){return y=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},y.apply(this,arguments)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],_n=!0,i=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);_n=!0);}catch(u){i=!0,o=u}finally{try{_n||null==n.return||n.return()}finally{if(i)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(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)}}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(l,e);var t,n,r,a=x(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),T(P(t=a.call(this,e)),"onDragStart",(function(e,n){if((0,p.default)("Draggable: onDragStart: %j",n),!1===t.props.onStart(e,(0,s.createDraggableData)(P(t),n)))return!1;t.setState({dragging:!0,dragged:!0})})),T(P(t),"onDrag",(function(e,n){if(!t.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",n);var r=(0,s.createDraggableData)(P(t),n),o={x:r.x,y:r.y};if(t.props.bounds){var a=o.x,i=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var u=w((0,s.getBoundPosition)(P(t),o.x,o.y),2),c=u[0],l=u[1];o.x=c,o.y=l,o.slackX=t.state.slackX+(a-o.x),o.slackY=t.state.slackY+(i-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-t.state.x,r.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,r))return!1;t.setState(o)})),T(P(t),"onDragStop",(function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,s.createDraggableData)(P(t),n)))return!1;(0,p.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,a=o.x,i=o.y;r.x=a,r.y=i}t.setState(r)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:b({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=l,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:b({},n)})}}],(n=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),r=t.defaultPosition,a=t.defaultClassName,i=t.defaultClassNameDragging,l=t.defaultClassNameDragged,p=t.position,m=t.positionOffset,g=(t.scale,h(t,d)),v={},w=null,S=!Boolean(p)||this.state.dragging,E=p||r,O={x:(0,s.canDragX)(this)&&S?this.state.x:E.x,y:(0,s.canDragY)(this)&&S?this.state.y:E.y};this.state.isElementSVG?w=(0,c.createSVGTransform)(O,m):v=(0,c.createCSSTransform)(O,m);var x=(0,u.default)(n.props.className||"",a,(T(e={},i,this.state.dragging),T(e,l,this.state.dragged),e));return o.createElement(f.default,y({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(n),{className:x,style:b(b({},n.props.style),v),transform:w}))}}])&&E(t.prototype,n),r&&E(t,r),l}(o.Component);t.default=M,T(M,"displayName","Draggable"),T(M,"propTypes",b(b({},f.default.propTypes),{},{axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe})),T(M,"defaultProps",b(b({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},816:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,n&&n.set(e,o);return o}(n(196)),a=f(n(980)),i=f(n(850)),u=n(688),c=n(585),s=n(136),l=f(n(177));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],_n=!0,i=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);_n=!0);}catch(u){i=!0,o=u}finally{try{_n||null==n.return||n.return()}finally{if(i)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O={start:"touchstart",move:"touchmove",stop:"touchend"},x={start:"mousedown",move:"mousemove",stop:"mouseup"},D=x,P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,e);var t,n,r,a=v(s);function s(){var e;g(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return E(w(e=a.call.apply(a,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),E(w(e),"mounted",!1),E(w(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,u.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,u.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,u.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var a=(0,c.getControlPosition)(t,o,w(e));if(null!=a){var i=a.x,s=a.y,f=(0,c.createCoreData)(w(e),i,s);(0,l.default)("DraggableCore: handleDragStart: %j",f),(0,l.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,u.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:i,lastY:s}),(0,u.addEvent)(r,D.move,e.handleDrag),(0,u.addEvent)(r,D.stop,e.handleDragStop))}}})),E(w(e),"handleDrag",(function(t){var n=(0,c.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var a=r-e.state.lastX,i=o-e.state.lastY,u=d((0,c.snapToGrid)(e.props.grid,a,i),2);if(a=u[0],i=u[1],!a&&!i)return;r=e.state.lastX+a,o=e.state.lastY+i}var s=(0,c.createCoreData)(w(e),r,o);if((0,l.default)("DraggableCore: handleDrag: %j",s),!1!==e.props.onDrag(t,s)&&!1!==e.mounted)e.setState({lastX:r,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(p){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),E(w(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,c.getControlPosition)(t,e.state.touchIdentifier,w(e));if(null!=n){var r=n.x,o=n.y,a=(0,c.createCoreData)(w(e),r,o);if(!1===e.props.onStop(t,a)||!1===e.mounted)return!1;var i=e.findDOMNode();i&&e.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(i.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",a),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),i&&((0,l.default)("DraggableCore: Removing handlers"),(0,u.removeEvent)(i.ownerDocument,D.move,e.handleDrag),(0,u.removeEvent)(i.ownerDocument,D.stop,e.handleDragStop))}}})),E(w(e),"onMouseDown",(function(t){return D=x,e.handleDragStart(t)})),E(w(e),"onMouseUp",(function(t){return D=x,e.handleDragStop(t)})),E(w(e),"onTouchStart",(function(t){return D=O,e.handleDragStart(t)})),E(w(e),"onTouchEnd",(function(t){return D=O,e.handleDragStop(t)})),e}return t=s,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,u.addEvent)(e,O.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,u.removeEvent)(t,x.move,this.handleDrag),(0,u.removeEvent)(t,O.move,this.handleDrag),(0,u.removeEvent)(t,x.stop,this.handleDragStop),(0,u.removeEvent)(t,O.stop,this.handleDragStop),(0,u.removeEvent)(e,O.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:i.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&y(t.prototype,n),r&&y(t,r),s}(o.Component);t.default=P,E(P,"displayName","DraggableCore"),E(P,"propTypes",{allowAnyClick:a.default.bool,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.default.arrayOf(a.default.number),handle:a.default.string,cancel:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),E(P,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},327:function(e,t,n){"use strict";var r=n(997),o=r.default,a=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=a},688:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var o=c({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var o=c({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,a=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:a}},t.createCSSTransform=function(e,t){var n=p(e,t,"px");return s({},(0,a.browserPrefixToKey)("transform",a.default),n)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTranslation=p,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&d(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&m(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(n){}},t.addClassName=d,t.removeClassName=m;var o=n(136),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}o.default=e,n&&n.set(e,o);return o}(n(185));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l="";function f(e,t){return l||(l=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[l])&&e[l](t)}function p(e,t,n){var r=e.x,o=e.y,a="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var i="".concat("string"==typeof t.x?t.x:t.x+n),u="".concat("string"==typeof t.y?t.y:t.y+n);a="translate(".concat(i,", ").concat(u,")")+a}return a}function d(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function m(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},185:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=r,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var n=["Moz","Webkit","O","ms"];function r(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var a=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!a)return"";if(r in a)return"";for(var i=0;i<n.length;i++)if(o(r,n[i])in a)return n[i];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var a=r();t.default=a},177:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var i=e.props.bounds;i="string"==typeof i?i:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(i);var u=a(e);if("string"==typeof i){var c,s=u.ownerDocument,l=s.defaultView;if(!((c="parent"===i?u.parentNode:s.querySelector(i))instanceof l.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');var f=c,p=l.getComputedStyle(u),d=l.getComputedStyle(f);i={left:-u.offsetLeft+(0,r.int)(d.paddingLeft)+(0,r.int)(p.marginLeft),top:-u.offsetTop+(0,r.int)(d.paddingTop)+(0,r.int)(p.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(u)-u.offsetLeft+(0,r.int)(d.paddingRight)-(0,r.int)(p.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(u)-u.offsetTop+(0,r.int)(d.paddingBottom)-(0,r.int)(p.marginBottom)}}(0,r.isNum)(i.right)&&(t=Math.min(t,i.right));(0,r.isNum)(i.bottom)&&(n=Math.min(n,i.bottom));(0,r.isNum)(i.left)&&(t=Math.max(t,i.left));(0,r.isNum)(i.top)&&(n=Math.max(n,i.top));return[t,n]},t.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var i=a(n),u=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,u,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,i=!(0,r.isNum)(o.lastX),u=a(e);return i?{node:u,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:u,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(136),o=n(688);function a(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},136:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)},t.int=function(e){return parseInt(e,10)},t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}},477:function(e,t,n){"use strict";var r=n(307),o=n(213),a=n(609),i=n(192),u=n(817),c=n(779),s=n.n(c),l=n(196),f=n.n(l);n(142);const p=e=>{let{newItems:t,active:n}=e;return(0,r.createElement)("svg",{width:"26",height:"25",viewBox:"0 0 26 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("circle",{cx:"12",cy:"12.5",r:"8",stroke:n?"white":"#1e1e1e",fill:n?"#1e1e1e":"white","stroke-width":"1.5"}),(0,r.createElement)("path",{d:"M9.75 10.75C9.75 9.50736 10.7574 8.5 12 8.5C13.2426 8.5 14.25 9.50736 14.25 10.75C14.25 11.9083 13.3748 12.8621 12.2496 12.9863C12.1124 13.0015 12 13.1119 12 13.25V14.5",stroke:n?"white":"#1e1e1e","stroke-width":"1.5",fill:"none"}),(0,r.createElement)("path",{d:"M12 15.5V17",stroke:n?"white":"#1e1e1e","stroke-width":"1.5"}),t&&(0,r.createElement)("circle",{cx:"20",cy:"8",r:"5",stroke:n?"#1e1e1e":"white",fill:"#0675C4","stroke-width":"2"}))};function d(){const[e,t]=f().useState(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Ox,{scope:"core/edit-post"},(0,r.createElement)("span",{className:"etk-help-center"},(0,r.createElement)(a.Button,{className:s()("entry-point-button",{"is-active":e}),onClick:()=>t(!e),icon:(0,r.createElement)(p,{newItems:!0,active:e})}))),e&&(0,r.createElement)(o.Z,{content:(0,r.createElement)("h1",null,"Help center"),handleClose:()=>t(!1)}))}(0,u.registerPlugin)("etk-help-center",{render:()=>(0,r.createElement)(d,null)})},250:function(e,t,n){"use strict";var r=n(896),o=n(307),a=n(951),i=n(609),u=n(779),c=n.n(u),s=n(196),l=n(327),f=n.n(l),p=n(407),d=n(59),m=n(934);t.Z=e=>{let{content:t,handleClose:n}=e;const[u,l]=(0,s.useState)(!1),[g,y]=(0,s.useState)(!0),h=(0,a._z)(),v=c()("help-center__container",h?"is-mobile":"is-desktop",{"is-minimized":u}),b={style:{animation:(g?"fadeIn":"fadeOut")+" .5s"},onAnimationEnd:()=>{g||n()}},w=(0,o.createElement)(o.Fragment,null,(0,o.createElement)(m.Z,{isMinimized:u,onMinimize:()=>l(!0),onMaximize:()=>l(!1),onDismiss:()=>{y(!1)}}),!u&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p.Z,{content:t}),(0,o.createElement)(d.Z,null)));return h?(0,o.createElement)(i.Card,(0,r.Z)({},b,{className:v}),w):u?(0,o.createElement)(i.Card,(0,r.Z)({className:v},b),w):(0,o.createElement)(f(),null,(0,o.createElement)(i.Card,(0,r.Z)({className:v},b),w))}},407:function(e,t,n){"use strict";var r=n(307),o=n(609),a=n(779),i=n.n(a);t.Z=e=>{let{content:t}=e;const n=i()("help-center__container-content");return(0,r.createElement)(o.CardBody,{className:n},(0,r.createElement)("div",null,t))}},59:function(e,t,n){"use strict";var r=n(307),o=n(609),a=n(779),i=n.n(a);t.Z=()=>{const e=i()("help-center__container-footer");return(0,r.createElement)(o.CardFooter,{className:e},(0,r.createElement)("div",null,"footer"))}},934:function(e,t,n){"use strict";var r=n(307),o=n(609),a=n(736),i=n(715),u=n(103),c=n(565),s=n(779),l=n.n(s);const __=a.__;t.Z=e=>{let{isMinimized:t,onMinimize:n,onMaximize:a,onDismiss:s}=e;const f=l()("help-center__container-header");return(0,r.createElement)(o.CardHeader,{className:f},(0,r.createElement)(o.Flex,null,(0,r.createElement)("h2",null,__("Help Center")),(0,r.createElement)("div",null,t?(0,r.createElement)(o.Button,{label:__("Maximize Help Center"),icon:i.Z,iconSize:24,onClick:a}):(0,r.createElement)(o.Button,{label:__("Minimize Help Center"),icon:u.Z,iconSize:24,onClick:n}),(0,r.createElement)(o.Button,{label:__("Close Help Center"),icon:c.Z,iconSize:24,onClick:s}))))}},213:function(e,t,n){"use strict";var r=n(307),o=n(250);n(829);t.Z=e=>{let{content:t,handleClose:n}=e;const a=(0,r.useRef)(document.createElement("div")).current;return(0,r.useEffect)((()=>(a.classList.add("help-center"),document.body.appendChild(a),()=>{document.body.removeChild(a)})),[a]),(0,r.createElement)("div",null,(0,r.createPortal)((0,r.createElement)(o.Z,{handleClose:n,content:t}),a))}},951:function(e,t,n){"use strict";n.d(t,{_z:function(){return s}});var r=n(896),o=n(307),a=n(321),i=n(333),u=n(196);function c(e){const[t,n]=(0,u.useState)((()=>({isActive:(0,a.kV)(e),breakpoint:e})));return(0,u.useEffect)((()=>(0,a.Sp)(e,(function(t){n((n=>n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}))}))),[e]),e===t.breakpoint?t.isActive:(0,a.kV)(e)}function s(){return c(a.Gh)}(0,i.createHigherOrderComponent)((e=>(0,u.forwardRef)(((t,n)=>{const i=c(a.Gh);return(0,o.createElement)(e,(0,r.Z)({},t,{isBreakpointActive:i,ref:n}))}))),"WithMobileBreakpoint"),(0,i.createHigherOrderComponent)((e=>(0,u.forwardRef)(((t,n)=>{const i=c(a.oh);return(0,o.createElement)(e,(0,r.Z)({},t,{isBreakpointActive:i,ref:n}))}))),"WithDesktopBreakpoint")},321:function(e,t,n){"use strict";n.d(t,{Gh:function(){return o},oh:function(){return a},kV:function(){return p},Sp:function(){return d}});const r=769,o="<480px",a=">960px",i="undefined"==typeof window||!window.matchMedia,u=()=>null;function c(e){return{addListener:()=>{},removeListener:()=>{},...e}}function s(e){const{min:t,max:n}=e??{};return void 0!==t&&void 0!==n?i?c({matches:r>t&&r<=n}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${n}px)`):void 0!==t?i?c({matches:r>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==n&&(i?c({matches:r<=n}):window.matchMedia(`(max-width: ${n}px)`))}const l={"<480px":s({max:480}),"<660px":s({max:660}),"<782px":s({max:782}),"<800px":s({max:800}),"<960px":s({max:960}),"<1040px":s({max:1040}),"<1280px":s({max:1280}),"<1400px":s({max:1400}),">480px":s({min:480}),">660px":s({min:660}),">782px":s({min:782}),">800px":s({min:800}),">960px":s({min:960}),">1040px":s({min:1040}),">1280px":s({min:1280}),">1400px":s({min:1400}),"480px-660px":s({min:480,max:660}),"660px-960px":s({min:660,max:960}),"480px-960px":s({min:480,max:960})};function f(e){if(l.hasOwnProperty(e))return l[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function p(e){const t=f(e);return t?t.matches:void 0}function d(e,t){if(!t)return u;const n=f(e);if(n&&!i){const e=e=>t(e.matches);return n.addListener(e),()=>n.removeListener(e)}return u}},196:function(e){"use strict";e.exports=window.React},850:function(e){"use strict";e.exports=window.ReactDOM},819:function(e){"use strict";e.exports=window.lodash},609:function(e){"use strict";e.exports=window.wp.components},333:function(e){"use strict";e.exports=window.wp.compose},818:function(e){"use strict";e.exports=window.wp.data},307:function(e){"use strict";e.exports=window.wp.element},736:function(e){"use strict";e.exports=window.wp.i18n},817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},896:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(477)}(),window.EditingToolkit=r}();
help-center/dist/help-center.rtl.css ADDED
@@ -0,0 +1 @@
 
1
+ .etk-help-center .entry-point-button.is-active{background:#1e1e1e}.help-center__container.is-mobile{height:calc(100% - 46px);margin-top:46px}.help-center__container.is-mobile.is-minimized{margin-top:0}.help-center__container{background-color:#fff;color:#000}.help-center__container.is-desktop{background:#fff;border-radius:2px;box-shadow:0 0 3px 0 rgba(0,0,0,.25);cursor:default;display:inline;left:16px;min-width:300px;position:fixed;top:74px;width:20vw;z-index:9999}.help-center__container.is-desktop .help-center__container-header{cursor:pointer;height:50px;padding-left:5px;padding-right:10px}.help-center__container.is-desktop .help-center__container-content{max-height:70vh;min-height:300px;overflow-y:auto}.help-center__container.is-desktop.is-minimized{top:calc(100vh - 65px)}.help-center__container.is-desktop.is-minimized .help-center__container-header{cursor:default}.help-center__container.is-mobile{background-color:#fff;bottom:0;left:0;max-height:100vh;position:fixed!important;right:0;top:0;z-index:9999}.help-center__container.is-mobile.is-minimized{top:calc(100vh - 50px)}.help-center__container.is-mobile .help-center__container-header{height:50px}.help-center__container.is-mobile .help-center__container-content{max-height:90vh;overflow-y:auto;padding:10px}.help-center__container .components-button:hover{box-shadow:none;color:inherit}.help-center__container.is-desktop.is-minimized,.help-center__container.is-mobile.is-minimized{max-height:50px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}
help-center/index.js ADDED
@@ -0,0 +1 @@
 
1
+ import './src/help-center';
help-center/src/help-center.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import HelpCenter from '@automattic/help-center';
2
+ import { Button } from '@wordpress/components';
3
+ import { PinnedItems } from '@wordpress/interface';
4
+ import { registerPlugin } from '@wordpress/plugins';
5
+ import cx from 'classnames';
6
+ import React from 'react';
7
+ import './help-center.scss';
8
+
9
+ const HelpIcon = ( { newItems, active } ) => (
10
+ <svg width="26" height="25" viewBox="0 0 26 25" fill="none" xmlns="http://www.w3.org/2000/svg">
11
+ <circle
12
+ cx="12"
13
+ cy="12.5"
14
+ r="8"
15
+ stroke={ active ? 'white' : '#1e1e1e' }
16
+ fill={ active ? '#1e1e1e' : 'white' }
17
+ stroke-width="1.5"
18
+ />
19
+ <path
20
+ d="M9.75 10.75C9.75 9.50736 10.7574 8.5 12 8.5C13.2426 8.5 14.25 9.50736 14.25 10.75C14.25 11.9083 13.3748 12.8621 12.2496 12.9863C12.1124 13.0015 12 13.1119 12 13.25V14.5"
21
+ stroke={ active ? 'white' : '#1e1e1e' }
22
+ stroke-width="1.5"
23
+ fill="none"
24
+ />
25
+ <path d="M12 15.5V17" stroke={ active ? 'white' : '#1e1e1e' } stroke-width="1.5" />
26
+ { newItems && (
27
+ <circle
28
+ cx="20"
29
+ cy="8"
30
+ r="5"
31
+ stroke={ active ? '#1e1e1e' : 'white' }
32
+ fill="#0675C4"
33
+ stroke-width="2"
34
+ />
35
+ ) }
36
+ </svg>
37
+ );
38
+
39
+ function HelpCenterComponent() {
40
+ const [ isActive, setIsActive ] = React.useState( false );
41
+
42
+ return (
43
+ <>
44
+ <PinnedItems scope="core/edit-post">
45
+ <span className="etk-help-center">
46
+ <Button
47
+ className={ cx( 'entry-point-button', { 'is-active': isActive } ) }
48
+ onClick={ () => setIsActive( ! isActive ) }
49
+ icon={ <HelpIcon newItems active={ isActive } /> }
50
+ ></Button>
51
+ </span>
52
+ </PinnedItems>
53
+ { isActive && (
54
+ <HelpCenter content={ <h1>Help center</h1> } handleClose={ () => setIsActive( false ) } />
55
+ ) }
56
+ </>
57
+ );
58
+ }
59
+
60
+ registerPlugin( 'etk-help-center', {
61
+ render: () => <HelpCenterComponent />,
62
+ } );
help-center/src/help-center.scss ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .etk-help-center {
2
+ .entry-point-button {
3
+ &.is-active {
4
+ background: #1e1e1e;
5
+ }
6
+ }
7
+ }
8
+
9
+ .help-center__container {
10
+ &.is-mobile {
11
+ height: calc( 100% - 46px );
12
+ margin-top: 46px;
13
+ &.is-minimized {
14
+ margin-top: 0;
15
+ }
16
+ }
17
+ }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 3.30395
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.30625
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html