File: /home/axxoncom/domains/istkargo.xyz/public_html/wp-content/plugins/sureforms/assets/build/blocks.js
/*! For license information please see blocks.js.LICENSE.txt */
(()=>{var e,t,r,n,o={659:(e,t,r)=>{var n=r(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},1882:(e,t,r)=>{var n=r(72552),o=r(23805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(51609)),o=l(r(46942)),i=l(r(53973)),a=l(r(73262));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="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},s(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return r=function(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?f(e):t}(this,(e=u(t)).call.apply(e,[this].concat(l))),p(f(f(r)),"genSelectedDialCode",(function(){var e=r.props,t=e.separateDialCode,o=e.dialCode;return t?n.default.createElement("div",{className:"selected-dial-code"},o):null})),p(f(f(r)),"genArrow",(function(){var e=r.props,t=e.allowDropdown,i=e.showDropdown,a=(0,o.default)("arrow",i?"up":"down");return t?n.default.createElement("div",{className:a}):null})),p(f(f(r)),"genFlagClassName",(function(){return(0,o.default)("iti-flag",p({},r.props.countryCode,!!r.props.countryCode))})),p(f(f(r)),"genCountryList",(function(){var e=r.props,t=e.dropdownContainer,o=e.showDropdown,a=e.isMobile,l=e.allowDropdown,s=e.setFlag,c=e.countries,u=e.inputTop,d=e.inputOuterHeight,f=e.preferredCountries,p=e.highlightedCountry,h=e.changeHighlightCountry;return n.default.createElement(i.default,{ref:function(e){r.countryList=e},dropdownContainer:t,isMobile:a,showDropdown:l&&o,setFlag:s,countries:c,inputTop:u,inputOuterHeight:d,preferredCountries:f,highlightedCountry:p,changeHighlightCountry:h})})),r}var r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),r=t,(l=[{key:"render",value:function(){var e=this.props,t=e.refCallback,r=e.allowDropdown,o=e.clickSelectedFlag,i=e.handleSelectedFlagKeydown,l=e.titleTip,s=e.dropdownContainer,c=e.showDropdown;return n.default.createElement("div",{ref:t,className:"flag-container"},n.default.createElement("div",{className:"selected-flag",tabIndex:r?"0":"",onClick:o,onKeyDown:i,title:l},n.default.createElement("div",{className:this.genFlagClassName()}),this.genSelectedDialCode(),this.genArrow()),s&&c?n.default.createElement(a.default,null,this.genCountryList()):this.genCountryList())}}])&&c(r.prototype,l),t}(n.Component);t.default=h,h.__docgenInfo={description:"",methods:[{name:"genSelectedDialCode",docblock:null,modifiers:[],params:[],returns:null},{name:"genArrow",docblock:null,modifiers:[],params:[],returns:null},{name:"genFlagClassName",docblock:null,modifiers:[],params:[],returns:null},{name:"genCountryList",docblock:null,modifiers:[],params:[],returns:null}],displayName:"FlagDropDown",props:{allowDropdown:{type:{name:"bool"},required:!1,description:""},dropdownContainer:{type:{name:"string"},required:!1,description:""},separateDialCode:{type:{name:"bool"},required:!1,description:""},dialCode:{type:{name:"string"},required:!1,description:""},countryCode:{type:{name:"string"},required:!1,description:""},showDropdown:{type:{name:"bool"},required:!1,description:""},clickSelectedFlag:{type:{name:"func"},required:!1,description:""},handleSelectedFlagKeydown:{type:{name:"func"},required:!1,description:""},isMobile:{type:{name:"bool"},required:!1,description:""},setFlag:{type:{name:"func"},required:!1,description:""},countries:{type:{name:"arrayOf",value:{name:"object"}},required:!1,description:""},inputTop:{type:{name:"number"},required:!1,description:""},inputOuterHeight:{type:{name:"number"},required:!1,description:""},preferredCountries:{type:{name:"arrayOf",value:{name:"object"}},required:!1,description:""},highlightedCountry:{type:{name:"number"},required:!1,description:""},changeHighlightCountry:{type:{name:"func"},required:!1,description:""},titleTip:{type:{name:"string"},required:!1,description:""},refCallback:{type:{name:"func"},required:!0,description:""}}}},2404:(e,t,r)=>{var n=r(60270);e.exports=function(e,t){return n(e,t)}},2694:(e,t,r)=>{"use strict";var n=r(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){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 r={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:i,resetWarningCache:o};return r.PropTypes=r,r}},3072:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},3650:(e,t,r)=>{var n=r(74335)(Object.keys,Object);e.exports=n},3656:(e,t,r)=>{e=r.nmd(e);var n=r(9325),o=r(89935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?n.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},3942:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-separator{width:100%;height:1px;margin:25px 0;background-color:#e6e7e9}.srfm-separator--removed-top-space{margin-top:0 !important}.srfm-inspector-tab .components-panel__body .srfm-separator{width:auto;margin:25px -16px}",""]);const l=a},4146:(e,t,r)=>{"use strict";var n=r(73404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return n.isMemo(e)?a:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var l=s(t),m=s(r),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||n&&n[g]||m&&m[g]||l&&l[g])){var b=f(r,g);try{c(t,g,b)}catch(e){}}}}return t}},4453:e=>{e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r}}},4509:(e,t,r)=>{var n=r(12651);e.exports=function(e){return n(this,e).has(e)}},4664:(e,t,r)=>{var n=r(79770),o=r(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},4901:(e,t,r)=>{var n=r(72552),o=r(30294),i=r(40346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},5556:(e,t,r)=>{e.exports=r(2694)()},5861:(e,t,r)=>{var n=r(55580),o=r(68223),i=r(32804),a=r(76545),l=r(28303),s=r(72552),c=r(47473),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(n),v=c(o),g=c(i),b=c(a),y=c(l),_=s;(n&&_(new n(new ArrayBuffer(1)))!=h||o&&_(new o)!=u||i&&_(i.resolve())!=d||a&&_(new a)!=f||l&&_(new l)!=p)&&(_=function(e){var t=s(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return h;case v:return u;case g:return d;case b:return f;case y:return p}return t}),e.exports=_},6359:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,'.components-panel[data-srfm-tab]{z-index:99}.components-panel[data-srfm-tab]:not([data-srfm-tab=advance]) .components-panel__body.block-editor-block-inspector__advanced,.components-panel[data-srfm-tab]:not([data-srfm-tab=advance]) .components-panel__body.editor-block-inspector__advanced.block-editor-block-inspector__advanced,.components-panel[data-srfm-tab]:not([data-srfm-tab=advance]) .block-editor-block-inspector>div>.components-panel__body{display:none}.components-panel[data-srfm-tab]:not([data-srfm-tab=advance]) .block-editor-block-inspector>div>.components-panel__body.srfm-dynamic-content-wrap{display:block;border-bottom:1px solid #e0e0e0 !important}.components-panel[data-srfm-tab] .block-editor-block-card{position:relative;z-index:1;overflow:hidden}.components-panel[data-srfm-tab] .block-editor-block-card::before{content:"";position:absolute;top:0;left:-16px;right:-16px;bottom:0;background:#fff;z-index:-1}.components-panel[data-srfm-tab] .components-panel__body.edit-post-settings-sidebar__panel-block .block-editor-block-card{overflow:unset}.components-panel[data-srfm-tab] .components-panel__body.edit-post-settings-sidebar__panel-block .block-editor-block-card::before{top:-16px}.components-panel[data-srfm-tab=advance] .block-editor-block-inspector__advanced{border-color:rgba(0,0,0,0)}[dir=rtl] .srfm-inspector-tabs{direction:rtl}[dir=rtl] .srfm-inspector-tabs>div:first-child.srfm-active::after{border-left:1px solid #d6d9dd;border-right:0}[dir=rtl] .srfm-inspector-tabs>div:last-child.srfm-active::after{border-left:0;border-right:1px solid #d6d9dd}.srfm-inspector-tabs{display:flex;position:relative;background:#fff;z-index:9;height:65px}.srfm-inspector-tabs>div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:#fff;cursor:pointer}.srfm-inspector-tabs>div::after,.srfm-inspector-tabs>div::before{content:"";position:absolute;display:block;top:0;left:0;width:100%}.srfm-inspector-tabs>div::after{border-bottom:1px solid #d6d9dd;height:100%;z-index:1}.srfm-inspector-tabs>div:first-child.srfm-active::after{border-left:0;box-shadow:inset 0 -3px 0 0 #007cba;color:#007cba}.srfm-inspector-tabs>div:last-child.srfm-active::after{border-right:0;box-shadow:inset 0 -3px 0 0 #007cba;color:#007cba}.srfm-inspector-tabs>div.srfm-active::after{border-left:1px solid #d6d9dd;border-right:1px solid #d6d9dd;border-bottom:0;box-shadow:inset 0 -3px 0 0 #007cba;color:#007cba}.srfm-inspector-tabs>div.srfm-active::before{height:0;background-color:rgba(0,0,0,0);z-index:2}.srfm-inspector-tabs>div h5{margin:6px 0 0;font-size:13px;font-weight:400;line-height:1.2}.srfm-inspector-tabs>div h5,.srfm-inspector-tabs>div svg{z-index:2;fill:#585858}.srfm-inspector-tabs>div.srfm-active h5{color:#0085ba}.srfm-inspector-tabs>div.srfm-active path{fill:#0085ba}.components-panel .components-panel__body .srfm-inspector-tabs-container{position:static !important;border-top:0 !important;top:0 !important}.srfm-inspector-tabs-container{position:sticky;top:-3px;z-index:9;border-top:calc(.1em + 1px) solid #f2f4f5;direction:initial}.srfm-inspector-tab .components-panel__body:first-child,.edit-post-settings-sidebar__panel-block .srfm-inspector-tab .components-panel__body:first-child{margin-top:0;border-top:none !important}',""]);const l=a},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9325:(e,t,r)=>{var n=r(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},10308:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){void 0===r&&(r={});for(var n=[],o="function"==typeof r.replace,c=r.transform||a.returnFirstArg,u=r.library||l,d=u.cloneElement,f=u.createElement,p=u.isValidElement,h=t.length,m=0;m<h;m++){var v=t[m];if(o){var g=r.replace(v,m);if(p(g)){h>1&&(g=d(g,{key:g.key||m})),n.push(c(g,v,m));continue}}if("text"!==v.type){var b=v,y={};s(b)?((0,a.setStyleProp)(b.attribs.style,b.attribs),y=b.attribs):b.attribs&&(y=(0,i.default)(b.attribs,b.name));var _=void 0;switch(v.type){case"script":case"style":v.children[0]&&(y.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?y.defaultValue=v.children[0].data:v.children&&v.children.length&&(_=e(v.children,r));break;default:continue}h>1&&(y.key=m),n.push(c(f(v.name,y,_),v,m))}else{var w=!v.data.trim().length;if(w&&v.parent&&!(0,a.canTextBeChildOfNode)(v.parent))continue;if(r.trim&&w)continue;n.push(c(v.data,v,m))}}return 1===n.length?n[0]:n};var o=r(51609),i=n(r(20840)),a=r(74958),l={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},11572:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},12651:(e,t,r)=>{var n=r(74218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},12749:(e,t,r)=>{var n=r(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},14210:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new n(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new n(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new n(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new n(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new n(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new n(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=r(96811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const r=c[t];return r===s?e[t]=t:r===l?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},14248:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},14528:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},15270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},16193:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t},17670:(e,t,r)=>{var n=r(12651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},18337:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t},19219:e=>{e.exports=function(e,t){return e.has(t)}},19788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");f=~n?e.length-n:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=s.source}m.prototype.content=e;var v=[];function g(t){var r=new Error(s.source+":"+d+":"+f+": "+t);if(r.reason=t,r.filename=s.source,r.line=d,r.column=f,r.source=e,!s.silent)throw r;v.push(r)}function b(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function y(){b(n)}function _(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return g("End of comment missing");var n=e.slice(2,r-2);return f+=2,p(n),e=e.slice(r),f+=2,t({type:"comment",comment:n})}}function C(){var e=h(),r=b(o);if(r){if(w(),!b(i))return g("property missing ':'");var n=b(a),s=e({type:"declaration",property:u(r[0].replace(t,c)),value:n?u(n[0].replace(t,c)):c});return b(l),s}}return y(),function(){var e,t=[];for(_(t);e=C();)!1!==e&&(t.push(e),_(t));return t}()}},20317:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},20840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var r={},c=Boolean(e.type&&l[e.type]);for(var u in e){var d=e[u];if((0,n.isCustomAttribute)(u))r[u]=d;else{var f=u.toLowerCase(),p=s(f);if(p){var h=(0,n.getPropertyInfo)(p);switch(i.includes(p)&&a.includes(t)&&!c&&(p=s("default"+f)),r[p]=d,h&&h.type){case n.BOOLEAN:r[p]=!0;break;case n.OVERLOADED_BOOLEAN:""===d&&(r[p]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(r[u]=d)}}return(0,o.setStyleProp)(e.style,r),r};var n=r(14210),o=r(74958),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return n.possibleStandardNames[e]}},21259:(e,t,r)=>{var n=r(96374),o=r(11572),i=r(33694);e.exports=function(e){return n(e)||o(e)||i()}},21549:(e,t,r)=>{var n=r(22032),o=r(63862),i=r(66721),a=r(12749),l=r(35749);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},21986:(e,t,r)=>{var n=r(51873),o=r(37828),i=r(75288),a=r(25911),l=r(20317),s=r(84247),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var h=1&n;if(p||(p=s),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;n|=2,f.set(e,t);var v=a(p(e),p(t),n,c,d,f);return f.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},22032:(e,t,r)=>{var n=r(81042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},22056:(e,t,r)=>{var n=r(24394),o=r(4453),i=r(66923);e.exports=function(e,t){return n(e)||o(e,t)||i()}},22799:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,i=60108,a=60114,l=60109,s=60110,c=60112,u=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;r=h("react.element"),n=h("react.portal"),o=h("react.fragment"),i=h("react.strict_mode"),a=h("react.profiler"),l=h("react.provider"),s=h("react.context"),c=h("react.forward_ref"),u=h("react.suspense"),d=h("react.suspense_list"),f=h("react.memo"),p=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case p:case f:case l:return e;default:return t}}case n:return t}}}(e)===s}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24394:e=>{e.exports=function(e){if(Array.isArray(e))return e}},24739:(e,t,r)=>{var n=r(26025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},25911:(e,t,r)=>{var n=r(38859),o=r(14248),i=r(19219);e.exports=function(e,t,r,a,l,s){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,v=2&r?new n:void 0;for(s.set(e,t),s.set(t,e);++h<u;){var g=e[h],b=t[h];if(a)var y=c?a(b,g,h,t,e,s):a(g,b,h,e,t,s);if(void 0!==y){if(y)continue;m=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(g===e||l(g,e,r,a,s)))return v.push(t)}))){m=!1;break}}else if(g!==b&&!l(g,b,r,a,s)){m=!1;break}}return s.delete(e),s.delete(t),m}},26025:(e,t,r)=>{var n=r(75288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},26396:e=>{e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},27534:(e,t,r)=>{var n=r(72552),o=r(40346);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},27591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(51609)),o=d(r(46942)),i=d(r(99583)),a=d(r(89268)),l=d(r(1948)),s=d(r(79012)),c=d(r(28898)),u=r(44890);function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=/Android.+Mobile|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,_=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?g(e):t}(this,p(t).call(this,e)),b(g(g(n)),"updateFlagOnDefaultCountryChange",(function(e){n.setFlag(e,!1)})),b(g(g(n)),"getTempCountry",(function(e){if("auto"===e)return"auto";var t=c.default.getCountryData(n.countries,e);return t.iso2||(t=n.props.preferredCountries.length>0?c.default.getCountryData(n.countries,n.props.preferredCountries[0]):a.default.getCountries()[0]),t.iso2})),b(g(g(n)),"setNumber",(function(e,t){n.updateFlagFromNumber(e),n.updateValFromNumber(e,!t)})),b(g(g(n)),"setFlagDropdownRef",(function(e){n.flagDropDown=e})),b(g(g(n)),"setTelRef",(function(e){n.tel=e})),b(g(g(n)),"setFlag",(function(e,t){var r=n.selectedCountryData&&n.selectedCountryData.iso2?n.selectedCountryData:{};n.selectedCountryData=e?c.default.getCountryData(n.countries,e,!1,!1,n.props.noCountryDataHandler):{},n.selectedCountryData.iso2&&(n.defaultCountry=n.selectedCountryData.iso2);var o=e?"".concat(n.selectedCountryData.name,": +").concat(n.selectedCountryData.dialCode):"Unknown",i=n.state.dialCode;n.props.separateDialCode&&(i=n.selectedCountryData.dialCode?"+".concat(n.selectedCountryData.dialCode):"",r.dialCode&&delete n.wrapperClass["iti-sdc-".concat(r.dialCode.length+1)],i&&(n.wrapperClass["iti-sdc-".concat(i.length)]=!0));var a=0;e&&"auto"!==e&&-1===(a=c.default.findIndex(n.preferredCountries,(function(t){return t.iso2===e})))&&(-1===(a=c.default.findIndex(n.countries,(function(t){return t.iso2===e})))&&(a=0),a+=n.preferredCountries.length),n.tel&&n.state.showDropdown&&n.tel.focus();var l=n.updateDialCode(n.selectedCountryData.dialCode,!t);n.setState({value:l,showDropdown:!1,highlightedCountry:a,countryCode:e,title:o,dialCode:i},(function(){if(n.updatePlaceholder(n.props),n.wrapperClass.active=!1,!t&&r.iso2!==e&&"function"==typeof n.props.onSelectFlag){var o=n.state.value,i=n.formatFullNumber(o),a=n.isValidNumber(i);n.props.onSelectFlag(o,n.selectedCountryData,i,a)}}))})),b(g(g(n)),"getExtension",(function(e){return window.intlTelInputUtils?window.intlTelInputUtils.getExtension(n.getFullNumber(e),n.selectedCountryData.iso2):""})),b(g(g(n)),"getNumber",(function(e,t){return window.intlTelInputUtils?window.intlTelInputUtils.formatNumber(n.getFullNumber(e),n.selectedCountryData.iso2,t):""})),b(g(g(n)),"getFullNumber",(function(e){return(n.props.separateDialCode?"+".concat(n.selectedCountryData.dialCode):"")+e})),b(g(g(n)),"getDialCode",(function(e){var t="";if("+"===e.charAt(0))for(var r="",o=0,i=e.length;o<i;o++){var a=e.charAt(o);if(c.default.isNumeric(a)&&(r+=a,n.countryCodes[r]&&(t=e.substr(0,o+1)),4===r.length))break}return t})),b(g(g(n)),"isUnknownNanp",(function(e,t){return"+1"===t&&c.default.getNumeric(e).length>=4})),b(g(g(n)),"addCountryCode",(function(e,t,r,n){r in e||(e[r]=[]);var o=n||0;return e[r][o]=t,e})),b(g(g(n)),"processAllCountries",(function(){n.props.onlyCountries.length?n.filterCountries(n.props.onlyCountries,(function(e){return-1!==e})):n.props.excludeCountries.length?n.filterCountries(n.props.excludeCountries,(function(e){return-1===e})):n.countries=a.default.getCountries()})),b(g(g(n)),"processCountryCodes",(function(){n.countryCodes={};for(var e=0;e<n.countries.length;e++){var t=n.countries[e];if(n.addCountryCode(n.countryCodes,t.iso2,t.dialCode,t.priority),t.areaCodes)for(var r=0;r<t.areaCodes.length;r++)n.addCountryCode(n.countryCodes,t.iso2,t.dialCode+t.areaCodes[r])}})),b(g(g(n)),"processPreferredCountries",(function(){n.preferredCountries=[];for(var e=0,t=n.props.preferredCountries.length;e<t;e++){var r=n.props.preferredCountries[e].toLowerCase(),o=c.default.getCountryData(n.countries,r,!0);o&&n.preferredCountries.push(o)}})),b(g(g(n)),"setInitialState",(function(){var e=n.props.value||n.props.defaultValue||"";n.getDialCode(e)?n.updateFlagFromNumber(e,!0):"auto"!==n.tempCountry&&(n.tempCountry?n.setFlag(n.tempCountry,!0):(n.defaultCountry=n.preferredCountries.length?n.preferredCountries[0].iso2:n.countries[0].iso2,e||n.setFlag(n.defaultCountry,!0)),e||n.nationalMode||n.autoHideDialCode||n.props.separateDialCode||n.setState({value:"+".concat(n.selectedCountryData.dialCode)})),e&&n.updateValFromNumber(e,n.props.formatOnInit,!0)})),b(g(g(n)),"initRequests",(function(){r.e(386).then(r.t.bind(r,61386,23)).then((function(){n.loadUtils(),n.utilsScriptDeferred.resolve()})).catch((function(){return"An error occurred while loading the component"})),"auto"===n.tempCountry?n.loadAutoCountry():n.autoCountryDeferred.resolve()})),b(g(g(n)),"loadCountryFromLocalStorage",(function(){try{return void 0!==window.localStorage?window.localStorage.getItem("itiAutoCountry"):""}catch(e){return""}})),b(g(g(n)),"loadAutoCountry",(function(){var e=n.loadCountryFromLocalStorage();e&&(n.autoCountry=e),n.autoCountry?n.autoCountryLoaded():n.startedLoadingAutoCountry||(n.startedLoadingAutoCountry=!0,"function"==typeof n.props.geoIpLookup&&n.props.geoIpLookup((function(e){n.autoCountry=e.toLowerCase(),void 0!==window.localStorage&&window.localStorage.setItem("itiAutoCountry",n.autoCountry),n.autoCountryLoaded()})))})),b(g(g(n)),"cap",(function(e){var t=n.tel?n.tel.getAttribute("maxlength"):e;return t&&e.length>t?e.substr(0,t):e})),b(g(g(n)),"removeEmptyDialCode",(function(){var e=n.state.value;if("+"===e.charAt(0)){var t=c.default.getNumeric(e);t&&n.selectedCountryData.dialCode!==t||n.setState({value:""})}})),b(g(g(n)),"handleUpDownKey",(function(e){var t=n.flagDropDown.querySelectorAll(".highlight")[0],r=t?t.previousElementSibling:void 0,o=t?t.nextElementSibling:void 0,i=e===u.KEYS.UP?r:o;if(i){i.getAttribute("class").indexOf("divider")>-1&&(i=e===u.KEYS.UP?i.previousElementSibling:i.nextElementSibling),n.scrollTo(i);var a=c.default.retrieveLiIndex(i);n.setState({showDropdown:!0,highlightedCountry:a})}})),b(g(g(n)),"handleEnterKey",(function(){var e=n.flagDropDown.querySelectorAll(".highlight")[0];if(e){var t=c.default.retrieveLiIndex(e),r=e.getAttribute("data-country-code");n.setState({showDropdown:!1,highlightedCountry:t,countryCode:r},(function(){n.setFlag(n.state.countryCode),n.unbindDocumentClick()}))}})),b(g(g(n)),"searchForCountry",(function(e){for(var t=0,r=n.countries.length;t<r;t++)if(c.default.startsWith(n.countries[t].name,e)){var o=n.flagDropDown.querySelector('.country-list [data-country-code="'.concat(n.countries[t].iso2,'"]:not(.preferred)')),i=c.default.retrieveLiIndex(o);n.setState({showDropdown:!0,highlightedCountry:i}),n.scrollTo(o,!0);break}})),b(g(g(n)),"formatNumber",(function(e){if(window.intlTelInputUtils&&n.selectedCountryData){var t=window.intlTelInputUtils.numberFormat.INTERNATIONAL;(!n.props.separateDialCode&&n.nationalMode||"+"!==e.charAt(0))&&(t=window.intlTelInputUtils.numberFormat.NATIONAL),e=window.intlTelInputUtils.formatNumber(e,n.selectedCountryData.iso2,t)}return e})),b(g(g(n)),"updateValFromNumber",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&window.intlTelInputUtils&&n.selectedCountryData){var o=n.props.separateDialCode||!n.nationalMode&&"+"===e.charAt(0)?window.intlTelInputUtils.numberFormat.INTERNATIONAL:window.intlTelInputUtils.numberFormat.NATIONAL;e=window.intlTelInputUtils.formatNumber(e,n.selectedCountryData.iso2,o)}e=n.beforeSetNumber(e),n.setState({showDropdown:!1,value:e},(function(){r&&n.notifyPhoneNumberChange(e),n.unbindDocumentClick()}))})),b(g(g(n)),"updateFlagFromNumber",(function(e,t){e&&n.nationalMode&&n.selectedCountryData&&"1"===n.selectedCountryData.dialCode&&"+"!==e.charAt(0)&&("1"!==e.charAt(0)&&(e="1".concat(e)),e="+".concat(e));var r=n.getDialCode(e),o=null;if(r){var i=n.countryCodes[c.default.getNumeric(r)];if(!n.selectedCountryData||-1===i.indexOf(n.selectedCountryData.iso2)||n.isUnknownNanp(e,r))for(var a=0;a<i.length;a++)if(i[a]){o=i[a];break}}else"+"===e.charAt(0)&&c.default.getNumeric(e).length&&(o=null);null!==o&&n.setFlag(o,t)})),b(g(g(n)),"filterCountries",(function(e,t){var r;for(r=0;r<e.length;r++)e[r]=e[r].toLowerCase();for(n.countries=[],r=0;r<a.default.getCountries().length;r++)t(e.indexOf(a.default.getCountries()[r].iso2))&&n.countries.push(a.default.getCountries()[r])})),b(g(g(n)),"processCountryData",(function(){a.default.initialize(n.props.countriesData),n.processAllCountries.call(g(g(n))),n.processCountryCodes.call(g(g(n))),n.processPreferredCountries.call(g(g(n)))})),b(g(g(n)),"handleOnBlur",(function(e){if(n.removeEmptyDialCode(),"function"==typeof n.props.onPhoneNumberBlur){var t=n.state.value,r=n.formatFullNumber(t),o=n.isValidNumber(r);n.props.onPhoneNumberBlur(o,t,n.selectedCountryData,r,n.getExtension(t),e)}})),b(g(g(n)),"handleOnFocus",(function(e){if("function"==typeof n.props.onPhoneNumberFocus){var t=n.state.value,r=n.formatFullNumber(t),o=n.isValidNumber(r);n.props.onPhoneNumberFocus(o,t,n.selectedCountryData,r,n.getExtension(t),e)}})),b(g(g(n)),"bindDocumentClick",(function(){n.isOpening=!0,document.querySelector("html").addEventListener("click",n.handleDocumentClick)})),b(g(g(n)),"unbindDocumentClick",(function(){document.querySelector("html").removeEventListener("click",n.handleDocumentClick)})),b(g(g(n)),"clickSelectedFlag",(function(e){var t=n.props,r=t.allowDropdown,o=t.onFlagClick,i=n.state,a=i.showDropdown,l=i.disabled,s=i.readonly;a||l||s||!r?a&&n.toggleDropdown(!1):n.setState({showDropdown:!0,offsetTop:c.default.offset(n.tel).top,outerHeight:c.default.getOuterHeight(n.tel)},(function(){var e=n.flagDropDown.querySelector(".highlight");e&&n.scrollTo(e,!0)})),"function"==typeof o&&o(e)})),b(g(g(n)),"updatePlaceholder",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;if(window.intlTelInputUtils&&e.autoPlaceholder&&n.selectedCountryData){var t=window.intlTelInputUtils.numberType[e.numberType],r=n.selectedCountryData.iso2?window.intlTelInputUtils.getExampleNumber(n.selectedCountryData.iso2,n.nationalMode,t):"";r=n.beforeSetNumber(r,e),"function"==typeof e.customPlaceholder&&(r=e.customPlaceholder(r,n.selectedCountryData)),n.setState({placeholder:r})}})),b(g(g(n)),"toggleDropdown",(function(e){n.setState({showDropdown:!!e},(function(){n.state.showDropdown||n.unbindDocumentClick()}))})),b(g(g(n)),"scrollTo",(function(e,t){try{var r=n.flagDropDown.querySelector(".country-list"),o=parseFloat(window.getComputedStyle(r).getPropertyValue("height")),i=c.default.offset(r).top,a=i+o,l=c.default.getOuterHeight(e),s=c.default.offset(e).top,u=s+l,d=o/2-l/2,f=s-i+r.scrollTop;if(s<i)t&&(f-=d),r.scrollTop=f;else if(u>a){t&&(f+=d);var p=o-l;r.scrollTop=f-p}}catch(e){}})),b(g(g(n)),"updateDialCode",(function(e,t){var r=n.state.value;if(!e)return r;var o=r;if(e="+".concat(e),"+"===r.charAt(0)){var i=n.getDialCode(r);o=i?r.replace(i,e):e}else n.nationalMode||n.props.separateDialCode||(r?o=e+r:!t&&n.autoHideDialCode||(o=e));return o!==r&&n.notifyPhoneNumberChange(o),o})),b(g(g(n)),"generateMarkup",(function(){n.wrapperClass["separate-dial-code"]=n.props.separateDialCode,n.isMobile&&n.props.useMobileFullscreenDropdown&&(document.querySelector("body").classList.add("iti-mobile"),n.dropdownContainer="body",window.addEventListener("scroll",n.handleWindowScroll))})),b(g(g(n)),"handleSelectedFlagKeydown",(function(e){n.state.showDropdown||e.which!==u.KEYS.UP&&e.which!==u.KEYS.DOWN&&e.which!==u.KEYS.SPACE&&e.which!==u.KEYS.ENTER||(e.preventDefault(),e.stopPropagation(),n.toggleDropdown(!0)),e.which===u.KEYS.TAB&&n.toggleDropdown(!1)})),b(g(g(n)),"isValidNumber",(function(e){var t=c.default.trim(e),r=n.nationalMode||n.props.separateDialCode?n.selectedCountryData.iso2:"";return!!window.intlTelInputUtils&&window.intlTelInputUtils.isValidNumber(t,r)})),b(g(g(n)),"formatFullNumber",(function(e){return window.intlTelInputUtils?n.getNumber(e,window.intlTelInputUtils.numberFormat.INTERNATIONAL):e})),b(g(g(n)),"notifyPhoneNumberChange",(function(e){if("function"==typeof n.props.onPhoneNumberChange){var t=n.formatFullNumber(e),r=n.isValidNumber(t);n.props.onPhoneNumberChange(r,e,n.selectedCountryData,t,n.getExtension(e))}})),b(g(g(n)),"beforeSetNumber",(function(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.props).separateDialCode){var t=n.getDialCode(e);if(t){null!==n.selectedCountryData.areaCodes&&(t="+".concat(n.selectedCountryData.dialCode));var r=" "===e[t.length]||"-"===e[t.length]?t.length+1:t.length;e=e.substr(r)}}return n.cap(e)})),b(g(g(n)),"handleWindowScroll",(function(){n.setState({showDropdown:!1},(function(){window.removeEventListener("scroll",n.handleWindowScroll)}))})),b(g(g(n)),"handleDocumentKeyDown",(function(e){var t;e.preventDefault(),e.which===u.KEYS.UP||e.which===u.KEYS.DOWN?n.handleUpDownKey(e.which):e.which===u.KEYS.ENTER?n.handleEnterKey():e.which===u.KEYS.ESC?n.setState({showDropdown:!1}):(e.which>=u.KEYS.A&&e.which<=u.KEYS.Z||e.which===u.KEYS.SPACE)&&(t&&clearTimeout(t),n.query||(n.query=""),n.query+=String.fromCharCode(e.which),n.searchForCountry(n.query),t=setTimeout((function(){n.query=""}),1e3))})),b(g(g(n)),"handleDocumentClick",(function(e){var t=e.target.getAttribute("class");(null===t||t&&-1===t.indexOf("country")&&-1===t.indexOf("selected-flag")&&-1===t.indexOf("iti-flag")&&-1===t.indexOf("iti-arrow"))&&(n.isOpening=!1),n.isOpening||n.toggleDropdown(!1),n.isOpening=!1})),b(g(g(n)),"handleInputChange",(function(e){var t=e.target.selectionStart,r=e.target.value,o=n.state.value,i=""===r?r:r.substring(0,t),a=r.length<o.length?r:n.formatNumber(e.target.value),l=n.props.format?a:e.target.value;t=c.default.getCursorPositionAfterFormating(i,r,l),void 0!==n.props.value?n.setState({cursorPosition:t},(function(){n.updateFlagFromNumber(l),n.notifyPhoneNumberChange(l)})):n.setState({value:l,cursorPosition:t},(function(){n.updateFlagFromNumber(l),n.notifyPhoneNumberChange(l)}))})),b(g(g(n)),"changeHighlightCountry",(function(e,t){n.setState({showDropdown:e,highlightedCountry:t})})),b(g(g(n)),"loadUtils",(function(){window.intlTelInputUtils&&n.utilsScriptDeferred.resolve()})),b(g(g(n)),"autoCountryLoaded",(function(){"auto"===n.tempCountry&&(n.tempCountry=n.autoCountry,n.autoCountryDeferred.resolve())})),n.wrapperClass={},n.autoCountry="",n.tempCountry="",n.startedLoadingAutoCountry=!1,n.deferreds=[],n.autoCountryDeferred=new i.default.Deferred,n.utilsScriptDeferred=new i.default.Deferred,n.isOpening=!1,n.isMobile="undefined"!=typeof navigator&&y.test(navigator.userAgent),n.preferredCountries=[],n.countries=[],n.countryCodes={},n.windowLoaded=!1,n.query="",n.selectedCountryData={},n.state={showDropdown:!1,highlightedCountry:0,value:e.value||e.defaultValue,disabled:e.disabled,readonly:!1,offsetTop:0,outerHeight:0,placeholder:"",title:"",countryCode:"us",dialCode:"",cursorPosition:(e.value||e.defaultValue).length},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),m(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var r=null;return void 0!==e.value&&t.value!==e.value&&(r={value:e.value}),t.disabled!==e.disabled&&(r={disabled:e.disabled}),r}}]),m(t,[{key:"componentDidMount",value:function(){var e=this;this.autoHideDialCode=this.props.autoHideDialCode,this.allowDropdown=this.props.allowDropdown,this.nationalMode=this.props.nationalMode,this.dropdownContainer="",this.nationalMode&&(this.autoHideDialCode=!1),this.props.separateDialCode&&(this.autoHideDialCode=!1,this.nationalMode=!1,this.allowDropdown=!0),this.processCountryData.call(this),this.tempCountry=this.getTempCountry(this.props.defaultCountry),"complete"===document.readyState?this.windowLoaded=!0:window.addEventListener("load",(function(){e.windowLoaded=!0})),this.generateMarkup(),this.setInitialState(),this.initRequests(),this.deferreds.push(this.autoCountryDeferred.promise()),this.deferreds.push(this.utilsScriptDeferred.promise()),i.default.when(this.deferreds).done((function(){e.setInitialState()})),document.addEventListener("keydown",this.handleDocumentKeyDown)}},{key:"shouldComponentUpdate",value:function(e,t){return t.showDropdown?(document.addEventListener("keydown",this.handleDocumentKeyDown),this.bindDocumentClick()):(document.removeEventListener("keydown",this.handleDocumentKeyDown),this.unbindDocumentClick()),!0}},{key:"componentDidUpdate",value:function(e){this.props.value!==e.value&&this.updateFlagFromNumber(this.props.value),"function"==typeof this.props.customPlaceholder&&e.customPlaceholder!==this.props.customPlaceholder&&this.updatePlaceholder(this.props),this.props.allowDropdown!==e.allowDropdown&&(this.allowDropdown=this.props.allowDropdown),this.props.defaultCountry!==e.defaultCountry&&this.updateFlagOnDefaultCountryChange(this.props.defaultCountry)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleDocumentKeyDown),window.removeEventListener("scroll",this.handleWindowScroll),this.unbindDocumentClick()}},{key:"render",value:function(){var e=this.props.inputClassName,t=Object.assign({},this.props.style||{});this.wrapperClass["allow-dropdown"]=this.allowDropdown,this.wrapperClass.expanded=this.state.showDropdown;var r=(0,o.default)(this.wrapperClass,this.props.containerClassName),i=this.selectedCountryData?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown",a=void 0!==this.props.value?this.props.value:this.state.value;return n.default.createElement("div",{className:r,style:t},n.default.createElement(l.default,{refCallback:this.setFlagDropdownRef,allowDropdown:this.allowDropdown,dropdownContainer:this.dropdownContainer,separateDialCode:this.props.separateDialCode,dialCode:this.state.dialCode,clickSelectedFlag:this.clickSelectedFlag,setFlag:this.setFlag,countryCode:this.state.countryCode,isMobile:this.isMobile,handleSelectedFlagKeydown:this.handleSelectedFlagKeydown,changeHighlightCountry:this.changeHighlightCountry,countries:this.countries,showDropdown:this.state.showDropdown,inputTop:this.state.offsetTop,inputOuterHeight:this.state.outerHeight,preferredCountries:this.preferredCountries,highlightedCountry:this.state.highlightedCountry,titleTip:i}),n.default.createElement(s.default,{refCallback:this.setTelRef,handleInputChange:this.handleInputChange,handleOnBlur:this.handleOnBlur,handleOnFocus:this.handleOnFocus,className:e,disabled:this.state.disabled,readonly:this.state.readonly,fieldName:this.props.fieldName,fieldId:this.props.fieldId,value:a,placeholder:void 0!==this.props.placeholder?this.props.placeholder:this.state.placeholder,autoFocus:this.props.autoFocus,autoComplete:this.props.autoComplete,inputProps:this.props.telInputProps,cursorPosition:this.state.cursorPosition}))}}]),t}(n.Component);_.defaultProps={containerClassName:"intl-tel-input",inputClassName:"",fieldName:"",fieldId:"",defaultValue:"",countriesData:null,allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:!0,customPlaceholder:null,excludeCountries:[],formatOnInit:!0,separateDialCode:!1,defaultCountry:"",geoIpLookup:null,nationalMode:!0,numberType:"MOBILE",noCountryDataHandler:null,onlyCountries:[],preferredCountries:["us","gb"],onPhoneNumberChange:null,onPhoneNumberBlur:null,onPhoneNumberFocus:null,onSelectFlag:null,disabled:!1,autoFocus:!1,useMobileFullscreenDropdown:!0,autoComplete:"off",telInputProps:{},format:!1,onFlagClick:null};var w=_;t.default=w,_.__docgenInfo={description:"",methods:[{name:"getDerivedStateFromProps",docblock:null,modifiers:["static"],params:[{name:"nextProps",type:null},{name:"prevState",type:null}],returns:null},{name:"updateFlagOnDefaultCountryChange",docblock:null,modifiers:[],params:[{name:"countryCode",type:null}],returns:null},{name:"getTempCountry",docblock:null,modifiers:[],params:[{name:"countryCode",type:null}],returns:null},{name:"setNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"preventFormat",type:null}],returns:null},{name:"setFlagDropdownRef",docblock:null,modifiers:[],params:[{name:"ref",type:null}],returns:null},{name:"setTelRef",docblock:null,modifiers:[],params:[{name:"ref",type:null}],returns:null},{name:"setFlag",docblock:null,modifiers:[],params:[{name:"countryCode",type:null},{name:"isInit",type:null}],returns:null},{name:"getExtension",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"getNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"format",type:null}],returns:null},{name:"getFullNumber",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"getDialCode",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"isUnknownNanp",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"dialCode",type:null}],returns:null},{name:"addCountryCode",docblock:null,modifiers:[],params:[{name:"countryCodes",type:null},{name:"iso2",type:null},{name:"dialCode",type:null},{name:"priority",type:null}],returns:null},{name:"processAllCountries",docblock:null,modifiers:[],params:[],returns:null},{name:"processCountryCodes",docblock:null,modifiers:[],params:[],returns:null},{name:"processPreferredCountries",docblock:null,modifiers:[],params:[],returns:null},{name:"setInitialState",docblock:null,modifiers:[],params:[],returns:null},{name:"initRequests",docblock:null,modifiers:[],params:[],returns:null},{name:"loadCountryFromLocalStorage",docblock:null,modifiers:[],params:[],returns:null},{name:"loadAutoCountry",docblock:null,modifiers:[],params:[],returns:null},{name:"cap",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"removeEmptyDialCode",docblock:null,modifiers:[],params:[],returns:null},{name:"handleUpDownKey",docblock:null,modifiers:[],params:[{name:"key",type:null}],returns:null},{name:"handleEnterKey",docblock:null,modifiers:[],params:[],returns:null},{name:"searchForCountry",docblock:null,modifiers:[],params:[{name:"query",type:null}],returns:null},{name:"formatNumber",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"updateValFromNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"doFormat",type:null},{name:"doNotify",type:null}],returns:null},{name:"updateFlagFromNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"isInit",type:null}],returns:null},{name:"filterCountries",docblock:null,modifiers:[],params:[{name:"countryArray",type:null},{name:"processFunc",type:null}],returns:null},{name:"processCountryData",docblock:null,modifiers:[],params:[],returns:null},{name:"handleOnBlur",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"handleOnFocus",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"bindDocumentClick",docblock:null,modifiers:[],params:[],returns:null},{name:"unbindDocumentClick",docblock:null,modifiers:[],params:[],returns:null},{name:"clickSelectedFlag",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"updatePlaceholder",docblock:null,modifiers:[],params:[{name:"props",type:null}],returns:null},{name:"toggleDropdown",docblock:null,modifiers:[],params:[{name:"status",type:null}],returns:null},{name:"scrollTo",docblock:null,modifiers:[],params:[{name:"element",type:null},{name:"middle",type:null}],returns:null},{name:"updateDialCode",docblock:null,modifiers:[],params:[{name:"newDialCode",type:null},{name:"hasSelectedListItem",type:null}],returns:null},{name:"generateMarkup",docblock:null,modifiers:[],params:[],returns:null},{name:"handleSelectedFlagKeydown",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"isValidNumber",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"formatFullNumber",docblock:null,modifiers:[],params:[{name:"number",type:null}],returns:null},{name:"notifyPhoneNumberChange",docblock:null,modifiers:[],params:[{name:"newNumber",type:null}],returns:null},{name:"beforeSetNumber",docblock:null,modifiers:[],params:[{name:"number",type:null},{name:"props",type:null}],returns:null},{name:"handleWindowScroll",docblock:null,modifiers:[],params:[],returns:null},{name:"handleDocumentKeyDown",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"handleDocumentClick",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"handleInputChange",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"changeHighlightCountry",docblock:null,modifiers:[],params:[{name:"showDropdown",type:null},{name:"selectedIndex",type:null}],returns:null},{name:"loadUtils",docblock:null,modifiers:[],params:[],returns:null},{name:"autoCountryLoaded",docblock:null,modifiers:[],params:[],returns:null}],displayName:"IntlTelInput",props:{containerClassName:{defaultValue:{value:"'intl-tel-input'",computed:!1},type:{name:"string"},required:!1,description:"Container CSS class name."},inputClassName:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"Text input CSS class name."},fieldName:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"It's used as `input` field `name` attribute."},fieldId:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"It's used as `input` field `id` attribute."},defaultValue:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"The value used to initialize input. This will only work on uncontrolled component."},countriesData:{defaultValue:{value:"null",computed:!1},type:{name:"arrayOf",value:{name:"array"}},required:!1,description:"Countries data can be configured, it defaults to data defined in `AllCountries`."},allowDropdown:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Whether or not to allow the dropdown. If disabled, there is no dropdown arrow, and the selected flag is not clickable.\nAlso we display the selected flag on the right instead because it is just a marker of state."},autoHideDialCode:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"If there is just a dial code in the input: remove it on blur, and re-add it on focus."},autoPlaceholder:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Add or remove input placeholder with an example number for the selected country."},customPlaceholder:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Change the placeholder generated by autoPlaceholder. Must return a string."},excludeCountries:{defaultValue:{value:"[]",computed:!1},type:{name:"arrayOf",value:{name:"string"}},required:!1,description:"Don't display the countries you specify. (Array)"},formatOnInit:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Format the input value during initialisation."},separateDialCode:{defaultValue:{value:"false",computed:!1},type:{name:"bool"},required:!1,description:"Display the country dial code next to the selected flag so it's not part of the typed number.\nNote that this will disable nationalMode because technically we are dealing with international numbers,\nbut with the dial code separated."},defaultCountry:{defaultValue:{value:"''",computed:!1},type:{name:"string"},required:!1,description:"Default country."},geoIpLookup:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"GeoIp lookup function."},nationalMode:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Don't insert international dial codes."},numberType:{defaultValue:{value:"'MOBILE'",computed:!1},type:{name:"string"},required:!1,description:"Number type to use for placeholders."},noCountryDataHandler:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:'The function which can catch the "no this default country" exception.'},onlyCountries:{defaultValue:{value:"[]",computed:!1},type:{name:"arrayOf",value:{name:"string"}},required:!1,description:"Display only these countries."},preferredCountries:{defaultValue:{value:"['us', 'gb']",computed:!1},type:{name:"arrayOf",value:{name:"string"}},required:!1,description:"The countries at the top of the list. defaults to United States and United Kingdom."},onPhoneNumberChange:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Optional validation callback function. It returns validation status, input box value and selected country data."},onPhoneNumberBlur:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Optional validation callback function. It returns validation status, input box value and selected country data."},onPhoneNumberFocus:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Optional validation callback function. It returns validation status, input box value and selected country data."},onSelectFlag:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Allow main app to do things when a country is selected."},disabled:{defaultValue:{value:"false",computed:!1},type:{name:"bool"},required:!1,description:"Disable this component."},autoFocus:{defaultValue:{value:"false",computed:!1},type:{name:"bool"},required:!1,description:"Enable auto focus"},useMobileFullscreenDropdown:{defaultValue:{value:"true",computed:!1},type:{name:"bool"},required:!1,description:"Render fullscreen flag dropdown when mobile useragent is detected. The dropdown element is rendered as a direct child of document.body"},autoComplete:{defaultValue:{value:"'off'",computed:!1},type:{name:"string"},required:!1,description:"Set the value of the autoComplete attribute on the input. For example, set it to phone to tell the browser where to auto complete phone numbers."},telInputProps:{defaultValue:{value:"{}",computed:!1},type:{name:"object"},required:!1,description:"Pass through arbitrary props to the tel input element."},format:{defaultValue:{value:"false",computed:!1},type:{name:"bool"},required:!1,description:"Format the number."},onFlagClick:{defaultValue:{value:"null",computed:!1},type:{name:"func"},required:!1,description:"Allow main app to do things when flag icon is clicked."},value:{type:{name:"string"},required:!1,description:"The value of the input field. Useful for making input value controlled from outside the component."},placeholder:{type:{name:"string"},required:!1,description:"Static placeholder for input controller. When defined it takes priority over autoPlaceholder."},style:{type:{name:"custom",raw:"StylePropTypes"},required:!1,description:"Style object for the wrapper div. Useful for setting 100% width on the wrapper, etc."}}}},27936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(51609))&&n.__esModule?n:{default:n},i=function(e){var t=e.dialCode,r=e.isoCode,n=e.name,i=e.onMouseOver,a=e.onFocus,l=e.onClick,s=e.flagRef,c=e.innerFlagRef,u=e.countryClass;return o.default.createElement("li",{className:u,"data-dial-code":t,"data-country-code":r,onMouseOver:i,onFocus:a,onClick:l},o.default.createElement("div",{ref:s,className:"flag-box"},o.default.createElement("div",{ref:c,className:"iti-flag ".concat(r)})),o.default.createElement("span",{className:"country-name"},n),o.default.createElement("span",{className:"dial-code"},"+ ".concat(t)))};i.defaultProps={onFocus:function(){},onMouseOver:function(){},onClick:function(){}};var a=i;t.default=a,i.__docgenInfo={description:"",methods:[],displayName:"FlagBox",props:{onFocus:{defaultValue:{value:"() => {}",computed:!1},type:{name:"func"},required:!1,description:""},onMouseOver:{defaultValue:{value:"() => {}",computed:!1},type:{name:"func"},required:!1,description:""},onClick:{defaultValue:{value:"() => {}",computed:!1},type:{name:"func"},required:!1,description:""},dialCode:{type:{name:"string"},required:!0,description:""},isoCode:{type:{name:"string"},required:!0,description:""},name:{type:{name:"string"},required:!0,description:""},flagRef:{type:{name:"func"},required:!1,description:""},innerFlagRef:{type:{name:"func"},required:!1,description:""},countryClass:{type:{name:"string"},required:!0,description:""}}}},28303:(e,t,r)=>{var n=r(56110)(r(9325),"WeakMap");e.exports=n},28898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(89268))&&n.__esModule?n:{default:n};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a={arraysEqual:function(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},shallowEquals:function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r]){if(!Array.isArray(e[r])||!Array.isArray(t[r]))return!1;if(!this.arraysEqual(e[r],t[r]))return!1}for(var n in t)if(!1===e.hasOwnProperty(n))return!1;return!0},trim:function(e){return e?e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""):""},isNumeric:function(e){return e-parseFloat(e)>=0},retrieveLiIndex:function(e){if(!e)return-1;for(var t=e.parentNode.childNodes,r=0,n=0,o=t.length;n<o;n++){if(t[n]===e)return r;1===t[n].nodeType&&"li"===t[n].tagName.toLowerCase()&&(r+=1)}return-1},getNumeric:function(e){return e.replace(/\D/g,"")},startsWith:function(e,t){return e.substr(0,t.length).toUpperCase()===t},isWindow:function(e){return null!==e&&e===e.window},getWindow:function(e){return this.isWindow(e)?e:9===e.nodeType&&e.defaultView},offset:function(e){var t,r,n={top:0,left:0},o=e&&e.ownerDocument;return t=o.documentElement,"undefined"!==i(e.getBoundingClientRect)&&(n=e.getBoundingClientRect()),r=this.getWindow(o),{top:n.top+r.pageYOffset-t.clientTop,left:n.left+r.pageXOffset-t.clientLeft}},getOuterHeight:function(e){return e.offsetHeight+parseFloat(window.getComputedStyle(e).getPropertyValue("margin-top"))+parseFloat(window.getComputedStyle(e).getPropertyValue("margin-bottom"))},getCountryData:function(e,t,r,n,i){for(var a=r?o.default.getCountries():e,l=0;l<a.length;l++)if(a[l].iso2===t)return a[l];return n?null:("function"==typeof i&&i(t),{})},findIndex:function(e,t){var r=-1;return e.some((function(e,n){if(t(e))return r=n,!0})),r},getCursorPositionAfterFormating:function(e,t,r){if(t===r)return e.length;var n=0;if(t.length>r.length)for(var o=0,i=0;o<e.length&&i<r.length;o+=1)e[o]!==r[i]?isNaN(r[i])&&!isNaN(e[o])?(o-=1,i+=1,n+=1):n-=1:i+=1;else for(var a=0,l=0;a<e.length&&l<r.length;l+=1)e[a]!==r[l]?isNaN(e[a])&&!isNaN(r[l])?(l-=1,a+=1,n-=1):n+=1:a+=1;return e.length+n}};t.default=a},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},30294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},31175:(e,t,r)=>{var n=r(26025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},32804:(e,t,r)=>{var n=r(56110)(r(9325),"Promise");e.exports=n},33694:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},34840:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},35229:function(e,t,r){"use strict";var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(51133)),o=r(98917);function i(e,t){var r={};return e&&"string"==typeof e?((0,n.default)(e,(function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)})),r):r}i.default=i,e.exports=i},35749:(e,t,r)=>{var n=r(81042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},36957:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=r(45413),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),C(this,e)},e}();t.Node=l;var s=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(s);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(s);t.Comment=u;var d=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=a.ElementType.Directive,n}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(s);t.ProcessingInstruction=d;var f=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=h;var m=function(e){function t(t,r,n,o){void 0===n&&(n=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,n)||this;return i.name=t,i.attribs=r,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function v(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function b(e){return e.type===a.ElementType.Text}function y(e){return e.type===a.ElementType.Comment}function _(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function C(e,t){var r;if(void 0===t&&(t=!1),b(e))r=new c(e.data);else if(y(e))r=new u(e.data);else if(v(e)){var n=t?x(e.children):[],o=new m(e.name,i({},e.attribs),n);n.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),r=o}else if(g(e)){n=t?x(e.children):[];var a=new p(n);n.forEach((function(e){return e.parent=a})),r=a}else if(w(e)){n=t?x(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!_(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function x(e){for(var t=e.map((function(e){return C(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=v,t.isCDATA=g,t.isText=b,t.isComment=y,t.isDirective=_,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=C},37167:(e,t,r)=>{var n=r(4901),o=r(27301),i=r(86009),a=i&&i.isTypedArray,l=a?o(a):n;e.exports=l},37217:(e,t,r)=>{var n=r(80079),o=r(51420),i=r(90938),a=r(63605),l=r(29817),s=r(80945);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=l,c.prototype.set=s,e.exports=c},37828:(e,t,r)=>{var n=r(9325).Uint8Array;e.exports=n},38859:(e,t,r)=>{var n=r(53661),o=r(31380),i=r(51459);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},39380:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-text-control{position:relative}.srfm-text-control--open-dynamic-content{flex-direction:column;align-items:unset}.srfm-text-control .components-base-control__field{margin-bottom:0}.srfm-text-control .components-text-control__input{margin-left:0;margin-right:0;color:#50575e;border-color:#e6e7e9}.srfm-text-control .components-text-control__input:focus{border-color:#959595;box-shadow:unset}.srfm-text-control .srfm-control__header .srfm-number-control__actions .srfm-reset{height:fit-content}.srfm-text-control__controls{position:relative}.srfm-text-control__controls .components-dropdown{position:absolute;top:0;right:0}.srfm-text-control__controls .components-dropdown.srfm-scroll-dropdown .components-dropdown-menu__toggle{min-width:21px;padding:0;max-height:31px}.srfm-text-control__controls .components-dropdown.srfm-scroll-dropdown .components-dropdown-menu__toggle svg{position:absolute;right:0;min-height:31px}.srfm-text-control__controls>.components-button{position:absolute;right:0;bottom:0;padding:0 8px;border-radius:2px;height:30px}.srfm-text-control__controls>.components-button svg{width:18px;stroke:#555d66;stroke-width:1.4;fill:none}.srfm-text-control__controls-inline .components-base-control__field{display:flex;align-items:center}.srfm-text-control__controls-inline .components-base-control__field>label{flex:50%;margin-bottom:unset}.srfm-text-control__controls-inline .components-base-control__field>input{flex:50%}.srfm-text-control__controls-textarea{position:relative}.srfm-text-control__controls-textarea>.components-button{top:2px;bottom:auto}.srfm-text-control__controls-textarea textarea{color:#50575e;border-color:#e6e7e9}.srfm-text-control__controls-textarea textarea:focus{border-color:#959595;box-shadow:unset}.srfm-text-control.components-base-control>.components-base-control__help{margin-top:10px}.srfm-text-control.srfm-with-dropdown .components-text-control__input{padding-right:35px}",""]);const l=a},39892:(e,t,r)=>{var n=r(83712);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},41141:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=r(45413),a=r(36957);o(r(36957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?i.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},41972:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},44363:(e,t,r)=>{"use strict";e.exports=r(22799)},44676:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-range-control .srfm-range-control__mobile-controls{display:flex;width:100%;align-items:center}.srfm-range-control .srfm-range-control__mobile-controls .components-base-control.components-range-control{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;align-items:flex-start;-webkit-box-pack:start;justify-content:flex-start;margin-right:20px;position:relative;width:100%;margin-bottom:0;max-height:30px}.srfm-range-control .srfm-range-control__mobile-controls .components-base-control.components-range-control .components-range-control__tooltip{left:45%}.srfm-range-control .srfm-range-control__mobile-controls .components-input-control__container{flex:0 0 0%;width:100%}.srfm-range-control .srfm-range-control__mobile-controls .components-number-control{width:35%;margin-left:10px}.srfm-range-control .srfm-range-control__mobile-controls .components-number-control .components-input-control__input{padding:0 1px 0 6px !important;text-align:left;font-size:14px}.srfm-range-control .srfm-range-control__mobile-controls .components-range-control__marks{top:13px}",""]);const l=a},44868:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}},44890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEYS=void 0,t.KEYS={UP:38,DOWN:40,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},45083:(e,t,r)=>{var n=r(1882),o=r(87296),i=r(23805),a=r(47473),l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,u=s.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?f:l).test(a(e))}},45413:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},45708:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)n[o]=i[a];return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=l(r(51609)),c=l(r(75795)),u=l(r(2404)),d=l(r(91574)),f=function(e){function t(t){var r=e.call(this,t)||this;r.dirtyProps=["modules","formats","bounds","theme","children"],r.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],r.state={generation:0},r.selection=null,r.onEditorChange=function(e,t,n,o){var i,a,l,s;"text-change"===e?null===(a=(i=r).onEditorChangeText)||void 0===a||a.call(i,r.editor.root.innerHTML,t,o,r.unprivilegedEditor):"selection-change"===e&&(null===(s=(l=r).onEditorChangeSelection)||void 0===s||s.call(l,t,o,r.unprivilegedEditor))};var n=r.isControlled()?t.value:t.defaultValue;return r.value=null!=n?n:"",r}return o(t,e),t.prototype.validateProps=function(e){var t;if(s.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(s.default.Children.count(e.children)&&"textarea"===(null===(t=s.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var r,n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!=(r=e.value)?r:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some((function(t){return!u.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(r){return!u.default(e[r],t.props[r])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var r=this;if(this.editor&&this.shouldComponentRegenerate(e)){var n=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(n=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(n),p((function(){return r.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var r=new d.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(r,t.tabIndex),this.hookEditor(r),r},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?u.default(e.ops,t.ops):u.default(e,t)},t.prototype.setEditorContents=function(e,t){var r=this;this.value=t;var n=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p((function(){return r.setEditorSelection(e,n)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var r=e.getLength();t.index=Math.max(0,Math.min(t.index,r-1)),t.length=Math.max(0,Math.min(t.length,r-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var r,n;(null===(n=null===(r=e)||void 0===r?void 0:r.scroll)||void 0===n?void 0:n.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=c.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,r=t.children,n=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return s.default.Children.count(r)?s.default.cloneElement(s.default.Children.only(r),o):n?s.default.createElement("pre",i({},o)):s.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return s.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,r,n){var o,i;if(this.editor){var a=this.isDelta(this.value)?n.getContents():n.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,r,n))}},t.prototype.onEditorChangeSelection=function(e,t,r){var n,o,i,a,l,s;if(this.editor){var c=this.getEditorSelection(),d=!c&&e,f=c&&!e;u.default(e,c)||(this.selection=e,null===(o=(n=this.props).onChangeSelection)||void 0===o||o.call(n,e,t,r),d?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,r):f&&(null===(s=(l=this.props).onBlur)||void 0===s||s.call(l,c,t,r)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=d.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(s.default.Component);function p(e){Promise.resolve().then(e)}e.exports=f},46942:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},48655:(e,t,r)=>{var n=r(26025);e.exports=function(e){return n(this.__data__,e)>-1}},50002:(e,t,r)=>{var n=r(82199),o=r(4664),i=r(95950);e.exports=function(e){return n(e,i,o)}},50442:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]};var o=n(r(92471));t.htmlToDOM=o.default;var i=n(r(20840));t.attributesToProps=i.default;var a=n(r(10308));t.domToReact=a.default;var l=r(41141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1}},50689:(e,t,r)=>{var n=r(50002),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,l){var s=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!s)return!1;for(var d=u;d--;){var f=c[d];if(!(s?f in t:o.call(t,f)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var v=s;++d<u;){var g=e[f=c[d]],b=t[f];if(i)var y=s?i(b,g,f,t,e,l):i(g,b,f,e,t,l);if(!(void 0===y?g===b||a(g,b,r,i,l):y)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return l.delete(e),l.delete(t),m}},51133:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=null;if(!e||"string"!=typeof e)return r;var n=(0,o.default)(e),i="function"==typeof t;return n.forEach((function(e){if("declaration"===e.type){var n=e.property,o=e.value;i?t(n,o,e):o&&((r=r||{})[n]=o)}})),r};var o=n(r(19788))},51420:(e,t,r)=>{var n=r(80079);e.exports=function(){this.__data__=new n,this.size=0}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},51609:e=>{"use strict";e.exports=window.React},51873:(e,t,r)=>{var n=r(9325).Symbol;e.exports=n},53307:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".uag-custom-ip .uag-control-label{padding-bottom:4px;display:block}.uag-custom-ip .uag-ip-placeholder-wrap{width:256px;max-width:100%;min-height:96px;display:flex;background-color:#fff;border:1px solid #e6e7e9;border-radius:3px;position:relative;overflow:hidden}.uag-custom-ip .uag-ip-placeholder-wrap:hover .uag-ip-actions{transform:translate(0, 0)}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-remove-icon>svg,.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-selected-icon-overlay>svg{fill:#fff;width:18px;height:18px;background-color:#ccc;padding:2.4px;border-radius:50%}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-remove-icon{position:absolute;right:5px;top:5px;line-height:0;cursor:pointer;z-index:6}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-remove-icon>svg{transition:.3s background-color linear}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-remove-icon>svg:hover{background-color:#959494}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-selected-icon{width:100%;display:flex;cursor:pointer}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-selected-icon-overlay{display:flex;width:100%;justify-content:center;align-items:center}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-selected-icon-value{position:absolute;z-index:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-selected-icon-value>svg{height:30px;width:30px;fill:#50575e}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-actions{position:absolute;bottom:0;width:100%;display:flex;z-index:2;transform:translate(0, 24px);transition:.2s all ease-in-out}.uag-custom-ip .uag-ip-placeholder-wrap .uag-ip-actions>span{background-color:#f0f0f1;flex:1;font-size:13px;font-weight:400;text-align:center;line-height:24px;color:#50575e;cursor:pointer}.components-modal__screen-overlay.uagb-ip-modal-wrapper-overlay{background-color:rgba(0,0,0,.7)}.components-modal__frame.uagb-ip-modal-wrapper{width:1080px;height:796px;max-height:80%;max-width:80%;overflow:unset;box-sizing:border-box}.components-modal__frame.uagb-ip-modal-wrapper *{box-sizing:border-box}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content{padding:30px 24px;margin:0;background-color:#fff;overflow:unset;border-radius:2px}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content>div:not(.components-modal__header){height:100%}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .components-modal__header{height:0}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .components-modal__header .components-modal__header-heading-container{display:none !important}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .components-modal__header .components-button{color:#aaa;position:absolute;width:12px;height:12px;top:4px;right:-32px;transition:.2s color linear;left:auto}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .components-modal__header .components-button:hover{color:#fff}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .uagb-ip-header{display:flex;align-items:baseline;height:64px}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .uagb-ip-header>h2{width:156px;margin:0;font-size:20px;font-weight:400;color:#1e1e1e}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .uagb-ip-footer{height:68px;text-align:right;display:flex;align-items:flex-end;justify-content:flex-end}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .uagb-ip-footer>button{font-size:13px;color:#fff;border:none;background-color:#007cba;border-radius:2px;width:89px;height:36px;cursor:pointer}.components-modal__frame.uagb-ip-modal-wrapper .components-modal__content .uagb-ip-footer>button.disable{opacity:.7;cursor:not-allowed}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-lr-container{display:flex;height:calc(100% - 134px);grid-gap:24px}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-lr-container .uagb-ip-left{width:156px;overflow:auto}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-lr-container .uagb-ip-right{flex:1;padding:14px;padding-right:0;border:1px solid #e6e7e9;border-radius:2px}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-lr-container .uagb-ip-right .uagb-ip-modal-container{height:100%}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-lr-container .uagb-ip-right .uagb-ip-modal-container .ReactVirtualized__Grid__innerScrollContainer>div{display:flex;justify-content:center;align-items:center}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-categories-list>div{padding:9px 10px;cursor:pointer;border-radius:2px;color:#1d2327;display:flex;justify-content:space-between;font-size:13px}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-categories-list>div.selected{background-color:#dcf2ff;color:#0063a1}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-search-container{flex:1;padding-left:24px}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-search-container .uagb-ip-search-bar{position:relative}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-search-container .uagb-ip-search-bar>svg,.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-search-container .uagb-ip-search-bar>span{width:14px;height:14px;position:absolute;top:11px;color:#555d66;fill:#555d66;transform:rotateZ(90deg);left:12px}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-search-container .uagb-ip-search-bar>span{width:unset;cursor:pointer}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-search-container .uagb-ip-search-bar input{height:36px;width:100%;padding:7px 12px 7px 38px;border:1px solid #e6e7e9;margin:0;border-radius:2px;color:#1d2327}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-search-container .uagb-ip-search-bar input::placeholder{color:#50575e}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-search-container .uagb-ip-search-bar input:focus{border:1.5px solid #007cba}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-icons .ReactVirtualized__Grid__innerScrollContainer{overflow-x:hidden !important;max-width:inherit !important}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-icons.icon-not-found{display:flex;align-items:center;justify-content:center}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-icons .uagb-icon-item{width:80px;height:80px;background-color:#fff;border:1px solid #e6e7e9;border-radius:3px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s transform ease;flex-direction:column;grid-gap:6px;max-width:90%;max-height:90%}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-icons .uagb-icon-item.default{border-color:#007cba;box-shadow:0 0 0 2px #007cba;pointer-events:none}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-icons .uagb-icon-item.selected{border-color:#007cba;box-shadow:0 0 0 2px #dcf2ff;pointer-events:none}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-icons .uagb-icon-item>svg{width:20.9px;height:20.27px}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-icons .uagb-icon-item>span{font-size:11px;text-align:center}.components-modal__frame.uagb-ip-modal-wrapper .uagb-ip-icons .uagb-icon-item:hover{border-color:#e6e7e9;box-shadow:0 0 0 4px #f0f0f1}",""]);const l=a},53661:(e,t,r)=>{var n=r(63040),o=r(17670),i=r(90289),a=r(4509),l=r(72949);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},53973:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(51609)),o=l(r(46942)),i=l(r(28898)),a=l(r(27936));function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="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},s(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return r=function(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?f(e):t}(this,(e=u(t)).call.apply(e,[this].concat(c))),p(f(f(r)),"setDropdownPosition",(function(){r.listElement.classList.remove("hide");var e=r.props.inputTop,t=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,o=r.props.inputOuterHeight,a=i.default.getOuterHeight(r.listElement),l=!(e+o+a<t+n)&&e-a>t?"-".concat(a-1,"px"):"";r.listElement.style.top=l,r.listElement.classList.remove("v-hide")})),p(f(f(r)),"appendListItem",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r.props.preferredCountries.length;return e.map((function(e,l){var s=t?l:l+i,c={country:!0,highlight:r.props.highlightedCountry===s,preferred:t},u=(0,o.default)(c),d=r.props.isMobile?function(){}:r.handleMouseOver,f=t?"pref-":"";return n.default.createElement(a.default,{key:"".concat(f).concat(e.iso2),dialCode:e.dialCode,isoCode:e.iso2,name:e.name,onMouseOver:d,onClick:function(){return r.props.setFlag(e.iso2)},onFocus:d,flagRef:function(e){r.selectedFlag=e},innerFlagRef:function(e){r.selectedFlagInner=e},countryClass:u})}))})),p(f(f(r)),"handleMouseOver",(function(e){if(e.currentTarget.getAttribute("class").indexOf("country")>-1){var t=i.default.retrieveLiIndex(e.currentTarget);r.props.changeHighlightCountry(!0,t)}})),r}var r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),r=t,(l=[{key:"shouldComponentUpdate",value:function(e){var t=!i.default.shallowEquals(this.props,e);return t&&e.showDropdown&&(this.listElement.classList.add("v-hide"),this.setDropdownPosition()),t}},{key:"render",value:function(){var e=this,t=this.props,r=t.preferredCountries,i=t.countries,a=t.showDropdown,l=(0,o.default)("country-list",{hide:!a}),s=this.appendListItem(r,!0),c=this.appendListItem(i),u=n.default.createElement("div",{className:"divider"});return n.default.createElement("ul",{ref:function(t){e.listElement=t},className:l},s,r.length>0?u:null,c)}}])&&c(r.prototype,l),t}(n.Component);t.default=h,h.__docgenInfo={description:"",methods:[{name:"setDropdownPosition",docblock:null,modifiers:[],params:[],returns:null},{name:"appendListItem",docblock:null,modifiers:[],params:[{name:"countries",type:null},{name:"isPreferred",type:null}],returns:null},{name:"handleMouseOver",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null}],displayName:"CountryList",props:{setFlag:{type:{name:"func"},required:!1,description:""},countries:{type:{name:"arrayOf",value:{name:"object"}},required:!1,description:""},inputTop:{type:{name:"number"},required:!1,description:""},inputOuterHeight:{type:{name:"number"},required:!1,description:""},preferredCountries:{type:{name:"arrayOf",value:{name:"object"}},required:!1,description:""},highlightedCountry:{type:{name:"number"},required:!1,description:""},changeHighlightCountry:{type:{name:"func"},required:!1,description:""},showDropdown:{type:{name:"bool"},required:!1,description:""},isMobile:{type:{name:"bool"},required:!1,description:""}}}},55481:(e,t,r)=>{var n=r(9325)["__core-js_shared__"];e.exports=n},55527:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},55580:(e,t,r)=>{var n=r(56110)(r(9325),"DataView");e.exports=n},56110:(e,t,r)=>{var n=r(45083),o=r(10392);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},56449:e=>{var t=Array.isArray;e.exports=t},56994:(e,t,r)=>{var n=r(89578);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60270:(e,t,r)=>{var n=r(87068),o=r(40346);e.exports=function e(t,r,i,a,l){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,l))}},62531:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-select-control--layout-inline .components-select-control{align-items:center;display:grid;grid-template-columns:50% 50%;margin-bottom:25px;color:#50575e;gap:0}.srfm-select-control--layout-inline .srfm-control__header,.srfm-select-control--layout-inline .srfm-control-label,.srfm-select-control--layout-inline .components-select-control label.components-input-control__label{margin-bottom:0}.srfm-select-control--layout-inline:last-child .components-select-control{margin-bottom:0}",""]);const l=a},63040:(e,t,r)=>{var n=r(21549),o=r(80079),i=r(68223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},63345:e=>{e.exports=function(){return[]}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},64284:e=>{"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,a&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var l=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(l,s[t]):e.appendChild(l)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},64894:(e,t,r)=>{var n=r(1882),o=r(30294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},65044:e=>{function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}},65496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r,f=(e=(0,n.escapeSpecialCharacters)(e)).match(l),p=f&&f[1]?f[1].toLowerCase():"";switch(p){case o:var h=d(e);return s.test(e)||null===(t=null==(g=h.querySelector(i))?void 0:g.parentNode)||void 0===t||t.removeChild(g),c.test(e)||null===(r=null==(g=h.querySelector(a))?void 0:g.parentNode)||void 0===r||r.removeChild(g),h.querySelectorAll(o);case i:case a:var v=u(e).querySelectorAll(p);return c.test(e)&&s.test(e)?v[0].parentNode.childNodes:v;default:return m?m(e):(g=u(e,a).querySelector(a)).childNodes;var g}};var n=r(67731),o="html",i="head",a="body",l=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,c=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},f="object"==typeof window&&window.DOMParser;if("function"==typeof f){var p=new f;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),p.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();u=function(e,t){if(t){var r=h.documentElement.querySelector(t);return r&&(r.innerHTML=e),h}return h.documentElement.innerHTML=e,h}}var m,v="object"==typeof document&&document.createElement("template");v&&v.content&&(m=function(e){return v.innerHTML=e,v.content.childNodes})},65611:(e,t,r)=>{var n=r(85735),o=r(41972);e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?o(e):t}},66721:(e,t,r)=>{var n=r(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},66923:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},67198:(e,t,r)=>{"use strict";var n;t.A=void 0;var o=((n=r(27591))&&n.__esModule?n:{default:n}).default;t.A=o},67731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=l,t.formatDOM=function e(t,r,o){void 0===r&&(r=null);for(var s,c=[],u=0,d=t.length;u<d;u++){var f=t[u];switch(f.nodeType){case 1:var p=a(f.nodeName);(s=new n.Element(p,i(f.attributes))).children=e("template"===p?f.content.childNodes:f.childNodes,s);break;case 3:s=new n.Text(l(f.nodeValue));break;case 8:s=new n.Comment(f.nodeValue);break;default:continue}var h=c[u-1]||null;h&&(h.next=s),s.parent=r,s.prev=h,s.next=null,c.push(s)}return o&&((s=new n.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=c[0]||null,s.parent=r,c.unshift(s),c[1]&&(c[1].prev=c[0])),c};var n=r(41141),o=r(15270);function i(e){for(var t={},r=0,n=e.length;r<n;r++){var o=e[r];t[o.name]=o.value}return t}function a(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function l(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},68223:(e,t,r)=>{var n=r(56110)(r(9325),"Map");e.exports=n},70080:(e,t,r)=>{var n=r(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},70695:(e,t,r)=>{var n=r(78096),o=r(72428),i=r(56449),a=r(3656),l=r(30361),s=r(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&o(e),d=!r&&!u&&a(e),f=!r&&!u&&!d&&s(e),p=r||u||d||f,h=p?n(e.length,String):[],m=h.length;for(var v in e)!t&&!c.call(e,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||h.push(v);return h}},72428:(e,t,r)=>{var n=r(27534),o=r(40346),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},72552:(e,t,r)=>{var n=r(51873),o=r(659),i=r(59350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},72637:e=>{e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},72949:(e,t,r)=>{var n=r(12651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},73262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(51609)),i=(n=r(75795))&&n.__esModule?n:{default:n};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}var u=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,s(t).call(this,e))).modalTarget=document.createElement("div"),r.modalTarget.className="intl-tel-input iti-container",r}var r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),r=t,(n=[{key:"componentDidMount",value:function(){document.body.appendChild(this.modalTarget)}},{key:"componentWillUnmount",value:function(){document.body.removeChild(this.modalTarget)}},{key:"render",value:function(){return i.default.createPortal(o.default.createElement(o.Fragment,null,this.props.children),this.modalTarget)}}])&&l(r.prototype,n),t}(o.Component);t.default=u,u.__docgenInfo={description:"",methods:[],displayName:"RootModal",props:{children:{type:{name:"node"},required:!1,description:""}}}},73404:(e,t,r)=>{"use strict";e.exports=r(3072)},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},74335:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},74958:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}else t.style={}};var o=r(51609),i=n(r(35229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),l={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},75795:e=>{"use strict";e.exports=window.ReactDOM},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},76545:(e,t,r)=>{var n=r(56110)(r(9325),"Set");e.exports=n},77659:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},78096:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},79012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(51609));function o(e){return o="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},o(e)}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=function(e){function t(){var e,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?c(e):t}(this,(e=l(t)).call.apply(e,[this].concat(i))),u(c(c(r)),"state",{hasFocus:!1}),u(c(c(r)),"refHandler",(function(e){r.tel=e,r.props.refCallback(e)})),u(c(c(r)),"handleBlur",(function(e){r.setState({hasFocus:!1}),"function"==typeof r.props.handleOnBlur&&r.props.handleOnBlur(e)})),u(c(c(r)),"handleFocus",(function(e){r.setState({hasFocus:!0}),"function"==typeof r.props.handleOnFocus&&r.props.handleOnFocus(e)})),r}var r,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(d=[{key:"componentDidUpdate",value:function(){this.state.hasFocus&&this.tel.setSelectionRange(this.props.cursorPosition,this.props.cursorPosition)}},{key:"render",value:function(){return n.default.createElement("input",i({},this.props.inputProps,{ref:this.refHandler,type:"tel",autoComplete:this.props.autoComplete,className:this.props.className,disabled:this.props.disabled,readOnly:this.props.readonly,name:this.props.fieldName,id:this.props.fieldId,value:this.props.value,placeholder:this.props.placeholder,onChange:this.props.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,autoFocus:this.props.autoFocus}))}}])&&a(r.prototype,d),t}(n.Component);t.default=d,d.__docgenInfo={description:"",methods:[{name:"refHandler",docblock:null,modifiers:[],params:[{name:"element",type:null}],returns:null},{name:"handleBlur",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null},{name:"handleFocus",docblock:null,modifiers:[],params:[{name:"e",type:null}],returns:null}],displayName:"TelInput",props:{className:{type:{name:"string"},required:!1,description:""},disabled:{type:{name:"bool"},required:!1,description:""},readonly:{type:{name:"bool"},required:!1,description:""},fieldName:{type:{name:"string"},required:!1,description:""},fieldId:{type:{name:"string"},required:!1,description:""},value:{type:{name:"string"},required:!1,description:""},placeholder:{type:{name:"string"},required:!1,description:""},handleInputChange:{type:{name:"func"},required:!1,description:""},handleOnBlur:{type:{name:"func"},required:!1,description:""},handleOnFocus:{type:{name:"func"},required:!1,description:""},autoFocus:{type:{name:"bool"},required:!1,description:""},autoComplete:{type:{name:"string"},required:!1,description:""},inputProps:{type:{name:"object"},required:!1,description:""},refCallback:{type:{name:"func"},required:!0,description:""},cursorPosition:{type:{name:"number"},required:!1,description:""}}}},79770:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},79810:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__full-width{position:relative;color:#50575e}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__full-width .srfm-control-label{margin-bottom:10px}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__full-width .components-number-control .components-input-control__input{padding:0 7px 0 12px !important}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__full-width>.components-button{position:absolute;left:75%;bottom:0%;height:30px;z-index:1}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__inline{align-items:center;display:grid;grid-template-columns:repeat(3, 1fr);color:#50575e}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__inline .srfm-control-label{margin-bottom:0}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__inline .components-number-control .components-input-control__input{padding:0 7px 0 12px !important}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__inline .components-input-control__container{width:100%}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__inline .srfm-dynamic-content-wrap{width:245%;margin-top:20px}.srfm-number-control .srfm-number-control__mobile-controls.srfm-number-control__inline>.components-button{position:absolute;right:34%}.srfm-number-control .srfm-number-control__mobile-controls>.components-button svg{width:18px;stroke:#555d66;stroke-width:1.4;fill:none;z-index:1}.srfm-number-control .srfm-control__header{display:grid;grid-template-columns:100%;justify-items:end;justify-content:end}.srfm-number-control .srfm-responsive-label-wrap{grid-column:1/span 2}.srfm-number-control .srfm-dynamic-content-wrap{margin-top:20px}.srfm-number-control.srfm-text-control--open-dynamic-content .srfm-number-control__inline{display:block}.srfm-number-control.srfm-text-control--open-dynamic-content .srfm-number-control__inline .srfm-dynamic-content-wrap{width:100%;margin-top:20px}.srfm-number-control input[type=number]::-webkit-inner-spin-button,.srfm-number-control input[type=number]::-webkit-outer-spin-button{opacity:1}",""]);const l=a},80079:(e,t,r)=>{var n=r(63702),o=r(70080),i=r(24739),a=r(48655),l=r(31175);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},80945:(e,t,r)=>{var n=r(80079),o=r(68223),i=r(53661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},81042:(e,t,r)=>{var n=r(56110)(Object,"create");e.exports=n},82199:(e,t,r)=>{var n=r(14528),o=r(56449);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},82274:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},83712:e=>{e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}},84180:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-multi-button-button-group{display:flex !important;width:100%}.srfm-multi-button-button-group .srfm-multi-button{width:100%;justify-content:center;height:unset;padding:6px;line-height:16px;min-height:30px}.srfm-multi-button-button-group .srfm-multi-button:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.srfm-multi-button-button-group .srfm-multi-button:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.srfm-multi-button-button-group button.srfm-multi-button.is-secondary{color:#50575e;box-shadow:inset 0 0 0 1px #e6e7e9}.srfm-multi-button-button-group .srfm-multi-button.is-secondary:hover:not(:disabled),.srfm-multi-button-button-group .srfm-multi-button-grou[aria-label=Gap] .srfm-multi-button.is-tertiary:hover:not(:disabled){color:#1d2327;box-shadow:inset 0 0 0 1px #e6e7e9}.srfm-multi-button-button-group .srfm-multi-button.is-secondary,.srfm-multi-button-button-group .srfm-multi-button.is-tertiary{color:#50575e}.srfm-multi-button-button-group .srfm-multi-button.is-secondary:active:not(:disabled),.srfm-multi-button-button-group .srfm-multi-button-grou[aria-label=Gap] .srfm-multi-button.is-tertiary:active:not(:disabled){background:#fff;box-shadow:inset 0 0 0 1px #e6e7e9}.srfm-multi-button-button-group button.srfm-multi-button{font-size:13px;font-weight:400}.srfm-multi-button-button-group svg{width:18px;fill:#50575e}.srfm-multi-button-button-group svg path{fill:inherit}.srfm-multi-buttons-control.srfm-multibutton-icons .srfm-multi-button{padding:3px}.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-secondary.is-pressed:active{background-color:#dcf2ff}.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-secondary.is-pressed:hover{color:#007cba}.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-secondary.is-pressed,.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-primary.is-primary{color:#007cba;background-color:#dcf2ff;border-color:#cde9f9;box-shadow:inset 0 0 0 1px #cde9f9}.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-secondary.is-pressed svg,.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-primary.is-primary svg{fill:#007cba}.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-secondary.is-pressed:active{background-color:#959595}.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-secondary.is-pressed:hover{color:#fff}.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-secondary.is-pressed,.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-primary.is-primary{color:#fff;background-color:#959595;border-color:#959595;box-shadow:inset 0 0 0 1px #959595}.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-secondary.is-pressed svg,.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-primary.is-primary svg{fill:#fff}.srfm-multi-buttons__layout--inline{align-items:center;display:grid;grid-template-columns:50% 50%}.srfm-multi-buttons__layout--inline .srfm-control__header,.srfm-multi-buttons__layout--inline .srfm-control-label{margin-bottom:0}",""]);const l=a},84247:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},85072:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],l=0;l<e.length;l++){var s=e[l],c=n.base?s[0]+n.base:s[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var f=r(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=o(p,n);n.byIndex=l,t.splice(l,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=r(i[a]);t[l].references--}for(var s=n(e,o),c=0;c<i.length;c++){var u=r(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=s}}},85735:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(n){return"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?e.exports=r=function(e){return t(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},r(n)}e.exports=r},86009:(e,t,r)=>{e=r.nmd(e);var n=r(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,l=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},87068:(e,t,r)=>{var n=r(37217),o=r(25911),i=r(21986),a=r(50689),l=r(5861),s=r(56449),c=r(3656),u=r(37167),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,v,g){var b=s(e),y=s(t),_=b?f:l(e),w=y?f:l(t),C=(_=_==d?p:_)==p,x=(w=w==d?p:w)==p,E=_==w;if(E&&c(e)){if(!c(t))return!1;b=!0,C=!1}if(E&&!C)return g||(g=new n),b||u(e)?o(e,t,r,m,v,g):i(e,t,_,r,m,v,g);if(!(1&r)){var S=C&&h.call(e,"__wrapped__"),k=x&&h.call(t,"__wrapped__");if(S||k){var O=S?e.value():e,R=k?t.value():t;return g||(g=new n),v(O,R,r,m,g)}}return!!E&&(g||(g=new n),a(e,t,r,m,v,g))}},87296:(e,t,r)=>{var n,o=r(55481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},88984:(e,t,r)=>{var n=r(55527),o=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},89194:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-confirm-popup-wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:24px;width:612px;height:166px;background:#fff;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);border-radius:2px}.srfm-confirm-popup-wrapper .components-modal__content{margin:0;padding:0;display:flex;flex-direction:row;gap:20px}.srfm-confirm-popup-wrapper .components-modal__content .components-modal__header{display:none}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-icon{display:flex;flex-direction:row;align-items:flex-start;padding:12px;gap:8px;width:54px;height:54px;background:#dcf2ff;border-radius:32px;flex:none;order:0;flex-grow:0}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-icon svg{stroke:#007cba}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content{box-sizing:border-box;display:flex;flex-direction:column;gap:24px}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-text{display:flex;flex-direction:column;order:1;gap:4px}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-text .srfm-confirm-popup-title{width:480px;height:28px;font-style:normal;font-weight:500;font-size:20px;line-height:28px;color:#1d2327;flex:none;order:0;flex-grow:0}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-text .srfm-confirm-popup-description{width:480px;height:20px;font-style:normal;font-weight:400;font-size:13px;line-height:20px;display:flex;align-items:center;color:#50575e;flex:none;order:1;flex-grow:0}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-controls{display:flex;flex-direction:row;align-items:flex-start;gap:12px;flex:none;order:2}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-controls .srfm-confirm-popup-buttons{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:9px 17px;box-shadow:0 1px 2px rgba(0,0,0,.05)}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-controls .srfm-popup-confirmation-button{background:#007cba;color:#fff;border-radius:2px;flex:none;order:0}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-controls .srfm-popup-cancellation-button{background:#fff;border:1px solid #e6e7e9;border-radius:2px;flex:none;order:1}.srfm-confirm-popup-overlay{background-color:rgba(0,0,0,.4392156863)}",""]);const l=a},89268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,n=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","367","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590",0],["Guam","gu","1671"],["Guatemala","gt","502"],["Guernsey","gg","44",1],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81"],["Jersey","je","44",3],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (المغرب)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47",0],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92"],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy (Saint-Barthélemy)","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara (الصحراء الغربية)","eh","212",1],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1]];function o(e){r=(e||n).map((function(e){return{name:e[0],iso2:e[1],dialCode:e[2],priority:e[3]||0,areaCodes:e[4]||null}}))}var i={initialize:o,getCountries:function(){return r||o(),r}};t.default=i},89578:e=>{function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t},89935:e=>{e.exports=function(){return!1}},90289:(e,t,r)=>{var n=r(12651);e.exports=function(e){return n(this,e).get(e)}},90938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},91574:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=109)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(17),o=r(18),i=r(19),a=r(45),l=r(46),s=r(47),c=r(48),u=r(49),d=r(12),f=r(32),p=r(33),h=r(31),m=r(1),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:n.default,Format:o.default,Leaf:i.default,Embed:c.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=v},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var r=this;return t="[Parchment] "+t,(r=e.call(this,t)||this).message=t,r.name=r.constructor.name,r}return o(t,e),t}(Error);t.ParchmentError=i;var a,l={},s={},c={},u={};function d(e,t){var r;if(void 0===t&&(t=a.ANY),"string"==typeof e)r=u[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)r=u.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?r=u.block:e&a.LEVEL&a.INLINE&&(r=u.inline);else if(e instanceof HTMLElement){var n=(e.getAttribute("class")||"").split(/\s+/);for(var o in n)if(r=s[n[o]])break;r=r||c[e.tagName]}return null==r?null:t&a.LEVEL&r.scope&&t&a.TYPE&r.scope?r:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var r=d(e);if(null==r)throw new i("Unable to create "+e+" blot");var n=r,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(t);return new n(o,t)},t.find=function e(r,n){return void 0===n&&(n=!1),null==r?null:null!=r[t.DATA_KEY]?r[t.DATA_KEY].blot:n?e(r.parentNode,n):null},t.query=d,t.register=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length>1)return t.map((function(t){return e(t)}));var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return u[n.blotName||n.attrName]=n,"string"==typeof n.keyName?l[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){null!=c[e]&&null!=n.className||(c[e]=n)})))),n}},function(e,t,r){var n=r(51),o=r(11),i=r(3),a=r(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var r={};return 0===e.length?this:(r.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var r={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)},s.prototype.push=function(e){var t=this.ops.length,r=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof r){if("number"==typeof e.delete&&"number"==typeof r.delete)return this.ops[t-1]={delete:r.delete+e.delete},this;if("number"==typeof r.delete&&null!=e.insert&&(t-=1,"object"!=typeof(r=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,r.attributes)){if("string"==typeof e.insert&&"string"==typeof r.insert)return this.ops[t-1]={insert:r.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof r.retain)return this.ops[t-1]={retain:r.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],r=[];return this.forEach((function(n){(e(n)?t:r).push(n)})),[t,r]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var r=[],n=a.iterator(this.ops),o=0;o<t&&n.hasNext();){var i;o<e?i=n.next(e-o):(i=n.next(t-o),r.push(i)),o+=a.length(i)}return new s(r)},s.prototype.compose=function(e){var t=a.iterator(this.ops),r=a.iterator(e.ops),n=[],i=r.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),n.push(t.next());i.retain-l>0&&r.next(i.retain-l)}for(var c=new s(n);t.hasNext()||r.hasNext();)if("insert"===r.peekType())c.push(r.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),r.peekLength()),d=t.next(u),f=r.next(u);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=u:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),c.push(p),!r.hasNext()&&o(c.ops[c.ops.length-1],p)){var m=new s(t.rest());return c.concat(m).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&c.push(f)}return c.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var r=[this,e].map((function(t){return t.map((function(r){if(null!=r.insert)return"string"==typeof r.insert?r.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,c=n(r[0],r[1],t),u=a.iterator(this.ops),d=a.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var r=0;switch(e[0]){case n.INSERT:r=Math.min(d.peekLength(),t),i.push(d.next(r));break;case n.DELETE:r=Math.min(t,u.peekLength()),u.next(r),i.delete(r);break;case n.EQUAL:r=Math.min(u.peekLength(),d.peekLength(),t);var l=u.next(r),s=d.next(r);o(l.insert,s.insert)?i.retain(r,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(r)}t-=r}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var r=a.iterator(this.ops),n=new s,o=0;r.hasNext();){if("insert"!==r.peekType())return;var i=r.peek(),l=a.length(i)-r.peekLength(),c="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(c<0)n.push(r.next());else if(c>0)n.push(r.next(c));else{if(!1===e(n,r.next(1).attributes||{},o))return;o+=1,n=new s}}n.length()>0&&e(n,{},o)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var r=a.iterator(this.ops),n=a.iterator(e.ops),o=new s;r.hasNext()||n.hasNext();)if("insert"!==r.peekType()||!t&&"insert"===n.peekType())if("insert"===n.peekType())o.push(n.next());else{var i=Math.min(r.peekLength(),n.peekLength()),l=r.next(i),c=n.next(i);if(l.delete)continue;c.delete?o.push(c):o.retain(i,a.attributes.transform(l.attributes,c.attributes,t))}else o.retain(a.length(r.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var r=a.iterator(this.ops),n=0;r.hasNext()&&n<=e;){var o=r.peekLength(),i=r.peekType();r.next(),"delete"!==i?("insert"===i&&(n<e||!t)&&(e+=o),n+=o):e-=Math.min(o,e-n)}return e},e.exports=s},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var t,o=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},s=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,r,n,o,i,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(r in t)n=c(d,r),d!==(o=c(t,r))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,u=n&&a(n)?n:[]):u=n&&l(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=d(r(3)),a=d(r(2)),l=d(r(0)),s=d(r(16)),c=d(r(6)),u=d(r(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),n(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var r=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=r&&this.attributes.attribute(r,t)}},{key:"formatAt",value:function(e,t,r,n){this.format(r,n)}},{key:"insertAt",value:function(e,r,n){if("string"==typeof r&&r.endsWith("\n")){var i=l.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,r.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n)}}]),t}(l.default.Embed);m.scope=l.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){f(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.cache={},r}return h(t,e),n(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,r){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,r),this.cache={}}},{key:"formatAt",value:function(e,r,n,i){r<=0||(l.default.query(n,l.default.Scope.BLOCK)?e+r===this.length()&&this.format(n,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(r,this.length()-e-1),n,i),this.cache={})}},{key:"insertAt",value:function(e,r,n){if(null!=n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n);if(0!==r.length){var i=r.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,r){var n=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r),n instanceof s.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,r){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,r),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r&&(0===e||e>=this.length()-1)){var n=this.clone();return 0===e?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,r);return this.cache={},i}}]),t}(l.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[c.default,l.default.Embed,u.default],t.bubbleFormats=g,t.BlockEmbed=m,t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();r(50);var a=v(r(2)),l=v(r(14)),s=v(r(8)),c=v(r(9)),u=v(r(0)),d=r(15),f=v(d),p=v(r(3)),h=v(r(10)),m=v(r(34));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=(0,h.default)("quill"),y=function(){function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=_(t,n),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&r.root.classList.toggle("ql-blank",r.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var n=r.selection.lastRange,o=n&&0===n.length?n.index:void 0;w.call(r,(function(){return r.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(n){r.register(n,e[n],t)}))}else null==this.imports[e]||n||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var r=e;(e=document.createElement("div")).classList.add(r)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,r){var n=this,i=C(e,t,r),a=o(i,4);return e=a[0],t=a[1],r=a[3],w.call(this,(function(){return n.editor.deleteText(e,t)}),r,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return w.call(this,(function(){var n=r.getSelection(!0),o=new a.default;if(null==n)return o;if(u.default.query(e,u.default.Scope.BLOCK))o=r.editor.formatLine(n.index,n.length,g({},e,t));else{if(0===n.length)return r.selection.format(e,t),o;o=r.editor.formatText(n.index,n.length,g({},e,t))}return r.setSelection(n,s.default.sources.SILENT),o}),n)}},{key:"formatLine",value:function(e,t,r,n,i){var a,l=this,s=C(e,t,r,n,i),c=o(s,4);return e=c[0],t=c[1],a=c[2],i=c[3],w.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,r,n,i){var a,l=this,s=C(e,t,r,n,i),c=o(s,4);return e=c[0],t=c[1],a=c[2],i=c[3],w.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="number"==typeof e?this.selection.getBounds(e,r):this.selection.getBounds(e.index,e.length);var n=this.container.getBoundingClientRect();return{bottom:t.bottom-n.top,height:t.height,left:t.left-n.left,right:t.right-n.left,top:t.top-n.top,width:t.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,r=C(e,t),n=o(r,2);return e=n[0],t=n[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,r=C(e,t),n=o(r,2);return e=n[0],t=n[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,r,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return o.editor.insertEmbed(t,r,n)}),i,t)}},{key:"insertText",value:function(e,t,r,n,i){var a,l=this,s=C(e,0,r,n,i),c=o(s,4);return e=c[0],a=c[2],i=c[3],w.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,r){this.clipboard.dangerouslyPasteHTML(e,t,r)}},{key:"removeFormat",value:function(e,t,r){var n=this,i=C(e,t,r),a=o(i,4);return e=a[0],t=a[1],r=a[3],w.call(this,(function(){return n.editor.removeFormat(e,t)}),r,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return w.call(this,(function(){e=new a.default(e);var r=t.getLength(),n=t.editor.deleteText(0,r),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),n.compose(o)}),r)}},{key:"setSelection",value:function(t,r,n){if(null==t)this.selection.setRange(null,r||e.sources.API);else{var i=C(t,r,n),a=o(i,4);t=a[0],r=a[1],n=a[3],this.selection.setRange(new d.Range(t,r),n),n!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,r=(new a.default).insert(e);return this.setContents(r,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return w.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,r)}),r,!0)}}]),e}();function _(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var r=(0,p.default)(!0,{},t.theme.DEFAULTS);[r,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var n=Object.keys(r.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var r=y.import("modules/"+t);return null==r?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=r.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},y.DEFAULTS,{modules:n},r,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,r){return t.modules[r]&&(e[r]=t.modules[r]),e}),{}),t}function w(e,t,r,n){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var o=null==r?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===r&&(r=o.index),null==n?o=x(o,l,t):0!==n&&(o=x(o,r,n,t)),this.setSelection(o,s.default.sources.SILENT)),l.length()>0){var c,u,d=[s.default.events.TEXT_CHANGE,l,i,t];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return l}function C(e,t,r,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=r,r=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=r,r=t,t=0),"object"===(void 0===r?"undefined":n(r))?(a=r,i=o):"string"==typeof r&&(null!=o?a[r]=o:i=r),[e,t,a,i=i||s.default.sources.API]}function x(e,t,r,n){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,n!==s.default.sources.USER)})),u=o(c,2);i=u[0],l=u[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&n===s.default.sources.USER?e:r>=0?e+r:Math.max(t,e+r)})),p=o(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=s.default.events,y.sources=s.default.sources,y.version="1.3.7",y.imports={delta:a.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=_,t.overload=C,t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=l(r(7)),a=l(r(0));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"formatAt",value:function(e,r,n,i){if(t.compare(this.statics.blotName,n)<0&&a.default.query(n,a.default.Scope.BLOT)){var l=this.isolate(e,r);i&&l.wrap(n,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,r,n,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var r=this.parent.isolate(this.offset(),this.length());this.moveChildren(r),r.wrap(this)}}}],[{key:"compare",value:function(e,r){var n=t.order.indexOf(e),o=t.order.indexOf(r);return n>=0||o>=0?n-o:e===r?0:e<r?-1:1}}]),t}(a.default.Inline);s.allowedChildren=[s,a.default.Embed,i.default],s.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(0))&&n.__esModule?n:{default:n}).default.Text);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=a(r(54));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,a(r(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var r;e.__quill&&e.__quill.emitter&&(r=e.__quill.emitter).handleDOM.apply(r,t)}))}))}));var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"emit",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(this.listeners[e.type]||[]).forEach((function(t){var n=t.node,o=t.handler;(e.target===n||n.contains(e.target))&&o.apply(void 0,[e].concat(r))}))}},{key:"listenDOM",value:function(e,t,r){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:r})}}]),t}(i.default);s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=r};n.DEFAULTS={},t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["error","warn","log","info"],o="warn";function i(e){if(n.indexOf(e)<=n.indexOf(o)){for(var t,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return n.reduce((function(t,r){return t[r]=i.bind(console,r,e),t}),{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,r){var n=Array.prototype.slice,o=r(52),i=r(53),a=e.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?r.strict?e===t:e==t:function(e,t,r){var c,u;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=n.call(e),t=n.call(t),a(e,t,r));if(s(e)){if(!s(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=o(e),f=o(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),c=d.length-1;c>=0;c--)if(d[c]!=f[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!a(e[u],t[u],r))return!1;return typeof e==typeof t}(e,t,r))};function l(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e,t,r){void 0===r&&(r={}),this.attrName=e,this.keyName=t;var o=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=r.scope?this.scope=r.scope&n.Scope.LEVEL|o:this.scope=n.Scope.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=n.query(e,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=d(r(2)),l=d(r(0)),s=d(r(4)),c=d(r(6)),u=d(r(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(c.default);m.blotName="code",m.tagName="CODE";var v=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,r){return t.insert(r).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,r){if(e!==this.statics.blotName||!r){var o=this.descendant(u.default,this.length()-1),a=n(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}},{key:"formatAt",value:function(e,r,n,o){if(0!==r&&null!=l.default.query(n,l.default.Scope.BLOCK)&&(n!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+r)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,c=this.isolate(a,s),u=c.next;c.format(n,o),u instanceof t&&u.formatAt(0,e-a+r-s,n,o)}}}},{key:"insertAt",value:function(e,t,r){if(null==r){var o=this.descendant(u.default,e),i=n(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===r.statics.formats(r.domNode)&&(r.optimize(e),r.moveChildren(this),r.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return r.setAttribute("spellcheck",!1),r}},{key:"formats",value:function(){return!0}}]),t}(s.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=m,t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=g(r(2)),l=g(r(20)),s=g(r(0)),c=g(r(13)),u=g(r(24)),d=r(4),f=g(d),p=g(r(16)),h=g(r(21)),m=g(r(11)),v=g(r(3));function g(e){return e&&e.__esModule?e:{default:e}}var b=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,r=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var r=(0,h.default)(t.attributes);return delete r.image,e.insert({image:t.attributes.image},r)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var c=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&r&&(r=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(r=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),m=o(h,2),g=m[0],b=m[1],y=(0,v.default)({},(0,d.bubbleFormats)(g));if(g instanceof f.default){var _=g.descendant(s.default.Leaf,b),w=o(_,1)[0];y=(0,v.default)(y,(0,d.bubbleFormats)(w))}u=l.default.attributes.diff(y,u)||{}}else if("object"===n(a.insert)){var C=Object.keys(a.insert)[0];if(null==C)return e;t.scroll.insertAt(e,C,a.insert[C])}i+=c}return Object.keys(u).forEach((function(r){t.scroll.formatAt(e,c,r,u[r])})),e+c}),0),e.reduce((function(e,r){return"number"==typeof r.delete?(t.scroll.deleteAt(e,r.delete),e):e+(r.retain||r.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(o){if(null==r.scroll.whitelist||r.scroll.whitelist[o]){var i=r.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof c.default){var l=e-t.offset(r.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,o,n[o])}else t.format(o,n[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(n)))}},{key:"formatText",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(o){r.scroll.formatAt(e,t,o,n[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(n)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof f.default?r.push(t):t instanceof s.default.Leaf&&n.push(t)})):(r=this.scroll.lines(e,t),n=this.scroll.descendants(s.default.Leaf,e,t));var i=[r,n].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var r=e.shift();if(null==r)return t;t=_((0,d.bubbleFormats)(r),t)}return t}));return v.default.apply(v.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,r){return this.scroll.insertAt(e,t,r),this.update((new a.default).retain(e).insert(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,r)))}},{key:"insertText",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach((function(o){r.scroll.formatAt(e,t.length,o,n[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var r=this.getText(e,t),n=this.scroll.line(e+t),i=o(n,2),l=i[0],s=i[1],u=0,d=new a.default;null!=l&&(u=l instanceof c.default?l.newlineIndex(s)-s+1:l.length()-s,d=l.delta().slice(s,s+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new a.default).insert(r).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&s.default.find(t[0].target)){var o=s.default.find(t[0].target),i=(0,d.bubbleFormats)(o),l=o.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new a.default).insert(c),p=(new a.default).insert(o.value());e=(new a.default).retain(l).concat(f.diff(p,r)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,r));return e}}]),e}();function _(e,t){return Object.keys(t).reduce((function(r,n){return null==e[n]||(t[n]===e[n]?r[n]=t[n]:Array.isArray(t[n])?t[n].indexOf(e[n])<0&&(r[n]=t[n].concat([e[n]])):r[n]=[t[n],e[n]]),r}),{})}t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(0)),a=c(r(21)),l=c(r(11)),s=c(r(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,c(r(10)).default)("quill:selection"),p=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=r},h=function(){function e(t,r){var n=this;d(this,e),this.emitter=r,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&n.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var r=t.range,o=r.startNode,i=r.startOffset,a=r.endNode,l=r.endOffset;n.setNativeRange(o,i,a,l)}})),this.update(s.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var r=this.getNativeRange();if(null!=r&&r.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(r.start.node!==this.cursor.textNode){var n=i.default.find(r.start.node,!1);if(null==n)return;if(n instanceof i.default.Leaf){var o=n.split(r.start.offset);n.parent.insertBefore(this.cursor,o)}else n.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;var o=void 0,i=this.scroll.leaf(e),a=n(i,2),l=a[0],s=a[1];if(null==l)return null;var c=l.position(s,!0),u=n(c,2);o=u[0],s=u[1];var d=document.createRange();if(t>0){d.setStart(o,s);var f=this.scroll.leaf(e+t),p=n(f,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),m=n(h,2);return o=m[0],s=m[1],d.setEnd(o,s),d.getBoundingClientRect()}var v="left",g=void 0;return o instanceof Text?(s<o.data.length?(d.setStart(o,s),d.setEnd(o,s+1)):(d.setStart(o,s-1),d.setEnd(o,s),v="right"),g=d.getBoundingClientRect()):(g=l.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var r=this.normalizeNative(t);return f.info("getNativeRange",r),r}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,r=[[e.start.node,e.start.offset]];e.native.collapsed||r.push([e.end.node,e.end.offset]);var o=r.map((function(e){var r=n(e,2),o=r[0],a=r[1],l=i.default.find(o,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(o,a)})),a=Math.min(Math.max.apply(Math,u(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(u(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,r=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>r)t=t.childNodes[r],r=0;else{if(t.childNodes.length!==r)break;r=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=r})),t}},{key:"rangeToNative",value:function(e){var t=this,r=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return r.forEach((function(e,r){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),s=n(l,2),c=s[0],u=s[1],d=c.position(u,0!==r),f=n(d,2);a=f[0],u=f[1],o.push(a,u)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var r=this.getBounds(t.index,t.length);if(null!=r){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=n(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,o));l=n(s,1)[0]}if(null!=a&&null!=l){var c=e.getBoundingClientRect();r.top<c.top?e.scrollTop-=c.top-r.top:r.bottom>c.bottom&&(e.scrollTop+=r.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,r,n),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=r.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||r!==a.endContainer||n!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==r.tagName&&(n=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(r,n),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(r=t,t=!1),f.info("setRange",e),null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,u(n).concat([t]))}else this.setNativeRange(null);this.update(r)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,r=this.getRange(),o=n(r,2),i=o[0],c=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,r){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((n=r(0))&&n.__esModule?n:{default:n}).default.Embed);a.blotName="break",a.tagName="BR",t.default=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(44),a=r(30),l=r(1),s=function(e){function t(t){var r=e.call(this,t)||this;return r.build(),r}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var r=c(t);e.insertBefore(r,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,r){e.deleteAt(t,r)}))},t.prototype.descendant=function(e,r){var n=this.children.find(r),o=n[0],i=n[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,r,n){void 0===r&&(r=0),void 0===n&&(n=Number.MAX_VALUE);var o=[],i=n;return this.children.forEachAt(r,n,(function(r,n,a){(null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e)&&o.push(r),r instanceof t&&(o=o.concat(r.descendants(e,n,i))),i-=a})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,r,n){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,r,n)}))},t.prototype.insertAt=function(e,t,r){var n=this.children.find(e),o=n[0],i=n[1];if(o)o.insertAt(i,t,r);else{var a=null==r?l.create("text",t):l.create(t,r);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(r){e.insertBefore(r,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var r=l.create(this.statics.defaultChild);this.appendChild(r),r.optimize(t)}else this.remove()},t.prototype.path=function(e,r){void 0===r&&(r=!1);var n=this.children.find(e,r),o=n[0],i=n[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,r)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(r){r instanceof t&&r.moveChildren(this),e.prototype.replace.call(this,r)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var r=this.clone();return this.parent.insertBefore(r,this.next),this.children.forEachAt(e,this.length(),(function(e,n,o){e=e.split(n,t),r.appendChild(e)})),r},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var r=this,n=[],o=[];e.forEach((function(e){e.target===r.domNode&&"childList"===e.type&&(n.push.apply(n,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==r.domNode||t.detach())}})),n.filter((function(e){return e.parentNode==r.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var n=c(e);n.next==t&&null!=n.next||(null!=n.parent&&n.parent.removeChild(r),r.insertBefore(n,t||void 0))}))},t}(a.default);function c(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(r){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(12),a=r(31),l=r(17),s=r(1),c=function(e){function t(t){var r=e.call(this,t)||this;return r.attributes=new a.default(r.domNode),r}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var r=s.query(e);r instanceof i.default?this.attributes.attribute(r,t):t&&(null==r||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,r){var n=e.prototype.replaceWith.call(this,t,r);return this.attributes.copy(n),n},t.prototype.update=function(t,r){var n=this;e.prototype.update.call(this,t,r),t.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(r,n){var o=e.prototype.wrap.call(this,r,n);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(l.default);t.default=c},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(30),a=r(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var r=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,r){var n=r(11),o=r(3),i={attributes:{compose:function(e,t,r){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=o(!0,{},t);for(var i in r||(n=Object.keys(n).reduce((function(e,t){return null!=n[t]&&(e[t]=n[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(n[i]=e[i]);return Object.keys(n).length>0?n:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=Object.keys(e).concat(Object.keys(t)).reduce((function(r,o){return n(e[o],t[o])||(r[o]=void 0===t[o]?null:t[o]),r}),{});return Object.keys(r).length>0?r:void 0},transform:function(e,t,r){if("object"!=typeof e)return t;if("object"==typeof t){if(!r)return t;var n=Object.keys(t).reduce((function(r,n){return void 0===e[n]&&(r[n]=t[n]),r}),{});return Object.keys(n).length>0?n:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var r=this.offset,n=i.length(t);if(e>=n-r?(e=n-r,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(r,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=e,this.index=t,[r].concat(n)}return[]},e.exports=i},function(e,t){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,r,n;try{t=Map}catch(e){t=function(){}}try{r=Set}catch(e){r=function(){}}try{n=Promise}catch(e){n=function(){}}function o(i,l,s,c,u){"object"==typeof l&&(s=l.depth,c=l.prototype,u=l.includeNonEnumerable,l=l.circular);var d=[],f=[],p="undefined"!=typeof Buffer;return void 0===l&&(l=!0),void 0===s&&(s=1/0),function i(s,h){if(null===s)return null;if(0===h)return s;var m,v;if("object"!=typeof s)return s;if(e(s,t))m=new t;else if(e(s,r))m=new r;else if(e(s,n))m=new n((function(e,t){s.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(o.__isArray(s))m=[];else if(o.__isRegExp(s))m=new RegExp(s.source,a(s)),s.lastIndex&&(m.lastIndex=s.lastIndex);else if(o.__isDate(s))m=new Date(s.getTime());else{if(p&&Buffer.isBuffer(s))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(m),m;e(s,Error)?m=Object.create(s):void 0===c?(v=Object.getPrototypeOf(s),m=Object.create(v)):(m=Object.create(c),v=c)}if(l){var g=d.indexOf(s);if(-1!=g)return f[g];d.push(s),f.push(m)}for(var b in e(s,t)&&s.forEach((function(e,t){var r=i(t,h-1),n=i(e,h-1);m.set(r,n)})),e(s,r)&&s.forEach((function(e){var t=i(e,h-1);m.add(t)})),s){var y;v&&(y=Object.getOwnPropertyDescriptor(v,b)),y&&null==y.set||(m[b]=i(s[b],h-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(s);for(b=0;b<_.length;b++){var w=_[b];(!(x=Object.getOwnPropertyDescriptor(s,w))||x.enumerable||u)&&(m[w]=i(s[w],h-1),x.enumerable||Object.defineProperty(m,w,{enumerable:!1}))}}if(u){var C=Object.getOwnPropertyNames(s);for(b=0;b<C.length;b++){var x,E=C[b];(x=Object.getOwnPropertyDescriptor(s,E))&&x.enumerable||(m[E]=i(s[E],h-1),Object.defineProperty(m,E,{enumerable:!1}))}}return m}(i,s)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=a,o}();"object"==typeof e&&e.exports&&(e.exports=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=p(r(0)),l=p(r(8)),s=r(4),c=p(s),u=p(r(16)),d=p(r(13)),f=p(r(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof s.BlockEmbed}var m=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.emitter=r.emitter,Array.isArray(r.whitelist)&&(n.whitelist=r.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,r){var o=this.line(e),a=n(o,2),l=a[0],c=a[1],f=this.line(e+r),p=n(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,r),null!=p&&l!==p&&c>0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var v=p.children.head instanceof u.default?null:p.children.head;l.moveChildren(p,v),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,r,n,o){(null==this.whitelist||this.whitelist[n])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,r,n,o),this.optimize())}},{key:"insertAt",value:function(e,r,n){if(null==n||null==this.whitelist||this.whitelist[r]){if(e>=this.length())if(null==n||null==a.default.query(r,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==n&&r.endsWith("\n")&&(r=r.slice(0,-1)),o.insertAt(0,r,n)}else{var l=a.default.create(r,n);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n);this.optimize()}}},{key:"insertBefore",value:function(e,r){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var n=a.default.create(this.statics.defaultChild);n.appendChild(e),e=n}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,r,n){var o=[],i=n;return t.children.forEachAt(r,n,(function(t,r,n){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,r,i))),i-=n})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,r),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,r))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var r=l.default.sources.USER;"string"==typeof e&&(r=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,r,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,r,e)}}}]),t}(a.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,s.BlockEmbed,f.default],t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=m(r(21)),l=m(r(11)),s=m(r(3)),c=m(r(2)),u=m(r(20)),d=m(r(0)),f=m(r(5)),p=m(r(10)),h=m(r(9));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=(0,p.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.bindings={},Object.keys(n.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])})),n.addBinding({key:t.keys.ENTER,shiftKey:null},E),n.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),n.addBinding({key:t.keys.DELETE},{collapsed:!0},C)):(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),n.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},C)),n.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},x),n.addBinding({key:t.keys.DELETE},{collapsed:!1},x),n.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),n.listen(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=O(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(r){return!!t[r]!==e[r]&&null!==t[r]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=O(e);if(null==n||null==n.key)return g.warn("Attempted to add invalid keyboard binding",n);"function"==typeof t&&(t={handler:t}),"function"==typeof r&&(r={handler:r}),n=(0,s.default)(n,t,r),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(r){if(!r.defaultPrevented){var i=r.which||r.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(r,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var c=e.quill.getLine(s.index),u=o(c,2),f=u[0],p=u[1],h=e.quill.getLeaf(s.index),m=o(h,2),v=m[0],g=m[1],b=0===s.length?[v,g]:e.quill.getLeaf(s.index+s.length),y=o(b,2),_=y[0],w=y[1],C=v instanceof d.default.Text?v.value().slice(0,g):"",x=_ instanceof d.default.Text?_.value().slice(w):"",E={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:C,suffix:x};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===n(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,l.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix)||!0===t.handler.call(e,s,E))}))&&r.preventDefault()}}}}))}}]),t}(h.default);function _(e,t){var r,n=e===y.keys.LEFT?"prefix":"suffix";return v(r={key:e,shiftKey:t,altKey:null},n,/^$/),v(r,"handler",(function(r){var n=r.index;e===y.keys.RIGHT&&(n+=r.length+1);var i=this.quill.getLeaf(n);return!(o(i,1)[0]instanceof d.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(r.index-1,r.length+1,f.default.sources.USER):this.quill.setSelection(r.index-1,f.default.sources.USER):t?this.quill.setSelection(r.index,r.length+1,f.default.sources.USER):this.quill.setSelection(r.index+r.length+1,f.default.sources.USER),1))})),r}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var r=this.quill.getLine(e.index),n=o(r,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var s=n.formats(),c=this.quill.getFormat(e.index-1,1);i=u.default.attributes.diff(s,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function C(e,t){var r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-r)){var n={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),c=o(s,1)[0];if(c){var d=l.formats(),p=this.quill.getFormat(e.index,1);n=u.default.attributes.diff(d,p)||{},i=c.length()}}this.quill.deleteText(e.index,r,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index+i-1,r,n,f.default.sources.USER)}}function x(e){var t=this.quill.getLines(e),r={};if(t.length>1){var n=t[0].formats(),o=t[t.length-1].formats();r=u.default.attributes.diff(o,n)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index,1,r,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function E(e,t){var r=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(t.format).reduce((function(e,r){return d.default.query(r,d.default.Scope.BLOCK)&&!Array.isArray(t.format[r])&&(e[r]=t.format[r]),e}),{});this.quill.insertText(e.index,"\n",n,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==n[e]&&(Array.isArray(t.format[e])||"link"!==e&&r.quill.format(e,t.format[e],f.default.sources.USER))}))}function S(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var r=d.default.query("code-block"),n=t.index,i=t.length,a=this.quill.scroll.descendant(r,n),l=o(a,2),s=l[0],c=l[1];if(null!=s){var u=this.quill.getIndex(s),p=s.newlineIndex(c,!0)+1,h=s.newlineIndex(u+c+i),m=s.domNode.textContent.slice(p,h).split("\n");c=0,m.forEach((function(t,o){e?(s.insertAt(p+c,r.TAB),c+=r.TAB.length,0===o?n+=r.TAB.length:i+=r.TAB.length):t.startsWith(r.TAB)&&(s.deleteAt(p+c,r.TAB.length),c-=r.TAB.length,0===o?n-=r.TAB.length:i-=r.TAB.length),c+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(n,i,f.default.sources.SILENT)}}}}function k(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,r){this.quill.format(e,!r.format[e],f.default.sources.USER)}}}function O(e){if("string"==typeof e||"number"==typeof e)return O({key:e});if("object"===(void 0===e?"undefined":n(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:k("bold"),italic:k("italic"),underline:k("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),r=o(t,2),n=r[0],i=r[1],a=(0,s.default)({},n.formats(),{list:"checked"}),l=(new c.default).retain(e.index).insert("\n",a).retain(n.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var r=this.quill.getLine(e.index),n=o(r,2),i=n[0],a=n[1],l=(new c.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var r=t.prefix.length,n=this.quill.getLine(e.index),i=o(n,2),a=i[0],l=i[1];if(l>r)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-l).delete(r+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-r,f.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),r=o(t,2),n=r[0],i=r[1],a=(new c.default).retain(e.index+n.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":_(y.keys.LEFT,!1),"embed left shift":_(y.keys.LEFT,!0),"embed right":_(y.keys.RIGHT,!1),"embed right shift":_(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(0)),a=l(r(7));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.selection=r,n.textNode=document.createTextNode(t.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,r){if(0!==this._length)return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r);for(var o=this,a=0;null!=o&&o.statics.scope!==i.default.Scope.BLOCK_BLOT;)a+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(a,t.CONTENTS.length,e,r),this._length=0)}},{key:"index",value:function(e,r){return e===this.textNode?0:n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,r)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,r=this.selection.getNativeRange(),n=void 0,o=void 0,l=void 0;if(null!=r&&r.start.node===e&&r.end.node===e){var s=[e,r.start.offset,r.end.offset];n=s[0],o=s[1],l=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(n=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(i.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([o,l].map((function(e){return Math.max(0,Math.min(n.data.length,e-1))})),2);return o=u[0],l=u[1],{startNode:n,startOffset:o,endNode:n,endOffset:l}}}}},{key:"update",value:function(e,t){var r=this;if(e.some((function(e){return"characterData"===e.type&&e.target===r.textNode}))){var n=this.restore();n&&(t.range=n)}}},{key:"value",value:function(){return""}}]),t}(i.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),o=r(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default.Container);l.allowedChildren=[i.default,o.BlockEmbed,l],t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=(n=r(0))&&n.__esModule?n:{default:n},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var r=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return r.startsWith("rgb(")?"#"+(r=r.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):r}}]),t}(a.default.Attributor.Style),s=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),c=new l("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=l,t.ColorClass=s,t.ColorStyle=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,r){if(e!==this.statics.blotName||!r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(e){var r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),r.setAttribute("href",e),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return l(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);function l(e,t){var r=document.createElement("a");r.href=e;var n=r.href.slice(0,r.href.indexOf(":"));return t.indexOf(n)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=a,t.sanitize=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(23)),a=l(r(107));function l(e){return e&&e.__esModule?e:{default:e}}var s=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){r.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:r.togglePicker();break;case i.default.keys.ESCAPE:r.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,r=document.createElement("span");return r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item"),e.hasAttribute("value")&&r.setAttribute("data-value",e.getAttribute("value")),e.textContent&&r.setAttribute("data-label",e.textContent),r.addEventListener("click",(function(){t.selectItem(r,!0)})),r.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(r,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),r}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+s,s+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(r){var n=e.buildItem(r);t.appendChild(n),!0===r.selected&&e.selectItem(n)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.container.querySelector(".ql-selected");if(e!==r&&(null!=r&&r.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":n(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var r=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(0)),o=g(r(5)),i=r(4),a=g(i),l=g(r(16)),s=g(r(25)),c=g(r(24)),u=g(r(35)),d=g(r(6)),f=g(r(22)),p=g(r(7)),h=g(r(55)),m=g(r(42)),v=g(r(23));function g(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":v.default}),n.default.register(a.default,l.default,c.default,d.default,f.default,p.default),t.default=o.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e){this.domNode=e,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return n.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,r,o){var i=this.isolate(e,t);if(null!=n.query(r,n.Scope.BLOT)&&o)i.wrap(r,o);else if(null!=n.query(r,n.Scope.ATTRIBUTE)){var a=n.create(this.statics.scope);i.wrap(a),a.format(r,o)}},e.prototype.insertAt=function(e,t,r){var o=null==r?n.create("text",t):n.create(t,r),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var r=null;e.children.insertBefore(this,t),null!=t&&(r=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==r||e.domNode.insertBefore(this.domNode,r),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var r=this.split(e);return r.split(t),r},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var r="string"==typeof e?n.create(e,t):e;return r.replace(this),r},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var r="string"==typeof e?n.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(r,this.next),r.appendChild(this),r},e.blotName="abstract",e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),o=r(32),i=r(33),a=r(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=n.default.keys(this.domNode),r=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(r).concat(l).forEach((function(t){var r=a.query(t,a.Scope.ATTRIBUTE);r instanceof n.default&&(e.attributes[r.attrName]=r)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(r){var n=t.attributes[r].value(t.domNode);e.format(r,n)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,r){return t[r]=e.attributes[r].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(r(12).default);t.default=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function i(e){var t=e.split("-"),r=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+r}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(r(12).default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=r,this.modules={}}return n(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=l(r(0)),a=l(r(7));function l(e){return e&&e.__esModule?e:{default:e}}var s="\ufeff",c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.contentNode=document.createElement("span"),r.contentNode.setAttribute("contenteditable",!1),[].slice.call(r.domNode.childNodes).forEach((function(e){r.contentNode.appendChild(e)})),r.leftGuard=document.createTextNode(s),r.rightGuard=document.createTextNode(s),r.domNode.appendChild(r.leftGuard),r.domNode.appendChild(r.contentNode),r.domNode.appendChild(r.rightGuard),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"index",value:function(e,r){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,r)}},{key:"restore",value:function(e){var t=void 0,r=void 0,n=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,n),t={startNode:this.prev.domNode,startOffset:o+n.length}}else r=document.createTextNode(n),this.parent.insertBefore(i.default.create(r),this),t={startNode:r,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(r=document.createTextNode(n),this.parent.insertBefore(i.default.create(r),this.next),t={startNode:r,startOffset:n.length}));return e.data=s,t}},{key:"update",value:function(e,t){var r=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===r.leftGuard||e.target===r.rightGuard)){var n=r.restore(e.target);n&&(t.range=n)}}))}}]),t}(i.default.Embed);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n},i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",i),l=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n},i=r(26),a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n},i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",i),l=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=(n=r(0))&&n.__esModule?n:{default:n},l={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new a.default.Attributor.Class("font","ql-font",l),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),u=new c("font","font-family",l);t.FontStyle=u,t.FontClass=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n},i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,r){"use strict";e.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=a(r(0)),i=a(r(5));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,r,o){e!==i.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&o!==i.default.sources.USER?n.transform(t):n.record(t,r))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var r=this.stack[e].pop();this.stack[t].push(r),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r[e],i.default.sources.USER),this.ignoreChange=!1;var n=s(r[e]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var r=this.quill.getContents().diff(t),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var o=this.stack.undo.pop();r=r.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=n;this.stack.undo.push({redo:e,undo:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(r(9)).default);function s(e){var t=e.reduce((function(e,t){return e+(t.delete||0)}),0),r=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(r-=1),r}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=h(r(3)),a=h(r(2)),l=h(r(8)),s=h(r(23)),c=h(r(34)),u=h(r(59)),d=h(r(60)),f=h(r(28)),p=h(r(61));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],_=[!1,"serif","monospace"],w=["1","2","3",!1],C=["small",!1,"large","huge"],x=function(e){function t(e,r){m(this,t);var n=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return e.emitter.listenDOM("click",document.body,(function t(r){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(r.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(e){e.container.contains(r.target)||e.close()}))})),n}return g(t,e),n(t,[{key:"addModule",value:function(e){var r=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(r),r}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(r){if(r.startsWith("ql-")&&(r=r.slice(3),null!=t[r]))if("direction"===r)e.innerHTML=t[r][""]+t[r].rtl;else if("string"==typeof t[r])e.innerHTML=t[r];else{var n=e.value||"";null!=n&&t[r][n]&&(e.innerHTML=t[r][n])}}))}))}},{key:"buildPickers",value:function(e,t){var r=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&S(e,b),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var r=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&S(e,y,"background"===r?"#ffffff":"#000000"),new u.default(e,t[r])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,_):e.classList.contains("ql-header")?S(e,w):e.classList.contains("ql-size")&&S(e,C)),new f.default(e)})),this.quill.on(l.default.events.EDITOR_CHANGE,(function(){r.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);x.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var r=new FileReader;r.onload=function(r){var n=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(n.index).delete(n.length).insert({image:r.target.result}),l.default.sources.USER),e.quill.setSelection(n.index+1,l.default.sources.SILENT),t.value=""},r.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,r){m(this,t);var n=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return g(t,e),n(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,r=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var n=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",r,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",r,l.default.sources.USER)),this.quill.root.scrollTop=n;break;case"video":r=(t=(e=r).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!r)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),r,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",l.default.sources.USER),this.quill.setSelection(i+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function S(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var n=document.createElement("option");t===r?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)}))}t.BaseTooltip=E,t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,r=this.iterator();t=r();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,r=this.head;null!=r;){if(r===e)return t;t+=r.length(),r=r.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var r,n=this.iterator();r=n();){var o=r.length();if(e<o||t&&e===o&&(null==r.next||0!==r.next.length()))return[r,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,r=this.iterator();t=r();)e(t)},e.prototype.forEachAt=function(e,t,r){if(!(t<=0))for(var n,o=this.find(e),i=o[0],a=e-o[1],l=this.iterator(i);(n=l())&&a<e+t;){var s=n.length();e>a?r(n,e-a,Math.min(t,a+s-e)):r(n,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,r){return t.push(e(r)),t}),[])},e.prototype.reduce=function(e,t){for(var r,n=this.iterator();r=n();)t=e(t,r);return t},e}();t.default=n},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(17),a=r(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var r=e.call(this,t)||this;return r.scroll=r,r.observer=new MutationObserver((function(e){r.update(e)})),r.observer.observe(r.domNode,l),r.attach(),r}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,r){this.update(),0===t&&r===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,r)},t.prototype.formatAt=function(t,r,n,o){this.update(),e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.insertAt=function(t,r,n){this.update(),e.prototype.insertAt.call(this,t,r,n)},t.prototype.optimize=function(t,r){var n=this;void 0===t&&(t=[]),void 0===r&&(r={}),e.prototype.optimize.call(this,r);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},s=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(s),e.optimize(r))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(s),o=(c=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,r){var n=this;void 0===r&&(r={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],r)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,r),this.optimize(t,r)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(18),a=r(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(r){if(r.tagName!==t.tagName)return e.formats.call(this,r)},t.prototype.format=function(r,n){var o=this;r!==this.statics.blotName||n?e.prototype.format.call(this,r,n):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,r,n,o){null!=this.formats()[n]||a.query(n,a.Scope.ATTRIBUTE)?this.isolate(t,r).format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.optimize=function(r){e.prototype.optimize.call(this,r);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}(n,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(18),a=r(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(r){var n=a.query(t.blotName).tagName;if(r.tagName!==n)return e.formats.call(this,r)},t.prototype.format=function(r,n){null!=a.query(r,a.Scope.BLOCK)&&(r!==this.statics.blotName||n?e.prototype.format.call(this,r,n):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,r,n,o){null!=a.query(n,a.Scope.BLOCK)?this.format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.insertAt=function(t,r,n){if(null==n||null!=a.query(r,a.Scope.INLINE))e.prototype.insertAt.call(this,t,r,n);else{var o=this.split(t),i=a.create(r,n);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,r){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,r)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,r){e.prototype.formatAt.call(this,0,this.length(),t,r)},t.prototype.formatAt=function(t,r,n,o){0===t&&r===this.length()?this.format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(r(19).default);t.default=i},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),a=r(1),l=function(e){function t(t){var r=e.call(this,t)||this;return r.text=r.statics.value(r.domNode),r}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,r,n){null==n?(this.text=this.text.slice(0,t)+r+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,r,n)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(r){e.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var r=a.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next),this.text=this.statics.value(this.domNode),r},t.prototype.update=function(e,t){var r=this;e.some((function(e){return"characterData"===e.type&&e.target===r.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,r){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var r=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>r.length)&&(t=r.length),t-=e.length;var n=r.indexOf(e,t);return-1!==n&&n===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,r=Object(this),n=r.length>>>0,o=arguments[1],i=0;i<n;i++)if(t=r[i],e.call(o,t,i,r))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var r=-1;function n(e,t,s){if(e==t)return e?[[0,e]]:[];(s<0||e.length<s)&&(s=null);var u=i(e,t),d=e.substring(0,u);u=a(e=e.substring(u),t=t.substring(u));var f=e.substring(e.length-u),p=function(e,t){var l;if(!e)return[[1,t]];if(!t)return[[r,e]];var s=e.length>t.length?e:t,c=e.length>t.length?t:e,u=s.indexOf(c);if(-1!=u)return l=[[1,s.substring(0,u)],[0,c],[1,s.substring(u+c.length)]],e.length>t.length&&(l[0][0]=l[2][0]=r),l;if(1==c.length)return[[r,e],[1,t]];var d=function(e,t){var r=e.length>t.length?e:t,n=e.length>t.length?t:e;if(r.length<4||2*n.length<r.length)return null;function o(e,t,r){for(var n,o,l,s,c=e.substring(r,r+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var f=i(e.substring(r),t.substring(u)),p=a(e.substring(0,r),t.substring(0,u));d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),n=e.substring(0,r-p),o=e.substring(r+f),l=t.substring(0,u-p),s=t.substring(u+f))}return 2*d.length>=e.length?[n,o,l,s,d]:null}var l,s,c,u,d,f=o(r,n,Math.ceil(r.length/4)),p=o(r,n,Math.ceil(r.length/2));return f||p?(l=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(s=l[0],c=l[1],u=l[2],d=l[3]):(u=l[0],d=l[1],s=l[2],c=l[3]),[s,c,u,d,l[4]]):null}(e,t);if(d){var f=d[0],p=d[1],h=d[2],m=d[3],v=d[4],g=n(f,h),b=n(p,m);return g.concat([[0,v]],b)}return function(e,t){for(var n=e.length,i=t.length,a=Math.ceil((n+i)/2),l=a,s=2*a,c=new Array(s),u=new Array(s),d=0;d<s;d++)c[d]=-1,u[d]=-1;c[l+1]=0,u[l+1]=0;for(var f=n-i,p=f%2!=0,h=0,m=0,v=0,g=0,b=0;b<a;b++){for(var y=-b+h;y<=b-m;y+=2){for(var _=l+y,w=(k=y==-b||y!=b&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1)-y;k<n&&w<i&&e.charAt(k)==t.charAt(w);)k++,w++;if(c[_]=k,k>n)m+=2;else if(w>i)h+=2;else if(p&&(E=l+f-y)>=0&&E<s&&-1!=u[E]&&k>=(x=n-u[E]))return o(e,t,k,w)}for(var C=-b+v;C<=b-g;C+=2){for(var x,E=l+C,S=(x=C==-b||C!=b&&u[E-1]<u[E+1]?u[E+1]:u[E-1]+1)-C;x<n&&S<i&&e.charAt(n-x-1)==t.charAt(i-S-1);)x++,S++;if(u[E]=x,x>n)g+=2;else if(S>i)v+=2;else if(!p){var k;if((_=l+f-C)>=0&&_<s&&-1!=c[_]&&(w=l+(k=c[_])-_,k>=(x=n-x)))return o(e,t,k,w)}}}return[[r,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return d&&p.unshift([0,d]),f&&p.push([0,f]),l(p),null!=s&&(p=function(e,t){var n=function(e,t){if(0===t)return[0,e];for(var n=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===r||0===i[0]){var a=n+i[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var l=t-n,s=[i[0],i[1].slice(0,l)],c=[i[0],i[1].slice(l)];return e.splice(o,1,s,c),[o+1,e]}n=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=n[1],i=n[0],a=o[i],l=o[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),c(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var s=l[1].slice(a[1].length);return s.length>0&&o.splice(i+2,0,[l[0],s]),c(o,i,3)}return e}(p,s)),function(e){for(var t=!1,n=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=2;o<e.length;o+=1)0===e[o-2][0]&&((i=e[o-2][1]).charCodeAt(i.length-1)>=55296&&i.charCodeAt(i.length-1)<=56319)&&e[o-1][0]===r&&n(e[o-1][1])&&1===e[o][0]&&n(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));var i;if(!t)return e;var a=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&a.push(e[o]);return a}(p)}function o(e,t,r,o){var i=e.substring(0,r),a=t.substring(0,o),l=e.substring(r),s=t.substring(o),c=n(i,a),u=n(l,s);return c.concat(u)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var r=0,n=Math.min(e.length,t.length),o=n,i=0;r<o;)e.substring(i,o)==t.substring(i,o)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var r=0,n=Math.min(e.length,t.length),o=n,i=0;r<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return o}function l(e){e.push([0,""]);for(var t,n=0,o=0,s=0,c="",u="";n<e.length;)switch(e[n][0]){case 1:s++,u+=e[n][1],n++;break;case r:o++,c+=e[n][1],n++;break;case 0:o+s>1?(0!==o&&0!==s&&(0!==(t=i(u,c))&&(n-o-s>0&&0==e[n-o-s-1][0]?e[n-o-s-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),n++),u=u.substring(t),c=c.substring(t)),0!==(t=a(u,c))&&(e[n][1]=u.substring(u.length-t)+e[n][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),0===o?e.splice(n-s,o+s,[1,u]):0===s?e.splice(n-o,o+s,[r,c]):e.splice(n-o-s,o+s,[r,c],[1,u]),n=n-o-s+(o?1:0)+(s?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,s=0,o=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),d=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),d=!0)),n++;d&&l(e)}var s=n;function c(e,t,r){for(var n=t+r-1;n>=0&&n>=t-1;n--)if(n+1<e.length){var o=e[n],i=e[n+1];o[0]===i[1]&&e.splice(n,2,[o[0],o[1]+i[1]])}return e}s.INSERT=1,s.DELETE=r,s.EQUAL=0,e.exports=s},function(e,t){function r(e){var t=[];for(var r in e)t.push(r);return t}(e.exports="function"==typeof Object.keys?Object.keys:r).shim=r},function(e,t){var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=r?n:o).supported=n,t.unsupported=o},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function o(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)r.call(e,t)&&o.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var r=n?n+e:e,o=this._events[r];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=new Array(a);i<a;i++)l[i]=o[i].fn;return l},a.prototype.emit=function(e,t,r,o,i,a){var l=n?n+e:e;if(!this._events[l])return!1;var s,c,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];u[c].fn.apply(u[c].context,s)}}return!0},a.prototype.on=function(e,t,r){var o=new i(t,r||this),a=n?n+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,r){var o=new i(t,r||this,!0),a=n?n+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||r&&l.context!==r||(0==--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var s=0,c=[],u=l.length;s<u;s++)(l[s].fn!==t||i&&!l[s].once||r&&l[s].context!==r)&&c.push(l[s]);c.length?this._events[a]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=n,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=y(r(3)),l=y(r(2)),s=y(r(0)),c=y(r(5)),u=y(r(10)),d=y(r(9)),f=r(36),p=r(37),h=y(r(13)),m=r(26),v=r(38),g=r(39),b=r(40);function y(e){return e&&e.__esModule?e:{default:e}}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=(0,u.default)("quill:clipboard"),C="__ql-matcher",x=[[Node.TEXT_NODE,D],[Node.TEXT_NODE,L],["br",function(e,t){return A(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,function(e,t){var r={},n=e.style||{};return n.fontStyle&&"italic"===R(e).fontStyle&&(r.italic=!0),n.fontWeight&&(R(e).fontWeight.startsWith("bold")||parseInt(R(e).fontWeight)>=700)&&(r.bold=!0),Object.keys(r).length>0&&(t=O(t,r)),parseFloat(n.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var r=s.default.query(e);if(null==r||"list-item"!==r.blotName||!A(t,"\n"))return t;for(var n=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(s.default.query(o)||{}).blotName&&(n+=1),o=o.parentNode;return n<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:n}))}],["b",N.bind(N,"bold")],["i",N.bind(N,"italic")],["style",function(){return new l.default}]],E=[f.AlignAttribute,v.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[f.AlignStyle,p.BackgroundStyle,m.ColorStyle,v.DirectionStyle,g.FontStyle,b.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),k=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],x.concat(n.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(r.matchVisual||a!==j)&&n.addMatcher(i,a)})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var r=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(r,_({},h.default.blotName,t[h.default.blotName]))}var n=this.prepareMatching(),i=o(n,2),a=i[0],s=i[1],c=M(this.container,a,s);return A(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new l.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var n=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(n),r),this.quill.setSelection(e+n.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var r=this.quill.getSelection(),n=(new l.default).retain(r.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){n=n.concat(t.convert()).delete(r.length),t.quill.updateContents(n,c.default.sources.USER),t.quill.setSelection(n.length()-r.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],r=[];return this.matchers.forEach((function(n){var i=o(n,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:r.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[C]=e[C]||[],e[C].push(l)}))}})),[t,r]}}]),t}(d.default);function O(e,t,r){return"object"===(void 0===t?"undefined":n(t))?Object.keys(t).reduce((function(e,r){return O(e,r,t[r])}),e):e.reduce((function(e,n){return n.attributes&&n.attributes[t]?e.push(n):e.insert(n.insert,(0,a.default)({},_({},t,r),n.attributes))}),new l.default)}function R(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function A(e,t){for(var r="",n=e.ops.length-1;n>=0&&r.length<t.length;--n){var o=e.ops[n];if("string"!=typeof o.insert)break;r=o.insert+r}return r.slice(-1*t.length)===t}function T(e){if(0===e.childNodes.length)return!1;var t=R(e);return["block","list-item"].indexOf(t.display)>-1}function M(e,t,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,r){return r(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(n,o){var i=M(o,t,r);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[C]||[]).reduce((function(e,t){return t(o,e)}),i)),n.concat(i)}),new l.default):new l.default}function N(e,t,r){return O(r,e,!0)}function P(e,t){var r=s.default.Attributor.Attribute.keys(e),n=s.default.Attributor.Class.keys(e),o=s.default.Attributor.Style.keys(e),i={};return r.concat(n).concat(o).forEach((function(t){var r=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=r&&(i[r.attrName]=r.value(e),i[r.attrName])||(null==(r=E[t])||r.attrName!==t&&r.keyName!==t||(i[r.attrName]=r.value(e)||void 0),null==(r=S[t])||r.attrName!==t&&r.keyName!==t||(r=S[t],i[r.attrName]=r.value(e)||void 0))})),Object.keys(i).length>0&&(t=O(t,i)),t}function I(e,t){var r=s.default.query(e);if(null==r)return t;if(r.prototype instanceof s.default.Embed){var n={},o=r.value(e);null!=o&&(n[r.blotName]=o,t=(new l.default).insert(n,r.formats(e)))}else"function"==typeof r.formats&&(t=O(t,r.blotName,r.formats(e)));return t}function L(e,t){return A(t,"\n")||(T(e)||t.length()>0&&e.nextSibling&&T(e.nextSibling))&&t.insert("\n"),t}function j(e,t){if(T(e)&&null!=e.nextElementSibling&&!A(t,"\n\n")){var r=e.offsetHeight+parseFloat(R(e).marginTop)+parseFloat(R(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*r&&t.insert("\n")}return t}function D(e,t){var r=e.data;if("O:P"===e.parentNode.tagName)return t.insert(r.trim());if(0===r.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!R(e.parentNode).whiteSpace.startsWith("pre")){var n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};r=(r=r.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&T(e.parentNode)||null!=e.previousSibling&&T(e.previousSibling))&&(r=r.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&T(e.parentNode)||null!=e.nextSibling&&T(e.nextSibling))&&(r=r.replace(/\s+$/,n.bind(n,!1)))}return t.insert(r)}k.DEFAULTS={matchers:[],matchVisual:!0},t.default=k,t.matchAttributor=P,t.matchBlot=I,t.matchNewline=L,t.matchSpacing=j,t.matchText=D},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);a.blotName="bold",a.tagName=["STRONG","B"],t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=u(r(2)),a=u(r(0)),l=u(r(5)),s=u(r(10)),c=u(r(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=(0,s.default)("quill:toolbar"),p=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(Array.isArray(i.options.container)){var a=document.createElement("div");m(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=n(e,1)[0];i.update(t)})),i):(o=f.error("Container required for toolbar",i.options),d(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,r=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(r){if(r=r.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[r]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[r])return void f.warn("ignoring attaching to disabled format",r,e);if(null==a.default.query(r))return void f.warn("ignoring attaching to nonexistent format",r,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];s=!c.hasAttribute("selected")&&(c.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=n(u,1)[0];if(null!=t.handlers[r])t.handlers[r].call(t,s);else if(a.default.query(r).prototype instanceof a.default.Embed){if(!(s=prompt("Enter "+r)))return;t.quill.updateContents((new i.default).retain(d.index).delete(d.length).insert(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},r,s)),l.default.sources.USER)}else t.quill.format(r,s,l.default.sources.USER);t.update(d)})),this.controls.push([r,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(r){var o=n(r,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+s+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var c=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",c)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(c.default);function h(e,t,r){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+t),null!=r&&(n.value=r),e.appendChild(n)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var r=document.createElement("span");r.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(r,e);else{var t=Object.keys(e)[0],n=e[t];Array.isArray(n)?function(e,t,r){var n=document.createElement("select");n.classList.add("ql-"+t),r.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),n.appendChild(t)})),e.appendChild(n)}(r,t,n):h(r,t,n)}})),e.appendChild(r)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var r=this.quill.getFormat();Object.keys(r).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),r=this.quill.getFormat(t),n=parseInt(r.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===r.direction&&(o*=-1),this.quill.format("indent",n+o,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),r=this.quill.getFormat(t);"check"===e?"checked"===r.list||"unchecked"===r.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=p,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.label.innerHTML=r,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var r=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return r.style.backgroundColor=e.getAttribute("value")||"",r}},{key:"selectItem",value:function(e,r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,r);var n=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=o:n.style.fill=o)}}]),t}(((n=r(28))&&n.__esModule?n:{default:n}).default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=r[e.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,r),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((n=r(28))&&n.__esModule?n:{default:n}).default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=r||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=r+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>n.right&&(i=n.right-o.right,this.root.style.left=t+i+"px"),o.left<n.left&&(i=n.left-o.left,this.root.style.left=t+i+"px"),o.bottom>n.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=r-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=f(r(3)),a=f(r(8)),l=r(43),s=f(l),c=f(r(27)),u=r(15),d=f(r(41));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=function(e){function t(e,r){p(this,t),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=v);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.container.classList.add("ql-snow"),n}return m(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,r){e.handlers.link.call(e,!r.format.link)}))}}]),t}(s.default);g.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var r=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(r)&&0!==r.indexOf("mailto:")&&(r="mailto:"+r),this.quill.theme.tooltip.edit("link",r)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,r){p(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.preview=n.root.querySelector("a.ql-preview"),n}return m(t,e),o(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var r=e.linkRange;e.restoreFocus(),e.quill.formatText(r,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,r,n){if(null!=t){if(0===t.length&&n===a.default.sources.USER){var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.quill.scroll.descendant(c.default,t.index),2),i=o[0],l=o[1];if(null!=i){e.linkRange=new u.Range(t.index-l,i.length());var s=c.default.formats(i.domNode);return e.preview.textContent=s,e.preview.setAttribute("href",s),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=L(r(29)),o=r(36),i=r(38),a=r(64),l=L(r(65)),s=L(r(66)),c=r(67),u=L(c),d=r(37),f=r(26),p=r(39),h=r(40),m=L(r(56)),v=L(r(68)),g=L(r(27)),b=L(r(69)),y=L(r(70)),_=L(r(71)),w=L(r(72)),C=L(r(73)),x=r(13),E=L(x),S=L(r(74)),k=L(r(75)),O=L(r(57)),R=L(r(41)),A=L(r(28)),T=L(r(59)),M=L(r(60)),N=L(r(61)),P=L(r(108)),I=L(r(62));function L(e){return e&&e.__esModule?e:{default:e}}n.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),n.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":x.Code,"formats/italic":v.default,"formats/link":g.default,"formats/script":b.default,"formats/strike":y.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":C.default,"formats/list/item":c.ListItem,"modules/formula":S.default,"modules/syntax":k.default,"modules/toolbar":O.default,"themes/bubble":P.default,"themes/snow":I.default,"ui/icons":R.default,"ui/picker":A.default,"ui/icon-picker":M.default,"ui/color-picker":T.default,"ui/tooltip":N.default},!0),t.default=n.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=(n=r(0))&&n.__esModule?n:{default:n},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,r){if("+1"===r||"-1"===r){var n=this.value(e)||0;r="+1"===r?n+1:n-1}return 0===r?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}},{key:"canAdd",value:function(e,r){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,r)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(r))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),s=new l("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(4))&&n.__esModule?n:{default:n}).default);o.blotName="blockquote",o.tagName="blockquote",t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((n=r(4))&&n.__esModule?n:{default:n}).default);i.blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"],t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=s(r(0)),a=s(r(4)),l=s(r(25));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"format",value:function(e,r){e!==p.blotName||r?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,r){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,r),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,r))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);f.blotName="list-item",f.tagName="LI";var p=function(e){function t(e){c(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=function(t){if(t.target.parentNode===e){var n=r.statics.formats(e),o=i.default.find(t.target);"checked"===n?o.format("list","unchecked"):"unchecked"===n&&o.format("list","checked")}};return e.addEventListener("touchstart",n),e.addEventListener("mousedown",n),r}return d(t,e),n(t,null,[{key:"create",value:function(e){var r="ordered"===e?"OL":"UL",n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,r=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var e,t,r}},{key:"insertBefore",value:function(e,r){if(e instanceof f)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r);else{var n=null==r?this.length():r.offset(this),i=this.split(n);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&r.domNode.tagName===this.domNode.tagName&&r.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(r.moveChildren(this),r.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var r=i.default.create(this.statics.defaultChild);e.moveChildren(r),this.appendChild(r)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(56))&&n.__esModule?n:{default:n}).default);o.blotName="italic",o.tagName=["EM","I"],t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);a.blotName="script",a.tagName=["SUB","SUP"],t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);o.blotName="strike",o.tagName="S",t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);o.blotName="underline",o.tagName="U",t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=(n=r(0))&&n.__esModule?n:{default:n},l=r(27),s=["alt","height","width"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,r){s.indexOf(e)>-1?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&r.setAttribute("src",this.sanitize(e)),r}},{key:"formats",value:function(e){return s.reduce((function(t,r){return e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);c.blotName="image",c.tagName="IMG",t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=r(4),l=(n=r(27))&&n.__esModule?n:{default:n},s=["height","width"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,r){s.indexOf(e)>-1?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen",!0),r.setAttribute("src",this.sanitize(e)),r}},{key:"formats",value:function(e){return s.reduce((function(t,r){return e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=s(r(35)),a=s(r(5)),l=s(r(9));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,null,[{key:"create",value:function(e){var r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,r,{throwOnError:!1,errorColor:"#f00"}),r.setAttribute("data-value",e)),r}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){c(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),n(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(l.default);t.FormulaBlot=f,t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=s(r(0)),a=s(r(5)),l=s(r(9));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(r(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,r){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return n.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){n.highlight(),o=null}),n.options.interval)})),n.highlight(),n}return d(t,e),n(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),n(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var n=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=d(r(3)),a=d(r(8)),l=r(43),s=d(l),c=r(15),u=d(r(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,r){f(this,t),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=m);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.container.classList.add("ql-bubble"),n}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(s.default);v.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,r){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,r,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var i=n.quill.getLines(t.index,t.length);if(1===i.length)n.position(n.quill.getBounds(t));else{var l=i[i.length-1],s=n.quill.getIndex(l),u=Math.min(l.length()-1,t.index+t.length-s),d=n.quill.getBounds(new c.Range(s,u));n.position(d)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var r=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===r)return r;o.style.marginLeft=-1*r-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=g,t.default=v},function(e,t,r){e.exports=r(63)}]).default},e.exports=t()},92471:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),r=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,r)};var o=n(r(65496)),i=r(67731),a=/<(![a-zA-Z\s]+)>/},95950:(e,t,r)=>{var n=r(70695),o=r(88984),i=r(64894);e.exports=function(e){return i(e)?n(e):o(e)}},96374:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},96811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},98917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(n,l))}},99583:function(e){!function(t){var r={},n=Array.prototype,o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n.forEach,s=n.indexOf,c=n.slice,u=function(e,t,n){var o,a,s;if(e)if(l&&e.forEach===l)e.forEach(t,n);else if(e.length===+e.length){for(a=0,s=e.length;a<s;a++)if(a in e&&t.call(n,e[a],a,e)===r)return}else for(o in e)if(i.call(e,o)&&t.call(n,e[o],o,e)===r)return},d=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},f=function(e){return u(c.call(arguments,1),(function(t){var r;for(r in t)void 0!==t[r]&&(e[r]=t[r])})),e},p=function(e,t,r){var n;if(t){if(s)return s.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1},h={};u("Boolean Number String Function Array Date RegExp Object".split(" "),(function(e,t){h["[object "+e+"]"]=e.toLowerCase()}));var m=function(e){return null==e?String(e):h[a.call(e)]||"object"},v={},g={};v.Callbacks=function(e){e="string"==typeof e?g[e]||function(e){var t=g[e]={};return u(e.split(/\s+/),(function(e){t[e]=!0})),t}(e):f({},e);var t,r,n,o,i,a,l=[],s=!e.once&&[],c=function(u){for(t=e.memory&&u,r=!0,a=o||0,o=0,i=l.length,n=!0;l&&a<i;a++)if(!1===l[a].apply(u[0],u[1])&&e.stopOnFalse){t=!1;break}n=!1,l&&(s?s.length&&c(s.shift()):t?l=[]:d.disable())},d={add:function(){if(l){var r=l.length;!function t(r){u(r,(function(r){var n=m(r);"function"===n?e.unique&&d.has(r)||l.push(r):r&&r.length&&"string"!==n&&t(r)}))}(arguments),n?i=l.length:t&&(o=r,c(t))}return this},remove:function(){return l&&u(arguments,(function(e){for(var t;(t=p(e,l,t))>-1;)l.splice(t,1),n&&(t<=i&&i--,t<=a&&a--)})),this},has:function(e){return p(e,l)>-1},empty:function(){return l=[],this},disable:function(){return l=s=t=void 0,this},disabled:function(){return!l},lock:function(){return s=void 0,t||d.disable(),this},locked:function(){return!s},fireWith:function(e,t){return t=[e,(t=t||[]).slice?t.slice():t],!l||r&&!s||(n?s.push(t):c(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},v.Deferred=function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],r="pending",n={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred((function(r){u(t,(function(t,n){var i=t[0],a=e[n];o[t[1]](d(a)?function(){var e;try{e=a.apply(this,arguments)}catch(e){return void r.reject(e)}e&&d(e.promise)?e.promise().done(r.resolve).fail(r.reject).progress(r.notify):r["notify"!==i?"resolveWith":i+"With"](this===o?r:this,[e])}:r[i])})),e=null})).promise()},promise:function(e){return null!=e?f(e,n):n}},o={};return n.pipe=n.then,u(t,(function(e,i){var a=e[2],l=e[3];n[e[1]]=a.add,l&&a.add((function(){r=l}),t[1^i][2].disable,t[2][2].lock),o[e[0]]=a.fire,o[e[0]+"With"]=a.fireWith})),n.promise(o),e&&e.call(o,o),o},v.when=function(e){var t,r,n,o=0,i="array"===m(e)&&1===arguments.length?e:c.call(arguments),a=i.length,l=1!==a||e&&d(e.promise)?a:0,s=1===l?e:v.Deferred(),u=function(e,r,n){return function(o){r[e]=this,n[e]=arguments.length>1?c.call(arguments):o,n===t?s.notifyWith(r,n):--l||s.resolveWith(r,n)}};if(a>1)for(t=new Array(a),r=new Array(a),n=new Array(a);o<a;o++)i[o]&&d(i[o].promise)?i[o].promise().done(u(o,n,i)).fail(s.reject).progress(u(o,r,t)):--l;return l||s.resolveWith(n,i),s.promise()},e.exports?e.exports=v:void 0!==t._?t._.mixin(v):t._=v}(this)}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&n&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+".js",a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="sureforms:",a.l=(e,t,o,i)=>{if(r[e])r[e].push(t);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+o){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.setAttribute("data-webpack",n+o),l.src=e),r[e]=[t];var f=(t,n)=>{l.onerror=l.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),s&&document.head.appendChild(l)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={617:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),l=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,n[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,l,s]=r,c=0;if(i.some((t=>0!==e[t]))){for(n in l)a.o(l,n)&&(a.m[n]=l[n]);s&&s(a)}for(t&&t(r);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunksureforms=globalThis.webpackChunksureforms||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};a.r(e),a.d(e,{metadata:()=>B,settings:()=>X});var t={};a.r(t),a.d(t,{metadata:()=>nr,name:()=>Cn,settings:()=>xn});var r={};a.r(r),a.d(r,{metadata:()=>sr,name:()=>lo,settings:()=>so});var n={};a.r(n),a.d(n,{metadata:()=>or,name:()=>fo,settings:()=>po});var o={};a.r(o),a.d(o,{metadata:()=>ar,name:()=>wo,settings:()=>Co});var i={};a.r(i),a.d(i,{metadata:()=>cr,name:()=>ko,settings:()=>Oo});var l={};a.r(l),a.d(l,{metadata:()=>pr,name:()=>Ao,settings:()=>To});var s={};a.r(s),a.d(s,{metadata:()=>dr,name:()=>nh,settings:()=>oh});var c={};a.r(c),a.d(c,{metadata:()=>ir,name:()=>uh,settings:()=>dh});var u={};a.r(u),a.d(u,{metadata:()=>fr,name:()=>xh,settings:()=>Eh});var d={};a.r(d),a.d(d,{metadata:()=>ur,name:()=>Rh,settings:()=>Ah});var f={};a.r(f),a.d(f,{metadata:()=>lr,name:()=>Ph,settings:()=>Ih});var p={};a.r(p),a.d(p,{metadata:()=>hr,name:()=>Dh,settings:()=>Bh});var h={};a.r(h),a.d(h,{updateSrfmGlobalData:()=>Qh});var m={};a.r(m),a.d(m,{selectSrfmGlobalData:()=>em});const v=window.wp.components,g=window.wp.blockEditor,b=window.wp.element,y=window.wp.i18n,_=window.wp.url,w=window.wp.apiFetch;var C=a.n(w);function x(e){return x="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},x(e)}function E(){E=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function c(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return s(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var s=w(l,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var c=u(t,r,n);if("normal"===c.type){if(o=n.done?4:2,c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=4,n.method="throw",n.arg=c.arg)}}}(t,n,new k(o||[])),!0),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function p(){}function h(){}var m={};s(m,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(O([])));g&&g!==r&&n.call(g,i)&&(m=g);var b=h.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,i,a,l){var s=u(e[o],e,i);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==x(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(s.arg)}var o;s(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function w(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,w(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function C(e){this.tryEntries.push(e)}function S(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function k(e){this.tryEntries=[[-1]],e.forEach(C,this),this.reset(!0)}function O(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(x(t)+" is not iterable")}return p.prototype=h,s(b,"constructor",h),s(h,"constructor",p),p.displayName=s(h,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},y(_.prototype),s(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),s(b,l,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=O,k.prototype={constructor:k,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],l=this.prev,s=i[1],c=i[2];if(-1===i[0])return n("end"),!1;if(!s&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=l){if(l<s)return this.method="next",this.arg=e,n(s),!0;if(l<c)return n(c),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:O(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function S(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function k(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){S(i,n,o,a,l,"next",e)}function l(e){S(i,n,o,a,l,"throw",e)}a(void 0)}))}}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(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 R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const A=function(e){var t=e.label,r=e.id,n=e.formId,o=e.selectedVal,i=e.handleChange,a=e.setForm,l=e.setFormId,s=O((0,b.useState)([]),2),c=s[0],u=s[1],d=O((0,b.useState)(""),2),f=d[0],p=d[1],h=O((0,b.useState)(!1),2),m=h[0],v=h[1],g=(0,b.useRef)(null),w=function(){var e=k(E().mark((function e(){var t;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,C()({path:"sureforms/v1/forms-data",headers:{"content-type":"application/json","X-WP-Nonce":srfm_block_data.forms_data_nonce}});case 3:(t=e.sent).forEach((function(e){""===e.title&&(e.title=(0,y.__)("(no title)","sureforms"))})),u(t),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=k(E().mark((function e(t){var r;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,C()({path:(0,_.addQueryArgs)(srfm_block_data.get_form_markup_url,t),headers:{"content-type":"application/json","X-WP-Nonce":srfm_block_data.generate_form_markup_nonce}});case 3:return r=e.sent,e.abrupt("return",r);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}();function S(e){v(e&&e.target===g.current)}(0,b.useEffect)((function(){return w(),document.addEventListener("click",S),function(){return document.removeEventListener("click",S)}}),[]);var R=function(){return c.filter((function(e){return e[t].toLowerCase().indexOf(f.toLowerCase())>-1}))};return React.createElement("div",{className:"srfm-form-select-dropdown"},React.createElement("div",null,React.createElement("div",{className:"srfm-form-select-value"},React.createElement("input",{ref:g,type:"text",value:f||o||"",name:"searchTerm",onChange:function(e){p(e.target.value),i(null)},onClick:S,placeholder:(0,y.__)("Select a Form","sureforms"),autoComplete:"off"})),React.createElement("div",{className:"srfm-form-select-arrow ".concat(m?"srfm-form-arrow-open":"")})),React.createElement("div",{className:"srfm-form-select-options ".concat(m?"srfm-form-arrow-open":"")},0===c.length||0===R().length?React.createElement("div",{className:"srfm-form-single-option"},(0,y.__)("No forms found…","sureforms")):R().map((function(e,o){return React.createElement("div",{onClick:function(){!function(e){p((function(){return""})),i(e[t]),v((function(){return!m}))}(e);var r={id:e.id,srfm_form_markup_nonce:srfm_block_data.srfm_form_markup_nonce},n=x(r);l(e.id),a(n)},className:"srfm-form-single-option ".concat(e[r]===n?"srfm-form-selected":""),key:"".concat(r,"-").concat(o)},e[t])}))))};function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(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 M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const N=function(e){var t=e.setAttributes,r=T((0,b.useState)({}),2),n=r[0],o=r[1],i=T((0,b.useState)(),2),a=i[0],l=i[1],s=T((0,b.useState)(""),2),c=s[0],u=s[1];return React.createElement("div",(0,g.useBlockProps)(),React.createElement(v.Placeholder,{icon:React.createElement("svg",{width:"192",height:"32",viewBox:"0 0 192 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-type":"sureforms-logo"},React.createElement("g",{clipPath:"url(#clip0_15648_39510)"},React.createElement("rect",{width:"32",height:"32",fill:"#D54407"}),React.createElement("path",{d:"M9.14307 6.85645H22.8574V11.4279H11.4288L9.14307 13.7136V11.4279V6.85645Z",fill:"white"}),React.createElement("path",{d:"M9.14307 6.85645H22.8574V11.4279H11.4288L9.14307 13.7136V11.4279V6.85645Z",fill:"white"}),React.createElement("path",{d:"M9.14307 13.7139H20.5716V18.2853H11.4288L9.14307 20.571V18.2853V13.7139Z",fill:"white"}),React.createElement("path",{d:"M9.14307 13.7139H20.5716V18.2853H11.4288L9.14307 20.571V18.2853V13.7139Z",fill:"white"}),React.createElement("path",{d:"M9.14307 20.5713H16.0002V25.1427H9.14307V20.5713Z",fill:"white"}),React.createElement("path",{d:"M9.14307 20.5713H16.0002V25.1427H9.14307V20.5713Z",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.6665 22.1379L43.9899 20.193C44.5972 20.8939 45.4051 21.4837 46.4133 21.9626C47.4216 22.4415 48.4815 22.6809 49.5931 22.6809C50.8649 22.6809 51.8561 22.4065 52.5664 21.8575C53.2883 21.3085 53.6493 20.5902 53.6493 19.7024C53.6493 19.1418 53.4545 18.6687 53.0649 18.2833C52.6753 17.8978 52.1711 17.5999 51.5524 17.3897C50.9336 17.1795 50.2518 16.9867 49.5071 16.8116C48.7623 16.6363 48.0118 16.4319 47.2556 16.1983C46.5108 15.9647 45.829 15.6785 45.2103 15.3398C44.5915 15.001 44.0873 14.5221 43.6977 13.9031C43.3081 13.2723 43.1134 12.5248 43.1134 11.6604C43.1134 10.2353 43.6748 9.04982 44.7978 8.1037C45.9207 7.14589 47.4618 6.66699 49.4212 6.66699C52.0107 6.66699 54.1076 7.50799 55.7117 9.18998L54.4915 11.0472C53.9643 10.3931 53.2539 9.86746 52.3602 9.47031C51.4779 9.0615 50.4982 8.85709 49.4212 8.85709C48.2868 8.85709 47.3758 9.1199 46.6883 9.64552C46.0009 10.1595 45.6571 10.8077 45.6571 11.5903C45.6571 12.0926 45.8519 12.5189 46.2415 12.8694C46.631 13.2081 47.1295 13.4767 47.7368 13.6753C48.3555 13.8622 49.0373 14.0432 49.7821 14.2185C50.5383 14.382 51.2888 14.5864 52.0336 14.8317C52.7899 15.077 53.4716 15.3806 54.0789 15.7428C54.6977 16.0931 55.2019 16.6013 55.5914 17.2671C55.981 17.9328 56.1758 18.7213 56.1758 19.6324C56.1758 21.1508 55.5914 22.4065 54.4227 23.3993C53.2654 24.3805 51.6326 24.8711 49.5243 24.8711C46.6712 24.8711 44.3853 23.96 42.6665 22.1379ZM59.0646 19.3345V7.10501H61.6944V18.511C61.6944 19.9594 62.0209 20.9815 62.674 21.5771C63.3272 22.1612 64.2782 22.4532 65.5271 22.4532C66.5126 22.4532 67.4636 22.202 68.3802 21.6998C69.2968 21.1975 70.013 20.5785 70.5286 19.8426V7.10501H73.1755V24.4331H70.5286V21.9977C69.8182 22.8153 68.9302 23.4986 67.8646 24.0476C66.799 24.5965 65.6704 24.8711 64.4786 24.8711C60.8693 24.8711 59.0646 23.0255 59.0646 19.3345ZM77.044 24.4331H79.6737V12.1685C80.0633 11.456 80.7336 10.8194 81.6847 10.2588C82.6357 9.6864 83.518 9.40023 84.3315 9.40023C84.595 9.40023 84.9331 9.42359 85.3455 9.47031V6.70204C84.2456 6.70204 83.2086 6.99405 82.2347 7.57807C81.2606 8.15042 80.4071 8.91549 79.6737 9.8733V7.10501H77.044V24.4331ZM86.2578 15.7428C86.2578 14.0841 86.613 12.5657 87.3235 11.1874C88.0454 9.79737 89.048 8.6994 90.3313 7.89345C91.6146 7.07581 93.0526 6.66699 94.6453 6.66699C96.3182 6.66699 97.7791 7.08165 99.0281 7.91097C100.277 8.74028 101.217 9.85577 101.847 11.2574C102.488 12.6474 102.809 14.2184 102.809 15.9705V16.6538H89.0766C89.1797 18.3592 89.7755 19.7842 90.8641 20.9289C91.9641 22.0736 93.3963 22.6459 95.1609 22.6459C96.1578 22.6459 97.1146 22.4532 98.0312 22.0677C98.9594 21.6823 99.7671 21.1334 100.455 20.4208L101.709 22.1729C99.9104 23.9716 97.6589 24.8711 94.9547 24.8711C92.4109 24.8711 90.3256 24.0242 88.6985 22.3306C87.0714 20.6369 86.2578 18.441 86.2578 15.7428ZM89.0422 14.639H100.197C100.186 13.9732 100.065 13.3132 99.8359 12.6591C99.6182 12.005 99.2917 11.3917 98.8563 10.8194C98.4208 10.2471 97.8364 9.78569 97.1031 9.43528C96.3698 9.07318 95.539 8.89213 94.6109 8.89213C93.7401 8.89213 92.9495 9.06733 92.2391 9.41775C91.5287 9.76816 90.95 10.2296 90.5031 10.8019C90.0677 11.3626 89.724 11.9758 89.4719 12.6415C89.2198 13.2957 89.0766 13.9615 89.0422 14.639Z",fill:"#030712"}),React.createElement("path",{d:"M109.172 25.0171H105.493V7.42401H117.722V10.7211H109.172V14.4138H117.54V17.7109H109.172V25.0171Z",fill:"#030712"}),React.createElement("path",{d:"M128.507 25.3337C123.274 25.3337 119.465 21.5354 119.465 16.2338C119.465 10.9321 123.274 7.13387 128.507 7.13387C133.714 7.13387 137.523 10.9321 137.523 16.2338C137.523 21.5354 133.714 25.3337 128.507 25.3337ZM128.507 22.0102C131.694 22.0102 133.74 19.5045 133.74 16.2338C133.74 12.9367 131.694 10.4573 128.507 10.4573C125.294 10.4573 123.248 12.9367 123.248 16.2338C123.248 19.5045 125.294 22.0102 128.507 22.0102Z",fill:"#030712"}),React.createElement("path",{d:"M154.121 25.0171H149.872L146.478 18.7659H143.784V25.0171H140.105V7.42401H148.188C151.789 7.42401 154.017 9.82428 154.017 13.095C154.017 16.181 152.074 17.8691 150.209 18.3175L154.121 25.0171ZM147.67 15.4688C149.121 15.4688 150.235 14.572 150.235 13.0686C150.235 11.6179 149.121 10.7211 147.67 10.7211H143.784V15.4688H147.67Z",fill:"#030712"}),React.createElement("path",{d:"M175.484 25.0171H171.779V12.33L166.909 25.0171H165.302L160.432 12.33V25.0171H156.753V7.42401H161.908L166.105 18.423L170.303 7.42401H175.484V25.0171Z",fill:"#030712"}),React.createElement("path",{d:"M185.082 25.3337C181.74 25.3337 179.357 24.1995 177.724 22.5377L179.745 19.61C180.963 20.9024 182.854 22.0102 185.238 22.0102C187.285 22.0102 188.243 21.087 188.243 20.0584C188.243 16.9987 178.294 19.1352 178.294 12.5147C178.294 9.58689 180.782 7.16025 184.849 7.16025C187.595 7.16025 189.875 8.0043 191.585 9.61326L189.539 12.4092C188.14 11.0903 186.274 10.4837 184.512 10.4837C182.958 10.4837 182.077 11.1695 182.077 12.2245C182.077 14.9941 192 13.1213 192 19.6891C192 22.907 189.72 25.3337 185.082 25.3337Z",fill:"#030712"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_15648_39510"},React.createElement("rect",{width:"192",height:"32",fill:"white"})))),className:"srfm-select-form-placeholder"},React.createElement("div",{className:"srfm-select-form-container"},React.createElement(A,{form:n,setForm:o,setFormId:l,label:"title",id:"id",formId:a,selectedVal:c,handleChange:function(e){return u(e)}}),React.createElement("div",{className:"srfm-select-form-button"},React.createElement(v.Button,{variant:"primary",text:(0,y.__)("Choose","sureforms"),onClick:function(){t({id:a})}}),React.createElement(v.Button,{variant:"secondary",text:(0,y.__)("Create New","sureforms"),onClick:function(){window.open(srfm_block_data.template_picker_url)}})))))},P=window.wp.data,I=window.wp.coreData;function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(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 j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const D=function(e){var t=e.attributes,r=e.setAttributes,n=t.id,o=t.showTitle,i=(0,b.useRef)(null),a=(0,b.useRef)(null),l=L((0,b.useState)(!1),2),s=l[0],c=l[1],u=L((0,b.useState)(0),2),d=u[0],f=u[1],p=L((0,I.useEntityProp)("postType","sureforms_form","link",n),2),h=p[0],m=(p[1],(0,g.useBlockProps)()),_=L((0,I.useEntityProp)("postType","sureforms_form","title",n),2),w=_[0],C=_[1],x=(0,P.useSelect)((function(e){var t=e(I.store).getEntityRecord("postType","sureforms_form",n);return t?t.status:void 0}),[n]),E=(0,P.useSelect)((function(e){var t=e(I.store).hasFinishedResolution("getEntityRecord",["postType","sureforms_form",n]),r=e(I.store).getEntityRecord("postType","sureforms_form",n);return{canEdit:e(I.store).canUserEditEntityRecord("sureforms_form"),isMissing:t&&!r,hasResolved:t,form:r}})),S=E.isMissing,k=E.hasResolved;return(0,b.useEffect)((function(){if(null!=a&&a.current){var e=null==a?void 0:a.current,t=new IntersectionObserver((function(e){e.forEach((function(e){if(!d&&e.isIntersecting){var t=i.current.contentDocument.querySelector(".srfm-form-container");if(t){var r=t.offsetHeight;r&&0!==r&&(f(r),i.current.height=r)}}}))}),{root:null,rootMargin:"0px",threshold:.1});return t.observe(e),function(){return t.disconnect()}}}),[null==a?void 0:a.current]),(0,b.useEffect)((function(){i&&i.current&&(c(!0),i.current.onload=function(){!function(){var e=i.current.contentDocument;if(e){var t=e.querySelector(".srfm-form-container");if(t){var r=t.offsetHeight;r&&0!==r&&(f(r),i.current.height=r)}c(!1)}}()})}),[n,i,k]),S||x&&"publish"!==x?React.createElement(React.Fragment,null,React.createElement(g.InspectorControls,null,React.createElement(v.PanelBody,null,React.createElement(v.PanelRow,null,React.createElement(v.Button,{variant:"secondary",text:(0,y.__)("Change Form","sureforms"),onClick:function(){r({id:void 0})},className:"srfm-change-form-btn"})))),React.createElement("div",m,React.createElement(g.Warning,null,(0,y.__)("This form has been deleted or is unavailable.","sureforms")))):React.createElement(React.Fragment,null,React.createElement(g.InspectorControls,null,React.createElement(v.PanelBody,{title:(0,y.__)("Form Settings","sureforms")},React.createElement(v.PanelRow,null,React.createElement(v.ToggleControl,{label:(0,y.__)("Show Form Title on this Page","sureforms"),checked:o,onChange:function(e){r({showTitle:e})},className:"srfm-form-page-title-toggle"})),o&&React.createElement(v.PanelRow,null,React.createElement(v.TextControl,{label:(0,y.__)("Form Title","sureforms"),value:w,onChange:function(e){C(e)},className:"srfm-form-page-title-input-wrapper"})),srfm_block_data.is_admin_user&&React.createElement(v.PanelRow,null,React.createElement("p",{className:"srfm-form-notice"},(0,y.__)("Note: For editing SureForms, please refer to the SureForms Editor - ","sureforms"),React.createElement(v.ExternalLink,{href:"".concat(srfm_block_data.post_url,"?post=").concat(n,"&action=edit")},(0,y.__)("Edit Form","sureforms")))),React.createElement(v.PanelRow,null,React.createElement(v.Button,{variant:"secondary",text:(0,y.__)("Change Form","sureforms"),onClick:function(){r({id:void 0})},className:"srfm-change-form-btn"})))),k?React.createElement("div",m,React.createElement("div",{className:"srfm-iframe-container",ref:a},s&&React.createElement("div",{className:"srfm-iframe-loader"},React.createElement(v.Spinner,null)),o&&w&&React.createElement("h2",{className:"srfm-form-title"},w),React.createElement("iframe",{loading:"eager",ref:i,title:"srfm-iframe",src:h+"?preview_id=".concat(n,"&preview=true&form_preview=true"),width:"100%"}))):React.createElement("div",m,React.createElement(v.Placeholder,null,React.createElement(v.Spinner,null))))},B=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":3,"name":"srfm/form","title":"Form","description":"Collect and Manage data effortlessly with customizable SureForms.","category":"sureforms","keywords":["form","sureforms","form"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"attributes":{"isPreview":{"type":"boolean","default":false},"showTitle":{"type":"boolean","default":false},"id":{"type":"number"},"title":{"type":"string"},"choices":{"type":"array"},"template":{"type":"string"},"choice_type":{"type":"string","enum":["all","checkbox","radio"],"default":"all"}}}');var H=function(e){var t=e.fieldName;return React.createElement("div",{style:{textAlign:"center"}},React.createElement("img",{src:t,alt:(0,y.__)("Field preview","sureforms"),style:{height:"415px",width:"auto",textAlign:"center"}}))};const z=window.wp.hooks;function q(e){return q="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},q(e)}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function G(e,t,r){return(t=function(e){var t=function(e){if("object"!=q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e){return W="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},W(e)}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){K(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(e,t,r){return(t=function(e){var t=function(e){if("object"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $={};$=(0,z.applyFilters)("srfm/form",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={example:{attributes:{isPreview:!0}},usesContext:["postId","postType"]};return"site-editor"===srfm_blocks_info.is_site_editor&&(t={}),(0,z.applyFilters)("addCommonData",V(V({},e),t))}($));var Y=srfm_fields_preview.sureforms_preview,X=Z(Z({},$),{},{icon:function(){return React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"srfm-logo",xmlns:"http://www.w3.org/2000/svg"},React.createElement("style",null,".is-selected svg.srfm-logo path {fill:#000000;}"),React.createElement("g",{clipPath:"url(#clip0_15961_16935)"},React.createElement("rect",{width:"24",height:"24",fill:"evenodd"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_15961_16935"},React.createElement("rect",{width:"24",height:"24",fill:"white"}))))},edit:function(e){return e.attributes.isPreview?React.createElement(H,{fieldName:Y}):(r=(t=e).attributes,n=t.setAttributes,o=r.id,r.loading?React.createElement(v.Placeholder,null,React.createElement(v.Spinner,null)):o?React.createElement(D,{attributes:r,setAttributes:n}):React.createElement(N,{attributes:r,setAttributes:n}));var t,r,n,o},save:function(){return null}}),J=a(51609),Q=a.n(J),ee={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},te=Q().createContext&&Q().createContext(ee),re=function(){return re=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},re.apply(this,arguments)};function ne(e){return e&&e.map((function(e,t){return Q().createElement(e.tag,re({key:t},e.attr),ne(e.child))}))}function oe(e){return function(t){return Q().createElement(ie,re({attr:re({},e.attr)},t),ne(e.child))}}function ie(e){var t=function(t){var r,n=e.attr,o=e.size,i=e.title,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["attr","size","title"]),l=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),Q().createElement("svg",re({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,a,{className:r,style:re(re({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Q().createElement("title",null,i),e.children)};return void 0!==te?Q().createElement(te.Consumer,null,(function(e){return t(e)})):t(ee)}function ae(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}var le=a(85072),se=a.n(le),ce=a(64284),ue=a.n(ce),de=a(77659),fe=a.n(de),pe=a(44868),he=a.n(pe),me=a(10540),ve=a.n(me),ge=a(6359),be={};ge.A&&ge.A.locals&&(be.locals=ge.A.locals);var ye,_e=0,we={attributes:{id:"sureforms-editor-styles"}};we.setAttributes=he(),we.insert=fe().bind(null,"head"),we.domAPI=ue(),we.insertStyleElement=ve(),be.use=function(e){return we.options=e||{},_e++||(ye=se()(ge.A,we)),be},be.unuse=function(){_e>0&&! --_e&&(ye(),ye=null)};const Ce=be;var xe=a(46942),Ee=a.n(xe);const Se=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!window.localStorage)return null;if(!e)return localStorage;var t=localStorage.getItem(e);return t?JSON.parse(t):null};function ke(e){return ke="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},ke(e)}function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){Ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ae(e,t,r){return(t=function(e){var t=function(e){if("object"!=ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Me="general",Ne="style",Pe="advance";const Ie=function(e){(0,b.useLayoutEffect)((function(){return null==Ce||Ce.use(),function(){null==Ce||Ce.unuse()}}),[]);var t,r=Se("srfmSettingState"),n=e.defaultTab,o=void 0===n?"general":n,i=e.children,a=e.tabs,l=void 0===a?["general","style","advance"]:a,s=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Te(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.")}()}((0,b.useState)(o||l[0]),2),c=s[0],u=s[1],d=(0,b.useRef)();(0,b.useEffect)((function(){t=d.current.closest(".components-panel")}));var f=function(){var e=document.querySelector(".srfm-inspector-tabs-container"),t=document.querySelector(".components-panel__body.srfm-dynamic-content-wrap"),r=document.querySelector(".srfm-tab-content-general"),n=document.querySelector(".srfm-tab-content-style"),o=document.querySelector(".srfm-tab-content-advance");if(e){var i=e.parentElement;i&&(t=t||"",r=r||"",n=n||"",o=o||"",i.prepend(t,e,r,n,o))}};(0,b.useEffect)((function(){var e,n;f();var o,i=null===(e=(0,(0,P.select)("core/block-editor").getSelectedBlock)())||void 0===e?void 0:e.name;return r&&r[i]&&c!==(null===(n=r[i])||void 0===n?void 0:n.selectedTab)?(u("general"),t&&t.setAttribute("data-srfm-tab",(null===(o=r[i])||void 0===o?void 0:o.selectedTab)||"general")):t&&t.setAttribute("data-srfm-tab","general"),function(){if(t){var e=t.querySelector(".srfm-inspector-tabs-container");e&&null!==e||t.removeAttribute("data-srfm-tab")}}}),[]);var p=function(e){var n;f(),u(e),(0,z.doAction)("srfm_inspector_change_tab",e),t&&t.setAttribute("data-srfm-tab",e);var o=null===(n=(0,(0,P.select)("core/block-editor").getSelectedBlock)())||void 0===n?void 0:n.name,i=Re(Re({},r),{},Ae({},o,{selectedTab:e})),a=Se();a&&a.setItem("srfmSettingState",JSON.stringify(i))};return React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-inspector-tabs-container"},React.createElement("div",{ref:d,className:Ee()("srfm-inspector-tabs","srfm-inspector-tabs-count-"+l.length,c)},l.indexOf(Me)>-1&&React.createElement("div",{className:Ee()({"srfm-active":c===Me}),onClick:function(){return p(Me)}},React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:"16",height:"15"},React.createElement("path",{fillRule:"nonzero",d:"M14.346 0H1.654C1.017 0 .5.517.5 1.154v12.692C.5 14.483 1.017 15 1.654 15h12.692c.637 0 1.154-.517 1.154-1.154V1.154C15.5.517 14.983 0 14.346 0zm-5.77 13.846v-5.77h5.77v5.77h-5.77z"})),React.createElement("h5",null,(0,y.__)("General","sureforms"))),l.indexOf(Ne)>-1&&React.createElement("div",{className:Ee()({"srfm-active":c===Ne}),onClick:function(){return p(Ne)}},React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:"18",height:"21"},React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M15.12 12.091a.814.814 0 00-.68-.378.814.814 0 00-.68.378c-.531.863-2.252 3.807-2.252 5.09 0 1.598 1.317 2.901 2.932 2.901s2.933-1.303 2.933-2.902c0-1.303-1.722-4.226-2.253-5.089zm-1.041 3.828c-.043.063-.744 1.198-.213 1.976a.52.52 0 01.064.358.409.409 0 01-.191.294.608.608 0 01-.255.084.476.476 0 01-.383-.21c-.871-1.283.149-2.902.192-2.986a.517.517 0 01.297-.21.534.534 0 01.361.063c.192.126.255.42.128.63zM13.314 10.388l1.36-.147c.446-.042.807-.337.935-.736.127-.4.042-.862-.276-1.157L7.258.294c-.255-.252-.68-.252-.957 0a.68.68 0 000 .947l.34.336-5.1 5.047C.82 7.339.5 8.348.67 9.379c.128.652.489 1.24.956 1.703l3.082 3.05c.467.462 1.062.82 1.72.946a3.134 3.134 0 002.785-.863l3.612-3.575a.74.74 0 01.489-.252zM7.576 2.502l5.759 5.7H2.073c.085-.232.212-.463.403-.653l5.1-5.047z"}))),React.createElement("h5",null,(0,y.__)("Style","sureforms"))),l.indexOf(Pe)>-1&&React.createElement("div",{className:Ee()({"srfm-active":c===Pe}),onClick:function(){return p(Pe)}},React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:"17",height:"16"},React.createElement("path",{fillRule:"nonzero",d:"M15.666 6.325c-.277-.05-.572-.082-.85-.115a6.385 6.385 0 00-.571-1.389c.18-.229.343-.457.523-.686a.994.994 0 00-.098-1.291l-.997-.997a.994.994 0 00-1.291-.098c-.23.163-.458.343-.687.523a6.954 6.954 0 00-1.39-.589c-.032-.277-.08-.572-.113-.85A.987.987 0 009.21 0H7.805a1 1 0 00-.98.834c-.05.277-.082.572-.115.85-.474.13-.947.326-1.389.571-.229-.18-.457-.343-.686-.523a.994.994 0 00-1.291.098l-.997.997a.994.994 0 00-.098 1.291c.163.23.343.458.523.687a6.954 6.954 0 00-.589 1.39c-.277.032-.572.08-.85.113A.987.987 0 00.5 7.29v1.406a1 1 0 00.834.98c.277.05.572.082.85.115.13.474.326.947.571 1.389-.18.229-.343.457-.523.686a.994.994 0 00.098 1.291l.997.997a.994.994 0 001.291.098c.23-.163.458-.343.687-.523.441.245.899.442 1.39.589.032.294.08.572.113.85.066.473.49.833.981.833h1.406a1 1 0 00.98-.834c.05-.277.082-.572.115-.85.474-.13.947-.326 1.389-.571.229.18.457.343.686.523a.994.994 0 001.291-.098l.997-.997a.994.994 0 00.098-1.291 19.095 19.095 0 00-.523-.687c.245-.441.442-.899.589-1.39.277-.032.572-.08.85-.113a.987.987 0 00.833-.981V7.305a1 1 0 00-.834-.98zM8.492 11.57a3.571 3.571 0 01-3.563-3.563 3.571 3.571 0 013.563-3.563 3.571 3.571 0 013.563 3.563 3.571 3.571 0 01-3.563 3.563z"})),React.createElement("h5",null,(0,y.__)("Advanced","sureforms"))))),Array.isArray(i)&&b.Children.map(i,(function(e,t){if(!e)return e;if(!e.key)throw new Error("props.key not found in <InspectorTab />, you must use `key` prop");return(0,b.cloneElement)(e,{index:t,isActive:e.key===c})})))},Le=function(e){var t,r,n=e.children,o=e.isActive,i=e.type,a=(0,b.useRef)(null),l=null===(t=(0,(0,P.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name;(0,b.useEffect)((function(){var e=Se("srfmSettingState");if(e){var t,r,n,o,s=null===(t=e[l])||void 0===t?void 0:t.selectedTab,c=null===(r=e[l])||void 0===r?void 0:r.selectedPanel,u=null===(n=e[l])||void 0===n?void 0:n.selectedSetting,d=null===(o=e[l])||void 0===o?void 0:o.selectedInnerTab;if(s&&i===s){var f=!1;(f=c?a.current.querySelector(".".concat(c)):a.current.querySelector(".is-opened"))&&(f.classList.contains("is-opened")||f.querySelector(".components-button").click(),d&&setTimeout((function(){var e=f.querySelector(d);e&&!e.classList.contains("active-tab")&&e.click()}),100),u&&setTimeout((function(){var e=f.querySelector(u);e&&!e.classList.contains("active")&&e.querySelector(".components-button").click()}),100))}}}),[]);var s=null==l||null===(r=l.split("/"))||void 0===r?void 0:r.pop(),c=(0,z.applyFilters)("srfm.".concat(s,".tab_").concat(i,".before"),"",l),u=(0,z.applyFilters)("srfm.".concat(s,".tab_").concat(i),"",l);return React.createElement("div",{style:{display:o?"block":"none"},className:"srfm-inspector-tab srfm-tab-content-".concat(i),ref:a},c,Array.isArray(n)?n.map((function(e){return e})):n,(0,z.applyFilters)("srfm_".concat(i,"_tab_content"),"",e.parentProps),u)};var je={key:"general",type:"general"},De={key:"style",type:"style"},Be={key:"advance",type:"advance"};function He(e){return He="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},He(e)}function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach((function(t){Ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ve(e,t,r){return(t=function(e){var t=function(e){if("object"!=He(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=He(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==He(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const We=(0,b.memo)((function(e){var t,r,n=e.children,o=(0,b.useRef)(null),i=null===(t=(0,(0,P.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name,a=Se("srfmSettingState"),l=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ge(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ge(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.")}()}((0,b.useState)("style"),2),s=l[0],c=l[1];(0,b.useEffect)((function(){var e,t,r;c((r="style",null!=o&&null!==(e=o.current)&&void 0!==e&&null!==(e=e.parentElement)&&void 0!==e&&e.classList.contains("srfm-tab-content-general")&&(r="general"),null!=o&&null!==(t=o.current)&&void 0!==t&&null!==(t=t.parentElement)&&void 0!==t&&t.classList.contains("srfm-tab-content-advance")&&(r="advance"),r))}),[o]);var u=null!=e&&e.title?null==e?void 0:e.title.toLowerCase().replace(/[^a-zA-Z ]/g,"").replace(/\s+/g,"-"):"",d=null==i||null===(r=i.split("/"))||void 0===r?void 0:r.pop(),f=(0,z.applyFilters)("srfm.".concat(d,".").concat(s,".").concat(u,".before"),"",i),p=(0,z.applyFilters)("srfm.".concat(d,".").concat(s,".").concat(u),"",i);return React.createElement(v.PanelBody,ze({},e,{onToggle:function(){var e,t,r;"enabled"===srfm_blocks_info.collapse_panels&&function(e){for(var t=[],r=e.parentNode.firstChild;r;)1===r.nodeType&&r!==e&&r.classList.contains("is-opened")&&t.push(r),r=r.nextSibling;return t}(o.current).forEach((function(e){e.querySelector(".components-button").click()}));var n=!1;null==o||null===(e=o.current)||void 0===e||e.classList.forEach((function(e){e.includes("srfm-advance-panel-body")&&(n=e)}));var l="style";null!=o&&null!==(t=o.current)&&void 0!==t&&null!==(t=t.parentElement)&&void 0!==t&&t.classList.contains("srfm-tab-content-general")&&(l="general"),null!=o&&null!==(r=o.current)&&void 0!==r&&null!==(r=r.parentElement)&&void 0!==r&&r.classList.contains("srfm-tab-content-advance")&&(l="advance");var s=Fe(Fe({},a),{},Ve({},i,Fe(Fe({},null==a?void 0:a[i]),{},{selectedPanel:n,selectedTab:l}))),c=Se();c&&c.setItem("srfmSettingState",JSON.stringify(s))},ref:o,className:"srfm-advance-panel-body-".concat(u)}),f,n,p)}));var Ue=function(){return(0,P.useSelect)((function(e){var t;return{deviceType:(null===(t=e("core/editor"))||void 0===t?void 0:t.getDeviceType())||"Desktop"}}),[]).deviceType||""};let Ze={data:""},Ke=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ze,$e=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ye=/\/\*[^]*?\*\/| +/g,Xe=/\n+/g,Je=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?Je(a,i):i+"{"+Je(a,"k"==i[1]?"":t)+"}":"object"==typeof a?n+=Je(a,t?t.replace(/([^,])+/g,(e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Je.p?Je.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Qe={},et=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+et(e[r]);return t}return e},tt=(e,t,r,n,o)=>{let i=et(e),a=Qe[i]||(Qe[i]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(i));if(!Qe[a]){let t=i!==e?e:(e=>{let t,r,n=[{}];for(;t=$e.exec(e.replace(Ye,""));)t[4]?n.shift():t[3]?(r=t[3].replace(Xe," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(Xe," ").trim();return n[0]})(e);Qe[a]=Je(o?{["@keyframes "+a]:t}:t,r?"":"."+a)}let l=r&&Qe.g?Qe.g:null;return r&&(Qe.g=Qe[a]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(Qe[a],t,n,l),a};function rt(e){let t=this||{},r=e.call?e(t.p):e;return tt(r.unshift?r.raw?((e,t,r)=>e.reduce(((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Je(e,""):!1===e?"":e}return e+n+(null==i?"":i)}),""))(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,Ke(t.target),t.g,t.o,t.k)}rt.bind({g:1});let nt,ot,it,at=rt.bind({k:1});function lt(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let l=Object.assign({},i),s=l.className||o.className;r.p=Object.assign({theme:ot&&ot()},l),r.o=/ *go\d+/.test(s),l.className=rt.apply(r,n)+(s?" "+s:""),t&&(l.ref=a);let c=e;return e[0]&&(c=l.as||e,delete l.as),it&&c[0]&&it(l),nt(c,l)}return t?t(o):o}}var st=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,ct=(()=>{let e=0;return()=>(++e).toString()})(),ut=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),dt=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return dt(e,{type:e.toasts.find((e=>e.id===r.id))?1:0,toast:r});case 3:let{toastId:n}=t;return{...e,toasts:e.toasts.map((e=>e.id===n||void 0===n?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},ft=[],pt={toasts:[],pausedAt:void 0},ht=e=>{pt=dt(pt,e),ft.forEach((e=>{e(pt)}))},mt=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||ct()}))(t,e,r);return ht({type:2,toast:n}),n.id},vt=(e,t)=>mt("blank")(e,t);vt.error=mt("error"),vt.success=mt("success"),vt.loading=mt("loading"),vt.custom=mt("custom"),vt.dismiss=e=>{ht({type:3,toastId:e})},vt.remove=e=>ht({type:4,toastId:e}),vt.promise=(e,t,r)=>{let n=vt.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?st(t.success,e):void 0;return o?vt.success(o,{id:n,...r,...null==r?void 0:r.success}):vt.dismiss(n),e})).catch((e=>{let o=t.error?st(t.error,e):void 0;o?vt.error(o,{id:n,...r,...null==r?void 0:r.error}):vt.dismiss(n)})),e},new Map;var gt=at`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,bt=at`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,yt=at`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,_t=lt("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${gt} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${bt} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${yt} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,wt=at`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,Ct=lt("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${wt} 1s linear infinite;
`,xt=at`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,Et=at`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,St=lt("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${xt} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${Et} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,kt=lt("div")`
position: absolute;
`,Ot=lt("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,Rt=at`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,At=lt("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${Rt} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,Tt=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?J.createElement(At,null,t):t:"blank"===r?null:J.createElement(Ot,null,J.createElement(Ct,{...n}),"loading"!==r&&J.createElement(kt,null,"error"===r?J.createElement(_t,{...n}):J.createElement(St,{...n})))},Mt=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Nt=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,Pt=lt("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,It=lt("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`;J.memo((({toast:e,position:t,style:r,children:n})=>{let o=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=ut()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Mt(r),Nt(r)];return{animation:t?`${at(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${at(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=J.createElement(Tt,{toast:e}),a=J.createElement(It,{...e.ariaProps},st(e.message,e));return J.createElement(Pt,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof n?n({icon:i,message:a}):J.createElement(J.Fragment,null,i,a))})),function(e){Je.p=void 0,nt=e,ot=void 0,it=void 0}(J.createElement),rt`
z-index: 9999;
> * {
pointer-events: auto;
}
`;const Lt=window.wp.editor;function jt(e){return jt="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},jt(e)}function Dt(e,t){if(e){if("string"==typeof e)return Bt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bt(e,t):void 0}}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ht(e){return e?e.toLowerCase().replace(/[^a-zA-Z ]/g,"").replace(/\s+/g,"-"):""}function zt(e){if(e.current){var t=e.current.parentElement.closest(".components-panel__body");if(t&&t.querySelector(".components-panel__body-title"))return Ht(t.querySelector(".components-panel__body-title").textContent)}return null}var qt=["srfm/inline-button","srfm/page-break","srfm/separator","srfm/advanced-heading","srfm/image","srfm/icon","srfm/link","srfm/login"],Ft=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utm_medium";try{var n=new URL(e);return n.searchParams.set(r,t),n.toString()}catch(t){return console.error("Invalid URL:",t),e}};const Vt=function(e){var t=e.text;return t?React.createElement("p",{className:"components-base-control__help"},t):null};function Gt(e){return Gt="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},Gt(e)}function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach((function(t){Zt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zt(e,t,r){return(t=function(e){var t=function(e){if("object"!=Gt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $t(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$t(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 $t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Yt=function(e){var t,r=e.label,n=e.responsive,o=e.help,i=void 0!==o&&o,a=Ue(),l=Kt((0,b.useState)(!1),2),s=l[0],c=l[1],u=Kt((0,b.useState)(null),2),d=u[0],f=u[1],p=(0,b.useRef)(null),h=(0,P.select)("core/block-editor").getSelectedBlock,m=null===(t=h())||void 0===t?void 0:t.name.split("/").pop();(0,b.useEffect)((function(){f(zt(p))}),[m]);var g=(0,b.useCallback)((function(e){null!==(0,P.dispatch)("core/edit-post")&&(0,(0,P.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)(e),c(s)}),[]),_={desktop:React.createElement("svg",{width:"8",height:"7",viewBox:"0 0 8 7",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M7.33333 0H0.666667C0.298611 0 0 0.293945 0 0.65625V5.03125C0 5.39355 0.298611 5.6875 0.666667 5.6875H3.33333L3.11111 6.34375H2.11111C1.92639 6.34375 1.77778 6.49004 1.77778 6.67188C1.77778 6.85371 1.92639 7 2.11111 7H5.88889C6.07361 7 6.22222 6.85371 6.22222 6.67188C6.22222 6.49004 6.07361 6.34375 5.88889 6.34375H4.88889L4.66667 5.6875H7.33333C7.70139 5.6875 8 5.39355 8 5.03125V0.65625C8 0.293945 7.70139 0 7.33333 0ZM7.11111 4.8125H0.888889V0.875H7.11111V4.8125Z"})),tablet:React.createElement("svg",{width:"6",height:"7",viewBox:"0 0 6 7",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M5 0H1C0.446667 0 0 0.390833 0 0.875V6.125C0 6.60917 0.446667 7 1 7H5C5.55333 7 6 6.60917 6 6.125V0.875C6 0.390833 5.55333 0 5 0ZM3.66667 6.41667H2.33333V6.125H3.66667V6.41667ZM5.41667 5.54167H0.583333V0.875H5.41667V5.54167Z"})),mobile:React.createElement("svg",{width:"4",height:"7",viewBox:"0 0 4 7",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M3.33333 0H0.666667C0.297778 0 0 0.390833 0 0.875V6.125C0 6.60917 0.297778 7 0.666667 7H3.33333C3.70222 7 4 6.60917 4 6.125V0.875C4 0.390833 3.70222 0 3.33333 0ZM2.44444 6.41667H1.55556V6.125H2.44444V6.41667ZM3.61111 5.54167H0.388889V0.875H3.61111V5.54167Z"}))},w=[{name:(0,y.__)("Desktop","sureforms"),staticName:"Desktop",title:_.desktop,itemClass:"srfm-desktop-tab srfm-responsive-tabs"},{name:(0,y.__)("Tablet","sureforms"),staticName:"Tablet",title:_.tablet,itemClass:"srfm-tablet-tab srfm-responsive-tabs"},{name:(0,y.__)("Mobile","sureforms"),staticName:"Mobile",key:"mobile",title:_.mobile,itemClass:"srfm-mobile-tab srfm-responsive-tabs"}];if(!a)return null;var C=Ht(e.label),x=(0,z.applyFilters)("srfm.".concat(m,".").concat(d,".").concat(C,".before"),"",m),E=(0,z.applyFilters)("srfm.".concat(m,".").concat(d,".").concat(C),"",m);return React.createElement("div",{ref:p,className:"srfm-responsive-label-wrap"},x,r&&React.createElement("span",{className:"srfm-control-label"},r),!s&&n&&React.createElement(v.Button,{key:"srfm-responsive-common-button",className:"srfm-responsive-common-button",onClick:function(e){var t,r=e.target,n=null;"svg"===r.tagName&&(r=r.closest(".srfm-responsive-common-button")),r.closest(".srfm-typography-options.active")&&(n=".srfm-typography-options"),r.closest(".srfm-box-shadow-options.active")&&(n=".srfm-box-shadow-options");var o=null===(t=h())||void 0===t?void 0:t.name,i=Se("srfmSettingState"),a=r.closest(".srfm-inspector-tab"),l=r.closest(".components-panel__body.is-opened"),u="";l.classList&&0!==l.classList&&l.classList.forEach((function(e){e.includes("srfm-advance-panel-body")&&(u=e)}));var d="style";a.classList.contains("srfm-tab-content-general")&&(d="general"),a.classList.contains("srfm-tab-content-advance")&&(d="advance");var f=Ut(Ut({},i),{},Zt({},o,{selectedTab:d,selectedPanel:u,selectedSetting:n})),p=Se();p&&p.setItem("srfmSettingState",JSON.stringify(f)),c(!s)}},_[a.toLowerCase()]),s&&n&&React.createElement(v.ButtonGroup,{className:"srfm-range-control-responsive components-tab-panel__tabs","aria-label":(0,y.__)("Device","sureforms")},w.map((function(e){var t=e.name,r=e.staticName,n=e.key,o=e.title,i=e.itemClass;return React.createElement(v.Tooltip,{text:(0,y.sprintf)("%s",t),key:n},React.createElement(v.Button,{key:n,className:"components-button components-tab-panel__tabs-item ".concat(i).concat(r===a?" active-tab":""),"aria-pressed":a===r,onClick:function(){return g(r)}},o))}))),React.createElement(Vt,{text:i}),E)};var Xt=a(39380),Jt={};Xt.A&&Xt.A.locals&&(Jt.locals=Xt.A.locals);var Qt,er=0,tr={attributes:{id:"sureforms-editor-styles"}};tr.setAttributes=he(),tr.insert=fe().bind(null,"head"),tr.domAPI=ue(),tr.insertStyleElement=ve(),Jt.use=function(e){return tr.options=e||{},er++||(Qt=se()(Xt.A,tr)),Jt},Jt.unuse=function(){er>0&&! --er&&(Qt(),Qt=null)};const rr=Jt,nr=JSON.parse('{"name":"srfm/input","title":"Text","description":"Displays a SureForms Text Field","category":"sureforms","keywords":["text","input","custom","field","name"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string","default":""},"required":{"type":"boolean","default":false},"isUnique":{"type":"boolean","default":false},"duplicateMsg":{"type":"string","default":""},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Text Field"},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"textLength":{"type":"number","default":100},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"inputMask":{"type":"string","default":"none"},"customInputMask":{"type":"string","default":""},"readOnly":{"type":"boolean","default":false}}}'),or=JSON.parse('{"name":"srfm/email","title":"Email","description":"Displays a SureForms Email Field","category":"sureforms","keywords":["email","mail"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string","default":""},"required":{"type":"boolean","default":false},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Email"},"help":{"type":"string","default":""},"isUnique":{"type":"boolean","default":false},"duplicateMsg":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"confirmLabel":{"type":"string","default":"Confirm Email"},"isConfirmEmail":{"type":"boolean","default":false},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"readOnly":{"type":"boolean","default":false}}}'),ir=JSON.parse('{"name":"srfm/phone","title":"Phone Number","description":"Displays a SureForms Phone Field","category":"sureforms","keywords":["telephone","phone","mobile","field"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"required":{"type":"boolean"},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Phone Number"},"placeholder":{"type":"string"},"help":{"type":"string","default":""},"isUnique":{"type":"boolean","default":false},"duplicateMsg":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"autoCountry":{"type":"boolean","default":true},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),ar=JSON.parse('{"name":"srfm/textarea","title":"Textarea","description":"Displays a SureForms Textarea Field","category":"sureforms","keywords":["textarea","input","custom","field"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string"},"required":{"type":"boolean"},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Textarea"},"help":{"type":"string","default":""},"maxLength":{"type":"number","default":""},"rows":{"type":"number","default":4},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"isRichText":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false}}}'),lr=JSON.parse('{"name":"srfm/url","title":"URL","description":"Displays a SureForms URL Field","category":"sureforms","keywords":["url","link","website"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string"},"required":{"type":"boolean","default":false},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"URL"},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"readOnly":{"type":"boolean","default":false}}}'),sr=JSON.parse('{"name":"srfm/number","title":"Number","description":"Displays a SureForms Number Field","category":"sureforms","keywords":["number","input","custom","field"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"required":{"type":"boolean","default":false},"errorMsg":{"type":"string","default":""},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Number"},"help":{"type":"string","default":""},"formatType":{"type":"string","default":"us-style"},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"prefix":{"type":"string","default":""},"suffix":{"type":"string","default":""},"readOnly":{"type":"boolean","default":false}}}'),cr=JSON.parse('{"apiVersion":2,"name":"srfm/checkbox","title":"Checkbox","description":"Displays a SureForms Checkbox Field","category":"sureforms","keywords":["checkbox","toggle","checkout","engine"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Checkbox"},"required":{"type":"boolean"},"checked":{"type":"boolean","default":false},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),ur=JSON.parse('{"name":"srfm/address","title":"Address","description":"Displays a SureForms Address Field","category":"sureforms","keywords":["address","country","location","field"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Address"},"formId":{"type":"number","default":""},"help":{"type":"string","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),dr=JSON.parse('{"apiVersion":2,"name":"srfm/multi-choice","title":"Multiple Choice","description":"Displays a SureForms Multi-Choice Field","category":"sureforms","keywords":["multi-choice","quiz","multi","sureforms"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"required":{"type":"boolean"},"singleSelection":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"verticalLayout":{"type":"boolean"},"options":{"type":"array","default":[{"optionTitle":"Option 1","icon":"","image":""}]},"fieldWidth":{"type":"number","default":100},"choiceWidth":{"type":"number","default":50},"label":{"default":"Multi Choice","type":"string","selector":"input"},"help":{"type":"string","default":""},"style":{"type":"string","default":"buttons"},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"optionType":{"type":"string","default":"icon"}}}'),fr=JSON.parse('{"name":"srfm/dropdown","title":"Dropdown","description":"Displays a SureForms Dropdown Field","category":"sureforms","keywords":["select","dropdown","options","field"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"required":{"type":"boolean"},"multiSelect":{"type":"boolean","default":false},"minValue":{"type":"number"},"maxValue":{"type":"number"},"searchable":{"type":"boolean","default":true},"options":{"type":"array","default":[{"label":"Option 1","icon":""},{"label":"Option 2","icon":""}]},"fieldWidth":{"type":"number","default":100},"label":{"default":"Dropdown","type":"string"},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"placeholder":{"type":"string","default":"Select an option"},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),pr=JSON.parse('{"apiVersion":2,"name":"srfm/gdpr","title":"GDPR Agreement","description":"Displays a SureForms GDPR Agreement Field","category":"sureforms","keywords":["gdpr","compliance","checkbox","agreement"],"textdomain":"sureforms","supports":{"reusable":false,"html":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"I consent to have this website store my submitted information so they can respond to my inquiry."},"checked":{"type":"boolean","default":false},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),hr=JSON.parse('{"name":"srfm/inline-button","title":"Custom Button","description":"Displays a SureForms Custom Button","category":"sureforms","keywords":["inline submit","button","submit","inline","custom","custom button"],"textdomain":"sureforms","supports":{"reusable":false,"html":false,"multiple":false},"example":{"attributes":{"preview":true}},"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"fieldWidth":{"type":"number","default":100},"buttonText":{"type":"string","default":"Submit"},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false}}}');function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(0,z.applyFilters)("srfm.AllowedBlocks",["srfm/input","srfm/email","srfm/textarea","srfm/number","srfm/checkbox","srfm/gdpr","srfm/phone","srfm/address","srfm/dropdown","srfm/multi-choice","srfm/url","srfm/inline-button","srfm/signature"]);if(e)for(var r=0;r<t.length;r++)t[r]===e&&t.splice(r,1);return t},gr=function(e,t){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mr(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.")}()}((0,b.useState)(),2),n=r[0],o=r[1];return(0,b.useEffect)((function(){o(function(e,t){var r,n;return t||(null!==(r=null===(n=srfm_block_data)||void 0===n||null===(n=n.srfm_default_dynamic_block_option)||void 0===n?void 0:n[e])&&void 0!==r?r:"")}(e,t))}),[e,t]),{currentMessage:n,setCurrentMessage:o}};function br(e){var t;return{type:"string",default:null===(t=srfm_block_data)||void 0===t||null===(t=t.srfm_default_dynamic_block_option)||void 0===t?void 0:t[e]}}function yr(e){for(var t=[{entity:"&",char:"&"},{entity:"<",char:"<"}],r=0;r<t.length;r++)if(e.includes(t[r].entity)){var n=new RegExp(t[r].entity,"g");e=e.replace(n,t[r].char)}return e}var _r=function(e){return e.includes("|")};function wr(e){return wr="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},wr(e)}function Cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Er(e,t,r){return(t=function(e){var t=function(e){if("object"!=wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sr=xr(xr(xr({},{form_padding_top:{default:0},form_padding_right:{default:0},form_padding_bottom:{default:0},form_padding_left:{default:0},form_padding_unit:{default:"px"},form_padding_link:{default:!0},form_border_radius_top:{default:0},form_border_radius_right:{default:0},form_border_radius_bottom:{default:0},form_border_radius_left:{default:0},form_border_radius_unit:{default:"px"},form_border_radius_link:{default:!0}}),{instant_form_padding_top:{default:32},instant_form_padding_right:{default:32},instant_form_padding_bottom:{default:32},instant_form_padding_left:{default:32},instant_form_padding_unit:{default:"px"},instant_form_padding_link:{default:!0},instant_form_border_radius_top:{default:12},instant_form_border_radius_right:{default:12},instant_form_border_radius_bottom:{default:12},instant_form_border_radius_left:{default:12},instant_form_border_radius_unit:{default:"px"},instant_form_border_radius_link:{default:!0}}),{},{_srfm_submit_button_text:{default:(0,y.__)("Submit","sureforms")},first_page_label:{default:(0,y.__)("Page Break Label","sureforms")},next_button_text:{default:(0,y.__)("Next","sureforms")},back_button_text:{default:(0,y.__)("Back","sureforms")},primary_color:{default:"#111C44"},text_color:{default:"#1E1E1E"},text_color_on_primary:{default:"#FFFFFF"},form_container_width:{default:620},cover_color:{default:"#111C44"},bg_color:{default:"#ffffff"},gradient_type:{default:"basic"},bg_gradient_type:{default:"linear"},bg_gradient_angle:{default:90},bg_gradient_color_1:{default:"#FFC9B2"},bg_gradient_color_2:{default:"#C7CBFF"},bg_gradient_location_1:{default:0},bg_gradient_location_2:{default:100},bg_overlay_custom_size:{default:100},bg_overlay_custom_size_unit:{default:"%"},bg_image_size_custom:{default:100},bg_image_size_custom_unit:{default:"%"},bg_overlay_opacity:{default:1},bg_image_overlay_color:{default:"#FFFFFF75"},overlay_gradient_type:{default:"basic"},bg_overlay_gradient_type:{default:"linear"},bg_overlay_gradient_angle:{default:90},bg_overlay_gradient_color_1:{default:"#FFC9B2"},bg_overlay_gradient_color_2:{default:"#C7CBFF"},bg_overlay_gradient_location_1:{default:0},bg_overlay_gradient_location_2:{default:100}}),kr={input:xr(xr({},nr.attributes),{},{errorMsg:br("srfm_input_block_required_text"),duplicateMsg:br("srfm_input_block_unique_text")}),email:xr(xr({},or.attributes),{},{errorMsg:br("srfm_email_block_required_text"),duplicateMsg:br("srfm_email_block_unique_text")}),checkbox:xr(xr({},cr.attributes),{},{errorMsg:br("srfm_checkbox_block_required_text")}),address:xr({},ur.attributes),"multi-choice":xr(xr({},dr.attributes),{},{errorMsg:br("srfm_multi_choice_block_required_text")}),dropdown:xr(xr({},fr.attributes),{},{errorMsg:br("srfm_dropdown_block_required_text")}),phone:xr(xr({},ir.attributes),{},{errorMsg:br("srfm_phone_block_required_text"),duplicateMsg:br("srfm_phone_block_unique_text")}),textarea:xr(xr({},ar.attributes),{},{errorMsg:br("srfm_textarea_block_required_text")}),url:xr(xr({},lr.attributes),{},{errorMsg:br("srfm_url_block_required_text")}),number:xr(xr({},sr.attributes),{},{errorMsg:br("srfm_number_block_required_text")}),gdpr:xr(xr({},pr.attributes),{},{errorMsg:br("srfm_gdpr_block_required_text")}),"inline-button":xr({},hr.attributes),form_specific:Sr};function Or(e){return Or="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},Or(e)}function Rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(r),!0).forEach((function(t){Tr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tr(e,t,r){return(t=function(e){var t=function(e){if("object"!=Or(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Or(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nr(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 Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Pr=function(e){var t,r=Mr((0,b.useState)(null),2),n=r[0],o=r[1],i=(0,b.useRef)(null),a=e.onReset,l=e.attributeNames,s=e.setAttributes,c=e.isFormSpecific,u=e.isValueArray,d=void 0!==u&&u,f=Mr((0,b.useState)(!1),2),p=f[0],h=f[1],m=(0,P.select)("core/block-editor").getSelectedBlock,g=null===(t=m())||void 0===t?void 0:t.name.split("/").pop();(0,b.useEffect)((function(){o(zt(i))}),[g]);var _=(0,z.applyFilters)("srfm.blocksAttributes",kr),w=function(){var e,t=c?"form_specific":null===(e=m())||void 0===e?void 0:e.name.split("/").pop(),r=!1;return l&&void 0!==_[t]&&l.map((function(e){if(e){var n,o,i=void 0!==(null===(n=_[t][e])||void 0===n?void 0:n.default)?null===(o=_[t][e])||void 0===o?void 0:o.default:"";r=Ar(Ar({},r),{},Tr({},e,i))}return e})),r},C=function(){var t,r=w(),n=null===(t=m())||void 0===t?void 0:t.attributes,o=!0;if(c&&r&&l){if(d)return o=l.every((function(t,n){return r[t]===e.value[n]}));var i=l[0];return r[i]===e.value}return l.map((function(e){return null!=n&&n[e]&&(null==n?void 0:n[e])!==(null==r?void 0:r[e])&&(o=!1),e})),o}(),x="reset",E=(0,z.applyFilters)("srfm.".concat(g,".").concat(n,".").concat(x,".before"),"",g),S=(0,z.applyFilters)("srfm.".concat(g,".").concat(n,".").concat(x),"",g);return React.createElement(v.Tooltip,{text:(0,y.__)("Reset","sureforms"),key:"reset",ref:i},E,React.createElement(v.Button,{className:"srfm-reset",isSecondary:!0,isSmall:!0,onClick:function(e){var t;e.preventDefault(),t=w(),l&&l.map((function(e){return e&&s&&s(Tr({},e,null==t?void 0:t[e])),h(!p),e})),a&&a(t)},disabled:C},React.createElement(v.Dashicon,{icon:"image-rotate"})),S)},Ir=JSON.parse("{\"Tr\":\"<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0_15961_16933)'><rect width='24' height='24' fill='#D54407'/><path d='M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z' fill='white'/><path d='M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z' fill='white'/><path d='M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z' fill='white'/><path d='M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z' fill='white'/><path d='M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z' fill='white'/><path d='M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z' fill='white'/></g><defs><clipPath id='clip0_15961_16933'><rect width='24' height='24' fill='white'/></clipPath></defs></svg>\",\"BX\":\"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'><path d='M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z'></path></svg>\",\"Op\":\"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path fillRule='evenodd' clipRule='evenodd' d='M10.5 6C10.5 5.17157 11.1716 4.5 12 4.5C12.8284 4.5 13.5 5.17157 13.5 6C13.5 6.82843 12.8284 7.5 12 7.5C11.1716 7.5 10.5 6.82843 10.5 6ZM10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12ZM10.5 18C10.5 17.1716 11.1716 16.5 12 16.5C12.8284 16.5 13.5 17.1716 13.5 18C13.5 18.8284 12.8284 19.5 12 19.5C11.1716 19.5 10.5 18.8284 10.5 18Z' fill='#0F172A' /></svg>\"}");var Lr=a(50442);const jr=Lr.default||Lr;function Dr(e){var t=e.icon,r=e.label,n=e.text,o=e.tagFor,i=e.cssClass,a=e.tagsArray,l=e.setTargetData,s=jr(Ir.Op),c=[];return(0,z.applyFilters)("srfm.editorSmartTagList.editorTagsArray",a,o).forEach((function(e){c.push(function(e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((function(t){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Dt(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.")}()}(t,2),n=r[0];return{title:r[1],onClick:function(){e(n)}}}));return 0===n.length&&(n=[{title:(0,y.__)("No tags available","sureforms")}]),0!==r.length&&(n=[{title:r,isDisabled:!0,onclick:function(){return!1}}].concat(function(e){if(Array.isArray(e))return Bt(e)}(t=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Dt(t)||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.")}())),n}(l,e.tags,e.label))})),React.createElement(v.DropdownMenu,{icon:null!=t?t:s,className:null!=i?i:"srfm-scroll-dropdown",label:null!=r?r:(0,y.__)("Select Shortcodes","sureforms"),text:n,controls:c})}function Br(e){return Br="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},Br(e)}function Hr(e,t,r){return(t=function(e){var t=function(e){if("object"!=Br(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Br(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qr(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 qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Fr=function(e){var t,r=zr((0,b.useState)(null),2),n=r[0],o=r[1],i=(0,b.useRef)(null),a=zr((0,b.useState)(null==e?void 0:e.value),2),l=a[0],s=a[1];(0,b.useLayoutEffect)((function(){return rr.use(),function(){rr.unuse()}}),[]);var c=(0,P.useSelect)((function(e){return e("core/block-editor").getSelectedBlock()}),[]),u=null==c?void 0:c.name.split("/").pop();(0,b.useEffect)((function(){o(zt(i))}),[u]),(0,b.useEffect)((function(){s(null==e?void 0:e.value)}),[e]);var d=e.enableDynamicContent&&e.name?(0,z.applyFilters)("srfm.registerTextExtender","",null==c?void 0:c.name,e.name,e.dynamicContentType):null,f=function(){var t,r;if(!e.enableDynamicContent||!e.name)return!1;var n=null==c||null===(t=c.attributes)||void 0===t?void 0:t.dynamicContent;return!(!n||!0!==(null==n||null===(r=n[e.name])||void 0===r?void 0:r.enable))},p=function(t){if(e.name&&null!=e&&e.setAttributes)e.setAttributes(Hr({},e.name,t));else if(null!=e&&e.setAttributes){var r;null==e||e.setAttributes(Hr({},null==e||null===(r=e.data)||void 0===r?void 0:r.label,t))}null!=e&&e.onChange&&(null==e||e.onChange(t),s(t))},h=function(t){var r,n;null!=e&&e.onChange&&(null==e||e.onChange(t[null==e||null===(r=e.data)||void 0===r?void 0:r.label]),s(t[null==e||null===(n=e.data)||void 0===n?void 0:n.label]))},m=function(){var t;return React.createElement("div",{className:"srfm-control__header"},React.createElement(Yt,{label:null==e?void 0:e.label}),React.createElement("div",{className:"srfm-number-control__actions srfm-control__actions"},React.createElement(Pr,{onReset:h,value:l,attributeNames:[null==e||null===(t=e.data)||void 0===t?void 0:t.label],setAttributes:null==e?void 0:e.setAttributes,isFormSpecific:null==e?void 0:e.isFormSpecific})))},g=Ht(e.label),_=(0,z.applyFilters)("srfm.".concat(u,".").concat(n,".").concat(g,".before"),"",u),w=(0,z.applyFilters)("srfm.".concat(u,".").concat(n,".").concat(g),"",u),C=null!==(t=window.srfm_block_data)&&void 0!==t&&t.smart_tags_array?Object.entries(window.srfm_block_data.smart_tags_array):[];return React.createElement("div",{ref:i,className:"components-base-control"},_,React.createElement("div",{className:Ee()("components-base-control srfm-text-control srfm-size-type-field-tabs",f()?" srfm-text-control--open-dynamic-content":"",e.className)},"inline"!==(null==e?void 0:e.variant)&&(null==e?void 0:e.showHeaderControls)&&React.createElement(m,null),React.createElement("div",{className:Ee()("srfm-text-control__controls","srfm-text-control__controls-"+(null==e?void 0:e.variant))},!f()&&React.createElement(React.Fragment,null,"textarea"!==(null==e?void 0:e.variant)&&React.createElement(v.TextControl,{label:("inline"===(null==e?void 0:e.variant)||!("inline"===(null==e?void 0:e.variant)||null!=e&&e.showHeaderControls))&&(null==e?void 0:e.label),type:null==e?void 0:e.type,value:l,onChange:p,onBlur:function(t){null!=e&&e.onBlur&&e.onBlur(t)},disabled:null==e?void 0:e.disabled,autoComplete:null==e?void 0:e.autoComplete,readOnly:f(),placeholder:null==e?void 0:e.placeholder}),"textarea"===(null==e?void 0:e.variant)&&React.createElement(v.TextareaControl,{label:(null==e||!e.showHeaderControls)&&(null==e?void 0:e.label),value:l,onChange:p,autoComplete:null==e?void 0:e.autoComplete,readOnly:f()}),!0===(null==e?void 0:e.withSmartTagDropdown)&&React.createElement(Dr,{tagsArray:[{tags:C,label:(0,y.__)("Generic tags","sureforms")}],setTargetData:function(e){return p(l+e)}})),f()&&"inline"===(null==e?void 0:e.variant)&&React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("label",{className:"components-base-control__label"},e.label))),d),React.createElement(Vt,{text:e.help})),w)};Fr.defaultProps={label:"",type:"text",className:"",allowReset:!0,resetFallbackValue:"",placeholder:null,variant:"full-width",autoComplete:"off",showHeaderControls:!0,dynamicContentType:"url",enableDynamicContent:!1,help:!1,isFormSpecific:!1,withSmartTagDropdown:!1,disabled:!1};const Vr=Fr;var Gr=function(e){return(0,P.useSelect)((function(t){var r,n=t(g.store).getBlockParents(e),o=t(g.store).getBlocksByClientId(null==n?void 0:n[0]),i=t("core/editor").getCurrentPostId();return(null==o||null===(r=o[0])||void 0===r||null===(r=r.attributes)||void 0===r?void 0:r.id)||i}))};const Wr=function(e){var t=e.help,r=e.setAttributes,n=e.block_id;return""!==t?React.createElement(g.RichText,{tagName:"label",value:t,onChange:function(e){r({help:yr(e)})},className:"srfm-description",multiline:!1,id:n,allowedFormats:[]}):null};var Ur=function(e){var t=e.attributes,r=e.blockID,n=e.setAttributes,o=t.label,i=t.placeholder,a=t.required,l=t.defaultValue,s=t.help,c=t.readOnly,u=a?" srfm-required":"",d="input";return React.createElement(React.Fragment,null,React.createElement(g.RichText,{tagName:"label",value:o,onChange:function(e){n({label:yr(e)})},className:"srfm-block-label".concat(u),multiline:!1,id:r,allowedFormats:[]}),React.createElement(Wr,{help:s,setAttributes:n,block_id:r}),React.createElement("div",{className:"srfm-block-wrap".concat(c?" srfm-read-only":"")},React.createElement("input",{id:"srfm-".concat(d,"-confirm-").concat(r),type:"text",value:l,className:"srfm-input-common srfm-input-".concat(d),placeholder:i,required:a,readOnly:c})))},Zr=a(44676),Kr={};Zr.A&&Zr.A.locals&&(Kr.locals=Zr.A.locals);var $r,Yr=0,Xr={attributes:{id:"sureforms-editor-styles"}};Xr.setAttributes=he(),Xr.insert=fe().bind(null,"head"),Xr.domAPI=ue(),Xr.insertStyleElement=ve(),Kr.use=function(e){return Xr.options=e||{},Yr++||($r=se()(Zr.A,Xr)),Kr},Kr.unuse=function(){Yr>0&&! --Yr&&($r(),$r=null)};const Jr=Kr;var Qr=function(e,t,r){var n=0;if(r){var o,i=Ue();n=(e||t.data[i.toLowerCase()].value)&&null!==(o=t.data[i.toLowerCase()])&&void 0!==o&&o.max?t.data[i.toLowerCase()].max:t.max}else n=e&&t.limitMax?t.limitMax[e]:t.max;return n},en=function(e,t,r){var n=0;if(r){var o,i=Ue();n=(e||t.data[i.toLowerCase()].value)&&null!==(o=t.data[i.toLowerCase()])&&void 0!==o&&o.min?t.data[i.toLowerCase()].min:t.min}else n=e&&t.limitMin?t.limitMin[e]:t.min;return n};function tn(e){return tn="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},tn(e)}function rn(e,t,r){return(t=function(e){var t=function(e){if("object"!=tn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var on=!!v.__experimentalNumberControl,an=function(e){var t,r,n,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nn(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nn(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.")}()}((0,b.useState)(null),2),i=o[0],a=o[1],l=(0,b.useRef)(null);(0,b.useLayoutEffect)((function(){return Jr.use(),function(){Jr.unuse()}}),[]);var s=null===(t=(0,(0,P.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name.split("/").pop();(0,b.useEffect)((function(){a(zt(l))}),[s]);var c=e.withInputField,u=e.isShiftStepEnabled,d=Qr(null===(r=e.unit)||void 0===r?void 0:r.value,e),f=en(null===(n=e.unit)||void 0===n?void 0:n.value,e),p=isNaN(null==e?void 0:e.value)?"":null==e?void 0:e.value,h=[{name:(0,y.__)("Pixel","sureforms"),unitValue:"px"},{name:(0,y.__)("Em","sureforms"),unitValue:"em"}];e.units&&(h=e.units);var m,g=function(t){var r=parseFloat(t);e.setAttributes&&e.setAttributes(rn({},e.data.label,r)),null!=e&&e.onChange&&e.onChange(r)},_=Ht(e.label),w=(0,z.applyFilters)("srfm.".concat(s,".").concat(i,".").concat(_,".before"),"",s),C=(0,z.applyFilters)("srfm.".concat(s,".").concat(i,".").concat(_),"",s),x=function(e){return isNaN(e)||Number(e)%1==0?1:.1};return React.createElement("div",{ref:l,className:"components-base-control"},w,React.createElement("div",{className:"srfm-range-control srfm-size-type-field-tabs"},React.createElement("div",{className:"srfm-control__header"},React.createElement(Yt,{label:e.label,responsive:e.responsive}),React.createElement("div",{className:"srfm-range-control__actions srfm-control__actions"},(null==e?void 0:e.allowReset)&&React.createElement(Pr,{onReset:function(t){var r,n,o,i=rn({},e.data.label,t[null==e||null===(r=e.data)||void 0===r?void 0:r.label]);null!=e&&e.onChange&&(null==e||e.onChange(t[null==e||null===(n=e.data)||void 0===n?void 0:n.label])),e.displayUnit&&(i[e.unit.label]=t[null==e||null===(o=e.unit)||void 0===o?void 0:o.label]),null!=e&&e.setAttributes&&e.setAttributes(i)},attributeNames:[e.data.label,e.displayUnit?e.unit.label:null].filter((function(e){return null!=e})),setAttributes:null==e?void 0:e.setAttributes,isFormSpecific:null==e?void 0:e.isFormSpecific,isValueArray:!0,value:[null==e?void 0:e.value,e.displayUnit?e.unit.value:null].filter((function(e){return null!=e}))}),e.displayUnit&&React.createElement(v.ButtonGroup,{className:"srfm-control__units","aria-label":(0,y.__)("Select Units","sureforms")},(m=[],h.map((function(t){return m.push(React.createElement(v.Tooltip,{text:(0,y.sprintf)((0,y.__)("%s units","sureforms"),t.name),key:t.name},React.createElement(v.Button,{key:t.unitValue,className:"srfm-range-control__units--"+t.name,isSmall:!0,isPrimary:e.unit.value===t.unitValue,isSecondary:e.unit.value!==t.unitValue,"aria-pressed":e.unit.value===t.unitValue,"aria-label":(0,y.sprintf)((0,y.__)("%s units","sureforms"),t.name),onClick:function(){return r=t.unitValue,n=rn({},e.unit.label,r),d=parseFloat(Qr(r,e)),f=parseFloat(en(r,e)),e.value>d?(n[e.data.label]=d,null!=e&&e.onChange&&e.onChange(d)):e.value<f&&(n[e.data.label]=f,null!=e&&e.onChange&&e.onChange(f)),void(null!=e&&e.setAttributes&&e.setAttributes(n));var r,n}},t.unitValue)))})),m)))),React.createElement("div",{className:"srfm-range-control__mobile-controls"},React.createElement(v.RangeControl,{value:p,onChange:g,withInputField:!1,allowReset:!1,max:d,min:f,step:(null==e?void 0:e.step)||x(p),initialPosition:p,marks:(null==e?void 0:e.marks)||!1}),c&&on&&React.createElement(v.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:u,max:d,min:f,onChange:g,value:p,step:(null==e?void 0:e.step)||x(p)})),React.createElement(Vt,{text:e.help})),C)};an.defaultProps={label:(0,y.__)("Margin","sureforms"),className:"",allowReset:!0,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,resetFallbackValue:"",placeholder:null,unit:["px","em"],displayUnit:!0,responsive:!1,help:!1,marks:!1,isFormSpecific:!1};const ln=an;function sn(e){return function(e){if(Array.isArray(e))return cn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return cn(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cn(e,t):void 0}}(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 cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var un=function(e){return e.reduce((function(e,t){var r;if(null!=t&&null!==(r=t.attributes)&&void 0!==r&&r.block_id&&t.name.includes("srfm")&&(e.blockIds.push(t.attributes.block_id),e.clientIds.push(t.clientId)),t.innerBlocks){var n=un(t.innerBlocks),o=n.blockIds,i=n.clientIds;e.blockIds=[].concat(sn(e.blockIds),sn(o)),e.clientIds=[].concat(sn(e.clientIds),sn(i))}return e}),{blockIds:[],clientIds:[]})};const dn=function(e){return function(t){var r=t.setAttributes,n=t.clientId,o=t.name,i=t.attributes.block_id,a=t.attributes;return(0,b.useEffect)((function(){var e,t=n.substr(0,8),l={block_id:t},s=null===(e=(0,P.select)("core/editor"))||void 0===e?void 0:e.getBlocks(),c=s?un(s):{blockIds:[],clientIds:[]},u=c.blockIds,d=c.clientIds,f=function(e,t,r){return e.filter((function(e){return e===t})).length>1&&r===e.lastIndexOf(t)}(u,i,d.indexOf(n));f&&(!qt.includes(o)&&null!=a&&a.slug&&(l.slug=""),(0,z.hasAction)("srfm.duplicateBlock")&&(0,z.doAction)("srfm.duplicateBlock",i,t)),"not_set"!==i&&"0"!==i&&i&&!f||r(l)}),[n]),React.createElement(e,t)}},fn=window.wp.compose,pn=function(e){var t,r,n=e.tooltipHeading,o=void 0===n?"":n,i=e.tooltipContent,a=void 0===i?"":i,l=e.tooltipPosition,s=void 0===l?"bottom":l,c=e.utmMedium,u=void 0===c?"":c;return React.createElement("div",{className:"srfm-tooltip"},React.createElement("span",{className:"srfm-premium-badge-text"},React.createElement("span",{className:"srfm-premium-text-wrapper"}," ",(0,y.__)("Premium","sureforms")," ")),React.createElement("div",{className:"tooltip-wrap ".concat(s)},React.createElement("div",{className:"tooltip-content"},React.createElement("div",{className:"tooltip-text"},React.createElement("h3",null,o),React.createElement("p",null,a)),React.createElement("a",{target:"_blank",href:Ft((null===(t=srfm_admin)||void 0===t?void 0:t.pricing_page_url)||(null===(r=srfm_admin)||void 0===r?void 0:r.sureforms_pricing_page),u),rel:"noreferrer"},(0,y.__)("Upgrade","sureforms"))),React.createElement("i",null)))},hn=window.wp.primitives,mn=(0,J.createElement)(hn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,J.createElement)(hn.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),vn=(0,J.createElement)(hn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,J.createElement)(hn.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));function gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var bn=function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gn(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gn(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.")}()}((0,b.useState)(!1),2),t=e[0],r=e[1];return React.createElement("div",{className:"srfm-panel-preview"},React.createElement("div",{className:"components-panel__body",onClick:function(){r(!t)}},React.createElement("h2",{className:"components-panel__body-title"}," ",(0,y.__)("Conditional Logic","sureforms")," "),React.createElement(pn,{tooltipHeading:(0,y.__)("Unlock Conditional Logic Editor","sureforms"),tooltipContent:(0,y.__)("Upgrade to the SureForms Starter Plan to create dynamic forms that adapt based on user input, offering a personalised and efficient form experience.","sureforms"),tooltipPosition:"bottom",utmMedium:"editor_blocks_conditional_logic"}),t?vn:mn),t?React.createElement("div",{className:"components-panel__body-content"},React.createElement(v.ToggleControl,{label:(0,y.__)("Enable Conditional Logic","sureforms"),checked:!1,disabled:!0}),React.createElement("div",{className:"srfm-show-hide-select"},React.createElement(v.SelectControl,{value:"show",disabled:!0,options:[{value:"show",label:(0,y.__)("Show","sureforms")},{value:"hide",label:(0,y.__)("Hide","sureforms")}]}),React.createElement("p",null,(0,y.__)("this field if","sureforms"))),React.createElement(v.Button,{variant:"secondary",style:{marginBottom:"18px"},disabled:!0},(0,y.__)("Configure Conditions","sureforms"))):null)};const yn=function(e){var t,r=e.attributes,n=e.setAttributes,o=(0,z.applyFilters)("srfm.conditional_logic.tab_advance",r,n),i=srfm_block_data.is_pro_active,a=!(!(t=o)||"object"!==jt(t))&&Symbol.for("react.element")===t.$$typeof;return React.createElement(React.Fragment,null,i&&a?o:React.createElement(bn,null))};var _n=function(e,t){return(0,z.applyFilters)("srfm.block.attributes.panel.body",e,t)};const wn=(0,fn.compose)(dn)((function(e){var t=e.clientId,r=e.attributes,n=e.setAttributes,o=r.help,i=r.required,a=r.block_id,l=r.defaultValue,s=r.errorMsg,c=r.textLength,u=r.isUnique,d=r.duplicateMsg,f=r.formId,p=r.preview,h=r.className,m=r.inputMask,_=r.customInputMask,w=r.readOnly,C=Gr(t);(0,b.useEffect)((function(){f!==C&&n({formId:C})}),[f,n,C]);var x=gr("srfm_input_block_required_text",s),E=x.currentMessage,S=x.setCurrentMessage,k=gr("srfm_input_block_unique_text",d),O=k.currentMessage,R=k.setCurrentMessage;if(p){var A=srfm_fields_preview.input_preview;return React.createElement(H,{fieldName:A})}var T=[{id:"input-pattern",component:React.createElement(v.SelectControl,{label:(0,y.__)("Input Pattern","sureforms"),value:m,options:[{label:(0,y.__)("None","sureforms"),value:"none"},{label:(0,y.__)("(###) ###-####","sureforms"),value:"(###) ###-####"},{label:(0,y.__)("(##) ####-####","sureforms"),value:"(##) ####-####"},{label:(0,y.__)("27/08/2024","sureforms"),value:"dd/mm/yyyy"},{label:(0,y.__)("23:59:59","sureforms"),value:"hh:mm:ss"},{label:(0,y.__)("27/08/2024 23:59:59","sureforms"),value:"dd/mm/yyyy hh:mm:ss"},{label:(0,y.__)("Custom","sureforms"),value:"custom-mask"}],onChange:function(e){n({inputMask:e})}})},{id:"custom-mask",component:"custom-mask"===m?React.createElement(Vr,{label:(0,y.__)("Custom Mask","sureforms"),value:_,data:{value:_,label:"customInputMask"},onChange:function(e){return n({customInputMask:e})},help:React.createElement(React.Fragment,null,(0,y.__)("Please check the documentation to manage custom input pattern ","sureforms"),React.createElement(v.ExternalLink,{href:"https://sureforms.com/docs/input-pattern",target:"_blank",rel:"noreferrer",className:"srfm-block-url"},(0,y.__)("here","sureforms")))}):null},{id:"default-value",component:React.createElement(Vr,{label:(0,y.__)("Default Value","sureforms"),className:"srfm-with-dropdown",value:l,withSmartTagDropdown:!0,data:{value:l,label:"defaultValue"},onChange:function(e){return n({defaultValue:e})}})},{id:"read-only",component:l?React.createElement(v.ToggleControl,{label:(0,y.__)("Read Only","sureforms"),checked:w,onChange:function(e){return n({readOnly:e})}}):null},{id:"required",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:i,onChange:function(e){return n({required:e})}})},{id:"error-message",component:i?React.createElement(Vr,{label:(0,y.__)("Error Message","sureforms"),data:{value:s,label:"errorMsg"},value:E,onChange:function(e){S(e),n({errorMsg:e})}}):null},{id:"unique",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Validate as Unique","sureforms"),checked:u,onChange:function(e){return n({isUnique:e})}})},{id:"unique-message",component:u?React.createElement(Vr,{label:(0,y.__)("Validation Message for Duplicate ","sureforms"),value:O,data:{value:d,label:"duplicateMsg"},onChange:function(e){R(e),n({duplicateMsg:e})}}):null},{id:"help-text",component:React.createElement(Vr,{label:(0,y.__)("Help Text","sureforms"),value:o,data:{value:o,label:"help"},onChange:function(e){return n({help:e})}})},{id:"max-text-length",component:React.createElement(ln,{label:(0,y.__)("Maximum Text Length","sureforms"),displayUnit:!1,value:c,min:0,max:1e3,data:{value:c,label:"textLength"},onChange:function(e){return n({textLength:Number(e)})}})}],M=_n(T,e);return React.createElement("div",{className:h},React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},M.map((function(e){return e.component})))),React.createElement(Le,Be,React.createElement(yn,{setAttributes:n,attributes:r})))),React.createElement(React.Fragment,null,React.createElement(Ur,{blockID:a,setAttributes:n,attributes:r}),React.createElement("div",{className:"srfm-error-wrap"})))}));var Cn=nr.name,xn={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)},edit:wn,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),null}},En=a(62531),Sn={};En.A&&En.A.locals&&(Sn.locals=En.A.locals);var kn,On=0,Rn={attributes:{id:"sureforms-editor-styles"}};Rn.setAttributes=he(),Rn.insert=fe().bind(null,"head"),Rn.domAPI=ue(),Rn.insertStyleElement=ve(),Sn.use=function(e){return Rn.options=e||{},On++||(kn=se()(En.A,Rn)),Sn},Sn.unuse=function(){On>0&&! --On&&(kn(),kn=null)};const An=Sn;var Tn=a(5556),Mn=a.n(Tn);function Nn(e){return Nn="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},Nn(e)}function Pn(e,t,r){return(t=function(e){var t=function(e){if("object"!=Nn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Nn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ln={label:Mn().string,layout:Mn().string,options:Mn().array,data:Mn().object,setAttributes:Mn().func,onChange:Mn().func,help:Mn().string};function jn(e){var t,r=e.layout,n=e.label,o=e.options,i=e.data,a=e.setAttributes,l=e.onChange,s=e.help,c=e.children,u=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?In(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.")}()}((0,b.useState)(null),2),d=u[0],f=u[1],p=(0,b.useRef)(null);(0,b.useLayoutEffect)((function(){return An.use(),function(){An.unuse()}}),[]);var h=null===(t=(0,(0,P.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name.split("/").pop();(0,b.useEffect)((function(){f(zt(p))}),[h]);var m=Ht(n),g=(0,z.applyFilters)("srfm.".concat(h,".").concat(d,".").concat(m,".before"),"",h),y=(0,z.applyFilters)("srfm.".concat(h,".").concat(d,".").concat(m),"",h),_=(0,z.applyFilters)("srfm.".concat(h,".").concat(d,".").concat(m,".options"),o,h),w=(0,z.applyFilters)("srfm.".concat(h,".").concat(d,".").concat(m,".children"),c,h);return React.createElement("div",{ref:p,className:"srfm-select-control srfm-select-control--layout-".concat(r)},g,c?React.createElement(v.SelectControl,{label:n,value:i.value,onChange:function(e){return l?l(e):a(Pn({},i.label,e))},help:s},w):React.createElement(v.SelectControl,{label:n,value:i.value,onChange:function(e){return l?l(e):a(Pn({},i.label,e))},options:_,help:s}),y)}jn.propTypes=Ln,jn.defaultProps={layout:"inline",onChange:null};var Dn=a(79810),Bn={};Dn.A&&Dn.A.locals&&(Bn.locals=Dn.A.locals);var Hn,zn=0,qn={attributes:{id:"sureforms-editor-styles"}};qn.setAttributes=he(),qn.insert=fe().bind(null,"head"),qn.domAPI=ue(),qn.insertStyleElement=ve(),Bn.use=function(e){return qn.options=e||{},zn++||(Hn=se()(Dn.A,qn)),Bn},Bn.unuse=function(){zn>0&&! --zn&&(Hn(),Hn=null)};const Fn=Bn;var Vn=a(3942),Gn={};Vn.A&&Vn.A.locals&&(Gn.locals=Vn.A.locals);var Wn,Un=0,Zn={attributes:{id:"sureforms-editor-styles"}};Zn.setAttributes=he(),Zn.insert=fe().bind(null,"head"),Zn.domAPI=ue(),Zn.insertStyleElement=ve(),Gn.use=function(e){return Zn.options=e||{},Un++||(Wn=se()(Vn.A,Zn)),Gn},Gn.unuse=function(){Un>0&&! --Un&&(Wn(),Wn=null)};const Kn=Gn;function $n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Yn={disabledTopSpace:Mn().bool};function Xn(e){var t,r=e.disabledTopSpace,n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$n(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.")}()}((0,b.useState)(null),2),o=n[0],i=n[1],a=(0,b.useRef)(null);(0,b.useLayoutEffect)((function(){return Kn.use(),function(){Kn.unuse()}}),[]);var l=null===(t=(0,(0,P.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name.split("/").pop();(0,b.useEffect)((function(){i(zt(a))}),[l]);var s="separator",c=(0,z.applyFilters)("srfm.".concat(l,".").concat(o,".").concat(s,".before"),"",l),u=(0,z.applyFilters)("srfm.".concat(l,".").concat(o,".").concat(s),"",l);return React.createElement("div",{ref:a},c,React.createElement("div",{className:"srfm-separator ".concat(r?"srfm-separator--removed-top-space":"")}),u)}function Jn(e){return Jn="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},Jn(e)}function Qn(e,t,r){return(t=function(e){var t=function(e){if("object"!=Jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Xn.propTypes=Yn,Xn.defaultProps={disabledTopSpace:!1};var to=function(e){var t,r,n,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eo(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eo(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.")}()}((0,b.useState)(null),2),i=o[0],a=o[1],l=(0,b.useRef)(null);(0,b.useLayoutEffect)((function(){return Fn.use(),function(){Fn.unuse()}}),[]);var s=null===(t=(0,(0,P.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name.split("/").pop();(0,b.useEffect)((function(){a(zt(l))}),[s]);var c=(0,P.useSelect)((function(){return(0,P.select)("core/block-editor").getSelectedBlock()}),[]),u=e.enableDynamicContent&&e.name?wp.hooks.applyFilters("srfm.registerTextExtender","",null==c?void 0:c.name,e.name,e.dynamicContentType):null,d=function(){var t,r;if(!e.enableDynamicContent||!e.name)return!1;var n=null==c||null===(t=c.attributes)||void 0===t?void 0:t.dynamicContent;return!(!n||!0!==(null==n||null===(r=n[e.name])||void 0===r?void 0:r.enable))},f=e.isShiftStepEnabled,p=Qr(null===(r=e.unit)||void 0===r?void 0:r.value,e),h=en(null===(n=e.unit)||void 0===n?void 0:n.value,e),m=isNaN(null==e?void 0:e.value)?"":null==e?void 0:e.value,g=[{name:(0,y.__)("Pixel","sureforms"),unitValue:"px"},{name:(0,y.__)("Em","sureforms"),unitValue:"em"}];e.units&&(g=e.units);var _,w=function(t){var r=parseFloat(t);e.setAttributes&&e.setAttributes(Qn({},e.data.label,r)),null!=e&&e.onChange&&e.onChange(r)},C=function(t){var r,n;null!=e&&e.onChange&&(null==e||e.onChange(t[null==e||null===(r=e.data)||void 0===r?void 0:r.label])),e.displayUnit&&x(t[null==e||null===(n=e.unit)||void 0===n?void 0:n.label])},x=function(t){e.setAttributes(Qn({},e.unit.label,t)),p=Qr(t,e),h=en(t,e),e.value>p&&w(p),e.value<h&&w(h)},E=function(){return React.createElement("div",{className:"srfm-control__header"},React.createElement("div",{className:"srfm-number-control__actions srfm-control__actions"},React.createElement(Pr,{onReset:C,attributeNames:[e.data.label,!!e.displayUnit&&e.unit.label],setAttributes:e.setAttributes}),e.displayUnit&&React.createElement(v.ButtonGroup,{className:"srfm-control__units","aria-label":(0,y.__)("Select Units","sureforms")},(t=[],g.map((function(r){return t.push(React.createElement(v.Tooltip,{text:(0,y.sprintf)((0,y.__)("%s units","sureforms"),r.name),key:r.name},React.createElement(v.Button,{key:r.unitValue,className:"srfm-number-control__units--"+r.name,isSmall:!0,isPrimary:e.unit.value===r.unitValue,isSecondary:e.unit.value!==r.unitValue,"aria-pressed":e.unit.value===r.unitValue,"aria-label":(0,y.sprintf)((0,y.__)("%s units","sureforms"),r.name),onClick:function(){return x(r.unitValue)}},r.unitValue)))})),t))));var t},S=e.inlineControl?"inline":"full-width",k=Ht(null==e?void 0:e.label),O=(0,z.applyFilters)("srfm.".concat(s,".").concat(i,".").concat(k,".before"),"",s),R=(0,z.applyFilters)("srfm.".concat(s,".").concat(i,".").concat(k),"",s);return React.createElement("div",{ref:l,className:"components-base-control srfm-number-control srfm-size-type-field-tabs".concat(d()?" srfm-text-control--open-dynamic-content":"")},O,e.showControlHeader&&React.createElement(E,null),React.createElement("div",{className:Ee()("srfm-number-control__mobile-controls","srfm-number-control__"+S)},React.createElement(Yt,{label:e.label,responsive:e.responsive}),!d()&&React.createElement(React.Fragment,null,React.createElement(v.__experimentalNumberControl,{labelPosition:"edge",disabled:e.disabled,isShiftStepEnabled:f,max:p,min:h,onChange:w,value:m,step:(null==e?void 0:e.step)||(_=m,isNaN(_)||Number(_)%1==0?1:.1),required:null==e?void 0:e.required,readOnly:d()})),u),React.createElement(Vt,{text:e.help}),d()&&React.createElement(Xn,null),R)};to.defaultProps={label:(0,y.__)("Margin","sureforms"),className:"",allowReset:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,resetFallbackValue:"",placeholder:null,unit:["px","em"],displayUnit:!0,responsive:!1,showControlHeader:!0,inlineControl:!0,dynamicContentType:"text",enableDynamicContent:!1,help:!1};const ro=to;var no=function(e){var t=e.attributes,r=e.blockID,n=e.setAttributes,o=t.label,i=t.placeholder,a=t.required,l=t.defaultValue,s=t.minValue,c=t.maxValue,u=t.help,d=t.prefix,f=t.suffix,p=t.readOnly,h=a?" srfm-required":"",m="number";return React.createElement(React.Fragment,null,React.createElement(g.RichText,{tagName:"label",value:o,onChange:function(e){n({label:yr(e)})},className:"srfm-block-label".concat(h),multiline:!1,id:r,allowedFormats:[]}),React.createElement(Wr,{help:u,setAttributes:n,block_id:r}),React.createElement("div",{className:"srfm-block-wrap".concat(p?" srfm-read-only":"")},React.createElement("div",{className:"srfm-input-content"},d&&React.createElement("span",{className:"srfm-number-prefix"}," ",d," "),React.createElement("input",{className:"srfm-input-common srfm-input-".concat(m),id:"srfm-".concat(m,"-").concat(r),type:"text",defaultValue:l,value:l,readOnly:!0,placeholder:i,required:a,min:s,max:c}),f&&React.createElement("span",{className:"srfm-number-suffix"}," ",f," "))))};function oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var io=function(e,t){if(!e)return"";if(1===(e=e.replace(/(?!^-)[^0-9,.-]+/g,"")).length&&e.startsWith("-"))return e;if(e.endsWith(".")||e.endsWith(","))return e;var r,n="eu-style"===t?",":".",o="";2===(r=e.split(n)).length&&r[1].includes("0")&&(o=e.split(n)[1]);var i="",a={style:"decimal",maximumFractionDigits:20};if("eu-style"===t){var l=parseFloat(e.replace(/\./g,"").replace(",","."));i=new Intl.NumberFormat("de-DE",a).format(l)}else i=new Intl.NumberFormat("en-US",a).format(parseFloat(e.replace(/,/g,"")));return o&&(i=i.split(n)[0]+n+o),"NaN"===i?"":i};const ao=(0,fn.compose)(dn)((function(e){var t=e.attributes,r=e.setAttributes,n=e.clientId,o=t.help,i=t.required,a=t.block_id,l=t.defaultValue,s=t.minValue,c=t.maxValue,u=t.errorMsg,d=t.preview,f=t.formatType,p=t.formId,h=t.className,m=t.prefix,_=t.suffix,w=t.readOnly,C=Gr(n),x=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oo(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oo(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.")}()}((0,b.useState)(!1),2),E=x[0],S=x[1];(0,b.useEffect)((function(){p!==C&&r({formId:C})}),[p,C]);var k=gr("srfm_number_block_required_text",u),O=k.currentMessage,R=k.setCurrentMessage;if(d){var A=srfm_fields_preview.number_preview;return React.createElement(H,{fieldName:A})}var T=[{id:"default-value",component:React.createElement(Vr,{label:(0,y.__)("Default Value","sureforms"),displayUnit:!1,data:{value:l,label:"defaultValue"},value:l,setAttributes:function(e){r({defaultValue:io(e.defaultValue,f)})},showControlHeader:!1})},{id:"read-only",component:l?React.createElement(v.ToggleControl,{label:(0,y.__)("Read Only","sureforms"),checked:w,onChange:function(e){return r({readOnly:e})}}):null},{id:"prefix",component:React.createElement(Vr,{label:(0,y.__)("Prefix Label","sureforms"),value:m,data:{value:m,label:"prefix"},onChange:function(e){return r({prefix:e})}})},{id:"suffix",component:React.createElement(Vr,{label:(0,y.__)("Suffix Label","sureforms"),value:_,data:{value:_,label:"suffix"},onChange:function(e){return r({suffix:e})}})},{id:"required",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:i,onChange:function(e){return r({required:e})}})},{id:"error-message",component:i&&React.createElement(Vr,{label:(0,y.__)("Error Message","sureforms"),data:{value:u,label:"errorMsg"},value:O,onChange:function(e){R(e),r({errorMsg:e})}})},{id:"number-format",component:React.createElement(jn,{label:(0,y.__)("Number Format","sureforms"),data:{value:f,label:"formatType"},setAttributes:function(e){r(e),r({defaultValue:""})},options:[{label:(0,y.__)("US Style (Eg: 9,999.99)","sureforms"),value:"us-style"},{label:(0,y.__)("EU Style (Eg: 9.999,99)","sureforms"),value:"eu-style"}]})},{id:"min-value",component:React.createElement(ro,{label:(0,y.__)("Minimum Value","sureforms"),displayUnit:!1,data:{value:s,label:"minValue"},value:s,onChange:function(e){e>=c?(S(!0),r({minValue:0})):(S(!1),r({minValue:e}))},showControlHeader:!1})},{id:"max-value",component:React.createElement(ro,{label:(0,y.__)("Maximum Value","sureforms"),displayUnit:!1,data:{value:c,label:"maxValue"},value:c,onChange:function(e){e<=s?(S(!0),r({maxValue:Number(s)+1})):(S(!1),r({maxValue:e}))},showControlHeader:!1})},{id:"help-text-note",component:React.createElement(React.Fragment,null,E&&React.createElement("p",{className:"srfm-min-max-error-styles"},(0,y.__)("Please check the Minimum and Maximum value","sureforms")),React.createElement("p",{className:"components-base-control__help"},(0,y.__)("Note: Maximum value should always be greater than minimum value","sureforms")))},{id:"help-text",component:React.createElement(Vr,{label:(0,y.__)("Help Text","sureforms"),value:o,data:{value:o,label:"help"},onChange:function(e){return r({help:e})}})}],M=_n(T,e);return React.createElement("div",{className:h},React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},M.map((function(e){return e.component})))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:r,attributes:t})))),React.createElement(no,{attributes:t,blockID:a,formatNumber:io,setAttributes:r}),React.createElement("div",{className:"srfm-error-wrap"}))}));var lo=sr.name,so={icon:function(e){return oe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2.873 11.297V4.142H1.699L0 5.379v1.137l1.64-1.18h.06v5.961h1.174Zm3.213-5.09v-.063c0-.618.44-1.169 1.196-1.169.676 0 1.174.44 1.174 1.106 0 .624-.42 1.101-.807 1.526L4.99 10.553v.744h4.78v-.99H6.643v-.069L8.41 8.252c.65-.724 1.237-1.332 1.237-2.27C9.646 4.849 8.723 4 7.308 4c-1.573 0-2.36 1.064-2.36 2.15v.057h1.138Zm6.559 1.883h.786c.823 0 1.374.481 1.379 1.179.01.707-.55 1.216-1.421 1.21-.77-.005-1.326-.419-1.379-.953h-1.095c.042 1.053.938 1.918 2.464 1.918 1.478 0 2.642-.839 2.62-2.144-.02-1.143-.922-1.651-1.551-1.714v-.063c.535-.09 1.347-.66 1.326-1.678-.026-1.053-.933-1.855-2.359-1.845-1.5.005-2.317.88-2.348 1.898h1.116c.032-.498.498-.944 1.206-.944.703 0 1.206.435 1.206 1.07.005.64-.504 1.106-1.2 1.106h-.75v.96Z"}}]})(e)},edit:ao,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),null}},co=function(e){var t=e.attributes,r=e.blockID,n=e.setAttributes,o=t.label,i=t.placeholder,a=t.required,l=t.defaultValue,s=t.isConfirmEmail,c=t.confirmLabel,u=t.help,d=t.readOnly,f="email",p=a?" srfm-required":"";return React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-".concat(f,"-block")},React.createElement(g.RichText,{tagName:"label",value:o,onChange:function(e){n({label:yr(e)})},className:"srfm-block-label".concat(p),multiline:!1,id:r,allowedFormats:[]}),React.createElement(Wr,{help:u,setAttributes:n,block_id:r}),React.createElement("div",{className:"srfm-block-wrap".concat(d?" srfm-read-only":"")},React.createElement("input",{id:"srfm-".concat(f,"-").concat(r),type:"email",value:l,className:"srfm-input-common srfm-input-".concat(f),placeholder:i,required:a})),React.createElement("div",{className:"srfm-error-wrap"})),s&&React.createElement("div",{className:"srfm-".concat(f,"-confirm-block")},React.createElement(g.RichText,{tagName:"label",value:c,onChange:function(e){n({confirmLabel:yr(e)})},className:"srfm-block-label".concat(p),multiline:!1,id:r,allowedFormats:[]}),React.createElement("div",{className:"srfm-block-wrap".concat(d?" srfm-read-only":"")},React.createElement("input",{id:"srfm-".concat(f,"-confirm-").concat(r),type:"email",value:l,className:"srfm-input-common srfm-".concat(f,"-email-confirm"),placeholder:i,required:a})),React.createElement("div",{className:"srfm-error-wrap"})))};const uo=(0,fn.compose)(dn)((function(e){var t=e.attributes,r=e.setAttributes,n=e.clientId,o=t.help,i=t.required,a=t.defaultValue,l=t.isConfirmEmail,s=t.formId,c=t.block_id,u=t.errorMsg,d=t.isUnique,f=t.duplicateMsg,p=t.preview,h=t.className,m=t.readOnly,_=Gr(n);(0,b.useEffect)((function(){s!==_&&r({formId:_})}),[s,r,_]);var w=gr("srfm_email_block_required_text",u),C=w.currentMessage,x=w.setCurrentMessage,E=gr("srfm_email_block_unique_text",f),S=E.currentMessage,k=E.setCurrentMessage;if(p){var O=srfm_fields_preview.email_preview;return React.createElement(H,{fieldName:O})}return React.createElement("div",{className:h},React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},React.createElement(Vr,{label:(0,y.__)("Default Value","sureforms"),className:"srfm-with-dropdown",value:a,withSmartTagDropdown:!0,data:{value:a,label:"defaultValue"},onChange:function(e){return r({defaultValue:e})}}),a&&React.createElement(v.ToggleControl,{label:(0,y.__)("Read Only","sureforms"),checked:m,onChange:function(e){return r({readOnly:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:i,onChange:function(e){return r({required:e})}}),i&&React.createElement(Vr,{label:(0,y.__)("Error Message","sureforms"),data:{value:u,label:"errorMsg"},value:C,onChange:function(e){x(e),r({errorMsg:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Validate as Unique","sureforms"),checked:d,onChange:function(e){return r({isUnique:e})}}),d&&React.createElement(Vr,{label:(0,y.__)("Validation Message for Duplicate ","sureforms"),value:S,data:{value:f,label:"duplicateMsg"},onChange:function(e){k(e),r({duplicateMsg:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Enable Email Confirmation","sureforms"),checked:l,onChange:function(e){return r({isConfirmEmail:e})}}),React.createElement(Vr,{label:(0,y.__)("Help Text","sureforms"),value:o,data:{value:o,label:"help"},onChange:function(e){return r({help:e})}}))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:r,attributes:t})))),React.createElement(co,{blockID:c,setAttributes:r,attributes:t}))}));var fo=or.name,po={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 4.99L4 6h16zm0 12H4V8l8 5 8-5v10z"}}]})(e)},edit:uo},ho=a(45708),mo=a.n(ho);const vo=JSON.parse("{\"circle-unchecked\":\"<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0_12462_11016)'><path d='M7.99967 14.6668C11.6816 14.6668 14.6663 11.6821 14.6663 8.00016C14.6663 4.31826 11.6816 1.3335 7.99967 1.3335C4.31778 1.3335 1.33301 4.31826 1.33301 8.00016C1.33301 11.6821 4.31778 14.6668 7.99967 14.6668Z' stroke='#1E1E1E' stroke-opacity='0.7' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_12462_11016'><rect width='16' height='16' fill='white'/></clipPath></defs></svg>\",\"square-unchecked\":\"<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M12.6667 2H3.33333C2.59695 2 2 2.59695 2 3.33333V12.6667C2 13.403 2.59695 14 3.33333 14H12.6667C13.403 14 14 13.403 14 12.6667V3.33333C14 2.59695 13.403 2 12.6667 2Z' stroke='#1E1E1E' stroke-opacity='0.7' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"custom_plus_icon\":\"<svg width='8' height='8' viewBox='0 0 8 8' class='srfm-custom-plus-icon'><path fill='srfmDarkColor' d='M4.35613 0.231675L3.52528 0.231675V3.52561L0.231343 3.52561V4.35647L3.52528 4.35647V7.65041L4.35613 7.65041L4.35613 4.35647H7.65007V3.52561H4.35613L4.35613 0.231675Z'/></svg>\",\"redo\":\"<svg viewBox='0 0 18 18'><polygon class='ql-fill ql-stroke' points='12 10 14 12 16 10 12 10' /><path class='ql-stroke' d='M9.91,13.91A4.6,4.6,0,0,1,9,14a5,5,0,1,1,5-5'/></svg>\",\"undo\":\"<svg viewBox='0 0 18 18'><polygon class='ql-fill ql-stroke' points='6 10 4 12 2 10 6 10' /><path class='ql-stroke' d='M8.09,13.91A4.6,4.6,0,0,0,9,14,5,5,0,1,0,4,9' /></svg>\"}");var go=function(e){var t=e.id;return React.createElement("div",{id:t},React.createElement("span",{className:"ql-formats"},React.createElement("select",{className:"ql-header",defaultValue:"false"},React.createElement("option",{value:"1"},"Heading 1")),React.createElement("button",{className:"ql-bold"}),React.createElement("button",{className:"ql-italic"}),React.createElement("button",{className:"ql-underline"}),React.createElement("button",{className:"ql-strike"}),React.createElement("button",{className:"ql-list",value:"ordered"}),React.createElement("button",{className:"ql-list",value:"bullet"}),React.createElement("button",{className:"ql-blockquote"}),React.createElement("select",{className:"ql-align"}),React.createElement("select",{className:"ql-color"}),React.createElement("select",{className:"ql-background"}),React.createElement("button",{className:"ql-link"}),React.createElement("button",{className:"ql-clean"}),React.createElement("button",{className:"ql-undo"},jr(vo.undo)),React.createElement("button",{className:"ql-redo"},jr(vo.redo))))},bo=["header","font","size","bold","italic","underline","align","strike","script","blockquote","background","list","bullet","indent","link","color","code-block"],yo=function(e){var t,r=e.attributes,n=e.blockID,o=e.setAttributes,i=r.label,a=r.placeholder,l=r.required,s=r.maxLength,c=r.defaultValue,u=r.rows,d=r.cols,f=r.help,p=r.isRichText,h=r.readOnly,m=l?" srfm-required":"",v=(0,b.useRef)(Math.random().toString(36).substring(2,8)),y="quill-id-".concat(v.current);return React.createElement(React.Fragment,null,React.createElement(g.RichText,{tagName:"label",value:i,onChange:function(e){o({label:yr(e)})},className:"srfm-block-label".concat(m),multiline:!1,id:n,allowedFormats:[]}),React.createElement(Wr,{help:f,setAttributes:o,block_id:n}),React.createElement("div",{className:"srfm-block-wrap".concat(p?" srfm-richtext":"").concat(h?" srfm-read-only":"")},p?React.createElement("div",{className:"srfm-textarea-quill"},React.createElement(go,{id:y}),React.createElement(mo(),{formats:bo,value:c,modules:(t=y,{toolbar:{container:"#".concat(t)}})})):React.createElement("textarea",{required:l,label:i,placeholder:a,value:c,rows:u,cols:d,maxLength:s,className:"srfm-input-common srfm-input-".concat("textarea")})))};const _o=(0,fn.compose)(dn)((function(e){var t=e.clientId,r=e.attributes,n=e.setAttributes,o=r.help,i=r.required,a=r.maxLength,l=r.block_id,s=r.defaultValue,c=r.errorMsg,u=r.rows,d=r.formId,f=r.preview,p=r.className,h=r.isRichText,m=r.readOnly,_=Gr(t);(0,b.useEffect)((function(){d!==_&&n({formId:_})}),[d,n,_]);var w=gr("srfm_textarea_block_required_text",c),C=w.currentMessage,x=w.setCurrentMessage;if(f){var E=srfm_fields_preview.textarea_preview;return React.createElement(H,{fieldName:E})}return React.createElement("div",{className:p},React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},React.createElement(Vr,{variant:"textarea",label:(0,y.__)("Default Value","sureforms"),value:s,withSmartTagDropdown:!0,data:{value:s,label:"defaultValue"},onChange:function(e){return n({defaultValue:e})}}),s&&React.createElement(v.ToggleControl,{label:(0,y.__)("Read Only","sureforms"),checked:m,onChange:function(e){return n({readOnly:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:i,onChange:function(e){return n({required:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Rich Text Editor","sureforms"),checked:h,onChange:function(e){return n({isRichText:e})}}),i&&React.createElement(Vr,{label:(0,y.__)("Error Message","sureforms"),data:{value:c,label:"errorMsg"},value:C,onChange:function(e){x(e),n({errorMsg:e})}}),!h&&React.createElement(React.Fragment,null,React.createElement(ro,{label:(0,y.__)("Text Maximum Length","sureforms"),value:a,displayUnit:!1,data:{value:a,label:"maxLength"},onChange:function(e){n({maxLength:Number(e)})},min:0,showControlHeader:!1}),React.createElement(ln,{label:(0,y.__)("Rows","sureforms"),value:u,displayUnit:!1,min:1,max:100,data:{value:u,label:"rows"},onChange:function(e){n({rows:Number(e)})}})),React.createElement(Vr,{label:(0,y.__)("Help Text","sureforms"),value:o,data:{value:o,label:"help"},onChange:function(e){return n({help:e})}}))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:n,attributes:r})))),React.createElement(yo,{blockID:l,setAttributes:n,attributes:r}),React.createElement("div",{className:"srfm-error-wrap"}))}));var wo=ar.name,Co={icon:function(e){return oe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 4.5A2.5 2.5 0 0 1 2.5 2h11A2.5 2.5 0 0 1 16 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 11.5v-7zM2.5 3A1.5 1.5 0 0 0 1 4.5v7A1.5 1.5 0 0 0 2.5 13h11a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 13.5 3h-11zm10.854 4.646a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708l3-3a.5.5 0 0 1 .708 0zm0 2.5a.5.5 0 0 1 0 .708l-.5.5a.5.5 0 0 1-.708-.708l.5-.5a.5.5 0 0 1 .708 0z"}}]})(e)},edit:_o,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),null}};function xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Eo=function(e){var t=e.attributes,r=e.setAttributes,n=e.blockID,o=e.blockType,i=t.label,a=t.checked,l=t.required,s=t.help,c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xo(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xo(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.")}()}((0,b.useState)(a),2),u=c[0],d=c[1],f=l?"srfm-required":"";(0,b.useEffect)((function(){d(a)}),[a]);var p="srfm-input-checkbox";return"gdpr"===o&&(f="srfm-required",p="srfm-input-gdpr"),React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-block-wrap"},React.createElement("input",{type:"checkbox",checked:u,className:"srfm-input-common screen-reader-text srfm-input-checkbox ".concat(p)}),React.createElement("label",{className:"srfm-cbx",htmlFor:"srfm-checkbox-".concat(n)},React.createElement("span",{className:"srfm-span-wrap"},React.createElement("svg",{className:"srfm-check-icon",width:"12px",height:"10px"},React.createElement("svg",{className:"srfm-inline-svg",viewBox:"0 0 12 10"},React.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"})))),React.createElement("span",{className:"srfm-span-wrap srfm-block-label ".concat(f)},React.createElement(g.RichText,{tagName:"label",value:i,onChange:function(e){r({label:yr(e)})},multiline:!1,id:n})))),React.createElement(Wr,{help:s,setAttributes:r,block_id:n}))};const So=(0,fn.compose)(dn)((function(e){var t=e.attributes,r=e.setAttributes,n=e.clientId,o=t.checked,i=t.required,a=t.help,l=t.block_id,s=t.errorMsg,c=t.preview,u=t.formId,d=Gr(n),f=(0,g.useBlockProps)();(0,b.useEffect)((function(){u!==d&&r({formId:d})}),[u,r,d]);var p=gr("srfm_checkbox_block_required_text",s),h=p.currentMessage,m=p.setCurrentMessage;if(c){var _=srfm_fields_preview.checkbox_preview;return React.createElement(H,{fieldName:_})}return React.createElement("div",f,React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:i,onChange:function(e){return r({required:e})}}),i&&React.createElement(Vr,{data:{value:s,label:"errorMsg"},label:(0,y.__)("Error Message","sureforms"),value:h,onChange:function(e){m(e),r({errorMsg:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Checked by Default","sureforms"),checked:o,onChange:function(e){return r({checked:e})}}),React.createElement(Vr,{data:{value:a,label:"help"},label:(0,y.__)("Help Text","sureforms"),value:a,onChange:function(e){return r({help:e})}}))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:r,attributes:t})))),React.createElement("div",{className:"srfm-checkbox-block"},React.createElement(Eo,{blockID:l,setAttributes:r,attributes:t,blockType:"checkbox"}),React.createElement("div",{className:"srfm-error-wrap"})))}));var ko=cr.name,Oo={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"}}]})(e)},edit:So,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),null}};const Ro=(0,fn.compose)(dn)((function(e){var t=e.attributes,r=e.setAttributes,n=e.clientId,o=t.checked,i=t.help,a=t.block_id,l=t.preview,s=t.formId,c=t.errorMsg,u=Gr(n),d=(0,g.useBlockProps)();(0,b.useEffect)((function(){s!==u&&r({formId:u})}),[s,u]);var f=gr("srfm_checkbox_block_required_text",c),p=f.currentMessage,h=f.setCurrentMessage;if(l){var m=srfm_fields_preview.checkbox_preview;return React.createElement(H,{fieldName:m})}return React.createElement("div",d,React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},React.createElement(Vr,{data:{value:c,label:"errorMsg"},label:(0,y.__)("Error message","sureforms"),value:p,onChange:function(e){h(e),r({errorMsg:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Checked by default","sureforms"),checked:o,onChange:function(e){return r({checked:e})}}),React.createElement(Vr,{data:{value:i,label:"help"},label:(0,y.__)("Help Text","sureforms"),value:i,onChange:function(e){return r({help:e})}}))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:r,attributes:t})))),React.createElement("div",{className:"srfm-gdpr-block"},React.createElement(Eo,{blockID:a,setAttributes:r,attributes:t,blockType:"gdpr"}),React.createElement("div",{className:"srfm-error-wrap"})))}));var Ao=pr.name,To={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"}}]})(e)},edit:Ro,save:function(){return null}};function Mo(e,t){return Mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mo(e,t)}function No(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mo(e,t)}function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Po.apply(null,arguments)}function Io(e){return Io="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},Io(e)}function Lo(e,t,r){return(t=function(e){var t=function(e){if("object"!=Io(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Io(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Io(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Do(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(r),!0).forEach((function(t){Lo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bo(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ho="function"==typeof Symbol&&Symbol.observable||"@@observable",zo=function(){return Math.random().toString(36).substring(7).split("").join(".")},qo={INIT:"@@redux/INIT"+zo(),REPLACE:"@@redux/REPLACE"+zo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zo()}};function Fo(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(Bo(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(Bo(1));return r(Fo)(e,t)}if("function"!=typeof e)throw new Error(Bo(2));var o=e,i=t,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function u(){if(s)throw new Error(Bo(3));return i}function d(e){if("function"!=typeof e)throw new Error(Bo(4));if(s)throw new Error(Bo(5));var t=!0;return c(),l.push(e),function(){if(t){if(s)throw new Error(Bo(6));t=!1,c();var r=l.indexOf(e);l.splice(r,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Bo(7));if(void 0===e.type)throw new Error(Bo(8));if(s)throw new Error(Bo(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,r=0;r<t.length;r++)(0,t[r])();return e}return f({type:qo.INIT}),(n={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Bo(10));o=e,f({type:qo.REPLACE})}})[Ho]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Bo(11));function r(){e.next&&e.next(u())}return r(),{unsubscribe:t(r)}}})[Ho]=function(){return this},e},n}function Vo(e,t){return function(){return t(e.apply(this,arguments))}}function Go(e,t){if("function"==typeof e)return Vo(e,t);if("object"!=typeof e||null===e)throw new Error(Bo(16));var r={};for(var n in e){var o=e[n];"function"==typeof o&&(r[n]=Vo(o,t))}return r}function Wo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Uo=Q().createContext(null),Zo=function(e){e()},Ko=function(){return Zo},$o={notify:function(){},get:function(){return[]}};function Yo(e,t){var r,n=$o;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){var e=Ko(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=$o)},getListeners:function(){return n}};return a}var Xo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?J.useLayoutEffect:J.useEffect;const Jo=function(e){var t=e.store,r=e.context,n=e.children,o=(0,J.useMemo)((function(){var e=Yo(t);return{store:t,subscription:e}}),[t]),i=(0,J.useMemo)((function(){return t.getState()}),[t]);Xo((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var a=r||Uo;return Q().createElement(a.Provider,{value:o},n)};function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qo.apply(null,arguments)}function ei(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var ti=a(4146),ri=a.n(ti),ni=a(44363),oi=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ii=["reactReduxForwardedRef"],ai=[],li=[null,null];function si(e,t){var r=e[1];return[t.payload,r+1]}function ci(e,t,r){Xo((function(){return e.apply(void 0,t)}),r)}function ui(e,t,r,n,o,i,a){e.current=n,t.current=o,r.current=!1,i.current&&(i.current=null,a())}function di(e,t,r,n,o,i,a,l,s,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,r,f=t.getState();try{e=n(f,o.current)}catch(e){r=e,d=e}r||(d=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:r}}))}};return r.onStateChange=f,r.trySubscribe(),f(),function(){if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var fi=function(){return[null,0]};function pi(e,t){void 0===t&&(t={});var r=t,n=r.getDisplayName,o=void 0===n?function(e){return"ConnectAdvanced("+e+")"}:n,i=r.methodName,a=void 0===i?"connectAdvanced":i,l=r.renderCountProp,s=void 0===l?void 0:l,c=r.shouldHandleStateChanges,u=void 0===c||c,d=r.storeKey,f=void 0===d?"store":d,p=(r.withRef,r.forwardRef),h=void 0!==p&&p,m=r.context,v=void 0===m?Uo:m,g=ei(r,oi),b=v;return function(t){var r=t.displayName||t.name||"Component",n=o(r),i=Qo({},g,{getDisplayName:o,methodName:a,renderCountProp:s,shouldHandleStateChanges:u,storeKey:f,displayName:n,wrappedComponentName:r,WrappedComponent:t}),l=g.pure,c=l?J.useMemo:function(e){return e()};function d(r){var n=(0,J.useMemo)((function(){var e=r.reactReduxForwardedRef,t=ei(r,ii);return[r.context,e,t]}),[r]),o=n[0],a=n[1],l=n[2],s=(0,J.useMemo)((function(){return o&&o.Consumer&&(0,ni.isContextConsumer)(Q().createElement(o.Consumer,null))?o:b}),[o,b]),d=(0,J.useContext)(s),f=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(d)&&Boolean(d.store);var p=f?r.store:d.store,h=(0,J.useMemo)((function(){return function(t){return e(t.dispatch,i)}(p)}),[p]),m=(0,J.useMemo)((function(){if(!u)return li;var e=Yo(p,f?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,f,d]),v=m[0],g=m[1],y=(0,J.useMemo)((function(){return f?d:Qo({},d,{subscription:v})}),[f,d,v]),_=(0,J.useReducer)(si,ai,fi),w=_[0][0],C=_[1];if(w&&w.error)throw w.error;var x=(0,J.useRef)(),E=(0,J.useRef)(l),S=(0,J.useRef)(),k=(0,J.useRef)(!1),O=c((function(){return S.current&&l===E.current?S.current:h(p.getState(),l)}),[p,w,l]);ci(ui,[E,x,k,l,O,S,g]),ci(di,[u,p,v,h,E,x,k,S,g,C],[p,v,h]);var R=(0,J.useMemo)((function(){return Q().createElement(t,Qo({},O,{ref:a}))}),[a,t,O]);return(0,J.useMemo)((function(){return u?Q().createElement(s.Provider,{value:y},R):R}),[s,R,y])}var p=l?Q().memo(d):d;if(p.WrappedComponent=t,p.displayName=d.displayName=n,h){var m=Q().forwardRef((function(e,t){return Q().createElement(p,Qo({},e,{reactReduxForwardedRef:t}))}));return m.displayName=n,m.WrappedComponent=t,ri()(m,t)}return ri()(p,t)}}function hi(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function mi(e,t){if(hi(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!hi(e[r[o]],t[r[o]]))return!1;return!0}function vi(e){return function(t,r){var n=e(t,r);function o(){return n}return o.dependsOnOwnProps=!1,o}}function gi(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function bi(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=gi(e);var o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=gi(o),o=n(t,r)),o},n}}const yi=[function(e){return"function"==typeof e?bi(e):void 0},function(e){return e?void 0:vi((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?vi((function(t){return function(e,t){var r={},n=function(n){var o=e[n];"function"==typeof o&&(r[n]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)n(o);return r}(e,t)})):void 0}],_i=[function(e){return"function"==typeof e?bi(e):void 0},function(e){return e?void 0:vi((function(){return{}}))}];function wi(e,t,r){return Qo({},r,e,t)}const Ci=[function(e){return"function"==typeof e?function(e){return function(t,r){r.displayName;var n,o=r.pure,i=r.areMergedPropsEqual,a=!1;return function(t,r,l){var s=e(t,r,l);return a?o&&i(s,n)||(n=s):(a=!0,n=s),n}}}(e):void 0},function(e){return e?void 0:function(){return wi}}];var xi=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Ei(e,t,r,n){return function(o,i){return r(e(o,i),t(n,i),i)}}function Si(e,t,r,n,o){var i,a,l,s,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;return function(o,h){return p?function(o,p){var h,m,v=!d(p,a),g=!u(o,i,p,a);return i=o,a=p,v&&g?(l=e(i,a),t.dependsOnOwnProps&&(s=t(n,a)),c=r(l,s,a)):v?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(n,a)),c=r(l,s,a)):g?(h=e(i,a),m=!f(h,l),l=h,m&&(c=r(l,s,a)),c):c}(o,h):(l=e(i=o,a=h),s=t(n,a),c=r(l,s,a),p=!0,c)}}function ki(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,o=t.initMergeProps,i=ei(t,xi),a=r(e,i),l=n(e,i),s=o(e,i);return(i.pure?Si:Ei)(a,l,s,e,i)}var Oi=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Ri(e,t,r){for(var n=t.length-1;n>=0;n--){var o=t[n](e);if(o)return o}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function Ai(e,t){return e===t}function Ti(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?pi:r,o=t.mapStateToPropsFactories,i=void 0===o?_i:o,a=t.mapDispatchToPropsFactories,l=void 0===a?yi:a,s=t.mergePropsFactories,c=void 0===s?Ci:s,u=t.selectorFactory,d=void 0===u?ki:u;return function(e,t,r,o){void 0===o&&(o={});var a=o,s=a.pure,u=void 0===s||s,f=a.areStatesEqual,p=void 0===f?Ai:f,h=a.areOwnPropsEqual,m=void 0===h?mi:h,v=a.areStatePropsEqual,g=void 0===v?mi:v,b=a.areMergedPropsEqual,y=void 0===b?mi:b,_=ei(a,Oi),w=Ri(e,i,"mapStateToProps"),C=Ri(t,l,"mapDispatchToProps"),x=Ri(r,c,"mergeProps");return n(d,Qo({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:C,initMergeProps:x,pure:u,areStatesEqual:p,areOwnPropsEqual:m,areStatePropsEqual:g,areMergedPropsEqual:y},_))}}const Mi=Ti();var Ni,Pi=a(75795),Ii=a.n(Pi);function Li(e,t){var r=(0,J.useState)((function(){return{inputs:t,result:e()}}))[0],n=(0,J.useRef)(!0),o=(0,J.useRef)(r),i=n.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,o.current.inputs)),a=i?o.current:{inputs:t,result:e()};return(0,J.useEffect)((function(){n.current=!1,o.current=a}),[a]),a.result}Ni=Pi.unstable_batchedUpdates,Zo=Ni;var ji=Li,Di=function(e,t){return Li((function(){return e}),t)},Bi=function(e){var t=e.top,r=e.right,n=e.bottom,o=e.left;return{top:t,right:r,bottom:n,left:o,width:r-o,height:n-t,x:o,y:t,center:{x:(r+o)/2,y:(n+t)/2}}},Hi=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},zi=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},qi={top:0,right:0,bottom:0,left:0},Fi=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?qi:r,o=e.border,i=void 0===o?qi:o,a=e.padding,l=void 0===a?qi:a,s=Bi(Hi(t,n)),c=Bi(zi(t,i)),u=Bi(zi(c,l));return{marginBox:s,borderBox:Bi(t),paddingBox:c,contentBox:u,margin:n,border:i,padding:l}},Vi=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&function(){throw new Error("Invariant failed")}(),r},Gi=function(e,t){var r,n,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,s=(n=t,{top:(r=o).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return Fi({borderBox:s,border:i,margin:a,padding:l})},Wi=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Gi(e,t)},Ui=function(e,t){var r={top:Vi(t.marginTop),right:Vi(t.marginRight),bottom:Vi(t.marginBottom),left:Vi(t.marginLeft)},n={top:Vi(t.paddingTop),right:Vi(t.paddingRight),bottom:Vi(t.paddingBottom),left:Vi(t.paddingLeft)},o={top:Vi(t.borderTopWidth),right:Vi(t.borderRightWidth),bottom:Vi(t.borderBottomWidth),left:Vi(t.borderLeftWidth)};return Fi({borderBox:e,margin:r,padding:n,border:o})},Zi=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return Ui(t,r)},Ki=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $i(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!((n=e[r])===(o=t[r])||Ki(n)&&Ki(o)))return!1;var n,o;return!0}const Yi=function(e,t){var r;void 0===t&&(t=$i);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}},Xi=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];t=o,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n};function Ji(e,t){}function Qi(){}function ea(e,t,r){var n=t.map((function(t){var n,o,i=(n=r,o=t.options,Po({},n,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){n.forEach((function(e){e()}))}}Ji.bind(null,"warn"),Ji.bind(null,"error");function ta(e){this.message=e}function ra(e,t){if(!e)throw new ta("Invariant failed")}ta.prototype.toString=function(){return this.message};var na=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).callbacks=null,t.unbind=Qi,t.onWindowError=function(e){var r=t.getCallbacks();r.isDragging()&&r.tryAbort(),e.error instanceof ta&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}No(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=ea(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(e){if(!(e instanceof ta))throw e;this.setState({})},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t}(Q().Component),oa=function(e){return e+1},ia=function(e,t){var r=e.droppableId===t.droppableId,n=oa(e.index),o=oa(t.index);return r?"\n You have moved the item from position "+n+"\n to position "+o+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},aa=function(e,t,r){return t.droppableId===r.droppableId?"\n The item "+e+"\n has been combined with "+r.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+r.draggableId+"\n in list "+r.droppableId+"\n "},la=function(e){return"\n The item has returned to its starting position\n of "+oa(e.index)+"\n"},sa=function(e){return"\n You have lifted an item in position "+oa(e.source.index)+"\n"},ca=function(e){var t=e.destination;if(t)return ia(e.source,t);var r=e.combine;return r?aa(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},ua=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+la(e.source)+"\n ";var t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n "+ia(e.source,t)+"\n ":r?"\n You have dropped the item.\n "+aa(e.draggableId,e.source,r)+"\n ":"\n The item has been dropped while not over a drop area.\n "+la(e.source)+"\n "},da={x:0,y:0},fa=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},pa=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},ha=function(e,t){return e.x===t.x&&e.y===t.y},ma=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},va=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},ga=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ba=function(e,t){return Math.min.apply(Math,t.map((function(t){return ga(e,t)})))},ya=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},_a=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},wa=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ca=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=Bi({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):Bi(e)},xa=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,o=e.frame,i=function(e,t){return t?_a(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,r){var n;return r&&r.increasedBy?Po({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(i,n,r);return{page:t,withPlaceholder:r,active:Ca(a,o)}},Ea=function(e,t){e.frame||ra(!1);var r=e.frame,n=pa(t,r.scroll.initial),o=ma(n),i=Po({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:o},max:r.scroll.max}});return Po({},e,{frame:i,subject:xa({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function Sa(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function ka(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function Oa(e,t){if(e.find)return e.find(t);var r=ka(e,t);return-1!==r?e[r]:void 0}function Ra(e){return Array.prototype.slice.call(e)}var Aa=Yi((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ta=Yi((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ma=Yi((function(e){return Sa(e)})),Na=Yi((function(e){return Sa(e)})),Pa=Yi((function(e,t){var r=Na(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return r}));function Ia(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function La(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ja=Yi((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Da=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Ba={point:da,value:0},Ha={invisible:{},visible:{},all:[]},za={displaced:Ha,displacedBy:Ba,at:null},qa=function(e,t){return function(r){return e<=r&&r<=t}},Fa=function(e){var t=qa(e.top,e.bottom),r=qa(e.left,e.right);return function(n){if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;var o=t(n.top)||t(n.bottom),i=r(n.left)||r(n.right);if(o&&i)return!0;var a=n.top<e.top&&n.bottom>e.bottom,l=n.left<e.left&&n.right>e.right;return!(!a||!l)||a&&i||l&&o}},Va=function(e){var t=qa(e.top,e.bottom),r=qa(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},Ga={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Wa={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ua=function(e){var t=e.target,r=e.destination,n=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:da;return _a(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(a,r,i)&&function(e,t,r){return r(t)(e)}(a,n,i)},Za=function(e){return Ua(Po({},e,{isVisibleThroughFrameFn:Va}))};function Ka(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return Bi(Hi(r,n))}(t,n),s=t.descriptor.id;if(e.all.push(s),!Ua(Po({},{target:l,destination:r,viewport:o,withDroppableDisplacement:!0},{isVisibleThroughFrameFn:Fa})))return e.invisible[t.descriptor.id]=!0,e;var c=function(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,o=t.visible;if(n[e])return!1;var i=o[e];return!i||i.shouldAnimate}(s,a,i),u={draggableId:s,shouldAnimate:c};return e.visible[s]=u,e}),{all:[],visible:{},invisible:{}})}function $a(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:Ha,displacedBy:n,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Ya(e){var t=e.draggable,r=e.insideDestination,n=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,c=Da(t,n);if(null==l)return $a({insideDestination:r,inHomeList:c,displacedBy:i,destination:n});var u=Oa(r,(function(e){return e.descriptor.index===l}));if(!u)return $a({insideDestination:r,inHomeList:c,displacedBy:i,destination:n});var d=ja(t,r),f=r.indexOf(u);return{displaced:Ka({afterDragging:d.slice(f),destination:n,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Xa(e,t){return Boolean(t.effected[e])}var Ja=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Qa=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},el=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return va(t.line,r.marginBox[t.end]+Ja(t,n),Qa(t,r.marginBox,n))},tl=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return va(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),Qa(t,r.marginBox,n))},rl=function(e,t){var r=e.frame;return r?fa(t,r.scroll.diff.displacement):t},nl=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,o=e.draggables,i=e.afterCritical,a=r.page.borderBox.center,l=t.at;return n&&l?"REORDER"===l.type?function(e){var t=e.impact,r=e.draggable,n=e.draggables,o=e.droppable,i=e.afterCritical,a=Pa(o.descriptor.id,n),l=r.page,s=o.axis;if(!a.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return va(t.line,r.contentBox[t.start]+Ja(t,n),Qa(t,r.contentBox,n))}({axis:s,moveInto:o.page,isMoving:l});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=n[d];if(Xa(d,i))return tl({axis:s,moveRelativeTo:f.page,isMoving:l});var p=Gi(f.page,u.point);return tl({axis:s,moveRelativeTo:p,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===r.descriptor.id)return l.borderBox.center;if(Xa(h.descriptor.id,i)){var m=Gi(h.page,ma(i.displacedBy.point));return el({axis:s,moveRelativeTo:m,isMoving:l})}return el({axis:s,moveRelativeTo:h.page,isMoving:l})}({impact:t,draggable:r,draggables:o,droppable:n,afterCritical:i}):function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,o=La(r);o||ra(!1);var i=o.draggableId,a=n[i].page.borderBox.center,l=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[n]||t.invisible[n]);return Xa(n,r)?i?da:ma(o.point):i?o.point:da}({displaced:r.displaced,afterCritical:t,combineWith:i,displacedBy:r.displacedBy});return fa(a,l)}({impact:t,draggables:o,afterCritical:i}):a}(e),r=e.droppable;return r?rl(r,t):t},ol=function(e,t){var r=pa(t,e.scroll.initial),n=ma(r);return{frame:Bi({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function il(e,t){return e.map((function(e){return t[e]}))}var al=function(e){var t,r,n=e.pageBorderBoxCenter,o=e.draggable,i=(t=e.viewport,r=n,fa(t.scroll.diff.displacement,r)),a=pa(i,o.page.borderBox.center);return fa(o.client.borderBox.center,a)},ll=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=void 0!==a&&a,s=pa(n,t.page.borderBox.center),c={target:_a(t.page.borderBox,s),destination:r,withDroppableDisplacement:i,viewport:o};return l?function(e){return Ua(Po({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=qa(e.top,e.bottom),n=qa(e.left,e.right);return function(e){return t===Ga?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(c):Za(c)},sl=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,c=e.afterCritical;if(!n.isEnabled)return null;var u=Pa(n.descriptor.id,o),d=Da(r,n),f=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.insideDestination,i=e.previousImpact;if(!n.isCombineEnabled)return null;if(!Ia(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return Po({},i,{at:t})}var l=i.displaced.all,s=l.length?l[0]:null;if(t)return s?a(s):null;var c=ja(r,o);if(!s)return c.length?a(c[c.length-1].descriptor.id):null;var u=ka(c,(function(e){return e.descriptor.id===s}));-1===u&&ra(!1);var d=u-1;return d<0?null:a(c[d].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:u,previousImpact:i})||function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,c=e.afterCritical,u=l.at;if(u||ra(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,o=e.location;if(!n.length)return null;var i=o.index,a=t?i+1:i-1,l=n[0].descriptor.index,s=n[n.length-1].descriptor.index;return a<l||a>(r?s:s+1)?null:a}({isMovingForward:t,isInHomeList:r,location:u.destination,insideDestination:a});return null==d?null:Ya({draggable:n,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,r=e.draggables,n=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=n.draggableId,a=r[i].descriptor.index;return Xa(i,o)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:Ya({draggable:n,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:f})}({isMovingForward:t,isInHomeList:d,draggable:r,draggables:o,destination:n,insideDestination:u,previousImpact:i,viewport:a,afterCritical:c});if(!f)return null;var p=nl({impact:f,draggable:r,droppable:n,draggables:o,afterCritical:c});if(ll({draggable:r,destination:n,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:al({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null};var h=pa(p,l),m=function(e){var t=e.impact,r=e.viewport,n=e.destination,o=e.draggables,i=e.maxScrollChange,a=ol(r,fa(r.scroll.current,i)),l=n.frame?Ea(n,fa(n.frame.scroll.current,i)):n,s=t.displaced,c=Ka({afterDragging:il(s.all,o),destination:n,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),u=Ka({afterDragging:il(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:r.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,c,u];return s.all.forEach((function(e){var t=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}(e,p);t?f[e]=t:d[e]=!0})),Po({},t,{displaced:{all:s.all,invisible:d,visible:f}})}({impact:f,viewport:a,destination:n,draggables:o,maxScrollChange:h});return{clientSelection:s,impact:m,scrollJumpRequest:h}},cl=function(e){var t=e.subject.active;return t||ra(!1),t},ul=function(e,t){var r=e.page.borderBox.center;return Xa(e.descriptor.id,t)?pa(r,t.displacedBy.point):r},dl=function(e,t){var r=e.page.borderBox;return Xa(e.descriptor.id,t)?_a(r,ma(t.displacedBy.point)):r},fl=Yi((function(e,t){var r=t[e.line];return{value:r,point:va(e.line,r)}})),pl=function(e,t){return Po({},e,{scroll:Po({},e.scroll,{max:t})})},hl=function(e,t,r){var n=e.frame;Da(t,e)&&ra(!1),e.subject.withPlaceholder&&ra(!1);var o=fl(e.axis,t.displaceBy).point,i=function(e,t,r){var n=e.axis;if("virtual"===e.descriptor.mode)return va(n.line,t[n.line]);var o=e.subject.page.contentBox[n.size],i=Pa(e.descriptor.id,r).reduce((function(e,t){return e+t.client.marginBox[n.size]}),0)+t[n.line]-o;return i<=0?null:va(n.line,i)}(e,o,r),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n)return Po({},e,{subject:xa({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var l=i?fa(n.scroll.max,i):n.scroll.max,s=pl(n,l);return Po({},e,{subject:xa({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:s}),frame:s})},ml=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},vl=function(e){var t=e.state,r=e.type,n=function(e,t){var r=ml(e);return r?t[r]:null}(t.impact,t.dimensions.droppables),o=Boolean(n),i=t.dimensions.droppables[t.critical.droppable.id],a=n||i,l=a.axis.direction,s="vertical"===l&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===l&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(s&&!o)return null;var c="MOVE_DOWN"===r||"MOVE_RIGHT"===r,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return s?sl({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,c=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,o=e.droppables,i=e.viewport,a=n.subject.active;if(!a)return null;var l=n.axis,s=qa(a[l.start],a[l.end]),c=Ma(o).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Fa(i.frame)(cl(e))})).filter((function(e){var r=cl(e);return t?a[l.crossAxisEnd]<r[l.crossAxisEnd]:r[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=cl(e),r=qa(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||r(a[l.start])||r(a[l.end])})).sort((function(e,r){var n=cl(e)[l.crossAxisStart],o=cl(r)[l.crossAxisStart];return t?n-o:o-n})).filter((function(e,t,r){return cl(e)[l.crossAxisStart]===cl(r[0])[l.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return qa(cl(e)[l.start],cl(e)[l.end])(r[l.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return cl(e)[l.start]-cl(t)[l.start]}))[0]:c.sort((function(e,t){var n=ba(r,wa(cl(e))),o=ba(r,wa(cl(t)));return n!==o?n-o:cl(e)[l.start]-cl(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:o,droppables:a,viewport:l});if(!c)return null;var u=Pa(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,o=e.afterCritical,i=e.insideDestination.filter((function(e){return Za({target:dl(e,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var i=ga(t,rl(n,ul(e,o))),a=ga(t,rl(n,ul(r,o)));return i<a?-1:a<i?1:e.descriptor.index-r.descriptor.index}));return i[0]||null}({pageBorderBoxCenter:r,viewport:l,destination:c,insideDestination:u,afterCritical:s}),f=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!r){if(n.length)return null;var c={displaced:Ha,displacedBy:Ba,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=nl({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:s}),d=Da(o,a)?a:hl(a,o,i);return ll({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f,p=Boolean(t[a.axis.line]<=r.page.borderBox.center[a.axis.line]),h=(f=r.descriptor.index,r.descriptor.id===o.descriptor.id||p?f:f+1);return Ya({draggable:o,insideDestination:n,destination:a,viewport:l,displacedBy:fl(a.axis,o.displaceBy),last:Ha,index:h})}({previousPageBorderBoxCenter:r,destination:c,draggable:n,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:l,afterCritical:s});if(!f)return null;var p=nl({impact:f,draggable:n,droppable:c,draggables:i,afterCritical:s});return{clientSelection:al({pageBorderBoxCenter:p,draggable:n,viewport:l}),impact:f,scrollJumpRequest:null}}({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function gl(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function bl(e){var t=qa(e.top,e.bottom),r=qa(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}var yl=function(e,t){return Bi(_a(e,t))};function _l(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var wl=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,s=yl(r.page.borderBox,t),c=function(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,o=Ma(n).filter((function(e){if(!e.isEnabled)return!1;var r,n,o=e.subject.active;if(!o)return!1;if(n=o,!((r=t).left<n.right&&r.right>n.left&&r.top<n.bottom&&r.bottom>n.top))return!1;if(bl(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],s=t[i.crossAxisEnd],c=qa(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(l),d=c(s);return!u&&!d||(u?l<a:s>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.candidates,n=e.draggable.page.borderBox.center,o=r.map((function(e){var r=e.axis,o=va(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:ga(n,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:r,candidates:o}):null}({pageBorderBox:s,draggable:r,droppables:o});if(!c)return za;var u=o[c],d=Pa(u.descriptor.id,n),f=function(e,t){var r=e.frame;return r?yl(t,r.scroll.diff.value):t}(u,s);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,s=fl(o.axis,t.displaceBy),c=s.value,u=r[l.start],d=r[l.end],f=Oa(ja(t,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox,o=r[l.size]/4,i=Xa(t,a),s=_l({displaced:n.displaced,id:t});return i?s?d>r[l.start]+o&&d<r[l.end]-o:u>r[l.start]-c+o&&u<r[l.end]-c-o:s?d>r[l.start]+c+o&&d<r[l.end]+c-o:u>r[l.start]+o&&u<r[l.end]-o}));return f?{displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:r,previousImpact:i,destination:u,insideDestination:d,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,l=e.afterCritical,s=n.axis,c=fl(n.axis,r.displaceBy),u=c.value,d=t[s.start],f=t[s.end],p=function(e){var t=e.draggable,r=e.closest;return r?e.inHomeList&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:Oa(ja(r,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=Xa(t,l),o=_l({displaced:i,id:t});return n?o?f<=r:d<r-u:o?f<=r+u:d<r})),inHomeList:Da(r,n)});return Ya({draggable:r,insideDestination:o,destination:n,viewport:a,last:i,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:r,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:l})},Cl=function(e,t){var r;return Po({},e,((r={})[t.descriptor.id]=t,r))},xl=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,l=o||t.viewport,s=n||t.dimensions,c=r||t.current.client.selection,u=pa(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:fa(t.initial.client.borderBoxCenter,u)},f={selection:fa(d.selection,l.scroll.current),borderBoxCenter:fa(d.borderBoxCenter,l.scroll.current),offset:fa(d.offset,l.scroll.diff.value)},p={client:d,page:f};if("COLLECTING"===t.phase)return Po({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:p});var h=s.draggables[t.critical.draggable.id],m=i||wl({pageOffset:f.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,o=e.impact,i=function(e){var t=e.previousImpact,r=e.impact,n=e.droppables,o=ml(t),i=ml(r);if(!o)return n;if(o===i)return n;var a=n[o];if(!a.subject.withPlaceholder)return n;var l=function(e){var t=e.subject.withPlaceholder;t||ra(!1);var r=e.frame;if(!r)return Po({},e,{subject:xa({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var n=t.oldFrameMaxScroll;n||ra(!1);var o=pl(r,n);return Po({},e,{subject:xa({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return Cl(n,l)}({previousImpact:e.previousImpact,impact:o,droppables:n}),a=ml(o);if(!a)return i;var l=n[a];if(Da(t,l))return i;if(l.subject.withPlaceholder)return i;var s=hl(l,t,r);return Cl(i,s)}({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return Po({},t,{current:p,dimensions:{draggables:s.draggables,droppables:v},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},El=function(e){var t=e.impact,r=e.viewport,n=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(a.all,n);return Po({},t,{displaced:Ka({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:i,last:a})})},Sl=function(e){var t=e.impact,r=e.draggable,n=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=nl({impact:t,draggable:r,draggables:o,droppable:n,afterCritical:a});return al({pageBorderBoxCenter:l,draggable:r,viewport:i})},kl=function(e){var t=e.state,r=e.dimensions,n=e.viewport;"SNAP"!==t.movementMode&&ra(!1);var o=t.impact,i=n||t.viewport,a=r||t.dimensions,l=a.draggables,s=a.droppables,c=l[t.critical.draggable.id],u=ml(o);u||ra(!1);var d=s[u],f=El({impact:o,viewport:i,destination:d,draggables:l}),p=Sl({impact:f,draggable:c,droppable:d,draggables:l,viewport:i,afterCritical:t.afterCritical});return xl({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},Ol=function(e){var t=e.draggable,r=e.home,n=e.draggables,o=e.viewport,i=fl(r.axis,t.displaceBy),a=Pa(r.descriptor.id,n),l=a.indexOf(t);-1===l&&ra(!1);var s,c=a.slice(l+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:Ka({afterDragging:c,destination:r,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(s=t.descriptor,{index:s.index,droppableId:s.droppableId})}},afterCritical:d}},Rl=function(e){return"SNAP"===e.movementMode},Al=function(e,t,r){var n=function(e,t){return{draggables:e.draggables,droppables:Cl(e.droppables,t)}}(e.dimensions,t);return!Rl(e)||r?xl({state:e,dimensions:n}):kl({state:e,dimensions:n})};function Tl(e){return e.isDragging&&"SNAP"===e.movementMode?Po({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ml={phase:"IDLE",completed:null,shouldFlush:!1},Nl=function(e,t){if(void 0===e&&(e=Ml),"FLUSH"===t.type)return Po({},Ml,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ra(!1);var r=t.payload,n=r.critical,o=r.clientSelection,i=r.viewport,a=r.dimensions,l=r.movementMode,s=a.draggables[n.draggable.id],c=a.droppables[n.droppable.id],u={selection:o,borderBoxCenter:s.client.borderBox.center,offset:da},d={client:u,page:{selection:fa(u.selection,i.scroll.initial),borderBoxCenter:fa(u.selection,i.scroll.initial),offset:fa(u.selection,i.scroll.diff.value)}},f=Ma(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Ol({draggable:s,home:c,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:l,dimensions:a,initial:d,current:d,isWindowScrollAllowed:f,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ra(!1),Po({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ra(!1),function(e){var t=e.state,r=e.published,n=r.modified.map((function(e){var r=t.dimensions.droppables[e.droppableId];return Ea(r,e.scroll)})),o=Po({},t.dimensions.droppables,{},Aa(n)),i=Ta(function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,o=n.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||ra(!1),t}(r[t]),a=i.scroll.diff.value,l=function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,o=Gi(t.client,r),i=Wi(o,n);return Po({},t,{placeholder:Po({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:fa(o,a),initialWindowScroll:n.scroll.initial});return l}))}({additions:r.additions,updatedDroppables:o,viewport:t.viewport})),a=Po({},t.dimensions.draggables,{},i);r.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},s=ml(t.impact),c=s?l.droppables[s]:null,u=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],f=Ol({draggable:u,home:d,draggables:a,viewport:t.viewport}),p=f.impact,h=f.afterCritical,m=c&&c.isCombineEnabled?t.impact:p,v=wl({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h}),g=Po({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:p,dimensions:l,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?g:Po({phase:"DROP_PENDING"},g,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;gl(e)||ra(!1);var m=t.payload.client;return ha(m,e.current.client.selection)?e:xl({state:e,clientSelection:m,impact:Rl(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Tl(e);if("COLLECTING"===e.phase)return Tl(e);gl(e)||ra(!1);var v=t.payload,g=v.id,b=v.newScroll,y=e.dimensions.droppables[g];if(!y)return e;var _=Ea(y,b);return Al(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;gl(e)||ra(!1);var w=t.payload,C=w.id,x=w.isEnabled,E=e.dimensions.droppables[C];E||ra(!1),E.isEnabled===x&&ra(!1);var S=Po({},E,{isEnabled:x});return Al(e,S,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;gl(e)||ra(!1);var k=t.payload,O=k.id,R=k.isCombineEnabled,A=e.dimensions.droppables[O];A||ra(!1),A.isCombineEnabled===R&&ra(!1);var T=Po({},A,{isCombineEnabled:R});return Al(e,T,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;gl(e)||ra(!1),e.isWindowScrollAllowed||ra(!1);var M=t.payload.newScroll;if(ha(e.viewport.scroll.current,M))return Tl(e);var N=ol(e.viewport,M);return Rl(e)?kl({state:e,viewport:N}):xl({state:e,viewport:N})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!gl(e))return e;var P=t.payload.maxScroll;if(ha(P,e.viewport.scroll.max))return e;var I=Po({},e.viewport,{scroll:Po({},e.viewport.scroll,{max:P})});return Po({phase:"DRAGGING"},e,{viewport:I})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ra(!1);var L=vl({state:e,type:t.type});return L?xl({state:e,impact:L.impact,clientSelection:L.clientSelection,scrollJumpRequest:L.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var j=t.payload.reason;return"COLLECTING"!==e.phase&&ra(!1),Po({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:j})}if("DROP_ANIMATE"===t.type){var D=t.payload,B=D.completed,H=D.dropDuration,z=D.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ra(!1),{phase:"DROP_ANIMATING",completed:B,dropDuration:H,newHomeClientOffset:z,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Pl=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Il=function(){return{type:"COLLECTION_STARTING",payload:null}},Ll=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},jl=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Dl=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Bl=function(e){return{type:"MOVE",payload:e}},Hl=function(){return{type:"MOVE_UP",payload:null}},zl=function(){return{type:"MOVE_DOWN",payload:null}},ql=function(){return{type:"MOVE_RIGHT",payload:null}},Fl=function(){return{type:"MOVE_LEFT",payload:null}},Vl=function(e){return{type:"DROP_COMPLETE",payload:e}},Gl=function(e){return{type:"DROP",payload:e}},Wl="cubic-bezier(.2,1,.1,1)",Ul=0,Zl=.7,Kl=.75,$l="0.2s cubic-bezier(0.2, 0, 0, 1)",Yl={fluid:"opacity "+$l,snap:"transform "+$l+", opacity "+$l,drop:function(e){var t=e+"s "+Wl;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+$l,placeholder:"height "+$l+", width "+$l+", margin "+$l},Xl=function(e){return ha(e,da)?null:"translate("+e.x+"px, "+e.y+"px)"},Jl=Xl,Ql=.33,es=.55-Ql,ts=function(e){var t=e.getState,r=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var o=t(),i=n.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ra(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ra(!1);var a=o.critical,l=o.dimensions,s=l.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:Po({},n,{displaced:Ha}),didDropInsideDroppable:!0}:{impact:El({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=c.impact,d=c.didDropInsideDroppable,f=d?Ia(u):null,p=d?La(u):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:s.descriptor.id,type:s.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:f,combine:p},v=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,o=e.viewport,i=e.afterCritical,a=n.draggables,l=n.droppables,s=ml(t),c=s?l[s]:null,u=l[r.descriptor.droppableId],d=Sl({impact:t,draggable:r,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return pa(d,r.client.borderBox.center)}({impact:u,draggable:s,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:u};if(!ha(o.current.client.offset,v)||Boolean(m.combine)){var b=function(e){var t=e.reason,r=ga(e.current,e.destination);if(r<=0)return Ql;if(r>=1500)return.55;var n=Ql+es*(r/1500);return Number(("CANCEL"===t?.6*n:n).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});r({type:"DROP_ANIMATE",payload:{newHomeClientOffset:v,dropDuration:b,completed:g}})}else r(Vl({completed:g}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(n)}}},rs=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var ns=function(e){var t=function(e){var t=e.onWindowScroll,r=Xi((function(){t(rs())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(r),o=Qi;function i(){return o!==Qi}return{start:function(){i()&&ra(!1),o=ea(window,[n])},stop:function(){i()||ra(!1),r.cancel(),o(),o=Qi},isActive:i}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},os=function(e,t){t()},is=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},as=function(e,t,r,n){if(e){var o=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),o=function(o){t||r||(t=!0,e(o),clearTimeout(n))};return o.wasCalled=function(){return t},o}(r);e(t,{announce:o}),o.wasCalled()||r(n(t))}else r(n(t))},ls=function(e,t){var r=function(e,t){var r,n=(r=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=ka(r,(function(t){return t.timerId===e}));-1===t&&ra(!1),r.splice(t,1)[0].callback()}(t)})),n={timerId:t,callback:e};r.push(n)},flush:function(){if(r.length){var e=[].concat(r);r.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,i=function(r){o||ra(!1),o=null,os(0,(function(){return as(e().onDragEnd,r,t,ua)}))};return{beforeCapture:function(t,r){o&&ra(!1),os(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){o&&ra(!1),os(0,(function(){var n=e().onBeforeDragStart;n&&n(is(t,r))}))},start:function(r,i){o&&ra(!1);var a=is(r,i);o={mode:i,lastCritical:r,lastLocation:a.source,lastCombine:null},n.add((function(){os(0,(function(){return as(e().onDragStart,a,t,sa)}))}))},update:function(r,i){var a=Ia(i),l=La(i);o||ra(!1);var s=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(r,o.lastCritical);s&&(o.lastCritical=r);var c,u,d=(u=a,!(null==(c=o.lastLocation)&&null==u||null!=c&&null!=u&&c.droppableId===u.droppableId&&c.index===u.index));d&&(o.lastLocation=a);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(f&&(o.lastCombine=l),s||d||f){var p=Po({},is(r,o.mode),{combine:l,destination:a});n.add((function(){os(0,(function(){return as(e().onDragUpdate,p,t,ca)}))}))}},flush:function(){o||ra(!1),n.flush()},drop:i,abort:function(){if(o){var e=Po({},is(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var o=n.payload.critical;return r.beforeStart(o,n.payload.movementMode),t(n),void r.start(o,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var i=n.payload.completed.result;return r.flush(),t(n),void r.drop(i)}if(t(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&r.update(a.critical,a.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},ss=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&ra(!1),e.dispatch(Vl({completed:n.completed}))}else t(r)}}},cs=function(e){var t=null,r=null;return function(n){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=ea(window,[i])}))}}}},us=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Gl({reason:n.reason})))}}}},ds=Wo,fs=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,o=e.width,i=pa({x:r,y:t},{x:o,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},ps=function(){var e=document.documentElement;return e||ra(!1),e},hs=function(){var e=ps();return fs({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function ms(e,t,r){return r.descriptor.id!==t.id&&r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var vs,gs,bs=function(e,t){var r=null,n=function(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},o=null,i=function(){o||(r.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=n,i=e.additions,a=e.removals,l=e.modified,s=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(da)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:s,removals:Object.keys(a),modified:c};n={additions:{},removals:{},modified:{}},r.publish(u)})))};return{add:function(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],i()},remove:function(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){r||ra(!1);var o=r.critical.draggable;"ADDITION"===t.type&&ms(e,o,t.value)&&n.add(t.value),"REMOVAL"===t.type&&ms(e,o,t.value)&&n.remove(t.value)},i={updateDroppableIsEnabled:function(n,o){e.droppable.exists(n)||ra(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:o})},updateDroppableIsCombineEnabled:function(n,o){r&&(e.droppable.exists(n)||ra(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:o}))},scrollDroppable:function(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function(n,o){r&&(e.droppable.exists(n)||ra(!1),t.updateDroppableScroll({id:n,newScroll:o}))},startPublishing:function(t){r&&ra(!1);var n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor},l=e.subscribe(o);return r={critical:a,unsubscribe:l},function(e){var t,r,n,o,i,a,l,s=e.critical,c=e.scrollOptions,u=e.registry,d=(t=rs(),r=hs(),n=t.y,o=t.x,a=(i=ps()).clientWidth,l=i.clientHeight,{frame:Bi({top:n,left:o,right:o+a,bottom:n+l}),scroll:{initial:t,current:t,max:r,diff:{value:da,displacement:da}}}),f=d.scroll.current,p=s.droppable,h=u.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(f,c)})),m=u.draggable.getAllByType(s.draggable.type).map((function(e){return e.getDimension(f)}));return{dimensions:{draggables:Ta(m),droppables:Aa(h)},critical:s,viewport:d}}({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}};return i},ys=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},_s=function(e){window.scrollBy(e.x,e.y)},ws=Yi((function(e){return Ma(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Cs=function(e){return Math.pow(e,2)},xs=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,o=r-t;return 0===o?0:(n-t)/o},Es=360,Ss=1200,ks=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var r=xs({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=28*Cs(1-r);return Math.ceil(n)}(t,r);return 0===i?0:o?Math.max(function(e,t){var r=t,n=Ss,o=Date.now()-r;if(o>=Ss)return e;if(o<Es)return 1;var i=xs({startOfRange:Es,endOfRange:n,current:o}),a=e*Cs(i);return Math.ceil(a)}(i,n),1):i},Os=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return r[o.end]<r[o.start]?ks({distanceToEdge:r[o.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:i}):-1*ks({distanceToEdge:r[o.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:i})},Rs=ya((function(e){return 0===e?0:e})),As=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-r.top,right:r.right-o.x,bottom:r.bottom-o.y,left:o.x-r.left},l=Os({container:r,distanceToEdges:a,dragStartTime:t,axis:Ga,shouldUseTimeDampening:i}),s=Os({container:r,distanceToEdges:a,dragStartTime:t,axis:Wa,shouldUseTimeDampening:i}),c=Rs({x:s,y:l});if(ha(c,da))return null;var u=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,o=r.height>t.height,i=r.width>t.width;return i||o?i&&o?null:{x:i?0:n.x,y:o?0:n.y}:n}({container:r,subject:n,proposedScroll:c});return u?ha(u,da)?null:u:null},Ts=ya((function(e){return 0===e?0:e>0?1:-1})),Ms=(vs=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,o=fa(t,n),i={x:vs(o.x,r.x),y:vs(o.y,r.y)};return ha(i,da)?null:i}),Ns=function(e){var t=e.max,r=e.current,n=e.change,o={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},i=Ts(n),a=Ms({max:o,current:r,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},Ps=function(e,t){return Ns({current:e.scroll.current,max:e.scroll.max,change:t})},Is=function(e,t){var r=e.frame;return!!r&&Ns({current:r.scroll.current,max:r.scroll.max,change:t})},Ls=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,r=e.subject,n=e.center,o=e.shouldUseTimeDampening,i=As({dragStartTime:e.dragStartTime,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return i&&Ps(t,i)?i:null}({dragStartTime:r,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:n});if(s)return void o(s)}var c=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var o=n[r];return o.frame?o:null}var i=function(e,t){var r=Oa(ws(t),(function(t){return t.frame||ra(!1),bl(t.frame.pageMarginBox)(e)}));return r}(t,n);return i}({center:a,destination:ml(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,r=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=As({dragStartTime:o,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:i});return l&&Is(t,l)?l:null}({dragStartTime:r,droppable:c,subject:l,center:a,shouldUseTimeDampening:n});u&&i(c.descriptor.id,u)}},js=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=ml(e.impact);i||ra(!1);var a=function(e,t){if(!Is(e,t))return t;var n=function(e,t){var r=e.frame;return r&&Is(e,t)?Ms({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var o=pa(t,n);return r(e.descriptor.id,o),pa(t,o)}(e.dimensions.droppables[i],o);if(a){var l=e.viewport,s=function(e,t,r){if(!e)return r;if(!Ps(t,r))return r;var o=function(e,t){if(!Ps(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return Ms({current:n,max:r,change:t})}(t,r);if(!o)return n(r),null;var i=pa(r,o);return n(i),pa(r,i)}(e.isWindowScrollAllowed,l,a);s&&function(e,r){var n=fa(e.current.client.selection,r);t({client:n})}(e,s)}}}},Ds="data-rbd",Bs={base:gs=Ds+"-drag-handle",draggableId:gs+"-draggable-id",contextId:gs+"-context-id"},Hs=function(){var e=Ds+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),zs=function(){var e=Ds+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),qs={contextId:Ds+"-scroll-container-context-id"},Fs=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},Vs="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?J.useLayoutEffect:J.useEffect,Gs=function(){var e=document.querySelector("head");return e||ra(!1),e},Ws=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Us=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Zs(e){return e instanceof Us(e).HTMLElement}function Ks(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=n(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||ra(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return Sa(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=o(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ra(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Sa(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var $s=Q().createContext(null),Ys=function(){var e=document.body;return e||ra(!1),e},Xs={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Js=0,Qs={separator:"::"};function ec(e,t){return void 0===t&&(t=Qs),ji((function(){return""+e+t.separator+Js++}),[t.separator,e])}var tc=Q().createContext(null);function rc(e){var t=(0,J.useRef)(e);return(0,J.useEffect)((function(){t.current=e})),t}var nc,oc,ic=((nc={})[13]=!0,nc[9]=!0,nc),ac=function(e){ic[e.keyCode]&&e.preventDefault()},lc=function(){var e="visibilitychange";return"undefined"==typeof document?e:Oa([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),sc={type:"IDLE"};function cc(){}var uc=((oc={})[34]=!0,oc[33]=!0,oc[36]=!0,oc[35]=!0,oc);var dc={type:"IDLE"},fc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function pc(e,t){if(null==t)return!1;if(Boolean(fc[t.tagName.toLowerCase()]))return!0;var r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&pc(e,t.parentElement)}function hc(e,t){var r=t.target;return!!Zs(r)&&pc(e,r)}var mc=function(e){return Bi(e.getBoundingClientRect()).center},vc=function(){var e="matches";return"undefined"==typeof document?e:Oa([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function gc(e,t){return null==e?null:e[vc](t)?e:gc(e.parentElement,t)}function bc(e,t){return e.closest?e.closest(t):gc(e,t)}function yc(e){e.preventDefault()}function _c(e){var t=e.expected,r=e.phase,n=e.isLockActive;return e.shouldWarn,!!n()&&t===r}function wc(e){var t=e.lockAPI,r=e.store,n=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=n.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!ys(r.getState(),o)}var Cc=[function(e){var t=(0,J.useRef)(sc),r=(0,J.useRef)(Qi),n=ji((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};r.current(),c(o,i)}}}}}}),[e]),o=ji((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),i=Di((function(){r.current=ea(window,[o,n],{passive:!1,capture:!0})}),[o,n]),a=Di((function(){"IDLE"!==t.current.type&&(t.current=sc,r.current(),i())}),[i]),l=Di((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),s=Di((function(){var e=function(e){var t=e.cancel,r=e.completed,n=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,i=e.clientY;if(0===t){var a={x:r,y:i},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);if("PENDING"!==l.type&&ra(!1),s=l.point,c=a,Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5){var s,c;e.preventDefault();var u=l.actions.fluidLift(a);o({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void t()):void ac(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&ra(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:lc,fn:t}]}({cancel:l,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=ea(window,e,{capture:!0,passive:!1})}),[l,a]),c=Di((function(e,r){"IDLE"!==t.current.type&&ra(!1),t.current={type:"PENDING",point:r,actions:e},s()}),[s]);Vs((function(){return i(),function(){r.current()}}),[i])},function(e){var t=(0,J.useRef)(cc),r=ji((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var o=e.findClosestDraggableId(r);if(o){var i=e.tryGetLock(o,s,{sourceEvent:r});if(i){r.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=ea(window,function(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),t(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(uc[n.keyCode]?n.preventDefault():ac(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:lc,fn:r}]}(l,s),{capture:!0,passive:!1})}}}function s(){a||ra(!1),a=!1,t.current(),n()}}}}),[e]),n=Di((function(){t.current=ea(window,[r],{passive:!1,capture:!0})}),[r]);Vs((function(){return n(),function(){t.current()}}),[n])},function(e){var t=(0,J.useRef)(dc),r=(0,J.useRef)(Qi),n=Di((function(){return t.current}),[]),o=Di((function(e){t.current=e}),[]),i=ji((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,l,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};r.current(),d(o,a)}}}}}}),[e]),a=Di((function(){r.current=ea(window,[i],{capture:!0,passive:!1})}),[i]),l=Di((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(dc),r.current(),a())}),[a,o]),s=Di((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=Di((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:l,getPhase:n},o=ea(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),r.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&ra(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:lc,fn:t}]}(t),e),i=ea(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:lc,fn:t}]}(t),e);r.current=function(){o(),i()}}),[s,n,l]),u=Di((function(){var e=n();"PENDING"!==e.type&&ra(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[n,o]),d=Di((function(e,t){"IDLE"!==n().type&&ra(!1);var r=setTimeout(u,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),c()}),[c,n,o,u]);Vs((function(){return a(),function(){r.current();var e=n();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(dc))}}),[n,a,o]),Vs((function(){return ea(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function xc(e){var t=e.contextId,r=e.store,n=e.registry,o=e.customSensors,i=e.enableDefaultSensors,a=[].concat(i?Cc:[],o||[]),l=(0,J.useState)((function(){return function(){var e=null;function t(){e||ra(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ra(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=Di((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);Vs((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();s(e,t),e=t}))}),[l,r,s]),Vs((function(){return l.tryAbandon}),[l.tryAbandon]);for(var c=Di((function(e){return wc({lockAPI:l,registry:n,store:r,draggableId:e})}),[l,n,r]),u=Di((function(e,o,i){return function(e){var t=e.lockAPI,r=e.contextId,n=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!wc({lockAPI:t,store:n,registry:o,draggableId:i}))return null;var s=o.draggable.getById(i),c=function(e,t){var r="["+Hs.contextId+'="'+e+'"]',n=Oa(Ra(document.querySelectorAll(r)),(function(e){return e.getAttribute(Hs.id)===t}));return n&&Zs(n)?n:null}(r,s.descriptor.id);if(!c)return null;if(l&&!s.options.canDragInteractiveElements&&hc(c,l))return null;var u=t.claim(a||Qi),d="PRE_DRAG";function f(){return s.options.shouldRespectForcePress}function p(){return t.isActive(u)}var h=function(e,t){_c({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function m(e){function r(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=ea(window,[{eventName:"click",fn:yc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}r(),n.dispatch(Gl({reason:t}))}return"PRE_DRAG"!==d&&(r(),"PRE_DRAG"!==d&&ra(!1)),n.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),d="DRAGGING",Po({isActive:function(){return _c({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return _c({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=Xi((function(e){h((function(){return Bl({client:e})}))}));return Po({},m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return h(Hl)},moveRight:function(){return h(ql)},moveDown:function(){return h(zl)},moveLeft:function(){return h(Fl)}};return m({liftActionArgs:{id:i,clientSelection:mc(c),movementMode:"SNAP"},cleanup:Qi,actions:e})},abort:function(){_c({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}}}({lockAPI:l,registry:n,contextId:t,store:r,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,l,n,r]),d=Di((function(e){return function(e,t){var r=function(e,t){var r,n=t.target;if(!((r=n)instanceof Us(r).Element))return null;var o=function(e){return"["+Bs.contextId+'="'+e+'"]'}(e),i=bc(n,o);return i&&Zs(i)?i:null}(e,t);return r?r.getAttribute(Bs.draggableId):null}(t,e)}),[t]),f=Di((function(e){var t=n.draggable.findById(e);return t?t.options:null}),[n.draggable]),p=Di((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch({type:"FLUSH",payload:null}))}),[l,r]),h=Di(l.isClaimed,[l]),m=ji((function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}}),[c,u,d,f,p,h]),v=0;v<a.length;v++)a[v](m)}function Ec(e){return e.current||ra(!1),e.current}function Sc(e){var t=e.contextId,r=e.setCallbacks,n=e.sensors,o=e.nonce,i=e.dragHandleUsageInstructions,a=(0,J.useRef)(null),l=rc(e),s=Di((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(l.current)}),[l]),c=function(e){var t=ji((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),r=(0,J.useRef)(null);return(0,J.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Po(e.style,Xs),Ys().appendChild(e),function(){setTimeout((function(){var t=Ys();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),Di((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),u=function(e){var t=e.contextId,r=e.text,n=ec("hidden-text",{separator:"-"}),o=ji((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:n}).contextId+"-"+e.uniqueId;var e}),[n,t]);return(0,J.useEffect)((function(){var e=document.createElement("div");return e.id=o,e.textContent=r,e.style.display="none",Ys().appendChild(e),function(){var t=Ys();t.contains(e)&&t.removeChild(e)}}),[o,r]),o}({contextId:t,text:i}),d=function(e,t){var r=ji((function(){return function(e){var t,r,n,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(r="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(Bs.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),a=[(n="\n transition: "+Yl.outOfTheWay+";\n ",{selector:o(Hs.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),i,{selector:o(zs.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Fs(a,"always"),resting:Fs(a,"resting"),dragging:Fs(a,"dragging"),dropAnimating:Fs(a,"dropAnimating"),userCancel:Fs(a,"userCancel")}}(e)}),[e]),n=(0,J.useRef)(null),o=(0,J.useRef)(null),i=Di(Yi((function(e){var t=o.current;t||ra(!1),t.textContent=e})),[]),a=Di((function(e){var t=n.current;t||ra(!1),t.textContent=e}),[]);Vs((function(){(n.current||o.current)&&ra(!1);var l=Ws(t),s=Ws(t);return n.current=l,o.current=s,l.setAttribute(Ds+"-always",e),s.setAttribute(Ds+"-dynamic",e),Gs().appendChild(l),Gs().appendChild(s),a(r.always),i(r.resting),function(){var e=function(e){var t=e.current;t||ra(!1),Gs().removeChild(t),e.current=null};e(n),e(o)}}),[t,a,i,r.always,r.resting,e]);var l=Di((function(){return i(r.dragging)}),[i,r.dragging]),s=Di((function(e){i("DROP"!==e?r.userCancel:r.dropAnimating)}),[i,r.dropAnimating,r.userCancel]),c=Di((function(){o.current&&i(r.resting)}),[i,r.resting]);return ji((function(){return{dragging:l,dropping:s,resting:c}}),[l,s,c])}(t,o),f=Di((function(e){Ec(a).dispatch(e)}),[]),p=ji((function(){return Go({publishWhileDragging:Pl,updateDroppableScroll:Ll,updateDroppableIsEnabled:jl,updateDroppableIsCombineEnabled:Dl,collectionStarting:Il},f)}),[f]),h=function(){var e=ji(Ks,[]);return(0,J.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),m=ji((function(){return bs(h,p)}),[h,p]),v=ji((function(){return function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,o=function(e){var t=e.scrollDroppable,r=Xi(e.scrollWindow),n=Xi(t),o=null,i=function(e){o||ra(!1);var t=o,i=t.shouldUseTimeDampening,a=t.dragStartTime;Ls({state:e,scrollWindow:r,scrollDroppable:n,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&ra(!1);var t=Date.now(),r=!1,n=function(){r=!0};Ls({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:t,shouldUseTimeDampening:r},r&&i(e)},stop:function(){o&&(r.cancel(),n.cancel(),o=null)},scroll:i}}({scrollWindow:r,scrollDroppable:t}),i=js({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}}(Po({scrollWindow:_s,scrollDroppable:m.scrollDroppable},Go({move:Bl},f)))}),[m.scrollDroppable,f]),g=function(e){var t=(0,J.useRef)({}),r=(0,J.useRef)(null),n=(0,J.useRef)(null),o=(0,J.useRef)(!1),i=Di((function(e,r){var n={id:e,focus:r};return t.current[e]=n,function(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),a=Di((function(t){var r=function(e,t){var r="["+Bs.contextId+'="'+e+'"]',n=Ra(document.querySelectorAll(r));if(!n.length)return null;var o=Oa(n,(function(e){return e.getAttribute(Bs.draggableId)===t}));return o&&Zs(o)?o:null}(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),l=Di((function(e,t){r.current===e&&(r.current=t)}),[]),s=Di((function(){n.current||o.current&&(n.current=requestAnimationFrame((function(){n.current=null;var e=r.current;e&&a(e)})))}),[a]),c=Di((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(Bs.draggableId)===e&&(r.current=e)}),[]);return Vs((function(){return o.current=!0,function(){o.current=!1;var e=n.current;e&&cancelAnimationFrame(e)}}),[]),ji((function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:l}}),[i,c,s,l])}(t),b=ji((function(){return function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return Fo(Nl,ds(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(Bo(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=Wo.apply(void 0,i)(r.dispatch),Do(Do({},r),{},{dispatch:n})}}}((t=o,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,l=i.clientSelection,s=i.movementMode,c=r();"DROP_ANIMATING"===c.phase&&n(Vl({completed:c.completed})),"IDLE"!==r().phase&&ra(!1),n({type:"FLUSH",payload:null}),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:s}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:l,movementMode:s,viewport:h}})}else t(o)}}}}(r),ts,ss,cs,us,function(e){return function(t){return function(r){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var o=t.getState();return"DRAGGING"!==o.phase&&ra(!1),void e.start(o)}r(n),e.scroll(t.getState())}}}}(l),ns,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var o=n.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),ls(i,a))))}({announce:c,autoScroller:v,dimensionMarshal:m,focusMarshal:g,getResponders:s,styleMarshal:d})}),[c,v,m,g,s,d]);a.current=b;var y=Di((function(){var e=Ec(a);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),_=Di((function(){var e=Ec(a).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(ji((function(){return{isDragging:_,tryAbort:y}}),[_,y]));var w=Di((function(e){return ys(Ec(a).getState(),e)}),[]),C=Di((function(){return gl(Ec(a).getState())}),[]),x=ji((function(){return{marshal:m,focus:g,contextId:t,canLift:w,isMovementAllowed:C,dragHandleUsageInstructionsId:u,registry:h}}),[t,m,u,g,w,C,h]);return xc({contextId:t,store:b,registry:h,customSensors:n,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,J.useEffect)((function(){return y}),[y]),Q().createElement(tc.Provider,{value:x},Q().createElement(Jo,{context:$s,store:b},e.children))}var kc=0;function Oc(e){var t=ji((function(){return""+kc++}),[]),r=e.dragHandleUsageInstructions||"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";return Q().createElement(na,null,(function(n){return Q().createElement(Sc,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Rc=function(e){return function(t){return e===t}},Ac=Rc("scroll"),Tc=Rc("auto"),Mc=(Rc("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Nc=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return Mc(r,Ac)||Mc(r,Tc)}(t)?t:e(t.parentElement)},Pc=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Ic=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Lc={passive:!1},jc={passive:!0},Dc=function(e){return e.shouldPublishImmediately?Lc:jc};function Bc(e){var t=(0,J.useContext)(e);return t||ra(!1),t}var Hc=function(e){return e&&e.env.closestScrollable||null};function zc(){}var qc={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},Fc=Q().memo((function(e){var t=(0,J.useRef)(null),r=Di((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),n=e.animate,o=e.onTransitionEnd,i=e.onClose,a=e.contextId,l=(0,J.useState)("open"===e.animate),s=l[0],c=l[1];(0,J.useEffect)((function(){return s?"open"!==n?(r(),c(!1),zc):t.current?zc:(t.current=setTimeout((function(){t.current=null,c(!1)})),r):zc}),[n,s,r]);var u=Di((function(e){"height"===e.propertyName&&(o(),"close"===n&&i())}),[n,i,o]),d=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?qc:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?Yl.placeholder:null}}({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Q().createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":a,onTransitionEnd:u,ref:e.innerRef})})),Vc=Q().createContext(null),Gc=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return No(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(Q().PureComponent),Wc=function(e,t){return t?Yl.drop(t.duration):e?Yl.snap:Yl.fluid},Uc=function(e,t){return e?t?Ul:Zl:null};function Zc(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,r=e.offset,n=e.combineWith,o=e.dropping,i=Boolean(n),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(o),s=l?function(e,t){var r=Xl(e);return r?t?r+" scale("+Kl+")":r:null}(r,i):Jl(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Wc(a,o),transform:s,opacity:Uc(i,l),zIndex:l?4500:5e3,pointerEvents:"none"}}(e):{transform:Jl((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Kc(e){e.preventDefault()}var $c=function(e,t){return e===t},Yc=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null};function Xc(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Jc={mapped:{type:"SECONDARY",offset:da,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Xc(null)}},Qc=Mi((function(){var e,t,r,n=(e=Yi((function(e,t){return{x:e,y:t}})),t=Yi((function(e,t,r,n,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=Yi((function(e,r,n,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:l,snapshot:t(r,o,i,a,null)}}})),function(n,o){if(n.isDragging){if(n.critical.draggable.id!==o.draggableId)return null;var i=n.current.client.offset,a=n.dimensions.draggables[o.draggableId],l=ml(n.impact),s=(u=n.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=n.forceShouldAnimate;return r(e(i.x,i.y),n.movementMode,a,o.isClone,l,s,c)}var u;if("DROP_ANIMATING"===n.phase){var d=n.completed;if(d.result.draggableId!==o.draggableId)return null;var f=o.isClone,p=n.dimensions.draggables[o.draggableId],h=d.result,m=h.mode,v=Yc(h),g=function(e){return e.combine?e.combine.draggableId:null}(h),b={duration:n.dropDuration,curve:Wl,moveTo:n.newHomeClientOffset,opacity:g?Ul:null,scale:g?Kl:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:p,dropping:b,draggingOver:v,combineWith:g,mode:m,forceShouldAnimate:null,snapshot:t(m,f,v,g,b)}}}return null}),o=function(){var e=Yi((function(e,t){return{x:e,y:t}})),t=Yi(Xc),r=Yi((function(e,r,n){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}})),n=function(e){return e?r(da,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],s=Boolean(a.inVirtualList&&a.effected[t]),c=La(i),u=c&&c.draggableId===t?o:null;if(!l){if(!s)return n(u);if(i.displaced.invisible[t])return null;var d=ma(a.displacedBy.point),f=e(d.x,d.y);return r(f,u,!0)}if(s)return n(u);var p=i.displacedBy.point,h=e(p.x,p.y);return r(h,u,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var r=e.completed;return r.result.draggableId===t.draggableId?null:o(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function(e,t){return n(e,t)||o(e,t)||Jc}}),{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:$s,pure:!0,areStatePropsEqual:$c})((function(e){var t=(0,J.useRef)(null),r=Di((function(e){t.current=e}),[]),n=Di((function(){return t.current}),[]),o=Bc(tc),i=o.contextId,a=o.dragHandleUsageInstructionsId,l=o.registry,s=Bc(Vc),c=s.type,u=s.droppableId,d=ji((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}}),[e.draggableId,e.index,c,u]),f=e.children,p=e.draggableId,h=e.isEnabled,m=e.shouldRespectForcePress,v=e.canDragInteractiveElements,g=e.isClone,b=e.mapped,y=e.dropAnimationFinished;g||function(e){var t=ec("draggable"),r=e.descriptor,n=e.registry,o=e.getDraggableRef,i=e.canDragInteractiveElements,a=e.shouldRespectForcePress,l=e.isEnabled,s=ji((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:a,isEnabled:l}}),[i,l,a]),c=Di((function(e){var t=o();return t||ra(!1),function(e,t,r){void 0===r&&(r=da);var n=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Ui(o,n),a=Wi(i,r);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,o]),u=ji((function(){return{uniqueId:t,descriptor:r,options:s,getDimension:c}}),[r,c,s,t]),d=(0,J.useRef)(u),f=(0,J.useRef)(!0);Vs((function(){return n.draggable.register(d.current),function(){return n.draggable.unregister(d.current)}}),[n.draggable]),Vs((function(){if(f.current)f.current=!1;else{var e=d.current;d.current=u,n.draggable.update(u,e)}}),[u,n.draggable])}(ji((function(){return{descriptor:d,registry:l,getDraggableRef:n,canDragInteractiveElements:v,shouldRespectForcePress:m,isEnabled:h}}),[d,l,n,v,m,h]));var _=ji((function(){return h?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:Kc}:null}),[i,a,p,h]),w=Di((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&y()}),[y,b]),C=ji((function(){var e=Zc(b),t="DRAGGING"===b.type&&b.dropping?w:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":p,style:e,onTransitionEnd:t},dragHandleProps:_}}),[i,_,p,b,w,r]),x=ji((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return f(C,b.snapshot,x)}));function eu(e){return Bc(Vc).isUsingCloneFor!==e.draggableId||e.isClone?Q().createElement(Qc,e):null}function tu(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return Q().createElement(eu,Po({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}var ru=function(e,t){return e===t.droppable.type},nu=function(e,t){return t.draggables[e.draggable.id]},ou={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ra(!1),document.body}},iu=Mi((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Po({},e,{shouldAnimatePlaceholder:!1}),r=Yi((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=Yi((function(n,o,i,a,l,s){var c=l.descriptor.id;if(l.descriptor.droppableId===n){var u=s?{render:s,dragging:r(l.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(r,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,s=o.renderClone;if(r.isDragging){var c=r.critical;if(!ru(a,c))return t;var u=nu(c,r.dimensions),d=ml(r.impact)===i;return n(i,l,d,d,u,s)}if("DROP_ANIMATING"===r.phase){var f=r.completed;if(!ru(a,f.critical))return t;var p=nu(f.critical,r.dimensions);return n(i,l,Yc(f.result)===i,ml(f.impact)===i,p,s)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var h=r.completed;if(!ru(a,h.critical))return t;var m=ml(h.impact)===i,v=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),g=h.critical.droppable.id===i;return m?v?e:t:g?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:$s,pure:!0,areStatePropsEqual:$c})((function(e){var t=(0,J.useContext)(tc);t||ra(!1);var r=t.contextId,n=t.isMovementAllowed,o=(0,J.useRef)(null),i=(0,J.useRef)(null),a=e.children,l=e.droppableId,s=e.type,c=e.mode,u=e.direction,d=e.ignoreContainerClipping,f=e.isDropDisabled,p=e.isCombineEnabled,h=e.snapshot,m=e.useClone,v=e.updateViewportMaxScroll,g=e.getContainerForClone,b=Di((function(){return o.current}),[]),y=Di((function(e){o.current=e}),[]),_=(Di((function(){return i.current}),[]),Di((function(e){i.current=e}),[])),w=Di((function(){n()&&v({maxScroll:hs()})}),[n,v]);!function(e){var t=(0,J.useRef)(null),r=Bc(tc),n=ec("droppable"),o=r.registry,i=r.marshal,a=rc(e),l=ji((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),s=(0,J.useRef)(l),c=ji((function(){return Yi((function(e,r){t.current||ra(!1);var n={x:e,y:r};i.updateDroppableScroll(l.id,n)}))}),[l.id,i]),u=Di((function(){var e=t.current;return e&&e.env.closestScrollable?Pc(e.env.closestScrollable):da}),[]),d=Di((function(){var e=u();c(e.x,e.y)}),[u,c]),f=ji((function(){return Xi(d)}),[d]),p=Di((function(){var e=t.current,r=Hc(e);e&&r||ra(!1),e.scrollOptions.shouldPublishImmediately?d():f()}),[f,d]),h=Di((function(e,n){t.current&&ra(!1);var o=a.current,i=o.getDroppableRef();i||ra(!1);var s=function(e){return{closestScrollable:Nc(e),isFixedOnPage:Ic(e)}}(i),c={ref:i,descriptor:l,env:s,scrollOptions:n};t.current=c;var u=function(e){var t=e.ref,r=e.descriptor,n=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,c=n.closestScrollable,u=function(e,t){var r=Zi(e);if(!t)return r;if(e!==t)return r;var n=r.paddingBox.top-t.scrollTop,o=r.paddingBox.left-t.scrollLeft,i=n+t.scrollHeight,a=o+t.scrollWidth,l=Hi({top:n,right:a,bottom:i,left:o},r.border);return Fi({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})}(t,c),d=Wi(u,o),f=function(){if(!c)return null;var e=Zi(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:Wi(e,o),scroll:Pc(c),scrollSize:t,shouldClipSubject:s}}(),p=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,s=e.closest,c=function(){if(!s)return null;var e=s.scrollSize,t=s.client,r=fs({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:r,diff:{value:da,displacement:da}}}}(),u="vertical"===i?Ga:Wa;return{descriptor:t,isCombineEnabled:n,isFixedOnPage:o,axis:u,isEnabled:r,client:a,page:l,frame:c,subject:xa({page:l,withPlaceholder:null,axis:u,frame:c})}}({descriptor:r,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:i,client:u,page:d,closest:f});return p}({ref:i,descriptor:l,env:s,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=s.closestScrollable;return d&&(d.setAttribute(qs.contextId,r.contextId),d.addEventListener("scroll",p,Dc(c.scrollOptions))),u}),[r.contextId,l,p,a]),m=Di((function(){var e=t.current,r=Hc(e);return e&&r||ra(!1),Pc(r)}),[]),v=Di((function(){var e=t.current;e||ra(!1);var r=Hc(e);t.current=null,r&&(f.cancel(),r.removeAttribute(qs.contextId),r.removeEventListener("scroll",p,Dc(e.scrollOptions)))}),[p,f]),g=Di((function(e){var r=t.current;r||ra(!1);var n=Hc(r);n||ra(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),b=ji((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:m,dragStopped:v,scroll:g}}),[v,h,m,g]),y=ji((function(){return{uniqueId:n,descriptor:l,callbacks:b}}),[b,l,n]);Vs((function(){return s.current=y.descriptor,o.droppable.register(y),function(){t.current&&v(),o.droppable.unregister(y)}}),[b,l,v,y,i,o.droppable]),Vs((function(){t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),Vs((function(){t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:l,type:s,mode:c,direction:u,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:b});var C=Q().createElement(Gc,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,o=e.animate;return Q().createElement(Fc,{placeholder:n,onClose:t,innerRef:_,animate:o,contextId:r,onTransitionEnd:w})})),x=ji((function(){return{innerRef:y,placeholder:C,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}}),[r,l,C,y]),E=m?m.dragging.draggableId:null,S=ji((function(){return{droppableId:l,type:s,isUsingCloneFor:E}}),[l,E,s]);return Q().createElement(Vc.Provider,{value:S},a(x,h),function(){if(!m)return null;var e=m.dragging,t=m.render,r=Q().createElement(eu,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return t(r,n,e)}));return Ii().createPortal(r,g())}())}));iu.defaultProps=ou;const au=function(e){return(e=(e=(e=(e=e.replace("far ","")).replace("fas ","")).replace("fab ","")).replace("fa-","")).replace("fa ","")},lu=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=au(e),0!==srfm_spec_blocks_info.font_awesome_5_polyfill.length&&((r=srfm_spec_blocks_info.uagb_svg_icons[e])||(r=srfm_spec_blocks_info.uagb_svg_icons[null===(n=srfm_spec_blocks_info.font_awesome_5_polyfill)||void 0===n?void 0:n[e]])),!r)return null;var i=null!==(t=r.svg)&&void 0!==t&&t.brands?r.svg.brands:r.svg.solid,a="0 0 ".concat(i.width," ").concat(i.height),l=i.path,s=null;switch(e){case"align-center":s={fillRule:"evenodd",clipRule:"evenodd",d:"M4 2H14V0H4V2ZM0 7H18V5H0V7ZM4 12H14V10H4V12Z"};break;case"align-left":s={fillRule:"evenodd",clipRule:"evenodd",d:"M10 2H0V0H10V2ZM18 7H0V5H18V7ZM10 12H0V10H10V12Z"};break;case"align-right":s={fillRule:"evenodd",clipRule:"evenodd",d:"M8 2H18V0H8V2ZM0 7H18V5H0V7ZM8 12H18V10H8V12Z"};break;case"align-justify":s={d:"M0 0H18V2H0V0ZM0 5.00001H18V7.00001H0V5.00001ZM0 10H18V12H0V10Z"}}return s?React.createElement("svg",{width:"18",height:"12",viewBox:"0 0 18 12",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",s)):o&&"not_set"!==o?React.createElement("svg",{width:"20",height:"20",xmlns:"https://www.w3.org/2000/svg",viewBox:a},React.createElement("path",{d:l})):React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",viewBox:a},React.createElement("path",{d:l}))};var su=function(e){var t=e.attributes,r=e.blockID,n=e.setAttributes,o=t.label,i=t.required,a=t.options,l=t.choiceWidth,s=t.help,c=t.singleSelection,u=t.verticalLayout,d=t.optionType,f=i?" srfm-required":"",p=l?String(l):"100",h=l?p.replace(".","-"):"100",m=function(){var e=jr(c?vo["circle-unchecked"]:vo["square-unchecked"]);return React.createElement("div",{className:"srfm-block-wrap srfm-choice-width-".concat(h).concat(u?" srfm-vertical-layout":"")},a.map((function(t,r){return React.createElement("label",{key:r,className:"srfm-multi-choice-single"},React.createElement("div",{className:"srfm-block-content-wrap"},React.createElement("div",{className:"srfm-option-container"},"icon"===d&&t.icon&&React.createElement("span",{className:"srfm-option-icon"}," ",lu(t.icon)," "),"image"===d&&t.image&&React.createElement("span",{className:"srfm-option-image"},React.createElement("img",{src:t.image,alt:t.optionTitle})),React.createElement("p",null,t.optionTitle)),React.createElement("div",{className:"srfm-icon-container"},React.createElement("span",{className:"srfm-icon srfm-".concat("multi-choice","-icon")},e))))})))};return React.createElement(React.Fragment,null,React.createElement(g.RichText,{tagName:"label",value:o,onChange:function(e){n({label:yr(e)})},className:"srfm-block-label".concat(f),multiline:!1,id:r,allowedFormats:[]}),React.createElement(Wr,{help:s,setAttributes:n,block_id:r}),React.createElement(m,null))},cu=a(84180),uu={};cu.A&&cu.A.locals&&(uu.locals=cu.A.locals);var du,fu=0,pu={attributes:{id:"sureforms-editor-styles"}};pu.setAttributes=he(),pu.insert=fe().bind(null,"head"),pu.domAPI=ue(),pu.insertStyleElement=ve(),uu.use=function(e){return pu.options=e||{},fu++||(du=se()(cu.A,pu)),uu},uu.unuse=function(){fu>0&&! --fu&&(du(),du=null)};const hu=uu;function mu(e){return mu="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},mu(e)}function vu(e,t,r){return(t=function(e){var t=function(e){if("object"!=mu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=mu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bu(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bu(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 bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const yu=function(e){var t,r,n=gu((0,b.useState)(null),2),o=n[0],i=n[1],a=(0,b.useRef)(null);(0,b.useLayoutEffect)((function(){return hu.use(),function(){hu.unuse()}}),[]);var l=(0,P.select)("core/block-editor").getSelectedBlock,s=null===(t=l())||void 0===t?void 0:t.name.split("/").pop();(0,b.useEffect)((function(){i(zt(a))}),[s]);var c=e.data,u=e.label,d=e.options,f=e.showIcons,p=e.responsive,h=e.onChange,m=e.colorVariant,g=void 0===m?"primary":m,_=e.layoutVariant,w=void 0===_?"full":_,C=e.help,x=void 0!==C&&C,E=!(!e.setAttributes||"function"!=typeof e.setAttributes)&&e.setAttributes,S=null===(r=l())||void 0===r?void 0:r.name.split("/").pop(),k=(0,z.applyFilters)("srfm.blocksAttributes",kr),O=gu((0,b.useState)(!0),2),R=O[0],A=O[1],T=gu((0,b.useState)(!0),2),M=T[0],N=T[1],I=gu((0,b.useState)(!0),2),L=I[0],j=I[1],D=Ue(),B=f?"srfm-multibutton-icons":"";if(!d)return(0,y.__)("Please add a option props to MultiButtonsControl","sureforms");if(p){var H={};return H.Desktop=React.createElement(v.ButtonGroup,{className:"srfm-multi-button-button-group","aria-label":u},d.map((function(e){return React.createElement(v.Button,{key:"option-".concat(e.value),className:"srfm-multi-button",isSecondary:c.desktop.value!==e.value||!R,isPrimary:c.desktop.value===e.value&&R,"aria-pressed":c.desktop.value===e.value,onClick:function(){if(A(!0),e.value===c.desktop.value&&R)return A(!1),void(E&&E(vu({},c.desktop.label,k[S][c.desktop.label].default)));E&&E(vu({},c.desktop.label,e.value))},"aria-label":e.tooltip,label:e.tooltip,showTooltip:!!e.tooltip},f?e.icon:e.label)}))),H.Tablet=React.createElement(v.ButtonGroup,{className:"srfm-multi-button-button-group","aria-label":u},d.map((function(e){return React.createElement(v.Button,{key:"option-".concat(e.value),className:"srfm-multi-button",isSecondary:c.tablet.value!==e.value||!M,isPrimary:c.tablet.value===e.value&&M,"aria-pressed":c.tablet.value===e.value,onClick:function(){if(N(!0),e.value===c.tablet.value&&M)return N(!1),void(E&&E(vu({},c.tablet.label,k[S][c.tablet.label].default)));E&&E(vu({},c.tablet.label,e.value))},"aria-label":e.tooltip,label:e.tooltip,showTooltip:!!e.tooltip},f?e.icon:e.label)}))),H.Mobile=React.createElement(v.ButtonGroup,{className:"srfm-multi-button-button-group","aria-label":u},d.map((function(e){return React.createElement(v.Button,{key:"option-".concat(e.value),className:"srfm-multi-button",isSecondary:c.mobile.value!==e.value||!L,isPrimary:c.mobile.value===e.value&&L,"aria-pressed":c.mobile.value===e.value,onClick:function(){if(j(!0),e.value===c.mobile.value&&L)return j(!1),void(E&&E(vu({},c.mobile.label,k[S][c.mobile.label].default)));E&&E(vu({},c.mobile.label,e.value))},"aria-label":e.tooltip,label:e.tooltip,showTooltip:!!e.tooltip},f?e.icon:e.label)}))),React.createElement("div",{className:"components-base-control srfm-multi-buttons-control ".concat(B," srfm-multi-buttons__color-scheme--").concat(g," srfm-multi-buttons__layout--").concat(w)},React.createElement("div",{className:"srfm-control__header srfm-size-type-field-tabs"},React.createElement(Yt,{label:u,responsive:p})),H[D]?H[D]:H.Desktop,React.createElement(Vt,{text:x}))}var q=Ht(u),F=(0,z.applyFilters)("srfm.".concat(S,".").concat(o,".").concat(q,".before"),"",S),V=(0,z.applyFilters)("srfm.".concat(S,".").concat(o,".").concat(q),"",S),G=(0,z.applyFilters)("srfm.".concat(S,".").concat(o,".").concat(q,".options"),d,S);return React.createElement("div",{ref:a,className:"components-base-control"},F,React.createElement("div",{className:" srfm-multi-buttons-control ".concat(B," srfm-multi-buttons__color-scheme--").concat(g," srfm-multi-buttons__layout--").concat(w)},React.createElement("div",{className:"srfm-multi-buttons-control__label srfm-control-label"},u),React.createElement(v.ButtonGroup,{className:"srfm-multi-button-button-group","aria-label":u},G.map((function(e){return React.createElement(v.Button,{key:"option-".concat(e.value),className:"srfm-multi-button",isSecondary:c.value!==e.value||!R,isPrimary:c.value===e.value&&R,"aria-pressed":c.value===e.value,onClick:function(){return t=e.value,A(!0),h&&h(t),void(t===c.value&&R?(A(!1),E&&E(vu({},c.label,null===(r=k[S])||void 0===r||null===(r=r[c.label])||void 0===r?void 0:r.default))):E&&E(vu({},c.label,t)));var t,r},"aria-label":e.tooltip,label:e.tooltip,showTooltip:!!e.tooltip},f?e.icon:e.label)}))),React.createElement(Vt,{text:x})),V)};var _u=a(53307),wu={};_u.A&&_u.A.locals&&(wu.locals=_u.A.locals);var Cu,xu=0,Eu={attributes:{id:"sureforms-editor-styles"}};Eu.setAttributes=he(),Eu.insert=fe().bind(null,"head"),Eu.domAPI=ue(),Eu.insertStyleElement=ve(),wu.use=function(e){return Eu.options=e||{},xu++||(Cu=se()(_u.A,Eu)),wu},wu.unuse=function(){xu>0&&! --xu&&(Cu(),Cu=null)};const Su=wu;var ku=a(82274),Ou=a.n(ku),Ru=a(65044),Au=a.n(Ru),Tu=a(65611),Mu=a.n(Tu),Nu=a(18337),Pu=a.n(Nu),Iu=a(56994),Lu=a.n(Iu),ju=a(26396),Du=a.n(ju);function Bu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Hu(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function zu(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function qu(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,n=null,o=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==r||null!==n||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=Bu,t.componentWillReceiveProps=Hu),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=zu;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;l.call(this,e,t,n)}}return e}function Fu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fu(Object(r),!0).forEach((function(t){Du()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gu=function(){return!!e})()}Bu.__suppressDeprecationWarning=!0,Hu.__suppressDeprecationWarning=!0,zu.__suppressDeprecationWarning=!0;var Wu=function(e){function t(){var e;Ou()(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e=function(e,t,r){return t=Pu()(t),Mu()(e,Gu()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[].concat(n)),Du()(e,"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),Du()(e,"_columnStartIndex",0),Du()(e,"_columnStopIndex",0),Du()(e,"_rowStartIndex",0),Du()(e,"_rowStopIndex",0),Du()(e,"_onKeyDown",(function(t){var r=e.props,n=r.columnCount,o=r.disabled,i=r.mode,a=r.rowCount;if(!o){var l=e._getScrollState(),s=l.scrollToColumn,c=l.scrollToRow,u=e._getScrollState(),d=u.scrollToColumn,f=u.scrollToRow;switch(t.key){case"ArrowDown":f="cells"===i?Math.min(f+1,a-1):Math.min(e._rowStopIndex+1,a-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(e._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,n-1):Math.min(e._columnStopIndex+1,n-1);break;case"ArrowUp":f="cells"===i?Math.max(f-1,0):Math.max(e._rowStartIndex-1,0)}d===s&&f===c||(t.preventDefault(),e._updateScrollState({scrollToColumn:d,scrollToRow:f}))}})),Du()(e,"_onSectionRendered",(function(t){var r=t.columnStartIndex,n=t.columnStopIndex,o=t.rowStartIndex,i=t.rowStopIndex;e._columnStartIndex=r,e._columnStopIndex=n,e._rowStartIndex=o,e._rowStopIndex=i})),e}return Lu()(t,e),Au()(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,r=e.scrollToRow;this.setState({scrollToRow:r,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.children,n=this._getScrollState(),o=n.scrollToColumn,i=n.scrollToRow;return J.createElement("div",{className:t,onKeyDown:this._onKeyDown},r({onSectionRendered:this._onSectionRendered,scrollToColumn:o,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,r=e.scrollToRow,n=this.props,o=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:r}),o||this.setState({scrollToColumn:t,scrollToRow:r})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?Vu(Vu({},t),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])}(J.PureComponent);function Uu(e,t){var r,n=void 0!==(r=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a.g).document&&r.document.attachEvent;if(!n){var o=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),i=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),l=function(e){var t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,o=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=r.offsetWidth+1+"px",o.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},s=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=o((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))}},c=!1,u="",d="animationstart",f="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=r.document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var m=0;m<f.length;m++)if(void 0!==h.style[f[m]+"AnimationName"]){u="-"+f[m].toLowerCase()+"-",d=p[m],c=!0;break}var v="resizeanim",g="@"+u+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",b=u+"animation: 1ms "+v+"; "}return{addResizeListener:function(t,o){if(n)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,a=r.getComputedStyle(t);a&&"static"==a.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var r=(g||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',n=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(t.createTextNode(r)),n.appendChild(o)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c=i.createElement("div");c.className="expand-trigger",c.appendChild(i.createElement("div"));var u=i.createElement("div");u.className="contract-trigger",t.__resizeTriggers__.appendChild(c),t.__resizeTriggers__.appendChild(u),t.appendChild(t.__resizeTriggers__),l(t),t.addEventListener("scroll",s,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==v&&l(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(n)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function Zu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ku(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zu(Object(r),!0).forEach((function(t){Du()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($u=function(){return!!e})()}Du()(Wu,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),qu(Wu);var Yu=function(e){function t(){var e;Ou()(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e=function(e,t,r){return t=Pu()(t),Mu()(e,$u()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[].concat(n)),Du()(e,"state",{height:e.props.defaultHeight||0,width:e.props.defaultWidth||0}),Du()(e,"_parentNode",void 0),Du()(e,"_autoSizer",void 0),Du()(e,"_window",void 0),Du()(e,"_detectElementResize",void 0),Du()(e,"_onResize",(function(){var t=e.props,r=t.disableHeight,n=t.disableWidth,o=t.onResize;if(e._parentNode){var i=e._parentNode.offsetHeight||0,a=e._parentNode.offsetWidth||0,l=(e._window||window).getComputedStyle(e._parentNode)||{},s=parseInt(l.paddingLeft,10)||0,c=parseInt(l.paddingRight,10)||0,u=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,f=i-u-d,p=a-s-c;(!r&&e.state.height!==f||!n&&e.state.width!==p)&&(e.setState({height:i-u-d,width:a-s-c}),o({height:i,width:a}))}})),Du()(e,"_setRef",(function(t){e._autoSizer=t})),e}return Lu()(t,e),Au()(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Uu(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,l=a.height,s=a.width,c={overflow:"visible"},u={};return n||(c.height=0,u.height=l),o||(c.width=0,u.width=s),J.createElement("div",{className:r,ref:this._setRef,style:Ku(Ku({},c),i)},t(u))}}])}(J.Component);function Xu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xu=function(){return!!e})()}Du()(Yu,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Ju=function(e){function t(){var e;Ou()(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e=function(e,t,r){return t=Pu()(t),Mu()(e,Xu()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[].concat(n)),Du()(e,"_child",J.createRef()),Du()(e,"_measure",(function(){var t=e.props,r=t.cache,n=t.columnIndex,o=void 0===n?0:n,i=t.parent,a=t.rowIndex,l=void 0===a?e.props.index||0:a,s=e._getCellMeasurements(),c=s.height,u=s.width;c===r.getHeight(l,o)&&u===r.getWidth(l,o)||(r.set(l,o,u,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:o,rowIndex:l}))})),Du()(e,"_registerChild",(function(t){!t||t instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),e._child.current=t,t&&e._maybeMeasureCell()})),e}return Lu()(t,e),Au()(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this,t=this.props.children,r="function"==typeof t?t({measure:this._measure,registerChild:this._registerChild}):t;return null===r?r:(0,J.cloneElement)(r,{ref:function(t){"function"==typeof r.ref?r.ref(t):r.ref&&(r.ref.current=t),e._child.current=t}})}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child.current;if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var r=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var o=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return r&&(t.style.width=r),n&&(t.style.height=n),{height:o,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,r=e.columnIndex,n=void 0===r?0:r,o=e.parent,i=e.rowIndex,a=void 0===i?this.props.index||0:i;if(!t.has(a,n)){var l=this._getCellMeasurements(),s=l.height,c=l.width;t.set(a,n,c,s),o&&"function"==typeof o.invalidateCellSizeAfterRender&&o.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:a})}}}])}(J.PureComponent);Du()(Ju,"__internalCellMeasurerFlag",!1);var Qu=a(72637),ed=a.n(Qu),td=a(16193),rd=a.n(td);function nd(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=nd(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const od=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=nd(e))&&(n&&(n+=" "),n+=t);return n};function id(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(r){var n=r.callback,o=r.indices,i=Object.keys(o),a=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),l=i.length!==Object.keys(t).length||i.some((function(e){var r=t[e],n=o[e];return Array.isArray(n)?r.join(",")!==n.join(","):r!==n}));t=o,a&&l&&n(o)}}const ad=!("undefined"==typeof window||!window.document||!window.document.createElement);var ld;function sd(e){if((!ld&&0!==ld||e)&&ad){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),ld=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ld}function cd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ud(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(r),!0).forEach((function(t){Du()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dd=function(){return!!e})()}var fd="requested",pd=function(e){function t(){var e;Ou()(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e=function(e,t,r){return t=Pu()(t),Mu()(e,dd()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[].concat(n)),Du()(e,"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),Du()(e,"_calculateSizeAndPositionDataOnNextUpdate",!1),Du()(e,"_onSectionRenderedMemoizer",id()),Du()(e,"_onScrollMemoizer",id(!1)),Du()(e,"_invokeOnSectionRenderedHelper",(function(){var t=e.props,r=t.cellLayoutManager,n=t.onSectionRendered;e._onSectionRenderedMemoizer({callback:n,indices:{indices:r.getLastRenderedIndices()}})})),Du()(e,"_setScrollingContainerRef",(function(t){e._scrollingContainer=t})),Du()(e,"_updateScrollPositionForScrollToCell",(function(){var t=e.props,r=t.cellLayoutManager,n=t.height,o=t.scrollToAlignment,i=t.scrollToCell,a=t.width,l=e.state,s=l.scrollLeft,c=l.scrollTop;if(i>=0){var u=r.getScrollPositionForCell({align:o,cellIndex:i,height:n,scrollLeft:s,scrollTop:c,width:a});u.scrollLeft===s&&u.scrollTop===c||e._setScrollPosition(u)}})),Du()(e,"_onScroll",(function(t){if(t.target===e._scrollingContainer){e._enablePointerEventsAfterDelay();var r=e.props,n=r.cellLayoutManager,o=r.height,i=r.isScrollingChange,a=r.width,l=e._scrollbarSize,s=n.getTotalSize(),c=s.height,u=s.width,d=Math.max(0,Math.min(u-a+l,t.target.scrollLeft)),f=Math.max(0,Math.min(c-o+l,t.target.scrollTop));if(e.state.scrollLeft!==d||e.state.scrollTop!==f){var p=t.cancelable?"observed":fd;e.state.isScrolling||i(!0),e.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:f})}e._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:u,totalHeight:c})}})),e._scrollbarSize=sd(),void 0===e._scrollbarSize?(e._scrollbarSizeMeasured=!1,e._scrollbarSize=0):e._scrollbarSizeMeasured=!0,e}return Lu()(t,e),Au()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,r=e.scrollLeft,n=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=sd(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(r>=0||o>=0)&&this._setScrollPosition({scrollLeft:r,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:o||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var r=this.props,n=r.height,o=r.scrollToAlignment,i=r.scrollToCell,a=r.width,l=this.state,s=l.scrollLeft,c=l.scrollPositionChangeReason,u=l.scrollTop;c===fd&&(s>=0&&s!==t.scrollLeft&&s!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=s),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),n===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,r=e.cellCount,n=e.cellLayoutManager,o=e.className,i=e.height,a=e.horizontalOverscanSize,l=e.id,s=e.noContentRenderer,c=e.style,u=e.verticalOverscanSize,d=e.width,f=this.state,p=f.isScrolling,h=f.scrollLeft,m=f.scrollTop;(this._lastRenderedCellCount!==r||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=r,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),g=v.height,b=v.width,y=Math.max(0,h-a),_=Math.max(0,m-u),w=Math.min(b,h+d+a),C=Math.min(g,m+i+u),x=i>0&&d>0?n.cellRenderers({height:C-_,isScrolling:p,width:w-y,x:y,y:_}):[],E={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},S=g>i?this._scrollbarSize:0,k=b>d?this._scrollbarSize:0;return E.overflowX=b+S<=d?"hidden":"auto",E.overflowY=g+k<=i?"hidden":"auto",J.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:od("ReactVirtualized__Collection",o),id:l,onScroll:this._onScroll,role:"grid",style:ud(ud({},E),c),tabIndex:0},r>0&&J.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:g,maxHeight:g,maxWidth:b,overflow:"hidden",pointerEvents:p?"none":"",width:b}},x),0===r&&s())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:o,scrollLeft:r,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:fd};t>=0&&(n.scrollLeft=t),r>=0&&(n.scrollTop=r),(t>=0&&t!==this.state.scrollLeft||r>=0&&r!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:fd}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:fd}}}])}(J.PureComponent);Du()(pd,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),pd.propTypes={},qu(pd);const hd=pd;var md=function(){return Au()((function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;Ou()(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}),[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}])}(),vd=function(){return Au()((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;Ou()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}),[{key:"getCellIndices",value:function(e){var t=e.height,r=e.width,n=e.x,o=e.y,i={};return this.getSections({height:t,width:r,x:n,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,r=e.width,n=e.x,o=e.y,i=Math.floor(n/this._sectionSize),a=Math.floor((n+r-1)/this._sectionSize),l=Math.floor(o/this._sectionSize),s=Math.floor((o+t-1)/this._sectionSize),c=[],u=i;u<=a;u++)for(var d=l;d<=s;d++){var f="".concat(u,".").concat(d);this._sections[f]||(this._sections[f]=new md({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[f])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,r=e.index;this._cellMetadata[r]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:r})}))}}])}();function gd(e){var t=e.align,r=void 0===t?"auto":t,n=e.cellOffset,o=e.cellSize,i=e.containerSize,a=e.currentOffset,l=n,s=l-i+o;switch(r){case"start":return l;case"end":return s;case"center":return l-(i-o)/2;default:return Math.max(s,Math.min(l,a))}}function bd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bd=function(){return!!e})()}var yd=function(e){function t(e,r){var n;return Ou()(this,t),n=function(e,t,r){return t=Pu()(t),Mu()(e,bd()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[e,r]),n._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(n),n._setCollectionViewRef=n._setCollectionViewRef.bind(n),n}return Lu()(t,e),Au()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=rd()({},(ed()(this.props),this.props));return J.createElement(hd,rd()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=[],o=new vd(e.sectionSize),i=0,a=0,l=0;l<t;l++){var s=r({index:l});if(null==s.height||isNaN(s.height)||null==s.width||isNaN(s.width)||null==s.x||isNaN(s.x)||null==s.y||isNaN(s.y))throw Error("Invalid metadata returned for cell ".concat(l,":\n x:").concat(s.x,", y:").concat(s.y,", width:").concat(s.width,", height:").concat(s.height));i=Math.max(i,s.y+s.height),a=Math.max(a,s.x+s.width),n[l]=s,o.registerCell({cellMetadatum:s,index:l})}return{cellMetadata:n,height:i,sectionManager:o,width:a}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,r=e.cellIndex,n=e.height,o=e.scrollLeft,i=e.scrollTop,a=e.width,l=this.props.cellCount;if(r>=0&&r<l){var s=this._cellMetadata[r];o=gd({align:t,cellOffset:s.x,cellSize:s.width,containerSize:a,currentOffset:o,targetIndex:r}),i=gd({align:t,cellOffset:s.y,cellSize:s.height,containerSize:n,currentOffset:i,targetIndex:r})}return{scrollLeft:o,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,r=e.height,n=e.isScrolling,o=e.width,i=e.x,a=e.y,l=this.props,s=l.cellGroupRenderer,c=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:r,width:o,x:i,y:a}),s({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var r=e.index;return t._sectionManager.getCellMetadata({index:r})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])}(J.PureComponent);function _d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_d=function(){return!!e})()}Du()(yd,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,r=e.cellRenderer,n=e.cellSizeAndPositionGetter,o=e.indices,i=e.isScrolling;return o.map((function(e){var o=n({index:e}),a={index:e,isScrolling:i,key:e,style:{height:o.height,left:o.x,position:"absolute",top:o.y,width:o.width}};return i?(e in t||(t[e]=r(a)),t[e]):r(a)})).filter((function(e){return!!e}))}}),yd.propTypes={};var wd=function(e){function t(e,r){var n;return Ou()(this,t),n=function(e,t,r){return t=Pu()(t),Mu()(e,_d()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[e,r]),n._registerChild=n._registerChild.bind(n),n}return Lu()(t,e),Au()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.columnMaxWidth,n=t.columnMinWidth,o=t.columnCount,i=t.width;r===e.columnMaxWidth&&n===e.columnMinWidth&&o===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.columnMaxWidth,n=e.columnMinWidth,o=e.columnCount,i=e.width,a=n||1,l=r?Math.min(r,i):i,s=i/o;return s=Math.max(a,s),s=Math.min(l,s),s=Math.floor(s),t({adjustedWidth:Math.min(i,s*o),columnWidth:s,getColumnWidth:function(){return s},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])}(J.PureComponent);wd.propTypes={};var Cd=a(85735),xd=a.n(Cd);function Ed(e){var t=e.cellCount,r=e.cellSize,n=e.computeMetadataCallback,o=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof r&&"number"!=typeof a||r===a)||(n(o),s>=0&&s===l&&c())}var Sd,kd=a(39892),Od=a.n(kd),Rd=function(){return Au()((function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;Ou()(this,e),Du()(this,"_cellSizeAndPositionData",{}),Du()(this,"_lastMeasuredIndex",-1),Du()(this,"_lastBatchedIndex",-1),Du()(this,"_cellCount",void 0),Du()(this,"_cellSizeGetter",void 0),Du()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}),[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,r=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=r,this._cellSizeGetter=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),r=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var o=this._cellSizeGetter({index:n});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(o));null===o?(this._cellSizeAndPositionData[n]={offset:r,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:r,size:o},r+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,r=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var a,l=this.getSizeAndPositionOfCell(i),s=l.offset,c=s-n+l.size;switch(r){case"start":a=s;break;case"end":a=c;break;case"center":a=s-(n-l.size)/2;break;default:a=Math.max(c,Math.min(s,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-n,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,r=e.offset;if(0===this.getTotalSize())return{};var n=r+t,o=this._findNearestCell(r),i=this.getSizeAndPositionOfCell(o);r=i.offset+i.size;for(var a=o;r<n&&a<this._cellCount-1;)a++,r+=this.getSizeAndPositionOfCell(a).size;return{start:o,stop:a}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,r){for(;t<=e;){var n=t+Math.floor((e-t)/2),o=this.getSizeAndPositionOfCell(n).offset;if(o===r)return n;o<r?t=n+1:o>r&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var r=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=r,r*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),r=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(r,0,e):this._exponentialSearch(r,e)}}])}(),Ad=["maxScrollSize"],Td=function(){return Au()((function e(t){var r=t.maxScrollSize,n=void 0===r?"undefined"!=typeof window&&window.chrome?16777100:15e5:r,o=Od()(t,Ad);Ou()(this,e),Du()(this,"_cellSizeAndPositionManager",void 0),Du()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Rd(o),this._maxScrollSize=n}),[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:o});return Math.round(i*(o-n))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,r=void 0===t?"auto":t,n=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:n,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,r=e.offset;return r=this._safeOffsetToOffset({containerSize:t,offset:r}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:r})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,r=e.offset,n=e.totalSize;return n<=t?0:r/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(n===o)return r;var i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:n});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,r=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(n===o)return r;var i=this._getOffsetPercentage({containerSize:t,offset:r,totalSize:o});return Math.round(i*(n-t))}}])}();function Md(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=r.getCellCount(),m=u>=0&&u<h;m&&(d!==l||f||!o||"number"==typeof t&&t!==o||c!==i||u!==a)?p(u):!m&&h>0&&(d<l||h<n)&&s>r.getTotalSize()-d&&p(h-1)}var Nd=(Sd="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||Sd.webkitRequestAnimationFrame||Sd.mozRequestAnimationFrame||Sd.oRequestAnimationFrame||Sd.msRequestAnimationFrame||function(e){return Sd.setTimeout(e,1e3/60)},Pd=Sd.cancelAnimationFrame||Sd.webkitCancelAnimationFrame||Sd.mozCancelAnimationFrame||Sd.oCancelAnimationFrame||Sd.msCancelAnimationFrame||function(e){Sd.clearTimeout(e)},Id=Nd,Ld=Pd,jd=function(e){return Ld(e.id)},Dd=function(e,t){var r;Promise.resolve().then((function(){r=Date.now()}));var n=function(){Date.now()-r>=t?e.call():o.id=Id(n)},o={id:Id(n)};return o};function Bd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(r),!0).forEach((function(t){Du()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zd=function(){return!!e})()}var qd="requested",Fd=function(e){function t(e){var r;Ou()(this,t),r=function(e,t,r){return t=Pu()(t),Mu()(e,zd()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[e]),Du()(r,"_onGridRenderedMemoizer",id()),Du()(r,"_onScrollMemoizer",id(!1)),Du()(r,"_deferredInvalidateColumnIndex",null),Du()(r,"_deferredInvalidateRowIndex",null),Du()(r,"_recomputeScrollLeftFlag",!1),Du()(r,"_recomputeScrollTopFlag",!1),Du()(r,"_horizontalScrollBarSize",0),Du()(r,"_verticalScrollBarSize",0),Du()(r,"_scrollbarPresenceChanged",!1),Du()(r,"_scrollingContainer",void 0),Du()(r,"_childrenToDisplay",void 0),Du()(r,"_columnStartIndex",void 0),Du()(r,"_columnStopIndex",void 0),Du()(r,"_rowStartIndex",void 0),Du()(r,"_rowStopIndex",void 0),Du()(r,"_renderedColumnStartIndex",0),Du()(r,"_renderedColumnStopIndex",0),Du()(r,"_renderedRowStartIndex",0),Du()(r,"_renderedRowStopIndex",0),Du()(r,"_initialScrollTop",void 0),Du()(r,"_initialScrollLeft",void 0),Du()(r,"_disablePointerEventsTimeoutId",void 0),Du()(r,"_styleCache",{}),Du()(r,"_cellCache",{}),Du()(r,"_debounceScrollEndedCallback",(function(){r._disablePointerEventsTimeoutId=null,r.setState({isScrolling:!1,needToResetStyleCache:!1})})),Du()(r,"_invokeOnGridRenderedHelper",(function(){var e=r.props.onSectionRendered;r._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:r._columnStartIndex,columnOverscanStopIndex:r._columnStopIndex,columnStartIndex:r._renderedColumnStartIndex,columnStopIndex:r._renderedColumnStopIndex,rowOverscanStartIndex:r._rowStartIndex,rowOverscanStopIndex:r._rowStopIndex,rowStartIndex:r._renderedRowStartIndex,rowStopIndex:r._renderedRowStopIndex}})})),Du()(r,"_setScrollingContainerRef",(function(e){r._scrollingContainer=e,"function"==typeof r.props.elementRef?r.props.elementRef(e):"object"===xd()(r.props.elementRef)&&(r.props.elementRef.current=e)})),Du()(r,"_onScroll",(function(e){e.target===r._scrollingContainer&&r.handleScrollEvent(e.target)}));var n=new Td({cellCount:e.columnCount,cellSizeGetter:function(r){return t._wrapSizeGetter(e.columnWidth)(r)},estimatedCellSize:t._getEstimatedColumnSize(e)}),o=new Td({cellCount:e.rowCount,cellSizeGetter:function(r){return t._wrapSizeGetter(e.rowHeight)(r)},estimatedCellSize:t._getEstimatedRowSize(e)});return r.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:o,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(r._initialScrollTop=r._getCalculatedScrollTop(e,r.state)),e.scrollToColumn>0&&(r._initialScrollLeft=r._getCalculatedScrollLeft(e,r.state)),r}return Lu()(t,e),Au()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,r=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,o=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,l=Hd(Hd({},this.props),{},{scrollToAlignment:r,scrollToColumn:o,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,r=void 0===t?0:t,n=e.scrollTop,o=void 0===n?0:n;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,l=i.autoWidth,s=i.height,c=i.width,u=this.state.instanceProps,d=u.scrollbarSize,f=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-c+d),r),m=Math.min(Math.max(0,f-s+d),o);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var v={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};a||(v.scrollTop=m),l||(v.scrollLeft=h),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,r=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(r-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n,i=this.props,a=i.scrollToColumn,l=i.scrollToRow,s=this.state.instanceProps;s.columnSizeAndPositionManager.resetCell(r),s.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?r<=a:r>=a),this._recomputeScrollTopFlag=l>=0&&(1===this.state.scrollDirectionVertical?o<=l:o>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,r=e.rowIndex,n=this.props.columnCount,o=this.props;n>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(Hd(Hd({},o),{},{scrollToColumn:t})),void 0!==r&&this._updateScrollTopForScrollToRow(Hd(Hd({},o),{},{scrollToRow:r}))}},{key:"componentDidMount",value:function(){var e=this.props,r=e.getScrollbarSize,n=e.height,o=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,l=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=Hd(Hd({},e),{},{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=r(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof o&&o>=0||"number"==typeof a&&a>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:a});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=n>0&&s>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:a||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var r=this,n=this.props,o=n.autoHeight,i=n.autoWidth,a=n.columnCount,l=n.height,s=n.rowCount,c=n.scrollToAlignment,u=n.scrollToColumn,d=n.scrollToRow,f=n.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,v=p.scrollTop,g=p.instanceProps;this._handleInvalidatedGridSize();var b=a>0&&0===e.columnCount||s>0&&0===e.rowCount;m===qd&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||b)&&(this._scrollingContainer.scrollLeft=h),!o&&v>=0&&(v!==this._scrollingContainer.scrollTop||b)&&(this._scrollingContainer.scrollTop=v));var y=(0===e.width||0===e.height)&&l>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Md({cellSizeAndPositionManager:g.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:u,size:f,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return r._updateScrollLeftForScrollToColumn(r.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Md({cellSizeAndPositionManager:g.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:c,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return r._updateScrollTopForScrollToRow(r.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var _=g.rowSizeAndPositionManager.getTotalSize(),w=g.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:w,totalRowsHeight:_})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&jd(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,r=e.autoHeight,n=e.autoWidth,o=e.className,i=e.containerProps,a=e.containerRole,l=e.containerStyle,s=e.height,c=e.id,u=e.noContentRenderer,d=e.role,f=e.style,p=e.tabIndex,h=e.width,m=this.state,v=m.instanceProps,g=m.needToResetStyleCache,b=this._isScrolling(),y={boxSizing:"border-box",direction:"ltr",height:r?"auto":s,position:"relative",width:n?"auto":h,WebkitOverflowScrolling:"touch",willChange:"transform"};g&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var _=v.columnSizeAndPositionManager.getTotalSize(),w=v.rowSizeAndPositionManager.getTotalSize(),C=w>s?v.scrollbarSize:0,x=_>h?v.scrollbarSize:0;x===this._horizontalScrollBarSize&&C===this._verticalScrollBarSize||(this._horizontalScrollBarSize=x,this._verticalScrollBarSize=C,this._scrollbarPresenceChanged=!0),y.overflowX=_+C<=h?"hidden":"auto",y.overflowY=w+x<=s?"hidden":"auto";var E=this._childrenToDisplay,S=0===E.length&&s>0&&h>0;return J.createElement("div",rd()({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:od("ReactVirtualized__Grid",o),id:c,onScroll:this._onScroll,role:d,style:Hd(Hd({},y),f),tabIndex:p}),E.length>0&&J.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:Hd({width:t?"auto":_,height:w,maxWidth:_,maxHeight:w,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"},l)},E),S&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=e.cellRenderer,n=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,s=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,d=e.width,f=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,g=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,b=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&d>0){var y=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:g}),_=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:v}),w=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:g}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:v});this._renderedColumnStartIndex=y.start,this._renderedColumnStopIndex=y.stop,this._renderedRowStartIndex=_.start,this._renderedRowStopIndex=_.stop;var x=s({direction:"horizontal",cellCount:o,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),E=s({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:h,startIndex:"number"==typeof _.start?_.start:0,stopIndex:"number"==typeof _.stop?_.stop:-1}),S=x.overscanStartIndex,k=x.overscanStopIndex,O=E.overscanStartIndex,R=E.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var A=O;A<=R;A++)if(!i.has(A,0)){S=0,k=o-1;break}if(!i.hasFixedWidth())for(var T=S;T<=k;T++)if(!i.has(0,T)){O=0,R=u-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:r,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:S,columnStopIndex:k,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:b,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:O,rowStopIndex:R,scrollLeft:g,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:y,visibleRowIndices:_}),this._columnStartIndex=S,this._columnStopIndex=k,this._rowStartIndex=O,this._rowStopIndex=R}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&jd(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Dd(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,r=e.scrollLeft,n=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var r=e.scrollLeft,n=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:r,scrollTop:n,scrollWidth:o})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var r=e.scrollLeft,n=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:n});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,r)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t._getScrollLeftForScrollToColumnStateUpdate(e,r);n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,r)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,r=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(n,"-").concat(o);this._styleCache[i]=e[i],r&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=t._getScrollTopForScrollToRowStateUpdate(e,r);n&&(n.needToResetStyleCache=!1,this.setState(n))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var n={};0===e.columnCount&&0!==r.scrollLeft||0===e.rowCount&&0!==r.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==r.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==r.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,a=r.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(n.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(n,{isScrolling:!1}),Ed({cellCount:a.prevColumnCount,cellSize:"number"==typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,r)}}),Ed({cellCount:a.prevRowCount,cellSize:"number"==typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,r)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,n.instanceProps=a,Hd(Hd(Hd({},n),o),i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,r=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:qd};return"number"==typeof r&&r>=0&&(o.scrollDirectionHorizontal=r>t.scrollLeft?1:-1,o.scrollLeft=r),"number"==typeof n&&n>=0&&(o.scrollDirectionVertical=n>t.scrollTop?1:-1,o.scrollTop=n),"number"==typeof r&&r>=0&&r!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var r=e.columnCount,n=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft,s=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),d=s.rowSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>n?s.scrollbarSize:0;return s.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-f,currentOffset:l,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,r){var n=r.scrollLeft,o=t._getCalculatedScrollLeft(e,r);return"number"==typeof o&&o>=0&&n!==o?t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var r=e.height,n=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop,s=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),d=s.columnSizeAndPositionManager.getTotalSize(),f=s.scrollbarSizeMeasured&&d>a?s.scrollbarSize:0;return s.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:r-f,currentOffset:l,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,r){var n=r.scrollTop,o=t._getCalculatedScrollTop(e,r);return"number"==typeof o&&o>=0&&n!==o?t._getScrollToPositionStateUpdate({prevState:r,scrollLeft:-1,scrollTop:o}):{}}}])}(J.PureComponent);Du()(Fd,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,g=e.visibleRowIndices,b=[],y=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),_=!s&&!y,w=f;w<=p;w++)for(var C=d.getSizeAndPositionOfCell(w),x=o;x<=i;x++){var E=n.getSizeAndPositionOfCell(x),S=x>=v.start&&x<=v.stop&&w>=g.start&&w<=g.stop,k="".concat(w,"-").concat(x),O=void 0;_&&h[k]?O=h[k]:a&&!a.has(w,x)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:C.size,left:E.offset+l,position:"absolute",top:C.offset+m,width:E.size},h[k]=O);var R={columnIndex:x,isScrolling:s,isVisible:S,key:k,parent:u,rowIndex:w,style:O},A=void 0;!c&&!s||l||m?A=r(R):(t[k]||(t[k]=r(R)),A=t[k]),null!=A&&!1!==A&&(A.props.role||(A=Q().cloneElement(A,{role:"gridcell"})),b.push(A))}return b},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:sd,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),qu(Fd);const Vd=Fd;function Gd(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),1===n?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i+1)}}var Wd=a(21259),Ud=a.n(Wd);function Zd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zd=function(){return!!e})()}var Kd=function(e){function t(e,r){var n;return Ou()(this,t),n=function(e,t,r){return t=Pu()(t),Mu()(e,Zd()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[e,r]),n._loadMoreRowsMemoizer=id(),n._onRowsRendered=n._onRowsRendered.bind(n),n._registerChild=n._registerChild.bind(n),n}return Lu()(t,e),Au()(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=id(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,r=this.props.loadMoreRows;e.forEach((function(e){var n=r(e);n&&n.then((function(){var r;(r={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).startIndex>r.lastRenderedStopIndex||r.stopIndex<r.lastRenderedStartIndex||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,r=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=r,this._doStuff(t,r)}},{key:"_doStuff",value:function(e,t){var r,n=this,o=this.props,i=o.isRowLoaded,a=o.minimumBatchSize,l=o.rowCount,s=o.threshold,c=function(e){for(var t=e.isRowLoaded,r=e.minimumBatchSize,n=e.rowCount,o=e.stopIndex,i=[],a=null,l=null,s=e.startIndex;s<=o;s++)t({index:s})?null!==l&&(i.push({startIndex:a,stopIndex:l}),a=l=null):(l=s,null===a&&(a=s));if(null!==l){for(var c=Math.min(Math.max(l,a+r-1),n-1),u=l+1;u<=c&&!t({index:u});u++)l=u;i.push({startIndex:a,stopIndex:l})}if(i.length)for(var d=i[0];d.stopIndex-d.startIndex+1<r&&d.startIndex>0;){var f=d.startIndex-1;if(t({index:f}))break;d.startIndex=f}return i}({isRowLoaded:i,minimumBatchSize:a,rowCount:l,startIndex:Math.max(0,e-s),stopIndex:Math.min(l-1,t+s)}),u=(r=[]).concat.apply(r,Ud()(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])}(J.PureComponent);function $d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($d=function(){return!!e})()}Du()(Kd,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Kd.propTypes={};var Yd=function(e){function t(){var e;Ou()(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e=function(e,t,r){return t=Pu()(t),Mu()(e,$d()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[].concat(n)),Du()(e,"Grid",void 0),Du()(e,"_cellRenderer",(function(t){var r=t.parent,n=t.rowIndex,o=t.style,i=t.isScrolling,a=t.isVisible,l=t.key,s=e.props.rowRenderer,c=Object.getOwnPropertyDescriptor(o,"width");return c&&c.writable&&(o.width="100%"),s({index:n,style:o,isScrolling:i,isVisible:a,key:l,parent:r})})),Du()(e,"_setRef",(function(t){e.Grid=t})),Du()(e,"_onScroll",(function(t){var r=t.clientHeight,n=t.scrollHeight,o=t.scrollTop;(0,e.props.onScroll)({clientHeight:r,scrollHeight:n,scrollTop:o})})),Du()(e,"_onSectionRendered",(function(t){var r=t.rowOverscanStartIndex,n=t.rowOverscanStopIndex,o=t.rowStartIndex,i=t.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:r,overscanStopIndex:n,startIndex:o,stopIndex:i})})),e}return Lu()(t,e),Au()(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.noRowsRenderer,n=e.scrollToIndex,o=e.width,i=od("ReactVirtualized__List",t);return J.createElement(Vd,rd()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:o,columnCount:1,noContentRenderer:r,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}])}(J.PureComponent);Du()(Yd,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Gd,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var Xd=a(22056),Jd=a.n(Xd);const Qd=function(e,t,r,n,o){return"function"==typeof r?function(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1;o(e[a],n)>=0?(i=a,r=a-1):t=a+1}return i}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t,r):function(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1;e[i]>=n?(o=i,r=i-1):t=i+1}return o}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t)};function ef(e,t,r,n,o){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=o,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var tf=ef.prototype;function rf(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function nf(e,t){var r=pf(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function of(e,t){var r=e.intervals([]);r.push(t),nf(e,r)}function af(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?0:(r.splice(n,1),nf(e,r),1)}function lf(e,t,r){for(var n=0;n<e.length&&e[n][0]<=t;++n){var o=r(e[n]);if(o)return o}}function sf(e,t,r){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function cf(e,t){for(var r=0;r<e.length;++r){var n=t(e[r]);if(n)return n}}function uf(e,t){return e-t}function df(e,t){return e[0]-t[0]||e[1]-t[1]}function ff(e,t){return e[1]-t[1]||e[0]-t[0]}function pf(e){if(0===e.length)return null;for(var t=[],r=0;r<e.length;++r)t.push(e[r][0],e[r][1]);t.sort(uf);var n=t[t.length>>1],o=[],i=[],a=[];for(r=0;r<e.length;++r){var l=e[r];l[1]<n?o.push(l):n<l[0]?i.push(l):a.push(l)}var s=a,c=a.slice();return s.sort(df),c.sort(ff),new ef(n,pf(o),pf(i),s,c)}function hf(e){this.root=e}tf.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},tf.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?of(this,e):this.left.insert(e):this.left=pf([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?of(this,e):this.right.insert(e):this.right=pf([e]);else{var r=Qd(this.leftPoints,e,df),n=Qd(this.rightPoints,e,ff);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}},tf.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?af(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?af(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var r=this,n=this.left;n.right;)r=n,n=n.right;if(r===this)n.right=this.right;else{var o=this.left,i=this.right;r.count-=n.count,r.right=n.left,n.left=o,n.right=i}rf(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?rf(this,this.left):rf(this,this.right);return 1}for(o=Qd(this.leftPoints,e,df);o<this.leftPoints.length&&this.leftPoints[o][0]===e[0];++o)if(this.leftPoints[o]===e)for(this.count-=1,this.leftPoints.splice(o,1),i=Qd(this.rightPoints,e,ff);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1;return 0},tf.queryPoint=function(e,t){return e<this.mid?this.left&&(r=this.left.queryPoint(e,t))?r:lf(this.leftPoints,e,t):e>this.mid?this.right&&(r=this.right.queryPoint(e,t))?r:sf(this.rightPoints,e,t):cf(this.leftPoints,t);var r},tf.queryInterval=function(e,t,r){var n;return e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,r))||t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,r))?n:t<this.mid?lf(this.leftPoints,t,r):e>this.mid?sf(this.rightPoints,e,r):cf(this.leftPoints,r)};var mf=hf.prototype;mf.insert=function(e){this.root?this.root.insert(e):this.root=new ef(e[0],null,null,[e],[e])},mf.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},mf.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},mf.queryInterval=function(e,t,r){if(e<=t&&this.root)return this.root.queryInterval(e,t,r)},Object.defineProperty(mf,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(mf,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var vf=function(){return Au()((function e(){Ou()(this,e),Du()(this,"_columnSizeMap",{}),Du()(this,"_intervalTree",new hf(null)),Du()(this,"_leftMap",{})}),[{key:"estimateTotalHeight",value:function(e,t,r){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*r}},{key:"range",value:function(e,t,r){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Jd()(e,3),o=t[0],i=(t[1],t[2]);return r(i,n._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,r,n){this._intervalTree.insert([r,r+n,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?r+n:Math.max(i,r+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var r in e){var n=e[r];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var r in e){var n=e[r];t=Math.max(t,n)}return t}}])}();function gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gf(Object(r),!0).forEach((function(t){Du()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yf=function(){return!!e})()}var _f=function(e){function t(){var e;Ou()(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e=function(e,t,r){return t=Pu()(t),Mu()(e,yf()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[].concat(n)),Du()(e,"state",{isScrolling:!1,scrollTop:0}),Du()(e,"_debounceResetIsScrollingId",void 0),Du()(e,"_invalidateOnUpdateStartIndex",null),Du()(e,"_invalidateOnUpdateStopIndex",null),Du()(e,"_positionCache",new vf),Du()(e,"_startIndex",null),Du()(e,"_startIndexMemoized",null),Du()(e,"_stopIndex",null),Du()(e,"_stopIndexMemoized",null),Du()(e,"_debounceResetIsScrollingCallback",(function(){e.setState({isScrolling:!1})})),Du()(e,"_setScrollingContainerRef",(function(t){e._scrollingContainer=t})),Du()(e,"_onScroll",(function(t){var r=e.props.height,n=t.currentTarget.scrollTop,o=Math.min(Math.max(0,e._getEstimatedTotalHeight()-r),n);n===o&&(e._debounceResetIsScrolling(),e.state.scrollTop!==o&&e.setState({isScrolling:!0,scrollTop:o}))})),e}return Lu()(t,e),Au()(t,[{key:"clearCellPositions",value:function(){this._positionCache=new vf,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new vf,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&jd(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.autoHeight,o=r.cellCount,i=r.cellMeasurerCache,a=r.cellRenderer,l=r.className,s=r.height,c=r.id,u=r.keyMapper,d=r.overscanByPixels,f=r.role,p=r.style,h=r.tabIndex,m=r.width,v=r.rowDirection,g=this.state,b=g.isScrolling,y=g.scrollTop,_=[],w=this._getEstimatedTotalHeight(),C=this._positionCache.shortestColumnSize,x=this._positionCache.count,E=0;if(this._positionCache.range(Math.max(0,y-d),s+2*d,(function(r,n,o){void 0===e?(E=r,e=r):(E=Math.min(E,r),e=Math.max(e,r)),_.push(a({index:r,isScrolling:b,key:u(r),parent:t,style:Du()(Du()(Du()(Du()({height:i.getHeight(r)},"ltr"===v?"left":"right",n),"position","absolute"),"top",o),"width",i.getWidth(r))}))})),C<y+s+d&&x<o)for(var S=Math.min(o-x,Math.ceil((y+s+d-C)/i.defaultHeight*m/i.defaultWidth)),k=x;k<x+S;k++)e=k,_.push(a({index:k,isScrolling:b,key:u(k),parent:this,style:{width:i.getWidth(k)}}));return this._startIndex=E,this._stopIndex=e,J.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:od("ReactVirtualized__Masonry",l),id:c,onScroll:this._onScroll,role:f,style:bf({boxSizing:"border-box",direction:"ltr",height:n?"auto":s,overflowX:"hidden",overflowY:w<s?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:h},J.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:w,maxWidth:"100%",maxHeight:w,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"}},_))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&jd(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Dd(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,r=e.cellMeasurerCache,n=e.width,o=Math.max(1,Math.floor(n/r.defaultWidth));return this._positionCache.estimateTotalHeight(t,o,r.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,r=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(r({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var r=this.props,n=r.cellMeasurerCache,o=r.cellPositioner,i=e;i<=t;i++){var a=o(i),l=a.left,s=a.top;this._positionCache.setPosition(i,l,s,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])}(J.PureComponent);function wf(){}Du()(_f,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:wf,onScroll:wf,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),qu(_f);var Cf=function(){return Au()((function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ou()(this,e),Du()(this,"_cellMeasurerCache",void 0),Du()(this,"_columnIndexOffset",void 0),Du()(this,"_rowIndexOffset",void 0),Du()(this,"columnWidth",(function(e){var r=e.index;t._cellMeasurerCache.columnWidth({index:r+t._columnIndexOffset})})),Du()(this,"rowHeight",(function(e){var r=e.index;t._cellMeasurerCache.rowHeight({index:r+t._rowIndexOffset})}));var n=r.cellMeasurerCache,o=r.columnIndexOffset,i=void 0===o?0:o,a=r.rowIndexOffset,l=void 0===a?0:a;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=l}),[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,r,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,r,n)}}])}(),xf=["rowIndex"],Ef=["columnIndex","rowIndex"],Sf=["columnIndex"],kf=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Of(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Of(Object(r),!0).forEach((function(t){Du()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Of(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Af(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Af=function(){return!!e})()}var Tf=function(e){function t(e,r){var n;Ou()(this,t),n=function(e,t,r){return t=Pu()(t),Mu()(e,Af()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[e,r]),Du()(n,"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),Du()(n,"_deferredInvalidateColumnIndex",null),Du()(n,"_deferredInvalidateRowIndex",null),Du()(n,"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),Du()(n,"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),Du()(n,"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,r=Od()(e,xf),o=n.props,i=o.cellRenderer,a=o.fixedRowCount;return t===o.rowCount-a?J.createElement("div",{key:r.key,style:Rf(Rf({},r.style),{},{height:20})}):i(Rf(Rf({},r),{},{parent:n,rowIndex:t+a}))})),Du()(n,"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,r=e.rowIndex,o=Od()(e,Ef),i=n.props,a=i.cellRenderer,l=i.fixedColumnCount,s=i.fixedRowCount;return a(Rf(Rf({},o),{},{columnIndex:t+l,parent:n,rowIndex:r+s}))})),Du()(n,"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,r=Od()(e,Sf),o=n.props,i=o.cellRenderer,a=o.columnCount,l=o.fixedColumnCount;return t===a-l?J.createElement("div",{key:r.key,style:Rf(Rf({},r.style),{},{width:20})}):i(Rf(Rf({},r),{},{columnIndex:t+l,parent:n}))})),Du()(n,"_columnWidthRightGrid",(function(e){var t=e.index,r=n.props,o=r.columnCount,i=r.fixedColumnCount,a=r.columnWidth,l=n.state,s=l.scrollbarSize;return l.showHorizontalScrollbar&&t===o-i?s:"function"==typeof a?a({index:t+i}):a})),Du()(n,"_onScroll",(function(e){var t=e.scrollLeft,r=e.scrollTop;n.setState({scrollLeft:t,scrollTop:r});var o=n.props.onScroll;o&&o(e)})),Du()(n,"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,r=e.size,o=e.vertical,i=n.state,a=i.showHorizontalScrollbar,l=i.showVerticalScrollbar;if(t!==a||o!==l){n.setState({scrollbarSize:r,showHorizontalScrollbar:t,showVerticalScrollbar:o});var s=n.props.onScrollbarPresenceChange;"function"==typeof s&&s({horizontal:t,size:r,vertical:o})}})),Du()(n,"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),Du()(n,"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),Du()(n,"_rowHeightBottomGrid",(function(e){var t=e.index,r=n.props,o=r.fixedRowCount,i=r.rowCount,a=r.rowHeight,l=n.state,s=l.scrollbarSize;return l.showVerticalScrollbar&&t===i-o?s:"function"==typeof a?a({index:t+o}):a})),Du()(n,"_topLeftGridRef",(function(e){n._topLeftGrid=e})),Du()(n,"_topRightGridRef",(function(e){n._topRightGrid=e}));var o=e.deferredMeasurementCache,i=e.fixedColumnCount,a=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),o&&(n._deferredMeasurementCacheBottomLeftGrid=a>0?new Cf({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:a}):o,n._deferredMeasurementCacheBottomRightGrid=i>0||a>0?new Cf({cellMeasurerCache:o,columnIndexOffset:i,rowIndexOffset:a}):o,n._deferredMeasurementCacheTopRightGrid=i>0?new Cf({cellMeasurerCache:o,columnIndexOffset:i,rowIndexOffset:0}):o),n}return Lu()(t,e),Au()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,r):r,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,s=Math.max(0,r-a),c=Math.max(0,o-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:s,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:s,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,r=e.scrollTop;if(t>0||r>0){var n={};t>0&&(n.scrollLeft=t),r>0&&(n.scrollTop=r),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,r=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),o=(e.scrollTop,e.scrollToRow),i=Od()(e,kf);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,l=a.scrollLeft,s=a.scrollTop;return J.createElement("div",{style:this._containerOuterStyle},J.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Rf(Rf({},i),{},{onScroll:t,scrollLeft:l}))),J.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Rf(Rf({},i),{},{onScroll:t,scrollTop:s})),this._renderBottomRightGrid(Rf(Rf({},i),{},{onScroll:t,onSectionRendered:r,scrollLeft:l,scrollToColumn:n,scrollToRow:o,scrollTop:s}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,r=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof r){for(var n=0,o=0;o<t;o++)n+=r({index:o});this._leftGridWidth=n}else this._leftGridWidth=r*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,r=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof r){for(var n=0,o=0;o<t;o++)n+=r({index:o});this._topGridHeight=n}else this._topGridHeight=r*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,r=t.columnWidth,n=t.enableFixedColumnScroll,o=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,l=t.fixedRowCount,s=t.rowHeight,c=t.style,u=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,f=t.styleTopLeftGrid,p=t.styleTopRightGrid,h=t.width,m=e||i!==this._lastRenderedHeight||h!==this._lastRenderedWidth,v=e||r!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,g=e||l!==this._lastRenderedFixedRowCount||s!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Rf({height:i,overflow:"visible",width:h},c)),(e||m||g)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:h},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:h}),(e||u!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Rf({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},u)),(e||v||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Rf({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||f!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Rf({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},f)),(e||v||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Rf({left:this._getLeftGridWidth(this.props),overflowX:o?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=r,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=i,this._lastRenderedRowHeight=s,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=u,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=f,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=h}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,r=e.fixedColumnCount,n=e.fixedRowCount,o=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!r)return null;var l=a?1:0,s=this._getBottomGridHeight(e),c=this._getLeftGridWidth(e),u=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,d=i?c+u:c,f=J.createElement(Vd,rd()({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:r,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:s,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,o-n)+l,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:d}));return i?J.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Rf(Rf({},this._bottomLeftGridStyle),{},{height:s,width:c,overflowY:"hidden"})},f):f}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,r=e.fixedColumnCount,n=e.fixedRowCount,o=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return J.createElement(Vd,rd()({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-r),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,o-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-r,scrollToRow:a-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,r=e.fixedRowCount;return t&&r?J.createElement(Vd,rd()({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:r,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,r=e.enableFixedRowScroll,n=e.fixedColumnCount,o=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,l=this.state,s=l.showHorizontalScrollbar,c=l.scrollbarSize;if(!o)return null;var u=s?1:0,d=this._getTopGridHeight(e),f=this._getRightGridWidth(e),p=s?c:0,h=d,m=this._topRightGridStyle;a&&(h=d+p,m=Rf(Rf({},this._topRightGridStyle),{},{left:0}));var v=J.createElement(Vd,rd()({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+u,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:h,onScroll:r?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:o,scrollLeft:i,style:m,tabIndex:null,width:f}));return a?J.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Rf(Rf({},this._topRightGridStyle),{},{height:d,width:f,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}])}(J.PureComponent);function Mf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mf=function(){return!!e})()}Du()(Tf,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),Tf.propTypes={},qu(Tf);var Nf=function(e){function t(e,r){var n;return Ou()(this,t),n=function(e,t,r){return t=Pu()(t),Mu()(e,Mf()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[e,r]),n.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(n),n}return Lu()(t,e),Au()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.clientHeight,n=t.clientWidth,o=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,l=t.scrollWidth;return e({clientHeight:r,clientWidth:n,onScroll:this._onScroll,scrollHeight:o,scrollLeft:i,scrollTop:a,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.clientWidth,n=e.scrollHeight,o=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:r,scrollHeight:n,scrollLeft:o,scrollTop:i,scrollWidth:a})}}])}(J.PureComponent);Nf.propTypes={};const Pf="ASC",If="DESC";function Lf(e){var t=e.sortDirection,r=od("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Pf,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===If});return J.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===Pf?J.createElement("path",{d:"M7 14l5-5 5 5z"}):J.createElement("path",{d:"M7 10l5 5 5-5z"}),J.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function jf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jf=function(){return!!e})()}Lf.propTypes={};var Df=function(e){function t(){return Ou()(this,t),function(e,t,r){return t=Pu()(t),Mu()(e,jf()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,arguments)}return Lu()(t,e),Au()(t)}(J.Component);function Bf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(r),!0).forEach((function(t){Du()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zf=function(){return!!e})()}Du()(Df,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,r=e.rowData;return"function"==typeof r.get?r.get(t):r[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Pf,flexGrow:0,flexShrink:1,headerRenderer:function(e){var t=e.dataKey,r=e.label,n=e.sortBy,o=e.sortDirection,i=n===t,a=[J.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof r?r:null},r)];return i&&a.push(J.createElement(Lf,{key:"SortIndicator",sortDirection:o})),a},style:{}}),Df.propTypes={};var qf=function(e){function t(e){var r;return Ou()(this,t),r=function(e,t,r){return t=Pu()(t),Mu()(e,zf()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[e]),r.state={scrollbarWidth:0},r._createColumn=r._createColumn.bind(r),r._createRow=r._createRow.bind(r),r._onScroll=r._onScroll.bind(r),r._onSectionRendered=r._onSectionRendered.bind(r),r._setRef=r._setRef.bind(r),r._setGridElementRef=r._setGridElementRef.bind(r),r}return Lu()(t,e),Au()(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,r=void 0===t?0:t,n=e.rowIndex,o=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var e=this.GridElement,t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=t.className,o=t.disableHeader,i=t.gridClassName,a=t.gridStyle,l=t.headerHeight,s=t.headerRowRenderer,c=t.height,u=t.id,d=t.noRowsRenderer,f=t.rowClassName,p=t.rowStyle,h=t.scrollToIndex,m=t.style,v=t.width,g=this.state.scrollbarWidth,b=o?c:c-l,y="function"==typeof f?f({index:-1}):f,_="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],J.Children.toArray(r).forEach((function(t,r){var n=e._getFlexStyleForColumn(t,t.props.style||Df.defaultProps.style);e._cachedColumnStyles[r]=Hf({overflow:"hidden"},n)})),J.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":J.Children.toArray(r).length,"aria-rowcount":this.props.rowCount,className:od("ReactVirtualized__Table",n),id:u,role:"grid",style:m},!o&&s({className:od("ReactVirtualized__Table__headerRow",y),columns:this._getHeaderColumns(),style:Hf({height:l,overflow:"hidden",paddingRight:g,width:v},_)}),J.createElement(Vd,rd()({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:od("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:b,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:g,scrollToRow:h,style:Hf(Hf({},a),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,r=e.columnIndex,n=e.isScrolling,o=e.parent,i=e.rowData,a=e.rowIndex,l=this.props.onColumnClick,s=t.props,c=s.cellDataGetter,u=s.cellRenderer,d=s.className,f=s.columnData,p=s.dataKey,h=s.id,m=u({cellData:c({columnData:f,dataKey:p,rowData:i}),columnData:f,columnIndex:r,dataKey:p,isScrolling:n,parent:o,rowData:i,rowIndex:a}),v=this._cachedColumnStyles[r],g="string"==typeof m?m:null;return J.createElement("div",{"aria-colindex":r+1,"aria-describedby":h,className:od("ReactVirtualized__Table__rowColumn",d),key:"Row"+a+"-Col"+r,onClick:function(e){l&&l({columnData:f,dataKey:p,event:e})},role:"gridcell",style:v,title:g},m)}},{key:"_createHeader",value:function(e){var t,r,n,o,i,a=e.column,l=e.index,s=this.props,c=s.headerClassName,u=s.headerStyle,d=s.onHeaderClick,f=s.sort,p=s.sortBy,h=s.sortDirection,m=a.props,v=m.columnData,g=m.dataKey,b=m.defaultSortDirection,y=m.disableSort,_=m.headerRenderer,w=m.id,C=m.label,x=!y&&f,E=od("ReactVirtualized__Table__headerColumn",c,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:x}),S=this._getFlexStyleForColumn(a,Hf(Hf({},u),a.props.headerStyle)),k=_({columnData:v,dataKey:g,disableSort:y,label:C,sortBy:p,sortDirection:h});if(x||d){var O=p!==g?b:h===If?Pf:If,R=function(e){x&&f({defaultSortDirection:b,event:e,sortBy:g,sortDirection:O}),d&&d({columnData:v,dataKey:g,event:e})};i=a.props["aria-label"]||C||g,o="none",n=0,t=R,r=function(e){"Enter"!==e.key&&" "!==e.key||R(e)}}return p===g&&(o=h===Pf?"ascending":"descending"),J.createElement("div",{"aria-label":i,"aria-sort":o,className:E,id:w,key:"Header-Col"+l,onClick:t,onKeyDown:r,role:"columnheader",style:S,tabIndex:n},k)}},{key:"_createRow",value:function(e){var t=this,r=e.rowIndex,n=e.isScrolling,o=e.key,i=e.parent,a=e.style,l=this.props,s=l.children,c=l.onRowClick,u=l.onRowDoubleClick,d=l.onRowRightClick,f=l.onRowMouseOver,p=l.onRowMouseOut,h=l.rowClassName,m=l.rowGetter,v=l.rowRenderer,g=l.rowStyle,b=this.state.scrollbarWidth,y="function"==typeof h?h({index:r}):h,_="function"==typeof g?g({index:r}):g,w=m({index:r}),C=J.Children.toArray(s).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:n,parent:i,rowData:w,rowIndex:r,scrollbarWidth:b})})),x=od("ReactVirtualized__Table__row",y),E=Hf(Hf({},a),{},{height:this._getRowHeight(r),overflow:"hidden",paddingRight:b},_);return v({className:x,columns:C,index:r,isScrolling:n,key:o,onRowClick:c,onRowDoubleClick:u,onRowRightClick:d,onRowMouseOver:f,onRowMouseOut:p,rowData:w,style:E})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=Hf(Hf({},t),{},{flex:r,msFlex:r,WebkitFlex:r});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,r=t.children;return(t.disableHeader?[]:J.Children.toArray(r)).map((function(t,r){return e._createHeader({column:t,index:r})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,n=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setGridElementRef",value:function(e){this.GridElement=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}])}(J.PureComponent);Du()(qf,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Gd,overscanRowCount:10,rowRenderer:function(e){var t=e.className,r=e.columns,n=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,s=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,d=e.style,f={"aria-rowindex":n+1};return(i||a||l||s||c)&&(f["aria-label"]="row",f.tabIndex=0,i&&(f.onClick=function(e){return i({event:e,index:n,rowData:u})}),a&&(f.onDoubleClick=function(e){return a({event:e,index:n,rowData:u})}),l&&(f.onMouseOut=function(e){return l({event:e,index:n,rowData:u})}),s&&(f.onMouseOver=function(e){return s({event:e,index:n,rowData:u})}),c&&(f.onContextMenu=function(e){return c({event:e,index:n,rowData:u})})),J.createElement("div",rd()({},f,{className:t,key:o,role:"row",style:d}),r)},headerRowRenderer:function(e){var t=e.className,r=e.columns,n=e.style;return J.createElement("div",{className:t,role:"row",style:n},r)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),qf.propTypes={};var Ff=[],Vf=null,Gf=null;function Wf(){Gf&&(Gf=null,document.body&&null!=Vf&&(document.body.style.pointerEvents=Vf),Vf=null)}function Uf(){Wf(),Ff.forEach((function(e){return e.__resetIsScrolling()}))}function Zf(e){e.currentTarget===window&&null==Vf&&document.body&&(Vf=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Gf&&jd(Gf);var e=0;Ff.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Gf=Dd(Uf,e)}(),Ff.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Kf(e,t){Ff.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Zf),Ff.push(e)}function $f(e,t){(Ff=Ff.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Zf),Gf&&(jd(Gf),Wf()))}var Yf=function(e){return e===window},Xf=function(e){return e.getBoundingClientRect()};function Jf(e,t){if(e){if(Yf(e)){var r=window,n=r.innerHeight,o=r.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof o?o:0}}return Xf(e)}return{height:t.serverHeight,width:t.serverWidth}}function Qf(e){return Yf(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function ep(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(r),!0).forEach((function(t){Du()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rp=function(){return!!e})()}var np=function(){return"undefined"!=typeof window?window:void 0},op=function(e){function t(){var e;Ou()(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e=function(e,t,r){return t=Pu()(t),Mu()(e,rp()?Reflect.construct(t,r||[],Pu()(e).constructor):t.apply(e,r))}(this,t,[].concat(n)),Du()(e,"_window",np()),Du()(e,"_isMounted",!1),Du()(e,"_positionFromTop",0),Du()(e,"_positionFromLeft",0),Du()(e,"_detectElementResize",void 0),Du()(e,"_child",void 0),Du()(e,"_windowScrollerRef",J.createRef()),Du()(e,"state",tp(tp({},Jf(e.props.scrollElement,e.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),Du()(e,"_registerChild",(function(t){!t||t instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),e._child=t,e.updatePosition()})),Du()(e,"_onChildScroll",(function(t){var r=t.scrollTop;if(e.state.scrollTop!==r){var n=e.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,r+e._positionFromTop):n.scrollTop=r+e._positionFromTop)}})),Du()(e,"_registerResizeListener",(function(t){t===window?window.addEventListener("resize",e._onResize,!1):e._detectElementResize.addResizeListener(t,e._onResize)})),Du()(e,"_unregisterResizeListener",(function(t){t===window?window.removeEventListener("resize",e._onResize,!1):t&&e._detectElementResize.removeResizeListener(t,e._onResize)})),Du()(e,"_onResize",(function(){e.updatePosition()})),Du()(e,"__handleWindowScrollEvent",(function(){if(e._isMounted){var t=e.props.onScroll,r=e.props.scrollElement;if(r){var n=Qf(r),o=Math.max(0,n.left-e._positionFromLeft),i=Math.max(0,n.top-e._positionFromTop);e.setState({isScrolling:!0,scrollLeft:o,scrollTop:i}),t({scrollLeft:o,scrollTop:i})}}})),Du()(e,"__resetIsScrolling",(function(){e.setState({isScrolling:!1})})),e}return Lu()(t,e),Au()(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,r=this.state,n=r.height,o=r.width,i=this._child||this._windowScrollerRef.current;if(i instanceof Element&&e){var a=function(e,t){if(Yf(t)&&document.documentElement){var r=document.documentElement,n=Xf(e),o=Xf(r);return{top:n.top-o.top,left:n.left-o.left}}var i=Qf(t),a=Xf(e),l=Xf(t);return{top:a.top+i.top-l.top,left:a.left+i.left-l.left}}(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var l=Jf(e,this.props);n===l.height&&o===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width})),!0===this.props.updateScrollTopOnUpdatePosition&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Uu(),this.updatePosition(e),e&&(Kf(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var r=this.props.scrollElement,n=e.scrollElement;n!==r&&null!=n&&null!=r&&(this.updatePosition(r),$f(this,n),Kf(this,r),this._unregisterResizeListener(n),this._registerResizeListener(r))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&($f(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.isScrolling,n=t.scrollTop,o=t.scrollLeft,i=t.height,a=t.width;return J.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:r,scrollLeft:o,scrollTop:n,width:a}))}}])}(J.PureComponent);Du()(op,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:np(),serverHeight:0,serverWidth:0});const ip=function(e){var t=e.searchIconInputValue,r=e.onClickRemoveSearch,n=e.searchIcon,o=e.inputElement;return React.createElement("section",{className:"uagb-ip-header"},React.createElement("h2",null,(0,y.__)("Icon Library","sureforms")),React.createElement("div",{className:"uagb-ip-search-container"},React.createElement("div",{className:"uagb-ip-search-bar"},""===t?lu("sistrix"):React.createElement("span",{onClick:r,className:"dashicons dashicons-no-alt"}),React.createElement("input",{type:"text",placeholder:(0,y.__)("Search","sureforms"),value:t,onChange:n,ref:o}))))};function ap(e){return ap="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},ap(e)}function lp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||sp(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 sp(e,t){if(e){if("string"==typeof e)return cp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cp(e,t):void 0}}function cp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dp(e,t,r){return(t=function(e){var t=function(e){if("object"!=ap(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ap(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ap(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fp=function(e){var t=e.value,r=e.onChange,n=e.closeModal,o=e.defaultIcons,i=e.iconCategoryList,a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?up(Object(r),!0).forEach((function(t){dp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):up(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},srfm_spec_blocks_info.uagb_svg_icons),l=function(e){return function(e,t){return Array.from({length:Math.ceil(e.length/t)},(function(r,n){return e.slice(n*t,n*t+t)}))}(e,8)},s=lp((0,b.useState)(""),2),c=s[0],u=s[1],d=lp((0,b.useState)(l(o)),2),f=d[0],p=d[1],h=lp((0,b.useState)("all"),2),m=h[0],g=h[1],_=lp((0,b.useState)(o),2),w=_[0],C=_[1],x=lp((0,b.useState)(""),2),E=x[0],S=x[1],k=(0,b.useRef)(),O=(0,b.useRef)(),R=lp((0,b.useState)(null),2),A=R[0],T=R[1],M=lp((0,b.useState)(null),2),N=M[0],P=M[1],I=lp((0,b.useState)(null),2),L=I[0],j=I[1],D=function(e){var t=null==O?void 0:O.current;return t?"w"===e?t.offsetWidth:t.offsetHeight:null};(0,b.useEffect)((function(){k.current.focus(),T(D("h")),P(D("w"));var e=f.findIndex((function(e){return e.includes(t)}));j(e)}),[]);var B=function(e){var t=[];if("all"===e)t=o;else if("no-category"===e)for(var r in a)0===a[r].custom_categories.length&&t.push(r);else for(var n in a)a[n].custom_categories.includes(e)&&t.push(n);g(e),C(t),j(null),p(l(t)),u("")};return React.createElement(v.Modal,{className:"uagb-ip-modal-wrapper",onRequestClose:n,overlayClassName:"uagb-ip-modal-wrapper-overlay",shouldCloseOnClickOutside:!1,closeButtonLabel:(0,y.__)("Close","sureforms")},React.createElement(ip,{searchIconInputValue:c,onClickRemoveSearch:function(){B(m),u("")},searchIcon:function(e){var t,r=e.target.value.toLowerCase();if(""!==r){var n=(t=w,function(e){if(Array.isArray(e))return cp(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||sp(t)||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.")}()).filter((function(e){var t;return!(null===(t=a[e])||void 0===t||!t.label)&&-1!==a[e].label.toLowerCase().indexOf(r)}));p(l(n))}else B(m);u(r)},inputElement:k}),React.createElement("section",{className:"uagb-ip-lr-container"},React.createElement("div",{className:"uagb-ip-left"},React.createElement("div",{className:"uagb-ip-categories-list"},React.createElement("div",{key:"all",className:"all"===m?"selected":null,onClick:function(){return B("all")}},(0,y.__)("All Icons","sureforms")),i.map((function(e,t){return React.createElement("div",{key:t,className:e.slug===m?"selected":null,onClick:function(){return B(e.slug)}},e.title)})),React.createElement("div",{key:"no-category",className:"no-category"===m?"selected":null,onClick:function(){return B("no-category")}},(0,y.__)("Other","sureforms")))),React.createElement("div",{className:"uagb-ip-right"},React.createElement("div",{className:"uagb-ip-modal-container",ref:O},function(){if(!f.length)return React.createElement("div",{className:"uagb-ip-icons icon-not-found"},React.createElement("div",{className:"uagb-icon-not-available"},React.createElement("span",null,(0,y.__)("No Icons Found","sureforms"))));var e=N/8;return React.createElement("div",{className:"uagb-ip-icons"},React.createElement(Vd,{cellRenderer:function(e){var r,n=e.columnIndex,o=e.key,i=e.rowIndex,l=e.style,s=f[i][n];if(!s)return null;var c=["uagb-icon-item",t===s&&"default",s===E&&"selected"].filter(Boolean).join(" "),u=null!==(r=a[s])&&void 0!==r&&r.label?a[s].label:"";return React.createElement("div",{key:o,style:l},React.createElement("div",{className:c,onClick:function(){t!==s&&S(s)}},lu(s),React.createElement(v.Tooltip,{text:u},React.createElement("span",null,function(e){return e?e.length<11?e:e.slice(0,10)+"..":""}(u)))))},columnCount:f[0].length,columnWidth:8===f[0].length?e-2:100,height:A,rowCount:f.length,rowHeight:8===f[0].length?e:100,width:N,scrollToRow:L,autoContainerWidth:!0}))}()))),React.createElement("section",{className:"uagb-ip-footer"},React.createElement("button",{className:""===E?"disable":null,onClick:""!==E?function(){r(E),n()}:null},(0,y.__)("Insert Icon","sureforms"))))};function pp(e){return pp="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},pp(e)}function hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(r),!0).forEach((function(t){vp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vp(e,t,r){return(t=function(e){var t=function(e){if("object"!=pp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=pp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gp(e){return function(e){if(Array.isArray(e))return yp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bp(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 bp(e,t){if(e){if("string"==typeof e)return yp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yp(e,t):void 0}}function yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const _p=function(e){(0,b.useLayoutEffect)((function(){return Su.use(),function(){Su.unuse()}}),[]);var t=e.label,r=e.value,n=e.onChange,o=e.help,i=void 0!==o&&o,a=e.addIcon,l=void 0===a?null:a,s=gp(wp.UAGBSvgIcons),c=gp(wp.uagb_icon_category_list),u=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||bp(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.")}()}((0,b.useState)(!1),2),d=u[0],f=u[1],p=function(){return f(!0)},h=r&&""!==r,m=React.createElement("div",{className:"uag-ip-placeholder-wrap"},h&&React.createElement("div",{className:"uag-ip-remove-icon",onClick:function(){n("")}},lu("xmark")),React.createElement("div",{className:"uag-ip-selected-icon",onClick:p},React.createElement("div",{className:"uag-ip-selected-icon-overlay"},!h&&(l||lu("plus"))),h&&React.createElement("div",{className:"uag-ip-selected-icon-value"},lu(r))),React.createElement("div",{className:"uag-ip-actions"},React.createElement("span",{onClick:p},h?(0,y.__)("Change Icon","sureforms"):(0,y.__)("Choose Icon","sureforms"))));return React.createElement("div",{className:"uag-custom-ip components-base-control"},React.createElement("span",{className:"uag-control-label"},t||(0,y.__)("Icon","sureforms")),m,d&&React.createElement(fp,mp(mp({},e),{},{closeModal:function(){return f(!1)},defaultIcons:s,iconCategoryList:c})),React.createElement(Vt,{text:i}))};var Cp="#fff",xp="#1d2327",Ep="none";const Sp={logo:(0,b.createElement)("svg",{width:20,height:20,viewBox:"0 0 85 85",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M41.7849 0C33.5206 0 25.4419 2.49258 18.5705 7.16254C11.699 11.8325 6.34331 18.4701 3.18071 26.236C0.0181112 34.0018 -0.809377 42.5471 0.802901 50.7913C2.41518 59.0355 6.3948 66.6083 12.2385 72.552C18.0822 78.4958 25.5276 82.5435 33.633 84.1834C41.7385 85.8232 50.1401 84.9816 57.7753 81.7649C65.4105 78.5482 71.9363 73.1008 76.5277 66.1117C81.1191 59.1226 83.5697 50.9057 83.5697 42.5C83.565 31.2298 79.1612 20.4225 71.326 12.4533C63.4908 4.48402 52.8655 0.0048112 41.7849 0ZM57.5278 49.0175C57.5278 49.1264 57.5278 49.2354 57.5278 49.3443V49.6529V49.8526C57.3161 51.0856 56.8673 52.2639 56.207 53.3201L55.8143 53.8829L55.2431 54.5546C55.0482 54.8082 54.8268 55.0396 54.5827 55.2445V55.3353L54.4578 55.4261L54.2079 55.6258C54.1249 55.7007 54.0353 55.7675 53.9402 55.8255L53.6724 56.0071L34.3061 69.0602C34.1479 69.1683 33.9612 69.2253 33.7706 69.2236H33.5743C33.447 69.1967 33.3262 69.1443 33.2189 69.0695C33.1117 68.9947 33.0201 68.899 32.9495 68.7879C32.9495 68.7879 32.5033 67.9891 32.4676 67.9347V67.7531V67.6623V67.5534V67.4263V67.2811C31.7014 65.262 31.6378 63.0371 32.2872 60.9761C32.9366 58.9152 34.2601 57.1424 36.0375 55.9526L45.0691 49.8708C45.2101 49.7754 45.3201 49.6398 45.3853 49.4809C45.4505 49.322 45.4679 49.147 45.4355 48.9781C45.403 48.8091 45.3221 48.6537 45.2029 48.5315C45.0837 48.4093 44.9316 48.3257 44.7657 48.2913L34.1633 46.1128H33.8599H33.7706H33.485H33.1816H33.0567H32.896H32.8068L32.5212 46.0038H32.4319H32.2534L31.9679 45.8586L31.6823 45.7134L31.4145 45.55L31.1468 45.3866C30.3041 44.8521 29.5509 44.1841 28.9156 43.4077L28.6836 43.0809L28.4159 42.6634C27.73 41.6278 27.255 40.4629 27.0189 39.2375C26.7828 38.012 26.7905 36.751 27.0415 35.5286C27.228 34.6884 27.5221 33.8766 27.9161 33.1141C28.0232 32.9144 28.1124 32.7328 28.2195 32.5694L28.3802 32.3153C28.4948 32.1207 28.6199 31.9329 28.755 31.7525L28.9156 31.5528L29.112 31.3167L29.3083 31.0989L29.4333 30.9718L29.6475 30.754L29.8259 30.5906L30.0223 30.4272L30.2365 30.2456H30.3257L30.4685 30.1185H30.5578L30.7898 29.9551L50.049 16.9746C50.1725 16.8912 50.3113 16.8338 50.457 16.806C50.6027 16.7782 50.7524 16.7804 50.8973 16.8126C51.0421 16.8448 51.1791 16.9062 51.3002 16.9933C51.4212 17.0804 51.5238 17.1913 51.6019 17.3195L51.7626 17.5918L51.8875 17.846C51.8875 17.9368 51.9768 18.0094 52.0125 18.082C52.0125 18.082 52.0125 18.082 52.0125 18.191C52.0239 18.2325 52.0239 18.2765 52.0125 18.318L52.1195 18.5904C52.1292 18.6383 52.1292 18.6877 52.1195 18.7356C52.1195 18.7356 52.1195 18.7356 52.1195 18.8445C52.8288 20.8305 52.8625 23.0011 52.2153 25.0089C51.5681 27.0166 50.2774 28.7455 48.5497 29.9188L39.6251 35.9462C39.4842 36.0415 39.3742 36.1772 39.309 36.3361C39.2438 36.495 39.2263 36.6699 39.2588 36.8389C39.2912 37.0078 39.3722 37.1632 39.4914 37.2854C39.6106 37.4077 39.7627 37.4912 39.9286 37.5256L50.4417 39.686C52.5458 40.1281 54.4361 41.2935 55.7948 42.9862C57.1536 44.679 57.8979 46.796 57.9027 48.9812C57.5635 48.4003 57.5278 48.9812 57.5278 48.9812V49.0175Z",fill:"url(#paint0_linear_619_170)"})),section:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M21 15V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19L3 15M21 15L3 15M21 15V9M3 15L3 9M21 9V5C21 3.89543 20.1046 3 19 3L5 3C3.89543 3 3 3.89543 3 5L3 9M21 9L3 9",fill:Ep,stroke:Cp,strokeWidth:1.4})),buttons:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 17.5H17M7 6.5H17M5 10H19C20.1046 10 21 9.10457 21 8V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V8C3 9.10457 3.89543 10 5 10ZM5 21H19C20.1046 21 21 20.1046 21 19V16C21 14.8954 20.1046 14 19 14H5C3.89543 14 3 14.8954 3 16V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),buttons_child:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 11.5H17M5 15H19C20.1046 15 21 14.1046 21 13V10C21 8.89543 20.1046 8 19 8H5C3.89543 8 3 8.89543 3 10V13C3 14.1046 3.89543 15 5 15Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),advanced_heading:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M8 7V12.8333M8 12.8333V17M8 12.8333H16M16 12.8333V7M16 12.8333V17M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),google_map:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M9 3.00002L4.10557 5.44723C3.428 5.78601 3 6.47854 3 7.23608V20.382C3 21.1254 3.78231 21.6089 4.44721 21.2764L9 19M9 3.00002L15 5.00002M9 3.00002V19M9 19L15 21M15 5.00002L19.5528 2.72362C20.2177 2.39117 21 2.87467 21 3.61805V16.7639C21 17.5215 20.572 18.214 19.8944 18.5528L15 21M15 5.00002V21",fill:Ep,stroke:Cp,strokeWidth:1.4})),info_box:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 13H17M7 16.5H15.3333M9 8C9 8.55228 8.55228 9 8 9C7.44772 9 7 8.55228 7 8C7 7.44772 7.44772 7 8 7C8.55228 7 9 7.44772 9 8ZM5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),post_carousel:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M0 17C1.10457 17 2 16.1046 2 15V8C2 6.89543 1.10457 6 0 6M24 17C22.8954 17 22 16.1046 22 15V8C22 6.89543 22.8954 6 24 6M7 17H17C18.1046 17 19 16.1046 19 15V8C19 6.89543 18.1046 6 17 6H7C5.89543 6 5 6.89543 5 8V15C5 16.1046 5.89543 17 7 17Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M8 11H12.5M8 14H16",stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),post_masonry:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 14C3 12.8954 3.89543 12 5 12H8C9.10457 12 10 12.8954 10 14V21C10 22.1046 9.10457 23 8 23H5C3.89543 23 3 22.1046 3 21V14Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M14 3C14 1.89543 14.8954 1 16 1H19C20.1046 1 21 1.89543 21 3V10C21 11.1046 20.1046 12 19 12H16C14.8954 12 14 11.1046 14 10V3Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M14 18C14 16.8954 14.8954 16 16 16H19C20.1046 16 21 16.8954 21 18V21C21 22.1046 20.1046 23 19 23H16C14.8954 23 14 22.1046 14 21V18Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M3 3C3 1.89543 3.89543 1 5 1H8C9.10457 1 10 1.89543 10 3V6C10 7.10457 9.10457 8 8 8H5C3.89543 8 3 7.10457 3 6V3Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),post_grid:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 16C3 14.8954 3.89543 14 5 14H8C9.10457 14 10 14.8954 10 16V19C10 20.1046 9.10457 21 8 21H5C3.89543 21 3 20.1046 3 19V16Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M14 16C14 14.8954 14.8954 14 16 14H19C20.1046 14 21 14.8954 21 16V19C21 20.1046 20.1046 21 19 21H16C14.8954 21 14 20.1046 14 19V16Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M3 5C3 3.89543 3.89543 3 5 3H8C9.10457 3 10 3.89543 10 5V8C10 9.10457 9.10457 10 8 10H5C3.89543 10 3 9.10457 3 8V5Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M14 5C14 3.89543 14.8954 3 16 3H19C20.1046 3 21 3.89543 21 5V8C21 9.10457 20.1046 10 19 10H16C14.8954 10 14 9.10457 14 8V5Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),testimonial:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M15.5 9.42857C15.5 10.2175 14.903 10.8571 14.1667 10.8571C13.4303 10.8571 12.8333 10.2175 12.8333 9.42857C12.8333 8.63959 13.4303 8 14.1667 8C14.903 8 15.5 8.63959 15.5 9.42857ZM15.5 9.42857C15.5 9.42857 15.5 11.5714 13.5 13M11.1667 9.42857C11.1667 10.2175 10.5697 10.8571 9.83333 10.8571C9.09695 10.8571 8.5 10.2175 8.5 9.42857C8.5 8.63959 9.09695 8 9.83333 8C10.5697 8 11.1667 8.63959 11.1667 9.42857ZM11.1667 9.42857C11.1667 9.42857 11.1667 11.5714 9.16667 13M12 21L14.4142 18.5858C14.7893 18.2107 15.298 18 15.8284 18H19C20.1046 18 21 17.1046 21 16V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V16C3 17.1046 3.89543 18 5 18H8.17157C8.70201 18 9.21071 18.2107 9.58579 18.5858L12 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),cf7_styler:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M4.51555 17C6.13007 19.412 8.87958 21 12 21C15.1204 21 17.8699 19.412 19.4845 17M4.51555 17C3.55827 15.5699 3 13.8501 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 13.8501 20.4417 15.5699 19.4845 17M4.51555 17C5.75777 17 7.12889 15 8.43944 13M19.4845 17C18.2422 17 16.8711 15 15.5606 13M8.43944 13C9.75 11 11 9 12 9C13 9 14.25 11 15.5606 13M8.43944 13L9.09522 14.2607C9.47211 14.9852 10.5116 14.9769 10.8768 14.2464L11.3795 13.241C11.6848 12.6305 12.4984 12.4984 12.9811 12.9811L13.4309 13.4309C13.7632 13.7632 14.282 13.8193 14.6776 13.5658L15.5606 13",fill:Ep,stroke:Cp,strokeWidth:1.4})),gf_styler:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M17 12V15H7L6.99998 12.9996C6.99998 10.7905 8.79083 9.00001 10.9999 9.00001H17.5M3.33984 8.71466V15.2854C3.33984 16.0317 3.75541 16.7159 4.41768 17.0601L11.0779 20.5208C11.656 20.8212 12.3442 20.8212 12.9223 20.5208L19.5825 17.0601C20.2448 16.7159 20.6604 16.0317 20.6604 15.2854V8.71466C20.6604 7.96832 20.2448 7.28407 19.5825 6.93995L12.9223 3.47918C12.3442 3.1788 11.656 3.1788 11.0779 3.47918L4.41768 6.93995C3.75541 7.28407 3.33984 7.96832 3.33984 8.71466Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),content_timeline:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M12.0001 3V7M12.0001 21V17M12.0001 7H15.0001M12.0001 7V12M15.0001 7C15.0001 8.10457 15.8954 9 17 9H19C20.1046 9 21 8.10457 21 7C21 5.89543 20.1046 5 19 5H17C15.8954 5 15.0001 5.89543 15.0001 7ZM12.0001 12H9M12.0001 12V17M9 12C9 13.1046 8.10457 14 7 14H5C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10H7C8.10457 10 9 10.8954 9 12ZM12.0001 17H15.0001M15.0001 17C15.0001 18.1046 15.8954 19 17 19H19C20.1046 19 21 18.1046 21 17C21 15.8954 20.1046 15 19 15H17C15.8954 15 15.0001 15.8954 15.0001 17Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),content_timeline_child:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M5.99993 3V7V12M5.99993 21V17V12M5.99993 12H9M9 12C9 13.1046 9.89543 14 11 14H16C17.1046 14 18 13.1046 18 12C18 10.8954 17.1046 10 16 10H11C9.89543 10 9 10.8954 9 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),call_to_action:(0,b.createElement)("svg",{width:40,height:40,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M16.4545 16.4545L14.6364 21L11 11L21 14.6364L16.4545 16.4545ZM16.4545 16.4545L21 21M9 16.9291C5.60771 16.4439 3 13.5265 3 10C3 6.13401 6.13401 3 10 3C13.5265 3 16.4439 5.60771 16.9291 9M8.5 12.5987C7.6033 12.0799 7 11.1104 7 10C7 8.34315 8.34315 7 10 7C11.1104 7 12.0799 7.6033 12.5987 8.5",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),post_timeline:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M4 3V6M4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10M4 6C5.10457 6 6 6.89543 6 8C6 9.10457 5.10457 10 4 10M4 10V14M4 14C2.89543 14 2 14.8954 2 16C2 17.1046 2.89543 18 4 18M4 14C5.10457 14 6 14.8954 6 16C6 17.1046 5.10457 18 4 18M4 18V21M11 18H19C20.1046 18 21 17.1046 21 16C21 14.8954 20.1046 14 19 14H11C9.89543 14 9 14.8954 9 16C9 17.1046 9.89543 18 11 18ZM11 10H19C20.1046 10 21 9.10457 21 8C21 6.89543 20.1046 6 19 6H11C9.89543 6 9 6.89543 9 8C9 9.10457 9.89543 10 11 10Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),icon_list:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M11 5H21M11 12H21M11 19H21",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M7 5C7 6.10457 6.10457 7 5 7C3.89543 7 3 6.10457 3 5C3 3.89543 3.89543 3 5 3C6.10457 3 7 3.89543 7 5Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M7 19C7 20.1046 6.10457 21 5 21C3.89543 21 3 20.1046 3 19C3 17.8954 3.89543 17 5 17C6.10457 17 7 17.8954 7 19Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),icon_list_child:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M11 5H21M13 11H21M13 16H21M13 20.5H21M7 5C7 6.10457 6.10457 7 5 7C3.89543 7 3 6.10457 3 5C3 3.89543 3.89543 3 5 3C6.10457 3 7 3.89543 7 5Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M9 11C9 11.5523 8.55228 12 8 12C7.44772 12 7 11.5523 7 11C7 10.4477 7.44772 10 8 10C8.55228 10 9 10.4477 9 11Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M9 16C9 16.5523 8.55228 17 8 17C7.44772 17 7 16.5523 7 16C7 15.4477 7.44772 15 8 15C8.55228 15 9 15.4477 9 16Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M9 20.5C9 21.0523 8.55228 21.5 8 21.5C7.44772 21.5 7 21.0523 7 20.5C7 19.9477 7.44772 19.5 8 19.5C8.55228 19.5 9 19.9477 9 20.5Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),team:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M17 20H22V18C22 16.3431 20.6569 15 19 15C18.0444 15 17.1931 15.4468 16.6438 16.1429M17 20H7M17 20V18C17 17.3438 16.8736 16.717 16.6438 16.1429M7 20H2V18C2 16.3431 3.34315 15 5 15C5.95561 15 6.80686 15.4468 7.35625 16.1429M7 20V18C7 17.3438 7.12642 16.717 7.35625 16.1429M7.35625 16.1429C8.0935 14.301 9.89482 13 12 13C14.1052 13 15.9065 14.301 16.6438 16.1429M15 7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7C9 5.34315 10.3431 4 12 4C13.6569 4 15 5.34315 15 7ZM21 10C21 11.1046 20.1046 12 19 12C17.8954 12 17 11.1046 17 10C17 8.89543 17.8954 8 19 8C20.1046 8 21 8.89543 21 10ZM7 10C7 11.1046 6.10457 12 5 12C3.89543 12 3 11.1046 3 10C3 8.89543 3.89543 8 5 8C6.10457 8 7 8.89543 7 10Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),tabs:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M10 3V6C10 7.10457 10.8954 8 12 8H15.5M15.5 8H21M15.5 8V3M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),tabs_child:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M12 3V8C12 9.10457 12.8954 10 14 10H16.5H21M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),social_share:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M9 12C9 13.1046 8.10457 14 7 14C5.89543 14 5 13.1046 5 12C5 10.8954 5.89543 10 7 10C8.10457 10 9 10.8954 9 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M19 6C19 7.10457 18.1046 8 17 8C15.8954 8 15 7.10457 15 6C15 4.89543 15.8954 4 17 4C18.1046 4 19 4.89543 19 6Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M19 18C19 19.1046 18.1046 20 17 20C15.8954 20 15 19.1046 15 18C15 16.8954 15.8954 16 17 16C18.1046 16 19 16.8954 19 18Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M9 10.5L15 7M9 13.5L15 17",fill:Ep,stroke:Cp,strokeWidth:1.4})),social_share_child:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M9 10.5L15 7M9 13.5L15 17M21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 16.3431 16.3431 15 18 15C19.6569 15 21 16.3431 21 18ZM9 12C9 13.1046 8.10457 14 7 14C5.89543 14 5 13.1046 5 12C5 10.8954 5.89543 10 7 10C8.10457 10 9 10.8954 9 12ZM19 6C19 7.10457 18.1046 8 17 8C15.8954 8 15 7.10457 15 6C15 4.89543 15.8954 4 17 4C18.1046 4 19 4.89543 19 6Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),restaurant_menu:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M17.7472 5.05554C17.5824 4.84998 17.3481 4.68976 17.074 4.59515C16.8912 4.53203 16.696 4.5 16.5 4.5M16.5 4.5C16.4022 4.5 16.3042 4.50797 16.2074 4.52402C15.9164 4.57225 15.6491 4.6913 15.4393 4.86612C15.2296 5.04093 15.0867 5.26366 15.0288 5.50614C14.9709 5.74861 15.0006 5.99995 15.1142 6.22835C15.2277 6.45676 15.42 6.65199 15.6666 6.78934C15.9133 6.92669 16.2033 7 16.5 7C16.7967 7 17.0867 7.07331 17.3334 7.21066C17.58 7.34802 17.7723 7.54324 17.8858 7.77165C17.9994 8.00005 18.0291 8.25139 17.9712 8.49386C17.9133 8.73634 17.7704 8.95907 17.5607 9.13388C17.3509 9.3087 17.0836 9.42775 16.7926 9.47598C16.6958 9.49203 16.5978 9.5 16.5 9.5M16.5 4.5V4M15.2528 8.94446C15.4176 9.15003 15.6519 9.31024 15.926 9.40485C16.1088 9.46797 16.304 9.5 16.5 9.5M16.5 9.5V10",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M17.7472 15.0555C17.5824 14.85 17.3481 14.6898 17.074 14.5952C16.8912 14.532 16.696 14.5 16.5 14.5M16.5 14.5C16.4022 14.5 16.3042 14.508 16.2074 14.524C15.9164 14.5723 15.6491 14.6913 15.4393 14.8661C15.2296 15.0409 15.0867 15.2637 15.0288 15.5061C14.9709 15.7486 15.0006 15.9999 15.1142 16.2284C15.2277 16.4568 15.42 16.652 15.6666 16.7893C15.9133 16.9267 16.2033 17 16.5 17C16.7967 17 17.0867 17.0733 17.3334 17.2107C17.58 17.348 17.7723 17.5432 17.8858 17.7716C17.9994 18.0001 18.0291 18.2514 17.9712 18.4939C17.9133 18.7363 17.7704 18.9591 17.5607 19.1339C17.3509 19.3087 17.0836 19.4278 16.7926 19.476C16.6958 19.492 16.5978 19.5 16.5 19.5M16.5 14.5V14M15.2528 18.9445C15.4176 19.15 15.6519 19.3102 15.926 19.4049C16.1088 19.468 16.304 19.5 16.5 19.5M16.5 19.5V20",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M6 5H12M6 15H12M6 8H9M6 18H9",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M3 3C3 1.89543 3.89543 1 5 1H19C20.1046 1 21 1.89543 21 3V21C21 22.1046 20.1046 23 19 23H5C3.89543 23 3 22.1046 3 21V3Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),restaurant_menu_child:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M20.6208 8.58331C20.3736 8.27496 20.0222 8.03464 19.611 7.89273C19.3367 7.79804 19.0441 7.75 18.75 7.75M18.75 7.75C18.6033 7.75 18.4563 7.76195 18.311 7.78603C17.8746 7.85838 17.4737 8.03695 17.159 8.29918C16.8443 8.5614 16.6301 8.89549 16.5432 9.25921C16.4564 9.62292 16.501 9.99992 16.6713 10.3425C16.8416 10.6851 17.13 10.978 17.5 11.184C17.87 11.39 18.305 11.5 18.75 11.5C19.195 11.5 19.63 11.61 20 11.816C20.37 12.022 20.6584 12.3149 20.8287 12.6575C20.999 13.0001 21.0436 13.3771 20.9568 13.7408C20.8699 14.1045 20.6557 14.4386 20.341 14.7008C20.0263 14.963 19.6254 15.1416 19.189 15.214C19.0437 15.2381 18.8967 15.25 18.75 15.25M18.75 7.75V7M16.8792 14.4167C17.1264 14.725 17.4778 14.9654 17.889 15.1073C18.1633 15.202 18.4559 15.25 18.75 15.25M18.75 15.25V16M3 9.5H12M3 13H7.5M3 3H20.9568M3 21H20.9568",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),blockquote:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 7H17M7 11H9M17 11.8571C17 12.3305 16.6418 12.7143 16.2 12.7143C15.7582 12.7143 15.4 12.3305 15.4 11.8571C15.4 11.3838 15.7582 11 16.2 11C16.6418 11 17 11.3838 17 11.8571ZM17 11.8571C17 11.8571 17 13.1429 15.8 14M13.6 11.8571C13.6 12.3305 13.2418 12.7143 12.8 12.7143C12.3582 12.7143 12 12.3305 12 11.8571C12 11.3838 12.3582 11 12.8 11C13.2418 11 13.6 11.3838 13.6 11.8571ZM13.6 11.8571C13.6 11.8571 13.6 13.1429 12.4 14M3 21V5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V16C21 17.1046 20.1046 18 19 18H7.66667C7.23393 18 6.81286 18.1404 6.46667 18.4L3 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),columns:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M15 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H15M15 3V21M15 3H9M15 21H9M9 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H9M9 3V21",fill:Ep,stroke:Cp,strokeWidth:1.4})),column:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 5C3 3.89543 3.89543 3 5 3H10C11.1046 3 12 3.89543 12 5V19C12 20.1046 11.1046 21 10 21H5C3.89543 21 3 20.1046 3 19V5Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M15 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H15",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeDasharray:1.4})),marketing_button:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 20.9895H17M4 16.9895H20",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M10 7H19M3 11H21C22.1046 11 23 10.1046 23 9V5C23 3.89543 22.1046 3 21 3H3C1.89543 3 1 3.89543 1 5V9C1 10.1046 1.89543 11 3 11ZM7 7C7 7.55228 6.55228 8 6 8C5.44772 8 5 7.55228 5 7C5 6.44772 5.44772 6 6 6C6.55228 6 7 6.44772 7 7Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),table_of_contents:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 16H13M7 12H15.3333M7 8H17M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),faq:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M9.00006 9C9.50006 8 10.5001 7 12.0001 7C13.5002 7 15.0001 8.5 15.0001 10C15.0001 11.4553 14.0588 12.4399 13.0843 12.8686C13.0248 12.8948 12.9619 12.9116 12.8992 12.9285C12.4001 13.0627 12.0001 13.4804 12.0001 14M12.0001 17H12.0101M21.0001 12C21.0001 16.9706 16.9706 21 12.0001 21C10.5124 21 9.1091 20.6391 7.87286 20C7.19356 19.6488 3.56466 21.5054 3 21C2.43678 20.4959 4.93748 17.6302 4.51561 17C3.55833 15.5699 3.00006 13.8501 3.00006 12C3.00006 7.02944 7.0295 3 12.0001 3C16.9706 3 21.0001 7.02944 21.0001 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),faq_child:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M12.0067 10.2C12.34 9.6 13.0067 9 14.0067 9C15.0067 9 16.0067 9.9 16.0067 10.8C16.0067 11.6628 15.394 12.2498 14.7527 12.5118C14.6977 12.5343 14.6397 12.5477 14.5824 12.5632C14.2608 12.6496 14.0067 12.8957 14.0067 13.2M14.0067 15H14.0133M11.0002 15H11.0069M8.00017 15H8.00684M21.0001 12C21.0001 16.9706 16.9706 21 12.0001 21C10.5124 21 9.1091 20.6391 7.87286 20C7.19356 19.6488 3.56466 21.5054 3 21C2.43678 20.4959 4.93748 17.6302 4.51561 17C3.55833 15.5699 3.00006 13.8501 3.00006 12C3.00006 7.02944 7.0295 3 12.0001 3C16.9706 3 21.0001 7.02944 21.0001 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),forms:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 10H17M7 7H10.5M9 17H15M7 13H17M13.5 7H17M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),how_to:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M13 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V11M13 3L21 11M13 3V9C13 10.1046 13.8954 11 15 11H21M10 11H17M10 7H13M10 15H17M7 7H7.1M7 11H7.1M7 15H7.1",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),how_to_step:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M23 12C23 13.1046 22.1046 14 21 14C19.8954 14 19 13.1046 19 12C19 10.8954 19.8954 10 21 10C22.1046 10 23 10.8954 23 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M5 12C5 13.1046 4.10457 14 3 14C1.89543 14 1 13.1046 1 12C1 10.8954 1.89543 10 3 10C4.10457 10 5 10.8954 5 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M7.5 12H7.6",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"}),(0,b.createElement)("path",{d:"M16.5 12H16.6",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),inline_notice:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 21H21M3 3H21M10 12H19M3 17H21C22.1046 17 23 16.1046 23 15V9C23 7.89543 22.1046 7 21 7H3C1.89543 7 1 7.89543 1 9V15C1 16.1046 1.89543 17 3 17ZM7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),wp_search:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 21L9 15M7 10C7 13.866 10.134 17 14 17C17.866 17 21 13.866 21 10C21 6.13401 17.866 3 14 3C10.134 3 7 6.13401 7 10Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),taxonomy_list:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M10 16H17M10 12H15M10 8H17M6.98999 8H6.99999M6.98999 12H6.99999M6.98999 16H6.99999M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),review:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 10.5H17M9.5 7H9.51M6.99 7H7M12 7H12.01M7 14H14M12 21L14.4142 18.5858C14.7893 18.2107 15.298 18 15.8284 18H19C20.1046 18 21 17.1046 21 16V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V16C3 17.1046 3.89543 18 5 18H8.17157C8.70201 18 9.21071 18.2107 9.58579 18.5858L12 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),lottie:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7 17C7 17 12 17.5 12 12C12 6.5 17 7 17 7M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),accept:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M20 12H12M4 12L5.66667 14L9 10M3 17H21C22.1046 17 23 16.1046 23 15V9C23 7.89543 22.1046 7 21 7H3C1.89543 7 1 7.89543 1 9V15C1 16.1046 1.89543 17 3 17Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),checkbox:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M8 12L10.6667 15L16 9M5.77778 20H18.2222C19.2041 20 20 18.9767 20 17.7143V6.28571C20 5.02335 19.2041 4 18.2222 4H5.77778C4.79594 4 4 5.02335 4 6.28571V17.7143C4 18.9767 4.79594 20 5.77778 20Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),datepicker:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M8 7V3M16 7V3M8 13H8.1M11.9 13H12M16 13H16.1M5 21H19C20.1046 21 21 20.1046 21 19V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),email:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 8L10.8906 13.2604C11.5624 13.7083 12.4376 13.7083 13.1094 13.2604L21 8M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),hidden:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3.00024 3L6.5894 6.58916M21.0002 21L17.4114 17.4112M13.8751 18.8246C13.268 18.9398 12.6414 19 12.0007 19C7.52305 19 3.73275 16.0571 2.4585 12C2.80539 10.8955 3.33875 9.87361 4.02168 8.97118M9.87892 9.87868C10.4218 9.33579 11.1718 9 12.0002 9C13.6571 9 15.0002 10.3431 15.0002 12C15.0002 12.8284 14.6645 13.5784 14.1216 14.1213M9.87892 9.87868L14.1216 14.1213M9.87892 9.87868L6.5894 6.58916M14.1216 14.1213L6.5894 6.58916M14.1216 14.1213L17.4114 17.4112M6.5894 6.58916C8.14922 5.58354 10.0068 5 12.0007 5C16.4783 5 20.2686 7.94291 21.5429 12C20.836 14.2507 19.3548 16.1585 17.4114 17.4112",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),name:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M18 9H13M13 12H17M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19ZM7 14H9C9.55228 14 10 13.5523 10 13V9C10 8.44772 9.55228 8 9 8H7C6.44772 8 6 8.44772 6 9V13C6 13.5523 6.44772 14 7 14Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),phone:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 5C3 3.89543 3.89543 3 5 3H8.27924C8.70967 3 9.09181 3.27543 9.22792 3.68377L10.7257 8.17721C10.8831 8.64932 10.6694 9.16531 10.2243 9.38787L7.96701 10.5165C9.06925 12.9612 11.0388 14.9308 13.4835 16.033L14.6121 13.7757C14.8347 13.3306 15.3507 13.1169 15.8228 13.2743L20.3162 14.7721C20.7246 14.9082 21 15.2903 21 15.7208V19C21 20.1046 20.1046 21 19 21H18C9.71573 21 3 14.2843 3 6V5Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),radio:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M12 7H22M12 17H22M8 7C8 8.65685 6.65685 10 5 10C3.34315 10 2 8.65685 2 7C2 5.34315 3.34315 4 5 4C6.65685 4 8 5.34315 8 7ZM8 17C8 18.6569 6.65685 20 5 20C3.34315 20 2 18.6569 2 17C2 15.3431 3.34315 14 5 14C6.65685 14 8 15.3431 8 17ZM5.5 7C5.5 7.27614 5.27614 7.5 5 7.5C4.72386 7.5 4.5 7.27614 4.5 7C4.5 6.72386 4.72386 6.5 5 6.5C5.27614 6.5 5.5 6.72386 5.5 7Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),select:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M5 17H17M5 14H19M4 9H20C21.1046 9 22 8.10457 22 7V5C22 3.89543 21.1046 3 20 3H4C2.89543 3 2 3.89543 2 5V7C2 8.10457 2.89543 9 4 9ZM4 21H20C21.1046 21 22 20.1046 22 19V12C22 10.8954 21.1046 10 20 10H4C2.89543 10 2 10.8954 2 12V19C2 20.1046 2.89543 21 4 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),textarea:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M15.5 16L18 13.5M18.5 16.5L18.6 16.4M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),toggle:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M2 12C2 8.68629 4.68629 6 8 6H16C19.3137 6 22 8.68629 22 12V12C22 15.3137 19.3137 18 16 18H8C4.68629 18 2 15.3137 2 12V12Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M20 12C20 14.2091 18.2091 16 16 16C13.7909 16 12 14.2091 12 12C12 9.79086 13.7909 8 16 8C18.2091 8 20 9.79086 20 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),url:(0,b.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M13.8284 10.1716C12.2663 8.60948 9.73367 8.60948 8.17157 10.1716L4.17157 14.1716C2.60948 15.7337 2.60948 18.2663 4.17157 19.8284C5.73367 21.3905 8.26633 21.3905 9.82843 19.8284L10.93 18.7269M10.1716 13.8284C11.7337 15.3905 14.2663 15.3905 15.8284 13.8284L19.8284 9.82843C21.3905 8.26633 21.3905 5.73367 19.8284 4.17157C18.2663 2.60948 15.7337 2.60948 14.1716 4.17157L13.072 5.27118",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),star_rating:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M11.103 7.81696C11.4698 7.07371 12.5297 7.07371 12.8965 7.81696L13.8243 9.69697C13.97 9.99211 14.2516 10.1967 14.5773 10.244L16.652 10.5455C17.4722 10.6647 17.7997 11.6726 17.2062 12.2512L15.7049 13.7146C15.4692 13.9443 15.3617 14.2753 15.4173 14.5997L15.7717 16.666C15.9118 17.4829 15.0544 18.1059 14.3208 17.7202L12.4651 16.7446C12.1738 16.5915 11.8257 16.5915 11.5344 16.7446L9.67874 17.7202C8.94511 18.1059 8.08768 17.4829 8.22779 16.666L8.58219 14.5997C8.63783 14.2753 8.53028 13.9443 8.29459 13.7146L6.79332 12.2512C6.1998 11.6726 6.52731 10.6647 7.34753 10.5455L9.42225 10.244C9.74796 10.1967 10.0295 9.99211 10.1752 9.69697L11.103 7.81696Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M18.4424 14.106L20.1846 14.8943C21.0283 15.2761 21.9613 14.5667 21.7842 13.6782L21.6155 12.8313C21.5377 12.4411 21.6806 12.0403 21.99 11.7808L22.6034 11.2662C23.3499 10.6399 22.9822 9.44941 22.0043 9.32712L20.8958 9.18848C20.5373 9.14365 20.2219 8.93603 20.0458 8.62895L19.4377 7.56859C19.003 6.81047 17.8817 6.81047 17.447 7.56859L16.559 9.11719M5.55765 14.106L3.8154 14.8943C2.97172 15.2761 2.0387 14.5667 2.21577 13.6782L2.38454 12.8313C2.46229 12.4411 2.3194 12.0403 2.01002 11.7808L1.39664 11.2662C0.650069 10.6399 1.01784 9.44941 1.99569 9.32712L3.1042 9.18848C3.46273 9.14365 3.77814 8.93603 3.95423 8.62895L4.56227 7.56859C4.997 6.81047 6.11829 6.81047 6.55302 7.56859L7.44104 9.11719",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),container:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 16C3 14.8954 3.89543 14 5 14H8C9.10457 14 10 14.8954 10 16V19C10 20.1046 9.10457 21 8 21H5C3.89543 21 3 20.1046 3 19V16Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M14 16C14 14.8954 14.8954 14 16 14H19C20.1046 14 21 14.8954 21 16V19C21 20.1046 20.1046 21 19 21H16C14.8954 21 14 20.1046 14 19V16Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M3 5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V8C21 9.10457 20.1046 10 19 10H5C3.89543 10 3 9.10457 3 8V5Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),image:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 17L7.41995 12.58C8.26284 11.7372 9.65125 11.8141 10.3959 12.7449L11.789 14.4863C12.4639 15.3298 13.6866 15.4851 14.5508 14.8369L15.6123 14.0408C16.4086 13.4436 17.5228 13.5228 18.2265 14.2265L21 17M17 8C17 8.55228 16.5523 9 16 9C15.4477 9 15 8.55228 15 8C15 7.44772 15.4477 7 16 7C16.5523 7 17 7.44772 17 8ZM5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ep,stroke:Cp,strokeWidth:1.4})),image_gallery:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M3 8.5V5C3 3.89543 3.89543 3 5 3H8.5C9.60457 3 10.5 3.89543 10.5 5V8.5M3 8.5C3 9.60457 3.89543 10.5 5 10.5H8.5C9.60457 10.5 10.5 9.60457 10.5 8.5M3 8.5L4.94679 6.87767C5.58153 6.34873 6.47618 6.26455 7.19844 6.6658L10.5 8.5M13.5 8.5V5C13.5 3.89543 14.3954 3 15.5 3H19C20.1046 3 21 3.89543 21 5V8.5M13.5 8.5C13.5 9.60457 14.3954 10.5 15.5 10.5H19C20.1046 10.5 21 9.60457 21 8.5M13.5 8.5L15.4468 6.87767C16.0815 6.34873 16.9762 6.26455 17.6984 6.6658L21 8.5M3 19V15.5C3 14.3954 3.89543 13.5 5 13.5H8.5C9.60457 13.5 10.5 14.3954 10.5 15.5V19M3 19C3 20.1046 3.89543 21 5 21H8.5C9.60457 21 10.5 20.1046 10.5 19M3 19L4.94679 17.3777C5.58153 16.8487 6.47618 16.7645 7.19844 17.1658L10.5 19M13.5 19V15.5C13.5 14.3954 14.3954 13.5 15.5 13.5H19C20.1046 13.5 21 14.3954 21 15.5V19M13.5 19C13.5 20.1046 14.3954 21 15.5 21H19C20.1046 21 21 20.1046 21 19M13.5 19L15.4468 17.3777C16.0815 16.8487 16.9762 16.7645 17.6984 17.1658L21 19",fill:Ep,stroke:Cp,strokeWidth:1.4})),counter:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M1 10.5L3 9.5V16.5M5.5 11C5.66667 10.5 6.3 9.5 7.5 9.5C9 9.5 9.5 10.5 9.5 11C9.5 13.0707 7 15 5.5 16.5H9.7M11.5 10.5C11.6667 10.1667 12.3 9.2 13.5 9.2C14.7 9.2 15.7 10 15.7 11C15.7 12 14.2 13 13 13C14 13 16.2469 13 16 15C15.8742 16.0188 14.8107 16.7 13.5 16.7C13 16.7 12 16.5 11.5 15.5M20.5 18V6M20.5 6L18 8M20.5 6L23 8",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),countdown:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M12 5.39514V3.16507M16.2269 6.58948L17.8848 5.09796M9.69775 2.60654H14.3022M11.8872 13.4553H16.6079M20.0052 13.3886C20.0052 17.8099 16.4211 21.394 11.9999 21.394C7.57873 21.394 3.99463 17.8099 3.99463 13.3886C3.99463 8.96743 7.57873 5.38333 11.9999 5.38333C16.4211 5.38333 20.0052 8.96743 20.0052 13.3886ZM12.327 13.3886C12.327 13.2081 12.1807 13.0618 12.0002 13.0618C11.8197 13.0618 11.6733 13.2081 11.6733 13.3886C11.6733 13.5692 11.8197 13.7155 12.0002 13.7155C12.1807 13.7155 12.327 13.5692 12.327 13.3886Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),modal:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("rect",{x:3,y:7.30975,width:15.033,height:11.7712,rx:2,fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M6.86572 11.6992H14.1675",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M6.86572 14.6918H14.1675",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M19.0982 4.51694L20.1633 5.58197M20.1633 5.58197L21.2283 6.647M20.1633 5.58197L19.0982 6.647M20.1633 5.58197L21.2283 4.51694",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),slider:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 26 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("rect",{x:5.4502,y:4.98621,width:15.0978,height:11.2249,rx:2,fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M9.19922 9.10217H16.501",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M9.19922 12.0948H16.501",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M15.9987 19.0138H16.0054M12.9922 19.0138H12.9989M9.99219 19.0138H9.99885",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M2.49658 9.69873L1.49658 10.5987L2.49658 11.4987",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M23.5034 11.4987L24.5034 10.5987L23.5034 9.69872",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),slider_child:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 26 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("rect",{x:5.4502,y:6.38751,width:15.0978,height:11.2249,rx:2,fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M9.19922 10.5035H16.501",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M9.19922 13.4962H16.501",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M2.49658 11.1L1.49658 12.0001L2.49658 12.9",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M23.5034 12.9L24.5034 12L23.5034 11.1",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),login:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M12 16L16 12M16 12L12 8M16 12L4 12M7 16V17C7 18.6569 8.34315 20 10 20H17C18.6569 20 20 18.6569 20 17V7C20 5.34315 18.6569 4 17 4H10C8.34315 4 7 5.34315 7 7V8",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),register:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M14 21H4C4 17.134 7.13401 14 11 14C12.0736 14 13.0907 14.2417 14 14.6736M17 15V18M17 18V21M17 18H14M17 18H20M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),password:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M15 7C16.1046 7 17 7.89543 17 9M21 9C21 12.3137 18.3137 15 15 15C14.3938 15 13.8087 14.9101 13.2571 14.7429L11 17H9V19H7V21H4C3.44772 21 3 20.5523 3 20V17.4142C3 17.149 3.10536 16.8946 3.29289 16.7071L9.25707 10.7429C9.08989 10.1914 9 9.60617 9 9C9 5.68629 11.6863 3 15 3C18.3137 3 21 5.68629 21 9Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),rePassword:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M13 9C13 7.9 13.8954 7 15 7C16.1046 7 17 7.89543 17 9C17 10.1 16.1 11 15 11M15 11V10M15 11L16 11.5M21 9C21 12.3137 18.3137 15 15 15C14.3938 15 13.8087 14.9101 13.2571 14.7429L11 17H9V19H7V21H4C3.44772 21 3 20.5523 3 20V17.4142C3 17.149 3.10536 16.8946 3.29289 16.7071L9.25707 10.7429C9.08989 10.1914 9 9.60617 9 9C9 5.68629 11.6863 3 15 3C18.3137 3 21 5.68629 21 9Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),instagram_feed:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M17 6.5H17.1M8.14286 21H15.8571C18.6975 21 21 18.6975 21 15.8571V8.14286C21 5.30254 18.6975 3 15.8571 3H8.14286C5.30254 3 3 5.30254 3 8.14286V15.8571C3 18.6975 5.30254 21 8.14286 21ZM16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),loop_builder:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 25 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("g",null,(0,b.createElement)("path",{d:"M3.35981 8.80578C5.11039 7.05892 7.94864 7.05892 9.69922 8.80578L12.8689 11.9687L9.69922 15.1317C7.94864 16.8785 5.11039 16.8785 3.35981 15.1317C1.60923 13.3848 1.60923 10.5526 3.35981 8.80578Z",fill:Ep,stroke:Cp,strokeWidth:1.4}),(0,b.createElement)("path",{d:"M22.2987 15.1942C20.5481 16.9411 17.7099 16.9411 15.9593 15.1942L12.7896 12.0313L15.9593 8.86831C17.7099 7.12146 20.5481 7.12146 22.2987 8.86831C24.0493 10.6152 24.0493 13.4474 22.2987 15.1942Z",fill:Ep,stroke:Cp,strokeWidth:1.4}))),loop_wrapper:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 25 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7.21733 14.2448C5.93905 14.2448 5.29991 14.2448 4.82713 13.9634C4.54096 13.7931 4.30185 13.554 4.13151 13.2678C3.8501 12.795 3.8501 12.1559 3.8501 10.8776V7.02072C3.8501 5.1351 3.8501 4.19229 4.43588 3.60651C5.02167 3.02072 5.96448 3.02072 7.8501 3.02072H11.707C12.9852 3.02072 13.6244 3.02072 14.0972 3.30214C14.3833 3.47248 14.6224 3.71158 14.7928 3.99775C15.0742 4.47053 15.0742 5.10967 15.0742 6.38795M14.584 20.9793H17.8081C19.6937 20.9793 20.6365 20.9793 21.2223 20.3935C21.8081 19.8077 21.8081 18.8649 21.8081 16.9793V13.7552C21.8081 11.8696 21.8081 10.9267 21.2223 10.341C20.6365 9.75517 19.6937 9.75517 17.8081 9.75517H14.584C12.6984 9.75517 11.7556 9.75517 11.1698 10.341C10.584 10.9267 10.584 11.8696 10.584 13.7552V16.9793C10.584 18.8649 10.584 19.8077 11.1698 20.3935C11.7556 20.9793 12.6984 20.9793 14.584 20.9793Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),popup_builder:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 25 25",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M7.18382 7.82229C7.1591 7.79676 6.49721 7.78045 5.55331 7.77579C4.45592 7.77038 3.57129 8.66533 3.57129 9.76272V20.3833C3.57129 21.4879 4.46672 22.3833 5.57129 22.3833H15.7129C16.8175 22.3833 17.7129 21.4879 17.7129 20.3833V17.8467M11.5659 7.36682H17.0951C17.6474 7.36682 18.0951 7.81454 18.0951 8.36682V13.8366M7.62451 5.35669V15.8467C7.62451 16.9513 8.51994 17.8467 9.62451 17.8467H20.0361C21.1407 17.8467 22.0361 16.9513 22.0361 15.8467V5.35669C22.0361 4.25212 21.1407 3.35669 20.0361 3.35669H9.62451C8.51994 3.35669 7.62451 4.25212 7.62451 5.35669Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round"})),post_title:(0,b.createElement)("svg",{width:20,height:20},(0,b.createElement)("path",{fill:xp,d:"M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM1.381 7.588h4.825v4.825h-4.825v-4.825zM7.588 7.588h4.825v4.825h-4.825v-4.825zM12.413 1.381v4.825h-4.825v-4.825h4.825zM6.206 1.381v4.825h-4.825v-4.825h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-4.826h4.825v4.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z"})),quote_1:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M15.581 10.226h-15.162c-0.233 0-0.419 0.37-0.419 0.826 0 0.458 0.186 0.828 0.419 0.828h15.161c0.233 0 0.419-0.37 0.419-0.828 0.001-0.455-0.186-0.826-0.418-0.826v0z"}),(0,b.createElement)("path",{d:"M15.581 14.285h-15.162c-0.233 0-0.419 0.373-0.419 0.827 0 0.458 0.186 0.826 0.419 0.826h15.161c0.233 0 0.419-0.369 0.419-0.826 0.001-0.454-0.186-0.827-0.418-0.827v0z"}),(0,b.createElement)("path",{d:"M15.581 18.346h-15.162c-0.233 0-0.419 0.37-0.419 0.826 0 0.459 0.186 0.828 0.419 0.828h15.161c0.233 0 0.419-0.369 0.419-0.828 0.001-0.455-0.186-0.826-0.418-0.826v0z"}),(0,b.createElement)("path",{d:"M9.126 0.595c-0.46 0.465-0.974 1.35-0.835 3.042 0.081 1.319 0.666 3.29 3.048 5.216 0.112 0.090 0.241 0.136 0.38 0.136 0.183 0 0.362-0.086 0.487-0.251 0.214-0.283 0.164-0.683-0.113-0.902-1.935-1.566-2.458-3.105-2.551-4.154 0.274 0.156 0.582 0.258 0.913 0.258 1.045 0 1.89-0.886 1.89-1.972 0-1.088-0.846-1.966-1.89-1.966-0.233 0-0.451 0.062-0.657 0.143l0.004-0.011-0.218 0.101-0.018 0.011-0.007 0.006-0.299 0.214-0.134 0.131z"}),(0,b.createElement)("path",{d:"M4.517 0.595c-0.465 0.465-0.974 1.35-0.841 3.042 0.085 1.319 0.671 3.29 3.049 5.216 0.116 0.090 0.245 0.136 0.383 0.136 0.178 0 0.366-0.086 0.487-0.251 0.214-0.283 0.165-0.683-0.108-0.902-1.939-1.566-2.467-3.105-2.56-4.154 0.278 0.156 0.584 0.258 0.92 0.258 1.046 0 1.885-0.886 1.885-1.972 0-1.088-0.845-1.966-1.885-1.966-0.236 0-0.447 0.062-0.657 0.143l0.010-0.011-0.218 0.101-0.022 0.011-0.009 0.006-0.305 0.214-0.129 0.13z"})),quote_2:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M4.599 6.686c-0.39 0.397-0.822 1.149-0.705 2.586 0.068 1.123 0.561 2.799 2.561 4.434 0.096 0.080 0.205 0.115 0.321 0.115 0.153 0 0.306-0.071 0.409-0.214 0.181-0.239 0.135-0.58-0.095-0.766-1.626-1.332-2.066-2.639-2.144-3.531 0.231 0.132 0.488 0.218 0.769 0.218 0.874 0 1.587-0.753 1.587-1.677s-0.711-1.672-1.587-1.672c-0.196 0-0.38 0.054-0.552 0.121l0.003-0.010-0.184 0.085-0.016 0.010-0.006 0.006-0.252 0.181-0.109 0.114z"}),(0,b.createElement)("path",{d:"M0.725 6.686c-0.389 0.397-0.821 1.149-0.706 2.586 0.068 1.123 0.562 2.799 2.56 4.434 0.094 0.077 0.204 0.114 0.322 0.114 0.151 0 0.31-0.073 0.409-0.213 0.177-0.239 0.136-0.582-0.090-0.767-1.63-1.332-2.072-2.639-2.149-3.531 0.23 0.132 0.486 0.218 0.772 0.218 0.879 0 1.583-0.753 1.583-1.677s-0.71-1.672-1.583-1.672c-0.199 0-0.378 0.054-0.554 0.121l0.008-0.010-0.184 0.085-0.018 0.010-0.009 0.006-0.253 0.182-0.108 0.114z"}),(0,b.createElement)("path",{d:"M19.25 6.929h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"}),(0,b.createElement)("path",{d:"M19.25 10.75h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"}),(0,b.createElement)("path",{d:"M19.25 14.571h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"})),quote_inline_icon:(0,b.createElement)("svg",{width:20,height:20,viewBox:"0 0 32 32"},(0,b.createElement)("path",{d:"M7.031 14c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7l-0.031-1c0-7.732 6.268-14 14-14v4c-2.671 0-5.182 1.040-7.071 2.929-0.364 0.364-0.695 0.751-0.995 1.157 0.357-0.056 0.724-0.086 1.097-0.086zM25.031 14c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7l-0.031-1c0-7.732 6.268-14 14-14v4c-2.671 0-5.182 1.040-7.071 2.929-0.364 0.364-0.695 0.751-0.995 1.157 0.358-0.056 0.724-0.086 1.097-0.086z"})),quote_tweet_icon:(0,b.createElement)("svg",{width:20,height:20,viewBox:"0 0 512 512"},(0,b.createElement)("path",{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})),at_the_rate:(0,b.createElement)("svg",{width:30,height:30,className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M5.605 17.2c0-2.131 0.499-4.074 1.499-5.829 1-1.754 2.395-3.136 4.19-4.15 1.794-1.013 3.81-1.52 6.046-1.52 2.712 0 4.901 0.773 6.562 2.323 1.662 1.549 2.493 3.589 2.493 6.118 0 2.051-0.542 3.786-1.626 5.202-1.088 1.418-2.304 2.125-3.656 2.125-0.781 0-1.355-0.232-1.717-0.696-0.365-0.462-0.533-1.037-0.506-1.726-1.006 1.614-2.378 2.422-4.11 2.422-1.39 0-2.507-0.539-3.347-1.619-0.842-1.077-1.142-2.442-0.904-4.088 0.237-1.65 0.946-2.982 2.125-4.002 1.179-1.021 2.509-1.53 3.992-1.53s2.638 0.518 3.467 1.558c0.829 1.040 1.122 2.322 0.883 3.843l-0.494 3.2c-0.094 0.739 0.165 1.11 0.77 1.11 0.77 0 1.502-0.56 2.205-1.678 0.701-1.12 1.054-2.493 1.054-4.122 0-2.106-0.656-3.787-1.966-5.046-1.312-1.258-3.133-1.886-5.462-1.886-2.794 0-5.098 0.96-6.91 2.88-1.814 1.92-2.722 4.29-2.722 7.109 0 2.382 0.738 4.227 2.214 5.533 1.477 1.302 3.459 1.989 5.947 2.056l-0.376 1.509c-2.862-0.069-5.184-0.899-6.971-2.494-1.787-1.594-2.68-3.794-2.68-6.602zM19.15 15.85c0.17-1.15-0.014-2.118-0.558-2.899-0.542-0.781-1.28-1.173-2.214-1.173-0.933 0-1.79 0.392-2.571 1.173s-1.259 1.749-1.43 2.899c-0.171 1.152 0.013 2.122 0.557 2.91 0.542 0.787 1.282 1.181 2.214 1.181s1.79-0.394 2.573-1.181c0.781-0.789 1.256-1.758 1.43-2.91z"})),top_align:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M1.5 0.438v2.125h17v-2.125h-17zM5.75 8.938h3.188v10.625h2.125v-10.625h3.187l-4.25-4.25-4.25 4.25z"})),middle_align:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M18.5 11.063v-2.125h-17v2.125h17z"}),(0,b.createElement)("path",{d:"M12.707 3.519l-2.707-2.707-2.707 2.707h2.030v4.368h1.354v-4.368h2.030z"}),(0,b.createElement)("path",{d:"M7.293 16.48l2.707 2.707 2.707-2.707h-2.030v-4.368h-1.354v4.368h-2.030z"})),bottom_align:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M18.5 20v-2.125h-17v2.125h17zM14.25 11.5h-3.187v-10.625h-2.125v10.625h-3.188l4.25 4.25 4.25-4.25z"})),carousel_left:(0,b.createElement)("svg",{width:20,height:20,viewBox:"0 0 256 512",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"})),carousel_right:(0,b.createElement)("svg",{width:20,height:20,viewBox:"0 0 256 512",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"})),top_margin:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:"#999",d:"M17 1c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17 0h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,b.createElement)("path",{fill:"#575E67",d:"M17 0.984h-14c-1.103 0-2 0.897-2 2v0.797h18v-0.797c0-1.103-0.897-2-2-2z"})),bottom_margin:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:"#999",d:"M17 1c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17 0h-14c-1.657 0-3 1.343-3 3v14c0 1.656 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,b.createElement)("path",{fill:"#575E67",d:"M3 19.016h14c1.103 0 2-0.896 2-2v-0.797h-18v0.797c0 1.103 0.897 2 2 2z"})),left_margin:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.656 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,b.createElement)("path",{fill:"#575E67",d:"M0.984 2.999v14c0 1.103 0.896 2 2 2h0.797v-18h-0.797c-1.104 0-2 0.897-2 2z"})),right_margin:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.656 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,b.createElement)("path",{fill:"#575E67",d:"M19.015 16.999v-14c0-1.103-0.896-2-2-2h-0.797v18h0.797c1.104 0 2-0.896 2-2z"})),vertical_spacing:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.656-1.343-3-3-3v0z"}),(0,b.createElement)("path",{fill:"#575E67",d:"M17 0.983h-14c-1.103 0-2 0.896-2 2v0.797h18v-0.797c0-1.103-0.896-2-2-2z"}),(0,b.createElement)("path",{fill:"#575E67",d:"M3 19.031h14c1.103 0 2-0.896 2-2v-0.797h-18v0.797c0 1.104 0.896 2 2 2z"})),horizontal_spacing:(0,b.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.656 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,b.createElement)("path",{fill:"#575E67",d:"M19.016 16.999v-14c0-1.103-0.896-2-2-2h-0.797v18h0.797c1.103 0 2-0.896 2-2z"}),(0,b.createElement)("path",{fill:"#575E67",d:"M0.968 2.999v14c0 1.103 0.896 2 2 2h0.797v-18h-0.797c-1.104 0-2 0.897-2 2z"})),form1:(0,b.createElement)("svg",{width:20,height:20,role:"img",viewBox:"0 0 58 58",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,d:"M41.5,2.1H7.8C4,2.1,1,5.2,1,8.9v40.5c0,3.7,3,6.8,6.8,6.8h18.6v-3.4H7.8c-1.9,0-3.4-1.5-3.4-3.4V8.9c0-1.9,1.5-3.4,3.4-3.4h33.8c1.9,0,3.4,1.5,3.4,3.4v19.8l3.4-3.4V8.9C48.3,5.2,45.2,2.1,41.5,2.1z"}),(0,b.createElement)("path",{fill:xp,d:"M38.1,15.6h-27v-3.4h27V15.6z"}),(0,b.createElement)("path",{fill:xp,d:"M38.1,23h-27v-3.4h27V23z"}),(0,b.createElement)("path",{fill:xp,d:"M35.2,29.6H13.5v-2.7h21.7V29.6z"}),(0,b.createElement)("path",{fill:xp,d:"M35.2,35.4H13.5v-2.7h21.7V35.4z"}),(0,b.createElement)("path",{fill:xp,d:"M35.2,27.8v6.3h-2.7v-6.3H35.2z"}),(0,b.createElement)("path",{fill:xp,d:"M16.2,27.9v6.3h-2.7v-6.3H16.2z"}),(0,b.createElement)("path",{fill:xp,d:"M43.4,31.9c-0.7,0.4-1.2,1-1.4,1.8c-0.9-0.3-1.9-0.1-2.7,0.3c-0.7,0.4-1.2,1-1.4,1.8c-0.9-0.3-1.9-0.1-2.7,0.3c-0.4,0.4-0.8,0.7-1.1,1.3L31,34c-1.1-1.3-3-1.5-4.4-0.7c-0.8,0.6-1.4,1.4-1.5,2.4c-0.1,1,0.1,2,0.8,2.8l4,4.5c-0.7,0.3-1.2,0.6-1.8,1.2c-0.4,0.5-0.9,1.2-1,1.9c0,0.3,0.1,0.6,0.3,0.9l5.8,6.5c4.3,4.8,11.6,5.5,16.5,1.6c0.2-0.1,0.3-0.2,0.4-0.4c0.1-0.1,0.3-0.2,0.3-0.3c5-4.7,5.2-12.9,0.4-18.3l-3-3.4C46.7,31.4,44.8,31.1,43.4,31.9z M49.1,37.5c4,4.5,3.8,11.2-0.3,15.2c-0.3,0.2-0.4,0.4-0.7,0.6c-3.8,3.1-9.9,2.4-13.3-1.4l-5.3-6c0-0.2,0.1-0.2,0.2-0.3c0.3-0.3,0.7-0.5,1.3-0.6c0.5,0,0.9,0.2,1.2,0.6l4.1,4.6c0.4,0.5,1.1,0.5,1.6,0.1s0.5-1.1,0.1-1.6l-4.1-4.6l-1.1-1.3l-5.2-5.9c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.3-0.5,0.5-0.8c0.4-0.2,1.1-0.1,1.5,0.3l5.2,5.8l1.5,1.7c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-1.5-1.7c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8c0.5-0.3,1.1-0.1,1.5,0.3l0.7,0.8l0.7,0.8c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-0.7-0.8c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8c0.5-0.3,1.1-0.1,1.5,0.3l0.7,0.8l0.7,0.8c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-0.7-0.8c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8l0,0c0.5-0.3,1.1-0.1,1.5,0.3L49.1,37.5L49.1,37.5z"})),form2:(0,b.createElement)("svg",{width:20,height:20,role:"img",viewBox:"0 0 58 58",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,d:"M44.4,5.6H10.9c-4.1,0-7.4,3.3-7.4,7.4v33.5c0,4.1,3.3,7.4,7.4,7.4h15.4l3.7-1.9l-3.7-1.9H10.9c-2.1,0-3.7-1.7-3.7-3.7V13.1c0-2.1,1.7-3.7,3.7-3.7h33.5c2.1,0,3.7,1.7,3.7,3.7v30l0.1-0.1c0.4-2.3,1.7-4.4,3.6-5.7V13.1C51.9,9,48.5,5.6,44.4,5.6z"}),(0,b.createElement)("path",{fill:xp,d:"M14.7,19.6h26.1v-3.7H14.7V19.6z"}),(0,b.createElement)("path",{fill:xp,d:"M14.7,27h26.1v-3.7H14.7V27z"}),(0,b.createElement)("path",{fill:xp,d:"M14.7,34.5h26.1v-3.7H14.7V34.5z"}),(0,b.createElement)("path",{fill:xp,d:"M56.2,45l0-3.7c0-1-0.4-2-1.1-2.6c-0.7-0.7-1.6-1.1-2.6-1.1l-22.6,0.2c-1,0-4.6,0.5-5.3,1.1l-7.1,4.6l7.2,4.4c0,0,4.2,1,5.3,1l22.6-0.2C54.5,48.7,56.2,47,56.2,45z M29.9,47.1c-0.3,0-1.2-0.2-2.2-0.4l-0.1-6.8c0.8-0.1,1.7-0.2,2.2-0.2l17-0.2l0.1,7.4L29.9,47.1z"})),form3:(0,b.createElement)("svg",{width:20,height:20,role:"img",viewBox:"0 0 58 58",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,d:"M41.5,46.1h-27v-3.4h27V46.1z"}),(0,b.createElement)("path",{fill:xp,d:"M20.7,26.3l10.1,10.1l21.2-21.2L41.8,5.1L20.7,26.3z M44.2,12.8c0.7,0.7,0.7,1.8,0,2.5L32,27.6c-0.3,0.4-0.8,0.5-1.3,0.5c-0.5,0-0.9-0.2-1.3-0.5c-0.7-0.7-0.7-1.8,0-2.5l12.3-12.3C42.4,12.1,43.5,12.1,44.2,12.8z"}),(0,b.createElement)("path",{fill:xp,d:"M56,5.8l-4.8-4.8c-1.4-1.4-3.9-1.4-5.3,0l-1.6,1.6l10.1,10.1l1.5-1.5C57.4,9.7,57.4,7.3,56,5.8z"}),(0,b.createElement)("path",{fill:xp,d:"M46.9,56.3H4.6c-1,0-1.8-0.8-1.8-1.8V9.7c0-1,0.8-1.8,1.8-1.8H33c1,0,1.8,0.8,1.8,1.8c0,1-0.8,1.8-1.8,1.8H6.5v41.1h40.4c1.4,0,2.6-1.2,2.6-2.6V26.9c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8V50C53.2,53.5,50.4,56.3,46.9,56.3z"})),close:(0,b.createElement)("svg",{width:8,height:8,viewBox:"0 0 6 6",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,d:"M5.91683 0.5875L5.32933 0L3.00016 2.32917L0.670996 0L0.0834961 0.5875L2.41266 2.91667L0.0834961 5.24583L0.670996 5.83333L3.00016 3.50417L5.32933 5.83333L5.91683 5.24583L3.58766 2.91667L5.91683 0.5875Z"})),add:(0,b.createElement)("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,d:"M4.35613 0.231675L3.52528 0.231675V3.52561L0.231343 3.52561V4.35647L3.52528 4.35647V7.65041L4.35613 7.65041L4.35613 4.35647H7.65007V3.52561H4.35613L4.35613 0.231675Z"})),video_placeholder:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M14.7519 11.1679L11.5547 9.03647C10.8901 8.59343 10 9.06982 10 9.86852V14.1315C10 14.9302 10.8901 15.4066 11.5547 14.9635L14.7519 12.8321C15.3457 12.4362 15.3457 11.5638 14.7519 11.1679Z",stroke:xp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:xp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),gallery_placeholder:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M6 14.6667L9.68329 10.9834C10.3857 10.281 11.5427 10.345 12.1632 11.1207L13.3242 12.5719C13.8866 13.2749 14.9055 13.4042 15.6257 12.8641L16.5103 12.2006C17.1738 11.703 18.1023 11.769 18.6888 12.3554L21 14.6667M6 6H4.66667C3.74619 6 3 6.74619 3 7.66667V19.3333C3 20.2538 3.74619 21 4.66667 21H16.3333C17.2538 21 18 20.2538 18 19.3333V18M17.6667 7.16667C17.6667 7.6269 17.2936 8 16.8333 8C16.3731 8 16 7.6269 16 7.16667C16 6.70643 16.3731 6.33333 16.8333 6.33333C17.2936 6.33333 17.6667 6.70643 17.6667 7.16667ZM7.66667 18H19.3333C20.2538 18 21 17.2538 21 16.3333V4.66667C21 3.74619 20.2538 3 19.3333 3H7.66667C6.74619 3 6 3.74619 6 4.66667V16.3333C6 17.2538 6.74619 18 7.66667 18Z",fill:Ep,stroke:xp,strokeWidth:1.4})),bg_color:(0,b.createElement)("svg",{width:11,height:10,viewBox:"0 0 11 10",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,d:"M10.6927 1.08247C10.6927 1.08247 10.8502 0.615805 10.5119 0.289139C10.2027 -0.0141947 9.80023 0.149139 9.80023 0.149139C9.4444 0.324139 6.44023 2.17331 5.32606 3.39831C4.8244 3.95831 4.12439 5.60914 4.69023 6.20997C5.2269 6.78164 7.00023 6.11081 7.4844 5.62664C8.68606 4.42497 10.5236 1.44414 10.6927 1.08247ZM0.816895 9.29581C2.19939 8.38581 1.66856 7.30664 2.70106 6.58914C3.24356 6.20997 3.99606 6.22747 4.49773 6.75831C4.86523 7.14914 4.9644 8.25747 4.4044 8.77664C3.48856 9.62247 2.07106 9.68081 0.816895 9.29581Z"})),bg_gradient:(0,b.createElement)("svg",{width:12,height:12,viewBox:"0 0 10 10",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,fillRule:"evenodd",clipRule:"evenodd",d:"M1.11111 1.11111V8.88889H8.88889V1.11111H1.11111ZM0.555556 0C0.248731 0 0 0.248731 0 0.555556V9.44444C0 9.75127 0.248731 10 0.555556 10H9.44444C9.75127 10 10 9.75127 10 9.44444V0.555556C10 0.248731 9.75127 0 9.44444 0H0.555556Z"}),(0,b.createElement)("path",{fill:xp,d:"M1.66667 1.66667H7.77778L1.66667 7.77778V1.66667Z"})),bg_image:(0,b.createElement)("svg",{width:14,height:14,viewBox:"0 0 14 14",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,d:"M1.5752 0.699951H12.4252C12.9082 0.699951 13.3002 1.09195 13.3002 1.57495V12.425C13.3002 12.908 12.9082 13.3 12.4252 13.3H1.5752C1.0922 13.3 0.700195 12.908 0.700195 12.425V1.57495C0.700195 1.09195 1.0922 0.699951 1.5752 0.699951ZM11.9002 11.9V2.09995H2.1002V11.9H11.9002ZM7.0002 4.19995C7.0002 3.42995 6.3702 2.79995 5.6002 2.79995C4.8302 2.79995 4.2002 3.42995 4.2002 4.19995C4.2002 4.96995 4.8302 5.59995 5.6002 5.59995C6.3702 5.59995 7.0002 4.96995 7.0002 4.19995ZM9.1002 7.69995C9.1002 7.69995 9.1002 3.49995 11.2002 3.49995V10.5C11.2002 10.885 10.8852 11.2 10.5002 11.2H3.5002C3.1152 11.2 2.8002 10.885 2.8002 10.5V5.59995C4.2002 5.59995 4.9002 8.39995 4.9002 8.39995C4.9002 8.39995 5.6002 6.29995 7.0002 6.29995C8.4002 6.29995 9.1002 7.69995 9.1002 7.69995Z"})),bg_video:(0,b.createElement)("svg",{width:14,height:8,viewBox:"0 0 14 8",className:"srfm-editor-icons"},(0,b.createElement)("path",{fill:xp,d:"M8.4002 6.1V1.9C8.4002 1.13 7.7702 0.5 7.0002 0.5H2.1002C1.3302 0.5 0.700195 1.13 0.700195 1.9V6.1C0.700195 6.87 1.3302 7.5 2.1002 7.5H7.0002C7.7702 7.5 8.4002 6.87 8.4002 6.1ZM9.1002 4.35L13.3002 7.5V0.5L9.1002 3.65V4.35Z"})),dynamic_content:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"red",className:"srfm-editor-icons"},(0,b.createElement)("path",{stoke:xp,strokeWidth:1.4,d:"M4 7V17C4 19.2091 7.58172 21 12 21C16.4183 21 20 19.2091 20 17V7M4 7C4 9.20914 7.58172 11 12 11C16.4183 11 20 9.20914 20 7M4 7C4 4.79086 7.58172 3 12 3C16.4183 3 20 4.79086 20 7M20 12C20 14.2091 16.4183 16 12 16C7.58172 16 4 14.2091 4 12"})),separator:(0,b.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{stokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round",fill:Ep,stroke:Cp,d:"M4 12H20M14 17L12 19L10 17M14 7L12 5L10 7"})),icon:(0,b.createElement)("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",className:"srfm-editor-icons"},(0,b.createElement)("path",{d:"M21 12.6987C21 17.6693 16.9706 21.6987 12 21.6987C7.02944 21.6987 3 17.6693 3 12.6987C3 7.72817 7.02944 3.69873 12 3.69873C16.9706 3.69873 21 7.72817 21 12.6987Z",fill:Ep,stroke:Cp,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,b.createElement)("path",{d:"M11.3217 9.12032C11.5991 8.5582 12.4007 8.5582 12.6781 9.12032L13.3798 10.5422C13.49 10.7654 13.7029 10.9201 13.9493 10.9559L15.5184 11.1839C16.1387 11.2741 16.3864 12.0364 15.9375 12.4739L14.8021 13.5807C14.6239 13.7544 14.5425 14.0048 14.5846 14.2501L14.8526 15.8129C14.9586 16.4307 14.3101 16.9019 13.7553 16.6102L12.3518 15.8723C12.1315 15.7565 11.8683 15.7565 11.6479 15.8723L10.2445 16.6102C9.68964 16.9019 9.04116 16.4307 9.14712 15.8129L9.41516 14.2501C9.45724 14.0048 9.3759 13.7544 9.19765 13.5807L8.06223 12.4739C7.61335 12.0364 7.86105 11.2741 8.48138 11.1839L10.0505 10.9559C10.2968 10.9201 10.5098 10.7654 10.6199 10.5422L11.3217 9.12032Z",fill:Ep,stroke:Cp,strokeWidth:1.4}))};var kp=a(89194),Op={};kp.A&&kp.A.locals&&(Op.locals=kp.A.locals);var Rp,Ap=0,Tp={attributes:{id:"sureforms-editor-styles"}};Tp.setAttributes=he(),Tp.insert=fe().bind(null,"head"),Tp.domAPI=ue(),Tp.insertStyleElement=ve(),Op.use=function(e){return Tp.options=e||{},Ap++||(Rp=se()(kp.A,Tp)),Op},Op.unuse=function(){Ap>0&&! --Ap&&(Rp(),Rp=null)};const Mp=Op;function Np(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Pp=function(e){var t=e.isOpen,r=e.setOpen,n=e.onConfirm,o=e.title,i=e.description,a=e.confirmLabel,l=void 0===a?(0,y.__)("Confirm","sureforms"):a,s=e.cancelLabel,c=void 0===s?(0,y.__)("Cancel","sureforms"):s,u=e.processingLabel,d=void 0===u?(0,y.__)("Processing…","sureforms"):u,f=e.icon,p=void 0===f?"":f,h=e.executable,m=void 0!==h&&h;(0,b.useLayoutEffect)((function(){return Mp.use(),function(){Mp.unuse()}}),[]);var g=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Np(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Np(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.")}()}((0,b.useState)(!1),2),_=g[0],w=g[1],C=function(){r(!1),w(!1)};return React.createElement(React.Fragment,null,t&&React.createElement(v.Modal,{onRequestClose:C,className:"srfm-confirm-popup-wrapper",overlayClassName:"srfm-confirm-popup-overlay"},React.createElement("div",{className:"srfm-confirm-popup-icon"},""!==p?function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=au(e),0!==srfm_blocks_info.font_awesome_5_polyfill.length&&((r=srfm_blocks_info.srfm_svg_icons[e])||(r=srfm_blocks_info.srfm_svg_icons[null===(n=srfm_blocks_info.font_awesome_5_polyfill)||void 0===n?void 0:n[e]])),!r)return null;var i=null!==(t=r.svg)&&void 0!==t&&t.brands?r.svg.brands:r.svg.solid,a="0 0 ".concat(i.width," ").concat(i.height),l=i.path,s=null;switch(e){case"align-center":s={fillRule:"evenodd",clipRule:"evenodd",d:"M4 2H14V0H4V2ZM0 7H18V5H0V7ZM4 12H14V10H4V12Z"};break;case"align-left":s={fillRule:"evenodd",clipRule:"evenodd",d:"M10 2H0V0H10V2ZM18 7H0V5H18V7ZM10 12H0V10H10V12Z"};break;case"align-right":s={fillRule:"evenodd",clipRule:"evenodd",d:"M8 2H18V0H8V2ZM0 7H18V5H0V7ZM8 12H18V10H8V12Z"};break;case"align-justify":s={d:"M0 0H18V2H0V0ZM0 5.00001H18V7.00001H0V5.00001ZM0 10H18V12H0V10Z"}}return s?React.createElement("svg",{width:"18",height:"12",viewBox:"0 0 18 12",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",s)):o&&"not_set"!==o?React.createElement("svg",{width:"20",height:"20",xmlns:"https://www.w3.org/2000/svg",viewBox:a},React.createElement("path",{d:l})):React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",viewBox:a},React.createElement("path",{d:l}))}(p):React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"}))),React.createElement("div",{className:"srfm-confirm-popup-content"},React.createElement("div",{className:"srfm-confirm-popup-text"},React.createElement("span",{className:"srfm-confirm-popup-title"},o),React.createElement("span",{className:"srfm-confirm-popup-description"},i)),React.createElement("div",{className:"srfm-confirm-popup-controls"},!1===_?React.createElement(React.Fragment,null,React.createElement(v.Button,{className:"srfm-confirm-popup-buttons srfm-popup-confirmation-button",onClick:function(){w(!0),m?n(m):n()}},l),React.createElement(v.Button,{className:"srfm-confirm-popup-buttons srfm-popup-cancellation-button",onClick:C},c)):React.createElement(v.Button,{isBusy:!0,className:"srfm-confirm-popup-buttons srfm-popup-confirmation-button"},d)))))};Pp.defaultProps={};const Ip=Pp;function Lp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jp(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 jp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Dp=function(e){var t=Lp((0,b.useState)(null),2),r=t[0],n=t[1],o=(0,b.useRef)(null),i=(0,P.useSelect)((function(e){return e("core/block-editor").getSelectedBlock()}),[]),a=Se(),l=null==i?void 0:i.name.split("/").pop();(0,b.useEffect)((function(){n(zt(o))}),[l]);var s,c,u,d=Lp((0,b.useState)(!1),2),f=d[0],p=d[1],h=e.onModalClose,m=e.onSelectImage,_=e.backgroundImage,w=e.onRemoveImage,x=e.slug,E=void 0===x?"image":x,S=e.label,k=void 0===S?(0,y.__)("Image","sureforms"):S,O=e.disableLabel,R=void 0!==O&&O,A=e.disableRemove,T=void 0!==A&&A,M=e.allow,N=void 0===M?["image"]:M,I=e.disableDynamicContent,L=void 0!==I&&I,j=e.help,D=void 0!==j&&j,B=e.addIcon,H=void 0===B?null:B;switch(E){case"video":c=(0,y.__)("Select Video","sureforms"),u=(0,y.__)("Change Video","sureforms"),s=Sp.video_placeholder;break;case"lottie":c=(0,y.__)("Select Lottie Animation","sureforms"),u=(0,y.__)("Change Lottie Animation","sureforms"),s=Sp.lottie;break;case"svg":c=(0,y.__)("Upload SVG","sureforms"),u=(0,y.__)("Change SVG","sureforms");break;default:c=(0,y.__)("Select Image","sureforms"),u=(0,y.__)("Change Image","sureforms")}var q=L?null:(0,z.applyFilters)("srfm.registerImageExtender","",null==i?void 0:i.name,m),F=L?null:(0,z.applyFilters)("srfm.registerImageLinkExtender","",null==i?void 0:i.name,"bgImageLink","url"),V=function(e){var t=new window.FormData;t.append("action","srfm_svg_confirmation"),t.append("svg_nonce",srfm_blocks_info.srfm_svg_confirmation_nonce),t.append("confirmation","yes"),C()({url:srfm_blocks_info.ajax_url,method:"POST",body:t}).then((function(t){t.success&&(a.setItem("srfmSvgConfirmation",JSON.stringify("yes")),e())}))},G=function(e){var t=Se("srfmSvgConfirmation");"svg"===E&&"yes"!==t?p(!0):e()},W=function(e){var t=Sp[e];return H&&"add"===e&&(t=H),React.createElement("div",{className:"srfm-media-control__button srfm-media-control__button--".concat(e)},t)},U=Ht(null==e?void 0:e.label),Z=(0,z.applyFilters)("srfm.".concat(l,".").concat(r,".").concat(U,".before"),"",l),K=(0,z.applyFilters)("srfm.".concat(l,".").concat(r,".").concat(U),"",l);return React.createElement("div",{ref:o,className:"components-base-control"},Z,React.createElement(v.BaseControl,{className:"srfm-media-control",id:"srfm-option-selector-".concat(E),label:k,hideLabelFromVision:R},function(){var e,t;if(L)return!0;var r=null==i||null===(e=i.attributes)||void 0===e?void 0:e.dynamicContent;return!r||!0!==(null==r||null===(t=r.bgImage)||void 0===t?void 0:t.enable)}()?React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-media-control__wrapper",style:{backgroundImage:!s&&_&&!(null!=_&&_.svg)&&'url("'.concat(function(e){var t=e;switch(/(?:\.([^.]+))?$/.exec(String(t))[1]){case"json":case"avi":case"mpg":case"mp4":case"m4v":case"mov":case"ogv":case"vtt":case"wmv":case"3gp":case"3g2":t=""}return t}(_),'")')}},s&&_&&React.createElement("div",{className:"srfm-media-control__icon srfm-media-control__icon--stroke"},s),(null==_?void 0:_.svg)&&React.createElement("div",{className:"srfm-media-control__icon srfm-media-control__icon--stroke",dangerouslySetInnerHTML:{__html:_.svg}}),React.createElement(g.MediaUpload,{title:c,onSelect:m,allowedTypes:N,value:_,render:function(e){return t=e.open,r=_?"replace":"add",React.createElement(React.Fragment,null,"add"===r&&React.createElement("button",{className:"srfm-media-control__clickable srfm-media-control__clickable--".concat(r),onClick:function(){return G(t)}},W(r)),React.createElement("div",{className:"srfm-media-control__footer"},React.createElement("button",{className:"srfm-control-label",onClick:function(){return G(t)}},u),q),"svg"===E&&React.createElement(Ip,{isOpen:f,setOpen:p,onConfirm:V,title:(0,y.__)("Upload SVG?","sureforms"),description:(0,y.__)("Upload SVG can be potentially risky. Are you sure?","sureforms"),confirmLabel:(0,y.__)("Upload Anyway","sureforms"),cancelLabel:(0,y.__)("Cancel","sureforms"),executable:t}));var t,r},onClose:h}),!T&&_&&React.createElement("button",{className:"srfm-media-control__clickable srfm-media-control__clickable--close",onClick:w},W("close"))),React.createElement(Vt,{text:D})):q),F,K)};function Bp(e){return Bp="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},Bp(e)}function Hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(r),!0).forEach((function(t){qp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qp(e,t,r){return(t=function(e){var t=function(e){if("object"!=Bp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Bp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Vp(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 Vp(e,t){if(e){if("string"==typeof e)return Gp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gp(e,t):void 0}}function Gp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Wp=function(e){var t=e.options,r=e.titleKey,n=e.closeModal,o=e.insertOptions,i=(0,b.useMemo)((function(){return t.map((function(e){var t;return null==e||null===(t=e[r])||void 0===t?void 0:t.trim()})).join("\n")}),[t,r]),a=(0,b.useMemo)((function(){return jr(Ir.Tr)}),[]),l=(0,b.useMemo)((function(){return jr(Ir.BX)}),[]),s=Fp((0,b.useState)(i),2),c=s[0],u=s[1],d=Fp((0,b.useState)({}),2),f=d[0],p=d[1],h=(0,b.useRef)(null);return(0,b.useEffect)((function(){if(null!=h&&h.current){var e=h.current.offsetHeight;p({paddingTop:"".concat(e+24,"px")})}}),[]),React.createElement(v.Modal,{onRequestClose:n,title:(0,y.__)("Bulk Add","sureforms"),className:"srfm-bulk-edit-modal",isFullScreen:!1},React.createElement("div",{className:"srfm-modal-header",ref:h},React.createElement("div",{className:"srfm-modal-header-content"},React.createElement("div",{className:"srfm-modal-logo"},a),React.createElement("div",{className:"srfm-modal-title"},React.createElement("h1",null,(0,y.__)("Bulk Add Options","sureforms")))),React.createElement("div",{className:"srfm-modal-header-close-icon",onClick:n},l)),React.createElement("div",{className:"srfm-modal-body",style:f},React.createElement("div",{className:"srfm-modal-body-content"},React.createElement("p",{className:"srfm-modal-help-text"},(0,y.__)("Enter each option on a new line.","sureforms")),React.createElement("textarea",{onChange:function(e){_r(e.target.value)||u(e.target.value)},value:c,className:"srfm-bulk-edit-textarea"}),React.createElement("div",{className:"srfm-body-footer"},React.createElement(v.Button,{isSecondary:!0,onClick:n,className:"srfm-cancel-button"},(0,y.__)("Cancel","sureforms")),React.createElement(v.Button,{isPrimary:!0,onClick:function(){var e,n=function(e){if(Array.isArray(e))return Gp(e)}(e=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vp(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.")}(),i=c.split("\n").reduce((function(e,t){if(""===(t=t.trim()))return e;var o=n.findIndex((function(e){var n;return(null==e||null===(n=e[r])||void 0===n?void 0:n.trim())===t}));if(o>-1){var i=zp({},n[o]);e.push(zp({},i)),n.splice(o,1)}else e.push(qp({},r,t));return e}),[]);o(i)},className:"srfm-insert-button"},(0,y.__)("Insert Options","sureforms"))))))},Up=function(e){var t=e.options,r=e.titleKey,n=e.insertOptions,o=Fp((0,b.useState)(!1),2),i=o[0],a=o[1],l=function(){return a(!1)};return React.createElement(React.Fragment,null,React.createElement(v.Button,{className:"sureforms-add-bulk-option-button",variant:"secondary",onClick:function(){a(!0)}},(0,y.__)("Bulk Add","sureforms")),i&&React.createElement(Wp,{closeModal:l,titleKey:r,options:t,insertOptions:function(e){n(e,l)}}))};function Zp(e){return Zp="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},Zp(e)}function Kp(){return Kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kp.apply(null,arguments)}function $p(e){return function(e){if(Array.isArray(e))return th(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eh(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 Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(r),!0).forEach((function(t){Jp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jp(e,t,r){return(t=function(e){var t=function(e){if("object"!=Zp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Zp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||eh(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 eh(e,t){if(e){if("string"==typeof e)return th(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?th(e,t):void 0}}function th(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const rh=(0,fn.compose)(dn)((function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,o=e.clientId,i=t.required,a=t.options,l=t.choiceWidth,s=t.singleSelection,c=t.help,u=t.block_id,d=t.errorMsg,f=t.formId,p=t.preview,h=t.verticalLayout,m=t.optionType,_=t.minValue,w=t.maxValue,C=Gr(o),x=Qp((0,b.useState)(),2),E=x[0],S=x[1],k=Qp((0,b.useState)(!1),2),O=k[0],R=k[1],A=(0,g.useBlockProps)(),T=function(e){var t=a.map((function(t,r){return e===r&&(a.splice(e,1),t={options:a}),t}));r({deleteOptions:t})},M=function(e,t){var n=a.map((function(r,n){return t===n&&(r=Xp(Xp({},r),e)),r}));r({options:n})};function N(e,t){if(""!==e){if(!_r(e)){var n=a.map((function(r,n){return t===n&&(r=Xp(Xp({},r),{optionTitle:e})),r}));r({options:n})}}else T(t)}var P=function(e){r({options:[].concat($p(a),[{optionTitle:e}])}),S("")};(0,b.useEffect)((function(){f!==C&&r({formId:C})}),[f,r,C]);var I=gr("srfm_multi_choice_block_required_text",d),L=I.currentMessage,j=I.setCurrentMessage;if(p){var D=srfm_fields_preview.multi_choice_preview;return React.createElement(H,{fieldName:D})}var B=!s&&a.length>1&&React.createElement(React.Fragment,null,React.createElement(ro,{label:(0,y.__)("Minimum Value","sureforms"),displayUnit:!1,data:{value:_,label:"minValue"},min:1,max:(w||a.length)-1,value:_,onChange:function(e){e>=w?(R(!0),r({minValue:0})):(R(!1),r({minValue:e}))},showControlHeader:!1}),React.createElement(ro,{label:(0,y.__)("Maximum Value","sureforms"),displayUnit:!1,data:{value:w,label:"maxValue"},min:_+1||1,max:a.length,value:w,onChange:function(e){e<=_?(R(!0),r({maxValue:Number(_)+1})):(R(!1),r({maxValue:e}))},showControlHeader:!1}),O&&React.createElement("p",{className:"srfm-min-max-error-styles"},(0,y.__)("Please check the Minimum and Maximum value","sureforms")),React.createElement("p",{className:"components-base-control__help"},(0,y.__)("Note: Maximum value should always be greater than minimum value","sureforms"))),q=function(t){return t.map((function(t,r){return React.createElement(tu,{key:r,draggableId:"draggable-"+r,index:r},(function(n){return React.createElement("div",Kp({ref:n.innerRef,className:"srfm-option-outer-wrapper"},n.draggableProps),function(e,t){return(0,z.applyFilters)("srfm.blocks.multichoice.options.enhance",e,t)}(function(e,t,r){return React.createElement(React.Fragment,null,React.createElement("div",null,React.createElement("span",t.dragHandleProps,React.createElement(ae,{style:{width:"20px",height:"20px"}})),React.createElement("div",null,React.createElement(Vr,{showHeaderControls:!1,key:r,value:e.optionTitle,data:{value:e.optionTitle,label:"option"},onChange:function(e){return N(e,r)}})),"icon"===m&&React.createElement("div",{className:"srfm-icon-picker"},React.createElement(_p,{label:"",value:e.icon,onChange:function(e){return M({icon:e},r)},addIcon:jr(vo.custom_plus_icon)})),"image"===m&&React.createElement("div",{className:"srfm-media-picker"},React.createElement(Dp,{onSelectImage:function(e){var t,n,o;n=r,o=null!=(t=e)&&t.url?t.url:"",M({image:o},n)},backgroundImage:e.image,onRemoveImage:function(){M({image:""},r)},disableLabel:!0})),React.createElement(v.Button,{icon:"trash",onClick:function(){return T(r)}})))}(t,n,r),{props:e,option:t,param:n,i:r,editOption:N,changeOption:M,deleteOption:T}))}))}))},F=React.createElement("div",{style:{marginBottom:"8px"}},a.length>0&&React.createElement(React.Fragment,null,React.createElement(yu,{setAttributes:r,label:(0,y.__)("Option Type","sureforms"),data:{value:m,label:"optionType"},options:[{value:"icon",label:(0,y.__)("Icon","sureforms")},{value:"image",label:(0,y.__)("Image","sureforms")}],showIcons:!1}),React.createElement("span",{className:"srfm-control-label srfm-control__header"},(0,y.__)("Edit Options","sureforms")),React.createElement(Oc,{onDragEnd:function(e){var t=e.source.index,n=e.destination.index;if(t!==n){var o=$p(a);o.splice(n,0,o.splice(t,1)[0]),r({options:o})}}},React.createElement(iu,{droppableId:"droppable-1"},(function(e){return React.createElement("div",Kp({ref:e.innerRef},e.droppableProps),q(a),e.placeholder)}))))),V=React.createElement(React.Fragment,null,React.createElement("div",{className:"sureform-add-option-container",onKeyDown:function(e){"Enter"===e.key&&E&&P(E)}},React.createElement(Vr,{showHeaderControls:!1,label:(0,y.__)("Add New Option","sureforms"),value:E,onChange:function(e){_r(e)||S(e)}}),React.createElement(v.Button,{className:"sureform-add-option-button",variant:"secondary",onClick:function(){E&&P(E)}},(0,y.__)("ADD","sureforms")),React.createElement(Up,{options:a,titleKey:"optionTitle",insertOptions:function(e,t){r({options:e}),t()}})),React.createElement("span",{className:"srfm-control-label srfm-control__header"})),G=[{id:"required",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:i,onChange:function(e){return r({required:e})}})},{id:"errorMsg",component:i&&React.createElement(Vr,{data:{value:d,label:"errorMsg"},label:(0,y.__)("Error Message","sureforms"),value:L,onChange:function(e){j(e),r({errorMsg:e})}})},{id:"verticalLayout",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Vertical Layout","sureforms"),checked:h,onChange:function(e){return r({verticalLayout:e})}})},{id:"singleSelection",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Allow Only Single Selection","sureforms"),checked:s,onChange:function(e){return r({singleSelection:e})}})},{id:"min-max",component:B},{id:"choiceWidth",component:React.createElement(v.SelectControl,{label:(0,y.__)("Choice Width","sureforms"),value:l,options:[{label:(0,y.__)("Full Width","sureforms"),value:100},{label:(0,y.__)("Two Columns","sureforms"),value:50},{label:(0,y.__)("Three Columns","sureforms"),value:33.33},{label:(0,y.__)("Four Columns","sureforms"),value:25}],onChange:function(e){return r({choiceWidth:Number(e)})},__nextHasNoMarginBottom:!0})},{id:"choicesOptions",component:F},{id:"addNewOption",component:V},{id:"control-label-span",component:React.createElement("span",{className:"srfm-control-label srfm-control__header"})},{id:"help",component:React.createElement(Vr,{data:{value:c,label:"help"},label:(0,y.__)("Help Text","sureforms"),value:c,onChange:function(e){return r({help:e})}})}],W=_n(G,e);return React.createElement("div",A,React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},W.map((function(e){return e.component})))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:r,attributes:t})))),React.createElement(su,{blockID:u,attributes:t,isSelected:n,setAttributes:r,optionType:m}),React.createElement("div",{className:"srfm-error-wrap"}))}));var nh=dr.name,oh={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 7h-9v2h9V7zm0 8h-9v2h9v-2zM5.54 11L2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 11zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L5.54 19z"}}]})(e)},edit:rh,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),null}},ih=a(67198);function ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var lh=function(e){var t=e.setAttributes,r=e.attributes,n=e.blockID,o=r.label,i=r.placeholder,a=r.required,l=r.autoCountry,s=r.help,c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ah(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ah(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.")}()}((0,b.useState)(""),2),u=c[0],d=c[1],f=a?" srfm-required":"",p="phone";return(0,b.useEffect)((function(){fetch("https://ipapi.co/json").then((function(e){return e.json()})).then((function(e){var t=e.country_code;t=t.toLowerCase(),d(t)})).catch((function(e){return console.log(e)}))}),[l]),React.createElement(React.Fragment,null,React.createElement(g.RichText,{tagName:"label",value:o,onChange:function(e){t({label:yr(e)})},className:"srfm-block-label".concat(f),multiline:!1,id:n,allowedFormats:[]}),React.createElement(Wr,{help:s,setAttributes:t,block_id:n}),React.createElement("div",{className:"srfm-block-wrap"},React.createElement(ih.A,{containerClassName:"intl-tel-input",inputClassName:"srfm-input-common srfm-input-".concat(p),fieldId:"srfm-input-".concat(p,"-").concat(n),placeholder:i,autoPlaceholder:!1,pattern:"[0-9]{10}",defaultCountry:l?u:"us",separateDialCode:!0})))};function sh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const ch=(0,fn.compose)(dn)((function(e){var t=e.attributes,r=e.setAttributes,n=e.clientId,o=t.required,i=t.help,a=t.block_id,l=t.isUnique,s=t.duplicateMsg,c=t.preview,u=t.errorMsg,d=t.formId,f=t.autoCountry,p=t.className,h=Gr(n),m=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sh(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.")}()}((0,b.useState)(null),2),_=(m[0],m[1]);(0,b.useEffect)((function(){d!==h&&r({formId:h})}),[d,r,h]);var w=gr("srfm_phone_block_required_text",u),C=w.currentMessage,x=w.setCurrentMessage,E=gr("srfm_phone_block_unique_text",s),S=E.currentMessage,k=E.setCurrentMessage;if(c){var O=srfm_fields_preview.phone_preview;return React.createElement(H,{fieldName:O})}return React.createElement("div",{className:p},React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:o,onChange:function(e){return r({required:e})}}),o&&React.createElement(Vr,{label:(0,y.__)("Error Message","sureforms"),data:{value:u,label:"errorMsg"},value:C,onChange:function(e){x(e),r({errorMsg:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Validate as Unique","sureforms"),checked:l,onChange:function(e){return r({isUnique:e})}}),l&&React.createElement(Vr,{label:(0,y.__)("Validation Message for Duplicate ","sureforms"),value:S,data:{value:s,label:"duplicateMsg"},onChange:function(e){k(e),r({duplicateMsg:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Enable Auto Country Detection","sureforms"),checked:f,onChange:function(e){return r({autoCountry:e})}}),React.createElement(Vr,{label:(0,y.__)("Help Text","sureforms"),value:i,data:{value:i,label:"help"},onChange:function(e){return r({help:e})}}))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:r,attributes:t})))),React.createElement(lh,{attributes:t,blockID:a,handleChange:function(e){_(e.target.value)},setAttributes:r}),React.createElement("div",{className:"srfm-error-wrap"}))}));var uh=ir.name,dh={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.5 1h-8A2.5 2.5 0 005 3.5v17A2.5 2.5 0 007.5 23h8a2.5 2.5 0 002.5-2.5v-17A2.5 2.5 0 0015.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}}]})(e)},edit:ch,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),null}},fh=function(e){var t=e.attributes,r=e.setAttributes,n=e.blockID,o=t.required,i=t.label,a=t.placeholder,l=t.help,s=o?" srfm-required":"",c="Select an option"===a?(0,y.__)("Select an option","sureforms"):a,u="dropdown";return React.createElement(React.Fragment,null,React.createElement(g.RichText,{tagName:"label",value:i,onChange:function(e){r({label:yr(e)})},className:"srfm-block-label".concat(s),multiline:!1,id:"srfm-listbox-label ".concat(n),allowedFormats:[]}),React.createElement(Wr,{help:l,setAttributes:r,block_id:n}),React.createElement("div",{className:"srfm-block-wrap srfm-dropdown-common-wrap"},React.createElement("input",{type:"text",className:"srfm-input-common srfm-".concat(u,"-input"),id:"srfm-".concat(u,"-state-").concat(n),"aria-required":o?"true":"false",placeholder:c,readOnly:!0}),React.createElement("div",{className:"ts-dropdown-icon"},React.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeOpacity:"0.65",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})))))};function ph(e){return ph="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},ph(e)}function hh(){return hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hh.apply(null,arguments)}function mh(e){return function(e){if(Array.isArray(e))return wh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_h(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 vh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vh(Object(r),!0).forEach((function(t){bh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bh(e,t,r){return(t=function(e){var t=function(e){if("object"!=ph(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ph(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ph(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||_h(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 _h(e,t){if(e){if("string"==typeof e)return wh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wh(e,t):void 0}}function wh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Ch=(0,fn.compose)(dn)((function(e){var t=e.attributes,r=e.setAttributes,n=e.clientId,o=t.required,i=t.options,a=t.help,l=t.block_id,s=t.errorMsg,c=t.formId,u=t.preview,d=t.className,f=t.multiSelect,p=t.searchable,h=t.minValue,m=t.maxValue,_=Gr(n),w=yh((0,b.useState)(""),2),C=w[0],x=w[1],E=yh((0,b.useState)(!1),2),S=E[0],k=E[1],O=function(e,t){var n=i.map((function(r,n){return t===n&&(r=gh(gh({},r),e)),r}));r({options:n})};function R(e,t){""!==e?_r(e)||O({label:e},t):A(t)}function A(e){var t=mh(i);t.splice(e,1),r({options:t})}var T=function(e){r({options:[].concat(mh(i),[{label:e,icon:""}])}),x("")};(0,b.useEffect)((function(){c!==_&&r({formId:_})}),[c,r,_]);var M=gr("srfm_dropdown_block_required_text",s),N=M.currentMessage,P=M.setCurrentMessage;if(u){var I=srfm_fields_preview.dropdown_preview;return React.createElement(H,{fieldName:I})}var L=f&&i.length>1&&React.createElement(React.Fragment,null,React.createElement(ro,{label:(0,y.__)("Minimum Value","sureforms"),displayUnit:!1,data:{value:h,label:"minValue"},min:1,max:(m||i.length)-1,value:h,onChange:function(e){e>=m?(k(!0),r({minValue:0})):(k(!1),r({minValue:e}))},showControlHeader:!1}),React.createElement(ro,{label:(0,y.__)("Maximum Value","sureforms"),displayUnit:!1,data:{value:m,label:"maxValue"},min:h+1||1,max:i.length,value:m,onChange:function(e){e<=h?(k(!0),r({maxValue:Number(h)+1})):(k(!1),r({maxValue:e}))},showControlHeader:!1}),S&&React.createElement("p",{className:"srfm-min-max-error-styles"},(0,y.__)("Please check the Minimum and Maximum value","sureforms")),React.createElement("p",{className:"components-base-control__help"},(0,y.__)("Note: Maximum value should always be greater than minimum value","sureforms"))),j=React.createElement("div",{style:{marginBottom:"8px"}},i.length>0&&React.createElement(React.Fragment,null,React.createElement("span",{className:"srfm-control-label srfm-control__header"},(0,y.__)("Edit Options","sureforms")),React.createElement(Oc,{onDragEnd:function(e){var t=e.source.index,n=e.destination.index;if(t!==n){var o=mh(i);o.splice(n,0,o.splice(t,1)[0]),r({options:o})}}},React.createElement(iu,{droppableId:"droppable-1"},(function(t){return React.createElement("div",hh({ref:t.innerRef},t.droppableProps),i.map((function(t,r){return React.createElement(tu,{key:r,draggableId:"draggable-"+r,index:r},(function(n){return React.createElement("div",hh({ref:n.innerRef,className:"srfm-option-outer-wrapper"},n.draggableProps),function(e,t){return(0,z.applyFilters)("srfm.blocks.dropdown.options.enhance",e,t)}(function(e,t,r){return React.createElement(React.Fragment,null,React.createElement("div",null,React.createElement("span",t.dragHandleProps,React.createElement(ae,{style:{width:"20px",height:"20px"}})),React.createElement("div",null,React.createElement(Vr,{showHeaderControls:!1,key:r,value:e.label,data:{value:e.label,label:"option"},onChange:function(e){return R(e,r)}})),React.createElement("div",{className:"srfm-icon-picker"},React.createElement(_p,{label:"",value:e.icon,onChange:function(e){return O({icon:e},r)},addIcon:jr(vo.custom_plus_icon)})),React.createElement(v.Button,{icon:"trash",onClick:function(){return A(r)}})))}(t,n,r),{props:e,option:t,param:n,i:r,editOption:R,changeOption:O,handleDelete:A}))}))})),t.placeholder)}))))),D=React.createElement(React.Fragment,null,React.createElement("div",{className:"sureform-add-option-container",onKeyDown:function(e){"Enter"===e.key&&C&&T(C)}},React.createElement(Vr,{showHeaderControls:!1,label:(0,y.__)("Add New Option","sureforms"),value:C,onChange:function(e){_r(e)||x(e)}}),React.createElement(v.Button,{className:"sureform-add-option-button",variant:"secondary",onClick:function(){C&&T(C)}},(0,y.__)("ADD","sureforms")),React.createElement(Up,{options:i,titleKey:"label",insertOptions:function(e,t){r({options:e}),t()}})),React.createElement("span",{className:"srfm-control-label srfm-control__header"})),B=[{id:"required",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:o,onChange:function(e){return r({required:e})}})},{id:"multiSelect",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Enable Multiple Selections","sureforms"),checked:f,onChange:function(e){return r({multiSelect:e})}})},{id:"minMaxComponent",component:L},{id:"searchable",component:React.createElement(v.ToggleControl,{label:(0,y.__)("Enable Search","sureforms"),checked:p,onChange:function(e){return r({searchable:e})}})},{id:"errorMsg",component:o?React.createElement(Vr,{label:(0,y.__)("Error Message","sureforms"),data:{value:s,label:"errorMsg"},value:N,onChange:function(e){P(e),r({errorMsg:e})}}):null},{id:"dropDownOptions",component:j},{id:"addNewOption",component:D},{id:"help",component:React.createElement(Vr,{data:{value:a,label:"help"},label:(0,y.__)("Help Text","sureforms"),value:a,onChange:function(e){return r({help:e})}})}],q=_n(B,e);return React.createElement("div",{className:d},React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},q.map((function(e){return e.component})))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:r,attributes:t})))),React.createElement(fh,{attributes:t,blockID:l,setAttributes:r}),React.createElement("div",{className:"srfm-error-wrap"}))}));var xh=fr.name,Eh={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z",opacity:".87"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}}]})(e)},edit:Ch,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),null}};const Sh=JSON.parse('[{"name":"Afghanistan","dial_code":"+93","code":"AF"},{"name":"Aland Islands","dial_code":"+358","code":"AX"},{"name":"Albania","dial_code":"+355","code":"AL"},{"name":"Algeria","dial_code":"+213","code":"DZ"},{"name":"American Samoa","dial_code":"+1684","code":"AS"},{"name":"Andorra","dial_code":"+376","code":"AD"},{"name":"Angola","dial_code":"+244","code":"AO"},{"name":"Anguilla","dial_code":"+1264","code":"AI"},{"name":"Antarctica","dial_code":"+672","code":"AQ"},{"name":"Antigua and Barbuda","dial_code":"+1268","code":"AG"},{"name":"Argentina","dial_code":"+54","code":"AR"},{"name":"Armenia","dial_code":"+374","code":"AM"},{"name":"Aruba","dial_code":"+297","code":"AW"},{"name":"Australia","dial_code":"+61","code":"AU"},{"name":"Austria","dial_code":"+43","code":"AT"},{"name":"Azerbaijan","dial_code":"+994","code":"AZ"},{"name":"Bahamas","dial_code":"+1242","code":"BS"},{"name":"Bahrain","dial_code":"+973","code":"BH"},{"name":"Bangladesh","dial_code":"+880","code":"BD"},{"name":"Barbados","dial_code":"+1246","code":"BB"},{"name":"Belarus","dial_code":"+375","code":"BY"},{"name":"Belgium","dial_code":"+32","code":"BE"},{"name":"Belize","dial_code":"+501","code":"BZ"},{"name":"Benin","dial_code":"+229","code":"BJ"},{"name":"Bermuda","dial_code":"+1441","code":"BM"},{"name":"Bhutan","dial_code":"+975","code":"BT"},{"name":"Bolivia, Plurinational State of","dial_code":"+591","code":"BO"},{"name":"Bosnia and Herzegovina","dial_code":"+387","code":"BA"},{"name":"Botswana","dial_code":"+267","code":"BW"},{"name":"Brazil","dial_code":"+55","code":"BR"},{"name":"British Indian Ocean Territory","dial_code":"+246","code":"IO"},{"name":"Brunei Darussalam","dial_code":"+673","code":"BN"},{"name":"Bulgaria","dial_code":"+359","code":"BG"},{"name":"Burkina Faso","dial_code":"+226","code":"BF"},{"name":"Burundi","dial_code":"+257","code":"BI"},{"name":"Cambodia","dial_code":"+855","code":"KH"},{"name":"Cameroon","dial_code":"+237","code":"CM"},{"name":"Canada","dial_code":"+1","code":"CA"},{"name":"Cape Verde","dial_code":"+238","code":"CV"},{"name":"Cayman Islands","dial_code":"+ 345","code":"KY"},{"name":"Central African Republic","dial_code":"+236","code":"CF"},{"name":"Chad","dial_code":"+235","code":"TD"},{"name":"Chile","dial_code":"+56","code":"CL"},{"name":"China","dial_code":"+86","code":"CN"},{"name":"Christmas Island","dial_code":"+61","code":"CX"},{"name":"Cocos (Keeling) Islands","dial_code":"+61","code":"CC"},{"name":"Colombia","dial_code":"+57","code":"CO"},{"name":"Comoros","dial_code":"+269","code":"KM"},{"name":"Congo","dial_code":"+242","code":"CG"},{"name":"Congo, The Democratic Republic of the Congo","dial_code":"+243","code":"CD"},{"name":"Cook Islands","dial_code":"+682","code":"CK"},{"name":"Costa Rica","dial_code":"+506","code":"CR"},{"name":"Cote d\'Ivoire","dial_code":"+225","code":"CI"},{"name":"Croatia","dial_code":"+385","code":"HR"},{"name":"Cuba","dial_code":"+53","code":"CU"},{"name":"Cyprus","dial_code":"+357","code":"CY"},{"name":"Czech Republic","dial_code":"+420","code":"CZ"},{"name":"Denmark","dial_code":"+45","code":"DK"},{"name":"Djibouti","dial_code":"+253","code":"DJ"},{"name":"Dominica","dial_code":"+1767","code":"DM"},{"name":"Dominican Republic","dial_code":"+1849","code":"DO"},{"name":"Ecuador","dial_code":"+593","code":"EC"},{"name":"Egypt","dial_code":"+20","code":"EG"},{"name":"El Salvador","dial_code":"+503","code":"SV"},{"name":"Equatorial Guinea","dial_code":"+240","code":"GQ"},{"name":"Eritrea","dial_code":"+291","code":"ER"},{"name":"Estonia","dial_code":"+372","code":"EE"},{"name":"Ethiopia","dial_code":"+251","code":"ET"},{"name":"Falkland Islands (Malvinas)","dial_code":"+500","code":"FK"},{"name":"Faroe Islands","dial_code":"+298","code":"FO"},{"name":"Fiji","dial_code":"+679","code":"FJ"},{"name":"Finland","dial_code":"+358","code":"FI"},{"name":"France","dial_code":"+33","code":"FR"},{"name":"French Guiana","dial_code":"+594","code":"GF"},{"name":"French Polynesia","dial_code":"+689","code":"PF"},{"name":"Gabon","dial_code":"+241","code":"GA"},{"name":"Gambia","dial_code":"+220","code":"GM"},{"name":"Georgia","dial_code":"+995","code":"GE"},{"name":"Germany","dial_code":"+49","code":"DE"},{"name":"Ghana","dial_code":"+233","code":"GH"},{"name":"Gibraltar","dial_code":"+350","code":"GI"},{"name":"Greece","dial_code":"+30","code":"GR"},{"name":"Greenland","dial_code":"+299","code":"GL"},{"name":"Grenada","dial_code":"+1473","code":"GD"},{"name":"Guadeloupe","dial_code":"+590","code":"GP"},{"name":"Guam","dial_code":"+1671","code":"GU"},{"name":"Guatemala","dial_code":"+502","code":"GT"},{"name":"Guernsey","dial_code":"+44","code":"GG"},{"name":"Guinea","dial_code":"+224","code":"GN"},{"name":"Guinea-Bissau","dial_code":"+245","code":"GW"},{"name":"Guyana","dial_code":"+595","code":"GY"},{"name":"Haiti","dial_code":"+509","code":"HT"},{"name":"Holy See (Vatican City State)","dial_code":"+379","code":"VA"},{"name":"Honduras","dial_code":"+504","code":"HN"},{"name":"Hong Kong","dial_code":"+852","code":"HK"},{"name":"Hungary","dial_code":"+36","code":"HU"},{"name":"Iceland","dial_code":"+354","code":"IS"},{"name":"India","dial_code":"+91","code":"IN"},{"name":"Indonesia","dial_code":"+62","code":"ID"},{"name":"Iran, Islamic Republic of Persian Gulf","dial_code":"+98","code":"IR"},{"name":"Iraq","dial_code":"+964","code":"IQ"},{"name":"Ireland","dial_code":"+353","code":"IE"},{"name":"Isle of Man","dial_code":"+44","code":"IM"},{"name":"Israel","dial_code":"+972","code":"IL"},{"name":"Italy","dial_code":"+39","code":"IT"},{"name":"Jamaica","dial_code":"+1876","code":"JM"},{"name":"Japan","dial_code":"+81","code":"JP"},{"name":"Jersey","dial_code":"+44","code":"JE"},{"name":"Jordan","dial_code":"+962","code":"JO"},{"name":"Kazakhstan","dial_code":"+77","code":"KZ"},{"name":"Kenya","dial_code":"+254","code":"KE"},{"name":"Kiribati","dial_code":"+686","code":"KI"},{"name":"Korea, Democratic People\'s Republic of Korea","dial_code":"+850","code":"KP"},{"name":"Korea, Republic of South Korea","dial_code":"+82","code":"KR"},{"name":"Kuwait","dial_code":"+965","code":"KW"},{"name":"Kyrgyzstan","dial_code":"+996","code":"KG"},{"name":"Laos","dial_code":"+856","code":"LA"},{"name":"Latvia","dial_code":"+371","code":"LV"},{"name":"Lebanon","dial_code":"+961","code":"LB"},{"name":"Lesotho","dial_code":"+266","code":"LS"},{"name":"Liberia","dial_code":"+231","code":"LR"},{"name":"Libyan Arab Jamahiriya","dial_code":"+218","code":"LY"},{"name":"Liechtenstein","dial_code":"+423","code":"LI"},{"name":"Lithuania","dial_code":"+370","code":"LT"},{"name":"Luxembourg","dial_code":"+352","code":"LU"},{"name":"Macao","dial_code":"+853","code":"MO"},{"name":"Macedonia","dial_code":"+389","code":"MK"},{"name":"Madagascar","dial_code":"+261","code":"MG"},{"name":"Malawi","dial_code":"+265","code":"MW"},{"name":"Malaysia","dial_code":"+60","code":"MY"},{"name":"Maldives","dial_code":"+960","code":"MV"},{"name":"Mali","dial_code":"+223","code":"ML"},{"name":"Malta","dial_code":"+356","code":"MT"},{"name":"Marshall Islands","dial_code":"+692","code":"MH"},{"name":"Martinique","dial_code":"+596","code":"MQ"},{"name":"Mauritania","dial_code":"+222","code":"MR"},{"name":"Mauritius","dial_code":"+230","code":"MU"},{"name":"Mayotte","dial_code":"+262","code":"YT"},{"name":"Mexico","dial_code":"+52","code":"MX"},{"name":"Micronesia, Federated States of Micronesia","dial_code":"+691","code":"FM"},{"name":"Moldova","dial_code":"+373","code":"MD"},{"name":"Monaco","dial_code":"+377","code":"MC"},{"name":"Mongolia","dial_code":"+976","code":"MN"},{"name":"Montenegro","dial_code":"+382","code":"ME"},{"name":"Montserrat","dial_code":"+1664","code":"MS"},{"name":"Morocco","dial_code":"+212","code":"MA"},{"name":"Mozambique","dial_code":"+258","code":"MZ"},{"name":"Myanmar","dial_code":"+95","code":"MM"},{"name":"Namibia","dial_code":"+264","code":"NA"},{"name":"Nauru","dial_code":"+674","code":"NR"},{"name":"Nepal","dial_code":"+977","code":"NP"},{"name":"Netherlands","dial_code":"+31","code":"NL"},{"name":"Netherlands Antilles","dial_code":"+599","code":"AN"},{"name":"New Caledonia","dial_code":"+687","code":"NC"},{"name":"New Zealand","dial_code":"+64","code":"NZ"},{"name":"Nicaragua","dial_code":"+505","code":"NI"},{"name":"Niger","dial_code":"+227","code":"NE"},{"name":"Nigeria","dial_code":"+234","code":"NG"},{"name":"Niue","dial_code":"+683","code":"NU"},{"name":"Norfolk Island","dial_code":"+672","code":"NF"},{"name":"Northern Mariana Islands","dial_code":"+1670","code":"MP"},{"name":"Norway","dial_code":"+47","code":"NO"},{"name":"Oman","dial_code":"+968","code":"OM"},{"name":"Pakistan","dial_code":"+92","code":"PK"},{"name":"Palau","dial_code":"+680","code":"PW"},{"name":"Palestinian Territory, Occupied","dial_code":"+970","code":"PS"},{"name":"Panama","dial_code":"+507","code":"PA"},{"name":"Papua New Guinea","dial_code":"+675","code":"PG"},{"name":"Paraguay","dial_code":"+595","code":"PY"},{"name":"Peru","dial_code":"+51","code":"PE"},{"name":"Philippines","dial_code":"+63","code":"PH"},{"name":"Pitcairn","dial_code":"+872","code":"PN"},{"name":"Poland","dial_code":"+48","code":"PL"},{"name":"Portugal","dial_code":"+351","code":"PT"},{"name":"Puerto Rico","dial_code":"+1939","code":"PR"},{"name":"Qatar","dial_code":"+974","code":"QA"},{"name":"Romania","dial_code":"+40","code":"RO"},{"name":"Russia","dial_code":"+7","code":"RU"},{"name":"Rwanda","dial_code":"+250","code":"RW"},{"name":"Reunion","dial_code":"+262","code":"RE"},{"name":"Saint Barthelemy","dial_code":"+590","code":"BL"},{"name":"Saint Helena, Ascension and Tristan Da Cunha","dial_code":"+290","code":"SH"},{"name":"Saint Kitts and Nevis","dial_code":"+1869","code":"KN"},{"name":"Saint Lucia","dial_code":"+1758","code":"LC"},{"name":"Saint Martin","dial_code":"+590","code":"MF"},{"name":"Saint Pierre and Miquelon","dial_code":"+508","code":"PM"},{"name":"Saint Vincent and the Grenadines","dial_code":"+1784","code":"VC"},{"name":"Samoa","dial_code":"+685","code":"WS"},{"name":"San Marino","dial_code":"+378","code":"SM"},{"name":"Sao Tome and Principe","dial_code":"+239","code":"ST"},{"name":"Saudi Arabia","dial_code":"+966","code":"SA"},{"name":"Senegal","dial_code":"+221","code":"SN"},{"name":"Serbia","dial_code":"+381","code":"RS"},{"name":"Seychelles","dial_code":"+248","code":"SC"},{"name":"Sierra Leone","dial_code":"+232","code":"SL"},{"name":"Singapore","dial_code":"+65","code":"SG"},{"name":"Slovakia","dial_code":"+421","code":"SK"},{"name":"Slovenia","dial_code":"+386","code":"SI"},{"name":"Solomon Islands","dial_code":"+677","code":"SB"},{"name":"Somalia","dial_code":"+252","code":"SO"},{"name":"South Africa","dial_code":"+27","code":"ZA"},{"name":"South Sudan","dial_code":"+211","code":"SS"},{"name":"South Georgia and the South Sandwich Islands","dial_code":"+500","code":"GS"},{"name":"Spain","dial_code":"+34","code":"ES"},{"name":"Sri Lanka","dial_code":"+94","code":"LK"},{"name":"Sudan","dial_code":"+249","code":"SD"},{"name":"Suriname","dial_code":"+597","code":"SR"},{"name":"Svalbard and Jan Mayen","dial_code":"+47","code":"SJ"},{"name":"Swaziland","dial_code":"+268","code":"SZ"},{"name":"Sweden","dial_code":"+46","code":"SE"},{"name":"Switzerland","dial_code":"+41","code":"CH"},{"name":"Syrian Arab Republic","dial_code":"+963","code":"SY"},{"name":"Taiwan","dial_code":"+886","code":"TW"},{"name":"Tajikistan","dial_code":"+992","code":"TJ"},{"name":"Tanzania, United Republic of Tanzania","dial_code":"+255","code":"TZ"},{"name":"Thailand","dial_code":"+66","code":"TH"},{"name":"Timor-Leste","dial_code":"+670","code":"TL"},{"name":"Togo","dial_code":"+228","code":"TG"},{"name":"Tokelau","dial_code":"+690","code":"TK"},{"name":"Tonga","dial_code":"+676","code":"TO"},{"name":"Trinidad and Tobago","dial_code":"+1868","code":"TT"},{"name":"Tunisia","dial_code":"+216","code":"TN"},{"name":"Turkey","dial_code":"+90","code":"TR"},{"name":"Turkmenistan","dial_code":"+993","code":"TM"},{"name":"Turks and Caicos Islands","dial_code":"+1649","code":"TC"},{"name":"Tuvalu","dial_code":"+688","code":"TV"},{"name":"Uganda","dial_code":"+256","code":"UG"},{"name":"Ukraine","dial_code":"+380","code":"UA"},{"name":"United Arab Emirates","dial_code":"+971","code":"AE"},{"name":"United Kingdom","dial_code":"+44","code":"GB"},{"name":"United States","dial_code":"+1","code":"US"},{"name":"Uruguay","dial_code":"+598","code":"UY"},{"name":"Uzbekistan","dial_code":"+998","code":"UZ"},{"name":"Vanuatu","dial_code":"+678","code":"VU"},{"name":"Venezuela, Bolivarian Republic of Venezuela","dial_code":"+58","code":"VE"},{"name":"Vietnam","dial_code":"+84","code":"VN"},{"name":"Virgin Islands, British","dial_code":"+1284","code":"VG"},{"name":"Virgin Islands, U.S.","dial_code":"+1340","code":"VI"},{"name":"Wallis and Futuna","dial_code":"+681","code":"WF"},{"name":"Yemen","dial_code":"+967","code":"YE"},{"name":"Zambia","dial_code":"+260","code":"ZM"},{"name":"Zimbabwe","dial_code":"+263","code":"ZW"}]');function kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Oh=(0,fn.compose)(dn)((function(e){var t=e.clientId,r=e.attributes,n=e.setAttributes,o=r.label,i=r.block_id,a=r.formId,l=r.preview,s=r.help,c=r.className,u=Gr(t);if((0,b.useEffect)((function(){a!==u&&n({formId:u})}),[a,n,u]),l){var d=srfm_fields_preview.address_preview;return React.createElement(H,{fieldName:d})}var f,p="srfm-".concat("address","-").concat(i),h=[["srfm/input",{label:"Address Line 1",fieldWidth:50}],["srfm/input",{label:"Address Line 2",fieldWidth:50}],["srfm/input",{label:"City",fieldWidth:50}],["srfm/input",{label:"State",fieldWidth:50}],["srfm/input",{label:"Postal Code",fieldWidth:50}],["srfm/dropdown",{label:"Country",options:(f=Sh.map((function(e){return{label:e.name,icon:""}})),function(e){if(Array.isArray(e))return kh(e)}(f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(f)||function(e,t){if(e){if("string"==typeof e)return kh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kh(e,t):void 0}}(f)||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.")}()),fieldWidth:50}]];return React.createElement("div",{className:c},React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},React.createElement(Vr,{label:(0,y.__)("Help Text","sureforms"),value:s,data:{value:s,label:"help"},onChange:function(e){return n({help:e})}}))),React.createElement(Le,Be,React.createElement(yn,{setAttributes:n,attributes:r})))),React.createElement(g.RichText,{tagName:"label",value:o,onChange:function(e){n({label:yr(e)})},className:"srfm-block-label",multiline:!1,id:p,allowedFormats:[]}),React.createElement(Wr,{help:s,setAttributes:n,block_id:p}),React.createElement(g.InnerBlocks,{template:h,allowedBlocks:["srfm/input","srfm/dropdown"]}))}));var Rh=ur.name,Ah={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}},{tag:"circle",attr:{cx:"12",cy:"9",r:"2.5"}}]})(e)},edit:Oh,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),React.createElement(g.InnerBlocks.Content,null)}};const Th=function(e){var t=e.attributes,r=e.setAttributes,n=t.help,o=t.required,i=t.defaultValue,a=t.errorMsg,l=t.readOnly,s=gr("srfm_url_block_required_text",a),c=s.currentMessage,u=s.setCurrentMessage;return React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["general","advance"],defaultTab:"general"},React.createElement(Le,je,React.createElement(We,{title:(0,y.__)("Attributes","sureforms"),initialOpen:!0},React.createElement(Vr,{label:(0,y.__)("Default Value","sureforms"),className:"srfm-with-dropdown",value:i||"",withSmartTagDropdown:!0,data:{value:i,label:"defaultValue"},onChange:function(e){return r({defaultValue:e})}}),i&&React.createElement(v.ToggleControl,{label:(0,y.__)("Read Only","sureforms"),checked:l,onChange:function(e){return r({readOnly:e})}}),React.createElement(v.ToggleControl,{label:(0,y.__)("Required","sureforms"),checked:o,onChange:function(e){return r({required:e})}}),o&&React.createElement(Vr,{label:(0,y.__)("Error Message","sureforms"),data:{value:a,label:"errorMsg"},value:c,onChange:function(e){u(e),r({errorMsg:e})}}),React.createElement(Vr,{label:(0,y.__)("Help Text","sureforms"),value:n,data:{value:n,label:"help"},onChange:function(e){return r({help:e})}}))),React.createElement(Le,De),React.createElement(Le,Be,React.createElement(yn,{setAttributes:r,attributes:t}))))};var Mh=function(e){var t=e.attributes,r=e.blockID,n=e.setAttributes,o=t.label,i=t.required,a=t.defaultValue,l=t.help,s=t.readOnly,c=i?" srfm-required":"";return React.createElement(React.Fragment,null,React.createElement(g.RichText,{tagName:"label",value:o,onChange:function(e){n({label:yr(e)})},className:"srfm-block-label".concat(c),multiline:!1,id:r,allowedFormats:[]}),React.createElement(Wr,{help:l,setAttributes:n,block_id:r}),React.createElement("div",{className:"srfm-block-wrap".concat(s?" srfm-read-only":"")},React.createElement("input",{id:"srfm-".concat("url","-").concat(r),type:"text",value:a,className:"srfm-input-common srfm-input-".concat("url"),required:i})))};const Nh=(0,fn.compose)(dn)((function(e){var t=e.attributes,r=e.setAttributes,n=e.clientId,o=t.block_id,i=t.formId,a=t.preview,l=t.className,s=Gr(n);if((0,b.useEffect)((function(){i!==s&&r({formId:s})}),[i,r,s]),a){var c=srfm_fields_preview.url_preview;return React.createElement(H,{fieldName:c})}return React.createElement("div",{className:l},React.createElement(Th,{attributes:t,setAttributes:r}),React.createElement(Mh,{blockID:o,setAttributes:r,attributes:t}),React.createElement("div",{className:"srfm-error-wrap"}))}));var Ph=lr.name,Ih={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8z"}}]})(e)},edit:Nh};function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lh.apply(null,arguments)}const jh=(0,fn.compose)(dn)((function(e){var t=e.clientId,r=e.attributes,n=e.setAttributes,o=r.buttonText,i=r.block_id,a=r.formId,l=r.preview,s=r.className,c=Gr(t);(0,b.useEffect)((function(){a!==c&&n({formId:c})}),[a,c]);var u=(0,P.useSelect)((function(e){return e(Lt.store).getEditedPostAttribute("meta")})),d=null==u?void 0:u._srfm_inherit_theme_button;if(l){var f=srfm_fields_preview.input_preview;return React.createElement(H,{fieldName:f})}return React.createElement("div",{className:"srfm-custom-button-ctn"+(s?" ".concat(s):"")},React.createElement(g.InspectorControls,null,React.createElement(Ie,{tabs:["advance"]},React.createElement(Le,Lh({},Be,{initialOpen:!0}),React.createElement(yn,{setAttributes:n,attributes:r})))),React.createElement(React.Fragment,null,React.createElement("button",{style:{width:"100%"},className:"".concat(d?"wp-block-button__link":"srfm-button srfm-submit-button srfm-inline-submit-button")},React.createElement(g.RichText,{value:o,onChange:function(e){n({buttonText:yr(e)})},multiline:!1,id:i,allowedFormats:[]})),React.createElement("div",{className:"srfm-error-wrap"})))}));var Dh=hr.name,Bh={icon:function(e){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 9v6c0 1.1-.9 2-2 2h-1v-2h1V9H4v6h6v2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-7.5 10l1.09-2.41L18 15.5l-2.41-1.09L14.5 12l-1.09 2.41L11 15.5l2.41 1.09L14.5 19zm2.5-5l.62-1.38L19 12l-1.38-.62L17 10l-.62 1.38L15 12l1.38.62L17 14zm-2.5 5l1.09-2.41L18 15.5l-2.41-1.09L14.5 12l-1.09 2.41L11 15.5l2.41 1.09L14.5 19zm2.5-5l.62-1.38L19 12l-1.38-.62L17 10l-.62 1.38L15 12l1.38.62L17 14z"}}]})(e)},edit:jh,save:function(e){return function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),null}};const Hh=window.wp.blocks;function zh(e){return zh="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},zh(e)}function qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(r),!0).forEach((function(t){Vh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vh(e,t,r){return(t=function(e){var t=function(e){if("object"!=zh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=zh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gh=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])||[]).forEach(Wh)},Wh=function(e){if(e){var t=e.metadata,r=e.settings,n="srfm/form"!==t.name?{transforms:{from:[{type:"block",blocks:vr(t.name),transform:function(e){return(0,Hh.createBlock)(t.name,e)}}]}}:{};(0,Hh.registerBlockType)(Fh({},t),Fh(Fh({},r),n))}};function Uh(e){return Uh="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},Uh(e)}function Zh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Kh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(r),!0).forEach((function(t){$h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $h(e,t,r){return(t=function(e){var t=function(e){if("object"!=Uh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Uh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yh={srfmGlobalData:{}};function Xh(e){return Xh="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},Xh(e)}var Jh,Qh=function(e){if(!e||"object"!==Xh(e))throw new Error("Invalid payload: must be an object.");return{type:"UPDATE_SRFM_GLOBAL_DATA",payload:e}},em=function(e){return e.srfmGlobalData},tm=(0,P.createReduxStore)("sureforms",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yh,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_SRFM_GLOBAL_DATA"===t.type?Kh(Kh({},e),{},{srfmGlobalData:Kh(Kh({},e.srfmGlobalData),t.payload)}):e},actions:h,selectors:m});function rm(e){return rm="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},rm(e)}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function om(){return om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},om.apply(null,arguments)}function im(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function am(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?im(Object(r),!0).forEach((function(t){lm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):im(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lm(e,t,r){return(t=function(e){var t=function(e){if("object"!=rm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=rm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(0,P.register)(tm);var sm=[t,n,f,o,s,i,l,r,e,c,u,d,p];"sureforms_form"===(null===(Jh=srfm_block_data)||void 0===Jh||null===(Jh=Jh.current_screen)||void 0===Jh?void 0:Jh.id)?(Gh(sm),wp.hooks.addFilter("blocks.registerBlockType","srfm/filter-paragraph-category",(function(e,t){return"core/paragraph"===t?am(am({},e),{},{category:"sureforms",attributes:am(am({},e.attributes),{},{className:{type:"string",default:"srfm-custom-wp-paragraph"}})}):e}))):Gh([e]);var cm=(0,fn.createHigherOrderComponent)((function(e){return function(t){var r=t.attributes,n=t.name,o=am({},t.wrapperProps);if(vr().includes(n)){var i=null!=r&&r.fieldWidth?String(r.fieldWidth):"100",a=i?i.replace(".","-"):"100",l=n.replace("srfm/","");return React.createElement(e,om({},t,{wrapperProps:o,className:null!=r&&r.fieldWidth&&"Mobile"!==Ue()?"srfm-block srfm-block-single srfm-".concat(l,"-block-wrap srfm-block-width-").concat(a):""}))}return React.createElement(e,t)}}),"blockWidthWrapperProps");(0,z.addFilter)("editor.BlockListBlock","srfm/with-block-with-wrapper-props",cm);var um=(0,fn.createHigherOrderComponent)((function(e){return function(t){var r=t.name,n=t.setAttributes,o=t.attributes,i=(0,z.applyFilters)("srfm.ExcludeWithToolbarButton","");return vr(i).includes(r)?React.createElement(React.Fragment,null,React.createElement(g.BlockControls,null,React.createElement(v.ToolbarGroup,null,[100,75,66.66,50,33.33,25].map((function(e){var t;t=33.33===e?"33%":66.66===e?"67%":"".concat(e,"%");var r=(0,y.sprintf)((0,y.__)("%s Width","sureforms"),t),i=(null==o?void 0:o.fieldWidth)===e?"is-selected srfm-toolbar-width-setting-button":"srfm-toolbar-width-setting-button";return React.createElement(v.ToolbarButton,{key:e,className:i,icon:React.createElement("span",{className:"srfm-toolbar-width-setting-icon"},t),label:r,onClick:function(){return n({fieldWidth:Number(e)})}})})))),React.createElement(e,t)):React.createElement(e,t)}}),"withToolbarButton");wp.hooks.addFilter("editor.BlockEdit","srfm/with-toolbar-button",um),(0,z.addFilter)("srfm.enable.responsiveToggle","srfm/disable-responsive-toggle",(function(){return!1})),(0,z.addFilter)("srfm.advanced-heading.settings.advance","srfm/advanced-heading-settings-advance",(function(e,t){var r,n=t.setAttributes,o=t.attributes;return[].concat(function(e){if(Array.isArray(e))return nm(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return nm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nm(e,t):void 0}}(r)||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.")}(),[{id:"conditional-logic",content:React.createElement(yn,{setAttributes:n,attributes:o})}])}))})()})();