Version Description
- New: Added Sponsored and UGC rel options for all links
- New: Stackable blocks now appear properly in excerpts
- Fixed: Custom Attributes input control backward compatibility with WordPress 5.5
Download this release
Release Info
Developer | bfintal |
Plugin | Stackable – Page Builder Gutenberg Blocks |
Version | 2.17.5 |
Comparing to | |
See all releases |
Code changes from version 2.17.4 to 2.17.5
- dist/admin_welcome.js +4 -4
dist/admin_welcome.js
CHANGED
@@ -9,7 +9,7 @@ var admin_welcome=function(e){var t={};function n(a){if(t[a])return t[a].exports
|
|
9 |
Licensed under the MIT License (MIT), see
|
10 |
http://jedwatson.github.io/classnames
|
11 |
*/
|
12 |
-
!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var i=typeof a;if("string"===i||"number"===i)e.push(a);else if(Array.isArray(a)&&a.length){var l=r.apply(null,a);l&&e.push(l)}else if("object"===i)for(var o in a)n.call(a,o)&&a[o]&&e.push(o)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=wp.hooks},function(e,t,n){var a=n(118),r=n(119),i=n(120);e.exports=function(e,t){return a(e)||r(e,t)||i()}},function(e,t,n){e.exports=n(140)()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=wp.compose},function(e,t,n){var a=n(121),r=n(122),i=n(123);e.exports=function(e){return a(e)||r(e)||i()}},function(e,t){e.exports=wp.data},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),e}},function(e,t,n){var a=n(31),r=n(12);e.exports=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?r(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var a=n(124);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}},function(e,t,n){"use strict";t.a=function(e){if("complete"===document.readyState||"interactive"===document.readyState)return e();document.addEventListener("DOMContentLoaded",e)}},function(e,t,n){e.exports=n(136)},function(e,t){e.exports=wp.blockEditor},function(e,t,n){var a=n(139);e.exports=function(e,t){if(null==e)return{};var n,r,i=a(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t){function n(e,t,n,a,r,i,l){try{var o=e[i](l),s=o.value}catch(e){return void n(e)}o.done?t(s):Promise.resolve(s).then(a,r)}e.exports=function(e){return function(){var t=this,a=arguments;return new Promise(function(r,i){var l=e.apply(t,a);function o(e){n(l,r,i,o,s,"next",e)}function s(e){n(l,r,i,o,s,"throw",e)}o(void 0)})}}},function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,a){return e.concat(t).map(function(e){return n(e,a)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}(e))}function i(e,t,a){var i={};return a.isMergeableObject(e)&&r(e).forEach(function(t){i[t]=n(e[t],a)}),r(t).forEach(function(r){a.isMergeableObject(t[r])&&e[r]?i[r]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,a)(e[r],t[r],a):i[r]=n(t[r],a)}),i}function l(t,r,l){(l=l||{}).arrayMerge=l.arrayMerge||a,l.isMergeableObject=l.isMergeableObject||e;var o=Array.isArray(r);return o===Array.isArray(t)?o?l.arrayMerge(t,r,l):i(t,r,l):n(r,l)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},l}()},function(e,t){e.exports=wp.api},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r,i,l,o){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,r,i,l,o],c=0;(s=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";e.exports=function(){}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=a=function(e){return n(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a(t)}e.exports=a},function(e,t){e.exports=wp.blocks},function(e,t){e.exports=wp.editPost},function(e,t){e.exports=wp.ajax},function(e,t,n){"use strict";var a;!function(r){if("function"!=typeof i){var i=function(e){return e};i.nonNative=!0}const l=i("plaintext"),o=i("html"),s=i("comment"),u=/<(\w*)>/g,c=/<\/?([^\s\/>]+)/;function p(e,t,n){return d(e=e||"",f(t=t||[],n=n||""))}function f(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let n;for(;n=u.exec(e);)t.add(n[1])}else i.nonNative||"function"!=typeof e[i.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:l,tag_buffer:"",depth:0,in_quote_char:""}}function d(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let n=t.allowable_tags,a=t.tag_replacement,r=t.state,i=t.tag_buffer,u=t.depth,c=t.in_quote_char,p="";for(let t=0,f=e.length;t<f;t++){let f=e[t];if(r===l)switch(f){case"<":r=o,i+=f;break;default:p+=f}else if(r===o)switch(f){case"<":if(c)break;u++;break;case">":if(c)break;if(u){u--;break}c="",r=l,i+=">",n.has(g(i))?p+=i:p+=a,i="";break;case'"':case"'":c=f===c?"":c||f,i+=f;break;case"-":"<!-"===i&&(r=s),i+=f;break;case" ":case"\n":if("<"===i){r=l,p+="< ",i="";break}i+=f;break;default:i+=f}else if(r===s)switch(f){case">":"--"==i.slice(-2)&&(r=l),i="";break;default:i+=f}}return t.state=r,t.tag_buffer=i,t.depth=u,t.in_quote_char=c,p}function g(e){let t=c.exec(e);return t?t[1].toLowerCase():null}p.init_streaming_mode=function(e,t){let n=f(e=e||[],t=t||"");return function(e){return d(e||"",n)}},void 0===(a=function(){return p}.call(t,n,t,e))||(e.exports=a)}()},function(e,t,n){"use strict";var a=n(128),r=n(133),i=n(135);e.exports=function(e){var t,n=a(e);return n.space?((t=Array(3))[0]=i(n.values[0],0,255),t[1]=i(n.values[1],0,255),t[2]=i(n.values[2],0,255),"h"===n.space[0]&&(t=r.rgb(t)),t.push(i(n.alpha,0,1)),t):[]}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(153)},function(e,t){e.exports=wp.codeEditor},function(e,t,n){"use strict";var a=Object.prototype.hasOwnProperty,r=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)void 0!==e[a]&&(n[a]=e[a]);return n};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var i=t[a],l=i.obj[i.prop],o=Object.keys(l),s=0;s<o.length;++s){var u=o[s],c=l[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:l,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var a=[],i=0;i<n.length;++i)void 0!==n[i]&&a.push(n[i]);t.obj[t.prop]=a}}}(t),e},decode:function(e,t,n){var a=e.replace(/\+/g," ");if("iso-8859-1"===n)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(e){return a}},encode:function(e,t,n){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var r="",l=0;l<a.length;++l){var o=a.charCodeAt(l);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=a.charAt(l):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(l+=1,o=65536+((1023&o)<<10|1023&a.charCodeAt(l)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},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)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(r(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return r(t)&&!r(n)&&(o=l(t,i)),r(t)&&r(n)?(n.forEach(function(n,r){if(a.call(t,r)){var l=t[r];l&&"object"==typeof l&&n&&"object"==typeof n?t[r]=e(l,n,i):t.push(n)}else t[r]=n}),t):Object.keys(n).reduce(function(t,r){var l=n[r];return a.call(t,r)?t[r]=e(t[r],l,i):t[r]=l,t},o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!0;var l={},o=void 0,s=void 0;for(o=0,s=n.length;o<s;o++)l[n[o]]=!0;for(o=0,s=r.length;o<s;o++){var u=r[o],c=e[u],p=t[u];if(c!==p){if(!l[u]||null===c||null===p||"object"!==(void 0===c?"undefined":a(c))||"object"!==(void 0===p?"undefined":a(p)))return!0;var f=Object.keys(c),d=Object.keys(p);if(f.length!==d.length)return!0;for(var g=0,m=f.length;g<m;g++){var h=f[g];if(c[h]!==p[h])return!0}}}return!1}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(126);t.default=a.isDarkColor,e.exports=t.default},function(e,t,n){"use strict";var a=n(137),r=n(138),i=n(46);e.exports={formats:i,parse:r,stringify:a}},,function(e,t,n){"use strict";
|
13 |
/*
|
14 |
object-assign
|
15 |
(c) Sindre Sorhus
|
@@ -22,7 +22,7 @@ object-assign
|
|
22 |
*
|
23 |
* This source code is licensed under the MIT license found in the
|
24 |
* LICENSE file in the root directory of this source tree.
|
25 |
-
*/var a=n(45),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113;r&&Symbol.for("react.suspense_list");var g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope");var h="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}function k(){}function C(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=w.prototype;var O=C.prototype=new k;O.constructor=C,a(O,w.prototype),O.isPureReactComponent=!0;var x={current:null},_={current:null},S=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var a,r={},l=null,o=null;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(l=""+t.key),t)S.call(t,a)&&!E.hasOwnProperty(a)&&(r[a]=t[a]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];r.children=u}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===r[a]&&(r[a]=s[a]);return{$$typeof:i,type:e,key:l,ref:o,props:r,_owner:_.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,B=[];function M(e,t,n,a){if(B.length){var r=B.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=a,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:a,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>B.length&&B.push(e)}function I(e,t,n){return null==e?0:function e(t,n,a,r){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var s=!1;if(null===t)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case l:s=!0}}if(s)return a(r,t,""===n?"."+D(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+D(o=t[u],u);s+=e(o,c,a,r)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=h&&t[h]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(o=t.next()).done;)s+=e(o=o.value,c=n+D(o,u++),a,r);else if("object"===o)throw a=""+t,Error(b(31,"[object Object]"===a?"object with keys {"+Object.keys(t).join(", ")+"}":a,""));return s}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function z(e,t,n){var a=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?A(e,a,n,function(e){return e}):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),a.push(e))}function A(e,t,n,a,r){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),I(e,z,t=M(t,i,a,r)),N(t)}function L(){var e=x.current;if(null===e)throw Error(b(321));return e}var F={Children:{map:function(e,t,n){if(null==e)return e;var a=[];return A(e,a,null,t,n),a},forEach:function(e,t,n){if(null==e)return e;I(e,R,t=M(null,null,t,n)),N(t)},count:function(e){return I(e,function(){return null},null)},toArray:function(e){var t=[];return A(e,t,null,function(e){return e}),t},only:function(e){if(!T(e))throw Error(b(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:C,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:f,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return L().useCallback(e,t)},useContext:function(e,t){return L().useContext(e,t)},useEffect:function(e,t){return L().useEffect(e,t)},useImperativeHandle:function(e,t,n){return L().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return L().useLayoutEffect(e,t)},useMemo:function(e,t){return L().useMemo(e,t)},useReducer:function(e,t,n){return L().useReducer(e,t,n)},useRef:function(e){return L().useRef(e)},useState:function(e){return L().useState(e)},Fragment:o,Profiler:u,StrictMode:s,Suspense:d,createElement:j,cloneElement:function(e,t,n){if(null==e)throw Error(b(267,e));var r=a({},e.props),l=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=_.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!E.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];r.children=u}return{$$typeof:i,type:e.type,key:l,ref:o,props:r,_owner:s}},createFactory:function(e){var t=j.bind(null,e);return t.type=e,t},isValidElement:T,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:x,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:a}},U={default:F},H=U&&F||U;e.exports=H.default||H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDarkColor=void 0;var a=n(127);t.isDarkColor=function(e,t){if(t&&t.override){var n=Object.keys(t.override).find(function(t){return t.toLowerCase()===e.toLowerCase()});if(void 0!==n)return t.override[n]}var r=(0,a.hexToRgb)(e),i=[r.r/255,r.g/255,r.b/255].map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*i[0]+.7152*i[1]+.0722*i[2]<=.179}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}},function(e,t,n){"use strict";(function(t){var a=n(130),r=n(131),i=n(132);e.exports=function(e){var n,o,s=[],u=1;if("string"==typeof e)if(a[e])s=a[e].slice(),o="rgb";else if("transparent"===e)u=0,o="rgb",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var c=(d=e.slice(1)).length;u=1,c<=4?(s=[parseInt(d[0]+d[0],16),parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16)],4===c&&(u=parseInt(d[3]+d[3],16)/255)):(s=[parseInt(d[0]+d[1],16),parseInt(d[2]+d[3],16),parseInt(d[4]+d[5],16)],8===c&&(u=parseInt(d[6]+d[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),o="rgb"}else if(n=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var p=n[1],f="rgb"===p,d=p.replace(/a$/,"");o=d;c="cmyk"===d?4:"gray"===d?1:3;s=n[2].trim().split(/\s*,\s*/).map(function(e,t){if(/%$/.test(e))return t===c?parseFloat(e)/100:"rgb"===d?255*parseFloat(e)/100:parseFloat(e);if("h"===d[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==l[e])return l[e]}return parseFloat(e)}),p===d&&s.push(1),u=f?1:void 0===s[c]?1:s[c],s=s.slice(0,c)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(s=e.match(/([0-9]+)/g).map(function(e){return parseFloat(e)}),o=e.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(e))if(r(e)){var g=i(e.r,e.red,e.R,null);null!==g?(o="rgb",s=[g,i(e.g,e.green,e.G),i(e.b,e.blue,e.B)]):(o="hsl",s=[i(e.h,e.hue,e.H),i(e.s,e.saturation,e.S),i(e.l,e.lightness,e.L,e.b,e.brightness)]),u=i(e.a,e.alpha,e.opacity,1),null!=e.opacity&&(u/=100)}else(Array.isArray(e)||t.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(s=[e[0],e[1],e[2]],o="rgb",u=4===e.length?e[3]:1);else o="rgb",s=[e>>>16,(65280&e)>>>8,255&e];return{space:o,values:s,alpha:u}};var l={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,n(129))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){"use strict";var a=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===a.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t){e.exports=function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}},function(e,t,n){"use strict";var a=n(134);e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,a,r,i,l=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[i=255*s,i,i];t=2*s-(n=s<.5?s*(1+o):s+o-s*o),r=[0,0,0];for(var u=0;u<3;u++)(a=l+1/3*-(u-1))<0?a++:a>1&&a--,i=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,r[u]=255*i;return r}},a.hsl=function(e){var t,n,a=e[0]/255,r=e[1]/255,i=e[2]/255,l=Math.min(a,r,i),o=Math.max(a,r,i),s=o-l;return o===l?t=0:a===o?t=(r-i)/s:r===o?t=2+(i-a)/s:i===o&&(t=4+(a-r)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(l+o)/2,[t,100*(o===l?0:n<=.5?s/(o+l):s/(2-o-l)),100*n]}},function(e,t,n){"use strict";e.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},function(e,t){e.exports=function(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}},function(e,t,n){var a=function(e){"use strict";var t,n=Object.prototype,a=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n,a){var r=t&&t.prototype instanceof m?t:m,i=Object.create(r.prototype),l=new E(a||[]);return i._invoke=function(e,t,n){var a=c;return function(r,i){if(a===f)throw new Error("Generator is already running");if(a===d){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var l=n.delegate;if(l){var o=x(l,n);if(o){if(o===g)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===c)throw a=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var s=u(e,t,n);if("normal"===s.type){if(a=n.done?d:p,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=d,n.method="throw",n.arg=s.arg)}}}(e,n,l),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c="suspendedStart",p="suspendedYield",f="executing",d="completed",g={};function m(){}function h(){}function b(){}var v={};v[i]=function(){return this};var y=Object.getPrototypeOf,w=y&&y(y(j([])));w&&w!==n&&a.call(w,i)&&(v=w);var k=b.prototype=m.prototype=Object.create(v);function C(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,l){var o=u(e[n],e,r);if("throw"!==o.type){var s=o.arg,c=s.value;return c&&"object"==typeof c&&a.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,l)},function(e){t("throw",e,i,l)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},function(e){return t("throw",e,i,l)})}l(o.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function x(e,n){var a=e.iterator[n.method];if(a===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(a,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,l=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return l.next=l}}return{next:T}}function T(){return{value:t,done:!0}}return h.prototype=k.constructor=b,b.constructor=h,b[o]=h.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},C(O.prototype),O.prototype[l]=function(){return this},e.AsyncIterator=O,e.async=function(t,n,a,r){var i=new O(s(t,n,a,r));return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},C(k),k[o]="Generator",k[i]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var a=t.pop();if(a in e)return n.value=a,n.done=!1,n}return n.done=!0,n}},e.values=j,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return o.type="throw",o.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var s=a.call(l,"catchLoc"),u=a.call(l,"finallyLoc");if(s&&u){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(s){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=e,l.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:j(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=a}catch(e){Function("r","regeneratorRuntime = r")(a)}},function(e,t,n){"use strict";var a=n(39),r=n(46),i=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,o(t)?t:[t])},c=Date.prototype.toISOString,p=r.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:p,formatter:r.formatters[p],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,r,i,l,s,c,p,d,g,m,h,b){var v,y=t;if("function"==typeof c?y=c(n,y):y instanceof Date?y=g(y):"comma"===r&&o(y)&&(y=y.join(",")),null===y){if(i)return s&&!h?s(n,f.encoder,b,"key"):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||a.isBuffer(y))return s?[m(h?n:s(n,f.encoder,b,"key"))+"="+m(s(y,f.encoder,b,"value"))]:[m(n)+"="+m(String(y))];var w,k=[];if(void 0===y)return k;if(o(c))w=c;else{var C=Object.keys(y);w=p?C.sort(p):C}for(var O=0;O<w.length;++O){var x=w[O];l&&null===y[x]||(o(y)?u(k,e(y[x],"function"==typeof r?r(n,x):n,r,i,l,s,c,p,d,g,m,h,b)):u(k,e(y[x],n+(d?"."+x:"["+x+"]"),r,i,l,s,c,p,d,g,m,h,b)))}return k};e.exports=function(e,t){var n,a=e,s=function(e){if(!e)return f;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||f.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 n=r.default;if(void 0!==e.format){if(!i.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=r.formatters[n],l=f.filter;return("function"==typeof e.filter||o(e.filter))&&(l=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:l,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof s.filter?a=(0,s.filter)("",a):o(s.filter)&&(n=s.filter);var c,p=[];if("object"!=typeof a||null===a)return"";c=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=l[c];n||(n=Object.keys(a)),s.sort&&n.sort(s.sort);for(var m=0;m<n.length;++m){var h=n[m];s.skipNulls&&null===a[h]||u(p,d(a[h],h,g,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var b=p.join(s.delimiter),v=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},function(e,t,n){"use strict";var a=n(39),r=Object.prototype.hasOwnProperty,i=Array.isArray,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:a.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,l=n.depth>0&&/(\[[^[\]]*])/.exec(a),o=l?a.slice(0,l.index):a,s=[];if(o){if(!n.plainObjects&&r.call(Object.prototype,o)&&!n.allowPrototypes)return;s.push(o)}for(var u=0;n.depth>0&&null!==(l=i.exec(a))&&u<n.depth;){if(u+=1,!n.plainObjects&&r.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(l[1])}return l&&s.push("["+a.slice(l.index)+"]"),function(e,t,n){for(var a=t,r=e.length-1;r>=0;--r){var i,l=e[r];if("[]"===l&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var o="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,s=parseInt(o,10);n.parseArrays||""!==o?!isNaN(s)&&l!==o&&String(s)===o&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[])[s]=a:i[o]=a:i={0:a}}a=i}return a}(s,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return l;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 Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?l.charset:e.charset;return{allowDots:void 0===e.allowDots?l.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:l.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:l.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:l.comma,decoder:"function"==typeof e.decoder?e.decoder:l.decoder,delimiter:"string"==typeof e.delimiter||a.isRegExp(e.delimiter)?e.delimiter:l.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:l.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:l.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:l.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:l.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,s={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,c),f=-1,d=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?d="utf-8":"utf8=%26%2310003%3B"===p[n]&&(d="iso-8859-1"),f=n,n=p.length);for(n=0;n<p.length;++n)if(n!==f){var g,m,h=p[n],b=h.indexOf("]="),v=-1===b?h.indexOf("="):b+1;-1===v?(g=t.decoder(h,l.decoder,d,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(h.slice(0,v),l.decoder,d,"key"),m=t.decoder(h.slice(v+1),l.decoder,d,"value")),m&&t.interpretNumericEntities&&"iso-8859-1"===d&&(m=o(m)),m&&"string"==typeof m&&t.comma&&m.indexOf(",")>-1&&(m=m.split(",")),h.indexOf("[]=")>-1&&(m=i(m)?[m]:m),r.call(s,g)?s[g]=a.combine(s[g],m):s[g]=m}return s}(e,n):e,c=n.plainObjects?Object.create(null):{},p=Object.keys(u),f=0;f<p.length;++f){var d=p[f],g=s(d,u[d],n);c=a.merge(c,g,n)}return a.compact(c)}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t,n){"use strict";var a=n(141);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,l){if(l!==a){var o=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 o.name="Invariant Violation",o}}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:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),i=n(2),l=p(i),o=p(n(11)),s=p(n(143)),u=p(n(144)),c=n(152);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(){return!0},d=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return g.call(a),a.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},a.justPressedUpDown=!1,a.justMouseEntered=!1,a.pressedSuggestion=null,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,s.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,a=n.suggestions,r=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,s.default)(a,e.suggestions)&&a.length>0&&i)this.highlightFirstSuggestion();else if(r){var l=this.getHighlightedSuggestion();l!=t.highlightedSuggestion&&r({suggestion:l})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var a=this;this.setState(function(r){var i=r.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:a.getSuggestion(e,t),valueBeforeUpDown:i}})}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState(function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,a=n.suggestions,r=n.multiSection,i=n.getSectionSuggestions;return r?i(a[e])[t]:a[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var a=this.props.inputProps,r=a.value,i=a.onChange;t!==r&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,a=e.shouldRenderSuggestions,r=n.value;return t.length>0&&a(r)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,r=t.renderInputComponent,i=t.onSuggestionsFetchRequested,o=t.renderSuggestion,s=t.inputProps,p=t.multiSection,d=t.renderSectionTitle,g=t.id,m=t.getSectionSuggestions,h=t.theme,b=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,w=this.state,k=w.isFocused,C=w.isCollapsed,O=w.highlightedSectionIndex,x=w.highlightedSuggestionIndex,_=w.valueBeforeUpDown,S=v?f:this.props.shouldRenderSuggestions,E=s.value,j=s.onFocus,T=s.onKeyDown,P=this.willRenderSuggestions(this.props),B=v||k&&!C&&P,M=B?n:[],N=a({},s,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=S(E);e.setState({isFocused:!0,isCollapsed:!n}),j&&j(t),n&&i({value:E,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=S(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(a({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,a){var r=t.keyCode;switch(r){case 40:case 38:if(C)S(E)&&(i({value:E,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var l=a.newHighlightedSectionIndex,o=a.newHighlightedItemIndex,s=void 0;s=null===o?null===_?E:_:e.getSuggestionValueByIndex(l,o),e.updateHighlightedSuggestion(l,o,E),e.maybeCallOnChange(t,s,40===r?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout(function(){e.justPressedUpDown=!1});break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(B&&!v&&e.closeSuggestions(),null!=u){var c=b(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:x,sectionIndex:O,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout(function(){e.justSelectedSuggestion=!1})}break;case 27:B&&t.preventDefault();var p=B&&!v;if(null===_){if(!p){e.maybeCallOnChange(t,"","escape"),S("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,_,"escape");p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}T&&T(t)}}),I={query:this.getQuery()};return l.default.createElement(u.default,{multiSection:p,items:M,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:o,renderItemData:I,renderSectionTitle:d,getSectionItems:m,highlightedSectionIndex:O,highlightedItemIndex:x,inputProps:N,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(h),id:g,ref:this.storeAutowhateverRef})}}]),t}();d.propTypes={suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string},d.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return l.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1"};var g=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var a=n.sectionIndex,r=n.itemIndex;e.updateHighlightedSuggestion(a,r),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout(function(){e.justMouseEntered=!1})},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var a=e.props,r=a.alwaysRenderSuggestions,i=a.onSuggestionSelected,l=a.onSuggestionsFetchRequested;i&&i(t,n),r?l({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,a=n.alwaysRenderSuggestions,r=n.focusInputOnSuggestionClick,i=e.getSuggestionIndices(e.findSuggestionElement(t.target)),l=i.sectionIndex,o=i.suggestionIndex,s=e.getSuggestion(l,o),u=e.props.getSuggestionValue(s);e.maybeCallOnChange(t,u,"click"),e.onSuggestionSelected(t,{suggestion:s,suggestionValue:u,suggestionIndex:o,sectionIndex:l,method:"click"}),a||e.closeSuggestions(),!0===r?e.input.focus():e.onBlur(),setTimeout(function(){e.justSelectedSuggestion=!1})},this.onBlur=function(){var t=e.props,n=t.inputProps,a=t.shouldRenderSuggestions,r=n.value,i=n.onBlur,l=e.getHighlightedSuggestion(),o=a(r);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!o}),i&&i(e.blurEvent,{highlightedSuggestion:l})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,a=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:a,query:e.getQuery()})}};t.default=d},function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var a=0;a<n;a++)if(e[a]!==t[a])return!1;return!0}},function(e,t,n){"use strict";e.exports=n(145).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&o.return&&o.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=n(2),o=d(l),s=d(n(11)),u=d(n(146)),c=d(n(147)),p=d(n(149)),f=d(n(150));function d(e){return e&&e.__esModule?e:{default:e}}var g={},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,a=t.inputProps,i=t.highlightedSectionIndex,l=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var o="ArrowDown"===e.key?"next":"prev",s=n.sectionIterator[o]([i,l]),u=r(s,2),c=u[0],p=u[1];a.onKeyDown(e,{newHighlightedSectionIndex:c,newHighlightedItemIndex:p});break;default:a.onKeyDown(e,{highlightedSectionIndex:i,highlightedItemIndex:l})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.Component),i(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map(function(t){return e.getSectionItems(t)}),this.sectionsLengths=this.sectionsItems.map(function(e){return e.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(e){return 0===e}))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,u.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,c.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,a=n.id,r=n.items,i=n.renderItem,l=n.renderItemData,s=n.renderSectionTitle,u=n.highlightedSectionIndex,c=n.highlightedItemIndex,d=n.itemProps;return r.map(function(n,r){var g="react-autowhatever-"+a+"-",m=g+"section-"+r+"-",h=0===r;return o.default.createElement("div",t(m+"container","sectionContainer",h&&"sectionContainerFirst"),o.default.createElement(p.default,{section:n,renderSectionTitle:s,theme:t,sectionKeyPrefix:m}),o.default.createElement(f.default,{items:e.sectionsItems[r],itemProps:d,renderItem:i,renderItemData:l,sectionIndex:r,highlightedItemIndex:u===r?c:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:g,ref:e.storeItemsListReference}))})}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,a=n.id,r=n.renderItem,i=n.renderItemData,l=n.highlightedSectionIndex,s=n.highlightedItemIndex,u=n.itemProps;return o.default.createElement(f.default,{items:e,itemProps:u,renderItem:r,renderItemData:i,highlightedItemIndex:null===l?s:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+a+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,a=t.scrollTop;n<a?a=n:n+e.offsetHeight>a+t.offsetHeight&&(a=n+e.offsetHeight-t.offsetHeight),a!==t.scrollTop&&(t.scrollTop=a)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,r=t.multiSection,i=t.renderInputComponent,l=t.renderItemsContainer,s=t.highlightedSectionIndex,u=t.highlightedItemIndex,c=this.state.isInputFocused,p=r?this.renderSections():this.renderItems(),f=null!==p,d=this.getItemId(s,u),g="react-autowhatever-"+n,m=a({role:"combobox","aria-haspopup":"listbox","aria-owns":g,"aria-expanded":f},e("react-autowhatever-"+n+"-container","container",f&&"containerOpen"),this.props.containerProps),h=i(a({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":g,"aria-activedescendant":d},e("react-autowhatever-"+n+"-input","input",f&&"inputOpen",c&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),b=l({containerProps:a({id:g,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",f&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:p});return o.default.createElement("div",m,h,b)}}]),t}();m.propTypes={id:s.default.string,multiSection:s.default.bool,renderInputComponent:s.default.func,renderItemsContainer:s.default.func,items:s.default.array.isRequired,renderItem:s.default.func,renderItemData:s.default.object,renderSectionTitle:s.default.func,getSectionItems:s.default.func,containerProps:s.default.object,inputProps:s.default.object,itemProps:s.default.oneOfType([s.default.object,s.default.func]),highlightedSectionIndex:s.default.number,highlightedItemIndex:s.default.number,theme:s.default.oneOfType([s.default.object,s.default.array])},m.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return o.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:g,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:g,inputProps:g,itemProps:g,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=m},function(e,t,n){"use strict";var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&o.return&&o.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var t=e.data,n=e.multiSection;function r(e){var r=a(e,2),i=r[0],l=r[1];return n?null===l||l===t[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<t.length&&0===t[e];)e++;return e===t.length?null:e}(i))?[null,null]:[i,0]:[i,l+1]:0===t||l===t-1?[null,null]:null===l?[null,0]:[null,l+1]}return{next:r,prev:function(e){var r=a(e,2),i=r[0],l=r[1];return n?null===l||0===l?null===(i=function(e){for(null===e?e=t.length-1:e--;e>=0&&0===t[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,t[i]-1]:[i,l-1]:0===t||0===l?[null,null]:null===l?[null,t-1]:[null,l-1]},isLast:function(e){return null===r(e)[1]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&o.return&&o.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,l=n(148),o=(i=l)&&i.__esModule?i:{default:i},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=a(t,2),i=n[0],l=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var u=n.map(function(e){return i[e]}).filter(s);return"string"==typeof u[0]||"function"==typeof l?{key:e,className:l?l.apply(void 0,r(u)):u.join(" ")}:{key:e,style:o.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},function(e,t,n){"use strict";var a=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter(function(t){return a.call(e,t)})}e.exports=Object.assign||function(e,t){for(var n,a,l=r(e),o=1;o<arguments.length;o++){n=arguments[o],a=i(Object(n));for(var s=0;s<a.length;s++)l[a[s]]=n[a[s]]}return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),r=n(2),i=s(r),l=s(n(11)),o=s(n(40));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,o.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,a=e.theme,r=e.sectionKeyPrefix,l=n(t);return l?i.default.createElement("div",a(r+"title","sectionTitle"),l):null}}]),t}();u.propTypes={section:l.default.any.isRequired,renderSectionTitle:l.default.func.isRequired,theme:l.default.func.isRequired,sectionKeyPrefix:l.default.string.isRequired},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),i=n(2),l=c(i),o=c(n(11)),s=c(n(151)),u=c(n(40));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=a=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),a.storeHighlightedItemReference=function(e){a.props.onHighlightedItemChange(null===e?null:e.item)},p(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.itemProps,i=t.renderItem,o=t.renderItemData,u=t.sectionIndex,c=t.highlightedItemIndex,p=t.getItemId,f=t.theme,d=t.keyPrefix,g=null===u?d:d+"section-"+u+"-",m="function"==typeof r;return l.default.createElement("ul",a({role:"listbox"},f(g+"items-list","itemsList")),n.map(function(t,n){var d=0===n,h=n===c,b=g+"item-"+n,v=m?r({sectionIndex:u,itemIndex:n}):r,y=a({id:p(u,n),"aria-selected":h},f(b,"item",d&&"itemFirst",h&&"itemHighlighted"),v);return h&&(y.ref=e.storeHighlightedItemReference),l.default.createElement(s.default,a({},y,{sectionIndex:u,isHighlighted:h,itemIndex:n,item:t,renderItem:i,renderItemData:o}))}))}}]),t}();f.propTypes={items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired},f.defaultProps={sectionIndex:null},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),i=n(2),l=u(i),o=u(n(11)),s=u(n(40));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=a=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),a.storeItemReference=function(e){null!==e&&(a.item=e)},a.onMouseEnter=function(e){var t=a.props,n=t.sectionIndex,r=t.itemIndex;a.props.onMouseEnter(e,{sectionIndex:n,itemIndex:r})},a.onMouseLeave=function(e){var t=a.props,n=t.sectionIndex,r=t.itemIndex;a.props.onMouseLeave(e,{sectionIndex:n,itemIndex:r})},a.onMouseDown=function(e){var t=a.props,n=t.sectionIndex,r=t.itemIndex;a.props.onMouseDown(e,{sectionIndex:n,itemIndex:r})},a.onClick=function(e){var t=a.props,n=t.sectionIndex,r=t.itemIndex;a.props.onClick(e,{sectionIndex:n,itemIndex:r})},c(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,r=e.renderItem,i=e.renderItemData,o=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete o.sectionIndex,delete o.itemIndex,"function"==typeof o.onMouseEnter&&(o.onMouseEnter=this.onMouseEnter),"function"==typeof o.onMouseLeave&&(o.onMouseLeave=this.onMouseLeave),"function"==typeof o.onMouseDown&&(o.onMouseDown=this.onMouseDown),"function"==typeof o.onClick&&(o.onClick=this.onClick),l.default.createElement("li",a({role:"option"},o,{ref:this.storeItemReference}),r(n,a({isHighlighted:t},i)))}}]),t}();p.propTypes={sectionIndex:o.default.number,isHighlighted:o.default.bool.isRequired,itemIndex:o.default.number.isRequired,item:o.default.any.isRequired,renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,onMouseEnter:o.default.func,onMouseLeave:o.default.func,onMouseDown:o.default.func,onClick:o.default.func},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},function(e,t,n){"use strict";
|
26 |
/** @license React v16.12.0
|
27 |
* react-dom.production.min.js
|
28 |
*
|
@@ -30,7 +30,7 @@ object-assign
|
|
30 |
*
|
31 |
* This source code is licensed under the MIT license found in the
|
32 |
* LICENSE file in the root directory of this source tree.
|
33 |
-
*/var a=n(2),r=n(45),i=n(154);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!a)throw Error(l(227));var o=null,s={};function u(){if(o)for(var e in s){var t=s[e],n=o.indexOf(e);if(!(-1<n))throw Error(l(96,e));if(!p[n]){if(!t.extractEvents)throw Error(l(97,e));for(var a in p[n]=t,n=t.eventTypes){var r=void 0,i=n[a],u=t,d=a;if(f.hasOwnProperty(d))throw Error(l(99,d));f[d]=i;var g=i.phasedRegistrationNames;if(g){for(r in g)g.hasOwnProperty(r)&&c(g[r],u,d);r=!0}else i.registrationName?(c(i.registrationName,u,d),r=!0):r=!1;if(!r)throw Error(l(98,a,e))}}}}function c(e,t,n){if(d[e])throw Error(l(100,e));d[e]=t,g[e]=t.eventTypes[n].dependencies}var p=[],f={},d={},g={};var m=!1,h=null,b=!1,v=null,y={onError:function(e){m=!0,h=e}};function w(e,t,n,a,r,i,l,o,s){m=!1,h=null,function(e,t,n,a,r,i,l,o,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(y,arguments)}var k=null,C=null,O=null;function x(e,t,n){var a=e.type||"unknown-event";e.currentTarget=O(n),function(e,t,n,a,r,i,o,s,u){if(w.apply(this,arguments),m){if(!m)throw Error(l(198));var c=h;m=!1,h=null,b||(b=!0,v=c)}}(a,t,void 0,e),e.currentTarget=null}function _(e,t){if(null==t)throw Error(l(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function S(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var E=null;function j(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var a=0;a<t.length&&!e.isPropagationStopped();a++)x(e,t[a],n[a]);else t&&x(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function T(e){if(null!==e&&(E=_(E,e)),e=E,E=null,e){if(S(e,j),E)throw Error(l(95));if(b)throw e=v,b=!1,v=null,e}}var P={injectEventPluginOrder:function(e){if(o)throw Error(l(101));o=Array.prototype.slice.call(e),u()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var a=e[t];if(!s.hasOwnProperty(t)||s[t]!==a){if(s[t])throw Error(l(102,t));s[t]=a,n=!0}}n&&u()}};function B(e,t){var n=e.stateNode;if(!n)return null;var a=k(n);if(!a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}var M=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;M.hasOwnProperty("ReactCurrentDispatcher")||(M.ReactCurrentDispatcher={current:null}),M.hasOwnProperty("ReactCurrentBatchConfig")||(M.ReactCurrentBatchConfig={suspense:null});var N=/^(.*)[\\\/]/,I="function"==typeof Symbol&&Symbol.for,D=I?Symbol.for("react.element"):60103,R=I?Symbol.for("react.portal"):60106,z=I?Symbol.for("react.fragment"):60107,A=I?Symbol.for("react.strict_mode"):60108,L=I?Symbol.for("react.profiler"):60114,F=I?Symbol.for("react.provider"):60109,U=I?Symbol.for("react.context"):60110,H=I?Symbol.for("react.concurrent_mode"):60111,V=I?Symbol.for("react.forward_ref"):60112,G=I?Symbol.for("react.suspense"):60113,W=I?Symbol.for("react.suspense_list"):60120,q=I?Symbol.for("react.memo"):60115,K=I?Symbol.for("react.lazy"):60116;I&&Symbol.for("react.fundamental"),I&&Symbol.for("react.responder"),I&&Symbol.for("react.scope");var $="function"==typeof Symbol&&Symbol.iterator;function Y(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case z:return"Fragment";case R:return"Portal";case L:return"Profiler";case A:return"StrictMode";case G:return"Suspense";case W:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case U:return"Context.Consumer";case F:return"Context.Provider";case V:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case q:return Q(e.type);case K:if(e=1===e._status?e._result:null)return Q(e)}return null}function X(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var a=e._debugOwner,r=e._debugSource,i=Q(e.type);n=null,a&&(n=Q(a.type)),a=i,i="",r?i=" (at "+r.fileName.replace(N,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(a||"Unknown")+i}t+=n,e=e.return}while(e);return t}var J=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Z=null,ee=null,te=null;function ne(e){if(e=C(e)){if("function"!=typeof Z)throw Error(l(280));var t=k(e.stateNode);Z(e.stateNode,e.type,t)}}function ae(e){ee?te?te.push(e):te=[e]:ee=e}function re(){if(ee){var e=ee,t=te;if(te=ee=null,ne(e),t)for(e=0;e<t.length;e++)ne(t[e])}}function ie(e,t){return e(t)}function le(e,t,n,a){return e(t,n,a)}function oe(){}var se=ie,ue=!1,ce=!1;function pe(){null===ee&&null===te||(oe(),re())}new Map;var fe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,de=Object.prototype.hasOwnProperty,ge={},me={};function he(e,t,n,a,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){be[e]=new he(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];be[t]=new he(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new he(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new he(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){be[e]=new he(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){be[e]=new he(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){be[e]=new he(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){be[e]=new he(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){be[e]=new he(e,5,!1,e.toLowerCase(),null,!1)});var ve=/[\-:]([a-z])/g;function ye(e){return e[1].toUpperCase()}function we(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ke(e,t,n,a){var r=be.hasOwnProperty(t)?be[t]:null;(null!==r?0===r.type:!a&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,a){if(null==t||function(e,t,n,a){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!a&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,a))return!0;if(a)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,a)&&(n=null),a||null===r?function(e){return!!de.call(me,e)||!de.call(ge,e)&&(fe.test(e)?me[e]=!0:(ge[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,a=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}function Ce(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Oe(e){e._valueTracker||(e._valueTracker=function(e){var t=Ce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){a=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ce(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Se(e,t){var n=null==t.defaultValue?"":t.defaultValue,a=null!=t.checked?t.checked:t.defaultChecked;n=we(null!=t.value?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&ke(e,"checked",t,!1)}function je(e,t){Ee(e,t);var n=we(t.value),a=t.type;if(null!=n)"number"===a?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===a||"reset"===a)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pe(e,t.type,we(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!("submit"!==a&&"reset"!==a||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Be(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return a.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Me(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+we(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(a&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(l(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw Error(l(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(l(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:we(n)}}function De(e,t){var n=we(t.value),a=we(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=a&&(e.defaultValue=""+a)}function Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ve,ye);be[t]=new he(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ve,ye);be[t]=new he(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ve,ye);be[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){be[e]=new he(e,1,!1,e.toLowerCase(),null,!1)}),be.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){be[e]=new he(e,1,!1,e.toLowerCase(),null,!0)});var ze={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Fe,Ue=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==ze.svg||"innerHTML"in e)e.innerHTML=t;else{for((Fe=Fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function He(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ge={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},We={},qe={};function Ke(e){if(We[e])return We[e];if(!Ge[e])return e;var t,n=Ge[e];for(t in n)if(n.hasOwnProperty(t)&&t in qe)return We[e]=n[t];return e}J&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Ge.animationend.animation,delete Ge.animationiteration.animation,delete Ge.animationstart.animation),"TransitionEvent"in window||delete Ge.transitionend.transition);var $e=Ke("animationend"),Ye=Ke("animationiteration"),Qe=Ke("animationstart"),Xe=Ke("transitionend"),Je="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(l(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(a=r.return)){n=a;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return tt(r),e;if(i===a)return tt(r),t;i=i.sibling}throw Error(l(188))}if(n.return!==a.return)n=r,a=i;else{for(var o=!1,s=r.child;s;){if(s===n){o=!0,n=r,a=i;break}if(s===a){o=!0,a=r,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,a=r;break}if(s===a){o=!0,a=i,n=r;break}s=s.sibling}if(!o)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var at,rt,it,lt=!1,ot=[],st=null,ut=null,ct=null,pt=new Map,ft=new Map,dt=[],gt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),mt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function ht(e,t,n,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:a}}function bt(e,t){switch(e){case"focus":case"blur":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,a,r){return null===e||e.nativeEvent!==r?(e=ht(t,n,a,r),null!==t&&(null!==(t=ca(t))&&rt(t)),e):(e.eventSystemFlags|=a,e)}function yt(e){var t=ua(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,function(){it(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function wt(e){if(null!==e.blockedOn)return!1;var t=jn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);if(null!==t){var n=ca(t);return null!==n&&rt(n),e.blockedOn=t,!1}return!0}function kt(e,t,n){wt(e)&&n.delete(t)}function Ct(){for(lt=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ca(e.blockedOn))&&at(e);break}var t=jn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);null!==t?e.blockedOn=t:ot.shift()}null!==st&&wt(st)&&(st=null),null!==ut&&wt(ut)&&(ut=null),null!==ct&&wt(ct)&&(ct=null),pt.forEach(kt),ft.forEach(kt)}function Ot(e,t){e.blockedOn===t&&(e.blockedOn=null,lt||(lt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ct)))}function xt(e){function t(t){return Ot(t,e)}if(0<ot.length){Ot(ot[0],e);for(var n=1;n<ot.length;n++){var a=ot[n];a.blockedOn===e&&(a.blockedOn=null)}}for(null!==st&&Ot(st,e),null!==ut&&Ot(ut,e),null!==ct&&Ot(ct,e),pt.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(a=dt[n]).blockedOn===e&&(a.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function _t(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function St(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Et(e,t,n){(t=B(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=_(n._dispatchListeners,t),n._dispatchInstances=_(n._dispatchInstances,e))}function jt(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=St(t);for(t=n.length;0<t--;)Et(n[t],"captured",e);for(t=0;t<n.length;t++)Et(n[t],"bubbled",e)}}function Tt(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=B(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=_(n._dispatchListeners,t),n._dispatchInstances=_(n._dispatchInstances,e))}function Pt(e){e&&e.dispatchConfig.registrationName&&Tt(e._targetInst,null,e)}function Bt(e){S(e,jt)}function Mt(){return!0}function Nt(){return!1}function It(e,t,n,a){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=a:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Mt:Nt,this.isPropagationStopped=Nt,this}function Dt(e,t,n,a){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,a),r}return new this(e,t,n,a)}function Rt(e){if(!(e instanceof this))throw Error(l(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function zt(e){e.eventPool=[],e.getPooled=Dt,e.release=Rt}r(It.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Mt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Mt)},persist:function(){this.isPersistent=Mt},isPersistent:Nt,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Nt,this._dispatchInstances=this._dispatchListeners=null}}),It.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},It.extend=function(e){function t(){}function n(){return a.apply(this,arguments)}var a=this;t.prototype=a.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},a.Interface,e),n.extend=a.extend,zt(n),n},zt(It);var At=It.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Lt=It.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ft=It.extend({view:null,detail:null}),Ut=Ft.extend({relatedTarget:null});function Ht(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Vt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Wt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Wt[e])&&!!t[e]}function Kt(){return qt}for(var $t=Ft.extend({key:function(e){if(e.key){var t=Vt[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ht(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Gt[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Kt,charCode:function(e){return"keypress"===e.type?Ht(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ht(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Yt=0,Qt=0,Xt=!1,Jt=!1,Zt=Ft.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Kt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Yt;return Yt=e.screenX,Xt?"mousemove"===e.type?e.screenX-t:0:(Xt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Qt;return Qt=e.screenY,Jt?"mousemove"===e.type?e.screenY-t:0:(Jt=!0,0)}}),en=Zt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),tn=Zt.extend({dataTransfer:null}),nn=Ft.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Kt}),an=It.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),rn=Zt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ln=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[$e,"animationEnd",2],[Ye,"animationIteration",2],[Qe,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Xe,"transitionEnd",2],["waiting","waiting",2]],on={},sn={},un=0;un<ln.length;un++){var cn=ln[un],pn=cn[0],fn=cn[1],dn=cn[2],gn="on"+(fn[0].toUpperCase()+fn.slice(1)),mn={phasedRegistrationNames:{bubbled:gn,captured:gn+"Capture"},dependencies:[pn],eventPriority:dn};on[fn]=mn,sn[pn]=mn}var hn={eventTypes:on,getEventPriority:function(e){return void 0!==(e=sn[e])?e.eventPriority:2},extractEvents:function(e,t,n,a){var r=sn[e];if(!r)return null;switch(e){case"keypress":if(0===Ht(n))return null;case"keydown":case"keyup":e=$t;break;case"blur":case"focus":e=Ut;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=tn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=nn;break;case $e:case Ye:case Qe:e=At;break;case Xe:e=an;break;case"scroll":e=Ft;break;case"wheel":e=rn;break;case"copy":case"cut":case"paste":e=Lt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=en;break;default:e=It}return Bt(t=e.getPooled(r,t,n,a)),t}},bn=i.unstable_UserBlockingPriority,vn=i.unstable_runWithPriority,yn=hn.getEventPriority,wn=10,kn=[];function Cn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var a=n;if(3===a.tag)a=a.stateNode.containerInfo;else{for(;a.return;)a=a.return;a=3!==a.tag?null:a.stateNode.containerInfo}if(!a)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=ua(a)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=_t(e.nativeEvent);a=e.topLevelType;for(var i=e.nativeEvent,l=e.eventSystemFlags,o=null,s=0;s<p.length;s++){var u=p[s];u&&(u=u.extractEvents(a,t,i,r,l))&&(o=_(o,u))}T(o)}}var On=!0;function xn(e,t){_n(t,e,!1)}function _n(e,t,n){switch(yn(t)){case 0:var a=function(e,t,n){ue||oe();var a=En,r=ue;ue=!0;try{le(a,e,t,n)}finally{(ue=r)||pe()}}.bind(null,t,1);break;case 1:a=function(e,t,n){vn(bn,En.bind(null,e,t,n))}.bind(null,t,1);break;default:a=En.bind(null,t,1)}n?e.addEventListener(t,a,!0):e.addEventListener(t,a,!1)}function Sn(e,t,n,a){if(kn.length){var r=kn.pop();r.topLevelType=e,r.eventSystemFlags=t,r.nativeEvent=n,r.targetInst=a,e=r}else e={topLevelType:e,eventSystemFlags:t,nativeEvent:n,targetInst:a,ancestors:[]};try{if(t=Cn,n=e,ce)t(n,void 0);else{ce=!0;try{se(t,n,void 0)}finally{ce=!1,pe()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,kn.length<wn&&kn.push(e)}}function En(e,t,n){if(On)if(0<ot.length&&-1<gt.indexOf(e))e=ht(null,e,t,n),ot.push(e);else{var a=jn(e,t,n);null===a?bt(e,n):-1<gt.indexOf(e)?(e=ht(a,e,t,n),ot.push(e)):function(e,t,n,a){switch(t){case"focus":return st=vt(st,e,t,n,a),!0;case"dragenter":return ut=vt(ut,e,t,n,a),!0;case"mouseover":return ct=vt(ct,e,t,n,a),!0;case"pointerover":var r=a.pointerId;return pt.set(r,vt(pt.get(r)||null,e,t,n,a)),!0;case"gotpointercapture":return r=a.pointerId,ft.set(r,vt(ft.get(r)||null,e,t,n,a)),!0}return!1}(a,e,t,n)||(bt(e,n),Sn(e,t,n,null))}}function jn(e,t,n){var a=_t(n);if(null!==(a=ua(a))){var r=Ze(a);if(null===r)a=null;else{var i=r.tag;if(13===i){if(null!==(a=et(r)))return a;a=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;a=null}else r!==a&&(a=null)}}return Sn(e,t,n,a),null}function Tn(e){if(!J)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var Pn=new("function"==typeof WeakMap?WeakMap:Map);function Bn(e){var t=Pn.get(e);return void 0===t&&(t=new Set,Pn.set(e,t)),t}function Mn(e,t,n){if(!n.has(e)){switch(e){case"scroll":_n(t,"scroll",!0);break;case"focus":case"blur":_n(t,"focus",!0),_n(t,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Tn(e)&&_n(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Je.indexOf(e)&&xn(e,t)}n.add(e)}}var Nn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];function Dn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}function Rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var a=0===n.indexOf("--"),r=Dn(n,t[n],a);"float"===n&&(n="cssFloat"),a?e.setProperty(n,r):e[n]=r}}Object.keys(Nn).forEach(function(e){In.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]})});var zn=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function An(e,t){if(t){if(zn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(l(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(l(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(l(62,""))}}function Ln(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Fn(e,t){var n=Bn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=g[t];for(var a=0;a<t.length;a++)Mn(t[a],e,n)}function Un(){}function Hn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Vn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gn(e,t){var n,a=Vn(e);for(e=0;a;){if(3===a.nodeType){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Vn(a)}}function Wn(){for(var e=window,t=Hn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Hn((e=t.contentWindow).document)}return t}function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Kn="$",$n="/$",Yn="$?",Qn="$!",Xn=null,Jn=null;function Zn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ea(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ta="function"==typeof setTimeout?setTimeout:void 0,na="function"==typeof clearTimeout?clearTimeout:void 0;function aa(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function ra(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Kn||n===Qn||n===Yn){if(0===t)return e;t--}else n===$n&&t++}e=e.previousSibling}return null}var ia=Math.random().toString(36).slice(2),la="__reactInternalInstance$"+ia,oa="__reactEventHandlers$"+ia,sa="__reactContainere$"+ia;function ua(e){var t=e[la];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sa]||n[la]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ra(e);null!==e;){if(n=e[la])return n;e=ra(e)}return t}n=(e=n).parentNode}return null}function ca(e){return!(e=e[la]||e[sa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(l(33))}function fa(e){return e[oa]||null}var da=null,ga=null,ma=null;function ha(){if(ma)return ma;var e,t,n=ga,a=n.length,r="value"in da?da.value:da.textContent,i=r.length;for(e=0;e<a&&n[e]===r[e];e++);var l=a-e;for(t=1;t<=l&&n[a-t]===r[i-t];t++);return ma=r.slice(e,1<t?1-t:void 0)}var ba=It.extend({data:null}),va=It.extend({data:null}),ya=[9,13,27,32],wa=J&&"CompositionEvent"in window,ka=null;J&&"documentMode"in document&&(ka=document.documentMode);var Ca=J&&"TextEvent"in window&&!ka,Oa=J&&(!wa||ka&&8<ka&&11>=ka),xa=String.fromCharCode(32),_a={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Sa=!1;function Ea(e,t){switch(e){case"keyup":return-1!==ya.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ja(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ta=!1;var Pa={eventTypes:_a,extractEvents:function(e,t,n,a){var r;if(wa)e:{switch(e){case"compositionstart":var i=_a.compositionStart;break e;case"compositionend":i=_a.compositionEnd;break e;case"compositionupdate":i=_a.compositionUpdate;break e}i=void 0}else Ta?Ea(e,n)&&(i=_a.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=_a.compositionStart);return i?(Oa&&"ko"!==n.locale&&(Ta||i!==_a.compositionStart?i===_a.compositionEnd&&Ta&&(r=ha()):(ga="value"in(da=a)?da.value:da.textContent,Ta=!0)),i=ba.getPooled(i,t,n,a),r?i.data=r:null!==(r=ja(n))&&(i.data=r),Bt(i),r=i):r=null,(e=Ca?function(e,t){switch(e){case"compositionend":return ja(t);case"keypress":return 32!==t.which?null:(Sa=!0,xa);case"textInput":return(e=t.data)===xa&&Sa?null:e;default:return null}}(e,n):function(e,t){if(Ta)return"compositionend"===e||!wa&&Ea(e,t)?(e=ha(),ma=ga=da=null,Ta=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Oa&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=va.getPooled(_a.beforeInput,t,n,a)).data=e,Bt(t)):t=null,null===r?t:null===t?r:[r,t]}},Ba={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ma(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ba[e.type]:"textarea"===t}var Na={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Ia(e,t,n){return(e=It.getPooled(Na.change,e,t,n)).type="change",ae(n),Bt(e),e}var Da=null,Ra=null;function za(e){T(e)}function Aa(e){if(xe(pa(e)))return e}function La(e,t){if("change"===e)return t}var Fa=!1;function Ua(){Da&&(Da.detachEvent("onpropertychange",Ha),Ra=Da=null)}function Ha(e){if("value"===e.propertyName&&Aa(Ra))if(e=Ia(Ra,e,_t(e)),ue)T(e);else{ue=!0;try{ie(za,e)}finally{ue=!1,pe()}}}function Va(e,t,n){"focus"===e?(Ua(),Ra=n,(Da=t).attachEvent("onpropertychange",Ha)):"blur"===e&&Ua()}function Ga(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Aa(Ra)}function Wa(e,t){if("click"===e)return Aa(t)}function qa(e,t){if("input"===e||"change"===e)return Aa(t)}J&&(Fa=Tn("input")&&(!document.documentMode||9<document.documentMode));var Ka,$a={eventTypes:Na,_isInputEventSupported:Fa,extractEvents:function(e,t,n,a){var r=t?pa(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var l=La;else if(Ma(r))if(Fa)l=qa;else{l=Ga;var o=Va}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(l=Wa);if(l&&(l=l(e,t)))return Ia(l,n,a);o&&o(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Pe(r,"number",r.value)}},Ya={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qa={eventTypes:Ya,extractEvents:function(e,t,n,a,r){var i="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e;if(i&&0==(32&r)&&(n.relatedTarget||n.fromElement)||!l&&!i)return null;if(r=a.window===a?a:(r=a.ownerDocument)?r.defaultView||r.parentWindow:window,l?(l=t,null!==(t=(t=n.relatedTarget||n.toElement)?ua(t):null)&&(t!==(i=Ze(t))||5!==t.tag&&6!==t.tag)&&(t=null)):l=null,l===t)return null;if("mouseout"===e||"mouseover"===e)var o=Zt,s=Ya.mouseLeave,u=Ya.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(o=en,s=Ya.pointerLeave,u=Ya.pointerEnter,c="pointer");if(e=null==l?r:pa(l),r=null==t?r:pa(t),(s=o.getPooled(s,l,n,a)).type=c+"leave",s.target=e,s.relatedTarget=r,(a=o.getPooled(u,t,n,a)).type=c+"enter",a.target=r,a.relatedTarget=e,c=t,(o=l)&&c)e:{for(e=c,l=0,t=u=o;t;t=St(t))l++;for(t=0,r=e;r;r=St(r))t++;for(;0<l-t;)u=St(u),l--;for(;0<t-l;)e=St(e),t--;for(;l--;){if(u===e||u===e.alternate)break e;u=St(u),e=St(e)}u=null}else u=null;for(e=u,u=[];o&&o!==e&&(null===(l=o.alternate)||l!==e);)u.push(o),o=St(o);for(o=[];c&&c!==e&&(null===(l=c.alternate)||l!==e);)o.push(c),c=St(c);for(c=0;c<u.length;c++)Tt(u[c],"bubbled",s);for(c=o.length;0<c--;)Tt(o[c],"captured",a);return n===Ka?(Ka=null,[s]):(Ka=n,[s,a])}};var Xa="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ja=Object.prototype.hasOwnProperty;function Za(e,t){if(Xa(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++)if(!Ja.call(t,n[a])||!Xa(e[n[a]],t[n[a]]))return!1;return!0}var er=J&&"documentMode"in document&&11>=document.documentMode,tr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},nr=null,ar=null,rr=null,ir=!1;function lr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ir||null==nr||nr!==Hn(n)?null:("selectionStart"in(n=nr)&&qn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},rr&&Za(rr,n)?null:(rr=n,(e=It.getPooled(tr.select,ar,e,t)).type="select",e.target=nr,Bt(e),e))}var or={eventTypes:tr,extractEvents:function(e,t,n,a){var r,i=a.window===a?a.document:9===a.nodeType?a:a.ownerDocument;if(!(r=!i)){e:{i=Bn(i),r=g.onSelect;for(var l=0;l<r.length;l++)if(!i.has(r[l])){i=!1;break e}i=!0}r=!i}if(r)return null;switch(i=t?pa(t):window,e){case"focus":(Ma(i)||"true"===i.contentEditable)&&(nr=i,ar=t,rr=null);break;case"blur":rr=ar=nr=null;break;case"mousedown":ir=!0;break;case"contextmenu":case"mouseup":case"dragend":return ir=!1,lr(n,a);case"selectionchange":if(er)break;case"keydown":case"keyup":return lr(n,a)}return null}};P.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=fa,C=ca,O=pa,P.injectEventPluginsByName({SimpleEventPlugin:hn,EnterLeaveEventPlugin:Qa,ChangeEventPlugin:$a,SelectEventPlugin:or,BeforeInputEventPlugin:Pa}),new Set;var sr=[],ur=-1;function cr(e){0>ur||(e.current=sr[ur],sr[ur]=null,ur--)}function pr(e,t){sr[++ur]=e.current,e.current=t}var fr={},dr={current:fr},gr={current:!1},mr=fr;function hr(e,t){var n=e.type.contextTypes;if(!n)return fr;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return a&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function br(e){return null!=(e=e.childContextTypes)}function vr(e){cr(gr),cr(dr)}function yr(e){cr(gr),cr(dr)}function wr(e,t,n){if(dr.current!==fr)throw Error(l(168));pr(dr,t),pr(gr,n)}function kr(e,t,n){var a=e.stateNode;if(e=t.childContextTypes,"function"!=typeof a.getChildContext)return n;for(var i in a=a.getChildContext())if(!(i in e))throw Error(l(108,Q(t)||"Unknown",i));return r({},n,{},a)}function Cr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||fr,mr=dr.current,pr(dr,t),pr(gr,gr.current),!0}function Or(e,t,n){var a=e.stateNode;if(!a)throw Error(l(169));n?(t=kr(e,t,mr),a.__reactInternalMemoizedMergedChildContext=t,cr(gr),cr(dr),pr(dr,t)):cr(gr),pr(gr,n)}var xr=i.unstable_runWithPriority,_r=i.unstable_scheduleCallback,Sr=i.unstable_cancelCallback,Er=i.unstable_shouldYield,jr=i.unstable_requestPaint,Tr=i.unstable_now,Pr=i.unstable_getCurrentPriorityLevel,Br=i.unstable_ImmediatePriority,Mr=i.unstable_UserBlockingPriority,Nr=i.unstable_NormalPriority,Ir=i.unstable_LowPriority,Dr=i.unstable_IdlePriority,Rr={},zr=void 0!==jr?jr:function(){},Ar=null,Lr=null,Fr=!1,Ur=Tr(),Hr=1e4>Ur?Tr:function(){return Tr()-Ur};function Vr(){switch(Pr()){case Br:return 99;case Mr:return 98;case Nr:return 97;case Ir:return 96;case Dr:return 95;default:throw Error(l(332))}}function Gr(e){switch(e){case 99:return Br;case 98:return Mr;case 97:return Nr;case 96:return Ir;case 95:return Dr;default:throw Error(l(332))}}function Wr(e,t){return e=Gr(e),xr(e,t)}function qr(e,t,n){return e=Gr(e),_r(e,t,n)}function Kr(e){return null===Ar?(Ar=[e],Lr=_r(Br,Yr)):Ar.push(e),Rr}function $r(){if(null!==Lr){var e=Lr;Lr=null,Sr(e)}Yr()}function Yr(){if(!Fr&&null!==Ar){Fr=!0;var e=0;try{var t=Ar;Wr(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Ar=null}catch(t){throw null!==Ar&&(Ar=Ar.slice(e+1)),_r(Br,$r),t}finally{Fr=!1}}}var Qr=3;function Xr(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Jr(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Zr={current:null},ei=null,ti=null,ni=null;function ai(){ni=ti=ei=null}function ri(e,t){var n=e.type._context;pr(Zr,n._currentValue),n._currentValue=t}function ii(e){var t=Zr.current;cr(Zr),e.type._context._currentValue=t}function li(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function oi(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ul=!0),e.firstContext=null)}function si(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(l(308));ti=t,ei.dependencies={expirationTime:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var ui=!1;function ci(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function pi(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function fi(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function di(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function gi(e,t){var n=e.alternate;if(null===n){var a=e.updateQueue,r=null;null===a&&(a=e.updateQueue=ci(e.memoizedState))}else a=e.updateQueue,r=n.updateQueue,null===a?null===r?(a=e.updateQueue=ci(e.memoizedState),r=n.updateQueue=ci(n.memoizedState)):a=e.updateQueue=pi(r):null===r&&(r=n.updateQueue=pi(a));null===r||a===r?di(a,t):null===a.lastUpdate||null===r.lastUpdate?(di(a,t),di(r,t)):(di(a,t),r.lastUpdate=t)}function mi(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=ci(e.memoizedState):hi(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function hi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=pi(t)),t}function bi(e,t,n,a,i,l){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(l,a,i):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(l,a,i):e))break;return r({},a,i);case 2:ui=!0}return a}function vi(e,t,n,a,r){ui=!1;for(var i=(t=hi(e,t)).baseState,l=null,o=0,s=t.firstUpdate,u=i;null!==s;){var c=s.expirationTime;c<r?(null===l&&(l=s,i=u),o<c&&(o=c)):(Os(c,s.suspenseConfig),u=bi(e,0,s,u,n,a),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var p=s.expirationTime;p<r?(null===c&&(c=s,null===l&&(i=u)),o<p&&(o=p)):(u=bi(e,0,s,u,n,a),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===l&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===l&&null===c&&(i=u),t.baseState=i,t.firstUpdate=l,t.firstCapturedUpdate=c,xs(o),e.expirationTime=o,e.memoizedState=u}function yi(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),wi(t.firstEffect,n),t.firstEffect=t.lastEffect=null,wi(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function wi(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var a=t;if("function"!=typeof n)throw Error(l(191,n));n.call(a)}e=e.nextEffect}}var ki=M.ReactCurrentBatchConfig,Ci=(new a.Component).refs;function Oi(e,t,n,a){n=null==(n=n(a,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,null!==(a=e.updateQueue)&&0===e.expirationTime&&(a.baseState=n)}var xi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var a=ps(),r=ki.suspense;(r=fi(a=fs(a,e,r),r)).payload=t,null!=n&&(r.callback=n),gi(e,r),ds(e,a)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var a=ps(),r=ki.suspense;(r=fi(a=fs(a,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),gi(e,r),ds(e,a)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ps(),a=ki.suspense;(a=fi(n=fs(n,e,a),a)).tag=2,null!=t&&(a.callback=t),gi(e,a),ds(e,n)}};function _i(e,t,n,a,r,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(a,i,l):!t.prototype||!t.prototype.isPureReactComponent||(!Za(n,a)||!Za(r,i))}function Si(e,t,n){var a=!1,r=fr,i=t.contextType;return"object"==typeof i&&null!==i?i=si(i):(r=br(t)?mr:dr.current,i=(a=null!=(a=t.contextTypes))?hr(e,r):fr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=xi,e.stateNode=t,t._reactInternalFiber=e,a&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ei(e,t,n,a){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&xi.enqueueReplaceState(t,t.state,null)}function ji(e,t,n,a){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Ci;var i=t.contextType;"object"==typeof i&&null!==i?r.context=si(i):(i=br(t)?mr:dr.current,r.context=hr(e,i)),null!==(i=e.updateQueue)&&(vi(e,i,n,r,a),r.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(Oi(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&xi.enqueueReplaceState(r,r.state,null),null!==(i=e.updateQueue)&&(vi(e,i,n,r,a),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var Ti=Array.isArray;function Pi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(l(309));var a=n.stateNode}if(!a)throw Error(l(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=a.refs;t===Ci&&(t=a.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function Bi(e,t){if("textarea"!==e.type)throw Error(l(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Mi(e){function t(t,n){if(e){var a=t.lastEffect;null!==a?(a.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t,n){return(e=Hs(e,t)).index=0,e.sibling=null,e}function i(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index)<n?(t.effectTag=2,n):a:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,a){return null===t||6!==t.tag?((t=Ws(n,e.mode,a)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,a){return null!==t&&t.elementType===n.type?((a=r(t,n.props)).ref=Pi(e,t,n),a.return=e,a):((a=Vs(n.type,n.key,n.props,null,e.mode,a)).ref=Pi(e,t,n),a.return=e,a)}function c(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qs(n,e.mode,a)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function p(e,t,n,a,i){return null===t||7!==t.tag?((t=Gs(n,e.mode,a,i)).return=e,t):((t=r(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ws(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case D:return(n=Vs(t.type,t.key,t.props,null,e.mode,n)).ref=Pi(e,null,t),n.return=e,n;case R:return(t=qs(t,e.mode,n)).return=e,t}if(Ti(t)||Y(t))return(t=Gs(t,e.mode,n,null)).return=e,t;Bi(e,t)}return null}function d(e,t,n,a){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:s(e,t,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case D:return n.key===r?n.type===z?p(e,t,n.props.children,a,r):u(e,t,n,a):null;case R:return n.key===r?c(e,t,n,a):null}if(Ti(n)||Y(n))return null!==r?null:p(e,t,n,a,null);Bi(e,n)}return null}function g(e,t,n,a,r){if("string"==typeof a||"number"==typeof a)return s(t,e=e.get(n)||null,""+a,r);if("object"==typeof a&&null!==a){switch(a.$$typeof){case D:return e=e.get(null===a.key?n:a.key)||null,a.type===z?p(t,e,a.props.children,r,a.key):u(t,e,a,r);case R:return c(t,e=e.get(null===a.key?n:a.key)||null,a,r)}if(Ti(a)||Y(a))return p(t,e=e.get(n)||null,a,r,null);Bi(t,a)}return null}function m(r,l,o,s){for(var u=null,c=null,p=l,m=l=0,h=null;null!==p&&m<o.length;m++){p.index>m?(h=p,p=null):h=p.sibling;var b=d(r,p,o[m],s);if(null===b){null===p&&(p=h);break}e&&p&&null===b.alternate&&t(r,p),l=i(b,l,m),null===c?u=b:c.sibling=b,c=b,p=h}if(m===o.length)return n(r,p),u;if(null===p){for(;m<o.length;m++)null!==(p=f(r,o[m],s))&&(l=i(p,l,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=a(r,p);m<o.length;m++)null!==(h=g(p,r,m,o[m],s))&&(e&&null!==h.alternate&&p.delete(null===h.key?m:h.key),l=i(h,l,m),null===c?u=h:c.sibling=h,c=h);return e&&p.forEach(function(e){return t(r,e)}),u}function h(r,o,s,u){var c=Y(s);if("function"!=typeof c)throw Error(l(150));if(null==(s=c.call(s)))throw Error(l(151));for(var p=c=null,m=o,h=o=0,b=null,v=s.next();null!==m&&!v.done;h++,v=s.next()){m.index>h?(b=m,m=null):b=m.sibling;var y=d(r,m,v.value,u);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(r,m),o=i(y,o,h),null===p?c=y:p.sibling=y,p=y,m=b}if(v.done)return n(r,m),c;if(null===m){for(;!v.done;h++,v=s.next())null!==(v=f(r,v.value,u))&&(o=i(v,o,h),null===p?c=v:p.sibling=v,p=v);return c}for(m=a(r,m);!v.done;h++,v=s.next())null!==(v=g(m,r,h,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),o=i(v,o,h),null===p?c=v:p.sibling=v,p=v);return e&&m.forEach(function(e){return t(r,e)}),c}return function(e,a,i,s){var u="object"==typeof i&&null!==i&&i.type===z&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case D:e:{for(c=i.key,u=a;null!==u;){if(u.key===c){if(7===u.tag?i.type===z:u.elementType===i.type){n(e,u.sibling),(a=r(u,i.type===z?i.props.children:i.props)).ref=Pi(e,u,i),a.return=e,e=a;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===z?((a=Gs(i.props.children,e.mode,s,i.key)).return=e,e=a):((s=Vs(i.type,i.key,i.props,null,e.mode,s)).ref=Pi(e,a,i),s.return=e,e=s)}return o(e);case R:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(e,a.sibling),(a=r(a,i.children||[])).return=e,e=a;break e}n(e,a);break}t(e,a),a=a.sibling}(a=qs(i,e.mode,s)).return=e,e=a}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==a&&6===a.tag?(n(e,a.sibling),(a=r(a,i)).return=e,e=a):(n(e,a),(a=Ws(i,e.mode,s)).return=e,e=a),o(e);if(Ti(i))return m(e,a,i,s);if(Y(i))return h(e,a,i,s);if(c&&Bi(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(l(152,e.displayName||e.name||"Component"))}return n(e,a)}}var Ni=Mi(!0),Ii=Mi(!1),Di={},Ri={current:Di},zi={current:Di},Ai={current:Di};function Li(e){if(e===Di)throw Error(l(174));return e}function Fi(e,t){pr(Ai,t),pr(zi,e),pr(Ri,Di);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}cr(Ri),pr(Ri,t)}function Ui(e){cr(Ri),cr(zi),cr(Ai)}function Hi(e){Li(Ai.current);var t=Li(Ri.current),n=Le(t,e.type);t!==n&&(pr(zi,e),pr(Ri,n))}function Vi(e){zi.current===e&&(cr(Ri),cr(zi))}var Gi={current:0};function Wi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Yn||n.data===Qn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qi(e,t){return{responder:e,props:t}}var Ki=M.ReactCurrentDispatcher,$i=M.ReactCurrentBatchConfig,Yi=0,Qi=null,Xi=null,Ji=null,Zi=null,el=null,tl=null,nl=0,al=null,rl=0,il=!1,ll=null,ol=0;function sl(){throw Error(l(321))}function ul(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xa(e[n],t[n]))return!1;return!0}function cl(e,t,n,a,r,i){if(Yi=i,Qi=t,Ji=null!==e?e.memoizedState:null,Ki.current=null===Ji?Tl:Pl,t=n(a,r),il){do{il=!1,ol+=1,Ji=null!==e?e.memoizedState:null,tl=Zi,al=el=Xi=null,Ki.current=Pl,t=n(a,r)}while(il);ll=null,ol=0}if(Ki.current=jl,(e=Qi).memoizedState=Zi,e.expirationTime=nl,e.updateQueue=al,e.effectTag|=rl,e=null!==Xi&&null!==Xi.next,Yi=0,tl=el=Zi=Ji=Xi=Qi=null,nl=0,al=null,rl=0,e)throw Error(l(300));return t}function pl(){Ki.current=jl,Yi=0,tl=el=Zi=Ji=Xi=Qi=null,nl=0,al=null,rl=0,il=!1,ll=null,ol=0}function fl(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===el?Zi=el=e:el=el.next=e,el}function dl(){if(null!==tl)tl=(el=tl).next,Ji=null!==(Xi=Ji)?Xi.next:null;else{if(null===Ji)throw Error(l(310));var e={memoizedState:(Xi=Ji).memoizedState,baseState:Xi.baseState,queue:Xi.queue,baseUpdate:Xi.baseUpdate,next:null};el=null===el?Zi=e:el.next=e,Ji=Xi.next}return el}function gl(e,t){return"function"==typeof t?t(e):t}function ml(e){var t=dl(),n=t.queue;if(null===n)throw Error(l(311));if(n.lastRenderedReducer=e,0<ol){var a=n.dispatch;if(null!==ll){var r=ll.get(n);if(void 0!==r){ll.delete(n);var i=t.memoizedState;do{i=e(i,r.action),r=r.next}while(null!==r);return Xa(i,t.memoizedState)||(Ul=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,a]}}return[t.memoizedState,a]}a=n.last;var o=t.baseUpdate;if(i=t.baseState,null!==o?(null!==a&&(a.next=null),a=o.next):a=null!==a?a.next:null,null!==a){var s=r=null,u=a,c=!1;do{var p=u.expirationTime;p<Yi?(c||(c=!0,s=o,r=i),p>nl&&xs(nl=p)):(Os(p,u.suspenseConfig),i=u.eagerReducer===e?u.eagerState:e(i,u.action)),o=u,u=u.next}while(null!==u&&u!==a);c||(s=o,r=i),Xa(i,t.memoizedState)||(Ul=!0),t.memoizedState=i,t.baseUpdate=s,t.baseState=r,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function hl(e){var t=fl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:gl,lastRenderedState:e}).dispatch=El.bind(null,Qi,e),[t.memoizedState,e]}function bl(e){return ml(gl)}function vl(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},null===al?(al={lastEffect:null}).lastEffect=e.next=e:null===(t=al.lastEffect)?al.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,al.lastEffect=e),e}function yl(e,t,n,a){var r=fl();rl|=e,r.memoizedState=vl(t,n,void 0,void 0===a?null:a)}function wl(e,t,n,a){var r=dl();a=void 0===a?null:a;var i=void 0;if(null!==Xi){var l=Xi.memoizedState;if(i=l.destroy,null!==a&&ul(a,l.deps))return void vl(0,n,i,a)}rl|=e,r.memoizedState=vl(t,n,i,a)}function kl(e,t){return yl(516,192,e,t)}function Cl(e,t){return wl(516,192,e,t)}function Ol(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xl(){}function _l(e,t){return fl().memoizedState=[e,void 0===t?null:t],e}function Sl(e,t){var n=dl();t=void 0===t?null:t;var a=n.memoizedState;return null!==a&&null!==t&&ul(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function El(e,t,n){if(!(25>ol))throw Error(l(301));var a=e.alternate;if(e===Qi||null!==a&&a===Qi)if(il=!0,e={expirationTime:Yi,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===ll&&(ll=new Map),void 0===(n=ll.get(t)))ll.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var r=ps(),i=ki.suspense;i={expirationTime:r=fs(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.last;if(null===o)i.next=i;else{var s=o.next;null!==s&&(i.next=s),o.next=i}if(t.last=i,0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=a(u,n);if(i.eagerReducer=a,i.eagerState=c,Xa(c,u))return}catch(e){}ds(e,r)}}var jl={readContext:si,useCallback:sl,useContext:sl,useEffect:sl,useImperativeHandle:sl,useLayoutEffect:sl,useMemo:sl,useReducer:sl,useRef:sl,useState:sl,useDebugValue:sl,useResponder:sl,useDeferredValue:sl,useTransition:sl},Tl={readContext:si,useCallback:_l,useContext:si,useEffect:kl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yl(4,36,Ol.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yl(4,36,e,t)},useMemo:function(e,t){var n=fl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=fl();return t=void 0!==n?n(t):t,a.memoizedState=a.baseState=t,e=(e=a.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=El.bind(null,Qi,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},fl().memoizedState=e},useState:hl,useDebugValue:xl,useResponder:qi,useDeferredValue:function(e,t){var n=hl(e),a=n[0],r=n[1];return kl(function(){i.unstable_next(function(){var n=$i.suspense;$i.suspense=void 0===t?null:t;try{r(e)}finally{$i.suspense=n}})},[e,t]),a},useTransition:function(e){var t=hl(!1),n=t[0],a=t[1];return[_l(function(t){a(!0),i.unstable_next(function(){var n=$i.suspense;$i.suspense=void 0===e?null:e;try{a(!1),t()}finally{$i.suspense=n}})},[e,n]),n]}},Pl={readContext:si,useCallback:Sl,useContext:si,useEffect:Cl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wl(4,36,Ol.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wl(4,36,e,t)},useMemo:function(e,t){var n=dl();t=void 0===t?null:t;var a=n.memoizedState;return null!==a&&null!==t&&ul(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ml,useRef:function(){return dl().memoizedState},useState:bl,useDebugValue:xl,useResponder:qi,useDeferredValue:function(e,t){var n=bl(),a=n[0],r=n[1];return Cl(function(){i.unstable_next(function(){var n=$i.suspense;$i.suspense=void 0===t?null:t;try{r(e)}finally{$i.suspense=n}})},[e,t]),a},useTransition:function(e){var t=bl(),n=t[0],a=t[1];return[Sl(function(t){a(!0),i.unstable_next(function(){var n=$i.suspense;$i.suspense=void 0===e?null:e;try{a(!1),t()}finally{$i.suspense=n}})},[e,n]),n]}},Bl=null,Ml=null,Nl=!1;function Il(e,t){var n=Fs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Dl(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Rl(e){if(Nl){var t=Ml;if(t){var n=t;if(!Dl(e,t)){if(!(t=aa(n.nextSibling))||!Dl(e,t))return e.effectTag=-1025&e.effectTag|2,Nl=!1,void(Bl=e);Il(Bl,n)}Bl=e,Ml=aa(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Nl=!1,Bl=e}}function zl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bl=e}function Al(e){if(e!==Bl)return!1;if(!Nl)return zl(e),Nl=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!ea(t,e.memoizedProps))for(t=Ml;t;)Il(e,t),t=aa(t.nextSibling);if(zl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===$n){if(0===t){Ml=aa(e.nextSibling);break e}t--}else n!==Kn&&n!==Qn&&n!==Yn||t++}e=e.nextSibling}Ml=null}}else Ml=Bl?aa(e.stateNode.nextSibling):null;return!0}function Ll(){Ml=Bl=null,Nl=!1}var Fl=M.ReactCurrentOwner,Ul=!1;function Hl(e,t,n,a){t.child=null===e?Ii(t,null,n,a):Ni(t,e.child,n,a)}function Vl(e,t,n,a,r){n=n.render;var i=t.ref;return oi(t,r),a=cl(e,t,n,a,i,r),null===e||Ul?(t.effectTag|=1,Hl(e,t,a,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),lo(e,t,r))}function Gl(e,t,n,a,r,i){if(null===e){var l=n.type;return"function"!=typeof l||Us(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vs(n.type,null,a,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,Wl(e,t,l,a,r,i))}return l=e.child,r<i&&(r=l.memoizedProps,(n=null!==(n=n.compare)?n:Za)(r,a)&&e.ref===t.ref)?lo(e,t,i):(t.effectTag|=1,(e=Hs(l,a)).ref=t.ref,e.return=t,t.child=e)}function Wl(e,t,n,a,r,i){return null!==e&&Za(e.memoizedProps,a)&&e.ref===t.ref&&(Ul=!1,r<i)?lo(e,t,i):Kl(e,t,n,a,i)}function ql(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Kl(e,t,n,a,r){var i=br(n)?mr:dr.current;return i=hr(t,i),oi(t,r),n=cl(e,t,n,a,i,r),null===e||Ul?(t.effectTag|=1,Hl(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),lo(e,t,r))}function $l(e,t,n,a,r){if(br(n)){var i=!0;Cr(t)}else i=!1;if(oi(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Si(t,n,a),ji(t,n,a,r),a=!0;else if(null===e){var l=t.stateNode,o=t.memoizedProps;l.props=o;var s=l.context,u=n.contextType;"object"==typeof u&&null!==u?u=si(u):u=hr(t,u=br(n)?mr:dr.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof l.getSnapshotBeforeUpdate;p||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(o!==a||s!==u)&&Ei(t,l,a,u),ui=!1;var f=t.memoizedState;s=l.state=f;var d=t.updateQueue;null!==d&&(vi(t,d,a,l,r),s=t.memoizedState),o!==a||f!==s||gr.current||ui?("function"==typeof c&&(Oi(t,n,c,a),s=t.memoizedState),(o=ui||_i(t,n,o,a,f,s,u))?(p||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.effectTag|=4)):("function"==typeof l.componentDidMount&&(t.effectTag|=4),t.memoizedProps=a,t.memoizedState=s),l.props=a,l.state=s,l.context=u,a=o):("function"==typeof l.componentDidMount&&(t.effectTag|=4),a=!1)}else l=t.stateNode,o=t.memoizedProps,l.props=t.type===t.elementType?o:Jr(t.type,o),s=l.context,"object"==typeof(u=n.contextType)&&null!==u?u=si(u):u=hr(t,u=br(n)?mr:dr.current),(p="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(o!==a||s!==u)&&Ei(t,l,a,u),ui=!1,s=t.memoizedState,f=l.state=s,null!==(d=t.updateQueue)&&(vi(t,d,a,l,r),f=t.memoizedState),o!==a||s!==f||gr.current||ui?("function"==typeof c&&(Oi(t,n,c,a),f=t.memoizedState),(c=ui||_i(t,n,o,a,s,f,u))?(p||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(a,f,u),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(a,f,u)),"function"==typeof l.componentDidUpdate&&(t.effectTag|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof l.componentDidUpdate||o===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||o===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=a,t.memoizedState=f),l.props=a,l.state=f,l.context=u,a=c):("function"!=typeof l.componentDidUpdate||o===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||o===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),a=!1);return Yl(e,t,n,a,i,r)}function Yl(e,t,n,a,r,i){ql(e,t);var l=0!=(64&t.effectTag);if(!a&&!l)return r&&Or(t,n,!1),lo(e,t,i);a=t.stateNode,Fl.current=t;var o=l&&"function"!=typeof n.getDerivedStateFromError?null:a.render();return t.effectTag|=1,null!==e&&l?(t.child=Ni(t,e.child,null,i),t.child=Ni(t,null,o,i)):Hl(e,t,o,i),t.memoizedState=a.state,r&&Or(t,n,!0),t.child}function Ql(e){var t=e.stateNode;t.pendingContext?wr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wr(0,t.context,!1),Fi(e,t.containerInfo)}var Xl,Jl,Zl,eo,to={dehydrated:null,retryTime:0};function no(e,t,n){var a,r=t.mode,i=t.pendingProps,l=Gi.current,o=!1;if((a=0!=(64&t.effectTag))||(a=0!=(2&l)&&(null===e||null!==e.memoizedState)),a?(o=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(l|=1),pr(Gi,1&l),null===e){if(void 0!==i.fallback&&Rl(t),o){if(o=i.fallback,(i=Gs(null,r,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Gs(o,r,n,null)).return=t,i.sibling=n,t.memoizedState=to,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=Ii(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,o){if(i=i.fallback,(n=Hs(e,e.pendingProps)).return=t,0==(2&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=o;null!==o;)o.return=n,o=o.sibling;return(r=Hs(r,i,r.expirationTime)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=to,t.child=n,r}return n=Ni(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,o){if(o=i.fallback,(i=Gs(null,r,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Gs(o,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=to,t.child=i,n}return t.memoizedState=null,t.child=Ni(t,e,i.children,n)}function ao(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),li(e.return,t)}function ro(e,t,n,a,r,i){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,last:a,tail:n,tailExpiration:0,tailMode:r,lastEffect:i}:(l.isBackwards=t,l.rendering=null,l.last=a,l.tail=n,l.tailExpiration=0,l.tailMode=r,l.lastEffect=i)}function io(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail;if(Hl(e,t,a.children,n),0!=(2&(a=Gi.current)))a=1&a|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ao(e,n);else if(19===e.tag)ao(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(pr(Gi,a),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Wi(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ro(t,!1,r,n,i,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Wi(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ro(t,!0,n,null,i,t.lastEffect);break;case"together":ro(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function lo(e,t,n){null!==e&&(t.dependencies=e.dependencies);var a=t.expirationTime;if(0!==a&&xs(a),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=Hs(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hs(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function oo(e){e.effectTag|=4}function so(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function uo(e){switch(e.tag){case 1:br(e.type)&&vr();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ui(),yr(),0!=(64&(t=e.effectTag)))throw Error(l(285));return e.effectTag=-4097&t|64,e;case 5:return Vi(e),null;case 13:return cr(Gi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return cr(Gi),null;case 4:return Ui(),null;case 10:return ii(e),null;default:return null}}function co(e,t){return{value:e,source:t,stack:X(t)}}Xl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Jl=function(){},Zl=function(e,t,n,a,i){var l=e.memoizedProps;if(l!==a){var o,s,u=t.stateNode;switch(Li(Ri.current),e=null,n){case"input":l=_e(u,l),a=_e(u,a),e=[];break;case"option":l=Be(u,l),a=Be(u,a),e=[];break;case"select":l=r({},l,{value:void 0}),a=r({},a,{value:void 0}),e=[];break;case"textarea":l=Ne(u,l),a=Ne(u,a),e=[];break;default:"function"!=typeof l.onClick&&"function"==typeof a.onClick&&(u.onclick=Un)}for(o in An(n,a),n=null,l)if(!a.hasOwnProperty(o)&&l.hasOwnProperty(o)&&null!=l[o])if("style"===o)for(s in u=l[o])u.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(d.hasOwnProperty(o)?e||(e=[]):(e=e||[]).push(o,null));for(o in a){var c=a[o];if(u=null!=l?l[o]:void 0,a.hasOwnProperty(o)&&c!==u&&(null!=c||null!=u))if("style"===o)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(e||(e=[]),e.push(o,n)),n=c;else"dangerouslySetInnerHTML"===o?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(o,""+c)):"children"===o?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(o,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(d.hasOwnProperty(o)?(null!=c&&Fn(i,o),e||u===c||(e=[])):(e=e||[]).push(o,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&oo(t)}},eo=function(e,t,n,a){n!==a&&oo(t)};var po="function"==typeof WeakSet?WeakSet:Set;function fo(e,t){var n=t.source,a=t.stack;null===a&&null!==n&&(a=X(n)),null!==n&&Q(n.type),t=t.value,null!==e&&1===e.tag&&Q(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function go(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ds(e,t)}else t.current=null}function mo(e,t){switch(t.tag){case 0:case 11:case 15:ho(2,0,t);break;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,a=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jr(t.type,n),a),e.__reactInternalSnapshotBeforeUpdate=t}break;case 3:case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}function ho(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var a=n=n.next;do{if(0!=(a.tag&e)){var r=a.destroy;a.destroy=void 0,void 0!==r&&r()}0!=(a.tag&t)&&(r=a.create,a.destroy=r()),a=a.next}while(a!==n)}}function bo(e,t,n){switch("function"==typeof As&&As(t),t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var a=e.next;Wr(97<n?97:n,function(){var e=a;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(e){Ds(r,e)}}e=e.next}while(e!==a)})}break;case 1:go(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ds(e,t)}}(t,n);break;case 5:go(t);break;case 4:ko(e,t,n)}}function vo(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,null!==t&&vo(t)}function yo(e){return 5===e.tag||3===e.tag||4===e.tag}function wo(e){e:{for(var t=e.return;null!==t;){if(yo(t)){var n=t;break e}t=t.return}throw Error(l(160))}switch(t=n.stateNode,n.tag){case 5:var a=!1;break;case 3:case 4:t=t.containerInfo,a=!0;break;default:throw Error(l(161))}16&n.effectTag&&(He(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||yo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){var i=5===r.tag||6===r.tag;if(i){var o=i?r.stateNode:r.stateNode.instance;if(n)if(a){var s=o;o=n,8===(i=t).nodeType?i.parentNode.insertBefore(s,o):i.insertBefore(s,o)}else t.insertBefore(o,n);else a?(8===(s=t).nodeType?(i=s.parentNode).insertBefore(o,s):(i=s).appendChild(o),null!=(s=s._reactRootContainer)||null!==i.onclick||(i.onclick=Un)):t.appendChild(o)}else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function ko(e,t,n){for(var a,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(a=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:a=a.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,c=n,p=u;;)if(bo(s,p,c),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===u)break;for(;null===p.sibling;){if(null===p.return||p.return===u)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r?(s=a,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):a.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){a=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(bo(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Co(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ho(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var a=t.memoizedProps,r=null!==e?e.memoizedProps:a;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[oa]=a,"input"===e&&"radio"===a.type&&null!=a.name&&Ee(n,a),Ln(e,r),t=Ln(e,a),r=0;r<i.length;r+=2){var o=i[r],s=i[r+1];"style"===o?Rn(n,s):"dangerouslySetInnerHTML"===o?Ue(n,s):"children"===o?He(n,s):ke(n,o,s,t)}switch(e){case"input":je(n,a);break;case"textarea":De(n,a);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!a.multiple,null!=(e=a.value)?Me(n,!!a.multiple,e,!1):t!==!!a.multiple&&(null!=a.defaultValue?Me(n,!!a.multiple,a.defaultValue,!0):Me(n,!!a.multiple,a.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw Error(l(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:(t=t.stateNode).hydrate&&(t.hydrate=!1,xt(t.containerInfo));break;case 12:break;case 13:if(n=t,null===t.memoizedState?a=!1:(a=!0,n=t.child,Jo=Hr()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,a?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,i.style.display=Dn("display",r));else if(6===e.tag)e.stateNode.nodeValue=a?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Oo(t);break;case 19:Oo(t);break;case 17:case 20:case 21:break;default:throw Error(l(163))}}function Oo(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new po),t.forEach(function(t){var a=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=fs(t=ps(),e,null)),null!==(e=gs(e,t))&&hs(e)}.bind(null,e,t);n.has(t)||(n.add(t),t.then(a,a))})}}var xo="function"==typeof WeakMap?WeakMap:Map;function _o(e,t,n){(n=fi(n,null)).tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){ts||(ts=!0,ns=a),fo(e,t)},n}function So(e,t,n){(n=fi(n,null)).tag=3;var a=e.type.getDerivedStateFromError;if("function"==typeof a){var r=t.value;n.payload=function(){return fo(e,t),a(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof a&&(null===as?as=new Set([this]):as.add(this),fo(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Eo,jo=Math.ceil,To=M.ReactCurrentDispatcher,Po=M.ReactCurrentOwner,Bo=0,Mo=8,No=16,Io=32,Do=0,Ro=1,zo=2,Ao=3,Lo=4,Fo=5,Uo=Bo,Ho=null,Vo=null,Go=0,Wo=Do,qo=null,Ko=1073741823,$o=1073741823,Yo=null,Qo=0,Xo=!1,Jo=0,Zo=500,es=null,ts=!1,ns=null,as=null,rs=!1,is=null,ls=90,os=null,ss=0,us=null,cs=0;function ps(){return(Uo&(No|Io))!==Bo?1073741821-(Hr()/10|0):0!==cs?cs:cs=1073741821-(Hr()/10|0)}function fs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var a=Vr();if(0==(4&t))return 99===a?1073741823:1073741822;if((Uo&No)!==Bo)return Go;if(null!==n)e=Xr(e,0|n.timeoutMs||5e3,250);else switch(a){case 99:e=1073741823;break;case 98:e=Xr(e,150,100);break;case 97:case 96:e=Xr(e,5e3,250);break;case 95:e=2;break;default:throw Error(l(326))}return null!==Ho&&e===Go&&--e,e}function ds(e,t){if(50<ss)throw ss=0,us=null,Error(l(185));if(null!==(e=gs(e,t))){var n=Vr();1073741823===t?(Uo&Mo)!==Bo&&(Uo&(No|Io))===Bo?bs(e):(hs(e),Uo===Bo&&$r()):hs(e),(4&Uo)===Bo||98!==n&&99!==n||(null===os?os=new Map([[e,t]]):(void 0===(n=os.get(e))||n>t)&&os.set(e,t))}}function gs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var a=e.return,r=null;if(null===a&&3===e.tag)r=e.stateNode;else for(;null!==a;){if(n=a.alternate,a.childExpirationTime<t&&(a.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===a.return&&3===a.tag){r=a.stateNode;break}a=a.return}return null!==r&&(Ho===r&&(xs(t),Wo===Lo&&Ys(r,Go)),Qs(r,t)),r}function ms(e){var t=e.lastExpiredTime;return 0!==t?t:$s(e,t=e.firstPendingTime)?(t=e.lastPingedTime)>(e=e.nextKnownPendingLevel)?t:e:t}function hs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Kr(bs.bind(null,e));else{var t=ms(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var a=ps();if(1073741823===t?a=99:1===t||2===t?a=95:a=0>=(a=10*(1073741821-t)-10*(1073741821-a))?99:250>=a?98:5250>=a?97:95,null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=a)return;n!==Rr&&Sr(n)}e.callbackExpirationTime=t,e.callbackPriority=a,t=1073741823===t?Kr(bs.bind(null,e)):qr(a,function e(t,n){cs=0;if(n)return n=ps(),Xs(t,n),hs(t),null;var a=ms(t);if(0!==a){if(n=t.callbackNode,(Uo&(No|Io))!==Bo)throw Error(l(327));if(Ms(),t===Ho&&a===Go||ws(t,a),null!==Vo){var r=Uo;Uo|=No;for(var i=Cs();;)try{Ss();break}catch(e){ks(t,e)}if(ai(),Uo=r,To.current=i,Wo===Ro)throw n=qo,ws(t,a),Ys(t,a),hs(t),n;if(null===Vo)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=a,r=Wo,Ho=null,r){case Do:case Ro:throw Error(l(345));case zo:Xs(t,2<a?2:a);break;case Ao:if(Ys(t,a),r=t.lastSuspendedTime,a===r&&(t.nextKnownPendingLevel=Ts(i)),1073741823===Ko&&10<(i=Jo+Zo-Hr())){if(Xo){var o=t.lastPingedTime;if(0===o||o>=a){t.lastPingedTime=a,ws(t,a);break}}if(0!==(o=ms(t))&&o!==a)break;if(0!==r&&r!==a){t.lastPingedTime=r;break}t.timeoutHandle=ta(Ps.bind(null,t),i);break}Ps(t);break;case Lo:if(Ys(t,a),r=t.lastSuspendedTime,a===r&&(t.nextKnownPendingLevel=Ts(i)),Xo&&(0===(i=t.lastPingedTime)||i>=a)){t.lastPingedTime=a,ws(t,a);break}if(0!==(i=ms(t))&&i!==a)break;if(0!==r&&r!==a){t.lastPingedTime=r;break}if(1073741823!==$o?r=10*(1073741821-$o)-Hr():1073741823===Ko?r=0:(r=10*(1073741821-Ko)-5e3,i=Hr(),a=10*(1073741821-a)-i,0>(r=i-r)&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jo(r/1960))-r,a<r&&(r=a)),10<r){t.timeoutHandle=ta(Ps.bind(null,t),r);break}Ps(t);break;case Fo:if(1073741823!==Ko&&null!==Yo){o=Ko;var s=Yo;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,o=Hr()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)),r=o<=i?0:i+r-o),10<r){Ys(t,a),t.timeoutHandle=ta(Ps.bind(null,t),r);break}}Ps(t);break;default:throw Error(l(329))}if(hs(t),t.callbackNode===n)return e.bind(null,t)}}return null}.bind(null,e),{timeout:10*(1073741821-t)-Hr()}),e.callbackNode=t}}}function bs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,e.finishedExpirationTime===t)Ps(e);else{if((Uo&(No|Io))!==Bo)throw Error(l(327));if(Ms(),e===Ho&&t===Go||ws(e,t),null!==Vo){var n=Uo;Uo|=No;for(var a=Cs();;)try{_s();break}catch(t){ks(e,t)}if(ai(),Uo=n,To.current=a,Wo===Ro)throw n=qo,ws(e,t),Ys(e,t),hs(e),n;if(null!==Vo)throw Error(l(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ho=null,Ps(e),hs(e)}}return null}function vs(e,t){var n=Uo;Uo|=1;try{return e(t)}finally{(Uo=n)===Bo&&$r()}}function ys(e,t){var n=Uo;Uo&=-2,Uo|=Mo;try{return e(t)}finally{(Uo=n)===Bo&&$r()}}function ws(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,na(n)),null!==Vo)for(n=Vo.return;null!==n;){var a=n;switch(a.tag){case 1:var r=a.type.childContextTypes;null!=r&&vr();break;case 3:Ui(),yr();break;case 5:Vi(a);break;case 4:Ui();break;case 13:case 19:cr(Gi);break;case 10:ii(a)}n=n.return}Ho=e,Vo=Hs(e.current,null),Go=t,Wo=Do,qo=null,$o=Ko=1073741823,Yo=null,Qo=0,Xo=!1}function ks(e,t){for(;;){try{if(ai(),pl(),null===Vo||null===Vo.return)return Wo=Ro,qo=t,null;e:{var n=e,a=Vo.return,r=Vo,i=t;if(t=Go,r.effectTag|=2048,r.firstEffect=r.lastEffect=null,null!==i&&"object"==typeof i&&"function"==typeof i.then){var l=i,o=0!=(1&Gi.current),s=a;do{var u;if(u=13===s.tag){var c=s.memoizedState;if(null!==c)u=null!==c.dehydrated;else{var p=s.memoizedProps;u=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!o)}}if(u){var f=s.updateQueue;if(null===f){var d=new Set;d.add(l),s.updateQueue=d}else f.add(l);if(0==(2&s.mode)){if(s.effectTag|=64,r.effectTag&=-2981,1===r.tag)if(null===r.alternate)r.tag=17;else{var g=fi(1073741823,null);g.tag=2,gi(r,g)}r.expirationTime=1073741823;break e}i=void 0,r=t;var m=n.pingCache;if(null===m?(m=n.pingCache=new xo,i=new Set,m.set(l,i)):void 0===(i=m.get(l))&&(i=new Set,m.set(l,i)),!i.has(r)){i.add(r);var h=Rs.bind(null,n,l,r);l.then(h,h)}s.effectTag|=4096,s.expirationTime=t;break e}s=s.return}while(null!==s);i=Error((Q(r.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+X(r))}Wo!==Fo&&(Wo=zo),i=co(i,r),s=a;do{switch(s.tag){case 3:l=i,s.effectTag|=4096,s.expirationTime=t,mi(s,_o(s,l,t));break e;case 1:l=i;var b=s.type,v=s.stateNode;if(0==(64&s.effectTag)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===as||!as.has(v)))){s.effectTag|=4096,s.expirationTime=t,mi(s,So(s,l,t));break e}}s=s.return}while(null!==s)}Vo=js(Vo)}catch(e){t=e;continue}break}}function Cs(){var e=To.current;return To.current=jl,null===e?jl:e}function Os(e,t){e<Ko&&2<e&&(Ko=e),null!==t&&e<$o&&2<e&&($o=e,Yo=t)}function xs(e){e>Qo&&(Qo=e)}function _s(){for(;null!==Vo;)Vo=Es(Vo)}function Ss(){for(;null!==Vo&&!Er();)Vo=Es(Vo)}function Es(e){var t=Eo(e.alternate,e,Go);return e.memoizedProps=e.pendingProps,null===t&&(t=js(e)),Po.current=null,t}function js(e){Vo=e;do{var t=Vo.alternate;if(e=Vo.return,0==(2048&Vo.effectTag)){e:{var n=t,a=Go,i=(t=Vo).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:br(t.type)&&vr();break;case 3:Ui(),yr(),(i=t.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===n||null===n.child)&&Al(t)&&oo(t),Jl(t);break;case 5:Vi(t),a=Li(Ai.current);var o=t.type;if(null!==n&&null!=t.stateNode)Zl(n,t,o,i,a),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var s=Li(Ri.current);if(Al(t)){var u=(i=t).stateNode;n=i.type;var c=i.memoizedProps,p=a;switch(u[la]=i,u[oa]=c,o=void 0,a=u,n){case"iframe":case"object":case"embed":xn("load",a);break;case"video":case"audio":for(u=0;u<Je.length;u++)xn(Je[u],a);break;case"source":xn("error",a);break;case"img":case"image":case"link":xn("error",a),xn("load",a);break;case"form":xn("reset",a),xn("submit",a);break;case"details":xn("toggle",a);break;case"input":Se(a,c),xn("invalid",a),Fn(p,"onChange");break;case"select":a._wrapperState={wasMultiple:!!c.multiple},xn("invalid",a),Fn(p,"onChange");break;case"textarea":Ie(a,c),xn("invalid",a),Fn(p,"onChange")}for(o in An(n,c),u=null,c)c.hasOwnProperty(o)&&(s=c[o],"children"===o?"string"==typeof s?a.textContent!==s&&(u=["children",s]):"number"==typeof s&&a.textContent!==""+s&&(u=["children",""+s]):d.hasOwnProperty(o)&&null!=s&&Fn(p,o));switch(n){case"input":Oe(a),Te(a,c,!0);break;case"textarea":Oe(a),Re(a);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(a.onclick=Un)}o=u,i.updateQueue=o,(i=null!==o)&&oo(t)}else{n=t,p=o,c=i,u=9===a.nodeType?a:a.ownerDocument,s===ze.html&&(s=Ae(p)),s===ze.html?"script"===p?((c=u.createElement("div")).innerHTML="<script><\/script>",u=c.removeChild(c.firstChild)):"string"==typeof c.is?u=u.createElement(p,{is:c.is}):(u=u.createElement(p),"select"===p&&(p=u,c.multiple?p.multiple=!0:c.size&&(p.size=c.size))):u=u.createElementNS(s,p),(c=u)[la]=n,c[oa]=i,Xl(c,t,!1,!1),t.stateNode=c;var f=a,g=Ln(p=o,n=i);switch(p){case"iframe":case"object":case"embed":xn("load",c),a=n;break;case"video":case"audio":for(a=0;a<Je.length;a++)xn(Je[a],c);a=n;break;case"source":xn("error",c),a=n;break;case"img":case"image":case"link":xn("error",c),xn("load",c),a=n;break;case"form":xn("reset",c),xn("submit",c),a=n;break;case"details":xn("toggle",c),a=n;break;case"input":Se(c,n),a=_e(c,n),xn("invalid",c),Fn(f,"onChange");break;case"option":a=Be(c,n);break;case"select":c._wrapperState={wasMultiple:!!n.multiple},a=r({},n,{value:void 0}),xn("invalid",c),Fn(f,"onChange");break;case"textarea":Ie(c,n),a=Ne(c,n),xn("invalid",c),Fn(f,"onChange");break;default:a=n}An(p,a),u=void 0,s=p;var m=c,h=a;for(u in h)if(h.hasOwnProperty(u)){var b=h[u];"style"===u?Rn(m,b):"dangerouslySetInnerHTML"===u?null!=(b=b?b.__html:void 0)&&Ue(m,b):"children"===u?"string"==typeof b?("textarea"!==s||""!==b)&&He(m,b):"number"==typeof b&&He(m,""+b):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(d.hasOwnProperty(u)?null!=b&&Fn(f,u):null!=b&&ke(m,u,b,g))}switch(p){case"input":Oe(c),Te(c,n,!1);break;case"textarea":Oe(c),Re(c);break;case"option":null!=n.value&&c.setAttribute("value",""+we(n.value));break;case"select":(a=c).multiple=!!n.multiple,null!=(c=n.value)?Me(a,!!n.multiple,c,!1):null!=n.defaultValue&&Me(a,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(c.onclick=Un)}(i=Zn(o,i))&&oo(t)}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw Error(l(166));break;case 6:if(n&&null!=t.stateNode)eo(n,t,n.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(l(166));a=Li(Ai.current),Li(Ri.current),Al(t)?(o=(i=t).stateNode,a=i.memoizedProps,o[la]=i,(i=o.nodeValue!==a)&&oo(t)):(o=t,(i=(9===a.nodeType?a:a.ownerDocument).createTextNode(i))[la]=o,t.stateNode=i)}break;case 11:break;case 13:if(cr(Gi),i=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=a;break e}i=null!==i,o=!1,null===n?void 0!==t.memoizedProps.fallback&&Al(t):(o=null!==(a=n.memoizedState),i||null===a||null!==(a=n.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=a,a.nextEffect=c):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),i&&!o&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Gi.current)?Wo===Do&&(Wo=Ao):(Wo!==Do&&Wo!==Ao||(Wo=Lo),0!==Qo&&null!==Ho&&(Ys(Ho,Go),Qs(Ho,Qo)))),(i||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ui(),Jl(t);break;case 10:ii(t);break;case 9:case 14:break;case 17:br(t.type)&&vr();break;case 19:if(cr(Gi),null===(i=t.memoizedState))break;if(o=0!=(64&t.effectTag),null===(c=i.rendering)){if(o)so(i,!1);else if(Wo!==Do||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(c=Wi(n))){for(t.effectTag|=64,so(i,!1),null!==(o=c.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===i.lastEffect&&(t.firstEffect=null),t.lastEffect=i.lastEffect,i=a,o=t.child;null!==o;)n=i,(a=o).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childExpirationTime=0,a.expirationTime=n,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=c.childExpirationTime,a.expirationTime=c.expirationTime,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,n=c.dependencies,a.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),o=o.sibling;pr(Gi,1&Gi.current|2),t=t.child;break e}n=n.sibling}}else{if(!o)if(null!==(n=Wi(c))){if(t.effectTag|=64,o=!0,null!==(a=n.updateQueue)&&(t.updateQueue=a,t.effectTag|=4),so(i,!0),null===i.tail&&"hidden"===i.tailMode&&!c.alternate){null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else Hr()>i.tailExpiration&&1<a&&(t.effectTag|=64,o=!0,so(i,!1),t.expirationTime=t.childExpirationTime=a-1);i.isBackwards?(c.sibling=t.child,t.child=c):(null!==(a=i.last)?a.sibling=c:t.child=c,i.last=c)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=Hr()+500),a=i.tail,i.rendering=a,i.tail=a.sibling,i.lastEffect=t.lastEffect,a.sibling=null,i=Gi.current,pr(Gi,i=o?1&i|2:1&i),t=a;break e}break;case 20:case 21:break;default:throw Error(l(156,t.tag))}t=null}if(i=Vo,1===Go||1!==i.childExpirationTime){for(o=0,a=i.child;null!==a;)(n=a.expirationTime)>o&&(o=n),(c=a.childExpirationTime)>o&&(o=c),a=a.sibling;i.childExpirationTime=o}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Vo.firstEffect),null!==Vo.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Vo.firstEffect),e.lastEffect=Vo.lastEffect),1<Vo.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Vo:e.firstEffect=Vo,e.lastEffect=Vo))}else{if(null!==(t=uo(Vo)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Vo.sibling))return t;Vo=e}while(null!==Vo);return Wo===Do&&(Wo=Fo),null}function Ts(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Ps(e){var t=Vr();return Wr(99,function(e,t){do{Ms()}while(null!==is);if((Uo&(No|Io))!==Bo)throw Error(l(327));var n=e.finishedWork,a=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(l(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=Ts(n);if(e.firstPendingTime=r,a<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:a<=e.firstSuspendedTime&&(e.firstSuspendedTime=a-1),a<=e.lastPingedTime&&(e.lastPingedTime=0),a<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ho&&(Vo=Ho=null,Go=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var i=Uo;Uo|=Io,Po.current=null,Xn=On;var o=Wn();if(qn(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{var u=(s=(s=o.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(u&&0!==u.rangeCount){s=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{s.nodeType,p.nodeType}catch(e){s=null;break e}var f=0,d=-1,g=-1,m=0,h=0,b=o,v=null;t:for(;;){for(var y;b!==s||0!==c&&3!==b.nodeType||(d=f+c),b!==p||0!==u&&3!==b.nodeType||(g=f+u),3===b.nodeType&&(f+=b.nodeValue.length),null!==(y=b.firstChild);)v=b,b=y;for(;;){if(b===o)break t;if(v===s&&++m===c&&(d=f),v===p&&++h===u&&(g=f),null!==(y=b.nextSibling))break;v=(b=v).parentNode}b=y}s=-1===d||-1===g?null:{start:d,end:g}}else s=null}s=s||{start:0,end:0}}else s=null;Jn={focusedElem:o,selectionRange:s},On=!1,es=r;do{try{Bs()}catch(e){if(null===es)throw Error(l(330));Ds(es,e),es=es.nextEffect}}while(null!==es);es=r;do{try{for(o=e,s=t;null!==es;){var w=es.effectTag;if(16&w&&He(es.stateNode,""),128&w){var k=es.alternate;if(null!==k){var C=k.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(1038&w){case 2:wo(es),es.effectTag&=-3;break;case 6:wo(es),es.effectTag&=-3,Co(es.alternate,es);break;case 1024:es.effectTag&=-1025;break;case 1028:es.effectTag&=-1025,Co(es.alternate,es);break;case 4:Co(es.alternate,es);break;case 8:ko(o,c=es,s),vo(c)}es=es.nextEffect}}catch(e){if(null===es)throw Error(l(330));Ds(es,e),es=es.nextEffect}}while(null!==es);if(C=Jn,k=Wn(),w=C.focusedElem,s=C.selectionRange,k!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==s&&qn(w)&&(k=s.start,void 0===(C=s.end)&&(C=k),"selectionStart"in w?(w.selectionStart=k,w.selectionEnd=Math.min(C,w.value.length)):(C=(k=w.ownerDocument||document)&&k.defaultView||window).getSelection&&(C=C.getSelection(),c=w.textContent.length,o=Math.min(s.start,c),s=void 0===s.end?o:Math.min(s.end,c),!C.extend&&o>s&&(c=s,s=o,o=c),c=Gn(w,o),p=Gn(w,s),c&&p&&(1!==C.rangeCount||C.anchorNode!==c.node||C.anchorOffset!==c.offset||C.focusNode!==p.node||C.focusOffset!==p.offset)&&((k=k.createRange()).setStart(c.node,c.offset),C.removeAllRanges(),o>s?(C.addRange(k),C.extend(p.node,p.offset)):(k.setEnd(p.node,p.offset),C.addRange(k))))),k=[];for(C=w;C=C.parentNode;)1===C.nodeType&&k.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<k.length;w++)(C=k[w]).element.scrollLeft=C.left,C.element.scrollTop=C.top}Jn=null,On=!!Xn,Xn=null,e.current=n,es=r;do{try{for(w=a;null!==es;){var O=es.effectTag;if(36&O){var x=es.alternate;switch(C=w,(k=es).tag){case 0:case 11:case 15:ho(16,32,k);break;case 1:var _=k.stateNode;if(4&k.effectTag)if(null===x)_.componentDidMount();else{var S=k.elementType===k.type?x.memoizedProps:Jr(k.type,x.memoizedProps);_.componentDidUpdate(S,x.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var E=k.updateQueue;null!==E&&yi(0,E,_);break;case 3:var j=k.updateQueue;if(null!==j){if(o=null,null!==k.child)switch(k.child.tag){case 5:o=k.child.stateNode;break;case 1:o=k.child.stateNode}yi(0,j,o)}break;case 5:var T=k.stateNode;null===x&&4&k.effectTag&&Zn(k.type,k.memoizedProps)&&T.focus();break;case 6:case 4:case 12:break;case 13:if(null===k.memoizedState){var P=k.alternate;if(null!==P){var B=P.memoizedState;if(null!==B){var M=B.dehydrated;null!==M&&xt(M)}}}break;case 19:case 17:case 20:case 21:break;default:throw Error(l(163))}}if(128&O){k=void 0;var N=es.ref;if(null!==N){var I=es.stateNode;switch(es.tag){case 5:k=I;break;default:k=I}"function"==typeof N?N(k):N.current=k}}es=es.nextEffect}}catch(e){if(null===es)throw Error(l(330));Ds(es,e),es=es.nextEffect}}while(null!==es);es=null,zr(),Uo=i}else e.current=n;if(rs)rs=!1,is=e,ls=t;else for(es=r;null!==es;)t=es.nextEffect,es.nextEffect=null,es=t;if(0===(t=e.firstPendingTime)&&(as=null),1073741823===t?e===us?ss++:(ss=0,us=e):ss=0,"function"==typeof zs&&zs(n.stateNode,a),hs(e),ts)throw ts=!1,e=ns,ns=null,e;return(Uo&Mo)!==Bo?null:($r(),null)}.bind(null,e,t)),null}function Bs(){for(;null!==es;){var e=es.effectTag;0!=(256&e)&&mo(es.alternate,es),0==(512&e)||rs||(rs=!0,qr(97,function(){return Ms(),null})),es=es.nextEffect}}function Ms(){if(90!==ls){var e=97<ls?97:ls;return ls=90,Wr(e,Ns)}}function Ns(){if(null===is)return!1;var e=is;if(is=null,(Uo&(No|Io))!==Bo)throw Error(l(331));var t=Uo;for(Uo|=Io,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:ho(128,0,n),ho(0,64,n)}}catch(t){if(null===e)throw Error(l(330));Ds(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Uo=t,$r(),!0}function Is(e,t,n){gi(e,t=_o(e,t=co(n,t),1073741823)),null!==(e=gs(e,1073741823))&&hs(e)}function Ds(e,t){if(3===e.tag)Is(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Is(n,e,t);break}if(1===n.tag){var a=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof a.componentDidCatch&&(null===as||!as.has(a))){gi(n,e=So(n,e=co(t,e),1073741823)),null!==(n=gs(n,1073741823))&&hs(n);break}}n=n.return}}function Rs(e,t,n){var a=e.pingCache;null!==a&&a.delete(t),Ho===e&&Go===n?Wo===Lo||Wo===Ao&&1073741823===Ko&&Hr()-Jo<Zo?ws(e,Go):Xo=!0:$s(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),hs(e)))}Eo=function(e,t,n){var a=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||gr.current)Ul=!0;else{if(a<n){switch(Ul=!1,t.tag){case 3:Ql(t),Ll();break;case 5:if(Hi(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:br(t.type)&&Cr(t);break;case 4:Fi(t,t.stateNode.containerInfo);break;case 10:ri(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(a=t.child.childExpirationTime)&&a>=n?no(e,t,n):(pr(Gi,1&Gi.current),null!==(t=lo(e,t,n))?t.sibling:null);pr(Gi,1&Gi.current);break;case 19:if(a=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(a)return io(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),pr(Gi,Gi.current),!a)return null}return lo(e,t,n)}Ul=!1}}else Ul=!1;switch(t.expirationTime=0,t.tag){case 2:if(a=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=hr(t,dr.current),oi(t,n),r=cl(null,t,a,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,pl(),br(a)){var i=!0;Cr(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var o=a.getDerivedStateFromProps;"function"==typeof o&&Oi(t,a,o,e),r.updater=xi,t.stateNode=r,r._reactInternalFiber=t,ji(t,a,e,n),t=Yl(null,t,a,!0,i,n)}else t.tag=0,Hl(null,t,r,n),t=t.child;return t;case 16:if(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}(r),1!==r._status)throw r._result;switch(r=r._result,t.type=r,i=t.tag=function(e){if("function"==typeof e)return Us(e)?1:0;if(null!=e){if((e=e.$$typeof)===V)return 11;if(e===q)return 14}return 2}(r),e=Jr(r,e),i){case 0:t=Kl(null,t,r,e,n);break;case 1:t=$l(null,t,r,e,n);break;case 11:t=Vl(null,t,r,e,n);break;case 14:t=Gl(null,t,r,Jr(r.type,e),a,n);break;default:throw Error(l(306,r,""))}return t;case 0:return a=t.type,r=t.pendingProps,Kl(e,t,a,r=t.elementType===a?r:Jr(a,r),n);case 1:return a=t.type,r=t.pendingProps,$l(e,t,a,r=t.elementType===a?r:Jr(a,r),n);case 3:if(Ql(t),null===(a=t.updateQueue))throw Error(l(282));if(r=null!==(r=t.memoizedState)?r.element:null,vi(t,a,t.pendingProps,null,n),(a=t.memoizedState.element)===r)Ll(),t=lo(e,t,n);else{if((r=t.stateNode.hydrate)&&(Ml=aa(t.stateNode.containerInfo.firstChild),Bl=t,r=Nl=!0),r)for(n=Ii(t,null,a,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Hl(e,t,a,n),Ll();t=t.child}return t;case 5:return Hi(t),null===e&&Rl(t),a=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,o=r.children,ea(a,r)?o=null:null!==i&&ea(a,i)&&(t.effectTag|=16),ql(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Hl(e,t,o,n),t=t.child),t;case 6:return null===e&&Rl(t),null;case 13:return no(e,t,n);case 4:return Fi(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=Ni(t,null,a,n):Hl(e,t,a,n),t.child;case 11:return a=t.type,r=t.pendingProps,Vl(e,t,a,r=t.elementType===a?r:Jr(a,r),n);case 7:return Hl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Hl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(a=t.type._context,r=t.pendingProps,o=t.memoizedProps,ri(t,i=r.value),null!==o){var s=o.value;if(0===(i=Xa(s,i)?0:0|("function"==typeof a._calculateChangedBits?a._calculateChangedBits(s,i):1073741823))){if(o.children===r.children&&!gr.current){t=lo(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){o=s.child;for(var c=u.firstContext;null!==c;){if(c.context===a&&0!=(c.observedBits&i)){1===s.tag&&((c=fi(n,null)).tag=2,gi(s,c)),s.expirationTime<n&&(s.expirationTime=n),null!==(c=s.alternate)&&c.expirationTime<n&&(c.expirationTime=n),li(s.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else o=10===s.tag&&s.type===t.type?null:s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===t){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}}Hl(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,a=(i=t.pendingProps).children,oi(t,n),a=a(r=si(r,i.unstable_observedBits)),t.effectTag|=1,Hl(e,t,a,n),t.child;case 14:return i=Jr(r=t.type,t.pendingProps),Gl(e,t,r,i=Jr(r.type,i),a,n);case 15:return Wl(e,t,t.type,t.pendingProps,a,n);case 17:return a=t.type,r=t.pendingProps,r=t.elementType===a?r:Jr(a,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,br(a)?(e=!0,Cr(t)):e=!1,oi(t,n),Si(t,a,r),ji(t,a,r,n),Yl(null,t,a,!0,e,n);case 19:return io(e,t,n)}throw Error(l(156,t.tag))};var zs=null,As=null;function Ls(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Fs(e,t,n,a){return new Ls(e,t,n,a)}function Us(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hs(e,t){var n=e.alternate;return null===n?((n=Fs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vs(e,t,n,a,r,i){var o=2;if(a=e,"function"==typeof e)Us(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case z:return Gs(n.children,r,i,t);case H:o=8,r|=7;break;case A:o=8,r|=1;break;case L:return(e=Fs(12,n,t,8|r)).elementType=L,e.type=L,e.expirationTime=i,e;case G:return(e=Fs(13,n,t,r)).type=G,e.elementType=G,e.expirationTime=i,e;case W:return(e=Fs(19,n,t,r)).elementType=W,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case F:o=10;break e;case U:o=9;break e;case V:o=11;break e;case q:o=14;break e;case K:o=16,a=null;break e}throw Error(l(130,null==e?e:typeof e,""))}return(t=Fs(o,n,t,r)).elementType=e,t.type=a,t.expirationTime=i,t}function Gs(e,t,n,a){return(e=Fs(7,e,a,t)).expirationTime=n,e}function Ws(e,t,n){return(e=Fs(6,e,null,t)).expirationTime=n,e}function qs(e,t,n){return(t=Fs(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ks(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function $s(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ys(e,t){var n=e.firstSuspendedTime,a=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(a>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Qs(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Xs(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Js(e,t,n,a){var r=t.current,i=ps(),o=ki.suspense;i=fs(i,r,o);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(br(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(br(u)){n=kr(n,u,s);break e}}n=s}else n=fr;return null===t.context?t.context=n:t.pendingContext=n,(t=fi(i,o)).payload={element:e},null!==(a=void 0===a?null:a)&&(t.callback=a),gi(r,t),ds(r,i),i}function Zs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function eu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function tu(e,t){eu(e,t),(e=e.alternate)&&eu(e,t)}function nu(e,t,n){var a=new Ks(e,t,n=null!=n&&!0===n.hydrate),r=Fs(3,null,null,2===t?7:1===t?3:0);a.current=r,r.stateNode=a,e[sa]=a.current,n&&0!==t&&function(e){var t=Bn(e);gt.forEach(function(n){Mn(n,e,t)}),mt.forEach(function(n){Mn(n,e,t)})}(9===e.nodeType?e:e.ownerDocument),this._internalRoot=a}function au(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ru(e,t,n,a,r){var i=n._reactRootContainer;if(i){var l=i._internalRoot;if("function"==typeof r){var o=r;r=function(){var e=Zs(l);o.call(e)}}Js(t,l,e,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new nu(e,0,t?{hydrate:!0}:void 0)}(n,a),l=i._internalRoot,"function"==typeof r){var s=r;r=function(){var e=Zs(l);s.call(e)}}ys(function(){Js(t,l,e,r)})}return Zs(l)}function iu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!au(t))throw Error(l(200));return function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:R,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}nu.prototype.render=function(e,t){Js(e,this._internalRoot,null,void 0===t?null:t)},nu.prototype.unmount=function(e){var t=this._internalRoot,n=void 0===e?null:e,a=t.containerInfo;Js(null,t,null,function(){a[sa]=null,null!==n&&n()})},at=function(e){if(13===e.tag){var t=Xr(ps(),150,100);ds(e,t),tu(e,t)}},rt=function(e){if(13===e.tag){ps();var t=Qr++;ds(e,t),tu(e,t)}},it=function(e){if(13===e.tag){var t=ps();ds(e,t=fs(t,e,null)),tu(e,t)}},Z=function(e,t,n){switch(t){case"input":if(je(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=fa(a);if(!r)throw Error(l(90));xe(a),je(a,r)}}}break;case"textarea":De(e,n);break;case"select":null!=(t=n.value)&&Me(e,!!n.multiple,t,!1)}},ie=vs,le=function(e,t,n,a){var r=Uo;Uo|=4;try{return Wr(98,e.bind(null,t,n,a))}finally{(Uo=r)===Bo&&$r()}},oe=function(){(Uo&(1|No|Io))===Bo&&(function(){if(null!==os){var e=os;os=null,e.forEach(function(e,t){Xs(t,e),hs(t)}),$r()}}(),Ms())},se=function(e,t){var n=Uo;Uo|=2;try{return e(t)}finally{(Uo=n)===Bo&&$r()}};var lu,ou,su={createPortal:iu,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw Error(l(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},hydrate:function(e,t,n){if(!au(t))throw Error(l(200));return ru(null,e,t,!0,n)},render:function(e,t,n){if(!au(t))throw Error(l(200));return ru(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,a){if(!au(n))throw Error(l(200));if(null==e||void 0===e._reactInternalFiber)throw Error(l(38));return ru(e,t,n,!1,a)},unmountComponentAtNode:function(e){if(!au(e))throw Error(l(40));return!!e._reactRootContainer&&(ys(function(){ru(null,null,e,!1,function(){e._reactRootContainer=null,e[sa]=null})}),!0)},unstable_createPortal:function(){return iu.apply(void 0,arguments)},unstable_batchedUpdates:vs,flushSync:function(e,t){if((Uo&(No|Io))!==Bo)throw Error(l(187));var n=Uo;Uo|=1;try{return Wr(99,e.bind(null,t))}finally{Uo=n,$r()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[ca,pa,fa,P.injectEventPluginsByName,f,Bt,function(e){S(e,Pt)},ae,re,En,T,Ms,{current:!1}]}};ou=(lu={findFiberByHostInstance:ua,bundleType:0,version:"16.12.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);zs=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},As=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(r({},lu,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return ou?ou(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var uu={default:su},cu=uu&&su||uu;e.exports=cu.default||cu},function(e,t,n){"use strict";e.exports=n(155)},function(e,t,n){"use strict";
|
34 |
/** @license React v0.18.0
|
35 |
* scheduler.production.min.js
|
36 |
*
|
@@ -38,4 +38,4 @@ object-assign
|
|
38 |
*
|
39 |
* This source code is licensed under the MIT license found in the
|
40 |
* LICENSE file in the root directory of this source tree.
|
41 |
-
*/var a,r,i,l,o;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},a=function(e){null!==s?setTimeout(a,0,e):(s=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},l=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,g=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var v=!1,y=null,w=-1,k=5,C=0;l=function(){return t.unstable_now()>=C},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var O=new MessageChannel,x=O.port2;O.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();C=e+k;try{y(!0,e)?x.postMessage(null):(v=!1,y=null)}catch(e){throw x.postMessage(null),e}}else v=!1},a=function(e){y=e,v||(v=!0,x.postMessage(null))},r=function(e,n){w=g(function(){e(t.unstable_now())},n)},i=function(){m(w),w=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var a=Math.floor((n-1)/2),r=e[a];if(!(void 0!==r&&0<j(r,t)))break e;e[a]=t,e[n]=r,n=a}}function S(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length;a<r;){var i=2*(a+1)-1,l=e[i],o=i+1,s=e[o];if(void 0!==l&&0>j(l,n))void 0!==s&&0>j(s,l)?(e[a]=s,e[o]=n,a=o):(e[a]=l,e[i]=n,a=i);else{if(!(void 0!==s&&0>j(s,n)))break e;e[a]=s,e[o]=n,a=o}}}return t}return null}function j(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],P=[],B=1,M=null,N=3,I=!1,D=!1,R=!1;function z(e){for(var t=S(P);null!==t;){if(null===t.callback)E(P);else{if(!(t.startTime<=e))break;E(P),t.sortIndex=t.expirationTime,_(T,t)}t=S(P)}}function A(e){if(R=!1,z(e),!D)if(null!==S(T))D=!0,a(L);else{var t=S(P);null!==t&&r(A,t.startTime-e)}}function L(e,n){D=!1,R&&(R=!1,i()),I=!0;var a=N;try{for(z(n),M=S(T);null!==M&&(!(M.expirationTime>n)||e&&!l());){var o=M.callback;if(null!==o){M.callback=null,N=M.priorityLevel;var s=o(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?M.callback=s:M===S(T)&&E(T),z(n)}else E(T);M=S(T)}if(null!==M)var u=!0;else{var c=S(P);null!==c&&r(A,c.startTime-n),u=!1}return u}finally{M=null,N=a,I=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=o;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,l){var o=t.unstable_now();if("object"==typeof l&&null!==l){var s=l.delay;s="number"==typeof s&&0<s?o+s:o,l="number"==typeof l.timeout?l.timeout:F(e)}else l=F(e),s=o;return e={id:B++,callback:n,priorityLevel:e,startTime:s,expirationTime:l=s+l,sortIndex:-1},s>o?(e.sortIndex=s,_(P,e),null===S(T)&&e===S(P)&&(R?i():R=!0,r(A,s-o))):(e.sortIndex=l,_(T,e),D||I||(D=!0,a(L))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_shouldYield=function(){var e=t.unstable_now();z(e);var n=S(T);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||l()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){D||I||(D=!0,a(L))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return S(T)},t.unstable_Profiling=null},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t,n){"use strict";n.r(t);var a=n(3),r=n.n(a),i=n(10),l=n.n(i),o=n(14),s=n.n(o),u=n(16),c=n.n(u),p=n(17),f=n.n(p),d=n(18),g=n.n(d),m=n(19),h=n.n(m),b=n(12),v=n.n(b),y=n(20),w=n.n(y),k=n(4),C=n(34),O=n(21),x=n(6),_=n(1);Object(O.a)(function(){var e=document.querySelector(".s-news-box-content");e&&""===e.innerHTML&&(Object(k.render)(wp.element.createElement("div",null,wp.element.createElement(x.Spinner,null)),e),Object(C.send)("stackable_news_feed_ajax",{success:function(t){e.innerHTML=t},error:function(e){alert(e)},data:{nonce:_.nonceNews}}))});var S=n(0),E={"ugb/accordion":{title:Object(S.__)("Accordion",_.i18n),description:Object(S.__)("A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.",_.i18n),sDemoURL:"https://wpstackable.com/accordion-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/text":{title:Object(S.__)("Advanced Text",_.i18n),description:Object(S.__)("Start with the building block of all page layouts.",_.i18n),sDemoURL:"https://wpstackable.com/advanced-text-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/heading":{title:Object(S.__)("Advanced Heading",_.i18n),description:Object(S.__)("Introduce new sections of your content in style.",_.i18n),sDemoURL:"https://wpstackable.com/advanced-heading-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/blockquote":{title:Object(S.__)("Blockquote",_.i18n),description:Object(S.__)("Display a quote in style.",_.i18n),sDemoURL:"https://wpstackable.com/blockquote-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/blog-posts":{title:Object(S.__)("Blog Posts",_.i18n),description:Object(S.__)("Your latest blog posts. Use this to showcase a few of your posts in your landing pages.",_.i18n),sDemoURL:"https://wpstackable.com/blog-posts-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/button":{title:Object(S.__)("Button",_.i18n),description:Object(S.__)("Add a customizable button.",_.i18n),sDemoURL:"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/cta":{title:Object(S.__)("Call to Action",_.i18n),description:Object(S.__)("A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.",_.i18n),sDemoURL:"https://wpstackable.com/call-to-action-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/card":{title:Object(S.__)("Card",_.i18n),description:Object(S.__)("Describe a single subject in a small card. You can use this to describe your product, service or a person.",_.i18n),sDemoURL:"https://wpstackable.com/card-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/columns":{title:Object(S.__)("Columns",_.i18n),description:Object(S.__)("Add a block that displays content in multiple columns. Get advanced options on how you want your columns to look.",_.i18n),sDemoURL:"https://wpstackable.com/columns-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/container":{title:Object(S.__)("Container",_.i18n),description:Object(S.__)("A styled container that you can add other blocks inside. Use this to create unique layouts.",_.i18n),sDemoURL:"https://wpstackable.com/container-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/count-up":{title:Object(S.__)("Count Up",_.i18n),description:Object(S.__)("Showcase your stats. Display how many customers you have or the number of downloads of your app.",_.i18n),sDemoURL:"https://wpstackable.com/count-up-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/design-library":{title:Object(S.__)("Design Library",_.i18n),description:Object(S.__)("Choose from over a hundred block designs from the Stackable Design Library.",_.i18n)},"ugb/divider":{title:Object(S.__)("Divider",_.i18n),description:Object(S.__)("Add a pause between your content.",_.i18n)},"ugb/expand":{title:Object(S.__)("Expand / Show More",_.i18n),description:Object(S.__)("Display a small snippet of text. Your readers can toggle it to show more information.",_.i18n),sDemoURL:"https://wpstackable.com/expand-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/feature-grid":{title:Object(S.__)("Feature Grid",_.i18n),description:Object(S.__)("Display multiple product features or services. You can use Feature Grids one after another.",_.i18n),sDemoURL:"https://wpstackable.com/feature-grid-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/feature":{title:Object(S.__)("Feature",_.i18n),description:Object(S.__)("Display a product feature or a service in a large area.",_.i18n),sDemoURL:"https://wpstackable.com/feature-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/header":{title:Object(S.__)("Header",_.i18n),description:Object(S.__)("A large header title area. Typically used at the very top of a page.",_.i18n),sDemoURL:"https://wpstackable.com/header-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/icon":{title:Object(S.__)("Icon",_.i18n),description:Object(S.__)("Pick an icon or upload your own SVG icon to decorate your content.",_.i18n),sDemoURL:"https://wpstackable.com/icon-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/icon-list":{title:Object(S.__)("Icon List",_.i18n),description:Object(S.__)("An unordered list with icons. You can use this as a list of features or benefits.",_.i18n),sDemoURL:"https://wpstackable.com/icon-list-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/image-box":{title:Object(S.__)("Image Box",_.i18n),description:Object(S.__)("Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.",_.i18n),sDemoURL:"https://wpstackable.com/image-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/notification":{title:Object(S.__)("Notification",_.i18n),description:Object(S.__)("Show a notice to your readers. People can dismiss the notice to permanently hide it.",_.i18n),sDemoURL:"https://wpstackable.com/notification-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/number-box":{title:Object(S.__)("Number Box",_.i18n),description:Object(S.__)('Display steps or methods that your users will do in your service. For example, "Get started in just 3 easy steps: 1, 2 and 3!"',_.i18n),sDemoURL:"https://wpstackable.com/number-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/pricing-box":{title:Object(S.__)("Pricing Box",_.i18n),description:Object(S.__)("Display the different pricing tiers of your business.",_.i18n),sDemoURL:"https://wpstackable.com/pricing-table-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/separator":{title:Object(S.__)("Separator",_.i18n),description:Object(S.__)("A fancy separator to be placed between containers and content.",_.i18n),sDemoURL:"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/spacer":{title:Object(S.__)("Spacer",_.i18n),description:Object(S.__)("Sometimes you just need some space.",_.i18n)},"ugb/team-member":{title:Object(S.__)("Team Member",_.i18n),description:Object(S.__)("Display members of your team or your office. Use multiple Team Member blocks if you have a large team.",_.i18n),sDemoURL:"https://wpstackable.com/team-member-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/testimonial":{title:Object(S.__)("Testimonial",_.i18n),description:Object(S.__)("Showcase what your users say about your product or service.",_.i18n),sDemoURL:"https://wpstackable.com/testimonial-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/video-popup":{title:Object(S.__)("Video Popup",_.i18n),description:Object(S.__)("Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.",_.i18n),sDemoURL:"https://wpstackable.com/video-popup-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}},j=n(27),T=n(7),P=n.n(T),B=n(8),M=n.n(B),N=n(35),I=n.n(N),D=n(23),R=n(5),z=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a};return wp.element.createElement(F,M()({design:a("Design",e.designDefault),size:a("Size","normal"),text:a("Text",""),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),icon:a("Icon"),iconPosition:a("IconPosition"),onChange:function(e){return t(r()({},n("Text"),e))},url:a("Url"),newTab:a("NewTab"),noFollow:a("NoFollow"),onChangeUrl:function(e){return t(r()({},n("Url"),e))},onChangeNewTab:function(e){return t(r()({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(r()({},n("NoFollow"),e))},onChangeIcon:function(e){return t(r()({},n("Icon"),e))},isSelected:e.isSelected},e))};z.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(z.Content=function(e){var t=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[t(n)];return 0===r?r:r||a};return wp.element.createElement(F.Content,M()({design:n("Design",e.designDefault),size:n("Size","normal"),text:n("Text"),icon:n("Icon"),newTab:n("NewTab"),url:n("Url"),noFollow:n("NoFollow"),hoverEffect:n("HoverEffect"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow"),iconPosition:n("IconPosition")},e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};var A=1,L=function(e){function t(){var e;return c()(this,t),e=g()(this,h()(t).apply(this,arguments)),r()(v()(e),"hideUrlPopup",function(){var t=document.body;document.querySelector('iframe[name="editor-canvas"]')&&(t=document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.body),t.removeEventListener("click",e.outsideClickHandler),e.setState({openPopup:!1})}),e.state={openPopup:!1},e.buttonInstanceId=A++,e.onButtonClickHandler=e.onButtonClickHandler.bind(v()(e)),e.outsideClickHandler=e.outsideClickHandler.bind(v()(e)),e.onKeyPressHandler=e.onKeyPressHandler.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"onButtonClickHandler",value:function(e){if(this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button"));else if(e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-url-input-popover")||e.target.closest(".ugb-icon-popover")||e.target.closest(".components-popover"))return;if(!this.state.openPopup){var t=document.body;document.querySelector('iframe[name="editor-canvas"]')&&(t=document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.body),t.addEventListener("click",this.outsideClickHandler)}this.setState({openPopup:!0})}},{key:"outsideClickHandler",value:function(e){e.target.closest(".ugb-button-container-".concat(this.buttonInstanceId))||e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")?this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-svg-icon-placeholder__button")&&this.hideUrlPopup():this.hideUrlPopup()}},{key:"onKeyPressHandler",value:function(e){e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")||this.hideUrlPopup()}},{key:"render",value:function(){var e,t=this.props,n=t.iconButton,a=t.className,i=void 0===a?"":a,l=t.size,o=void 0===l?"normal":l,s=t.text,u=void 0===s?"":s,c=t.onChange,p=void 0===c?function(){}:c,f=t.design,d=void 0===f?"basic":f,g=t.shadow,m=void 0===g?0:g,h=t.iconPosition,b=void 0===h?"":h,v=t.hoverEffect,y=void 0===v?"":v,w=t.ghostToNormalEffect,C=void 0!==w&&w,O=t.url,x=void 0===O?"":O,E=t.newTab,j=void 0===E?"":E,T=t.noFollow,B=void 0===T?"":T,M=t.onChangeUrl,N=void 0===M?null:M,I=t.onChangeNewTab,R=void 0===I?null:I,z=t.onChangeNoFollow,A=void 0===z?null:z,L=t.onChangeIcon,F=void 0===L?null:L,U=t.icon,H=void 0===U?null:U,V=t.isSelected,G=void 0===V?null:V,W=P()([i,"ugb-button","ugb-button--size-".concat(o)],(e={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":C},r()(e,"ugb--hover-effect-".concat(y),"link"!==d&&y),r()(e,"ugb--shadow-".concat(m),"basic"===d&&m),r()(e,"ugb-button--design-".concat(d),"basic"!==d),r()(e,"ugb-button--has-icon",H),r()(e,"ugb-button--icon-position-".concat(b),b),e)),q=P()(["ugb-button-container","ugb-button-container-".concat(this.buttonInstanceId),this.props.containerClassName]),K=(null===G||G)&&this.state.openPopup;return wp.element.createElement("div",{className:q,onClick:this.onButtonClickHandler,onKeyPress:this.onKeyPressHandler,role:"button",tabIndex:"0"},wp.element.createElement("a",{className:W},H&&"link"!==d&&wp.element.createElement(k.Fragment,null,!F&&wp.element.createElement(Ko,{value:H}),F&&wp.element.createElement(Xo,{value:H,onChange:F,isOpen:n?K:null})),!n&&wp.element.createElement(D.RichText,{tagName:"span",className:"link"===d?"":"ugb-button--inner",placeholder:Object(S.__)("Button text",_.i18n),value:u,onChange:p,withoutInteractiveFormatting:!0,keepPlaceholderOnFocus:!0}),K&&wp.element.createElement(Ct,{value:x,onChange:N,newTab:j,noFollow:B,onChangeNewTab:R,onChangeNoFollow:A,disableSuggestions:this.props.disableSuggestions})))}}]),t}(k.Component);L.defaultProps={iconButton:!1,disableSuggestions:!1,containerClassName:"",className:"",size:"normal",text:"",onChange:function(){},design:"basic",shadow:0,iconPosition:"",hoverEffect:"",ghostToNormalEffect:!1,url:"",newTab:"",noFollow:"",onChangeUrl:null,onChangeNewTab:null,onChangeNoFollow:null,onChangeIcon:null,icon:null,isSelected:null},L.Content=function(e){var t,n=e.iconButton,a=e.className,i=void 0===a?"":a,l=e.size,o=void 0===l?"normal":l,s=e.url,u=void 0===s?"":s,c=e.icon,p=void 0===c?null:c,f=e.text,d=void 0===f?"":f,g=e.design,m=void 0===g?"basic":g,h=e.newTab,b=void 0!==h&&h,v=e.shadow,y=void 0===v?0:v,w=e.iconPosition,k=void 0!==w&&w,C=e.hoverEffect,O=void 0===C?"":C,x=e.noFollow,_=void 0!==x&&x,S=e.ghostToNormalEffect,E=void 0!==S&&S,j=e.target,T=void 0===j?"":j,B=e.role,N=void 0===B?"":B,R=e.title,z=void 0===R?"":R,A=e.containerClassName,L=void 0===A?"":A,F=P()([i,"ugb-button","ugb-button--size-".concat(o)],(t={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":E},r()(t,"ugb--hover-effect-".concat(O),"link"!==m&&O),r()(t,"ugb--shadow-".concat(y),"basic"===m&&y),r()(t,"ugb-button--design-".concat(m),"basic"!==m),r()(t,"ugb-button--has-icon",p),r()(t,"ugb-button--icon-position-".concat(k),k),t)),U=P()(["ugb-button-container",L]),H=[];b&&(H.push("noopener"),H.push("noreferrer")),_&&H.push("nofollow");var V={};return N&&(V.role=N),wp.element.createElement("div",{className:U},(d||n)&&wp.element.createElement("a",M()({className:F,href:u,target:T||b?T||"_blank":void 0,rel:e.rel||H.join(" "),title:I()(z)},V),p&&"link"!==m&&wp.element.createElement(Ko.Content,{value:p}),!n&&wp.element.createElement(D.RichText.Content,{tagName:"span",className:"link"===m?"":"ugb-button--inner",value:d})))};var F=L,U={ru_RU:"cyrillic",bg_BG:"cyrillic",he_IL:"hebrew",el:"greek",vi:"vietnamese",uk:"cyrillic",cs_CZ:"latin-ext",ro_RO:"latin-ext",pl_PL:"latin-ext"},H=function(e){var t=e.replace(/ /g,"+"),n=U[_.locale]?"&subset=".concat(U):"";return"https://fonts.googleapis.com/css?family=".concat(t,":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic").concat(n)},V=function(e){return!e.match(/^(sans[-+]serif|serif|monospace|serif-alt)$/i)},G=function(e){setTimeout(function(){var t=function(t){if(t&&V(e)){if(q(e,t))return;var n=W(e);t.appendChild(n)}},n=$e();t(n),n!==document.querySelector("head")&&t(document.querySelector("head"))},50)},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("link");return t.classList.add("ugb-google-fonts"),t.setAttribute("data-font-name",e),t.setAttribute("href",H(e)),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.querySelector("head");return t.querySelector('[data-font-name="'.concat(e,'"]'))},K=function(e){return V(e)?'"'.concat(e,'", Sans-serif'):e.match(/^serif$/i)?'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif':e.match(/^serif-alt$/i)?'Constantia, Lucida Bright, Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif':e.match(/^monospace$/i)?'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace':'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},$=function(e){Object.keys(e).filter(function(e){return e.match(/fontfamily/i)}).forEach(function(t){var n=e[t];n&&G(n)})};var Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return Object(R.camelCase)(Object(S.sprintf)(e,t))},i=_e(n,r,""),l=a.importantSize,o=void 0!==l&&l,s=a.important,u=void 0===s||s,c=a.inherit,p=void 0===c||c,f=a.inheritMax,d=void 0===f?50:f,g=a.inheritMin,m={},h=i("FontSize"),b=i("TabletFontSize"),v=i("MobileFontSize");if("tablet"!==t&&"mobile"!==t)m={fontFamily:""!==i("FontFamily")?K(i("FontFamily")):void 0,fontSize:""!==h?xe("".concat(h).concat(i("FontSizeUnit")||"px"),o):void 0,fontWeight:""!==i("FontWeight")?i("FontWeight"):void 0,textTransform:""!==i("TextTransform")?i("TextTransform"):void 0,letterSpacing:""!==i("LetterSpacing")?"".concat(i("LetterSpacing"),"px"):void 0,lineHeight:""!==i("LineHeight")?"".concat(i("LineHeight")).concat(i("LineHeightUnit")||"em"):void 0};else if("tablet"===t){if(m={lineHeight:""!==i("TabletLineHeight")?"".concat(i("TabletLineHeight")).concat(i("TabletLineHeightUnit")||"em"):void 0},p){var y=Se(h,{min:g,max:d});y&&(m.fontSize="".concat(y).concat(i("FontSizeUnit")||"px"))}b&&(m.fontSize=i("TabletFontSize","%s".concat(i("TabletFontSizeUnit")||"px")))}else{if(m={lineHeight:""!==i("MobileLineHeight")?"".concat(i("MobileLineHeight")).concat(i("MobileLineHeightUnit")||"em"):void 0},p){var w=Se(h,{min:g,max:d});w&&(m.fontSize="".concat(w).concat(i("FontSizeUnit")||"px"));var k=Se(b,{min:g,max:d});k?m.fontSize="".concat(k).concat(i("TabletFontSizeUnit")||"px"):(w||b)&&(m.fontSize=void 0)}v&&(m.fontSize=i("MobileFontSize","%s".concat(i("MobileFontSizeUnit")||"px")))}return u?Oe(m):m},Q=n(9);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var J={},Z=function(){J=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},function(e){var t=document.createElement("div");if(t.classList.add("editor-styles-wrapper"),t.classList.add("ugb-default-font-size"),t.innerHTML='<div class="wp-block">'.concat(e.map(function(e){return"<".concat(e,"></").concat(e,">")}).join(),"</div>"),!document||!document.body)return{};document.body.appendChild(t);var n={};return e.forEach(function(e){var a=window.getComputedStyle(t.querySelector(e)).getPropertyValue("font-size");n[e]=Math.round(parseFloat(a))}),document.body.removeChild(t),n}(["h1","h2","h3","h4","h5","h6","p"]))};Object(Q.addFilter)("stackable.global-settings.typography.editor-styles","stackable/default-font-sizes",function(e,t,n,a){return e[".ugb-default-font-size .wp-block ".concat(t)]=Y("%s","desktop",a,{important:!0}),J={},e});var ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(J).length&&!t||Z(),J[e]||J.p||21};Object(O.a)(function(){Z()});var te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e,t))},a=_e(t,n);return"gradient"===a("BackgroundColorType")||a("BackgroundMediaUrl")||a("TabletBackgroundMediaUrl")||a("MobileBackgroundMediaUrl")};var ne=n(26),ae=n.n(ne);var re=n(2),ie=n.n(re);function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var oe=ie.a.createElement("circle",{cx:50,cy:50,r:50}),se=function(e){return ie.a.createElement("svg",le({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},e),oe)};function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ce=ie.a.createElement("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}),pe=function(e){return ie.a.createElement("svg",ue({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),ce)};function fe(){return(fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var de=ie.a.createElement("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"});var ge={circle:se,square:pe,blob1:function(e){return ie.a.createElement("svg",fe({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),de)}},me=function(e){var t=Object(Q.applyFilters)("stackable.image.shape.svgs",ge);return t[e]?t[e]:null},he=n(15),be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{width:e.media_details?e.media_details.width:"",height:e.media_details?e.media_details.height:"",source_url:e.source_url||""}},ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.media_details&&e.media_details.sizes&&e.media_details.sizes[t]||be(e):null};window._stackableCachedImageData={};var ye=function(e,t){var n=t("core").getMedia,a=e?n(e):null;return a&&void 0!==a.id&&(window._stackableCachedImageData[a.id]=a),a},we=function(e){return window._stackableCachedImageData[e]||null};n(42),n(36);function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Oe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(function(n,a){return Ce({},n,r()({},a,xe(e[a],t)))},{})},xe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""!==e&&void 0!==e&&t&&!String(e).match(/!important/i)?"".concat(e," !important"):e},_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return function(a){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,l=null!==t?t:function(e){return Object(R.lowerFirst)(e)},o=void 0===e[l(a)]?"":e[l(a)];return""!==o?r?Object(S.sprintf)(r.replace(/%$/,"%%"),o):o:i}},Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,a=void 0===n?Number.NEGATIVE_INFINITY:n,r=t.max,i=void 0===r?Number.POSITIVE_INFINITY:r;if(""!==e){var l=Object(R.clamp)(e,parseFloat(a),parseFloat(i));if(!isNaN(l))return parseFloat(l)!==parseFloat(e)?l:void 0}};var Ee={facebook:{label:Object(S.__)("Facebook",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-f" class="svg-inline--fa fa-facebook-f fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"></path></svg>'},twitter:{label:Object(S.__)("Twitter",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg>'},instagram:{label:Object(S.__)("Instagram",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg>'},pinterest:{label:Object(S.__)("Pinterest",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="pinterest-p" class="svg-inline--fa fa-pinterest-p fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"></path></svg>'},linkedin:{label:Object(S.__)("LinkedIn",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg>'},youtube:{label:Object(S.__)("YouTube",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"></path></svg>'},email:{label:Object(S.__)("Email",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="envelope" class="svg-inline--fa fa-envelope fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></svg>'}},je=n(32);function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Be=["uniqueClass"],Me={};var Ne=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=Object(he.select)("core/block-editor"),i=a.getBlockName,l=a.getSelectedBlockClientId,o=a.getBlockAttributes,s=a.hasMultiSelection,u=a.getMultiSelectedBlockClientIds,c=Object(he.dispatch)("core/block-editor"),p=c.updateBlockAttributes,f=Object(he.select)("core/blocks"),d=f.getBlockType;if(n||!s()){var g=n||l();if(g){var m=o(g),h=i(g).replace(/^\w+\//g,""),b=d(i(g)).attributes,v=Object.keys(b).reduce(function(e,t){return Pe({},e,r()({},t,b[t]?b[t].default:""))},{}),y=Object(Q.applyFilters)("stackable.".concat(h,".design.filtered-block-attributes"),Pe({},v,{},t),m),w=Object(Q.applyFilters)("stackable.".concat(h,".design.no-text-attributes"),y,m);$(w),p(g,Object(R.omit)(w,["uniqueClass"]))}}else u().forEach(function(n){e(t,n)})},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(k.useState)(function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),a=l()(n,2),r=a[0],i=a[1],o=function(t){try{var n=t instanceof Function?t(r):t;i(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(e){}};return[r,o]};var De=function(e,t){var n=Re(e,t);return n?n.html[0]:""},Re=function(e,t){return window.FontAwesome?window.FontAwesome.icon({prefix:e,iconName:t}):null},ze=n(22),Ae=n.n(ze),Le=n(25),Fe=n.n(Le),Ue=n(29),He=n.n(Ue);n(43);var Ve=function(e){return e.match(/(mp4|webm|ogg)$/i)},Ge="desktop",We=function(){return Ge},qe=!1,Ke=function(){return qe},$e=function(){var e=document.querySelector("head");return Ye()&&(e=document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.querySelector("head")),e},Ye=function(){return!!document.querySelector('iframe[name="editor-canvas"]')};function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Je=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a},i=Object.keys(Ee).reduce(function(e,i){var l;return Xe({},e,(l={},r()(l,"".concat(i,"Url"),a("".concat(i,"Url"))),r()(l,"onChange".concat(Object(R.upperFirst)(i),"Url"),function(e){return t(r()({},n("".concat(i,"Url")),e))}),l))},{});return wp.element.createElement(rt,M()({design:a("Design",e.designDefault),size:a("Size","normal"),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),useSocialColors:a("UseSocialColors"),newTab:a("NewTab"),onChangeNewTab:function(e){return t(r()({},n("NewTab"),e))},isSelected:e.isSelected},i,e))};Je.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(Je.Content=function(e){var t=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[t(n)];return 0===r?r:r||a},a=Object.keys(Ee).reduce(function(e,t){return Xe({},e,r()({},"".concat(t,"Url"),n("".concat(t,"Url"))))},{});return wp.element.createElement(rt.Content,M()({design:n("Design",e.designDefault),size:n("Size","normal"),newTab:n("NewTab"),hoverEffect:n("HoverEffect"),useSocialColors:n("UseSocialColors"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow")},a,e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tt=function(e){return wp.element.createElement(k.Fragment,null,Object.keys(Ee).map(function(t){var n=P()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return(!0===e["show".concat(Object(R.upperFirst)(t))]||e["".concat(t,"Url")]&&!1!==e["show".concat(Object(R.upperFirst)(t))])&&wp.element.createElement(F,M()({key:t,iconButton:!0,className:n,rel:"noopener noreferrer nofollow",icon:Ee[t].icon,url:e["".concat(t,"Url")],onChangeUrl:function(n){var a=n;"email"===t&&a.match(/^[^:]+@./)&&(a="mailto:".concat(a)),e["onChange".concat(Object(R.upperFirst)(t),"Url")](a)},onChangeNoFollow:!1,disableSuggestions:!0},e))}))},nt=Object.keys(Ee).reduce(function(e,t){var n;return et({},e,(n={},r()(n,"".concat(t,"Url"),""),r()(n,"show".concat(Object(R.upperFirst)(t)),null),n))},{});tt.defaultProps=et({useSocialColors:!0},nt),tt.Content=function(e){return wp.element.createElement(k.Fragment,null,Object.keys(Ee).map(function(t){var n=P()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return!1!==e["show".concat(Object(R.upperFirst)(t))]&&wp.element.createElement(F.Content,M()({key:t,className:n,iconButton:!0,rel:"noopener noreferrer nofollow",icon:Ee[t].icon,url:e["".concat(t,"Url")]||"#"},e))}))};var at=Object.keys(Ee).reduce(function(e,t){var n;return et({},e,(n={},r()(n,"".concat(t,"Url"),""),r()(n,"show".concat(Object(R.upperFirst)(t)),null),n))},{});tt.Content.defaultProps=et({useSocialColors:!0},at);var rt=tt;function it(){return(it=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var lt=ie.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),ot=ie.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),st=ie.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),ut=function(e){return ie.a.createElement("svg",it({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),lt,ot,st)};function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ft=function(e){var t=e.imageID,n=e.imageURL,a=e.onRemove,r=e.className,i=e.allowedTypes,l=e.render,o=e.hasRemove,s=e.style,u=P()([r,"ugb-image-upload-placeholder"],{"ugb-image-upload-has-image":n,"ugb-image-upload-has-placeholder":!n}),c=pt({},s,{backgroundImage:n&&!l?"url(".concat(n,")"):void 0});return wp.element.createElement(D.MediaUpload,{onSelect:function(t){var n=t.url,a=t.width,r=t.height,i=e.imageSize||"full";t.sizes&&t.sizes[i]&&(n=t.sizes[i].url,a=t.sizes[i].width,r=t.sizes[i].height),e.onChange(pt({},t,{url:n,width:a,height:r}))},allowedTypes:i,value:t,render:function(e){return n&&l?wp.element.createElement("div",{className:u,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:c,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&o&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(x.Dashicon,{icon:"no"})),l):wp.element.createElement("div",{className:u,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:c,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&o&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(x.Dashicon,{icon:"no"})),!n&&wp.element.createElement(ut,null))}})};ft.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:function(e){e.url,e.id},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};var dt=function(e){return wp.element.createElement(x.BaseControl,{label:e.label,id:"url-input-control",help:e.help},wp.element.createElement(D.URLInput,M()({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},Object(R.omit)(e,["label","help"]))))};dt.defaultProps={label:Object(S.__)("URL",_.i18n),help:null,value:"",onChange:function(){}};var gt=dt,mt=Object(k.forwardRef)(function(e,t){var n=P()([e.className,"ugb-button-component"]);return wp.element.createElement(x.Button,M()({},e,{className:n,ref:t}))});function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var yt=Object(k.createElement)(function(e){var t=e.className,n=e.isPressed,a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach(function(t){ht(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},bt(e,["className","isPressed"]),{className:P()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":"true",focusable:"false"});return Object(k.createElement)("svg",a)},{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(k.createElement)(function(e){return Object(k.createElement)("path",e)},{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"})),wt=[{id:"opensInNewTab",title:Object(S.__)("Opens in new tab",_.i18n)},{id:"noFollowLink",title:Object(S.__)("Nofollow link",_.i18n)}],kt=function(e){var t=e.value,n={url:t,opensInNewTab:e.newTab,noFollowLink:e.noFollow};if(!e.onChange&&!e.onChangeNewTab&&!e.onChangeNoFollow)return null;var a=P()(["ugb-url-input-popover"]),r=wt.filter(function(t){switch(t.id){case"opensInNewTab":return e.onChangeNewTab;case"noFollowLink":return e.onChangeNoFollow;default:return!0}});return wp.element.createElement(x.Popover,{className:a,focusOnMount:!1,position:e.position},wp.element.createElement(D.__experimentalLinkControl,{value:n,settings:r,showSuggestions:!e.disableSuggestions,onChange:function(t){var a={url:e.onChange,opensInNewTab:e.onChangeNewTab,noFollowLink:e.onChangeNoFollow},r=Object(R.omitBy)(Object(R.omit)(t,"id","title","type"),function(e,t){return n[t]===e});Object(R.keys)(r).map(function(e){return a[e](r[e])})}},wp.element.createElement("form",null,wp.element.createElement("input",{placeholder:Object(S.__)("Search or type url",_.i18n),value:t}),wp.element.createElement(mt,{icon:yt,type:"submit"}))))};kt.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,onChangeNewTab:null,onChangeNoFollow:null};var Ct=kt,Ot=n(13);function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var _t=Object(S.__)("(current %s: %s)",_.i18n),St=Object(Ot.compose)([D.withColorContext,Object(Ot.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.disableCustomColors,n=e.label,a=e.onChange,i=e.value,l=e.className,o=void 0===l?"":l,s=Object(R.compact)(e.colors.map(function(e){return Object(R.isPlainObject)(e)?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{name:e.name||e.fallback||e.color||Object(S.__)("Untitled Color",_.i18n)}):null})),u=Object(D.getColorObjectByColorValue)(s,i),c=u&&u.name,p=Object(S.sprintf)(_t,n.toLowerCase(),c||i),f=i;"string"==typeof i&&i.includes("--stk-global-color")&&i.match(/#[\d\w]{6}/)&&(f=i.match(/#[\d\w]{6}/)[0]);var d=wp.element.createElement(k.Fragment,null,n,f&&wp.element.createElement(x.ColorIndicator,{colorValue:f,"aria-label":p}));return wp.element.createElement(x.BaseControl,{className:P()([o,"editor-color-palette-control"]),id:"editor-color-palette-control",label:d},wp.element.createElement(x.ColorPalette,M()({className:"editor-color-palette-control__color-palette",value:f,onChange:function(e){var t=Object(D.getColorObjectByColorValue)(s,e);a(Object(Q.applyFilters)("stackable.color-palette-control.change",e,t))}},{colors:s,disableCustomColors:t})))}),Et=function(e){return Array.isArray(e)?e.map(function(e){var t,n=l()(e,2),a=n[0],r=n[1];return[a,'"'.concat((t=r,Object(R.escape)(unescape(t))),'"')].join("=")}).join(" "):""},jt=function(e){var t=Object(k.useRef)(),n=Object(k.useState)(!1),a=l()(n,2),i=a[0],o=a[1],s=Object(k.useState)(Et(e.value)),u=l()(s,2),c=u[0],p=u[1];Object(k.useEffect)(function(){t.current!==document.activeElement&&p(Et(e.value))},[JSON.stringify(e.value)]);var f=Object(k.useCallback)(function(t){var n;p(t);var a=document.createElement("div");a.innerHTML="<div ".concat(t," />");var i=(null===(n=a.children[0])||void 0===n?void 0:n.attributes)||[],l=[],s=!1;""===a.innerHTML&&""!==t.trim()&&(s=!0);for(var u=0;u<i.length;u++)if(!e.invalidHtmlAttributes.includes(i[u].name))try{var c=document.createElement("div");Object(k.render)(wp.element.createElement("div",r()({},i[u].name,i[u].value)),c),Object(k.unmountComponentAtNode)(c),document.createElement("div").setAttribute(i[u].name,i[u].value),l.push([i[u].name,escape(i[u].value)])}catch(e){s=!0}o(s),e.onChange(l)},[p,e.invalidHtmlAttributes,e.onChange,o]),d=Object(k.useCallback)(function(){Array.isArray(e.value)&&e.value.length>0&&p(Et(e.value))},[JSON.stringify(e.value)]);return wp.element.createElement(x.TextControl,{ref:t,"data-testid":"custom-attributes",className:"ugb-custom-attributes-control",label:Object(S.__)("Custom Attributes",_.i18n),value:c,onBlur:d,onChange:f,help:wp.element.createElement(k.Fragment,null,Object(S.__)("You can type in custom HTML attributes for this block in the field above.",_.i18n)," ",Object(S.__)("Example:",_.i18n),wp.element.createElement("br",null),wp.element.createElement("code",null,'data-id="my-title"'),wp.element.createElement("br",null),wp.element.createElement(x.ExternalLink,{href:"https://docs.wpstackable.com/article/461-how-to-use-custom-attributes?utm_source=inspector&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},Object(S.__)("Learn more about Custom Attributes",_.i18n)),i&&wp.element.createElement("span",{className:"ugb-custom-attributes-control__error"},Object(S.__)("There is an error in your custom attribute",_.i18n)))})};jt.defaultProps={label:"",value:[],invalidHtmlAttributes:[],onChange:function(){}};var Tt=n(24),Pt=n.n(Tt);Object(Ot.createHigherOrderComponent)(function(e){var t=function(t){var n=Object(he.useSelect)(function(e){var t,n;return null===(t=(n=e("core/edit-post")).isEditingTemplate)||void 0===t?void 0:t.call(n)});return Object(k.useEffect)(function(){$(t.attributes)},[n]),wp.element.createElement(e,t)};return t.defaultProps={attributes:{}},t},"withGoogleFont");var Bt=n(11),Mt=n.n(Bt);Object(Ot.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){var e;return c()(this,n),(e=g()(this,h()(n).apply(this,arguments))).setAttributes=e.setAttributes.bind(v()(e)),e}return w()(n,t),f()(n,[{key:"componentDidUpdate",value:function(e){Object(R.isEqual)(e.attributes,this.props.attributes)||Object(Q.doAction)("stackable.setAttributes.after")}},{key:"setAttributes",value:function(e){var t=this.props.blockName,n=Object(Q.applyFilters)("stackable.setAttributes",e,this.props);n=Object(Q.applyFilters)("stackable.".concat(t,".setAttributes"),n,this.props),this.props.setAttributes(n)}},{key:"render",value:function(){return wp.element.createElement(e,M()({},this.props,{setAttributes:this.setAttributes}))}}]),n}(k.Component),r()(t,"propTypes",{setAttributes:Mt.a.func.isRequired}),n},"withSetAttributeHook");function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}Object(Ot.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){return c()(this,n),g()(this,h()(n).apply(this,arguments))}return w()(n,t),f()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.clientId,a="ugb-".concat(n.substring(0,7));t.uniqueClass?t.uniqueClass!==a&&document.querySelectorAll(".".concat(t.uniqueClass)).length>1&&(this.props.attributes.uniqueClass=a):this.props.attributes.uniqueClass=a}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}]),n}(k.Component),r()(t,"defaultProps",{attributes:{},clientId:"",setAttributes:function(){}}),n},"withUniqueClass");Object(Q.addFilter)("stackable.user-design-library.save.ignore","stackable/unique-class",function(e){return[].concat(s()(e),["uniqueClass"])}),Object(Q.addFilter)("stackable.block.attributes","stackable/unique-class",function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{uniqueClass:{type:"string",default:""}})});var It=function(e){return document.querySelector(".ugb-panel--".concat(e))},Dt=function(e){var t=e.closest(".ugb-inspector-panel-controls");if(!t)return null;var n=t.getAttribute("class").match(/ugb-panel-(\w+)/);if(n){var a=n[1];return document.querySelector(".ugb-tab--".concat(a))}return null},Rt=function(e){e&&(e.classList.contains("is-active")||e.click())},zt=function(e){if(e){if(!e.classList.contains("is-opened")){var t=e.querySelector("button");t&&t.click()}At(e)}},At=function(e){var t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar"),a=e.getBoundingClientRect().top+2;a-=t?t.getBoundingClientRect().height:0,a-=n.getBoundingClientRect().top,document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar").scrollTop+=a};function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var Ft=!1,Ut={".ugb-top-separator":"top-separator",".ugb-bottom-separator":"bottom-separator",".ugb-inner-block":"column-background",".ugb-block-title":"block-title",".ugb-block-description":"block-description",".ugb--has-block-background":"block-background"},Ht={},Vt=[".block-editor-rich-text__editable",".editor-rich-text__editable","svg","img","figure",".ugb-button",'[role="button"]',".ugb-block-content > * > *",".ugb-block-content > *",".ugb-content-wrapper",".ugb-top-separator",".ugb-bottom-separator",".ugb-inner-block",".ugb-main-block"],Gt=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Ht[e],{},Ut)};Object(O.a)(function(){if(!Ft&&(Ft=!0,Element.prototype.matches)){var e=Object(Q.applyFilters)("stackable.click-open-inspector.listener-override",{});document.body.addEventListener("dblclick",function(t){if(!wp.customize){var n,a,r=(n=t.target,(a=n.closest("[data-type]"))&&a.getAttribute("data-type").match(/^ugb\//i)?a.getAttribute("data-type").replace(/^ugb\//i,""):"");if(r){var i=Gt(r);if(i){var l=[];Object.keys(e).some(function(n){return!!t.target.closest(n)&&(l=e[n],!0)}),[].concat(s()(l),Vt).some(function(e){var n=t.target.closest(e);return!!n&&Object.keys(i).some(function(e){return!!n.matches(e)&&function(e){var t=It(e);if(t){var n=Dt(t);Rt(n),zt(t)}if(!t){[".ugb-tab--style",".ugb-tab--layout",".ugb-tab--section",".ugb-tag--advanced"].some(function(n){var a=document.querySelector(n);return Rt(a),(t=It(e))&&zt(t),!!t})}return t}(i[e])})})}}}})}});var Wt=function(e){return Object(Ot.createHigherOrderComponent)(function(t){var n,a;return a=n=function(n){function a(){return c()(this,a),g()(this,h()(a).apply(this,arguments))}return w()(a,n),f()(a,[{key:"render",value:function(){var n=this.props.className.match(/ugb--help-tip/),a=P()([this.props.className],r()({},"ugb--help-tip-".concat(e),!n));return wp.element.createElement(t,M()({},this.props,{className:a}))}}]),a}(k.Component),r()(n,"defaultProps",{className:""}),a},"withHelpTip")},qt=null,Kt={},$t=[],Yt=function(e){return e.replace(/^[\w-]+\//,"")},Qt=function(){var e=Fe()(Ae.a.mark(function e(){var t,n,a=arguments;return Ae.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]&&a[0],qt&&!t){e.next=9;break}return e.next=4,He()({path:"/wp/v2/stk_design_library".concat(t?"/reset":""),method:"GET"});case 4:return n=e.sent,e.next=7,n;case 7:qt=e.sent,t&&(Kt={},$t=[]);case 9:return e.abrupt("return",qt);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Xt=function(){var e=Fe()(Ae.a.mark(function e(t){var n,a;return Ae.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Yt(t),Kt[n]){e.next=8;break}return e.next=4,He()({path:"/wp/v2/stk_block_designs/".concat(n),method:"GET"});case 4:return a=e.sent,e.next=7,a;case 7:Kt[n]=e.sent;case 8:return e.abrupt("return",Kt[n]);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Jt=function(){var e=Fe()(Ae.a.mark(function e(t){var n;return Ae.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if($t[t]){e.next=7;break}return e.next=3,He()({path:"/wp/v2/stk_design/".concat(t),method:"GET"});case 3:return n=e.sent,e.next=6,n;case 6:$t[t]=e.sent;case 7:return e.abrupt("return",$t[t]);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Zt=function(){var e=Fe()(Ae.a.mark(function e(){var t,n,a=arguments;return Ae.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],e.next=3,He()({path:"/wp/v2/stk_design_library_dev_mode/",method:"POST",data:{devmode:t}});case 3:return n=e.sent,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();Object(O.a)(function(){});var en=function(){var e=Fe()(Ae.a.mark(function e(t){var n,a,r,i,l,o,s,u,c,p,f,d,g,m,h,b,v,y;return Ae.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,a=void 0===n?"":n,r=t.block,i=void 0===r?"":r,l=t.mood,o=void 0===l?"":l,s=t.plan,u=void 0===s?"":s,c=t.colors,p=void 0===c?[]:c,f=t.categories,d=void 0===f?[]:f,g=t.search,m=void 0===g?"":g,h=t.reset,b=void 0!==h&&h,e.t0=Object,e.next=4,Qt(b);case 4:return e.t1=e.sent,v=e.t0.values.call(e.t0,e.t1),a&&(v=v.filter(function(e){return e.type===a})),i&&(y=-1===i.indexOf("ugb/")?"ugb/".concat(i):i,v=v.filter(function(e){return e.block===y})),o&&(v=v.filter(function(e){return e.mood===o})),u&&(v=v.filter(function(e){return e.plan===u})),p&&p.length&&(v=v.filter(function(e){return e.colors.some(function(e){return p.includes(e)})})),d&&d.length&&(v=v.filter(function(e){return e.categories.some(function(e){return d.includes(e)})})),m&&m.toLowerCase().replace(/\s+/," ").trim().split(" ").forEach(function(e){v=v.filter(function(t){return["label","plan","block","tags","categories","colors"].some(function(n){return-1!==t[n].toString().toLowerCase().indexOf(e)})})}),e.abrupt("return",v);case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),tn=function(){var e=Fe()(Ae.a.mark(function e(t){var n,a,r,i,l,o;return Ae.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qt();case 2:if(n=e.sent,a=n[t],r=a.type,i=a.block,l=a.template,"block"!==r||!i){e.next=12;break}return e.next=8,Xt(i);case 8:return o=e.sent,e.abrupt("return",o[t]);case 12:if(!l){e.next=16;break}return e.next=15,Jt(t);case 15:return e.abrupt("return",e.sent);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),nn=function(){var e=Fe()(Ae.a.mark(function e(){var t;return Ae.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Object,e.next=3,Qt();case 3:return e.t1=e.sent,t=e.t0.values.call(e.t0,e.t1),e.abrupt("return",t.reduce(function(e,t){var n=t.block,a=t.type;return e.includes(n)||"block"!==a||e.push(n),e},[]));case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),an=n(49),rn=n.n(an),ln=function(e){var t=e.image,n=e.label,a=e.className,r=Pt()(e,["image","label","className"]),i=t?t.match(/https?:/i)?t:_.srcUrl?"".concat(_.srcUrl,"/").concat(t):t:"",l="free"!==r.plan,o=l&&!_.isPro&&_.showProNotice;if(l&&!_.isPro&&!_.showProNotice)return null;var s=P()(["ugb-design-layout-selector__item",a],{"is-premium":r.plan&&!_.isPro&&"free"!==r.plan,"is-locked":o}),u=o?"div":"button";return wp.element.createElement(u,M()({className:s},r),wp.element.createElement("div",{className:"ugb-design-layout-selector__wrapper"},o&&wp.element.createElement(x.Icon,{className:"ugb-design-layout-selector__lock",icon:"lock"}),o&&wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=design-library-learn-more&utm_campaign=learnmore&utm_medium=gutenberg",className:"ugb-design-layout-selector__item-premium-button ugb-shadow-4 button button-secondary",target:"_premium",title:Object(S.__)("Learn More",_.i18n)},Object(S.__)("Learn More",_.i18n)),wp.element.createElement("img",{className:"ugb-design-layout-selector__image",src:i,alt:n})),wp.element.createElement("div",{className:"ugb-design-layout-selector__label"},n))};ln.defaultProps={name:"",label:"",className:""};var on=ln;function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var un={image:rn.a,plan:"free",label:"Basic",id:"basic"},cn=function(e){var t=e.name,n=Object(k.useState)([]),a=l()(n,2),i=a[0],o=a[1],s=Object(k.useState)([]),u=l()(s,2),c=u[0],p=u[1],f=Object(k.useState)(!1),d=l()(f,2),g=d[0],m=d[1],h=Object(k.useState)(!0),b=l()(h,2),v=b[0],y=b[1];Object(k.useEffect)(function(){var t=e.name.split("/")[1],n=Object(Q.applyFilters)("stackable.".concat(t,".edit.layouts"),[]).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{plan:e.premium?"premium":"free"})});o(n.length?n:[un]),en({type:"block",block:t}).then(function(t){var a;p(t),y(!1),!t.length&&n.length<=1&&e.setAttributes({design:(null===(a=n[0])||void 0===a?void 0:a.value)||un.id})})},[]);var w=wp.element.createElement(k.Fragment,null,wp.element.createElement(x.Icon,{icon:"admin-settings"}),Object(S.__)("Pick a layout or design",_.i18n)),C=!!i.length&&wp.element.createElement("div",{className:"ugb-design-layout-selector__layout-items"},(i.filter(function(e){return!Object(Q.applyFilters)("stackable.".concat(t,".edit.inspector.layout.excludeDesigns"),[]).includes(e.value)})||[]).map(function(t){return wp.element.createElement(on,M()({className:"ugb-design-layout-selector__layout-item",onClick:function(){t.premium&&!_.isPro||(0,e.setAttributes)({design:t.value})},key:t.label},t))})),O=P()("ugb-design-layout-selector__design-library",{"is-busy":v}),E=!!c.length&&wp.element.createElement("div",{className:O},wp.element.createElement("div",{className:"components-placeholder__fieldset ugb-design-layout-selector__design-container"},v&&wp.element.createElement("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},wp.element.createElement(x.Spinner,null)),wp.element.createElement("div",{className:"ugb-design-layout-selector__design-items"},(c||[]).map(function(t){var n={image:t.image,plan:t.plan,label:t.label};return wp.element.createElement(on,M()({className:"ugb-design-layout-selector__design-item",onClick:function(){(_.isPro||"free"===t.plan)&&(m(!0),tn(t.id).then(function(t){m(!1),Ne(t.attributes,e.clientId)}).catch(function(){m(!1)}))},key:t.label},n))})))),j=P()("ugb-design-layout-selector",{"is-busy":g});return wp.element.createElement(x.Placeholder,{className:j,label:w},g&&wp.element.createElement("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},wp.element.createElement(x.Spinner,null)),wp.element.createElement("div",{className:"ugb-design-layout-selector__content"},!!i.length&&wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(S.__)("Select a variation to start with.",_.i18n)),C,!!c.length&&wp.element.createElement("div",{className:"components-placeholder__instructions"},!!i.length&&Object(S.__)("Or pick from our Design Library.",_.i18n),!i.length&&Object(S.__)("Select a design from our library to start with.",_.i18n)),E),wp.element.createElement("div",{className:"ugb-design-layout-selector__close-button"},wp.element.createElement(x.ButtonGroup,null,wp.element.createElement(mt,{isLink:!0,isLarge:!0,onClick:function(){if(i.length){var t=i.find(function(e){return!!_.isPro||!e.premium});(0,e.setAttributes)({design:t.value})}}},Object(S.__)("Skip",_.i18n))),!_.isPro&&_.showProNotice&&(!!i.length&&i.some(function(e){return"premium"===e.plan})||!!c.length&&c.some(function(e){return"premium"===e.plan}))&&wp.element.createElement("p",{className:"ugb-design-layout-selector__notice"},Object(S.__)("You can hide premium hints in the settings",_.i18n))))};cn.defaultProps={name:""};var pn=cn;function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var dn=["ugb/column","ugb/columns"],gn=(Object(Ot.createHigherOrderComponent)(function(e){var t=function(t){var n=void 0!==t.attributes.design&&""===t.attributes.design;return Object(k.useMemo)(function(){return!dn.includes(t.name)},[])&&n?wp.element.createElement(pn,t):wp.element.createElement(e,t)};return t.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.defaultProps||{},{attributes:{}}),t},"withDesignLayoutSelector"),function(e){return wp.element.createElement(x.SelectControl,M()({},e,{options:[{value:"",label:Object(S.__)("None",_.i18n)},{value:"normal",label:Object(S.__)("Normal",_.i18n)},{value:"multiply",label:Object(S.__)("Multiply",_.i18n)},{value:"screen",label:Object(S.__)("Screen",_.i18n)},{value:"overlay",label:Object(S.__)("Overlay",_.i18n)},{value:"darken",label:Object(S.__)("Darken",_.i18n)},{value:"lighten",label:Object(S.__)("Lighten",_.i18n)},{value:"color-dodge",label:Object(S.__)("Color Dodge",_.i18n)},{value:"color-burn",label:Object(S.__)("Color Burn",_.i18n)},{value:"hard-light",label:Object(S.__)("Hard Light",_.i18n)},{value:"soft-light",label:Object(S.__)("Soft Light",_.i18n)},{value:"difference",label:Object(S.__)("Difference",_.i18n)},{value:"exclusion",label:Object(S.__)("Exclusion",_.i18n)},{value:"hue",label:Object(S.__)("Hue",_.i18n)},{value:"saturation",label:Object(S.__)("Saturation",_.i18n)},{value:"color",label:Object(S.__)("Color",_.i18n)},{value:"luminosity",label:Object(S.__)("Luminosity",_.i18n)},{value:"initial",label:Object(S.__)("Initial",_.i18n)},{value:"inherit",label:Object(S.__)("Inherit",_.i18n)},{value:"unset",label:Object(S.__)("Unset",_.i18n)}]}))});gn.defaultProps={label:Object(S.__)("Mix Blend Mode",_.i18n),help:Object(S.__)("Not supported in all browsers.",_.i18n)};var mn=Object(Ot.compose)(Wt("background-blend-mode"))(gn);function hn(){return(hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var bn=ie.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),vn=ie.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),yn=ie.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),wn=function(e){return ie.a.createElement("svg",hn({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),bn,vn,yn)},kn=function(e){var t=e.imageURL&&e.imageURL.match(/(mp4|webm|ogg)$/i)?"video":"image",n=function(){e.onRemove?e.onRemove():e.onChange({url:"",id:"",width:"",height:""})};return wp.element.createElement("div",{className:"ugb-image-control"},wp.element.createElement(x.BaseControl,{help:e.help},wp.element.createElement(na,{label:e.label,screens:e.screens}),wp.element.createElement(D.MediaUpload,{onSelect:e.onChange,allowedTypes:e.allowedTypes,value:e.imageID,render:function(a){return wp.element.createElement(k.Fragment,null,e.imageURL&&wp.element.createElement("div",{className:"ugb-image-preview-wrapper"},wp.element.createElement("button",{className:"ugb-image-preview-remove",onClick:n},wp.element.createElement(x.Dashicon,{icon:"no"})),"video"===t&&wp.element.createElement("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()}}),"image"===t&&wp.element.createElement("img",{className:"ugb-image-preview",src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},alt:Object(S.__)("preview",_.i18n)})),!e.imageURL&&wp.element.createElement("div",{className:"ugb-placeholder",onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},role:"button",tabIndex:0},wp.element.createElement(wn,null)))}})))};kn.defaultProps={label:"",imageID:"",imageURL:"",onChange:function(e){e.url,e.id,e.width,e.height},onRemove:function(){},allowedTypes:["image"],help:"",screens:["desktop"]};var Cn=kn,On=function(e){return wp.element.createElement(x.TextareaControl,M()({},e,{help:wp.element.createElement(k.Fragment,null,wp.element.createElement(x.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(S.__)("Describe the purpose of the image",_.i18n)),Object(S.__)("Leave empty if the image is purely decorative.",_.i18n))}))};On.defaultProps={label:Object(S.__)("Alt Text (Alternative Text)",_.i18n)};var xn=On,_n=n(50),Sn=n.n(_n),En=n(51),jn=n.n(En),Tn=n(52),Pn=n.n(Tn),Bn=n(53),Mn=n.n(Bn),Nn=function(e){return wp.element.createElement(k.Fragment,null,wp.element.createElement(qi,M()({},e,{className:P()(e.className,["ugb-image-shape-control","ugb--help-tip-image-shape"]),options:[].concat(s()(e.hasDefault?[{label:Object(S.__)("Default",_.i18n),value:"",image:Sn.a}]:[]),[{label:Object(S.__)("Square",_.i18n),value:"square",image:jn.a},{label:Object(S.__)("Circle",_.i18n),value:"circle",image:Pn.a},{label:Object(S.sprintf)(Object(S.__)("Blob %s",_.i18n),1),value:"blob1",image:Mn.a}],s()(Object(Q.applyFilters)("stackable.image.control.shapes",[])))})),_.showProNotice&&wp.element.createElement(gs,{type:"image"}))};Nn.defaultProps={className:"",label:Object(S.__)("Shape",_.i18n),selected:"",hasDefault:!0};var In=Nn,Dn=function(e){var t=e.imageData?ve(e.imageData,e.imageSize||"full"):null,n=null!==e.isSquareImage?e.isSquareImage:!!t&&t.width===t.height;return wp.element.createElement(k.Fragment,null,e.onChangeShape&&wp.element.createElement(In,{selected:e.shape,onChange:e.onChangeShape}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Flip Shape Horizontally",_.i18n),checked:e.shapeFlipX,onChange:e.onChangeShapeFlipX}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Flip Shape Vertically",_.i18n),checked:e.shapeFlipY,onChange:e.onChangeShapeFlipY}),e.onChangeShapeStretch&&!["","square"].includes(e.shape)&&!n&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Stretch Shape Mask",_.i18n),checked:e.shapeStretch,onChange:e.onChangeShapeStretch}))};Dn.defaultProps={imageId:"",imageSize:"full",isSquareImage:null,shape:"",shapeFlipX:!1,shapeFlipY:!1,shapeStretch:!1,onChangeShape:function(){},onChangeShapeFlipX:function(){},onChangeShapeFlipY:function(){},onChangeShapeStretch:function(){}};var Rn=Object(Ot.compose)([Object(he.withSelect)(function(e,t){var n=e("core").getMedia;return{imageData:t.imageId?n(t.imageId):null}})])(Dn),zn=function(e){var t=e.imageSizes,n=e.value,a=e.className,r=Pt()(e,["imageSizes","value","className"]),i=function(e){return Object(R.map)(e,function(e){var t=e.name;return{value:e.slug,label:t}})}(t);return Object(R.isEmpty)(i)?null:wp.element.createElement(x.SelectControl,M()({},r,{value:n||"large",options:i,className:P()(a,["ugb--help-tip-image-size"])}))};zn.defaultProps={className:"",label:Object(S.__)("Image Size"),value:"large",imageSizes:[],onChange:function(){}};var An=Object(Ot.compose)([Object(he.withSelect)(function(e){return{imageSizes:e("core/block-editor").getSettings().imageSizes}})])(zn),Ln=function(e){var t=e.label,n=e.setAttributes,a=e.enablePaddingTop,r=e.enablePaddingRight,i=e.enablePaddingBottom,l=e.enablePaddingLeft,o=e.attributes,s=o.columnPaddingTop,u=void 0===s?"":s,c=o.columnPaddingBottom,p=void 0===c?"":c,f=o.columnPaddingRight,d=void 0===f?"":f,g=o.columnPaddingLeft,m=void 0===g?"":g,h=o.columnPaddingUnit,b=void 0===h?"px":h,v=o.tabletColumnPaddingTop,y=void 0===v?"":v,w=o.tabletColumnPaddingBottom,C=void 0===w?"":w,O=o.tabletColumnPaddingRight,x=void 0===O?"":O,_=o.tabletColumnPaddingLeft,S=void 0===_?"":_,E=o.tabletColumnPaddingUnit,j=void 0===E?"px":E,T=o.mobileColumnPaddingTop,P=void 0===T?"":T,B=o.mobileColumnPaddingBottom,M=void 0===B?"":B,N=o.mobileColumnPaddingRight,I=void 0===N?"":N,D=o.mobileColumnPaddingLeft,R=void 0===D?"":D,z=o.mobileColumnPaddingUnit,A=void 0===z?"px":z;return wp.element.createElement(k.Fragment,null,wp.element.createElement(Uo,{label:t,className:"ugb--help-tip-advanced-column-paddings",defaultLocked:!0,min:[0,0,0],sliderMax:[500,100,100],step:1,valueDesktop:{top:u,right:d,bottom:p,left:m},valueDesktopUnit:b,onChangeDesktop:function(e){n({columnPaddingTop:e.top,columnPaddingRight:e.right,columnPaddingBottom:e.bottom,columnPaddingLeft:e.left})},onChangeDesktopUnit:function(e){return n({columnPaddingUnit:e})},valueTablet:{top:y,right:x,bottom:C,left:S},valueTabletUnit:j,onChangeTablet:function(e){n({tabletColumnPaddingTop:e.top,tabletColumnPaddingBottom:e.bottom,tabletColumnPaddingRight:e.right,tabletColumnPaddingLeft:e.left})},onChangeTabletUnit:function(e){return n({tabletColumnPaddingUnit:e})},valueMobile:{top:P,right:I,bottom:M,left:R},valueMobileUnit:A,onChangeMobile:function(e){n({mobileColumnPaddingTop:e.top,mobileColumnPaddingBottom:e.bottom,mobileColumnPaddingRight:e.right,mobileColumnPaddingLeft:e.left})},onChangeMobileUnit:function(e){return n({mobileColumnPaddingUnit:e})},enableTop:a,enableRight:r,enableBottom:i,enableLeft:l}))};Ln.defaultProps={setAttributes:function(){},label:Object(S.__)("Column Paddings",_.i18n),attributes:{},enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0};var Fn=n(31),Un=n.n(Fn);function Hn(){return(Hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Vn=ie.a.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7v2zM4 6v8h16V6H4z"}),Gn=function(e){return ie.a.createElement("svg",Hn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Vn)};function Wn(){return(Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qn=ie.a.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm0 2v15h8V4H8z"}),Kn=function(e){return ie.a.createElement("svg",Wn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),qn)};function $n(){return($n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Yn=ie.a.createElement("path",{d:"M6 4v15h12V4H6zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z"}),Qn=function(e){return ie.a.createElement("svg",$n({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Yn)},Xn={desktop:wp.element.createElement(Gn,null),tablet:wp.element.createElement(Qn,null),mobile:wp.element.createElement(Kn,null)},Jn={desktop:Object(S.__)("Desktop",_.i18n),tablet:Object(S.__)("Tablet",_.i18n),mobile:Object(S.__)("Mobile",_.i18n)},Zn=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={screen:We(),isScreenPickerOpen:Ke(),isMouseOver:!1},e}return w()(t,e),f()(t,[{key:"onChangeScreen",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e}),function(e){Ge=e}(e),Object(Q.doAction)("stackable.responsive-toggle.screen.change",e),this.setState({isMouseOver:e})}},{key:"onOtherScreenChange",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e})}},{key:"onOtherScreenOpen",value:function(){this.setState({isScreenPickerOpen:!0})}},{key:"onOtherScreenClose",value:function(){this.setState({isScreenPickerOpen:!1})}},{key:"componentDidMount",value:function(){var e=this.props.instanceId;Object(Q.addAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e),this.onOtherScreenChange.bind(this)),Object(Q.addAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e),this.onOtherScreenOpen.bind(this)),Object(Q.addAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e),this.onOtherScreenClose.bind(this))}},{key:"componentWillUnmount",value:function(){var e=this.props.instanceId;Object(Q.removeAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e)),Object(Q.removeAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e)),Object(Q.removeAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e))}},{key:"render",value:function(){var e=this;return wp.element.createElement("div",{className:"ugb-base-control-multi-label__responsive"},this.props.screens.length>1&&this.props.screens.map(function(t,n){return n>0&&!e.state.isScreenPickerOpen&&!e.state.isMouseOver?null:wp.element.createElement("div",{key:n},wp.element.createElement(mt,{className:e.state.screen===t?"is-active":"",onClick:function(){return e.onChangeScreen(t)},icon:Xn[t],showTooltip:!1,label:Jn[t],"data-screen":t,onMouseEnter:function(){return e.setState({isMouseOver:t})},onMouseLeave:function(){return e.setState({isMouseOver:!1})}}),e.state.isMouseOver===t&&wp.element.createElement(x.Popover,{focusOnMount:!1,position:"bottom center",className:"components-tooltip","aria-hidden":"true"},Jn[t]))}))}}]),t}(k.Component);Zn.defaultProps={screens:["desktop"],onChangeScreen:function(){}};var ea=Object(Ot.withInstanceId)(Zn),ta=function(e){return wp.element.createElement("div",{className:"ugb-base-control-multi-label"},wp.element.createElement("div",{className:"ugb-base-control-multi-label__label components-base-control__label"},e.label),wp.element.createElement(ea,{screens:e.screens,onChangeScreen:e.onChangeScreen}),wp.element.createElement("div",{className:"ugb-base-control-multi-label__units"},e.units.length>1&&e.units.map(function(t,n){return wp.element.createElement("button",{key:n,className:e.unit===t?"is-active":"",onClick:function(){return e.onChangeUnit(t)}},t)}),e.afterButton))};ta.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],onChangeScreen:function(){},afterButton:null};var na=ta,aa=!!x.__experimentalNumberControl,ra=function(e){var t=e.allowReset,n=e.withInputField,a=e.isShiftStepEnabled,r=Pt()(e,["allowReset","withInputField","isShiftStepEnabled"]),i=Object(k.useState)(""===e.value||isNaN(e.value)?"":e.value),o=l()(i,2),s=o[0],u=o[1],c=function(t){if(u(t),!isNaN(t)){var n=parseFloat(t);if(!isNaN(n))return void e.onChange(Object(R.clamp)(n,e.min,e.max))}e.onChange(e.resetFallbackValue)},p=P()(["ugb-range-control",e.className],{"ugb-range-control--blank":""===s}),f=""===s,d=e.initialPosition||e.placeholder||"",g=function(e,t,n){var a=(e-t)/(n-t)*100;return"".concat(Object(R.clamp)(a,0,100),"%")}((f?d:s)||e.sliderMin||e.min||0,e.sliderMin||e.min||0,e.sliderMax||e.max||100);return wp.element.createElement("div",{className:p,style:{"--ugb-advanced-range-control--width":g}},wp.element.createElement(x.RangeControl,M()({},r,{initialPosition:"",onChange:c,withInputField:!1,allowReset:!1,max:null!==e.sliderMax?e.sliderMax:e.max,min:null!==e.sliderMin?e.sliderMin:e.min})),n&&aa&&wp.element.createElement(x.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:a,max:e.max,min:e.min,onChange:c,onBlur:function(){if(!isNaN(s)){var t=parseFloat(s);if(!isNaN(t))return void u(Object(R.clamp)(t,e.min,e.max))}u(e.resetFallbackValue)},shiftStep:e.shiftStep,step:e.step,value:s,placeholder:null!==e.placeholder?e.placeholder:d}),t&&wp.element.createElement(mt,{className:"components-range-control__reset",disabled:e.disabled,isSecondary:!0,isSmall:!0,onClick:function(){u(e.resetFallbackValue),e.onChange(e.resetFallbackValue)}},Object(S.__)("Reset",_.i18n)))};ra.defaultProps={className:"",allowReset:!1,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,sliderMax:null,sliderMin:null,shiftStep:10,step:1,resetFallbackValue:"",placeholder:null,initialPosition:0,onChange:function(){}};var ia=ra;function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var oa=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(R.omit)(e,["className","help","label","units","unit","onChangeUnit","screens","placeholder","initialPosition"])),n=e.units.indexOf(e.unit)<0?0:e.units.indexOf(e.unit);Array.isArray(e.min)&&(t.min=e.min[n]),Array.isArray(e.max)&&(t.max=e.max[n]),Array.isArray(e.step)&&(t.step=e.step[n]),t.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,t.placeholder=e.placeholder;var a=e.placeholder;if(Array.isArray(a)||"object"!==Un()(a))Array.isArray(a)&&"desktop"===e.screen?(t.placeholder=a[n]||"",t.initialPosition=a[n]||"",Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||"")):e.screen&&"desktop"!==e.screen&&(t.placeholder="",t.initialPosition="");else{var i=We()||"desktop";a=void 0!==a[i]?a[i]:a[Object.keys(a)[0]],Array.isArray(a)?(t.placeholder=a[n]||"",t.initialPosition=a[n]||""):(t.placeholder=a||"",t.initialPosition=a||""),Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||""),t.initialPosition=function(e){return"string"==typeof e&&""!==e&&e.match(/^[\d.]+$/)?e.includes(".")?parseFloat(e):parseInt(e,10):e}(t.initialPosition)}var l=P()(["ugb-advanced-range-control",e.className]);return wp.element.createElement(x.BaseControl,{help:e.help,className:l},wp.element.createElement(na,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(ia,t))};oa.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],placeholder:"",initialPosition:"",min:0,max:100};var sa=oa,ua=function(e){return wp.element.createElement(x.BaseControl,{help:e.help,className:P()("ugb-advanced-select-control",e.className)},wp.element.createElement(na,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(x.SelectControl,Object(R.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};ua.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var ca=ua,pa=function(e){return wp.element.createElement(x.BaseControl,{help:e.help,className:P()("ugb-advanced-text-control",e.className)},wp.element.createElement(na,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(x.TextControl,Object(R.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};pa.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var fa=n(54),da=n.n(fa);function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var ma=function(e,t){var n=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!n)return t;var a=new RegExp(n,"i");return ha(t)?t.map(function(e){return{title:e.title,options:e.options.filter(function(e){return a.test(e.label)||a.test(e.value)})}}).filter(function(e){return e.options.length>0}):t.filter(function(e){return"string"==typeof e?a.test(e):a.test(e.label)||a.test(e.value)})},ha=function(e){return!(!e.length||"object"!==Un()(e[0].options))},ba=function(e,t){if(!t.length)return e;if(!ha(t)){var n=t.filter(function(t){return("string"==typeof t?t:t.value)===e});return n.length?n[0].label:e}var a=t.map(function(t){return{title:t.title,options:t.options.filter(function(t){return t.value===e})}}).filter(function(e){return e.options.length>0});return a.length?a[0].options[0].label:e},va=function(e){return e.value},ya=function(e){return wp.element.createElement("div",{className:"ugb--autosuggest-group"},e.title)},wa=function(e){return e.options},ka=function(){return!0},Ca=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={value:"",label:"",suggestions:[],isEmpty:!1},e.onSuggestionsFetchRequested=e.onSuggestionsFetchRequested.bind(v()(e)),e.onSuggestionsClearRequested=e.onSuggestionsClearRequested.bind(v()(e)),e.onChange=e.onChange.bind(v()(e)),e.onFocus=e.onFocus.bind(v()(e)),e.autosuggestDiv=Object(k.createRef)(),e}return w()(t,e),f()(t,[{key:"onChange",value:function(e,t){var n=t.newValue;this.props.onChange(n),this.setState({value:n,label:ba(n,this.props.options)})}},{key:"onFocus",value:function(){var e=this;this.props.highlightValueOnFocus&&setTimeout(function(){var t=e.autosuggestDiv.current.querySelector('[data-value="'.concat(e.state.value,'"]'));t&&t.scrollIntoView()},0)}},{key:"onSuggestionsFetchRequested",value:function(e){var t=e.value,n=e.reason;if(this.props.disableAutoIndex)this.setState({suggestions:ma("",this.props.options)});else if("input-focused"!==n&&"suggestion-selected"!==n){var a=ma(t,this.props.options);this.setState({suggestions:a,isEmpty:""!==t.trim()&&0===a.length})}else this.setState({suggestions:this.props.options,isEmpty:!1})}},{key:"componentDidMount",value:function(){this.props.options.length&&this.props.value&&this.setState({value:this.props.value,label:this.props.value?ba(this.props.value,this.props.options):this.props.value,suggestions:ma(this.props.disableAutoIndex?"":this.props.value,this.props.options)})}},{key:"componentWillReceiveProps",value:function(e){this.setState({value:e.value,label:e.value?ba(e.value,e.options):e.value,suggestions:ma(this.props.disableAutoIndex?"":e.value,e.options)})}},{key:"onSuggestionsClearRequested",value:function(){this.setState({suggestions:[]})}},{key:"render",value:function(){var e=this,t=this.state,n=t.label,a=t.suggestions,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({placeholder:this.props.placeholder,value:n,onChange:this.onChange,onFocus:this.onFocus,type:"search"},this.props.inputProps);return wp.element.createElement(x.BaseControl,{help:this.props.help,className:P()("ugb-advanced-autosuggest-control",this.props.className)},wp.element.createElement(na,{label:this.props.label,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},wp.element.createElement(da.a,{multiSection:ha(this.props.options),suggestions:a,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.props.onSuggestionSelected,getSuggestionValue:this.props.getSuggestionValue||va,renderSuggestion:function(t){return wp.element.createElement("div",{className:"ugb-autosuggest-option","data-value":t.value,id:"ugb-autosuggest-option--".concat(t.id||Object(R.kebabCase)(t.value))},e.props.renderOption?e.props.renderOption(t):t.label)},renderSectionTitle:ya,getSectionSuggestions:wa,shouldRenderSuggestions:ka,inputProps:i,renderInputComponent:this.props.renderInputComponent?this.props.renderInputComponent:function(e){return wp.element.createElement("input",e)}}),this.state.isEmpty&&wp.element.createElement("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}]),t}(k.Component);Ca.defaultProps={onChange:function(){},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:Object(S.__)("No matches found",_.i18n),renderOption:null,highlightValueOnFocus:!1,placeholder:"",getSuggestionValue:null,disableAutoIndex:!1,onSuggestionSelected:function(){},renderInputComponent:null,inputProps:{}};var Oa=Ca;function xa(){return(xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _a=ie.a.createElement("path",{d:"M3 15.1h14v2H3zM9.4 2.9h1.2v8.6l1.3-1.3 1.1.8-3 3-3-3 1.1-.8 1.3 1.3V2.9z"}),Sa=function(e){return ie.a.createElement("svg",xa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),_a)};function Ea(){return(Ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ja=ie.a.createElement("path",{d:"M9 3h2v14H9zM1.6 10.6V9.4h3.9L4.2 8.1 5 7l3 3-3 3-.8-1.1 1.3-1.3H1.6zM18.4 9.4v1.2h-3.9l1.3 1.3L15 13l-3-3 3-3 .8 1.1-1.3 1.3h3.9z"}),Ta=function(e){return ie.a.createElement("svg",Ea({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),ja)};function Pa(){return(Pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ba=ie.a.createElement("path",{d:"M2.9 3h2v14h-2zM17.1 9.4v1.2H8.5l1.3 1.3L9 13l-3-3 3-3 .8 1.1-1.3 1.3h8.6z"}),Ma=function(e){return ie.a.createElement("svg",Pa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ba)};function Na(){return(Na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ia=ie.a.createElement("path",{d:"M15.1 3h2v14h-2zM2.9 10.6V9.4h8.6l-1.3-1.3L11 7l3 3-3 3-.8-1.1 1.3-1.3H2.9z"}),Da=function(e){return ie.a.createElement("svg",Na({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ia)};function Ra(){return(Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var za=ie.a.createElement("path",{d:"M3 16.4h14v2H3zM3 1.6h14v2H3zM10.6 12.8V7.2l1.3 1.3 1.1-.8-3-3-3 3 1.1.8 1.3-1.3v5.6l-1.3-1.3-1.1.8 3 3 3-3-1.1-.8z"}),Aa=function(e){return ie.a.createElement("svg",Ra({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),za)};function La(){return(La=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Fa=ie.a.createElement("path",{d:"M3 3h14v2H3zM10.6 17.1H9.4V8.4L8.1 9.7 7 9l3-3 3 3-1.1.8-1.3-1.3v8.6z"}),Ua=function(e){return ie.a.createElement("svg",La({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Fa)};function Ha(){return(Ha=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Va=ie.a.createElement("path",{d:"M3 9h14v2H3zM10.6 18.4H9.4v-3.9l-1.3 1.3L7 15l3-3 3 3-1.1.8-1.3-1.3v3.9zM9.4 1.6h1.2v3.9l1.3-1.3L13 5l-3 3-3-3 1.1-.8 1.3 1.3V1.6z"}),Ga=function(e){return ie.a.createElement("svg",Ha({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Va)};function Wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var qa=[{value:"flex-start",title:Object(S.__)("Align Left",_.i18n),icon:wp.element.createElement(Ma,null)},{value:"center",title:Object(S.__)("Align Center",_.i18n),icon:wp.element.createElement(Ta,null)},{value:"flex-end",title:Object(S.__)("Align Right",_.i18n),icon:wp.element.createElement(Da,null)}],Ka=[{value:"flex-start",title:Object(S.__)("Align Top",_.i18n),icon:wp.element.createElement(Ua,null)},{value:"center",title:Object(S.__)("Align Center",_.i18n),icon:wp.element.createElement(Ga,null)},{value:"flex-end",title:Object(S.__)("Align Bottom",_.i18n),icon:wp.element.createElement(Sa,null)},{value:"stretch",title:Object(S.__)("Stretch",_.i18n),icon:wp.element.createElement(Aa,null)}],$a={"flex-horizontal":qa,"flex-vertical":[{value:"flex-start",title:Object(S.__)("Align Top",_.i18n),icon:wp.element.createElement(Ua,null)},{value:"center",title:Object(S.__)("Align Center",_.i18n),icon:wp.element.createElement(Ga,null)},{value:"flex-end",title:Object(S.__)("Align Bottom",_.i18n),icon:wp.element.createElement(Sa,null)}],"flex-vertical-with-stretch":Ka},Ya=function(e){var t="string"==typeof e.controls?$a[e.controls]:e.controls,n=P()({"ugb-toolbar--full-width":e.fullwidth,"ugb-toolbar--multiline":e.multiline});return wp.element.createElement(x.BaseControl,{help:e.help,className:P()("ugb-advanced-toolbar-control",e.className)},wp.element.createElement(na,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(x.ButtonGroup,{children:t.map(function(t,n){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wa(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{onClick:function(){e.isToggleOnly&&t.value===e.value||e.onChange(t.value!==e.value?t.value:"")},isPrimary:e.value===t.value,isSmall:e.isSmall,children:t.icon?null:t.custom||wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button"},t.title)});return wp.element.createElement(mt,M()({key:n},a))}),className:n}))};Ya.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],value:"",controls:[],multiline:!1,fullwidth:!0,isSmall:!1,isToggleOnly:!1};var Qa=Ya,Xa=function(e){var t=e.placeholder,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?1:Math.round(parseFloat(e)/parseFloat(t)*10)/10};return"string"==typeof t&&(t=[t,n(t)]),wp.element.createElement(sa,M()({},e,{placeholder:t,onChangeUnit:function(t){""!==e.value&&("em"===t||"rem"===t?e.onChange(n(e.value)):"px"===t&&e.onChange(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?21:Math.round(parseFloat(e)*t)}(e.value))),e.onChangeUnit(t)}}))};Xa.defaultProps={label:Object(S.__)("Font Size",_.i18n),value:"",onChange:function(){},unit:"px",onChangeUnit:function(){},min:[0,0],max:[150,7],step:[1,.05],units:["px","em"],placeholder:""};var Ja=Xa,Za=n(55).map(function(e){return{label:e.family,value:e.family}}),er=function(e){var t=Object(k.useMemo)(function(){return Object(Q.applyFilters)("stackable.font-family-control.options",[{id:"system-fonts",title:Object(S.__)("System Fonts",_.i18n),options:[{label:Object(S.__)("Sans-Serif",_.i18n),value:"Sans-Serif"},{label:Object(S.__)("Serif",_.i18n),value:"Serif"},{label:Object(S.__)("Serif Alternative",_.i18n),value:"Serif-Alt"},{label:Object(S.__)("Monospace",_.i18n),value:"Monospace"}]},{id:"google-fonts",title:Object(S.__)("Google Fonts",_.i18n),options:Za}])},[]);return wp.element.createElement(Oa,M()({options:t,highlightValueOnFocus:!0},e,{onChange:function(t){Za.some(function(e){return e.value===t&&(G(t),!0)}),e.onChange(t)}}))};er.defaultProps={onChange:function(){},label:Object(S.__)("Font Family",_.i18n),value:""};var tr=er;function nr(){return(nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){rr(e,t,n[t])})}return e}function lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function sr(e,t,n){return t&&or(e.prototype,t),n&&or(e,n),e}function ur(e){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cr(e){return(cr="function"==typeof Symbol&&"symbol"===ur(Symbol.iterator)?function(e){return ur(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ur(e)})(e)}function pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fr(e,t){return!t||"object"!==cr(t)&&"function"!=typeof t?pr(e):t}function dr(e){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gr(e,t){return(gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mr(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&&gr(e,t)}var hr=n(37),br=n(28),vr=n.n(br);function yr(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var wr=function(){function e(){lr(this,e),rr(this,"refs",{})}return sr(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(kr)}}]),e}();function kr(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Cr(e,t){return Object.keys(e).reduce(function(n,a){return-1===t.indexOf(a)&&(n[a]=e[a]),n},{})}var Or={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},xr=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function _r(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function Sr(e,t){e.style["".concat(xr,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Er(e,t){e.style["".concat(xr,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function jr(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Tr(e,t,n){return Math.max(e,Math.min(n,t))}function Pr(e){return"px"===e.substr(-2)?parseFloat(e):0}function Br(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Mr(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function Nr(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Ir(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var a={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?a:Ir(e.parentNode,t,a)}}function Dr(e){var t=e.lockOffset,n=e.width,a=e.height,r=t,i=t,l="px";if("string"==typeof t){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);vr()(null!==o,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),r=parseFloat(t),i=parseFloat(t),l=o[1]}return vr()(isFinite(r)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===l&&(r=r*n/100,i=i*a/100),{x:r,y:i}}function Rr(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:Rr(e.parentNode):null}var zr=27,Ar=32,Lr=37,Fr=38,Ur=39,Hr=40,Vr={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Gr(e){return null!=e.sortableHandle}var Wr=function(){function e(t,n){lr(this,e),this.container=t,this.onScrollCallback=n}return sr(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,a=e.minTranslate,r=e.maxTranslate,i=e.width,l=e.height,o={x:0,y:0},s={x:1,y:1},u=10,c=10,p=this.container,f=p.scrollTop,d=p.scrollLeft,g=p.scrollHeight,m=p.scrollWidth,h=0===f,b=g-f-p.clientHeight==0,v=0===d,y=m-d-p.clientWidth==0;n.y>=r.y-l/2&&!b?(o.y=1,s.y=c*Math.abs((r.y-l/2-n.y)/l)):n.x>=r.x-i/2&&!y?(o.x=1,s.x=u*Math.abs((r.x-i/2-n.x)/i)):n.y<=a.y+l/2&&!h?(o.y=-1,s.y=c*Math.abs((n.y-l/2-a.y)/l)):n.x<=a.x+i/2&&!v&&(o.x=-1,s.x=u*Math.abs((n.x-i/2-a.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===o.x&&0===o.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:s.x*o.x,top:s.y*o.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}();var qr={axis:Mt.a.oneOf(["x","y","xy"]),contentWindow:Mt.a.any,disableAutoscroll:Mt.a.bool,distance:Mt.a.number,getContainer:Mt.a.func,getHelperDimensions:Mt.a.func,helperClass:Mt.a.string,helperContainer:Mt.a.oneOfType([Mt.a.func,"undefined"==typeof HTMLElement?Mt.a.any:Mt.a.instanceOf(HTMLElement)]),hideSortableGhost:Mt.a.bool,keyboardSortingTransitionDuration:Mt.a.number,lockAxis:Mt.a.string,lockOffset:Mt.a.oneOfType([Mt.a.number,Mt.a.string,Mt.a.arrayOf(Mt.a.oneOfType([Mt.a.number,Mt.a.string]))]),lockToContainerEdges:Mt.a.bool,onSortEnd:Mt.a.func,onSortMove:Mt.a.func,onSortOver:Mt.a.func,onSortStart:Mt.a.func,pressDelay:Mt.a.number,pressThreshold:Mt.a.number,keyCodes:Mt.a.shape({lift:Mt.a.arrayOf(Mt.a.number),drop:Mt.a.arrayOf(Mt.a.number),cancel:Mt.a.arrayOf(Mt.a.number),up:Mt.a.arrayOf(Mt.a.number),down:Mt.a.arrayOf(Mt.a.number)}),shouldCancelStart:Mt.a.func,transitionDuration:Mt.a.number,updateBeforeSortStart:Mt.a.func,useDragHandle:Mt.a.bool,useWindowAsScrollContainer:Mt.a.bool},Kr={lift:[Ar],drop:[Ar],cancel:[zr],up:[Fr,Lr],down:[Hr,Ur]},$r={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Kr,shouldCancelStart:function(e){return-1!==[Vr.Input,Vr.Textarea,Vr.Select,Vr.Option,Vr.Button].indexOf(e.target.tagName)||!!jr(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},Yr=Object.keys(qr);var Qr=Object(re.createContext)({manager:{}});var Xr={index:Mt.a.number.isRequired,collection:Mt.a.oneOfType([Mt.a.number,Mt.a.string]),disabled:Mt.a.bool},Jr=Object.keys(Xr);var Zr=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;lr(this,n),rr(pr(pr(t=fr(this,dr(n).call(this,e)))),"state",{}),rr(pr(pr(t)),"handleStart",function(e){var n=t.props,a=n.distance,r=n.shouldCancelStart;if(2!==e.button&&!r(e)){t.touched=!0,t.position=Nr(e);var i=jr(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var l=t.props.useDragHandle,o=i.sortableInfo,s=o.index,u=o.collection;if(o.disabled)return;if(l&&!jr(e.target,Gr))return;t.manager.active={collection:u,index:s},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==Vr.Anchor||e.preventDefault(),a||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),rr(pr(pr(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),rr(pr(pr(t)),"handleMove",function(e){var n=t.props,a=n.distance,r=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=Nr(e),l={x:t.position.x-i.x,y:t.position.y-i.y},o=Math.abs(l.x)+Math.abs(l.y);t.delta=l,a||r&&!(o>=r)?a&&o>=a&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),rr(pr(pr(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),rr(pr(pr(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),rr(pr(pr(t)),"handlePress",function(e){try{var n=t.manager.getActive(),a=function(){if(n){var a=function(){var n,a,r,u,m,h,b=f.sortableInfo.index,v=(n=f,{bottom:Pr((a=window.getComputedStyle(n)).marginBottom),left:Pr(a.marginLeft),right:Pr(a.marginRight),top:Pr(a.marginTop)}),y=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Pr(t.gridColumnGap),y:Pr(t.gridRowGap)}:{x:0,y:0}}(t.container),w=t.scrollContainer.getBoundingClientRect(),k=l({index:b,node:f,collection:d});if(t.node=f,t.margin=v,t.gridGap=y,t.width=k.width,t.height=k.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=f.getBoundingClientRect(),t.containerBoundingRect=w,t.index=b,t.newIndex=b,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=Ir(f,t.container),t.initialOffset=Nr(g?ir({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild((u="input, textarea, select, canvas, [contenteditable]",m=(r=f).querySelectorAll(u),yr((h=r.cloneNode(!0)).querySelectorAll(u)).forEach(function(e,t){"file"!==e.type&&(e.value=m[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===Vr.Canvas&&m[t].width>0&&m[t].height>0&&e.getContext("2d").drawImage(m[t],0,0)}),h)),_r(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-v.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-v.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),s&&(t.sortableGhost=f,_r(f,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var C=p?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,O=C.top,x=C.left,_=C.width,S=O+C.height,E=x+_;t.axis.x&&(t.minTranslate.x=x-t.boundingClientRect.left,t.maxTranslate.x=E-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=O-t.boundingClientRect.top,t.maxTranslate.y=S-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(p?0:w.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(p?t.contentWindow.innerWidth:w.left+w.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(p?0:w.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(p?t.contentWindow.innerHeight:w.top+w.height)-t.boundingClientRect.top-t.height/2);o&&o.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?e.target:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(Or.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),Or.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:b}),c&&c({node:f,index:b,collection:d,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},r=t.props,i=r.axis,l=r.getHelperDimensions,o=r.helperClass,s=r.hideSortableGhost,u=r.updateBeforeSortStart,c=r.onSortStart,p=r.useWindowAsScrollContainer,f=n.node,d=n.collection,g=t.manager.isKeySorting,m=function(){if("function"==typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}(function(){var t=f.sortableInfo.index;return Promise.resolve(u({collection:d,index:t,node:f,isKeySorting:g},e)).then(function(){})},function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return m&&m.then?m.then(a):a()}}();return Promise.resolve(a&&a.then?a.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),rr(pr(pr(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),rr(pr(pr(t)),"handleSortEnd",function(e){var n=t.props,a=n.hideSortableGhost,r=n.onSortEnd,i=t.manager,l=i.active.collection,o=i.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(o?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(Or.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),Or.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),a&&t.sortableGhost&&_r(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,c=s.length;u<c;u++){var p=s[u],f=p.node;p.edgeOffset=null,p.boundingClientRect=null,Sr(f,null),Er(f,null),p.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof r&&r({collection:l,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:o,nodes:s},e),t.touched=!1}),rr(pr(pr(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var a=ir({},t.translate),r=0,i=0;return t.axis.x&&(a.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),r=t.translate.x-a.x),t.axis.y&&(a.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-a.y),t.translate=a,Sr(t.helper,t.translate),t.scrollContainer.scrollLeft+=r,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),rr(pr(pr(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),rr(pr(pr(t)),"handleKeyDown",function(e){var n=e.keyCode,a=t.props,r=a.shouldCancelStart,i=a.keyCodes,l=ir({},Kr,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||l.lift.includes(n)&&!r(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),l.lift.includes(n)&&!t.manager.active?t.keyLift(e):l.drop.includes(n)&&t.manager.active?t.keyDrop(e):l.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):l.up.includes(n)?t.keyMove(-1):l.down.includes(n)&&t.keyMove(1))}),rr(pr(pr(t)),"keyLift",function(e){var n=e.target,a=jr(n,function(e){return null!=e.sortableInfo}).sortableInfo,r=a.index,i=a.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:r,collection:i},t.handlePress(e)}),rr(pr(pr(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),a=n[n.length-1].node.sortableInfo.index,r=t.newIndex+e,i=t.newIndex;if(!(r<0||r>a)){t.prevIndex=i,t.newIndex=r;var l=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),o=n.find(function(e){return e.node.sortableInfo.index===l}),s=o.node,u=t.containerScrollDelta,c=o.boundingClientRect||Mr(s,u),p=o.translate||{x:0,y:0},f=c.top+p.y-u.top,d=c.left+p.x-u.left,g=i<r,m=g&&t.axis.x?s.offsetWidth-t.width:0,h=g&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:d+m,pageY:f+h,ignoreTransition:0===e})}}),rr(pr(pr(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),rr(pr(pr(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),rr(pr(pr(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,a=e.target,r=jr(a,function(e){return null!=e.sortableInfo});return r&&r.sortableInfo&&!r.sortableInfo.disabled&&(n?Gr(a):a.sortableInfo)});var a=new wr;return function(e){vr()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=a,t.wrappedInstance=Object(re.createRef)(),t.sortableContextValue={manager:a},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return mr(n,re["Component"]),sr(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var a=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof a?a():a,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Rr(e.container)||e.container,e.autoScroller=new Wr(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return Or[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return Or[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,a=t.lockOffset,r=t.lockToContainerEdges,i=t.transitionDuration,l=t.keyboardSortingTransitionDuration,o=void 0===l?i:l,s=this.manager.isKeySorting,u=e.ignoreTransition,c=Nr(e),p={x:c.x-this.initialOffset.x,y:c.y-this.initialOffset.y};if(p.y-=window.pageYOffset-this.initialWindowScroll.top,p.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=p,r){var f=function(e){var t=e.height,n=e.width,a=e.lockOffset,r=Array.isArray(a)?a:[a,a];vr()(2===r.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",a);var i=ar(r,2),l=i[0],o=i[1];return[Dr({height:t,lockOffset:l,width:n}),Dr({height:t,lockOffset:o,width:n})]}({height:this.height,lockOffset:a,width:this.width}),d=ar(f,2),g=d[0],m=d[1],h={x:this.width/2-g.x,y:this.height/2-g.y},b={x:this.width/2-m.x,y:this.height/2-m.y};p.x=Tr(this.minTranslate.x+h.x,this.maxTranslate.x-b.x,p.x),p.y=Tr(this.minTranslate.y+h.y,this.maxTranslate.y-b.y,p.y)}"x"===n?p.y=0:"y"===n&&(p.x=0),s&&o&&!u&&Er(this.helper,o),Sr(this.helper,p)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,a=e.onSortOver,r=this.containerScrollDelta,i=this.windowScrollDelta,l=this.manager.getOrderedRefs(),o=this.offsetEdge.left+this.translate.x+r.left,s=this.offsetEdge.top+this.translate.y+r.top,u=this.manager.isKeySorting,c=this.newIndex;this.newIndex=null;for(var p=0,f=l.length;p<f;p++){var d=l[p].node,g=d.sortableInfo.index,m=d.offsetWidth,h=d.offsetHeight,b={height:this.height>h?h/2:this.height/2,width:this.width>m?m/2:this.width/2},v=u&&g>this.index&&g<=c,y=u&&g<this.index&&g>=c,w={x:0,y:0},k=l[p].edgeOffset;k||(k=Ir(d,this.container),l[p].edgeOffset=k,u&&(l[p].boundingClientRect=Mr(d,r)));var C=p<l.length-1&&l[p+1],O=p>0&&l[p-1];C&&!C.edgeOffset&&(C.edgeOffset=Ir(C.node,this.container),u&&(C.boundingClientRect=Mr(C.node,r))),g!==this.index?(t&&Er(d,t),this.axis.x?this.axis.y?y||g<this.index&&(o+i.left-b.width<=k.left&&s+i.top<=k.top+b.height||s+i.top+b.height<=k.top)?(w.x=this.width+this.marginOffset.x,k.left+w.x>this.containerBoundingRect.width-b.width&&C&&(w.x=C.edgeOffset.left-k.left,w.y=C.edgeOffset.top-k.top),null===this.newIndex&&(this.newIndex=g)):(v||g>this.index&&(o+i.left+b.width>=k.left&&s+i.top+b.height>=k.top||s+i.top+b.height>=k.top+h))&&(w.x=-(this.width+this.marginOffset.x),k.left+w.x<this.containerBoundingRect.left+b.width&&O&&(w.x=O.edgeOffset.left-k.left,w.y=O.edgeOffset.top-k.top),this.newIndex=g):v||g>this.index&&o+i.left+b.width>=k.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=g):(y||g<this.index&&o+i.left<=k.left+b.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=g)):this.axis.y&&(v||g>this.index&&s+i.top+b.height>=k.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=g):(y||g<this.index&&s+i.top<=k.top+b.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),Sr(d,w),l[p].translate=w):n&&(this.sortableGhost=d,_r(d,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var x=u?this.prevIndex:c;a&&this.newIndex!==x&&a({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:x,isKeySorting:u,nodes:l,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return vr()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?Object(hr.findDOMNode)(this):e(a.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=a.withRef?this.wrappedInstance:null;return Object(re.createElement)(Qr.Provider,{value:this.sortableContextValue},Object(re.createElement)(e,nr({ref:t},Cr(this.props,Yr))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(),rr(t,"displayName",Br("sortableList",e)),rr(t,"defaultProps",$r),rr(t,"propTypes",qr),n}(function(e){var t=e.children;return wp.element.createElement("div",{className:"ugb-sort-control__container"},t)}),ei=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;lr(this,n);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return rr(pr(pr(t=fr(this,(e=dr(n)).call.apply(e,[this].concat(r))))),"wrappedInstance",Object(re.createRef)()),t}return mr(n,re["Component"]),sr(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,a=e.index,r=Object(hr.findDOMNode)(this);r.sortableInfo={collection:t,disabled:n,index:a,manager:this.context.manager},this.node=r,this.ref={node:r},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return vr()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=a.withRef?this.wrappedInstance:null;return Object(re.createElement)(e,nr({ref:t},Cr(this.props,Jr)))}}]),n}(),rr(t,"displayName",Br("sortableElement",e)),rr(t,"contextType",Qr),rr(t,"propTypes",Xr),rr(t,"defaultProps",{collection:0}),n}(function(e){var t=e.value,n=(e.key,e.index,Pt()(e,["value","key","index"]));return wp.element.createElement("div",M()({className:"ugb-sort-control__item"},n),t)}),ti=!1,ni=function e(t){for(var n=t.values?t.values.splice(0,t.num):Object(R.range)(t.num).map(function(e){return e+1});n.length<t.num;)n.push(n.length+1);return wp.element.createElement(x.BaseControl,{help:t.help,className:P()(["ugb-sort-control",t.className,"ugb-sort-control--axis-".concat(t.axis)])},wp.element.createElement(na,M()({label:t.label},Object(R.omit)(t,Object.keys(e.defaultProps)),{afterButton:t.hasReset?wp.element.createElement(mt,{disabled:!t.values,onClick:function(){return t.onChange("",{oldIndex:0,newIndex:0})},isSmall:!0,isSecondary:!0},Object(S.__)("Reset")):null})),wp.element.createElement(Zr,{onSortStart:function(){return ti=!0},onSortOver:function(e){var n=e.newIndex;t.onHover(n)},onSortEnd:function(e){var a=e.oldIndex,r=e.newIndex;ti=!1;var i=function(e,t,n){return e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e}(n,a,r);t.onChange(i,{oldIndex:a,newIndex:r})},axis:t.axis},n.map(function(e,n){return wp.element.createElement(ei,{key:n,index:n,value:e,onMouseEnter:function(){ti||t.onHover(n)},onMouseLeave:function(){ti||t.onHover(null)}})})))};ni.defaultProps={className:"",help:"",label:Object(S.__)("Column Arrangement",_.i18n),num:2,axis:"x",values:null,onChange:function(){},onHover:function(){},hasReset:!1};function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ai(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ai(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ii={},li={};Object(Q.addAction)("stackable.inspector.tab.click","stackable/panel-memory",function(e,t){li[e]=t}),Object(Q.addAction)("stackable.inspector.tab.initial","stackable/panel-memory",function(e,t){void 0===li[e]&&(li[e]=t)});var oi=function(e){var t=function(t){var n=Object(k.useMemo)(function(){return Object(he.select)("core/block-editor").getSelectedBlockClientId()},[]),a=ri({},t,{onToggle:function(e,a){if(n&&t.withCaching){var r=(l=a.current,(o=l.closest("[data-ugb-tab]"))?o.getAttribute("data-ugb-tab"):""),i="".concat(n,"-").concat(r);li[n]=r,ii[i]=e?t.title:null}var l,o;t.onToggle(e)}});if(n&&t.withCaching){var r=li[n]||"",i="".concat(n,"-").concat(r),l=ii[i];l?a.initialOpen=l===t.title:null===l&&(a.initialOpen=!1)}return wp.element.createElement(k.Fragment,null,wp.element.createElement(e,a))};return t.defaultProps=ri({},e.defaultProps||{},{withCaching:!0}),t};function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var ui=1,ci=function(e){function t(e){var n;return c()(this,t),(n=g()(this,h()(t).apply(this,arguments))).state={opened:e.initialOpen,showAdvanced:e.initialAdvanced},n.onToggle=n.onToggle.bind(v()(n)),n.onAdvancedToggle=n.onAdvancedToggle.bind(v()(n)),n.instanceId=ui++,n.panelRef=Object(k.createRef)(),n}return w()(t,e),f()(t,[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.hasToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t])&&(n=!0,!0)}),n?(this.props.onChange&&this.props.onChange(!0),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,r()({},this.props.toggleAttributeName,!0))):e}},{key:"componentDidMount",value:function(){Object(Q.addFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9)}},{key:"componentWillUnmount",value:function(){Object(Q.removeFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId))}},{key:"onToggle",value:function(){if(this.setState({opened:!this.state.opened}),!this.state.opened&&this.panelRef.current){var e=this.panelRef.current.querySelector(".components-panel__body-title"),t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar");t&&e.getBoundingClientRect().top<t.getBoundingClientRect().bottom?At(this.panelRef.current):n&&n.getBoundingClientRect().bottom<e.getBoundingClientRect().top&&At(this.panelRef.current)}this.props.onToggle(!this.state.opened,this.panelRef)}},{key:"onAdvancedToggle",value:function(){this.setState({showAdvanced:!this.state.showAdvanced})}},{key:"render",value:function(){var e=this,t=P()([this.props.className,"ugb-toggle-panel-body"],r()({"ugb-toggle-panel-body--advanced":this.state.showAdvanced},"ugb-panel--".concat(this.props.id),this.props.id));return wp.element.createElement(x.PanelBody,{className:t,initialOpen:this.props.initialOpen,onToggle:this.onToggle,opened:this.state.opened,ref:this.panelRef,title:wp.element.createElement(k.Fragment,null,this.props.hasToggle&&this.props.toggleAttributeName&&wp.element.createElement("span",{className:"editor-panel-toggle-settings__panel-title"},wp.element.createElement(x.FormToggle,{className:"ugb-toggle-panel-form-toggle",checked:this.props.checked,onClick:function(t){t.stopPropagation(),t.preventDefault();var n=e.props.checked;n&&e.state.opened||n||e.state.opened||e.onToggle(),e.props.onChange&&e.props.onChange(!n)},"aria-describedby":this.props.title}),this.props.title),!(this.props.hasToggle&&this.props.toggleAttributeName)&&this.props.title)},this.props.children,this.state.showAdvanced&&this.props.advancedChildren,this.props.advancedChildren&&wp.element.createElement("button",{className:"ugb-panel-advanced-button",onClick:this.onAdvancedToggle},this.state.showAdvanced?Object(S.__)("Simple",_.i18n):Object(S.__)("Advanced",_.i18n)))}}]),t}(k.Component);ci.defaultProps={id:"",className:"",title:Object(S.__)("Settings",_.i18n),checked:!1,onChange:null,initialOpen:!1,hasToggle:!0,initialAdvanced:!1,advancedChildren:null,toggleOnSetAttributes:[],toggleAttributeName:"",onToggle:function(){}};var pi=oi(ci);var fi=function(e){var t=e.blockProps;return wp.element.createElement(pi,M()({title:Object(S.__)("Spacing",_.i18n)},e,{className:P()(["ugb--help-tip-spacing",e.className])}),Object(Q.applyFilters)("stackable.panel-spacing-body.edit.before",null,t),e.children,Object(Q.applyFilters)("stackable.panel-spacing-body.edit.after",null,t))};fi.defaultProps={className:"",blockProps:{}};var di=function(e){var t=P()(["ugb-inspector-panel-controls","ugb-panel-".concat(e.tab)]);return wp.element.createElement("div",{className:t},e.children)};di.defaultProps={tab:"layout"};var gi=function(e){var t=Object(k.useState)(!1),n=l()(t,2),a=n[0],r=n[1],i=Object(k.useState)(""),o=l()(i,2),s=o[0],u=o[1],c=Object(k.useState)([]),p=l()(c,2),f=p[0],d=p[1],g=Object(k.useState)(!0),m=l()(g,2),h=m[0],b=m[1],v=Object(k.useState)(""),y=l()(v,2),w=y[0],C=y[1];return Object(k.useEffect)(function(){var t=!0;return en({type:"block",block:e.block,search:s}).then(function(e){t&&d(e)}).finally(function(){t&&b(!1)}),function(){t=!1}},[e.block,s]),wp.element.createElement("div",null,wp.element.createElement(mt,{className:"ugb-design-library-control__open-library",label:Object(S.__)("Open Design Library",_.i18n),isSmall:!0,isLink:!0,onClick:function(){return r(!0)}},Object(S.__)("Open Design Library",_.i18n)),wp.element.createElement(x.TextControl,{placeholder:Object(S.__)("E.g. light, dark, red, minimalist...",_.i18n),value:s,onChange:function(e){return u(e)}}),!_.isPro&&wp.element.createElement(Qa,{controls:[{value:"",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(S.__)("All",_.i18n),wp.element.createElement("span",null,f.length))},{value:"free",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(S.__)("Free",_.i18n),wp.element.createElement("span",null,f.reduce(function(e,t){return e+("free"===t.plan?1:0)},0)))},{value:"premium",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(S.__)("Premium",_.i18n),wp.element.createElement("span",null,f.reduce(function(e,t){return e+("free"!==t.plan?1:0)},0)))}],value:w,onChange:function(e){return C(e)}}),wp.element.createElement(Ii,{designs:f.filter(function(e){var t=e.plan;return!w||t===w}),isBusy:h,onSelect:e.onSelect}),a&&wp.element.createElement(Em,{search:s,selectedBlock:e.block,onClose:function(){r(!1),u("")},onSelect:function(t){e.onSelect(t),r(!1)}}))};gi.defaultProps={block:"",onSelect:function(){}};function mi(){return(mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var hi=ie.a.createElement("path",{d:"M64.1 136L23 176.7c-1.9 1.8-1.9 4.8-.1 6.7.9 1 2.3 1.5 3.6 1.4l86.9.1L64.1 136z"}),bi=ie.a.createElement("path",{d:"M177.9 128.4c0-4.5-1.8-8.9-5-12.1L71.4 14.7 26.6 59.5c-3.2 3.2-5 7.5-5 12.1 0 4.5 1.8 8.9 5 12.1l101.6 101.6v-.1l44.8-44.8c3.1-3.2 4.9-7.5 4.9-12z",opacity:.75}),vi=ie.a.createElement("path",{d:"M71.4 14.7L26.6 59.5c-3.2 3.2-5 7.5-5 12h49.8V14.7zM128.2 71.6H71.4v56.8h56.8zM128.2 185.1l44.7-44.7c3.1-3.1 4.9-7.4 5-11.8h-49.7v56.5z"}),yi=ie.a.createElement("path",{d:"M71.4 14.7L26.6 59.5c-3.2 3.2-5 7.5-5 12h49.8V14.7zM172.9 14.7H86.1l49.4 49.6 40.9-41.2c1.9-2 1.8-5.2-.1-7.1-.9-.8-2.1-1.3-3.4-1.3z"}),wi=function(e){return ie.a.createElement("svg",mi({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),hi,bi,vi,yi)};function ki(){return(ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ci=ie.a.createElement("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.5c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM4.5 10.6h1.8l-1.8 1.8v-1.8zm3.1-1.2H4.5V7.7h4.8L7.6 9.4zm2.9-2.9h-6V5H12l-1.5 1.5zM3.3 15H1.5V5h1.7v10zm1.2-.8L13.7 5h1.8v.8L6.3 15H4.5v-.8zm11-4.8h-1.8l1.8-1.8v1.8zm-3.1 1.2h3.1v1.7h-4.8l1.7-1.7zm-2.9 2.9h6V15H8l1.5-1.5zM16.8 5h1.7v10h-1.7V5zM1.5 1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8zm17 16.4c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3v-1.3c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3zm-14.9-.7c0 .3-.2.5-.5.5s-.5-.2-.5-.5.3-.5.5-.5.5.2.5.5zm13.8 0c0 .3-.2.5-.5.5s-.5-.2-.5-.5.2-.5.5-.5.5.2.5.5zM2.6 2.5c0-.3.3-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm13.8 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5z"}),Oi=function(e){return ie.a.createElement("svg",ki({xmlns:"http://www.w3.org/2000/svg"},e),Ci)};function xi(){return(xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _i=ie.a.createElement("path",{d:"M10.9 20h-9c-1 0-1.8-.8-1.8-1.8v-5.1c0-1 .8-1.8 1.8-1.8h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zm-9.1-7.4c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5v-5.1c0-.3-.2-.5-.5-.5h-9zM18.2 8.7h-9c-1 0-1.8-.8-1.8-1.8V1.8C7.4.8 8.2 0 9.2 0h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zM9.1 1.3c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V1.8c0-.3-.2-.5-.5-.5h-9z"}),Si=function(e){return ie.a.createElement("svg",xi({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),_i)},Ei=function(e){return Object(k.cloneElement)(e,{fill:"url(#stackable-gradient)",className:"ugb-stackable-icon-gradient ".concat(e.props.className||"")})};Object(O.a)(function(){if(!document.querySelector("svg.ugb-stackable-gradient")){var e=document.createElement("DIV");e.setAttribute("style","height: 0; width: 0; overflow: hidden;"),e.setAttribute("aria-hidden","true"),document.querySelector("body").appendChild(e),Object(k.render)(wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ugb-stackable-gradient",height:"0",width:"0",style:{opacity:0}},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"stackable-gradient"},wp.element.createElement("stop",{offset:"0%",stopColor:"#8c33da",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"100%",stopColor:"#f34957",stopOpacity:"1"})))),e)}});var ji=function(e){var t=e.className;return wp.element.createElement(wi,{className:t,width:"20",height:"20"})},Ti=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={isOpen:!1,slide:0},e.open=e.open.bind(v()(e)),e.close=e.close.bind(v()(e)),e.prev=e.prev.bind(v()(e)),e.next=e.next.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"next",value:function(){var e=this.state.slide>=4?0:this.state.slide+1;this.setState({slide:e})}},{key:"prev",value:function(){var e=this.state.slide<=0?4:this.state.slide-1;this.setState({slide:e})}},{key:"render",value:function(){var e=this.props.tag;return wp.element.createElement(e,null,wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=".concat(this.props.buttonUtmSource,"&utm_campaign=learnmore&utm_medium=gutenberg"),target:"_premium",onClick:this.open,className:this.props.buttonClassName},this.props.button),this.state.isOpen&&wp.element.createElement(x.Modal,{className:"ugb-pro-modal",onRequestClose:this.close},wp.element.createElement("img",{src:"https://da4bu55kgdxvv.cloudfront.net/premium-popup.jpg",alt:Object(S.__)("Premium features",_.i18n)}),wp.element.createElement("div",{className:"ugb-pro-modal__footer"},wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=editor-modal-popup&utm_campaign=upgrade&utm_medium=gutenberg",className:"button button-secondary",target:"_premium",title:Object(S.__)("Upgrade to Premium",_.i18n)},wp.element.createElement(ji,null),Object(S.__)("Upgrade to Premium",_.i18n)),wp.element.createElement("a",{href:"https://demo.wpstackable.com?utm_source=editor-modal-popup&utm_campaign=trydemo&utm_medium=gutenberg",target:"_premium",title:Object(S.__)("Try Premium Demo",_.i18n)},Object(S.__)("Try Premium Demo",_.i18n)))))}}]),t}(k.Component);Ti.defaultProps={button:Object(S.__)("Learn More",_.i18n),buttonClassName:"button button-secondary",tag:"div",buttonUtmSource:"editor-learn-more"};var Pi=Ti,Bi=function(e){var t=e.designId,n=e.image,a=e.label,i=e.onClick,o=e.plan,s=e.isPro,u=Object(k.useState)(!1),c=l()(u,2),p=c[0],f=c[1],d=Object(k.useState)(!1),g=l()(d,2),m=g[0],h=g[1],b=P()(["ugb-design-library-item"],r()({"ugb--is-busy":p},"ugb--is-".concat(o),!s&&"free"!==o));return wp.element.createElement("div",{className:b,onMouseEnter:function(){return h(!0)},onMouseLeave:function(){return h(!1)}},p&&wp.element.createElement("span",{className:"ugb-design-library-item__spinner","data-testid":"spinner"},wp.element.createElement(x.Spinner,null)),!s&&"free"!==o&&wp.element.createElement("span",{className:"ugb-design-library-item__premium","data-testid":"premium-tag"},o),wp.element.createElement("button",{className:"ugb-design-library-item__image",onClick:function(){(s||"free"===o)&&(f(!0),tn(t).then(function(e){f(!1),i(e)}))}},!s&&"free"!==o&&wp.element.createElement(x.Dashicon,{icon:"lock"}),wp.element.createElement("img",{src:n,alt:a,loading:"lazy"})),wp.element.createElement("footer",null,(s||"free"===o)&&wp.element.createElement("span",null,a),!s&&"free"!==o&&!m&&wp.element.createElement("span",null,a),!s&&"free"!==o&&m&&wp.element.createElement(Pi,{buttonClassName:"ugb-design-library-item__premium-link",button:wp.element.createElement(k.Fragment,null,e.premiumLabel)})))};Bi.defaultProps={designId:"",image:"",label:"",onClick:function(){},plan:"free",isPro:_.isPro,premiumLabel:Object(S.__)("Go Premium",_.i18n)};var Mi=Bi,Ni=function(e){var t=e.designs,n=e.isBusy,a=e.onSelect,i=P()(["ugb-design-library-items"],r()({},"ugb-design-library-items--columns-".concat(e.columns),!n&&e.columns));return wp.element.createElement("div",{className:i},(t||[]).map(function(e,t){return wp.element.createElement(Mi,{key:t,type:e.type,block:e.block,template:e.template,plan:e.plan,designId:e.id,image:e.image,label:e.label,onClick:function(e){a(e)}})}),n&&wp.element.createElement("div",{className:"ugb-design-library-search__spinner","data-testid":"spinner"},wp.element.createElement(x.Spinner,null)),!n&&!(t||[]).length&&wp.element.createElement("p",{className:"components-base-control__help","data-testid":"nothing-found-note"},Object(S.__)("No designs found",_.i18n)))};Ni.defaultProps={designs:[],columns:1,onSelect:function(){},isBusy:!1};var Ii=Ni;n(156);function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var zi={},Ai=function(e){var t=function(t){var n,a=t.initialTab||zi[t.blockProps.clientId]||(n=t.blockProps,Me[n.name]||(Me[n.name]=Object(je.createBlock)(n.name).attributes),Object.keys(Me[n.name]).every(function(e){return!!Be.includes(e)||Me[n.name][e]===n.attributes[e]})?Object(R.first)(t.tabs)||"layout":"style");Object(Q.doAction)("stackable.inspector.tab.initial",t.blockProps.clientId,a);var r=Ri({},t,{initialTab:a,onClick:function(e){zi[t.blockProps.clientId]=e,Object(Q.doAction)("stackable.inspector.tab.click",t.blockProps.clientId,e),t.onClick(e)}});return wp.element.createElement(k.Fragment,null,wp.element.createElement(e,r))};return t.defaultProps=Ri({},e.defaultProps||{}),t},Li=[{value:"layout",title:Object(S.__)("Layout",_.i18n),label:Object(S.__)("Layout Tab",_.i18n),icon:"admin-settings"},{value:"style",title:Object(S.__)("Style",_.i18n),label:Object(S.__)("Style Tab",_.i18n),icon:"admin-appearance"},{value:"advanced",title:Object(S.__)("Advanced",_.i18n),label:Object(S.__)("Advanced Tab",_.i18n),icon:"admin-tools"}],Fi=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).tabsToUse=e.props.tabs||["layout","style","advanced"],e.state={activeTab:e.props.initialTab?e.props.initialTab:e.tabsToUse[0]},e.onButtonPanelClick=e.onButtonPanelClick.bind(v()(e)),e.updateSidebarPanelTab=e.updateSidebarPanelTab.bind(v()(e)),e.select=e.select.bind(v()(e)),e.containerDiv=Object(k.createRef)(),e.props.onTabFirstOpen(e.state.activeTab),e}return w()(t,e),f()(t,[{key:"updateSidebarPanelTab",value:function(e){var t=this.containerDiv.current.closest(".components-panel");t&&setTimeout(function(){var n;t&&(t.setAttribute("data-ugb-tab",e),null===(n=t.closest(".edit-post-sidebar, .edit-widgets-sidebar"))||void 0===n||n.classList.add("ugb--has-panel-tabs"))},1)}},{key:"componentDidMount",value:function(){this.updateSidebarPanelTab(this.state.activeTab),this.props.closeOtherPanels&&document.body.addEventListener("click",this.onButtonPanelClick)}},{key:"componentWillUnmount",value:function(){var e=document.querySelector("[data-ugb-tab]");e&&(e.removeAttribute("data-ugb-tab"),e.closest(".edit-post-sidebar, .edit-widgets-sidebar").classList.remove("ugb--has-panel-tabs")),this.props.closeOtherPanels&&document.body.removeEventListener("click",this.onButtonPanelClick)}},{key:"onButtonPanelClick",value:function(e){var t,n,a=e.target.closest(".components-panel__body-toggle");a&&("layout"!==this.state.activeTab&&(t=a,[].forEach.call((null===(n=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar"))||void 0===n?void 0:n.querySelectorAll(".components-panel__body .components-panel__body-toggle"))||[],function(e){0!==e.offsetHeight&&e.parentElement.parentElement.classList.contains("is-opened")&&t!==e&&e.click()}),this.props.onClickPanel(a.closest(".components-panel__body"))))}},{key:"select",value:function(e){this.setState({activeTab:e}),this.updateSidebarPanelTab(e),this.props.onClick(e)}},{key:"render",value:function(){var e=this,t=P()([this.props.className,"components-panel__body","ugb-panel-tabs"]);return wp.element.createElement("div",{className:t,style:this.props.style,ref:this.containerDiv},wp.element.createElement("div",{className:"ugb-panel-tabs__wrapper"},Li.map(function(t,n){var a=t.value,r=t.title,i=t.label,l=t.icon;return e.tabsToUse.includes(a)?wp.element.createElement("button",{key:n,onClick:function(){return e.select(a)},className:P()(["edit-post-sidebar__panel-tab","ugb-tab--".concat(a)],{"is-active":e.state.activeTab===a}),"aria-label":i,"data-label":i},wp.element.createElement(x.Icon,{icon:l}),r):null})))}}]),t}(k.Component);Fi.defaultProps={className:"",style:{},closeOtherPanels:!0,blockProps:{},initialTab:"",onClickPanel:function(){},onClick:function(){},tabs:null,onTabFirstOpen:function(){}};Ai(Fi);var Ui=function(e){var t=P()(["ugb-global-style-control__item"],{"ugb-global-style-control__item--large-preview":e.largePreview}),n=e.renderPreview&&e.renderPreview(Object(R.pick)(e,["label","value"]));return wp.element.createElement("div",{className:t},n&&wp.element.createElement("div",{className:"ugb-global-style-control__item-preview"},n),wp.element.createElement("div",{className:"ugb-global-style-control__item-label"},e.label),wp.element.createElement(mt,{className:"ugb-global-style-control__item-button",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.onEdit(e.value)},label:Object(S.__)("Edit Style",_.i18n),isTertiary:!0,icon:"edit"}))};Ui.defaultProps={largePreview:!1,renderPreview:function(){},onEdit:function(){}};var Hi=function(e){var t=e.options;if(e.value){var n=e.options.find(function(t){return t.value===e.value});n&&(t=e.options.filter(function(t){return t.value!==e.value})).unshift(n)}var a=P()(["ugb-global-style-control",e.className],{"ugb--has-value":e.value});return wp.element.createElement(Oa,{className:a,label:e.label,onChange:e.onChange,value:e.style,options:t,renderOption:function(t){return wp.element.createElement(Ui,M()({},t,{largePreview:e.largePreview,onEdit:e.onEdit,renderPreview:e.renderPreview}))}},e.value&&wp.element.createElement(mt,{icon:"edit",label:Object(S.__)("Edit Style",_.i18n),isSecondary:!0,onClick:function(){return e.onEdit(e.value)}}),e.value&&wp.element.createElement(mt,{icon:"editor-unlink",label:Object(S.__)("Unlink Style",_.i18n),isSecondary:!0,disabled:!e.value,onClick:e.onUnlink}))};Hi.defaultProps={className:"",label:Object(S.__)("Style",_.i18n),value:"",options:[],onChange:function(){},onEdit:function(){},onUnlink:function(){},renderPreview:null,largePreview:!1};var Vi=function(e){var t=e.imageFile,n=e.imageHoverFile,a=e.imageWidth,r=void 0===a?"":a,i=e.imageHeight,l=void 0===i?"":i,o=e.label,s=t?t.match(/https?:/i)?t:_.srcUrl?"".concat(_.srcUrl,"/").concat(t):t:"",u=n?n.match(/https?:/i)?n:_.srcUrl?"".concat(_.srcUrl,"/").concat(n):n:null;return wp.element.createElement("span",{className:"ugb-design-panel-item"},u&&wp.element.createElement("img",{className:"ugb-design-panel-item__hover-image",src:u,alt:o,width:r,height:l}),s&&wp.element.createElement("img",{className:"ugb-design-panel-item__image",src:s,alt:o,width:r,height:l}),wp.element.createElement("span",{className:"design-label"},o))};function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var Wi=function(e){var t=e.options.filter(function(e){return!e.premium||_.isPro}).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{label:wp.element.createElement(Vi,{imageFile:e.image,imageHoverFile:e.hoverImage,imageWidth:e.imageWidth,imageHeight:e.imageHeight,isPro:e.isPro,label:e.label}),title:e.label,value:e.value})}),n=P()([e.className,"ugb-design-control-wrapper","components-base-control","ugb-design-control--columns-".concat(e.columns)]);return wp.element.createElement("div",{className:n},e.label&&wp.element.createElement("div",{className:"components-base-control__label"},e.label),wp.element.createElement(x.RadioControl,M()({},Object(R.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};Wi.defaultProps={className:"",columns:2,selected:"",options:[],onChange:function(){}};var qi=Wi,Ki=n(56),$i=n.n(Ki),Yi=n(57),Qi=n.n(Yi),Xi=n(58),Ji=n.n(Xi),Zi=n(59),el=n.n(Zi),tl=n(60),nl=n.n(tl),al=n(61),rl=n.n(al),il=n(62),ll=n.n(il),ol=n(63),sl=n.n(ol),ul=n(64),cl=n.n(ul),pl=n(65),fl=n.n(pl),dl=n(66),gl=n.n(dl),ml=n(67),hl=n.n(ml),bl=n(68),vl=n.n(bl),yl=[{image:fl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Wave",_.i18n),1),value:"wave-1"},{image:cl.a,label:Object(S.__)("Straight",_.i18n),value:"straight-1"},{image:gl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Wave",_.i18n),2),value:"wave-2"},{image:hl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Wave",_.i18n),3),value:"wave-3"},{image:vl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Wave",_.i18n),4),value:"wave-4"},{image:ll.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Slant",_.i18n),1),value:"slant-1"},{image:sl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Slant",_.i18n),2),value:"slant-2"},{image:$i.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Curve",_.i18n),1),value:"curve-1"},{image:Qi.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Curve",_.i18n),2),value:"curve-2"},{image:Ji.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Curve",_.i18n),3),value:"curve-3"},{image:el.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Rounded",_.i18n),1),value:"rounded-1"},{image:nl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Rounded",_.i18n),2),value:"rounded-2"},{image:rl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Rounded",_.i18n),3),value:"rounded-3"}];Object(Q.addFilter)("stackable.separator.edit.layouts","default",function(e){return Object(R.uniqBy)([].concat(s()(e),yl),"value")});var wl=function(e){var t=(Object(Q.applyFilters)("stackable.separator.edit.layouts",[])||[]).filter(function(t){return-1===Object(R.findIndex)(e.excludeDesigns,function(e){return e===t.value})});return wp.element.createElement(x.BaseControl,{className:"ugb-design-separator-control",id:"ugb-design-separator-control",label:e.label,help:e.help},wp.element.createElement(qi,M()({options:t},Object(R.omit)(e,["label","help"]))))};wl.defaultProps={label:"",help:"",excludeDesigns:[]};function kl(){return(kl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Cl=ie.a.createElement("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"}),Ol=function(e){return ie.a.createElement("svg",kl({viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},e),Cl)},xl=Object(Ot.withInstanceId)(Object(Ot.withState)({openPopover:!1,clickedOnButton:!1})(function(e){var t=e.instanceId,n=e.openPopover,a=e.clickedOnButton,r=e.setState;return wp.element.createElement(x.BaseControl,M()({className:"ugb-icon-control ugb-icon-control-".concat(t)},Object(R.omit)(e,["onChange","value"])),wp.element.createElement("div",{className:"ugb-icon-control__wrapper"},wp.element.createElement("div",{className:"ugb-icon-control__button-wrapper"},wp.element.createElement(mt,{isSecondary:!0,className:"ugb-icon-control__icon-button",onClick:function(){r(a?{openPopover:!1,clickedOnButton:!1}:{openPopover:!0})}},e.value&&wp.element.createElement(Ko,{value:e.value}),!e.value&&wp.element.createElement(Ol,{style:{opacity:.3}})),n&&wp.element.createElement(zl,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-icon-control-".concat(t))?r({clickedOnButton:!0}):r({openPopover:!1,clickedOnButton:!1})},onClose:function(){return r({openPopover:!1})},returnSVGValue:e.returnSVGValue,onChange:e.onChange})),wp.element.createElement(mt,{onClick:function(){e.onReset?e.onReset():e.onChange(""),r({openPopover:!1})},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(S.__)("Reset",_.i18n))))}));xl.defaultProps={label:Object(S.__)("Icon",_.i18n),value:"",returnSVGValue:!0,onChange:function(){}};var _l=xl;function Sl(){return(Sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var El=ie.a.createElement("path",{fill:"currentColor",d:"M360 480H24c-13.3 0-24-10.7-24-24v-24c0-13.3 10.7-24 24-24h336c13.3 0 24 10.7 24 24v24c0 13.3-10.7 24-24 24zM128 56v136H40.3c-17.8 0-26.7 21.5-14.1 34.1l152.2 152.2c7.5 7.5 19.8 7.5 27.3 0l152.2-152.2c12.6-12.6 3.7-34.1-14.1-34.1H256V56c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24z"}),jl=function(e){return ie.a.createElement("svg",Sl({"aria-hidden":"true","data-prefix":"fas","data-icon":"arrow-alt-to-bottom",className:"drop_svg__svg-inline--fa drop_svg__fa-arrow-alt-to-bottom drop_svg__fa-w-12",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},e),El)},Tl=function(){var e=Fe()(Ae.a.mark(function e(){var t,n,a,r,i=arguments;return Ae.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"icon",n=i.length>1&&void 0!==i[1]?i[1]:_.fontAwesomeSearchProIcons,a='{ search(version: "latest", first: 50, query: "'.concat((t||"info").replace(/["'\\]/g,""),'") {\n\t\t\tid\n\t\t\tmembership {\n\t\t\t\tfree\n\t\t\t\t').concat(n?"pro":"","\n\t\t\t}\n\t\t} }"),e.next=5,fetch("https://api.fontawesome.com",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:a})}).then(function(e){return e.json()});case 5:return r=e.sent,e.abrupt("return",r.data.search.reduce(function(e,t){return Pl(t,n).forEach(function(t){e.push(t)}),e},[]));case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Pl=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].concat(s()(e.membership.free),s()(t?e.membership.pro.filter(function(t){return!e.membership.free.includes(t)}):[]));return n.map(function(t){return{className:"fa".concat(t[0]," fa-").concat(e.id),prefix:"fa".concat(t[0]),iconName:e.id}})},Bl=n(69),Ml=null,Nl=null,Il=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ugb-custom-icon";return e.match(/(<svg[^>]*class=["'])/)?e.replace(/(<svg[^>]*class=["'])/,"$1".concat(t," ")):e.match(/(<svg)/)?e.replace(/(<svg)/,'$1 class="'.concat(t,'"')):e},Dl=function(e){for(var t=e.replace(/(^[\s\S]*?)(<svg)/gm,"$2").replace(/(<\/svg>)([\s\S]*)/g,"$1"),n=0;n<2;n++)t=t.replace(/\s*<g\s*>([\s\S]*?)<\/g>\s*/gm,"$1");return t},Rl=function(e){var t=Object(k.useState)(""),n=l()(t,2),a=n[0],r=n[1],i=Object(k.useState)([]),o=l()(i,2),s=o[0],u=o[1],c=Object(k.useState)(!1),p=l()(c,2),f=p[0],d=p[1],g=Object(k.useState)(!1),m=l()(g,2),h=m[0],b=m[1],v=e.returnSVGValue;Object(k.useEffect)(function(){var e=!0;return clearTimeout(Ml),Ml=setTimeout(function(){e&&(d(!0),Tl(a).then(function(t){e&&u(t)}).finally(function(){e&&d(!1)}))},500),function(){e=!1,clearTimeout(Ml)}},[a]),Object(k.useEffect)(function(){Nl||(Nl=wp.data.select("core/block-editor").getSettings().mediaUpload),h?wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:null}):wp.data.select("core/block-editor").getSettings().mediaUpload!==Nl&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:Nl})},[h]);var y=P()(["ugb-icon-popover__label-container"],{"ugb-icon--has-settings":_.isPro,"ugb-icon--has-upload":v,"ugb-icon--has-reset":e.allowReset});return wp.element.createElement(x.Popover,{className:"ugb-icon-popover",onClose:e.onClose,onClickOutside:e.onClickOutside,position:e.position,anchorRef:e.anchorRef},wp.element.createElement(x.PanelBody,null,wp.element.createElement(Bl.FileDrop,{onFrameDragEnter:function(){return b(!0)},onFrameDragLeave:function(){return b(!1)},onFrameDrop:function(){return b(!1)},onDrop:function(t){if(v&&t.length)if("image/svg+xml"===t[0].type){var n=new FileReader;n.onload=function(t){b(!1);var n=Dl(Il(t.target.result));e.onChange(n),e.onClose()},n.readAsText(t[0])}else b(!1);else b(!1)}},wp.element.createElement("div",{className:y},wp.element.createElement(x.TextControl,{className:"ugb-icon-popover__input",value:a,onChange:r,placeholder:Object(S.__)("Type to search icon",_.i18n)}),_.isPro&&wp.element.createElement(mt,{className:"ugb-icon-popover__settings-button",icon:"admin-generic",href:_.settingsUrl+"#icon-settings",target:"_settings",iconSize:"16",label:Object(S.__)("Icon Settings",_.i18n),showTooltip:!0,isSmall:!0,isSecondary:!0}),v&&wp.element.createElement(mt,{onClick:function(t){t.preventDefault();var n=document.createElement("input");n.accept="image/svg+xml",n.type="file",n.onchange=function(t){var n=t.target.files;if(n.length){var a=new FileReader;a.onload=function(t){b(!1);var n=Dl(Il(t.target.result));e.onChange(n),e.onClose()},a.readAsText(n[0])}else b(!1)},n.click()},isSmall:!0,isPrimary:!0,className:"components-range-control__upload"},Object(S.__)("Upload SVG",_.i18n)),e.allowReset&&wp.element.createElement(mt,{onClick:function(){e.onChange(""),e.onClose()},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(S.__)("Clear icon",_.i18n))),wp.element.createElement("div",{className:"ugb-icon-popover__iconlist"},f&&wp.element.createElement(x.Spinner,null),!f&&s.map(function(t,n){var a=t.prefix,r=t.iconName,i="".concat(a,"-").concat(r);return wp.element.createElement("button",{key:n,className:"components-button ugb-prefix--".concat(a," ugb-icon--").concat(r),onClick:function(){e.returnSVGValue?e.onChange(Dl(De(a,r))):e.onChange(i,a,r),e.onClose()}},wp.element.createElement(Nm,{prefix:a,iconName:r}))}),!f&&!s.length&&wp.element.createElement("p",{className:"components-base-control__help"},Object(S.__)("No matches found",_.i18n))),v&&h&&wp.element.createElement("div",{className:"ugb-icon-popover__drop-indicator"},wp.element.createElement(jl,{height:"40",width:"40"}),Object(S.__)("Drop your SVG here",_.i18n)))))};Rl.defaultProps={onChange:function(){},onClose:function(){},onClickOutside:function(){},returnSVGValue:!0,allowReset:!0,anchorRef:void 0,position:"center"};var zl=Rl,Al=function(e){return wp.element.createElement(up,{attrNameTemplate:"%sContentAlign",setAttributes:e.setAttributes,blockAttributes:e.blockAttributes},wp.element.createElement(Ap,{label:e.label,className:P()([e.className,"ugb--help-tip-alignment-all"])}))};Al.defaultProps={className:"",setAttributes:function(){},blockAttributes:{},label:Object(S.__)("Align",_.i18n)};var Ll=function(){return wp.element.createElement("hr",{className:"ugb-control-separator"})},Fl=function(e){var t=e.color||"transparent";if(Array.isArray(t)){var n=t,a=l()(n,2),r=a[0],i=a[1];t="linear-gradient(90deg, ".concat(r||"transparent",", ").concat(i||"transparent",")")}var o=P()(["components-circular-option-picker__option-wrapper","ugb-button-icon-popover-control-color-preview"],{"ugb-button-icon-popover-control-color-preview--transparent":!t||"transparent"===t});return wp.element.createElement(k.Fragment,null,wp.element.createElement("div",{className:o},wp.element.createElement(mt,{className:"components-circular-option-picker__option",label:Object(S.__)("Selected color",_.i18n),style:{background:t},onClick:e.onClick,ref:e._ref}),e.children))};Fl.defaultProps={color:"",onClick:function(){},_ref:null};var Ul=Fl;function Hl(){return(Hl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Vl=ie.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Gl=ie.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Wl=ie.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),ql=function(e){return ie.a.createElement("svg",Hl({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Vl,Gl,Wl)},Kl=function(e){return wp.element.createElement(k.Fragment,null,wp.element.createElement("div",{className:"components-circular-option-picker__option-wrapper ugb-button-icon-popover-control-image-preview"},wp.element.createElement(mt,{className:"components-circular-option-picker__option",label:Object(S.__)("Selected image",_.i18n),style:{backgroundImage:e.imageUrl?"url(".concat(e.imageUrl,")"):void 0},onClick:e.onClick,ref:e._ref},!e.imageUrl&&wp.element.createElement(ql,null)),e.children))};Kl.defaultProps={imageUrl:"",onClick:function(){},_ref:null};var $l=Kl;function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var Ql=1,Xl=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={open:!1,isMouseOutside:!1,showResetPopover:!1},e.handleOpen=e.handleOpen.bind(v()(e)),e.handleClose=e.handleClose.bind(v()(e)),e.handleMouseLeave=e.handleMouseLeave.bind(v()(e)),e.handleMouseEnter=e.handleMouseEnter.bind(v()(e)),e.handleOnClickOutside=e.handleOnClickOutside.bind(v()(e)),e.handleReset=e.handleReset.bind(v()(e)),e.buttonRef=Object(k.createRef)(),e.buttonRefColorPreview=Object(k.createRef)(),e.buttonRefImagePreview=Object(k.createRef)(),e.instanceId=Ql++,e}return w()(t,e),f()(t,[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.onToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t])&&(n=!0,!0)}),n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yl(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,r()({},this.props.toggleAttributeName,!0)):e}},{key:"componentDidMount",value:function(){Object(Q.addFilter)("stackable.setAttributes","stackable/button-icon-popover-control-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9),document.addEventListener("mousedown",this.handleOnClickOutside)}},{key:"componentWillUnmount",value:function(){Object(Q.removeFilter)("stackable.setAttributes","stackable/button-icon-popover-control-".concat(this.instanceId)),document.removeEventListener("mousedown",this.handleOnClickOutside)}},{key:"handleOpen",value:function(){this.setState({open:!this.state.open})}},{key:"handleClose",value:function(){this.setState({open:!1})}},{key:"handleMouseLeave",value:function(){this.setState({isMouseOutside:!0})}},{key:"handleMouseEnter",value:function(){this.setState({isMouseOutside:!1})}},{key:"handleReset",value:function(){this.props.resetPopoverTitle||this.props.resetPopoverDescription?this.setState({showResetPopover:!0}):this.props.onReset()}},{key:"handleOnClickOutside",value:function(e){var t,n,a,r;(null===(t=window.wp)||void 0===t?void 0:null===(n=t.media)||void 0===n?void 0:null===(a=n.frame)||void 0===a?void 0:null===(r=a.el)||void 0===r?void 0:r.clientHeight)||this.state.isMouseOutside&&e.target.closest("button")!==this.buttonRef.current&&e.target.closest("button")!==this.buttonRefColorPreview.current&&e.target.closest("button")!==this.buttonRefImagePreview.current&&(e.target.closest(".ugb-button-icon-control__popover")||this.handleClose())}},{key:"render",value:function(){var e=this;return wp.element.createElement(x.BaseControl,{help:this.props.help,label:!this.props.onToggle&&wp.element.createElement("label",{htmlFor:"ugb-button-icon-control__edit-".concat(this.instanceId)},this.props.label),id:"ugb-button-icon-control",className:P()("ugb-button-icon-control",this.props.className)},this.props.onToggle&&wp.element.createElement(x.ToggleControl,{label:this.props.label,checked:this.props.checked,onChange:this.props.onToggle}),wp.element.createElement("div",{className:"ugb-button-icon-control__wrapper"},this.props.allowReset&&wp.element.createElement(k.Fragment,null,wp.element.createElement(mt,{onClick:this.handleReset,className:"ugb-button-icon-control__reset",label:Object(S.__)("Reset",_.i18n),icon:"image-rotate"}),this.state.showResetPopover&&wp.element.createElement(x.Popover,{onClickOutside:function(){return e.setState({showResetPopover:!1})},focusOnMount:!1,position:"bottom center",className:"ugb-button-icon-control__reset-popover"},wp.element.createElement("h4",{className:"ugb-button-icon-control__text-title"},this.props.resetPopoverTitle),wp.element.createElement("p",{className:"components-base-control__help"},this.props.resetPopoverDescription),wp.element.createElement(x.ButtonGroup,null,wp.element.createElement(mt,{onClick:function(){e.setState({showResetPopover:!1}),e.props.onReset()},isDestructive:!0,isSecondary:!0,isSmall:!0},Object(S.__)("Reset",_.i18n)),wp.element.createElement(mt,{onClick:function(){return e.setState({showResetPopover:!1})},isSmall:!0},Object(S.__)("Cancel",_.i18n))))),this.props.hasImagePreview&&wp.element.createElement($l,{imageUrl:this.props.imageUrlPreview,onClick:this.handleOpen,_ref:this.buttonRefImagePreview}),this.props.hasColorPreview&&wp.element.createElement(Ul,{color:this.props.colorPreview,onClick:this.handleOpen,_ref:this.buttonRefColorPreview}),this.props.renderCustomPreview&&this.props.renderCustomPreview(),wp.element.createElement(mt,{onClick:this.handleOpen,className:"ugb-button-icon-control__edit",label:Object(S.__)("Edit",_.i18n),isSecondary:!0,icon:"edit",id:"ugb-button-icon-control__edit-".concat(this.instanceId),ref:this.buttonRef}),this.state.open&&wp.element.createElement(x.Popover,{className:"ugb-button-icon-control__popover",focusOnMount:"container",anchorRef:this.buttonRef.current,onMouseLeave:this.handleMouseLeave,onMouseEnter:this.handleMouseEnter},wp.element.createElement(x.PanelBody,null,(void 0!==this.props.popoverLabel?this.props.popoverLabel:this.props.label)&&wp.element.createElement("h2",{className:"components-panel__body-title"},this.props.popoverLabel||this.props.label),this.props.children))))}}]),t}(k.Component);Xl.defaultProps={help:"",label:"",popoverLabel:void 0,className:"",allowReset:!1,onReset:function(){},checked:!1,onToggle:void 0,toggleOnSetAttributes:[],toggleAttributeName:"",colorPreview:null,imageUrlPreview:"",hasColorPreview:!1,hasImagePreview:!1,renderCustomPreview:null};var Jl=Xl,Zl=function(e){var t=ve(e.imageData,e.size||"full"),n=e.widthMax||1e3,a=0;e.imageData&&e.onChangeSize&&t&&(n=t.width,a=t.height);var r=!!t&&t.width===t.height;return wp.element.createElement(k.Fragment,null,e.onChangeImage&&wp.element.createElement(Cn,{label:Object(S.__)("Image",_.i18n),imageID:e.id,imageURL:e.url,onRemove:function(){return e.onChangeImage({url:"",id:"",width:"",height:""})},onChange:function(t){var n=t.url,a=t.width,r=t.height,i=e.size||"full";t.sizes[i]&&(n=t.sizes[i].url,a=t.sizes[i].width,r=t.sizes[i].height),e.onChangeImage({id:t.id,url:n,width:a,height:r})}}),e.onChangeShape&&wp.element.createElement(Rn,{isSquareImage:r,shape:e.shape,shapeFlipX:e.shapeFlipX,shapeFlipY:e.shapeFlipY,shapeStretch:e.shapeStretch,onChangeShape:e.onChangeShape,onChangeShapeFlipX:e.onChangeShapeFlipX,onChangeShapeFlipY:e.onChangeShapeFlipY,onChangeShapeStretch:e.onChangeShapeStretch}),wp.element.createElement(Ll,null),e.onChangeAlt&&wp.element.createElement(xn,{value:e.alt,onChange:e.onChangeAlt}),e.onChangeSize&&wp.element.createElement(An,{label:Object(S.__)("Image Size",_.i18n),value:e.size,onChange:function(t){var n=ve(e.imageData,t||"full"),a="",r="",i=e.url;n&&(a=n.width,r=n.height,i=n.source_url),e.onChangeSize(t,i,a,r)}}),e.onChangeWidth&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(sa,{label:Object(S.__)("Image Width",_.i18n),value:e.width,placeholder:e.placeholder,max:n,min:0,onChange:function(t){var r=a/n;e.onChangeWidth("number"==typeof t?t:"","number"==typeof t?parseInt(r*t,10):"")},allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(sa,{label:Object(S.__)("Image Width",_.i18n),value:e.tabletWidth,max:n,min:0,onChange:e.onChangeTabletWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(sa,{label:Object(S.__)("Image Width",_.i18n),value:e.mobileWidth,max:n,min:0,onChange:e.onChangeMobileWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"}))),e.onChangeSquare&&wp.element.createElement(k.Fragment,null,("number"==typeof e.width||e.width)&&wp.element.createElement(pp,null,wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Force square image",_.i18n),checked:e.square,onChange:e.onChangeSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.tabletWidth||e.tabletWidth)&&wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Force square image",_.i18n),checked:e.tabletSquare,onChange:e.onChangeTabletSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.mobileWidth||e.mobileWidth)&&wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Force square image",_.i18n),checked:e.mobileSquare,onChange:e.onChangeMobileSquare,className:"ugb--help-tip-image-square"}))),e.onChangeBorderRadius&&""===e.shape&&wp.element.createElement(sa,{label:Object(S.__)("Border Radius",_.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:100,allowReset:!0,placeholder:"0",className:"ugb--help-tip-image-border-radius"}),e.onChangeShadow&&""===e.shape&&wp.element.createElement(sa,{label:Object(S.__)("Shadow / Outline",_.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-image-shadow"}),e.onChangeBlendMode&&wp.element.createElement(mn,{label:Object(S.__)("Blend Mode",_.i18n),value:e.blendMode,onChange:e.onChangeBlendMode}))};Zl.defaultProps={id:"",url:"",onChangeImage:function(e){e.url,e.id,e.width,e.height},shape:"",onChangeShape:function(){},shapeStretch:"",onChangeShapeStretch:function(){},alt:"",onChangeAlt:function(){},size:"large",onChangeSize:function(){},widthMax:1e3,width:"",tabletWidth:"",mobileWidth:"",onChangeWidth:function(){},onChangeTabletWidth:function(){},onChangeMobileWidth:function(){},square:"",tabletSquare:"",mobileSquare:"",onChangeSquare:function(){},onChangeTabletSquare:function(){},onChangeMobileSquare:function(){},borderRadius:"",onChangeBorderRadius:function(){},shadow:"",onChangeShadow:function(){},blendMode:"",onChangeBlendMode:function(){}};var eo=Object(Ot.compose)(Object(he.withSelect)(function(e,t){var n=e("core").getMedia;return ye(t.id,e),{imageData:t.id?n(t.id):null}}))(Zl),to=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(eo,M()({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,i=e.url,l=e.id,o=e.width,s=e.height;t((a={},r()(a,n("Url"),i),r()(a,n("Id"),l),r()(a,n("Width"),o),r()(a,n("Height"),s),a))},alt:a("Alt"),onChangeAlt:function(e){return t(r()({},n("Alt"),e))},size:a("Size"),onChangeSize:function(e,a,i,l){var o;t((o={},r()(o,n("Size"),e),r()(o,n("Url"),a),r()(o,n("Width"),i),r()(o,n("Height"),l),o))},shape:a("Shape"),onChangeShape:function(e){return t(r()({},n("Shape"),e))},shapeFlipX:a("ShapeFlipX"),onChangeShapeFlipX:function(e){return t(r()({},n("ShapeFlipX"),e))},shapeFlipY:a("ShapeFlipY"),onChangeShapeFlipY:function(e){return t(r()({},n("ShapeFlipY"),e))},shapeStretch:a("ShapeStretch"),onChangeShapeStretch:function(e){return t(r()({},n("ShapeStretch"),e))},style:a("Style"),onChangeStyle:function(e){return t(r()({},n("Style"),e))},width:a("Width"),tabletWidth:a("TabletWidth"),mobileWidth:a("MobileWidth"),onChangeWidth:function(e,a){var i;t((i={},r()(i,n("Width"),e),r()(i,n("Height"),a),i))},onChangeTabletWidth:function(e){return t(r()({},n("TabletWidth"),e))},onChangeMobileWidth:function(e){return t(r()({},n("MobileWidth"),e))},square:a("Square"),tabletSquare:a("TabletSquare"),mobileSquare:a("MobileSquare"),onChangeSquare:function(e){return t(r()({},n("Square"),e))},onChangeTabletSquare:function(e){return t(r()({},n("TabletSquare"),e))},onChangeMobileSquare:function(e){return t(r()({},n("MobileSquare"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(r()({},n("BorderRadius"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(r()({},n("Shadow"),e))},blendMode:a("BlendMode"),onChangeBlendMode:function(e){return t(r()({},n("BlendMode"),e))}},e))};to.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var no=function(e){return wp.element.createElement(k.Fragment,null,e.onChangeImage&&wp.element.createElement(Cn,{label:Object(S.__)("Image",_.i18n),imageID:e.id,imageURL:e.url,onRemove:function(){return e.onChangeImage({url:"",id:""})},onChange:function(t){var n=t.url,a=e.size||"full";t.sizes[a]&&(n=t.sizes[a].url),e.onChangeImage({id:t.id,url:n})}}),e.onChangeSize&&wp.element.createElement(An,{label:Object(S.__)("Image Size",_.i18n),value:e.size,onChange:function(t){e.onChangeSize(t,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full",n=we(e)||ye(e,he.select);return n?n.media_details.sizes[t]?n.media_details.sizes[t].source_url:n.source_url:""}(e.id,t||"full"))},className:"ugb--help-tip-image-size"}),e.onChangeBackgroundPosition&&wp.element.createElement(ca,{label:Object(S.__)("Background Image Position",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Top Left",_.i18n),value:"top left"},{label:Object(S.__)("Top Center",_.i18n),value:"top center"},{label:Object(S.__)("Top Right",_.i18n),value:"top right"},{label:Object(S.__)("Center Left",_.i18n),value:"center left"},{label:Object(S.__)("Center Center",_.i18n),value:"center center"},{label:Object(S.__)("Center Right",_.i18n),value:"center right"},{label:Object(S.__)("Bottom Left",_.i18n),value:"bottom left"},{label:Object(S.__)("Bottom Center",_.i18n),value:"bottom center"},{label:Object(S.__)("Bottom Right",_.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"}),e.onChangeBackgroundRepeat&&wp.element.createElement(ca,{label:Object(S.__)("Background Image Repeat",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("No-Repeat",_.i18n),value:"no-repeat"},{label:Object(S.__)("Repeat",_.i18n),value:"repeat"},{label:Object(S.__)("Repeat-X",_.i18n),value:"repeat-x"},{label:Object(S.__)("Repeat-Y",_.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"}),e.onChangeBackgroundSize&&wp.element.createElement(ca,{label:Object(S.__)("Background Image Size",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Auto",_.i18n),value:"auto"},{label:Object(S.__)("Cover",_.i18n),value:"cover"},{label:Object(S.__)("Contain",_.i18n),value:"contain"},{label:Object(S.__)("Custom",_.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"}),e.onChangeBackgroundSize&&"custom"===e.backgroundSize&&wp.element.createElement(sa,{label:Object(S.__)("Custom Size",_.i18n),units:["px","%"],min:[0,0],max:[1e3,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0}))};no.defaultProps={id:"",url:"",onChangeImage:function(e){e.url,e.id},size:"",onChangeSize:function(){},backgroundPosition:"",onChangeBackgroundPosition:function(){},backgroundRepeat:"",onChangeBackgroundRepeat:function(){},backgroundSize:"",onChangeBackgroundSize:function(){},backgroundCustomSizeUnit:"",onChangeBackgroundCustomSizeUnit:function(){},backgroundCustomSize:"",onChangeBackgroundCustomSize:function(){}};var ao=Object(Ot.compose)(Object(he.withSelect)(function(e,t){var n=e("core").getMedia;return ye(t.id,e),{imageData:t.id?n(t.id):null}}))(no),ro=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(ao,M()({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,i=e.url,l=e.id;t((a={},r()(a,n("Url"),i),r()(a,n("Id"),l),a))},size:a("Size"),onChangeSize:function(e,a){var i;t((i={},r()(i,n("Size"),e),r()(i,n("Url"),a),i))},backgroundPosition:a("BackgroundPosition"),onChangeBackgroundPosition:function(e){return t(r()({},n("BackgroundPosition"),e))},backgroundRepeat:a("BackgroundRepeat"),onChangeBackgroundRepeat:function(e){return t(r()({},n("BackgroundRepeat"),e))},backgroundSize:a("BackgroundSize"),onChangeBackgroundSize:function(e){return t(r()({},n("BackgroundSize"),e))},backgroundCustomSize:a("BackgroundCustomSize"),onChangeBackgroundCustomSize:function(e){return t(r()({},n("BackgroundCustomSize"),e))},backgroundCustomSizeUnit:a("BackgroundCustomSizeUnit")||"px",onChangeBackgroundCustomSizeUnit:function(e){return t(r()({},n("BackgroundCustomSizeUnit"),e))}},e))};ro.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var io=function(e){var t=Object(k.useMemo)(function(){return"function"==typeof e.placeholder?e.fontSize||Math.round(e.placeholder(ee(e.htmlTag,!0))):e.fontSize||e.placeholder||ee(e.htmlTag,!0)},[e.htmlTag,e.fontSize]);return wp.element.createElement(k.Fragment,null,wp.element.createElement(Jl,{label:e.label,popoverLabel:e.popoverLabel,onReset:e.onReset,allowReset:e.fontFamily||e.fontSize||e.tabletFontSize||e.mobileFontSize||e.fontWeight||e.textTransform||e.lineHeight||e.tabletLineHeight||e.mobileLineHeight||e.letterSpacing,resetPopoverTitle:e.resetPopoverTitle,resetPopoverDescription:e.resetPopoverDescription,className:e.className},e.onChangeFontFamily&&wp.element.createElement(tr,{label:Object(S.__)("Font Family",_.i18n),onChange:e.onChangeFontFamily,value:e.fontFamily,className:"ugb--help-tip-typography-family"}),e.onChangeFontSize&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:t,className:"ugb--help-tip-typography-size"}))),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletFontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"}))),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobileFontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))),e.onChangeFontWeight&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Weight",_.i18n),options:[{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"},{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Normal",_.i18n),value:"normal"},{label:Object(S.__)("Bold",_.i18n),value:"bold"}],onChange:e.onChangeFontWeight,value:e.fontWeight,className:"ugb--help-tip-typography-weight"}),e.onChangeTextTransform&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Transform",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Uppercase",_.i18n),value:"uppercase"},{label:Object(S.__)("Lowercase",_.i18n),value:"lowercase"},{label:Object(S.__)("Capitalize",_.i18n),value:"capitalize"},{label:Object(S.__)("None",_.i18n),value:"none"}],onChange:e.onChangeTextTransform,value:e.textTransform,className:"ugb--help-tip-typography-transform"}),e.onChangeLineHeight&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(sa,{label:Object(S.__)("Line-Height",_.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.lineHeight,onChange:e.onChangeLineHeight,unit:e.lineHeightUnit,onChangeUnit:e.onChangeLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(sa,{label:Object(S.__)("Line-Height",_.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.tabletLineHeight,onChange:e.onChangeTabletLineHeight,unit:e.tabletLineHeightUnit,onChangeUnit:e.onChangeTabletLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(sa,{label:Object(S.__)("Line-Height",_.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.mobileLineHeight,onChange:e.onChangeMobileLineHeight,unit:e.mobileLineHeightUnit,onChangeUnit:e.onChangeMobileLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"}))),e.onChangeLetterSpacing&&wp.element.createElement(sa,{label:Object(S.__)("Letter Spacing",_.i18n),min:-5,max:10,step:.1,allowReset:!0,onChange:e.onChangeLetterSpacing,value:e.letterSpacing,placeholder:"0",className:"ugb--help-tip-typography-letter-spacing"})),e.showSecondFontSize&&e.onChangeFontSize&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:t,className:"ugb--help-tip-typography-size"}))),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletFontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"}))),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobileFontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))))};io.defaultProps={label:Object(S.__)("Typography",_.i18n),popoverLabel:void 0,className:"ugb--help-tip-typography",showSecondFontSize:!0,fontFamily:"",fontSize:"",tabletFontSize:"",mobileFontSize:"",fontSizeUnit:"px",tabletFontSizeUnit:"px",mobileFontSizeUnit:"px",fontWeight:"",textTransform:"",lineHeight:"",tabletLineHeight:"",mobileLineHeight:"",lineHeightUnit:"em",tabletLineHeightUnit:"em",mobileLineHeightUnit:"em",letterSpacing:"",fontSizeProps:{},resetPopoverTitle:"",resetPopoverDescription:"",placeholder:"",htmlTag:"p",onReset:function(){},onChangeFontFamily:function(){},onChangeFontSize:function(){},onChangeTabletFontSize:function(){},onChangeMobileFontSize:function(){},onChangeFontSizeUnit:function(){},onChangeTabletFontSizeUnit:function(){},onChangeMobileFontSizeUnit:function(){},onChangeFontWeight:function(){},onChangeTextTransform:function(){},onChangeLineHeight:function(){},onChangeTabletLineHeight:function(){},onChangeMobileLineHeight:function(){},onChangeLineHeightUnit:function(){},onChangeTabletLineHeightUnit:function(){},onChangeMobileLineHeightUnit:function(){},onChangeLetterSpacing:function(){}};var lo=io,oo=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(lo,M()({fontFamily:e.blockAttributes[n("FontFamily")]||"",fontSize:e.blockAttributes[n("FontSize")]||"",tabletFontSize:e.blockAttributes[n("TabletFontSize")]||"",mobileFontSize:e.blockAttributes[n("MobileFontSize")]||"",fontSizeUnit:e.blockAttributes[n("FontSizeUnit")]||"px",tabletFontSizeUnit:e.blockAttributes[n("TabletFontSizeUnit")]||"px",mobileFontSizeUnit:e.blockAttributes[n("MobileFontSizeUnit")]||"px",fontWeight:e.blockAttributes[n("FontWeight")]||"",textTransform:e.blockAttributes[n("TextTransform")]||"",letterSpacing:e.blockAttributes[n("LetterSpacing")]||"",lineHeight:e.blockAttributes[n("LineHeight")]||"",tabletLineHeight:e.blockAttributes[n("TabletLineHeight")]||"",mobileLineHeight:e.blockAttributes[n("MobileLineHeight")]||"",lineHeightUnit:e.blockAttributes[n("LineHeightUnit")]||"em",tabletLineHeightUnit:e.blockAttributes[n("TabletLineHeightUnit")]||"em",mobileLineHeightUnit:e.blockAttributes[n("MobileLineHeightUnit")]||"em",onChangeFontFamily:function(e){return t(r()({},n("FontFamily"),e))},onChangeFontSize:function(e){return t(r()({},n("FontSize"),e))},onChangeTabletFontSize:function(e){return t(r()({},n("TabletFontSize"),e))},onChangeMobileFontSize:function(e){return t(r()({},n("MobileFontSize"),e))},onChangeFontSizeUnit:function(e){return t(r()({},n("FontSizeUnit"),e))},onChangeTabletFontSizeUnit:function(e){return t(r()({},n("TabletFontSizeUnit"),e))},onChangeMobileFontSizeUnit:function(e){return t(r()({},n("MobileFontSizeUnit"),e))},onChangeFontWeight:function(e){return t(r()({},n("FontWeight"),e))},onChangeTextTransform:function(e){return t(r()({},n("TextTransform"),e))},onChangeLetterSpacing:function(e){return t(r()({},n("LetterSpacing"),e))},onChangeLineHeight:function(e){return t(r()({},n("LineHeight"),e))},onChangeTabletLineHeight:function(e){return t(r()({},n("TabletLineHeight"),e))},onChangeMobileLineHeight:function(e){return t(r()({},n("MobileLineHeight"),e))},onChangeLineHeightUnit:function(e){return t(r()({},n("LineHeightUnit"),e))},onChangeTabletLineHeightUnit:function(e){return t(r()({},n("TabletLineHeightUnit"),e))},onChangeMobileLineHeightUnit:function(e){return t(r()({},n("MobileLineHeightUnit"),e))},onReset:function(){var e;t((e={},r()(e,n("FontFamily"),""),r()(e,n("FontSize"),""),r()(e,n("TabletFontSize"),""),r()(e,n("MobileFontSize"),""),r()(e,n("FontSizeUnit"),"px"),r()(e,n("TabletFontSizeUnit"),"px"),r()(e,n("MobileFontSizeUnit"),"px"),r()(e,n("FontWeight"),""),r()(e,n("TextTransform"),""),r()(e,n("LetterSpacing"),""),r()(e,n("LineHeight"),""),r()(e,n("TabletLineHeight"),""),r()(e,n("MobileLineHeight"),""),r()(e,n("LineHeightUnit"),"em"),r()(e,n("TabletLineHeightUnit"),"em"),r()(e,n("MobileLineHeightUnit"),"em"),e))}},e))};oo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var so=oo,uo=function(e){return wp.element.createElement(k.Fragment,null,e.onChangeBackgroundColorType&&wp.element.createElement(x.BaseControl,{id:"ugb-background-color-type",className:"ugb--help-tip-background-color-type"},wp.element.createElement(Qa,{controls:[{value:"",title:Object(S.__)("Single",_.i18n)},{value:"gradient",title:Object(S.__)("Gradient",_.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&wp.element.createElement(St,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType?Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),e.labelBackgroundColor,1):e.labelBackgroundColor,value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColorOpacity&&"gradient"!==e.backgroundColorType&&!e.backgroundMediaURL&&!e.tabletBackgroundMediaURL&&!e.mobileBackgroundMediaURL&&wp.element.createElement(sa,{label:Object(S.__)("Background Color Opacity",_.i18n),value:e.backgroundColorOpacity,onChange:e.onChangeBackgroundColorOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",className:"ugb--help-tip-background-color-opacity"}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&wp.element.createElement(St,{label:Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),e.labelBackgroundColor,2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&wp.element.createElement(Jl,{label:Object(S.__)("Adv. Gradient Color Settings",_.i18n),onReset:e.onResetAdvancedGradient,allowReset:""!==e.backgroundGradientDirection&&90!==e.backgroundGradientDirection||""!==e.backgroundGradientLocation1&&0!==e.backgroundGradientLocation1||""!==e.backgroundGradientLocation2&&100!==e.backgroundGradientLocation2||e.backgroundGradientBlendMode},e.onChangeBackgroundGradientDirection&&wp.element.createElement(sa,{label:Object(S.__)("Gradient Direction (degrees)",_.i18n),value:e.backgroundGradientDirection,onChange:e.onChangeBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeBackgroundGradientLocation1&&wp.element.createElement(sa,{label:Object(S.sprintf)(Object(S.__)("Color %d Location",_.i18n),1),value:e.backgroundGradientLocation1,onChange:e.onChangeBackgroundGradientLocation1,min:0,max:100,step:1,allowReset:!0,placeholder:"0",className:"ugb--help-tip-gradient-location"}),e.onChangeBackgroundGradientLocation2&&wp.element.createElement(sa,{label:Object(S.sprintf)(Object(S.__)("Color %d Location",_.i18n),2),value:e.backgroundGradientLocation2,onChange:e.onChangeBackgroundGradientLocation2,min:0,max:100,step:1,allowReset:!0,placeholder:"100",className:"ugb--help-tip-gradient-location"}),e.onChangeBackgroundGradientBlendMode&&wp.element.createElement(mn,{label:Object(S.__)("Background Gradient Blend Mode",_.i18n),value:e.backgroundGradientBlendMode,onChange:e.onChangeBackgroundGradientBlendMode,className:"ugb--help-tip-background-blend-mode"})),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&e.onChangeBackgroundMedia&&wp.element.createElement(Ll,null),e.onChangeBackgroundMedia&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(Cn,{label:e.backgroundMediaAllowVideo?Object(S.__)("Background Image or Video",_.i18n):Object(S.__)("Background Image",_.i18n),help:e.backgroundMediaAllowVideo?Object(S.__)("Use .mp4 format for videos",_.i18n):"",onRemove:function(){return e.onChangeBackgroundMedia({url:"",id:""})},onChange:e.onChangeBackgroundMedia,imageID:e.backgroundMediaID,imageURL:e.backgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(Cn,{label:e.backgroundMediaAllowVideo?Object(S.__)("Background Image or Video",_.i18n):Object(S.__)("Background Image",_.i18n),help:e.backgroundMediaAllowVideo?Object(S.__)("Use .mp4 format for videos",_.i18n):"",onRemove:function(){return e.onChangeTabletBackgroundMedia({url:"",id:""})},onChange:e.onChangeTabletBackgroundMedia,imageID:e.tabletBackgroundMediaID,imageURL:e.tabletBackgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(Cn,{label:e.backgroundMediaAllowVideo?Object(S.__)("Background Image or Video",_.i18n):Object(S.__)("Background Image",_.i18n),help:e.backgroundMediaAllowVideo?Object(S.__)("Use .mp4 format for videos",_.i18n):"",onRemove:function(){return e.onChangeMobileBackgroundMedia({url:"",id:""})},onChange:e.onChangeMobileBackgroundMedia,imageID:e.mobileBackgroundMediaID,imageURL:e.mobileBackgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]}))),e.onChangeBackgroundTintStrength&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&wp.element.createElement(sa,{label:Object(S.__)("Background Media Tint Strength",_.i18n),value:e.backgroundTintStrength,onChange:function(t){var n=void 0===t||""===t;""!==e.backgroundColor||n?"#000000"===e.backgroundColor&&n?e.onChangeBackgroundTintStrength(t,""):e.onChangeBackgroundTintStrength(t,e.backgroundColor):e.onChangeBackgroundTintStrength(t,"#000000")},min:0,max:10,step:1,allowReset:!0,placeholder:e.backgroundColor?"5":"0",className:"ugb--help-tip-background-tint"}),e.onChangeFixedBackground&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&!([e.backgroundMediaURL,e.tabletBackgroundMediaURL,e.mobileBackgroundMediaURL].filter(function(e){return e}).filter(Ve).length>0)&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Fixed Background",_.i18n),checked:e.fixedBackground,onChange:e.onChangeFixedBackground,className:"ugb--help-tip-background-fixed"}),e.hasAdvancedBackground&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&wp.element.createElement(Jl,{label:Object(S.__)("Adv. Background Image Settings",_.i18n),onReset:e.onResetAdvancedBackground,allowReset:e.backgroundPosition||e.tabletBackgroundPosition||e.mobileBackgroundPosition||e.backgroundRepeat||e.tabletBackgroundRepeat||e.mobileBackgroundRepeat||e.backgroundSize||e.tabletBackgroundSize||e.mobileBackgroundSize||e.backgroundImageBlendMode},wp.element.createElement(pp,null,wp.element.createElement(ca,{label:Object(S.__)("Image Position",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Top Left",_.i18n),value:"top left"},{label:Object(S.__)("Top Center",_.i18n),value:"top center"},{label:Object(S.__)("Top Right",_.i18n),value:"top right"},{label:Object(S.__)("Center Left",_.i18n),value:"center left"},{label:Object(S.__)("Center Center",_.i18n),value:"center center"},{label:Object(S.__)("Center Right",_.i18n),value:"center right"},{label:Object(S.__)("Bottom Left",_.i18n),value:"bottom left"},{label:Object(S.__)("Bottom Center",_.i18n),value:"bottom center"},{label:Object(S.__)("Bottom Right",_.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(ca,{label:Object(S.__)("Image Position",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Top Left",_.i18n),value:"top left"},{label:Object(S.__)("Top Center",_.i18n),value:"top center"},{label:Object(S.__)("Top Right",_.i18n),value:"top right"},{label:Object(S.__)("Center Left",_.i18n),value:"center left"},{label:Object(S.__)("Center Center",_.i18n),value:"center center"},{label:Object(S.__)("Center Right",_.i18n),value:"center right"},{label:Object(S.__)("Bottom Left",_.i18n),value:"bottom left"},{label:Object(S.__)("Bottom Center",_.i18n),value:"bottom center"},{label:Object(S.__)("Bottom Right",_.i18n),value:"bottom right"}],value:e.tabletBackgroundPosition,onChange:e.onChangeTabletBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(ca,{label:Object(S.__)("Image Position",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Top Left",_.i18n),value:"top left"},{label:Object(S.__)("Top Center",_.i18n),value:"top center"},{label:Object(S.__)("Top Right",_.i18n),value:"top right"},{label:Object(S.__)("Center Left",_.i18n),value:"center left"},{label:Object(S.__)("Center Center",_.i18n),value:"center center"},{label:Object(S.__)("Center Right",_.i18n),value:"center right"},{label:Object(S.__)("Bottom Left",_.i18n),value:"bottom left"},{label:Object(S.__)("Bottom Center",_.i18n),value:"bottom center"},{label:Object(S.__)("Bottom Right",_.i18n),value:"bottom right"}],value:e.mobileBackgroundPosition,onChange:e.onChangeMobileBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(pp,null,wp.element.createElement(ca,{label:Object(S.__)("Image Repeat",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("No-Repeat",_.i18n),value:"no-repeat"},{label:Object(S.__)("Repeat",_.i18n),value:"repeat"},{label:Object(S.__)("Repeat-X",_.i18n),value:"repeat-x"},{label:Object(S.__)("Repeat-Y",_.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(ca,{label:Object(S.__)("Image Repeat",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("No-Repeat",_.i18n),value:"no-repeat"},{label:Object(S.__)("Repeat",_.i18n),value:"repeat"},{label:Object(S.__)("Repeat-X",_.i18n),value:"repeat-x"},{label:Object(S.__)("Repeat-Y",_.i18n),value:"repeat-y"}],value:e.tabletBackgroundRepeat,onChange:e.onChangeTabletBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(ca,{label:Object(S.__)("Image Repeat",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("No-Repeat",_.i18n),value:"no-repeat"},{label:Object(S.__)("Repeat",_.i18n),value:"repeat"},{label:Object(S.__)("Repeat-X",_.i18n),value:"repeat-x"},{label:Object(S.__)("Repeat-Y",_.i18n),value:"repeat-y"}],value:e.mobileBackgroundRepeat,onChange:e.onChangeMobileBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(pp,null,wp.element.createElement(ca,{label:Object(S.__)("Image Size",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Auto",_.i18n),value:"auto"},{label:Object(S.__)("Cover",_.i18n),value:"cover"},{label:Object(S.__)("Contain",_.i18n),value:"contain"},{label:Object(S.__)("Custom",_.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(ca,{label:Object(S.__)("Image Size",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Auto",_.i18n),value:"auto"},{label:Object(S.__)("Cover",_.i18n),value:"cover"},{label:Object(S.__)("Contain",_.i18n),value:"contain"},{label:Object(S.__)("Custom",_.i18n),value:"custom"}],value:e.tabletBackgroundSize,onChange:e.onChangeTabletBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(ca,{label:Object(S.__)("Image Size",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Auto",_.i18n),value:"auto"},{label:Object(S.__)("Cover",_.i18n),value:"cover"},{label:Object(S.__)("Contain",_.i18n),value:"contain"},{label:Object(S.__)("Custom",_.i18n),value:"custom"}],value:e.mobileBackgroundSize,onChange:e.onChangeMobileBackgroundSize,className:"ugb--help-tip-background-image-size"})),"custom"===e.backgroundSize&&wp.element.createElement(pp,null,wp.element.createElement(sa,{label:Object(S.__)("Custom Size",_.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0})),"custom"===e.tabletBackgroundSize&&wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(sa,{label:Object(S.__)("Custom Size",_.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.tabletBackgroundCustomSizeUnit,onChangeUnit:e.onChangeTabletBackgroundCustomSizeUnit,value:e.tabletBackgroundCustomSize,onChange:e.onChangeTabletBackgroundCustomSize,allowReset:!0})),"custom"===e.mobileBackgroundSize&&wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(sa,{label:Object(S.__)("Custom Size",_.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.mobileBackgroundCustomSizeUnit,onChangeUnit:e.onChangeMobileBackgroundCustomSizeUnit,value:e.mobileBackgroundCustomSize,onChange:e.onChangeMobileBackgroundCustomSize,allowReset:!0})),e.onChangeBackgroundImageBlendMode&&wp.element.createElement(mn,{label:Object(S.__)("Image Blend Mode",_.i18n),value:e.backgroundImageBlendMode,onChange:e.onChangeBackgroundImageBlendMode})))};uo.defaultProps={backgroundColorType:"",backgroundColor:"",backgroundColorOpacity:"",backgroundColor2:"",backgroundMediaID:"",backgroundMediaURL:"",tabletBackgroundMediaID:"",tabletBackgroundMediaURL:"",mobileBackgroundMediaID:"",mobileBackgroundMediaURL:"",backgroundTintStrength:"",fixedBackground:"",onChangeBackgroundColorType:function(){},onChangeBackgroundColor:function(){},onChangeBackgroundColorOpacity:function(){},onChangeBackgroundColor2:function(){},onChangeBackgroundMedia:function(e){e.url,e.id},onChangeTabletBackgroundMedia:function(e){e.url,e.id},onChangeMobileBackgroundMedia:function(e){e.url,e.id},onChangeBackgroundTintStrength:function(){},onChangeFixedBackground:function(){},labelBackgroundColorType:Object(S.__)("Background Color Type",_.i18n),labelBackgroundColor:Object(S.__)("Background Color",_.i18n),hasAdvancedGradient:!0,backgroundGradientDirection:"",backgroundGradientBlendMode:"",backgroundGradientLocation1:0,backgroundGradientLocation2:100,onResetAdvancedGradient:function(){},onChangeBackgroundGradientDirection:function(){},onChangeBackgroundGradientBlendMode:function(){},onChangeBackgroundGradientLocation1:function(){},onChangeBackgroundGradientLocation2:function(){},hasAdvancedBackground:!0,backgroundMediaAllowVideo:!0,backgroundPosition:"",tabletBackgroundPosition:"",mobileBackgroundPosition:"",backgroundRepeat:"",tabletBackgroundRepeat:"",mobileBackgroundRepeat:"",backgroundSize:"",tabletBackgroundSize:"",mobileBackgroundSize:"",backgroundCustomSize:"",tabletBackgroundCustomSize:"",mobileBackgroundCustomSize:"",backgroundCustomSizeUnit:"%",tabletBackgroundCustomSizeUnit:"%",mobileBackgroundCustomSizeUnit:"%",backgroundImageBlendMode:"",onResetAdvancedBackground:function(){},onChangeBackgroundPosition:function(){},onChangeTabletBackgroundPosition:function(){},onChangeMobileBackgroundPosition:function(){},onChangeBackgroundRepeat:function(){},onChangeTabletBackgroundRepeat:function(){},onChangeMobileBackgroundRepeat:function(){},onChangeBackgroundSize:function(){},onChangeTabletBackgroundSize:function(){},onChangeMobileBackgroundSize:function(){},onChangeBackgroundCustomSize:function(){},onChangeTabletBackgroundCustomSize:function(){},onChangeMobileBackgroundCustomSize:function(){},onChangeBackgroundCustomSizeUnit:function(){},onChangeTabletBackgroundCustomSizeUnit:function(){},onChangeMobileBackgroundCustomSizeUnit:function(){},onChangeBackgroundImageBlendMode:function(){}};var co=uo,po=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a};return wp.element.createElement(co,M()({backgroundColorType:e.blockAttributes[n("BackgroundColorType")]||"",backgroundColor:e.blockAttributes[n("BackgroundColor")]||"",backgroundColorOpacity:e.blockAttributes[n("BackgroundColorOpacity")],backgroundColor2:e.blockAttributes[n("BackgroundColor2")]||"",backgroundMediaID:e.blockAttributes[n("BackgroundMediaID")]||"",backgroundMediaURL:e.blockAttributes[n("BackgroundMediaURL")]||"",tabletBackgroundMediaID:e.blockAttributes[n("TabletBackgroundMediaID")]||"",tabletBackgroundMediaURL:e.blockAttributes[n("TabletBackgroundMediaURL")]||"",mobileBackgroundMediaID:e.blockAttributes[n("MobileBackgroundMediaID")]||"",mobileBackgroundMediaURL:e.blockAttributes[n("MobileBackgroundMediaURL")]||"",backgroundTintStrength:e.blockAttributes[n("BackgroundTintStrength")],fixedBackground:e.blockAttributes[n("FixedBackground")]||"",onChangeBackgroundColorType:function(e){return t(r()({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(r()({},n("BackgroundColor"),e))},onChangeBackgroundColorOpacity:function(e){return t(r()({},n("BackgroundColorOpacity"),e))},onChangeBackgroundColor2:function(e){return t(r()({},n("BackgroundColor2"),e))},onChangeBackgroundMedia:function(e){var a,i=e.url,l=e.id;t((a={},r()(a,n("BackgroundMediaURL"),i),r()(a,n("BackgroundMediaID"),l),a))},onChangeTabletBackgroundMedia:function(e){var a,i=e.url,l=e.id;t((a={},r()(a,n("TabletBackgroundMediaURL"),i),r()(a,n("TabletBackgroundMediaID"),l),a))},onChangeMobileBackgroundMedia:function(e){var a,i=e.url,l=e.id;t((a={},r()(a,n("MobileBackgroundMediaURL"),i),r()(a,n("MobileBackgroundMediaID"),l),a))},onChangeBackgroundTintStrength:function(e,a){var i;t((i={},r()(i,n("BackgroundTintStrength"),e),r()(i,n("BackgroundColor"),a),i))},onChangeFixedBackground:function(e){return t(r()({},n("FixedBackground"),e))},backgroundGradientDirection:a("BackgroundGradientDirection",90),backgroundGradientBlendMode:a("BackgroundGradientBlendMode"),backgroundGradientLocation1:a("BackgroundGradientLocation1",0),backgroundGradientLocation2:a("BackgroundGradientLocation2",100),onChangeBackgroundGradientDirection:function(e){return t(r()({},n("BackgroundGradientDirection"),e))},onChangeBackgroundGradientBlendMode:function(e){return t(r()({},n("BackgroundGradientBlendMode"),e))},onChangeBackgroundGradientLocation1:function(e){return t(r()({},n("BackgroundGradientLocation1"),e))},onChangeBackgroundGradientLocation2:function(e){return t(r()({},n("BackgroundGradientLocation2"),e))},onResetAdvancedGradient:function(){var e;t((e={},r()(e,n("BackgroundGradientDirection"),""),r()(e,n("BackgroundGradientBlendMode"),""),r()(e,n("BackgroundGradientLocation1"),""),r()(e,n("BackgroundGradientLocation2"),""),e))},backgroundPosition:e.blockAttributes[n("BackgroundPosition")]||"",tabletBackgroundPosition:e.blockAttributes[n("TabletBackgroundPosition")]||"",mobileBackgroundPosition:e.blockAttributes[n("MobileBackgroundPosition")]||"",backgroundRepeat:e.blockAttributes[n("BackgroundRepeat")]||"",tabletBackgroundRepeat:e.blockAttributes[n("TabletBackgroundRepeat")]||"",mobileBackgroundRepeat:e.blockAttributes[n("MobileBackgroundRepeat")]||"",backgroundSize:e.blockAttributes[n("BackgroundSize")]||"",tabletBackgroundSize:e.blockAttributes[n("TabletBackgroundSize")]||"",mobileBackgroundSize:e.blockAttributes[n("MobileBackgroundSize")]||"",backgroundCustomSize:e.blockAttributes[n("BackgroundCustomSize")]||"",tabletBackgroundCustomSize:e.blockAttributes[n("TabletBackgroundCustomSize")]||"",mobileBackgroundCustomSize:e.blockAttributes[n("MobileBackgroundCustomSize")]||"",backgroundCustomSizeUnit:e.blockAttributes[n("BackgroundCustomSizeUnit")]||"%",tabletBackgroundCustomSizeUnit:e.blockAttributes[n("TabletBackgroundCustomSizeUnit")]||"%",mobileBackgroundCustomSizeUnit:e.blockAttributes[n("MobileBackgroundCustomSizeUnit")]||"%",backgroundImageBlendMode:e.blockAttributes[n("BackgroundImageBlendMode")]||"",onChangeBackgroundPosition:function(e){return t(r()({},n("BackgroundPosition"),e))},onChangeTabletBackgroundPosition:function(e){return t(r()({},n("TabletBackgroundPosition"),e))},onChangeMobileBackgroundPosition:function(e){return t(r()({},n("MobileBackgroundPosition"),e))},onChangeBackgroundRepeat:function(e){return t(r()({},n("BackgroundRepeat"),e))},onChangeTabletBackgroundRepeat:function(e){return t(r()({},n("TabletBackgroundRepeat"),e))},onChangeMobileBackgroundRepeat:function(e){return t(r()({},n("MobileBackgroundRepeat"),e))},onChangeBackgroundSize:function(e){return t(r()({},n("BackgroundSize"),e))},onChangeTabletBackgroundSize:function(e){return t(r()({},n("TabletBackgroundSize"),e))},onChangeMobileBackgroundSize:function(e){return t(r()({},n("MobileBackgroundSize"),e))},onChangeBackgroundCustomSize:function(e){return t(r()({},n("BackgroundCustomSize"),e))},onChangeTabletBackgroundCustomSize:function(e){return t(r()({},n("TabletBackgroundCustomSize"),e))},onChangeMobileBackgroundCustomSize:function(e){return t(r()({},n("MobileBackgroundCustomSize"),e))},onChangeBackgroundCustomSizeUnit:function(e){return t(r()({},n("BackgroundCustomSizeUnit"),e))},onChangeTabletBackgroundCustomSizeUnit:function(e){return t(r()({},n("TabletBackgroundCustomSizeUnit"),e))},onChangeMobileBackgroundCustomSizeUnit:function(e){return t(r()({},n("MobileBackgroundCustomSizeUnit"),e))},onChangeBackgroundImageBlendMode:function(e){return t(r()({},n("BackgroundImageBlendMode"),e))},onResetAdvancedBackground:function(){var e;t((e={},r()(e,n("BackgroundPosition"),""),r()(e,n("TabletBackgroundPosition"),""),r()(e,n("MobileBackgroundPosition"),""),r()(e,n("BackgroundRepeat"),""),r()(e,n("TabletBackgroundRepeat"),""),r()(e,n("MobileBackgroundRepeat"),""),r()(e,n("BackgroundSize"),""),r()(e,n("TabletBackgroundSize"),""),r()(e,n("MobileBackgroundSize"),""),r()(e,n("BackgroundCustomSize"),""),r()(e,n("TabletBackgroundCustomSize"),""),r()(e,n("MobileBackgroundCustomSize"),""),r()(e,n("BackgroundCustomSizeUnit"),"%"),r()(e,n("TabletBackgroundCustomSizeUnit"),"%"),r()(e,n("MobileBackgroundCustomSizeUnit"),"%"),r()(e,n("BackgroundImageBlendMode"),""),e))}},e))};po.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var fo=n(70),go=n.n(fo),mo=n(71),ho=n.n(mo),bo=n(72),vo=n.n(bo),yo=n(73),wo=n.n(yo),ko=function(e){var t=e.design?e.design:"basic",n=e.size?e.size:"normal",a="basic"===t;return wp.element.createElement(k.Fragment,null,e.onChangeUrl&&wp.element.createElement(gt,{label:Object(S.__)("Link / URL",_.i18n),value:e.url,onChange:e.onChangeUrl,placeholder:"http://"}),e.onChangeUrl&&e.onChangeNewTab&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Open link in new tab",_.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),e.onChangeUrl&&e.onChangeNoFollow&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Nofollow link",_.i18n),checked:e.noFollow,onChange:e.onChangeNoFollow}),e.onChangeUrl&&wp.element.createElement(Ll,null),e.onChangeDesign&&wp.element.createElement(qi,{label:Object(S.__)("Design",_.i18n),selected:t,options:[{label:Object(S.__)("Basic",_.i18n),value:"basic",image:go.a},{label:Object(S.__)("Ghost",_.i18n),value:"ghost",image:ho.a},{label:Object(S.__)("Plain",_.i18n),value:"plain",image:wo.a}].concat(s()(e.onChangeUseSocialColors?[]:[{label:Object(S.__)("Link",_.i18n),value:"link",image:vo.a}]),s()(Object(Q.applyFilters)("stackable.button-controls.layouts",[]))),onChange:e.onChangeDesign,columns:4}),wp.element.createElement(Ll,null),e.onChangeUseSocialColors&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Use social colors",_.i18n),checked:e.useSocialColors,onChange:e.onChangeUseSocialColors}),(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(k.Fragment,null,e.onChangeBackgroundColorType&&a&&wp.element.createElement(x.BaseControl,{id:"button-color-type",className:"ugb--help-tip-button-color-type"},wp.element.createElement(Qa,{controls:[{value:"",title:Object(S.__)("Single",_.i18n)},{value:"gradient",title:Object(S.__)("Gradient",_.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&"link"!==t&&wp.element.createElement(St,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a?Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),Object(S.__)("Button Color",_.i18n),1):Object(S.__)("Button Color",_.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(St,{label:Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),Object(S.__)("Button Color",_.i18n),2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(sa,{label:Object(S.__)("Gradient Direction (degrees)",_.i18n),value:e.backgroundGradientDirection,onChange:e.onChangeBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeTextColor&&a&&wp.element.createElement(St,{label:Object(S.__)("Text Color",_.i18n),value:e.textColor,onChange:e.onChangeTextColor})),"link"!==t&&wp.element.createElement(Ll,null),e.onChangeHoverGhostToNormal&&"ghost"===t&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Change to Normal Button on Hover",_.i18n),checked:e.hoverGhostToNormal,onChange:e.onChangeHoverGhostToNormal,className:"ugb--help-tip-button-to-normal"}),e.onChangeHoverEffect&&"link"!==t&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Hover Effect",_.i18n),value:e.hoverEffect,onChange:e.onChangeHoverEffect,options:[{value:"",label:Object(S.__)("None",_.i18n)},{value:"lift",label:Object(S.__)("Lift",_.i18n)},{value:"scale",label:Object(S.__)("Scale",_.i18n)},{value:"lift-scale",label:Object(S.__)("Lift & Scale",_.i18n)},{value:"scale-more",label:Object(S.__)("Scale More",_.i18n)},{value:"lift-scale-more",label:Object(S.__)("Lift & Scale More",_.i18n)}],className:"ugb--help-tip-button-hover-effect"}),e.onChangeOpacity&&wp.element.createElement(sa,{label:e.hoverOpacityLabel,value:e.hoverOpacity,onChange:e.onChangeHoverOpacity,min:0,max:1,step:.1,placeholder:"0.8",allowReset:!0,className:"ugb--help-tip-button-hover-opacity"}),e.hasHoverColors&&"link"!==t&&(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(Jl,{label:e.hoverColorsLabel,onReset:e.onResetHoverColors,allowReset:e.hoverBackgroundColor||e.hoverBackgroundColor2||e.hoverBackgroundGradientDirection||e.hoverTextColor,className:"ugb--help-tip-button-hover-color"},e.onChangeHoverBackgroundColor&&wp.element.createElement(St,{label:e.onChangeHoverBackgroundColor&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)?Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),Object(S.__)("Button Color",_.i18n),1):Object(S.__)("Button Color",_.i18n),value:e.hoverBackgroundColor,onChange:e.onChangeHoverBackgroundColor,className:"ugb--help-tip-button-hover-color"}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(St,{label:Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),Object(S.__)("Button Color",_.i18n),2),value:e.hoverBackgroundColor2,onChange:e.onChangeHoverBackgroundColor2}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(sa,{label:Object(S.__)("Gradient Direction (degrees)",_.i18n),value:e.hoverBackgroundGradientDirection,onChange:e.onChangeHoverBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeHoverTextColor&&("ghost"===t&&e.hoverGhostToNormal||a)&&wp.element.createElement(St,{label:Object(S.__)("Text Color",_.i18n),value:e.hoverTextColor,onChange:e.onChangeHoverTextColor})),"link"!==t&&wp.element.createElement(Ll,null),e.hasTypography&&"link"!==t&&wp.element.createElement(so,{attrNameTemplate:e.attrNameTemplate,setAttributes:e.setAttributes,blockAttributes:e.blockAttributes,onChangeLineHeight:null,showSecondFontSize:!1,placeholder:e.placeholder}),e.onChangeSize&&(!e.onChangeDesign||"link"!==t)&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Button Size",_.i18n),value:n,options:[{value:"tiny",label:Object(S.__)("Tiny",_.i18n)},{value:"small",label:Object(S.__)("Small",_.i18n)},{value:"normal",label:Object(S.__)("Normal",_.i18n)},{value:"medium",label:Object(S.__)("Medium",_.i18n)},{value:"large",label:Object(S.__)("Large",_.i18n)}],onChange:e.onChangeSize,className:"ugb--help-tip-button-size"}),e.onChangeBorderRadius&&"link"!==t&&"plain"!==t&&wp.element.createElement(sa,{label:Object(S.__)("Border Radius",_.i18n),value:e.borderRadius,min:"0",max:"100",onChange:e.onChangeBorderRadius,allowReset:!0,placeholder:"4",className:"ugb--help-tip-button-border-radius"}),e.onChangePaddings&&"link"!==t&&"plain"!==t&&wp.element.createElement(zs,{label:Object(S.__)("Vertical Padding",_.i18n),top:e.paddingTop,bottom:e.paddingBottom,onChange:e.onChangePaddings,enableLeft:!1,enableRight:!1,placeholder:[8,8],className:"ugb--help-tip-button-vertical-padding"}),e.onChangePaddings&&"link"!==t&&"plain"!==t&&wp.element.createElement(zs,{label:Object(S.__)("Horizontal Padding",_.i18n),right:e.paddingRight,left:e.paddingLeft,onChange:e.onChangePaddings,enableTop:!1,enableBottom:!1,max:100,placeholder:[26,26],className:"ugb--help-tip-button-horizontal-padding"}),e.onChangeBorderWidth&&"ghost"===t&&wp.element.createElement(sa,{label:Object(S.__)("Border Width",_.i18n),value:e.borderWidth,min:"1",max:"6",onChange:e.onChangeBorderWidth,allowReset:!0,placeholder:"2"}),e.onChangeShadow&&(""===t||"basic"===t)&&wp.element.createElement(sa,{label:Object(S.__)("Shadow",_.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-button-shadow"}),e.onChangeOpacity&&wp.element.createElement(sa,{label:Object(S.__)("Opacity",_.i18n),value:e.opacity,onChange:e.onChangeOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0"}),e.onChangeIcon&&"link"!==t&&wp.element.createElement(Ll,null),e.onChangeIcon&&"link"!==t&&wp.element.createElement(_l,{label:Object(S.__)("Icon",_.i18n),value:e.icon,onChange:e.onChangeIcon}),e.hasAdvancedIcon&&"link"!==t&&""!==e.icon&&wp.element.createElement(Jl,{label:Object(S.__)("Adv. Icon Settings",_.i18n),onReset:e.onResetAdvancedIcon,allowReset:e.iconPosition||""!==e.iconSize||""!==e.iconSpacing},e.onChangeIconSize&&wp.element.createElement(sa,{label:Object(S.__)("Icon Size",_.i18n),value:e.iconSize,onChange:e.onChangeIconSize,min:5,max:100,step:1,allowReset:!0}),e.onChangeIconPosition&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Icon Position",_.i18n),value:e.iconPosition,options:[{value:"",label:Object(S.__)("Left",_.i18n)},{value:"right",label:Object(S.__)("Right",_.i18n)}],onChange:e.onChangeIconPosition}),e.onChangeIconSpacing&&wp.element.createElement(sa,{label:Object(S.__)("Icon Spacing",_.i18n),value:e.iconSpacing,onChange:e.onChangeIconSpacing,min:0,max:50,step:1,allowReset:!0,placeholder:"16"})))};ko.defaultProps={hasTypography:!0,attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},design:"",onChangeDesign:function(){},url:"",newTab:"",noFollow:"",onChangeUrl:function(){},onChangeNewTab:function(){},onChangeNoFollow:function(){},size:"",onChangeSize:function(){},opacity:"",textColor:"",backgroundColorType:"",backgroundColor:"",backgroundColor2:"",backgroundGradientDirection:"",onChangeOpacity:function(){},onChangeTextColor:function(){},onChangeBackgroundColorType:function(){},onChangeBackgroundColor:function(){},onChangeBackgroundColor2:function(){},onChangeBackgroundGradientDirection:function(){},hasHoverColors:!0,onResetHoverColors:function(){},hoverEffect:"",hoverOpacity:"",hoverOpacityLabel:Object(S.__)("Hover Opacity",_.i18n),hoverTextColor:"",hoverColorsLabel:Object(S.__)("Hover Colors",_.i18n),hoverBackgroundColor:"",hoverBackgroundColor2:"",hoverBackgroundGradientDirection:"",hoverGhostToNormal:!1,onChangeHoverEffect:function(){},onChangeHoverOpacity:function(){},onChangeHoverTextColor:function(){},onChangeHoverBackgroundColor:function(){},onChangeHoverBackgroundColor2:function(){},onChangeHoverBackgroundGradientDirection:function(){},onChangeHoverGhostToNormal:function(){},borderRadius:"",onChangeBorderRadius:function(){},borderWidth:"",onChangeBorderWidth:function(){},shadow:"",onChangeShadow:function(){},paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",onChangePaddings:function(){},hasAdvancedIcon:!0,onResetAdvancedIcon:function(){},icon:"",iconSize:"",iconPosition:"",iconSpacing:"",onChangeIcon:function(){},onChangeIconSize:function(){},onChangeIconPosition:function(){},onChangeIconSpacing:function(){},useSocialColors:!0,onChangeUseSocialColors:null};var Co=ko,Oo=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(Co,M()({design:e.blockAttributes[n("Design")]||"",onChangeDesign:function(e){return t(r()({},n("Design"),e))},url:e.blockAttributes[n("Url")]||"",newTab:e.blockAttributes[n("NewTab")]||"",noFollow:e.blockAttributes[n("NoFollow")]||"",onChangeUrl:function(e){return t(r()({},n("Url"),e))},onChangeNewTab:function(e){return t(r()({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(r()({},n("NoFollow"),e))},size:e.blockAttributes[n("Size")]||"",onChangeSize:function(e){return t(r()({},n("Size"),e))},opacity:e.blockAttributes[n("Opacity")]||"",textColor:e.blockAttributes[n("TextColor")]||"",backgroundColorType:e.blockAttributes[n("BackgroundColorType")]||"",backgroundColor:e.blockAttributes[n("BackgroundColor")]||"",backgroundColor2:e.blockAttributes[n("BackgroundColor2")]||"",backgroundGradientDirection:a("BackgroundGradientDirection"),onChangeOpacity:function(e){return t(r()({},n("Opacity"),e))},onChangeTextColor:function(e){return t(r()({},n("TextColor"),e))},onChangeBackgroundColorType:function(e){return t(r()({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(r()({},n("BackgroundColor"),e))},onChangeBackgroundColor2:function(e){return t(r()({},n("BackgroundColor2"),e))},onChangeBackgroundGradientDirection:function(e){return t(r()({},n("BackgroundGradientDirection"),e))},onResetHoverColors:function(){var e;t((e={},r()(e,n("HoverBackgroundColor"),""),r()(e,n("HoverBackgroundColor2"),""),r()(e,n("HoverBackgroundGradientDirection"),""),r()(e,n("HoverTextColor"),""),e))},hoverEffect:e.blockAttributes[n("HoverEffect")]||"",hoverOpacity:e.blockAttributes[n("HoverOpacity")]||"",hoverOpacityLabel:e.hoverOpacityLabel,hoverColorsLabel:e.hoverColorsLabel,hoverTextColor:e.blockAttributes[n("HoverTextColor")]||"",hoverBackgroundColor:e.blockAttributes[n("HoverBackgroundColor")]||"",hoverBackgroundColor2:e.blockAttributes[n("HoverBackgroundColor2")]||"",hoverBackgroundGradientDirection:a("HoverBackgroundGradientDirection"),hoverGhostToNormal:e.blockAttributes[n("HoverGhostToNormal")]||"",onChangeHoverEffect:function(e){return t(r()({},n("HoverEffect"),e))},onChangeHoverOpacity:function(e){return t(r()({},n("HoverOpacity"),e))},onChangeHoverTextColor:function(e){return t(r()({},n("HoverTextColor"),e))},onChangeHoverBackgroundColor:function(e){return t(r()({},n("HoverBackgroundColor"),e))},onChangeHoverBackgroundColor2:function(e){return t(r()({},n("HoverBackgroundColor2"),e))},onChangeHoverBackgroundGradientDirection:function(e){return t(r()({},n("HoverBackgroundGradientDirection"),e))},onChangeHoverGhostToNormal:function(e){return t(r()({},n("HoverGhostToNormal"),e))},borderRadius:e.blockAttributes[n("BorderRadius")],borderWidth:e.blockAttributes[n("BorderWidth")],shadow:e.blockAttributes[n("Shadow")],onChangeBorderRadius:function(e){return t(r()({},n("BorderRadius"),e))},onChangeBorderWidth:function(e){return t(r()({},n("BorderWidth"),e))},onChangeShadow:function(e){return t(r()({},n("Shadow"),e))},paddingTop:a("PaddingTop"),paddingRight:a("PaddingRight"),paddingBottom:a("PaddingBottom"),paddingLeft:a("PaddingLeft"),onChangePaddings:function(e){var a={};void 0!==e.top&&(a[n("PaddingTop")]=""!==e.top?parseInt(e.top,10):""),void 0!==e.right&&(a[n("PaddingRight")]=""!==e.right?parseInt(e.right,10):""),void 0!==e.bottom&&(a[n("PaddingBottom")]=""!==e.bottom?parseInt(e.bottom,10):""),void 0!==e.left&&(a[n("PaddingLeft")]=""!==e.left?parseInt(e.left,10):""),t(a)},icon:e.blockAttributes[n("Icon")]||"",onChangeIcon:e.enableIcon?function(e){return t(r()({},n("Icon"),e))}:null,onResetAdvancedIcon:function(){var e;t((e={},r()(e,n("IconSize"),""),r()(e,n("IconPosition"),""),r()(e,n("IconSpacing"),""),e))},iconSize:e.blockAttributes[n("IconSize")]||"",iconPosition:e.blockAttributes[n("IconPosition")]||"",iconSpacing:e.blockAttributes[n("IconSpacing")],onChangeIconSize:function(e){return t(r()({},n("IconSize"),e))},onChangeIconPosition:function(e){return t(r()({},n("IconPosition"),e))},onChangeIconSpacing:function(e){return t(r()({},n("IconSpacing"),e))}},e))};Oo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},enableIcon:!0,hoverOpacityLabel:Object(S.__)("Hover Opacity",_.i18n),hoverColorsLabel:Object(S.__)("Hover Colors",_.i18n)};var xo=Oo,_o=function(e){return wp.element.createElement(k.Fragment,null,e.onChangeBorderType&&wp.element.createElement(Qa,{label:Object(S.__)("Borders",_.i18n),controls:[{value:"",title:Object(S.__)("None",_.i18n)},{value:"solid",title:Object(S.__)("Solid",_.i18n)},{value:"dashed",title:Object(S.__)("Dashed",_.i18n)},{value:"dotted",title:Object(S.__)("Dotted",_.i18n)}],className:"ugb-border-controls__border-type-toolbar",value:e.borderType,onChange:e.onChangeBorderType,fullwidth:!0,isSmall:!0}),e.onChangeBorderWidth&&e.borderType&&wp.element.createElement(Uo,{label:Object(S.__)("Border Width"),units:["px"],min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,valueDesktop:{top:e.borderWidthTop,right:e.borderWidthRight,bottom:e.borderWidthBottom,left:e.borderWidthLeft},onChangeDesktop:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):"",borderType:e.borderType?void 0:"solid"})},valueTablet:{top:e.tabletBorderWidthTop,right:e.tabletBorderWidthRight,bottom:e.tabletBorderWidthBottom,left:e.tabletBorderWidthLeft},onChangeTablet:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeTabletBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},valueMobile:{top:e.mobileBorderWidthTop,right:e.mobileBorderWidthRight,bottom:e.mobileBorderWidthBottom,left:e.mobileBorderWidthLeft},onChangeMobile:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeMobileBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},placeholder:"1",placeholderTop:"1",placeholderLeft:"1",placeholderBottom:"1",placeholderRight:"1"}),e.onChangeBorderColor&&e.borderType&&wp.element.createElement(St,{value:e.borderColor,onChange:function(t){e.onChangeBorderColor({color:t,borderType:e.borderType?void 0:"solid"})},label:Object(S.__)("Border Color",_.i18n)}))};_o.defaultProps={onResetBorder:function(){},borderType:"",onChangeBorderType:function(){},borderWidthTop:"",borderWidthRight:"",borderWidthBottom:"",borderWidthLeft:"",tabletBorderWidthTop:"",tabletBorderWidthRight:"",tabletBorderWidthBottom:"",tabletBorderWidthLeft:"",mobileBorderWidthTop:"",mobileBorderWidthRight:"",mobileBorderWidthBottom:"",mobileBorderWidthLeft:"",onChangeBorderWidth:function(){},onChangeTabletBorderWidth:function(){},onChangeMobileBorderWidth:function(){},borderColor:"",onChangeBorderColor:function(){}};var So=_o,Eo=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(So,M()({borderType:a("BorderType"),onChangeBorderType:function(e){return t(r()({},n("BorderType"),e))},onResetBorder:function(){t(r()({},n("BorderType"),""))},borderWidthTop:a("BorderWidthTop"),borderWidthRight:a("BorderWidthRight"),borderWidthBottom:a("BorderWidthBottom"),borderWidthLeft:a("BorderWidthLeft"),tabletBorderWidthTop:a("TabletBorderWidthTop"),tabletBorderWidthRight:a("TabletBorderWidthRight"),tabletBorderWidthBottom:a("TabletBorderWidthBottom"),tabletBorderWidthLeft:a("TabletBorderWidthLeft"),mobileBorderWidthTop:a("MobileBorderWidthTop"),mobileBorderWidthRight:a("MobileBorderWidthRight"),mobileBorderWidthBottom:a("MobileBorderWidthBottom"),mobileBorderWidthLeft:a("MobileBorderWidthLeft"),onChangeBorderWidth:function(e){var a,i=e.top,l=e.right,o=e.bottom,s=e.left,u=e.borderType,c=(a={},r()(a,n("BorderWidthTop"),i),r()(a,n("BorderWidthRight"),l),r()(a,n("BorderWidthBottom"),o),r()(a,n("BorderWidthLeft"),s),a);u&&(c[n("BorderType")]=u),t(c)},onChangeTabletBorderWidth:function(e){var a,i=e.top,l=e.right,o=e.bottom,s=e.left;t((a={},r()(a,n("TabletBorderWidthTop"),i),r()(a,n("TabletBorderWidthRight"),l),r()(a,n("TabletBorderWidthBottom"),o),r()(a,n("TabletBorderWidthLeft"),s),a))},onChangeMobileBorderWidth:function(e){var a,i=e.top,l=e.right,o=e.bottom,s=e.left;t((a={},r()(a,n("MobileBorderWidthTop"),i),r()(a,n("MobileBorderWidthRight"),l),r()(a,n("MobileBorderWidthBottom"),o),r()(a,n("MobileBorderWidthLeft"),s),a))},borderColor:a("BorderColor"),onChangeBorderColor:function(e){var a=e.color,i=e.borderType,l=r()({},n("BorderColor"),a);i&&(l[n("BorderType")]=i),t(l)}},e))};Eo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var jo=n(74),To=n.n(jo),Po=n(75),Bo=n.n(Po),Mo=n(76),No=n.n(Mo),Io=function(e){var t=e.design?e.design:"basic",n="shaped"===t||"outlined"===t;return wp.element.createElement(k.Fragment,null,e.onChangeIcon&&wp.element.createElement(_l,{label:Object(S.__)("Icon",_.i18n),value:e.icon,onChange:e.onChangeIcon}),e.onChangeDesign&&wp.element.createElement(qi,{label:Object(S.__)("Design",_.i18n),selected:e.design,columns:3,options:[{label:Object(S.__)("Plain",_.i18n),value:"plain",image:To.a},{label:Object(S.__)("Shaped",_.i18n),value:"shaped",image:Bo.a},{label:Object(S.__)("Outlined",_.i18n),value:"outlined",image:No.a}].concat(s()(Object(Q.applyFilters)("stackable.icon-controls.edit.layouts",[]))),onChange:e.onChangeDesign}),_.showProNotice&&wp.element.createElement(gs,{title:Object(S.__)("Say Hello to Gorgeous Icons 👋",_.i18n),description:Object(S.__)("Liven up your icons with gradient fills, multiple colors and background shapes. This feature is only available on Stackable Premium",_.i18n)}),_.showProNotice&&wp.element.createElement(x.BaseControl,{label:Object(S.__)("Icon Color Type",_.i18n),id:"icon-color-type"},wp.element.createElement(Qa,{controls:[{value:"",title:Object(S.__)("Single",_.i18n)},{value:"gradient",title:Object(S.__)("Gradient",_.i18n),className:"ugb--is-premium",disabled:!0},{value:"multicolor",title:Object(S.__)("Multicolor",_.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(Q.applyFilters)("stackable.icon-controls.edit.color",wp.element.createElement(k.Fragment,null,e.onChangeColor&&wp.element.createElement(St,{label:Object(S.__)("Icon Color",_.i18n),value:e.color,onChange:e.onChangeColor})),e),e.onChangeColor&&e.onChangeDesign&&wp.element.createElement(Ll,null),n&&e.onChangeBackgroundColor&&wp.element.createElement(k.Fragment,null,_.showProNotice&&e.onChangeBackgroundColorType&&"outlined"!==e.design&&wp.element.createElement(x.BaseControl,{label:Object(S.__)("Icon Shape / Outline Color",_.i18n),id:"icon-shape-color-type"},wp.element.createElement(Qa,{controls:[{value:"",title:Object(S.__)("Single",_.i18n)},{value:"gradient",title:Object(S.__)("Gradient",_.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(Q.applyFilters)("stackable.icon-controls.edit.background-color",wp.element.createElement(k.Fragment,null,e.onChangeBackgroundColor&&wp.element.createElement(St,{label:Object(S.__)("Icon Shape / Outline Color",_.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor})),e),e.onChangeBorderRadius&&wp.element.createElement(sa,{label:"shaped"===e.design?Object(S.__)("Icon Shape Border Radius",_.i18n):Object(S.__)("Outline Border Radius",_.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:50,step:1,allowReset:!0,placeholder:50}),e.onChangePadding&&wp.element.createElement(sa,{label:"shaped"===e.design?Object(S.__)("Icon Shape Padding",_.i18n):Object(S.__)("Outline Padding",_.i18n),value:e.padding,onChange:e.onChangePadding,min:0,max:150,step:1,allowReset:!0,placeholder:20}),"shaped"===t&&e.onChangeShadow&&wp.element.createElement(sa,{label:Object(S.__)("Shadow / Outline",_.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-general-shadow"}),"outlined"===t&&e.onChangeOutlineWidth&&wp.element.createElement(sa,{label:Object(S.__)("Outline Width",_.i18n),value:e.outlineWidth,onChange:e.onChangeOutlineWidth,min:0,max:10,step:1,allowReset:!0,placeholder:"3"}),e.onChangeBackgroundColorType&&wp.element.createElement(Ll,null)),e.onChangeSize&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(sa,{label:Object(S.__)("Icon Size",_.i18n),value:e.size,max:e.sizeMax,onChange:e.onChangeSize,allowReset:!0,placeholder:"50"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(sa,{label:Object(S.__)("Icon Size",_.i18n),value:e.tabletSize,max:e.sizeMax,onChange:e.onChangeTabletSize,allowReset:!0,placeholder:e.size||50})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(sa,{label:Object(S.__)("Icon Size",_.i18n),value:e.mobileSize,max:e.sizeMax,onChange:e.onChangeMobileSize,allowReset:!0,placeholder:e.tabletSize||e.size||50}))),e.onChangeOpacity&&wp.element.createElement(sa,{label:Object(S.__)("Icon Opacity",_.i18n),value:e.opacity,min:0,max:1,step:.1,onChange:e.onChangeOpacity,allowReset:!0,placeholder:"1.0"}),e.onChangeRotation&&wp.element.createElement(sa,{label:Object(S.__)("Icon Rotation",_.i18n),value:e.rotation,min:0,max:360,onChange:e.onChangeRotation,allowReset:!0,placeholder:"0"}),Object(Q.applyFilters)("stackable.icon-controls.edit.after",null,e))};Io.defaultProps={icon:"",onChangeIcon:function(){},design:"",onChangeDesign:function(){},colorType:"",onChangeColorType:function(){},color:"",onChangeColor:function(){},color2:"",onChangeColor2:function(){},colorGradientDirection:"",onChangeColorGradientDirection:function(){},numPaths:"",color3:"",onChangeColor3:function(){},color4:"",onChangeColor4:function(){},color5:"",onChangeColor5:function(){},color6:"",onChangeColor6:function(){},color7:"",onChangeColor7:function(){},color8:"",onChangeColor8:function(){},color9:"",onChangeColor9:function(){},color10:"",onChangeColor10:function(){},multiOpacity1:"",onChangeMultiOpacity1:function(){},multiOpacity2:"",onChangeMultiOpacity2:function(){},multiOpacity3:"",onChangeMultiOpacity3:function(){},multiOpacity4:"",onChangeMultiOpacity4:function(){},multiOpacity5:"",onChangeMultiOpacity5:function(){},multiOpacity6:"",onChangeMultiOpacity6:function(){},multiOpacity7:"",onChangeMultiOpacity7:function(){},multiOpacity8:"",onChangeMultiOpacity8:function(){},multiOpacity9:"",onChangeMultiOpacity9:function(){},multiOpacity10:"",onChangeMultiOpacity10:function(){},borderRadius:"",onChangeBorderRadius:function(){},padding:"",onChangePadding:function(){},shadow:"",onChangeShadow:function(){},outlineWidth:"",onChangeOutlineWidth:function(){},backgroundColorType:"",onChangeBackgroundColorType:function(){},backgroundColor:"",onChangeBackgroundColor:function(){},backgroundColor2:"",onChangeBackgroundColor2:function(){},backgroundColorGradientDirection:"",onChangeBackgroundColorGradientDirection:function(){},size:"",tabletSize:"",mobileSize:"",sizeMax:300,onChangeSize:function(){},onChangeTabletSize:function(){},onChangeMobileSize:function(){},opacity:"",onChangeOpacity:function(){},rotation:"",onChangeRotation:function(){},showBackgroundShape:"",onChangeShowBackgroundShape:function(){},backgroundShape:"",onChangeBackgroundShape:function(){},backgroundShapeSize:"",onChangeBackgroundShapeSize:function(){},backgroundShapeColor:"",onChangeBackgroundShapeColor:function(){},backgroundShapeOffsetHorizontal:"",onChangeBackgroundShapeHorizontalOffset:function(){},backgroundShapeOffsetVertical:"",onChangeBackgroundShapeVerticalOffset:function(){}};var Do=Io,Ro=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(Do,M()({icon:a("Icon"),onChangeIcon:function(e){return t(r()({},n("Icon"),e))},design:a("Design")||"plain",onChangeDesign:function(e){return t(r()({},n("Design"),e))},colorType:a("ColorType"),onChangeColorType:function(e){return t(r()({},n("ColorType"),e))},color:a("Color"),onChangeColor:function(e){return t(r()({},n("Color"),e))},color2:a("Color2"),onChangeColor2:function(e){return t(r()({},n("Color2"),e))},colorGradientDirection:a("ColorGradientDirection"),onChangeColorGradientDirection:function(e){return t(r()({},n("ColorGradientDirection"),e))},color3:a("Color3"),onChangeColor3:function(e){return t(r()({},n("Color3"),e))},color4:a("Color4"),onChangeColor4:function(e){return t(r()({},n("Color4"),e))},color5:a("Color5"),onChangeColor5:function(e){return t(r()({},n("Color5"),e))},color6:a("Color6"),onChangeColor6:function(e){return t(r()({},n("Color6"),e))},color7:a("Color7"),onChangeColor7:function(e){return t(r()({},n("Color7"),e))},color8:a("Color8"),onChangeColor8:function(e){return t(r()({},n("Color8"),e))},color9:a("Color9"),onChangeColor9:function(e){return t(r()({},n("Color9"),e))},color10:a("Color10"),onChangeColor10:function(e){return t(r()({},n("Color10"),e))},multiOpacity1:a("MultiOpacity1"),onChangeMultiOpacity1:function(e){return t(r()({},n("MultiOpacity1"),e))},multiOpacity2:a("MultiOpacity2"),onChangeMultiOpacity2:function(e){return t(r()({},n("MultiOpacity2"),e))},multiOpacity3:a("MultiOpacity3"),onChangeMultiOpacity3:function(e){return t(r()({},n("MultiOpacity3"),e))},multiOpacity4:a("MultiOpacity4"),onChangeMultiOpacity4:function(e){return t(r()({},n("MultiOpacity4"),e))},multiOpacity5:a("MultiOpacity5"),onChangeMultiOpacity5:function(e){return t(r()({},n("MultiOpacity5"),e))},multiOpacity6:a("MultiOpacity6"),onChangeMultiOpacity6:function(e){return t(r()({},n("MultiOpacity6"),e))},multiOpacity7:a("MultiOpacity7"),onChangeMultiOpacity7:function(e){return t(r()({},n("MultiOpacity7"),e))},multiOpacity8:a("MultiOpacity8"),onChangeMultiOpacity8:function(e){return t(r()({},n("MultiOpacity8"),e))},multiOpacity9:a("MultiOpacity9"),onChangeMultiOpacity9:function(e){return t(r()({},n("MultiOpacity9"),e))},multiOpacity10:a("MultiOpacity10"),onChangeMultiOpacity10:function(e){return t(r()({},n("MultiOpacity10"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(r()({},n("BorderRadius"),e))},padding:a("Padding"),onChangePadding:function(e){return t(r()({},n("Padding"),e))},outlineWidth:a("OutlineWidth"),onChangeOutlineWidth:function(e){return t(r()({},n("OutlineWidth"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(r()({},n("Shadow"),e))},backgroundColorType:a("BackgroundColorType"),onChangeBackgroundColorType:function(e){return t(r()({},n("BackgroundColorType"),e))},backgroundColor:a("BackgroundColor"),onChangeBackgroundColor:function(e){return t(r()({},n("BackgroundColor"),e))},backgroundColor2:a("BackgroundColor2"),onChangeBackgroundColor2:function(e){return t(r()({},n("BackgroundColor2"),e))},backgroundColorGradientDirection:a("BackgroundColorGradientDirection"),onChangeBackgroundColorGradientDirection:function(e){return t(r()({},n("BackgroundColorGradientDirection"),e))},size:a("Size"),tabletSize:a("TabletSize"),mobileSize:a("MobileSize"),sizeMax:e.sizeMax,onChangeSize:function(e){return t(r()({},n("Size"),e))},onChangeTabletSize:function(e){return t(r()({},n("TabletSize"),e))},onChangeMobileSize:function(e){return t(r()({},n("MobileSize"),e))},opacity:a("Opacity"),onChangeOpacity:function(e){return t(r()({},n("Opacity"),e))},rotation:a("Rotation"),onChangeRotation:function(e){return t(r()({},n("Rotation"),e))},showBackgroundShape:a("ShowBackgroundShape"),onChangeShowBackgroundShape:function(e){return t(r()({},n("ShowBackgroundShape"),e))},backgroundShape:a("BackgroundShape")||"blob1",onChangeBackgroundShape:function(e){return t(r()({},n("BackgroundShape"),e))},backgroundShapeOpacity:a("BackgroundShapeOpacity"),onChangeBackgroundShapeOpacity:function(e){return t(r()({},n("BackgroundShapeOpacity"),e))},backgroundShapeSize:a("BackgroundShapeSize"),onChangeBackgroundShapeSize:function(e){return t(r()({},n("BackgroundShapeSize"),e))},backgroundShapeColor:a("BackgroundShapeColor"),onChangeBackgroundShapeColor:function(e){return t(r()({},n("BackgroundShapeColor"),e))},backgroundShapeOffsetHorizontal:a("BackgroundShapeOffsetHorizontal"),onChangeBackgroundShapeHorizontalOffset:function(e){return t(r()({},n("BackgroundShapeOffsetHorizontal"),e))},backgroundShapeOffsetVertical:a("BackgroundShapeOffsetVertical"),onChangeBackgroundShapeVerticalOffset:function(e){return t(r()({},n("BackgroundShapeOffsetVertical"),e))}},e))};Ro.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var zo=function(e){return wp.element.createElement(k.Fragment,null,e.socialUrlFields&&wp.element.createElement(k.Fragment,null,Object.keys(Ee).map(function(t){return wp.element.createElement(x.TextControl,{key:t,className:"ugb-social-url-text-control",label:Object(S.sprintf)(Object(S._x)("%s Link","name",_.i18n),Ee[t].label),value:e["".concat(t,"Url")],onChange:e["onChange".concat(Object(R.upperFirst)(t),"Url")],placeholder:"http://"})})),e.onChangeNewTab&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Open link in new tab",_.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),wp.element.createElement(Ll,null),wp.element.createElement(xo,{attrNameTemplate:e.attrNameTemplate,setAttributes:e.setAttributes,blockAttributes:e.blockAttributes,useSocialColors:e.useSocialColors,onChangeUseSocialColors:e.onChangeUseSocialColors,onChangeUrl:!1,onChangeNewTab:!1,onChangeNoFollow:!1,onChangeIcon:!1,hasTypography:!1}))};zo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},socialUrlFields:!0,newTab:!1,onChangeNewTab:function(){},useSocialColors:!0,onChangeUseSocialColors:function(){}};var Ao=zo,Lo=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(Ao,M()({newTab:e.blockAttributes[n("NewTab")]||"",onChangeNewTab:function(e){return t(r()({},n("NewTab"),e))},useSocialColors:e.blockAttributes[n("UseSocialColors")]||"",onChangeUseSocialColors:function(e){return t(r()({},n("UseSocialColors"),e))}},e))};Lo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Fo=function(e){var t=Object(R.pick)(e,["label","units","screens","defaultLocked","enableTop","enableRight","enableBottom","enableLeft","className","sliderMax","sliderMin"]),n=Array.isArray(e.min)?e.min:[e.min,e.min,e.min],a=Array.isArray(e.max)?e.max:[e.max,e.max,e.max],r=Array.isArray(e.sliderMin)?e.sliderMin:[e.sliderMin,e.sliderMin,e.sliderMin],i=Array.isArray(e.sliderMax)?e.sliderMax:[e.sliderMax,e.sliderMax,e.sliderMax],l=Array.isArray(e.step)?e.step:[e.step,e.step,e.step];return wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,{screen:"desktop"},wp.element.createElement(zs,M()({},t,{min:n[0],max:a[0],sliderMin:r[0],sliderMax:i[0],step:l[0],top:e.valueDesktop.top,right:e.valueDesktop.right,bottom:e.valueDesktop.bottom,left:e.valueDesktop.left,unit:e.valueDesktopUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeDesktop({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeDesktopUnit(t)},placeholder:e.placeholder,placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(zs,M()({},t,{min:n[1],max:a[1],sliderMin:r[1],sliderMax:i[1],step:l[1],top:e.valueTablet.top,right:e.valueTablet.right,bottom:e.valueTablet.bottom,left:e.valueTablet.left,unit:e.valueTabletUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeTablet({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeTabletUnit(t)}}))),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(zs,M()({},t,{min:n[2],max:a[2],sliderMin:r[2],sliderMax:i[2],step:l[2],top:e.valueMobile.top,right:e.valueMobile.right,bottom:e.valueMobile.bottom,left:e.valueMobile.left,unit:e.valueMobileUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeMobile({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeMobileUnit(t)}}))))};Fo.defaultProps={label:Object(S.__)("Spacing",_.i18n),defaultLocked:!0,units:["px","em","%"],screens:["desktop","tablet","mobile"],min:0,max:1/0,sliderMax:null,sliderMin:null,step:1,enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,valueDesktop:{},valueTablet:{},valueMobile:{},valueDesktopUnit:"",valueTabletUnit:"",valueMobileUnit:"",onChangeDesktop:function(){},onChangeTablet:function(){},onChangeMobile:function(){},onChangeDesktopUnit:function(){},onChangeTabletUnit:function(){},onChangeMobileUnit:function(){},placeholderTop:"60",placeholderLeft:"35",placeholderBottom:"60",placeholderRight:"35",placeholder:"",className:"ugb--help-tip-advanced-column-paddings"};var Uo=Fo;function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Go=function(e,t){var n=me(t||"blob1");return n?wp.element.createElement("div",{className:"ugb-icon__bg-shape-wrapper"},e,wp.element.createElement(n,{className:"ugb-icon__bg-shape"})):e},Wo=function(e){var t=Object(Q.applyFilters)("stackable.svg-icon.extract-svg",e);return t.match(/^<svg(.*?)<\/svg>$/g)?t:t.match(/<svg/)?(t.match(/<svg.*?<\/svg>/g)||[t])[0]:t},qo=function(e){var t=Vo({},e,{value:"string"==typeof e.value?Wo(e.value):e.value}),n=P()(["ugb-icon-inner-svg",e.className],r()({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(Nm,M()({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var i=P()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],r()({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:i},a)}return e.showBackgroundShape&&(a=Go(a,e.backgroundShape)),a=Object(Q.applyFilters)("stackable.component.svg-icon",a,t)};qo.defaultProps={className:"",value:"",design:"",colorType:"",showBackgroundShape:!1,backgroundShape:"",shadow:"",gradientColor1:"",gradientColor2:"",gradientDirection:0},(qo.Content=function(e){var t=Vo({},e,{value:"string"==typeof e.value?Wo(e.value):e.value}),n=P()(["ugb-icon-inner-svg",e.className],r()({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(Nm.Content,M()({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var i=P()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],r()({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:i},a)}return e.showBackgroundShape&&(a=Go(a,e.backgroundShape)),a=Object(Q.applyFilters)("stackable.component.svg-icon",a,t)}).defaultProps=Vo({},qo.defaultProps);var Ko=qo,$o=function(e){var t=_e(e.blockAttributes,function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(Ko,M()({value:t("Value"),design:t("Design"),colorType:t("ColorType"),showBackgroundShape:t("ShowBackgroundShape"),shadow:t("Shadow"),backgroundShape:t("BackgroundShape"),gradientColor1:t("Color"),gradientColor2:t("Color2"),gradientDirection:t("ColorGradientDirection")},e))};$o.defaultProps={attrNameTemplate:"%s",blockAttributes:{}},$o.Content=function(e){var t=_e(e.blockAttributes,function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(Ko.Content,M()({value:t("Value"),design:t("Design"),colorType:t("ColorType"),showBackgroundShape:t("ShowBackgroundShape"),shadow:t("Shadow"),backgroundShape:t("BackgroundShape"),gradientColor1:t("Color"),gradientColor2:t("Color2"),gradientDirection:t("ColorGradientDirection")},e))},$o.defaultProps={attrNameTemplate:"%s",blockAttributes:{}};var Yo=$o,Qo=Object(Ot.withInstanceId)(function(e){var t=Object(k.useState)(!1),n=l()(t,2),a=n[0],r=n[1],i=Object(k.useState)(!1),o=l()(i,2),s=o[0],u=o[1],c=e.instanceId,p=e.isOpen,f=e.onChange,d=Pt()(e,["instanceId","isOpen","onChange"]);return Object(k.useEffect)(function(){e.onToggle(a)},[a]),wp.element.createElement("div",{className:"ugb-svg-icon-placeholder ugb-svg-icon-placeholder-".concat(c)},wp.element.createElement(mt,{className:"ugb-svg-icon-placeholder__button",onClick:function(){s?(r(!1),u(!1)):r(!0)}},wp.element.createElement(Yo,d)),(null!==p&&p||null===p&&a)&&wp.element.createElement(zl,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-svg-icon-placeholder-".concat(c))?u(!0):(r(!1),u(!1))},onClose:function(){return r(!1)},onChange:f}))});Qo.defaultProps={isOpen:null,className:"",value:"",onChange:function(){},onToggle:function(){}};var Xo=Qo;function Jo(){return(Jo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Zo=ie.a.createElement("style",null,".pro-icon_svg__st2{fill:#8c33da}"),es=ie.a.createElement("path",{d:"M107 175.1l43.7-44.8c3.7-3.8 5.4-8.8 5.1-13.8 0-.4-.1-.8-.1-1.2H107v59.8z",fill:"#5fb3dd"}),ts=ie.a.createElement("path",{d:"M48.8.4L5.1 45.2C1.4 49-.3 54 0 59c0 .4.1.7.1 1.1h48.6V.4z",fill:"#e2735d"}),ns=ie.a.createElement("path",{className:"pro-icon_svg__st2",d:"M48.8 115.3zM107 60.1z"}),as=ie.a.createElement("path",{fill:"#e1565d",d:"M48.8 60.1v55.2H107V60.1z"}),rs=ie.a.createElement("path",{fill:"#47a0dd",d:"M48.8 115.3l58.2 59.8v-59.8z"}),is=ie.a.createElement("path",{fill:"#ef9856",d:"M107 60.1L48.8.4v59.7z"}),ls=ie.a.createElement("path",{className:"pro-icon_svg__st2",d:"M107 60.1v55.2h48.6c-.5-3.8-2.1-7.5-4.9-10.4L107 60.1z"}),os=ie.a.createElement("path",{d:"M48.8 115.3V60.1H.2c.5 3.8 2.1 7.5 4.9 10.4l43.7 44.8z",fill:"#ea75d4"}),ss=ie.a.createElement("path",{d:"M154.3 8.5c3.1-3.2.9-8.5-3.6-8.5H62.3l50.3 51.5 41.7-43z",fill:"#eabd59"}),us=ie.a.createElement("path",{d:"M1.5 166.8C-1.7 170 .6 175 5 175h88.5l-50.3-51.4-41.7 43.2z",fill:"#49cbce"}),cs=function(e){return ie.a.createElement("svg",Jo({id:"pro-icon_svg__Layer_3",viewBox:"0 0 155.8 175.1",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg"},e),Zo,es,ts,ns,as,rs,is,ls,os,ss,us)},ps={layout:{title:Object(S.__)("Say Hello to More Layouts 👋",_.i18n),description:Object(S.__)("Get more layouts for this block. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},design:{title:Object(S.__)("Say Hello to More Designs 👋",_.i18n),description:Object(S.__)("Get more pre-set sections / designs for this block. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},image:{title:Object(S.__)("Say Hello to More Shapes 👋",_.i18n),description:Object(S.__)("Get more cool shapes for your images. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},effect:{title:Object(S.__)("Say Hello to More Effects 👋",_.i18n),description:Object(S.__)("Get more flashy image & hover effects. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},advanced:{title:Object(S.__)("Say Hello to Fine-Grained Controls 👋",_.i18n),description:Object(S.__)("Get column spacing options, column colors and more. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},postsBlock:{title:Object(S.__)("Say Hello to More Post Controls 👋",_.i18n),description:Object(S.__)("Get a load more button, more post options and Custom Post Types. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)}},fs=function(e){var t=P()(["ugb-design-control-pro-note",e.className]);return wp.element.createElement("div",{className:t},e.isDismissible&&wp.element.createElement(mt,{className:"ugb-design-control-pro-note__close",icon:"no-alt",isTertiary:!0,onClick:e.onClose}),wp.element.createElement(cs,{className:"ugb-design-control-pro-note__logo"}),wp.element.createElement("h4",null,e.title||ps[e.type].title),wp.element.createElement("p",null,e.description||ps[e.type].description),e.showButton&&wp.element.createElement(Pi,{button:e.button||ps[e.type].button,buttonUtmSource:e.buttonUtmSource}),e.showHideNote&&wp.element.createElement("p",{className:"ugb-design-control-pro-note__notice"},Object(S.__)("You can hide premium hints in the settings",_.i18n)))};fs.defaultProps={className:"",type:"layout",title:"",description:"",button:"",showButton:!0,showHideNote:!0,isDismissible:!1,onClose:function(){},buttonUtmSource:void 0};var ds=fs,gs=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={isOpen:!!e.props.initialOpen&&e.props.initialOpen},e.onClick=e.onClick.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"onClick",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){var e=P()(["ugb-pro-control-button__wrapper"],{"ugb-pro-control-button--hidden":!this.state.isOpen});return wp.element.createElement("div",{className:"components-base-control"},wp.element.createElement("button",{className:"ugb-pro-control-more-dots",onClick:this.onClick},wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"}),wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"}),wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"})),wp.element.createElement("div",{className:e},wp.element.createElement(ds,{type:this.props.type,title:this.props.title,description:this.props.description,button:this.props.button,showButton:this.props.showButton})))}}]),t}(k.Component);function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bs=function(e){function t(){var e;c()(this,t);var n=(e=g()(this,h()(t).apply(this,arguments))).getEnabledValues(),a=!n.length||n.every(function(e){return e===n[0]}),r=n.every(function(e){return""===e});return e.state={locked:r?e.props.defaultLocked:a},e.onToggleLock=e.onToggleLock.bind(v()(e)),e.onChangeTop=e.onChangeTop.bind(v()(e)),e.onChangeRight=e.onChangeRight.bind(v()(e)),e.onChangeBottom=e.onChangeBottom.bind(v()(e)),e.onChangeLeft=e.onChangeLeft.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"getEnabledValues",value:function(){return[].concat(s()(this.props.enableTop?[this.props.top]:[]),s()(this.props.enableRight?[this.props.right]:[]),s()(this.props.enableBottom?[this.props.bottom]:[]),s()(this.props.enableLeft?[this.props.left]:[]))}},{key:"getEnabledLocations",value:function(){return[].concat(s()(this.props.enableTop?["top"]:[]),s()(this.props.enableRight?["right"]:[]),s()(this.props.enableBottom?["bottom"]:[]),s()(this.props.enableLeft?["left"]:[]))}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(R.pick)(e,this.getEnabledLocations())}},{key:"onToggleLock",value:function(){this.setState({locked:!this.state.locked})}},{key:"onChangeTop",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(hs({},this.getEnabledValues(),{top:n}))}},{key:"onChangeRight",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(hs({},this.getEnabledValues(),{right:n}))}},{key:"onChangeBottom",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(hs({},this.getEnabledValues(),{bottom:n}))}},{key:"onChangeLeft",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(hs({},this.getEnabledValues(),{left:n}))}},{key:"render",value:function(){var e=this.props.instanceId,t="ugb-four-number-control-".concat(e,"__item-");return wp.element.createElement(x.BaseControl,{help:this.props.help,className:P()("ugb-four-number-control",this.props.className)},wp.element.createElement(na,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-four-number-control__wrapper"},wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-top")},wp.element.createElement("input",{id:"".concat(t,"-top"),type:"number",onChange:this.onChangeTop,"aria-label":Object(S.__)("Top",_.i18n),value:this.props.top,placeholder:this.props.enableTop?"":Object(S.__)("auto",_.i18n),disabled:!this.props.enableTop}),wp.element.createElement("span",null,Object(S.__)("Top",_.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-right")},wp.element.createElement("input",{id:"".concat(t,"-right"),type:"number",onChange:this.onChangeRight,"aria-label":this.props.label,value:this.props.right,placeholder:this.props.enableRight?"":Object(S.__)("auto",_.i18n),disabled:!this.props.enableRight}),wp.element.createElement("span",null,Object(S.__)("Right",_.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-bottom")},wp.element.createElement("input",{id:"".concat(t,"-bottom"),type:"number",onChange:this.onChangeBottom,"aria-label":this.props.label,value:this.props.bottom,placeholder:this.props.enableBottom?"":Object(S.__)("auto",_.i18n),disabled:!this.props.enableBottom}),wp.element.createElement("span",null,Object(S.__)("Bottom",_.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-left")},wp.element.createElement("input",{id:"".concat(t,"-left"),type:"number",onChange:this.onChangeLeft,"aria-label":this.props.label,value:this.props.left,placeholder:this.props.enableLeft?"":Object(S.__)("auto",_.i18n),disabled:!this.props.enableLeft}),wp.element.createElement("span",null,Object(S.__)("Left",_.i18n))),wp.element.createElement(mt,{className:this.state.locked?"ugb--is-locked":"",onClick:this.onToggleLock,icon:wp.element.createElement(x.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})})))}}]),t}(k.Component);bs.defaultProps={onChange:function(){},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0};Object(Ot.withInstanceId)(bs);function vs(){return(vs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ys=ie.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),ws=ie.a.createElement("path",{d:"M4.4 15.7h11.2c.1 0 .2 0 .2.1l2 2c.2.2.1.6-.2.6H2.4c-.3 0-.4-.3-.2-.6l2-2s.1-.1.2-.1z",fill:"#555d63"}),ks=function(e){return ie.a.createElement("svg",vs({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),ys,ws)};function Cs(){return(Cs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Os=ie.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),xs=ie.a.createElement("path",{d:"M4.3 4.4v11.2c0 .1 0 .2-.1.2l-2 2c-.2.2-.6.1-.6-.2V2.4c0-.3.4-.4.6-.2l2 2s.1.1.1.2z",fill:"#555d63"}),_s=function(e){return ie.a.createElement("svg",Cs({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Os,xs)};function Ss(){return(Ss=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Es=ie.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),js=ie.a.createElement("path",{d:"M15.7 15.6V4.4c0-.1 0-.2.1-.2l2-2c.2-.2.6-.1.6.2v15.2c0 .3-.3.4-.6.2l-2-2s-.1-.1-.1-.2z",fill:"#555d63"}),Ts=function(e){return ie.a.createElement("svg",Ss({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Es,js)};function Ps(){return(Ps=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Bs=ie.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Ms=ie.a.createElement("path",{d:"M15.6 4.3H4.4c-.1 0-.2 0-.2-.1l-2-2c-.2-.2-.1-.6.2-.6h15.2c.3 0 .4.3.2.6l-2 2s-.1.1-.2.1z",fill:"#555d63"}),Ns=function(e){return ie.a.createElement("svg",Ps({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Bs,Ms)};function Is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Rs=function(e){function t(){var e;c()(this,t);var n=(e=g()(this,h()(t).apply(this,arguments))).getEnabledValues(),a=e.firstValue(),r=Object.values(n).every(function(e){return e===a}),i=Object.values(n).every(function(e){return""===e});return e.state={locked:i?e.props.defaultLocked:r},e.onToggleLock=e.onToggleLock.bind(v()(e)),e.onChangeAll=e.onChangeAll.bind(v()(e)),e.onChangeTop=e.onChangeTop.bind(v()(e)),e.onChangeRight=e.onChangeRight.bind(v()(e)),e.onChangeBottom=e.onChangeBottom.bind(v()(e)),e.onChangeLeft=e.onChangeLeft.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"getEnabledValues",value:function(){var e=this;return this.getEnabledLocations().reduce(function(t,n){return Ds({},t,r()({},n,e.props[n]))},{})}},{key:"getEnabledLocations",value:function(){return[].concat(s()(this.props.enableTop?["top"]:[]),s()(this.props.enableRight?["right"]:[]),s()(this.props.enableBottom?["bottom"]:[]),s()(this.props.enableLeft?["left"]:[]))}},{key:"firstValue",value:function(){return this.getEnabledLocations().length?Object.values(this.getEnabledValues())[0]:""}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(R.pick)(e,this.getEnabledLocations())}},{key:"onToggleLock",value:function(){this.setState({locked:!this.state.locked})}},{key:"onChangeAll",value:function(e){var t=e||0===e?e:"";this.props.onChange(this.filterOnlyEnabled({top:t,right:t,bottom:t,left:t}))}},{key:"onChangeTop",value:function(e){this.props.onChange(Ds({},this.getEnabledValues(),{top:e||0===e?e:""}))}},{key:"onChangeRight",value:function(e){this.props.onChange(Ds({},this.getEnabledValues(),{right:e||0===e?e:""}))}},{key:"onChangeBottom",value:function(e){this.props.onChange(Ds({},this.getEnabledValues(),{bottom:e||0===e?e:""}))}},{key:"onChangeLeft",value:function(e){this.props.onChange(Ds({},this.getEnabledValues(),{left:e||0===e?e:""}))}},{key:"render",value:function(){var e=this.props,t=e.instanceId,n=e.units,a=e.unit,r="ugb-four-range-control-".concat(t,"__item-"),i={min:this.props.min,max:this.props.max,step:this.props.step,placeholder:this.props.placeholder,initialPosition:this.props.initialPosition,sliderMin:this.props.sliderMin,sliderMax:this.props.sliderMax},l=n.indexOf(a)<0?0:n.indexOf(a);Array.isArray(this.props.min)&&(i.min=this.props.min[l]),Array.isArray(this.props.max)&&(i.max=this.props.max[l]),Array.isArray(this.props.sliderMin)&&(i.sliderMin=this.props.sliderMin[l]),Array.isArray(this.props.sliderMax)&&(i.sliderMax=this.props.sliderMax[l]),Array.isArray(this.props.step)&&(i.step=this.props.step[l]),Array.isArray(this.props.placeholder)&&(i.placeholder=this.props.placeholder[l]),Array.isArray(this.props.initialPosition)&&(i.initialPosition=this.props.initialPosition[l]);var o=P()(["ugb-four-range-control__lock"],{"ugb--is-locked":this.state.locked}),s=wp.element.createElement(mt,{className:o,onClick:this.onToggleLock,icon:wp.element.createElement(x.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})});return wp.element.createElement(x.BaseControl,{help:this.props.help,className:P()("ugb-four-range-control",this.props.className,{"ugb--locked":this.state.locked})},wp.element.createElement(na,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens,afterButton:s}),this.state.locked&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(sa,M()({id:"".concat(r,"-all"),value:this.firstValue(),onChange:this.onChangeAll,allowReset:!0},i))),!this.state.locked&&wp.element.createElement(k.Fragment,null,this.props.enableTop&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(x.Tooltip,{text:Object(S.__)("Top",_.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(Ns,null))),wp.element.createElement(sa,M()({id:"".concat(r,"-top"),value:this.props.top,onChange:this.onChangeTop,allowReset:!0},i,{placeholder:this.props.placeholderTop||i.placeholder}))),this.props.enableRight&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(x.Tooltip,{text:Object(S.__)("Right",_.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(Ts,null))),wp.element.createElement(sa,M()({id:"".concat(r,"-right"),value:this.props.right,onChange:this.onChangeRight,allowReset:!0},i,{placeholder:this.props.placeholderRight||i.placeholder}))),this.props.enableBottom&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(x.Tooltip,{text:Object(S.__)("Bottom",_.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(ks,null))),wp.element.createElement(sa,M()({id:"".concat(r,"-bottom"),value:this.props.bottom,onChange:this.onChangeBottom,allowReset:!0},i,{placeholder:this.props.placeholderBottom||i.placeholder}))),this.props.enableLeft&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(x.Tooltip,{text:Object(S.__)("Left",_.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(_s,null))),wp.element.createElement(sa,M()({id:"".concat(r,"-left"),value:this.props.left,onChange:this.onChangeLeft,allowReset:!0},i,{placeholder:this.props.placeholderLeft||i.placeholder})))))}}]),t}(k.Component);Rs.defaultProps={onChange:function(){},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,min:-1/0,max:1/0,sliderMin:null,sliderMax:null,step:1,placeholder:"",placeholderTop:"",placeholderRight:"",placeholderBottom:"",placeholderLeft:"",initialPosition:""};var zs=Rs,As=n(77),Ls=n.n(As),Fs=n(78),Us=n.n(Fs),Hs=n(79),Vs=n.n(Hs),Gs=n(80),Ws=n.n(Gs),qs=n(81),Ks=n.n(qs),$s=n(82),Ys=n.n($s),Qs=n(83),Xs=n.n(Qs),Js=n(84),Zs=n.n(Js),eu=n(85),tu=n.n(eu),nu=n(86),au=n.n(nu),ru=n(87),iu=n.n(ru),lu=n(88),ou=n.n(lu),su=n(89),uu=n.n(su),cu=n(90),pu=n.n(cu),fu=n(91),du=n.n(fu),gu=n(92),mu=n.n(gu),hu=n(93),bu=n.n(hu),vu=n(94),yu=n.n(vu),wu=n(95),ku=n.n(wu),Cu=n(96),Ou=n.n(Cu),xu=n(97),_u=n.n(xu),Su=n(98),Eu=n.n(Su),ju=n(99),Tu=n.n(ju),Pu=n(100),Bu=n.n(Pu),Mu=n(101),Nu=n.n(Mu),Iu=n(102),Du=n.n(Iu),Ru=n(103),zu=n.n(Ru),Au=n(104),Lu=n.n(Au),Fu=n(105),Uu=n.n(Fu),Hu=n(106),Vu=n.n(Hu);function Gu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wu(){return(Wu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function qu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ku(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function $u(e,t,n){return t&&Ku(e.prototype,t),n&&Ku(e,n),e}function Yu(e){return(Yu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xu(e,t){return!t||"object"!==Yu(t)&&"function"!=typeof t?Qu(e):t}function Ju(e){return(Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zu(e,t){return(Zu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ec(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&&Zu(e,t)}function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nc=n(30),ac=n.n(nc),rc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.forEach(function(e){return e&&e.apply(void 0,n)})}};function ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(n),!0).forEach(function(t){tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oc=function(e){function t(){var e,n;qu(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return tc(Qu(n=Xu(this,(e=Ju(t)).call.apply(e,[this].concat(r)))),"getRailProps",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,a=t.emitMouse,r=t.emitTouch;return lc({},e,{onMouseDown:rc(e.onMouseDown,a),onTouchStart:rc(e.onTouchStart,r)})}),n}return ec(t,re["Component"]),$u(t,[{key:"render",value:function(){var e=this.getRailProps,t=this.props,n=t.getEventData,a=t.activeHandleID,r=(0,t.children)({getEventData:n,activeHandleID:a,getRailProps:e});return r&&ie.a.Children.only(r)}}]),t}();oc.propTypes={};var sc=oc,uc=function(e){function t(){return qu(this,t),Xu(this,Ju(t).apply(this,arguments))}return ec(t,re["Component"]),$u(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.values,a=e.scale,r=e.count,i=t({getEventData:e.getEventData,activeHandleID:e.activeHandleID,ticks:(n||a.getTicks(r)).map(function(e){return{id:"$$-".concat(e),value:e,percent:a.getValue(e)}})});return i&&ie.a.Children.only(i)}}]),t}();uc.propTypes={},uc.defaultProps={count:10};var cc=uc;function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach(function(t){tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var dc=function(e){function t(){var e,n;qu(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return tc(Qu(n=Xu(this,(e=Ju(t)).call.apply(e,[this].concat(r)))),"getTrackProps",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,a=t.emitMouse,r=t.emitTouch;return fc({},e,{onMouseDown:rc(e.onMouseDown,a),onTouchStart:rc(e.onTouchStart,r)})}),n}return ec(t,re["Component"]),$u(t,[{key:"render",value:function(){for(var e=this.getTrackProps,t=this.props,n=t.children,a=t.left,r=t.right,i=t.scale,l=t.handles,o=t.getEventData,s=t.activeHandleID,u=i.getDomain(),c=[],p=0;p<l.length+1;p++){var f=l[p-1],d=l[p];0===p&&!0===a?f={id:"$",value:u[0],percent:0}:p===l.length&&!0===r&&(d={id:"$",value:u[1],percent:100}),f&&d&&c.push({id:"".concat(f.id,"-").concat(d.id),source:f,target:d})}var g=n({getEventData:o,activeHandleID:s,tracks:c,getTrackProps:e});return g&&ie.a.Children.only(g)}}]),t}();dc.propTypes={},dc.defaultProps={left:!0,right:!0};var gc=dc;function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(n),!0).forEach(function(t){tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bc=function(e){function t(){var e,n;qu(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return tc(Qu(n=Xu(this,(e=Ju(t)).call.apply(e,[this].concat(r)))),"autofocus",function(e){e.target.focus()}),tc(Qu(n),"getHandleProps",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.props,r=a.emitKeyboard,i=a.emitMouse,l=a.emitTouch;return hc({},t,{onKeyDown:rc(t.onKeyDown,function(t){return r(t,e)}),onMouseDown:rc(t.onMouseDown,n.autofocus,function(t){return i(t,e)}),onTouchStart:rc(t.onTouchStart,function(t){return l(t,e)})})}),n}return ec(t,re["Component"]),$u(t,[{key:"render",value:function(){var e=this.getHandleProps,t=this.props,n=t.activeHandleID,a=(0,t.children)({handles:t.handles,activeHandleID:n,getHandleProps:e});return a&&ie.a.Children.only(a)}}]),t}();bc.propTypes={};var vc=bc;function yc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var wc="react-compound-slider:";function kc(e){return function(t,n){return t.val>n.val?e?-1:1:n.val>t.val?e?1:-1:0}}function Cc(e,t,n,a){var r=e.findIndex(function(e){return e.key===t});if(-1!==r){var i=e[r],l=i.key;return i.val===n?e:[].concat(yc(e.slice(0,r)),[{key:l,val:n}],yc(e.slice(r+1))).sort(kc(a))}return e}function Oc(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function xc(e){var t=e.type,n=void 0===t?"":t,a=e.touches;return!a||a.length>1||"touchend"===n.toLowerCase()&&a.length>0}function _c(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function Sc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=0;return{handles:e.map(function(e){var t=n.getValue(e);return e!==t&&(r+=1,ac()(!a,"".concat(wc," Invalid value encountered. Changing ").concat(e," to ").concat(t,"."))),t}).map(function(e,t){return{key:"$$-".concat(t),val:e}}).sort(kc(t)),changes:r}}var Ec=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN};var jc,Tc;1===(jc=Ec).length&&(Tc=jc,jc=function(e,t){return Ec(Tc(e),t)});var Pc=Array.prototype,Bc=(Pc.slice,Pc.map,Math.sqrt(50)),Mc=Math.sqrt(10),Nc=Math.sqrt(2),Ic=function(e,t,n){var a,r,i,l,o=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((a=t<e)&&(r=e,e=t,t=r),0===(l=function(e,t,n){var a=(t-e)/Math.max(0,n),r=Math.floor(Math.log(a)/Math.LN10),i=a/Math.pow(10,r);return r>=0?(i>=Bc?10:i>=Mc?5:i>=Nc?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(i>=Bc?10:i>=Mc?5:i>=Nc?2:1)}(e,t,n))||!isFinite(l))return[];if(l>0)for(e=Math.ceil(e/l),t=Math.floor(t/l),i=new Array(r=Math.ceil(t-e+1));++o<r;)i[o]=(e+o)*l;else for(e=Math.floor(e*l),t=Math.ceil(t*l),i=new Array(r=Math.ceil(e-t+1));++o<r;)i[o]=(e-o)/l;return a&&i.reverse(),i};var Dc=function(){function e(){qu(this,e),this.domain=[0,1],this.range=[0,1],this.interpolator=null}return $u(e,[{key:"createInterpolator",value:function(e,t){var n=e[0],a=e[1],r=t[0],i=t[1];return a<n?(n=this.deinterpolateValue(a,n),r=this.interpolateValue(i,r)):(n=this.deinterpolateValue(n,a),r=this.interpolateValue(r,i)),function(e){return r(n(e))}}},{key:"interpolateValue",value:function(e,t){return t-=e=+e,function(n){return e+t*n}}},{key:"deinterpolateValue",value:function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(){return t}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(e){var t=this.domain,n=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(t,n)))(+e)}},{key:"setDomain",value:function(e){return this.domain=e.map(function(e){return+e}),this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(e){return this.range=e.map(function(e){return+e}),this}},{key:"getTicks",value:function(e){var t=this.domain;return Ic(t[0],t[t.length-1],e||10)}}]),e}();function Rc(e,t,n){return Math.min(Math.max(e,t),n)}var zc=function e(){var t=this;qu(this,e),tc(this,"setDomain",function(e){return t.domain=e.slice(),t}),tc(this,"setRange",function(e){return t.range=e.slice(),t}),tc(this,"setStep",function(e){return t.step=e,t}),tc(this,"getValue",function(e){var n=Gu(t.domain,2),a=n[0],r=n[1],i=Gu(t.range,2),l=i[0],o=i[1],s=t.step,u=(Rc(e,a,r)-a)/(r-a);return Rc(s*Math.round(u*(o-l)/s)+l,l<o?l:o,o>l?o:l)}),this.step=1,this.domain=[0,1],this.range=[0,1]},Ac="undefined"!=typeof window&&"undefined"!=typeof document,Lc=function(){},Fc=function(e,t,n,a){var r=a?e-t:e+t;return a?Math.max(n[0],r):Math.min(n[1],r)},Uc=function(e,t,n,a){var r=a?e+t:e-t;return a?Math.min(n[1],r):Math.max(n[0],r)},Hc=function(e){function t(){var e,n;qu(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return tc(Qu(n=Xu(this,(e=Ju(t)).call.apply(e,[this].concat(r)))),"state",{step:null,values:null,domain:null,handles:[],reversed:null,activeHandleID:null,valueToPerc:null,valueToStep:null,pixelToStep:null}),tc(Qu(n),"slider",ie.a.createRef()),tc(Qu(n),"onKeyDown",function(e,t){var a=["ArrowRight","ArrowUp"],r=["ArrowDown","ArrowLeft"],i=Qu(n),l=i.state.handles,o=i.props,s=o.step,u=o.reversed,c=o.vertical,p=o.domain,f=e.key||e.keyCode;if(a.concat(r).includes(f)){if(c){var d=[r,a];a=d[0],r=d[1]}e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault();var g=l.find(function(e){return e.key===t});if(g){var m=g.val,h=m;a.includes(f)?h=Fc(m,s,p,u):r.includes(f)&&(h=Uc(m,s,p,u));var b=l.map(function(e){return e.key===t?{key:e.key,val:h}:e});n.submitUpdate(b,!0)}}}),tc(Qu(n),"onMouseDown",function(e,t){n.onStart(e,t,!1)}),tc(Qu(n),"onTouchStart",function(e,t){xc(e)||n.onStart(e,t,!0)}),tc(Qu(n),"getEventData",function(e,t){var a,r=Qu(n),i=r.state,l=i.pixelToStep,o=i.valueToPerc,s=r.props.vertical;return l.setDomain(Oc(n.slider.current,s)),{value:a=t?l.getValue(_c(s,e)):l.getValue(s?e.clientY:e.pageX),percent:o.getValue(a)}}),tc(Qu(n),"onMouseMove",function(e){var t=Qu(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;i.setDomain(Oc(n.slider.current,s));var c=Cc(r,l,i.getValue(s?e.clientY:e.pageX),u);n.submitUpdate(c)}),tc(Qu(n),"onTouchMove",function(e){var t=Qu(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;if(!xc(e)){i.setDomain(Oc(n.slider.current,s));var c=Cc(r,l,i.getValue(_c(s,e)),u);n.submitUpdate(c)}}),tc(Qu(n),"onMouseUp",function(){var e=Qu(n),t=e.state,a=t.handles,r=t.activeHandleID,i=e.props,l=i.onChange,o=i.onSlideEnd;l(a.map(function(e){return e.val})),o(a.map(function(e){return e.val}),{activeHandleID:r}),n.setState({activeHandleID:null}),Ac&&(document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onMouseUp))}),tc(Qu(n),"onTouchEnd",function(){var e=Qu(n),t=e.state,a=t.handles,r=t.activeHandleID,i=e.props,l=i.onChange,o=i.onSlideEnd;l(a.map(function(e){return e.val})),o(a.map(function(e){return e.val}),{activeHandleID:r}),n.setState({activeHandleID:null}),Ac&&(document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onTouchEnd))}),n}return ec(t,re["PureComponent"]),$u(t,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(Oc(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){Ac&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"onStart",value:function(e,t,n){var a=this.state.handles,r=this.props.onSlideStart;n||e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),a.find(function(e){return e.key===t})?(this.setState({activeHandleID:t}),r(a.map(function(e){return e.val}),{activeHandleID:t}),n?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:null}),this.handleRailAndTrackClicks(e,n))}},{key:"handleRailAndTrackClicks",value:function(e,t){var n,a=this,r=this.state,i=r.handles,l=r.pixelToStep,o=this.props,s=o.vertical,u=o.reversed,c=this.slider;l.setDomain(Oc(c.current,s)),n=t?l.getValue(_c(s,e)):l.getValue(s?e.clientY:e.pageX);for(var p=null,f=1/0,d=0;d<i.length;d++){var g=i[d],m=g.key,h=g.val,b=Math.abs(h-n);b<f&&(p=m,f=b)}var v=Cc(i,p,n,u);this.setState({activeHandleID:p},function(){a.submitUpdate(v,!0),t?a.addTouchEvents():a.addMouseEvents()})}},{key:"addMouseEvents",value:function(){Ac&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){Ac&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(e,t){var n=this.props,a=n.mode,r=n.step,i=n.onUpdate,l=n.onChange,o=n.reversed,s=this.state.valueToStep.getValue;this.setState(function(n){var u,c=n.handles;if("function"==typeof a)u=a(c,e,r,o,s),ac()(Array.isArray(u),"Custom mode function did not return an array.");else switch(a){case 1:u=function(e,t){return t}(0,e);break;case 2:u=function(e,t){for(var n=0;n<e.length;n++){if(e[n].key!==t[n].key)return e;if(t[n+1]&&t[n].val===t[n+1].val)return e}return t}(c,e);break;case 3:u=function e(t,n,a,r,i){for(var l=-1,o=!0,s=0;s<t.length;s++){var u=t[s],c=n[s];if(!c||c.key!==u.key)return t;c.val!==u.val&&(l=s,o=c.val-u.val>0)}if(-1===l)return t;for(var p=o?a:-a,f=0;f<n.length;f++){var d=n[f],g=n[f+1];if(g&&d.val===g.val){if(f===l){var m=g.val+p;if(i(m)===m){var h=e(n,Cc(n,g.key,g.val+p,r),a,r,i);return h===n?t:h}return t}var b=d.val+p;if(i(b)===b){var v=e(n,Cc(n,d.key,d.val+p,r),a,r,i);return v===n?t:v}return t}}return n}(c,e,r,o,s);break;default:u=e,ac()(!1,"".concat(wc," Invalid mode value."))}return i(u.map(function(e){return e.val})),t&&l(u.map(function(e){return e.val})),{handles:u}})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handles,a=t.valueToPerc,r=t.activeHandleID,i=this.props,l=i.className,o=i.rootStyle,s=i.rootProps,u=i.component,c=i.disabled,p=i.flatten,f=n.map(function(e){var t=e.key,n=e.val;return{id:t,value:n,percent:a.getValue(n)}}),d=ie.a.Children.map(this.props.children,function(t){return!t||t.type.name!==sc.name&&t.type.name!==cc.name&&t.type.name!==gc.name&&t.type.name!==vc.name?t:ie.a.cloneElement(t,{scale:a,handles:f,activeHandleID:r,getEventData:e.getEventData,emitKeyboard:c?Lc:e.onKeyDown,emitMouse:c?Lc:e.onMouseDown,emitTouch:c?Lc:e.onTouchStart})});return p?ie.a.createElement(re.Fragment,null,ie.a.createElement(u,Wu({},s,{style:o,className:l,ref:this.slider})),d):ie.a.createElement(u,Wu({},s,{style:o,className:l,ref:this.slider}),d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,a,r=e.step,i=e.values,l=e.domain,o=e.reversed,s=e.onUpdate,u=e.onChange,c=e.warnOnChanges,p=t.valueToPerc,f=t.valueToStep,d=t.pixelToStep,g={};if(p&&f&&d||(p=new Dc,f=new zc,d=new zc,g.valueToPerc=p,g.valueToStep=f,g.pixelToStep=d),null===t.step||null===t.domain||null===t.reversed||r!==t.step||l[0]!==t.domain[0]||l[1]!==t.domain[1]||o!==t.reversed){var m=Gu(l,2),h=m[0],b=m[1];f.setStep(r).setRange([h,b]).setDomain([h,b]),!0===o?(p.setDomain([h,b]).setRange([100,0]),d.setStep(r).setRange([b,h])):(p.setDomain([h,b]).setRange([0,100]),d.setStep(r).setRange([h,b])),ac()(b>h,"".concat(wc," Max must be greater than min (even if reversed). Max is ").concat(b,". Min is ").concat(h,"."));var v=Sc(i||t.values,o,f,c),y=v.handles;(v.changes||void 0===i||i===t.values)&&(s(y.map(function(e){return e.val})),u(y.map(function(e){return e.val}))),g.step=r,g.values=i,g.domain=l,g.handles=y,g.reversed=o}else if(n=i,a=t.values,!(n===a||n.length===a.length&&n.reduce(function(e){return function(t,n,a){return t&&e[a]===n}}(a),!0))){var w=Sc(i,o,f,c),k=w.handles;w.changes&&(s(k.map(function(e){return e.val})),u(k.map(function(e){return e.val}))),g.values=i,g.handles=k}return Object.keys(g).length?g:null}}]),t}();Hc.propTypes={},Hc.defaultProps={mode:1,step:.1,domain:[0,100],component:"div",rootProps:{},rootStyle:{},vertical:!1,reversed:!1,onChange:Lc,onUpdate:Lc,onSlideStart:Lc,onSlideEnd:Lc,disabled:!1,flatten:!1,warnOnChanges:!1};var Vc=Hc;Vc.Rail=sc,Vc.Ticks=cc,Vc.Tracks=gc,Vc.Handles=vc;var Gc={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},Wc={position:"absolute",width:"100%",height:3,backgroundColor:"#e2e4e7",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},qc=function(e){var t=e.getRailProps;return wp.element.createElement(k.Fragment,null,wp.element.createElement("div",M()({style:Gc},t())),wp.element.createElement("div",{style:Wc}))},Kc=function(e){var t=l()(e.domain,2),n=t[0],a=t[1],r=e.handle,i=r.id,o=r.value,s=r.percent,u=e.disabled,c=void 0!==u&&u,p=e.getHandleProps;return wp.element.createElement("button",M()({role:"slider","aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":o,disabled:c,style:{left:"".concat(s,"%")}},p(i)))},$c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";if("left"===t)for(var n=e.length-1;n>=1;n--)if(e[n]<10){var a=10-e[n];e[n]=10,e[n-1]-=a}for(var r=0;r<e.length-1;r++)if(e[r]<10){var i=10-e[r];e[r]=10,e[r+1]-=i}if("right"===t)for(var l=e.length-1;l>=1;l--)if(e[l]<10){var o=10-e[l];e[l]=10,e[l-1]-=o}return e},Yc={position:"relative",width:"100%"},Qc=[0,100],Xc=function(e){var t=0;return[].concat(s()(e),[100]).map(function(e){var n=e-t;return t+=n,n})},Jc=function(e){var t=0;return s()(e).pop(),e.reduce(function(n,a,r){if(r===e.length-1)return n;var i=a+t;return t+=a,n.push(i),n},[])},Zc=function(e){return wp.element.createElement(Vc,{className:"ugb-column-widths-control__columns-slider",rootStyle:Yc,mode:function(e,t){var n,a,r=e.map(function(e){return e.val}),i=t.map(function(e){return e.val});if(Object(R.isEqual)(r,i))return t;if(n=i,(a=[0].concat(s()(n),[100])).some(function(e,t){return 0!==t&&e-a[t-1]<10})){var o=function(e,t){var n,a=0;return t.some(function(t,r){return t!==e[r]&&(a=r,n=t>e[r]?"right":"left",!0)}),[a,n]}(r,i),u=l()(o,2);u[0];(function(e,t,n){var a=Xc(e),r=$c(a,n);return Jc(r)})(i,0,u[1]).forEach(function(e,n){t[n].val=e})}return t},step:1,onUpdate:function(t){return e.onChange(Xc(t))},domain:Qc,values:Jc(e.value)},wp.element.createElement(sc,null,function(e){var t=e.getRailProps;return wp.element.createElement(qc,{getRailProps:t})}),wp.element.createElement(vc,null,function(e){var t=e.handles,n=e.getHandleProps;return wp.element.createElement("div",{className:"slider-handles"},t.map(function(e){return wp.element.createElement(Kc,{key:e.id,handle:e,domain:Qc,getHandleProps:n})}))}))};Zc.defaultProps={onChange:function(){},value:[]};var ep=Zc,tp=function(e){return e.every(function(e){return!e})},np=function(e){var t,n={gridTemplateColumns:(t=e.value,t.map(function(e){return(e/100*t.length).toFixed(2)+"fr"}).join(" ")),gridAutoFlow:tp(e.value)?"column":void 0,justifyContent:tp(e.value)?"space-around":void 0};return wp.element.createElement("div",{className:"ugb-column-widths-control__columns-input",style:n},e.value.map(function(t,n){return wp.element.createElement("input",{key:n,className:"components-column-widths-control__number",type:"number",value:t||"",onChange:function(t){var a=parseInt(t.target.value,10),r=s()(e.value);r[n]=isNaN(a)?"":a,e.onChange(r)},onBlur:function(){var t=$c(e.value),a=100-t.reduce(function(e,t){return e+t},0);n<e.value.length-1?t[n+1]+=a:t[n-1]+=a,e.onChange($c(t))}})}))};np.defaultProps={onChange:function(){},value:[]};var ap=np,rp={"2-1":[50,50],"2-2":[67,33],"2-3":[33,67],"3-1":[33,33,34],"3-2":[25,50,25],"3-3":[50,25,25],"3-4":[25,25,50],"4-1":[25,25,25,25],"4-2":[40,20,20,20],"4-3":[20,20,20,40],"5-1":[20,20,20,20,20],"6-1":[16,17,17,17,17,16]},ip={plain:{2:[{value:"2-1",image:Ls.a},{value:"2-2",image:Us.a},{value:"2-3",image:Vs.a}],3:[{value:"3-1",image:Ws.a},{value:"3-2",image:Ks.a},{value:"3-3",image:Ys.a},{value:"3-4",image:Xs.a}],4:[{value:"4-1",image:Zs.a},{value:"4-2",image:tu.a},{value:"4-3",image:au.a}]},grid:{2:[{value:"2-1",image:iu.a},{value:"2-2",image:ou.a},{value:"2-3",image:uu.a}],3:[{value:"3-1",image:pu.a},{value:"3-2",image:du.a},{value:"3-3",image:mu.a},{value:"3-4",image:bu.a}],4:[{value:"4-1",image:yu.a},{value:"4-2",image:ku.a},{value:"4-3",image:Ou.a}]},uneven:{2:[{value:"2-1",image:_u.a},{value:"2-2",image:Eu.a},{value:"2-3",image:Tu.a}],3:[{value:"3-1",image:Bu.a},{value:"3-2",image:Nu.a},{value:"3-3",image:Du.a},{value:"3-4",image:zu.a}],4:[{value:"4-1",image:Lu.a},{value:"4-2",image:Uu.a},{value:"4-3",image:Vu.a}]}},lp=function(e){return e.every(function(e){return!e})},op=function(e){var t=Object(k.useState)(-1),n=l()(t,2),a=(n[0],n[1]),r=Object(k.useState)(!0),i=l()(r,2),o=(i[0],i[1]),s=Object(k.useState)(""),u=l()(s,2),c=u[0],p=u[1];Object(k.useEffect)(function(){p("")},[e.columns]);var f="grid"===e.design?"grid":"plain"===e.design?"plain":"uneven",d=ip[f],g=wp.element.createElement(mt,{className:"ugb-columns-width-control__reset",disabled:e.forceBlank?lp(e.values):Object(R.isEqual)(e.values,rp[c||"".concat(e.columns,"-1")]),onClick:function(){p(""),e.forceBlank?e.onChange(["","","","","",""]):e.onChange(rp[c||"".concat(e.columns,"-1")])},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"));return wp.element.createElement(x.BaseControl,{help:e.help,className:P()(["ugb-columns-width-control","ugb--help-tip-column-width",e.className])},(e.hasIndividualControls||!e.hasIndividualControls&&d[e.columns])&&wp.element.createElement(na,{label:e.label,afterButton:e.hasIndividualControls?g:null,screens:e.screens}),d[e.columns]&&wp.element.createElement(qi,{options:d[e.columns],onChange:function(t){a(-1),o(!0),p(t),e.onChange(rp[t])}}),e.hasIndividualControls&&wp.element.createElement(k.Fragment,null,wp.element.createElement(ep,{value:lp(e.values)?rp["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),wp.element.createElement(ap,{value:lp(e.values)?e.forceBlank?e.values:rp["".concat(e.columns,"-1")]:e.values,onChange:function(t){e.onChange(t)}}),!1))};op.defaultProps={columns:2,design:"plain",values:["",""],onChange:function(){},help:"",label:Object(S.__)("Column Widths",_.i18n),className:"",hasIndividualControls:!0,screens:["desktop"],forceBlank:!1};var sp=function(e){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},n=_e(e.blockAttributes,t,""),a=e.screens;return wp.element.createElement(k.Fragment,null,a.includes("desktop")&&wp.element.createElement(pp,{screens:a},k.Children.toArray(e.children).map(function(a){return Object(k.cloneElement)(a,{value:n(),onChange:function(n){e.onChange?e.onChange(t(),n,""):e.setAttributes(r()({},t(),n))}})})),a.includes("tablet")&&wp.element.createElement(pp,{screens:a,screen:"tablet"},k.Children.toArray(e.children).map(function(a){return Object(k.cloneElement)(a,{value:n("Tablet"),placeholder:n("Tablet")||a.props.placeholder,onChange:function(n){e.onChange?e.onChange(t("Tablet"),n,"Tablet"):e.setAttributes(r()({},t("Tablet"),n))}})})),a.includes("mobile")&&wp.element.createElement(pp,{screens:a,screen:"mobile"},k.Children.toArray(e.children).map(function(a){return Object(k.cloneElement)(a,{value:n("Mobile"),placeholder:n("Mobile")||a.props.placeholder,onChange:function(n){e.onChange?e.onChange(t("Mobile"),n,"Mobile"):e.setAttributes(r()({},t("Mobile"),n))}})})))};sp.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},onChange:null,placeholder:"",screens:["desktop","tablet","mobile"]};var up=sp,cp=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={screen:We()},e.onScreenChange=e.onScreenChange.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"onScreenChange",value:function(e){this.setState({screen:e})}},{key:"componentDidMount",value:function(){var e=this.props.instanceId;Object(Q.addAction)("stackable.responsive-toggle.screen.change","stackable/when-responsive-screen-".concat(e),this.onScreenChange)}},{key:"componentWillUnmount",value:function(){var e=this.props.instanceId;Object(Q.removeAction)("stackable.responsive-toggle.screen.change","stackable/when-responsive-screen-".concat(e))}},{key:"render",value:function(){var e=this,t=k.Children.toArray(this.props.children).map(function(t){return Object(k.cloneElement)(t,{screens:e.props.screens,screen:e.state.screen})}),n=this.state.screen===this.props.screen,a=!this.props.screens.includes(this.state.screen)&&!n&&"desktop"===this.props.screen;return wp.element.createElement(k.Fragment,null,(n||a)&&t)}}]),t}(k.Component);cp.defaultProps={screen:"desktop",screens:["desktop","tablet","mobile"]};var pp=Object(Ot.withInstanceId)(cp);function fp(){return(fp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var dp=ie.a.createElement("path",{d:"M26.6 40.2h-8.2V27.8H8.8v12.4H.6V9.8h8.2v11.3h9.5V9.8h8.2v30.4zM49.4 40.2h-8.3V24.1c0-2 0-3.7.1-5.4-.5.6-1.1 1.3-1.9 2l-3.4 2.8-4.3-5.2L42 9.8h7.4v30.4z"}),gp=function(e){return ie.a.createElement("svg",fp({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),dp)};function mp(){return(mp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var hp=ie.a.createElement("path",{d:"M24.1 39.6H18V27.2H6.6v12.4H.5V10.8h6.1v11.3H18V10.8h6.1v28.8zM49.5 39.6H29.4v-4.2l7.2-7.3c2.1-2.2 3.5-3.7 4.2-4.6.7-.8 1.1-1.6 1.4-2.4.3-.7.4-1.5.4-2.2 0-1.2-.3-2-1-2.6-.6-.6-1.5-.8-2.5-.8-1.1 0-2.2.3-3.2.8s-2.1 1.2-3.3 2.2l-3.3-3.9c1.4-1.2 2.6-2.1 3.5-2.6.9-.5 1.9-.9 3-1.2 1.1-.3 2.3-.4 3.7-.4 1.8 0 3.4.3 4.8 1s2.4 1.6 3.2 2.8 1.1 2.5 1.1 4.1c0 1.3-.2 2.6-.7 3.7-.5 1.2-1.2 2.4-2.2 3.6s-2.7 3-5.2 5.2l-3.7 3.5v.3h12.5v5z"}),bp=function(e){return ie.a.createElement("svg",mp({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),hp)};function vp(){return(vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var yp=ie.a.createElement("path",{d:"M24 38.9h-4.6V26.4H6.6V39H2V11.1h4.6v11.4h12.8V11.1H24v27.8zM47.2 17.5c0 1.8-.5 3.2-1.5 4.4-1 1.2-2.5 2-4.3 2.4v.2c2.2.3 3.9 1 5 2.1s1.7 2.6 1.7 4.4c0 2.7-.9 4.7-2.8 6.2s-4.6 2.2-8.1 2.2c-3.1 0-5.7-.5-7.8-1.5v-4c1.2.6 2.4 1 3.8 1.4 1.3.3 2.6.5 3.8.5 2.2 0 3.8-.4 4.8-1.2 1.1-.8 1.6-2 1.6-3.7 0-1.5-.6-2.6-1.8-3.3-1.2-.7-3-1-5.6-1h-2.4V23H36c4.4 0 6.7-1.5 6.7-4.6 0-1.2-.4-2.1-1.2-2.8-.8-.6-1.9-1-3.4-1-1.1 0-2.1.1-3 .4-1 .3-2.1.9-3.5 1.7l-2.2-3.1c2.6-1.9 5.5-2.8 8.9-2.8 2.8 0 5 .6 6.6 1.8 1.5 1.1 2.3 2.8 2.3 4.9z"}),kp=function(e){return ie.a.createElement("svg",vp({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),yp)};function Cp(){return(Cp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Op=ie.a.createElement("path",{d:"M23.5 37.9h-4.2V26.3H7.4v11.6H3.2V12.2h4.2v10.5h11.8V12.2h4.2v25.7zM46.8 32.3h-3.5v5.6h-4v-5.6H27.5v-3.2l11.7-17h4v16.7h3.5v3.5zm-7.5-3.5v-6.4c0-2.3.1-4.2.2-5.6h-.1c-.3.8-.8 1.7-1.5 2.8l-6.4 9.3h7.8z"}),xp=function(e){return ie.a.createElement("svg",Cp({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Op)};function _p(){return(_p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Sp=ie.a.createElement("path",{d:"M24.2 36.2h-3.7V26H10v10.2H6.3V13.5H10v9.3h10.5v-9.3h3.7v22.7zM36.3 22c2.3 0 4.1.6 5.4 1.8 1.3 1.2 2 2.9 2 5 0 2.4-.8 4.3-2.3 5.7s-3.7 2-6.5 2c-2.5 0-4.5-.4-6-1.2V32c.8.5 1.8.8 2.9 1.1s2.1.4 3 .4c1.6 0 2.9-.4 3.8-1.1.9-.7 1.3-1.8 1.3-3.2 0-2.7-1.7-4.1-5.2-4.1-.5 0-1.1 0-1.8.1s-1.3.2-1.9.3l-1.6-1 .9-11.1h11.8v3.2h-8.6l-.5 5.8c.4-.1.8-.1 1.3-.2.6-.1 1.2-.2 2-.2z"}),Ep=function(e){return ie.a.createElement("svg",_p({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Sp)};function jp(){return(jp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Tp=ie.a.createElement("path",{d:"M24.1 35.2h-3.3V26h-9.4v9.2H8.1V14.8h3.3v8.3h9.4v-8.3h3.3v20.4zM28.1 26.5c0-8 3.2-11.9 9.7-11.9 1 0 1.9.1 2.6.2v2.7c-.7-.2-1.5-.3-2.4-.3-2.2 0-3.8.6-4.9 1.8-1.1 1.2-1.7 3-1.8 5.6h.2c.4-.8 1-1.3 1.8-1.7.8-.4 1.7-.6 2.8-.6 1.8 0 3.3.6 4.3 1.7s1.5 2.7 1.5 4.6c0 2.1-.6 3.8-1.8 5.1-1.2 1.2-2.8 1.9-4.9 1.9-1.5 0-2.7-.3-3.8-1.1-1.1-.7-1.9-1.7-2.5-3.1-.5-1.4-.8-3-.8-4.9zm7.1 6.2c1.1 0 2-.4 2.6-1.1.6-.7.9-1.8.9-3.1 0-1.2-.3-2.1-.9-2.8-.6-.7-1.4-1-2.6-1-.7 0-1.4.2-1.9.5-.6.3-1.1.7-1.4 1.2-.3.5-.5 1.1-.5 1.6 0 1.3.4 2.4 1.1 3.3.7 1 1.6 1.4 2.7 1.4z"}),Pp=function(e){return ie.a.createElement("svg",jp({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Tp)};function Bp(){return(Bp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Mp=ie.a.createElement("path",{d:"M15.2 10.8H24c6.2 0 10.8 2.1 10.8 8.6 0 6.2-4.6 9-10.6 9h-4v10.2h-4.9V10.8zm8.6 13.7c4.2 0 6.1-1.7 6.1-5.1 0-3.5-2.2-4.6-6.3-4.6h-3.4v9.7h3.6z"}),Np=function(e){return ie.a.createElement("svg",Bp({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),Mp)},Ip=[{value:"h1",title:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Heading",_.i18n),1),icon:wp.element.createElement(gp,null)},{value:"h2",title:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Heading",_.i18n),2),icon:wp.element.createElement(bp,null)},{value:"h3",title:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Heading",_.i18n),3),icon:wp.element.createElement(kp,null)},{value:"h4",title:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Heading",_.i18n),4),icon:wp.element.createElement(xp,null)},{value:"h5",title:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Heading",_.i18n),5),icon:wp.element.createElement(Ep,null)},{value:"h6",title:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Heading",_.i18n),6),icon:wp.element.createElement(Pp,null)},{value:"p",title:Object(S.sprintf)(Object(S._x)("%s","Nth Title",_.i18n),Object(S.__)("Paragraph",_.i18n)),icon:wp.element.createElement(Np,null)}],Dp=function(e){return wp.element.createElement(Qa,M()({},e,{className:"ugb-heading-buttons-control",controls:Ip}))};Dp.defaultProps={label:Object(S.sprintf)(Object(S._x)("%s HTML Tag","component"),Object(S.__)("Title",_.i18n)),value:Ip[0].value};var Rp=[{value:"left",title:Object(S.__)("Align Left",_.i18n),icon:"editor-alignleft"},{value:"center",title:Object(S.__)("Align Center",_.i18n),icon:"editor-aligncenter"},{value:"right",title:Object(S.__)("Align Right",_.i18n),icon:"editor-alignright"},{value:"justify",title:Object(S.__)("Justified",_.i18n),icon:"editor-justify"}],zp=function(e){var t=e.justified,n=e.className;return wp.element.createElement(Qa,M()({},Object(R.omit)(e,["justified"]),{className:P()([n,"ugb-align-buttons-control"]),controls:Rp.filter(function(e){return!!t||"justify"!==e.value})}))};zp.defaultProps={className:"",label:Object(S.__)("Align",_.i18n),value:Rp[0].value,justified:!1};var Ap=zp,Lp={Edit:function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=Pt()(e,["blockProps","render","mainClass","blockTag"]),l=t.blockName,o=t.attributes,s=o.anchor,u=void 0===s?"":s,c=o.design,p=o.blockTag,f=void 0===p?"div":p,d=P()([e.className],Object(Q.applyFilters)("stackable.".concat(l,".main-block.classes"),{"ugb-main-block":a},t)),g=P()(["ugb-inner-block"],Object(Q.applyFilters)("stackable.".concat(l,".main-block.inner-classes"),{},t)),m=Object(Q.applyFilters)("stackable.".concat(l,".main-block.extraProps"),i,t),h=""!==u?u:void 0,b=f||r||"div";return wp.element.createElement(b,M()({},m,{id:h,className:d}),t.styles,Object(Q.applyFilters)("stackable.".concat(l,".edit.output.outer"),null,c,t),n&&wp.element.createElement("div",{className:g},Object(Q.applyFilters)("stackable.".concat(l,".edit.output.before"),null,c,t),wp.element.createElement("div",{className:"ugb-block-content"},n(t)),Object(Q.applyFilters)("stackable.".concat(l,".edit.output.after"),null,c,t)))}};Lp.Edit.defaultProps={styles:null,mainClass:!0},Lp.Save=function(e){var t=e.blockProps,n=e.render,a=e.mainClass,r=e.blockTag,i=Pt()(e,["blockProps","render","mainClass","blockTag"]),l=t.blockName,o=t.attributes,s=o.anchor,u=void 0===s?"":s,c=o.design,p=o.blockTag,f=void 0===p?"div":p,d=P()([e.className],Object(Q.applyFilters)("stackable.".concat(l,".main-block.classes"),{"ugb-main-block":a},t)),g=P()(["ugb-inner-block"],Object(Q.applyFilters)("stackable.".concat(l,".main-block.inner-classes"),{},t)),m=Object(Q.applyFilters)("stackable.".concat(l,".main-block.extraProps"),i,t),h=""!==u?u:void 0,b=f||r||"div";return wp.element.createElement(b,M()({},m,{id:h,className:d}),t.styles,Object(Q.applyFilters)("stackable.".concat(l,".save.output.outer"),null,c,t),n&&wp.element.createElement("div",{className:g},Object(Q.applyFilters)("stackable.".concat(l,".save.output.before"),null,c,t),wp.element.createElement("div",{className:"ugb-block-content"},n(t)),Object(Q.applyFilters)("stackable.".concat(l,".save.output.after"),null,c,t)))},Lp.Save.defaultProps={styles:null,mainClass:!0};var Fp=n(38),Up=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={value:e.props.value},e.uniqueId=Object(R.uniqueId)("ugb-code-textarea-"),e.onChange=e.onChange.bind(v()(e)),e.debouncedOnChange=Object(R.debounce)(e.debouncedOnChange.bind(v()(e)),500,{leading:!0}),e.codeMirror=null,e}return w()(t,e),f()(t,[{key:"componentWillUnmount",value:function(){this.debouncedOnChange.cancel(),this.codeMirror&&this.codeMirror.codemirror.off("change",this.onChange)}},{key:"componentDidMount",value:function(){Fp.initialize&&(this.codeMirror=Object(Fp.initialize)(this.uniqueId,ae()(Fp.defaultSettings,this.props.editorSettings)),this.codeMirror.codemirror.on("change",this.onChange))}},{key:"debouncedOnChange",value:function(e){this.props.onChange(e||this.state.value)}},{key:"onChange",value:function(e){var t=e.getValue?e.getValue():e;this.setState({value:t}),this.debouncedOnChange(t)}},{key:"render",value:function(){return wp.element.createElement("textarea",{className:"ugb-code-textarea",id:this.uniqueId,value:this.state.value,onChange:this.onChange})}}]),t}(k.Component);Up.defaultProps={value:"",onChange:function(){},editorSettings:{}};function Hp(){return(Hp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Vp=ie.a.createElement("path",{className:"curve-1_svg__st2",d:"M1610 177.3C1423 122.9 1133.3 88 808 88c-334.7 0-631.8 37-818 94.1v28h1620v-32.8z"}),Gp=function(e){return ie.a.createElement("svg",Hp({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Vp)};function Wp(){return(Wp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qp=ie.a.createElement("filter",{id:"curve-1-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Kp=ie.a.createElement("path",{className:"curve-1-shadow_svg__st2",d:"M808 87.9c-334.7 0-631.8 37-818 94.1v10c186.2-57.1 483.3-94.1 818-94.1 325.3 0 615 34.9 802 89.3v-10c-187-54.3-476.7-89.3-802-89.3z"}),$p=function(e){return ie.a.createElement("svg",Wp({viewBox:"0 0 1600 200",filter:"url(#curve-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),qp,Kp)};function Yp(){return(Yp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Qp=ie.a.createElement("path",{d:"M1610 78.3c-187 54.4-476.7 89.3-802 89.3-334.7 0-631.8-37-818-94.1v136.8h1620v-132z"}),Xp=function(e){return ie.a.createElement("svg",Yp({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Qp)};function Jp(){return(Jp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Zp=ie.a.createElement("filter",{id:"curve-1-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),ef=ie.a.createElement("path",{d:"M808 167.6c-334.7 0-631.8-37-818-94.1v10c186.2 57.1 483.3 94.1 818 94.1 325.3 0 615-34.9 802-89.3v-10c-187 54.4-476.7 89.3-802 89.3z"}),tf=function(e){return ie.a.createElement("svg",Jp({viewBox:"0 0 1600 200",filter:"url(#curve-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Zp,ef)};function nf(){return(nf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var af=ie.a.createElement("path",{className:"curve-2_svg__st2",d:"M-10 207.6h1620S1430.8 23.8 1138.3 23.8C884 23.8 234.9 140.1-10 197.9v9.7z"}),rf=function(e){return ie.a.createElement("svg",nf({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),af)};function lf(){return(lf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var of=ie.a.createElement("filter",{id:"curve-2-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),sf=ie.a.createElement("path",{className:"curve-2-shadow_svg__st2",d:"M1138.3 36.2c246.1 0 412 130.1 458.4 171.4h13.3S1430.8 23.8 1138.3 23.8C884 23.8 172 156.9-10 197.9v9.7H2.2C201.7 163.7 889.3 36.2 1138.3 36.2z"}),uf=function(e){return ie.a.createElement("svg",lf({viewBox:"0 0 1600 200",filter:"url(#curve-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),of,sf)};function cf(){return(cf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var pf=ie.a.createElement("path",{d:"M-10 207.4h1620S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v199.6z"}),ff=function(e){return ie.a.createElement("svg",cf({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),pf)};function df(){return(df=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var gf=ie.a.createElement("filter",{id:"curve-2-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),mf=ie.a.createElement("path",{d:"M1604.2 13.7c3.3-3.1 5.2 152.3 5.7 193.7h.1S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v10c244.9 57.8 894 174.1 1148.3 174.1 262 0 433.1-147.5 465.9-178.2z"}),hf=function(e){return ie.a.createElement("svg",df({viewBox:"0 0 1600 200",filter:"url(#curve-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),gf,mf)};function bf(){return(bf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var vf=ie.a.createElement("path",{className:"curve-3_svg__st1",d:"M-6.7 13.4S456 171.1 876.1 171.1 1606.4 16 1606.4 16v192.6H-6.7V13.4z"}),yf=function(e){return ie.a.createElement("svg",bf({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),vf)};function wf(){return(wf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var kf=ie.a.createElement("filter",{id:"curve-3-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Cf=ie.a.createElement("path",{className:"curve-3-shadow_svg__st1",d:"M876.1 171.1C456 171.1-6.7 13.4-6.7 13.4v13.7S456 184.8 876.1 184.8s730.3-155.1 730.3-155.1V16s-310.3 155.1-730.3 155.1z"}),Of=function(e){return ie.a.createElement("svg",wf({viewBox:"0 0 1600 200",filter:"url(#curve-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),kf,Cf)};function xf(){return(xf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _f=ie.a.createElement("path",{d:"M-6.6 177.6S456.1 40.3 876.2 40.3s730.3 135.1 730.3 135.1v33.5H-6.6v-31.3z"}),Sf=function(e){return ie.a.createElement("svg",xf({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),_f)};function Ef(){return(Ef=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var jf=ie.a.createElement("filter",{id:"curve-3-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Tf=ie.a.createElement("path",{d:"M876.2 40.3C456.1 40.3-6.5 177.6-6.5 177.6v10S456.2 50.3 876.3 50.3s730.3 135.1 730.3 135.1v-10c0-.1-310.3-135.1-730.4-135.1z"}),Pf=function(e){return ie.a.createElement("svg",Ef({viewBox:"0 0 1600 200",filter:"url(#curve-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),jf,Tf)};function Bf(){return(Bf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Mf=ie.a.createElement("path",{className:"rounded-1_svg__st1",d:"M1602.9 209l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2V209h1610.9z"}),Nf=function(e){return ie.a.createElement("svg",Bf({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Mf)};function If(){return(If=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Df=ie.a.createElement("filter",{id:"rounded-1-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Rf=ie.a.createElement("path",{className:"rounded-1-shadow_svg__st1",d:"M1491.2 20.7c48.1-3.8 90.6 32.5 94.4 80.6l8.5 107.7h8.8l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2v9.4L1491.2 20.7z"}),zf=function(e){return ie.a.createElement("svg",If({viewBox:"0 0 1600 200",filter:"url(#rounded-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Df,Rf)};function Af(){return(Af=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Lf=ie.a.createElement("path",{d:"M1604.5-2.7l-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v148.5h1613.9l-1.4-213z"}),Ff=function(e){return ie.a.createElement("svg",Af({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Lf)};function Uf(){return(Uf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Hf=ie.a.createElement("filter",{id:"rounded-1-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Vf=ie.a.createElement("path",{d:"M1596.6 111.7l8.2-78-.2-36.4-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v10l1507.2 120.5c48.1 3.8 93.6-32.5 97.4-80.6z"}),Gf=function(e){return ie.a.createElement("svg",Uf({viewBox:"0 0 1600 200",filter:"url(#rounded-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Hf,Vf)};function Wf(){return(Wf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qf=ie.a.createElement("path",{className:"rounded-2_svg__st2",d:"M1609.5 133.2h-9.5c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2l-10-.2v77h1619.5v-76.8z"}),Kf=function(e){return ie.a.createElement("svg",Wf({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),qf)};function $f(){return($f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Yf=ie.a.createElement("filter",{id:"rounded-2-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Qf=ie.a.createElement("path",{className:"rounded-2-shadow_svg__st2",d:"M1600 133.2c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2V210h9v-66.8c0-10.9 8.9-19.8 19.8-19.8h1542.4c10.9 0 19.8 8.9 19.8 19.8V210h9v-76.8z"}),Xf=function(e){return ie.a.createElement("svg",$f({viewBox:"0 0 1600 200",filter:"url(#rounded-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Yf,Qf)};function Jf(){return(Jf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Zf=ie.a.createElement("path",{d:"M1609.5 128.5h-9.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v83.1h1619.5v-83.3z"}),ed=function(e){return ie.a.createElement("svg",Jf({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Zf)};function td(){return(td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var nd=ie.a.createElement("filter",{id:"rounded-2-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),ad=ie.a.createElement("path",{d:"M1600 128.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v10l10-.2c0 11 8.9 19.9 19.8 19.8h1560.4c10.9 0 19.8-8.9 19.8-19.8h9.5v-10h-9.5z"}),rd=function(e){return ie.a.createElement("svg",td({viewBox:"0 0 1600 200",filter:"url(#rounded-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),nd,ad)};function id(){return(id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ld=ie.a.createElement("path",{d:"M1610.5 189.1s-128.2-82.6-138.2-89.2c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v50h1620v-24.1z"}),od=function(e){return ie.a.createElement("svg",id({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ld)};function sd(){return(sd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ud=ie.a.createElement("filter",{id:"rounded-3-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),cd=ie.a.createElement("path",{d:"M1472.3 99.9c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v10s449.8-106 489.8-115.5 90.8-9.7 121.1-8.2c30.3 1.6 734.2 39.7 783.9 42.3 49.8 2.6 69.9 6.8 87 18.1 10 6.6 138.2 89.2 138.2 89.2v-10s-128.2-82.6-138.2-89.2z"}),pd=function(e){return ie.a.createElement("svg",sd({viewBox:"0 0 1600 200",filter:"url(#rounded-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),ud,cd)};function fd(){return(fd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var dd=ie.a.createElement("path",{d:"M1610.5 24.1s-128.2 82.6-138.2 89.2c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v158.9h1620V24.1z"}),gd=function(e){return ie.a.createElement("svg",fd({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),dd)};function md(){return(md=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var hd=ie.a.createElement("filter",{id:"rounded-3-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),bd=ie.a.createElement("path",{d:"M1472.3 113.3c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v10s449.8 106 489.8 115.5 90.8 9.7 121.1 8.2c30.3-1.6 734.2-39.7 783.9-42.3 49.8-2.6 69.9-6.8 87-18.1 10-6.6 138.2-89.2 138.2-89.2v-10s-128.2 82.6-138.2 89.2z"}),vd=function(e){return ie.a.createElement("svg",md({viewBox:"0 0 1600 200",filter:"url(#rounded-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),hd,bd)};function yd(){return(yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var wd=ie.a.createElement("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}),kd=function(e){return ie.a.createElement("svg",yd({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),wd)};function Cd(){return(Cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Od=ie.a.createElement("filter",{id:"slant-1-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),xd=ie.a.createElement("path",{className:"slant-1-shadow_svg__st2",d:"M-10 183.9v10L1610 10.5V.5z"}),_d=function(e){return ie.a.createElement("svg",Cd({viewBox:"0 0 1600 200",filter:"url(#slant-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Od,xd)};function Sd(){return(Sd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ed=ie.a.createElement("path",{d:"M1610 210H-10V.5l1620 183.4z"}),jd=function(e){return ie.a.createElement("svg",Sd({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ed)};function Td(){return(Td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Pd=ie.a.createElement("filter",{id:"slant-1-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Bd=ie.a.createElement("path",{d:"M-10 .5v10l1620 183.4v-10z"}),Md=function(e){return ie.a.createElement("svg",Td({viewBox:"0 0 1600 200",filter:"url(#slant-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Pd,Bd)};function Nd(){return(Nd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Id=ie.a.createElement("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}),Dd=function(e){return ie.a.createElement("svg",Nd({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Id)};function Rd(){return(Rd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var zd=ie.a.createElement("filter",{id:"slant-2-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Ad=ie.a.createElement("path",{className:"slant-2-shadow_svg__st1",d:"M1610 39.2v12L800 170.1-10 51.2v-12l810 118.9 810-118.9z"}),Ld=function(e){return ie.a.createElement("svg",Rd({viewBox:"0 0 1600 200",filter:"url(#slant-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),zd,Ad)};function Fd(){return(Fd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ud=ie.a.createElement("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}),Hd=function(e){return ie.a.createElement("svg",Fd({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Ud)};function Vd(){return(Vd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Gd=ie.a.createElement("filter",{id:"slant-2-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Wd=ie.a.createElement("path",{d:"M800 41.1L-10 160v10L800 51.1 1610 170v-10z"}),qd=function(e){return ie.a.createElement("svg",Vd({viewBox:"0 0 1600 200",filter:"url(#slant-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Gd,Wd)};function Kd(){return(Kd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var $d=ie.a.createElement("path",{d:"M-10 210h1620V105.2H-10z"}),Yd=function(e){return ie.a.createElement("svg",Kd({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),$d)};function Qd(){return(Qd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Xd=ie.a.createElement("filter",{id:"straight-1-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Jd=ie.a.createElement("path",{d:"M-10 121.6h1620v-16.4H-10z"}),Zd=function(e){return ie.a.createElement("svg",Qd({viewBox:"0 0 1600 200",filter:"url(#straight-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Xd,Jd)};function eg(){return(eg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var tg=ie.a.createElement("path",{className:"wave-1_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7V210h1620V102c-110.6-40.2-181-53.1-268.6-53.1z"}),ng=function(e){return ie.a.createElement("svg",eg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),tg)};function ag(){return(ag=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var rg=ie.a.createElement("filter",{id:"wave-1-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),ig=ie.a.createElement("path",{className:"wave-1-shadow_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7v10s91.9 35.9 203.9 35.9 182.4-38.8 324.6-38.8c183.8 0 275.7 67.5 393.5 67.5 175.2 0 247-80.4 429.4-80.4 87.6 0 158 12.9 268.6 53.1v-10c-110.6-40.2-181-53.1-268.6-53.1z"}),lg=function(e){return ie.a.createElement("svg",ag({viewBox:"0 0 1600 200",filter:"url(#wave-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),rg,ig)};function og(){return(og=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var sg=ie.a.createElement("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v75.9h1620V98.3c-110.6 40.2-181 53.1-268.6 53.1z"}),ug=function(e){return ie.a.createElement("svg",og({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),sg)};function cg(){return(cg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var pg=ie.a.createElement("filter",{id:"wave-1-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),fg=ie.a.createElement("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v10s91.9-35.9 203.9-35.9 182.4 38.8 324.6 38.8C702.3 148.5 794.2 81 912 81c175.2 0 247 80.4 429.4 80.4 87.6 0 158-12.9 268.6-53.1v-10c-110.6 40.2-181 53.1-268.6 53.1z"}),dg=function(e){return ie.a.createElement("svg",cg({viewBox:"0 0 1600 200",filter:"url(#wave-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),pg,fg)};function gg(){return(gg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var mg=ie.a.createElement("path",{className:"wave-2_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3V210h1620V91.6c-53 10-86.8-7.1-177.8-24.2z"}),hg=function(e){return ie.a.createElement("svg",gg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),mg)};function bg(){return(bg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var vg=ie.a.createElement("filter",{id:"wave-2-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),yg=ie.a.createElement("path",{className:"wave-2-shadow_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3v10s77.1 31.5 171.6 3c69.7-21 174.7-62.6 294.4-73 115-10 163.1 3.4 274.1 23.8 111 20.4 199.6 39.5 275 27.9 76-11.7 175.1-60.1 223.1-73.9s115.2-25.2 204-8.5c91 17.1 124.8 34.2 177.8 24.2v-10c-53 10-86.8-7.1-177.8-24.2z"}),wg=function(e){return ie.a.createElement("svg",bg({viewBox:"0 0 1600 200",filter:"url(#wave-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),vg,yg)};function kg(){return(kg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Cg=ie.a.createElement("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v155.2h1620V132c-53-10-86.8 7.1-177.8 24.2z"}),Og=function(e){return ie.a.createElement("svg",kg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Cg)};function xg(){return(xg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _g=ie.a.createElement("filter",{id:"wave-2-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Sg=ie.a.createElement("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v10s77.1-31.5 171.6-3c69.7 21 174.7 62.6 294.4 73 115 10 163.1-3.4 274.1-23.8 111-20.4 199.6-39.5 275-27.9 76 11.7 175.1 60.1 223.1 73.9s115.2 25.2 204 8.5c91-17.1 124.8-34.2 177.8-24.2v-10c-53-10-86.8 7.1-177.8 24.2z"}),Eg=function(e){return ie.a.createElement("svg",xg({viewBox:"0 0 1600 200",filter:"url(#wave-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),_g,Sg)};function jg(){return(jg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Tg=ie.a.createElement("path",{className:"wave-3_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.4 102-10 136.2-10 136.2v74.2h1620v-68.5s-68.8 19.5-196.4 19.5z"}),Pg=function(e){return ie.a.createElement("svg",jg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Tg)};function Bg(){return(Bg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Mg=ie.a.createElement("filter",{id:"wave-3-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Ng=ie.a.createElement("path",{className:"wave-3-shadow_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.5 102-10 136.2-10 136.2v10s69.9-5.7 198.5-34.3 221.7-45.7 311.8-49.1 202.6.3 418.2 41.1c156.9 29.7 337.2 67.4 495.1 67.4 127.6 0 196.4-19.4 196.4-19.4v-10s-68.8 19.5-196.4 19.5z"}),Ig=function(e){return ie.a.createElement("svg",Bg({viewBox:"0 0 1600 200",filter:"url(#wave-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Mg,Ng)};function Dg(){return(Dg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Rg=ie.a.createElement("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7-10 64.5-10 64.5v150.2h1620V58.8s-68.8-19.5-196.4-19.5z"}),zg=function(e){return ie.a.createElement("svg",Dg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Rg)};function Ag(){return(Ag=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Lg=ie.a.createElement("filter",{id:"wave-3-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Fg=ie.a.createElement("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7C59.8 70.1-10 64.5-10 64.5v10s69.8 5.6 198.4 34.2c128.6 28.6 221.8 45.6 311.9 49.1s202.6-.3 418.2-41.1c156.9-29.7 337.2-67.4 495.1-67.4 127.6 0 196.4 19.5 196.4 19.5v-10s-68.8-19.5-196.4-19.5z"}),Ug=function(e){return ie.a.createElement("svg",Ag({viewBox:"0 0 1600 200",filter:"url(#wave-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Lg,Fg)};function Hg(){return(Hg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Vg=ie.a.createElement("path",{d:"M1610 209.7v-51.2s-81.4-33.3-241.4-23.1c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v154h1620z"}),Gg=function(e){return ie.a.createElement("svg",Hg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Vg)};function Wg(){return(Wg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qg=ie.a.createElement("filter",{id:"wave-4-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),Kg=ie.a.createElement("path",{d:"M1368.6 135.4c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v10c90 56.1 248.1 20.6 362.8 8 114.4-12.3 171 18.4 209.2 43.1 38.2 24.8 87.3 21.4 106 19.3 18.6-2.1 109.8-2 185.5 25.1 53.2 19 81.1 33.5 174.2 33.6 93 .2 183.5-39.4 340.9-49.4 160-10.2 241.4 23.1 241.4 23.1v-10s-81.4-33.3-241.4-23.1z"}),$g=function(e){return ie.a.createElement("svg",Wg({viewBox:"0 0 1600 200",filter:"url(#wave-4-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),qg,Kg)};function Yg(){return(Yg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Qg=ie.a.createElement("path",{d:"M1610 208.9V79.2s-81.4 33.3-241.4 23.1c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v26.9h1620z"}),Xg=function(e){return ie.a.createElement("svg",Yg({viewBox:"0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Qg)};function Jg(){return(Jg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Zg=ie.a.createElement("filter",{id:"wave-4-inverted-shadow_svg__a"},ie.a.createElement("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),ie.a.createElement("feComponentTransfer",null,ie.a.createElement("feFuncA",{type:"linear",slope:.4})),ie.a.createElement("feMerge",null,ie.a.createElement("feMergeNode",null),ie.a.createElement("feMergeNode",{in:"SourceGraphic"}))),em=ie.a.createElement("path",{d:"M1368.6 102.3c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v10c90-56.1 248.1-20.6 362.8-8 114.4 12.3 171-18.4 209.2-43.1 38.2-24.8 87.3-21.4 106-19.3 18.6 2.1 109.8 2 185.5-25.1 53.2-19 81.1-33.5 174.2-33.6 93-.2 183.5 39.4 340.9 49.4 160 10.2 241.4-23.1 241.4-23.1v-10s-81.4 33.3-241.4 23.1z"}),tm={"wave-1":{default:{shape:ng,shadow:lg},inverted:{shape:ug,shadow:dg}},"wave-2":{default:{shape:hg,shadow:wg},inverted:{shape:Og,shadow:Eg}},"wave-3":{default:{shape:Pg,shadow:Ig},inverted:{shape:zg,shadow:Ug}},"wave-4":{default:{shape:Gg,shadow:$g},inverted:{shape:Xg,shadow:function(e){return ie.a.createElement("svg",Jg({viewBox:"0 0 1600 200",filter:"url(#wave-4-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200",xmlns:"http://www.w3.org/2000/svg"},e),Zg,em)}}},"curve-1":{default:{shape:Gp,shadow:$p},inverted:{shape:Xp,shadow:tf}},"curve-2":{default:{shape:rf,shadow:uf},inverted:{shape:ff,shadow:hf}},"curve-3":{default:{shape:yf,shadow:Of},inverted:{shape:Sf,shadow:Pf}},"slant-1":{default:{shape:kd,shadow:_d},inverted:{shape:jd,shadow:Md}},"slant-2":{default:{shape:Dd,shadow:Ld},inverted:{shape:Hd,shadow:qd}},"straight-1":{default:{shape:Yd,shadow:Zd},inverted:{shape:Yd,shadow:Zd}},"rounded-1":{default:{shape:Nf,shadow:zf},inverted:{shape:Ff,shadow:Gf}},"rounded-2":{default:{shape:Kf,shadow:Xf},inverted:{shape:ed,shadow:rd}},"rounded-3":{default:{shape:od,shadow:pd},inverted:{shape:gd,shadow:vd}}},nm=function(e){var t=tm[e.design||"wave-1"][e.inverted?"inverted":"default"],n=t.shape,a=t.shadow,r=P()([e.className,"ugb-separator-wrapper"]);return wp.element.createElement("div",{className:r},e.shadow&&wp.element.createElement(a,{className:"ugb-separator__shadow",preserveAspectRatio:"none","aria-hidden":"true"}),wp.element.createElement(n,{className:"ugb-separator__layer-1",preserveAspectRatio:"none","aria-hidden":"true"}),e.children)};nm.defaultProps={className:"",design:"wave-1",shadow:!1,inverted:!1},nm.Save=function(e){return wp.element.createElement(nm,e)};var am=function(e){var t,n=P()([e.className,"ugb-img"],(t={},r()(t,"wp-image-".concat(e.imageId),e.imageId),r()(t,"ugb-img--shape",e.shape),r()(t,"ugb-image--shape-stretch",e.shapeStretch),r()(t,"ugb--shadow-".concat(e.shadow),!e.shape&&e.shadow),t));return wp.element.createElement("img",{className:n,src:e.src||void 0,alt:I()(e.alt||void 0),width:e.width||void 0,height:e.height||void 0})};am.defaultProps={imageId:"",alt:"",src:"",size:"full",width:"",height:"",shape:"",shapeStretch:!1,shadow:""};var rm=n(33),im=wp.element.createElement(x.Icon,{icon:function(){return Ei(wp.element.createElement(Oi,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}}),lm=wp.element.createElement(x.Icon,{icon:function(){return Ei(wp.element.createElement(Si,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}});var om=Object(Ot.compose)([Object(he.withSelect)(function(e,t){var n=t.clientIds,a=e("core/block-editor"),r=a.getBlockRootClientId,i=a.getBlocksByClientId,l=(0,a.canInsertBlockType)("ugb/container",n&&n.length>0?r(n[0]):void 0),o=i(n),s=1===o.length&&o[0]&&"ugb/container"===o[0].name;return{isGroupable:l&&o.length&&!s,isUngroupable:s&&!!o[0].innerBlocks.length,blocksSelection:o,groupingBlockName:"ugb/container"}}),Object(he.withDispatch)(function(e,t){var n=t.clientIds,a=t.onToggle,r=void 0===a?R.noop:a,i=t.blocksSelection,l=void 0===i?[]:i,o=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){if(l.length){var e=l.map(function(e){return Object(je.cloneBlock)(e)}),t=Object(je.createBlock)("ugb/container",{},e);o(n,t),r()}},onConvertFromGroup:function(){if(l.length){var e=l[0].innerBlocks;e.length&&(o(n,e),r())}}}})])(function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,a=e.isGroupable,r=void 0!==a&&a,i=e.isUngroupable,l=void 0!==i&&i;return Object(he.select)("core/block-editor").getSelectedBlockClientIds?wp.element.createElement(k.Fragment,null,r&&wp.element.createElement(rm.PluginBlockSettingsMenuItem,{icon:im,label:Object(S.__)("Group into Container",_.i18n),onClick:t}),l&&wp.element.createElement(rm.PluginBlockSettingsMenuItem,{icon:lm,label:Object(S.__)("Ungroup from Container",_.i18n),onClick:n})):null}),sm=(Object(he.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientIds;return t?{clientIds:t()}:{}})(om),Object(Ot.withState)({openPopover:!1,changed:!1})(function(e){var t=e.blockName,n=e.openPopover,a=e.changed,r=e.setState,i=e.getJSONBlockAttributes,l=e.setJSONBlockAttributes;return wp.element.createElement(k.Fragment,null,wp.element.createElement(rm.PluginBlockSettingsMenuItem,{icon:"editor-code",label:"Get / Set Block Attributes",onClick:function(){r({openPopover:!0,changed:!1}),setTimeout(function(){return document.querySelector(".ugb-modal-get-block-attributes-button textarea").select()},100)}}),n&&wp.element.createElement(x.Modal,{title:"".concat(Object(R.startCase)(t)," Block Attributes"),focusOnMount:!0,className:"ugb-modal-get-block-attributes-button",onRequestClose:function(){if(a){var e=document.querySelector(".ugb-modal-get-block-attributes-button textarea").value;l(e)}r({openPopover:!1})}},wp.element.createElement("p",null,'Copy or modify the attributes of the block directly. Use only double quotes "'),wp.element.createElement("textarea",{onChange:function(){return r({changed:!0})}},i())))})),um=Object(Ot.compose)([Object(he.withSelect)(function(e,t){var n=t.clientId,a=e("core/block-editor").getBlockName;return{blockName:n&&a(n)?a(n).replace(/^\w+\//g,""):"",getJSONBlockAttributes:function(){var t=e("core/block-editor").getBlockName,a=e("core/blocks").getBlockType;if(!n)return{};var r=e("core/block-editor").getBlockAttributes(n),i=t(n).replace(/^\w+\//g,""),l=a(t(n)).attributes,o=Object.keys(r).reduce(function(e,t){return r[t]!==(l[t]?l[t].default:"")&&(e[t]=r[t]),e},{});return o.uniqueClass=void 0,JSON.stringify(Object(Q.applyFilters)("stackable.".concat(i,".design.filtered-block-attributes"),o),null,4)}}}),Object(he.withDispatch)(function(e,t){var n=t.clientId;return{setJSONBlockAttributes:function(e){if(n)try{var t=JSON.parse(e);Ne(t,n)}catch(e){console.error(e)}}}})])(sm),cm=(Object(he.withSelect)(function(e){var t=e("core/block-editor").getSelectedBlockClientId;return t?{clientId:t()}:{}})(um),function(e){var t=e.blockTag,n=e.className,a=e.backgroundAttrName,r=e.blockProps,i=e.showBackground,l=e.showVideoBackground,o=Pt()(e,["blockTag","className","backgroundAttrName","blockProps","showBackground","showVideoBackground"]),s=P()([n],{"ugb--has-background-overlay":i&&te(a,r.attributes)});return wp.element.createElement(t,M()({className:s},Object(R.omit)(o,"index")),e.children,i&&l&&function(e,t){var n=_e(t.attributes,function(t){return Object(R.camelCase)(Object(S.sprintf)(e,t))},""),a=n("BackgroundMediaUrl"),r=n("TabletBackgroundMediaUrl"),i=n("MobileBackgroundMediaUrl"),l=P()(["ugb-video-background"],{"ugb--video-hide-tablet":r,"ugb--video-hide-mobile":i}),o=P()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-mobile":i}),s=P()(["ugb-video-background"],{"ugb--video-hide-desktop":!0,"ugb--video-hide-tablet":!0});return wp.element.createElement(k.Fragment,null,Ve(a)&&wp.element.createElement("video",{className:l,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:a}),Ve(r)&&wp.element.createElement("video",{className:o,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:r}),Ve(i)&&wp.element.createElement("video",{className:s,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:i}))}(a,r),Object(Q.applyFilters)("stackable.div-background.output.after",null,e,r))});cm.defaultProps={className:"",backgroundAttrName:"%s",blockProps:{},showBackground:!0,showVideoBackground:!0,blockTag:"div"};var pm=function(e){return wp.element.createElement(x.Modal,{title:Object(S.__)("Stackable Welcome Guide",_.i18n),className:"ugb-modal-welcome-video",overlayClassName:"ugb-modal-welcome-video__overlay",shouldCloseOnClickOutside:!1,onRequestClose:e.onRequestClose},wp.element.createElement("p",null,Object(S.__)("Hello there 👋 I see you might be new to Stackable, we've made a short 3-minute video so you can make the most out of our unique blocks.",_.i18n)),wp.element.createElement("iframe",{title:Object(S.__)("Video Tutorial",_.i18n),width:"800",height:"413",src:"https://www.youtube.com/embed/UW0Rg96aATA",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),wp.element.createElement("p",null,wp.element.createElement(mt,{className:"button-primary",onClick:e.onRequestClose,"data-testid":"button-close"},Object(S.__)("Close it, I'm good",_.i18n))))};pm.defaultProps={onRequestClose:function(){}};function fm(){return(fm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var dm=ie.a.createElement("path",{d:"M38 12H12v26h26V12z"}),gm=function(e){return ie.a.createElement("svg",fm({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),dm)};function mm(){return(mm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var hm=ie.a.createElement("path",{d:"M12.5 12.5H0V0h12.5v12.5zM31.2 0H18.8v12.5h12.5V0zM50 0H37.5v12.5H50V0zM12.5 18.8H0v12.5h12.5V18.8zm18.7 0H18.8v12.5h12.5V18.8zm18.8 0H37.5v12.5H50V18.8zM12.5 37.5H0V50h12.5V37.5zm18.7 0H18.8V50h12.5V37.5zm18.8 0H37.5V50H50V37.5z"}),bm=function(e){return ie.a.createElement("svg",mm({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),hm)};function vm(){return(vm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ym=ie.a.createElement("path",{d:"M21.1 5.3H5.3v15.8h15.8V5.3zm23.6 0H28.9v15.8h15.8V5.3zM21.1 28.9H5.3v15.8h15.8V28.9zm23.6 0H28.9v15.8h15.8V28.9z"}),wm=function(e){return ie.a.createElement("svg",vm({viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},e),ym)},km=void 0;function Cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cm(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xm=function(e){var t=Object(k.useState)([]),n=l()(t,2),a=n[0],r=n[1],i=Object(k.useState)({}),o=l()(i,2),s=o[0],u=o[1],c=Object(k.useState)({}),p=l()(c,2),f=p[0],d=p[1],g=Object(k.useState)(0),m=l()(g,2),h=m[0],b=m[1],v=Object(k.useState)(0),y=l()(v,2),w=y[0],C=y[1],O=Object(k.useState)(0),x=l()(O,2),E=x[0],j=x[1],T=Object(k.useState)(""),B=l()(T,2),M=B[0],N=B[1],I=e.viewBy;Object(k.useEffect)(function(){nn().then(function(e){var t=e.reduce(function(e,t){if(!e[t]){if(Object(he.select)("core/edit-post").getPreference("hiddenBlockTypes").includes(t))return e;if(!Object(he.select)("core/blocks").getBlockType(t))return e;e[t]={count:0,name:t,label:t?Object(he.select)("core/blocks").getBlockType(t).title:""}}return e},{});d(t)})},[]),Object(k.useEffect)(function(){Object.keys(f).length&&en({type:"block",search:e.search,mood:e.mood,colors:e.colors}).then(function(t){var n=Object.keys(f).reduce(function(e,t){return e[t]=Om({},f[t]),e},{}),a=Object.keys(s).reduce(function(e,t){return void 0!==e[t]&&(e[t].num=0),e},{}),i=0,l=0,o=t.reduce(function(t,n){var r=n.block,o=n.type,s=n.plan,u=n.categories;if("block"===o&&t[r]&&t[r].count++,e.forceBlock&&e.forceBlock!==n.block||(l++,"free"===s&&i++),u&&3===u.length){var c=Object(R.last)(u);void 0===a[c]&&(a[c]={label:Object(R.startCase)(Object(R.last)(u)),num:0,isPremium:"free"!==s}),a[c].num++}return t},Om({},n));u(a),b(l),C(i),j(l-i),r(Object(R.orderBy)(o,["title"],["asc"]))})},[f,e.search,e.mood]);var D=Object(k.useMemo)(function(){var e=Object.keys(s);return _.isPro||e.sort(function(e,t){return!s[e].isPremium&&s[t].isPremium?-1:s[e].isPremium&&!s[t].isPremium?1:0}),e},[JSON.stringify(s)]),z=!0;return wp.element.createElement("ul",{className:"ugb-block-list"},wp.element.createElement(Qa,{controls:[{value:"ui-kits",title:Object(S.__)("UI Kits",_.i18n)},{value:"block-designs",title:Object(S.__)("Block Designs",_.i18n)}],value:I,onChange:e.onChangeViewBy,isSmall:!0,fullwidth:!1,isToggleOnly:!0}),"ui-kits"===I&&D.reduce(function(t,n,a){var r=(""===M&&0===a||M===n)&&!e.forceBlock,i=P()({"is-active":r,"is-disabled":e.forceBlock}),l=s[n].label,o=s[n].num;return!_.isPro&&z&&s[n].isPremium&&(t.push(wp.element.createElement(Ll,null)),z=!1),t.push(wp.element.createElement("li",{key:a},wp.element.createElement("div",{className:i,"data-count":o,onClick:function(){e.forceBlock||(N(n),e.onSelect({block:"",plan:"",categories:[n]}))},onKeyPress:function(e){13===e.keyCode&&km.click()},role:"button",tabIndex:0,"aria-pressed":r?"true":"false"},l,wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"".concat(l,"-count")},o)))),t},[]),"block-designs"===I&&wp.element.createElement("li",null,wp.element.createElement("div",{className:""===M?"is-active":"","data-count":h,onClick:function(){N(""),e.onSelect({block:"",plan:"",categories:[]})},onKeyPress:function(e){13===e.keyCode&&km.click()},role:"button",tabIndex:0,"aria-pressed":""===M?"true":"false"},Object(S.__)("All Block Designs",_.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"all-count"},h))),"block-designs"===I&&h!==w&&wp.element.createElement("li",null,wp.element.createElement("div",{className:"free"===M?"is-active":"","data-count":w,onClick:function(){N("free"),e.onSelect({block:"",plan:"free",categories:[]})},onKeyPress:function(e){13===e.keyCode&&km.click()},role:"button",tabIndex:0,"aria-pressed":"free"===M?"true":"false"},Object(S.__)("Free Designs",_.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"free-count"},w)),wp.element.createElement("div",{className:"premium"===M?"is-active":"","data-count":E,onClick:function(){N("premium"),e.onSelect({block:"",plan:"premium",categories:[]})},onKeyPress:function(e){13===e.keyCode&&km.click()},role:"button",tabIndex:0,"aria-pressed":"premium"===M?"true":"false"},Object(S.__)("Premium Designs",_.i18n),wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"premium-count"},E))),"block-designs"===I&&wp.element.createElement(Ll,null),"block-designs"===I&&a.map(function(t,n){var a=M===t.name||t.name===e.forceBlock,r=P()({"is-active":a,"is-disabled":e.forceBlock&&t.name!==e.forceBlock});return wp.element.createElement("li",{key:n},wp.element.createElement("div",{className:r,"data-count":t.count,onClick:function(){e.forceBlock||(N(t.name),e.onSelect({block:t.name,plan:"",categories:[]}))},onKeyPress:function(e){13===e.keyCode&&km.click()},role:"button",tabIndex:0,"aria-pressed":a?"true":"false"},t.label,wp.element.createElement("span",{className:"ugb-block-list__count","data-testid":"".concat(t.name,"-count")},t.count)))}))};xm.defaultProps={search:"",mood:"",colors:[],categories:[],onSelect:function(){},forceBlock:"",viewBy:"",onChangeViewBy:function(){}};var _m=xm,Sm=function(e){var t=Object(k.useState)(e.search),n=l()(t,2),a=n[0],r=n[1],i=Object(k.useState)(),o=l()(i,2),s=o[0],u=o[1],c=Object(k.useState)(""),p=l()(c,2),f=p[0],d=p[1],g=Object(k.useState)([]),m=l()(g,2),h=m[0],b=m[1],v=Object(k.useState)(3),y=l()(v,2),w=y[0],C=y[1],O=Object(k.useState)([]),E=l()(O,2),j=E[0],T=E[1],P=Object(k.useState)(!0),B=l()(P,2),M=B[0],N=B[1],I=Object(k.useState)(!1),D=l()(I,2),z=D[0],A=D[1],L=Object(k.useState)(e.selectedBlock?"block-designs":"ui-kits"),F=l()(L,2),U=F[0],H=F[1],V=Ie("stk__design_library_dev_mode",!1),G=l()(V,2),W=G[0],q=G[1],K=Object(k.useState)(""),$=l()(K,2),Y=$[0],Q=$[1];Object(k.useEffect)(function(){return u(e.selectedBlock)},[e.selectedBlock]);var X=Object(k.useState)(a),J=l()(X,2),Z=J[0],ee=J[1],te=Object(k.useState)(null),ne=l()(te,2),ae=ne[0],re=ne[1];Object(k.useEffect)(function(){ae&&(clearTimeout(ae),re(null)),re(setTimeout(function(){ee(a)},500))},[a]),Object(k.useEffect)(function(){var e=document.querySelector(".ugb-modal-design-library__search input");e&&e.focus()},[]),Object(k.useEffect)(function(){z&&(T([]),N(!0)),en({type:"block",block:s,plan:f,categories:h,search:Z,reset:z}).then(function(e){T(e),Y||e.some(function(e){return _.isPro||"free"!==e.plan?!!_.isPro&&(Q(Object(R.last)(e.categories)),!0):(Q(Object(R.last)(e.categories)),!0)})}).finally(function(){N(!1),A(!1)})},[s,f,h,Z,z]);var ie=Object(k.useMemo)(function(){var t=e.selectedBlock?j.filter(function(t){return t.block===e.selectedBlock}):j;return"ui-kits"===U&&0===h.length&&(t=t.filter(function(e){return e.categories.includes(Y)})),t},[e.selectedBlock,j,U,h.length,Y]);return wp.element.createElement(x.Modal,{title:Object(S.__)("Stackable Design Library",_.i18n),className:"ugb-modal-design-library",onRequestClose:e.onClose},wp.element.createElement("div",{className:"ugb-modal-design-library__wrapper"},wp.element.createElement("aside",{className:"ugb-modal-design-library__sidebar"},wp.element.createElement(x.TextControl,{className:"ugb-modal-design-library__search",placeholder:Object(S.__)("E.g. light, dark, red, minimalist...",_.i18n),value:a,onChange:function(e){return r(e)},"data-testid":"input-search",type:"search"}),wp.element.createElement("div",{className:"ugb-modal-design-library__filters"},wp.element.createElement(_m,{search:a,categories:h,forceBlock:e.selectedBlock,viewBy:U,onSelect:function(e){var t=e.block,n=e.plan,a=e.categories;u(t),d(n),b(a)},onChangeViewBy:H}))),wp.element.createElement("aside",{className:"ugb-modal-design-library__topbar"},_.devMode&&wp.element.createElement(x.ToggleControl,{className:"ugb-modal-design-library__dev-mode",label:"Dev Mode",checked:W,onChange:function(e){Zt(e).then(function(){A(!0)}),q(e)}}),wp.element.createElement(mt,{icon:"image-rotate",label:Object(S.__)("Refresh Library",_.i18n),className:"ugb-modal-design-library__refresh",onClick:function(){return A(!0)}}),wp.element.createElement(mt,{icon:wp.element.createElement(gm,{width:"18",height:"18"}),className:2===w?"is-active":"",label:Object(S.__)("Large preview",_.i18n),onClick:function(){return C(2)}}),wp.element.createElement(mt,{icon:wp.element.createElement(wm,{width:"18",height:"18"}),className:3===w?"is-active":"",label:Object(S.__)("Medium preview",_.i18n),onClick:function(){return C(3)}}),wp.element.createElement(mt,{icon:wp.element.createElement(bm,{width:"18",height:"18"}),className:4===w?"is-active":"",label:Object(S.__)("Small preview",_.i18n),onClick:function(){return C(4)}})),wp.element.createElement("div",{className:"ugb-modal-design-library__designs"},wp.element.createElement(Ii,{columns:w,onSelect:e.onSelect,isBusy:M,designs:ie}))))};Sm.defaultProps={search:"",selectedBlock:"",onClose:function(){},onSelect:function(){}};var Em=Sm;function jm(){return(jm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Tm=ie.a.createElement("path",{fill:"currentColor",d:"M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"}),Pm=function(e){return ie.a.createElement("svg",jm({"aria-hidden":"true","data-prefix":"fas","data-icon":"circle-notch",className:"spinner_svg__svg-inline--fa spinner_svg__fa-circle-notch spinner_svg__fa-w-16",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},e),Tm)},Bm=function(){return wp.element.createElement(Pm,{className:"ugb-icon-is-loading"})},Mm=function(e){var t=Object(k.useState)(0),n=l()(t,2),a=n[0],r=n[1],i=function(){r(a+1)};Object(k.useEffect)(function(){(window.FontAwesome?Promise.resolve(!0):new Promise(function(e,t){var n=240,a=setInterval(function(){window.FontAwesome?(clearInterval(a),e(!0)):n--<0&&(clearInterval(a),t(!1))},250)})).then(i)},[]);var o=Object(R.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/))return wp.element.createElement(k.RawHTML,o,e.value);if(!window.FontAwesome)return wp.element.createElement(Bm,null);var s=e.value?e.value.replace(/-.*$/,""):e.prefix,u=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(s&&u){var c=De(s,u);return c?wp.element.createElement(k.RawHTML,o,c):(function(e,t){var n=Re(e,t);return n?Promise.resolve(n):new Promise(function(n,a){var r=240,i=setInterval(function(){var l=Re(e,t);window.FontAwesome?(clearInterval(i),n(l)):r--<0&&(clearInterval(i),a(!1))},250)})}(s,u).then(i),wp.element.createElement(Bm,null))}var p=De("far","smile");return wp.element.createElement(k.RawHTML,M()({},o,{className:"".concat(e.className," ugb-icon--faded")}),p)};Mm.Content=function(e){var t=Object(R.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/))return wp.element.createElement(k.RawHTML,t,e.value);var n=e.value?e.value.replace(/-.*$/,""):e.prefix,a=e.value?e.value.replace(/^.*?-/,""):e.iconName,r=De(n,a);return wp.element.createElement(k.RawHTML,t,r)},Mm.defaultProps={prefix:"",iconName:"",value:""};var Nm=Mm,Im=1,Dm=function(e){var t=Object(k.useState)("ugb-admin-setting-".concat(Im++)),n=l()(t,1)[0],a=P()(["ugb-admin-setting"],r()({},"ugb-admin-setting--".concat(e.size),e.size));return wp.element.createElement("div",{className:a,id:n},wp.element.createElement("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:n},wp.element.createElement("span",{className:"ugb-admin-setting__label"},e.label),wp.element.createElement("div",{className:"ugb-admin-setting__field"},e.children)),e.help&&wp.element.createElement("p",{className:"ugb-admin-setting__help"},e.help))};Dm.defaultProps={label:""};var Rm=Dm,zm=function(e){return wp.element.createElement(Rm,e,wp.element.createElement("input",{className:"ugb-admin-text-setting",type:e.type,value:e.value,placeholder:e.placeholder,onChange:function(t){return e.onChange(t.target.value)}}),e.children)};zm.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:function(){}};var Am=function(e){return wp.element.createElement(Rm,e,wp.element.createElement("button",{className:"ugb-admin-toggle-setting__button",type:"button",role:"switch","aria-checked":!!e.value,onClick:function(){return e.onChange(!e.value)},style:{minWidth:e.width||void 0}},wp.element.createElement("span",null,e.disabled),wp.element.createElement("span",null,e.enabled)))};Am.defaultProps={label:"",value:!1,placeholder:"",onChange:function(){},disabled:Object(S.__)("Disabled",_.i18n),enabled:Object(S.__)("Enabled",_.i18n),width:""};var Lm=Am,Fm=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).toggleBlock=e.toggleBlock.bind(v()(e)),e.enableAllBlocks=e.enableAllBlocks.bind(v()(e)),e.disableAllBlocks=e.disableAllBlocks.bind(v()(e)),e.ajaxTimeout=null,e.state={disabledBlocks:e.props.disabledBlocks||[],isSaving:!1},e}return w()(t,e),f()(t,[{key:"componentDidUpdate",value:function(e,t){var n=this;this.state.disabledBlocks!==t.disabledBlocks&&(clearTimeout(this.ajaxTimeout),this.ajaxTimeout=setTimeout(function(){Object(C.send)("stackable_update_disable_blocks",{success:function(){n.setState({isSaving:!1})},error:function(e){n.setState({isSaving:!1}),alert(e)},data:{nonce:_.nonce,disabledBlocks:n.state.disabledBlocks}}),n.setState({isSaving:!0})},600))}},{key:"toggleBlock",value:function(e){this.state.disabledBlocks.includes(e)?this.setState({disabledBlocks:this.state.disabledBlocks.filter(function(t){return t!==e})}):this.setState({disabledBlocks:[].concat(s()(this.state.disabledBlocks),[e])})}},{key:"enableAllBlocks",value:function(){this.setState({disabledBlocks:[]})}},{key:"disableAllBlocks",value:function(){this.setState({disabledBlocks:Object.keys(this.props.blocks)})}},{key:"render",value:function(){var e=this,t=this.props.blocks;return wp.element.createElement("div",null,wp.element.createElement("div",{className:"s-settings-header"},this.state.isSaving&&wp.element.createElement(x.Spinner,null),wp.element.createElement("button",{onClick:this.enableAllBlocks,className:"button button-large button-link"},Object(S.__)("Enable All",_.i18n)),wp.element.createElement("button",{onClick:this.disableAllBlocks,className:"button button-large button-link"},Object(S.__)("Disable All",_.i18n))),wp.element.createElement("div",{className:"s-settings-grid"},Object.keys(t).map(function(n,a){var r=t[n];if(r.sDeprecated)return null;var i=e.state.disabledBlocks.includes(n),l=P()(["s-box","s-box-small"],{"s-is-disabled":i}),o=n.replace(/\w+\//,"");return wp.element.createElement("div",{key:a+1,className:l},wp.element.createElement("img",{src:"".concat(_.welcomeSrcUrl,"/images/block-").concat(o,".svg"),alt:"".concat(r.title," icon"),className:"s-block-icon"}),wp.element.createElement("h4",null,r.title),wp.element.createElement("p",{className:"s-block-description"},r.description),r.sDemoURL&&wp.element.createElement("p",{className:"s-demo-url"},wp.element.createElement("small",null,wp.element.createElement("a",{href:r.sDemoURL,target:"stackable_demo",title:Object(S.sprintf)(Object(S.__)("View %s Demo",_.i18n),r.title)},Object(S.__)("View Block Demo",_.i18n)))),wp.element.createElement("button",{className:"s-toggle-button",onClick:function(){return e.toggleBlock(n)}},wp.element.createElement("span",null,Object(S.__)("Disabled",_.i18n)),wp.element.createElement("span",null,Object(S.__)("Enabled",_.i18n))))})))}}]),t}(k.Component),Um=function(){var e=Object(k.useState)(!1),t=l()(e,2),n=t[0],a=t[1];Object(k.useEffect)(function(){j.loadPromise.then(function(){(new j.models.Settings).fetch().then(function(e){a(!!e.stackable_global_force_typography)})})},[]);return wp.element.createElement(k.Fragment,null,wp.element.createElement(Lm,{label:Object(S.__)("Force Typography Styles",_.i18n),value:n,onChange:function(e){new j.models.Settings({stackable_global_force_typography:e}).save(),a(e)},disabled:Object(S.__)("Not forced",_.i18n),enabled:Object(S.__)("Force styles",_.i18n)}))},Hm=function(e){var t=Object(k.useState)(!1),n=l()(t,2),a=n[0],i=n[1],o=Object(k.useState)(!1),s=l()(o,2),u=s[0],c=s[1],p=Object(k.useState)(!1),f=l()(p,2),d=f[0],g=f[1],m=Object(k.useState)(!1),h=l()(m,2),b=h[0],v=h[1];Object(k.useEffect)(function(){v(!0),j.loadPromise.then(function(){(new j.models.Settings).fetch().then(function(e){i(!!e.stackable_help_tooltip_disabled),c("1"===e.stackable_load_v1_styles),g("1"===e.stackable_show_pro_notices),v(!1)})})},[]);var y=function(e,t){v(!0),new j.models.Settings(r()({},e,t)).save().then(function(){return v(!1)})};return wp.element.createElement("div",null,e.showProNoticesOption&&wp.element.createElement(x.CheckboxControl,{label:Object(S.__)('Show "Go premium" notices',_.i18n),checked:d,onChange:function(e){y("stackable_show_pro_notices",e?"1":""),g(e)}}),wp.element.createElement(x.CheckboxControl,{label:Object(S.__)("Don't show help video tooltips",_.i18n),checked:a,onChange:function(e){y("stackable_help_tooltip_disabled",e?"1":""),i(e)}}),wp.element.createElement(x.CheckboxControl,{label:Object(S.__)("Load version 1 block stylesheet for backward compatibility",_.i18n),checked:u,onChange:function(e){y("stackable_load_v1_styles",e?"1":""),c(e)}}),b&&wp.element.createElement("div",{className:"ugb--saving-wrapper"},wp.element.createElement(x.Spinner,null)))};Hm.defaultProps={showProNoticesOption:!1};var Vm=function(){var e=Object(k.useState)(!1),t=l()(e,2),n=t[0],a=t[1];Object(k.useEffect)(function(){j.loadPromise.then(function(){(new j.models.Settings).fetch().then(function(e){a(!!e.stackable_optimize_script_load)})})},[]);return wp.element.createElement(k.Fragment,null,wp.element.createElement(Lm,{label:Object(S.__)("Frontend JS & CSS Files",_.i18n),value:n,onChange:function(e){new j.models.Settings({stackable_optimize_script_load:e}).save(),a(e)},disabled:Object(S.__)("Load across entire site",_.i18n),enabled:Object(S.__)("Load only in posts with Stackable blocks",_.i18n)}))};Object(O.a)(function(){Object(k.render)(wp.element.createElement(Fm,{blocks:E,disabledBlocks:_.disabledBlocks}),document.querySelector(".s-settings-wrapper")),Object(k.render)(wp.element.createElement(Hm,{showProNoticesOption:_.showProNoticesOption}),document.querySelector(".s-other-options-wrapper")),Object(k.render)(wp.element.createElement(Um,null),document.querySelector(".s-global-settings")),Object(k.render)(wp.element.createElement(Vm,null),document.querySelector(".s-optimization-settings"))})}]);
|
9 |
Licensed under the MIT License (MIT), see
|
10 |
http://jedwatson.github.io/classnames
|
11 |
*/
|
12 |
+
!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var i=typeof a;if("string"===i||"number"===i)e.push(a);else if(Array.isArray(a)&&a.length){var l=r.apply(null,a);l&&e.push(l)}else if("object"===i)for(var o in a)n.call(a,o)&&a[o]&&e.push(o)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=wp.hooks},function(e,t,n){var a=n(118),r=n(119),i=n(120);e.exports=function(e,t){return a(e)||r(e,t)||i()}},function(e,t,n){e.exports=n(140)()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=wp.compose},function(e,t,n){var a=n(121),r=n(122),i=n(123);e.exports=function(e){return a(e)||r(e)||i()}},function(e,t){e.exports=wp.data},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),e}},function(e,t,n){var a=n(31),r=n(12);e.exports=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?r(e):t}},function(e,t,n){var a=n(124);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}},function(e,t,n){"use strict";t.a=function(e){if("complete"===document.readyState||"interactive"===document.readyState)return e();document.addEventListener("DOMContentLoaded",e)}},function(e,t,n){e.exports=n(136)},function(e,t){e.exports=wp.blockEditor},function(e,t,n){var a=n(139);e.exports=function(e,t){if(null==e)return{};var n,r,i=a(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t){function n(e,t,n,a,r,i,l){try{var o=e[i](l),s=o.value}catch(e){return void n(e)}o.done?t(s):Promise.resolve(s).then(a,r)}e.exports=function(e){return function(){var t=this,a=arguments;return new Promise(function(r,i){var l=e.apply(t,a);function o(e){n(l,r,i,o,s,"next",e)}function s(e){n(l,r,i,o,s,"throw",e)}o(void 0)})}}},function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,a){return e.concat(t).map(function(e){return n(e,a)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}(e))}function i(e,t,a){var i={};return a.isMergeableObject(e)&&r(e).forEach(function(t){i[t]=n(e[t],a)}),r(t).forEach(function(r){a.isMergeableObject(t[r])&&e[r]?i[r]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,a)(e[r],t[r],a):i[r]=n(t[r],a)}),i}function l(t,r,l){(l=l||{}).arrayMerge=l.arrayMerge||a,l.isMergeableObject=l.isMergeableObject||e;var o=Array.isArray(r);return o===Array.isArray(t)?o?l.arrayMerge(t,r,l):i(t,r,l):n(r,l)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},l}()},function(e,t){e.exports=wp.api},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r,i,l,o){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,r,i,l,o],c=0;(s=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";e.exports=function(){}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=a=function(e){return n(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a(t)}e.exports=a},function(e,t){e.exports=wp.blocks},function(e,t){e.exports=wp.editPost},function(e,t){e.exports=wp.ajax},function(e,t,n){"use strict";var a;!function(r){if("function"!=typeof i){var i=function(e){return e};i.nonNative=!0}const l=i("plaintext"),o=i("html"),s=i("comment"),u=/<(\w*)>/g,c=/<\/?([^\s\/>]+)/;function p(e,t,n){return d(e=e||"",f(t=t||[],n=n||""))}function f(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let n;for(;n=u.exec(e);)t.add(n[1])}else i.nonNative||"function"!=typeof e[i.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:l,tag_buffer:"",depth:0,in_quote_char:""}}function d(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let n=t.allowable_tags,a=t.tag_replacement,r=t.state,i=t.tag_buffer,u=t.depth,c=t.in_quote_char,p="";for(let t=0,f=e.length;t<f;t++){let f=e[t];if(r===l)switch(f){case"<":r=o,i+=f;break;default:p+=f}else if(r===o)switch(f){case"<":if(c)break;u++;break;case">":if(c)break;if(u){u--;break}c="",r=l,i+=">",n.has(g(i))?p+=i:p+=a,i="";break;case'"':case"'":c=f===c?"":c||f,i+=f;break;case"-":"<!-"===i&&(r=s),i+=f;break;case" ":case"\n":if("<"===i){r=l,p+="< ",i="";break}i+=f;break;default:i+=f}else if(r===s)switch(f){case">":"--"==i.slice(-2)&&(r=l),i="";break;default:i+=f}}return t.state=r,t.tag_buffer=i,t.depth=u,t.in_quote_char=c,p}function g(e){let t=c.exec(e);return t?t[1].toLowerCase():null}p.init_streaming_mode=function(e,t){let n=f(e=e||[],t=t||"");return function(e){return d(e||"",n)}},void 0===(a=function(){return p}.call(t,n,t,e))||(e.exports=a)}()},function(e,t,n){"use strict";var a=n(128),r=n(133),i=n(135);e.exports=function(e){var t,n=a(e);return n.space?((t=Array(3))[0]=i(n.values[0],0,255),t[1]=i(n.values[1],0,255),t[2]=i(n.values[2],0,255),"h"===n.space[0]&&(t=r.rgb(t)),t.push(i(n.alpha,0,1)),t):[]}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(153)},function(e,t){e.exports=wp.codeEditor},function(e,t,n){"use strict";var a=Object.prototype.hasOwnProperty,r=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)void 0!==e[a]&&(n[a]=e[a]);return n};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var i=t[a],l=i.obj[i.prop],o=Object.keys(l),s=0;s<o.length;++s){var u=o[s],c=l[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:l,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var a=[],i=0;i<n.length;++i)void 0!==n[i]&&a.push(n[i]);t.obj[t.prop]=a}}}(t),e},decode:function(e,t,n){var a=e.replace(/\+/g," ");if("iso-8859-1"===n)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(e){return a}},encode:function(e,t,n){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var r="",l=0;l<a.length;++l){var o=a.charCodeAt(l);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=a.charAt(l):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(l+=1,o=65536+((1023&o)<<10|1023&a.charCodeAt(l)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},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)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(r(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return r(t)&&!r(n)&&(o=l(t,i)),r(t)&&r(n)?(n.forEach(function(n,r){if(a.call(t,r)){var l=t[r];l&&"object"==typeof l&&n&&"object"==typeof n?t[r]=e(l,n,i):t.push(n)}else t[r]=n}),t):Object.keys(n).reduce(function(t,r){var l=n[r];return a.call(t,r)?t[r]=e(t[r],l,i):t[r]=l,t},o)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!0;var l={},o=void 0,s=void 0;for(o=0,s=n.length;o<s;o++)l[n[o]]=!0;for(o=0,s=r.length;o<s;o++){var u=r[o],c=e[u],p=t[u];if(c!==p){if(!l[u]||null===c||null===p||"object"!==(void 0===c?"undefined":a(c))||"object"!==(void 0===p?"undefined":a(p)))return!0;var f=Object.keys(c),d=Object.keys(p);if(f.length!==d.length)return!0;for(var g=0,m=f.length;g<m;g++){var h=f[g];if(c[h]!==p[h])return!0}}}return!1}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(126);t.default=a.isDarkColor,e.exports=t.default},function(e,t,n){"use strict";var a=n(137),r=n(138),i=n(46);e.exports={formats:i,parse:r,stringify:a}},,function(e,t,n){"use strict";
|
13 |
/*
|
14 |
object-assign
|
15 |
(c) Sindre Sorhus
|
22 |
*
|
23 |
* This source code is licensed under the MIT license found in the
|
24 |
* LICENSE file in the root directory of this source tree.
|
25 |
+
*/var a=n(45),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113;r&&Symbol.for("react.suspense_list");var g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope");var h="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function w(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}function k(){}function C(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||v}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=w.prototype;var O=C.prototype=new k;O.constructor=C,a(O,w.prototype),O.isPureReactComponent=!0;var x={current:null},_={current:null},S=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var a,r={},l=null,o=null;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(l=""+t.key),t)S.call(t,a)&&!E.hasOwnProperty(a)&&(r[a]=t[a]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];r.children=u}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===r[a]&&(r[a]=s[a]);return{$$typeof:i,type:e,key:l,ref:o,props:r,_owner:_.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,B=[];function M(e,t,n,a){if(B.length){var r=B.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=a,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:a,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>B.length&&B.push(e)}function I(e,t,n){return null==e?0:function e(t,n,a,r){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var s=!1;if(null===t)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case l:s=!0}}if(s)return a(r,t,""===n?"."+D(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+D(o=t[u],u);s+=e(o,c,a,r)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=h&&t[h]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(o=t.next()).done;)s+=e(o=o.value,c=n+D(o,u++),a,r);else if("object"===o)throw a=""+t,Error(b(31,"[object Object]"===a?"object with keys {"+Object.keys(t).join(", ")+"}":a,""));return s}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function A(e,t,n){var a=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,a,n,function(e){return e}):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),a.push(e))}function z(e,t,n,a,r){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),I(e,A,t=M(t,i,a,r)),N(t)}function L(){var e=x.current;if(null===e)throw Error(b(321));return e}var F={Children:{map:function(e,t,n){if(null==e)return e;var a=[];return z(e,a,null,t,n),a},forEach:function(e,t,n){if(null==e)return e;I(e,R,t=M(null,null,t,n)),N(t)},count:function(e){return I(e,function(){return null},null)},toArray:function(e){var t=[];return z(e,t,null,function(e){return e}),t},only:function(e){if(!T(e))throw Error(b(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:C,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:f,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return L().useCallback(e,t)},useContext:function(e,t){return L().useContext(e,t)},useEffect:function(e,t){return L().useEffect(e,t)},useImperativeHandle:function(e,t,n){return L().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return L().useLayoutEffect(e,t)},useMemo:function(e,t){return L().useMemo(e,t)},useReducer:function(e,t,n){return L().useReducer(e,t,n)},useRef:function(e){return L().useRef(e)},useState:function(e){return L().useState(e)},Fragment:o,Profiler:u,StrictMode:s,Suspense:d,createElement:j,cloneElement:function(e,t,n){if(null==e)throw Error(b(267,e));var r=a({},e.props),l=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=_.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!E.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];r.children=u}return{$$typeof:i,type:e.type,key:l,ref:o,props:r,_owner:s}},createFactory:function(e){var t=j.bind(null,e);return t.type=e,t},isValidElement:T,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:x,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:a}},U={default:F},H=U&&F||U;e.exports=H.default||H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDarkColor=void 0;var a=n(127);t.isDarkColor=function(e,t){if(t&&t.override){var n=Object.keys(t.override).find(function(t){return t.toLowerCase()===e.toLowerCase()});if(void 0!==n)return t.override[n]}var r=(0,a.hexToRgb)(e),i=[r.r/255,r.g/255,r.b/255].map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*i[0]+.7152*i[1]+.0722*i[2]<=.179}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}},function(e,t,n){"use strict";(function(t){var a=n(130),r=n(131),i=n(132);e.exports=function(e){var n,o,s=[],u=1;if("string"==typeof e)if(a[e])s=a[e].slice(),o="rgb";else if("transparent"===e)u=0,o="rgb",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var c=(d=e.slice(1)).length;u=1,c<=4?(s=[parseInt(d[0]+d[0],16),parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16)],4===c&&(u=parseInt(d[3]+d[3],16)/255)):(s=[parseInt(d[0]+d[1],16),parseInt(d[2]+d[3],16),parseInt(d[4]+d[5],16)],8===c&&(u=parseInt(d[6]+d[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),o="rgb"}else if(n=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var p=n[1],f="rgb"===p,d=p.replace(/a$/,"");o=d;c="cmyk"===d?4:"gray"===d?1:3;s=n[2].trim().split(/\s*,\s*/).map(function(e,t){if(/%$/.test(e))return t===c?parseFloat(e)/100:"rgb"===d?255*parseFloat(e)/100:parseFloat(e);if("h"===d[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==l[e])return l[e]}return parseFloat(e)}),p===d&&s.push(1),u=f?1:void 0===s[c]?1:s[c],s=s.slice(0,c)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(s=e.match(/([0-9]+)/g).map(function(e){return parseFloat(e)}),o=e.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(e))if(r(e)){var g=i(e.r,e.red,e.R,null);null!==g?(o="rgb",s=[g,i(e.g,e.green,e.G),i(e.b,e.blue,e.B)]):(o="hsl",s=[i(e.h,e.hue,e.H),i(e.s,e.saturation,e.S),i(e.l,e.lightness,e.L,e.b,e.brightness)]),u=i(e.a,e.alpha,e.opacity,1),null!=e.opacity&&(u/=100)}else(Array.isArray(e)||t.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(s=[e[0],e[1],e[2]],o="rgb",u=4===e.length?e[3]:1);else o="rgb",s=[e>>>16,(65280&e)>>>8,255&e];return{space:o,values:s,alpha:u}};var l={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this,n(129))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){"use strict";var a=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===a.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t){e.exports=function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}},function(e,t,n){"use strict";var a=n(134);e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,a,r,i,l=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[i=255*s,i,i];t=2*s-(n=s<.5?s*(1+o):s+o-s*o),r=[0,0,0];for(var u=0;u<3;u++)(a=l+1/3*-(u-1))<0?a++:a>1&&a--,i=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,r[u]=255*i;return r}},a.hsl=function(e){var t,n,a=e[0]/255,r=e[1]/255,i=e[2]/255,l=Math.min(a,r,i),o=Math.max(a,r,i),s=o-l;return o===l?t=0:a===o?t=(r-i)/s:r===o?t=2+(i-a)/s:i===o&&(t=4+(a-r)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(l+o)/2,[t,100*(o===l?0:n<=.5?s/(o+l):s/(2-o-l)),100*n]}},function(e,t,n){"use strict";e.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},function(e,t){e.exports=function(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}},function(e,t,n){var a=function(e){"use strict";var t,n=Object.prototype,a=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n,a){var r=t&&t.prototype instanceof m?t:m,i=Object.create(r.prototype),l=new E(a||[]);return i._invoke=function(e,t,n){var a=c;return function(r,i){if(a===f)throw new Error("Generator is already running");if(a===d){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var l=n.delegate;if(l){var o=x(l,n);if(o){if(o===g)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===c)throw a=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var s=u(e,t,n);if("normal"===s.type){if(a=n.done?d:p,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=d,n.method="throw",n.arg=s.arg)}}}(e,n,l),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var c="suspendedStart",p="suspendedYield",f="executing",d="completed",g={};function m(){}function h(){}function b(){}var v={};v[i]=function(){return this};var y=Object.getPrototypeOf,w=y&&y(y(j([])));w&&w!==n&&a.call(w,i)&&(v=w);var k=b.prototype=m.prototype=Object.create(v);function C(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,l){var o=u(e[n],e,r);if("throw"!==o.type){var s=o.arg,c=s.value;return c&&"object"==typeof c&&a.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,l)},function(e){t("throw",e,i,l)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},function(e){return t("throw",e,i,l)})}l(o.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function x(e,n){var a=e.iterator[n.method];if(a===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(a,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,l=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return l.next=l}}return{next:T}}function T(){return{value:t,done:!0}}return h.prototype=k.constructor=b,b.constructor=h,b[o]=h.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},C(O.prototype),O.prototype[l]=function(){return this},e.AsyncIterator=O,e.async=function(t,n,a,r){var i=new O(s(t,n,a,r));return e.isGeneratorFunction(n)?i:i.next().then(function(e){return e.done?e.value:i.next()})},C(k),k[o]="Generator",k[i]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var a=t.pop();if(a in e)return n.value=a,n.done=!1,n}return n.done=!0,n}},e.values=j,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return o.type="throw",o.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var s=a.call(l,"catchLoc"),u=a.call(l,"finallyLoc");if(s&&u){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(s){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=e,l.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:j(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=a}catch(e){Function("r","regeneratorRuntime = r")(a)}},function(e,t,n){"use strict";var a=n(39),r=n(46),i=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,o(t)?t:[t])},c=Date.prototype.toISOString,p=r.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:p,formatter:r.formatters[p],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,r,i,l,s,c,p,d,g,m,h,b){var v,y=t;if("function"==typeof c?y=c(n,y):y instanceof Date?y=g(y):"comma"===r&&o(y)&&(y=y.join(",")),null===y){if(i)return s&&!h?s(n,f.encoder,b,"key"):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||a.isBuffer(y))return s?[m(h?n:s(n,f.encoder,b,"key"))+"="+m(s(y,f.encoder,b,"value"))]:[m(n)+"="+m(String(y))];var w,k=[];if(void 0===y)return k;if(o(c))w=c;else{var C=Object.keys(y);w=p?C.sort(p):C}for(var O=0;O<w.length;++O){var x=w[O];l&&null===y[x]||(o(y)?u(k,e(y[x],"function"==typeof r?r(n,x):n,r,i,l,s,c,p,d,g,m,h,b)):u(k,e(y[x],n+(d?"."+x:"["+x+"]"),r,i,l,s,c,p,d,g,m,h,b)))}return k};e.exports=function(e,t){var n,a=e,s=function(e){if(!e)return f;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||f.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 n=r.default;if(void 0!==e.format){if(!i.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=r.formatters[n],l=f.filter;return("function"==typeof e.filter||o(e.filter))&&(l=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:l,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof s.filter?a=(0,s.filter)("",a):o(s.filter)&&(n=s.filter);var c,p=[];if("object"!=typeof a||null===a)return"";c=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=l[c];n||(n=Object.keys(a)),s.sort&&n.sort(s.sort);for(var m=0;m<n.length;++m){var h=n[m];s.skipNulls&&null===a[h]||u(p,d(a[h],h,g,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var b=p.join(s.delimiter),v=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},function(e,t,n){"use strict";var a=n(39),r=Object.prototype.hasOwnProperty,i=Array.isArray,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:a.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,l=n.depth>0&&/(\[[^[\]]*])/.exec(a),o=l?a.slice(0,l.index):a,s=[];if(o){if(!n.plainObjects&&r.call(Object.prototype,o)&&!n.allowPrototypes)return;s.push(o)}for(var u=0;n.depth>0&&null!==(l=i.exec(a))&&u<n.depth;){if(u+=1,!n.plainObjects&&r.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(l[1])}return l&&s.push("["+a.slice(l.index)+"]"),function(e,t,n){for(var a=t,r=e.length-1;r>=0;--r){var i,l=e[r];if("[]"===l&&n.parseArrays)i=[].concat(a);else{i=n.plainObjects?Object.create(null):{};var o="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,s=parseInt(o,10);n.parseArrays||""!==o?!isNaN(s)&&l!==o&&String(s)===o&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[])[s]=a:i[o]=a:i={0:a}}a=i}return a}(s,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return l;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 Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?l.charset:e.charset;return{allowDots:void 0===e.allowDots?l.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:l.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:l.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:l.comma,decoder:"function"==typeof e.decoder?e.decoder:l.decoder,delimiter:"string"==typeof e.delimiter||a.isRegExp(e.delimiter)?e.delimiter:l.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:l.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:l.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:l.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:l.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,s={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,c),f=-1,d=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?d="utf-8":"utf8=%26%2310003%3B"===p[n]&&(d="iso-8859-1"),f=n,n=p.length);for(n=0;n<p.length;++n)if(n!==f){var g,m,h=p[n],b=h.indexOf("]="),v=-1===b?h.indexOf("="):b+1;-1===v?(g=t.decoder(h,l.decoder,d,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(h.slice(0,v),l.decoder,d,"key"),m=t.decoder(h.slice(v+1),l.decoder,d,"value")),m&&t.interpretNumericEntities&&"iso-8859-1"===d&&(m=o(m)),m&&"string"==typeof m&&t.comma&&m.indexOf(",")>-1&&(m=m.split(",")),h.indexOf("[]=")>-1&&(m=i(m)?[m]:m),r.call(s,g)?s[g]=a.combine(s[g],m):s[g]=m}return s}(e,n):e,c=n.plainObjects?Object.create(null):{},p=Object.keys(u),f=0;f<p.length;++f){var d=p[f],g=s(d,u[d],n);c=a.merge(c,g,n)}return a.compact(c)}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t,n){"use strict";var a=n(141);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,l){if(l!==a){var o=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 o.name="Invariant Violation",o}}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:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),i=n(2),l=p(i),o=p(n(11)),s=p(n(143)),u=p(n(144)),c=n(152);function p(e){return e&&e.__esModule?e:{default:e}}var f=function(){return!0},d=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return g.call(a),a.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},a.justPressedUpDown=!1,a.justMouseEntered=!1,a.pressedSuggestion=null,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,s.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,a=n.suggestions,r=n.onSuggestionHighlighted,i=n.highlightFirstSuggestion;if(!(0,s.default)(a,e.suggestions)&&a.length>0&&i)this.highlightFirstSuggestion();else if(r){var l=this.getHighlightedSuggestion();l!=t.highlightedSuggestion&&r({suggestion:l})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var a=this;this.setState(function(r){var i=r.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:a.getSuggestion(e,t),valueBeforeUpDown:i}})}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState(function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,a=n.suggestions,r=n.multiSection,i=n.getSectionSuggestions;return r?i(a[e])[t]:a[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var a=this.props.inputProps,r=a.value,i=a.onChange;t!==r&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,a=e.shouldRenderSuggestions,r=n.value;return t.length>0&&a(r)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,r=t.renderInputComponent,i=t.onSuggestionsFetchRequested,o=t.renderSuggestion,s=t.inputProps,p=t.multiSection,d=t.renderSectionTitle,g=t.id,m=t.getSectionSuggestions,h=t.theme,b=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,w=this.state,k=w.isFocused,C=w.isCollapsed,O=w.highlightedSectionIndex,x=w.highlightedSuggestionIndex,_=w.valueBeforeUpDown,S=v?f:this.props.shouldRenderSuggestions,E=s.value,j=s.onFocus,T=s.onKeyDown,P=this.willRenderSuggestions(this.props),B=v||k&&!C&&P,M=B?n:[],N=a({},s,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=S(E);e.setState({isFocused:!0,isCollapsed:!n}),j&&j(t),n&&i({value:E,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=S(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(a({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,a){var r=t.keyCode;switch(r){case 40:case 38:if(C)S(E)&&(i({value:E,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var l=a.newHighlightedSectionIndex,o=a.newHighlightedItemIndex,s=void 0;s=null===o?null===_?E:_:e.getSuggestionValueByIndex(l,o),e.updateHighlightedSuggestion(l,o,E),e.maybeCallOnChange(t,s,40===r?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout(function(){e.justPressedUpDown=!1});break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(B&&!v&&e.closeSuggestions(),null!=u){var c=b(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:x,sectionIndex:O,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout(function(){e.justSelectedSuggestion=!1})}break;case 27:B&&t.preventDefault();var p=B&&!v;if(null===_){if(!p){e.maybeCallOnChange(t,"","escape"),S("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()}}else e.maybeCallOnChange(t,_,"escape");p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}T&&T(t)}}),I={query:this.getQuery()};return l.default.createElement(u.default,{multiSection:p,items:M,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:o,renderItemData:I,renderSectionTitle:d,getSectionItems:m,highlightedSectionIndex:O,highlightedItemIndex:x,inputProps:N,itemProps:this.itemProps,theme:(0,c.mapToAutowhateverTheme)(h),id:g,ref:this.storeAutowhateverRef})}}]),t}();d.propTypes={suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!=typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string},d.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return l.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:c.defaultTheme,id:"1"};var g=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var a=n.sectionIndex,r=n.itemIndex;e.updateHighlightedSuggestion(a,r),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout(function(){e.justMouseEntered=!1})},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var a=e.props,r=a.alwaysRenderSuggestions,i=a.onSuggestionSelected,l=a.onSuggestionsFetchRequested;i&&i(t,n),r?l({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,a=n.alwaysRenderSuggestions,r=n.focusInputOnSuggestionClick,i=e.getSuggestionIndices(e.findSuggestionElement(t.target)),l=i.sectionIndex,o=i.suggestionIndex,s=e.getSuggestion(l,o),u=e.props.getSuggestionValue(s);e.maybeCallOnChange(t,u,"click"),e.onSuggestionSelected(t,{suggestion:s,suggestionValue:u,suggestionIndex:o,sectionIndex:l,method:"click"}),a||e.closeSuggestions(),!0===r?e.input.focus():e.onBlur(),setTimeout(function(){e.justSelectedSuggestion=!1})},this.onBlur=function(){var t=e.props,n=t.inputProps,a=t.shouldRenderSuggestions,r=n.value,i=n.onBlur,l=e.getHighlightedSuggestion(),o=a(r);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!o}),i&&i(e.blurEvent,{highlightedSuggestion:l})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,a=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:a,query:e.getQuery()})}};t.default=d},function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var a=0;a<n;a++)if(e[a]!==t[a])return!1;return!0}},function(e,t,n){"use strict";e.exports=n(145).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&o.return&&o.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=n(2),o=d(l),s=d(n(11)),u=d(n(146)),c=d(n(147)),p=d(n(149)),f=d(n(150));function d(e){return e&&e.__esModule?e:{default:e}}var g={},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,a=t.inputProps,i=t.highlightedSectionIndex,l=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var o="ArrowDown"===e.key?"next":"prev",s=n.sectionIterator[o]([i,l]),u=r(s,2),c=u[0],p=u[1];a.onKeyDown(e,{newHighlightedSectionIndex:c,newHighlightedItemIndex:p});break;default:a.onKeyDown(e,{highlightedSectionIndex:i,highlightedItemIndex:l})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.Component),i(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map(function(t){return e.getSectionItems(t)}),this.sectionsLengths=this.sectionsItems.map(function(e){return e.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(e){return 0===e}))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,u.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,c.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,a=n.id,r=n.items,i=n.renderItem,l=n.renderItemData,s=n.renderSectionTitle,u=n.highlightedSectionIndex,c=n.highlightedItemIndex,d=n.itemProps;return r.map(function(n,r){var g="react-autowhatever-"+a+"-",m=g+"section-"+r+"-",h=0===r;return o.default.createElement("div",t(m+"container","sectionContainer",h&&"sectionContainerFirst"),o.default.createElement(p.default,{section:n,renderSectionTitle:s,theme:t,sectionKeyPrefix:m}),o.default.createElement(f.default,{items:e.sectionsItems[r],itemProps:d,renderItem:i,renderItemData:l,sectionIndex:r,highlightedItemIndex:u===r?c:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:g,ref:e.storeItemsListReference}))})}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,a=n.id,r=n.renderItem,i=n.renderItemData,l=n.highlightedSectionIndex,s=n.highlightedItemIndex,u=n.itemProps;return o.default.createElement(f.default,{items:e,itemProps:u,renderItem:r,renderItemData:i,highlightedItemIndex:null===l?s:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+a+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,a=t.scrollTop;n<a?a=n:n+e.offsetHeight>a+t.offsetHeight&&(a=n+e.offsetHeight-t.offsetHeight),a!==t.scrollTop&&(t.scrollTop=a)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,r=t.multiSection,i=t.renderInputComponent,l=t.renderItemsContainer,s=t.highlightedSectionIndex,u=t.highlightedItemIndex,c=this.state.isInputFocused,p=r?this.renderSections():this.renderItems(),f=null!==p,d=this.getItemId(s,u),g="react-autowhatever-"+n,m=a({role:"combobox","aria-haspopup":"listbox","aria-owns":g,"aria-expanded":f},e("react-autowhatever-"+n+"-container","container",f&&"containerOpen"),this.props.containerProps),h=i(a({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":g,"aria-activedescendant":d},e("react-autowhatever-"+n+"-input","input",f&&"inputOpen",c&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),b=l({containerProps:a({id:g,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",f&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:p});return o.default.createElement("div",m,h,b)}}]),t}();m.propTypes={id:s.default.string,multiSection:s.default.bool,renderInputComponent:s.default.func,renderItemsContainer:s.default.func,items:s.default.array.isRequired,renderItem:s.default.func,renderItemData:s.default.object,renderSectionTitle:s.default.func,getSectionItems:s.default.func,containerProps:s.default.object,inputProps:s.default.object,itemProps:s.default.oneOfType([s.default.object,s.default.func]),highlightedSectionIndex:s.default.number,highlightedItemIndex:s.default.number,theme:s.default.oneOfType([s.default.object,s.default.array])},m.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return o.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:g,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:g,inputProps:g,itemProps:g,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=m},function(e,t,n){"use strict";var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&o.return&&o.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var t=e.data,n=e.multiSection;function r(e){var r=a(e,2),i=r[0],l=r[1];return n?null===l||l===t[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<t.length&&0===t[e];)e++;return e===t.length?null:e}(i))?[null,null]:[i,0]:[i,l+1]:0===t||l===t-1?[null,null]:null===l?[null,0]:[null,l+1]}return{next:r,prev:function(e){var r=a(e,2),i=r[0],l=r[1];return n?null===l||0===l?null===(i=function(e){for(null===e?e=t.length-1:e--;e>=0&&0===t[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,t[i]-1]:[i,l-1]:0===t||0===l?[null,null]:null===l?[null,t-1]:[null,l-1]},isLast:function(e){return null===r(e)[1]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&o.return&&o.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,l=n(148),o=(i=l)&&i.__esModule?i:{default:i},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=a(t,2),i=n[0],l=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var u=n.map(function(e){return i[e]}).filter(s);return"string"==typeof u[0]||"function"==typeof l?{key:e,className:l?l.apply(void 0,r(u)):u.join(" ")}:{key:e,style:o.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},function(e,t,n){"use strict";var a=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter(function(t){return a.call(e,t)})}e.exports=Object.assign||function(e,t){for(var n,a,l=r(e),o=1;o<arguments.length;o++){n=arguments[o],a=i(Object(n));for(var s=0;s<a.length;s++)l[a[s]]=n[a[s]]}return l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),r=n(2),i=s(r),l=s(n(11)),o=s(n(40));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,o.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,a=e.theme,r=e.sectionKeyPrefix,l=n(t);return l?i.default.createElement("div",a(r+"title","sectionTitle"),l):null}}]),t}();u.propTypes={section:l.default.any.isRequired,renderSectionTitle:l.default.func.isRequired,theme:l.default.func.isRequired,sectionKeyPrefix:l.default.string.isRequired},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),i=n(2),l=c(i),o=c(n(11)),s=c(n(151)),u=c(n(40));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=a=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),a.storeHighlightedItemReference=function(e){a.props.onHighlightedItemChange(null===e?null:e.item)},p(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.itemProps,i=t.renderItem,o=t.renderItemData,u=t.sectionIndex,c=t.highlightedItemIndex,p=t.getItemId,f=t.theme,d=t.keyPrefix,g=null===u?d:d+"section-"+u+"-",m="function"==typeof r;return l.default.createElement("ul",a({role:"listbox"},f(g+"items-list","itemsList")),n.map(function(t,n){var d=0===n,h=n===c,b=g+"item-"+n,v=m?r({sectionIndex:u,itemIndex:n}):r,y=a({id:p(u,n),"aria-selected":h},f(b,"item",d&&"itemFirst",h&&"itemHighlighted"),v);return h&&(y.ref=e.storeHighlightedItemReference),l.default.createElement(s.default,a({},y,{sectionIndex:u,isHighlighted:h,itemIndex:n,item:t,renderItem:i,renderItemData:o}))}))}}]),t}();f.propTypes={items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired},f.defaultProps={sectionIndex:null},t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),i=n(2),l=u(i),o=u(n(11)),s=u(n(40));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=a=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),a.storeItemReference=function(e){null!==e&&(a.item=e)},a.onMouseEnter=function(e){var t=a.props,n=t.sectionIndex,r=t.itemIndex;a.props.onMouseEnter(e,{sectionIndex:n,itemIndex:r})},a.onMouseLeave=function(e){var t=a.props,n=t.sectionIndex,r=t.itemIndex;a.props.onMouseLeave(e,{sectionIndex:n,itemIndex:r})},a.onMouseDown=function(e){var t=a.props,n=t.sectionIndex,r=t.itemIndex;a.props.onMouseDown(e,{sectionIndex:n,itemIndex:r})},a.onClick=function(e){var t=a.props,n=t.sectionIndex,r=t.itemIndex;a.props.onClick(e,{sectionIndex:n,itemIndex:r})},c(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,r=e.renderItem,i=e.renderItemData,o=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete o.sectionIndex,delete o.itemIndex,"function"==typeof o.onMouseEnter&&(o.onMouseEnter=this.onMouseEnter),"function"==typeof o.onMouseLeave&&(o.onMouseLeave=this.onMouseLeave),"function"==typeof o.onMouseDown&&(o.onMouseDown=this.onMouseDown),"function"==typeof o.onClick&&(o.onClick=this.onClick),l.default.createElement("li",a({role:"option"},o,{ref:this.storeItemReference}),r(n,a({isHighlighted:t},i)))}}]),t}();p.propTypes={sectionIndex:o.default.number,isHighlighted:o.default.bool.isRequired,itemIndex:o.default.number.isRequired,item:o.default.any.isRequired,renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,onMouseEnter:o.default.func,onMouseLeave:o.default.func,onMouseDown:o.default.func,onClick:o.default.func},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},function(e,t,n){"use strict";
|
26 |
/** @license React v16.12.0
|
27 |
* react-dom.production.min.js
|
28 |
*
|
30 |
*
|
31 |
* This source code is licensed under the MIT license found in the
|
32 |
* LICENSE file in the root directory of this source tree.
|
33 |
+
*/var a=n(2),r=n(45),i=n(154);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!a)throw Error(l(227));var o=null,s={};function u(){if(o)for(var e in s){var t=s[e],n=o.indexOf(e);if(!(-1<n))throw Error(l(96,e));if(!p[n]){if(!t.extractEvents)throw Error(l(97,e));for(var a in p[n]=t,n=t.eventTypes){var r=void 0,i=n[a],u=t,d=a;if(f.hasOwnProperty(d))throw Error(l(99,d));f[d]=i;var g=i.phasedRegistrationNames;if(g){for(r in g)g.hasOwnProperty(r)&&c(g[r],u,d);r=!0}else i.registrationName?(c(i.registrationName,u,d),r=!0):r=!1;if(!r)throw Error(l(98,a,e))}}}}function c(e,t,n){if(d[e])throw Error(l(100,e));d[e]=t,g[e]=t.eventTypes[n].dependencies}var p=[],f={},d={},g={};var m=!1,h=null,b=!1,v=null,y={onError:function(e){m=!0,h=e}};function w(e,t,n,a,r,i,l,o,s){m=!1,h=null,function(e,t,n,a,r,i,l,o,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(y,arguments)}var k=null,C=null,O=null;function x(e,t,n){var a=e.type||"unknown-event";e.currentTarget=O(n),function(e,t,n,a,r,i,o,s,u){if(w.apply(this,arguments),m){if(!m)throw Error(l(198));var c=h;m=!1,h=null,b||(b=!0,v=c)}}(a,t,void 0,e),e.currentTarget=null}function _(e,t){if(null==t)throw Error(l(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function S(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var E=null;function j(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var a=0;a<t.length&&!e.isPropagationStopped();a++)x(e,t[a],n[a]);else t&&x(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function T(e){if(null!==e&&(E=_(E,e)),e=E,E=null,e){if(S(e,j),E)throw Error(l(95));if(b)throw e=v,b=!1,v=null,e}}var P={injectEventPluginOrder:function(e){if(o)throw Error(l(101));o=Array.prototype.slice.call(e),u()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var a=e[t];if(!s.hasOwnProperty(t)||s[t]!==a){if(s[t])throw Error(l(102,t));s[t]=a,n=!0}}n&&u()}};function B(e,t){var n=e.stateNode;if(!n)return null;var a=k(n);if(!a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}var M=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;M.hasOwnProperty("ReactCurrentDispatcher")||(M.ReactCurrentDispatcher={current:null}),M.hasOwnProperty("ReactCurrentBatchConfig")||(M.ReactCurrentBatchConfig={suspense:null});var N=/^(.*)[\\\/]/,I="function"==typeof Symbol&&Symbol.for,D=I?Symbol.for("react.element"):60103,R=I?Symbol.for("react.portal"):60106,A=I?Symbol.for("react.fragment"):60107,z=I?Symbol.for("react.strict_mode"):60108,L=I?Symbol.for("react.profiler"):60114,F=I?Symbol.for("react.provider"):60109,U=I?Symbol.for("react.context"):60110,H=I?Symbol.for("react.concurrent_mode"):60111,V=I?Symbol.for("react.forward_ref"):60112,G=I?Symbol.for("react.suspense"):60113,W=I?Symbol.for("react.suspense_list"):60120,q=I?Symbol.for("react.memo"):60115,K=I?Symbol.for("react.lazy"):60116;I&&Symbol.for("react.fundamental"),I&&Symbol.for("react.responder"),I&&Symbol.for("react.scope");var $="function"==typeof Symbol&&Symbol.iterator;function Y(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case A:return"Fragment";case R:return"Portal";case L:return"Profiler";case z:return"StrictMode";case G:return"Suspense";case W:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case U:return"Context.Consumer";case F:return"Context.Provider";case V:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case q:return Q(e.type);case K:if(e=1===e._status?e._result:null)return Q(e)}return null}function X(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var a=e._debugOwner,r=e._debugSource,i=Q(e.type);n=null,a&&(n=Q(a.type)),a=i,i="",r?i=" (at "+r.fileName.replace(N,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(a||"Unknown")+i}t+=n,e=e.return}while(e);return t}var J=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Z=null,ee=null,te=null;function ne(e){if(e=C(e)){if("function"!=typeof Z)throw Error(l(280));var t=k(e.stateNode);Z(e.stateNode,e.type,t)}}function ae(e){ee?te?te.push(e):te=[e]:ee=e}function re(){if(ee){var e=ee,t=te;if(te=ee=null,ne(e),t)for(e=0;e<t.length;e++)ne(t[e])}}function ie(e,t){return e(t)}function le(e,t,n,a){return e(t,n,a)}function oe(){}var se=ie,ue=!1,ce=!1;function pe(){null===ee&&null===te||(oe(),re())}new Map;var fe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,de=Object.prototype.hasOwnProperty,ge={},me={};function he(e,t,n,a,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){be[e]=new he(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];be[t]=new he(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){be[e]=new he(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){be[e]=new he(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){be[e]=new he(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){be[e]=new he(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){be[e]=new he(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){be[e]=new he(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){be[e]=new he(e,5,!1,e.toLowerCase(),null,!1)});var ve=/[\-:]([a-z])/g;function ye(e){return e[1].toUpperCase()}function we(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ke(e,t,n,a){var r=be.hasOwnProperty(t)?be[t]:null;(null!==r?0===r.type:!a&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,a){if(null==t||function(e,t,n,a){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!a&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,a))return!0;if(a)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,a)&&(n=null),a||null===r?function(e){return!!de.call(me,e)||!de.call(ge,e)&&(fe.test(e)?me[e]=!0:(ge[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,a=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}function Ce(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Oe(e){e._valueTracker||(e._valueTracker=function(e){var t=Ce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){a=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ce(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Se(e,t){var n=null==t.defaultValue?"":t.defaultValue,a=null!=t.checked?t.checked:t.defaultChecked;n=we(null!=t.value?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&ke(e,"checked",t,!1)}function je(e,t){Ee(e,t);var n=we(t.value),a=t.type;if(null!=n)"number"===a?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===a||"reset"===a)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pe(e,t.type,we(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!("submit"!==a&&"reset"!==a||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Be(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return a.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Me(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+we(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(a&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function Ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(l(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw Error(l(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(l(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:we(n)}}function De(e,t){var n=we(t.value),a=we(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=a&&(e.defaultValue=""+a)}function Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ve,ye);be[t]=new he(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ve,ye);be[t]=new he(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ve,ye);be[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){be[e]=new he(e,1,!1,e.toLowerCase(),null,!1)}),be.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){be[e]=new he(e,1,!1,e.toLowerCase(),null,!0)});var Ae={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ze(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ze(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Fe,Ue=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==Ae.svg||"innerHTML"in e)e.innerHTML=t;else{for((Fe=Fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function He(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ge={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},We={},qe={};function Ke(e){if(We[e])return We[e];if(!Ge[e])return e;var t,n=Ge[e];for(t in n)if(n.hasOwnProperty(t)&&t in qe)return We[e]=n[t];return e}J&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Ge.animationend.animation,delete Ge.animationiteration.animation,delete Ge.animationstart.animation),"TransitionEvent"in window||delete Ge.transitionend.transition);var $e=Ke("animationend"),Ye=Ke("animationiteration"),Qe=Ke("animationstart"),Xe=Ke("transitionend"),Je="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(l(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(a=r.return)){n=a;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return tt(r),e;if(i===a)return tt(r),t;i=i.sibling}throw Error(l(188))}if(n.return!==a.return)n=r,a=i;else{for(var o=!1,s=r.child;s;){if(s===n){o=!0,n=r,a=i;break}if(s===a){o=!0,a=r,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,a=r;break}if(s===a){o=!0,a=i,n=r;break}s=s.sibling}if(!o)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var at,rt,it,lt=!1,ot=[],st=null,ut=null,ct=null,pt=new Map,ft=new Map,dt=[],gt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),mt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function ht(e,t,n,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:a}}function bt(e,t){switch(e){case"focus":case"blur":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,a,r){return null===e||e.nativeEvent!==r?(e=ht(t,n,a,r),null!==t&&(null!==(t=ca(t))&&rt(t)),e):(e.eventSystemFlags|=a,e)}function yt(e){var t=ua(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,function(){it(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function wt(e){if(null!==e.blockedOn)return!1;var t=jn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);if(null!==t){var n=ca(t);return null!==n&&rt(n),e.blockedOn=t,!1}return!0}function kt(e,t,n){wt(e)&&n.delete(t)}function Ct(){for(lt=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ca(e.blockedOn))&&at(e);break}var t=jn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);null!==t?e.blockedOn=t:ot.shift()}null!==st&&wt(st)&&(st=null),null!==ut&&wt(ut)&&(ut=null),null!==ct&&wt(ct)&&(ct=null),pt.forEach(kt),ft.forEach(kt)}function Ot(e,t){e.blockedOn===t&&(e.blockedOn=null,lt||(lt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ct)))}function xt(e){function t(t){return Ot(t,e)}if(0<ot.length){Ot(ot[0],e);for(var n=1;n<ot.length;n++){var a=ot[n];a.blockedOn===e&&(a.blockedOn=null)}}for(null!==st&&Ot(st,e),null!==ut&&Ot(ut,e),null!==ct&&Ot(ct,e),pt.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(a=dt[n]).blockedOn===e&&(a.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function _t(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function St(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Et(e,t,n){(t=B(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=_(n._dispatchListeners,t),n._dispatchInstances=_(n._dispatchInstances,e))}function jt(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=St(t);for(t=n.length;0<t--;)Et(n[t],"captured",e);for(t=0;t<n.length;t++)Et(n[t],"bubbled",e)}}function Tt(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=B(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=_(n._dispatchListeners,t),n._dispatchInstances=_(n._dispatchInstances,e))}function Pt(e){e&&e.dispatchConfig.registrationName&&Tt(e._targetInst,null,e)}function Bt(e){S(e,jt)}function Mt(){return!0}function Nt(){return!1}function It(e,t,n,a){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=a:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Mt:Nt,this.isPropagationStopped=Nt,this}function Dt(e,t,n,a){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,a),r}return new this(e,t,n,a)}function Rt(e){if(!(e instanceof this))throw Error(l(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function At(e){e.eventPool=[],e.getPooled=Dt,e.release=Rt}r(It.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Mt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Mt)},persist:function(){this.isPersistent=Mt},isPersistent:Nt,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Nt,this._dispatchInstances=this._dispatchListeners=null}}),It.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},It.extend=function(e){function t(){}function n(){return a.apply(this,arguments)}var a=this;t.prototype=a.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},a.Interface,e),n.extend=a.extend,At(n),n},At(It);var zt=It.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Lt=It.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ft=It.extend({view:null,detail:null}),Ut=Ft.extend({relatedTarget:null});function Ht(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Vt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Wt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Wt[e])&&!!t[e]}function Kt(){return qt}for(var $t=Ft.extend({key:function(e){if(e.key){var t=Vt[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ht(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Gt[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Kt,charCode:function(e){return"keypress"===e.type?Ht(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ht(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Yt=0,Qt=0,Xt=!1,Jt=!1,Zt=Ft.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Kt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Yt;return Yt=e.screenX,Xt?"mousemove"===e.type?e.screenX-t:0:(Xt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Qt;return Qt=e.screenY,Jt?"mousemove"===e.type?e.screenY-t:0:(Jt=!0,0)}}),en=Zt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),tn=Zt.extend({dataTransfer:null}),nn=Ft.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Kt}),an=It.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),rn=Zt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ln=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[$e,"animationEnd",2],[Ye,"animationIteration",2],[Qe,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Xe,"transitionEnd",2],["waiting","waiting",2]],on={},sn={},un=0;un<ln.length;un++){var cn=ln[un],pn=cn[0],fn=cn[1],dn=cn[2],gn="on"+(fn[0].toUpperCase()+fn.slice(1)),mn={phasedRegistrationNames:{bubbled:gn,captured:gn+"Capture"},dependencies:[pn],eventPriority:dn};on[fn]=mn,sn[pn]=mn}var hn={eventTypes:on,getEventPriority:function(e){return void 0!==(e=sn[e])?e.eventPriority:2},extractEvents:function(e,t,n,a){var r=sn[e];if(!r)return null;switch(e){case"keypress":if(0===Ht(n))return null;case"keydown":case"keyup":e=$t;break;case"blur":case"focus":e=Ut;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=tn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=nn;break;case $e:case Ye:case Qe:e=zt;break;case Xe:e=an;break;case"scroll":e=Ft;break;case"wheel":e=rn;break;case"copy":case"cut":case"paste":e=Lt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=en;break;default:e=It}return Bt(t=e.getPooled(r,t,n,a)),t}},bn=i.unstable_UserBlockingPriority,vn=i.unstable_runWithPriority,yn=hn.getEventPriority,wn=10,kn=[];function Cn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var a=n;if(3===a.tag)a=a.stateNode.containerInfo;else{for(;a.return;)a=a.return;a=3!==a.tag?null:a.stateNode.containerInfo}if(!a)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=ua(a)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=_t(e.nativeEvent);a=e.topLevelType;for(var i=e.nativeEvent,l=e.eventSystemFlags,o=null,s=0;s<p.length;s++){var u=p[s];u&&(u=u.extractEvents(a,t,i,r,l))&&(o=_(o,u))}T(o)}}var On=!0;function xn(e,t){_n(t,e,!1)}function _n(e,t,n){switch(yn(t)){case 0:var a=function(e,t,n){ue||oe();var a=En,r=ue;ue=!0;try{le(a,e,t,n)}finally{(ue=r)||pe()}}.bind(null,t,1);break;case 1:a=function(e,t,n){vn(bn,En.bind(null,e,t,n))}.bind(null,t,1);break;default:a=En.bind(null,t,1)}n?e.addEventListener(t,a,!0):e.addEventListener(t,a,!1)}function Sn(e,t,n,a){if(kn.length){var r=kn.pop();r.topLevelType=e,r.eventSystemFlags=t,r.nativeEvent=n,r.targetInst=a,e=r}else e={topLevelType:e,eventSystemFlags:t,nativeEvent:n,targetInst:a,ancestors:[]};try{if(t=Cn,n=e,ce)t(n,void 0);else{ce=!0;try{se(t,n,void 0)}finally{ce=!1,pe()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,kn.length<wn&&kn.push(e)}}function En(e,t,n){if(On)if(0<ot.length&&-1<gt.indexOf(e))e=ht(null,e,t,n),ot.push(e);else{var a=jn(e,t,n);null===a?bt(e,n):-1<gt.indexOf(e)?(e=ht(a,e,t,n),ot.push(e)):function(e,t,n,a){switch(t){case"focus":return st=vt(st,e,t,n,a),!0;case"dragenter":return ut=vt(ut,e,t,n,a),!0;case"mouseover":return ct=vt(ct,e,t,n,a),!0;case"pointerover":var r=a.pointerId;return pt.set(r,vt(pt.get(r)||null,e,t,n,a)),!0;case"gotpointercapture":return r=a.pointerId,ft.set(r,vt(ft.get(r)||null,e,t,n,a)),!0}return!1}(a,e,t,n)||(bt(e,n),Sn(e,t,n,null))}}function jn(e,t,n){var a=_t(n);if(null!==(a=ua(a))){var r=Ze(a);if(null===r)a=null;else{var i=r.tag;if(13===i){if(null!==(a=et(r)))return a;a=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;a=null}else r!==a&&(a=null)}}return Sn(e,t,n,a),null}function Tn(e){if(!J)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var Pn=new("function"==typeof WeakMap?WeakMap:Map);function Bn(e){var t=Pn.get(e);return void 0===t&&(t=new Set,Pn.set(e,t)),t}function Mn(e,t,n){if(!n.has(e)){switch(e){case"scroll":_n(t,"scroll",!0);break;case"focus":case"blur":_n(t,"focus",!0),_n(t,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Tn(e)&&_n(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Je.indexOf(e)&&xn(e,t)}n.add(e)}}var Nn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];function Dn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}function Rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var a=0===n.indexOf("--"),r=Dn(n,t[n],a);"float"===n&&(n="cssFloat"),a?e.setProperty(n,r):e[n]=r}}Object.keys(Nn).forEach(function(e){In.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]})});var An=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zn(e,t){if(t){if(An[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(l(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(l(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(l(62,""))}}function Ln(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Fn(e,t){var n=Bn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=g[t];for(var a=0;a<t.length;a++)Mn(t[a],e,n)}function Un(){}function Hn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Vn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gn(e,t){var n,a=Vn(e);for(e=0;a;){if(3===a.nodeType){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Vn(a)}}function Wn(){for(var e=window,t=Hn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Hn((e=t.contentWindow).document)}return t}function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Kn="$",$n="/$",Yn="$?",Qn="$!",Xn=null,Jn=null;function Zn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ea(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ta="function"==typeof setTimeout?setTimeout:void 0,na="function"==typeof clearTimeout?clearTimeout:void 0;function aa(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function ra(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Kn||n===Qn||n===Yn){if(0===t)return e;t--}else n===$n&&t++}e=e.previousSibling}return null}var ia=Math.random().toString(36).slice(2),la="__reactInternalInstance$"+ia,oa="__reactEventHandlers$"+ia,sa="__reactContainere$"+ia;function ua(e){var t=e[la];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sa]||n[la]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ra(e);null!==e;){if(n=e[la])return n;e=ra(e)}return t}n=(e=n).parentNode}return null}function ca(e){return!(e=e[la]||e[sa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(l(33))}function fa(e){return e[oa]||null}var da=null,ga=null,ma=null;function ha(){if(ma)return ma;var e,t,n=ga,a=n.length,r="value"in da?da.value:da.textContent,i=r.length;for(e=0;e<a&&n[e]===r[e];e++);var l=a-e;for(t=1;t<=l&&n[a-t]===r[i-t];t++);return ma=r.slice(e,1<t?1-t:void 0)}var ba=It.extend({data:null}),va=It.extend({data:null}),ya=[9,13,27,32],wa=J&&"CompositionEvent"in window,ka=null;J&&"documentMode"in document&&(ka=document.documentMode);var Ca=J&&"TextEvent"in window&&!ka,Oa=J&&(!wa||ka&&8<ka&&11>=ka),xa=String.fromCharCode(32),_a={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Sa=!1;function Ea(e,t){switch(e){case"keyup":return-1!==ya.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ja(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ta=!1;var Pa={eventTypes:_a,extractEvents:function(e,t,n,a){var r;if(wa)e:{switch(e){case"compositionstart":var i=_a.compositionStart;break e;case"compositionend":i=_a.compositionEnd;break e;case"compositionupdate":i=_a.compositionUpdate;break e}i=void 0}else Ta?Ea(e,n)&&(i=_a.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=_a.compositionStart);return i?(Oa&&"ko"!==n.locale&&(Ta||i!==_a.compositionStart?i===_a.compositionEnd&&Ta&&(r=ha()):(ga="value"in(da=a)?da.value:da.textContent,Ta=!0)),i=ba.getPooled(i,t,n,a),r?i.data=r:null!==(r=ja(n))&&(i.data=r),Bt(i),r=i):r=null,(e=Ca?function(e,t){switch(e){case"compositionend":return ja(t);case"keypress":return 32!==t.which?null:(Sa=!0,xa);case"textInput":return(e=t.data)===xa&&Sa?null:e;default:return null}}(e,n):function(e,t){if(Ta)return"compositionend"===e||!wa&&Ea(e,t)?(e=ha(),ma=ga=da=null,Ta=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Oa&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=va.getPooled(_a.beforeInput,t,n,a)).data=e,Bt(t)):t=null,null===r?t:null===t?r:[r,t]}},Ba={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ma(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ba[e.type]:"textarea"===t}var Na={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Ia(e,t,n){return(e=It.getPooled(Na.change,e,t,n)).type="change",ae(n),Bt(e),e}var Da=null,Ra=null;function Aa(e){T(e)}function za(e){if(xe(pa(e)))return e}function La(e,t){if("change"===e)return t}var Fa=!1;function Ua(){Da&&(Da.detachEvent("onpropertychange",Ha),Ra=Da=null)}function Ha(e){if("value"===e.propertyName&&za(Ra))if(e=Ia(Ra,e,_t(e)),ue)T(e);else{ue=!0;try{ie(Aa,e)}finally{ue=!1,pe()}}}function Va(e,t,n){"focus"===e?(Ua(),Ra=n,(Da=t).attachEvent("onpropertychange",Ha)):"blur"===e&&Ua()}function Ga(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return za(Ra)}function Wa(e,t){if("click"===e)return za(t)}function qa(e,t){if("input"===e||"change"===e)return za(t)}J&&(Fa=Tn("input")&&(!document.documentMode||9<document.documentMode));var Ka,$a={eventTypes:Na,_isInputEventSupported:Fa,extractEvents:function(e,t,n,a){var r=t?pa(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var l=La;else if(Ma(r))if(Fa)l=qa;else{l=Ga;var o=Va}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(l=Wa);if(l&&(l=l(e,t)))return Ia(l,n,a);o&&o(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Pe(r,"number",r.value)}},Ya={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qa={eventTypes:Ya,extractEvents:function(e,t,n,a,r){var i="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e;if(i&&0==(32&r)&&(n.relatedTarget||n.fromElement)||!l&&!i)return null;if(r=a.window===a?a:(r=a.ownerDocument)?r.defaultView||r.parentWindow:window,l?(l=t,null!==(t=(t=n.relatedTarget||n.toElement)?ua(t):null)&&(t!==(i=Ze(t))||5!==t.tag&&6!==t.tag)&&(t=null)):l=null,l===t)return null;if("mouseout"===e||"mouseover"===e)var o=Zt,s=Ya.mouseLeave,u=Ya.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(o=en,s=Ya.pointerLeave,u=Ya.pointerEnter,c="pointer");if(e=null==l?r:pa(l),r=null==t?r:pa(t),(s=o.getPooled(s,l,n,a)).type=c+"leave",s.target=e,s.relatedTarget=r,(a=o.getPooled(u,t,n,a)).type=c+"enter",a.target=r,a.relatedTarget=e,c=t,(o=l)&&c)e:{for(e=c,l=0,t=u=o;t;t=St(t))l++;for(t=0,r=e;r;r=St(r))t++;for(;0<l-t;)u=St(u),l--;for(;0<t-l;)e=St(e),t--;for(;l--;){if(u===e||u===e.alternate)break e;u=St(u),e=St(e)}u=null}else u=null;for(e=u,u=[];o&&o!==e&&(null===(l=o.alternate)||l!==e);)u.push(o),o=St(o);for(o=[];c&&c!==e&&(null===(l=c.alternate)||l!==e);)o.push(c),c=St(c);for(c=0;c<u.length;c++)Tt(u[c],"bubbled",s);for(c=o.length;0<c--;)Tt(o[c],"captured",a);return n===Ka?(Ka=null,[s]):(Ka=n,[s,a])}};var Xa="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ja=Object.prototype.hasOwnProperty;function Za(e,t){if(Xa(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++)if(!Ja.call(t,n[a])||!Xa(e[n[a]],t[n[a]]))return!1;return!0}var er=J&&"documentMode"in document&&11>=document.documentMode,tr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},nr=null,ar=null,rr=null,ir=!1;function lr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ir||null==nr||nr!==Hn(n)?null:("selectionStart"in(n=nr)&&qn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},rr&&Za(rr,n)?null:(rr=n,(e=It.getPooled(tr.select,ar,e,t)).type="select",e.target=nr,Bt(e),e))}var or={eventTypes:tr,extractEvents:function(e,t,n,a){var r,i=a.window===a?a.document:9===a.nodeType?a:a.ownerDocument;if(!(r=!i)){e:{i=Bn(i),r=g.onSelect;for(var l=0;l<r.length;l++)if(!i.has(r[l])){i=!1;break e}i=!0}r=!i}if(r)return null;switch(i=t?pa(t):window,e){case"focus":(Ma(i)||"true"===i.contentEditable)&&(nr=i,ar=t,rr=null);break;case"blur":rr=ar=nr=null;break;case"mousedown":ir=!0;break;case"contextmenu":case"mouseup":case"dragend":return ir=!1,lr(n,a);case"selectionchange":if(er)break;case"keydown":case"keyup":return lr(n,a)}return null}};P.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=fa,C=ca,O=pa,P.injectEventPluginsByName({SimpleEventPlugin:hn,EnterLeaveEventPlugin:Qa,ChangeEventPlugin:$a,SelectEventPlugin:or,BeforeInputEventPlugin:Pa}),new Set;var sr=[],ur=-1;function cr(e){0>ur||(e.current=sr[ur],sr[ur]=null,ur--)}function pr(e,t){sr[++ur]=e.current,e.current=t}var fr={},dr={current:fr},gr={current:!1},mr=fr;function hr(e,t){var n=e.type.contextTypes;if(!n)return fr;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return a&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function br(e){return null!=(e=e.childContextTypes)}function vr(e){cr(gr),cr(dr)}function yr(e){cr(gr),cr(dr)}function wr(e,t,n){if(dr.current!==fr)throw Error(l(168));pr(dr,t),pr(gr,n)}function kr(e,t,n){var a=e.stateNode;if(e=t.childContextTypes,"function"!=typeof a.getChildContext)return n;for(var i in a=a.getChildContext())if(!(i in e))throw Error(l(108,Q(t)||"Unknown",i));return r({},n,{},a)}function Cr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||fr,mr=dr.current,pr(dr,t),pr(gr,gr.current),!0}function Or(e,t,n){var a=e.stateNode;if(!a)throw Error(l(169));n?(t=kr(e,t,mr),a.__reactInternalMemoizedMergedChildContext=t,cr(gr),cr(dr),pr(dr,t)):cr(gr),pr(gr,n)}var xr=i.unstable_runWithPriority,_r=i.unstable_scheduleCallback,Sr=i.unstable_cancelCallback,Er=i.unstable_shouldYield,jr=i.unstable_requestPaint,Tr=i.unstable_now,Pr=i.unstable_getCurrentPriorityLevel,Br=i.unstable_ImmediatePriority,Mr=i.unstable_UserBlockingPriority,Nr=i.unstable_NormalPriority,Ir=i.unstable_LowPriority,Dr=i.unstable_IdlePriority,Rr={},Ar=void 0!==jr?jr:function(){},zr=null,Lr=null,Fr=!1,Ur=Tr(),Hr=1e4>Ur?Tr:function(){return Tr()-Ur};function Vr(){switch(Pr()){case Br:return 99;case Mr:return 98;case Nr:return 97;case Ir:return 96;case Dr:return 95;default:throw Error(l(332))}}function Gr(e){switch(e){case 99:return Br;case 98:return Mr;case 97:return Nr;case 96:return Ir;case 95:return Dr;default:throw Error(l(332))}}function Wr(e,t){return e=Gr(e),xr(e,t)}function qr(e,t,n){return e=Gr(e),_r(e,t,n)}function Kr(e){return null===zr?(zr=[e],Lr=_r(Br,Yr)):zr.push(e),Rr}function $r(){if(null!==Lr){var e=Lr;Lr=null,Sr(e)}Yr()}function Yr(){if(!Fr&&null!==zr){Fr=!0;var e=0;try{var t=zr;Wr(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),zr=null}catch(t){throw null!==zr&&(zr=zr.slice(e+1)),_r(Br,$r),t}finally{Fr=!1}}}var Qr=3;function Xr(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Jr(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Zr={current:null},ei=null,ti=null,ni=null;function ai(){ni=ti=ei=null}function ri(e,t){var n=e.type._context;pr(Zr,n._currentValue),n._currentValue=t}function ii(e){var t=Zr.current;cr(Zr),e.type._context._currentValue=t}function li(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function oi(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ul=!0),e.firstContext=null)}function si(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(l(308));ti=t,ei.dependencies={expirationTime:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var ui=!1;function ci(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function pi(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function fi(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function di(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function gi(e,t){var n=e.alternate;if(null===n){var a=e.updateQueue,r=null;null===a&&(a=e.updateQueue=ci(e.memoizedState))}else a=e.updateQueue,r=n.updateQueue,null===a?null===r?(a=e.updateQueue=ci(e.memoizedState),r=n.updateQueue=ci(n.memoizedState)):a=e.updateQueue=pi(r):null===r&&(r=n.updateQueue=pi(a));null===r||a===r?di(a,t):null===a.lastUpdate||null===r.lastUpdate?(di(a,t),di(r,t)):(di(a,t),r.lastUpdate=t)}function mi(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=ci(e.memoizedState):hi(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function hi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=pi(t)),t}function bi(e,t,n,a,i,l){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(l,a,i):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(l,a,i):e))break;return r({},a,i);case 2:ui=!0}return a}function vi(e,t,n,a,r){ui=!1;for(var i=(t=hi(e,t)).baseState,l=null,o=0,s=t.firstUpdate,u=i;null!==s;){var c=s.expirationTime;c<r?(null===l&&(l=s,i=u),o<c&&(o=c)):(Os(c,s.suspenseConfig),u=bi(e,0,s,u,n,a),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var p=s.expirationTime;p<r?(null===c&&(c=s,null===l&&(i=u)),o<p&&(o=p)):(u=bi(e,0,s,u,n,a),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===l&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===l&&null===c&&(i=u),t.baseState=i,t.firstUpdate=l,t.firstCapturedUpdate=c,xs(o),e.expirationTime=o,e.memoizedState=u}function yi(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),wi(t.firstEffect,n),t.firstEffect=t.lastEffect=null,wi(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function wi(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var a=t;if("function"!=typeof n)throw Error(l(191,n));n.call(a)}e=e.nextEffect}}var ki=M.ReactCurrentBatchConfig,Ci=(new a.Component).refs;function Oi(e,t,n,a){n=null==(n=n(a,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,null!==(a=e.updateQueue)&&0===e.expirationTime&&(a.baseState=n)}var xi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var a=ps(),r=ki.suspense;(r=fi(a=fs(a,e,r),r)).payload=t,null!=n&&(r.callback=n),gi(e,r),ds(e,a)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var a=ps(),r=ki.suspense;(r=fi(a=fs(a,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),gi(e,r),ds(e,a)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ps(),a=ki.suspense;(a=fi(n=fs(n,e,a),a)).tag=2,null!=t&&(a.callback=t),gi(e,a),ds(e,n)}};function _i(e,t,n,a,r,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(a,i,l):!t.prototype||!t.prototype.isPureReactComponent||(!Za(n,a)||!Za(r,i))}function Si(e,t,n){var a=!1,r=fr,i=t.contextType;return"object"==typeof i&&null!==i?i=si(i):(r=br(t)?mr:dr.current,i=(a=null!=(a=t.contextTypes))?hr(e,r):fr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=xi,e.stateNode=t,t._reactInternalFiber=e,a&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ei(e,t,n,a){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&xi.enqueueReplaceState(t,t.state,null)}function ji(e,t,n,a){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Ci;var i=t.contextType;"object"==typeof i&&null!==i?r.context=si(i):(i=br(t)?mr:dr.current,r.context=hr(e,i)),null!==(i=e.updateQueue)&&(vi(e,i,n,r,a),r.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(Oi(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&xi.enqueueReplaceState(r,r.state,null),null!==(i=e.updateQueue)&&(vi(e,i,n,r,a),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var Ti=Array.isArray;function Pi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(l(309));var a=n.stateNode}if(!a)throw Error(l(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=a.refs;t===Ci&&(t=a.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function Bi(e,t){if("textarea"!==e.type)throw Error(l(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Mi(e){function t(t,n){if(e){var a=t.lastEffect;null!==a?(a.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t,n){return(e=Hs(e,t)).index=0,e.sibling=null,e}function i(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index)<n?(t.effectTag=2,n):a:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,a){return null===t||6!==t.tag?((t=Ws(n,e.mode,a)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,a){return null!==t&&t.elementType===n.type?((a=r(t,n.props)).ref=Pi(e,t,n),a.return=e,a):((a=Vs(n.type,n.key,n.props,null,e.mode,a)).ref=Pi(e,t,n),a.return=e,a)}function c(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qs(n,e.mode,a)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function p(e,t,n,a,i){return null===t||7!==t.tag?((t=Gs(n,e.mode,a,i)).return=e,t):((t=r(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ws(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case D:return(n=Vs(t.type,t.key,t.props,null,e.mode,n)).ref=Pi(e,null,t),n.return=e,n;case R:return(t=qs(t,e.mode,n)).return=e,t}if(Ti(t)||Y(t))return(t=Gs(t,e.mode,n,null)).return=e,t;Bi(e,t)}return null}function d(e,t,n,a){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:s(e,t,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case D:return n.key===r?n.type===A?p(e,t,n.props.children,a,r):u(e,t,n,a):null;case R:return n.key===r?c(e,t,n,a):null}if(Ti(n)||Y(n))return null!==r?null:p(e,t,n,a,null);Bi(e,n)}return null}function g(e,t,n,a,r){if("string"==typeof a||"number"==typeof a)return s(t,e=e.get(n)||null,""+a,r);if("object"==typeof a&&null!==a){switch(a.$$typeof){case D:return e=e.get(null===a.key?n:a.key)||null,a.type===A?p(t,e,a.props.children,r,a.key):u(t,e,a,r);case R:return c(t,e=e.get(null===a.key?n:a.key)||null,a,r)}if(Ti(a)||Y(a))return p(t,e=e.get(n)||null,a,r,null);Bi(t,a)}return null}function m(r,l,o,s){for(var u=null,c=null,p=l,m=l=0,h=null;null!==p&&m<o.length;m++){p.index>m?(h=p,p=null):h=p.sibling;var b=d(r,p,o[m],s);if(null===b){null===p&&(p=h);break}e&&p&&null===b.alternate&&t(r,p),l=i(b,l,m),null===c?u=b:c.sibling=b,c=b,p=h}if(m===o.length)return n(r,p),u;if(null===p){for(;m<o.length;m++)null!==(p=f(r,o[m],s))&&(l=i(p,l,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=a(r,p);m<o.length;m++)null!==(h=g(p,r,m,o[m],s))&&(e&&null!==h.alternate&&p.delete(null===h.key?m:h.key),l=i(h,l,m),null===c?u=h:c.sibling=h,c=h);return e&&p.forEach(function(e){return t(r,e)}),u}function h(r,o,s,u){var c=Y(s);if("function"!=typeof c)throw Error(l(150));if(null==(s=c.call(s)))throw Error(l(151));for(var p=c=null,m=o,h=o=0,b=null,v=s.next();null!==m&&!v.done;h++,v=s.next()){m.index>h?(b=m,m=null):b=m.sibling;var y=d(r,m,v.value,u);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(r,m),o=i(y,o,h),null===p?c=y:p.sibling=y,p=y,m=b}if(v.done)return n(r,m),c;if(null===m){for(;!v.done;h++,v=s.next())null!==(v=f(r,v.value,u))&&(o=i(v,o,h),null===p?c=v:p.sibling=v,p=v);return c}for(m=a(r,m);!v.done;h++,v=s.next())null!==(v=g(m,r,h,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),o=i(v,o,h),null===p?c=v:p.sibling=v,p=v);return e&&m.forEach(function(e){return t(r,e)}),c}return function(e,a,i,s){var u="object"==typeof i&&null!==i&&i.type===A&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case D:e:{for(c=i.key,u=a;null!==u;){if(u.key===c){if(7===u.tag?i.type===A:u.elementType===i.type){n(e,u.sibling),(a=r(u,i.type===A?i.props.children:i.props)).ref=Pi(e,u,i),a.return=e,e=a;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===A?((a=Gs(i.props.children,e.mode,s,i.key)).return=e,e=a):((s=Vs(i.type,i.key,i.props,null,e.mode,s)).ref=Pi(e,a,i),s.return=e,e=s)}return o(e);case R:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(e,a.sibling),(a=r(a,i.children||[])).return=e,e=a;break e}n(e,a);break}t(e,a),a=a.sibling}(a=qs(i,e.mode,s)).return=e,e=a}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==a&&6===a.tag?(n(e,a.sibling),(a=r(a,i)).return=e,e=a):(n(e,a),(a=Ws(i,e.mode,s)).return=e,e=a),o(e);if(Ti(i))return m(e,a,i,s);if(Y(i))return h(e,a,i,s);if(c&&Bi(e,i),void 0===i&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(l(152,e.displayName||e.name||"Component"))}return n(e,a)}}var Ni=Mi(!0),Ii=Mi(!1),Di={},Ri={current:Di},Ai={current:Di},zi={current:Di};function Li(e){if(e===Di)throw Error(l(174));return e}function Fi(e,t){pr(zi,t),pr(Ai,e),pr(Ri,Di);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}cr(Ri),pr(Ri,t)}function Ui(e){cr(Ri),cr(Ai),cr(zi)}function Hi(e){Li(zi.current);var t=Li(Ri.current),n=Le(t,e.type);t!==n&&(pr(Ai,e),pr(Ri,n))}function Vi(e){Ai.current===e&&(cr(Ri),cr(Ai))}var Gi={current:0};function Wi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Yn||n.data===Qn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qi(e,t){return{responder:e,props:t}}var Ki=M.ReactCurrentDispatcher,$i=M.ReactCurrentBatchConfig,Yi=0,Qi=null,Xi=null,Ji=null,Zi=null,el=null,tl=null,nl=0,al=null,rl=0,il=!1,ll=null,ol=0;function sl(){throw Error(l(321))}function ul(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xa(e[n],t[n]))return!1;return!0}function cl(e,t,n,a,r,i){if(Yi=i,Qi=t,Ji=null!==e?e.memoizedState:null,Ki.current=null===Ji?Tl:Pl,t=n(a,r),il){do{il=!1,ol+=1,Ji=null!==e?e.memoizedState:null,tl=Zi,al=el=Xi=null,Ki.current=Pl,t=n(a,r)}while(il);ll=null,ol=0}if(Ki.current=jl,(e=Qi).memoizedState=Zi,e.expirationTime=nl,e.updateQueue=al,e.effectTag|=rl,e=null!==Xi&&null!==Xi.next,Yi=0,tl=el=Zi=Ji=Xi=Qi=null,nl=0,al=null,rl=0,e)throw Error(l(300));return t}function pl(){Ki.current=jl,Yi=0,tl=el=Zi=Ji=Xi=Qi=null,nl=0,al=null,rl=0,il=!1,ll=null,ol=0}function fl(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===el?Zi=el=e:el=el.next=e,el}function dl(){if(null!==tl)tl=(el=tl).next,Ji=null!==(Xi=Ji)?Xi.next:null;else{if(null===Ji)throw Error(l(310));var e={memoizedState:(Xi=Ji).memoizedState,baseState:Xi.baseState,queue:Xi.queue,baseUpdate:Xi.baseUpdate,next:null};el=null===el?Zi=e:el.next=e,Ji=Xi.next}return el}function gl(e,t){return"function"==typeof t?t(e):t}function ml(e){var t=dl(),n=t.queue;if(null===n)throw Error(l(311));if(n.lastRenderedReducer=e,0<ol){var a=n.dispatch;if(null!==ll){var r=ll.get(n);if(void 0!==r){ll.delete(n);var i=t.memoizedState;do{i=e(i,r.action),r=r.next}while(null!==r);return Xa(i,t.memoizedState)||(Ul=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,a]}}return[t.memoizedState,a]}a=n.last;var o=t.baseUpdate;if(i=t.baseState,null!==o?(null!==a&&(a.next=null),a=o.next):a=null!==a?a.next:null,null!==a){var s=r=null,u=a,c=!1;do{var p=u.expirationTime;p<Yi?(c||(c=!0,s=o,r=i),p>nl&&xs(nl=p)):(Os(p,u.suspenseConfig),i=u.eagerReducer===e?u.eagerState:e(i,u.action)),o=u,u=u.next}while(null!==u&&u!==a);c||(s=o,r=i),Xa(i,t.memoizedState)||(Ul=!0),t.memoizedState=i,t.baseUpdate=s,t.baseState=r,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function hl(e){var t=fl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:gl,lastRenderedState:e}).dispatch=El.bind(null,Qi,e),[t.memoizedState,e]}function bl(e){return ml(gl)}function vl(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},null===al?(al={lastEffect:null}).lastEffect=e.next=e:null===(t=al.lastEffect)?al.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,al.lastEffect=e),e}function yl(e,t,n,a){var r=fl();rl|=e,r.memoizedState=vl(t,n,void 0,void 0===a?null:a)}function wl(e,t,n,a){var r=dl();a=void 0===a?null:a;var i=void 0;if(null!==Xi){var l=Xi.memoizedState;if(i=l.destroy,null!==a&&ul(a,l.deps))return void vl(0,n,i,a)}rl|=e,r.memoizedState=vl(t,n,i,a)}function kl(e,t){return yl(516,192,e,t)}function Cl(e,t){return wl(516,192,e,t)}function Ol(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xl(){}function _l(e,t){return fl().memoizedState=[e,void 0===t?null:t],e}function Sl(e,t){var n=dl();t=void 0===t?null:t;var a=n.memoizedState;return null!==a&&null!==t&&ul(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function El(e,t,n){if(!(25>ol))throw Error(l(301));var a=e.alternate;if(e===Qi||null!==a&&a===Qi)if(il=!0,e={expirationTime:Yi,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===ll&&(ll=new Map),void 0===(n=ll.get(t)))ll.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var r=ps(),i=ki.suspense;i={expirationTime:r=fs(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.last;if(null===o)i.next=i;else{var s=o.next;null!==s&&(i.next=s),o.next=i}if(t.last=i,0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=a(u,n);if(i.eagerReducer=a,i.eagerState=c,Xa(c,u))return}catch(e){}ds(e,r)}}var jl={readContext:si,useCallback:sl,useContext:sl,useEffect:sl,useImperativeHandle:sl,useLayoutEffect:sl,useMemo:sl,useReducer:sl,useRef:sl,useState:sl,useDebugValue:sl,useResponder:sl,useDeferredValue:sl,useTransition:sl},Tl={readContext:si,useCallback:_l,useContext:si,useEffect:kl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yl(4,36,Ol.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yl(4,36,e,t)},useMemo:function(e,t){var n=fl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=fl();return t=void 0!==n?n(t):t,a.memoizedState=a.baseState=t,e=(e=a.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=El.bind(null,Qi,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},fl().memoizedState=e},useState:hl,useDebugValue:xl,useResponder:qi,useDeferredValue:function(e,t){var n=hl(e),a=n[0],r=n[1];return kl(function(){i.unstable_next(function(){var n=$i.suspense;$i.suspense=void 0===t?null:t;try{r(e)}finally{$i.suspense=n}})},[e,t]),a},useTransition:function(e){var t=hl(!1),n=t[0],a=t[1];return[_l(function(t){a(!0),i.unstable_next(function(){var n=$i.suspense;$i.suspense=void 0===e?null:e;try{a(!1),t()}finally{$i.suspense=n}})},[e,n]),n]}},Pl={readContext:si,useCallback:Sl,useContext:si,useEffect:Cl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wl(4,36,Ol.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wl(4,36,e,t)},useMemo:function(e,t){var n=dl();t=void 0===t?null:t;var a=n.memoizedState;return null!==a&&null!==t&&ul(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ml,useRef:function(){return dl().memoizedState},useState:bl,useDebugValue:xl,useResponder:qi,useDeferredValue:function(e,t){var n=bl(),a=n[0],r=n[1];return Cl(function(){i.unstable_next(function(){var n=$i.suspense;$i.suspense=void 0===t?null:t;try{r(e)}finally{$i.suspense=n}})},[e,t]),a},useTransition:function(e){var t=bl(),n=t[0],a=t[1];return[Sl(function(t){a(!0),i.unstable_next(function(){var n=$i.suspense;$i.suspense=void 0===e?null:e;try{a(!1),t()}finally{$i.suspense=n}})},[e,n]),n]}},Bl=null,Ml=null,Nl=!1;function Il(e,t){var n=Fs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Dl(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Rl(e){if(Nl){var t=Ml;if(t){var n=t;if(!Dl(e,t)){if(!(t=aa(n.nextSibling))||!Dl(e,t))return e.effectTag=-1025&e.effectTag|2,Nl=!1,void(Bl=e);Il(Bl,n)}Bl=e,Ml=aa(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Nl=!1,Bl=e}}function Al(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bl=e}function zl(e){if(e!==Bl)return!1;if(!Nl)return Al(e),Nl=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!ea(t,e.memoizedProps))for(t=Ml;t;)Il(e,t),t=aa(t.nextSibling);if(Al(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===$n){if(0===t){Ml=aa(e.nextSibling);break e}t--}else n!==Kn&&n!==Qn&&n!==Yn||t++}e=e.nextSibling}Ml=null}}else Ml=Bl?aa(e.stateNode.nextSibling):null;return!0}function Ll(){Ml=Bl=null,Nl=!1}var Fl=M.ReactCurrentOwner,Ul=!1;function Hl(e,t,n,a){t.child=null===e?Ii(t,null,n,a):Ni(t,e.child,n,a)}function Vl(e,t,n,a,r){n=n.render;var i=t.ref;return oi(t,r),a=cl(e,t,n,a,i,r),null===e||Ul?(t.effectTag|=1,Hl(e,t,a,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),lo(e,t,r))}function Gl(e,t,n,a,r,i){if(null===e){var l=n.type;return"function"!=typeof l||Us(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vs(n.type,null,a,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,Wl(e,t,l,a,r,i))}return l=e.child,r<i&&(r=l.memoizedProps,(n=null!==(n=n.compare)?n:Za)(r,a)&&e.ref===t.ref)?lo(e,t,i):(t.effectTag|=1,(e=Hs(l,a)).ref=t.ref,e.return=t,t.child=e)}function Wl(e,t,n,a,r,i){return null!==e&&Za(e.memoizedProps,a)&&e.ref===t.ref&&(Ul=!1,r<i)?lo(e,t,i):Kl(e,t,n,a,i)}function ql(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Kl(e,t,n,a,r){var i=br(n)?mr:dr.current;return i=hr(t,i),oi(t,r),n=cl(e,t,n,a,i,r),null===e||Ul?(t.effectTag|=1,Hl(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),lo(e,t,r))}function $l(e,t,n,a,r){if(br(n)){var i=!0;Cr(t)}else i=!1;if(oi(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Si(t,n,a),ji(t,n,a,r),a=!0;else if(null===e){var l=t.stateNode,o=t.memoizedProps;l.props=o;var s=l.context,u=n.contextType;"object"==typeof u&&null!==u?u=si(u):u=hr(t,u=br(n)?mr:dr.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof l.getSnapshotBeforeUpdate;p||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(o!==a||s!==u)&&Ei(t,l,a,u),ui=!1;var f=t.memoizedState;s=l.state=f;var d=t.updateQueue;null!==d&&(vi(t,d,a,l,r),s=t.memoizedState),o!==a||f!==s||gr.current||ui?("function"==typeof c&&(Oi(t,n,c,a),s=t.memoizedState),(o=ui||_i(t,n,o,a,f,s,u))?(p||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.effectTag|=4)):("function"==typeof l.componentDidMount&&(t.effectTag|=4),t.memoizedProps=a,t.memoizedState=s),l.props=a,l.state=s,l.context=u,a=o):("function"==typeof l.componentDidMount&&(t.effectTag|=4),a=!1)}else l=t.stateNode,o=t.memoizedProps,l.props=t.type===t.elementType?o:Jr(t.type,o),s=l.context,"object"==typeof(u=n.contextType)&&null!==u?u=si(u):u=hr(t,u=br(n)?mr:dr.current),(p="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(o!==a||s!==u)&&Ei(t,l,a,u),ui=!1,s=t.memoizedState,f=l.state=s,null!==(d=t.updateQueue)&&(vi(t,d,a,l,r),f=t.memoizedState),o!==a||s!==f||gr.current||ui?("function"==typeof c&&(Oi(t,n,c,a),f=t.memoizedState),(c=ui||_i(t,n,o,a,s,f,u))?(p||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(a,f,u),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(a,f,u)),"function"==typeof l.componentDidUpdate&&(t.effectTag|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof l.componentDidUpdate||o===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||o===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=a,t.memoizedState=f),l.props=a,l.state=f,l.context=u,a=c):("function"!=typeof l.componentDidUpdate||o===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||o===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),a=!1);return Yl(e,t,n,a,i,r)}function Yl(e,t,n,a,r,i){ql(e,t);var l=0!=(64&t.effectTag);if(!a&&!l)return r&&Or(t,n,!1),lo(e,t,i);a=t.stateNode,Fl.current=t;var o=l&&"function"!=typeof n.getDerivedStateFromError?null:a.render();return t.effectTag|=1,null!==e&&l?(t.child=Ni(t,e.child,null,i),t.child=Ni(t,null,o,i)):Hl(e,t,o,i),t.memoizedState=a.state,r&&Or(t,n,!0),t.child}function Ql(e){var t=e.stateNode;t.pendingContext?wr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wr(0,t.context,!1),Fi(e,t.containerInfo)}var Xl,Jl,Zl,eo,to={dehydrated:null,retryTime:0};function no(e,t,n){var a,r=t.mode,i=t.pendingProps,l=Gi.current,o=!1;if((a=0!=(64&t.effectTag))||(a=0!=(2&l)&&(null===e||null!==e.memoizedState)),a?(o=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(l|=1),pr(Gi,1&l),null===e){if(void 0!==i.fallback&&Rl(t),o){if(o=i.fallback,(i=Gs(null,r,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Gs(o,r,n,null)).return=t,i.sibling=n,t.memoizedState=to,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=Ii(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,o){if(i=i.fallback,(n=Hs(e,e.pendingProps)).return=t,0==(2&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=o;null!==o;)o.return=n,o=o.sibling;return(r=Hs(r,i,r.expirationTime)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=to,t.child=n,r}return n=Ni(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,o){if(o=i.fallback,(i=Gs(null,r,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Gs(o,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=to,t.child=i,n}return t.memoizedState=null,t.child=Ni(t,e,i.children,n)}function ao(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),li(e.return,t)}function ro(e,t,n,a,r,i){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,last:a,tail:n,tailExpiration:0,tailMode:r,lastEffect:i}:(l.isBackwards=t,l.rendering=null,l.last=a,l.tail=n,l.tailExpiration=0,l.tailMode=r,l.lastEffect=i)}function io(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail;if(Hl(e,t,a.children,n),0!=(2&(a=Gi.current)))a=1&a|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ao(e,n);else if(19===e.tag)ao(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(pr(Gi,a),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Wi(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ro(t,!1,r,n,i,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Wi(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ro(t,!0,n,null,i,t.lastEffect);break;case"together":ro(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function lo(e,t,n){null!==e&&(t.dependencies=e.dependencies);var a=t.expirationTime;if(0!==a&&xs(a),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=Hs(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hs(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function oo(e){e.effectTag|=4}function so(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function uo(e){switch(e.tag){case 1:br(e.type)&&vr();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ui(),yr(),0!=(64&(t=e.effectTag)))throw Error(l(285));return e.effectTag=-4097&t|64,e;case 5:return Vi(e),null;case 13:return cr(Gi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return cr(Gi),null;case 4:return Ui(),null;case 10:return ii(e),null;default:return null}}function co(e,t){return{value:e,source:t,stack:X(t)}}Xl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Jl=function(){},Zl=function(e,t,n,a,i){var l=e.memoizedProps;if(l!==a){var o,s,u=t.stateNode;switch(Li(Ri.current),e=null,n){case"input":l=_e(u,l),a=_e(u,a),e=[];break;case"option":l=Be(u,l),a=Be(u,a),e=[];break;case"select":l=r({},l,{value:void 0}),a=r({},a,{value:void 0}),e=[];break;case"textarea":l=Ne(u,l),a=Ne(u,a),e=[];break;default:"function"!=typeof l.onClick&&"function"==typeof a.onClick&&(u.onclick=Un)}for(o in zn(n,a),n=null,l)if(!a.hasOwnProperty(o)&&l.hasOwnProperty(o)&&null!=l[o])if("style"===o)for(s in u=l[o])u.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(d.hasOwnProperty(o)?e||(e=[]):(e=e||[]).push(o,null));for(o in a){var c=a[o];if(u=null!=l?l[o]:void 0,a.hasOwnProperty(o)&&c!==u&&(null!=c||null!=u))if("style"===o)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(e||(e=[]),e.push(o,n)),n=c;else"dangerouslySetInnerHTML"===o?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(o,""+c)):"children"===o?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(o,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(d.hasOwnProperty(o)?(null!=c&&Fn(i,o),e||u===c||(e=[])):(e=e||[]).push(o,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&oo(t)}},eo=function(e,t,n,a){n!==a&&oo(t)};var po="function"==typeof WeakSet?WeakSet:Set;function fo(e,t){var n=t.source,a=t.stack;null===a&&null!==n&&(a=X(n)),null!==n&&Q(n.type),t=t.value,null!==e&&1===e.tag&&Q(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function go(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ds(e,t)}else t.current=null}function mo(e,t){switch(t.tag){case 0:case 11:case 15:ho(2,0,t);break;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,a=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jr(t.type,n),a),e.__reactInternalSnapshotBeforeUpdate=t}break;case 3:case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}function ho(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var a=n=n.next;do{if(0!=(a.tag&e)){var r=a.destroy;a.destroy=void 0,void 0!==r&&r()}0!=(a.tag&t)&&(r=a.create,a.destroy=r()),a=a.next}while(a!==n)}}function bo(e,t,n){switch("function"==typeof zs&&zs(t),t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var a=e.next;Wr(97<n?97:n,function(){var e=a;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(e){Ds(r,e)}}e=e.next}while(e!==a)})}break;case 1:go(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ds(e,t)}}(t,n);break;case 5:go(t);break;case 4:ko(e,t,n)}}function vo(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,null!==t&&vo(t)}function yo(e){return 5===e.tag||3===e.tag||4===e.tag}function wo(e){e:{for(var t=e.return;null!==t;){if(yo(t)){var n=t;break e}t=t.return}throw Error(l(160))}switch(t=n.stateNode,n.tag){case 5:var a=!1;break;case 3:case 4:t=t.containerInfo,a=!0;break;default:throw Error(l(161))}16&n.effectTag&&(He(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||yo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var r=e;;){var i=5===r.tag||6===r.tag;if(i){var o=i?r.stateNode:r.stateNode.instance;if(n)if(a){var s=o;o=n,8===(i=t).nodeType?i.parentNode.insertBefore(s,o):i.insertBefore(s,o)}else t.insertBefore(o,n);else a?(8===(s=t).nodeType?(i=s.parentNode).insertBefore(o,s):(i=s).appendChild(o),null!=(s=s._reactRootContainer)||null!==i.onclick||(i.onclick=Un)):t.appendChild(o)}else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function ko(e,t,n){for(var a,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(a=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:a=a.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,c=n,p=u;;)if(bo(s,p,c),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===u)break;for(;null===p.sibling;){if(null===p.return||p.return===u)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r?(s=a,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):a.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){a=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(bo(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Co(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ho(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var a=t.memoizedProps,r=null!==e?e.memoizedProps:a;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[oa]=a,"input"===e&&"radio"===a.type&&null!=a.name&&Ee(n,a),Ln(e,r),t=Ln(e,a),r=0;r<i.length;r+=2){var o=i[r],s=i[r+1];"style"===o?Rn(n,s):"dangerouslySetInnerHTML"===o?Ue(n,s):"children"===o?He(n,s):ke(n,o,s,t)}switch(e){case"input":je(n,a);break;case"textarea":De(n,a);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!a.multiple,null!=(e=a.value)?Me(n,!!a.multiple,e,!1):t!==!!a.multiple&&(null!=a.defaultValue?Me(n,!!a.multiple,a.defaultValue,!0):Me(n,!!a.multiple,a.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw Error(l(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:(t=t.stateNode).hydrate&&(t.hydrate=!1,xt(t.containerInfo));break;case 12:break;case 13:if(n=t,null===t.memoizedState?a=!1:(a=!0,n=t.child,Jo=Hr()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,a?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,i.style.display=Dn("display",r));else if(6===e.tag)e.stateNode.nodeValue=a?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Oo(t);break;case 19:Oo(t);break;case 17:case 20:case 21:break;default:throw Error(l(163))}}function Oo(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new po),t.forEach(function(t){var a=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=fs(t=ps(),e,null)),null!==(e=gs(e,t))&&hs(e)}.bind(null,e,t);n.has(t)||(n.add(t),t.then(a,a))})}}var xo="function"==typeof WeakMap?WeakMap:Map;function _o(e,t,n){(n=fi(n,null)).tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){ts||(ts=!0,ns=a),fo(e,t)},n}function So(e,t,n){(n=fi(n,null)).tag=3;var a=e.type.getDerivedStateFromError;if("function"==typeof a){var r=t.value;n.payload=function(){return fo(e,t),a(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof a&&(null===as?as=new Set([this]):as.add(this),fo(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Eo,jo=Math.ceil,To=M.ReactCurrentDispatcher,Po=M.ReactCurrentOwner,Bo=0,Mo=8,No=16,Io=32,Do=0,Ro=1,Ao=2,zo=3,Lo=4,Fo=5,Uo=Bo,Ho=null,Vo=null,Go=0,Wo=Do,qo=null,Ko=1073741823,$o=1073741823,Yo=null,Qo=0,Xo=!1,Jo=0,Zo=500,es=null,ts=!1,ns=null,as=null,rs=!1,is=null,ls=90,os=null,ss=0,us=null,cs=0;function ps(){return(Uo&(No|Io))!==Bo?1073741821-(Hr()/10|0):0!==cs?cs:cs=1073741821-(Hr()/10|0)}function fs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var a=Vr();if(0==(4&t))return 99===a?1073741823:1073741822;if((Uo&No)!==Bo)return Go;if(null!==n)e=Xr(e,0|n.timeoutMs||5e3,250);else switch(a){case 99:e=1073741823;break;case 98:e=Xr(e,150,100);break;case 97:case 96:e=Xr(e,5e3,250);break;case 95:e=2;break;default:throw Error(l(326))}return null!==Ho&&e===Go&&--e,e}function ds(e,t){if(50<ss)throw ss=0,us=null,Error(l(185));if(null!==(e=gs(e,t))){var n=Vr();1073741823===t?(Uo&Mo)!==Bo&&(Uo&(No|Io))===Bo?bs(e):(hs(e),Uo===Bo&&$r()):hs(e),(4&Uo)===Bo||98!==n&&99!==n||(null===os?os=new Map([[e,t]]):(void 0===(n=os.get(e))||n>t)&&os.set(e,t))}}function gs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var a=e.return,r=null;if(null===a&&3===e.tag)r=e.stateNode;else for(;null!==a;){if(n=a.alternate,a.childExpirationTime<t&&(a.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===a.return&&3===a.tag){r=a.stateNode;break}a=a.return}return null!==r&&(Ho===r&&(xs(t),Wo===Lo&&Ys(r,Go)),Qs(r,t)),r}function ms(e){var t=e.lastExpiredTime;return 0!==t?t:$s(e,t=e.firstPendingTime)?(t=e.lastPingedTime)>(e=e.nextKnownPendingLevel)?t:e:t}function hs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Kr(bs.bind(null,e));else{var t=ms(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var a=ps();if(1073741823===t?a=99:1===t||2===t?a=95:a=0>=(a=10*(1073741821-t)-10*(1073741821-a))?99:250>=a?98:5250>=a?97:95,null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=a)return;n!==Rr&&Sr(n)}e.callbackExpirationTime=t,e.callbackPriority=a,t=1073741823===t?Kr(bs.bind(null,e)):qr(a,function e(t,n){cs=0;if(n)return n=ps(),Xs(t,n),hs(t),null;var a=ms(t);if(0!==a){if(n=t.callbackNode,(Uo&(No|Io))!==Bo)throw Error(l(327));if(Ms(),t===Ho&&a===Go||ws(t,a),null!==Vo){var r=Uo;Uo|=No;for(var i=Cs();;)try{Ss();break}catch(e){ks(t,e)}if(ai(),Uo=r,To.current=i,Wo===Ro)throw n=qo,ws(t,a),Ys(t,a),hs(t),n;if(null===Vo)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=a,r=Wo,Ho=null,r){case Do:case Ro:throw Error(l(345));case Ao:Xs(t,2<a?2:a);break;case zo:if(Ys(t,a),r=t.lastSuspendedTime,a===r&&(t.nextKnownPendingLevel=Ts(i)),1073741823===Ko&&10<(i=Jo+Zo-Hr())){if(Xo){var o=t.lastPingedTime;if(0===o||o>=a){t.lastPingedTime=a,ws(t,a);break}}if(0!==(o=ms(t))&&o!==a)break;if(0!==r&&r!==a){t.lastPingedTime=r;break}t.timeoutHandle=ta(Ps.bind(null,t),i);break}Ps(t);break;case Lo:if(Ys(t,a),r=t.lastSuspendedTime,a===r&&(t.nextKnownPendingLevel=Ts(i)),Xo&&(0===(i=t.lastPingedTime)||i>=a)){t.lastPingedTime=a,ws(t,a);break}if(0!==(i=ms(t))&&i!==a)break;if(0!==r&&r!==a){t.lastPingedTime=r;break}if(1073741823!==$o?r=10*(1073741821-$o)-Hr():1073741823===Ko?r=0:(r=10*(1073741821-Ko)-5e3,i=Hr(),a=10*(1073741821-a)-i,0>(r=i-r)&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jo(r/1960))-r,a<r&&(r=a)),10<r){t.timeoutHandle=ta(Ps.bind(null,t),r);break}Ps(t);break;case Fo:if(1073741823!==Ko&&null!==Yo){o=Ko;var s=Yo;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,o=Hr()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)),r=o<=i?0:i+r-o),10<r){Ys(t,a),t.timeoutHandle=ta(Ps.bind(null,t),r);break}}Ps(t);break;default:throw Error(l(329))}if(hs(t),t.callbackNode===n)return e.bind(null,t)}}return null}.bind(null,e),{timeout:10*(1073741821-t)-Hr()}),e.callbackNode=t}}}function bs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,e.finishedExpirationTime===t)Ps(e);else{if((Uo&(No|Io))!==Bo)throw Error(l(327));if(Ms(),e===Ho&&t===Go||ws(e,t),null!==Vo){var n=Uo;Uo|=No;for(var a=Cs();;)try{_s();break}catch(t){ks(e,t)}if(ai(),Uo=n,To.current=a,Wo===Ro)throw n=qo,ws(e,t),Ys(e,t),hs(e),n;if(null!==Vo)throw Error(l(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ho=null,Ps(e),hs(e)}}return null}function vs(e,t){var n=Uo;Uo|=1;try{return e(t)}finally{(Uo=n)===Bo&&$r()}}function ys(e,t){var n=Uo;Uo&=-2,Uo|=Mo;try{return e(t)}finally{(Uo=n)===Bo&&$r()}}function ws(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,na(n)),null!==Vo)for(n=Vo.return;null!==n;){var a=n;switch(a.tag){case 1:var r=a.type.childContextTypes;null!=r&&vr();break;case 3:Ui(),yr();break;case 5:Vi(a);break;case 4:Ui();break;case 13:case 19:cr(Gi);break;case 10:ii(a)}n=n.return}Ho=e,Vo=Hs(e.current,null),Go=t,Wo=Do,qo=null,$o=Ko=1073741823,Yo=null,Qo=0,Xo=!1}function ks(e,t){for(;;){try{if(ai(),pl(),null===Vo||null===Vo.return)return Wo=Ro,qo=t,null;e:{var n=e,a=Vo.return,r=Vo,i=t;if(t=Go,r.effectTag|=2048,r.firstEffect=r.lastEffect=null,null!==i&&"object"==typeof i&&"function"==typeof i.then){var l=i,o=0!=(1&Gi.current),s=a;do{var u;if(u=13===s.tag){var c=s.memoizedState;if(null!==c)u=null!==c.dehydrated;else{var p=s.memoizedProps;u=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!o)}}if(u){var f=s.updateQueue;if(null===f){var d=new Set;d.add(l),s.updateQueue=d}else f.add(l);if(0==(2&s.mode)){if(s.effectTag|=64,r.effectTag&=-2981,1===r.tag)if(null===r.alternate)r.tag=17;else{var g=fi(1073741823,null);g.tag=2,gi(r,g)}r.expirationTime=1073741823;break e}i=void 0,r=t;var m=n.pingCache;if(null===m?(m=n.pingCache=new xo,i=new Set,m.set(l,i)):void 0===(i=m.get(l))&&(i=new Set,m.set(l,i)),!i.has(r)){i.add(r);var h=Rs.bind(null,n,l,r);l.then(h,h)}s.effectTag|=4096,s.expirationTime=t;break e}s=s.return}while(null!==s);i=Error((Q(r.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+X(r))}Wo!==Fo&&(Wo=Ao),i=co(i,r),s=a;do{switch(s.tag){case 3:l=i,s.effectTag|=4096,s.expirationTime=t,mi(s,_o(s,l,t));break e;case 1:l=i;var b=s.type,v=s.stateNode;if(0==(64&s.effectTag)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===as||!as.has(v)))){s.effectTag|=4096,s.expirationTime=t,mi(s,So(s,l,t));break e}}s=s.return}while(null!==s)}Vo=js(Vo)}catch(e){t=e;continue}break}}function Cs(){var e=To.current;return To.current=jl,null===e?jl:e}function Os(e,t){e<Ko&&2<e&&(Ko=e),null!==t&&e<$o&&2<e&&($o=e,Yo=t)}function xs(e){e>Qo&&(Qo=e)}function _s(){for(;null!==Vo;)Vo=Es(Vo)}function Ss(){for(;null!==Vo&&!Er();)Vo=Es(Vo)}function Es(e){var t=Eo(e.alternate,e,Go);return e.memoizedProps=e.pendingProps,null===t&&(t=js(e)),Po.current=null,t}function js(e){Vo=e;do{var t=Vo.alternate;if(e=Vo.return,0==(2048&Vo.effectTag)){e:{var n=t,a=Go,i=(t=Vo).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:br(t.type)&&vr();break;case 3:Ui(),yr(),(i=t.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===n||null===n.child)&&zl(t)&&oo(t),Jl(t);break;case 5:Vi(t),a=Li(zi.current);var o=t.type;if(null!==n&&null!=t.stateNode)Zl(n,t,o,i,a),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var s=Li(Ri.current);if(zl(t)){var u=(i=t).stateNode;n=i.type;var c=i.memoizedProps,p=a;switch(u[la]=i,u[oa]=c,o=void 0,a=u,n){case"iframe":case"object":case"embed":xn("load",a);break;case"video":case"audio":for(u=0;u<Je.length;u++)xn(Je[u],a);break;case"source":xn("error",a);break;case"img":case"image":case"link":xn("error",a),xn("load",a);break;case"form":xn("reset",a),xn("submit",a);break;case"details":xn("toggle",a);break;case"input":Se(a,c),xn("invalid",a),Fn(p,"onChange");break;case"select":a._wrapperState={wasMultiple:!!c.multiple},xn("invalid",a),Fn(p,"onChange");break;case"textarea":Ie(a,c),xn("invalid",a),Fn(p,"onChange")}for(o in zn(n,c),u=null,c)c.hasOwnProperty(o)&&(s=c[o],"children"===o?"string"==typeof s?a.textContent!==s&&(u=["children",s]):"number"==typeof s&&a.textContent!==""+s&&(u=["children",""+s]):d.hasOwnProperty(o)&&null!=s&&Fn(p,o));switch(n){case"input":Oe(a),Te(a,c,!0);break;case"textarea":Oe(a),Re(a);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(a.onclick=Un)}o=u,i.updateQueue=o,(i=null!==o)&&oo(t)}else{n=t,p=o,c=i,u=9===a.nodeType?a:a.ownerDocument,s===Ae.html&&(s=ze(p)),s===Ae.html?"script"===p?((c=u.createElement("div")).innerHTML="<script><\/script>",u=c.removeChild(c.firstChild)):"string"==typeof c.is?u=u.createElement(p,{is:c.is}):(u=u.createElement(p),"select"===p&&(p=u,c.multiple?p.multiple=!0:c.size&&(p.size=c.size))):u=u.createElementNS(s,p),(c=u)[la]=n,c[oa]=i,Xl(c,t,!1,!1),t.stateNode=c;var f=a,g=Ln(p=o,n=i);switch(p){case"iframe":case"object":case"embed":xn("load",c),a=n;break;case"video":case"audio":for(a=0;a<Je.length;a++)xn(Je[a],c);a=n;break;case"source":xn("error",c),a=n;break;case"img":case"image":case"link":xn("error",c),xn("load",c),a=n;break;case"form":xn("reset",c),xn("submit",c),a=n;break;case"details":xn("toggle",c),a=n;break;case"input":Se(c,n),a=_e(c,n),xn("invalid",c),Fn(f,"onChange");break;case"option":a=Be(c,n);break;case"select":c._wrapperState={wasMultiple:!!n.multiple},a=r({},n,{value:void 0}),xn("invalid",c),Fn(f,"onChange");break;case"textarea":Ie(c,n),a=Ne(c,n),xn("invalid",c),Fn(f,"onChange");break;default:a=n}zn(p,a),u=void 0,s=p;var m=c,h=a;for(u in h)if(h.hasOwnProperty(u)){var b=h[u];"style"===u?Rn(m,b):"dangerouslySetInnerHTML"===u?null!=(b=b?b.__html:void 0)&&Ue(m,b):"children"===u?"string"==typeof b?("textarea"!==s||""!==b)&&He(m,b):"number"==typeof b&&He(m,""+b):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(d.hasOwnProperty(u)?null!=b&&Fn(f,u):null!=b&&ke(m,u,b,g))}switch(p){case"input":Oe(c),Te(c,n,!1);break;case"textarea":Oe(c),Re(c);break;case"option":null!=n.value&&c.setAttribute("value",""+we(n.value));break;case"select":(a=c).multiple=!!n.multiple,null!=(c=n.value)?Me(a,!!n.multiple,c,!1):null!=n.defaultValue&&Me(a,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(c.onclick=Un)}(i=Zn(o,i))&&oo(t)}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw Error(l(166));break;case 6:if(n&&null!=t.stateNode)eo(n,t,n.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(l(166));a=Li(zi.current),Li(Ri.current),zl(t)?(o=(i=t).stateNode,a=i.memoizedProps,o[la]=i,(i=o.nodeValue!==a)&&oo(t)):(o=t,(i=(9===a.nodeType?a:a.ownerDocument).createTextNode(i))[la]=o,t.stateNode=i)}break;case 11:break;case 13:if(cr(Gi),i=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=a;break e}i=null!==i,o=!1,null===n?void 0!==t.memoizedProps.fallback&&zl(t):(o=null!==(a=n.memoizedState),i||null===a||null!==(a=n.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=a,a.nextEffect=c):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),i&&!o&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Gi.current)?Wo===Do&&(Wo=zo):(Wo!==Do&&Wo!==zo||(Wo=Lo),0!==Qo&&null!==Ho&&(Ys(Ho,Go),Qs(Ho,Qo)))),(i||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ui(),Jl(t);break;case 10:ii(t);break;case 9:case 14:break;case 17:br(t.type)&&vr();break;case 19:if(cr(Gi),null===(i=t.memoizedState))break;if(o=0!=(64&t.effectTag),null===(c=i.rendering)){if(o)so(i,!1);else if(Wo!==Do||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(c=Wi(n))){for(t.effectTag|=64,so(i,!1),null!==(o=c.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===i.lastEffect&&(t.firstEffect=null),t.lastEffect=i.lastEffect,i=a,o=t.child;null!==o;)n=i,(a=o).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childExpirationTime=0,a.expirationTime=n,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=c.childExpirationTime,a.expirationTime=c.expirationTime,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,n=c.dependencies,a.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),o=o.sibling;pr(Gi,1&Gi.current|2),t=t.child;break e}n=n.sibling}}else{if(!o)if(null!==(n=Wi(c))){if(t.effectTag|=64,o=!0,null!==(a=n.updateQueue)&&(t.updateQueue=a,t.effectTag|=4),so(i,!0),null===i.tail&&"hidden"===i.tailMode&&!c.alternate){null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else Hr()>i.tailExpiration&&1<a&&(t.effectTag|=64,o=!0,so(i,!1),t.expirationTime=t.childExpirationTime=a-1);i.isBackwards?(c.sibling=t.child,t.child=c):(null!==(a=i.last)?a.sibling=c:t.child=c,i.last=c)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=Hr()+500),a=i.tail,i.rendering=a,i.tail=a.sibling,i.lastEffect=t.lastEffect,a.sibling=null,i=Gi.current,pr(Gi,i=o?1&i|2:1&i),t=a;break e}break;case 20:case 21:break;default:throw Error(l(156,t.tag))}t=null}if(i=Vo,1===Go||1!==i.childExpirationTime){for(o=0,a=i.child;null!==a;)(n=a.expirationTime)>o&&(o=n),(c=a.childExpirationTime)>o&&(o=c),a=a.sibling;i.childExpirationTime=o}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Vo.firstEffect),null!==Vo.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Vo.firstEffect),e.lastEffect=Vo.lastEffect),1<Vo.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Vo:e.firstEffect=Vo,e.lastEffect=Vo))}else{if(null!==(t=uo(Vo)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Vo.sibling))return t;Vo=e}while(null!==Vo);return Wo===Do&&(Wo=Fo),null}function Ts(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Ps(e){var t=Vr();return Wr(99,function(e,t){do{Ms()}while(null!==is);if((Uo&(No|Io))!==Bo)throw Error(l(327));var n=e.finishedWork,a=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(l(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=Ts(n);if(e.firstPendingTime=r,a<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:a<=e.firstSuspendedTime&&(e.firstSuspendedTime=a-1),a<=e.lastPingedTime&&(e.lastPingedTime=0),a<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ho&&(Vo=Ho=null,Go=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var i=Uo;Uo|=Io,Po.current=null,Xn=On;var o=Wn();if(qn(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{var u=(s=(s=o.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(u&&0!==u.rangeCount){s=u.anchorNode;var c=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{s.nodeType,p.nodeType}catch(e){s=null;break e}var f=0,d=-1,g=-1,m=0,h=0,b=o,v=null;t:for(;;){for(var y;b!==s||0!==c&&3!==b.nodeType||(d=f+c),b!==p||0!==u&&3!==b.nodeType||(g=f+u),3===b.nodeType&&(f+=b.nodeValue.length),null!==(y=b.firstChild);)v=b,b=y;for(;;){if(b===o)break t;if(v===s&&++m===c&&(d=f),v===p&&++h===u&&(g=f),null!==(y=b.nextSibling))break;v=(b=v).parentNode}b=y}s=-1===d||-1===g?null:{start:d,end:g}}else s=null}s=s||{start:0,end:0}}else s=null;Jn={focusedElem:o,selectionRange:s},On=!1,es=r;do{try{Bs()}catch(e){if(null===es)throw Error(l(330));Ds(es,e),es=es.nextEffect}}while(null!==es);es=r;do{try{for(o=e,s=t;null!==es;){var w=es.effectTag;if(16&w&&He(es.stateNode,""),128&w){var k=es.alternate;if(null!==k){var C=k.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(1038&w){case 2:wo(es),es.effectTag&=-3;break;case 6:wo(es),es.effectTag&=-3,Co(es.alternate,es);break;case 1024:es.effectTag&=-1025;break;case 1028:es.effectTag&=-1025,Co(es.alternate,es);break;case 4:Co(es.alternate,es);break;case 8:ko(o,c=es,s),vo(c)}es=es.nextEffect}}catch(e){if(null===es)throw Error(l(330));Ds(es,e),es=es.nextEffect}}while(null!==es);if(C=Jn,k=Wn(),w=C.focusedElem,s=C.selectionRange,k!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==s&&qn(w)&&(k=s.start,void 0===(C=s.end)&&(C=k),"selectionStart"in w?(w.selectionStart=k,w.selectionEnd=Math.min(C,w.value.length)):(C=(k=w.ownerDocument||document)&&k.defaultView||window).getSelection&&(C=C.getSelection(),c=w.textContent.length,o=Math.min(s.start,c),s=void 0===s.end?o:Math.min(s.end,c),!C.extend&&o>s&&(c=s,s=o,o=c),c=Gn(w,o),p=Gn(w,s),c&&p&&(1!==C.rangeCount||C.anchorNode!==c.node||C.anchorOffset!==c.offset||C.focusNode!==p.node||C.focusOffset!==p.offset)&&((k=k.createRange()).setStart(c.node,c.offset),C.removeAllRanges(),o>s?(C.addRange(k),C.extend(p.node,p.offset)):(k.setEnd(p.node,p.offset),C.addRange(k))))),k=[];for(C=w;C=C.parentNode;)1===C.nodeType&&k.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<k.length;w++)(C=k[w]).element.scrollLeft=C.left,C.element.scrollTop=C.top}Jn=null,On=!!Xn,Xn=null,e.current=n,es=r;do{try{for(w=a;null!==es;){var O=es.effectTag;if(36&O){var x=es.alternate;switch(C=w,(k=es).tag){case 0:case 11:case 15:ho(16,32,k);break;case 1:var _=k.stateNode;if(4&k.effectTag)if(null===x)_.componentDidMount();else{var S=k.elementType===k.type?x.memoizedProps:Jr(k.type,x.memoizedProps);_.componentDidUpdate(S,x.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var E=k.updateQueue;null!==E&&yi(0,E,_);break;case 3:var j=k.updateQueue;if(null!==j){if(o=null,null!==k.child)switch(k.child.tag){case 5:o=k.child.stateNode;break;case 1:o=k.child.stateNode}yi(0,j,o)}break;case 5:var T=k.stateNode;null===x&&4&k.effectTag&&Zn(k.type,k.memoizedProps)&&T.focus();break;case 6:case 4:case 12:break;case 13:if(null===k.memoizedState){var P=k.alternate;if(null!==P){var B=P.memoizedState;if(null!==B){var M=B.dehydrated;null!==M&&xt(M)}}}break;case 19:case 17:case 20:case 21:break;default:throw Error(l(163))}}if(128&O){k=void 0;var N=es.ref;if(null!==N){var I=es.stateNode;switch(es.tag){case 5:k=I;break;default:k=I}"function"==typeof N?N(k):N.current=k}}es=es.nextEffect}}catch(e){if(null===es)throw Error(l(330));Ds(es,e),es=es.nextEffect}}while(null!==es);es=null,Ar(),Uo=i}else e.current=n;if(rs)rs=!1,is=e,ls=t;else for(es=r;null!==es;)t=es.nextEffect,es.nextEffect=null,es=t;if(0===(t=e.firstPendingTime)&&(as=null),1073741823===t?e===us?ss++:(ss=0,us=e):ss=0,"function"==typeof As&&As(n.stateNode,a),hs(e),ts)throw ts=!1,e=ns,ns=null,e;return(Uo&Mo)!==Bo?null:($r(),null)}.bind(null,e,t)),null}function Bs(){for(;null!==es;){var e=es.effectTag;0!=(256&e)&&mo(es.alternate,es),0==(512&e)||rs||(rs=!0,qr(97,function(){return Ms(),null})),es=es.nextEffect}}function Ms(){if(90!==ls){var e=97<ls?97:ls;return ls=90,Wr(e,Ns)}}function Ns(){if(null===is)return!1;var e=is;if(is=null,(Uo&(No|Io))!==Bo)throw Error(l(331));var t=Uo;for(Uo|=Io,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:ho(128,0,n),ho(0,64,n)}}catch(t){if(null===e)throw Error(l(330));Ds(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Uo=t,$r(),!0}function Is(e,t,n){gi(e,t=_o(e,t=co(n,t),1073741823)),null!==(e=gs(e,1073741823))&&hs(e)}function Ds(e,t){if(3===e.tag)Is(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Is(n,e,t);break}if(1===n.tag){var a=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof a.componentDidCatch&&(null===as||!as.has(a))){gi(n,e=So(n,e=co(t,e),1073741823)),null!==(n=gs(n,1073741823))&&hs(n);break}}n=n.return}}function Rs(e,t,n){var a=e.pingCache;null!==a&&a.delete(t),Ho===e&&Go===n?Wo===Lo||Wo===zo&&1073741823===Ko&&Hr()-Jo<Zo?ws(e,Go):Xo=!0:$s(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),hs(e)))}Eo=function(e,t,n){var a=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||gr.current)Ul=!0;else{if(a<n){switch(Ul=!1,t.tag){case 3:Ql(t),Ll();break;case 5:if(Hi(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:br(t.type)&&Cr(t);break;case 4:Fi(t,t.stateNode.containerInfo);break;case 10:ri(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(a=t.child.childExpirationTime)&&a>=n?no(e,t,n):(pr(Gi,1&Gi.current),null!==(t=lo(e,t,n))?t.sibling:null);pr(Gi,1&Gi.current);break;case 19:if(a=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(a)return io(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),pr(Gi,Gi.current),!a)return null}return lo(e,t,n)}Ul=!1}}else Ul=!1;switch(t.expirationTime=0,t.tag){case 2:if(a=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=hr(t,dr.current),oi(t,n),r=cl(null,t,a,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,pl(),br(a)){var i=!0;Cr(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null;var o=a.getDerivedStateFromProps;"function"==typeof o&&Oi(t,a,o,e),r.updater=xi,t.stateNode=r,r._reactInternalFiber=t,ji(t,a,e,n),t=Yl(null,t,a,!0,i,n)}else t.tag=0,Hl(null,t,r,n),t=t.child;return t;case 16:if(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}(r),1!==r._status)throw r._result;switch(r=r._result,t.type=r,i=t.tag=function(e){if("function"==typeof e)return Us(e)?1:0;if(null!=e){if((e=e.$$typeof)===V)return 11;if(e===q)return 14}return 2}(r),e=Jr(r,e),i){case 0:t=Kl(null,t,r,e,n);break;case 1:t=$l(null,t,r,e,n);break;case 11:t=Vl(null,t,r,e,n);break;case 14:t=Gl(null,t,r,Jr(r.type,e),a,n);break;default:throw Error(l(306,r,""))}return t;case 0:return a=t.type,r=t.pendingProps,Kl(e,t,a,r=t.elementType===a?r:Jr(a,r),n);case 1:return a=t.type,r=t.pendingProps,$l(e,t,a,r=t.elementType===a?r:Jr(a,r),n);case 3:if(Ql(t),null===(a=t.updateQueue))throw Error(l(282));if(r=null!==(r=t.memoizedState)?r.element:null,vi(t,a,t.pendingProps,null,n),(a=t.memoizedState.element)===r)Ll(),t=lo(e,t,n);else{if((r=t.stateNode.hydrate)&&(Ml=aa(t.stateNode.containerInfo.firstChild),Bl=t,r=Nl=!0),r)for(n=Ii(t,null,a,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Hl(e,t,a,n),Ll();t=t.child}return t;case 5:return Hi(t),null===e&&Rl(t),a=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,o=r.children,ea(a,r)?o=null:null!==i&&ea(a,i)&&(t.effectTag|=16),ql(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Hl(e,t,o,n),t=t.child),t;case 6:return null===e&&Rl(t),null;case 13:return no(e,t,n);case 4:return Fi(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=Ni(t,null,a,n):Hl(e,t,a,n),t.child;case 11:return a=t.type,r=t.pendingProps,Vl(e,t,a,r=t.elementType===a?r:Jr(a,r),n);case 7:return Hl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Hl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(a=t.type._context,r=t.pendingProps,o=t.memoizedProps,ri(t,i=r.value),null!==o){var s=o.value;if(0===(i=Xa(s,i)?0:0|("function"==typeof a._calculateChangedBits?a._calculateChangedBits(s,i):1073741823))){if(o.children===r.children&&!gr.current){t=lo(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){o=s.child;for(var c=u.firstContext;null!==c;){if(c.context===a&&0!=(c.observedBits&i)){1===s.tag&&((c=fi(n,null)).tag=2,gi(s,c)),s.expirationTime<n&&(s.expirationTime=n),null!==(c=s.alternate)&&c.expirationTime<n&&(c.expirationTime=n),li(s.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else o=10===s.tag&&s.type===t.type?null:s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===t){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}}Hl(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,a=(i=t.pendingProps).children,oi(t,n),a=a(r=si(r,i.unstable_observedBits)),t.effectTag|=1,Hl(e,t,a,n),t.child;case 14:return i=Jr(r=t.type,t.pendingProps),Gl(e,t,r,i=Jr(r.type,i),a,n);case 15:return Wl(e,t,t.type,t.pendingProps,a,n);case 17:return a=t.type,r=t.pendingProps,r=t.elementType===a?r:Jr(a,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,br(a)?(e=!0,Cr(t)):e=!1,oi(t,n),Si(t,a,r),ji(t,a,r,n),Yl(null,t,a,!0,e,n);case 19:return io(e,t,n)}throw Error(l(156,t.tag))};var As=null,zs=null;function Ls(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Fs(e,t,n,a){return new Ls(e,t,n,a)}function Us(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hs(e,t){var n=e.alternate;return null===n?((n=Fs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vs(e,t,n,a,r,i){var o=2;if(a=e,"function"==typeof e)Us(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case A:return Gs(n.children,r,i,t);case H:o=8,r|=7;break;case z:o=8,r|=1;break;case L:return(e=Fs(12,n,t,8|r)).elementType=L,e.type=L,e.expirationTime=i,e;case G:return(e=Fs(13,n,t,r)).type=G,e.elementType=G,e.expirationTime=i,e;case W:return(e=Fs(19,n,t,r)).elementType=W,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case F:o=10;break e;case U:o=9;break e;case V:o=11;break e;case q:o=14;break e;case K:o=16,a=null;break e}throw Error(l(130,null==e?e:typeof e,""))}return(t=Fs(o,n,t,r)).elementType=e,t.type=a,t.expirationTime=i,t}function Gs(e,t,n,a){return(e=Fs(7,e,a,t)).expirationTime=n,e}function Ws(e,t,n){return(e=Fs(6,e,null,t)).expirationTime=n,e}function qs(e,t,n){return(t=Fs(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ks(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function $s(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ys(e,t){var n=e.firstSuspendedTime,a=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(a>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Qs(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Xs(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Js(e,t,n,a){var r=t.current,i=ps(),o=ki.suspense;i=fs(i,r,o);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(br(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(br(u)){n=kr(n,u,s);break e}}n=s}else n=fr;return null===t.context?t.context=n:t.pendingContext=n,(t=fi(i,o)).payload={element:e},null!==(a=void 0===a?null:a)&&(t.callback=a),gi(r,t),ds(r,i),i}function Zs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function eu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function tu(e,t){eu(e,t),(e=e.alternate)&&eu(e,t)}function nu(e,t,n){var a=new Ks(e,t,n=null!=n&&!0===n.hydrate),r=Fs(3,null,null,2===t?7:1===t?3:0);a.current=r,r.stateNode=a,e[sa]=a.current,n&&0!==t&&function(e){var t=Bn(e);gt.forEach(function(n){Mn(n,e,t)}),mt.forEach(function(n){Mn(n,e,t)})}(9===e.nodeType?e:e.ownerDocument),this._internalRoot=a}function au(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ru(e,t,n,a,r){var i=n._reactRootContainer;if(i){var l=i._internalRoot;if("function"==typeof r){var o=r;r=function(){var e=Zs(l);o.call(e)}}Js(t,l,e,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new nu(e,0,t?{hydrate:!0}:void 0)}(n,a),l=i._internalRoot,"function"==typeof r){var s=r;r=function(){var e=Zs(l);s.call(e)}}ys(function(){Js(t,l,e,r)})}return Zs(l)}function iu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!au(t))throw Error(l(200));return function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:R,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}nu.prototype.render=function(e,t){Js(e,this._internalRoot,null,void 0===t?null:t)},nu.prototype.unmount=function(e){var t=this._internalRoot,n=void 0===e?null:e,a=t.containerInfo;Js(null,t,null,function(){a[sa]=null,null!==n&&n()})},at=function(e){if(13===e.tag){var t=Xr(ps(),150,100);ds(e,t),tu(e,t)}},rt=function(e){if(13===e.tag){ps();var t=Qr++;ds(e,t),tu(e,t)}},it=function(e){if(13===e.tag){var t=ps();ds(e,t=fs(t,e,null)),tu(e,t)}},Z=function(e,t,n){switch(t){case"input":if(je(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=fa(a);if(!r)throw Error(l(90));xe(a),je(a,r)}}}break;case"textarea":De(e,n);break;case"select":null!=(t=n.value)&&Me(e,!!n.multiple,t,!1)}},ie=vs,le=function(e,t,n,a){var r=Uo;Uo|=4;try{return Wr(98,e.bind(null,t,n,a))}finally{(Uo=r)===Bo&&$r()}},oe=function(){(Uo&(1|No|Io))===Bo&&(function(){if(null!==os){var e=os;os=null,e.forEach(function(e,t){Xs(t,e),hs(t)}),$r()}}(),Ms())},se=function(e,t){var n=Uo;Uo|=2;try{return e(t)}finally{(Uo=n)===Bo&&$r()}};var lu,ou,su={createPortal:iu,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw Error(l(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},hydrate:function(e,t,n){if(!au(t))throw Error(l(200));return ru(null,e,t,!0,n)},render:function(e,t,n){if(!au(t))throw Error(l(200));return ru(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,a){if(!au(n))throw Error(l(200));if(null==e||void 0===e._reactInternalFiber)throw Error(l(38));return ru(e,t,n,!1,a)},unmountComponentAtNode:function(e){if(!au(e))throw Error(l(40));return!!e._reactRootContainer&&(ys(function(){ru(null,null,e,!1,function(){e._reactRootContainer=null,e[sa]=null})}),!0)},unstable_createPortal:function(){return iu.apply(void 0,arguments)},unstable_batchedUpdates:vs,flushSync:function(e,t){if((Uo&(No|Io))!==Bo)throw Error(l(187));var n=Uo;Uo|=1;try{return Wr(99,e.bind(null,t))}finally{Uo=n,$r()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[ca,pa,fa,P.injectEventPluginsByName,f,Bt,function(e){S(e,Pt)},ae,re,En,T,Ms,{current:!1}]}};ou=(lu={findFiberByHostInstance:ua,bundleType:0,version:"16.12.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);As=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},zs=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(r({},lu,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return ou?ou(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var uu={default:su},cu=uu&&su||uu;e.exports=cu.default||cu},function(e,t,n){"use strict";e.exports=n(155)},function(e,t,n){"use strict";
|
34 |
/** @license React v0.18.0
|
35 |
* scheduler.production.min.js
|
36 |
*
|
38 |
*
|
39 |
* This source code is licensed under the MIT license found in the
|
40 |
* LICENSE file in the root directory of this source tree.
|
41 |
+
*/var a,r,i,l,o;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},a=function(e){null!==s?setTimeout(a,0,e):(s=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},l=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,g=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var v=!1,y=null,w=-1,k=5,C=0;l=function(){return t.unstable_now()>=C},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var O=new MessageChannel,x=O.port2;O.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();C=e+k;try{y(!0,e)?x.postMessage(null):(v=!1,y=null)}catch(e){throw x.postMessage(null),e}}else v=!1},a=function(e){y=e,v||(v=!0,x.postMessage(null))},r=function(e,n){w=g(function(){e(t.unstable_now())},n)},i=function(){m(w),w=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var a=Math.floor((n-1)/2),r=e[a];if(!(void 0!==r&&0<j(r,t)))break e;e[a]=t,e[n]=r,n=a}}function S(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length;a<r;){var i=2*(a+1)-1,l=e[i],o=i+1,s=e[o];if(void 0!==l&&0>j(l,n))void 0!==s&&0>j(s,l)?(e[a]=s,e[o]=n,a=o):(e[a]=l,e[i]=n,a=i);else{if(!(void 0!==s&&0>j(s,n)))break e;e[a]=s,e[o]=n,a=o}}}return t}return null}function j(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],P=[],B=1,M=null,N=3,I=!1,D=!1,R=!1;function A(e){for(var t=S(P);null!==t;){if(null===t.callback)E(P);else{if(!(t.startTime<=e))break;E(P),t.sortIndex=t.expirationTime,_(T,t)}t=S(P)}}function z(e){if(R=!1,A(e),!D)if(null!==S(T))D=!0,a(L);else{var t=S(P);null!==t&&r(z,t.startTime-e)}}function L(e,n){D=!1,R&&(R=!1,i()),I=!0;var a=N;try{for(A(n),M=S(T);null!==M&&(!(M.expirationTime>n)||e&&!l());){var o=M.callback;if(null!==o){M.callback=null,N=M.priorityLevel;var s=o(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?M.callback=s:M===S(T)&&E(T),A(n)}else E(T);M=S(T)}if(null!==M)var u=!0;else{var c=S(P);null!==c&&r(z,c.startTime-n),u=!1}return u}finally{M=null,N=a,I=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var U=o;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,l){var o=t.unstable_now();if("object"==typeof l&&null!==l){var s=l.delay;s="number"==typeof s&&0<s?o+s:o,l="number"==typeof l.timeout?l.timeout:F(e)}else l=F(e),s=o;return e={id:B++,callback:n,priorityLevel:e,startTime:s,expirationTime:l=s+l,sortIndex:-1},s>o?(e.sortIndex=s,_(P,e),null===S(T)&&e===S(P)&&(R?i():R=!0,r(z,s-o))):(e.sortIndex=l,_(T,e),D||I||(D=!0,a(L))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_shouldYield=function(){var e=t.unstable_now();A(e);var n=S(T);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||l()},t.unstable_requestPaint=U,t.unstable_continueExecution=function(){D||I||(D=!0,a(L))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return S(T)},t.unstable_Profiling=null},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t,n){"use strict";n.r(t);var a=n(3),r=n.n(a),i=n(10),l=n.n(i),o=n(14),s=n.n(o),u=n(17),c=n.n(u),p=n(18),f=n.n(p),d=n(19),g=n.n(d),m=n(16),h=n.n(m),b=n(12),v=n.n(b),y=n(20),w=n.n(y),k=n(4),C=n(34),O=n(21),x=n(6),_=n(1);Object(O.a)(function(){var e=document.querySelector(".s-news-box-content");e&&""===e.innerHTML&&(Object(k.render)(wp.element.createElement("div",null,wp.element.createElement(x.Spinner,null)),e),Object(C.send)("stackable_news_feed_ajax",{success:function(t){e.innerHTML=t},error:function(e){alert(e)},data:{nonce:_.nonceNews}}))});var S=n(0),E={"ugb/accordion":{title:Object(S.__)("Accordion",_.i18n),description:Object(S.__)("A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.",_.i18n),sDemoURL:"https://wpstackable.com/accordion-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/text":{title:Object(S.__)("Advanced Text",_.i18n),description:Object(S.__)("Start with the building block of all page layouts.",_.i18n),sDemoURL:"https://wpstackable.com/advanced-text-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/heading":{title:Object(S.__)("Advanced Heading",_.i18n),description:Object(S.__)("Introduce new sections of your content in style.",_.i18n),sDemoURL:"https://wpstackable.com/advanced-heading-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/blockquote":{title:Object(S.__)("Blockquote",_.i18n),description:Object(S.__)("Display a quote in style.",_.i18n),sDemoURL:"https://wpstackable.com/blockquote-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/blog-posts":{title:Object(S.__)("Blog Posts",_.i18n),description:Object(S.__)("Your latest blog posts. Use this to showcase a few of your posts in your landing pages.",_.i18n),sDemoURL:"https://wpstackable.com/blog-posts-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/button":{title:Object(S.__)("Button",_.i18n),description:Object(S.__)("Add a customizable button.",_.i18n),sDemoURL:"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/cta":{title:Object(S.__)("Call to Action",_.i18n),description:Object(S.__)("A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.",_.i18n),sDemoURL:"https://wpstackable.com/call-to-action-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/card":{title:Object(S.__)("Card",_.i18n),description:Object(S.__)("Describe a single subject in a small card. You can use this to describe your product, service or a person.",_.i18n),sDemoURL:"https://wpstackable.com/card-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/columns":{title:Object(S.__)("Columns",_.i18n),description:Object(S.__)("Add a block that displays content in multiple columns. Get advanced options on how you want your columns to look.",_.i18n),sDemoURL:"https://wpstackable.com/columns-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/container":{title:Object(S.__)("Container",_.i18n),description:Object(S.__)("A styled container that you can add other blocks inside. Use this to create unique layouts.",_.i18n),sDemoURL:"https://wpstackable.com/container-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/count-up":{title:Object(S.__)("Count Up",_.i18n),description:Object(S.__)("Showcase your stats. Display how many customers you have or the number of downloads of your app.",_.i18n),sDemoURL:"https://wpstackable.com/count-up-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/design-library":{title:Object(S.__)("Design Library",_.i18n),description:Object(S.__)("Choose from over a hundred block designs from the Stackable Design Library.",_.i18n)},"ugb/divider":{title:Object(S.__)("Divider",_.i18n),description:Object(S.__)("Add a pause between your content.",_.i18n)},"ugb/expand":{title:Object(S.__)("Expand / Show More",_.i18n),description:Object(S.__)("Display a small snippet of text. Your readers can toggle it to show more information.",_.i18n),sDemoURL:"https://wpstackable.com/expand-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/feature-grid":{title:Object(S.__)("Feature Grid",_.i18n),description:Object(S.__)("Display multiple product features or services. You can use Feature Grids one after another.",_.i18n),sDemoURL:"https://wpstackable.com/feature-grid-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/feature":{title:Object(S.__)("Feature",_.i18n),description:Object(S.__)("Display a product feature or a service in a large area.",_.i18n),sDemoURL:"https://wpstackable.com/feature-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/header":{title:Object(S.__)("Header",_.i18n),description:Object(S.__)("A large header title area. Typically used at the very top of a page.",_.i18n),sDemoURL:"https://wpstackable.com/header-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/icon":{title:Object(S.__)("Icon",_.i18n),description:Object(S.__)("Pick an icon or upload your own SVG icon to decorate your content.",_.i18n),sDemoURL:"https://wpstackable.com/icon-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/icon-list":{title:Object(S.__)("Icon List",_.i18n),description:Object(S.__)("An unordered list with icons. You can use this as a list of features or benefits.",_.i18n),sDemoURL:"https://wpstackable.com/icon-list-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/image-box":{title:Object(S.__)("Image Box",_.i18n),description:Object(S.__)("Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.",_.i18n),sDemoURL:"https://wpstackable.com/image-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/notification":{title:Object(S.__)("Notification",_.i18n),description:Object(S.__)("Show a notice to your readers. People can dismiss the notice to permanently hide it.",_.i18n),sDemoURL:"https://wpstackable.com/notification-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/number-box":{title:Object(S.__)("Number Box",_.i18n),description:Object(S.__)('Display steps or methods that your users will do in your service. For example, "Get started in just 3 easy steps: 1, 2 and 3!"',_.i18n),sDemoURL:"https://wpstackable.com/number-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/pricing-box":{title:Object(S.__)("Pricing Box",_.i18n),description:Object(S.__)("Display the different pricing tiers of your business.",_.i18n),sDemoURL:"https://wpstackable.com/pricing-table-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/separator":{title:Object(S.__)("Separator",_.i18n),description:Object(S.__)("A fancy separator to be placed between containers and content.",_.i18n),sDemoURL:"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/spacer":{title:Object(S.__)("Spacer",_.i18n),description:Object(S.__)("Sometimes you just need some space.",_.i18n)},"ugb/team-member":{title:Object(S.__)("Team Member",_.i18n),description:Object(S.__)("Display members of your team or your office. Use multiple Team Member blocks if you have a large team.",_.i18n),sDemoURL:"https://wpstackable.com/team-member-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/testimonial":{title:Object(S.__)("Testimonial",_.i18n),description:Object(S.__)("Showcase what your users say about your product or service.",_.i18n),sDemoURL:"https://wpstackable.com/testimonial-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},"ugb/video-popup":{title:Object(S.__)("Video Popup",_.i18n),description:Object(S.__)("Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.",_.i18n),sDemoURL:"https://wpstackable.com/video-popup-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}},j=n(27),T=n(7),P=n.n(T),B=n(8),M=n.n(B),N=n(35),I=n.n(N),D=n(23),R=n(5),A=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a};return wp.element.createElement(F,M()({design:a("Design",e.designDefault),size:a("Size","normal"),text:a("Text",""),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),icon:a("Icon"),iconPosition:a("IconPosition"),onChange:function(e){return t(r()({},n("Text"),e))},url:a("Url"),newTab:a("NewTab"),noFollow:a("NoFollow"),sponsored:a("Sponsored"),ugc:a("Ugc"),onChangeUrl:function(e){return t(r()({},n("Url"),e))},onChangeNewTab:function(e){return t(r()({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(r()({},n("NoFollow"),e))},onChangeSponsored:function(e){return t(r()({},n("Sponsored"),e))},onChangeUgc:function(e){return t(r()({},n("Ugc"),e))},onChangeIcon:function(e){return t(r()({},n("Icon"),e))},isSelected:e.isSelected},e))};A.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(A.Content=function(e){var t=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[t(n)];return 0===r?r:r||a};return wp.element.createElement(F.Content,M()({design:n("Design",e.designDefault),size:n("Size","normal"),text:n("Text"),icon:n("Icon"),newTab:n("NewTab"),url:n("Url"),noFollow:n("NoFollow"),sponsored:n("Sponsored"),ugc:n("Ugc"),hoverEffect:n("HoverEffect"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow"),iconPosition:n("IconPosition")},e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};var z=1,L=function(e){w()(n,e);var t=function(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,a=h()(e);if(t()){var r=h()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return g()(this,n)}}(n);function n(){var e;return c()(this,n),e=t.apply(this,arguments),r()(v()(e),"hideUrlPopup",function(){var t=document.body;document.querySelector('iframe[name="editor-canvas"]')&&(t=document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.body),t.removeEventListener("click",e.outsideClickHandler),e.setState({openPopup:!1})}),e.state={openPopup:!1},e.buttonInstanceId=z++,e.onButtonClickHandler=e.onButtonClickHandler.bind(v()(e)),e.outsideClickHandler=e.outsideClickHandler.bind(v()(e)),e.onKeyPressHandler=e.onKeyPressHandler.bind(v()(e)),e}return f()(n,[{key:"onButtonClickHandler",value:function(e){if(this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button"));else if(e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-url-input-popover")||e.target.closest(".ugb-icon-popover")||e.target.closest(".components-popover"))return;if(!this.state.openPopup){var t=document.body;document.querySelector('iframe[name="editor-canvas"]')&&(t=document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.body),t.addEventListener("click",this.outsideClickHandler)}this.setState({openPopup:!0})}},{key:"outsideClickHandler",value:function(e){e.target.closest(".ugb-button-container-".concat(this.buttonInstanceId))||e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")?this.props.iconButton&&e.target.closest(".ugb-svg-icon-placeholder__button")||e.target.closest(".ugb-svg-icon-placeholder__button")&&this.hideUrlPopup():this.hideUrlPopup()}},{key:"onKeyPressHandler",value:function(e){e.target.closest(".ugb-url-input-popover")||e.target.closest(".components-popover")||this.hideUrlPopup()}},{key:"render",value:function(){var e,t=this.props,n=t.iconButton,a=t.className,i=void 0===a?"":a,l=t.size,o=void 0===l?"normal":l,s=t.text,u=void 0===s?"":s,c=t.onChange,p=void 0===c?function(){}:c,f=t.design,d=void 0===f?"basic":f,g=t.shadow,m=void 0===g?0:g,h=t.iconPosition,b=void 0===h?"":h,v=t.hoverEffect,y=void 0===v?"":v,w=t.ghostToNormalEffect,C=void 0!==w&&w,O=t.url,x=void 0===O?"":O,E=t.newTab,j=void 0===E?"":E,T=t.noFollow,B=void 0===T?"":T,M=t.sponsored,N=void 0===M?"":M,I=t.ugc,R=void 0===I?"":I,A=t.onChangeUrl,z=void 0===A?null:A,L=t.onChangeNewTab,F=void 0===L?null:L,U=t.onChangeNoFollow,H=void 0===U?null:U,V=t.onChangeSponsored,G=void 0===V?null:V,W=t.onChangeUgc,q=void 0===W?null:W,K=t.onChangeIcon,$=void 0===K?null:K,Y=t.icon,Q=void 0===Y?null:Y,X=t.isSelected,J=void 0===X?null:X,Z=P()([i,"ugb-button","ugb-button--size-".concat(o)],(e={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":C},r()(e,"ugb--hover-effect-".concat(y),"link"!==d&&y),r()(e,"ugb--shadow-".concat(m),"basic"===d&&m),r()(e,"ugb-button--design-".concat(d),"basic"!==d),r()(e,"ugb-button--has-icon",Q),r()(e,"ugb-button--icon-position-".concat(b),b),e)),ee=P()(["ugb-button-container","ugb-button-container-".concat(this.buttonInstanceId),this.props.containerClassName]),te=(null===J||J)&&this.state.openPopup;return wp.element.createElement("div",{className:ee,onClick:this.onButtonClickHandler,onKeyPress:this.onKeyPressHandler,role:"button",tabIndex:"0"},wp.element.createElement("a",{className:Z},Q&&"link"!==d&&wp.element.createElement(k.Fragment,null,!$&&wp.element.createElement(Ko,{value:Q}),$&&wp.element.createElement(Xo,{value:Q,onChange:$,isOpen:n?te:null})),!n&&wp.element.createElement(D.RichText,{tagName:"span",className:"link"===d?"":"ugb-button--inner",placeholder:Object(S.__)("Button text",_.i18n),value:u,onChange:p,withoutInteractiveFormatting:!0,keepPlaceholderOnFocus:!0}),te&&wp.element.createElement(Ct,{value:x,onChange:z,newTab:j,noFollow:B,sponsored:N,ugc:R,onChangeNewTab:F,onChangeNoFollow:H,onChangeSponsored:G,onChangeUgc:q,disableSuggestions:this.props.disableSuggestions})))}}]),n}(k.Component);L.defaultProps={iconButton:!1,disableSuggestions:!1,containerClassName:"",className:"",size:"normal",text:"",onChange:function(){},design:"basic",shadow:0,iconPosition:"",hoverEffect:"",ghostToNormalEffect:!1,url:"",newTab:"",noFollow:"",sponsored:"",ugc:"",onChangeUrl:null,onChangeNewTab:null,onChangeNoFollow:null,onChangeSponsored:null,onChangeUgc:null,onChangeIcon:null,icon:null,isSelected:null},L.Content=function(e){var t,n=e.iconButton,a=e.className,i=void 0===a?"":a,l=e.size,o=void 0===l?"normal":l,s=e.url,u=void 0===s?"":s,c=e.icon,p=void 0===c?null:c,f=e.text,d=void 0===f?"":f,g=e.design,m=void 0===g?"basic":g,h=e.newTab,b=void 0!==h&&h,v=e.sponsored,y=void 0!==v&&v,w=e.ugc,k=void 0!==w&&w,C=e.shadow,O=void 0===C?0:C,x=e.iconPosition,_=void 0!==x&&x,S=e.hoverEffect,E=void 0===S?"":S,j=e.noFollow,T=void 0!==j&&j,B=e.ghostToNormalEffect,N=void 0!==B&&B,R=e.target,A=void 0===R?"":R,z=e.role,L=void 0===z?"":z,F=e.title,U=void 0===F?"":F,H=e.containerClassName,V=void 0===H?"":H,G=P()([i,"ugb-button","ugb-button--size-".concat(o)],(t={"ugb-button--icon-only":n,"ugb-button--ghost-to-normal-effect":N},r()(t,"ugb--hover-effect-".concat(E),"link"!==m&&E),r()(t,"ugb--shadow-".concat(O),"basic"===m&&O),r()(t,"ugb-button--design-".concat(m),"basic"!==m),r()(t,"ugb-button--has-icon",p),r()(t,"ugb-button--icon-position-".concat(_),_),t)),W=P()(["ugb-button-container",V]),q=[];b&&(q.push("noopener"),q.push("noreferrer")),T&&q.push("nofollow"),y&&q.push("sponsored"),k&&q.push("ugc");var K={};return L&&(K.role=L),wp.element.createElement("div",{className:W},(d||n)&&wp.element.createElement("a",M()({className:G,href:u,target:A||b?A||"_blank":void 0,rel:e.rel||q.join(" "),title:I()(U)},K),p&&"link"!==m&&wp.element.createElement(Ko.Content,{value:p}),!n&&wp.element.createElement(D.RichText.Content,{tagName:"span",className:"link"===m?"":"ugb-button--inner",value:d})))};var F=L,U={ru_RU:"cyrillic",bg_BG:"cyrillic",he_IL:"hebrew",el:"greek",vi:"vietnamese",uk:"cyrillic",cs_CZ:"latin-ext",ro_RO:"latin-ext",pl_PL:"latin-ext"},H=function(e){var t=e.replace(/ /g,"+"),n=U[_.locale]?"&subset=".concat(U):"";return"https://fonts.googleapis.com/css?family=".concat(t,":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic").concat(n)},V=function(e){return!e.match(/^(sans[-+]serif|serif|monospace|serif-alt)$/i)},G=function(e){setTimeout(function(){var t=function(t){if(t&&V(e)){if(q(e,t))return;var n=W(e);t.appendChild(n)}},n=$e();t(n),n!==document.querySelector("head")&&t(document.querySelector("head"))},50)},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("link");return t.classList.add("ugb-google-fonts"),t.setAttribute("data-font-name",e),t.setAttribute("href",H(e)),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.querySelector("head");return t.querySelector('[data-font-name="'.concat(e,'"]'))},K=function(e){return V(e)?'"'.concat(e,'", Sans-serif'):e.match(/^serif$/i)?'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif':e.match(/^serif-alt$/i)?'Constantia, Lucida Bright, Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif':e.match(/^monospace$/i)?'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace':'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},$=function(e){Object.keys(e).filter(function(e){return e.match(/fontfamily/i)}).forEach(function(t){var n=e[t];n&&G(n)})};var Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return Object(R.camelCase)(Object(S.sprintf)(e,t))},i=_e(n,r,""),l=a.importantSize,o=void 0!==l&&l,s=a.important,u=void 0===s||s,c=a.inherit,p=void 0===c||c,f=a.inheritMax,d=void 0===f?50:f,g=a.inheritMin,m={},h=i("FontSize"),b=i("TabletFontSize"),v=i("MobileFontSize");if("tablet"!==t&&"mobile"!==t)m={fontFamily:""!==i("FontFamily")?K(i("FontFamily")):void 0,fontSize:""!==h?xe("".concat(h).concat(i("FontSizeUnit")||"px"),o):void 0,fontWeight:""!==i("FontWeight")?i("FontWeight"):void 0,textTransform:""!==i("TextTransform")?i("TextTransform"):void 0,letterSpacing:""!==i("LetterSpacing")?"".concat(i("LetterSpacing"),"px"):void 0,lineHeight:""!==i("LineHeight")?"".concat(i("LineHeight")).concat(i("LineHeightUnit")||"em"):void 0};else if("tablet"===t){if(m={lineHeight:""!==i("TabletLineHeight")?"".concat(i("TabletLineHeight")).concat(i("TabletLineHeightUnit")||"em"):void 0},p){var y=Se(h,{min:g,max:d});y&&(m.fontSize="".concat(y).concat(i("FontSizeUnit")||"px"))}b&&(m.fontSize=i("TabletFontSize","%s".concat(i("TabletFontSizeUnit")||"px")))}else{if(m={lineHeight:""!==i("MobileLineHeight")?"".concat(i("MobileLineHeight")).concat(i("MobileLineHeightUnit")||"em"):void 0},p){var w=Se(h,{min:g,max:d});w&&(m.fontSize="".concat(w).concat(i("FontSizeUnit")||"px"));var k=Se(b,{min:g,max:d});k?m.fontSize="".concat(k).concat(i("TabletFontSizeUnit")||"px"):(w||b)&&(m.fontSize=void 0)}v&&(m.fontSize=i("MobileFontSize","%s".concat(i("MobileFontSizeUnit")||"px")))}return u?Oe(m):m},Q=n(9);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var J={},Z=function(){J=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},function(e){var t=document.createElement("div");if(t.classList.add("editor-styles-wrapper"),t.classList.add("ugb-default-font-size"),t.innerHTML='<div class="wp-block">'.concat(e.map(function(e){return"<".concat(e,"></").concat(e,">")}).join(),"</div>"),!document||!document.body)return{};document.body.appendChild(t);var n={};return e.forEach(function(e){var a=window.getComputedStyle(t.querySelector(e)).getPropertyValue("font-size");n[e]=Math.round(parseFloat(a))}),document.body.removeChild(t),n}(["h1","h2","h3","h4","h5","h6","p"]))};Object(Q.addFilter)("stackable.global-settings.typography.editor-styles","stackable/default-font-sizes",function(e,t,n,a){return e[".ugb-default-font-size .wp-block ".concat(t)]=Y("%s","desktop",a,{important:!0}),J={},e});var ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(J).length&&!t||Z(),J[e]||J.p||21};Object(O.a)(function(){Z()});var te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e,t))},a=_e(t,n);return"gradient"===a("BackgroundColorType")||a("BackgroundMediaUrl")||a("TabletBackgroundMediaUrl")||a("MobileBackgroundMediaUrl")};var ne=n(26),ae=n.n(ne);var re=n(2),ie=n.n(re);function le(){return(le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var oe=ie.a.createElement("circle",{cx:50,cy:50,r:50}),se=function(e){return ie.a.createElement("svg",le({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},e),oe)};function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ce=ie.a.createElement("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}),pe=function(e){return ie.a.createElement("svg",ue({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),ce)};function fe(){return(fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var de=ie.a.createElement("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"});var ge={circle:se,square:pe,blob1:function(e){return ie.a.createElement("svg",fe({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),de)}},me=function(e){var t=Object(Q.applyFilters)("stackable.image.shape.svgs",ge);return t[e]?t[e]:null},he=n(15),be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{width:e.media_details?e.media_details.width:"",height:e.media_details?e.media_details.height:"",source_url:e.source_url||""}},ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.media_details&&e.media_details.sizes&&e.media_details.sizes[t]||be(e):null};window._stackableCachedImageData={};var ye=function(e,t){var n=t("core").getMedia,a=e?n(e):null;return a&&void 0!==a.id&&(window._stackableCachedImageData[a.id]=a),a},we=function(e){return window._stackableCachedImageData[e]||null};n(42),n(36);function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Oe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(function(n,a){return Ce({},n,r()({},a,xe(e[a],t)))},{})},xe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""!==e&&void 0!==e&&t&&!String(e).match(/!important/i)?"".concat(e," !important"):e},_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return function(a){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,l=null!==t?t:function(e){return Object(R.lowerFirst)(e)},o=void 0===e[l(a)]?"":e[l(a)];return""!==o?r?Object(S.sprintf)(r.replace(/%$/,"%%"),o):o:i}},Se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.min,a=void 0===n?Number.NEGATIVE_INFINITY:n,r=t.max,i=void 0===r?Number.POSITIVE_INFINITY:r;if(""!==e){var l=Object(R.clamp)(e,parseFloat(a),parseFloat(i));if(!isNaN(l))return parseFloat(l)!==parseFloat(e)?l:void 0}};var Ee={facebook:{label:Object(S.__)("Facebook",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="facebook-f" class="svg-inline--fa fa-facebook-f fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"></path></svg>'},twitter:{label:Object(S.__)("Twitter",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg>'},instagram:{label:Object(S.__)("Instagram",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"></path></svg>'},pinterest:{label:Object(S.__)("Pinterest",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="pinterest-p" class="svg-inline--fa fa-pinterest-p fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"></path></svg>'},linkedin:{label:Object(S.__)("LinkedIn",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path></svg>'},youtube:{label:Object(S.__)("YouTube",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"></path></svg>'},email:{label:Object(S.__)("Email",_.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="envelope" class="svg-inline--fa fa-envelope fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></svg>'}},je=n(32);function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Be=["uniqueClass"],Me={};var Ne=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=Object(he.select)("core/block-editor"),i=a.getBlockName,l=a.getSelectedBlockClientId,o=a.getBlockAttributes,s=a.hasMultiSelection,u=a.getMultiSelectedBlockClientIds,c=Object(he.dispatch)("core/block-editor"),p=c.updateBlockAttributes,f=Object(he.select)("core/blocks"),d=f.getBlockType;if(n||!s()){var g=n||l();if(g){var m=o(g),h=i(g).replace(/^\w+\//g,""),b=d(i(g)).attributes,v=Object.keys(b).reduce(function(e,t){return Pe({},e,r()({},t,b[t]?b[t].default:""))},{}),y=Object(Q.applyFilters)("stackable.".concat(h,".design.filtered-block-attributes"),Pe({},v,{},t),m),w=Object(Q.applyFilters)("stackable.".concat(h,".design.no-text-attributes"),y,m);$(w),p(g,Object(R.omit)(w,["uniqueClass"]))}}else u().forEach(function(n){e(t,n)})},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(k.useState)(function(){try{var n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),a=l()(n,2),r=a[0],i=a[1],o=function(t){try{var n=t instanceof Function?t(r):t;i(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(e){}};return[r,o]};var De=function(e,t){var n=Re(e,t);return n?n.html[0]:""},Re=function(e,t){return window.FontAwesome?window.FontAwesome.icon({prefix:e,iconName:t}):null},Ae=n(22),ze=n.n(Ae),Le=n(25),Fe=n.n(Le),Ue=n(29),He=n.n(Ue);n(43);var Ve=function(e){return e.match(/(mp4|webm|ogg)$/i)},Ge="desktop",We=function(){return Ge},qe=!1,Ke=function(){return qe},$e=function(){var e=document.querySelector("head");return Ye()&&(e=document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.querySelector("head")),e},Ye=function(){return!!document.querySelector('iframe[name="editor-canvas"]')};function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Je=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a},i=Object.keys(Ee).reduce(function(e,i){var l;return Xe({},e,(l={},r()(l,"".concat(i,"Url"),a("".concat(i,"Url"))),r()(l,"onChange".concat(Object(R.upperFirst)(i),"Url"),function(e){return t(r()({},n("".concat(i,"Url")),e))}),l))},{});return wp.element.createElement(rt,M()({design:a("Design",e.designDefault),size:a("Size","normal"),shadow:a("Shadow"),hoverEffect:a("HoverEffect"),ghostToNormalEffect:a("HoverGhostToNormal"),useSocialColors:a("UseSocialColors"),newTab:a("NewTab"),onChangeNewTab:function(e){return t(r()({},n("NewTab"),e))},isSelected:e.isSelected},i,e))};Je.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},designDefault:"basic"},(Je.Content=function(e){var t=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},n=function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[t(n)];return 0===r?r:r||a},a=Object.keys(Ee).reduce(function(e,t){return Xe({},e,r()({},"".concat(t,"Url"),n("".concat(t,"Url"))))},{});return wp.element.createElement(rt.Content,M()({design:n("Design",e.designDefault),size:n("Size","normal"),newTab:n("NewTab"),hoverEffect:n("HoverEffect"),useSocialColors:n("UseSocialColors"),ghostToNormalEffect:n("HoverGhostToNormal"),shadow:n("Shadow")},a,e))}).defaultProps={attrNameTemplate:"%s",blockAttributes:{},designDefault:"basic"};function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tt=function(e){return wp.element.createElement(k.Fragment,null,Object.keys(Ee).map(function(t){var n=P()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return(!0===e["show".concat(Object(R.upperFirst)(t))]||e["".concat(t,"Url")]&&!1!==e["show".concat(Object(R.upperFirst)(t))])&&wp.element.createElement(F,M()({key:t,iconButton:!0,className:n,rel:"noopener noreferrer nofollow",icon:Ee[t].icon,url:e["".concat(t,"Url")],onChangeUrl:function(n){var a=n;"email"===t&&a.match(/^[^:]+@./)&&(a="mailto:".concat(a)),e["onChange".concat(Object(R.upperFirst)(t),"Url")](a)},onChangeNoFollow:!1,disableSuggestions:!0},e))}))},nt=Object.keys(Ee).reduce(function(e,t){var n;return et({},e,(n={},r()(n,"".concat(t,"Url"),""),r()(n,"show".concat(Object(R.upperFirst)(t)),null),n))},{});tt.defaultProps=et({useSocialColors:!0},nt),tt.Content=function(e){return wp.element.createElement(k.Fragment,null,Object.keys(Ee).map(function(t){var n=P()(["ugb-social-button","ugb-button-".concat(t)],{"ugb-social-button--social-colors":e.useSocialColors});return!1!==e["show".concat(Object(R.upperFirst)(t))]&&wp.element.createElement(F.Content,M()({key:t,className:n,iconButton:!0,rel:"noopener noreferrer nofollow",icon:Ee[t].icon,url:e["".concat(t,"Url")]||"#"},e))}))};var at=Object.keys(Ee).reduce(function(e,t){var n;return et({},e,(n={},r()(n,"".concat(t,"Url"),""),r()(n,"show".concat(Object(R.upperFirst)(t)),null),n))},{});tt.Content.defaultProps=et({useSocialColors:!0},at);var rt=tt;function it(){return(it=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var lt=ie.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),ot=ie.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),st=ie.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),ut=function(e){return ie.a.createElement("svg",it({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),lt,ot,st)};function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ft=function(e){var t=e.imageID,n=e.imageURL,a=e.onRemove,r=e.className,i=e.allowedTypes,l=e.render,o=e.hasRemove,s=e.style,u=P()([r,"ugb-image-upload-placeholder"],{"ugb-image-upload-has-image":n,"ugb-image-upload-has-placeholder":!n}),c=pt({},s,{backgroundImage:n&&!l?"url(".concat(n,")"):void 0});return wp.element.createElement(D.MediaUpload,{onSelect:function(t){var n=t.url,a=t.width,r=t.height,i=e.imageSize||"full";t.sizes&&t.sizes[i]&&(n=t.sizes[i].url,a=t.sizes[i].width,r=t.sizes[i].height),e.onChange(pt({},t,{url:n,width:a,height:r}))},allowedTypes:i,value:t,render:function(e){return n&&l?wp.element.createElement("div",{className:u,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:c,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&o&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(x.Dashicon,{icon:"no"})),l):wp.element.createElement("div",{className:u,onClick:e.open,onKeyDown:function(t){13===t.keyCode&&e.open()},style:c,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&o&&wp.element.createElement("button",{className:"ugb-image-upload-remove",onClick:function(e){a(),e.stopPropagation()}},wp.element.createElement(x.Dashicon,{icon:"no"})),!n&&wp.element.createElement(ut,null))}})};ft.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:function(e){e.url,e.id},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};var dt=function(e){return wp.element.createElement(x.BaseControl,{label:e.label,id:"url-input-control",help:e.help},wp.element.createElement(D.URLInput,M()({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},Object(R.omit)(e,["label","help"]))))};dt.defaultProps={label:Object(S.__)("URL",_.i18n),help:null,value:"",onChange:function(){}};var gt=dt,mt=Object(k.forwardRef)(function(e,t){var n=P()([e.className,"ugb-button-component"]);return wp.element.createElement(x.Button,M()({},e,{className:n,ref:t}))});function ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var yt=Object(k.createElement)(function(e){var t=e.className,n=e.isPressed,a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach(function(t){ht(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},bt(e,["className","isPressed"]),{className:P()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":"true",focusable:"false"});return Object(k.createElement)("svg",a)},{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(k.createElement)(function(e){return Object(k.createElement)("path",e)},{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"})),wt=[{id:"opensInNewTab",title:Object(S.__)("Opens in new tab",_.i18n)},{id:"noFollowLink",title:Object(S.__)("Nofollow link",_.i18n)},{id:"sponsored",title:Object(S.__)("Sponsored",_.i18n)},{id:"ugc",title:Object(S.__)("UGC",_.i18n)}],kt=function(e){var t=e.value,n={url:t,opensInNewTab:e.newTab,noFollowLink:e.noFollow,sponsored:e.sponsored,ugc:e.ugc};if(!(e.onChange||e.onChangeNewTab||e.onChangeNoFollow||e.onChangeSponsored||e.onChangeUgc))return null;var a=P()(["ugb-url-input-popover"]),r=wt.filter(function(t){switch(t.id){case"opensInNewTab":return e.onChangeNewTab;case"noFollowLink":return e.onChangeNoFollow;case"sponsored":return e.onChangeSponsored;case"ugc":return e.onChangeUgc;default:return!0}});return wp.element.createElement(x.Popover,{className:a,focusOnMount:!1,position:e.position},wp.element.createElement(D.__experimentalLinkControl,{value:n,settings:r,showSuggestions:!e.disableSuggestions,onChange:function(t){var a={url:e.onChange,opensInNewTab:e.onChangeNewTab,noFollowLink:e.onChangeNoFollow,sponsored:e.onChangeSponsored,ugc:e.onChangeUgc},r=Object(R.omitBy)(Object(R.omit)(t,"id","title","type"),function(e,t){return n[t]===e});Object(R.keys)(r).map(function(e){var t;return null===(t=a[e])||void 0===t?void 0:t.call(a,r[e])})}},wp.element.createElement("form",null,wp.element.createElement("input",{placeholder:Object(S.__)("Search or type url",_.i18n),value:t}),wp.element.createElement(mt,{icon:yt,type:"submit"}))))};kt.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,ugc:!1,sponsored:!1,onChangeNewTab:null,onChangeNoFollow:null,onChangeSponsored:null,onChangeUgc:null};var Ct=kt,Ot=n(13);function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var _t=Object(S.__)("(current %s: %s)",_.i18n),St=Object(Ot.compose)([D.withColorContext,Object(Ot.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.disableCustomColors,n=e.label,a=e.onChange,i=e.value,l=e.className,o=void 0===l?"":l,s=Object(R.compact)(e.colors.map(function(e){return Object(R.isPlainObject)(e)?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{name:e.name||e.fallback||e.color||Object(S.__)("Untitled Color",_.i18n)}):null})),u=Object(D.getColorObjectByColorValue)(s,i),c=u&&u.name,p=Object(S.sprintf)(_t,n.toLowerCase(),c||i),f=i;"string"==typeof i&&i.includes("--stk-global-color")&&i.match(/#[\d\w]{6}/)&&(f=i.match(/#[\d\w]{6}/)[0]);var d=wp.element.createElement(k.Fragment,null,n,f&&wp.element.createElement(x.ColorIndicator,{colorValue:f,"aria-label":p}));return wp.element.createElement(x.BaseControl,{className:P()([o,"editor-color-palette-control"]),id:"editor-color-palette-control",label:d},wp.element.createElement(x.ColorPalette,M()({className:"editor-color-palette-control__color-palette",value:f,onChange:function(e){var t=Object(D.getColorObjectByColorValue)(s,e);a(Object(Q.applyFilters)("stackable.color-palette-control.change",e,t))}},{colors:s,disableCustomColors:t})))}),Et=function(e){return Array.isArray(e)?e.map(function(e){var t,n=l()(e,2),a=n[0],r=n[1];return[a,'"'.concat((t=r,Object(R.escape)(unescape(t))),'"')].join("=")}).join(" "):""},jt=function(e){var t=Object(k.useRef)(),n=Object(k.useState)(!1),a=l()(n,2),i=a[0],o=a[1],s=Object(k.useState)(Et(e.value)),u=l()(s,2),c=u[0],p=u[1];Object(k.useEffect)(function(){(t.current||document.querySelector(".ugb-custom-attributes-control input"))!==document.activeElement&&p(Et(e.value))},[JSON.stringify(e.value)]);var f=Object(k.useCallback)(function(t){var n;p(t);var a=document.createElement("div");a.innerHTML="<div ".concat(t," />");var i=(null===(n=a.children[0])||void 0===n?void 0:n.attributes)||[],l=[],s=!1;""===a.innerHTML&&""!==t.trim()&&(s=!0);for(var u=0;u<i.length;u++)if(!e.invalidHtmlAttributes.includes(i[u].name))try{var c=document.createElement("div");Object(k.render)(wp.element.createElement("div",r()({},i[u].name,i[u].value)),c),Object(k.unmountComponentAtNode)(c),document.createElement("div").setAttribute(i[u].name,i[u].value),l.push([i[u].name,escape(i[u].value)])}catch(e){s=!0}o(s),e.onChange(l)},[p,e.invalidHtmlAttributes,e.onChange,o]),d=Object(k.useCallback)(function(){Array.isArray(e.value)&&e.value.length>0&&p(Et(e.value))},[JSON.stringify(e.value)]);return wp.element.createElement(x.TextControl,{ref:t,"data-testid":"custom-attributes",className:"ugb-custom-attributes-control",label:Object(S.__)("Custom Attributes",_.i18n),value:c,onBlur:d,onChange:f,help:wp.element.createElement(k.Fragment,null,Object(S.__)("You can type in custom HTML attributes for this block in the field above.",_.i18n)," ",Object(S.__)("Example:",_.i18n),wp.element.createElement("br",null),wp.element.createElement("code",null,'data-id="my-title"'),wp.element.createElement("br",null),wp.element.createElement(x.ExternalLink,{href:"https://docs.wpstackable.com/article/461-how-to-use-custom-attributes?utm_source=inspector&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},Object(S.__)("Learn more about Custom Attributes",_.i18n)),i&&wp.element.createElement("span",{className:"ugb-custom-attributes-control__error"},Object(S.__)("There is an error in your custom attribute",_.i18n)))})};jt.defaultProps={label:"",value:[],invalidHtmlAttributes:[],onChange:function(){}};var Tt=n(24),Pt=n.n(Tt);Object(Ot.createHigherOrderComponent)(function(e){var t=function(t){var n=Object(he.useSelect)(function(e){var t,n;return null===(t=(n=e("core/edit-post")).isEditingTemplate)||void 0===t?void 0:t.call(n)});return Object(k.useEffect)(function(){$(t.attributes)},[n]),wp.element.createElement(e,t)};return t.defaultProps={attributes:{}},t},"withGoogleFont");var Bt=n(11),Mt=n.n(Bt);Object(Ot.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){var e;return c()(this,n),(e=g()(this,h()(n).apply(this,arguments))).setAttributes=e.setAttributes.bind(v()(e)),e}return w()(n,t),f()(n,[{key:"componentDidUpdate",value:function(e){Object(R.isEqual)(e.attributes,this.props.attributes)||Object(Q.doAction)("stackable.setAttributes.after")}},{key:"setAttributes",value:function(e){var t=this.props.blockName,n=Object(Q.applyFilters)("stackable.setAttributes",e,this.props);n=Object(Q.applyFilters)("stackable.".concat(t,".setAttributes"),n,this.props),this.props.setAttributes(n)}},{key:"render",value:function(){return wp.element.createElement(e,M()({},this.props,{setAttributes:this.setAttributes}))}}]),n}(k.Component),r()(t,"propTypes",{setAttributes:Mt.a.func.isRequired}),n},"withSetAttributeHook");function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}Object(Ot.createHigherOrderComponent)(function(e){var t,n;return n=t=function(t){function n(){return c()(this,n),g()(this,h()(n).apply(this,arguments))}return w()(n,t),f()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.clientId,a="ugb-".concat(n.substring(0,7));t.uniqueClass?t.uniqueClass!==a&&document.querySelectorAll(".".concat(t.uniqueClass)).length>1&&(this.props.attributes.uniqueClass=a):this.props.attributes.uniqueClass=a}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}]),n}(k.Component),r()(t,"defaultProps",{attributes:{},clientId:"",setAttributes:function(){}}),n},"withUniqueClass");Object(Q.addFilter)("stackable.user-design-library.save.ignore","stackable/unique-class",function(e){return[].concat(s()(e),["uniqueClass"])}),Object(Q.addFilter)("stackable.block.attributes","stackable/unique-class",function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{uniqueClass:{type:"string",default:""}})});var It=function(e){return document.querySelector(".ugb-panel--".concat(e))},Dt=function(e){var t=e.closest(".ugb-inspector-panel-controls");if(!t)return null;var n=t.getAttribute("class").match(/ugb-panel-(\w+)/);if(n){var a=n[1];return document.querySelector(".ugb-tab--".concat(a))}return null},Rt=function(e){e&&(e.classList.contains("is-active")||e.click())},At=function(e){if(e){if(!e.classList.contains("is-opened")){var t=e.querySelector("button");t&&t.click()}zt(e)}},zt=function(e){var t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar"),a=e.getBoundingClientRect().top+2;a-=t?t.getBoundingClientRect().height:0,a-=n.getBoundingClientRect().top,document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar").scrollTop+=a};function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var Ft=!1,Ut={".ugb-top-separator":"top-separator",".ugb-bottom-separator":"bottom-separator",".ugb-inner-block":"column-background",".ugb-block-title":"block-title",".ugb-block-description":"block-description",".ugb--has-block-background":"block-background"},Ht={},Vt=[".block-editor-rich-text__editable",".editor-rich-text__editable","svg","img","figure",".ugb-button",'[role="button"]',".ugb-block-content > * > *",".ugb-block-content > *",".ugb-content-wrapper",".ugb-top-separator",".ugb-bottom-separator",".ugb-inner-block",".ugb-main-block"],Gt=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Ht[e],{},Ut)};Object(O.a)(function(){if(!Ft&&(Ft=!0,Element.prototype.matches)){var e=Object(Q.applyFilters)("stackable.click-open-inspector.listener-override",{});document.body.addEventListener("dblclick",function(t){if(!wp.customize){var n,a,r=(n=t.target,(a=n.closest("[data-type]"))&&a.getAttribute("data-type").match(/^ugb\//i)?a.getAttribute("data-type").replace(/^ugb\//i,""):"");if(r){var i=Gt(r);if(i){var l=[];Object.keys(e).some(function(n){return!!t.target.closest(n)&&(l=e[n],!0)}),[].concat(s()(l),Vt).some(function(e){var n=t.target.closest(e);return!!n&&Object.keys(i).some(function(e){return!!n.matches(e)&&function(e){var t=It(e);if(t){var n=Dt(t);Rt(n),At(t)}if(!t){[".ugb-tab--style",".ugb-tab--layout",".ugb-tab--section",".ugb-tag--advanced"].some(function(n){var a=document.querySelector(n);return Rt(a),(t=It(e))&&At(t),!!t})}return t}(i[e])})})}}}})}});var Wt=function(e){return Object(Ot.createHigherOrderComponent)(function(t){var n,a;return a=n=function(n){function a(){return c()(this,a),g()(this,h()(a).apply(this,arguments))}return w()(a,n),f()(a,[{key:"render",value:function(){var n=this.props.className.match(/ugb--help-tip/),a=P()([this.props.className],r()({},"ugb--help-tip-".concat(e),!n));return wp.element.createElement(t,M()({},this.props,{className:a}))}}]),a}(k.Component),r()(n,"defaultProps",{className:""}),a},"withHelpTip")},qt=null,Kt={},$t=[],Yt=function(e){return e.replace(/^[\w-]+\//,"")},Qt=function(){var e=Fe()(ze.a.mark(function e(){var t,n,a=arguments;return ze.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]&&a[0],qt&&!t){e.next=9;break}return e.next=4,He()({path:"/wp/v2/stk_design_library".concat(t?"/reset":""),method:"GET"});case 4:return n=e.sent,e.next=7,n;case 7:qt=e.sent,t&&(Kt={},$t=[]);case 9:return e.abrupt("return",qt);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Xt=function(){var e=Fe()(ze.a.mark(function e(t){var n,a;return ze.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Yt(t),Kt[n]){e.next=8;break}return e.next=4,He()({path:"/wp/v2/stk_block_designs/".concat(n),method:"GET"});case 4:return a=e.sent,e.next=7,a;case 7:Kt[n]=e.sent;case 8:return e.abrupt("return",Kt[n]);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Jt=function(){var e=Fe()(ze.a.mark(function e(t){var n;return ze.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if($t[t]){e.next=7;break}return e.next=3,He()({path:"/wp/v2/stk_design/".concat(t),method:"GET"});case 3:return n=e.sent,e.next=6,n;case 6:$t[t]=e.sent;case 7:return e.abrupt("return",$t[t]);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Zt=function(){var e=Fe()(ze.a.mark(function e(){var t,n,a=arguments;return ze.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],e.next=3,He()({path:"/wp/v2/stk_design_library_dev_mode/",method:"POST",data:{devmode:t}});case 3:return n=e.sent,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();Object(O.a)(function(){});var en=function(){var e=Fe()(ze.a.mark(function e(t){var n,a,r,i,l,o,s,u,c,p,f,d,g,m,h,b,v,y;return ze.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,a=void 0===n?"":n,r=t.block,i=void 0===r?"":r,l=t.mood,o=void 0===l?"":l,s=t.plan,u=void 0===s?"":s,c=t.colors,p=void 0===c?[]:c,f=t.categories,d=void 0===f?[]:f,g=t.search,m=void 0===g?"":g,h=t.reset,b=void 0!==h&&h,e.t0=Object,e.next=4,Qt(b);case 4:return e.t1=e.sent,v=e.t0.values.call(e.t0,e.t1),a&&(v=v.filter(function(e){return e.type===a})),i&&(y=-1===i.indexOf("ugb/")?"ugb/".concat(i):i,v=v.filter(function(e){return e.block===y})),o&&(v=v.filter(function(e){return e.mood===o})),u&&(v=v.filter(function(e){return e.plan===u})),p&&p.length&&(v=v.filter(function(e){return e.colors.some(function(e){return p.includes(e)})})),d&&d.length&&(v=v.filter(function(e){return e.categories.some(function(e){return d.includes(e)})})),m&&m.toLowerCase().replace(/\s+/," ").trim().split(" ").forEach(function(e){v=v.filter(function(t){return["label","plan","block","tags","categories","colors"].some(function(n){return-1!==t[n].toString().toLowerCase().indexOf(e)})})}),e.abrupt("return",v);case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),tn=function(){var e=Fe()(ze.a.mark(function e(t){var n,a,r,i,l,o;return ze.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qt();case 2:if(n=e.sent,a=n[t],r=a.type,i=a.block,l=a.template,"block"!==r||!i){e.next=12;break}return e.next=8,Xt(i);case 8:return o=e.sent,e.abrupt("return",o[t]);case 12:if(!l){e.next=16;break}return e.next=15,Jt(t);case 15:return e.abrupt("return",e.sent);case 16:return e.abrupt("return",null);case 17:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),nn=function(){var e=Fe()(ze.a.mark(function e(){var t;return ze.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Object,e.next=3,Qt();case 3:return e.t1=e.sent,t=e.t0.values.call(e.t0,e.t1),e.abrupt("return",t.reduce(function(e,t){var n=t.block,a=t.type;return e.includes(n)||"block"!==a||e.push(n),e},[]));case 6:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),an=n(49),rn=n.n(an),ln=function(e){var t=e.image,n=e.label,a=e.className,r=Pt()(e,["image","label","className"]),i=t?t.match(/https?:/i)?t:_.srcUrl?"".concat(_.srcUrl,"/").concat(t):t:"",l="free"!==r.plan,o=l&&!_.isPro&&_.showProNotice;if(l&&!_.isPro&&!_.showProNotice)return null;var s=P()(["ugb-design-layout-selector__item",a],{"is-premium":r.plan&&!_.isPro&&"free"!==r.plan,"is-locked":o}),u=o?"div":"button";return wp.element.createElement(u,M()({className:s},r),wp.element.createElement("div",{className:"ugb-design-layout-selector__wrapper"},o&&wp.element.createElement(x.Icon,{className:"ugb-design-layout-selector__lock",icon:"lock"}),o&&wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=design-library-learn-more&utm_campaign=learnmore&utm_medium=gutenberg",className:"ugb-design-layout-selector__item-premium-button ugb-shadow-4 button button-secondary",target:"_premium",title:Object(S.__)("Learn More",_.i18n)},Object(S.__)("Learn More",_.i18n)),wp.element.createElement("img",{className:"ugb-design-layout-selector__image",src:i,alt:n})),wp.element.createElement("div",{className:"ugb-design-layout-selector__label"},n))};ln.defaultProps={name:"",label:"",className:""};var on=ln;function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var un={image:rn.a,plan:"free",label:"Basic",id:"basic"},cn=function(e){var t=e.name,n=Object(k.useState)([]),a=l()(n,2),i=a[0],o=a[1],s=Object(k.useState)([]),u=l()(s,2),c=u[0],p=u[1],f=Object(k.useState)(!1),d=l()(f,2),g=d[0],m=d[1],h=Object(k.useState)(!0),b=l()(h,2),v=b[0],y=b[1];Object(k.useEffect)(function(){var t=e.name.split("/")[1],n=Object(Q.applyFilters)("stackable.".concat(t,".edit.layouts"),[]).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{plan:e.premium?"premium":"free"})});o(n.length?n:[un]),en({type:"block",block:t}).then(function(t){var a;p(t),y(!1),!t.length&&n.length<=1&&e.setAttributes({design:(null===(a=n[0])||void 0===a?void 0:a.value)||un.id})})},[]);var w=wp.element.createElement(k.Fragment,null,wp.element.createElement(x.Icon,{icon:"admin-settings"}),Object(S.__)("Pick a layout or design",_.i18n)),C=!!i.length&&wp.element.createElement("div",{className:"ugb-design-layout-selector__layout-items"},(i.filter(function(e){return!Object(Q.applyFilters)("stackable.".concat(t,".edit.inspector.layout.excludeDesigns"),[]).includes(e.value)})||[]).map(function(t){return wp.element.createElement(on,M()({className:"ugb-design-layout-selector__layout-item",onClick:function(){t.premium&&!_.isPro||(0,e.setAttributes)({design:t.value})},key:t.label},t))})),O=P()("ugb-design-layout-selector__design-library",{"is-busy":v}),E=!!c.length&&wp.element.createElement("div",{className:O},wp.element.createElement("div",{className:"components-placeholder__fieldset ugb-design-layout-selector__design-container"},v&&wp.element.createElement("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},wp.element.createElement(x.Spinner,null)),wp.element.createElement("div",{className:"ugb-design-layout-selector__design-items"},(c||[]).map(function(t){var n={image:t.image,plan:t.plan,label:t.label};return wp.element.createElement(on,M()({className:"ugb-design-layout-selector__design-item",onClick:function(){(_.isPro||"free"===t.plan)&&(m(!0),tn(t.id).then(function(t){m(!1),Ne(t.attributes,e.clientId)}).catch(function(){m(!1)}))},key:t.label},n))})))),j=P()("ugb-design-layout-selector",{"is-busy":g});return wp.element.createElement(x.Placeholder,{className:j,label:w},g&&wp.element.createElement("div",{className:"ugb-design-layout-selector__spinner","data-testid":"spinner"},wp.element.createElement(x.Spinner,null)),wp.element.createElement("div",{className:"ugb-design-layout-selector__content"},!!i.length&&wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(S.__)("Select a variation to start with.",_.i18n)),C,!!c.length&&wp.element.createElement("div",{className:"components-placeholder__instructions"},!!i.length&&Object(S.__)("Or pick from our Design Library.",_.i18n),!i.length&&Object(S.__)("Select a design from our library to start with.",_.i18n)),E),wp.element.createElement("div",{className:"ugb-design-layout-selector__close-button"},wp.element.createElement(x.ButtonGroup,null,wp.element.createElement(mt,{isLink:!0,isLarge:!0,onClick:function(){if(i.length){var t=i.find(function(e){return!!_.isPro||!e.premium});(0,e.setAttributes)({design:t.value})}}},Object(S.__)("Skip",_.i18n))),!_.isPro&&_.showProNotice&&(!!i.length&&i.some(function(e){return"premium"===e.plan})||!!c.length&&c.some(function(e){return"premium"===e.plan}))&&wp.element.createElement("p",{className:"ugb-design-layout-selector__notice"},Object(S.__)("You can hide premium hints in the settings",_.i18n))))};cn.defaultProps={name:""};var pn=cn;function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var dn=["ugb/column","ugb/columns"],gn=(Object(Ot.createHigherOrderComponent)(function(e){var t=function(t){var n=void 0!==t.attributes.design&&""===t.attributes.design;return Object(k.useMemo)(function(){return!dn.includes(t.name)},[])&&n?wp.element.createElement(pn,t):wp.element.createElement(e,t)};return t.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.defaultProps||{},{attributes:{}}),t},"withDesignLayoutSelector"),function(e){return wp.element.createElement(x.SelectControl,M()({},e,{options:[{value:"",label:Object(S.__)("None",_.i18n)},{value:"normal",label:Object(S.__)("Normal",_.i18n)},{value:"multiply",label:Object(S.__)("Multiply",_.i18n)},{value:"screen",label:Object(S.__)("Screen",_.i18n)},{value:"overlay",label:Object(S.__)("Overlay",_.i18n)},{value:"darken",label:Object(S.__)("Darken",_.i18n)},{value:"lighten",label:Object(S.__)("Lighten",_.i18n)},{value:"color-dodge",label:Object(S.__)("Color Dodge",_.i18n)},{value:"color-burn",label:Object(S.__)("Color Burn",_.i18n)},{value:"hard-light",label:Object(S.__)("Hard Light",_.i18n)},{value:"soft-light",label:Object(S.__)("Soft Light",_.i18n)},{value:"difference",label:Object(S.__)("Difference",_.i18n)},{value:"exclusion",label:Object(S.__)("Exclusion",_.i18n)},{value:"hue",label:Object(S.__)("Hue",_.i18n)},{value:"saturation",label:Object(S.__)("Saturation",_.i18n)},{value:"color",label:Object(S.__)("Color",_.i18n)},{value:"luminosity",label:Object(S.__)("Luminosity",_.i18n)},{value:"initial",label:Object(S.__)("Initial",_.i18n)},{value:"inherit",label:Object(S.__)("Inherit",_.i18n)},{value:"unset",label:Object(S.__)("Unset",_.i18n)}]}))});gn.defaultProps={label:Object(S.__)("Mix Blend Mode",_.i18n),help:Object(S.__)("Not supported in all browsers.",_.i18n)};var mn=Object(Ot.compose)(Wt("background-blend-mode"))(gn);function hn(){return(hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var bn=ie.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),vn=ie.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),yn=ie.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),wn=function(e){return ie.a.createElement("svg",hn({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),bn,vn,yn)},kn=function(e){var t=e.imageURL&&e.imageURL.match(/(mp4|webm|ogg)$/i)?"video":"image",n=function(){e.onRemove?e.onRemove():e.onChange({url:"",id:"",width:"",height:""})};return wp.element.createElement("div",{className:"ugb-image-control"},wp.element.createElement(x.BaseControl,{help:e.help},wp.element.createElement(na,{label:e.label,screens:e.screens}),wp.element.createElement(D.MediaUpload,{onSelect:e.onChange,allowedTypes:e.allowedTypes,value:e.imageID,render:function(a){return wp.element.createElement(k.Fragment,null,e.imageURL&&wp.element.createElement("div",{className:"ugb-image-preview-wrapper"},wp.element.createElement("button",{className:"ugb-image-preview-remove",onClick:n},wp.element.createElement(x.Dashicon,{icon:"no"})),"video"===t&&wp.element.createElement("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()}}),"image"===t&&wp.element.createElement("img",{className:"ugb-image-preview",src:e.imageURL,onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},alt:Object(S.__)("preview",_.i18n)})),!e.imageURL&&wp.element.createElement("div",{className:"ugb-placeholder",onClick:a.open,onKeyDown:function(e){13===e.keyCode&&a.open()},role:"button",tabIndex:0},wp.element.createElement(wn,null)))}})))};kn.defaultProps={label:"",imageID:"",imageURL:"",onChange:function(e){e.url,e.id,e.width,e.height},onRemove:function(){},allowedTypes:["image"],help:"",screens:["desktop"]};var Cn=kn,On=function(e){return wp.element.createElement(x.TextareaControl,M()({},e,{help:wp.element.createElement(k.Fragment,null,wp.element.createElement(x.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(S.__)("Describe the purpose of the image",_.i18n)),Object(S.__)("Leave empty if the image is purely decorative.",_.i18n))}))};On.defaultProps={label:Object(S.__)("Alt Text (Alternative Text)",_.i18n)};var xn=On,_n=n(50),Sn=n.n(_n),En=n(51),jn=n.n(En),Tn=n(52),Pn=n.n(Tn),Bn=n(53),Mn=n.n(Bn),Nn=function(e){return wp.element.createElement(k.Fragment,null,wp.element.createElement(qi,M()({},e,{className:P()(e.className,["ugb-image-shape-control","ugb--help-tip-image-shape"]),options:[].concat(s()(e.hasDefault?[{label:Object(S.__)("Default",_.i18n),value:"",image:Sn.a}]:[]),[{label:Object(S.__)("Square",_.i18n),value:"square",image:jn.a},{label:Object(S.__)("Circle",_.i18n),value:"circle",image:Pn.a},{label:Object(S.sprintf)(Object(S.__)("Blob %s",_.i18n),1),value:"blob1",image:Mn.a}],s()(Object(Q.applyFilters)("stackable.image.control.shapes",[])))})),_.showProNotice&&wp.element.createElement(gs,{type:"image"}))};Nn.defaultProps={className:"",label:Object(S.__)("Shape",_.i18n),selected:"",hasDefault:!0};var In=Nn,Dn=function(e){var t=e.imageData?ve(e.imageData,e.imageSize||"full"):null,n=null!==e.isSquareImage?e.isSquareImage:!!t&&t.width===t.height;return wp.element.createElement(k.Fragment,null,e.onChangeShape&&wp.element.createElement(In,{selected:e.shape,onChange:e.onChangeShape}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Flip Shape Horizontally",_.i18n),checked:e.shapeFlipX,onChange:e.onChangeShapeFlipX}),e.onChangeShapeStretch&&!["","square","circle"].includes(e.shape)&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Flip Shape Vertically",_.i18n),checked:e.shapeFlipY,onChange:e.onChangeShapeFlipY}),e.onChangeShapeStretch&&!["","square"].includes(e.shape)&&!n&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Stretch Shape Mask",_.i18n),checked:e.shapeStretch,onChange:e.onChangeShapeStretch}))};Dn.defaultProps={imageId:"",imageSize:"full",isSquareImage:null,shape:"",shapeFlipX:!1,shapeFlipY:!1,shapeStretch:!1,onChangeShape:function(){},onChangeShapeFlipX:function(){},onChangeShapeFlipY:function(){},onChangeShapeStretch:function(){}};var Rn=Object(Ot.compose)([Object(he.withSelect)(function(e,t){var n=e("core").getMedia;return{imageData:t.imageId?n(t.imageId):null}})])(Dn),An=function(e){var t=e.imageSizes,n=e.value,a=e.className,r=Pt()(e,["imageSizes","value","className"]),i=function(e){return Object(R.map)(e,function(e){var t=e.name;return{value:e.slug,label:t}})}(t);return Object(R.isEmpty)(i)?null:wp.element.createElement(x.SelectControl,M()({},r,{value:n||"large",options:i,className:P()(a,["ugb--help-tip-image-size"])}))};An.defaultProps={className:"",label:Object(S.__)("Image Size"),value:"large",imageSizes:[],onChange:function(){}};var zn=Object(Ot.compose)([Object(he.withSelect)(function(e){return{imageSizes:e("core/block-editor").getSettings().imageSizes}})])(An),Ln=function(e){var t=e.label,n=e.setAttributes,a=e.enablePaddingTop,r=e.enablePaddingRight,i=e.enablePaddingBottom,l=e.enablePaddingLeft,o=e.attributes,s=o.columnPaddingTop,u=void 0===s?"":s,c=o.columnPaddingBottom,p=void 0===c?"":c,f=o.columnPaddingRight,d=void 0===f?"":f,g=o.columnPaddingLeft,m=void 0===g?"":g,h=o.columnPaddingUnit,b=void 0===h?"px":h,v=o.tabletColumnPaddingTop,y=void 0===v?"":v,w=o.tabletColumnPaddingBottom,C=void 0===w?"":w,O=o.tabletColumnPaddingRight,x=void 0===O?"":O,_=o.tabletColumnPaddingLeft,S=void 0===_?"":_,E=o.tabletColumnPaddingUnit,j=void 0===E?"px":E,T=o.mobileColumnPaddingTop,P=void 0===T?"":T,B=o.mobileColumnPaddingBottom,M=void 0===B?"":B,N=o.mobileColumnPaddingRight,I=void 0===N?"":N,D=o.mobileColumnPaddingLeft,R=void 0===D?"":D,A=o.mobileColumnPaddingUnit,z=void 0===A?"px":A;return wp.element.createElement(k.Fragment,null,wp.element.createElement(Uo,{label:t,className:"ugb--help-tip-advanced-column-paddings",defaultLocked:!0,min:[0,0,0],sliderMax:[500,100,100],step:1,valueDesktop:{top:u,right:d,bottom:p,left:m},valueDesktopUnit:b,onChangeDesktop:function(e){n({columnPaddingTop:e.top,columnPaddingRight:e.right,columnPaddingBottom:e.bottom,columnPaddingLeft:e.left})},onChangeDesktopUnit:function(e){return n({columnPaddingUnit:e})},valueTablet:{top:y,right:x,bottom:C,left:S},valueTabletUnit:j,onChangeTablet:function(e){n({tabletColumnPaddingTop:e.top,tabletColumnPaddingBottom:e.bottom,tabletColumnPaddingRight:e.right,tabletColumnPaddingLeft:e.left})},onChangeTabletUnit:function(e){return n({tabletColumnPaddingUnit:e})},valueMobile:{top:P,right:I,bottom:M,left:R},valueMobileUnit:z,onChangeMobile:function(e){n({mobileColumnPaddingTop:e.top,mobileColumnPaddingBottom:e.bottom,mobileColumnPaddingRight:e.right,mobileColumnPaddingLeft:e.left})},onChangeMobileUnit:function(e){return n({mobileColumnPaddingUnit:e})},enableTop:a,enableRight:r,enableBottom:i,enableLeft:l}))};Ln.defaultProps={setAttributes:function(){},label:Object(S.__)("Column Paddings",_.i18n),attributes:{},enablePaddingTop:!0,enablePaddingRight:!0,enablePaddingBottom:!0,enablePaddingLeft:!0};var Fn=n(31),Un=n.n(Fn);function Hn(){return(Hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Vn=ie.a.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7v2zM4 6v8h16V6H4z"}),Gn=function(e){return ie.a.createElement("svg",Hn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Vn)};function Wn(){return(Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var qn=ie.a.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2zm0 2v15h8V4H8z"}),Kn=function(e){return ie.a.createElement("svg",Wn({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),qn)};function $n(){return($n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Yn=ie.a.createElement("path",{d:"M6 4v15h12V4H6zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2z"}),Qn=function(e){return ie.a.createElement("svg",$n({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),Yn)},Xn={desktop:wp.element.createElement(Gn,null),tablet:wp.element.createElement(Qn,null),mobile:wp.element.createElement(Kn,null)},Jn={desktop:Object(S.__)("Desktop",_.i18n),tablet:Object(S.__)("Tablet",_.i18n),mobile:Object(S.__)("Mobile",_.i18n)},Zn=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={screen:We(),isScreenPickerOpen:Ke(),isMouseOver:!1},e}return w()(t,e),f()(t,[{key:"onChangeScreen",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e}),function(e){Ge=e}(e),Object(Q.doAction)("stackable.responsive-toggle.screen.change",e),this.setState({isMouseOver:e})}},{key:"onOtherScreenChange",value:function(e){this.props.onChangeScreen(e),this.setState({screen:e})}},{key:"onOtherScreenOpen",value:function(){this.setState({isScreenPickerOpen:!0})}},{key:"onOtherScreenClose",value:function(){this.setState({isScreenPickerOpen:!1})}},{key:"componentDidMount",value:function(){var e=this.props.instanceId;Object(Q.addAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e),this.onOtherScreenChange.bind(this)),Object(Q.addAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e),this.onOtherScreenOpen.bind(this)),Object(Q.addAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e),this.onOtherScreenClose.bind(this))}},{key:"componentWillUnmount",value:function(){var e=this.props.instanceId;Object(Q.removeAction)("stackable.responsive-toggle.screen.change","stackable/responsive-toggle-".concat(e)),Object(Q.removeAction)("stackable.responsive-toggle.screen.open","stackable/responsive-toggle-".concat(e)),Object(Q.removeAction)("stackable.responsive-toggle.screen.close","stackable/responsive-toggle-".concat(e))}},{key:"render",value:function(){var e=this;return wp.element.createElement("div",{className:"ugb-base-control-multi-label__responsive"},this.props.screens.length>1&&this.props.screens.map(function(t,n){return n>0&&!e.state.isScreenPickerOpen&&!e.state.isMouseOver?null:wp.element.createElement("div",{key:n},wp.element.createElement(mt,{className:e.state.screen===t?"is-active":"",onClick:function(){return e.onChangeScreen(t)},icon:Xn[t],showTooltip:!1,label:Jn[t],"data-screen":t,onMouseEnter:function(){return e.setState({isMouseOver:t})},onMouseLeave:function(){return e.setState({isMouseOver:!1})}}),e.state.isMouseOver===t&&wp.element.createElement(x.Popover,{focusOnMount:!1,position:"bottom center",className:"components-tooltip","aria-hidden":"true"},Jn[t]))}))}}]),t}(k.Component);Zn.defaultProps={screens:["desktop"],onChangeScreen:function(){}};var ea=Object(Ot.withInstanceId)(Zn),ta=function(e){return wp.element.createElement("div",{className:"ugb-base-control-multi-label"},wp.element.createElement("div",{className:"ugb-base-control-multi-label__label components-base-control__label"},e.label),wp.element.createElement(ea,{screens:e.screens,onChangeScreen:e.onChangeScreen}),wp.element.createElement("div",{className:"ugb-base-control-multi-label__units"},e.units.length>1&&e.units.map(function(t,n){return wp.element.createElement("button",{key:n,className:e.unit===t?"is-active":"",onClick:function(){return e.onChangeUnit(t)}},t)}),e.afterButton))};ta.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],onChangeScreen:function(){},afterButton:null};var na=ta,aa=!!x.__experimentalNumberControl,ra=function(e){var t=e.allowReset,n=e.withInputField,a=e.isShiftStepEnabled,r=Pt()(e,["allowReset","withInputField","isShiftStepEnabled"]),i=Object(k.useState)(""===e.value||isNaN(e.value)?"":e.value),o=l()(i,2),s=o[0],u=o[1],c=function(t){if(u(t),!isNaN(t)){var n=parseFloat(t);if(!isNaN(n))return void e.onChange(Object(R.clamp)(n,e.min,e.max))}e.onChange(e.resetFallbackValue)},p=P()(["ugb-range-control",e.className],{"ugb-range-control--blank":""===s}),f=""===s,d=e.initialPosition||e.placeholder||"",g=function(e,t,n){var a=(e-t)/(n-t)*100;return"".concat(Object(R.clamp)(a,0,100),"%")}((f?d:s)||e.sliderMin||e.min||0,e.sliderMin||e.min||0,e.sliderMax||e.max||100);return wp.element.createElement("div",{className:p,style:{"--ugb-advanced-range-control--width":g}},wp.element.createElement(x.RangeControl,M()({},r,{initialPosition:"",onChange:c,withInputField:!1,allowReset:!1,max:null!==e.sliderMax?e.sliderMax:e.max,min:null!==e.sliderMin?e.sliderMin:e.min})),n&&aa&&wp.element.createElement(x.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:a,max:e.max,min:e.min,onChange:c,onBlur:function(){if(!isNaN(s)){var t=parseFloat(s);if(!isNaN(t))return void u(Object(R.clamp)(t,e.min,e.max))}u(e.resetFallbackValue)},shiftStep:e.shiftStep,step:e.step,value:s,placeholder:null!==e.placeholder?e.placeholder:d}),t&&wp.element.createElement(mt,{className:"components-range-control__reset",disabled:e.disabled,isSecondary:!0,isSmall:!0,onClick:function(){u(e.resetFallbackValue),e.onChange(e.resetFallbackValue)}},Object(S.__)("Reset",_.i18n)))};ra.defaultProps={className:"",allowReset:!1,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,sliderMax:null,sliderMin:null,shiftStep:10,step:1,resetFallbackValue:"",placeholder:null,initialPosition:0,onChange:function(){}};var ia=ra;function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var oa=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(R.omit)(e,["className","help","label","units","unit","onChangeUnit","screens","placeholder","initialPosition"])),n=e.units.indexOf(e.unit)<0?0:e.units.indexOf(e.unit);Array.isArray(e.min)&&(t.min=e.min[n]),Array.isArray(e.max)&&(t.max=e.max[n]),Array.isArray(e.step)&&(t.step=e.step[n]),t.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,t.placeholder=e.placeholder;var a=e.placeholder;if(Array.isArray(a)||"object"!==Un()(a))Array.isArray(a)&&"desktop"===e.screen?(t.placeholder=a[n]||"",t.initialPosition=a[n]||"",Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||"")):e.screen&&"desktop"!==e.screen&&(t.placeholder="",t.initialPosition="");else{var i=We()||"desktop";a=void 0!==a[i]?a[i]:a[Object.keys(a)[0]],Array.isArray(a)?(t.placeholder=a[n]||"",t.initialPosition=a[n]||""):(t.placeholder=a||"",t.initialPosition=a||""),Array.isArray(e.initialPosition)&&(t.initialPosition=e.initialPosition[n]||""),t.initialPosition=function(e){return"string"==typeof e&&""!==e&&e.match(/^[\d.]+$/)?e.includes(".")?parseFloat(e):parseInt(e,10):e}(t.initialPosition)}var l=P()(["ugb-advanced-range-control",e.className]);return wp.element.createElement(x.BaseControl,{help:e.help,className:l},wp.element.createElement(na,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(ia,t))};oa.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],placeholder:"",initialPosition:"",min:0,max:100};var sa=oa,ua=function(e){return wp.element.createElement(x.BaseControl,{help:e.help,className:P()("ugb-advanced-select-control",e.className)},wp.element.createElement(na,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(x.SelectControl,Object(R.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};ua.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var ca=ua,pa=function(e){return wp.element.createElement(x.BaseControl,{help:e.help,className:P()("ugb-advanced-text-control",e.className)},wp.element.createElement(na,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(x.TextControl,Object(R.omit)(e,["className","help","label","units","unit","onChangeUnit","screens"])))};pa.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"]};var fa=n(54),da=n.n(fa);function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var ma=function(e,t){var n=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!n)return t;var a=new RegExp(n,"i");return ha(t)?t.map(function(e){return{title:e.title,options:e.options.filter(function(e){return a.test(e.label)||a.test(e.value)})}}).filter(function(e){return e.options.length>0}):t.filter(function(e){return"string"==typeof e?a.test(e):a.test(e.label)||a.test(e.value)})},ha=function(e){return!(!e.length||"object"!==Un()(e[0].options))},ba=function(e,t){if(!t.length)return e;if(!ha(t)){var n=t.filter(function(t){return("string"==typeof t?t:t.value)===e});return n.length?n[0].label:e}var a=t.map(function(t){return{title:t.title,options:t.options.filter(function(t){return t.value===e})}}).filter(function(e){return e.options.length>0});return a.length?a[0].options[0].label:e},va=function(e){return e.value},ya=function(e){return wp.element.createElement("div",{className:"ugb--autosuggest-group"},e.title)},wa=function(e){return e.options},ka=function(){return!0},Ca=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={value:"",label:"",suggestions:[],isEmpty:!1},e.onSuggestionsFetchRequested=e.onSuggestionsFetchRequested.bind(v()(e)),e.onSuggestionsClearRequested=e.onSuggestionsClearRequested.bind(v()(e)),e.onChange=e.onChange.bind(v()(e)),e.onFocus=e.onFocus.bind(v()(e)),e.autosuggestDiv=Object(k.createRef)(),e}return w()(t,e),f()(t,[{key:"onChange",value:function(e,t){var n=t.newValue;this.props.onChange(n),this.setState({value:n,label:ba(n,this.props.options)})}},{key:"onFocus",value:function(){var e=this;this.props.highlightValueOnFocus&&setTimeout(function(){var t=e.autosuggestDiv.current.querySelector('[data-value="'.concat(e.state.value,'"]'));t&&t.scrollIntoView()},0)}},{key:"onSuggestionsFetchRequested",value:function(e){var t=e.value,n=e.reason;if(this.props.disableAutoIndex)this.setState({suggestions:ma("",this.props.options)});else if("input-focused"!==n&&"suggestion-selected"!==n){var a=ma(t,this.props.options);this.setState({suggestions:a,isEmpty:""!==t.trim()&&0===a.length})}else this.setState({suggestions:this.props.options,isEmpty:!1})}},{key:"componentDidMount",value:function(){this.props.options.length&&this.props.value&&this.setState({value:this.props.value,label:this.props.value?ba(this.props.value,this.props.options):this.props.value,suggestions:ma(this.props.disableAutoIndex?"":this.props.value,this.props.options)})}},{key:"componentWillReceiveProps",value:function(e){this.setState({value:e.value,label:e.value?ba(e.value,e.options):e.value,suggestions:ma(this.props.disableAutoIndex?"":e.value,e.options)})}},{key:"onSuggestionsClearRequested",value:function(){this.setState({suggestions:[]})}},{key:"render",value:function(){var e=this,t=this.state,n=t.label,a=t.suggestions,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({placeholder:this.props.placeholder,value:n,onChange:this.onChange,onFocus:this.onFocus,type:"search"},this.props.inputProps);return wp.element.createElement(x.BaseControl,{help:this.props.help,className:P()("ugb-advanced-autosuggest-control",this.props.className)},wp.element.createElement(na,{label:this.props.label,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},wp.element.createElement(da.a,{multiSection:ha(this.props.options),suggestions:a,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.props.onSuggestionSelected,getSuggestionValue:this.props.getSuggestionValue||va,renderSuggestion:function(t){return wp.element.createElement("div",{className:"ugb-autosuggest-option","data-value":t.value,id:"ugb-autosuggest-option--".concat(t.id||Object(R.kebabCase)(t.value))},e.props.renderOption?e.props.renderOption(t):t.label)},renderSectionTitle:ya,getSectionSuggestions:wa,shouldRenderSuggestions:ka,inputProps:i,renderInputComponent:this.props.renderInputComponent?this.props.renderInputComponent:function(e){return wp.element.createElement("input",e)}}),this.state.isEmpty&&wp.element.createElement("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}]),t}(k.Component);Ca.defaultProps={onChange:function(){},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:Object(S.__)("No matches found",_.i18n),renderOption:null,highlightValueOnFocus:!1,placeholder:"",getSuggestionValue:null,disableAutoIndex:!1,onSuggestionSelected:function(){},renderInputComponent:null,inputProps:{}};var Oa=Ca;function xa(){return(xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _a=ie.a.createElement("path",{d:"M3 15.1h14v2H3zM9.4 2.9h1.2v8.6l1.3-1.3 1.1.8-3 3-3-3 1.1-.8 1.3 1.3V2.9z"}),Sa=function(e){return ie.a.createElement("svg",xa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),_a)};function Ea(){return(Ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ja=ie.a.createElement("path",{d:"M9 3h2v14H9zM1.6 10.6V9.4h3.9L4.2 8.1 5 7l3 3-3 3-.8-1.1 1.3-1.3H1.6zM18.4 9.4v1.2h-3.9l1.3 1.3L15 13l-3-3 3-3 .8 1.1-1.3 1.3h3.9z"}),Ta=function(e){return ie.a.createElement("svg",Ea({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),ja)};function Pa(){return(Pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ba=ie.a.createElement("path",{d:"M2.9 3h2v14h-2zM17.1 9.4v1.2H8.5l1.3 1.3L9 13l-3-3 3-3 .8 1.1-1.3 1.3h8.6z"}),Ma=function(e){return ie.a.createElement("svg",Pa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ba)};function Na(){return(Na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ia=ie.a.createElement("path",{d:"M15.1 3h2v14h-2zM2.9 10.6V9.4h8.6l-1.3-1.3L11 7l3 3-3 3-.8-1.1 1.3-1.3H2.9z"}),Da=function(e){return ie.a.createElement("svg",Na({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Ia)};function Ra(){return(Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Aa=ie.a.createElement("path",{d:"M3 16.4h14v2H3zM3 1.6h14v2H3zM10.6 12.8V7.2l1.3 1.3 1.1-.8-3-3-3 3 1.1.8 1.3-1.3v5.6l-1.3-1.3-1.1.8 3 3 3-3-1.1-.8z"}),za=function(e){return ie.a.createElement("svg",Ra({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Aa)};function La(){return(La=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Fa=ie.a.createElement("path",{d:"M3 3h14v2H3zM10.6 17.1H9.4V8.4L8.1 9.7 7 9l3-3 3 3-1.1.8-1.3-1.3v8.6z"}),Ua=function(e){return ie.a.createElement("svg",La({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Fa)};function Ha(){return(Ha=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Va=ie.a.createElement("path",{d:"M3 9h14v2H3zM10.6 18.4H9.4v-3.9l-1.3 1.3L7 15l3-3 3 3-1.1.8-1.3-1.3v3.9zM9.4 1.6h1.2v3.9l1.3-1.3L13 5l-3 3-3-3 1.1-.8 1.3 1.3V1.6z"}),Ga=function(e){return ie.a.createElement("svg",Ha({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Va)};function Wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var qa=[{value:"flex-start",title:Object(S.__)("Align Left",_.i18n),icon:wp.element.createElement(Ma,null)},{value:"center",title:Object(S.__)("Align Center",_.i18n),icon:wp.element.createElement(Ta,null)},{value:"flex-end",title:Object(S.__)("Align Right",_.i18n),icon:wp.element.createElement(Da,null)}],Ka=[{value:"flex-start",title:Object(S.__)("Align Top",_.i18n),icon:wp.element.createElement(Ua,null)},{value:"center",title:Object(S.__)("Align Center",_.i18n),icon:wp.element.createElement(Ga,null)},{value:"flex-end",title:Object(S.__)("Align Bottom",_.i18n),icon:wp.element.createElement(Sa,null)},{value:"stretch",title:Object(S.__)("Stretch",_.i18n),icon:wp.element.createElement(za,null)}],$a={"flex-horizontal":qa,"flex-vertical":[{value:"flex-start",title:Object(S.__)("Align Top",_.i18n),icon:wp.element.createElement(Ua,null)},{value:"center",title:Object(S.__)("Align Center",_.i18n),icon:wp.element.createElement(Ga,null)},{value:"flex-end",title:Object(S.__)("Align Bottom",_.i18n),icon:wp.element.createElement(Sa,null)}],"flex-vertical-with-stretch":Ka},Ya=function(e){var t="string"==typeof e.controls?$a[e.controls]:e.controls,n=P()({"ugb-toolbar--full-width":e.fullwidth,"ugb-toolbar--multiline":e.multiline});return wp.element.createElement(x.BaseControl,{help:e.help,className:P()("ugb-advanced-toolbar-control",e.className)},wp.element.createElement(na,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens}),wp.element.createElement(x.ButtonGroup,{children:t.map(function(t,n){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wa(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{onClick:function(){e.isToggleOnly&&t.value===e.value||e.onChange(t.value!==e.value?t.value:"")},isPrimary:e.value===t.value,isSmall:e.isSmall,children:t.icon?null:t.custom||wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button"},t.title)});return wp.element.createElement(mt,M()({key:n},a))}),className:n}))};Ya.defaultProps={onChange:function(){},onChangeUnit:function(){},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],value:"",controls:[],multiline:!1,fullwidth:!0,isSmall:!1,isToggleOnly:!1};var Qa=Ya,Xa=function(e){var t=e.placeholder,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?1:Math.round(parseFloat(e)/parseFloat(t)*10)/10};return"string"==typeof t&&(t=[t,n(t)]),wp.element.createElement(sa,M()({},e,{placeholder:t,onChangeUnit:function(t){""!==e.value&&("em"===t||"rem"===t?e.onChange(n(e.value)):"px"===t&&e.onChange(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?21:Math.round(parseFloat(e)*t)}(e.value))),e.onChangeUnit(t)}}))};Xa.defaultProps={label:Object(S.__)("Font Size",_.i18n),value:"",onChange:function(){},unit:"px",onChangeUnit:function(){},min:[0,0],max:[150,7],step:[1,.05],units:["px","em"],placeholder:""};var Ja=Xa,Za=n(55).map(function(e){return{label:e.family,value:e.family}}),er=function(e){var t=Object(k.useMemo)(function(){return Object(Q.applyFilters)("stackable.font-family-control.options",[{id:"system-fonts",title:Object(S.__)("System Fonts",_.i18n),options:[{label:Object(S.__)("Sans-Serif",_.i18n),value:"Sans-Serif"},{label:Object(S.__)("Serif",_.i18n),value:"Serif"},{label:Object(S.__)("Serif Alternative",_.i18n),value:"Serif-Alt"},{label:Object(S.__)("Monospace",_.i18n),value:"Monospace"}]},{id:"google-fonts",title:Object(S.__)("Google Fonts",_.i18n),options:Za}])},[]);return wp.element.createElement(Oa,M()({options:t,highlightValueOnFocus:!0},e,{onChange:function(t){Za.some(function(e){return e.value===t&&(G(t),!0)}),e.onChange(t)}}))};er.defaultProps={onChange:function(){},label:Object(S.__)("Font Family",_.i18n),value:""};var tr=er;function nr(){return(nr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){rr(e,t,n[t])})}return e}function lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function sr(e,t,n){return t&&or(e.prototype,t),n&&or(e,n),e}function ur(e){return(ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cr(e){return(cr="function"==typeof Symbol&&"symbol"===ur(Symbol.iterator)?function(e){return ur(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":ur(e)})(e)}function pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fr(e,t){return!t||"object"!==cr(t)&&"function"!=typeof t?pr(e):t}function dr(e){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gr(e,t){return(gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mr(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&&gr(e,t)}var hr=n(37),br=n(28),vr=n.n(br);function yr(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var wr=function(){function e(){lr(this,e),rr(this,"refs",{})}return sr(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(kr)}}]),e}();function kr(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Cr(e,t){return Object.keys(e).reduce(function(n,a){return-1===t.indexOf(a)&&(n[a]=e[a]),n},{})}var Or={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},xr=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function _r(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function Sr(e,t){e.style["".concat(xr,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Er(e,t){e.style["".concat(xr,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function jr(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Tr(e,t,n){return Math.max(e,Math.min(n,t))}function Pr(e){return"px"===e.substr(-2)?parseFloat(e):0}function Br(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Mr(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function Nr(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Ir(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var a={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?a:Ir(e.parentNode,t,a)}}function Dr(e){var t=e.lockOffset,n=e.width,a=e.height,r=t,i=t,l="px";if("string"==typeof t){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);vr()(null!==o,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),r=parseFloat(t),i=parseFloat(t),l=o[1]}return vr()(isFinite(r)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===l&&(r=r*n/100,i=i*a/100),{x:r,y:i}}function Rr(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:Rr(e.parentNode):null}var Ar=27,zr=32,Lr=37,Fr=38,Ur=39,Hr=40,Vr={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Gr(e){return null!=e.sortableHandle}var Wr=function(){function e(t,n){lr(this,e),this.container=t,this.onScrollCallback=n}return sr(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,a=e.minTranslate,r=e.maxTranslate,i=e.width,l=e.height,o={x:0,y:0},s={x:1,y:1},u=10,c=10,p=this.container,f=p.scrollTop,d=p.scrollLeft,g=p.scrollHeight,m=p.scrollWidth,h=0===f,b=g-f-p.clientHeight==0,v=0===d,y=m-d-p.clientWidth==0;n.y>=r.y-l/2&&!b?(o.y=1,s.y=c*Math.abs((r.y-l/2-n.y)/l)):n.x>=r.x-i/2&&!y?(o.x=1,s.x=u*Math.abs((r.x-i/2-n.x)/i)):n.y<=a.y+l/2&&!h?(o.y=-1,s.y=c*Math.abs((n.y-l/2-a.y)/l)):n.x<=a.x+i/2&&!v&&(o.x=-1,s.x=u*Math.abs((n.x-i/2-a.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===o.x&&0===o.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:s.x*o.x,top:s.y*o.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}();var qr={axis:Mt.a.oneOf(["x","y","xy"]),contentWindow:Mt.a.any,disableAutoscroll:Mt.a.bool,distance:Mt.a.number,getContainer:Mt.a.func,getHelperDimensions:Mt.a.func,helperClass:Mt.a.string,helperContainer:Mt.a.oneOfType([Mt.a.func,"undefined"==typeof HTMLElement?Mt.a.any:Mt.a.instanceOf(HTMLElement)]),hideSortableGhost:Mt.a.bool,keyboardSortingTransitionDuration:Mt.a.number,lockAxis:Mt.a.string,lockOffset:Mt.a.oneOfType([Mt.a.number,Mt.a.string,Mt.a.arrayOf(Mt.a.oneOfType([Mt.a.number,Mt.a.string]))]),lockToContainerEdges:Mt.a.bool,onSortEnd:Mt.a.func,onSortMove:Mt.a.func,onSortOver:Mt.a.func,onSortStart:Mt.a.func,pressDelay:Mt.a.number,pressThreshold:Mt.a.number,keyCodes:Mt.a.shape({lift:Mt.a.arrayOf(Mt.a.number),drop:Mt.a.arrayOf(Mt.a.number),cancel:Mt.a.arrayOf(Mt.a.number),up:Mt.a.arrayOf(Mt.a.number),down:Mt.a.arrayOf(Mt.a.number)}),shouldCancelStart:Mt.a.func,transitionDuration:Mt.a.number,updateBeforeSortStart:Mt.a.func,useDragHandle:Mt.a.bool,useWindowAsScrollContainer:Mt.a.bool},Kr={lift:[zr],drop:[zr],cancel:[Ar],up:[Fr,Lr],down:[Hr,Ur]},$r={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Kr,shouldCancelStart:function(e){return-1!==[Vr.Input,Vr.Textarea,Vr.Select,Vr.Option,Vr.Button].indexOf(e.target.tagName)||!!jr(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},Yr=Object.keys(qr);var Qr=Object(re.createContext)({manager:{}});var Xr={index:Mt.a.number.isRequired,collection:Mt.a.oneOfType([Mt.a.number,Mt.a.string]),disabled:Mt.a.bool},Jr=Object.keys(Xr);var Zr=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;lr(this,n),rr(pr(pr(t=fr(this,dr(n).call(this,e)))),"state",{}),rr(pr(pr(t)),"handleStart",function(e){var n=t.props,a=n.distance,r=n.shouldCancelStart;if(2!==e.button&&!r(e)){t.touched=!0,t.position=Nr(e);var i=jr(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var l=t.props.useDragHandle,o=i.sortableInfo,s=o.index,u=o.collection;if(o.disabled)return;if(l&&!jr(e.target,Gr))return;t.manager.active={collection:u,index:s},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==Vr.Anchor||e.preventDefault(),a||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),rr(pr(pr(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),rr(pr(pr(t)),"handleMove",function(e){var n=t.props,a=n.distance,r=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=Nr(e),l={x:t.position.x-i.x,y:t.position.y-i.y},o=Math.abs(l.x)+Math.abs(l.y);t.delta=l,a||r&&!(o>=r)?a&&o>=a&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),rr(pr(pr(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),rr(pr(pr(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),rr(pr(pr(t)),"handlePress",function(e){try{var n=t.manager.getActive(),a=function(){if(n){var a=function(){var n,a,r,u,m,h,b=f.sortableInfo.index,v=(n=f,{bottom:Pr((a=window.getComputedStyle(n)).marginBottom),left:Pr(a.marginLeft),right:Pr(a.marginRight),top:Pr(a.marginTop)}),y=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Pr(t.gridColumnGap),y:Pr(t.gridRowGap)}:{x:0,y:0}}(t.container),w=t.scrollContainer.getBoundingClientRect(),k=l({index:b,node:f,collection:d});if(t.node=f,t.margin=v,t.gridGap=y,t.width=k.width,t.height=k.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=f.getBoundingClientRect(),t.containerBoundingRect=w,t.index=b,t.newIndex=b,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=Ir(f,t.container),t.initialOffset=Nr(g?ir({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild((u="input, textarea, select, canvas, [contenteditable]",m=(r=f).querySelectorAll(u),yr((h=r.cloneNode(!0)).querySelectorAll(u)).forEach(function(e,t){"file"!==e.type&&(e.value=m[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===Vr.Canvas&&m[t].width>0&&m[t].height>0&&e.getContext("2d").drawImage(m[t],0,0)}),h)),_r(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-v.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-v.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),s&&(t.sortableGhost=f,_r(f,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var C=p?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,O=C.top,x=C.left,_=C.width,S=O+C.height,E=x+_;t.axis.x&&(t.minTranslate.x=x-t.boundingClientRect.left,t.maxTranslate.x=E-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=O-t.boundingClientRect.top,t.maxTranslate.y=S-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(p?0:w.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(p?t.contentWindow.innerWidth:w.left+w.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(p?0:w.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(p?t.contentWindow.innerHeight:w.top+w.height)-t.boundingClientRect.top-t.height/2);o&&o.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?e.target:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(Or.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),Or.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:b}),c&&c({node:f,index:b,collection:d,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},r=t.props,i=r.axis,l=r.getHelperDimensions,o=r.helperClass,s=r.hideSortableGhost,u=r.updateBeforeSortStart,c=r.onSortStart,p=r.useWindowAsScrollContainer,f=n.node,d=n.collection,g=t.manager.isKeySorting,m=function(){if("function"==typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}(function(){var t=f.sortableInfo.index;return Promise.resolve(u({collection:d,index:t,node:f,isKeySorting:g},e)).then(function(){})},function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return m&&m.then?m.then(a):a()}}();return Promise.resolve(a&&a.then?a.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),rr(pr(pr(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),rr(pr(pr(t)),"handleSortEnd",function(e){var n=t.props,a=n.hideSortableGhost,r=n.onSortEnd,i=t.manager,l=i.active.collection,o=i.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(o?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(Or.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),Or.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),a&&t.sortableGhost&&_r(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,c=s.length;u<c;u++){var p=s[u],f=p.node;p.edgeOffset=null,p.boundingClientRect=null,Sr(f,null),Er(f,null),p.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof r&&r({collection:l,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:o,nodes:s},e),t.touched=!1}),rr(pr(pr(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var a=ir({},t.translate),r=0,i=0;return t.axis.x&&(a.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),r=t.translate.x-a.x),t.axis.y&&(a.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-a.y),t.translate=a,Sr(t.helper,t.translate),t.scrollContainer.scrollLeft+=r,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),rr(pr(pr(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),rr(pr(pr(t)),"handleKeyDown",function(e){var n=e.keyCode,a=t.props,r=a.shouldCancelStart,i=a.keyCodes,l=ir({},Kr,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||l.lift.includes(n)&&!r(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),l.lift.includes(n)&&!t.manager.active?t.keyLift(e):l.drop.includes(n)&&t.manager.active?t.keyDrop(e):l.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):l.up.includes(n)?t.keyMove(-1):l.down.includes(n)&&t.keyMove(1))}),rr(pr(pr(t)),"keyLift",function(e){var n=e.target,a=jr(n,function(e){return null!=e.sortableInfo}).sortableInfo,r=a.index,i=a.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:r,collection:i},t.handlePress(e)}),rr(pr(pr(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),a=n[n.length-1].node.sortableInfo.index,r=t.newIndex+e,i=t.newIndex;if(!(r<0||r>a)){t.prevIndex=i,t.newIndex=r;var l=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),o=n.find(function(e){return e.node.sortableInfo.index===l}),s=o.node,u=t.containerScrollDelta,c=o.boundingClientRect||Mr(s,u),p=o.translate||{x:0,y:0},f=c.top+p.y-u.top,d=c.left+p.x-u.left,g=i<r,m=g&&t.axis.x?s.offsetWidth-t.width:0,h=g&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:d+m,pageY:f+h,ignoreTransition:0===e})}}),rr(pr(pr(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),rr(pr(pr(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),rr(pr(pr(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,a=e.target,r=jr(a,function(e){return null!=e.sortableInfo});return r&&r.sortableInfo&&!r.sortableInfo.disabled&&(n?Gr(a):a.sortableInfo)});var a=new wr;return function(e){vr()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=a,t.wrappedInstance=Object(re.createRef)(),t.sortableContextValue={manager:a},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return mr(n,re["Component"]),sr(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var a=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof a?a():a,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Rr(e.container)||e.container,e.autoScroller=new Wr(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return Or[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return Or[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,a=t.lockOffset,r=t.lockToContainerEdges,i=t.transitionDuration,l=t.keyboardSortingTransitionDuration,o=void 0===l?i:l,s=this.manager.isKeySorting,u=e.ignoreTransition,c=Nr(e),p={x:c.x-this.initialOffset.x,y:c.y-this.initialOffset.y};if(p.y-=window.pageYOffset-this.initialWindowScroll.top,p.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=p,r){var f=function(e){var t=e.height,n=e.width,a=e.lockOffset,r=Array.isArray(a)?a:[a,a];vr()(2===r.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",a);var i=ar(r,2),l=i[0],o=i[1];return[Dr({height:t,lockOffset:l,width:n}),Dr({height:t,lockOffset:o,width:n})]}({height:this.height,lockOffset:a,width:this.width}),d=ar(f,2),g=d[0],m=d[1],h={x:this.width/2-g.x,y:this.height/2-g.y},b={x:this.width/2-m.x,y:this.height/2-m.y};p.x=Tr(this.minTranslate.x+h.x,this.maxTranslate.x-b.x,p.x),p.y=Tr(this.minTranslate.y+h.y,this.maxTranslate.y-b.y,p.y)}"x"===n?p.y=0:"y"===n&&(p.x=0),s&&o&&!u&&Er(this.helper,o),Sr(this.helper,p)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,a=e.onSortOver,r=this.containerScrollDelta,i=this.windowScrollDelta,l=this.manager.getOrderedRefs(),o=this.offsetEdge.left+this.translate.x+r.left,s=this.offsetEdge.top+this.translate.y+r.top,u=this.manager.isKeySorting,c=this.newIndex;this.newIndex=null;for(var p=0,f=l.length;p<f;p++){var d=l[p].node,g=d.sortableInfo.index,m=d.offsetWidth,h=d.offsetHeight,b={height:this.height>h?h/2:this.height/2,width:this.width>m?m/2:this.width/2},v=u&&g>this.index&&g<=c,y=u&&g<this.index&&g>=c,w={x:0,y:0},k=l[p].edgeOffset;k||(k=Ir(d,this.container),l[p].edgeOffset=k,u&&(l[p].boundingClientRect=Mr(d,r)));var C=p<l.length-1&&l[p+1],O=p>0&&l[p-1];C&&!C.edgeOffset&&(C.edgeOffset=Ir(C.node,this.container),u&&(C.boundingClientRect=Mr(C.node,r))),g!==this.index?(t&&Er(d,t),this.axis.x?this.axis.y?y||g<this.index&&(o+i.left-b.width<=k.left&&s+i.top<=k.top+b.height||s+i.top+b.height<=k.top)?(w.x=this.width+this.marginOffset.x,k.left+w.x>this.containerBoundingRect.width-b.width&&C&&(w.x=C.edgeOffset.left-k.left,w.y=C.edgeOffset.top-k.top),null===this.newIndex&&(this.newIndex=g)):(v||g>this.index&&(o+i.left+b.width>=k.left&&s+i.top+b.height>=k.top||s+i.top+b.height>=k.top+h))&&(w.x=-(this.width+this.marginOffset.x),k.left+w.x<this.containerBoundingRect.left+b.width&&O&&(w.x=O.edgeOffset.left-k.left,w.y=O.edgeOffset.top-k.top),this.newIndex=g):v||g>this.index&&o+i.left+b.width>=k.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=g):(y||g<this.index&&o+i.left<=k.left+b.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=g)):this.axis.y&&(v||g>this.index&&s+i.top+b.height>=k.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=g):(y||g<this.index&&s+i.top<=k.top+b.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),Sr(d,w),l[p].translate=w):n&&(this.sortableGhost=d,_r(d,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var x=u?this.prevIndex:c;a&&this.newIndex!==x&&a({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:x,isKeySorting:u,nodes:l,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return vr()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?Object(hr.findDOMNode)(this):e(a.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=a.withRef?this.wrappedInstance:null;return Object(re.createElement)(Qr.Provider,{value:this.sortableContextValue},Object(re.createElement)(e,nr({ref:t},Cr(this.props,Yr))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(),rr(t,"displayName",Br("sortableList",e)),rr(t,"defaultProps",$r),rr(t,"propTypes",qr),n}(function(e){var t=e.children;return wp.element.createElement("div",{className:"ugb-sort-control__container"},t)}),ei=function(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;lr(this,n);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return rr(pr(pr(t=fr(this,(e=dr(n)).call.apply(e,[this].concat(r))))),"wrappedInstance",Object(re.createRef)()),t}return mr(n,re["Component"]),sr(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,a=e.index,r=Object(hr.findDOMNode)(this);r.sortableInfo={collection:t,disabled:n,index:a,manager:this.context.manager},this.node=r,this.ref={node:r},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return vr()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=a.withRef?this.wrappedInstance:null;return Object(re.createElement)(e,nr({ref:t},Cr(this.props,Jr)))}}]),n}(),rr(t,"displayName",Br("sortableElement",e)),rr(t,"contextType",Qr),rr(t,"propTypes",Xr),rr(t,"defaultProps",{collection:0}),n}(function(e){var t=e.value,n=(e.key,e.index,Pt()(e,["value","key","index"]));return wp.element.createElement("div",M()({className:"ugb-sort-control__item"},n),t)}),ti=!1,ni=function e(t){for(var n=t.values?t.values.splice(0,t.num):Object(R.range)(t.num).map(function(e){return e+1});n.length<t.num;)n.push(n.length+1);return wp.element.createElement(x.BaseControl,{help:t.help,className:P()(["ugb-sort-control",t.className,"ugb-sort-control--axis-".concat(t.axis)])},wp.element.createElement(na,M()({label:t.label},Object(R.omit)(t,Object.keys(e.defaultProps)),{afterButton:t.hasReset?wp.element.createElement(mt,{disabled:!t.values,onClick:function(){return t.onChange("",{oldIndex:0,newIndex:0})},isSmall:!0,isSecondary:!0},Object(S.__)("Reset")):null})),wp.element.createElement(Zr,{onSortStart:function(){return ti=!0},onSortOver:function(e){var n=e.newIndex;t.onHover(n)},onSortEnd:function(e){var a=e.oldIndex,r=e.newIndex;ti=!1;var i=function(e,t,n){return e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e}(n,a,r);t.onChange(i,{oldIndex:a,newIndex:r})},axis:t.axis},n.map(function(e,n){return wp.element.createElement(ei,{key:n,index:n,value:e,onMouseEnter:function(){ti||t.onHover(n)},onMouseLeave:function(){ti||t.onHover(null)}})})))};ni.defaultProps={className:"",help:"",label:Object(S.__)("Column Arrangement",_.i18n),num:2,axis:"x",values:null,onChange:function(){},onHover:function(){},hasReset:!1};function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ai(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ai(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ii={},li={};Object(Q.addAction)("stackable.inspector.tab.click","stackable/panel-memory",function(e,t){li[e]=t}),Object(Q.addAction)("stackable.inspector.tab.initial","stackable/panel-memory",function(e,t){void 0===li[e]&&(li[e]=t)});var oi=function(e){var t=function(t){var n=Object(k.useMemo)(function(){return Object(he.select)("core/block-editor").getSelectedBlockClientId()},[]),a=ri({},t,{onToggle:function(e,a){if(n&&t.withCaching){var r=(l=a.current,(o=l.closest("[data-ugb-tab]"))?o.getAttribute("data-ugb-tab"):""),i="".concat(n,"-").concat(r);li[n]=r,ii[i]=e?t.title:null}var l,o;t.onToggle(e)}});if(n&&t.withCaching){var r=li[n]||"",i="".concat(n,"-").concat(r),l=ii[i];l?a.initialOpen=l===t.title:null===l&&(a.initialOpen=!1)}return wp.element.createElement(k.Fragment,null,wp.element.createElement(e,a))};return t.defaultProps=ri({},e.defaultProps||{},{withCaching:!0}),t};function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var ui=1,ci=function(e){function t(e){var n;return c()(this,t),(n=g()(this,h()(t).apply(this,arguments))).state={opened:e.initialOpen,showAdvanced:e.initialAdvanced},n.onToggle=n.onToggle.bind(v()(n)),n.onAdvancedToggle=n.onAdvancedToggle.bind(v()(n)),n.instanceId=ui++,n.panelRef=Object(k.createRef)(),n}return w()(t,e),f()(t,[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.hasToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t])&&(n=!0,!0)}),n?(this.props.onChange&&this.props.onChange(!0),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,r()({},this.props.toggleAttributeName,!0))):e}},{key:"componentDidMount",value:function(){Object(Q.addFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9)}},{key:"componentWillUnmount",value:function(){Object(Q.removeFilter)("stackable.setAttributes","stackable/panel-advanced-settings-".concat(this.instanceId))}},{key:"onToggle",value:function(){if(this.setState({opened:!this.state.opened}),!this.state.opened&&this.panelRef.current){var e=this.panelRef.current.querySelector(".components-panel__body-title"),t=document.querySelector(".ugb-panel-tabs"),n=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar");t&&e.getBoundingClientRect().top<t.getBoundingClientRect().bottom?zt(this.panelRef.current):n&&n.getBoundingClientRect().bottom<e.getBoundingClientRect().top&&zt(this.panelRef.current)}this.props.onToggle(!this.state.opened,this.panelRef)}},{key:"onAdvancedToggle",value:function(){this.setState({showAdvanced:!this.state.showAdvanced})}},{key:"render",value:function(){var e=this,t=P()([this.props.className,"ugb-toggle-panel-body"],r()({"ugb-toggle-panel-body--advanced":this.state.showAdvanced},"ugb-panel--".concat(this.props.id),this.props.id));return wp.element.createElement(x.PanelBody,{className:t,initialOpen:this.props.initialOpen,onToggle:this.onToggle,opened:this.state.opened,ref:this.panelRef,title:wp.element.createElement(k.Fragment,null,this.props.hasToggle&&this.props.toggleAttributeName&&wp.element.createElement("span",{className:"editor-panel-toggle-settings__panel-title"},wp.element.createElement(x.FormToggle,{className:"ugb-toggle-panel-form-toggle",checked:this.props.checked,onClick:function(t){t.stopPropagation(),t.preventDefault();var n=e.props.checked;n&&e.state.opened||n||e.state.opened||e.onToggle(),e.props.onChange&&e.props.onChange(!n)},"aria-describedby":this.props.title}),this.props.title),!(this.props.hasToggle&&this.props.toggleAttributeName)&&this.props.title)},this.props.children,this.state.showAdvanced&&this.props.advancedChildren,this.props.advancedChildren&&wp.element.createElement("button",{className:"ugb-panel-advanced-button",onClick:this.onAdvancedToggle},this.state.showAdvanced?Object(S.__)("Simple",_.i18n):Object(S.__)("Advanced",_.i18n)))}}]),t}(k.Component);ci.defaultProps={id:"",className:"",title:Object(S.__)("Settings",_.i18n),checked:!1,onChange:null,initialOpen:!1,hasToggle:!0,initialAdvanced:!1,advancedChildren:null,toggleOnSetAttributes:[],toggleAttributeName:"",onToggle:function(){}};var pi=oi(ci);var fi=function(e){var t=e.blockProps;return wp.element.createElement(pi,M()({title:Object(S.__)("Spacing",_.i18n)},e,{className:P()(["ugb--help-tip-spacing",e.className])}),Object(Q.applyFilters)("stackable.panel-spacing-body.edit.before",null,t),e.children,Object(Q.applyFilters)("stackable.panel-spacing-body.edit.after",null,t))};fi.defaultProps={className:"",blockProps:{}};var di=function(e){var t=P()(["ugb-inspector-panel-controls","ugb-panel-".concat(e.tab)]);return wp.element.createElement("div",{className:t},e.children)};di.defaultProps={tab:"layout"};var gi=function(e){var t=Object(k.useState)(!1),n=l()(t,2),a=n[0],r=n[1],i=Object(k.useState)(""),o=l()(i,2),s=o[0],u=o[1],c=Object(k.useState)([]),p=l()(c,2),f=p[0],d=p[1],g=Object(k.useState)(!0),m=l()(g,2),h=m[0],b=m[1],v=Object(k.useState)(""),y=l()(v,2),w=y[0],C=y[1];return Object(k.useEffect)(function(){var t=!0;return en({type:"block",block:e.block,search:s}).then(function(e){t&&d(e)}).finally(function(){t&&b(!1)}),function(){t=!1}},[e.block,s]),wp.element.createElement("div",null,wp.element.createElement(mt,{className:"ugb-design-library-control__open-library",label:Object(S.__)("Open Design Library",_.i18n),isSmall:!0,isLink:!0,onClick:function(){return r(!0)}},Object(S.__)("Open Design Library",_.i18n)),wp.element.createElement(x.TextControl,{placeholder:Object(S.__)("E.g. light, dark, red, minimalist...",_.i18n),value:s,onChange:function(e){return u(e)}}),!_.isPro&&wp.element.createElement(Qa,{controls:[{value:"",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(S.__)("All",_.i18n),wp.element.createElement("span",null,f.length))},{value:"free",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(S.__)("Free",_.i18n),wp.element.createElement("span",null,f.reduce(function(e,t){return e+("free"===t.plan?1:0)},0)))},{value:"premium",custom:wp.element.createElement("span",{className:"ugb-advanced-toolbar-control__text-button ugb-design-library-control__open-library__toolbar"},Object(S.__)("Premium",_.i18n),wp.element.createElement("span",null,f.reduce(function(e,t){return e+("free"!==t.plan?1:0)},0)))}],value:w,onChange:function(e){return C(e)}}),wp.element.createElement(Ii,{designs:f.filter(function(e){var t=e.plan;return!w||t===w}),isBusy:h,onSelect:e.onSelect}),a&&wp.element.createElement(Em,{search:s,selectedBlock:e.block,onClose:function(){r(!1),u("")},onSelect:function(t){e.onSelect(t),r(!1)}}))};gi.defaultProps={block:"",onSelect:function(){}};function mi(){return(mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var hi=ie.a.createElement("path",{d:"M64.1 136L23 176.7c-1.9 1.8-1.9 4.8-.1 6.7.9 1 2.3 1.5 3.6 1.4l86.9.1L64.1 136z"}),bi=ie.a.createElement("path",{d:"M177.9 128.4c0-4.5-1.8-8.9-5-12.1L71.4 14.7 26.6 59.5c-3.2 3.2-5 7.5-5 12.1 0 4.5 1.8 8.9 5 12.1l101.6 101.6v-.1l44.8-44.8c3.1-3.2 4.9-7.5 4.9-12z",opacity:.75}),vi=ie.a.createElement("path",{d:"M71.4 14.7L26.6 59.5c-3.2 3.2-5 7.5-5 12h49.8V14.7zM128.2 71.6H71.4v56.8h56.8zM128.2 185.1l44.7-44.7c3.1-3.1 4.9-7.4 5-11.8h-49.7v56.5z"}),yi=ie.a.createElement("path",{d:"M71.4 14.7L26.6 59.5c-3.2 3.2-5 7.5-5 12h49.8V14.7zM172.9 14.7H86.1l49.4 49.6 40.9-41.2c1.9-2 1.8-5.2-.1-7.1-.9-.8-2.1-1.3-3.4-1.3z"}),wi=function(e){return ie.a.createElement("svg",mi({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),hi,bi,vi,yi)};function ki(){return(ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Ci=ie.a.createElement("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.5c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM4.5 10.6h1.8l-1.8 1.8v-1.8zm3.1-1.2H4.5V7.7h4.8L7.6 9.4zm2.9-2.9h-6V5H12l-1.5 1.5zM3.3 15H1.5V5h1.7v10zm1.2-.8L13.7 5h1.8v.8L6.3 15H4.5v-.8zm11-4.8h-1.8l1.8-1.8v1.8zm-3.1 1.2h3.1v1.7h-4.8l1.7-1.7zm-2.9 2.9h6V15H8l1.5-1.5zM16.8 5h1.7v10h-1.7V5zM1.5 1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8zm17 16.4c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3v-1.3c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3zm-14.9-.7c0 .3-.2.5-.5.5s-.5-.2-.5-.5.3-.5.5-.5.5.2.5.5zm13.8 0c0 .3-.2.5-.5.5s-.5-.2-.5-.5.2-.5.5-.5.5.2.5.5zM2.6 2.5c0-.3.3-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm13.8 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5z"}),Oi=function(e){return ie.a.createElement("svg",ki({xmlns:"http://www.w3.org/2000/svg"},e),Ci)};function xi(){return(xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var _i=ie.a.createElement("path",{d:"M10.9 20h-9c-1 0-1.8-.8-1.8-1.8v-5.1c0-1 .8-1.8 1.8-1.8h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zm-9.1-7.4c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5v-5.1c0-.3-.2-.5-.5-.5h-9zM18.2 8.7h-9c-1 0-1.8-.8-1.8-1.8V1.8C7.4.8 8.2 0 9.2 0h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zM9.1 1.3c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V1.8c0-.3-.2-.5-.5-.5h-9z"}),Si=function(e){return ie.a.createElement("svg",xi({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),_i)},Ei=function(e){return Object(k.cloneElement)(e,{fill:"url(#stackable-gradient)",className:"ugb-stackable-icon-gradient ".concat(e.props.className||"")})};Object(O.a)(function(){if(!document.querySelector("svg.ugb-stackable-gradient")){var e=document.createElement("DIV");e.setAttribute("style","height: 0; width: 0; overflow: hidden;"),e.setAttribute("aria-hidden","true"),document.querySelector("body").appendChild(e),Object(k.render)(wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ugb-stackable-gradient",height:"0",width:"0",style:{opacity:0}},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"stackable-gradient"},wp.element.createElement("stop",{offset:"0%",stopColor:"#8c33da",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"100%",stopColor:"#f34957",stopOpacity:"1"})))),e)}});var ji=function(e){var t=e.className;return wp.element.createElement(wi,{className:t,width:"20",height:"20"})},Ti=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={isOpen:!1,slide:0},e.open=e.open.bind(v()(e)),e.close=e.close.bind(v()(e)),e.prev=e.prev.bind(v()(e)),e.next=e.next.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"next",value:function(){var e=this.state.slide>=4?0:this.state.slide+1;this.setState({slide:e})}},{key:"prev",value:function(){var e=this.state.slide<=0?4:this.state.slide-1;this.setState({slide:e})}},{key:"render",value:function(){var e=this.props.tag;return wp.element.createElement(e,null,wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=".concat(this.props.buttonUtmSource,"&utm_campaign=learnmore&utm_medium=gutenberg"),target:"_premium",onClick:this.open,className:this.props.buttonClassName},this.props.button),this.state.isOpen&&wp.element.createElement(x.Modal,{className:"ugb-pro-modal",onRequestClose:this.close},wp.element.createElement("img",{src:"https://da4bu55kgdxvv.cloudfront.net/premium-popup.jpg",alt:Object(S.__)("Premium features",_.i18n)}),wp.element.createElement("div",{className:"ugb-pro-modal__footer"},wp.element.createElement("a",{href:"https://wpstackable.com/upgrade/?utm_source=editor-modal-popup&utm_campaign=upgrade&utm_medium=gutenberg",className:"button button-secondary",target:"_premium",title:Object(S.__)("Upgrade to Premium",_.i18n)},wp.element.createElement(ji,null),Object(S.__)("Upgrade to Premium",_.i18n)),wp.element.createElement("a",{href:"https://demo.wpstackable.com?utm_source=editor-modal-popup&utm_campaign=trydemo&utm_medium=gutenberg",target:"_premium",title:Object(S.__)("Try Premium Demo",_.i18n)},Object(S.__)("Try Premium Demo",_.i18n)))))}}]),t}(k.Component);Ti.defaultProps={button:Object(S.__)("Learn More",_.i18n),buttonClassName:"button button-secondary",tag:"div",buttonUtmSource:"editor-learn-more"};var Pi=Ti,Bi=function(e){var t=e.designId,n=e.image,a=e.label,i=e.onClick,o=e.plan,s=e.isPro,u=Object(k.useState)(!1),c=l()(u,2),p=c[0],f=c[1],d=Object(k.useState)(!1),g=l()(d,2),m=g[0],h=g[1],b=P()(["ugb-design-library-item"],r()({"ugb--is-busy":p},"ugb--is-".concat(o),!s&&"free"!==o));return wp.element.createElement("div",{className:b,onMouseEnter:function(){return h(!0)},onMouseLeave:function(){return h(!1)}},p&&wp.element.createElement("span",{className:"ugb-design-library-item__spinner","data-testid":"spinner"},wp.element.createElement(x.Spinner,null)),!s&&"free"!==o&&wp.element.createElement("span",{className:"ugb-design-library-item__premium","data-testid":"premium-tag"},o),wp.element.createElement("button",{className:"ugb-design-library-item__image",onClick:function(){(s||"free"===o)&&(f(!0),tn(t).then(function(e){f(!1),i(e)}))}},!s&&"free"!==o&&wp.element.createElement(x.Dashicon,{icon:"lock"}),wp.element.createElement("img",{src:n,alt:a,loading:"lazy"})),wp.element.createElement("footer",null,(s||"free"===o)&&wp.element.createElement("span",null,a),!s&&"free"!==o&&!m&&wp.element.createElement("span",null,a),!s&&"free"!==o&&m&&wp.element.createElement(Pi,{buttonClassName:"ugb-design-library-item__premium-link",button:wp.element.createElement(k.Fragment,null,e.premiumLabel)})))};Bi.defaultProps={designId:"",image:"",label:"",onClick:function(){},plan:"free",isPro:_.isPro,premiumLabel:Object(S.__)("Go Premium",_.i18n)};var Mi=Bi,Ni=function(e){var t=e.designs,n=e.isBusy,a=e.onSelect,i=P()(["ugb-design-library-items"],r()({},"ugb-design-library-items--columns-".concat(e.columns),!n&&e.columns));return wp.element.createElement("div",{className:i},(t||[]).map(function(e,t){return wp.element.createElement(Mi,{key:t,type:e.type,block:e.block,template:e.template,plan:e.plan,designId:e.id,image:e.image,label:e.label,onClick:function(e){a(e)}})}),n&&wp.element.createElement("div",{className:"ugb-design-library-search__spinner","data-testid":"spinner"},wp.element.createElement(x.Spinner,null)),!n&&!(t||[]).length&&wp.element.createElement("p",{className:"components-base-control__help","data-testid":"nothing-found-note"},Object(S.__)("No designs found",_.i18n)))};Ni.defaultProps={designs:[],columns:1,onSelect:function(){},isBusy:!1};var Ii=Ni;n(156);function Di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ai={},zi=function(e){var t=function(t){var n,a=t.initialTab||Ai[t.blockProps.clientId]||(n=t.blockProps,Me[n.name]||(Me[n.name]=Object(je.createBlock)(n.name).attributes),Object.keys(Me[n.name]).every(function(e){return!!Be.includes(e)||Me[n.name][e]===n.attributes[e]})?Object(R.first)(t.tabs)||"layout":"style");Object(Q.doAction)("stackable.inspector.tab.initial",t.blockProps.clientId,a);var r=Ri({},t,{initialTab:a,onClick:function(e){Ai[t.blockProps.clientId]=e,Object(Q.doAction)("stackable.inspector.tab.click",t.blockProps.clientId,e),t.onClick(e)}});return wp.element.createElement(k.Fragment,null,wp.element.createElement(e,r))};return t.defaultProps=Ri({},e.defaultProps||{}),t},Li=[{value:"layout",title:Object(S.__)("Layout",_.i18n),label:Object(S.__)("Layout Tab",_.i18n),icon:"admin-settings"},{value:"style",title:Object(S.__)("Style",_.i18n),label:Object(S.__)("Style Tab",_.i18n),icon:"admin-appearance"},{value:"advanced",title:Object(S.__)("Advanced",_.i18n),label:Object(S.__)("Advanced Tab",_.i18n),icon:"admin-tools"}],Fi=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).tabsToUse=e.props.tabs||["layout","style","advanced"],e.state={activeTab:e.props.initialTab?e.props.initialTab:e.tabsToUse[0]},e.onButtonPanelClick=e.onButtonPanelClick.bind(v()(e)),e.updateSidebarPanelTab=e.updateSidebarPanelTab.bind(v()(e)),e.select=e.select.bind(v()(e)),e.containerDiv=Object(k.createRef)(),e.props.onTabFirstOpen(e.state.activeTab),e}return w()(t,e),f()(t,[{key:"updateSidebarPanelTab",value:function(e){var t=this.containerDiv.current.closest(".components-panel");t&&setTimeout(function(){var n;t&&(t.setAttribute("data-ugb-tab",e),null===(n=t.closest(".edit-post-sidebar, .edit-widgets-sidebar"))||void 0===n||n.classList.add("ugb--has-panel-tabs"))},1)}},{key:"componentDidMount",value:function(){this.updateSidebarPanelTab(this.state.activeTab),this.props.closeOtherPanels&&document.body.addEventListener("click",this.onButtonPanelClick)}},{key:"componentWillUnmount",value:function(){var e=document.querySelector("[data-ugb-tab]");e&&(e.removeAttribute("data-ugb-tab"),e.closest(".edit-post-sidebar, .edit-widgets-sidebar").classList.remove("ugb--has-panel-tabs")),this.props.closeOtherPanels&&document.body.removeEventListener("click",this.onButtonPanelClick)}},{key:"onButtonPanelClick",value:function(e){var t,n,a=e.target.closest(".components-panel__body-toggle");a&&("layout"!==this.state.activeTab&&(t=a,[].forEach.call((null===(n=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar"))||void 0===n?void 0:n.querySelectorAll(".components-panel__body .components-panel__body-toggle"))||[],function(e){0!==e.offsetHeight&&e.parentElement.parentElement.classList.contains("is-opened")&&t!==e&&e.click()}),this.props.onClickPanel(a.closest(".components-panel__body"))))}},{key:"select",value:function(e){this.setState({activeTab:e}),this.updateSidebarPanelTab(e),this.props.onClick(e)}},{key:"render",value:function(){var e=this,t=P()([this.props.className,"components-panel__body","ugb-panel-tabs"]);return wp.element.createElement("div",{className:t,style:this.props.style,ref:this.containerDiv},wp.element.createElement("div",{className:"ugb-panel-tabs__wrapper"},Li.map(function(t,n){var a=t.value,r=t.title,i=t.label,l=t.icon;return e.tabsToUse.includes(a)?wp.element.createElement("button",{key:n,onClick:function(){return e.select(a)},className:P()(["edit-post-sidebar__panel-tab","ugb-tab--".concat(a)],{"is-active":e.state.activeTab===a}),"aria-label":i,"data-label":i},wp.element.createElement(x.Icon,{icon:l}),r):null})))}}]),t}(k.Component);Fi.defaultProps={className:"",style:{},closeOtherPanels:!0,blockProps:{},initialTab:"",onClickPanel:function(){},onClick:function(){},tabs:null,onTabFirstOpen:function(){}};zi(Fi);var Ui=function(e){var t=P()(["ugb-global-style-control__item"],{"ugb-global-style-control__item--large-preview":e.largePreview}),n=e.renderPreview&&e.renderPreview(Object(R.pick)(e,["label","value"]));return wp.element.createElement("div",{className:t},n&&wp.element.createElement("div",{className:"ugb-global-style-control__item-preview"},n),wp.element.createElement("div",{className:"ugb-global-style-control__item-label"},e.label),wp.element.createElement(mt,{className:"ugb-global-style-control__item-button",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.onEdit(e.value)},label:Object(S.__)("Edit Style",_.i18n),isTertiary:!0,icon:"edit"}))};Ui.defaultProps={largePreview:!1,renderPreview:function(){},onEdit:function(){}};var Hi=function(e){var t=e.options;if(e.value){var n=e.options.find(function(t){return t.value===e.value});n&&(t=e.options.filter(function(t){return t.value!==e.value})).unshift(n)}var a=P()(["ugb-global-style-control",e.className],{"ugb--has-value":e.value});return wp.element.createElement(Oa,{className:a,label:e.label,onChange:e.onChange,value:e.style,options:t,renderOption:function(t){return wp.element.createElement(Ui,M()({},t,{largePreview:e.largePreview,onEdit:e.onEdit,renderPreview:e.renderPreview}))}},e.value&&wp.element.createElement(mt,{icon:"edit",label:Object(S.__)("Edit Style",_.i18n),isSecondary:!0,onClick:function(){return e.onEdit(e.value)}}),e.value&&wp.element.createElement(mt,{icon:"editor-unlink",label:Object(S.__)("Unlink Style",_.i18n),isSecondary:!0,disabled:!e.value,onClick:e.onUnlink}))};Hi.defaultProps={className:"",label:Object(S.__)("Style",_.i18n),value:"",options:[],onChange:function(){},onEdit:function(){},onUnlink:function(){},renderPreview:null,largePreview:!1};var Vi=function(e){var t=e.imageFile,n=e.imageHoverFile,a=e.imageWidth,r=void 0===a?"":a,i=e.imageHeight,l=void 0===i?"":i,o=e.label,s=t?t.match(/https?:/i)?t:_.srcUrl?"".concat(_.srcUrl,"/").concat(t):t:"",u=n?n.match(/https?:/i)?n:_.srcUrl?"".concat(_.srcUrl,"/").concat(n):n:null;return wp.element.createElement("span",{className:"ugb-design-panel-item"},u&&wp.element.createElement("img",{className:"ugb-design-panel-item__hover-image",src:u,alt:o,width:r,height:l}),s&&wp.element.createElement("img",{className:"ugb-design-panel-item__image",src:s,alt:o,width:r,height:l}),wp.element.createElement("span",{className:"design-label"},o))};function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var Wi=function(e){var t=e.options.filter(function(e){return!e.premium||_.isPro}).map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{label:wp.element.createElement(Vi,{imageFile:e.image,imageHoverFile:e.hoverImage,imageWidth:e.imageWidth,imageHeight:e.imageHeight,isPro:e.isPro,label:e.label}),title:e.label,value:e.value})}),n=P()([e.className,"ugb-design-control-wrapper","components-base-control","ugb-design-control--columns-".concat(e.columns)]);return wp.element.createElement("div",{className:n},e.label&&wp.element.createElement("div",{className:"components-base-control__label"},e.label),wp.element.createElement(x.RadioControl,M()({},Object(R.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};Wi.defaultProps={className:"",columns:2,selected:"",options:[],onChange:function(){}};var qi=Wi,Ki=n(56),$i=n.n(Ki),Yi=n(57),Qi=n.n(Yi),Xi=n(58),Ji=n.n(Xi),Zi=n(59),el=n.n(Zi),tl=n(60),nl=n.n(tl),al=n(61),rl=n.n(al),il=n(62),ll=n.n(il),ol=n(63),sl=n.n(ol),ul=n(64),cl=n.n(ul),pl=n(65),fl=n.n(pl),dl=n(66),gl=n.n(dl),ml=n(67),hl=n.n(ml),bl=n(68),vl=n.n(bl),yl=[{image:fl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Wave",_.i18n),1),value:"wave-1"},{image:cl.a,label:Object(S.__)("Straight",_.i18n),value:"straight-1"},{image:gl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Wave",_.i18n),2),value:"wave-2"},{image:hl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Wave",_.i18n),3),value:"wave-3"},{image:vl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Wave",_.i18n),4),value:"wave-4"},{image:ll.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Slant",_.i18n),1),value:"slant-1"},{image:sl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Slant",_.i18n),2),value:"slant-2"},{image:$i.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Curve",_.i18n),1),value:"curve-1"},{image:Qi.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Curve",_.i18n),2),value:"curve-2"},{image:Ji.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Curve",_.i18n),3),value:"curve-3"},{image:el.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Rounded",_.i18n),1),value:"rounded-1"},{image:nl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Rounded",_.i18n),2),value:"rounded-2"},{image:rl.a,label:Object(S.sprintf)(Object(S._x)("%s %d","Nth Title",_.i18n),Object(S.__)("Rounded",_.i18n),3),value:"rounded-3"}];Object(Q.addFilter)("stackable.separator.edit.layouts","default",function(e){return Object(R.uniqBy)([].concat(s()(e),yl),"value")});var wl=function(e){var t=(Object(Q.applyFilters)("stackable.separator.edit.layouts",[])||[]).filter(function(t){return-1===Object(R.findIndex)(e.excludeDesigns,function(e){return e===t.value})});return wp.element.createElement(x.BaseControl,{className:"ugb-design-separator-control",id:"ugb-design-separator-control",label:e.label,help:e.help},wp.element.createElement(qi,M()({options:t},Object(R.omit)(e,["label","help"]))))};wl.defaultProps={label:"",help:"",excludeDesigns:[]};function kl(){return(kl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Cl=ie.a.createElement("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"}),Ol=function(e){return ie.a.createElement("svg",kl({viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},e),Cl)},xl=Object(Ot.withInstanceId)(Object(Ot.withState)({openPopover:!1,clickedOnButton:!1})(function(e){var t=e.instanceId,n=e.openPopover,a=e.clickedOnButton,r=e.setState;return wp.element.createElement(x.BaseControl,M()({className:"ugb-icon-control ugb-icon-control-".concat(t)},Object(R.omit)(e,["onChange","value"])),wp.element.createElement("div",{className:"ugb-icon-control__wrapper"},wp.element.createElement("div",{className:"ugb-icon-control__button-wrapper"},wp.element.createElement(mt,{isSecondary:!0,className:"ugb-icon-control__icon-button",onClick:function(){r(a?{openPopover:!1,clickedOnButton:!1}:{openPopover:!0})}},e.value&&wp.element.createElement(Ko,{value:e.value}),!e.value&&wp.element.createElement(Ol,{style:{opacity:.3}})),n&&wp.element.createElement(Al,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-icon-control-".concat(t))?r({clickedOnButton:!0}):r({openPopover:!1,clickedOnButton:!1})},onClose:function(){return r({openPopover:!1})},returnSVGValue:e.returnSVGValue,onChange:e.onChange})),wp.element.createElement(mt,{onClick:function(){e.onReset?e.onReset():e.onChange(""),r({openPopover:!1})},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(S.__)("Reset",_.i18n))))}));xl.defaultProps={label:Object(S.__)("Icon",_.i18n),value:"",returnSVGValue:!0,onChange:function(){}};var _l=xl;function Sl(){return(Sl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var El=ie.a.createElement("path",{fill:"currentColor",d:"M360 480H24c-13.3 0-24-10.7-24-24v-24c0-13.3 10.7-24 24-24h336c13.3 0 24 10.7 24 24v24c0 13.3-10.7 24-24 24zM128 56v136H40.3c-17.8 0-26.7 21.5-14.1 34.1l152.2 152.2c7.5 7.5 19.8 7.5 27.3 0l152.2-152.2c12.6-12.6 3.7-34.1-14.1-34.1H256V56c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24z"}),jl=function(e){return ie.a.createElement("svg",Sl({"aria-hidden":"true","data-prefix":"fas","data-icon":"arrow-alt-to-bottom",className:"drop_svg__svg-inline--fa drop_svg__fa-arrow-alt-to-bottom drop_svg__fa-w-12",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},e),El)},Tl=function(){var e=Fe()(ze.a.mark(function e(){var t,n,a,r,i=arguments;return ze.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"icon",n=i.length>1&&void 0!==i[1]?i[1]:_.fontAwesomeSearchProIcons,a='{ search(version: "latest", first: 50, query: "'.concat((t||"info").replace(/["'\\]/g,""),'") {\n\t\t\tid\n\t\t\tmembership {\n\t\t\t\tfree\n\t\t\t\t').concat(n?"pro":"","\n\t\t\t}\n\t\t} }"),e.next=5,fetch("https://api.fontawesome.com",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:a})}).then(function(e){return e.json()});case 5:return r=e.sent,e.abrupt("return",r.data.search.reduce(function(e,t){return Pl(t,n).forEach(function(t){e.push(t)}),e},[]));case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Pl=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[].concat(s()(e.membership.free),s()(t?e.membership.pro.filter(function(t){return!e.membership.free.includes(t)}):[]));return n.map(function(t){return{className:"fa".concat(t[0]," fa-").concat(e.id),prefix:"fa".concat(t[0]),iconName:e.id}})},Bl=n(69),Ml=null,Nl=null,Il=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ugb-custom-icon";return e.match(/(<svg[^>]*class=["'])/)?e.replace(/(<svg[^>]*class=["'])/,"$1".concat(t," ")):e.match(/(<svg)/)?e.replace(/(<svg)/,'$1 class="'.concat(t,'"')):e},Dl=function(e){for(var t=e.replace(/(^[\s\S]*?)(<svg)/gm,"$2").replace(/(<\/svg>)([\s\S]*)/g,"$1"),n=0;n<2;n++)t=t.replace(/\s*<g\s*>([\s\S]*?)<\/g>\s*/gm,"$1");return t},Rl=function(e){var t=Object(k.useState)(""),n=l()(t,2),a=n[0],r=n[1],i=Object(k.useState)([]),o=l()(i,2),s=o[0],u=o[1],c=Object(k.useState)(!1),p=l()(c,2),f=p[0],d=p[1],g=Object(k.useState)(!1),m=l()(g,2),h=m[0],b=m[1],v=e.returnSVGValue;Object(k.useEffect)(function(){var e=!0;return clearTimeout(Ml),Ml=setTimeout(function(){e&&(d(!0),Tl(a).then(function(t){e&&u(t)}).finally(function(){e&&d(!1)}))},500),function(){e=!1,clearTimeout(Ml)}},[a]),Object(k.useEffect)(function(){Nl||(Nl=wp.data.select("core/block-editor").getSettings().mediaUpload),h?wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:null}):wp.data.select("core/block-editor").getSettings().mediaUpload!==Nl&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:Nl})},[h]);var y=P()(["ugb-icon-popover__label-container"],{"ugb-icon--has-settings":_.isPro,"ugb-icon--has-upload":v,"ugb-icon--has-reset":e.allowReset});return wp.element.createElement(x.Popover,{className:"ugb-icon-popover",onClose:e.onClose,onClickOutside:e.onClickOutside,position:e.position,anchorRef:e.anchorRef},wp.element.createElement(x.PanelBody,null,wp.element.createElement(Bl.FileDrop,{onFrameDragEnter:function(){return b(!0)},onFrameDragLeave:function(){return b(!1)},onFrameDrop:function(){return b(!1)},onDrop:function(t){if(v&&t.length)if("image/svg+xml"===t[0].type){var n=new FileReader;n.onload=function(t){b(!1);var n=Dl(Il(t.target.result));e.onChange(n),e.onClose()},n.readAsText(t[0])}else b(!1);else b(!1)}},wp.element.createElement("div",{className:y},wp.element.createElement(x.TextControl,{className:"ugb-icon-popover__input",value:a,onChange:r,placeholder:Object(S.__)("Type to search icon",_.i18n)}),_.isPro&&wp.element.createElement(mt,{className:"ugb-icon-popover__settings-button",icon:"admin-generic",href:_.settingsUrl+"#icon-settings",target:"_settings",iconSize:"16",label:Object(S.__)("Icon Settings",_.i18n),showTooltip:!0,isSmall:!0,isSecondary:!0}),v&&wp.element.createElement(mt,{onClick:function(t){t.preventDefault();var n=document.createElement("input");n.accept="image/svg+xml",n.type="file",n.onchange=function(t){var n=t.target.files;if(n.length){var a=new FileReader;a.onload=function(t){b(!1);var n=Dl(Il(t.target.result));e.onChange(n),e.onClose()},a.readAsText(n[0])}else b(!1)},n.click()},isSmall:!0,isPrimary:!0,className:"components-range-control__upload"},Object(S.__)("Upload SVG",_.i18n)),e.allowReset&&wp.element.createElement(mt,{onClick:function(){e.onChange(""),e.onClose()},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},Object(S.__)("Clear icon",_.i18n))),wp.element.createElement("div",{className:"ugb-icon-popover__iconlist"},f&&wp.element.createElement(x.Spinner,null),!f&&s.map(function(t,n){var a=t.prefix,r=t.iconName,i="".concat(a,"-").concat(r);return wp.element.createElement("button",{key:n,className:"components-button ugb-prefix--".concat(a," ugb-icon--").concat(r),onClick:function(){e.returnSVGValue?e.onChange(Dl(De(a,r))):e.onChange(i,a,r),e.onClose()}},wp.element.createElement(Nm,{prefix:a,iconName:r}))}),!f&&!s.length&&wp.element.createElement("p",{className:"components-base-control__help"},Object(S.__)("No matches found",_.i18n))),v&&h&&wp.element.createElement("div",{className:"ugb-icon-popover__drop-indicator"},wp.element.createElement(jl,{height:"40",width:"40"}),Object(S.__)("Drop your SVG here",_.i18n)))))};Rl.defaultProps={onChange:function(){},onClose:function(){},onClickOutside:function(){},returnSVGValue:!0,allowReset:!0,anchorRef:void 0,position:"center"};var Al=Rl,zl=function(e){return wp.element.createElement(up,{attrNameTemplate:"%sContentAlign",setAttributes:e.setAttributes,blockAttributes:e.blockAttributes},wp.element.createElement(zp,{label:e.label,className:P()([e.className,"ugb--help-tip-alignment-all"])}))};zl.defaultProps={className:"",setAttributes:function(){},blockAttributes:{},label:Object(S.__)("Align",_.i18n)};var Ll=function(){return wp.element.createElement("hr",{className:"ugb-control-separator"})},Fl=function(e){var t=e.color||"transparent";if(Array.isArray(t)){var n=t,a=l()(n,2),r=a[0],i=a[1];t="linear-gradient(90deg, ".concat(r||"transparent",", ").concat(i||"transparent",")")}var o=P()(["components-circular-option-picker__option-wrapper","ugb-button-icon-popover-control-color-preview"],{"ugb-button-icon-popover-control-color-preview--transparent":!t||"transparent"===t});return wp.element.createElement(k.Fragment,null,wp.element.createElement("div",{className:o},wp.element.createElement(mt,{className:"components-circular-option-picker__option",label:Object(S.__)("Selected color",_.i18n),style:{background:t},onClick:e.onClick,ref:e._ref}),e.children))};Fl.defaultProps={color:"",onClick:function(){},_ref:null};var Ul=Fl;function Hl(){return(Hl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Vl=ie.a.createElement("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),Gl=ie.a.createElement("circle",{cx:409.1,cy:102.9,r:40.9}),Wl=ie.a.createElement("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}),ql=function(e){return ie.a.createElement("svg",Hl({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),Vl,Gl,Wl)},Kl=function(e){return wp.element.createElement(k.Fragment,null,wp.element.createElement("div",{className:"components-circular-option-picker__option-wrapper ugb-button-icon-popover-control-image-preview"},wp.element.createElement(mt,{className:"components-circular-option-picker__option",label:Object(S.__)("Selected image",_.i18n),style:{backgroundImage:e.imageUrl?"url(".concat(e.imageUrl,")"):void 0},onClick:e.onClick,ref:e._ref},!e.imageUrl&&wp.element.createElement(ql,null)),e.children))};Kl.defaultProps={imageUrl:"",onClick:function(){},_ref:null};var $l=Kl;function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var Ql=1,Xl=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={open:!1,isMouseOutside:!1,showResetPopover:!1},e.handleOpen=e.handleOpen.bind(v()(e)),e.handleClose=e.handleClose.bind(v()(e)),e.handleMouseLeave=e.handleMouseLeave.bind(v()(e)),e.handleMouseEnter=e.handleMouseEnter.bind(v()(e)),e.handleOnClickOutside=e.handleOnClickOutside.bind(v()(e)),e.handleReset=e.handleReset.bind(v()(e)),e.buttonRef=Object(k.createRef)(),e.buttonRefColorPreview=Object(k.createRef)(),e.buttonRefImagePreview=Object(k.createRef)(),e.instanceId=Ql++,e}return w()(t,e),f()(t,[{key:"checkIfAttributeShouldToggleOn",value:function(e,t){if(!this.props.onToggle||!this.props.toggleAttributeName||!this.props.toggleOnSetAttributes.length)return e;if(t.attributes[this.props.toggleAttributeName])return e;var n=!1;return this.props.toggleOnSetAttributes.some(function(t){return!(!Object.keys(e).includes(t)||""===e[t])&&(n=!0,!0)}),n?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yl(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,r()({},this.props.toggleAttributeName,!0)):e}},{key:"componentDidMount",value:function(){Object(Q.addFilter)("stackable.setAttributes","stackable/button-icon-popover-control-".concat(this.instanceId),this.checkIfAttributeShouldToggleOn.bind(this),9),document.addEventListener("mousedown",this.handleOnClickOutside)}},{key:"componentWillUnmount",value:function(){Object(Q.removeFilter)("stackable.setAttributes","stackable/button-icon-popover-control-".concat(this.instanceId)),document.removeEventListener("mousedown",this.handleOnClickOutside)}},{key:"handleOpen",value:function(){this.setState({open:!this.state.open})}},{key:"handleClose",value:function(){this.setState({open:!1})}},{key:"handleMouseLeave",value:function(){this.setState({isMouseOutside:!0})}},{key:"handleMouseEnter",value:function(){this.setState({isMouseOutside:!1})}},{key:"handleReset",value:function(){this.props.resetPopoverTitle||this.props.resetPopoverDescription?this.setState({showResetPopover:!0}):this.props.onReset()}},{key:"handleOnClickOutside",value:function(e){var t,n,a,r;(null===(t=window.wp)||void 0===t?void 0:null===(n=t.media)||void 0===n?void 0:null===(a=n.frame)||void 0===a?void 0:null===(r=a.el)||void 0===r?void 0:r.clientHeight)||this.state.isMouseOutside&&e.target.closest("button")!==this.buttonRef.current&&e.target.closest("button")!==this.buttonRefColorPreview.current&&e.target.closest("button")!==this.buttonRefImagePreview.current&&(e.target.closest(".ugb-button-icon-control__popover")||this.handleClose())}},{key:"render",value:function(){var e=this;return wp.element.createElement(x.BaseControl,{help:this.props.help,label:!this.props.onToggle&&wp.element.createElement("label",{htmlFor:"ugb-button-icon-control__edit-".concat(this.instanceId)},this.props.label),id:"ugb-button-icon-control",className:P()("ugb-button-icon-control",this.props.className)},this.props.onToggle&&wp.element.createElement(x.ToggleControl,{label:this.props.label,checked:this.props.checked,onChange:this.props.onToggle}),wp.element.createElement("div",{className:"ugb-button-icon-control__wrapper"},this.props.allowReset&&wp.element.createElement(k.Fragment,null,wp.element.createElement(mt,{onClick:this.handleReset,className:"ugb-button-icon-control__reset",label:Object(S.__)("Reset",_.i18n),icon:"image-rotate"}),this.state.showResetPopover&&wp.element.createElement(x.Popover,{onClickOutside:function(){return e.setState({showResetPopover:!1})},focusOnMount:!1,position:"bottom center",className:"ugb-button-icon-control__reset-popover"},wp.element.createElement("h4",{className:"ugb-button-icon-control__text-title"},this.props.resetPopoverTitle),wp.element.createElement("p",{className:"components-base-control__help"},this.props.resetPopoverDescription),wp.element.createElement(x.ButtonGroup,null,wp.element.createElement(mt,{onClick:function(){e.setState({showResetPopover:!1}),e.props.onReset()},isDestructive:!0,isSecondary:!0,isSmall:!0},Object(S.__)("Reset",_.i18n)),wp.element.createElement(mt,{onClick:function(){return e.setState({showResetPopover:!1})},isSmall:!0},Object(S.__)("Cancel",_.i18n))))),this.props.hasImagePreview&&wp.element.createElement($l,{imageUrl:this.props.imageUrlPreview,onClick:this.handleOpen,_ref:this.buttonRefImagePreview}),this.props.hasColorPreview&&wp.element.createElement(Ul,{color:this.props.colorPreview,onClick:this.handleOpen,_ref:this.buttonRefColorPreview}),this.props.renderCustomPreview&&this.props.renderCustomPreview(),wp.element.createElement(mt,{onClick:this.handleOpen,className:"ugb-button-icon-control__edit",label:Object(S.__)("Edit",_.i18n),isSecondary:!0,icon:"edit",id:"ugb-button-icon-control__edit-".concat(this.instanceId),ref:this.buttonRef}),this.state.open&&wp.element.createElement(x.Popover,{className:"ugb-button-icon-control__popover",focusOnMount:"container",anchorRef:this.buttonRef.current,onMouseLeave:this.handleMouseLeave,onMouseEnter:this.handleMouseEnter},wp.element.createElement(x.PanelBody,null,(void 0!==this.props.popoverLabel?this.props.popoverLabel:this.props.label)&&wp.element.createElement("h2",{className:"components-panel__body-title"},this.props.popoverLabel||this.props.label),this.props.children))))}}]),t}(k.Component);Xl.defaultProps={help:"",label:"",popoverLabel:void 0,className:"",allowReset:!1,onReset:function(){},checked:!1,onToggle:void 0,toggleOnSetAttributes:[],toggleAttributeName:"",colorPreview:null,imageUrlPreview:"",hasColorPreview:!1,hasImagePreview:!1,renderCustomPreview:null};var Jl=Xl,Zl=function(e){var t=ve(e.imageData,e.size||"full"),n=e.widthMax||1e3,a=0;e.imageData&&e.onChangeSize&&t&&(n=t.width,a=t.height);var r=!!t&&t.width===t.height;return wp.element.createElement(k.Fragment,null,e.onChangeImage&&wp.element.createElement(Cn,{label:Object(S.__)("Image",_.i18n),imageID:e.id,imageURL:e.url,onRemove:function(){return e.onChangeImage({url:"",id:"",width:"",height:""})},onChange:function(t){var n=t.url,a=t.width,r=t.height,i=e.size||"full";t.sizes[i]&&(n=t.sizes[i].url,a=t.sizes[i].width,r=t.sizes[i].height),e.onChangeImage({id:t.id,url:n,width:a,height:r})}}),e.onChangeShape&&wp.element.createElement(Rn,{isSquareImage:r,shape:e.shape,shapeFlipX:e.shapeFlipX,shapeFlipY:e.shapeFlipY,shapeStretch:e.shapeStretch,onChangeShape:e.onChangeShape,onChangeShapeFlipX:e.onChangeShapeFlipX,onChangeShapeFlipY:e.onChangeShapeFlipY,onChangeShapeStretch:e.onChangeShapeStretch}),wp.element.createElement(Ll,null),e.onChangeAlt&&wp.element.createElement(xn,{value:e.alt,onChange:e.onChangeAlt}),e.onChangeSize&&wp.element.createElement(zn,{label:Object(S.__)("Image Size",_.i18n),value:e.size,onChange:function(t){var n=ve(e.imageData,t||"full"),a="",r="",i=e.url;n&&(a=n.width,r=n.height,i=n.source_url),e.onChangeSize(t,i,a,r)}}),e.onChangeWidth&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(sa,{label:Object(S.__)("Image Width",_.i18n),value:e.width,placeholder:e.placeholder,max:n,min:0,onChange:function(t){var r=a/n;e.onChangeWidth("number"==typeof t?t:"","number"==typeof t?parseInt(r*t,10):"")},allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(sa,{label:Object(S.__)("Image Width",_.i18n),value:e.tabletWidth,max:n,min:0,onChange:e.onChangeTabletWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(sa,{label:Object(S.__)("Image Width",_.i18n),value:e.mobileWidth,max:n,min:0,onChange:e.onChangeMobileWidth,allowReset:!0,className:"ugb--help-tip-image-size-no-crop"}))),e.onChangeSquare&&wp.element.createElement(k.Fragment,null,("number"==typeof e.width||e.width)&&wp.element.createElement(pp,null,wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Force square image",_.i18n),checked:e.square,onChange:e.onChangeSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.tabletWidth||e.tabletWidth)&&wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Force square image",_.i18n),checked:e.tabletSquare,onChange:e.onChangeTabletSquare,className:"ugb--help-tip-image-square"})),("number"==typeof e.mobileWidth||e.mobileWidth)&&wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Force square image",_.i18n),checked:e.mobileSquare,onChange:e.onChangeMobileSquare,className:"ugb--help-tip-image-square"}))),e.onChangeBorderRadius&&""===e.shape&&wp.element.createElement(sa,{label:Object(S.__)("Border Radius",_.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:100,allowReset:!0,placeholder:"0",className:"ugb--help-tip-image-border-radius"}),e.onChangeShadow&&""===e.shape&&wp.element.createElement(sa,{label:Object(S.__)("Shadow / Outline",_.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-image-shadow"}),e.onChangeBlendMode&&wp.element.createElement(mn,{label:Object(S.__)("Blend Mode",_.i18n),value:e.blendMode,onChange:e.onChangeBlendMode}))};Zl.defaultProps={id:"",url:"",onChangeImage:function(e){e.url,e.id,e.width,e.height},shape:"",onChangeShape:function(){},shapeStretch:"",onChangeShapeStretch:function(){},alt:"",onChangeAlt:function(){},size:"large",onChangeSize:function(){},widthMax:1e3,width:"",tabletWidth:"",mobileWidth:"",onChangeWidth:function(){},onChangeTabletWidth:function(){},onChangeMobileWidth:function(){},square:"",tabletSquare:"",mobileSquare:"",onChangeSquare:function(){},onChangeTabletSquare:function(){},onChangeMobileSquare:function(){},borderRadius:"",onChangeBorderRadius:function(){},shadow:"",onChangeShadow:function(){},blendMode:"",onChangeBlendMode:function(){}};var eo=Object(Ot.compose)(Object(he.withSelect)(function(e,t){var n=e("core").getMedia;return ye(t.id,e),{imageData:t.id?n(t.id):null}}))(Zl),to=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(eo,M()({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,i=e.url,l=e.id,o=e.width,s=e.height;t((a={},r()(a,n("Url"),i),r()(a,n("Id"),l),r()(a,n("Width"),o),r()(a,n("Height"),s),a))},alt:a("Alt"),onChangeAlt:function(e){return t(r()({},n("Alt"),e))},size:a("Size"),onChangeSize:function(e,a,i,l){var o;t((o={},r()(o,n("Size"),e),r()(o,n("Url"),a),r()(o,n("Width"),i),r()(o,n("Height"),l),o))},shape:a("Shape"),onChangeShape:function(e){return t(r()({},n("Shape"),e))},shapeFlipX:a("ShapeFlipX"),onChangeShapeFlipX:function(e){return t(r()({},n("ShapeFlipX"),e))},shapeFlipY:a("ShapeFlipY"),onChangeShapeFlipY:function(e){return t(r()({},n("ShapeFlipY"),e))},shapeStretch:a("ShapeStretch"),onChangeShapeStretch:function(e){return t(r()({},n("ShapeStretch"),e))},style:a("Style"),onChangeStyle:function(e){return t(r()({},n("Style"),e))},width:a("Width"),tabletWidth:a("TabletWidth"),mobileWidth:a("MobileWidth"),onChangeWidth:function(e,a){var i;t((i={},r()(i,n("Width"),e),r()(i,n("Height"),a),i))},onChangeTabletWidth:function(e){return t(r()({},n("TabletWidth"),e))},onChangeMobileWidth:function(e){return t(r()({},n("MobileWidth"),e))},square:a("Square"),tabletSquare:a("TabletSquare"),mobileSquare:a("MobileSquare"),onChangeSquare:function(e){return t(r()({},n("Square"),e))},onChangeTabletSquare:function(e){return t(r()({},n("TabletSquare"),e))},onChangeMobileSquare:function(e){return t(r()({},n("MobileSquare"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(r()({},n("BorderRadius"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(r()({},n("Shadow"),e))},blendMode:a("BlendMode"),onChangeBlendMode:function(e){return t(r()({},n("BlendMode"),e))}},e))};to.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var no=function(e){return wp.element.createElement(k.Fragment,null,e.onChangeImage&&wp.element.createElement(Cn,{label:Object(S.__)("Image",_.i18n),imageID:e.id,imageURL:e.url,onRemove:function(){return e.onChangeImage({url:"",id:""})},onChange:function(t){var n=t.url,a=e.size||"full";t.sizes[a]&&(n=t.sizes[a].url),e.onChangeImage({id:t.id,url:n})}}),e.onChangeSize&&wp.element.createElement(zn,{label:Object(S.__)("Image Size",_.i18n),value:e.size,onChange:function(t){e.onChangeSize(t,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full",n=we(e)||ye(e,he.select);return n?n.media_details.sizes[t]?n.media_details.sizes[t].source_url:n.source_url:""}(e.id,t||"full"))},className:"ugb--help-tip-image-size"}),e.onChangeBackgroundPosition&&wp.element.createElement(ca,{label:Object(S.__)("Background Image Position",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Top Left",_.i18n),value:"top left"},{label:Object(S.__)("Top Center",_.i18n),value:"top center"},{label:Object(S.__)("Top Right",_.i18n),value:"top right"},{label:Object(S.__)("Center Left",_.i18n),value:"center left"},{label:Object(S.__)("Center Center",_.i18n),value:"center center"},{label:Object(S.__)("Center Right",_.i18n),value:"center right"},{label:Object(S.__)("Bottom Left",_.i18n),value:"bottom left"},{label:Object(S.__)("Bottom Center",_.i18n),value:"bottom center"},{label:Object(S.__)("Bottom Right",_.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"}),e.onChangeBackgroundRepeat&&wp.element.createElement(ca,{label:Object(S.__)("Background Image Repeat",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("No-Repeat",_.i18n),value:"no-repeat"},{label:Object(S.__)("Repeat",_.i18n),value:"repeat"},{label:Object(S.__)("Repeat-X",_.i18n),value:"repeat-x"},{label:Object(S.__)("Repeat-Y",_.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"}),e.onChangeBackgroundSize&&wp.element.createElement(ca,{label:Object(S.__)("Background Image Size",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Auto",_.i18n),value:"auto"},{label:Object(S.__)("Cover",_.i18n),value:"cover"},{label:Object(S.__)("Contain",_.i18n),value:"contain"},{label:Object(S.__)("Custom",_.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"}),e.onChangeBackgroundSize&&"custom"===e.backgroundSize&&wp.element.createElement(sa,{label:Object(S.__)("Custom Size",_.i18n),units:["px","%"],min:[0,0],max:[1e3,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0}))};no.defaultProps={id:"",url:"",onChangeImage:function(e){e.url,e.id},size:"",onChangeSize:function(){},backgroundPosition:"",onChangeBackgroundPosition:function(){},backgroundRepeat:"",onChangeBackgroundRepeat:function(){},backgroundSize:"",onChangeBackgroundSize:function(){},backgroundCustomSizeUnit:"",onChangeBackgroundCustomSizeUnit:function(){},backgroundCustomSize:"",onChangeBackgroundCustomSize:function(){}};var ao=Object(Ot.compose)(Object(he.withSelect)(function(e,t){var n=e("core").getMedia;return ye(t.id,e),{imageData:t.id?n(t.id):null}}))(no),ro=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(ao,M()({id:a("Id"),url:a("Url"),onChangeImage:function(e){var a,i=e.url,l=e.id;t((a={},r()(a,n("Url"),i),r()(a,n("Id"),l),a))},size:a("Size"),onChangeSize:function(e,a){var i;t((i={},r()(i,n("Size"),e),r()(i,n("Url"),a),i))},backgroundPosition:a("BackgroundPosition"),onChangeBackgroundPosition:function(e){return t(r()({},n("BackgroundPosition"),e))},backgroundRepeat:a("BackgroundRepeat"),onChangeBackgroundRepeat:function(e){return t(r()({},n("BackgroundRepeat"),e))},backgroundSize:a("BackgroundSize"),onChangeBackgroundSize:function(e){return t(r()({},n("BackgroundSize"),e))},backgroundCustomSize:a("BackgroundCustomSize"),onChangeBackgroundCustomSize:function(e){return t(r()({},n("BackgroundCustomSize"),e))},backgroundCustomSizeUnit:a("BackgroundCustomSizeUnit")||"px",onChangeBackgroundCustomSizeUnit:function(e){return t(r()({},n("BackgroundCustomSizeUnit"),e))}},e))};ro.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var io=function(e){var t=Object(k.useMemo)(function(){return"function"==typeof e.placeholder?e.fontSize||Math.round(e.placeholder(ee(e.htmlTag,!0))):e.fontSize||e.placeholder||ee(e.htmlTag,!0)},[e.htmlTag,e.fontSize]);return wp.element.createElement(k.Fragment,null,wp.element.createElement(Jl,{label:e.label,popoverLabel:e.popoverLabel,onReset:e.onReset,allowReset:e.fontFamily||e.fontSize||e.tabletFontSize||e.mobileFontSize||e.fontWeight||e.textTransform||e.lineHeight||e.tabletLineHeight||e.mobileLineHeight||e.letterSpacing,resetPopoverTitle:e.resetPopoverTitle,resetPopoverDescription:e.resetPopoverDescription,className:e.className},e.onChangeFontFamily&&wp.element.createElement(tr,{label:Object(S.__)("Font Family",_.i18n),onChange:e.onChangeFontFamily,value:e.fontFamily,className:"ugb--help-tip-typography-family"}),e.onChangeFontSize&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:t,className:"ugb--help-tip-typography-size"}))),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletFontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"}))),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobileFontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))),e.onChangeFontWeight&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Weight",_.i18n),options:[{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"},{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Normal",_.i18n),value:"normal"},{label:Object(S.__)("Bold",_.i18n),value:"bold"}],onChange:e.onChangeFontWeight,value:e.fontWeight,className:"ugb--help-tip-typography-weight"}),e.onChangeTextTransform&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Transform",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Uppercase",_.i18n),value:"uppercase"},{label:Object(S.__)("Lowercase",_.i18n),value:"lowercase"},{label:Object(S.__)("Capitalize",_.i18n),value:"capitalize"},{label:Object(S.__)("None",_.i18n),value:"none"}],onChange:e.onChangeTextTransform,value:e.textTransform,className:"ugb--help-tip-typography-transform"}),e.onChangeLineHeight&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(sa,{label:Object(S.__)("Line-Height",_.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.lineHeight,onChange:e.onChangeLineHeight,unit:e.lineHeightUnit,onChangeUnit:e.onChangeLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(sa,{label:Object(S.__)("Line-Height",_.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.tabletLineHeight,onChange:e.onChangeTabletLineHeight,unit:e.tabletLineHeightUnit,onChangeUnit:e.onChangeTabletLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(sa,{label:Object(S.__)("Line-Height",_.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.mobileLineHeight,onChange:e.onChangeMobileLineHeight,unit:e.mobileLineHeightUnit,onChangeUnit:e.onChangeMobileLineHeightUnit,initialPosition:[37,1.8],className:"ugb--help-tip-typography-line-height"}))),e.onChangeLetterSpacing&&wp.element.createElement(sa,{label:Object(S.__)("Letter Spacing",_.i18n),min:-5,max:10,step:.1,allowReset:!0,onChange:e.onChangeLetterSpacing,value:e.letterSpacing,placeholder:"0",className:"ugb--help-tip-typography-letter-spacing"})),e.showSecondFontSize&&e.onChangeFontSize&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:t,className:"ugb--help-tip-typography-size"}))),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletFontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"}))),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(Ja,M()({label:Object(S.__)("Size",_.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobileFontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{className:"ugb--help-tip-typography-size"})))))};io.defaultProps={label:Object(S.__)("Typography",_.i18n),popoverLabel:void 0,className:"ugb--help-tip-typography",showSecondFontSize:!0,fontFamily:"",fontSize:"",tabletFontSize:"",mobileFontSize:"",fontSizeUnit:"px",tabletFontSizeUnit:"px",mobileFontSizeUnit:"px",fontWeight:"",textTransform:"",lineHeight:"",tabletLineHeight:"",mobileLineHeight:"",lineHeightUnit:"em",tabletLineHeightUnit:"em",mobileLineHeightUnit:"em",letterSpacing:"",fontSizeProps:{},resetPopoverTitle:"",resetPopoverDescription:"",placeholder:"",htmlTag:"p",onReset:function(){},onChangeFontFamily:function(){},onChangeFontSize:function(){},onChangeTabletFontSize:function(){},onChangeMobileFontSize:function(){},onChangeFontSizeUnit:function(){},onChangeTabletFontSizeUnit:function(){},onChangeMobileFontSizeUnit:function(){},onChangeFontWeight:function(){},onChangeTextTransform:function(){},onChangeLineHeight:function(){},onChangeTabletLineHeight:function(){},onChangeMobileLineHeight:function(){},onChangeLineHeightUnit:function(){},onChangeTabletLineHeightUnit:function(){},onChangeMobileLineHeightUnit:function(){},onChangeLetterSpacing:function(){}};var lo=io,oo=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(lo,M()({fontFamily:e.blockAttributes[n("FontFamily")]||"",fontSize:e.blockAttributes[n("FontSize")]||"",tabletFontSize:e.blockAttributes[n("TabletFontSize")]||"",mobileFontSize:e.blockAttributes[n("MobileFontSize")]||"",fontSizeUnit:e.blockAttributes[n("FontSizeUnit")]||"px",tabletFontSizeUnit:e.blockAttributes[n("TabletFontSizeUnit")]||"px",mobileFontSizeUnit:e.blockAttributes[n("MobileFontSizeUnit")]||"px",fontWeight:e.blockAttributes[n("FontWeight")]||"",textTransform:e.blockAttributes[n("TextTransform")]||"",letterSpacing:e.blockAttributes[n("LetterSpacing")]||"",lineHeight:e.blockAttributes[n("LineHeight")]||"",tabletLineHeight:e.blockAttributes[n("TabletLineHeight")]||"",mobileLineHeight:e.blockAttributes[n("MobileLineHeight")]||"",lineHeightUnit:e.blockAttributes[n("LineHeightUnit")]||"em",tabletLineHeightUnit:e.blockAttributes[n("TabletLineHeightUnit")]||"em",mobileLineHeightUnit:e.blockAttributes[n("MobileLineHeightUnit")]||"em",onChangeFontFamily:function(e){return t(r()({},n("FontFamily"),e))},onChangeFontSize:function(e){return t(r()({},n("FontSize"),e))},onChangeTabletFontSize:function(e){return t(r()({},n("TabletFontSize"),e))},onChangeMobileFontSize:function(e){return t(r()({},n("MobileFontSize"),e))},onChangeFontSizeUnit:function(e){return t(r()({},n("FontSizeUnit"),e))},onChangeTabletFontSizeUnit:function(e){return t(r()({},n("TabletFontSizeUnit"),e))},onChangeMobileFontSizeUnit:function(e){return t(r()({},n("MobileFontSizeUnit"),e))},onChangeFontWeight:function(e){return t(r()({},n("FontWeight"),e))},onChangeTextTransform:function(e){return t(r()({},n("TextTransform"),e))},onChangeLetterSpacing:function(e){return t(r()({},n("LetterSpacing"),e))},onChangeLineHeight:function(e){return t(r()({},n("LineHeight"),e))},onChangeTabletLineHeight:function(e){return t(r()({},n("TabletLineHeight"),e))},onChangeMobileLineHeight:function(e){return t(r()({},n("MobileLineHeight"),e))},onChangeLineHeightUnit:function(e){return t(r()({},n("LineHeightUnit"),e))},onChangeTabletLineHeightUnit:function(e){return t(r()({},n("TabletLineHeightUnit"),e))},onChangeMobileLineHeightUnit:function(e){return t(r()({},n("MobileLineHeightUnit"),e))},onReset:function(){var e;t((e={},r()(e,n("FontFamily"),""),r()(e,n("FontSize"),""),r()(e,n("TabletFontSize"),""),r()(e,n("MobileFontSize"),""),r()(e,n("FontSizeUnit"),"px"),r()(e,n("TabletFontSizeUnit"),"px"),r()(e,n("MobileFontSizeUnit"),"px"),r()(e,n("FontWeight"),""),r()(e,n("TextTransform"),""),r()(e,n("LetterSpacing"),""),r()(e,n("LineHeight"),""),r()(e,n("TabletLineHeight"),""),r()(e,n("MobileLineHeight"),""),r()(e,n("LineHeightUnit"),"em"),r()(e,n("TabletLineHeightUnit"),"em"),r()(e,n("MobileLineHeightUnit"),"em"),e))}},e))};oo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var so=oo,uo=function(e){return wp.element.createElement(k.Fragment,null,e.onChangeBackgroundColorType&&wp.element.createElement(x.BaseControl,{id:"ugb-background-color-type",className:"ugb--help-tip-background-color-type"},wp.element.createElement(Qa,{controls:[{value:"",title:Object(S.__)("Single",_.i18n)},{value:"gradient",title:Object(S.__)("Gradient",_.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&wp.element.createElement(St,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType?Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),e.labelBackgroundColor,1):e.labelBackgroundColor,value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColorOpacity&&"gradient"!==e.backgroundColorType&&!e.backgroundMediaURL&&!e.tabletBackgroundMediaURL&&!e.mobileBackgroundMediaURL&&wp.element.createElement(sa,{label:Object(S.__)("Background Color Opacity",_.i18n),value:e.backgroundColorOpacity,onChange:e.onChangeBackgroundColorOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",className:"ugb--help-tip-background-color-opacity"}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&wp.element.createElement(St,{label:Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),e.labelBackgroundColor,2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&wp.element.createElement(Jl,{label:Object(S.__)("Adv. Gradient Color Settings",_.i18n),onReset:e.onResetAdvancedGradient,allowReset:""!==e.backgroundGradientDirection&&90!==e.backgroundGradientDirection||""!==e.backgroundGradientLocation1&&0!==e.backgroundGradientLocation1||""!==e.backgroundGradientLocation2&&100!==e.backgroundGradientLocation2||e.backgroundGradientBlendMode},e.onChangeBackgroundGradientDirection&&wp.element.createElement(sa,{label:Object(S.__)("Gradient Direction (degrees)",_.i18n),value:e.backgroundGradientDirection,onChange:e.onChangeBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeBackgroundGradientLocation1&&wp.element.createElement(sa,{label:Object(S.sprintf)(Object(S.__)("Color %d Location",_.i18n),1),value:e.backgroundGradientLocation1,onChange:e.onChangeBackgroundGradientLocation1,min:0,max:100,step:1,allowReset:!0,placeholder:"0",className:"ugb--help-tip-gradient-location"}),e.onChangeBackgroundGradientLocation2&&wp.element.createElement(sa,{label:Object(S.sprintf)(Object(S.__)("Color %d Location",_.i18n),2),value:e.backgroundGradientLocation2,onChange:e.onChangeBackgroundGradientLocation2,min:0,max:100,step:1,allowReset:!0,placeholder:"100",className:"ugb--help-tip-gradient-location"}),e.onChangeBackgroundGradientBlendMode&&wp.element.createElement(mn,{label:Object(S.__)("Background Gradient Blend Mode",_.i18n),value:e.backgroundGradientBlendMode,onChange:e.onChangeBackgroundGradientBlendMode,className:"ugb--help-tip-background-blend-mode"})),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&e.hasAdvancedGradient&&e.onChangeBackgroundMedia&&wp.element.createElement(Ll,null),e.onChangeBackgroundMedia&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(Cn,{label:e.backgroundMediaAllowVideo?Object(S.__)("Background Image or Video",_.i18n):Object(S.__)("Background Image",_.i18n),help:e.backgroundMediaAllowVideo?Object(S.__)("Use .mp4 format for videos",_.i18n):"",onRemove:function(){return e.onChangeBackgroundMedia({url:"",id:""})},onChange:e.onChangeBackgroundMedia,imageID:e.backgroundMediaID,imageURL:e.backgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(Cn,{label:e.backgroundMediaAllowVideo?Object(S.__)("Background Image or Video",_.i18n):Object(S.__)("Background Image",_.i18n),help:e.backgroundMediaAllowVideo?Object(S.__)("Use .mp4 format for videos",_.i18n):"",onRemove:function(){return e.onChangeTabletBackgroundMedia({url:"",id:""})},onChange:e.onChangeTabletBackgroundMedia,imageID:e.tabletBackgroundMediaID,imageURL:e.tabletBackgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(Cn,{label:e.backgroundMediaAllowVideo?Object(S.__)("Background Image or Video",_.i18n):Object(S.__)("Background Image",_.i18n),help:e.backgroundMediaAllowVideo?Object(S.__)("Use .mp4 format for videos",_.i18n):"",onRemove:function(){return e.onChangeMobileBackgroundMedia({url:"",id:""})},onChange:e.onChangeMobileBackgroundMedia,imageID:e.mobileBackgroundMediaID,imageURL:e.mobileBackgroundMediaURL,allowedTypes:e.backgroundMediaAllowVideo?["image","video"]:["image"]}))),e.onChangeBackgroundTintStrength&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&wp.element.createElement(sa,{label:Object(S.__)("Background Media Tint Strength",_.i18n),value:e.backgroundTintStrength,onChange:function(t){var n=void 0===t||""===t;""!==e.backgroundColor||n?"#000000"===e.backgroundColor&&n?e.onChangeBackgroundTintStrength(t,""):e.onChangeBackgroundTintStrength(t,e.backgroundColor):e.onChangeBackgroundTintStrength(t,"#000000")},min:0,max:10,step:1,allowReset:!0,placeholder:e.backgroundColor?"5":"0",className:"ugb--help-tip-background-tint"}),e.onChangeFixedBackground&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&!([e.backgroundMediaURL,e.tabletBackgroundMediaURL,e.mobileBackgroundMediaURL].filter(function(e){return e}).filter(Ve).length>0)&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Fixed Background",_.i18n),checked:e.fixedBackground,onChange:e.onChangeFixedBackground,className:"ugb--help-tip-background-fixed"}),e.hasAdvancedBackground&&e.onChangeBackgroundMedia&&(e.backgroundMediaURL||e.tabletBackgroundMediaURL||e.mobileBackgroundMediaURL)&&wp.element.createElement(Jl,{label:Object(S.__)("Adv. Background Image Settings",_.i18n),onReset:e.onResetAdvancedBackground,allowReset:e.backgroundPosition||e.tabletBackgroundPosition||e.mobileBackgroundPosition||e.backgroundRepeat||e.tabletBackgroundRepeat||e.mobileBackgroundRepeat||e.backgroundSize||e.tabletBackgroundSize||e.mobileBackgroundSize||e.backgroundImageBlendMode},wp.element.createElement(pp,null,wp.element.createElement(ca,{label:Object(S.__)("Image Position",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Top Left",_.i18n),value:"top left"},{label:Object(S.__)("Top Center",_.i18n),value:"top center"},{label:Object(S.__)("Top Right",_.i18n),value:"top right"},{label:Object(S.__)("Center Left",_.i18n),value:"center left"},{label:Object(S.__)("Center Center",_.i18n),value:"center center"},{label:Object(S.__)("Center Right",_.i18n),value:"center right"},{label:Object(S.__)("Bottom Left",_.i18n),value:"bottom left"},{label:Object(S.__)("Bottom Center",_.i18n),value:"bottom center"},{label:Object(S.__)("Bottom Right",_.i18n),value:"bottom right"}],value:e.backgroundPosition,onChange:e.onChangeBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(ca,{label:Object(S.__)("Image Position",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Top Left",_.i18n),value:"top left"},{label:Object(S.__)("Top Center",_.i18n),value:"top center"},{label:Object(S.__)("Top Right",_.i18n),value:"top right"},{label:Object(S.__)("Center Left",_.i18n),value:"center left"},{label:Object(S.__)("Center Center",_.i18n),value:"center center"},{label:Object(S.__)("Center Right",_.i18n),value:"center right"},{label:Object(S.__)("Bottom Left",_.i18n),value:"bottom left"},{label:Object(S.__)("Bottom Center",_.i18n),value:"bottom center"},{label:Object(S.__)("Bottom Right",_.i18n),value:"bottom right"}],value:e.tabletBackgroundPosition,onChange:e.onChangeTabletBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(ca,{label:Object(S.__)("Image Position",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Top Left",_.i18n),value:"top left"},{label:Object(S.__)("Top Center",_.i18n),value:"top center"},{label:Object(S.__)("Top Right",_.i18n),value:"top right"},{label:Object(S.__)("Center Left",_.i18n),value:"center left"},{label:Object(S.__)("Center Center",_.i18n),value:"center center"},{label:Object(S.__)("Center Right",_.i18n),value:"center right"},{label:Object(S.__)("Bottom Left",_.i18n),value:"bottom left"},{label:Object(S.__)("Bottom Center",_.i18n),value:"bottom center"},{label:Object(S.__)("Bottom Right",_.i18n),value:"bottom right"}],value:e.mobileBackgroundPosition,onChange:e.onChangeMobileBackgroundPosition,className:"ugb--help-tip-background-image-position"})),wp.element.createElement(pp,null,wp.element.createElement(ca,{label:Object(S.__)("Image Repeat",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("No-Repeat",_.i18n),value:"no-repeat"},{label:Object(S.__)("Repeat",_.i18n),value:"repeat"},{label:Object(S.__)("Repeat-X",_.i18n),value:"repeat-x"},{label:Object(S.__)("Repeat-Y",_.i18n),value:"repeat-y"}],value:e.backgroundRepeat,onChange:e.onChangeBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(ca,{label:Object(S.__)("Image Repeat",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("No-Repeat",_.i18n),value:"no-repeat"},{label:Object(S.__)("Repeat",_.i18n),value:"repeat"},{label:Object(S.__)("Repeat-X",_.i18n),value:"repeat-x"},{label:Object(S.__)("Repeat-Y",_.i18n),value:"repeat-y"}],value:e.tabletBackgroundRepeat,onChange:e.onChangeTabletBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(ca,{label:Object(S.__)("Image Repeat",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("No-Repeat",_.i18n),value:"no-repeat"},{label:Object(S.__)("Repeat",_.i18n),value:"repeat"},{label:Object(S.__)("Repeat-X",_.i18n),value:"repeat-x"},{label:Object(S.__)("Repeat-Y",_.i18n),value:"repeat-y"}],value:e.mobileBackgroundRepeat,onChange:e.onChangeMobileBackgroundRepeat,className:"ugb--help-tip-background-image-repeat"})),wp.element.createElement(pp,null,wp.element.createElement(ca,{label:Object(S.__)("Image Size",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Auto",_.i18n),value:"auto"},{label:Object(S.__)("Cover",_.i18n),value:"cover"},{label:Object(S.__)("Contain",_.i18n),value:"contain"},{label:Object(S.__)("Custom",_.i18n),value:"custom"}],value:e.backgroundSize,onChange:e.onChangeBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(ca,{label:Object(S.__)("Image Size",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Auto",_.i18n),value:"auto"},{label:Object(S.__)("Cover",_.i18n),value:"cover"},{label:Object(S.__)("Contain",_.i18n),value:"contain"},{label:Object(S.__)("Custom",_.i18n),value:"custom"}],value:e.tabletBackgroundSize,onChange:e.onChangeTabletBackgroundSize,className:"ugb--help-tip-background-image-size"})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(ca,{label:Object(S.__)("Image Size",_.i18n),options:[{label:Object(S.__)("Default",_.i18n),value:""},{label:Object(S.__)("Auto",_.i18n),value:"auto"},{label:Object(S.__)("Cover",_.i18n),value:"cover"},{label:Object(S.__)("Contain",_.i18n),value:"contain"},{label:Object(S.__)("Custom",_.i18n),value:"custom"}],value:e.mobileBackgroundSize,onChange:e.onChangeMobileBackgroundSize,className:"ugb--help-tip-background-image-size"})),"custom"===e.backgroundSize&&wp.element.createElement(pp,null,wp.element.createElement(sa,{label:Object(S.__)("Custom Size",_.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.backgroundCustomSizeUnit,onChangeUnit:e.onChangeBackgroundCustomSizeUnit,value:e.backgroundCustomSize,onChange:e.onChangeBackgroundCustomSize,allowReset:!0})),"custom"===e.tabletBackgroundSize&&wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(sa,{label:Object(S.__)("Custom Size",_.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.tabletBackgroundCustomSizeUnit,onChangeUnit:e.onChangeTabletBackgroundCustomSizeUnit,value:e.tabletBackgroundCustomSize,onChange:e.onChangeTabletBackgroundCustomSize,allowReset:!0})),"custom"===e.mobileBackgroundSize&&wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(sa,{label:Object(S.__)("Custom Size",_.i18n),units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100],unit:e.mobileBackgroundCustomSizeUnit,onChangeUnit:e.onChangeMobileBackgroundCustomSizeUnit,value:e.mobileBackgroundCustomSize,onChange:e.onChangeMobileBackgroundCustomSize,allowReset:!0})),e.onChangeBackgroundImageBlendMode&&wp.element.createElement(mn,{label:Object(S.__)("Image Blend Mode",_.i18n),value:e.backgroundImageBlendMode,onChange:e.onChangeBackgroundImageBlendMode})))};uo.defaultProps={backgroundColorType:"",backgroundColor:"",backgroundColorOpacity:"",backgroundColor2:"",backgroundMediaID:"",backgroundMediaURL:"",tabletBackgroundMediaID:"",tabletBackgroundMediaURL:"",mobileBackgroundMediaID:"",mobileBackgroundMediaURL:"",backgroundTintStrength:"",fixedBackground:"",onChangeBackgroundColorType:function(){},onChangeBackgroundColor:function(){},onChangeBackgroundColorOpacity:function(){},onChangeBackgroundColor2:function(){},onChangeBackgroundMedia:function(e){e.url,e.id},onChangeTabletBackgroundMedia:function(e){e.url,e.id},onChangeMobileBackgroundMedia:function(e){e.url,e.id},onChangeBackgroundTintStrength:function(){},onChangeFixedBackground:function(){},labelBackgroundColorType:Object(S.__)("Background Color Type",_.i18n),labelBackgroundColor:Object(S.__)("Background Color",_.i18n),hasAdvancedGradient:!0,backgroundGradientDirection:"",backgroundGradientBlendMode:"",backgroundGradientLocation1:0,backgroundGradientLocation2:100,onResetAdvancedGradient:function(){},onChangeBackgroundGradientDirection:function(){},onChangeBackgroundGradientBlendMode:function(){},onChangeBackgroundGradientLocation1:function(){},onChangeBackgroundGradientLocation2:function(){},hasAdvancedBackground:!0,backgroundMediaAllowVideo:!0,backgroundPosition:"",tabletBackgroundPosition:"",mobileBackgroundPosition:"",backgroundRepeat:"",tabletBackgroundRepeat:"",mobileBackgroundRepeat:"",backgroundSize:"",tabletBackgroundSize:"",mobileBackgroundSize:"",backgroundCustomSize:"",tabletBackgroundCustomSize:"",mobileBackgroundCustomSize:"",backgroundCustomSizeUnit:"%",tabletBackgroundCustomSizeUnit:"%",mobileBackgroundCustomSizeUnit:"%",backgroundImageBlendMode:"",onResetAdvancedBackground:function(){},onChangeBackgroundPosition:function(){},onChangeTabletBackgroundPosition:function(){},onChangeMobileBackgroundPosition:function(){},onChangeBackgroundRepeat:function(){},onChangeTabletBackgroundRepeat:function(){},onChangeMobileBackgroundRepeat:function(){},onChangeBackgroundSize:function(){},onChangeTabletBackgroundSize:function(){},onChangeMobileBackgroundSize:function(){},onChangeBackgroundCustomSize:function(){},onChangeTabletBackgroundCustomSize:function(){},onChangeMobileBackgroundCustomSize:function(){},onChangeBackgroundCustomSizeUnit:function(){},onChangeTabletBackgroundCustomSizeUnit:function(){},onChangeMobileBackgroundCustomSizeUnit:function(){},onChangeBackgroundImageBlendMode:function(){}};var co=uo,po=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.blockAttributes[n(t)];return 0===r?r:r||a};return wp.element.createElement(co,M()({backgroundColorType:e.blockAttributes[n("BackgroundColorType")]||"",backgroundColor:e.blockAttributes[n("BackgroundColor")]||"",backgroundColorOpacity:e.blockAttributes[n("BackgroundColorOpacity")],backgroundColor2:e.blockAttributes[n("BackgroundColor2")]||"",backgroundMediaID:e.blockAttributes[n("BackgroundMediaID")]||"",backgroundMediaURL:e.blockAttributes[n("BackgroundMediaURL")]||"",tabletBackgroundMediaID:e.blockAttributes[n("TabletBackgroundMediaID")]||"",tabletBackgroundMediaURL:e.blockAttributes[n("TabletBackgroundMediaURL")]||"",mobileBackgroundMediaID:e.blockAttributes[n("MobileBackgroundMediaID")]||"",mobileBackgroundMediaURL:e.blockAttributes[n("MobileBackgroundMediaURL")]||"",backgroundTintStrength:e.blockAttributes[n("BackgroundTintStrength")],fixedBackground:e.blockAttributes[n("FixedBackground")]||"",onChangeBackgroundColorType:function(e){return t(r()({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(r()({},n("BackgroundColor"),e))},onChangeBackgroundColorOpacity:function(e){return t(r()({},n("BackgroundColorOpacity"),e))},onChangeBackgroundColor2:function(e){return t(r()({},n("BackgroundColor2"),e))},onChangeBackgroundMedia:function(e){var a,i=e.url,l=e.id;t((a={},r()(a,n("BackgroundMediaURL"),i),r()(a,n("BackgroundMediaID"),l),a))},onChangeTabletBackgroundMedia:function(e){var a,i=e.url,l=e.id;t((a={},r()(a,n("TabletBackgroundMediaURL"),i),r()(a,n("TabletBackgroundMediaID"),l),a))},onChangeMobileBackgroundMedia:function(e){var a,i=e.url,l=e.id;t((a={},r()(a,n("MobileBackgroundMediaURL"),i),r()(a,n("MobileBackgroundMediaID"),l),a))},onChangeBackgroundTintStrength:function(e,a){var i;t((i={},r()(i,n("BackgroundTintStrength"),e),r()(i,n("BackgroundColor"),a),i))},onChangeFixedBackground:function(e){return t(r()({},n("FixedBackground"),e))},backgroundGradientDirection:a("BackgroundGradientDirection",90),backgroundGradientBlendMode:a("BackgroundGradientBlendMode"),backgroundGradientLocation1:a("BackgroundGradientLocation1",0),backgroundGradientLocation2:a("BackgroundGradientLocation2",100),onChangeBackgroundGradientDirection:function(e){return t(r()({},n("BackgroundGradientDirection"),e))},onChangeBackgroundGradientBlendMode:function(e){return t(r()({},n("BackgroundGradientBlendMode"),e))},onChangeBackgroundGradientLocation1:function(e){return t(r()({},n("BackgroundGradientLocation1"),e))},onChangeBackgroundGradientLocation2:function(e){return t(r()({},n("BackgroundGradientLocation2"),e))},onResetAdvancedGradient:function(){var e;t((e={},r()(e,n("BackgroundGradientDirection"),""),r()(e,n("BackgroundGradientBlendMode"),""),r()(e,n("BackgroundGradientLocation1"),""),r()(e,n("BackgroundGradientLocation2"),""),e))},backgroundPosition:e.blockAttributes[n("BackgroundPosition")]||"",tabletBackgroundPosition:e.blockAttributes[n("TabletBackgroundPosition")]||"",mobileBackgroundPosition:e.blockAttributes[n("MobileBackgroundPosition")]||"",backgroundRepeat:e.blockAttributes[n("BackgroundRepeat")]||"",tabletBackgroundRepeat:e.blockAttributes[n("TabletBackgroundRepeat")]||"",mobileBackgroundRepeat:e.blockAttributes[n("MobileBackgroundRepeat")]||"",backgroundSize:e.blockAttributes[n("BackgroundSize")]||"",tabletBackgroundSize:e.blockAttributes[n("TabletBackgroundSize")]||"",mobileBackgroundSize:e.blockAttributes[n("MobileBackgroundSize")]||"",backgroundCustomSize:e.blockAttributes[n("BackgroundCustomSize")]||"",tabletBackgroundCustomSize:e.blockAttributes[n("TabletBackgroundCustomSize")]||"",mobileBackgroundCustomSize:e.blockAttributes[n("MobileBackgroundCustomSize")]||"",backgroundCustomSizeUnit:e.blockAttributes[n("BackgroundCustomSizeUnit")]||"%",tabletBackgroundCustomSizeUnit:e.blockAttributes[n("TabletBackgroundCustomSizeUnit")]||"%",mobileBackgroundCustomSizeUnit:e.blockAttributes[n("MobileBackgroundCustomSizeUnit")]||"%",backgroundImageBlendMode:e.blockAttributes[n("BackgroundImageBlendMode")]||"",onChangeBackgroundPosition:function(e){return t(r()({},n("BackgroundPosition"),e))},onChangeTabletBackgroundPosition:function(e){return t(r()({},n("TabletBackgroundPosition"),e))},onChangeMobileBackgroundPosition:function(e){return t(r()({},n("MobileBackgroundPosition"),e))},onChangeBackgroundRepeat:function(e){return t(r()({},n("BackgroundRepeat"),e))},onChangeTabletBackgroundRepeat:function(e){return t(r()({},n("TabletBackgroundRepeat"),e))},onChangeMobileBackgroundRepeat:function(e){return t(r()({},n("MobileBackgroundRepeat"),e))},onChangeBackgroundSize:function(e){return t(r()({},n("BackgroundSize"),e))},onChangeTabletBackgroundSize:function(e){return t(r()({},n("TabletBackgroundSize"),e))},onChangeMobileBackgroundSize:function(e){return t(r()({},n("MobileBackgroundSize"),e))},onChangeBackgroundCustomSize:function(e){return t(r()({},n("BackgroundCustomSize"),e))},onChangeTabletBackgroundCustomSize:function(e){return t(r()({},n("TabletBackgroundCustomSize"),e))},onChangeMobileBackgroundCustomSize:function(e){return t(r()({},n("MobileBackgroundCustomSize"),e))},onChangeBackgroundCustomSizeUnit:function(e){return t(r()({},n("BackgroundCustomSizeUnit"),e))},onChangeTabletBackgroundCustomSizeUnit:function(e){return t(r()({},n("TabletBackgroundCustomSizeUnit"),e))},onChangeMobileBackgroundCustomSizeUnit:function(e){return t(r()({},n("MobileBackgroundCustomSizeUnit"),e))},onChangeBackgroundImageBlendMode:function(e){return t(r()({},n("BackgroundImageBlendMode"),e))},onResetAdvancedBackground:function(){var e;t((e={},r()(e,n("BackgroundPosition"),""),r()(e,n("TabletBackgroundPosition"),""),r()(e,n("MobileBackgroundPosition"),""),r()(e,n("BackgroundRepeat"),""),r()(e,n("TabletBackgroundRepeat"),""),r()(e,n("MobileBackgroundRepeat"),""),r()(e,n("BackgroundSize"),""),r()(e,n("TabletBackgroundSize"),""),r()(e,n("MobileBackgroundSize"),""),r()(e,n("BackgroundCustomSize"),""),r()(e,n("TabletBackgroundCustomSize"),""),r()(e,n("MobileBackgroundCustomSize"),""),r()(e,n("BackgroundCustomSizeUnit"),"%"),r()(e,n("TabletBackgroundCustomSizeUnit"),"%"),r()(e,n("MobileBackgroundCustomSizeUnit"),"%"),r()(e,n("BackgroundImageBlendMode"),""),e))}},e))};po.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var fo=n(70),go=n.n(fo),mo=n(71),ho=n.n(mo),bo=n(72),vo=n.n(bo),yo=n(73),wo=n.n(yo),ko=function(e){var t=e.design?e.design:"basic",n=e.size?e.size:"normal",a="basic"===t;return wp.element.createElement(k.Fragment,null,e.onChangeUrl&&wp.element.createElement(gt,{label:Object(S.__)("Link / URL",_.i18n),value:e.url,onChange:e.onChangeUrl,placeholder:"http://"}),e.onChangeUrl&&e.onChangeNewTab&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Open link in new tab",_.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),e.onChangeUrl&&e.onChangeNoFollow&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Nofollow link",_.i18n),checked:e.noFollow,onChange:e.onChangeNoFollow}),e.onChangeUrl&&e.onChangeSponsored&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Sponsored",_.i18n),checked:e.sponsored,onChange:e.onChangeSponsored}),e.onChangeUrl&&e.onChangeUgc&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("UGC",_.i18n),checked:e.ugc,onChange:e.onChangeUgc}),e.onChangeUrl&&wp.element.createElement(Ll,null),e.onChangeDesign&&wp.element.createElement(qi,{label:Object(S.__)("Design",_.i18n),selected:t,options:[{label:Object(S.__)("Basic",_.i18n),value:"basic",image:go.a},{label:Object(S.__)("Ghost",_.i18n),value:"ghost",image:ho.a},{label:Object(S.__)("Plain",_.i18n),value:"plain",image:wo.a}].concat(s()(e.onChangeUseSocialColors?[]:[{label:Object(S.__)("Link",_.i18n),value:"link",image:vo.a}]),s()(Object(Q.applyFilters)("stackable.button-controls.layouts",[]))),onChange:e.onChangeDesign,columns:4}),wp.element.createElement(Ll,null),e.onChangeUseSocialColors&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Use social colors",_.i18n),checked:e.useSocialColors,onChange:e.onChangeUseSocialColors}),(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(k.Fragment,null,e.onChangeBackgroundColorType&&a&&wp.element.createElement(x.BaseControl,{id:"button-color-type",className:"ugb--help-tip-button-color-type"},wp.element.createElement(Qa,{controls:[{value:"",title:Object(S.__)("Single",_.i18n)},{value:"gradient",title:Object(S.__)("Gradient",_.i18n)}],value:e.backgroundColorType,onChange:e.onChangeBackgroundColorType,fullwidth:!1,isSmall:!0})),e.onChangeBackgroundColor&&"link"!==t&&wp.element.createElement(St,{label:e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a?Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),Object(S.__)("Button Color",_.i18n),1):Object(S.__)("Button Color",_.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(St,{label:Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),Object(S.__)("Button Color",_.i18n),2),value:e.backgroundColor2,onChange:e.onChangeBackgroundColor2}),e.onChangeBackgroundColor2&&"gradient"===e.backgroundColorType&&a&&wp.element.createElement(sa,{label:Object(S.__)("Gradient Direction (degrees)",_.i18n),value:e.backgroundGradientDirection,onChange:e.onChangeBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeTextColor&&a&&wp.element.createElement(St,{label:Object(S.__)("Text Color",_.i18n),value:e.textColor,onChange:e.onChangeTextColor})),"link"!==t&&wp.element.createElement(Ll,null),e.onChangeHoverGhostToNormal&&"ghost"===t&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Change to Normal Button on Hover",_.i18n),checked:e.hoverGhostToNormal,onChange:e.onChangeHoverGhostToNormal,className:"ugb--help-tip-button-to-normal"}),e.onChangeHoverEffect&&"link"!==t&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Hover Effect",_.i18n),value:e.hoverEffect,onChange:e.onChangeHoverEffect,options:[{value:"",label:Object(S.__)("None",_.i18n)},{value:"lift",label:Object(S.__)("Lift",_.i18n)},{value:"scale",label:Object(S.__)("Scale",_.i18n)},{value:"lift-scale",label:Object(S.__)("Lift & Scale",_.i18n)},{value:"scale-more",label:Object(S.__)("Scale More",_.i18n)},{value:"lift-scale-more",label:Object(S.__)("Lift & Scale More",_.i18n)}],className:"ugb--help-tip-button-hover-effect"}),e.onChangeOpacity&&wp.element.createElement(sa,{label:e.hoverOpacityLabel,value:e.hoverOpacity,onChange:e.onChangeHoverOpacity,min:0,max:1,step:.1,placeholder:"0.8",allowReset:!0,className:"ugb--help-tip-button-hover-opacity"}),e.hasHoverColors&&"link"!==t&&(!e.onChangeUseSocialColors||!e.useSocialColors)&&wp.element.createElement(Jl,{label:e.hoverColorsLabel,onReset:e.onResetHoverColors,allowReset:e.hoverBackgroundColor||e.hoverBackgroundColor2||e.hoverBackgroundGradientDirection||e.hoverTextColor,className:"ugb--help-tip-button-hover-color"},e.onChangeHoverBackgroundColor&&wp.element.createElement(St,{label:e.onChangeHoverBackgroundColor&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)?Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),Object(S.__)("Button Color",_.i18n),1):Object(S.__)("Button Color",_.i18n),value:e.hoverBackgroundColor,onChange:e.onChangeHoverBackgroundColor,className:"ugb--help-tip-button-hover-color"}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(St,{label:Object(S.sprintf)(Object(S._x)("%s #%d","Panel title",_.i18n),Object(S.__)("Button Color",_.i18n),2),value:e.hoverBackgroundColor2,onChange:e.onChangeHoverBackgroundColor2}),e.onChangeHoverBackgroundColor2&&("ghost"===t&&e.hoverGhostToNormal||"gradient"===e.backgroundColorType&&a)&&wp.element.createElement(sa,{label:Object(S.__)("Gradient Direction (degrees)",_.i18n),value:e.hoverBackgroundGradientDirection,onChange:e.onChangeHoverBackgroundGradientDirection,min:0,max:360,step:10,allowReset:!0,placeholder:"90",className:"ugb--help-tip-gradient-direction"}),e.onChangeHoverTextColor&&("ghost"===t&&e.hoverGhostToNormal||a)&&wp.element.createElement(St,{label:Object(S.__)("Text Color",_.i18n),value:e.hoverTextColor,onChange:e.onChangeHoverTextColor})),"link"!==t&&wp.element.createElement(Ll,null),e.hasTypography&&"link"!==t&&wp.element.createElement(so,{attrNameTemplate:e.attrNameTemplate,setAttributes:e.setAttributes,blockAttributes:e.blockAttributes,onChangeLineHeight:null,showSecondFontSize:!1,placeholder:e.placeholder}),e.onChangeSize&&(!e.onChangeDesign||"link"!==t)&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Button Size",_.i18n),value:n,options:[{value:"tiny",label:Object(S.__)("Tiny",_.i18n)},{value:"small",label:Object(S.__)("Small",_.i18n)},{value:"normal",label:Object(S.__)("Normal",_.i18n)},{value:"medium",label:Object(S.__)("Medium",_.i18n)},{value:"large",label:Object(S.__)("Large",_.i18n)}],onChange:e.onChangeSize,className:"ugb--help-tip-button-size"}),e.onChangeBorderRadius&&"link"!==t&&"plain"!==t&&wp.element.createElement(sa,{label:Object(S.__)("Border Radius",_.i18n),value:e.borderRadius,min:"0",max:"100",onChange:e.onChangeBorderRadius,allowReset:!0,placeholder:"4",className:"ugb--help-tip-button-border-radius"}),e.onChangePaddings&&"link"!==t&&"plain"!==t&&wp.element.createElement(As,{label:Object(S.__)("Vertical Padding",_.i18n),top:e.paddingTop,bottom:e.paddingBottom,onChange:e.onChangePaddings,enableLeft:!1,enableRight:!1,placeholder:[8,8],className:"ugb--help-tip-button-vertical-padding"}),e.onChangePaddings&&"link"!==t&&"plain"!==t&&wp.element.createElement(As,{label:Object(S.__)("Horizontal Padding",_.i18n),right:e.paddingRight,left:e.paddingLeft,onChange:e.onChangePaddings,enableTop:!1,enableBottom:!1,max:100,placeholder:[26,26],className:"ugb--help-tip-button-horizontal-padding"}),e.onChangeBorderWidth&&"ghost"===t&&wp.element.createElement(sa,{label:Object(S.__)("Border Width",_.i18n),value:e.borderWidth,min:"1",max:"6",onChange:e.onChangeBorderWidth,allowReset:!0,placeholder:"2"}),e.onChangeShadow&&(""===t||"basic"===t)&&wp.element.createElement(sa,{label:Object(S.__)("Shadow",_.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-button-shadow"}),e.onChangeOpacity&&wp.element.createElement(sa,{label:Object(S.__)("Opacity",_.i18n),value:e.opacity,onChange:e.onChangeOpacity,min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0"}),e.onChangeIcon&&"link"!==t&&wp.element.createElement(Ll,null),e.onChangeIcon&&"link"!==t&&wp.element.createElement(_l,{label:Object(S.__)("Icon",_.i18n),value:e.icon,onChange:e.onChangeIcon}),e.hasAdvancedIcon&&"link"!==t&&""!==e.icon&&wp.element.createElement(Jl,{label:Object(S.__)("Adv. Icon Settings",_.i18n),onReset:e.onResetAdvancedIcon,allowReset:e.iconPosition||""!==e.iconSize||""!==e.iconSpacing},e.onChangeIconSize&&wp.element.createElement(sa,{label:Object(S.__)("Icon Size",_.i18n),value:e.iconSize,onChange:e.onChangeIconSize,min:5,max:100,step:1,allowReset:!0}),e.onChangeIconPosition&&wp.element.createElement(x.SelectControl,{label:Object(S.__)("Icon Position",_.i18n),value:e.iconPosition,options:[{value:"",label:Object(S.__)("Left",_.i18n)},{value:"right",label:Object(S.__)("Right",_.i18n)}],onChange:e.onChangeIconPosition}),e.onChangeIconSpacing&&wp.element.createElement(sa,{label:Object(S.__)("Icon Spacing",_.i18n),value:e.iconSpacing,onChange:e.onChangeIconSpacing,min:0,max:50,step:1,allowReset:!0,placeholder:"16"})))};ko.defaultProps={hasTypography:!0,attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},design:"",onChangeDesign:function(){},url:"",newTab:"",noFollow:"",sponsored:"",ugc:"",onChangeUrl:function(){},onChangeNewTab:function(){},onChangeNoFollow:function(){},onChangeSponsored:function(){},onChangeUgc:function(){},size:"",onChangeSize:function(){},opacity:"",textColor:"",backgroundColorType:"",backgroundColor:"",backgroundColor2:"",backgroundGradientDirection:"",onChangeOpacity:function(){},onChangeTextColor:function(){},onChangeBackgroundColorType:function(){},onChangeBackgroundColor:function(){},onChangeBackgroundColor2:function(){},onChangeBackgroundGradientDirection:function(){},hasHoverColors:!0,onResetHoverColors:function(){},hoverEffect:"",hoverOpacity:"",hoverOpacityLabel:Object(S.__)("Hover Opacity",_.i18n),hoverTextColor:"",hoverColorsLabel:Object(S.__)("Hover Colors",_.i18n),hoverBackgroundColor:"",hoverBackgroundColor2:"",hoverBackgroundGradientDirection:"",hoverGhostToNormal:!1,onChangeHoverEffect:function(){},onChangeHoverOpacity:function(){},onChangeHoverTextColor:function(){},onChangeHoverBackgroundColor:function(){},onChangeHoverBackgroundColor2:function(){},onChangeHoverBackgroundGradientDirection:function(){},onChangeHoverGhostToNormal:function(){},borderRadius:"",onChangeBorderRadius:function(){},borderWidth:"",onChangeBorderWidth:function(){},shadow:"",onChangeShadow:function(){},paddingTop:"",paddingRight:"",paddingBottom:"",paddingLeft:"",onChangePaddings:function(){},hasAdvancedIcon:!0,onResetAdvancedIcon:function(){},icon:"",iconSize:"",iconPosition:"",iconSpacing:"",onChangeIcon:function(){},onChangeIconSize:function(){},onChangeIconPosition:function(){},onChangeIconSpacing:function(){},useSocialColors:!0,onChangeUseSocialColors:null};var Co=ko,Oo=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(Co,M()({design:e.blockAttributes[n("Design")]||"",onChangeDesign:function(e){return t(r()({},n("Design"),e))},url:e.blockAttributes[n("Url")]||"",newTab:e.blockAttributes[n("NewTab")]||"",noFollow:e.blockAttributes[n("NoFollow")]||"",sponsored:e.blockAttributes[n("Sponsored")]||"",ugc:e.blockAttributes[n("Ugc")]||"",onChangeUrl:function(e){return t(r()({},n("Url"),e))},onChangeNewTab:function(e){return t(r()({},n("NewTab"),e))},onChangeNoFollow:function(e){return t(r()({},n("NoFollow"),e))},onChangeSponsored:function(e){return t(r()({},n("Sponsored"),e))},onChangeUgc:function(e){return t(r()({},n("Ugc"),e))},size:e.blockAttributes[n("Size")]||"",onChangeSize:function(e){return t(r()({},n("Size"),e))},opacity:e.blockAttributes[n("Opacity")]||"",textColor:e.blockAttributes[n("TextColor")]||"",backgroundColorType:e.blockAttributes[n("BackgroundColorType")]||"",backgroundColor:e.blockAttributes[n("BackgroundColor")]||"",backgroundColor2:e.blockAttributes[n("BackgroundColor2")]||"",backgroundGradientDirection:a("BackgroundGradientDirection"),onChangeOpacity:function(e){return t(r()({},n("Opacity"),e))},onChangeTextColor:function(e){return t(r()({},n("TextColor"),e))},onChangeBackgroundColorType:function(e){return t(r()({},n("BackgroundColorType"),e))},onChangeBackgroundColor:function(e){return t(r()({},n("BackgroundColor"),e))},onChangeBackgroundColor2:function(e){return t(r()({},n("BackgroundColor2"),e))},onChangeBackgroundGradientDirection:function(e){return t(r()({},n("BackgroundGradientDirection"),e))},onResetHoverColors:function(){var e;t((e={},r()(e,n("HoverBackgroundColor"),""),r()(e,n("HoverBackgroundColor2"),""),r()(e,n("HoverBackgroundGradientDirection"),""),r()(e,n("HoverTextColor"),""),e))},hoverEffect:e.blockAttributes[n("HoverEffect")]||"",hoverOpacity:e.blockAttributes[n("HoverOpacity")]||"",hoverOpacityLabel:e.hoverOpacityLabel,hoverColorsLabel:e.hoverColorsLabel,hoverTextColor:e.blockAttributes[n("HoverTextColor")]||"",hoverBackgroundColor:e.blockAttributes[n("HoverBackgroundColor")]||"",hoverBackgroundColor2:e.blockAttributes[n("HoverBackgroundColor2")]||"",hoverBackgroundGradientDirection:a("HoverBackgroundGradientDirection"),hoverGhostToNormal:e.blockAttributes[n("HoverGhostToNormal")]||"",onChangeHoverEffect:function(e){return t(r()({},n("HoverEffect"),e))},onChangeHoverOpacity:function(e){return t(r()({},n("HoverOpacity"),e))},onChangeHoverTextColor:function(e){return t(r()({},n("HoverTextColor"),e))},onChangeHoverBackgroundColor:function(e){return t(r()({},n("HoverBackgroundColor"),e))},onChangeHoverBackgroundColor2:function(e){return t(r()({},n("HoverBackgroundColor2"),e))},onChangeHoverBackgroundGradientDirection:function(e){return t(r()({},n("HoverBackgroundGradientDirection"),e))},onChangeHoverGhostToNormal:function(e){return t(r()({},n("HoverGhostToNormal"),e))},borderRadius:e.blockAttributes[n("BorderRadius")],borderWidth:e.blockAttributes[n("BorderWidth")],shadow:e.blockAttributes[n("Shadow")],onChangeBorderRadius:function(e){return t(r()({},n("BorderRadius"),e))},onChangeBorderWidth:function(e){return t(r()({},n("BorderWidth"),e))},onChangeShadow:function(e){return t(r()({},n("Shadow"),e))},paddingTop:a("PaddingTop"),paddingRight:a("PaddingRight"),paddingBottom:a("PaddingBottom"),paddingLeft:a("PaddingLeft"),onChangePaddings:function(e){var a={};void 0!==e.top&&(a[n("PaddingTop")]=""!==e.top?parseInt(e.top,10):""),void 0!==e.right&&(a[n("PaddingRight")]=""!==e.right?parseInt(e.right,10):""),void 0!==e.bottom&&(a[n("PaddingBottom")]=""!==e.bottom?parseInt(e.bottom,10):""),void 0!==e.left&&(a[n("PaddingLeft")]=""!==e.left?parseInt(e.left,10):""),t(a)},icon:e.blockAttributes[n("Icon")]||"",onChangeIcon:e.enableIcon?function(e){return t(r()({},n("Icon"),e))}:null,onResetAdvancedIcon:function(){var e;t((e={},r()(e,n("IconSize"),""),r()(e,n("IconPosition"),""),r()(e,n("IconSpacing"),""),e))},iconSize:e.blockAttributes[n("IconSize")]||"",iconPosition:e.blockAttributes[n("IconPosition")]||"",iconSpacing:e.blockAttributes[n("IconSpacing")],onChangeIconSize:function(e){return t(r()({},n("IconSize"),e))},onChangeIconPosition:function(e){return t(r()({},n("IconPosition"),e))},onChangeIconSpacing:function(e){return t(r()({},n("IconSpacing"),e))}},e))};Oo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},enableIcon:!0,hoverOpacityLabel:Object(S.__)("Hover Opacity",_.i18n),hoverColorsLabel:Object(S.__)("Hover Colors",_.i18n)};var xo=Oo,_o=function(e){return wp.element.createElement(k.Fragment,null,e.onChangeBorderType&&wp.element.createElement(Qa,{label:Object(S.__)("Borders",_.i18n),controls:[{value:"",title:Object(S.__)("None",_.i18n)},{value:"solid",title:Object(S.__)("Solid",_.i18n)},{value:"dashed",title:Object(S.__)("Dashed",_.i18n)},{value:"dotted",title:Object(S.__)("Dotted",_.i18n)}],className:"ugb-border-controls__border-type-toolbar",value:e.borderType,onChange:e.onChangeBorderType,fullwidth:!0,isSmall:!0}),e.onChangeBorderWidth&&e.borderType&&wp.element.createElement(Uo,{label:Object(S.__)("Border Width"),units:["px"],min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,valueDesktop:{top:e.borderWidthTop,right:e.borderWidthRight,bottom:e.borderWidthBottom,left:e.borderWidthLeft},onChangeDesktop:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):"",borderType:e.borderType?void 0:"solid"})},valueTablet:{top:e.tabletBorderWidthTop,right:e.tabletBorderWidthRight,bottom:e.tabletBorderWidthBottom,left:e.tabletBorderWidthLeft},onChangeTablet:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeTabletBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},valueMobile:{top:e.mobileBorderWidthTop,right:e.mobileBorderWidthRight,bottom:e.mobileBorderWidthBottom,left:e.mobileBorderWidthLeft},onChangeMobile:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeMobileBorderWidth({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},placeholder:"1",placeholderTop:"1",placeholderLeft:"1",placeholderBottom:"1",placeholderRight:"1"}),e.onChangeBorderColor&&e.borderType&&wp.element.createElement(St,{value:e.borderColor,onChange:function(t){e.onChangeBorderColor({color:t,borderType:e.borderType?void 0:"solid"})},label:Object(S.__)("Border Color",_.i18n)}))};_o.defaultProps={onResetBorder:function(){},borderType:"",onChangeBorderType:function(){},borderWidthTop:"",borderWidthRight:"",borderWidthBottom:"",borderWidthLeft:"",tabletBorderWidthTop:"",tabletBorderWidthRight:"",tabletBorderWidthBottom:"",tabletBorderWidthLeft:"",mobileBorderWidthTop:"",mobileBorderWidthRight:"",mobileBorderWidthBottom:"",mobileBorderWidthLeft:"",onChangeBorderWidth:function(){},onChangeTabletBorderWidth:function(){},onChangeMobileBorderWidth:function(){},borderColor:"",onChangeBorderColor:function(){}};var So=_o,Eo=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(So,M()({borderType:a("BorderType"),onChangeBorderType:function(e){return t(r()({},n("BorderType"),e))},onResetBorder:function(){t(r()({},n("BorderType"),""))},borderWidthTop:a("BorderWidthTop"),borderWidthRight:a("BorderWidthRight"),borderWidthBottom:a("BorderWidthBottom"),borderWidthLeft:a("BorderWidthLeft"),tabletBorderWidthTop:a("TabletBorderWidthTop"),tabletBorderWidthRight:a("TabletBorderWidthRight"),tabletBorderWidthBottom:a("TabletBorderWidthBottom"),tabletBorderWidthLeft:a("TabletBorderWidthLeft"),mobileBorderWidthTop:a("MobileBorderWidthTop"),mobileBorderWidthRight:a("MobileBorderWidthRight"),mobileBorderWidthBottom:a("MobileBorderWidthBottom"),mobileBorderWidthLeft:a("MobileBorderWidthLeft"),onChangeBorderWidth:function(e){var a,i=e.top,l=e.right,o=e.bottom,s=e.left,u=e.borderType,c=(a={},r()(a,n("BorderWidthTop"),i),r()(a,n("BorderWidthRight"),l),r()(a,n("BorderWidthBottom"),o),r()(a,n("BorderWidthLeft"),s),a);u&&(c[n("BorderType")]=u),t(c)},onChangeTabletBorderWidth:function(e){var a,i=e.top,l=e.right,o=e.bottom,s=e.left;t((a={},r()(a,n("TabletBorderWidthTop"),i),r()(a,n("TabletBorderWidthRight"),l),r()(a,n("TabletBorderWidthBottom"),o),r()(a,n("TabletBorderWidthLeft"),s),a))},onChangeMobileBorderWidth:function(e){var a,i=e.top,l=e.right,o=e.bottom,s=e.left;t((a={},r()(a,n("MobileBorderWidthTop"),i),r()(a,n("MobileBorderWidthRight"),l),r()(a,n("MobileBorderWidthBottom"),o),r()(a,n("MobileBorderWidthLeft"),s),a))},borderColor:a("BorderColor"),onChangeBorderColor:function(e){var a=e.color,i=e.borderType,l=r()({},n("BorderColor"),a);i&&(l[n("BorderType")]=i),t(l)}},e))};Eo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var jo=n(74),To=n.n(jo),Po=n(75),Bo=n.n(Po),Mo=n(76),No=n.n(Mo),Io=function(e){var t=e.design?e.design:"basic",n="shaped"===t||"outlined"===t;return wp.element.createElement(k.Fragment,null,e.onChangeIcon&&wp.element.createElement(_l,{label:Object(S.__)("Icon",_.i18n),value:e.icon,onChange:e.onChangeIcon}),e.onChangeDesign&&wp.element.createElement(qi,{label:Object(S.__)("Design",_.i18n),selected:e.design,columns:3,options:[{label:Object(S.__)("Plain",_.i18n),value:"plain",image:To.a},{label:Object(S.__)("Shaped",_.i18n),value:"shaped",image:Bo.a},{label:Object(S.__)("Outlined",_.i18n),value:"outlined",image:No.a}].concat(s()(Object(Q.applyFilters)("stackable.icon-controls.edit.layouts",[]))),onChange:e.onChangeDesign}),_.showProNotice&&wp.element.createElement(gs,{title:Object(S.__)("Say Hello to Gorgeous Icons 👋",_.i18n),description:Object(S.__)("Liven up your icons with gradient fills, multiple colors and background shapes. This feature is only available on Stackable Premium",_.i18n)}),_.showProNotice&&wp.element.createElement(x.BaseControl,{label:Object(S.__)("Icon Color Type",_.i18n),id:"icon-color-type"},wp.element.createElement(Qa,{controls:[{value:"",title:Object(S.__)("Single",_.i18n)},{value:"gradient",title:Object(S.__)("Gradient",_.i18n),className:"ugb--is-premium",disabled:!0},{value:"multicolor",title:Object(S.__)("Multicolor",_.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(Q.applyFilters)("stackable.icon-controls.edit.color",wp.element.createElement(k.Fragment,null,e.onChangeColor&&wp.element.createElement(St,{label:Object(S.__)("Icon Color",_.i18n),value:e.color,onChange:e.onChangeColor})),e),e.onChangeColor&&e.onChangeDesign&&wp.element.createElement(Ll,null),n&&e.onChangeBackgroundColor&&wp.element.createElement(k.Fragment,null,_.showProNotice&&e.onChangeBackgroundColorType&&"outlined"!==e.design&&wp.element.createElement(x.BaseControl,{label:Object(S.__)("Icon Shape / Outline Color",_.i18n),id:"icon-shape-color-type"},wp.element.createElement(Qa,{controls:[{value:"",title:Object(S.__)("Single",_.i18n)},{value:"gradient",title:Object(S.__)("Gradient",_.i18n),className:"ugb--is-premium",disabled:!0}],value:"",fullwidth:!1,isSmall:!0})),Object(Q.applyFilters)("stackable.icon-controls.edit.background-color",wp.element.createElement(k.Fragment,null,e.onChangeBackgroundColor&&wp.element.createElement(St,{label:Object(S.__)("Icon Shape / Outline Color",_.i18n),value:e.backgroundColor,onChange:e.onChangeBackgroundColor})),e),e.onChangeBorderRadius&&wp.element.createElement(sa,{label:"shaped"===e.design?Object(S.__)("Icon Shape Border Radius",_.i18n):Object(S.__)("Outline Border Radius",_.i18n),value:e.borderRadius,onChange:e.onChangeBorderRadius,min:0,max:50,step:1,allowReset:!0,placeholder:50}),e.onChangePadding&&wp.element.createElement(sa,{label:"shaped"===e.design?Object(S.__)("Icon Shape Padding",_.i18n):Object(S.__)("Outline Padding",_.i18n),value:e.padding,onChange:e.onChangePadding,min:0,max:150,step:1,allowReset:!0,placeholder:20}),"shaped"===t&&e.onChangeShadow&&wp.element.createElement(sa,{label:Object(S.__)("Shadow / Outline",_.i18n),value:e.shadow,onChange:e.onChangeShadow,min:0,max:9,allowReset:!0,placeholder:"0",className:"ugb--help-tip-general-shadow"}),"outlined"===t&&e.onChangeOutlineWidth&&wp.element.createElement(sa,{label:Object(S.__)("Outline Width",_.i18n),value:e.outlineWidth,onChange:e.onChangeOutlineWidth,min:0,max:10,step:1,allowReset:!0,placeholder:"3"}),e.onChangeBackgroundColorType&&wp.element.createElement(Ll,null)),e.onChangeSize&&wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,null,wp.element.createElement(sa,{label:Object(S.__)("Icon Size",_.i18n),value:e.size,max:e.sizeMax,onChange:e.onChangeSize,allowReset:!0,placeholder:"50"})),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(sa,{label:Object(S.__)("Icon Size",_.i18n),value:e.tabletSize,max:e.sizeMax,onChange:e.onChangeTabletSize,allowReset:!0,placeholder:e.size||50})),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(sa,{label:Object(S.__)("Icon Size",_.i18n),value:e.mobileSize,max:e.sizeMax,onChange:e.onChangeMobileSize,allowReset:!0,placeholder:e.tabletSize||e.size||50}))),e.onChangeOpacity&&wp.element.createElement(sa,{label:Object(S.__)("Icon Opacity",_.i18n),value:e.opacity,min:0,max:1,step:.1,onChange:e.onChangeOpacity,allowReset:!0,placeholder:"1.0"}),e.onChangeRotation&&wp.element.createElement(sa,{label:Object(S.__)("Icon Rotation",_.i18n),value:e.rotation,min:0,max:360,onChange:e.onChangeRotation,allowReset:!0,placeholder:"0"}),Object(Q.applyFilters)("stackable.icon-controls.edit.after",null,e))};Io.defaultProps={icon:"",onChangeIcon:function(){},design:"",onChangeDesign:function(){},colorType:"",onChangeColorType:function(){},color:"",onChangeColor:function(){},color2:"",onChangeColor2:function(){},colorGradientDirection:"",onChangeColorGradientDirection:function(){},numPaths:"",color3:"",onChangeColor3:function(){},color4:"",onChangeColor4:function(){},color5:"",onChangeColor5:function(){},color6:"",onChangeColor6:function(){},color7:"",onChangeColor7:function(){},color8:"",onChangeColor8:function(){},color9:"",onChangeColor9:function(){},color10:"",onChangeColor10:function(){},multiOpacity1:"",onChangeMultiOpacity1:function(){},multiOpacity2:"",onChangeMultiOpacity2:function(){},multiOpacity3:"",onChangeMultiOpacity3:function(){},multiOpacity4:"",onChangeMultiOpacity4:function(){},multiOpacity5:"",onChangeMultiOpacity5:function(){},multiOpacity6:"",onChangeMultiOpacity6:function(){},multiOpacity7:"",onChangeMultiOpacity7:function(){},multiOpacity8:"",onChangeMultiOpacity8:function(){},multiOpacity9:"",onChangeMultiOpacity9:function(){},multiOpacity10:"",onChangeMultiOpacity10:function(){},borderRadius:"",onChangeBorderRadius:function(){},padding:"",onChangePadding:function(){},shadow:"",onChangeShadow:function(){},outlineWidth:"",onChangeOutlineWidth:function(){},backgroundColorType:"",onChangeBackgroundColorType:function(){},backgroundColor:"",onChangeBackgroundColor:function(){},backgroundColor2:"",onChangeBackgroundColor2:function(){},backgroundColorGradientDirection:"",onChangeBackgroundColorGradientDirection:function(){},size:"",tabletSize:"",mobileSize:"",sizeMax:300,onChangeSize:function(){},onChangeTabletSize:function(){},onChangeMobileSize:function(){},opacity:"",onChangeOpacity:function(){},rotation:"",onChangeRotation:function(){},showBackgroundShape:"",onChangeShowBackgroundShape:function(){},backgroundShape:"",onChangeBackgroundShape:function(){},backgroundShapeSize:"",onChangeBackgroundShapeSize:function(){},backgroundShapeColor:"",onChangeBackgroundShapeColor:function(){},backgroundShapeOffsetHorizontal:"",onChangeBackgroundShapeHorizontalOffset:function(){},backgroundShapeOffsetVertical:"",onChangeBackgroundShapeVerticalOffset:function(){}};var Do=Io,Ro=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},a=_e(e.blockAttributes,n,"");return wp.element.createElement(Do,M()({icon:a("Icon"),onChangeIcon:function(e){return t(r()({},n("Icon"),e))},design:a("Design")||"plain",onChangeDesign:function(e){return t(r()({},n("Design"),e))},colorType:a("ColorType"),onChangeColorType:function(e){return t(r()({},n("ColorType"),e))},color:a("Color"),onChangeColor:function(e){return t(r()({},n("Color"),e))},color2:a("Color2"),onChangeColor2:function(e){return t(r()({},n("Color2"),e))},colorGradientDirection:a("ColorGradientDirection"),onChangeColorGradientDirection:function(e){return t(r()({},n("ColorGradientDirection"),e))},color3:a("Color3"),onChangeColor3:function(e){return t(r()({},n("Color3"),e))},color4:a("Color4"),onChangeColor4:function(e){return t(r()({},n("Color4"),e))},color5:a("Color5"),onChangeColor5:function(e){return t(r()({},n("Color5"),e))},color6:a("Color6"),onChangeColor6:function(e){return t(r()({},n("Color6"),e))},color7:a("Color7"),onChangeColor7:function(e){return t(r()({},n("Color7"),e))},color8:a("Color8"),onChangeColor8:function(e){return t(r()({},n("Color8"),e))},color9:a("Color9"),onChangeColor9:function(e){return t(r()({},n("Color9"),e))},color10:a("Color10"),onChangeColor10:function(e){return t(r()({},n("Color10"),e))},multiOpacity1:a("MultiOpacity1"),onChangeMultiOpacity1:function(e){return t(r()({},n("MultiOpacity1"),e))},multiOpacity2:a("MultiOpacity2"),onChangeMultiOpacity2:function(e){return t(r()({},n("MultiOpacity2"),e))},multiOpacity3:a("MultiOpacity3"),onChangeMultiOpacity3:function(e){return t(r()({},n("MultiOpacity3"),e))},multiOpacity4:a("MultiOpacity4"),onChangeMultiOpacity4:function(e){return t(r()({},n("MultiOpacity4"),e))},multiOpacity5:a("MultiOpacity5"),onChangeMultiOpacity5:function(e){return t(r()({},n("MultiOpacity5"),e))},multiOpacity6:a("MultiOpacity6"),onChangeMultiOpacity6:function(e){return t(r()({},n("MultiOpacity6"),e))},multiOpacity7:a("MultiOpacity7"),onChangeMultiOpacity7:function(e){return t(r()({},n("MultiOpacity7"),e))},multiOpacity8:a("MultiOpacity8"),onChangeMultiOpacity8:function(e){return t(r()({},n("MultiOpacity8"),e))},multiOpacity9:a("MultiOpacity9"),onChangeMultiOpacity9:function(e){return t(r()({},n("MultiOpacity9"),e))},multiOpacity10:a("MultiOpacity10"),onChangeMultiOpacity10:function(e){return t(r()({},n("MultiOpacity10"),e))},borderRadius:a("BorderRadius"),onChangeBorderRadius:function(e){return t(r()({},n("BorderRadius"),e))},padding:a("Padding"),onChangePadding:function(e){return t(r()({},n("Padding"),e))},outlineWidth:a("OutlineWidth"),onChangeOutlineWidth:function(e){return t(r()({},n("OutlineWidth"),e))},shadow:a("Shadow"),onChangeShadow:function(e){return t(r()({},n("Shadow"),e))},backgroundColorType:a("BackgroundColorType"),onChangeBackgroundColorType:function(e){return t(r()({},n("BackgroundColorType"),e))},backgroundColor:a("BackgroundColor"),onChangeBackgroundColor:function(e){return t(r()({},n("BackgroundColor"),e))},backgroundColor2:a("BackgroundColor2"),onChangeBackgroundColor2:function(e){return t(r()({},n("BackgroundColor2"),e))},backgroundColorGradientDirection:a("BackgroundColorGradientDirection"),onChangeBackgroundColorGradientDirection:function(e){return t(r()({},n("BackgroundColorGradientDirection"),e))},size:a("Size"),tabletSize:a("TabletSize"),mobileSize:a("MobileSize"),sizeMax:e.sizeMax,onChangeSize:function(e){return t(r()({},n("Size"),e))},onChangeTabletSize:function(e){return t(r()({},n("TabletSize"),e))},onChangeMobileSize:function(e){return t(r()({},n("MobileSize"),e))},opacity:a("Opacity"),onChangeOpacity:function(e){return t(r()({},n("Opacity"),e))},rotation:a("Rotation"),onChangeRotation:function(e){return t(r()({},n("Rotation"),e))},showBackgroundShape:a("ShowBackgroundShape"),onChangeShowBackgroundShape:function(e){return t(r()({},n("ShowBackgroundShape"),e))},backgroundShape:a("BackgroundShape")||"blob1",onChangeBackgroundShape:function(e){return t(r()({},n("BackgroundShape"),e))},backgroundShapeOpacity:a("BackgroundShapeOpacity"),onChangeBackgroundShapeOpacity:function(e){return t(r()({},n("BackgroundShapeOpacity"),e))},backgroundShapeSize:a("BackgroundShapeSize"),onChangeBackgroundShapeSize:function(e){return t(r()({},n("BackgroundShapeSize"),e))},backgroundShapeColor:a("BackgroundShapeColor"),onChangeBackgroundShapeColor:function(e){return t(r()({},n("BackgroundShapeColor"),e))},backgroundShapeOffsetHorizontal:a("BackgroundShapeOffsetHorizontal"),onChangeBackgroundShapeHorizontalOffset:function(e){return t(r()({},n("BackgroundShapeOffsetHorizontal"),e))},backgroundShapeOffsetVertical:a("BackgroundShapeOffsetVertical"),onChangeBackgroundShapeVerticalOffset:function(e){return t(r()({},n("BackgroundShapeOffsetVertical"),e))}},e))};Ro.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Ao=function(e){return wp.element.createElement(k.Fragment,null,e.socialUrlFields&&wp.element.createElement(k.Fragment,null,Object.keys(Ee).map(function(t){return wp.element.createElement(x.TextControl,{key:t,className:"ugb-social-url-text-control",label:Object(S.sprintf)(Object(S._x)("%s Link","name",_.i18n),Ee[t].label),value:e["".concat(t,"Url")],onChange:e["onChange".concat(Object(R.upperFirst)(t),"Url")],placeholder:"http://"})})),e.onChangeNewTab&&wp.element.createElement(x.ToggleControl,{label:Object(S.__)("Open link in new tab",_.i18n),checked:e.newTab,onChange:e.onChangeNewTab}),wp.element.createElement(Ll,null),wp.element.createElement(xo,{attrNameTemplate:e.attrNameTemplate,setAttributes:e.setAttributes,blockAttributes:e.blockAttributes,useSocialColors:e.useSocialColors,onChangeUseSocialColors:e.onChangeUseSocialColors,onChangeUrl:!1,onChangeNewTab:!1,onChangeNoFollow:!1,onChangeIcon:!1,hasTypography:!1}))};Ao.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{},socialUrlFields:!0,newTab:!1,onChangeNewTab:function(){},useSocialColors:!0,onChangeUseSocialColors:function(){}};var zo=Ao,Lo=function(e){var t=e.setAttributes,n=function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))};return wp.element.createElement(zo,M()({newTab:e.blockAttributes[n("NewTab")]||"",onChangeNewTab:function(e){return t(r()({},n("NewTab"),e))},useSocialColors:e.blockAttributes[n("UseSocialColors")]||"",onChangeUseSocialColors:function(e){return t(r()({},n("UseSocialColors"),e))}},e))};Lo.defaultProps={attrNameTemplate:"%s",setAttributes:function(){},blockAttributes:{}};var Fo=function(e){var t=Object(R.pick)(e,["label","units","screens","defaultLocked","enableTop","enableRight","enableBottom","enableLeft","className","sliderMax","sliderMin"]),n=Array.isArray(e.min)?e.min:[e.min,e.min,e.min],a=Array.isArray(e.max)?e.max:[e.max,e.max,e.max],r=Array.isArray(e.sliderMin)?e.sliderMin:[e.sliderMin,e.sliderMin,e.sliderMin],i=Array.isArray(e.sliderMax)?e.sliderMax:[e.sliderMax,e.sliderMax,e.sliderMax],l=Array.isArray(e.step)?e.step:[e.step,e.step,e.step];return wp.element.createElement(k.Fragment,null,wp.element.createElement(pp,{screen:"desktop"},wp.element.createElement(As,M()({},t,{min:n[0],max:a[0],sliderMin:r[0],sliderMax:i[0],step:l[0],top:e.valueDesktop.top,right:e.valueDesktop.right,bottom:e.valueDesktop.bottom,left:e.valueDesktop.left,unit:e.valueDesktopUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeDesktop({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeDesktopUnit(t)},placeholder:e.placeholder,placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),wp.element.createElement(pp,{screen:"tablet"},wp.element.createElement(As,M()({},t,{min:n[1],max:a[1],sliderMin:r[1],sliderMax:i[1],step:l[1],top:e.valueTablet.top,right:e.valueTablet.right,bottom:e.valueTablet.bottom,left:e.valueTablet.left,unit:e.valueTabletUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeTablet({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeTabletUnit(t)}}))),wp.element.createElement(pp,{screen:"mobile"},wp.element.createElement(As,M()({},t,{min:n[2],max:a[2],sliderMin:r[2],sliderMax:i[2],step:l[2],top:e.valueMobile.top,right:e.valueMobile.right,bottom:e.valueMobile.bottom,left:e.valueMobile.left,unit:e.valueMobileUnit||e.units[0],onChange:function(t){var n=t.top,a=t.right,r=t.bottom,i=t.left;e.onChangeMobile({top:n||0===n?parseInt(n,10):"",right:a||0===a?parseInt(a,10):"",bottom:r||0===r?parseInt(r,10):"",left:i||0===i?parseInt(i,10):""})},onChangeUnit:function(t){return e.onChangeMobileUnit(t)}}))))};Fo.defaultProps={label:Object(S.__)("Spacing",_.i18n),defaultLocked:!0,units:["px","em","%"],screens:["desktop","tablet","mobile"],min:0,max:1/0,sliderMax:null,sliderMin:null,step:1,enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,valueDesktop:{},valueTablet:{},valueMobile:{},valueDesktopUnit:"",valueTabletUnit:"",valueMobileUnit:"",onChangeDesktop:function(){},onChangeTablet:function(){},onChangeMobile:function(){},onChangeDesktopUnit:function(){},onChangeTabletUnit:function(){},onChangeMobileUnit:function(){},placeholderTop:"60",placeholderLeft:"35",placeholderBottom:"60",placeholderRight:"35",placeholder:"",className:"ugb--help-tip-advanced-column-paddings"};var Uo=Fo;function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Go=function(e,t){var n=me(t||"blob1");return n?wp.element.createElement("div",{className:"ugb-icon__bg-shape-wrapper"},e,wp.element.createElement(n,{className:"ugb-icon__bg-shape"})):e},Wo=function(e){var t=Object(Q.applyFilters)("stackable.svg-icon.extract-svg",e);return t.match(/^<svg(.*?)<\/svg>$/g)?t:t.match(/<svg/)?(t.match(/<svg.*?<\/svg>/g)||[t])[0]:t},qo=function(e){var t=Vo({},e,{value:"string"==typeof e.value?Wo(e.value):e.value}),n=P()(["ugb-icon-inner-svg",e.className],r()({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(Nm,M()({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var i=P()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],r()({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:i},a)}return e.showBackgroundShape&&(a=Go(a,e.backgroundShape)),a=Object(Q.applyFilters)("stackable.component.svg-icon",a,t)};qo.defaultProps={className:"",value:"",design:"",colorType:"",showBackgroundShape:!1,backgroundShape:"",shadow:"",gradientColor1:"",gradientColor2:"",gradientDirection:0},(qo.Content=function(e){var t=Vo({},e,{value:"string"==typeof e.value?Wo(e.value):e.value}),n=P()(["ugb-icon-inner-svg",e.className],r()({},"ugb-icon--".concat(e.colorType),e.colorType&&"single"!==e.colorType)),a=wp.element.createElement(Nm.Content,M()({},t,{className:n}));if("shaped"===e.design||"outlined"===e.design){var i=P()(["ugb-icon__design-wrapper","ugb-icon__design-".concat(e.design)],r()({},"ugb--shadow-".concat(e.shadow),e.shadow&&"shaped"===e.design));a=wp.element.createElement("div",{className:i},a)}return e.showBackgroundShape&&(a=Go(a,e.backgroundShape)),a=Object(Q.applyFilters)("stackable.component.svg-icon",a,t)}).defaultProps=Vo({},qo.defaultProps);var Ko=qo,$o=function(e){var t=_e(e.blockAttributes,function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(Ko,M()({value:t("Value"),design:t("Design"),colorType:t("ColorType"),showBackgroundShape:t("ShowBackgroundShape"),shadow:t("Shadow"),backgroundShape:t("BackgroundShape"),gradientColor1:t("Color"),gradientColor2:t("Color2"),gradientDirection:t("ColorGradientDirection")},e))};$o.defaultProps={attrNameTemplate:"%s",blockAttributes:{}},$o.Content=function(e){var t=_e(e.blockAttributes,function(t){return Object(R.camelCase)(Object(S.sprintf)(e.attrNameTemplate,t))},"");return wp.element.createElement(Ko.Content,M()({value:t("Value"),design:t("Design"),colorType:t("ColorType"),showBackgroundShape:t("ShowBackgroundShape"),shadow:t("Shadow"),backgroundShape:t("BackgroundShape"),gradientColor1:t("Color"),gradientColor2:t("Color2"),gradientDirection:t("ColorGradientDirection")},e))},$o.defaultProps={attrNameTemplate:"%s",blockAttributes:{}};var Yo=$o,Qo=Object(Ot.withInstanceId)(function(e){var t=Object(k.useState)(!1),n=l()(t,2),a=n[0],r=n[1],i=Object(k.useState)(!1),o=l()(i,2),s=o[0],u=o[1],c=e.instanceId,p=e.isOpen,f=e.onChange,d=Pt()(e,["instanceId","isOpen","onChange"]);return Object(k.useEffect)(function(){e.onToggle(a)},[a]),wp.element.createElement("div",{className:"ugb-svg-icon-placeholder ugb-svg-icon-placeholder-".concat(c)},wp.element.createElement(mt,{className:"ugb-svg-icon-placeholder__button",onClick:function(){s?(r(!1),u(!1)):r(!0)}},wp.element.createElement(Yo,d)),(null!==p&&p||null===p&&a)&&wp.element.createElement(Al,{onClickOutside:function(e){e.target&&e.target.closest(".ugb-svg-icon-placeholder-".concat(c))?u(!0):(r(!1),u(!1))},onClose:function(){return r(!1)},onChange:f}))});Qo.defaultProps={isOpen:null,className:"",value:"",onChange:function(){},onToggle:function(){}};var Xo=Qo;function Jo(){return(Jo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Zo=ie.a.createElement("style",null,".pro-icon_svg__st2{fill:#8c33da}"),es=ie.a.createElement("path",{d:"M107 175.1l43.7-44.8c3.7-3.8 5.4-8.8 5.1-13.8 0-.4-.1-.8-.1-1.2H107v59.8z",fill:"#5fb3dd"}),ts=ie.a.createElement("path",{d:"M48.8.4L5.1 45.2C1.4 49-.3 54 0 59c0 .4.1.7.1 1.1h48.6V.4z",fill:"#e2735d"}),ns=ie.a.createElement("path",{className:"pro-icon_svg__st2",d:"M48.8 115.3zM107 60.1z"}),as=ie.a.createElement("path",{fill:"#e1565d",d:"M48.8 60.1v55.2H107V60.1z"}),rs=ie.a.createElement("path",{fill:"#47a0dd",d:"M48.8 115.3l58.2 59.8v-59.8z"}),is=ie.a.createElement("path",{fill:"#ef9856",d:"M107 60.1L48.8.4v59.7z"}),ls=ie.a.createElement("path",{className:"pro-icon_svg__st2",d:"M107 60.1v55.2h48.6c-.5-3.8-2.1-7.5-4.9-10.4L107 60.1z"}),os=ie.a.createElement("path",{d:"M48.8 115.3V60.1H.2c.5 3.8 2.1 7.5 4.9 10.4l43.7 44.8z",fill:"#ea75d4"}),ss=ie.a.createElement("path",{d:"M154.3 8.5c3.1-3.2.9-8.5-3.6-8.5H62.3l50.3 51.5 41.7-43z",fill:"#eabd59"}),us=ie.a.createElement("path",{d:"M1.5 166.8C-1.7 170 .6 175 5 175h88.5l-50.3-51.4-41.7 43.2z",fill:"#49cbce"}),cs=function(e){return ie.a.createElement("svg",Jo({id:"pro-icon_svg__Layer_3",viewBox:"0 0 155.8 175.1",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg"},e),Zo,es,ts,ns,as,rs,is,ls,os,ss,us)},ps={layout:{title:Object(S.__)("Say Hello to More Layouts 👋",_.i18n),description:Object(S.__)("Get more layouts for this block. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},design:{title:Object(S.__)("Say Hello to More Designs 👋",_.i18n),description:Object(S.__)("Get more pre-set sections / designs for this block. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},image:{title:Object(S.__)("Say Hello to More Shapes 👋",_.i18n),description:Object(S.__)("Get more cool shapes for your images. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},effect:{title:Object(S.__)("Say Hello to More Effects 👋",_.i18n),description:Object(S.__)("Get more flashy image & hover effects. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},advanced:{title:Object(S.__)("Say Hello to Fine-Grained Controls 👋",_.i18n),description:Object(S.__)("Get column spacing options, column colors and more. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)},postsBlock:{title:Object(S.__)("Say Hello to More Post Controls 👋",_.i18n),description:Object(S.__)("Get a load more button, more post options and Custom Post Types. This feature is only available on Stackable Premium.",_.i18n),button:Object(S.__)("Learn More",_.i18n)}},fs=function(e){var t=P()(["ugb-design-control-pro-note",e.className]);return wp.element.createElement("div",{className:t},e.isDismissible&&wp.element.createElement(mt,{className:"ugb-design-control-pro-note__close",icon:"no-alt",isTertiary:!0,onClick:e.onClose}),wp.element.createElement(cs,{className:"ugb-design-control-pro-note__logo"}),wp.element.createElement("h4",null,e.title||ps[e.type].title),wp.element.createElement("p",null,e.description||ps[e.type].description),e.showButton&&wp.element.createElement(Pi,{button:e.button||ps[e.type].button,buttonUtmSource:e.buttonUtmSource}),e.showHideNote&&wp.element.createElement("p",{className:"ugb-design-control-pro-note__notice"},Object(S.__)("You can hide premium hints in the settings",_.i18n)))};fs.defaultProps={className:"",type:"layout",title:"",description:"",button:"",showButton:!0,showHideNote:!0,isDismissible:!1,onClose:function(){},buttonUtmSource:void 0};var ds=fs,gs=function(e){function t(){var e;return c()(this,t),(e=g()(this,h()(t).apply(this,arguments))).state={isOpen:!!e.props.initialOpen&&e.props.initialOpen},e.onClick=e.onClick.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"onClick",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){var e=P()(["ugb-pro-control-button__wrapper"],{"ugb-pro-control-button--hidden":!this.state.isOpen});return wp.element.createElement("div",{className:"components-base-control"},wp.element.createElement("button",{className:"ugb-pro-control-more-dots",onClick:this.onClick},wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"}),wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"}),wp.element.createElement("div",{className:"ugb-pro-control-more-dots__dot"})),wp.element.createElement("div",{className:e},wp.element.createElement(ds,{type:this.props.type,title:this.props.title,description:this.props.description,button:this.props.button,showButton:this.props.showButton})))}}]),t}(k.Component);function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bs=function(e){function t(){var e;c()(this,t);var n=(e=g()(this,h()(t).apply(this,arguments))).getEnabledValues(),a=!n.length||n.every(function(e){return e===n[0]}),r=n.every(function(e){return""===e});return e.state={locked:r?e.props.defaultLocked:a},e.onToggleLock=e.onToggleLock.bind(v()(e)),e.onChangeTop=e.onChangeTop.bind(v()(e)),e.onChangeRight=e.onChangeRight.bind(v()(e)),e.onChangeBottom=e.onChangeBottom.bind(v()(e)),e.onChangeLeft=e.onChangeLeft.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"getEnabledValues",value:function(){return[].concat(s()(this.props.enableTop?[this.props.top]:[]),s()(this.props.enableRight?[this.props.right]:[]),s()(this.props.enableBottom?[this.props.bottom]:[]),s()(this.props.enableLeft?[this.props.left]:[]))}},{key:"getEnabledLocations",value:function(){return[].concat(s()(this.props.enableTop?["top"]:[]),s()(this.props.enableRight?["right"]:[]),s()(this.props.enableBottom?["bottom"]:[]),s()(this.props.enableLeft?["left"]:[]))}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(R.pick)(e,this.getEnabledLocations())}},{key:"onToggleLock",value:function(){this.setState({locked:!this.state.locked})}},{key:"onChangeTop",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(hs({},this.getEnabledValues(),{top:n}))}},{key:"onChangeRight",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(hs({},this.getEnabledValues(),{right:n}))}},{key:"onChangeBottom",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(hs({},this.getEnabledValues(),{bottom:n}))}},{key:"onChangeLeft",value:function(e){var t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange(hs({},this.getEnabledValues(),{left:n}))}},{key:"render",value:function(){var e=this.props.instanceId,t="ugb-four-number-control-".concat(e,"__item-");return wp.element.createElement(x.BaseControl,{help:this.props.help,className:P()("ugb-four-number-control",this.props.className)},wp.element.createElement(na,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens}),wp.element.createElement("div",{className:"ugb-four-number-control__wrapper"},wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-top")},wp.element.createElement("input",{id:"".concat(t,"-top"),type:"number",onChange:this.onChangeTop,"aria-label":Object(S.__)("Top",_.i18n),value:this.props.top,placeholder:this.props.enableTop?"":Object(S.__)("auto",_.i18n),disabled:!this.props.enableTop}),wp.element.createElement("span",null,Object(S.__)("Top",_.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-right")},wp.element.createElement("input",{id:"".concat(t,"-right"),type:"number",onChange:this.onChangeRight,"aria-label":this.props.label,value:this.props.right,placeholder:this.props.enableRight?"":Object(S.__)("auto",_.i18n),disabled:!this.props.enableRight}),wp.element.createElement("span",null,Object(S.__)("Right",_.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-bottom")},wp.element.createElement("input",{id:"".concat(t,"-bottom"),type:"number",onChange:this.onChangeBottom,"aria-label":this.props.label,value:this.props.bottom,placeholder:this.props.enableBottom?"":Object(S.__)("auto",_.i18n),disabled:!this.props.enableBottom}),wp.element.createElement("span",null,Object(S.__)("Bottom",_.i18n))),wp.element.createElement("label",{className:"ugb-four-number-control__label",htmlFor:"".concat(t,"-left")},wp.element.createElement("input",{id:"".concat(t,"-left"),type:"number",onChange:this.onChangeLeft,"aria-label":this.props.label,value:this.props.left,placeholder:this.props.enableLeft?"":Object(S.__)("auto",_.i18n),disabled:!this.props.enableLeft}),wp.element.createElement("span",null,Object(S.__)("Left",_.i18n))),wp.element.createElement(mt,{className:this.state.locked?"ugb--is-locked":"",onClick:this.onToggleLock,icon:wp.element.createElement(x.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})})))}}]),t}(k.Component);bs.defaultProps={onChange:function(){},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0};Object(Ot.withInstanceId)(bs);function vs(){return(vs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var ys=ie.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),ws=ie.a.createElement("path",{d:"M4.4 15.7h11.2c.1 0 .2 0 .2.1l2 2c.2.2.1.6-.2.6H2.4c-.3 0-.4-.3-.2-.6l2-2s.1-.1.2-.1z",fill:"#555d63"}),ks=function(e){return ie.a.createElement("svg",vs({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),ys,ws)};function Cs(){return(Cs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Os=ie.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),xs=ie.a.createElement("path",{d:"M4.3 4.4v11.2c0 .1 0 .2-.1.2l-2 2c-.2.2-.6.1-.6-.2V2.4c0-.3.4-.4.6-.2l2 2s.1.1.1.2z",fill:"#555d63"}),_s=function(e){return ie.a.createElement("svg",Cs({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Os,xs)};function Ss(){return(Ss=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Es=ie.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),js=ie.a.createElement("path",{d:"M15.7 15.6V4.4c0-.1 0-.2.1-.2l2-2c.2-.2.6-.1.6.2v15.2c0 .3-.3.4-.6.2l-2-2s-.1-.1-.1-.2z",fill:"#555d63"}),Ts=function(e){return ie.a.createElement("svg",Ss({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Es,js)};function Ps(){return(Ps=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}var Bs=ie.a.createElement("path",{d:"M1.6 1.6v16.8h16.8V1.6H1.6zm14.1 14.1H4.3V4.3h11.4v11.4z",opacity:.06,fill:"#555d63"}),Ms=ie.a.createElement("path",{d:"M15.6 4.3H4.4c-.1 0-.2 0-.2-.1l-2-2c-.2-.2-.1-.6.2-.6h15.2c.3 0 .4.3.2.6l-2 2s-.1.1-.2.1z",fill:"#555d63"}),Ns=function(e){return ie.a.createElement("svg",Ps({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),Bs,Ms)};function Is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(n,!0).forEach(function(t){r()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Rs=function(e){function t(){var e;c()(this,t);var n=(e=g()(this,h()(t).apply(this,arguments))).getEnabledValues(),a=e.firstValue(),r=Object.values(n).every(function(e){return e===a}),i=Object.values(n).every(function(e){return""===e});return e.state={locked:i?e.props.defaultLocked:r},e.onToggleLock=e.onToggleLock.bind(v()(e)),e.onChangeAll=e.onChangeAll.bind(v()(e)),e.onChangeTop=e.onChangeTop.bind(v()(e)),e.onChangeRight=e.onChangeRight.bind(v()(e)),e.onChangeBottom=e.onChangeBottom.bind(v()(e)),e.onChangeLeft=e.onChangeLeft.bind(v()(e)),e}return w()(t,e),f()(t,[{key:"getEnabledValues",value:function(){var e=this;return this.getEnabledLocations().reduce(function(t,n){return Ds({},t,r()({},n,e.props[n]))},{})}},{key:"getEnabledLocations",value:function(){return[].concat(s()(this.props.enableTop?["top"]:[]),s()(this.props.enableRight?["right"]:[]),s()(this.props.enableBottom?["bottom"]:[]),s()(this.props.enableLeft?["left"]:[]))}},{key:"firstValue",value:function(){return this.getEnabledLocations().length?Object.values(this.getEnabledValues())[0]:""}},{key:"filterOnlyEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(R.pick)(e,this.getEnabledLocations())}},{key:"onToggleLock",value:function(){this.setState({locked:!this.state.locked})}},{key:"onChangeAll",value:function(e){var t=e||0===e?e:"";this.props.onChange(this.filterOnlyEnabled({top:t,right:t,bottom:t,left:t}))}},{key:"onChangeTop",value:function(e){this.props.onChange(Ds({},this.getEnabledValues(),{top:e||0===e?e:""}))}},{key:"onChangeRight",value:function(e){this.props.onChange(Ds({},this.getEnabledValues(),{right:e||0===e?e:""}))}},{key:"onChangeBottom",value:function(e){this.props.onChange(Ds({},this.getEnabledValues(),{bottom:e||0===e?e:""}))}},{key:"onChangeLeft",value:function(e){this.props.onChange(Ds({},this.getEnabledValues(),{left:e||0===e?e:""}))}},{key:"render",value:function(){var e=this.props,t=e.instanceId,n=e.units,a=e.unit,r="ugb-four-range-control-".concat(t,"__item-"),i={min:this.props.min,max:this.props.max,step:this.props.step,placeholder:this.props.placeholder,initialPosition:this.props.initialPosition,sliderMin:this.props.sliderMin,sliderMax:this.props.sliderMax},l=n.indexOf(a)<0?0:n.indexOf(a);Array.isArray(this.props.min)&&(i.min=this.props.min[l]),Array.isArray(this.props.max)&&(i.max=this.props.max[l]),Array.isArray(this.props.sliderMin)&&(i.sliderMin=this.props.sliderMin[l]),Array.isArray(this.props.sliderMax)&&(i.sliderMax=this.props.sliderMax[l]),Array.isArray(this.props.step)&&(i.step=this.props.step[l]),Array.isArray(this.props.placeholder)&&(i.placeholder=this.props.placeholder[l]),Array.isArray(this.props.initialPosition)&&(i.initialPosition=this.props.initialPosition[l]);var o=P()(["ugb-four-range-control__lock"],{"ugb--is-locked":this.state.locked}),s=wp.element.createElement(mt,{className:o,onClick:this.onToggleLock,icon:wp.element.createElement(x.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})});return wp.element.createElement(x.BaseControl,{help:this.props.help,className:P()("ugb-four-range-control",this.props.className,{"ugb--locked":this.state.locked})},wp.element.createElement(na,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens,afterButton:s}),this.state.locked&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(sa,M()({id:"".concat(r,"-all"),value:this.firstValue(),onChange:this.onChangeAll,allowReset:!0},i))),!this.state.locked&&wp.element.createElement(k.Fragment,null,this.props.enableTop&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(x.Tooltip,{text:Object(S.__)("Top",_.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(Ns,null))),wp.element.createElement(sa,M()({id:"".concat(r,"-top"),value:this.props.top,onChange:this.onChangeTop,allowReset:!0},i,{placeholder:this.props.placeholderTop||i.placeholder}))),this.props.enableRight&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(x.Tooltip,{text:Object(S.__)("Right",_.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(Ts,null))),wp.element.createElement(sa,M()({id:"".concat(r,"-right"),value:this.props.right,onChange:this.onChangeRight,allowReset:!0},i,{placeholder:this.props.placeholderRight||i.placeholder}))),this.props.enableBottom&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(x.Tooltip,{text:Object(S.__)("Bottom",_.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(ks,null))),wp.element.createElement(sa,M()({id:"".concat(r,"-bottom"),value:this.props.bottom,onChange:this.onChangeBottom,allowReset:!0},i,{placeholder:this.props.placeholderBottom||i.placeholder}))),this.props.enableLeft&&wp.element.createElement("div",{className:"ugb-four-range-control__range"},wp.element.createElement(x.Tooltip,{text:Object(S.__)("Left",_.i18n)},wp.element.createElement("span",{className:"ugb-four-range-control__icon"},wp.element.createElement(_s,null))),wp.element.createElement(sa,M()({id:"".concat(r,"-left"),value:this.props.left,onChange:this.onChangeLeft,allowReset:!0},i,{placeholder:this.props.placeholderLeft||i.placeholder})))))}}]),t}(k.Component);Rs.defaultProps={onChange:function(){},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:function(){},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,min:-1/0,max:1/0,sliderMin:null,sliderMax:null,step:1,placeholder:"",placeholderTop:"",placeholderRight:"",placeholderBottom:"",placeholderLeft:"",initialPosition:""};var As=Rs,zs=n(77),Ls=n.n(zs),Fs=n(78),Us=n.n(Fs),Hs=n(79),Vs=n.n(Hs),Gs=n(80),Ws=n.n(Gs),qs=n(81),Ks=n.n(qs),$s=n(82),Ys=n.n($s),Qs=n(83),Xs=n.n(Qs),Js=n(84),Zs=n.n(Js),eu=n(85),tu=n.n(eu),nu=n(86),au=n.n(nu),ru=n(87),iu=n.n(ru),lu=n(88),ou=n.n(lu),su=n(89),uu=n.n(su),cu=n(90),pu=n.n(cu),fu=n(91),du=n.n(fu),gu=n(92),mu=n.n(gu),hu=n(93),bu=n.n(hu),vu=n(94),yu=n.n(vu),wu=n(95),ku=n.n(wu),Cu=n(96),Ou=n.n(Cu),xu=n(97),_u=n.n(xu),Su=n(98),Eu=n.n(Su),ju=n(99),Tu=n.n(ju),Pu=n(100),Bu=n.n(Pu),Mu=n(101),Nu=n.n(Mu),Iu=n(102),Du=n.n(Iu),Ru=n(103),Au=n.n(Ru),zu=n(104),Lu=n.n(zu),Fu=n(105),Uu=n.n(Fu),Hu=n(106),Vu=n.n(Hu);function Gu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],a=!0,r=!1,i=void 0;try{for(var l,o=e[Symbol.iterator]();!(a=(l=o.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wu(){return(Wu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function qu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ku(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function $u(e,t,n){return t&&Ku(e.prototype,t),n&&Ku(e,n),e}function Yu(e){return(Yu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xu(e,t){return!t||"object"!==Yu(t)&&"function"!=typeof t?Qu(e):t}function Ju(e){return(Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zu(e,t){return(Zu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ec(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&&Zu(e,t)}function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nc=n(30),ac=n.n(nc),rc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.forEach(function(e){return e&&e.apply(void 0,n)})}};function ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(n),!0).forEach(function(t){tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oc=function(e){function t(){var e,n;qu(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return tc(Qu(n=Xu(this,(e=Ju(t)).call.apply(e,[this].concat(r)))),"getRailProps",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,a=t.emitMouse,r=t.emitTouch;return lc({},e,{onMouseDown:rc(e.onMouseDown,a),onTouchStart:rc(e.onTouchStart,r)})}),n}return ec(t,re["Component"]),$u(t,[{key:"render",value:function(){var e=this.getRailProps,t=this.props,n=t.getEventData,a=t.activeHandleID,r=(0,t.children)({getEventData:n,activeHandleID:a,getRailProps:e});return r&&ie.a.Children.only(r)}}]),t}();oc.propTypes={};var sc=oc,uc=function(e){function t(){return qu(this,t),Xu(this,Ju(t).apply(this,arguments))}return ec(t,re["Component"]),$u(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.values,a=e.scale,r=e.count,i=t({getEventData:e.getEventData,activeHandleID:e.activeHandleID,ticks:(n||a.getTicks(r)).map(function(e){return{id:"$$-".concat(e),value:e,percent:a.getValue(e)}})});return i&&ie.a.Children.only(i)}}]),t}();uc.propTypes={},uc.defaultProps={count:10};var cc=uc;function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach(function(t){tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var dc=function(e){function t(){var e,n;qu(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return tc(Qu(n=Xu(this,(e=Ju(t)).call.apply(e,[this].concat(r)))),"getTrackProps",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,a=t.emitMouse,r=t.emitTouch;return fc({},e,{onMouseDown:rc(e.onMouseDown,a),onTouchStart:rc(e.onTouchStart,r)})}),n}return ec(t,re["Component"]),$u(t,[{key:"render",value:function(){for(var e=this.getTrackProps,t=this.props,n=t.children,a=t.left,r=t.right,i=t.scale,l=t.handles,o=t.getEventData,s=t.activeHandleID,u=i.getDomain(),c=[],p=0;p<l.length+1;p++){var f=l[p-1],d=l[p];0===p&&!0===a?f={id:"$",value:u[0],percent:0}:p===l.length&&!0===r&&(d={id:"$",value:u[1],percent:100}),f&&d&&c.push({id:"".concat(f.id,"-").concat(d.id),source:f,target:d})}var g=n({getEventData:o,activeHandleID:s,tracks:c,getTrackProps:e});return g&&ie.a.Children.only(g)}}]),t}();dc.propTypes={},dc.defaultProps={left:!0,right:!0};var gc=dc;function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(n),!0).forEach(function(t){tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var bc=function(e){function t(){var e,n;qu(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return tc(Qu(n=Xu(this,(e=Ju(t)).call.apply(e,[this].concat(r)))),"autofocus",function(e){e.target.focus()}),tc(Qu(n),"getHandleProps",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.props,r=a.emitKeyboard,i=a.emitMouse,l=a.emitTouch;return hc({},t,{onKeyDown:rc(t.onKeyDown,function(t){return r(t,e)}),onMouseDown:rc(t.onMouseDown,n.autofocus,function(t){return i(t,e)}),onTouchStart:rc(t.onTouchStart,function(t){return l(t,e)})})}),n}return ec(t,re["Component"]),$u(t,[{key:"render",value:function(){var e=this.getHandleProps,t=this.props,n=t.activeHandleID,a=(0,t.children)({handles:t.handles,activeHandleID:n,getHandleProps:e});return a&&ie.a.Children.only(a)}}]),t}();bc.propTypes={};var vc=bc;function yc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var wc="react-compound-slider:";function kc(e){return function(t,n){return t.val>n.val?e?-1:1:n.val>t.val?e?1:-1:0}}function Cc(e,t,n,a){var r=e.findIndex(function(e){return e.key===t});if(-1!==r){var i=e[r],l=i.key;return i.val===n?e:[].concat(yc(e.slice(0,r)),[{key:l,val:n}],yc(e.slice(r+1))).sort(kc(a))}return e}function Oc(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function xc(e){var t=e.type,n=void 0===t?"":t,a=e.touches;return!a||a.length>1||"touchend"===n.toLowerCase()&&a.length>0}function _c(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function Sc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=0;return{handles:e.map(function(e){var t=n.getValue(e);return e!==t&&(r+=1,ac()(!a,"".concat(wc," Invalid value encountered. Changing ").concat(e," to ").concat(t,"."))),t}).map(function(e,t){return{key:"$$-".concat(t),val:e}}).sort(kc(t)),changes:r}}var Ec=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN};var jc,Tc;1===(jc=Ec).length&&(Tc=jc,jc=function(e,t){return Ec(Tc(e),t)});var Pc=Array.prototype,Bc=(Pc.slice,Pc.map,Math.sqrt(50)),Mc=Math.sqrt(10),Nc=Math.sqrt(2),Ic=function(e,t,n){var a,r,i,l,o=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((a=t<e)&&(r=e,e=t,t=r),0===(l=function(e,t,n){var a=(t-e)/Math.max(0,n),r=Math.floor(Math.log(a)/Math.LN10),i=a/Math.pow(10,r);return r>=0?(i>=Bc?10:i>=Mc?5:i>=Nc?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(i>=Bc?10:i>=Mc?5:i>=Nc?2:1)}(e,t,n))||!isFinite(l))return[];if(l>0)for(e=Math.ceil(e/l),t=Math.floor(t/l),i=new Array(r=Math.ceil(t-e+1));++o<r;)i[o]=(e+o)*l;else for(e=Math.floor(e*l),t=Math.ceil(t*l),i=new Array(r=Math.ceil(e-t+1));++o<r;)i[o]=(e-o)/l;return a&&i.reverse(),i};var Dc=function(){function e(){qu(this,e),this.domain=[0,1],this.range=[0,1],this.interpolator=null}return $u(e,[{key:"createInterpolator",value:function(e,t){var n=e[0],a=e[1],r=t[0],i=t[1];return a<n?(n=this.deinterpolateValue(a,n),r=this.interpolateValue(i,r)):(n=this.deinterpolateValue(n,a),r=this.interpolateValue(r,i)),function(e){return r(n(e))}}},{key:"interpolateValue",value:function(e,t){return t-=e=+e,function(n){return e+t*n}}},{key:"deinterpolateValue",value:function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(){return t}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(e){var t=this.domain,n=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(t,n)))(+e)}},{key:"setDomain",value:function(e){return this.domain=e.map(function(e){return+e}),this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(e){return this.range=e.map(function(e){return+e}),this}},{key:"getTicks",value:function(e){var t=this.domain;return Ic(t[0],t[t.length-1],e||10)}}]),e}();function Rc(e,t,n){return Math.min(Math.max(e,t),n)}var Ac=function e(){var t=this;qu(this,e),tc(this,"setDomain",function(e){return t.domain=e.slice(),t}),tc(this,"setRange",function(e){return t.range=e.slice(),t}),tc(this,"setStep",function(e){return t.step=e,t}),tc(this,"getValue",function(e){var n=Gu(t.domain,2),a=n[0],r=n[1],i=Gu(t.range,2),l=i[0],o=i[1],s=t.step,u=(Rc(e,a,r)-a)/(r-a);return Rc(s*Math.round(u*(o-l)/s)+l,l<o?l:o,o>l?o:l)}),this.step=1,this.domain=[0,1],this.range=[0,1]},zc="undefined"!=typeof window&&"undefined"!=typeof document,Lc=function(){},Fc=function(e,t,n,a){var r=a?e-t:e+t;return a?Math.max(n[0],r):Math.min(n[1],r)},Uc=function(e,t,n,a){var r=a?e+t:e-t;return a?Math.min(n[1],r):Math.max(n[0],r)},Hc=function(e){function t(){var e,n;qu(this,t);for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return tc(Qu(n=Xu(this,(e=Ju(t)).call.apply(e,[this].concat(r)))),"state",{step:null,values:null,domain:null,handles:[],reversed:null,activeHandleID:null,valueToPerc:null,valueToStep:null,pixelToStep:null}),tc(Qu(n),"slider",ie.a.createRef()),tc(Qu(n),"onKeyDown",function(e,t){var a=["ArrowRight","ArrowUp"],r=["ArrowDown","ArrowLeft"],i=Qu(n),l=i.state.handles,o=i.props,s=o.step,u=o.reversed,c=o.vertical,p=o.domain,f=e.key||e.keyCode;if(a.concat(r).includes(f)){if(c){var d=[r,a];a=d[0],r=d[1]}e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault();var g=l.find(function(e){return e.key===t});if(g){var m=g.val,h=m;a.includes(f)?h=Fc(m,s,p,u):r.includes(f)&&(h=Uc(m,s,p,u));var b=l.map(function(e){return e.key===t?{key:e.key,val:h}:e});n.submitUpdate(b,!0)}}}),tc(Qu(n),"onMouseDown",function(e,t){n.onStart(e,t,!1)}),tc(Qu(n),"onTouchStart",function(e,t){xc(e)||n.onStart(e,t,!0)}),tc(Qu(n),"getEventData",function(e,t){var a,r=Qu(n),i=r.state,l=i.pixelToStep,o=i.valueToPerc,s=r.props.vertical;return l.setDomain(Oc(n.slider.current,s)),{value:a=t?l.getValue(_c(s,e)):l.getValue(s?e.clientY:e.pageX),percent:o.getValue(a)}}),tc(Qu(n),"onMouseMove",function(e){var t=Qu(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;i.setDomain(Oc(n.slider.current,s));var c=Cc(r,l,i.getValue(s?e.clientY:e.pageX),u);n.submitUpdate(c)}),tc(Qu(n),"onTouchMove",function(e){var t=Qu(n),a=t.state,r=a.handles,i=a.pixelToStep,l=a.activeHandleID,o=t.props,s=o.vertical,u=o.reversed;if(!xc(e)){i.setDomain(Oc(n.slider.current,s));var c=Cc(r,l,i.getValue(_c(s,e)),u);n.submitUpdate(c)}}),tc(Qu(n),"onMouseUp",function(){var e=Qu(n),t=e.state,a=t.handles,r=t.activeHandleID,i=e.props,l=i.onChange,o=i.onSlideEnd;l(a.map(function(e){return e.val})),o(a.map(function(e){return e.val}),{activeHandleID:r}),n.setState({activeHandleID:null}),zc&&(document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onMouseUp))}),tc(Qu(n),"onTouchEnd",function(){var e=Qu(n),t=e.state,a=t.handles,r=t.activeHandleID,i=e.props,l=i.onChange,o=i.onSlideEnd;l(a.map(function(e){return e.val})),o(a.map(function(e){return e.val}),{activeHandleID:r}),n.setState({activeHandleID:null}),zc&&(document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onTouchEnd))}),n}return ec(t,re["PureComponent"]),$u(t,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(Oc(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){zc&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"onStart",value:function(e,t,n){var a=this.state.handles,r=this.props.onSlideStart;n||e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),a.find(function(e){return e.key===t})?(this.setState({activeHandleID:t}),r(a.map(function(e){return e.val}),{activeHandleID:t}),n?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:null}),this.handleRailAndTrackClicks(e,n))}},{key:"handleRailAndTrackClicks",value:function(e,t){var n,a=this,r=this.state,i=r.handles,l=r.pixelToStep,o=this.props,s=o.vertical,u=o.reversed,c=this.slider;l.setDomain(Oc(c.current,s)),n=t?l.getValue(_c(s,e)):l.getValue(s?e.clientY:e.pageX);for(var p=null,f=1/0,d=0;d<i.length;d++){var g=i[d],m=g.key,h=g.val,b=Math.abs(h-n);b<f&&(p=m,f=b)}var v=Cc(i,p,n,u);this.setState({activeHandleID:p},function(){a.submitUpdate(v,!0),t?a.addTouchEvents():a.addMouseEvents()})}},{key:"addMouseEvents",value:function(){zc&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){zc&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(e,t){var n=this.props,a=n.mode,r=n.step,i=n.onUpdate,l=n.onChange,o=n.reversed,s=this.state.valueToStep.getValue;this.setState(function(n){var u,c=n.handles;if("function"==typeof a)u=a(c,e,r,o,s),ac()(Array.isArray(u),"Custom mode function did not return an array.");else switch(a){case 1:u=function(e,t){return t}(0,e);break;case 2:u=function(e,t){for(var n=0;n<e.length;n++){if(e[n].key!==t[n].key)return e;if(t[n+1]&&t[n].val===t[n+1].val)return e}return t}(c,e);break;case 3:u=function e(t,n,a,r,i){for(var l=-1,o=!0,s=0;s<t.length;s++){var u=t[s],c=n[s];if(!c||c.key!==u.key)return t;c.val!==u.val&&(l=s,o=c.val-u.val>0)}if(-1===l)return t;for(var p=o?a:-a,f=0;f<n.length;f++){var d=n[f],g=n[f+1];if(g&&d.val===g.val){if(f===l){var m=g.val+p;if(i(m)===m){var h=e(n,Cc(n,g.key,g.val+p,r),a,r,i);return h===n?t:h}return t}var b=d.val+p;if(i(b)===b){var v=e(n,Cc(n,d.key,d.val+p,r),a,r,i);return v===n?t:v}return t}}return n}(c,e,r,o,s);break;default:u=e,ac()(!1,"".concat(wc," Invalid mode value."))}return i(u.map(function(e){return e.val})),t&&l(u.map(function(e){return e.val})),{handles:u}})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handles,a=t.valueToPerc,r=t.activeHandleID,i=this.props,l=i.className,o=i.rootStyle,s=i.rootProps,u=i.component,c=i.disabled,p=i.flatten,f=n.map(function(e){var t=e.key,n=e.val;return{id:t,value:n,percent:a.getValue(n)}}),d=ie.a.Children.map(this.props.children,function(t){return!t||t.type.name!==sc.name&&t.type.name!==cc.name&&t.type.name!==gc.name&&t.type.name!==vc.name?t:ie
|