Your IP : 3.144.242.149


Current Path : /home/ncdcgo/public_html/wp-content/plugins/easy-twitter-feeds/dist/
Upload File :
Current File : /home/ncdcgo/public_html/wp-content/plugins/easy-twitter-feeds/dist/editor.js

!function(){var e={822:function(e){"use strict";e.exports=function(e,t,a,i,r,n,o,l){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 c=[a,i,r,n,o,l],y=0;(s=new Error(t.replace(/%s/g,(function(){return c[y++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},15:function(e,t,a){"use strict";var i=a(264);function r(){}function n(){}n.resetWarningCache=r,e.exports=function(){function e(e,t,a,r,n,o){if(o!==i){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var a={array:e,bigint: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:n,resetWarningCache:r};return a.PropTypes=a,a}},435:function(e,t,a){e.exports=a(15)()},264:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},536:function(e,t){"use strict";function a(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0});var i={value:"data-value",disabled:"data-disabled",class:"class",type:"type"},r=function(){function e(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._node=t instanceof HTMLElement?t:document.createElement(t),this._config={i18n:i},this._setAttributes(a),a.textContent&&this._setTextContent(a.textContent),this}var t,r,n;return t=e,(r=[{key:"get",value:function(){return this._node}},{key:"append",value:function(e){return this._node.appendChild(e),this}},{key:"addClass",value:function(e){return this._node.classList.add(e),this}},{key:"removeClass",value:function(e){return this._node.classList.remove(e),this}},{key:"toggleClass",value:function(e){return this._node.classList.toggle(e),this}},{key:"addEventListener",value:function(e,t){return this._node.addEventListener(e,t),this}},{key:"removeEventListener",value:function(e,t){return this._node.removeEventListener(e,t),this}},{key:"setText",value:function(e){return this._setTextContent(e),this}},{key:"getHeight",value:function(){return window.getComputedStyle(this._node).height}},{key:"setTop",value:function(e){return this._node.style.top="".concat(e,"px"),this}},{key:"focus",value:function(){return this._node.focus(),this}},{key:"_setTextContent",value:function(e){this._node.textContent=e}},{key:"_setAttributes",value:function(e){for(var t in e)i[t]&&e[t]&&this._setAttribute(i[t],e[t])}},{key:"_setAttribute",value:function(e,t){this._node.setAttribute(e,t)}}])&&a(t.prototype,r),n&&a(t,n),e}();t.default=r},971:function(e,t,a){"use strict";var i,r=a(536),n=(i=r)&&i.__esModule?i:{default:i};function o(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){y(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function y(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function f(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var u={select:"select-pure__select",dropdownShown:"select-pure__select--opened",multiselect:"select-pure__select--multiple",label:"select-pure__label",placeholder:"select-pure__placeholder",dropdown:"select-pure__options",option:"select-pure__option",optionDisabled:"select-pure__option--disabled",autocompleteInput:"select-pure__autocomplete",selectedLabel:"select-pure__selected-label",selectedOption:"select-pure__option--selected",placeholderHidden:"select-pure__placeholder--hidden",optionHidden:"select-pure__option--hidden"}}},t={};function a(i){var r=t[i];if(void 0!==r)return r.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=wp.blocks,t=JSON.parse('{"apiVersion":"1","name":"etf/twitter-feed","title":"Twitter Feed","description":"A Easy twitter Feeds plugin","category":"widgets","keywords":["key1","key2","key3"],"textdomain":"easy-twitter","attributes":{"align":{"type":"string","default":""},"cId":{"type":"string","default":""},"userName":{"type":"string","default":"XDevelopers"},"videoPostID":{"type":"string","default":"1732824684683784516"},"type":{"type":"string","default":""},"config":{"type":"object","default":{"theme":"dark","width":"500px","height":"520px","scrolling":"no","isHeader":true,"isFooter":true,"language":"en"}},"button":{"type":"object","default":{"tweetText":"This is a text","hasTagText":"Wordpress","iconsType":"tIcon","icon":{"width":"20px","height":"20px"},"typo":{"fontSize":{"desktop":14},"fontWeight":500,"textDecoration":"none"},"colors":{"color":"#fff","bg":"#1d9bf0"},"padding":{"top":"6px","right":"10px","bottom":"6px","left":"10px"}}},"alignment":{"type":"string","default":"center"},"border":{"type":"object","default":{"radius":"30px"}},"shadow":{"type":"array","default":{}}},"supports":{"align":["wide","full"],"html":false},"example":{"attributes":{"preview":true,"columns":{"desktop":1,"tablet":1,"mobile":1}}},"editorScript":"file:../dist/editor.js"}'),i=React,r=wp.i18n,n=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),l=Symbol.for("immer-state");function s(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function y(e){return!!e&&!!e[l]}function f(e){return!!e&&(m(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||h(e)||b(e))}var u=Object.prototype.constructor.toString();function m(e){if(!e||"object"!=typeof e)return!1;const t=c(e);if(null===t)return!0;const a=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return a===Object||"function"==typeof a&&Function.toString.call(a)===u}function d(e,t){0===g(e)?Reflect.ownKeys(e).forEach((a=>{t(a,e[a],e)})):e.forEach(((a,i)=>t(i,a,e)))}function g(e){const t=e[l];return t?t.type_:Array.isArray(e)?1:h(e)?2:b(e)?3:0}function v(e,t){return 2===g(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function p(e,t,a){const i=g(e);2===i?e.set(t,a):3===i?e.add(a):e[t]=a}function h(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function S(e,t){if(h(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const a=m(e);if(!0===t||"class_only"===t&&!a){const t=Object.getOwnPropertyDescriptors(e);delete t[l];let a=Reflect.ownKeys(t);for(let i=0;i<a.length;i++){const r=a[i],n=t[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(t[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:e[r]})}return Object.create(c(e),t)}{const t=c(e);if(null!==t&&a)return{...e};const i=Object.create(t);return Object.assign(i,e)}}function _(e,t=!1){return C(e)||y(e)||!f(e)||(g(e)>1&&(e.set=e.add=e.clear=e.delete=O),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>_(t,!0)))),e}function O(){s(2)}function C(e){return Object.isFrozen(e)}var R,P={};function E(e){const t=P[e];return t||s(0),t}function x(){return R}function k(e,t){t&&(E("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function T(e){j(e),e.drafts_.forEach(A),e.drafts_=null}function j(e){e===R&&(R=e.parent_)}function N(e){return R={drafts_:[],parent_:R,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function A(e){const t=e[l];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function M(e,t){t.unfinalizedDrafts_=t.drafts_.length;const a=t.drafts_[0];return void 0!==e&&e!==a?(a[l].modified_&&(T(t),s(4)),f(e)&&(e=D(t,e),t.parent_||B(t,e)),t.patches_&&E("Patches").generateReplacementPatches_(a[l].base_,e,t.patches_,t.inversePatches_)):e=D(t,a,[]),T(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==n?e:void 0}function D(e,t,a){if(C(t))return t;const i=t[l];if(!i)return d(t,((r,n)=>I(e,i,t,r,n,a))),t;if(i.scope_!==e)return t;if(!i.modified_)return B(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let r=t,n=!1;3===i.type_&&(r=new Set(t),t.clear(),n=!0),d(r,((r,o)=>I(e,i,t,r,o,a,n))),B(e,t,!1),a&&e.patches_&&E("Patches").generatePatches_(i,a,e.patches_,e.inversePatches_)}return i.copy_}function I(e,t,a,i,r,n,o){if(y(r)){const o=D(e,r,n&&t&&3!==t.type_&&!v(t.assigned_,i)?n.concat(i):void 0);if(p(a,i,o),!y(o))return;e.canAutoFreeze_=!1}else o&&a.add(r);if(f(r)&&!C(r)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;D(e,r),t&&t.scope_.parent_||"symbol"==typeof i||!Object.prototype.propertyIsEnumerable.call(a,i)||B(e,r)}}function B(e,t,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,a)}var L={get(e,t){if(t===l)return e;const a=w(e);if(!v(a,t))return function(e,t,a){const i=H(t,a);return i?"value"in i?i.value:i.get?.call(e.draft_):void 0}(e,a,t);const i=a[t];return e.finalized_||!f(i)?i:i===z(e.base_,t)?(K(e),e.copy_[t]=U(i,e)):i},has(e,t){return t in w(e)},ownKeys(e){return Reflect.ownKeys(w(e))},set(e,t,a){const i=H(w(e),t);if(i?.set)return i.set.call(e.draft_,a),!0;if(!e.modified_){const i=z(w(e),t),o=i?.[l];if(o&&o.base_===a)return e.copy_[t]=a,e.assigned_[t]=!1,!0;if(((r=a)===(n=i)?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==a||v(e.base_,t)))return!0;K(e),G(e)}var r,n;return e.copy_[t]===a&&(void 0!==a||t in e.copy_)||Number.isNaN(a)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=a,e.assigned_[t]=!0),!0},deleteProperty(e,t){return void 0!==z(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,K(e),G(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const a=w(e),i=Reflect.getOwnPropertyDescriptor(a,t);return i?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:i.enumerable,value:a[t]}:i},defineProperty(){s(11)},getPrototypeOf(e){return c(e.base_)},setPrototypeOf(){s(12)}},F={};function z(e,t){const a=e[l];return(a?w(a):e)[t]}function H(e,t){if(!(t in e))return;let a=c(e);for(;a;){const e=Object.getOwnPropertyDescriptor(a,t);if(e)return e;a=c(a)}}function G(e){e.modified_||(e.modified_=!0,e.parent_&&G(e.parent_))}function K(e){e.copy_||(e.copy_=S(e.base_,e.scope_.immer_.useStrictShallowCopy_))}d(L,((e,t)=>{F[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),F.deleteProperty=function(e,t){return F.set.call(this,e,t,void 0)},F.set=function(e,t,a){return L.set.call(this,e[0],t,a,e[0])};function U(e,t){const a=h(e)?E("MapSet").proxyMap_(e,t):b(e)?E("MapSet").proxySet_(e,t):function(e,t){const a=Array.isArray(e),i={type_:a?1:0,scope_:t?t.scope_:x(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let r=i,n=L;a&&(r=[i],n=F);const{revoke:o,proxy:l}=Proxy.revocable(r,n);return i.draft_=l,i.revoke_=o,l}(e,t);return(t?t.scope_:x()).drafts_.push(a),a}function V(e){if(!f(e)||C(e))return e;const t=e[l];let a;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,a=S(e,t.scope_.immer_.useStrictShallowCopy_)}else a=S(e,!0);return d(a,((e,t)=>{p(a,e,V(t))})),t&&(t.finalized_=!1),a}var W=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,a)=>{if("function"==typeof e&&"function"!=typeof t){const a=t;t=e;const i=this;return function(e=a,...r){return i.produce(e,(e=>t.call(this,e,...r)))}}let i;if("function"!=typeof t&&s(6),void 0!==a&&"function"!=typeof a&&s(7),f(e)){const r=N(this),n=U(e,void 0);let o=!0;try{i=t(n),o=!1}finally{o?T(r):j(r)}return k(r,a),M(i,r)}if(!e||"object"!=typeof e){if(i=t(e),void 0===i&&(i=e),i===n&&(i=void 0),this.autoFreeze_&&_(i,!0),a){const t=[],r=[];E("Patches").generateReplacementPatches_(e,i,t,r),a(t,r)}return i}s(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...a)=>this.produceWithPatches(t,(t=>e(t,...a)));let a,i;return[this.produce(e,t,((e,t)=>{a=e,i=t})),a,i]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){f(e)||s(8),y(e)&&(e=function(e){y(e)||s(10);return V(e)}(e));const t=N(this),a=U(e,void 0);return a[l].isManual_=!0,j(t),a}finishDraft(e,t){const a=e&&e[l];a&&a.isManual_||s(9);const{scope_:i}=a;return k(i,t),M(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let a;for(a=t.length-1;a>=0;a--){const i=t[a];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}a>-1&&(t=t.slice(a+1));const i=E("Patches").applyPatches_;return y(e)?i(e,t):this.produce(e,(e=>i(e,t)))}},Y=W.produce;W.produceWithPatches.bind(W),W.setAutoFreeze.bind(W),W.setUseStrictShallowCopy.bind(W),W.applyPatches.bind(W),W.createDraft.bind(W),W.finishDraft.bind(W);var J=function(e,t){if(!e)return[];var a=[],i=e.media_details.sizes,r=function(e){var r=t.find((function(t){return t.slug===e}));r&&a.push({label:r.name,value:i[e].source_url})};for(var n in i)r(n);return a},q=function(){setTimeout((function(){var e=document.querySelectorAll(".components-panel__body-title button");function t(){var a=this;this.removeEventListener("click",t),e.forEach((function(e){"true"!==e.getAttribute("aria-expanded")||e.isEqualNode(a)||e.click()})),setTimeout((function(){a.addEventListener("click",t)}),500)}e.forEach((function(e){e.addEventListener("click",t)}))}),500)},X=wp.blockEditor,Q=wp.components,$=function(e){var t=e.className,a=void 0===t?"mt20 mb5":t,i=e.htmlFor,r=e.children;return React.createElement("label",{className:"bPlLabel ".concat(a),htmlFor:i},r)},Z=[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Double",value:"double"},{label:"Groove",value:"groove"},{label:"Inset",value:"inset"},{label:"Outset",value:"outset"},{label:"Ridge",value:"ridge"}],ee=function(){return{value:"px",label:"px",default:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}},te=function(){return{value:"%",label:"%",default:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}},ae=function(){return{value:"em",label:"em",default:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}},ie=function(){return{value:"rem",label:"rem",default:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}},re=function(){return{value:"vh",label:"vh",default:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0}},ne=[{value:"all",label:"All Sides"},{value:"top",label:"Top"},{value:"right",label:"Right"},{value:"bottom",label:"Bottom"},{value:"left",label:"Left"},{value:"topRight",label:"Top Right"},{value:"topBottom",label:"Top Bottom"},{value:"topLeft",label:"Top Left"},{value:"topRightBottom",label:"Top Right Bottom"},{value:"topRightLeft",label:"Top Right Left"},{value:"topBottomLeft",label:"Top Bottom Left"},{value:"rightBottom",label:"Right Bottom"},{value:"rightLeft",label:"Right Left"},{value:"rightBottomLeft",label:"Right Bottom Left"},{value:"bottomLeft",label:"Bottom Left"}],oe=[{name:"Daisy Bush to Fuchsia Blue",gradient:"linear-gradient(135deg, #4527a4, #8344c5)",slug:"daisy-bush-to-fuchsia-blue"},{name:"Reddish Orange to Yellowish Orange",gradient:"linear-gradient(135deg, #fe6601, #fbb040)",slug:"reddish-orange-to-yellowish-orange"},{name:"Tuft Bush to Carnation Pink",gradient:"linear-gradient(135deg, #fed1c7, #fe8dc6)",slug:"tuft-bush-to-carnation-pink"},{name:"Golden Fizz to Yellow Orange",gradient:"linear-gradient(135deg, #f9ed32, #fbb040)",slug:"golden-fizz-to-yellow-orange"},{name:"Light Electric Violet to Electric Violet",gradient:"linear-gradient(135deg, #e100ff, #7f00ff)",slug:"light-electric-violet-to-electric-violet"},{name:"Hot Pink to Violet Red",gradient:"linear-gradient(135deg, #ff7db8, #ee2a7b)",slug:"hot-pink-to-violet-red"},{name:"Spring Green to Azure Radiance",gradient:"linear-gradient(135deg, #00ff8f, #00a1ff)",slug:"spring-green-to-azure-radiance"}],le=[{label:"Solid",value:"solid"},{label:"Gradient",value:"gradient"}];function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,o,l=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ce(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ce(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}var ye=function(e){var t=e.className,a=void 0===t?"":t,n=e.label,o=void 0===n?(0,r.__)("Color:","bplugins"):n,l=e.value,s=e.onChange,c=e.defaultColor,y=e.disableAlpha,f=void 0!==y&&y,u=se((0,i.useState)(l),2),m=u[0],d=u[1],g=wp.data.select("core/block-editor").getSettings().colors;return React.createElement(Q.PanelRow,{className:a},React.createElement($,{className:""},o),React.createElement(Q.Dropdown,{className:"bPlDropdownContainer bColor",contentClassName:"bPlDropdownPopover bColorDropdownPopover",popoverProps:{placement:"top-end"},renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return React.createElement(React.Fragment,null,React.createElement("div",{className:"bColorButtonContainer"},React.createElement("button",{className:"bColorButton",onClick:a,"aria-expanded":t,style:{backgroundColor:l||"transparent"}})),c&&c!=m&&React.createElement(Q.Button,{className:"bPlResetVal",icon:"image-rotate",label:(0,r.__)("Reset","bplugins"),onClick:function(){s(c),d(c)}}))},renderContent:function(e){var t=e.isOpen;e.onClose;return React.createElement(React.Fragment,null,React.createElement(Q.ColorPicker,{color:l||"",disableAlpha:f,onChangeComplete:function(e){s("rgba(".concat(e.rgb.r,", ").concat(e.rgb.g,", ").concat(e.rgb.b,", ").concat(e.rgb.a,")")),d(e.hex)}}),g.length&&React.createElement("div",{className:"themeColors"},g.map((function(e){var a=e.color;return React.createElement("div",{key:a,className:"bColorButtonContainer"},React.createElement("button",{className:"bColorButton",onClick:function(){s(a),d(a)},"aria-expanded":t,style:{backgroundColor:l?a:"transparent"}}))}))))}}))},fe="#4527a4",ue=React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 548.172 548.172"},React.createElement("path",{fill:fe,d:"M534.75 49.965c-8.945-8.945-19.694-13.422-32.261-13.422H45.681c-12.562 0-23.313 4.477-32.264 13.422C4.471 58.913 0 69.663 0 82.226v310.633c0 12.566 4.471 23.315 13.417 32.265 8.951 8.945 19.702 13.414 32.264 13.414h155.318c0 7.231-1.524 14.661-4.57 22.269-3.044 7.614-6.09 14.273-9.136 19.981-3.042 5.715-4.565 9.897-4.565 12.56 0 4.948 1.807 9.24 5.424 12.847 3.615 3.621 7.898 5.435 12.847 5.435h146.179c4.949 0 9.233-1.813 12.848-5.435 3.62-3.606 5.427-7.898 5.427-12.847 0-2.468-1.526-6.611-4.571-12.415-3.046-5.801-6.092-12.566-9.134-20.267-3.046-7.71-4.569-15.085-4.569-22.128h155.318c12.56 0 23.309-4.469 32.254-13.414 8.949-8.949 13.422-19.698 13.422-32.265V82.226c.003-12.563-4.474-23.313-13.423-32.261zm-23.123 269.803c0 2.475-.903 4.613-2.711 6.424-1.81 1.804-3.952 2.707-6.427 2.707H45.681c-2.473 0-4.615-.903-6.423-2.707-1.807-1.817-2.712-3.949-2.712-6.424V82.226c0-2.475.902-4.615 2.712-6.423 1.809-1.805 3.951-2.712 6.423-2.712h456.815c2.471 0 4.617.904 6.42 2.712 1.808 1.809 2.711 3.949 2.711 6.423v237.542z"})),me=React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 512 512"},React.createElement("path",{fill:fe,d:"M394.667 0H117.333C87.936 0 64 23.936 64 53.333v405.333C64 488.064 87.936 512 117.333 512h277.333C424.064 512 448 488.064 448 458.667V53.333C448 23.936 424.064 0 394.667 0zM256 480c-11.755 0-21.333-9.579-21.333-21.333s9.579-21.333 21.333-21.333 21.333 9.579 21.333 21.333S267.755 480 256 480zm149.333-64c0 5.888-4.779 10.667-10.667 10.667H117.333c-5.888 0-10.667-4.779-10.667-10.667V53.333c0-5.888 4.779-10.667 10.667-10.667h277.333c5.888 0 10.667 4.779 10.667 10.667V416z"})),de=React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:15,height:15,viewBox:"0 0 503.604 503.604"},React.createElement("path",{fill:fe,d:"M337.324 0H167.192c-28.924 0-53.5 23.584-53.5 52.5v398.664c0 28.916 24.056 52.44 52.98 52.44l170.412-.184c28.92 0 52.58-23.528 52.58-52.448l.248-398.5C389.908 23.452 366.364 0 337.324 0zM227.68 31.476h49.36c4.336 0 7.868 3.52 7.868 7.868 0 4.348-3.532 7.868-7.868 7.868h-49.36a7.865 7.865 0 01-7.868-7.868 7.865 7.865 0 017.868-7.868zm-29.66 2.504c2.916-2.912 8.224-2.952 11.136 0a7.973 7.973 0 012.324 5.588c0 2.048-.864 4.088-2.324 5.548-1.452 1.46-3.504 2.32-5.548 2.32-2.084 0-4.088-.86-5.588-2.32-1.452-1.456-2.28-3.5-2.28-5.548-.004-2.088.828-4.132 2.28-5.588zm52.752 454.028c-12.984 0-23.544-10.568-23.544-23.548 0-12.984 10.56-23.548 23.544-23.548s23.544 10.564 23.544 23.548c0 12.98-10.564 23.548-23.544 23.548zm114.716-63.1H141.232V74.756h224.256v350.152z"})),ge=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 430.848 430.848"},React.createElement("path",{d:"M286.244,249.537l10.992-45.639c0.035-0.143,0.071-0.285,0.109-0.428c2.909-10.867,11.469-19.426,22.339-22.338 l33.347-8.936c-5.472-6.525-13.678-10.682-22.839-10.682h-9.837c-2.511-7.895-5.7-15.59-9.515-22.957l6.96-6.959 c11.622-11.623,11.622-30.535,0-42.156L296.76,68.4c-5.631-5.629-13.117-8.73-21.079-8.73c-7.961,0-15.447,3.102-21.078,8.732 l-6.96,6.959c-7.369-3.814-15.064-7.004-22.956-9.516V56.01c0-16.436-13.372-29.807-29.808-29.807h-29.758 c-16.436,0-29.808,13.371-29.808,29.807v9.836c-7.893,2.512-15.588,5.701-22.957,9.516l-6.96-6.961 c-5.631-5.629-13.117-8.73-21.078-8.73c-7.961,0-15.447,3.102-21.079,8.732L42.2,89.443c-11.622,11.621-11.622,30.533,0,42.156 l6.959,6.959c-3.815,7.367-7.004,15.063-9.515,22.957h-9.837C13.372,161.516,0,174.887,0,191.324v29.758 c0,16.436,13.372,29.807,29.808,29.807h9.837c2.511,7.895,5.7,15.588,9.515,22.957l-6.96,6.959 c-11.623,11.623-11.623,30.533,0,42.158l21.041,21.039c5.632,5.631,13.118,8.732,21.079,8.732s15.447-3.102,21.077-8.732 l6.96-6.959c7.366,3.815,15.061,7.002,22.957,9.514v9.838c0,16.436,13.372,29.809,29.808,29.809h25.809 c-2.388-5.691-3.644-11.852-3.645-18.209c-0.002-12.572,4.892-24.391,13.781-33.279L286.244,249.537z M180,286.201 c-44.112,0-80-35.887-80-79.998c0-44.113,35.888-80.002,80-80.002s80,35.889,80,80.002C260,250.314,224.112,286.201,180,286.201z"}),React.createElement("path",{d:"M425.267,218.734l-0.319-0.32c-0.939-0.941-2.189-1.428-3.541-1.469c-1.326,0-2.598,0.525-3.536,1.465l-21.596,21.596 c-3.304,3.305-7.699,5.125-12.375,5.125c-4.676,0-9.072-1.82-12.379-5.129c-3.307-3.305-5.128-7.701-5.128-12.377 c0.001-4.676,1.821-9.072,5.126-12.377l21.596-21.596c0.939-0.939,1.465-2.213,1.464-3.539c-0.001-1.328-0.53-2.6-1.47-3.537 l-0.314-0.313c-3.605-3.605-8.399-5.592-13.499-5.592c-1.665,0-3.325,0.219-4.936,0.65l-44.348,11.885 c-6.568,1.76-11.741,6.932-13.498,13.496c-0.011,0.041-0.021,0.08-0.031,0.121l-11.817,49.063l-87.667,87.666 c-6.528,6.527-10.122,15.207-10.121,24.44c0.002,9.232,3.598,17.91,10.126,24.439l2.088,2.088 c6.528,6.529,15.209,10.125,24.443,10.125h0c9.231,0,17.909-3.594,24.437-10.121l87.667-87.666l49.061-11.816 c0.041-0.01,0.082-0.022,0.122-0.031c6.563-1.758,11.735-6.928,13.497-13.496l11.883-44.352 C431.959,230.598,430.066,223.535,425.267,218.734z M257.26,368.406c-1.888,1.889-4.399,2.93-7.071,2.93 c-2.671,0-5.183-1.041-7.072-2.932c-1.887-1.885-2.928-4.397-2.928-7.068c-0.001-2.672,1.041-5.185,2.931-7.072 c1.886-1.887,4.398-2.928,7.069-2.928c2.672,0,5.184,1.041,7.072,2.93c1.887,1.885,2.928,4.396,2.928,7.068 C260.189,364.006,259.148,366.518,257.26,368.406z M316.194,305.935L274.82,347.31c-1.416,1.416-3.3,2.197-5.303,2.197 c-2.003,0-3.887-0.781-5.303-2.197c-1.417-1.416-2.197-3.299-2.197-5.303s0.78-3.887,2.197-5.303l41.374-41.375 c1.417-1.418,3.3-2.197,5.303-2.197s3.887,0.779,5.303,2.197c1.417,1.416,2.197,3.299,2.197,5.303S317.611,304.519,316.194,305.935 z"})),ve=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 448 512"},React.createElement("path",{d:"M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"})),pe=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 384 512"},React.createElement("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"})),he=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 320 512",width:16,height:16},React.createElement("path",{d:"M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"}));function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,o,l=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return we(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?we(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}var Se=function(e){var t=e.device,a=void 0===t?"desktop":t,r=e.onChange,n=e.className,o=void 0===n?"iconButton":n,l=e.style,s=be((0,i.useState)(!1),2),c=s[0],y=s[1];return window.addEventListener("click",(function(){return y(!1)})),React.createElement("div",{className:"bDevice",style:l},!c&&React.createElement("button",{className:o,title:a[0].toUpperCase()+a.slice(1),onClick:function(e){y(!0),e.stopPropagation()}},"desktop"==a?ue:"tablet"==a?me:de),c&&React.createElement("div",{className:"bDevicePopup"},[{value:"desktop",icon:ue},{value:"tablet",icon:me},{value:"mobile",icon:de}].map((function(e){var t=e.icon,a=e.value;return React.createElement("button",{key:a,className:o,title:a[0].toUpperCase()+a.slice(1),onClick:function(){r(a),y(!1)}},t)}))))};function _e(e){return _e="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(e)}function Oe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Ce(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(a),!0).forEach((function(t){Re(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Oe(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function Re(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=_e(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=_e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_e(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Pe=function(e){var t=e.className,a=void 0===t?"":t,i=e.label,n=void 0===i?(0,r.__)("Border:","bplugins"):i,o=e.value,l=e.onChange,s=e.defaults,c=void 0===s?{}:s,y={width:"0px",style:"solid",color:"#0000",side:"all",radius:"0px"},f=function(e){return(null==c?void 0:c[e])||y[e]},u=function(e){return(null==o?void 0:o[e])||f(e)},m=function(e,t){return l(Ce(Ce({},o),{},Re({},e,t)))},d=function(e){return React.createElement(Q.Button,{icon:"image-rotate",className:"bPlResetVal",onClick:function(){return function(e){return l(Ce(Ce({},o),{},Re({},e,f(e))))}(e)}})};return React.createElement(Q.PanelRow,{className:"bPlDropdown ".concat(a)},React.createElement($,{className:"mt5"},n),React.createElement(Q.Dropdown,{className:"bPlDropdownContainer",contentClassName:"bPlDropdownPopover",popoverProps:{placement:"bottom-end"},renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return React.createElement(Q.Button,{icon:"edit",onClick:a,"aria-expanded":t})},renderContent:function(){return React.createElement(React.Fragment,null,React.createElement(Q.PanelRow,null,React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Width:","bplugins"),labelPosition:"left",value:u("width"),onChange:function(e){return m("width",e)},units:[ee(),ae()]}),(null==o?void 0:o.width)&&(null==o?void 0:o.width)!==f("width")&&d("width")),React.createElement(Q.PanelRow,null,React.createElement($,{className:""},(0,r.__)("Style:","bplugins")),React.createElement(Q.SelectControl,{value:u("style"),onChange:function(e){return m("style",e)},options:Z}),(null==o?void 0:o.style)&&(null==o?void 0:o.style)!==f("style")&&d("style")),React.createElement(ye,{label:(0,r.__)("Color:","bplugins"),value:u("color"),onChange:function(e){return m("color",e)},defaultColor:f("color")}),React.createElement(Q.PanelRow,null,React.createElement($,{className:""},(0,r.__)("Sides:","bplugins")),React.createElement(Q.SelectControl,{value:u("side"),onChange:function(e){return m("side",e)},options:ne}),(null==o?void 0:o.side)&&(null==o?void 0:o.side)!==f("side")&&d("side")),React.createElement(Q.PanelRow,null,React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Radius:","bplugins"),labelPosition:"left",value:u("radius"),onChange:function(e){return m("radius",e)},units:[ee(50),te(50),ae(3),ie(3)],isResetValueOnUnitChange:!0}),(null==o?void 0:o.radius)&&(null==o?void 0:o.radius)!==f("radius")&&d("radius")))}}))},Ee=function(e){var t=e.className,a=e.label,i=void 0===a?"":a,r=e.value,n=e.onChange,o=e.options,l=e.isIcon,s=void 0!==l&&l,c=e.isTextIcon,y=void 0!==c&&c,f=e.size,u=function(e){var t=e.className,a=void 0===t?"":t;return React.createElement(Q.ButtonGroup,{className:"bPlBtnGroup ".concat(a||null)},Object.values(o).map((function(e){var t=e.value,a=e.icon,i=void 0===a?"":a,o=e.label,l=void 0===o?"":o,c=e.def,u=void 0===c?"":c,m=r===t,d="small"===f;return React.createElement(Q.Button,{key:t,label:l,showTooltip:!0,tooltipPosition:"top",icon:s?i:null,variant:m?"primary":"","aria-pressed":m,isSmall:d,isMedium:!d,onClick:function(){return n(t,u&&u)}},y?i:s?"":l)})))};return i?React.createElement(Q.PanelRow,{className:t},React.createElement($,{className:""},i),React.createElement(u,null)):React.createElement(u,{className:t})};function xe(e){return xe="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},xe(e)}function ke(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Te(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(a),!0).forEach((function(t){je(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ke(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function je(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=xe(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=xe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var Ne=Q.__experimentalGradientPicker||Q.GradientPicker,Ae=function(e){var t=e.className,a=void 0===t?"":t,i=e.label,n=void 0===i?(0,r.__)("Colors:","bplugins"):i,o=e.value,l=e.onChange,s=e.defaults,c=void 0===s?{}:s,y={color:"#333",bgType:"solid",bg:"#0000",gradient:"linear-gradient(135deg, #4527a4, #8344c5)"},f=function(e){return(null==c?void 0:c[e])||y[e]},u=function(e){return(null==o?void 0:o[e])||f(e)},m=function(e,t){return l(Te(Te({},o),{},je({},e,t)))};return React.createElement(Q.PanelRow,{className:"bPlDropdown ".concat(a)},React.createElement($,{className:""},n," ",React.createElement(Q.ColorIndicator,{colorValue:u("color")})," ",React.createElement(Q.ColorIndicator,{colorValue:u("gradient"===u("bgType")?"gradient":"bg")})),React.createElement(Q.Dropdown,{className:"bPlDropdownContainer",contentClassName:"bPlDropdownPopover",popoverProps:{placement:"bottom-end"},renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return React.createElement(Q.Button,{icon:"edit",onClick:a,"aria-expanded":t})},renderContent:function(){return React.createElement(React.Fragment,null,React.createElement(ye,{label:(0,r.__)("Color:","bplugins"),value:u("color"),onChange:function(e){return m("color",e)},defaultColor:f("color")}),React.createElement(Q.PanelRow,{className:"mt20"},React.createElement($,{className:""},(0,r.__)("Background:","bplugins")),React.createElement(Ee,{value:u("bgType"),onChange:function(e){return m("bgType",e)},options:le,size:"small"})),"gradient"===u("bgType")?React.createElement(Ne,{value:u("gradient"),onChange:function(e){return m("gradient",e)},gradients:oe}):React.createElement(ye,{label:(0,r.__)("Background Color:","bplugins"),value:u("bg"),onChange:function(e){return m("bg",e)},defaultColor:f("bg")}))}}))};var Me=wp.data,De=wp.blob;function Ie(e){return Ie="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},Ie(e)}function Be(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Le(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(a),!0).forEach((function(t){Fe(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Be(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function Fe(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=Ie(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=Ie(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ie(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}(0,Me.withSelect)((function(e,t){var a=t.value;return{image:null!=a&&a.id?e("core").getMedia(null==a?void 0:a.id):null,imageSizes:e("core/block-editor").getSettings().imageSizes}}))((function(e){var t,a=e.className,i=e.value,n=void 0===i?{}:i,o=e.onChange,l=e.image,s=e.imageSizes,c=function(e,t){return o(Le(Le({},n),{},Fe({},e,t)))};return React.createElement("div",{className:a},(null==n?void 0:n.url)&&!(0,De.isBlobURL)(null==n?void 0:n.url)&&React.createElement(React.Fragment,null,React.createElement($,{className:"mb5"},(0,r.__)("Alt Text (Alternative Text):","bplugins")),React.createElement(Q.TextControl,{value:null==n?void 0:n.alt,onChange:function(e){return c("alt",e)}})),(null==n?void 0:n.id)&&0!==(null===(t=J(l,s))||void 0===t?void 0:t.length)&&React.createElement(Q.PanelRow,null,React.createElement($,{className:""},(0,r.__)("Select Size:","bplugins")),React.createElement(Q.SelectControl,{value:null==n?void 0:n.url,onChange:function(e){return c("url",e)},options:J(l,s)})))})),(0,Q.withNotices)((function(e){var t=e.label,a=void 0===t?(0,r.__)(" Image:","bplugins"):t,i=e.icon,n=void 0===i?"format-image":i,o=e.value,l=void 0===o?{}:o,s=e.onChange,c=e.noticeOperations,y=e.noticeUI;return React.createElement(X.MediaPlaceholder,{labels:{title:a},icon:n,allowedTypes:["image"],accept:"image/*",onSelect:function(e){var t=e.id,a=e.url,i=e.alt,r=e.title;return s(Le(Le({},l),{},{id:t,url:a,alt:i,title:r}))},onSelectURL:function(e){return s(Le(Le({},l),{},{id:null,url:e,alt:"",title:""}))},onError:function(e){return c.createErrorNotice(e)},notices:y})}));function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},ze.apply(null,arguments)}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}function Ge(e,t){if(e){if("string"==typeof e)return He(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?He(e,t):void 0}}function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,o,l=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||Ge(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e){return Ue="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},Ue(e)}function Ve(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=Ue(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}function We(e,t,a){return(t=Ve(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ye(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),i.forEach((function(t){We(e,t,a[t])}))}return e}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ve(i.key),i)}}function Xe(e,t,a){return t&&qe(e.prototype,t),a&&qe(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $e(e,t){if(t&&("object"==Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qe(e)}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ze(e)}function et(e,t){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},et(e,t)}function tt(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&et(e,t)}var at=ReactDOM,it=a(822),rt=a.n(it);function nt(e){return function(e){if(Array.isArray(e))return He(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ge(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ot=a(435),lt=a.n(ot),st=function(){function e(){Je(this,e),We(this,"refs",{})}return Xe(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 a=this.getIndex(e,t);-1!==a&&this.refs[e].splice(a,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(ct)}}]),e}();function ct(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function yt(e,t){return Object.keys(e).reduce((function(a,i){return-1===t.indexOf(i)&&(a[i]=e[i]),a}),{})}var ft={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},ut=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];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function mt(e,t){Object.keys(t).forEach((function(a){e.style[a]=t[a]}))}function dt(e,t){e.style["".concat(ut,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function gt(e,t){e.style["".concat(ut,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function vt(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function pt(e,t,a){return Math.max(e,Math.min(a,t))}function ht(e){return"px"===e.substr(-2)?parseFloat(e):0}function bt(e,t){var a=t.displayName||t.name;return a?"".concat(e,"(").concat(a,")"):e}function wt(e,t){var a=e.getBoundingClientRect();return{top:a.top+t.top,left:a.left+t.left}}function St(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 _t(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var i={left:a.left+e.offsetLeft,top:a.top+e.offsetTop};return e.parentNode===t?i:_t(e.parentNode,t,i)}}function Ot(e){var t=e.lockOffset,a=e.width,i=e.height,r=t,n=t,o="px";if("string"==typeof t){var l=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);rt()(null!==l,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),r=parseFloat(t),n=parseFloat(t),o=l[1]}return rt()(isFinite(r)&&isFinite(n),"lockOffset value should be a finite. Given %s",t),"%"===o&&(r=r*a/100,n=n*i/100),{x:r,y:n}}function Ct(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),a=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return a.test(t[e])}))}(e)?e:Ct(e.parentNode):null}var Rt=27,Pt=32,Et=37,xt=38,kt=39,Tt=40,jt={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Nt(e){return null!=e.sortableHandle}var At=function(){function e(t,a){Je(this,e),this.container=t,this.onScrollCallback=a}return Xe(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,a=e.translate,i=e.minTranslate,r=e.maxTranslate,n=e.width,o=e.height,l={x:0,y:0},s={x:1,y:1},c=10,y=10,f=this.container,u=f.scrollTop,m=f.scrollLeft,d=f.scrollHeight,g=f.scrollWidth,v=0===u,p=d-u-f.clientHeight==0,h=0===m,b=g-m-f.clientWidth==0;a.y>=r.y-o/2&&!p?(l.y=1,s.y=y*Math.abs((r.y-o/2-a.y)/o)):a.x>=r.x-n/2&&!b?(l.x=1,s.x=c*Math.abs((r.x-n/2-a.x)/n)):a.y<=i.y+o/2&&!v?(l.y=-1,s.y=y*Math.abs((a.y-o/2-i.y)/o)):a.x<=i.x+n/2&&!h&&(l.x=-1,s.x=c*Math.abs((a.x-n/2-i.x)/n)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:s.x*l.x,top:s.y*l.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var Mt={axis:lt().oneOf(["x","y","xy"]),contentWindow:lt().any,disableAutoscroll:lt().bool,distance:lt().number,getContainer:lt().func,getHelperDimensions:lt().func,helperClass:lt().string,helperContainer:lt().oneOfType([lt().func,"undefined"==typeof HTMLElement?lt().any:lt().instanceOf(HTMLElement)]),hideSortableGhost:lt().bool,keyboardSortingTransitionDuration:lt().number,lockAxis:lt().string,lockOffset:lt().oneOfType([lt().number,lt().string,lt().arrayOf(lt().oneOfType([lt().number,lt().string]))]),lockToContainerEdges:lt().bool,onSortEnd:lt().func,onSortMove:lt().func,onSortOver:lt().func,onSortStart:lt().func,pressDelay:lt().number,pressThreshold:lt().number,keyCodes:lt().shape({lift:lt().arrayOf(lt().number),drop:lt().arrayOf(lt().number),cancel:lt().arrayOf(lt().number),up:lt().arrayOf(lt().number),down:lt().arrayOf(lt().number)}),shouldCancelStart:lt().func,transitionDuration:lt().number,updateBeforeSortStart:lt().func,useDragHandle:lt().bool,useWindowAsScrollContainer:lt().bool},Dt={lift:[Pt],drop:[Pt],cancel:[Rt],up:[xt,Et],down:[Tt,kt]},It={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:Dt,shouldCancelStart:function(e){return-1!==[jt.Input,jt.Textarea,jt.Select,jt.Option,jt.Button].indexOf(e.target.tagName)||!!vt(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Bt=Object.keys(Mt);var Lt=(0,i.createContext)({manager:{}});function Ft(e){var t,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(e){var t;Je(this,a),We(Qe(Qe(t=$e(this,Ze(a).call(this,e)))),"state",{}),We(Qe(Qe(t)),"handleStart",(function(e){var a=t.props,i=a.distance,r=a.shouldCancelStart;if(2!==e.button&&!r(e)){t.touched=!0,t.position=St(e);var n=vt(e.target,(function(e){return null!=e.sortableInfo}));if(n&&n.sortableInfo&&t.nodeIsChild(n)&&!t.state.sorting){var o=t.props.useDragHandle,l=n.sortableInfo,s=l.index,c=l.collection;if(l.disabled)return;if(o&&!vt(e.target,Nt))return;t.manager.active={collection:c,index:s},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==jt.Anchor||e.preventDefault(),i||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),We(Qe(Qe(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),We(Qe(Qe(t)),"handleMove",(function(e){var a=t.props,i=a.distance,r=a.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var n=St(e),o={x:t.position.x-n.x,y:t.position.y-n.y},l=Math.abs(o.x)+Math.abs(o.y);t.delta=o,i||r&&!(l>=r)?i&&l>=i&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),We(Qe(Qe(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),We(Qe(Qe(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),We(Qe(Qe(t)),"handlePress",(function(e){try{var a=t.manager.getActive(),i=function(){if(a){var i=function(){var a,i,r,c,g,v,p=u.sortableInfo.index,h=(a=u,{bottom:ht((i=window.getComputedStyle(a)).marginBottom),left:ht(i.marginLeft),right:ht(i.marginRight),top:ht(i.marginTop)}),b=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:ht(t.gridColumnGap),y:ht(t.gridRowGap)}:{x:0,y:0}}(t.container),w=t.scrollContainer.getBoundingClientRect(),S=o({index:p,node:u,collection:m});if(t.node=u,t.margin=h,t.gridGap=b,t.width=S.width,t.height=S.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=u.getBoundingClientRect(),t.containerBoundingRect=w,t.index=p,t.newIndex=p,t.axis={x:n.indexOf("x")>=0,y:n.indexOf("y")>=0},t.offsetEdge=_t(u,t.container),t.initialOffset=St(d?Ye({},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((c="input, textarea, select, canvas, [contenteditable]",g=(r=u).querySelectorAll(c),nt((v=r.cloneNode(!0)).querySelectorAll(c)).forEach((function(e,t){"file"!==e.type&&(e.value=g[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===jt.Canvas&&g[t].width>0&&g[t].height>0&&e.getContext("2d").drawImage(g[t],0,0)})),v)),mt(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-h.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-h.top,"px"),width:"".concat(t.width,"px")}),d&&t.helper.focus(),s&&(t.sortableGhost=u,mt(u,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},d){var _=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,O=_.top,C=_.left,R=_.width,P=O+_.height,E=C+R;t.axis.x&&(t.minTranslate.x=C-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=P-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(f?0:w.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(f?t.contentWindow.innerWidth:w.left+w.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(f?0:w.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(f?t.contentWindow.innerHeight:w.top+w.height)-t.boundingClientRect.top-t.height/2);l&&l.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?e.target:t.contentWindow,d?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(ft.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),ft.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:p}),y&&y({node:u,index:p,collection:m,isKeySorting:d,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),d&&t.keyMove(0)},r=t.props,n=r.axis,o=r.getHelperDimensions,l=r.helperClass,s=r.hideSortableGhost,c=r.updateBeforeSortStart,y=r.onSortStart,f=r.useWindowAsScrollContainer,u=a.node,m=a.collection,d=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var a=function(e,t){try{var a=e()}catch(e){return t(!0,e)}return a&&a.then?a.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}((function(){var t=u.sortableInfo.index;return Promise.resolve(c({collection:m,index:t,node:u,isKeySorting:d},e)).then((function(){}))}),(function(e,a){if(t._awaitingUpdateBeforeSortStart=!1,e)throw a;return a}));if(a&&a.then)return a.then((function(){}))}}();return g&&g.then?g.then(i):i()}}();return Promise.resolve(i&&i.then?i.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),We(Qe(Qe(t)),"handleSortMove",(function(e){var a=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),a&&a(e)})),We(Qe(Qe(t)),"handleSortEnd",(function(e){var a=t.props,i=a.hideSortableGhost,r=a.onSortEnd,n=t.manager,o=n.active.collection,l=n.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(l?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(ft.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),ft.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),i&&t.sortableGhost&&mt(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,y=s.length;c<y;c++){var f=s[c],u=f.node;f.edgeOffset=null,f.boundingClientRect=null,dt(u,null),gt(u,null),f.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof r&&r({collection:o,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:l,nodes:s},e),t.touched=!1})),We(Qe(Qe(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,a=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(a){var i=Ye({},t.translate),r=0,n=0;return t.axis.x&&(i.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),r=t.translate.x-i.x),t.axis.y&&(i.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),n=t.translate.y-i.y),t.translate=i,dt(t.helper,t.translate),t.scrollContainer.scrollLeft+=r,void(t.scrollContainer.scrollTop+=n)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),We(Qe(Qe(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),We(Qe(Qe(t)),"handleKeyDown",(function(e){var a=e.keyCode,i=t.props,r=i.shouldCancelStart,n=i.keyCodes,o=Ye({},Dt,void 0===n?{}:n);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||o.lift.includes(a)&&!r(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),o.lift.includes(a)&&!t.manager.active?t.keyLift(e):o.drop.includes(a)&&t.manager.active?t.keyDrop(e):o.cancel.includes(a)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):o.up.includes(a)?t.keyMove(-1):o.down.includes(a)&&t.keyMove(1))})),We(Qe(Qe(t)),"keyLift",(function(e){var a=e.target,i=vt(a,(function(e){return null!=e.sortableInfo})).sortableInfo,r=i.index,n=i.collection;t.initialFocusedNode=a,t.manager.isKeySorting=!0,t.manager.active={index:r,collection:n},t.handlePress(e)})),We(Qe(Qe(t)),"keyMove",(function(e){var a=t.manager.getOrderedRefs(),i=a[a.length-1].node.sortableInfo.index,r=t.newIndex+e,n=t.newIndex;if(!(r<0||r>i)){t.prevIndex=n,t.newIndex=r;var o=function(e,t,a){return e<a&&e>t?e-1:e>a&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),l=a.find((function(e){return e.node.sortableInfo.index===o})),s=l.node,c=t.containerScrollDelta,y=l.boundingClientRect||wt(s,c),f=l.translate||{x:0,y:0},u=y.top+f.y-c.top,m=y.left+f.x-c.left,d=n<r,g=d&&t.axis.x?s.offsetWidth-t.width:0,v=d&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:m+g,pageY:u+v,ignoreTransition:0===e})}})),We(Qe(Qe(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),We(Qe(Qe(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),We(Qe(Qe(t)),"isValidSortingTarget",(function(e){var a=t.props.useDragHandle,i=e.target,r=vt(i,(function(e){return null!=e.sortableInfo}));return r&&r.sortableInfo&&!r.sortableInfo.disabled&&(a?Nt(i):i.sortableInfo)}));var r=new st;return function(e){rt()(!(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=r,t.wrappedInstance=(0,i.createRef)(),t.sortableContextValue={manager:r},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return tt(a,t),Xe(a,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,a=this.getContainer();Promise.resolve(a).then((function(a){e.container=a,e.document=e.container.ownerDocument||document;var i=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof i?i():i,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Ct(e.container)||e.container,e.autoScroller=new At(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return ft[t].forEach((function(a){return e.container.addEventListener(a,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 ft[t].forEach((function(a){return e.container.removeEventListener(a,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,a=t.lockAxis,i=t.lockOffset,r=t.lockToContainerEdges,n=t.transitionDuration,o=t.keyboardSortingTransitionDuration,l=void 0===o?n:o,s=this.manager.isKeySorting,c=e.ignoreTransition,y=St(e),f={x:y.x-this.initialOffset.x,y:y.y-this.initialOffset.y};if(f.y-=window.pageYOffset-this.initialWindowScroll.top,f.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=f,r){var u=function(e){var t=e.height,a=e.width,i=e.lockOffset,r=Array.isArray(i)?i:[i,i];rt()(2===r.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",i);var n=Ke(r,2),o=n[0],l=n[1];return[Ot({height:t,lockOffset:o,width:a}),Ot({height:t,lockOffset:l,width:a})]}({height:this.height,lockOffset:i,width:this.width}),m=Ke(u,2),d=m[0],g=m[1],v={x:this.width/2-d.x,y:this.height/2-d.y},p={x:this.width/2-g.x,y:this.height/2-g.y};f.x=pt(this.minTranslate.x+v.x,this.maxTranslate.x-p.x,f.x),f.y=pt(this.minTranslate.y+v.y,this.maxTranslate.y-p.y,f.y)}"x"===a?f.y=0:"y"===a&&(f.x=0),s&&l&&!c&&gt(this.helper,l),dt(this.helper,f)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,a=e.hideSortableGhost,i=e.onSortOver,r=this.containerScrollDelta,n=this.windowScrollDelta,o=this.manager.getOrderedRefs(),l=this.offsetEdge.left+this.translate.x+r.left,s=this.offsetEdge.top+this.translate.y+r.top,c=this.manager.isKeySorting,y=this.newIndex;this.newIndex=null;for(var f=0,u=o.length;f<u;f++){var m=o[f].node,d=m.sortableInfo.index,g=m.offsetWidth,v=m.offsetHeight,p={height:this.height>v?v/2:this.height/2,width:this.width>g?g/2:this.width/2},h=c&&d>this.index&&d<=y,b=c&&d<this.index&&d>=y,w={x:0,y:0},S=o[f].edgeOffset;S||(S=_t(m,this.container),o[f].edgeOffset=S,c&&(o[f].boundingClientRect=wt(m,r)));var _=f<o.length-1&&o[f+1],O=f>0&&o[f-1];_&&!_.edgeOffset&&(_.edgeOffset=_t(_.node,this.container),c&&(_.boundingClientRect=wt(_.node,r))),d!==this.index?(t&&gt(m,t),this.axis.x?this.axis.y?b||d<this.index&&(l+n.left-p.width<=S.left&&s+n.top<=S.top+p.height||s+n.top+p.height<=S.top)?(w.x=this.width+this.marginOffset.x,S.left+w.x>this.containerBoundingRect.width-p.width&&_&&(w.x=_.edgeOffset.left-S.left,w.y=_.edgeOffset.top-S.top),null===this.newIndex&&(this.newIndex=d)):(h||d>this.index&&(l+n.left+p.width>=S.left&&s+n.top+p.height>=S.top||s+n.top+p.height>=S.top+v))&&(w.x=-(this.width+this.marginOffset.x),S.left+w.x<this.containerBoundingRect.left+p.width&&O&&(w.x=O.edgeOffset.left-S.left,w.y=O.edgeOffset.top-S.top),this.newIndex=d):h||d>this.index&&l+n.left+p.width>=S.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=d):(b||d<this.index&&l+n.left<=S.left+p.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=d)):this.axis.y&&(h||d>this.index&&s+n.top+p.height>=S.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=d):(b||d<this.index&&s+n.top<=S.top+p.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=d))),dt(m,w),o[f].translate=w):a&&(this.sortableGhost=m,mt(m,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=y);var C=c?this.prevIndex:y;i&&this.newIndex!==C&&i({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:C,isKeySorting:c,nodes:o,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return rt()(r.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?(0,at.findDOMNode)(this):e(r.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,i.createElement)(Lt.Provider,{value:this.sortableContextValue},(0,i.createElement)(e,ze({ref:t},yt(this.props,Bt))))}},{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}}}]),a}(i.Component),We(t,"displayName",bt("sortableList",e)),We(t,"defaultProps",It),We(t,"propTypes",Mt),a}var zt={index:lt().number.isRequired,collection:lt().oneOfType([lt().number,lt().string]),disabled:lt().bool},Ht=Object.keys(zt);function Gt(e){var t,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(){var e,t;Je(this,a);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return We(Qe(Qe(t=$e(this,(e=Ze(a)).call.apply(e,[this].concat(n))))),"wrappedInstance",(0,i.createRef)()),t}return tt(a,t),Xe(a,[{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,a=e.disabled,i=e.index,r=(0,at.findDOMNode)(this);r.sortableInfo={collection:t,disabled:a,index:i,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 rt()(r.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=r.withRef?this.wrappedInstance:null;return(0,i.createElement)(e,ze({ref:t},yt(this.props,Ht)))}}]),a}(i.Component),We(t,"displayName",bt("sortableElement",e)),We(t,"contextType",Lt),We(t,"propTypes",zt),We(t,"defaultProps",{collection:0}),a}var Kt=["sortIndex","removeItem","duplicateItem","ItemSettings","active","setActive","itemLabel"];function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Ut.apply(null,arguments)}function Vt(e,t){if(null==e)return{};var a,i,r=function(e,t){if(null==e)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;a[i]=e[i]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.includes(a)||{}.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var Wt=function(e){var t,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return a=t=function(t){function a(){var e,t;Je(this,a);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return We(Qe(Qe(t=$e(this,(e=Ze(a)).call.apply(e,[this].concat(n))))),"wrappedInstance",(0,i.createRef)()),t}return tt(a,t),Xe(a,[{key:"componentDidMount",value:function(){(0,at.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return rt()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,i.createElement)(e,ze({ref:t},this.props))}}]),a}(i.Component),We(t,"displayName",bt("sortableHandle",e)),a}((function(){return React.createElement("div",{className:"gripIcon"},he)})),Yt=Gt((function(e){var t=e.sortIndex,a=e.removeItem,i=e.duplicateItem,r=e.ItemSettings,n=e.active,o=e.setActive,l=e.itemLabel,s=Vt(e,Kt),c=s.attributes[s.arrKey];return React.createElement("div",{className:"bPlItemsPanelItem"},React.createElement("div",{className:"itemsPanelHeader mt10"},React.createElement(Wt,null),React.createElement("div",{className:"panel-header-title"},React.createElement("p",{onClick:function(){return o(n===t?null:t)}},l+" "+(t+1)),React.createElement("div",{className:"itemAction"},React.createElement("div",{onClick:function(e){return i(e,t)}},ve),c.length>1&&React.createElement("div",{onClick:function(e){return a(e,t)}},pe)))),React.createElement("div",{className:"itemsPanelBody ".concat(n===t?"":"hidden")},React.createElement(r,Ut({},s,{index:t}))))}));Ft((function(e){var t=e.attributes[e.arrKey];return React.createElement("div",{className:"bPlItemsPanel"},t.map((function(t,a){return React.createElement(Yt,Ut({key:a,index:a,sortIndex:a},e))})))}));var Jt=Symbol.for("immer-nothing"),qt=Symbol.for("immer-draftable"),Xt=Symbol.for("immer-state");function Qt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $t=Object.getPrototypeOf;function Zt(e){return!!e&&!!e[Xt]}function ea(e){return!!e&&(aa(e)||Array.isArray(e)||!!e[qt]||!!e.constructor?.[qt]||la(e)||sa(e))}var ta=Object.prototype.constructor.toString();function aa(e){if(!e||"object"!=typeof e)return!1;const t=$t(e);if(null===t)return!0;const a=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return a===Object||"function"==typeof a&&Function.toString.call(a)===ta}function ia(e,t){0===ra(e)?Reflect.ownKeys(e).forEach((a=>{t(a,e[a],e)})):e.forEach(((a,i)=>t(i,a,e)))}function ra(e){const t=e[Xt];return t?t.type_:Array.isArray(e)?1:la(e)?2:sa(e)?3:0}function na(e,t){return 2===ra(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oa(e,t,a){const i=ra(e);2===i?e.set(t,a):3===i?e.add(a):e[t]=a}function la(e){return e instanceof Map}function sa(e){return e instanceof Set}function ca(e){return e.copy_||e.base_}function ya(e,t){if(la(e))return new Map(e);if(sa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const a=aa(e);if(!0===t||"class_only"===t&&!a){const t=Object.getOwnPropertyDescriptors(e);delete t[Xt];let a=Reflect.ownKeys(t);for(let i=0;i<a.length;i++){const r=a[i],n=t[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(t[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:e[r]})}return Object.create($t(e),t)}{const t=$t(e);if(null!==t&&a)return{...e};const i=Object.create(t);return Object.assign(i,e)}}function fa(e,t=!1){return ma(e)||Zt(e)||!ea(e)||(ra(e)>1&&(e.set=e.add=e.clear=e.delete=ua),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>fa(t,!0)))),e}function ua(){Qt(2)}function ma(e){return Object.isFrozen(e)}var da,ga={};function va(e){const t=ga[e];return t||Qt(0),t}function pa(){return da}function ha(e,t){t&&(va("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ba(e){wa(e),e.drafts_.forEach(_a),e.drafts_=null}function wa(e){e===da&&(da=e.parent_)}function Sa(e){return da={drafts_:[],parent_:da,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _a(e){const t=e[Xt];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Oa(e,t){t.unfinalizedDrafts_=t.drafts_.length;const a=t.drafts_[0];return void 0!==e&&e!==a?(a[Xt].modified_&&(ba(t),Qt(4)),ea(e)&&(e=Ca(t,e),t.parent_||Pa(t,e)),t.patches_&&va("Patches").generateReplacementPatches_(a[Xt].base_,e,t.patches_,t.inversePatches_)):e=Ca(t,a,[]),ba(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Jt?e:void 0}function Ca(e,t,a){if(ma(t))return t;const i=t[Xt];if(!i)return ia(t,((r,n)=>Ra(e,i,t,r,n,a))),t;if(i.scope_!==e)return t;if(!i.modified_)return Pa(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let r=t,n=!1;3===i.type_&&(r=new Set(t),t.clear(),n=!0),ia(r,((r,o)=>Ra(e,i,t,r,o,a,n))),Pa(e,t,!1),a&&e.patches_&&va("Patches").generatePatches_(i,a,e.patches_,e.inversePatches_)}return i.copy_}function Ra(e,t,a,i,r,n,o){if(Zt(r)){const o=Ca(e,r,n&&t&&3!==t.type_&&!na(t.assigned_,i)?n.concat(i):void 0);if(oa(a,i,o),!Zt(o))return;e.canAutoFreeze_=!1}else o&&a.add(r);if(ea(r)&&!ma(r)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ca(e,r),t&&t.scope_.parent_||"symbol"==typeof i||!Object.prototype.propertyIsEnumerable.call(a,i)||Pa(e,r)}}function Pa(e,t,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fa(t,a)}var Ea={get(e,t){if(t===Xt)return e;const a=ca(e);if(!na(a,t))return function(e,t,a){const i=Ta(t,a);return i?"value"in i?i.value:i.get?.call(e.draft_):void 0}(e,a,t);const i=a[t];return e.finalized_||!ea(i)?i:i===ka(e.base_,t)?(Na(e),e.copy_[t]=Aa(i,e)):i},has(e,t){return t in ca(e)},ownKeys(e){return Reflect.ownKeys(ca(e))},set(e,t,a){const i=Ta(ca(e),t);if(i?.set)return i.set.call(e.draft_,a),!0;if(!e.modified_){const i=ka(ca(e),t),o=i?.[Xt];if(o&&o.base_===a)return e.copy_[t]=a,e.assigned_[t]=!1,!0;if(((r=a)===(n=i)?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==a||na(e.base_,t)))return!0;Na(e),ja(e)}var r,n;return e.copy_[t]===a&&(void 0!==a||t in e.copy_)||Number.isNaN(a)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=a,e.assigned_[t]=!0),!0},deleteProperty(e,t){return void 0!==ka(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Na(e),ja(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const a=ca(e),i=Reflect.getOwnPropertyDescriptor(a,t);return i?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:i.enumerable,value:a[t]}:i},defineProperty(){Qt(11)},getPrototypeOf(e){return $t(e.base_)},setPrototypeOf(){Qt(12)}},xa={};function ka(e,t){const a=e[Xt];return(a?ca(a):e)[t]}function Ta(e,t){if(!(t in e))return;let a=$t(e);for(;a;){const e=Object.getOwnPropertyDescriptor(a,t);if(e)return e;a=$t(a)}}function ja(e){e.modified_||(e.modified_=!0,e.parent_&&ja(e.parent_))}function Na(e){e.copy_||(e.copy_=ya(e.base_,e.scope_.immer_.useStrictShallowCopy_))}ia(Ea,((e,t)=>{xa[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xa.deleteProperty=function(e,t){return xa.set.call(this,e,t,void 0)},xa.set=function(e,t,a){return Ea.set.call(this,e[0],t,a,e[0])};function Aa(e,t){const a=la(e)?va("MapSet").proxyMap_(e,t):sa(e)?va("MapSet").proxySet_(e,t):function(e,t){const a=Array.isArray(e),i={type_:a?1:0,scope_:t?t.scope_:pa(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let r=i,n=Ea;a&&(r=[i],n=xa);const{revoke:o,proxy:l}=Proxy.revocable(r,n);return i.draft_=l,i.revoke_=o,l}(e,t);return(t?t.scope_:pa()).drafts_.push(a),a}function Ma(e){if(!ea(e)||ma(e))return e;const t=e[Xt];let a;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,a=ya(e,t.scope_.immer_.useStrictShallowCopy_)}else a=ya(e,!0);return ia(a,((e,t)=>{oa(a,e,Ma(t))})),t&&(t.finalized_=!1),a}var Da=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,a)=>{if("function"==typeof e&&"function"!=typeof t){const a=t;t=e;const i=this;return function(e=a,...r){return i.produce(e,(e=>t.call(this,e,...r)))}}let i;if("function"!=typeof t&&Qt(6),void 0!==a&&"function"!=typeof a&&Qt(7),ea(e)){const r=Sa(this),n=Aa(e,void 0);let o=!0;try{i=t(n),o=!1}finally{o?ba(r):wa(r)}return ha(r,a),Oa(i,r)}if(!e||"object"!=typeof e){if(i=t(e),void 0===i&&(i=e),i===Jt&&(i=void 0),this.autoFreeze_&&fa(i,!0),a){const t=[],r=[];va("Patches").generateReplacementPatches_(e,i,t,r),a(t,r)}return i}Qt(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...a)=>this.produceWithPatches(t,(t=>e(t,...a)));let a,i;return[this.produce(e,t,((e,t)=>{a=e,i=t})),a,i]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ea(e)||Qt(8),Zt(e)&&(e=function(e){Zt(e)||Qt(10);return Ma(e)}(e));const t=Sa(this),a=Aa(e,void 0);return a[Xt].isManual_=!0,wa(t),a}finishDraft(e,t){const a=e&&e[Xt];a&&a.isManual_||Qt(9);const{scope_:i}=a;return ha(i,t),Oa(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let a;for(a=t.length-1;a>=0;a--){const i=t[a];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}a>-1&&(t=t.slice(a+1));const i=va("Patches").applyPatches_;return Zt(e)?i(e,t):this.produce(e,(e=>i(e,t)))}},Ia=Da.produce;Da.produceWithPatches.bind(Da),Da.setAutoFreeze.bind(Da),Da.setUseStrictShallowCopy.bind(Da),Da.applyPatches.bind(Da),Da.createDraft.bind(Da),Da.finishDraft.bind(Da);function Ba(e){return Ba="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},Ba(e)}function La(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Fa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?La(Object(a),!0).forEach((function(t){za(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):La(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function za(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=Ba(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=Ba(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ba(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Ha(e){return function(e){if(Array.isArray(e))return Ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ka(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,o,l=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||Ka(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ka(e,t){if(e){if("string"==typeof e)return Ua(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ua(e,t):void 0}}function Ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}var Va=function(e){var t=e.className,a=void 0===t?"":t,n=e.label,o=void 0===n?(0,r.__)("Shadow","bplugins"):n,l=e.value,s=e.onChange,c=e.type,y=void 0===c?"box":c,f=e.defaults,u=void 0===f?[]:f,m=Ga((0,i.useState)(0),2),d=m[0],g=m[1],v=[{hOffset:"0px",vOffset:"0px",blur:"0px",spreed:"0px",color:"#7090b0",isInset:!1}],p=(null!=l&&l.length?l:null)||(null!=u&&u.length?u:null)||v,h=function(e){var t;return(null==u||null===(t=u[d])||void 0===t?void 0:t[e])||v[0][e]},b=function(e){return React.createElement(Q.Button,{icon:"image-rotate",className:"bPlResetVal",onClick:function(){return w(e,h(e))}})},w=function(e,t){var a=Ia(p,(function(a){a[d][e]=t}));s(a)},S=function(e){e.preventDefault(),s([].concat(Ha(p.slice(0,d)),[Fa({},p[d])],Ha(p.slice(d)))),g(d+1)},_=function(e){e.preventDefault(),s([].concat(Ha(p.slice(0,d)),Ha(p.slice(d+1)))),g(0===d?0:d-1)},O=p[d]||{},C=O.hOffset,R=void 0===C?"":C,P=O.vOffset,E=void 0===P?"":P,x=O.blur,k=void 0===x?"":x,T=O.spreed,j=void 0===T?"":T,N=O.color,A=void 0===N?"":N,M=O.isInset,D=void 0!==M&&M;return React.createElement(Q.PanelRow,{className:"bPlDropdown ".concat(a)},React.createElement($,{className:"mt5"},o),React.createElement(Q.Dropdown,{className:"bPlDropdownContainer",contentClassName:"bPlDropdownPopover",popoverProps:{placement:"bottom-end"},renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return React.createElement(Q.Button,{icon:"edit",onClick:function(){a(),g(0)},"aria-expanded":t})},renderContent:function(){return React.createElement(React.Fragment,null,1<p.length&&React.createElement(Q.PanelRow,null,React.createElement($,{className:"mt5"},(0,r.__)("Shadow:","bplugins")),React.createElement(Ee,{value:d,onChange:function(e){return g(e)},options:p.map((function(e,t){return{label:t+1+"",value:t}}))||[{label:1,value:0}]})),null!==d&&React.createElement(React.Fragment,null,React.createElement(Q.PanelRow,null,React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Horizontal Offset:","bplugins"),labelPosition:"left",value:R,onChange:function(e){return w("hOffset",e)},units:[ee(),ae(),ie()]}),R&&R!==h("hOffset")&&b("hOffset")),React.createElement(Q.PanelRow,null,React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Vertical Offset:","bplugins"),labelPosition:"left",value:E,onChange:function(e){return w("vOffset",e)},units:[ee(),ae(),ie()]}),E&&E!==h("vOffset")&&b("vOffset")),React.createElement(Q.PanelRow,null,React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Blur:","bplugins"),labelPosition:"left",value:k,onChange:function(e){return w("blur",e)},units:[ee(),ae(),ie()]}),k&&k!==h("blur")&&b("blur")),React.createElement("small",null,(0,r.__)("Blur cannot be negative value!","bplugins")),"box"===y&&React.createElement(Q.PanelRow,null,React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Spreed:","bplugins"),labelPosition:"left",value:j,onChange:function(e){return w("spreed",e)},units:[ee(),ae(),ie()]}),j&&j!==h("spreed")&&b("spreed")),React.createElement(ye,{label:(0,r.__)("Color:","bplugins"),value:A,onChange:function(e){return w("color",e)},defaultColor:h("color")}),"box"===y&&React.createElement(Q.ToggleControl,{label:(0,r.__)("Shadow Inset?","bplugins"),checked:D,onChange:function(e){return w("isInset",e)}}),React.createElement(Q.PanelRow,{className:"itemAction mt20"},1<(null==p?void 0:p.length)&&React.createElement(Q.Button,{className:"removeItem",label:(0,r.__)("Remove","bplugins"),onClick:_},React.createElement(Q.Dashicon,{icon:"no"}),(0,r.__)("Remove","bplugins")),React.createElement(Q.Button,{className:"duplicateItem",label:(0,r.__)("Duplicate","bplugins"),onClick:S},ge,(0,r.__)("Duplicate","bplugins")))),React.createElement("br",null),React.createElement("div",{className:"addItem"},React.createElement(Q.Button,{label:(0,r.__)("Add New Shadow","bplugins"),onClick:function(){return s([].concat(Ha(p),[v[0]]))}},React.createElement(Q.Dashicon,{icon:"plus"}),(0,r.__)("Add New Shadow","bplugins"))))}}))};a(971);var Wa=Gt((function(e){var t=e.value;return React.createElement("li",{className:"bplSortableListItem"},t)}));Ft((function(e){var t=e.items,a=e.property;return React.createElement("ul",null,t.map((function(e,t){return React.createElement(Wa,{key:t,index:t,sortIndex:t,value:a?e[a]:e})})))}));var Ya=[{family:"Default",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"ABeeZee",variants:[400,"400i"],category:"sans-serif"},{family:"Abel",variants:[400],category:"sans-serif"},{family:"Abhaya Libre",variants:[400,500,600,700,800],category:"serif"},{family:"Abril Fatface",variants:[400],category:"display"},{family:"Aclonica",variants:[400],category:"sans-serif"},{family:"Acme",variants:[400],category:"sans-serif"},{family:"Actor",variants:[400],category:"sans-serif"},{family:"Adamina",variants:[400],category:"serif"},{family:"Advent Pro",variants:[100,200,300,400,500,600,700],category:"sans-serif"},{family:"Aguafina Script",variants:[400],category:"handwriting"},{family:"Akaya Kanadaka",variants:[400],category:"display"},{family:"Akaya Telivigala",variants:[400],category:"display"},{family:"Akronim",variants:[400],category:"display"},{family:"Aladin",variants:[400],category:"handwriting"},{family:"Alata",variants:[400],category:"sans-serif"},{family:"Alatsi",variants:[400],category:"sans-serif"},{family:"Aldrich",variants:[400],category:"sans-serif"},{family:"Alef",variants:[400,700],category:"sans-serif"},{family:"Alegreya",variants:[400,500,600,700,800,900,"400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Alegreya SC",variants:[400,"400i",500,"500i",700,"700i",800,"800i",900,"900i"],category:"serif"},{family:"Alegreya Sans",variants:[100,"100i",300,"300i",400,"400i",500,"500i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Alegreya Sans SC",variants:[100,"100i",300,"300i",400,"400i",500,"500i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Aleo",variants:[300,"300i",400,"400i",700,"700i"],category:"serif"},{family:"Alex Brush",variants:[400],category:"handwriting"},{family:"Alfa Slab One",variants:[400],category:"display"},{family:"Alice",variants:[400],category:"serif"},{family:"Alike",variants:[400],category:"serif"},{family:"Alike Angular",variants:[400],category:"serif"},{family:"Allan",variants:[400,700],category:"display"},{family:"Allerta",variants:[400],category:"sans-serif"},{family:"Allerta Stencil",variants:[400],category:"sans-serif"},{family:"Allura",variants:[400],category:"handwriting"},{family:"Almarai",variants:[300,400,700,800],category:"sans-serif"},{family:"Almendra",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Almendra Display",variants:[400],category:"display"},{family:"Almendra SC",variants:[400],category:"serif"},{family:"Amarante",variants:[400],category:"display"},{family:"Amaranth",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Amatic SC",variants:[400,700],category:"handwriting"},{family:"Amethysta",variants:[400],category:"serif"},{family:"Amiko",variants:[400,600,700],category:"sans-serif"},{family:"Amiri",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Amita",variants:[400,700],category:"handwriting"},{family:"Anaheim",variants:[400],category:"sans-serif"},{family:"Andada",variants:[400],category:"serif"},{family:"Andika",variants:[400],category:"sans-serif"},{family:"Andika New Basic",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Angkor",variants:[400],category:"display"},{family:"Annie Use Your Telescope",variants:[400],category:"handwriting"},{family:"Anonymous Pro",variants:[400,"400i",700,"700i"],category:"monospace"},{family:"Antic",variants:[400],category:"sans-serif"},{family:"Antic Didone",variants:[400],category:"serif"},{family:"Antic Slab",variants:[400],category:"serif"},{family:"Anton",variants:[400],category:"sans-serif"},{family:"Antonio",variants:[100,200,300,400,500,600,700],category:"sans-serif"},{family:"Arapey",variants:[400,"400i"],category:"serif"},{family:"Arbutus",variants:[400],category:"display"},{family:"Arbutus Slab",variants:[400],category:"serif"},{family:"Architects Daughter",variants:[400],category:"handwriting"},{family:"Archivo",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Archivo Black",variants:[400],category:"sans-serif"},{family:"Archivo Narrow",variants:[400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Aref Ruqaa",variants:[400,700],category:"serif"},{family:"Arima Madurai",variants:[100,200,300,400,500,700,800,900],category:"display"},{family:"Arimo",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"sans-serif"},{family:"Arizonia",variants:[400],category:"handwriting"},{family:"Armata",variants:[400],category:"sans-serif"},{family:"Arsenal",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Artifika",variants:[400],category:"serif"},{family:"Arvo",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Arya",variants:[400,700],category:"sans-serif"},{family:"Asap",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"sans-serif"},{family:"Asap Condensed",variants:[400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Asar",variants:[400],category:"serif"},{family:"Asset",variants:[400],category:"display"},{family:"Assistant",variants:[200,300,400,500,600,700,800],category:"sans-serif"},{family:"Astloch",variants:[400,700],category:"display"},{family:"Asul",variants:[400,700],category:"sans-serif"},{family:"Athiti",variants:[200,300,400,500,600,700],category:"sans-serif"},{family:"Atma",variants:[300,400,500,600,700],category:"display"},{family:"Atomic Age",variants:[400],category:"display"},{family:"Aubrey",variants:[400],category:"display"},{family:"Audiowide",variants:[400],category:"display"},{family:"Autour One",variants:[400],category:"display"},{family:"Average",variants:[400],category:"serif"},{family:"Average Sans",variants:[400],category:"sans-serif"},{family:"Averia Gruesa Libre",variants:[400],category:"display"},{family:"Averia Libre",variants:[300,"300i",400,"400i",700,"700i"],category:"display"},{family:"Averia Sans Libre",variants:[300,"300i",400,"400i",700,"700i"],category:"display"},{family:"Averia Serif Libre",variants:[300,"300i",400,"400i",700,"700i"],category:"display"},{family:"B612",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"B612 Mono",variants:[400,"400i",700,"700i"],category:"monospace"},{family:"Bad Script",variants:[400],category:"handwriting"},{family:"Bahiana",variants:[400],category:"display"},{family:"Bahianita",variants:[400],category:"display"},{family:"Bai Jamjuree",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Ballet",variants:[400],category:"handwriting"},{family:"Baloo 2",variants:[400,500,600,700,800],category:"display"},{family:"Baloo Bhai 2",variants:[400,500,600,700,800],category:"display"},{family:"Baloo Bhaina 2",variants:[400,500,600,700,800],category:"display"},{family:"Baloo Chettan 2",variants:[400,500,600,700,800],category:"display"},{family:"Baloo Da 2",variants:[400,500,600,700,800],category:"display"},{family:"Baloo Paaji 2",variants:[400,500,600,700,800],category:"display"},{family:"Baloo Tamma 2",variants:[400,500,600,700,800],category:"display"},{family:"Baloo Tammudu 2",variants:[400,500,600,700,800],category:"display"},{family:"Baloo Thambi 2",variants:[400,500,600,700,800],category:"display"},{family:"Balsamiq Sans",variants:[400,"400i",700,"700i"],category:"display"},{family:"Balthazar",variants:[400],category:"serif"},{family:"Bangers",variants:[400],category:"display"},{family:"Barlow",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Barlow Condensed",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Barlow Semi Condensed",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Barriecito",variants:[400],category:"display"},{family:"Barrio",variants:[400],category:"display"},{family:"Basic",variants:[400],category:"sans-serif"},{family:"Baskervville",variants:[400,"400i"],category:"serif"},{family:"Battambang",variants:[400,700],category:"display"},{family:"Baumans",variants:[400],category:"display"},{family:"Bayon",variants:[400],category:"display"},{family:"Be Vietnam",variants:[100,"100i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i"],category:"sans-serif"},{family:"Bebas Neue",variants:[400],category:"display"},{family:"Belgrano",variants:[400],category:"serif"},{family:"Bellefair",variants:[400],category:"serif"},{family:"Belleza",variants:[400],category:"sans-serif"},{family:"Bellota",variants:[300,"300i",400,"400i",700,"700i"],category:"display"},{family:"Bellota Text",variants:[300,"300i",400,"400i",700,"700i"],category:"display"},{family:"BenchNine",variants:[300,400,700],category:"sans-serif"},{family:"Benne",variants:[400],category:"serif"},{family:"Bentham",variants:[400],category:"serif"},{family:"Berkshire Swash",variants:[400],category:"handwriting"},{family:"Beth Ellen",variants:[400],category:"handwriting"},{family:"Bevan",variants:[400],category:"display"},{family:"Big Shoulders Display",variants:[100,300,400,500,600,700,800,900],category:"display"},{family:"Big Shoulders Inline Display",variants:[100,300,400,500,600,700,800,900],category:"display"},{family:"Big Shoulders Inline Text",variants:[100,300,400,500,600,700,800,900],category:"display"},{family:"Big Shoulders Stencil Display",variants:[100,300,400,500,600,700,800,900],category:"display"},{family:"Big Shoulders Stencil Text",variants:[100,300,400,500,600,700,800,900],category:"display"},{family:"Big Shoulders Text",variants:[100,300,400,500,600,700,800,900],category:"display"},{family:"Bigelow Rules",variants:[400],category:"display"},{family:"Bigshot One",variants:[400],category:"display"},{family:"Bilbo",variants:[400],category:"handwriting"},{family:"Bilbo Swash Caps",variants:[400],category:"handwriting"},{family:"BioRhyme",variants:[200,300,400,700,800],category:"serif"},{family:"BioRhyme Expanded",variants:[200,300,400,700,800],category:"serif"},{family:"Biryani",variants:[200,300,400,600,700,800,900],category:"sans-serif"},{family:"Bitter",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Black And White Picture",variants:[400],category:"sans-serif"},{family:"Black Han Sans",variants:[400],category:"sans-serif"},{family:"Black Ops One",variants:[400],category:"display"},{family:"Blinker",variants:[100,200,300,400,600,700,800,900],category:"sans-serif"},{family:"Bodoni Moda",variants:[400,500,600,700,800,900,"400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Bokor",variants:[400],category:"display"},{family:"Bonbon",variants:[400],category:"handwriting"},{family:"Boogaloo",variants:[400],category:"display"},{family:"Bowlby One",variants:[400],category:"display"},{family:"Bowlby One SC",variants:[400],category:"display"},{family:"Brawler",variants:[400],category:"serif"},{family:"Bree Serif",variants:[400],category:"serif"},{family:"Brygada 1918",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"serif"},{family:"Bubblegum Sans",variants:[400],category:"display"},{family:"Bubbler One",variants:[400],category:"sans-serif"},{family:"Buda",variants:[300,400],category:"display"},{family:"Buenard",variants:[400,700],category:"serif"},{family:"Bungee",variants:[400],category:"display"},{family:"Bungee Hairline",variants:[400],category:"display"},{family:"Bungee Inline",variants:[400],category:"display"},{family:"Bungee Outline",variants:[400],category:"display"},{family:"Bungee Shade",variants:[400],category:"display"},{family:"Butcherman",variants:[400],category:"display"},{family:"Butterfly Kids",variants:[400],category:"handwriting"},{family:"Cabin",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"sans-serif"},{family:"Cabin Condensed",variants:[400,500,600,700],category:"sans-serif"},{family:"Cabin Sketch",variants:[400,700],category:"display"},{family:"Caesar Dressing",variants:[400],category:"display"},{family:"Cagliostro",variants:[400],category:"sans-serif"},{family:"Cairo",variants:[200,300,400,600,700,900],category:"sans-serif"},{family:"Caladea",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Calistoga",variants:[400],category:"display"},{family:"Calligraffitti",variants:[400],category:"handwriting"},{family:"Cambay",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Cambo",variants:[400],category:"serif"},{family:"Candal",variants:[400],category:"sans-serif"},{family:"Cantarell",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Cantata One",variants:[400],category:"serif"},{family:"Cantora One",variants:[400],category:"sans-serif"},{family:"Capriola",variants:[400],category:"sans-serif"},{family:"Cardo",variants:[400,"400i",700],category:"serif"},{family:"Carme",variants:[400],category:"sans-serif"},{family:"Carrois Gothic",variants:[400],category:"sans-serif"},{family:"Carrois Gothic SC",variants:[400],category:"sans-serif"},{family:"Carter One",variants:[400],category:"display"},{family:"Castoro",variants:[400,"400i"],category:"serif"},{family:"Catamaran",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Caudex",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Caveat",variants:[400,500,600,700],category:"handwriting"},{family:"Caveat Brush",variants:[400],category:"handwriting"},{family:"Cedarville Cursive",variants:[400],category:"handwriting"},{family:"Ceviche One",variants:[400],category:"display"},{family:"Chakra Petch",variants:[300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Changa",variants:[200,300,400,500,600,700,800],category:"sans-serif"},{family:"Changa One",variants:[400,"400i"],category:"display"},{family:"Chango",variants:[400],category:"display"},{family:"Charm",variants:[400,700],category:"handwriting"},{family:"Charmonman",variants:[400,700],category:"handwriting"},{family:"Chathura",variants:[100,300,400,700,800],category:"sans-serif"},{family:"Chau Philomene One",variants:[400,"400i"],category:"sans-serif"},{family:"Chela One",variants:[400],category:"display"},{family:"Chelsea Market",variants:[400],category:"display"},{family:"Chenla",variants:[400],category:"display"},{family:"Cherry Cream Soda",variants:[400],category:"display"},{family:"Cherry Swash",variants:[400,700],category:"display"},{family:"Chewy",variants:[400],category:"display"},{family:"Chicle",variants:[400],category:"display"},{family:"Chilanka",variants:[400],category:"handwriting"},{family:"Chivo",variants:[300,"300i",400,"400i",700,"700i",900,"900i"],category:"sans-serif"},{family:"Chonburi",variants:[400],category:"display"},{family:"Cinzel",variants:[400,500,600,700,800,900],category:"serif"},{family:"Cinzel Decorative",variants:[400,700,900],category:"display"},{family:"Clicker Script",variants:[400],category:"handwriting"},{family:"Coda",variants:[400,800],category:"display"},{family:"Coda Caption",variants:[400,800],category:"sans-serif"},{family:"Codystar",variants:[300,400],category:"display"},{family:"Coiny",variants:[400],category:"display"},{family:"Combo",variants:[400],category:"display"},{family:"Comfortaa",variants:[300,400,500,600,700],category:"display"},{family:"Comic Neue",variants:[300,"300i",400,"400i",700,"700i"],category:"handwriting"},{family:"Coming Soon",variants:[400],category:"handwriting"},{family:"Commissioner",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Concert One",variants:[400],category:"display"},{family:"Condiment",variants:[400],category:"handwriting"},{family:"Content",variants:[400,700],category:"display"},{family:"Contrail One",variants:[400],category:"display"},{family:"Convergence",variants:[400],category:"sans-serif"},{family:"Cookie",variants:[400],category:"handwriting"},{family:"Copse",variants:[400],category:"serif"},{family:"Corben",variants:[400,700],category:"display"},{family:"Cormorant",variants:[300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"serif"},{family:"Cormorant Garamond",variants:[300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"serif"},{family:"Cormorant Infant",variants:[300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"serif"},{family:"Cormorant SC",variants:[300,400,500,600,700],category:"serif"},{family:"Cormorant Unicase",variants:[300,400,500,600,700],category:"serif"},{family:"Cormorant Upright",variants:[300,400,500,600,700],category:"serif"},{family:"Courgette",variants:[400],category:"handwriting"},{family:"Courier Prime",variants:[400,"400i",700,"700i"],category:"monospace"},{family:"Cousine",variants:[400,"400i",700,"700i"],category:"monospace"},{family:"Coustard",variants:[400,900],category:"serif"},{family:"Covered By Your Grace",variants:[400],category:"handwriting"},{family:"Crafty Girls",variants:[400],category:"handwriting"},{family:"Creepster",variants:[400],category:"display"},{family:"Crete Round",variants:[400,"400i"],category:"serif"},{family:"Crimson Pro",variants:[200,300,400,500,600,700,800,900,"200i","300i","400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Crimson Text",variants:[400,"400i",600,"600i",700,"700i"],category:"serif"},{family:"Croissant One",variants:[400],category:"display"},{family:"Crushed",variants:[400],category:"display"},{family:"Cuprum",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"sans-serif"},{family:"Cute Font",variants:[400],category:"display"},{family:"Cutive",variants:[400],category:"serif"},{family:"Cutive Mono",variants:[400],category:"monospace"},{family:"DM Mono",variants:[300,"300i",400,"400i",500,"500i"],category:"monospace"},{family:"DM Sans",variants:[400,"400i",500,"500i",700,"700i"],category:"sans-serif"},{family:"DM Serif Display",variants:[400,"400i"],category:"serif"},{family:"DM Serif Text",variants:[400,"400i"],category:"serif"},{family:"Damion",variants:[400],category:"handwriting"},{family:"Dancing Script",variants:[400,500,600,700],category:"handwriting"},{family:"Dangrek",variants:[400],category:"display"},{family:"Darker Grotesque",variants:[300,400,500,600,700,800,900],category:"sans-serif"},{family:"David Libre",variants:[400,500,700],category:"serif"},{family:"Dawning of a New Day",variants:[400],category:"handwriting"},{family:"Days One",variants:[400],category:"sans-serif"},{family:"Dekko",variants:[400],category:"handwriting"},{family:"Dela Gothic One",variants:[400],category:"display"},{family:"Delius",variants:[400],category:"handwriting"},{family:"Delius Swash Caps",variants:[400],category:"handwriting"},{family:"Delius Unicase",variants:[400,700],category:"handwriting"},{family:"Della Respira",variants:[400],category:"serif"},{family:"Denk One",variants:[400],category:"sans-serif"},{family:"Devonshire",variants:[400],category:"handwriting"},{family:"Dhurjati",variants:[400],category:"sans-serif"},{family:"Didact Gothic",variants:[400],category:"sans-serif"},{family:"Diplomata",variants:[400],category:"display"},{family:"Diplomata SC",variants:[400],category:"display"},{family:"Do Hyeon",variants:[400],category:"sans-serif"},{family:"Dokdo",variants:[400],category:"handwriting"},{family:"Domine",variants:[400,500,600,700],category:"serif"},{family:"Donegal One",variants:[400],category:"serif"},{family:"Doppio One",variants:[400],category:"sans-serif"},{family:"Dorsa",variants:[400],category:"sans-serif"},{family:"Dosis",variants:[200,300,400,500,600,700,800],category:"sans-serif"},{family:"DotGothic16",variants:[400],category:"sans-serif"},{family:"Dr Sugiyama",variants:[400],category:"handwriting"},{family:"Duru Sans",variants:[400],category:"sans-serif"},{family:"Dynalight",variants:[400],category:"display"},{family:"EB Garamond",variants:[400,500,600,700,800,"400i","500i","600i","700i","800i"],category:"serif"},{family:"Eagle Lake",variants:[400],category:"handwriting"},{family:"East Sea Dokdo",variants:[400],category:"handwriting"},{family:"Eater",variants:[400],category:"display"},{family:"Economica",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Eczar",variants:[400,500,600,700,800],category:"serif"},{family:"El Messiri",variants:[400,500,600,700],category:"sans-serif"},{family:"Electrolize",variants:[400],category:"sans-serif"},{family:"Elsie",variants:[400,900],category:"display"},{family:"Elsie Swash Caps",variants:[400,900],category:"display"},{family:"Emblema One",variants:[400],category:"display"},{family:"Emilys Candy",variants:[400],category:"display"},{family:"Encode Sans",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Encode Sans Condensed",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Encode Sans Expanded",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Encode Sans Semi Condensed",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Encode Sans Semi Expanded",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Engagement",variants:[400],category:"handwriting"},{family:"Englebert",variants:[400],category:"sans-serif"},{family:"Enriqueta",variants:[400,500,600,700],category:"serif"},{family:"Epilogue",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Erica One",variants:[400],category:"display"},{family:"Esteban",variants:[400],category:"serif"},{family:"Euphoria Script",variants:[400],category:"handwriting"},{family:"Ewert",variants:[400],category:"display"},{family:"Exo",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Exo 2",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Expletus Sans",variants:[400,"400i",500,"500i",600,"600i",700,"700i"],category:"display"},{family:"Fahkwang",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Fanwood Text",variants:[400,"400i"],category:"serif"},{family:"Farro",variants:[300,400,500,700],category:"sans-serif"},{family:"Farsan",variants:[400],category:"display"},{family:"Fascinate",variants:[400],category:"display"},{family:"Fascinate Inline",variants:[400],category:"display"},{family:"Faster One",variants:[400],category:"display"},{family:"Fasthand",variants:[400],category:"serif"},{family:"Fauna One",variants:[400],category:"serif"},{family:"Faustina",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"serif"},{family:"Federant",variants:[400],category:"display"},{family:"Federo",variants:[400],category:"sans-serif"},{family:"Felipa",variants:[400],category:"handwriting"},{family:"Fenix",variants:[400],category:"serif"},{family:"Finger Paint",variants:[400],category:"display"},{family:"Fira Code",variants:[300,400,500,600,700],category:"monospace"},{family:"Fira Mono",variants:[400,500,700],category:"monospace"},{family:"Fira Sans",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Fira Sans Condensed",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Fira Sans Extra Condensed",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Fjalla One",variants:[400],category:"sans-serif"},{family:"Fjord One",variants:[400],category:"serif"},{family:"Flamenco",variants:[300,400],category:"display"},{family:"Flavors",variants:[400],category:"display"},{family:"Fondamento",variants:[400,"400i"],category:"handwriting"},{family:"Fontdiner Swanky",variants:[400],category:"display"},{family:"Forum",variants:[400],category:"display"},{family:"Francois One",variants:[400],category:"sans-serif"},{family:"Frank Ruhl Libre",variants:[300,400,500,700,900],category:"serif"},{family:"Fraunces",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Freckle Face",variants:[400],category:"display"},{family:"Fredericka the Great",variants:[400],category:"display"},{family:"Fredoka One",variants:[400],category:"display"},{family:"Freehand",variants:[400],category:"display"},{family:"Fresca",variants:[400],category:"sans-serif"},{family:"Frijole",variants:[400],category:"display"},{family:"Fruktur",variants:[400],category:"display"},{family:"Fugaz One",variants:[400],category:"display"},{family:"GFS Didot",variants:[400],category:"serif"},{family:"GFS Neohellenic",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Gabriela",variants:[400],category:"serif"},{family:"Gaegu",variants:[300,400,700],category:"handwriting"},{family:"Gafata",variants:[400],category:"sans-serif"},{family:"Galada",variants:[400],category:"display"},{family:"Galdeano",variants:[400],category:"sans-serif"},{family:"Galindo",variants:[400],category:"display"},{family:"Gamja Flower",variants:[400],category:"handwriting"},{family:"Gayathri",variants:[100,400,700],category:"sans-serif"},{family:"Gelasio",variants:[400,"400i",500,"500i",600,"600i",700,"700i"],category:"serif"},{family:"Gentium Basic",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Gentium Book Basic",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Geo",variants:[400,"400i"],category:"sans-serif"},{family:"Geostar",variants:[400],category:"display"},{family:"Geostar Fill",variants:[400],category:"display"},{family:"Germania One",variants:[400],category:"display"},{family:"Gidugu",variants:[400],category:"sans-serif"},{family:"Gilda Display",variants:[400],category:"serif"},{family:"Girassol",variants:[400],category:"display"},{family:"Give You Glory",variants:[400],category:"handwriting"},{family:"Glass Antiqua",variants:[400],category:"display"},{family:"Glegoo",variants:[400,700],category:"serif"},{family:"Gloria Hallelujah",variants:[400],category:"handwriting"},{family:"Goblin One",variants:[400],category:"display"},{family:"Gochi Hand",variants:[400],category:"handwriting"},{family:"Goldman",variants:[400,700],category:"display"},{family:"Gorditas",variants:[400,700],category:"display"},{family:"Gothic A1",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Gotu",variants:[400],category:"sans-serif"},{family:"Goudy Bookletter 1911",variants:[400],category:"serif"},{family:"Graduate",variants:[400],category:"display"},{family:"Grand Hotel",variants:[400],category:"handwriting"},{family:"Grandstander",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"display"},{family:"Gravitas One",variants:[400],category:"display"},{family:"Great Vibes",variants:[400],category:"handwriting"},{family:"Grenze",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"serif"},{family:"Grenze Gotisch",variants:[100,200,300,400,500,600,700,800,900],category:"display"},{family:"Griffy",variants:[400],category:"display"},{family:"Gruppo",variants:[400],category:"display"},{family:"Gudea",variants:[400,"400i",700],category:"sans-serif"},{family:"Gugi",variants:[400],category:"display"},{family:"Gupter",variants:[400,500,700],category:"serif"},{family:"Gurajada",variants:[400],category:"serif"},{family:"Habibi",variants:[400],category:"serif"},{family:"Hachi Maru Pop",variants:[400],category:"handwriting"},{family:"Halant",variants:[300,400,500,600,700],category:"serif"},{family:"Hammersmith One",variants:[400],category:"sans-serif"},{family:"Hanalei",variants:[400],category:"display"},{family:"Hanalei Fill",variants:[400],category:"display"},{family:"Handlee",variants:[400],category:"handwriting"},{family:"Hanuman",variants:[400,700],category:"serif"},{family:"Happy Monkey",variants:[400],category:"display"},{family:"Harmattan",variants:[400,700],category:"sans-serif"},{family:"Headland One",variants:[400],category:"serif"},{family:"Heebo",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Henny Penny",variants:[400],category:"display"},{family:"Hepta Slab",variants:[100,200,300,400,500,600,700,800,900],category:"serif"},{family:"Herr Von Muellerhoff",variants:[400],category:"handwriting"},{family:"Hi Melody",variants:[400],category:"handwriting"},{family:"Hind",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Hind Guntur",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Hind Madurai",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Hind Siliguri",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Hind Vadodara",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Holtwood One SC",variants:[400],category:"serif"},{family:"Homemade Apple",variants:[400],category:"handwriting"},{family:"Homenaje",variants:[400],category:"sans-serif"},{family:"IBM Plex Mono",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"monospace"},{family:"IBM Plex Sans",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"IBM Plex Sans Condensed",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"IBM Plex Serif",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"serif"},{family:"IM Fell DW Pica",variants:[400,"400i"],category:"serif"},{family:"IM Fell DW Pica SC",variants:[400],category:"serif"},{family:"IM Fell Double Pica",variants:[400,"400i"],category:"serif"},{family:"IM Fell Double Pica SC",variants:[400],category:"serif"},{family:"IM Fell English",variants:[400,"400i"],category:"serif"},{family:"IM Fell English SC",variants:[400],category:"serif"},{family:"IM Fell French Canon",variants:[400,"400i"],category:"serif"},{family:"IM Fell French Canon SC",variants:[400],category:"serif"},{family:"IM Fell Great Primer",variants:[400,"400i"],category:"serif"},{family:"IM Fell Great Primer SC",variants:[400],category:"serif"},{family:"Ibarra Real Nova",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"serif"},{family:"Iceberg",variants:[400],category:"display"},{family:"Iceland",variants:[400],category:"display"},{family:"Imbue",variants:[100,200,300,400,500,600,700,800,900],category:"serif"},{family:"Imprima",variants:[400],category:"sans-serif"},{family:"Inconsolata",variants:[200,300,400,500,600,700,800,900],category:"monospace"},{family:"Inder",variants:[400],category:"sans-serif"},{family:"Indie Flower",variants:[400],category:"handwriting"},{family:"Inika",variants:[400,700],category:"serif"},{family:"Inknut Antiqua",variants:[300,400,500,600,700,800,900],category:"serif"},{family:"Inria Sans",variants:[300,"300i",400,"400i",700,"700i"],category:"sans-serif"},{family:"Inria Serif",variants:[300,"300i",400,"400i",700,"700i"],category:"serif"},{family:"Inter",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Irish Grover",variants:[400],category:"display"},{family:"Istok Web",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Italiana",variants:[400],category:"serif"},{family:"Italianno",variants:[400],category:"handwriting"},{family:"Itim",variants:[400],category:"handwriting"},{family:"Jacques Francois",variants:[400],category:"serif"},{family:"Jacques Francois Shadow",variants:[400],category:"display"},{family:"Jaldi",variants:[400,700],category:"sans-serif"},{family:"JetBrains Mono",variants:[100,200,300,400,500,600,700,800,"100i","200i","300i","400i","500i","600i","700i","800i"],category:"monospace"},{family:"Jim Nightshade",variants:[400],category:"handwriting"},{family:"Jockey One",variants:[400],category:"sans-serif"},{family:"Jolly Lodger",variants:[400],category:"display"},{family:"Jomhuria",variants:[400],category:"display"},{family:"Jomolhari",variants:[400],category:"serif"},{family:"Josefin Sans",variants:[100,200,300,400,500,600,700,"100i","200i","300i","400i","500i","600i","700i"],category:"sans-serif"},{family:"Josefin Slab",variants:[100,200,300,400,500,600,700,"100i","200i","300i","400i","500i","600i","700i"],category:"serif"},{family:"Jost",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Joti One",variants:[400],category:"display"},{family:"Jua",variants:[400],category:"sans-serif"},{family:"Judson",variants:[400,"400i",700],category:"serif"},{family:"Julee",variants:[400],category:"handwriting"},{family:"Julius Sans One",variants:[400],category:"sans-serif"},{family:"Junge",variants:[400],category:"serif"},{family:"Jura",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Just Another Hand",variants:[400],category:"handwriting"},{family:"Just Me Again Down Here",variants:[400],category:"handwriting"},{family:"K2D",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i"],category:"sans-serif"},{family:"Kadwa",variants:[400,700],category:"serif"},{family:"Kalam",variants:[300,400,700],category:"handwriting"},{family:"Kameron",variants:[400,700],category:"serif"},{family:"Kanit",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Kantumruy",variants:[300,400,700],category:"sans-serif"},{family:"Karantina",variants:[300,400,700],category:"display"},{family:"Karla",variants:[200,300,400,500,600,700,800,"200i","300i","400i","500i","600i","700i","800i"],category:"sans-serif"},{family:"Karma",variants:[300,400,500,600,700],category:"serif"},{family:"Katibeh",variants:[400],category:"display"},{family:"Kaushan Script",variants:[400],category:"handwriting"},{family:"Kavivanar",variants:[400],category:"handwriting"},{family:"Kavoon",variants:[400],category:"display"},{family:"Kdam Thmor",variants:[400],category:"display"},{family:"Keania One",variants:[400],category:"display"},{family:"Kelly Slab",variants:[400],category:"display"},{family:"Kenia",variants:[400],category:"display"},{family:"Khand",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Khmer",variants:[400],category:"display"},{family:"Khula",variants:[300,400,600,700,800],category:"sans-serif"},{family:"Kirang Haerang",variants:[400],category:"display"},{family:"Kite One",variants:[400],category:"sans-serif"},{family:"Kiwi Maru",variants:[300,400,500],category:"serif"},{family:"Knewave",variants:[400],category:"display"},{family:"KoHo",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Kodchasan",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Kosugi",variants:[400],category:"sans-serif"},{family:"Kosugi Maru",variants:[400],category:"sans-serif"},{family:"Kotta One",variants:[400],category:"serif"},{family:"Koulen",variants:[400],category:"display"},{family:"Kranky",variants:[400],category:"display"},{family:"Kreon",variants:[300,400,500,600,700],category:"serif"},{family:"Kristi",variants:[400],category:"handwriting"},{family:"Krona One",variants:[400],category:"sans-serif"},{family:"Krub",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Kufam",variants:[400,500,600,700,800,900,"400i","500i","600i","700i","800i","900i"],category:"display"},{family:"Kulim Park",variants:[200,"200i",300,"300i",400,"400i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Kumar One",variants:[400],category:"display"},{family:"Kumar One Outline",variants:[400],category:"display"},{family:"Kumbh Sans",variants:[300,400,700],category:"sans-serif"},{family:"Kurale",variants:[400],category:"serif"},{family:"La Belle Aurore",variants:[400],category:"handwriting"},{family:"Lacquer",variants:[400],category:"display"},{family:"Laila",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Lakki Reddy",variants:[400],category:"handwriting"},{family:"Lalezar",variants:[400],category:"display"},{family:"Lancelot",variants:[400],category:"display"},{family:"Langar",variants:[400],category:"display"},{family:"Lateef",variants:[400],category:"handwriting"},{family:"Lato",variants:[100,"100i",300,"300i",400,"400i",700,"700i",900,"900i"],category:"sans-serif"},{family:"League Script",variants:[400],category:"handwriting"},{family:"Leckerli One",variants:[400],category:"handwriting"},{family:"Ledger",variants:[400],category:"serif"},{family:"Lekton",variants:[400,"400i",700],category:"sans-serif"},{family:"Lemon",variants:[400],category:"display"},{family:"Lemonada",variants:[300,400,500,600,700],category:"display"},{family:"Lexend",variants:[100,300,400,500,600,700,800],category:"sans-serif"},{family:"Lexend Deca",variants:[400],category:"sans-serif"},{family:"Lexend Exa",variants:[400],category:"sans-serif"},{family:"Lexend Giga",variants:[400],category:"sans-serif"},{family:"Lexend Mega",variants:[400],category:"sans-serif"},{family:"Lexend Peta",variants:[400],category:"sans-serif"},{family:"Lexend Tera",variants:[400],category:"sans-serif"},{family:"Lexend Zetta",variants:[400],category:"sans-serif"},{family:"Libre Barcode 128",variants:[400],category:"display"},{family:"Libre Barcode 128 Text",variants:[400],category:"display"},{family:"Libre Barcode 39",variants:[400],category:"display"},{family:"Libre Barcode 39 Extended",variants:[400],category:"display"},{family:"Libre Barcode 39 Extended Text",variants:[400],category:"display"},{family:"Libre Barcode 39 Text",variants:[400],category:"display"},{family:"Libre Barcode EAN13 Text",variants:[400],category:"display"},{family:"Libre Baskerville",variants:[400,"400i",700],category:"serif"},{family:"Libre Caslon Display",variants:[400],category:"serif"},{family:"Libre Caslon Text",variants:[400,"400i",700],category:"serif"},{family:"Libre Franklin",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Life Savers",variants:[400,700,800],category:"display"},{family:"Lilita One",variants:[400],category:"display"},{family:"Lily Script One",variants:[400],category:"display"},{family:"Limelight",variants:[400],category:"display"},{family:"Linden Hill",variants:[400,"400i"],category:"serif"},{family:"Literata",variants:[200,300,400,500,600,700,800,900,"200i","300i","400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Liu Jian Mao Cao",variants:[400],category:"handwriting"},{family:"Livvic",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",900,"900i"],category:"sans-serif"},{family:"Lobster",variants:[400],category:"display"},{family:"Lobster Two",variants:[400,"400i",700,"700i"],category:"display"},{family:"Londrina Outline",variants:[400],category:"display"},{family:"Londrina Shadow",variants:[400],category:"display"},{family:"Londrina Sketch",variants:[400],category:"display"},{family:"Londrina Solid",variants:[100,300,400,900],category:"display"},{family:"Long Cang",variants:[400],category:"handwriting"},{family:"Lora",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"serif"},{family:"Love Ya Like A Sister",variants:[400],category:"display"},{family:"Loved by the King",variants:[400],category:"handwriting"},{family:"Lovers Quarrel",variants:[400],category:"handwriting"},{family:"Luckiest Guy",variants:[400],category:"display"},{family:"Lusitana",variants:[400,700],category:"serif"},{family:"Lustria",variants:[400],category:"serif"},{family:"M PLUS 1p",variants:[100,300,400,500,700,800,900],category:"sans-serif"},{family:"M PLUS Rounded 1c",variants:[100,300,400,500,700,800,900],category:"sans-serif"},{family:"Ma Shan Zheng",variants:[400],category:"handwriting"},{family:"Macondo",variants:[400],category:"display"},{family:"Macondo Swash Caps",variants:[400],category:"display"},{family:"Mada",variants:[200,300,400,500,600,700,900],category:"sans-serif"},{family:"Magra",variants:[400,700],category:"sans-serif"},{family:"Maiden Orange",variants:[400],category:"display"},{family:"Maitree",variants:[200,300,400,500,600,700],category:"serif"},{family:"Major Mono Display",variants:[400],category:"monospace"},{family:"Mako",variants:[400],category:"sans-serif"},{family:"Mali",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"handwriting"},{family:"Mallanna",variants:[400],category:"sans-serif"},{family:"Mandali",variants:[400],category:"sans-serif"},{family:"Manjari",variants:[100,400,700],category:"sans-serif"},{family:"Manrope",variants:[200,300,400,500,600,700,800],category:"sans-serif"},{family:"Mansalva",variants:[400],category:"handwriting"},{family:"Manuale",variants:[400,500,600,700,"400i","500i","600i","700i"],category:"serif"},{family:"Marcellus",variants:[400],category:"serif"},{family:"Marcellus SC",variants:[400],category:"serif"},{family:"Marck Script",variants:[400],category:"handwriting"},{family:"Margarine",variants:[400],category:"display"},{family:"Markazi Text",variants:[400,500,600,700],category:"serif"},{family:"Marko One",variants:[400],category:"serif"},{family:"Marmelad",variants:[400],category:"sans-serif"},{family:"Martel",variants:[200,300,400,600,700,800,900],category:"serif"},{family:"Martel Sans",variants:[200,300,400,600,700,800,900],category:"sans-serif"},{family:"Marvel",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Mate",variants:[400,"400i"],category:"serif"},{family:"Mate SC",variants:[400],category:"serif"},{family:"Maven Pro",variants:[400,500,600,700,800,900],category:"sans-serif"},{family:"McLaren",variants:[400],category:"display"},{family:"Meddon",variants:[400],category:"handwriting"},{family:"MedievalSharp",variants:[400],category:"display"},{family:"Medula One",variants:[400],category:"display"},{family:"Meera Inimai",variants:[400],category:"sans-serif"},{family:"Megrim",variants:[400],category:"display"},{family:"Meie Script",variants:[400],category:"handwriting"},{family:"Merienda",variants:[400,700],category:"handwriting"},{family:"Merienda One",variants:[400],category:"handwriting"},{family:"Merriweather",variants:[300,"300i",400,"400i",700,"700i",900,"900i"],category:"serif"},{family:"Merriweather Sans",variants:[300,400,500,600,700,800,"300i","400i","500i","600i","700i","800i"],category:"sans-serif"},{family:"Metal",variants:[400],category:"display"},{family:"Metal Mania",variants:[400],category:"display"},{family:"Metamorphous",variants:[400],category:"display"},{family:"Metrophobic",variants:[400],category:"sans-serif"},{family:"Michroma",variants:[400],category:"sans-serif"},{family:"Milonga",variants:[400],category:"display"},{family:"Miltonian",variants:[400],category:"display"},{family:"Miltonian Tattoo",variants:[400],category:"display"},{family:"Mina",variants:[400,700],category:"sans-serif"},{family:"Miniver",variants:[400],category:"display"},{family:"Miriam Libre",variants:[400,700],category:"sans-serif"},{family:"Mirza",variants:[400,500,600,700],category:"display"},{family:"Miss Fajardose",variants:[400],category:"handwriting"},{family:"Mitr",variants:[200,300,400,500,600,700],category:"sans-serif"},{family:"Modak",variants:[400],category:"display"},{family:"Modern Antiqua",variants:[400],category:"display"},{family:"Mogra",variants:[400],category:"display"},{family:"Molengo",variants:[400],category:"sans-serif"},{family:"Molle",variants:[400,"400i"],category:"handwriting"},{family:"Monda",variants:[400,700],category:"sans-serif"},{family:"Monofett",variants:[400],category:"display"},{family:"Monoton",variants:[400],category:"display"},{family:"Monsieur La Doulaise",variants:[400],category:"handwriting"},{family:"Montaga",variants:[400],category:"serif"},{family:"Montez",variants:[400],category:"handwriting"},{family:"Montserrat",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Montserrat Alternates",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Montserrat Subrayada",variants:[400,700],category:"sans-serif"},{family:"Moul",variants:[400],category:"display"},{family:"Moulpali",variants:[400],category:"display"},{family:"Mountains of Christmas",variants:[400,700],category:"display"},{family:"Mouse Memoirs",variants:[400],category:"sans-serif"},{family:"Mr Bedfort",variants:[400],category:"handwriting"},{family:"Mr Dafoe",variants:[400],category:"handwriting"},{family:"Mr De Haviland",variants:[400],category:"handwriting"},{family:"Mrs Saint Delafield",variants:[400],category:"handwriting"},{family:"Mrs Sheppards",variants:[400],category:"handwriting"},{family:"Mukta",variants:[200,300,400,500,600,700,800],category:"sans-serif"},{family:"Mukta Mahee",variants:[200,300,400,500,600,700,800],category:"sans-serif"},{family:"Mukta Malar",variants:[200,300,400,500,600,700,800],category:"sans-serif"},{family:"Mukta Vaani",variants:[200,300,400,500,600,700,800],category:"sans-serif"},{family:"Mulish",variants:[200,300,400,500,600,700,800,900,"200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"MuseoModerno",variants:[100,200,300,400,500,600,700,800,900],category:"display"},{family:"Mystery Quest",variants:[400],category:"display"},{family:"NTR",variants:[400],category:"sans-serif"},{family:"Nanum Brush Script",variants:[400],category:"handwriting"},{family:"Nanum Gothic",variants:[400,700,800],category:"sans-serif"},{family:"Nanum Gothic Coding",variants:[400,700],category:"monospace"},{family:"Nanum Myeongjo",variants:[400,700,800],category:"serif"},{family:"Nanum Pen Script",variants:[400],category:"handwriting"},{family:"Nerko One",variants:[400],category:"handwriting"},{family:"Neucha",variants:[400],category:"handwriting"},{family:"Neuton",variants:[200,300,400,"400i",700,800],category:"serif"},{family:"New Rocker",variants:[400],category:"display"},{family:"New Tegomin",variants:[400],category:"serif"},{family:"News Cycle",variants:[400,700],category:"sans-serif"},{family:"Newsreader",variants:[200,300,400,500,600,700,800,"200i","300i","400i","500i","600i","700i","800i"],category:"serif"},{family:"Niconne",variants:[400],category:"handwriting"},{family:"Niramit",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"sans-serif"},{family:"Nixie One",variants:[400],category:"display"},{family:"Nobile",variants:[400,"400i",500,"500i",700,"700i"],category:"sans-serif"},{family:"Nokora",variants:[400,700],category:"serif"},{family:"Norican",variants:[400],category:"handwriting"},{family:"Nosifer",variants:[400],category:"display"},{family:"Notable",variants:[400],category:"sans-serif"},{family:"Nothing You Could Do",variants:[400],category:"handwriting"},{family:"Noticia Text",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Noto Sans",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Noto Sans HK",variants:[100,300,400,500,700,900],category:"sans-serif"},{family:"Noto Sans JP",variants:[100,300,400,500,700,900],category:"sans-serif"},{family:"Noto Sans KR",variants:[100,300,400,500,700,900],category:"sans-serif"},{family:"Noto Sans SC",variants:[100,300,400,500,700,900],category:"sans-serif"},{family:"Noto Sans TC",variants:[100,300,400,500,700,900],category:"sans-serif"},{family:"Noto Serif",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Noto Serif JP",variants:[200,300,400,500,600,700,900],category:"serif"},{family:"Noto Serif KR",variants:[200,300,400,500,600,700,900],category:"serif"},{family:"Noto Serif SC",variants:[200,300,400,500,600,700,900],category:"serif"},{family:"Noto Serif TC",variants:[200,300,400,500,600,700,900],category:"serif"},{family:"Nova Cut",variants:[400],category:"display"},{family:"Nova Flat",variants:[400],category:"display"},{family:"Nova Mono",variants:[400],category:"monospace"},{family:"Nova Oval",variants:[400],category:"display"},{family:"Nova Round",variants:[400],category:"display"},{family:"Nova Script",variants:[400],category:"display"},{family:"Nova Slim",variants:[400],category:"display"},{family:"Nova Square",variants:[400],category:"display"},{family:"Numans",variants:[400],category:"sans-serif"},{family:"Nunito",variants:[200,"200i",300,"300i",400,"400i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Nunito Sans",variants:[200,"200i",300,"300i",400,"400i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Odibee Sans",variants:[400],category:"display"},{family:"Odor Mean Chey",variants:[400],category:"display"},{family:"Offside",variants:[400],category:"display"},{family:"Oi",variants:[400],category:"display"},{family:"Old Standard TT",variants:[400,"400i",700],category:"serif"},{family:"Oldenburg",variants:[400],category:"display"},{family:"Oleo Script",variants:[400,700],category:"display"},{family:"Oleo Script Swash Caps",variants:[400,700],category:"display"},{family:"Open Sans",variants:[300,"300i",400,"400i",600,"600i",700,"700i",800,"800i"],category:"sans-serif"},{family:"Open Sans Condensed",variants:[300,"300i",400,700],category:"sans-serif"},{family:"Oranienbaum",variants:[400],category:"serif"},{family:"Orbitron",variants:[400,500,600,700,800,900],category:"sans-serif"},{family:"Oregano",variants:[400,"400i"],category:"display"},{family:"Orelega One",variants:[400],category:"display"},{family:"Orienta",variants:[400],category:"sans-serif"},{family:"Original Surfer",variants:[400],category:"display"},{family:"Oswald",variants:[200,300,400,500,600,700],category:"sans-serif"},{family:"Over the Rainbow",variants:[400],category:"handwriting"},{family:"Overlock",variants:[400,"400i",700,"700i",900,"900i"],category:"display"},{family:"Overlock SC",variants:[400],category:"display"},{family:"Overpass",variants:[100,"100i",200,"200i",300,"300i",400,"400i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Overpass Mono",variants:[300,400,600,700],category:"monospace"},{family:"Ovo",variants:[400],category:"serif"},{family:"Oxanium",variants:[200,300,400,500,600,700,800],category:"display"},{family:"Oxygen",variants:[300,400,700],category:"sans-serif"},{family:"Oxygen Mono",variants:[400],category:"monospace"},{family:"PT Mono",variants:[400],category:"monospace"},{family:"PT Sans",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"PT Sans Caption",variants:[400,700],category:"sans-serif"},{family:"PT Sans Narrow",variants:[400,700],category:"sans-serif"},{family:"PT Serif",variants:[400,"400i",700,"700i"],category:"serif"},{family:"PT Serif Caption",variants:[400,"400i"],category:"serif"},{family:"Pacifico",variants:[400],category:"handwriting"},{family:"Padauk",variants:[400,700],category:"sans-serif"},{family:"Palanquin",variants:[100,200,300,400,500,600,700],category:"sans-serif"},{family:"Palanquin Dark",variants:[400,500,600,700],category:"sans-serif"},{family:"Pangolin",variants:[400],category:"handwriting"},{family:"Paprika",variants:[400],category:"display"},{family:"Parisienne",variants:[400],category:"handwriting"},{family:"Passero One",variants:[400],category:"display"},{family:"Passion One",variants:[400,700,900],category:"display"},{family:"Pathway Gothic One",variants:[400],category:"sans-serif"},{family:"Patrick Hand",variants:[400],category:"handwriting"},{family:"Patrick Hand SC",variants:[400],category:"handwriting"},{family:"Pattaya",variants:[400],category:"sans-serif"},{family:"Patua One",variants:[400],category:"display"},{family:"Pavanam",variants:[400],category:"sans-serif"},{family:"Paytone One",variants:[400],category:"sans-serif"},{family:"Peddana",variants:[400],category:"serif"},{family:"Peralta",variants:[400],category:"display"},{family:"Permanent Marker",variants:[400],category:"handwriting"},{family:"Petit Formal Script",variants:[400],category:"handwriting"},{family:"Petrona",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Philosopher",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Piazzolla",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Piedra",variants:[400],category:"display"},{family:"Pinyon Script",variants:[400],category:"handwriting"},{family:"Pirata One",variants:[400],category:"display"},{family:"Plaster",variants:[400],category:"display"},{family:"Play",variants:[400,700],category:"sans-serif"},{family:"Playball",variants:[400],category:"display"},{family:"Playfair Display",variants:[400,500,600,700,800,900,"400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Playfair Display SC",variants:[400,"400i",700,"700i",900,"900i"],category:"serif"},{family:"Podkova",variants:[400,500,600,700,800],category:"serif"},{family:"Poiret One",variants:[400],category:"display"},{family:"Poller One",variants:[400],category:"display"},{family:"Poly",variants:[400,"400i"],category:"serif"},{family:"Pompiere",variants:[400],category:"display"},{family:"Pontano Sans",variants:[400],category:"sans-serif"},{family:"Poor Story",variants:[400],category:"display"},{family:"Poppins",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Port Lligat Sans",variants:[400],category:"sans-serif"},{family:"Port Lligat Slab",variants:[400],category:"serif"},{family:"Potta One",variants:[400],category:"display"},{family:"Pragati Narrow",variants:[400,700],category:"sans-serif"},{family:"Prata",variants:[400],category:"serif"},{family:"Preahvihear",variants:[400],category:"display"},{family:"Press Start 2P",variants:[400],category:"display"},{family:"Pridi",variants:[200,300,400,500,600,700],category:"serif"},{family:"Princess Sofia",variants:[400],category:"handwriting"},{family:"Prociono",variants:[400],category:"serif"},{family:"Prompt",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Prosto One",variants:[400],category:"display"},{family:"Proza Libre",variants:[400,"400i",500,"500i",600,"600i",700,"700i",800,"800i"],category:"sans-serif"},{family:"Public Sans",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Puritan",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Purple Purse",variants:[400],category:"display"},{family:"Quando",variants:[400],category:"serif"},{family:"Quantico",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Quattrocento",variants:[400,700],category:"serif"},{family:"Quattrocento Sans",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Questrial",variants:[400],category:"sans-serif"},{family:"Quicksand",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Quintessential",variants:[400],category:"handwriting"},{family:"Qwigley",variants:[400],category:"handwriting"},{family:"Racing Sans One",variants:[400],category:"display"},{family:"Radley",variants:[400,"400i"],category:"serif"},{family:"Rajdhani",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Rakkas",variants:[400],category:"display"},{family:"Raleway",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Raleway Dots",variants:[400],category:"display"},{family:"Ramabhadra",variants:[400],category:"sans-serif"},{family:"Ramaraja",variants:[400],category:"serif"},{family:"Rambla",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Rammetto One",variants:[400],category:"display"},{family:"Ranchers",variants:[400],category:"display"},{family:"Rancho",variants:[400],category:"handwriting"},{family:"Ranga",variants:[400,700],category:"display"},{family:"Rasa",variants:[300,400,500,600,700],category:"serif"},{family:"Rationale",variants:[400],category:"sans-serif"},{family:"Ravi Prakash",variants:[400],category:"display"},{family:"Recursive",variants:[300,400,500,600,700,800,900],category:"sans-serif"},{family:"Red Hat Display",variants:[400,"400i",500,"500i",700,"700i",900,"900i"],category:"sans-serif"},{family:"Red Hat Text",variants:[400,"400i",500,"500i",700,"700i"],category:"sans-serif"},{family:"Red Rose",variants:[300,400,500,600,700],category:"display"},{family:"Redressed",variants:[400],category:"handwriting"},{family:"Reem Kufi",variants:[400],category:"sans-serif"},{family:"Reenie Beanie",variants:[400],category:"handwriting"},{family:"Reggae One",variants:[400],category:"display"},{family:"Revalia",variants:[400],category:"display"},{family:"Rhodium Libre",variants:[400],category:"serif"},{family:"Ribeye",variants:[400],category:"display"},{family:"Ribeye Marrow",variants:[400],category:"display"},{family:"Righteous",variants:[400],category:"display"},{family:"Risque",variants:[400],category:"display"},{family:"Roboto",variants:[100,"100i",300,"300i",400,"400i",500,"500i",700,"700i",900,"900i"],category:"sans-serif"},{family:"Roboto Condensed",variants:[300,"300i",400,"400i",700,"700i"],category:"sans-serif"},{family:"Roboto Mono",variants:[100,200,300,400,500,600,700,"100i","200i","300i","400i","500i","600i","700i"],category:"monospace"},{family:"Roboto Slab",variants:[100,200,300,400,500,600,700,800,900],category:"serif"},{family:"Rochester",variants:[400],category:"handwriting"},{family:"Rock Salt",variants:[400],category:"handwriting"},{family:"RocknRoll One",variants:[400],category:"sans-serif"},{family:"Rokkitt",variants:[100,200,300,400,500,600,700,800,900],category:"serif"},{family:"Romanesco",variants:[400],category:"handwriting"},{family:"Ropa Sans",variants:[400,"400i"],category:"sans-serif"},{family:"Rosario",variants:[300,400,500,600,700,"300i","400i","500i","600i","700i"],category:"sans-serif"},{family:"Rosarivo",variants:[400,"400i"],category:"serif"},{family:"Rouge Script",variants:[400],category:"handwriting"},{family:"Rowdies",variants:[300,400,700],category:"display"},{family:"Rozha One",variants:[400],category:"serif"},{family:"Rubik",variants:[300,400,500,600,700,800,900,"300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Rubik Mono One",variants:[400],category:"sans-serif"},{family:"Ruda",variants:[400,500,600,700,800,900],category:"sans-serif"},{family:"Rufina",variants:[400,700],category:"serif"},{family:"Ruge Boogie",variants:[400],category:"handwriting"},{family:"Ruluko",variants:[400],category:"sans-serif"},{family:"Rum Raisin",variants:[400],category:"sans-serif"},{family:"Ruslan Display",variants:[400],category:"display"},{family:"Russo One",variants:[400],category:"sans-serif"},{family:"Ruthie",variants:[400],category:"handwriting"},{family:"Rye",variants:[400],category:"display"},{family:"Sacramento",variants:[400],category:"handwriting"},{family:"Sahitya",variants:[400,700],category:"serif"},{family:"Sail",variants:[400],category:"display"},{family:"Saira",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Saira Condensed",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Saira Extra Condensed",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Saira Semi Condensed",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Saira Stencil One",variants:[400],category:"display"},{family:"Salsa",variants:[400],category:"display"},{family:"Sanchez",variants:[400,"400i"],category:"serif"},{family:"Sancreek",variants:[400],category:"display"},{family:"Sansita",variants:[400,"400i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Sansita Swashed",variants:[300,400,500,600,700,800,900],category:"display"},{family:"Sarabun",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i"],category:"sans-serif"},{family:"Sarala",variants:[400,700],category:"sans-serif"},{family:"Sarina",variants:[400],category:"display"},{family:"Sarpanch",variants:[400,500,600,700,800,900],category:"sans-serif"},{family:"Satisfy",variants:[400],category:"handwriting"},{family:"Sawarabi Gothic",variants:[400],category:"sans-serif"},{family:"Sawarabi Mincho",variants:[400],category:"sans-serif"},{family:"Scada",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"Scheherazade",variants:[400,700],category:"serif"},{family:"Schoolbell",variants:[400],category:"handwriting"},{family:"Scope One",variants:[400],category:"serif"},{family:"Seaweed Script",variants:[400],category:"display"},{family:"Secular One",variants:[400],category:"sans-serif"},{family:"Sedgwick Ave",variants:[400],category:"handwriting"},{family:"Sedgwick Ave Display",variants:[400],category:"handwriting"},{family:"Sen",variants:[400,700,800],category:"sans-serif"},{family:"Sevillana",variants:[400],category:"display"},{family:"Seymour One",variants:[400],category:"sans-serif"},{family:"Shadows Into Light",variants:[400],category:"handwriting"},{family:"Shadows Into Light Two",variants:[400],category:"handwriting"},{family:"Shanti",variants:[400],category:"sans-serif"},{family:"Share",variants:[400,"400i",700,"700i"],category:"display"},{family:"Share Tech",variants:[400],category:"sans-serif"},{family:"Share Tech Mono",variants:[400],category:"monospace"},{family:"Shippori Mincho",variants:[400,500,600,700,800],category:"serif"},{family:"Shippori Mincho B1",variants:[400,500,600,700,800],category:"serif"},{family:"Shojumaru",variants:[400],category:"display"},{family:"Short Stack",variants:[400],category:"handwriting"},{family:"Shrikhand",variants:[400],category:"display"},{family:"Siemreap",variants:[400],category:"display"},{family:"Sigmar One",variants:[400],category:"display"},{family:"Signika",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Signika Negative",variants:[300,400,600,700],category:"sans-serif"},{family:"Simonetta",variants:[400,"400i",900,"900i"],category:"display"},{family:"Single Day",variants:[400],category:"display"},{family:"Sintony",variants:[400,700],category:"sans-serif"},{family:"Sirin Stencil",variants:[400],category:"display"},{family:"Six Caps",variants:[400],category:"sans-serif"},{family:"Skranji",variants:[400,700],category:"display"},{family:"Slabo 13px",variants:[400],category:"serif"},{family:"Slabo 27px",variants:[400],category:"serif"},{family:"Slackey",variants:[400],category:"display"},{family:"Smokum",variants:[400],category:"display"},{family:"Smythe",variants:[400],category:"display"},{family:"Sniglet",variants:[400,800],category:"display"},{family:"Snippet",variants:[400],category:"sans-serif"},{family:"Snowburst One",variants:[400],category:"display"},{family:"Sofadi One",variants:[400],category:"display"},{family:"Sofia",variants:[400],category:"handwriting"},{family:"Solway",variants:[300,400,500,700,800],category:"serif"},{family:"Song Myung",variants:[400],category:"serif"},{family:"Sonsie One",variants:[400],category:"display"},{family:"Sora",variants:[100,200,300,400,500,600,700,800],category:"sans-serif"},{family:"Sorts Mill Goudy",variants:[400,"400i"],category:"serif"},{family:"Source Code Pro",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",900,"900i"],category:"monospace"},{family:"Source Sans Pro",variants:[200,"200i",300,"300i",400,"400i",600,"600i",700,"700i",900,"900i"],category:"sans-serif"},{family:"Source Serif Pro",variants:[200,"200i",300,"300i",400,"400i",600,"600i",700,"700i",900,"900i"],category:"serif"},{family:"Space Grotesk",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Space Mono",variants:[400,"400i",700,"700i"],category:"monospace"},{family:"Spartan",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Special Elite",variants:[400],category:"display"},{family:"Spectral",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i"],category:"serif"},{family:"Spectral SC",variants:[200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i"],category:"serif"},{family:"Spicy Rice",variants:[400],category:"display"},{family:"Spinnaker",variants:[400],category:"sans-serif"},{family:"Spirax",variants:[400],category:"display"},{family:"Squada One",variants:[400],category:"display"},{family:"Sree Krushnadevaraya",variants:[400],category:"serif"},{family:"Sriracha",variants:[400],category:"handwriting"},{family:"Srisakdi",variants:[400,700],category:"display"},{family:"Staatliches",variants:[400],category:"display"},{family:"Stalemate",variants:[400],category:"handwriting"},{family:"Stalinist One",variants:[400],category:"display"},{family:"Stardos Stencil",variants:[400,700],category:"display"},{family:"Stick",variants:[400],category:"sans-serif"},{family:"Stint Ultra Condensed",variants:[400],category:"display"},{family:"Stint Ultra Expanded",variants:[400],category:"display"},{family:"Stoke",variants:[300,400],category:"serif"},{family:"Strait",variants:[400],category:"sans-serif"},{family:"Stylish",variants:[400],category:"sans-serif"},{family:"Sue Ellen Francisco",variants:[400],category:"handwriting"},{family:"Suez One",variants:[400],category:"serif"},{family:"Sulphur Point",variants:[300,400,700],category:"sans-serif"},{family:"Sumana",variants:[400,700],category:"serif"},{family:"Sunflower",variants:[300,400,500,700],category:"sans-serif"},{family:"Sunshiney",variants:[400],category:"handwriting"},{family:"Supermercado One",variants:[400],category:"display"},{family:"Sura",variants:[400,700],category:"serif"},{family:"Suranna",variants:[400],category:"serif"},{family:"Suravaram",variants:[400],category:"serif"},{family:"Suwannaphum",variants:[400],category:"display"},{family:"Swanky and Moo Moo",variants:[400],category:"handwriting"},{family:"Syncopate",variants:[400,700],category:"sans-serif"},{family:"Syne",variants:[400,500,600,700,800],category:"sans-serif"},{family:"Syne Mono",variants:[400],category:"monospace"},{family:"Syne Tactile",variants:[400],category:"display"},{family:"Tajawal",variants:[200,300,400,500,700,800,900],category:"sans-serif"},{family:"Tangerine",variants:[400,700],category:"handwriting"},{family:"Taprom",variants:[400],category:"display"},{family:"Tauri",variants:[400],category:"sans-serif"},{family:"Taviraj",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"serif"},{family:"Teko",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Telex",variants:[400],category:"sans-serif"},{family:"Tenali Ramakrishna",variants:[400],category:"sans-serif"},{family:"Tenor Sans",variants:[400],category:"sans-serif"},{family:"Text Me One",variants:[400],category:"sans-serif"},{family:"Texturina",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Thasadith",variants:[400,"400i",700,"700i"],category:"sans-serif"},{family:"The Girl Next Door",variants:[400],category:"handwriting"},{family:"Tienne",variants:[400,700,900],category:"serif"},{family:"Tillana",variants:[400,500,600,700,800],category:"handwriting"},{family:"Timmana",variants:[400],category:"sans-serif"},{family:"Tinos",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Titan One",variants:[400],category:"display"},{family:"Titillium Web",variants:[200,"200i",300,"300i",400,"400i",600,"600i",700,"700i",900],category:"sans-serif"},{family:"Tomorrow",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"sans-serif"},{family:"Trade Winds",variants:[400],category:"display"},{family:"Train One",variants:[400],category:"display"},{family:"Trirong",variants:[100,"100i",200,"200i",300,"300i",400,"400i",500,"500i",600,"600i",700,"700i",800,"800i",900,"900i"],category:"serif"},{family:"Trispace",variants:[100,200,300,400,500,600,700,800],category:"sans-serif"},{family:"Trocchi",variants:[400],category:"serif"},{family:"Trochut",variants:[400,"400i",700],category:"display"},{family:"Truculenta",variants:[100,200,300,400,500,600,700,800,900],category:"sans-serif"},{family:"Trykker",variants:[400],category:"serif"},{family:"Tulpen One",variants:[400],category:"display"},{family:"Turret Road",variants:[200,300,400,500,700,800],category:"display"},{family:"Ubuntu",variants:[300,"300i",400,"400i",500,"500i",700,"700i"],category:"sans-serif"},{family:"Ubuntu Condensed",variants:[400],category:"sans-serif"},{family:"Ubuntu Mono",variants:[400,"400i",700,"700i"],category:"monospace"},{family:"Ultra",variants:[400],category:"serif"},{family:"Uncial Antiqua",variants:[400],category:"display"},{family:"Underdog",variants:[400],category:"display"},{family:"Unica One",variants:[400],category:"display"},{family:"UnifrakturCook",variants:[400,700],category:"display"},{family:"UnifrakturMaguntia",variants:[400],category:"display"},{family:"Unkempt",variants:[400,700],category:"display"},{family:"Unlock",variants:[400],category:"display"},{family:"Unna",variants:[400,"400i",700,"700i"],category:"serif"},{family:"VT323",variants:[400],category:"monospace"},{family:"Vampiro One",variants:[400],category:"display"},{family:"Varela",variants:[400],category:"sans-serif"},{family:"Varela Round",variants:[400],category:"sans-serif"},{family:"Varta",variants:[300,400,500,600,700],category:"sans-serif"},{family:"Vast Shadow",variants:[400],category:"display"},{family:"Vesper Libre",variants:[400,500,700,900],category:"serif"},{family:"Viaoda Libre",variants:[400],category:"display"},{family:"Vibes",variants:[400],category:"display"},{family:"Vibur",variants:[400],category:"handwriting"},{family:"Vidaloka",variants:[400],category:"serif"},{family:"Viga",variants:[400],category:"sans-serif"},{family:"Voces",variants:[400],category:"display"},{family:"Volkhov",variants:[400,"400i",700,"700i"],category:"serif"},{family:"Vollkorn",variants:[400,500,600,700,800,900,"400i","500i","600i","700i","800i","900i"],category:"serif"},{family:"Vollkorn SC",variants:[400,600,700,900],category:"serif"},{family:"Voltaire",variants:[400],category:"sans-serif"},{family:"Waiting for the Sunrise",variants:[400],category:"handwriting"},{family:"Wallpoet",variants:[400],category:"display"},{family:"Walter Turncoat",variants:[400],category:"handwriting"},{family:"Warnes",variants:[400],category:"display"},{family:"Wellfleet",variants:[400],category:"display"},{family:"Wendy One",variants:[400],category:"sans-serif"},{family:"Wire One",variants:[400],category:"sans-serif"},{family:"Work Sans",variants:[100,200,300,400,500,600,700,800,900,"100i","200i","300i","400i","500i","600i","700i","800i","900i"],category:"sans-serif"},{family:"Xanh Mono",variants:[400,"400i"],category:"monospace"},{family:"Yanone Kaffeesatz",variants:[200,300,400,500,600,700],category:"sans-serif"},{family:"Yantramanav",variants:[100,300,400,500,700,900],category:"sans-serif"},{family:"Yatra One",variants:[400],category:"display"},{family:"Yellowtail",variants:[400],category:"handwriting"},{family:"Yeon Sung",variants:[400],category:"display"},{family:"Yeseva One",variants:[400],category:"display"},{family:"Yesteryear",variants:[400],category:"handwriting"},{family:"Yrsa",variants:[300,400,500,600,700],category:"serif"},{family:"Yusei Magic",variants:[400],category:"sans-serif"},{family:"ZCOOL KuaiLe",variants:[400],category:"display"},{family:"ZCOOL QingKe HuangYou",variants:[400],category:"display"},{family:"ZCOOL XiaoWei",variants:[400],category:"serif"},{family:"Zen Dots",variants:[400],category:"display"},{family:"Zeyada",variants:[400],category:"handwriting"},{family:"Zhi Mang Xing",variants:[400],category:"handwriting"},{family:"Zilla Slab",variants:[300,"300i",400,"400i",500,"500i",600,"600i",700,"700i"],category:"serif"},{family:"Zilla Slab Highlight",variants:[400,700],category:"display"}],Ja=[{label:"Normal",value:"normal"},{label:"Italic",value:"italic"},{label:"Oblique",value:"oblique"}],qa=[{label:"None",value:"none",icon:"NO"},{label:"Capitalize",value:"capitalize",icon:"Aa"},{label:"Uppercase",value:"uppercase",icon:"AA"},{label:"Lowercase",value:"lowercase",icon:"aa"}],Xa=[{label:"Default",value:"auto"},{label:"Underline",value:"underline"},{label:"Overline",value:"overline"},{label:"Line Through",value:"line-through"},{label:"None",value:"none"}];function Qa(e){return Qa="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},Qa(e)}function $a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,o,l=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Za(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Za(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Za(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}function ei(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function ti(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(a),!0).forEach((function(t){ai(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ei(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function ai(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=Qa(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=Qa(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var ii=function(e){var t=e.className,a=void 0===t?"":t,n=e.label,o=void 0===n?(0,r.__)("Typography:","bplugins"):n,l=e.value,s=e.onChange,c=e.defaults,y=void 0===c?{}:c,f=e.isFamily,u=void 0===f||f,m={fontFamily:"Default",fontCategory:"sans-serif",fontWeight:400,isUploadFont:!0,fontSize:{desktop:15,tablet:15,mobile:15},fontStyle:"normal",textTransform:"none",textDecoration:"auto",lineHeight:"135%",letterSpace:"0px"},d=function(e){return(null==y?void 0:y[e])||m[e]},g=function(e){return void 0===(null==l?void 0:l[e])?d(e):null==l?void 0:l[e]},v=function(e){return(null==l?void 0:l[e])&&(null==l?void 0:l[e])!==d(e)&&React.createElement(Q.Button,{icon:"image-rotate",className:"bPlResetVal",onClick:function(){return function(e){return s(ti(ti({},l),{},ai({},e,d(e))))}(e)}})},p=$a((0,i.useState)("desktop"),2),h=p[0],b=p[1],w=$a((0,i.useState)(""),2),S=w[0],_=w[1],O=$a((0,i.useState)(!1),2),C=O[0],R=O[1],P=Ya.filter((function(e){return e.family.toLowerCase().includes(S.toLowerCase())})),E=function(){var e,t=null===(e=Ya.find((function(e){return e.family===g("fontFamily")})))||void 0===e?void 0:e.variants,a=[];return null==t||t.map((function(e){return null==a?void 0:a.push({label:e,value:e})})),0===a.length?[400]:a},x=function(e,t,a){var i=Ia(l,(function(i){i[e]=a?ti(ti({},i[e]),{},ai({},a,t)):t}));s(i)};return React.createElement(Q.PanelRow,{className:"bPlDropdown ".concat(a)},React.createElement($,{className:""},o),React.createElement(Q.Dropdown,{className:"bPlDropdownContainer",contentClassName:"bPlDropdownPopover",popoverProps:{placement:"bottom-end"},renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return React.createElement(Q.Button,{icon:"admin-customizer",onClick:a,"aria-expanded":t})},renderContent:function(){var e,t,a;return React.createElement(React.Fragment,null,u?React.createElement(React.Fragment,null,React.createElement(Q.PanelRow,{className:"bPlTypoFontTitle"},React.createElement($,{className:""},(0,r.__)("Font Family:","bplugins")),React.createElement($,{className:""},(0,r.__)("Weight:","bplugins"))),React.createElement(Q.PanelRow,{className:"bPlTypoFont"},React.createElement("div",{className:"bPlTypoFontSelect"},React.createElement("input",{type:"search",value:S,onClick:function(){return R(!C)},placeholder:g("fontFamily")||"Search Font",onChange:function(e){return _(e.target.value)}}),React.createElement("span",{className:"dashicon dashicons dashicons-".concat(C?"arrow-up":"arrow-down"," "),onClick:function(){return R(!C)}}),C&&React.createElement("ul",{className:"bPlTypoFontLists"},null==P?void 0:P.map((function(e){return React.createElement("li",{key:null==e?void 0:e.family,onClick:function(){s(ti(ti({},l),{},ai(ai(ai(ai({},"fontFamily",null==e?void 0:e.family),"fontCategory",(null==e?void 0:e.category)||"sans-serif"),"fontWeight",400),"fontVariant",400))),_(""),R(!1)}},null==e?void 0:e.family)})))),React.createElement(Q.SelectControl,{value:g("fontVariant"),onChange:function(e){s(ti(ti({},l),{},ai(ai({},"fontWeight",parseInt(null==e?void 0:e.replace("00i","00"))),"fontVariant",e)))},options:E()})),React.createElement(Q.ToggleControl,{className:"mt10",label:(0,r.__)("Upload Google Font","bplugins"),checked:g("isUploadFont"),onChange:function(e){return x("isUploadFont",e)}})):React.createElement(Q.PanelRow,null,React.createElement($,{className:""},(0,r.__)("Weight:","bplugins")),React.createElement(Q.SelectControl,{value:g("fontWeight"),onChange:function(e){return x("fontWeight",e)},options:E()})),React.createElement(Q.PanelRow,{className:"mt20"},React.createElement($,{className:""},(0,r.__)("Font Size:","bplugins")),React.createElement(Se,{device:h,onChange:function(e){return b(e)}})),React.createElement(Q.RangeControl,{value:(null===(e=g("fontSize"))||void 0===e?void 0:e[h])||g("fontSize"),onChange:function(e){return x("fontSize",e,h)},min:0,max:120,step:1,allowReset:!0,resetFallbackValue:(null===(t=d("fontSize"))||void 0===t?void 0:t[h])||d("fontSize"),initialPosition:(null===(a=d("fontSize"))||void 0===a?void 0:a[h])||d("fontSize")}),React.createElement(Q.PanelRow,{className:"mt20"},React.createElement($,{className:""},(0,r.__)("Font Style:","bplugins")),React.createElement(Q.SelectControl,{value:g("fontStyle"),onChange:function(e){return x("fontStyle",e)},options:Ja}),v("fontStyle")),React.createElement(Q.PanelRow,{className:"mt20"},React.createElement($,{className:"mt5"},(0,r.__)("Text Transform:","bplugins")),React.createElement(Ee,{value:g("textTransform"),onChange:function(e){return x("textTransform",e)},options:qa,isTextIcon:!0})),React.createElement(Q.PanelRow,{className:"mt20"},React.createElement($,{className:""},(0,r.__)("Text Decoration:","bplugins")),React.createElement(Q.SelectControl,{value:g("textDecoration"),onChange:function(e){return x("textDecoration",e)},options:Xa}),v("textDecoration")),React.createElement(Q.PanelRow,{className:"mt20"},React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Line Height:","bplugins"),labelPosition:"left",value:g("lineHeight"),onChange:function(e){return x("lineHeight",e)},units:[ee(24),te(135),ae(2),ie(2)],isResetValueOnUnitChange:!0}),v("lineHeight")),React.createElement(Q.PanelRow,{className:"mt20"},React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Letter Spacing:","bplugins"),labelPosition:"left",value:g("letterSpace"),onChange:function(e){return x("letterSpace",e)},units:[ee(),ae(),ie()]}),v("letterSpace")))}}))},ri=function(e){var t=e.aboutProOpen,a=e.setAboutProOpen,i=e.link,n=e.children;return t&&React.createElement(Q.Modal,{className:"bplAboutPro",title:(0,r.__)("Upgrade to PRO","bplugins"),onRequestClose:function(){return a(!1)}},React.createElement("h3",null,(0,r.__)("Explore new features in Pro","bplugins")),React.createElement("ul",{className:"features"},n),React.createElement("h4",{className:"text"},(0,r.__)("To unlock those features! Upgrade to Pro")),React.createElement("a",{className:"upgradeNow",href:i,target:"_blank",rel:"noreferrer"},(0,r.__)("Upgrade Now","advanced-post-block")))},ni=["label","className","onChange","isPremium","Component","setOpen"];function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},oi.apply(null,arguments)}var li=function(e){var t=e.label,a=e.className,i=e.onChange,n=e.isPremium,o=void 0!==n&&n,l=e.Component,s=e.setOpen,c=void 0===s?function(){}:s,y=function(e,t){if(null==e)return{};var a,i,r=function(e,t){if(null==e)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;a[i]=e[i]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.includes(a)||{}.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,ni);console.log(o);return React.createElement(l,oi({className:"".concat(a," ").concat(o?"":"bplProIdentifier"),label:function(e){return o?e:React.createElement(React.Fragment,null,React.createElement("span",{className:"bplOpacity75"},e)," ",React.createElement("span",{className:"labelPro"},(0,r.__)("Pro","bplugins")))}(t),onChange:function(e){return o?i(e):c(!0)},isPremium:o},y))};function si(e){return si="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},si(e)}var ci=["className","onChange","isPremium","setOpen","options","proValues"];function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},yi.apply(null,arguments)}function fi(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function ui(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(a),!0).forEach((function(t){mi(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fi(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function mi(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=si(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=si(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==si(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var di=function(e){var t=e.className,a=e.onChange,r=e.isPremium,n=void 0!==r&&r,o=e.setOpen,l=void 0===o?function(){}:o,s=e.options,c=void 0===s?[]:s,y=e.proValues,f=void 0===y?[]:y,u=function(e,t){if(null==e)return{};var a,i,r=function(e,t){if(null==e)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;a[i]=e[i]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.includes(a)||{}.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,ci),m=c.map((function(e){return ui(ui({},e),{},{label:null!=f&&f.includes(e.value)&&!n?"".concat(e.label," - Pro"):e.label})})),d=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e=null==d?void 0:d.current;if(e&&!n){var t=null==e?void 0:e.childNodes;null==t||t.forEach((function(e){null!=f&&f.includes(e.value)&&e.classList.add("proOption")}))}}),[d,f]),React.createElement(Q.SelectControl,yi({ref:d,className:"".concat(t," ").concat(n?"":"bplPorSelect"),onChange:function(e){return n?a(e):null!=f&&f.includes(e)?l(!0):a(e)},options:m},u))};function gi(e){return gi="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},gi(e)}function vi(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function pi(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(a),!0).forEach((function(t){hi(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):vi(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function hi(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=gi(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=gi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var bi=function(e){var t=e.className,a=e.label,i=e.value,r=e.onChange,n=e.options,o=e.isIcon,l=void 0!==o&&o,s=e.isTextIcon,c=void 0!==s&&s,y=e.size,f=e.isPremium,u=void 0!==f&&f,m=e.setOpen,d=void 0===m?function(){}:m,g=e.proValues,v=n.map((function(e){return pi(pi({},e),{},{className:null!=g&&g.includes(e.value)&&!u?"bplProGroupBtn":""})})),p=function(e){var t=e.className,a=void 0===t?"":t;return React.createElement(Q.ButtonGroup,{className:"bPlBtnGroup ".concat(a||null)},null==v?void 0:v.map((function(e){var t=e.className,a=void 0===t?"":t,n=e.value,o=e.icon,s=void 0===o?"":o,f=e.label,m=void 0===f?"":f,v=e.def,p=void 0===v?"":v,h=i===n,b="small"===y;return React.createElement(Q.Button,{key:n,className:a,label:m,showTooltip:!0,tooltipPosition:"top",icon:l?s:null,variant:h?"primary":"","aria-pressed":h,isSmall:b,isMedium:!b,onClick:function(){return u?r(n,p&&p):null!=g&&g.includes(n)?d(!0):r(n,p&&p)}},c?s:l?"":m)})))};return a?React.createElement(Q.PanelRow,{className:t},React.createElement($,{className:""},a),React.createElement(p,null)):React.createElement(p,{className:t})},wi=((0,Me.withSelect)((function(e){return{currentPostType:e("core/editor").getCurrentPostType()}}))((function(e){var t=e.postType,a=e.shortCode,n=e.currentPostType,o=(0,i.useRef)(null);return t===n&&React.createElement("div",{className:"bPlFrontShortCode"},React.createElement($,{className:"mb5"},(0,r.__)("Copy the shortcode and use it anywhere.","bplugins")),React.createElement("div",{className:"bPlFrontShortCodeInput"},React.createElement("input",{onClick:function(e){var t=e.target;t.select(),t.setSelectionRange(0,30),document.execCommand("copy"),o.current.innerHTML=(0,r.__)("Copied Successfully!","bplugins"),setTimeout((function(){o.current.innerHTML=(0,r.__)("Copy To Clipboard","bplugins")}),1500)},value:a}),React.createElement("span",{ref:o,className:"tooltip"},(0,r.__)("Copy To Clipboard","bplugins"))))})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"currentcolor";return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 48 48",fill:e},React.createElement("path",{fill:e,d:"M42,12.429c-1.323,0.586-2.746,0.977-4.247,1.162c1.526-0.906,2.7-2.351,3.251-4.058c-1.428,0.837-3.01,1.452-4.693,1.776C34.967,9.884,33.05,9,30.926,9c-4.08,0-7.387,3.278-7.387,7.32c0,0.572,0.067,1.129,0.193,1.67c-6.138-0.308-11.582-3.226-15.224-7.654c-0.64,1.082-1,2.349-1,3.686c0,2.541,1.301,4.778,3.285,6.096c-1.211-0.037-2.351-0.374-3.349-0.914c0,0.022,0,0.055,0,0.086c0,3.551,2.547,6.508,5.923,7.181c-0.617,0.169-1.269,0.263-1.941,0.263c-0.477,0-0.942-0.054-1.392-0.135c0.94,2.902,3.667,5.023,6.898,5.086c-2.528,1.96-5.712,3.134-9.174,3.134c-0.598,0-1.183-0.034-1.761-0.104C9.268,36.786,13.152,38,17.321,38c13.585,0,21.017-11.156,21.017-20.834c0-0.317-0.01-0.633-0.025-0.945C39.763,15.197,41.013,13.905,42,12.429"}))}),Si=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"currentcolor";return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0,0,256,256",fill:e},React.createElement("path",{fill:e,transform:"scale(5.12,5.12)",d:"M5.91992,6l14.66211,21.375l-14.35156,16.625h3.17969l12.57617,-14.57812l10,14.57813h12.01367l-15.31836,-22.33008l13.51758,-15.66992h-3.16992l-11.75391,13.61719l-9.3418,-13.61719zM9.7168,8h7.16406l23.32227,34h-7.16406z"}))},_i=[{label:(0,r.__)("Timeline","easy-twitter"),value:"timeline"},{label:(0,r.__)("Follow Button","easy-twitter"),value:"follow"},{label:(0,r.__)("Tweet Button","easy-twitter"),value:"tweet"},{label:(0,r.__)("Hashtag","easy-twitter"),value:"tag"},{label:(0,r.__)("Video","easy-twitter"),value:"video"},{label:(0,r.__)("Post","easy-twitter"),value:"post"}],Oi=[{label:(0,r.__)("Dark","easy-twitter"),value:"dark"},{label:(0,r.__)("Light","easy-twitter"),value:"light"}],Ci=[{label:(0,r.__)("Twitter Icon","easy-twitter"),value:"tIcon",icon:wi()},{label:(0,r.__)("X Icon","easy-twitter"),value:"xIcon",icon:Si()}],Ri=[{label:(0,r.__)("Yes","easy-twitter"),value:"yes"},{label:(0,r.__)("No","easy-twitter"),value:"no"}],Pi=[{label:(0,r.__)("English (default)","easy-twitter"),value:"en"},{label:(0,r.__)("Arabic","easy-twitter"),value:"ar"},{label:(0,r.__)("Bengali","easy-twitter"),value:"bn"},{label:(0,r.__)("Chinese (Simplified)","easy-twitter"),value:"zh-cn"},{label:(0,r.__)("Chinese (Traditional)","easy-twitter"),value:"zh-tw"},{label:(0,r.__)("Czech","easy-twitter"),value:"cs"},{label:(0,r.__)("Danish","easy-twitter"),value:"da"},{label:(0,r.__)("Dutch","easy-twitter"),value:"nl"},{label:(0,r.__)("Filipino","easy-twitter"),value:"fil"},{label:(0,r.__)("Finnish","easy-twitter"),value:"fi"},{label:(0,r.__)("French","easy-twitter"),value:"fr"},{label:(0,r.__)("German","easy-twitter"),value:"de"},{label:(0,r.__)("Greek","easy-twitter"),value:"el"},{label:(0,r.__)("Hebrew","easy-twitter"),value:"he"},{label:(0,r.__)("Hindi","easy-twitter"),value:"hi"},{label:(0,r.__)("Hungarian","easy-twitter"),value:"hu"},{label:(0,r.__)("Indonesian","easy-twitter"),value:"id"},{label:(0,r.__)("Italian","easy-twitter"),value:"it"},{label:(0,r.__)("Japanese","easy-twitter"),value:"ja"},{label:(0,r.__)("Korean","easy-twitter"),value:"ko"},{label:(0,r.__)("Malay","easy-twitter"),value:"msa"},{label:(0,r.__)("Norwegian","easy-twitter"),value:"no"},{label:(0,r.__)("Persian","easy-twitter"),value:"fa"},{label:(0,r.__)("Polish","easy-twitter"),value:"pl"},{label:(0,r.__)("Portuguese","easy-twitter"),value:"pt"},{label:(0,r.__)("Romanian","easy-twitter"),value:"ro"},{label:(0,r.__)("Russian","easy-twitter"),value:"ru"},{label:(0,r.__)("Spanish","easy-twitter"),value:"es"},{label:(0,r.__)("Swedish","easy-twitter"),value:"sv"},{label:(0,r.__)("Thai","easy-twitter"),value:"th"},{label:(0,r.__)("Turkish","easy-twitter"),value:"tr"},{label:(0,r.__)("Ukrainian","easy-twitter"),value:"uk"},{label:(0,r.__)("Urdu","easy-twitter"),value:"ur"},{label:(0,r.__)("Vietnamese","easy-twitter"),value:"vi"}],Ei=[{name:"general",title:(0,r.__)("General","easy-twitter")},{name:"style",title:(0,r.__)("Style","easy-twitter")}];function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},xi.apply(null,arguments)}var ki=(0,Me.withSelect)((function(e){var t=e("core/editor"),a=t.getCurrentPostId,i=t.getCurrentPostType;return{currentPostId:a(),currentPostType:i()}}))((function(e){var t=e.attributes,a=e.setAttributes,n=e.updateObj,o=e.currentPostId,l=e.currentPostType,s=e.premiumProps,c=e.aboutProOpen,y=e.setAboutProOpen,f=t.userName,u=t.type,m=t.config,d=t.alignment,g=t.border,v=t.shadow,p=t.button,h=t.videoPostID,b=m.theme,w=m.width,S=m.height,_=m.scrolling,O=m.isHeader,C=m.isFooter,R=m.language,P=p.tweetText,E=p.icon,x=p.typo,k=p.colors,T=p.padding,j=p.hasTagText,N=p.iconsType,A=(0,i.useRef)(null),M=(0,i.useRef)(null);return React.createElement(React.Fragment,null,u&&React.createElement(X.InspectorControls,null,"easy-twitter-feeds"==l&&React.createElement("div",{className:"etfFrontShortcode"},React.createElement(Q.TextControl,{value:"[etf id=".concat(o,"]"),className:"components-text-control__input",label:(0,r.__)("Copy Shortcode","easy-twitter"),onClick:function(){M.current&&(M.current.select(),document.execCommand("copy"),A.current.innerHTML=(0,r.__)("Copied Successfully!","easy-twitter"),setTimeout((function(){A.current.innerHTML=(0,r.__)("Copy To Clipboard","easy-twitter")}),1500))},ref:M}),React.createElement("span",{className:"tooltip",ref:A},(0,r.__)("Copy To Clipboard","easy-twitter"))),React.createElement(Q.TabPanel,{className:"bPlTabPanel",activeClass:"activeTab",tabs:Ei,onSelect:q},(function(e){return React.createElement(React.Fragment,null,"general"===e.name&&React.createElement(React.Fragment,null,React.createElement(Q.PanelBody,{className:"bPlPanelBody",title:(0,r.__)("Twitter Feed","easy-twitter")},["timeline","follow","tweet"].includes(u)&&React.createElement(React.Fragment,null,React.createElement($,{className:"mb5"},(0,r.__)("Username:","easy-twitter")),React.createElement(Q.TextControl,{value:f,onChange:function(e){return a({userName:e})}})),["video","post"].includes(u)&&React.createElement(React.Fragment,null,React.createElement($,{className:"mb5"},(0,r.__)("Post ID:","easy-twitter")),React.createElement(Q.TextControl,{value:h,onChange:function(e){return a({videoPostID:e})}}),React.createElement("small",null,(0,r.__)("https://twitter.com/spacesudoer/status/1732827373249438073","easy-twitter"))),React.createElement(di,xi({className:"mt20",label:"Type",labelPosition:"left",value:u,onChange:function(e){return a({type:e})},options:_i,proValues:["tweet","video","post","tag"]},s))),["video","post","timeline"].includes(u)&&React.createElement(Q.PanelBody,{className:"bPlPanelBody",title:(0,r.__)("Config","easy-twitter"),initialOpen:!1},React.createElement(Q.__experimentalUnitControl,{label:(0,r.__)("Width:","easy-twitter"),labelPosition:"left",value:w,onChange:function(e){return n("config","width",e)},units:[ee(610),ae(35),te(100)]}),"video"!=u&&React.createElement(Q.__experimentalUnitControl,{className:"mt20",label:(0,r.__)("Height:","easy-twitter"),labelPosition:"left",value:S,onChange:function(e){return n("config","height",e)},units:[ee(500),ae(30),re(80)]}),React.createElement(Q.SelectControl,{className:"mt20",label:(0,r.__)("Scrolling?","easy-twitter"),labelPosition:"left",value:_,onChange:function(e){return n("config","scrolling",e)},options:Ri}),React.createElement(Q.SelectControl,{className:"mt20",label:(0,r.__)("Theme","easy-twitter"),labelPosition:"left",value:b,onChange:function(e){return n("config","theme",e)},options:Oi}),["timeline"].includes(u)&&React.createElement(React.Fragment,null,React.createElement(li,xi({className:"mt20",label:(0,r.__)("Show Header","easy-twitter"),checked:O,onChange:function(e){return n("config","isHeader",e)}},s,{Component:Q.ToggleControl})),React.createElement(li,xi({className:"mt10",label:(0,r.__)("Show Footer","easy-twitter"),checked:C,onChange:function(e){return n("config","isFooter",e)}},s,{Component:Q.ToggleControl}))),React.createElement(li,xi({className:"mt20",label:(0,r.__)("Language","easy-twitter"),labelPosition:"left",value:R,onChange:function(e){return n("config","language",e)},options:Pi},s,{Component:Q.SelectControl}))),["tweet","tag"].includes(u)&&React.createElement(Q.PanelBody,{className:"bPlPanelBody addRemoveItems editItem",title:(0,r.__)("Tweet Button","easy-twitter")},React.createElement($,{className:"mb5"},(0,r.__)("Tweet Text:","easy-twitter")),React.createElement(Q.TextControl,{value:P,onChange:function(e){return n("button","tweetText",e)}}),["tag"].includes(u)&&React.createElement(React.Fragment,null,React.createElement($,{className:"mb5"},(0,r.__)("Tag Text:","easy-twitter")),React.createElement(Q.TextControl,{value:j,onChange:function(e){return n("button","hasTagText",e)}})))),"style"===e.name&&React.createElement(React.Fragment,null,React.createElement(Q.PanelBody,{className:"bPlPanelBody",title:(0,r.__)("Twitter","easy-twitter")},React.createElement(Pe,{label:(0,r.__)("Border:","easy-twitter"),value:g,onChange:function(e){return a({border:e})},defaults:{radius:"5px"}}),React.createElement(Va,{label:(0,r.__)("Shadow:","easy-twitter"),value:v,onChange:function(e){return a({shadow:e})},produce:Y})),"timeline"!==u&&React.createElement(Q.PanelBody,{className:"bPlPanelBody",title:(0,r.__)("Button","easy-twitter")},React.createElement(bi,xi({label:(0,r.__)("Button Icon","easy-twitter"),value:N,onChange:function(e){return n("button","iconsType",e)},options:Ci,isTextIcon:!0,proValues:["xIcon"]},s)),React.createElement(Q.__experimentalUnitControl,{className:"mt20",label:(0,r.__)("Icon Width:","easy-twitter"),labelPosition:"left",value:E.width,onChange:function(e){return n("button","icon",e,"width")},units:[ee(28)]}),React.createElement(Q.__experimentalUnitControl,{className:"mt20",label:(0,r.__)("Icon Height:","easy-twitter"),labelPosition:"left",value:E.height,onChange:function(e){return n("button","icon",e,"height")},units:[ee(20)]}),React.createElement(ii,{className:"mt20",label:(0,r.__)("Typography:","easy-twitter"),value:x,onChange:function(e){return n("button","typo",e)},defaults:{fontSize:{desktop:14}}}),React.createElement(Ae,{className:"mt20",label:(0,r.__)("Colors:","easy-twitter"),value:k,onChange:function(e){return n("button","colors",e)},defaults:{color:"#fff",bg:"#1d9bf0"}}),React.createElement("br",null),React.createElement(Q.__experimentalBoxControl,{label:(0,r.__)("Padding:","easy-twitter"),value:T,onChange:function(e){return n("button","padding",e)},resetValues:{top:"6px",right:"10px",bottom:"6px",left:"10px"}}))))}))),React.createElement(ri,{aboutProOpen:c,setAboutProOpen:y,link:"https://bplugins.com/products/easy-twitter-feeds/#pricing"},React.createElement("li",null," ",React.createElement("strong",null,(0,r.__)("Tweet Button: ","easy-twitter")),(0,r.__)("Quick tweet with the text","easy-twitter")),React.createElement("li",null," ",React.createElement("strong",null,(0,r.__)("Hastag Button: ","easy-twitter")),(0,r.__)("Quick tag with the text","easy-twitter")),React.createElement("li",null," ",React.createElement("strong",null,(0,r.__)("Header: ","easy-twitter")),(0,r.__)("Hide the timeline header","easy-twitter")),React.createElement("li",null," ",React.createElement("strong",null,(0,r.__)("Footer: ","easy-twitter")),(0,r.__)("Hide the timeline footer","easy-twitter")),React.createElement("li",null," ",React.createElement("strong",null,(0,r.__)("Language: ","easy-twitter")),(0,r.__)("Select language for the timeline","easy-twitter")),React.createElement("li",null," ",React.createElement("strong",null,(0,r.__)("Video: ","easy-twitter")),(0,r.__)("Video from any twitter post","easy-twitter")),React.createElement("li",null," ",React.createElement("strong",null,(0,r.__)("Post: ","easy-twitter")),(0,r.__)("Show Twitter Spacific Post","easy-twitter")),React.createElement("li",null," ",React.createElement("strong",null,(0,r.__)("Button Icon: ","easy-twitter")),(0,r.__)("You Can change the Button Icon","easy-twitter"))),React.createElement(X.BlockControls,null,React.createElement(X.AlignmentToolbar,{value:d,onChange:function(e){return a({alignment:e})},describedBy:(0,r.__)("Twitter Alignment"),alignmentControls:[{title:(0,r.__)("Twitter in left","easy-twitter"),align:"left",icon:"align-left"},{title:(0,r.__)("Twitter in center","easy-twitter"),align:"center",icon:"align-center"},{title:(0,r.__)("Twitter in right","easy-twitter"),align:"right",icon:"align-right"}]})))})),Ti=function(e){var t=e||{},a=t.width,i=void 0===a?"0px":a,r=t.style,n=void 0===r?"solid":r,o=t.color,l=void 0===o?"#0000":o,s=t.side,c=void 0===s?"all":s,y=t.radius,f=void 0===y?"0px":y,u=function(e){var t=null==c?void 0:c.toLowerCase();return(null==t?void 0:t.includes("all"))||(null==t?void 0:t.includes(e))},m="0px"===i||!i,d="".concat(i," ").concat(n," ").concat(l),g="\n\t\t".concat(m?"":["top","right","bottom","left"].map((function(e){return u(e)?"border-".concat(e,": ").concat(d,";"):""})).join(""),"\n\t\t").concat(f?"border-radius: ".concat(f,";"):"","\n\t");return g},ji=function(e){var t=e||{},a=t.color,i=void 0===a?"#333":a,r=t.bgType,n=void 0===r?"solid":r,o=t.bg,l=void 0===o?"#0000":o,s=t.gradient,c=void 0===s?"linear-gradient(135deg, #4527a4, #8344c5)":s;return"\n\t\t".concat(i?"color: ".concat(i,";"):"","\n\t\t").concat(c||l?"background: ".concat("gradient"===n?c:l,";"):"","\n\t")},Ni=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"box",a="";return null==e||e.map((function(i,r){var n=i||{},o=n.hOffset,l=void 0===o?"0px":o,s=n.vOffset,c=void 0===s?"0px":s,y=n.blur,f=void 0===y?"0px":y,u=n.spreed,m=void 0===u?"0px":u,d=n.color,g=void 0===d?"#7090b0":d,v=n.isInset,p=void 0!==v&&v?"inset":"",h="".concat(l," ").concat(c," ").concat(f),b=r+1>=e.length?"":", ";a+="text"===t?"".concat(h," ").concat(g).concat(b):"".concat(h," ").concat(m," ").concat(g," ").concat(p).concat(b)})),a||"none"},Ai=function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t||{},r=i.fontFamily,n=void 0===r?"Default":r,o=i.fontCategory,l=void 0===o?"sans-serif":o,s=i.fontVariant,c=void 0===s?400:s,y=i.fontWeight,f=void 0===y?400:y,u=i.isUploadFont,m=void 0===u||u,d=i.fontSize,g=void 0===d?{desktop:15,tablet:15,mobile:15}:d,v=i.fontStyle,p=void 0===v?"normal":v,h=i.textTransform,b=void 0===h?"none":h,w=i.textDecoration,S=void 0===w?"auto":w,_=i.lineHeight,O=void 0===_?"135%":_,C=i.letterSpace,R=void 0===C?"0px":C,P=function(e,t){return e?"".concat(t,": ").concat(e,";"):""},E=!a||!n||"Default"===n,x=(null==g?void 0:g.desktop)||g,k=(null==g?void 0:g.tablet)||x,T=(null==g?void 0:g.mobile)||k,j="\n\t\t".concat(E?"":"font-family: '".concat(n,"', ").concat(l,";"),"\n\t\t").concat(P(f,"font-weight"),"\n\t\t","font-size: ".concat(x,"px;"),"\n\t\t").concat(P(p,"font-style"),"\n\t\t").concat(P(b,"text-transform"),"\n\t\t").concat(P(S,"text-decoration"),"\n\t\t").concat(P(O,"line-height"),"\n\t\t").concat(P(R,"letter-spacing"),"\n\t"),N=c&&400!==c?"400i"===c?":ital@1":null!=c&&c.includes("00i")?": ital, wght@1, ".concat(null==c?void 0:c.replace("00i","00")," "):": wght@".concat(c," "):"",A=E?"":"https://fonts.googleapis.com/css2?family=".concat(null==n?void 0:n.split(" ").join("+")).concat(N.replace(/ /g,""),"&display=swap");return{googleFontLink:!m||E?"":"@import url(".concat(A,");"),styles:"".concat(e,"{\n\t\t\t").concat(j,"\n\t\t}\n\t\t@media (max-width: 768px) {\n\t\t\t").concat(e,"{\n\t\t\t\t","font-size: ".concat(k,"px;"),"\n\t\t\t}\n\t\t}\n\t\t@media (max-width: 576px) {\n\t\t\t").concat(e,"{\n\t\t\t\t","font-size: ".concat(T,"px;"),"\n\t\t\t}\n\t\t}").replace(/\s+/g," ").trim()}},Mi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.values(e).join(" ")},Di=function(e){var t,a,i=e.attributes,r=e.clientId,n=i.alignment,o=i.button,l=i.border,s=i.shadow,c=o.icon,y=o.typo,f=o.colors,u=o.padding,m="#etfTwitterFeed-".concat(r),d="".concat(m," .etfTwitterFeed");return React.createElement("style",{dangerouslySetInnerHTML:{__html:"\n\t\t".concat(null===(t=Ai("",y))||void 0===t?void 0:t.googleFontLink,"\n\t\t").concat(null===(a=Ai("".concat(d," .etfButton"),y))||void 0===a?void 0:a.styles,"\n\n\t\t").concat(m,"{\n\t\t\ttext-align: ").concat(n,";\n\t\t}\n\t\t").concat(d,"{\n\t\t\ttext-align: ").concat(n,";\n\t\t}\n\t\t").concat(d," .etfButton{\n\t\t    ").concat(ji(f),"\n\t\t\tpadding: ").concat(Mi(u),";\n\t\t\t\n\t\t}\n\t\t").concat(d," .etfButton svg{\n\t\t\twidth: ").concat(c.width,";\n\t\t\theight: ").concat(c.height,";\n\t\t}\n\t\t").concat(d," iframe, ").concat(d," .etfButton{\n\t\t\t").concat(Ti(l),"\n\t\t\tbox-shadow: ").concat(Ni(s),";\n\t\t}\n\t")}})},Ii=function(e){var t=e.attributes,a=t.userName,i=t.config,r=i.theme,n=i.width,o=i.height,l=i.scrolling,s=i.isHeader,c=i.isFooter,y=i.language;return React.createElement("iframe",{Scrolling:l,frameBorder:"0",allowtransparency:"true",allowFullScreen:"true",className:"twitter_iframe",style:{position:"static",visibility:"visible",width:"".concat(n),height:"".concat(o),flexGrow:1,overflow:"auto"},title:"Twitter Timeline",src:"https://syndication.twitter.com/srv/timeline-profile/screen-name/".concat(a,"?dnt=false&frame=false&hideBorder=true&showHeader=").concat(s,"&hideFooter=").concat(!c,"&lang=").concat(y,"&showReplies=false&theme=").concat(r,"&transparent=false")})},Bi=function(e){var t=e.attributes,a=t.userName,i=t.button.iconsType;return React.createElement("a",{onClick:function(){var e="https://twitter.com/intent/follow?region=follow_link&screen_name=".concat(a);window.open(e,"_blank")},rel:"noreferrer",className:"etfButton"},"tIcon"==i?wi():Si(),React.createElement("span",null," Follow @",a))},Li=function(e){var t=e.attributes,a=t.userName,i=t.button,r=i.iconsType;return React.createElement("a",{onClick:function(){var e="https://twitter.com/intent/tweet?screen_name=".concat(a,"&text=").concat(i.tweetText);window.open(e,"_blank")},className:"etfButton"},"tIcon"==r?wi():Si(),React.createElement("span",null,"Tweet to @",a))};function Fi(e){return Fi="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},Fi(e)}function zi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */zi=function(){return t};var e,t={},a=Object.prototype,i=a.hasOwnProperty,r=Object.defineProperty||function(e,t,a){e[t]=a.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,a){return e[t]=a}}function y(e,t,a,i){var n=t&&t.prototype instanceof p?t:p,o=Object.create(n.prototype),l=new T(i||[]);return r(o,"_invoke",{value:P(e,a,l)}),o}function f(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=y;var u="suspendedStart",m="suspendedYield",d="executing",g="completed",v={};function p(){}function h(){}function b(){}var w={};c(w,o,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(j([])));_&&_!==a&&i.call(_,o)&&(w=_);var O=b.prototype=p.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function a(r,n,o,l){var s=f(e[r],e,n);if("throw"!==s.type){var c=s.arg,y=c.value;return y&&"object"==Fi(y)&&i.call(y,"__await")?t.resolve(y.__await).then((function(e){a("next",e,o,l)}),(function(e){a("throw",e,o,l)})):t.resolve(y).then((function(e){c.value=e,o(c)}),(function(e){return a("throw",e,o,l)}))}l(s.arg)}var n;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){a(e,i,t,r)}))}return n=n?n.then(r,r):r()}})}function P(t,a,i){var r=u;return function(n,o){if(r===d)throw Error("Generator is already running");if(r===g){if("throw"===n)throw o;return{value:e,done:!0}}for(i.method=n,i.arg=o;;){var l=i.delegate;if(l){var s=E(l,i);if(s){if(s===v)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===u)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=d;var c=f(t,a,i);if("normal"===c.type){if(r=i.done?g:m,c.arg===v)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=g,i.method="throw",i.arg=c.arg)}}}function E(t,a){var i=a.method,r=t.iterator[i];if(r===e)return a.delegate=null,"throw"===i&&t.iterator.return&&(a.method="return",a.arg=e,E(t,a),"throw"===a.method)||"return"!==i&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var n=f(r,t.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,v;var o=n.arg;return o?o.done?(a[t.resultName]=o.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,v):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,v)}function x(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(t){if(t||""===t){var a=t[o];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function a(){for(;++r<t.length;)if(i.call(t,r))return a.value=t[r],a.done=!1,a;return a.value=e,a.done=!0,a};return n.next=n}}throw new TypeError(Fi(t)+" is not iterable")}return h.prototype=b,r(O,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:h,configurable:!0}),h.displayName=c(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},C(R.prototype),c(R.prototype,l,(function(){return this})),t.AsyncIterator=R,t.async=function(e,a,i,r,n){void 0===n&&(n=Promise);var o=new R(y(e,a,i,r),n);return t.isGeneratorFunction(a)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(O),c(O,s,"Generator"),c(O,o,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var i in t)a.push(i);return a.reverse(),function e(){for(;a.length;){var i=a.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=j,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function r(i,r){return l.type="throw",l.arg=t,a.next=i,r&&(a.method="next",a.arg=e),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var n=r;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(o)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),k(a),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var i=a.completion;if("throw"===i.type){var r=i.arg;k(a)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,a,i){return this.delegate={iterator:j(t),resultName:a,nextLoc:i},"next"===this.method&&(this.arg=e),v}},t}function Hi(e,t,a,i,r,n,o){try{var l=e[n](o),s=l.value}catch(e){return void a(e)}l.done?t(s):Promise.resolve(s).then(i,r)}function Gi(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Ki(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(a),!0).forEach((function(t){Ui(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Gi(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function Ui(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=Fi(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=Fi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Vi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,o,l=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wi(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Wi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}var Yi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Vi((0,i.useState)(!1),2),n=r[0],o=r[1],l=Vi((0,i.useState)(!1),2),s=l[0],c=l[1],y=Vi((0,i.useState)(null),2),f=y[0],u=y[1],m=Vi((0,i.useState)(null),2),d=m[0],g=m[1];if(wp.ajax){var v=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(!0),c(!1),u(null),wp.ajax.post(e,Ki(Ki({},t),a)).done((function(e){o(!1),g(e)})).fail((function(e){o(!1),c(!0),u(e)}))},p=function(){var e,t=(e=zi().mark((function e(){var t=arguments;return zi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v(t.length>0&&void 0!==t[0]?t[0]:{});case 2:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(i,r){var n=e.apply(t,a);function o(e){Hi(n,i,r,o,l,"next",e)}function l(e){Hi(n,i,r,o,l,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,i.useEffect)((function(){a||v(t)}),[]),{data:d,saveData:p,refetch:p,isLoading:n,isError:s,error:f}}console.error("Please use wp-util as a dependency")};function Ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,o,l=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qi(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?qi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}var Xi=function(e){var t=Ji((0,i.useState)(!0),2),a=t[0],r=t[1],n=Ji((0,i.useState)(!1),2),o=n[0],l=n[1],s=Ji((0,i.useState)(null),2),c=s[0],y=s[1],f=Ji((0,i.useState)(null),2),u=f[0],m=f[1];(0,i.useEffect)((function(){l(!1),y(null),wp.api.loadPromise.then((function(){(new wp.api.models.Settings).fetch().then((function(t){m(d(t[e])),r(!1)}))}))}),[]);var d=function(e){var t=e;try{t=JSON.parse(e)}catch(e){l(!0),y(e.message)}return t};return{data:u,isLoading:a,isError:o,error:c}},Qi=function(){var e=Xi("etfUtils").data,t=Yi("etfPipeChecker",{_wpnonce:null==e?void 0:e.nonce},!0),a=t.data,r=void 0===a?null:a,n=t.refetch,o=t.isLoading,l=void 0===o||o,s=!l&&(null==r?void 0:r.isPipe)||!1;return(0,i.useEffect)((function(){n()}),[e]),{isPremium:s,isLoading:l}},$i=function(e){var t=e.attributes,a=t.type,i=t.config,r=t.videoPostID,n=i.language,o=i.scrolling,l=i.theme,s=i.height,c=i.width,y="video"==a?"280px":s,f="video"===a?"https://platform.twitter.com/embed/Tweet.html?dnt=false&frame=false&hideCard=false&hideThread=false&id=".concat(r,"&lang=").concat(n,"&theme=").concat(l,"&width=").concat(c,"&maxWidth=").concat(c):"post"===a?"https://platform.twitter.com/embed/Tweet.html?dnt=false&frame=false&hideCard=false&hideThread=false&id=".concat(r,"&lang=").concat(n,"&theme=").concat(l,"&width=").concat(c):"";return React.createElement("iframe",{Scrolling:o,frameBorder:"0",allowtransparency:"true",allowFullScreen:"true",style:{width:"".concat(c),height:"".concat(y)},title:"X Post",src:f,"data-tweet-id":r})},Zi=function(e){var t=e.attributes.button,a=t.tweetText,i=t.hasTagText,r=t.iconsType;return React.createElement("a",{onClick:function(){var e="https://twitter.com/intent/tweet?hashtags=".concat(i,"%2C&original_referer=https%3A%2F%2Fpublish.twitter.com%2F&text=").concat(a);window.open(e,"_blank")},rel:"noreferrer",className:"etfButton"},"tIcon"==r?wi():Si(),React.createElement("span",null," Post #",i))};function er(e){return er="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},er(e)}function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},tr.apply(null,arguments)}function ar(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=er(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=er(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==er(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,o,l=[],s=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rr(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?rr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}var nr=function(e){var t=e.className,a=e.attributes,n=e.setAttributes,o=e.clientId,l=e.isSelected,s=a.type;(0,i.useEffect)((function(){o&&n({cId:o.substring(0,10)})}),[o]);var c=Qi().isPremium,y=ir((0,i.useState)(!1),2),f=y[0],u=y[1];(0,i.useEffect)((function(){return q()}),[l]);var m={isPremium:c,setOpen:u};return React.createElement(React.Fragment,null,React.createElement(ki,{attributes:a,setAttributes:n,updateObj:function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Y(a[e],(function(e){!1!==r?e[t][r]=i:e[t]=i}));n(ar({},e,o))},aboutProOpen:f,setAboutProOpen:u,premiumProps:m}),React.createElement("div",{className:t,id:"etfTwitterFeed-".concat(o)},React.createElement(Di,{attributes:a,clientId:o}),React.createElement("div",{className:"etfTwitterFeed"},s?React.createElement(React.Fragment,null,"timeline"==s&&React.createElement("div",{className:"twitter_iframe"},React.createElement(Ii,{attributes:a})),"follow"==s&&React.createElement(Bi,{attributes:a}),"tweet"==s&&React.createElement(Li,{attributes:a}),"tag"==s&&React.createElement(Zi,{attributes:a}),["video","post"].includes(s)&&React.createElement($i,{attributes:a})):React.createElement(Q.Placeholder,{icon:wi("#03A9F4"),instructions:(0,r.__)("Choose a Feed type to get started.","easy-twitter"),label:(0,r.__)("Choose a Feed Type","easy-twitter")},React.createElement(bi,tr({value:s,onChange:function(e){return n({type:e})},options:_i,proValues:["tweet","video","post","tag"]},m))))))};(0,e.registerBlockType)(t,{icon:wi("#4527a4"),edit:nr,save:function(){return null}})}()}();
//# sourceMappingURL=editor.js.map