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 n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var i=this.getEditorContents(),o=null!=(n=e.value)?n:"";this.isEqualValue(o,i)||this.setEditorContents(this.editor,o)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),s(this.cleanProps,this.dirtyProps).some((function(t){return!d.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!d.default(e[n],t.props[n])}))},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 n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var o=this.regenerationSnapshot,s=(r=o.delta,o.selection);delete this.regenerationSnapshot,this.instantiateEditor();var a=this.editor;a.setContents(r),f((function(){return n.setEditorSelection(a,s)}))}},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 n=new c.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},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)?d.default(e.ops,t.ops):d.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),f((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.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=u.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,n=t.children,r=t.preserveWhitespace,i={key:this.state.generation,ref:function(t){e.editingArea=t}};return l.default.Children.count(n)?l.default.cloneElement(l.default.Children.only(n),i):r?l.default.createElement("pre",o({},i)):l.default.createElement("div",o({},i))},t.prototype.render=function(){var e;return l.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,n,r){var i,o;if(this.editor){var s=this.isDelta(this.value)?r.getContents():r.getHTML();s!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=s,null===(o=(i=this.props).onChange)||void 0===o||o.call(i,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,i,o,s,a,l;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,h=u&&!e;d.default(e,u)||(this.selection=e,null===(i=(r=this.props).onChangeSelection)||void 0===i||i.call(r,e,t,n),c?null===(s=(o=this.props).onFocus)||void 0===s||s.call(o,e,t,n):h&&(null===(l=(a=this.props).onBlur)||void 0===l||l.call(a,u,t,n)))}},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=c.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(l.default.Component);function f(e){Promise.resolve().then(e)}e.exports=h},1036:(e,t,n)=>{const r=n(3719),i=n(3150),{isPlainObject:o}=n(6057),s=n(9996),a=n(9430),{parse:l}=n(20),u=["img","audio","video","picture","svg","object","map","iframe","embed"],d=["script","style"];function c(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function h(e,t){return{}.hasOwnProperty.call(e,t)}function f(e,t){const n=[];return c(e,(function(e){t(e)&&n.push(e)})),n}e.exports=m;const p=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let _="",g="";function y(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=_.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if($.length){$[$.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if($.length&&u.includes(this.tag)){$[$.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},O,t.parser);const b=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};d.forEach((function(e){b(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const v=t.nonTextTags||["script","style","textarea","option"];let w,k;t.allowedAttributes&&(w={},k={},c(t.allowedAttributes,(function(e,t){w[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):w[t].push(e)})),n.length&&(k[t]=new RegExp("^("+n.join("|")+")$"))})));const M={},S={},T={};c(t.allowedClasses,(function(e,t){if(w&&(h(w,t)||(w[t]=[]),w[t].push("class")),M[t]=e,Array.isArray(e)){const n=[];M[t]=[],T[t]=[],e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?T[t].push(e):M[t].push(e)})),n.length&&(S[t]=new RegExp("^("+n.join("|")+")$"))}}));const L={};let x,Y,$,P,D,Q,j;c(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=m.simpleTransform(e)),"*"===t?x=n:L[t]=n}));let q=!1;N();const E=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&N(),Q)return void j++;const r=new y(e,n);$.push(r);let i=!1;const u=!!r.text;let d;if(h(L,e)&&(d=L[e](e,n),r.attribs=n=d.attribs,void 0!==d.text&&(r.innerText=d.text),e!==d.tagName&&(r.name=e=d.tagName,D[Y]=d.tagName)),x&&(d=x(e,n),r.attribs=n=d.attribs,e!==d.tagName&&(r.name=e=d.tagName,D[Y]=d.tagName)),(!b(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(h(e,t))return!1;return!0}(P)||null!=t.nestingLimit&&Y>=t.nestingLimit)&&(i=!0,P[Y]=!0,"discard"===t.disallowedTagsMode&&-1!==v.indexOf(e)&&(Q=!0,j=1),P[Y]=!0),Y++,i){if("discard"===t.disallowedTagsMode)return;g=_,_=""}_+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!w||h(w,e)||w["*"])&&c(n,(function(n,i){if(!p.test(i))return void delete r.attribs[i];if(""===n&&!t.allowedEmptyAttributes.includes(i)&&(t.nonBooleanAttributes.includes(i)||t.nonBooleanAttributes.includes("*")))return void delete r.attribs[i];let u=!1;if(!w||h(w,e)&&-1!==w[e].indexOf(i)||w["*"]&&-1!==w["*"].indexOf(i)||h(k,e)&&k[e].test(i)||k["*"]&&k["*"].test(i))u=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===i){u=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(u){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&R(e,n))return void delete r.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const r=C(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const r=C(n);if(r.isRelativeUrl)e=h(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i)try{let e=a(n);if(e.forEach((function(e){R("srcset",e.url)&&(e.evil=!0)})),e=f(e,(function(e){return!e.evil})),!e.length)return void delete r.attribs[i];n=f(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i){const t=M[e],o=M["*"],a=S[e],l=T[e],u=[a,S["*"]].concat(l).filter((function(e){return e}));if(!(n=W(n,t&&o?s(t,o):t||o,u)).length)return void delete r.attribs[i]}if("style"===i)if(t.parseStyleAttributes)try{const o=function(e,t){if(!t)return e;const n=e.nodes[0];let r;r=t[n.selector]&&t["*"]?s(t[n.selector],t["*"]):t[n.selector]||t["*"];r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){if(h(e,n.prop)){e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n)}return t}}(r),[]));return e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles);if(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(o),0===n.length)return void delete r.attribs[i]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete r.attribs[i]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");_+=" "+i,n&&n.length?_+='="'+A(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(_+='=""')}else delete r.attribs[i]})),-1!==t.selfClosing.indexOf(e)?_+=" />":(_+=">",!r.innerText||u||t.textFilter||(_+=A(r.innerText),q=!0)),i&&(_=g+A(_),g="")},ontext:function(e){if(Q)return;const n=$[$.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=A(e,!1);t.textFilter&&!q?_+=t.textFilter(n,r):q||(_+=n)}else _+=e;if($.length){$[$.length-1].text+=e}},onclosetag:function(e,n){if(Q){if(j--,j)return;Q=!1}const r=$.pop();if(!r)return;if(r.tag!==e)return void $.push(r);Q=!!t.enforceHtmlBoundary&&"html"===e,Y--;const i=P[Y];if(i){if(delete P[Y],"discard"===t.disallowedTagsMode)return void r.updateParentNodeText();g=_,_=""}D[Y]&&(e=D[Y],delete D[Y]),t.exclusiveFilter&&t.exclusiveFilter(r)?_=_.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!b(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(_=g,g=""):(_+=""+e+">",i&&(_=g+A(_),g=""),q=!1))}},t.parser);return E.write(e),E.end(),_;function N(){_="",Y=0,$=[],P={},D={},Q=!1,j=0}function A(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(//g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),n&&(e=e.replace(/"/g,""")),e}function R(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const r=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=r[1].toLowerCase();return h(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function C(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}function W(e,t,n){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||n.some((function(t){return t.test(e)}))})).join(" "):e}}const O={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},m.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r
{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},9196:e=>{"use strict";e.exports=window.React},1850:e=>{"use strict";e.exports=window.ReactDOM},6292:e=>{"use strict";e.exports=window.moment},2868:()=>{},4777:()=>{},9830:()=>{},209:()=>{},7414:()=>{},2618:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";var e={};n.r(e),n.d(e,{getActiveTab:()=>Pn,getDeleteStatus:()=>jn,getFieldDeleteMessage:()=>Gn,getFieldDeleteMessages:()=>Fn,getFieldDeleteStatus:()=>Zn,getFieldDeleteStatuses:()=>In,getFieldRelatedObjects:()=>$n,getFieldSaveMessage:()=>Xn,getFieldSaveMessages:()=>Un,getFieldSaveStatus:()=>Hn,getFieldSaveStatuses:()=>Vn,getFieldTypeObject:()=>Yn,getFieldTypeObjects:()=>xn,getFieldsFromAllGroups:()=>gn,getGlobalFieldOptions:()=>Ln,getGlobalGroupOptions:()=>Tn,getGlobalPodFieldsFromAllGroups:()=>Sn,getGlobalPodGroup:()=>kn,getGlobalPodGroupFields:()=>Mn,getGlobalPodGroups:()=>wn,getGlobalPodOption:()=>vn,getGlobalPodOptions:()=>bn,getGlobalShowFields:()=>yn,getGroup:()=>On,getGroupDeleteMessage:()=>zn,getGroupDeleteMessages:()=>Wn,getGroupDeleteStatus:()=>Cn,getGroupDeleteStatuses:()=>Rn,getGroupFields:()=>_n,getGroupSaveMessage:()=>An,getGroupSaveMessages:()=>Nn,getGroupSaveStatus:()=>En,getGroupSaveStatuses:()=>qn,getGroups:()=>mn,getPodID:()=>cn,getPodName:()=>hn,getPodOption:()=>pn,getPodOptions:()=>fn,getSaveMessage:()=>Qn,getSaveStatus:()=>Dn,getState:()=>dn});var t={};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function o(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nhr,addGroupField:()=>Or,deleteField:()=>Mr,deleteGroup:()=>wr,deletePod:()=>br,moveGroup:()=>cr,refreshPodData:()=>ur,removeGroup:()=>fr,removeGroupField:()=>_r,resetFieldSaveStatus:()=>ir,resetGroupSaveStatus:()=>tr,saveField:()=>kr,saveGroup:()=>vr,savePod:()=>yr,setActiveTab:()=>Bn,setDeleteStatus:()=>Kn,setFieldDeleteStatus:()=>or,setFieldSaveStatus:()=>rr,setGroupData:()=>pr,setGroupDeleteStatus:()=>nr,setGroupFieldData:()=>gr,setGroupFields:()=>mr,setGroupSaveStatus:()=>er,setGroups:()=>dr,setOptionValue:()=>ar,setOptionsValues:()=>lr,setPodName:()=>sr,setSaveStatus:()=>Jn});var u=n(9196),d=n.n(u),c=n(1850),h=n.n(c);const f=window.lodash,p=window.wp.hooks,m=window.wp.data,O=window.wp.plugins;function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:L(e)?2:x(e)?3:0}function k(e,t){return 2===w(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function M(e,t){return 2===w(e)?e.get(t):e[t]}function S(e,t,n){var r=w(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function T(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function L(e){return re&&e instanceof Map}function x(e){return ie&&e instanceof Set}function Y(e){return e.o||e.t}function $(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ce(e);delete t[le];for(var n=de(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=D),Object.freeze(e),t&&v(e,(function(e,t){return P(t,!0)}),!0)),e}function D(){g(2)}function Q(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function j(e){var t=he[e];return t||g(18,e),t}function q(e,t){he[e]||(he[e]=t)}function E(){return te}function N(e,t){t&&(j("Patches"),e.u=[],e.s=[],e.v=t)}function A(e){R(e),e.p.forEach(W),e.p=null}function R(e){e===te&&(te=e.l)}function C(e){return te={p:[],l:te,h:e,m:!0,_:0}}function W(e){var t=e[le];0===t.i||1===t.i?t.j():t.O=!0}function z(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||j("ES5").S(t,e,r),r?(n[le].P&&(A(t),g(4)),b(e)&&(e=V(t,e),t.l||U(t,e)),t.u&&j("Patches").M(n[le].t,e,t.u,t.s)):e=V(t,n,[]),A(t),t.u&&t.v(t.u,t.s),e!==se?e:void 0}function V(e,t,n){if(Q(t))return t;var r=t[le];if(!r)return v(t,(function(i,o){return H(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return U(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=$(r.k):r.o;v(3===r.i?new Set(i):i,(function(t,o){return H(e,r,i,t,o,n)})),U(e,i,!1),n&&e.u&&j("Patches").R(r,n,e.u,e.s)}return r.o}function H(e,t,n,r,i,o){if(y(i)){var s=V(e,i,o&&t&&3!==t.i&&!k(t.D,r)?o.concat(r):void 0);if(S(n,r,s),!y(s))return;e.m=!1}if(b(i)&&!Q(i)){if(!e.h.F&&e._<1)return;V(e,i),t&&t.A.l||U(e,i)}}function U(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&P(t,n)}function X(e,t){var n=e[le];return(n?Y(n):e)[t]}function I(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Z(e){e.P||(e.P=!0,e.l&&Z(e.l))}function F(e){e.o||(e.o=$(e.t))}function G(e,t,n){var r=L(t)?j("MapSet").N(t,n):x(t)?j("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:E(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=fe;n&&(i=[r],o=pe);var s=Proxy.revocable(i,o),a=s.revoke,l=s.proxy;return r.k=l,r.j=a,l}(t,n):j("ES5").J(t,n);return(n?n.A:E()).p.push(r),r}function B(e){return y(e)||g(22,e),function e(t){if(!b(t))return t;var n,r=t[le],i=w(t);if(r){if(!r.P&&(r.i<4||!j("ES5").K(r)))return r.t;r.I=!0,n=J(t,i),r.I=!1}else n=J(t,i);return v(n,(function(t,i){r&&M(r.t,t)===i||S(n,t,e(i))})),3===i?new Set(n):n}(e)}function J(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return $(e)}function K(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[le];return fe.get(t,e)},set:function(t){var n=this[le];fe.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][le];if(!i.P)switch(i.i){case 5:r(i)&&Z(i);break;case 4:n(i)&&Z(i)}}}function n(e){for(var t=e.t,n=e.k,r=de(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==le){var s=t[o];if(void 0===s&&!k(t,o))return!0;var a=n[o],l=a&&a[le];if(l?l.t!==s:!T(a,s))return!0}}var u=!!t[le];return r.length!==de(t).length+(u?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),a=1;a1?r-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=j("Patches").$;return y(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),Oe=new me;Oe.produce,Oe.produceWithPatches.bind(Oe),Oe.setAutoFreeze.bind(Oe),Oe.setUseProxies.bind(Oe),Oe.applyPatches.bind(Oe),Oe.createDraft.bind(Oe),Oe.finishDraft.bind(Oe);function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:e)},tailGetFrom:function(t){return lt(t,st(e))},createTree:function(t){return at(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e)},tailCreateTree:function(t){return at(t,st(e))}}},dt=ut("currentPod"),ct=ut("".concat(dt.path,".name")),ht=ut("".concat(dt.path,".id")),ft=ut("".concat(dt.path,".groups")),pt=ut("global"),mt=ut("".concat(pt.path,".showFields")),Ot=ut("".concat(pt.path,".pod")),_t=ut("".concat(Ot.path,".groups")),gt=ut("".concat(pt.path,".group")),yt=ut("".concat(pt.path,".field")),bt=ut("data"),vt=ut("".concat(bt.path,".fieldTypes")),wt=ut("".concat(bt.path,".relatedObjects")),kt=ut("ui"),Mt=ut("".concat(kt.path,".activeTab")),St=ut("".concat(kt.path,".saveStatus")),Tt=ut("".concat(kt.path,".deleteStatus")),Lt=ut("".concat(kt.path,".saveMessage")),xt=ut("".concat(kt.path,".groupSaveStatuses")),Yt=ut("".concat(kt.path,".groupSaveMessages")),$t=ut("".concat(kt.path,".groupDeleteStatuses")),Pt=ut("".concat(kt.path,".groupDeleteMessages")),Dt=ut("".concat(kt.path,".fieldSaveStatuses")),Qt=ut("".concat(kt.path,".fieldSaveMessages")),jt=ut("".concat(kt.path,".fieldDeleteStatuses")),qt=ut("".concat(kt.path,".fieldDeleteMessages")),Et="pods/dfv",Nt={NONE:"",DELETING:"DELETING",DELETE_SUCCESS:"DELETE_SUCCESS",DELETE_ERROR:"DELETE_ERROR"},At={NONE:"",SAVING:"SAVING",SAVE_SUCCESS:"SAVE_SUCCESS",SAVE_ERROR:"SAVE_ERROR",DELETE_ERROR:"DELETE_ERROR"},Rt="UI/SET_ACTIVE_TAB",Ct="UI/SET_SAVE_STATUS",Wt="UI/SET_DELETE_STATUS",zt="UI/SET_GROUP_SAVE_STATUS",Vt="UI/SET_GROUP_DELETE_STATUS",Ht="UI/SET_FIELD_SAVE_STATUS",Ut="UI/SET_FIELD_DELETE_STATUS",Xt="CURRENT_POD/SET_POD_NAME",It="CURRENT_POD/SET_OPTION_ITEM_VALUE",Zt="CURRENT_POD/SET_OPTIONS_VALUES",Ft="CURRENT_POD/SET_GROUPS",Gt="CURRENT_POD/MOVE_GROUP",Bt="CURRENT_POD/ADD_GROUP",Jt="CURRENT_POD/REMOVE_GROUP",Kt="CURRENT_POD/SET_GROUP_DATA",en="CURRENT_POD/SET_GROUP_FIELDS",tn="CURRENT_POD/ADD_GROUP_FIELD",nn="CURRENT_POD/REMOVE_GROUP_FIELD",rn="CURRENT_POD/SET_GROUP_FIELD_DATA",on="CURRENT_POD/API_REQUEST",sn={activeTab:"manage-fields",saveStatus:At.NONE,saveMessage:null,deleteStatus:Nt.NONE,deleteMessage:null,groupSaveStatuses:{},groupSaveMessages:{},groupDeleteStatuses:{},groupDeleteMessages:{},fieldSaveStatuses:{},fieldSaveMessages:{},fieldDeleteStatuses:{},fieldDeleteMessages:{}};function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:sn,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case Rt:return ln(ln({},e),{},{activeTab:t.activeTab});case Ct:var n,r=Object.values(At).includes(t.saveStatus)?t.saveStatus:sn.saveStatus;return ln(ln({},e),{},{saveStatus:r,saveMessage:(null===(n=t.result)||void 0===n?void 0:n.message)||""});case Wt:var i,s=Object.values(Nt).includes(t.deleteStatus)?t.deleteStatus:sn.deleteStatus;return ln(ln({},e),{},{deleteStatus:s,deleteMessage:(null===(i=t.result)||void 0===i?void 0:i.message)||""});case zt:var a,l,u,d,c=t.result,h=Object.values(At).includes(t.saveStatus)?t.saveStatus:sn.saveStatus,p=(null===(a=c.group)||void 0===a?void 0:a.name)&&(null===(l=c.group)||void 0===l?void 0:l.name)!==t.previousGroupName||!1?null===(u=c.group)||void 0===u?void 0:u.name:t.previousGroupName,m=ln(ln({},(0,f.omit)(e.groupSaveStatuses,[t.previousGroupName])),{},o({},p,h)),O=ln(ln({},(0,f.omit)(e.groupSaveMessages,[t.previousGroupName])),{},o({},p,(null===(d=t.result)||void 0===d?void 0:d.message)||""));return ln(ln({},e),{},{groupSaveStatuses:m,groupSaveMessages:O});case Vt:var _,g=Object.values(Nt).includes(t.deleteStatus)?t.deleteStatus:Nt.NONE;return t.name?ln(ln({},e),{},{groupDeleteStatuses:ln(ln({},e.groupDeleteStatuses),{},o({},t.name,g)),groupDeleteMessages:ln(ln({},e.groupDeleteMessages),{},o({},t.name,(null===(_=t.result)||void 0===_?void 0:_.message)||""))}):e;case Ht:var y,b,v,w=t.result,k=Object.values(At).includes(t.saveStatus)?t.saveStatus:sn.saveStatus,M=(null===(y=w.field)||void 0===y?void 0:y.name)&&(null===(b=w.field)||void 0===b?void 0:b.name)!==t.previousFieldName||!1?w.field.name:t.previousFieldName,S=ln(ln({},(0,f.omit)(e.fieldSaveStatuses,[t.previousFieldName])),{},o({},M,k)),T=ln(ln({},(0,f.omit)(e.fieldSaveMessages,[t.previousFieldName])),{},o({},M,(null===(v=t.result)||void 0===v?void 0:v.message)||""));return ln(ln({},e),{},{fieldSaveStatuses:S,fieldSaveMessages:T});case Ut:var L,x=Object.values(Nt).includes(t.deleteStatus)?t.deleteStatus:Nt.NONE;return t.name?ln(ln({},e),{},{fieldDeleteStatuses:ln(ln({},e.fieldDeleteStatuses),{},o({},t.name,x)),fieldDeleteMessages:ln(ln({},e.fieldDeleteMessages),{},o({},t.name,null===(L=t.result)||void 0===L?void 0:L.message))}):e;default:return e}},currentPod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case Xt:return ln(ln({},e),{},{name:t.name});case It:var n=t.optionName,r=t.value;return ln(ln({},e),{},o({},n,r));case Zt:return ln(ln({},e),t.options);case Gt:var i=t.oldIndex,s=t.newIndex;if(null===i||null===s||i===s)return e;if(i>=e.groups.length||0>i)return e;if(s>=e.groups.length||0>s)return e;var a=l(e.groups);return a.splice(s,0,a.splice(i,1)[0]),ln(ln({},e),{},{groups:a});case Ft:return ln(ln({},e),{},o({},ft.tailPath,t.groups));case Bt:var u,d,c;return null!=t&&null!==(u=t.result)&&void 0!==u&&null!==(d=u.group)&&void 0!==d&&d.id?ln(ln({},e),{},{groups:[].concat(l(e.groups),[null==t||null===(c=t.result)||void 0===c?void 0:c.group])}):e;case Jt:return ln(ln({},e),{},{groups:e.groups?e.groups.filter((function(e){return e.id!==t.groupID})):void 0});case Kt:var h=t.result,f=e.groups.map((function(e){var n,r;return e.id!==(null===(n=h.group)||void 0===n?void 0:n.id)?e:ln(ln({},t.result.group),{},{fields:(null===(r=h.group)||void 0===r?void 0:r.fields)||e.fields||[]})}));return ln(ln({},e),{},{groups:f});case en:var p=e.groups.map((function(e){return e.name!==t.groupName?e:ln(ln({},e),{},{fields:t.fields})}));return ln(ln({},e),{},{groups:p});case tn:var m,O;if(null==t||null===(m=t.result)||void 0===m||null===(O=m.field)||void 0===O||!O.id)return e;var _=e.groups.map((function(e){var n;if(e.name!==t.groupName)return e;var r=t.index?t.index:(null===(n=e.fields)||void 0===n?void 0:n.length)||0,i=l(e.fields||[]);return i.splice(r,0,t.result.field),ln(ln({},e),{},{fields:i})}));return ln(ln({},e),{},{groups:_});case nn:var g=e.groups.map((function(e){return e.id!==t.groupID?e:ln(ln({},e),{},{fields:e.fields.filter((function(e){return e.id!==t.fieldID}))})}));return ln(ln({},e),{},{groups:g});case rn:var y=t.result,b=e.groups.map((function(e){if(e.name!==t.groupName)return e;var n=e.fields.map((function(e){return e.id===y.field.id?y.field:e}));return ln(ln({},e),{},{fields:n})}));return ln(ln({},e),{},{groups:b});default:return e}},global:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},data:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}});var dn=function(e){return e},cn=function(e){return ht.getFrom(e)},hn=function(e){return ct.getFrom(e)},fn=function(e){return dt.getFrom(e)},pn=function(e,t){return dt.getFrom(e)[t]},mn=function(e){return ft.getFrom(e)},On=function(e,t){return mn(e).find((function(e){return t===e.name}))},_n=function(e,t){var n,r;return null!==(n=null===(r=On(e,t))||void 0===r?void 0:r.fields)&&void 0!==n?n:[]},gn=function(e){return mn(e).reduce((function(e,t){return[].concat(l(e),l((null==t?void 0:t.fields)||[]))}),[])},yn=function(e){return mt.getFrom(e)},bn=function(e){return Ot.getFrom(e)},vn=function(e,t){return Ot.getFrom(e)[t]},wn=function(e){return _t.getFrom(e)},kn=function(e,t){return wn(e).find((function(e){return e.name===t}))},Mn=function(e,t){var n;return(null===(n=kn(e,t))||void 0===n?void 0:n.fields)||[]},Sn=function(e){return wn(e).reduce((function(e,t){return[].concat(l(e),l((null==t?void 0:t.fields)||[]))}),[])},Tn=function(e){return gt.getFrom(e)},Ln=function(e){return yt.getFrom(e)},xn=function(e){return vt.getFrom(e)},Yn=function(e,t){return vt.getFrom(e)[t]},$n=function(e){return wt.getFrom(e)},Pn=function(e){return Mt.getFrom(e)},Dn=function(e){return St.getFrom(e)},Qn=function(e){return Lt.getFrom(e)},jn=function(e){return Tt.getFrom(e)},qn=function(e){return xt.getFrom(e)},En=function(e,t){return xt.getFrom(e)[t]},Nn=function(e){return Yt.getFrom(e)},An=function(e,t){return Yt.getFrom(e)[t]},Rn=function(e){return $t.getFrom(e)},Cn=function(e,t){return $t.getFrom(e)[t]},Wn=function(e){return Pt.getFrom(e)},zn=function(e,t){return Pt.getFrom(e)[t]},Vn=function(e){return Dt.getFrom(e)},Hn=function(e,t){return Dt.getFrom(e)[t]},Un=function(e){return Qt.getFrom(e)},Xn=function(e,t){return Qt.getFrom(e)[t]},In=function(e){return jt.getFrom(e)},Zn=function(e,t){return jt.getFrom(e)[t]},Fn=function(e){return qt.getFrom(e)},Gn=function(e,t){return qt.getFrom(e)[t]},Bn=function(e){return{type:Rt,activeTab:e}},Jn=function(e){return function(){return{type:Ct,saveStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},Kn=function(e){return function(){return{type:Wt,deleteStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},er=function(e,t){return function(){return{type:zt,previousGroupName:t,saveStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},tr=function(e){return{type:zt,previousGroupName:e,saveStatus:At.NONE,result:{}}},nr=function(e,t){return function(){return{type:Vt,name:t,deleteStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},rr=function(e,t){return function(){return{type:Ht,previousFieldName:t,saveStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},ir=function(e){return{type:Ht,previousFieldName:e,saveStatus:At.NONE,result:{}}},or=function(e,t){return function(){return{type:Ut,name:t,deleteStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},sr=function(e){return{type:Xt,name:e}},ar=function(e,t){return{type:It,optionName:e,value:t}},lr=function(){return{type:Zt,options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},ur=function(e){return lr((null==e?void 0:e.pod)||{})},dr=function(e){return{type:Ft,groups:e}},cr=function(e,t){return{type:Gt,oldIndex:e,newIndex:t}},hr=function(e){return{type:Bt,result:e}},fr=function(e){return{type:Jt,groupID:e}},pr=function(){return{type:Kt,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},mr=function(e,t){return{type:en,groupName:e,fields:t}},Or=function(e,t){return function(n){return{type:tn,groupName:e,index:t,result:n}}},_r=function(e,t){return{type:nn,groupID:e,fieldID:t}},gr=function(e){return function(){return{type:rn,groupName:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},yr=function(e,t){var n=(0,f.omit)(e,["id","label","name","object_type","storage","object_storage_type","type","_locale","groups"]),r={groups:(e.groups||[]).map((function(e){return{group_id:e.id,fields:(e.fields||[]).map((function(e){return e.id}))}}))},i={name:e.name||"",label:e.label||"",args:n,order:r};return{type:on,payload:{url:t?"/pods/v1/pods/".concat(t):"/pods/v1/pods",method:"POST",data:i,onSuccess:[Jn(At.SAVE_SUCCESS),ur],onFailure:Jn(At.SAVE_ERROR),onStart:Jn(At.SAVING)}}},br=function(e){return{type:on,payload:{url:"/pods/v1/pods/".concat(e),method:"DELETE",onSuccess:Kn(Nt.DELETE_SUCCESS),onFailure:Kn(Nt.DELETE_ERROR),onStart:Kn(Nt.DELETING)}}},vr=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5?arguments[5]:void 0;return{type:on,payload:{url:o?"/pods/v1/groups/".concat(o):"/pods/v1/groups",method:"POST",data:{pod_id:e.toString(),name:n,label:r,args:i},onSuccess:[er(At.SAVE_SUCCESS,t),o?pr:hr],onFailure:er(At.SAVE_ERROR,t),onStart:er(At.SAVING,t)}}},wr=function(e,t){return{type:on,payload:{url:"/pods/v1/groups/".concat(e),method:"DELETE",onSuccess:nr(Nt.DELETE_SUCCESS,t),onFailure:nr(Nt.DELETE_ERROR,t),onStart:nr(Nt.DELETING,t)}}},kr=function(e,t,n,r,i,o,s,a,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;return{type:on,payload:{url:l?"/pods/v1/fields/".concat(l):"/pods/v1/fields",method:"POST",data:{pod_id:e.toString(),group_id:t.toString(),name:i,label:o,type:s,args:a},onSuccess:[rr(At.SAVE_SUCCESS,r),l?gr(n):Or(n,u)],onFailure:rr(At.SAVE_ERROR,r),onStart:rr(At.SAVING,r)}}},Mr=function(e,t){return{type:on,payload:{url:"/pods/v1/fields/".concat(e),method:"DELETE",onSuccess:or(Nt.DELETE_SUCCESS,t),onFailure:or(Nt.DELETE_ERROR,t),onStart:or(Nt.DELETING,t)}}};function Sr(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Tr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Sr(o,r,i,s,a,"next",e)}function a(e){Sr(o,r,i,s,a,"throw",e)}s(void 0)}))}}const Lr=window.regeneratorRuntime;var xr=n.n(Lr);const Yr=window.wp.apiFetch;var $r=n.n(Yr);function Pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||a(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.")}()}const Dr=function(e){return"object"!==r(e)||(Object.entries(e).forEach((function(t){var n=Pr(t,2),r=n[0],i=n[1];"boolean"==typeof i?e[r]=i?1:0:void 0===i&&(e[r]="")})),void 0!==e.args&&Object.entries(e.args).forEach((function(t){var n=Pr(t,2),r=n[0],i=n[1];"boolean"==typeof i?e.args[r]=i?1:0:void 0===i&&(e.args[r]="")}))),e};var Qr=on;const jr=function(e){var t=e.dispatch;return function(e){return function(){var n=Tr(xr().mark((function n(r){var i,o,s,a,l,u,d,c;return xr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e(r),Qr===r.type){n.next=3;break}return n.abrupt("return");case 3:return i=r.payload,o=i.url,s=i.method,a=i.data,l=i.onSuccess,u=i.onFailure,(d=i.onStart)&&t(d()),n.prev=5,n.next=8,$r()({path:o,method:s,parse:!0,data:Dr(a)});case 8:c=n.sent,Array.isArray(l)?l.forEach((function(e){return t(e(c))})):t(l(c)),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),Array.isArray(u)?u.forEach((function(e){return t(e(n.t0))})):t(u(n.t0));case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(e){return n.apply(this,arguments)}}()}};function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return r.length?"".concat(r,"-").concat(e,"-").concat(t,"-").concat(n):"".concat(e,"-").concat(t,"-").concat(n)},Ar=function(n,r){var i=Fe({reducer:un,middleware:[jr],preloadedState:n}),o=Object.keys(e).reduce((function(t,n){return t[n]=function(){for(var t=arguments.length,r=new Array(t),o=0;o0&&qi(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&qi(r.height)/e.offsetHeight||1);var s=($i(e)?Yi(e):window).visualViewport,a=!Ni()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,u=(r.top+(a&&s?s.offsetTop:0))/o,d=r.width/i,c=r.height/o;return{width:d,height:c,top:u,right:l+d,bottom:u+c,left:l,x:l,y:u}}function Ri(e){var t=Yi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ci(e){return e?(e.nodeName||"").toLowerCase():null}function Wi(e){return(($i(e)?e.ownerDocument:e.document)||window.document).documentElement}function zi(e){return Ai(Wi(e)).left+Ri(e).scrollLeft}function Vi(e){return Yi(e).getComputedStyle(e)}function Hi(e){var t=Vi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ui(e,t,n){void 0===n&&(n=!1);var r=Pi(t),i=Pi(t)&&function(e){var t=e.getBoundingClientRect(),n=qi(t.width)/e.offsetWidth||1,r=qi(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=Wi(t),s=Ai(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ci(t)||Hi(o))&&(a=function(e){return e!==Yi(e)&&Pi(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ri(e);var t}(t)),Pi(t)?((l=Ai(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=zi(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Xi(e){var t=Ai(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ii(e){return"html"===Ci(e)?e:e.assignedSlot||e.parentNode||(Di(e)?e.host:null)||Wi(e)}function Zi(e){return["html","body","#document"].indexOf(Ci(e))>=0?e.ownerDocument.body:Pi(e)&&Hi(e)?e:Zi(Ii(e))}function Fi(e,t){var n;void 0===t&&(t=[]);var r=Zi(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Yi(r),s=i?[o].concat(o.visualViewport||[],Hi(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Fi(Ii(s)))}function Gi(e){return["table","td","th"].indexOf(Ci(e))>=0}function Bi(e){return Pi(e)&&"fixed"!==Vi(e).position?e.offsetParent:null}function Ji(e){for(var t=Yi(e),n=Bi(e);n&&Gi(n)&&"static"===Vi(n).position;)n=Bi(n);return n&&("html"===Ci(n)||"body"===Ci(n)&&"static"===Vi(n).position)?t:n||function(e){var t=/firefox/i.test(Ei());if(/Trident/i.test(Ei())&&Pi(e)&&"fixed"===Vi(e).position)return null;var n=Ii(e);for(Di(n)&&(n=n.host);Pi(n)&&["html","body"].indexOf(Ci(n))<0;){var r=Vi(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Ki="top",eo="bottom",to="right",no="left",ro="auto",io=[Ki,eo,to,no],oo="start",so="end",ao="clippingParents",lo="viewport",uo="popper",co="reference",ho=io.reduce((function(e,t){return e.concat([t+"-"+oo,t+"-"+so])}),[]),fo=[].concat(io,[ro]).reduce((function(e,t){return e.concat([t,t+"-"+oo,t+"-"+so])}),[]),po=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mo(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function Oo(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var _o={placement:"bottom",modifiers:[],strategy:"absolute"};function go(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function So(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?wo(i):null,s=i?ko(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Ki:t={x:a,y:n.y-r.height};break;case eo:t={x:a,y:n.y+n.height};break;case to:t={x:n.x+n.width,y:l};break;case no:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Mo(o):null;if(null!=u){var d="y"===u?"height":"width";switch(s){case oo:t[u]=t[u]-(n[d]/2-r[d]/2);break;case so:t[u]=t[u]+(n[d]/2-r[d]/2)}}return t}const To={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=So({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Lo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xo(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,c=e.isFixed,h=s.x,f=void 0===h?0:h,p=s.y,m=void 0===p?0:p,O="function"==typeof d?d({x:f,y:m}):{x:f,y:m};f=O.x,m=O.y;var _=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),y=no,b=Ki,v=window;if(u){var w=Ji(n),k="clientHeight",M="clientWidth";if(w===Yi(n)&&"static"!==Vi(w=Wi(n)).position&&"absolute"===a&&(k="scrollHeight",M="scrollWidth"),i===Ki||(i===no||i===to)&&o===so)b=eo,m-=(c&&w===v&&v.visualViewport?v.visualViewport.height:w[k])-r.height,m*=l?1:-1;if(i===no||(i===Ki||i===eo)&&o===so)y=to,f-=(c&&w===v&&v.visualViewport?v.visualViewport.width:w[M])-r.width,f*=l?1:-1}var S,T=Object.assign({position:a},u&&Lo),L=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:qi(t*r)/r||0,y:qi(n*r)/r||0}}({x:f,y:m}):{x:f,y:m};return f=L.x,m=L.y,l?Object.assign({},T,((S={})[b]=g?"0":"",S[y]=_?"0":"",S.transform=(v.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",S)):Object.assign({},T,((t={})[b]=g?m+"px":"",t[y]=_?f+"px":"",t.transform="",t))}const Yo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,u={placement:wo(t.placement),variation:ko(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xo(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xo(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const $o={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Pi(i)&&Ci(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Pi(r)&&Ci(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};const Po={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=fo.reduce((function(e,n){return e[n]=function(e,t,n){var r=wo(e),i=[no,Ki].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[no,to].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}};var Do={left:"right",right:"left",bottom:"top",top:"bottom"};function Qo(e){return e.replace(/left|right|bottom|top/g,(function(e){return Do[e]}))}var jo={start:"end",end:"start"};function qo(e){return e.replace(/start|end/g,(function(e){return jo[e]}))}function Eo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Di(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function No(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ao(e,t,n){return t===lo?No(function(e,t){var n=Yi(e),r=Wi(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var u=Ni();(u||!u&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+zi(e),y:l}}(e,n)):$i(t)?function(e,t){var n=Ai(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):No(function(e){var t,n=Wi(e),r=Ri(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Qi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Qi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+zi(e),l=-r.scrollTop;return"rtl"===Vi(i||n).direction&&(a+=Qi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Wi(e)))}function Ro(e,t,n,r){var i="clippingParents"===t?function(e){var t=Fi(Ii(e)),n=["absolute","fixed"].indexOf(Vi(e).position)>=0&&Pi(e)?Ji(e):e;return $i(n)?t.filter((function(e){return $i(e)&&Eo(e,n)&&"body"!==Ci(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce((function(t,n){var i=Ao(e,n,r);return t.top=Qi(i.top,t.top),t.right=ji(i.right,t.right),t.bottom=ji(i.bottom,t.bottom),t.left=Qi(i.left,t.left),t}),Ao(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Co(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Wo(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function zo(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,s=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?ao:a,u=n.rootBoundary,d=void 0===u?lo:u,c=n.elementContext,h=void 0===c?uo:c,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,O=void 0===m?0:m,_=Co("number"!=typeof O?O:Wo(O,io)),g=h===uo?co:uo,y=e.rects.popper,b=e.elements[p?g:h],v=Ro($i(b)?b:b.contextElement||Wi(e.elements.popper),l,d,s),w=Ai(e.elements.reference),k=So({reference:w,element:y,strategy:"absolute",placement:i}),M=No(Object.assign({},y,k)),S=h===uo?M:w,T={top:v.top-S.top+_.top,bottom:S.bottom-v.bottom+_.bottom,left:v.left-S.left+_.left,right:S.right-v.right+_.right},L=e.modifiersData.offset;if(h===uo&&L){var x=L[i];Object.keys(T).forEach((function(e){var t=[to,eo].indexOf(e)>=0?1:-1,n=[Ki,eo].indexOf(e)>=0?"y":"x";T[e]+=x[n]*t}))}return T}const Vo={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,d=n.boundary,c=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,O=t.options.placement,_=wo(O),g=l||(_===O||!p?[Qo(O)]:function(e){if(wo(e)===ro)return[];var t=Qo(e);return[qo(e),t,qo(t)]}(O)),y=[O].concat(g).reduce((function(e,n){return e.concat(wo(n)===ro?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?fo:l,d=ko(r),c=d?a?ho:ho.filter((function(e){return ko(e)===d})):io,h=c.filter((function(e){return u.indexOf(e)>=0}));0===h.length&&(h=c);var f=h.reduce((function(t,n){return t[n]=zo(e,{placement:n,boundary:i,rootBoundary:o,padding:s})[wo(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:d,rootBoundary:c,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,v=t.rects.popper,w=new Map,k=!0,M=y[0],S=0;S=0,$=Y?"width":"height",P=zo(t,{placement:T,boundary:d,rootBoundary:c,altBoundary:h,padding:u}),D=Y?x?to:no:x?eo:Ki;b[$]>v[$]&&(D=Qo(D));var Q=Qo(D),j=[];if(o&&j.push(P[L]<=0),a&&j.push(P[D]<=0,P[Q]<=0),j.every((function(e){return e}))){M=T,k=!1;break}w.set(T,j)}if(k)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},E=p?3:1;E>0;E--){if("break"===q(E))break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ho(e,t,n){return Qi(e,ji(t,n))}const Uo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,c=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,O=zo(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:d}),_=wo(t.placement),g=ko(t.placement),y=!g,b=Mo(_),v="x"===b?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(w){if(o){var Y,$="y"===b?Ki:no,P="y"===b?eo:to,D="y"===b?"height":"width",Q=w[b],j=Q+O[$],q=Q-O[P],E=f?-M[D]/2:0,N=g===oo?k[D]:M[D],A=g===oo?-M[D]:-k[D],R=t.elements.arrow,C=f&&R?Xi(R):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=W[$],V=W[P],H=Ho(0,k[D],C[D]),U=y?k[D]/2-E-H-z-T.mainAxis:N-H-z-T.mainAxis,X=y?-k[D]/2+E+H+V+T.mainAxis:A+H+V+T.mainAxis,I=t.elements.arrow&&Ji(t.elements.arrow),Z=I?"y"===b?I.clientTop||0:I.clientLeft||0:0,F=null!=(Y=null==L?void 0:L[b])?Y:0,G=Q+X-F,B=Ho(f?ji(j,Q+U-F-Z):j,Q,f?Qi(q,G):q);w[b]=B,x[b]=B-Q}if(a){var J,K="x"===b?Ki:no,ee="x"===b?eo:to,te=w[v],ne="y"===v?"height":"width",re=te+O[K],ie=te-O[ee],oe=-1!==[Ki,no].indexOf(_),se=null!=(J=null==L?void 0:L[v])?J:0,ae=oe?re:te-k[ne]-M[ne]-se+T.altAxis,le=oe?te+k[ne]+M[ne]-se-T.altAxis:ie,ue=f&&oe?function(e,t,n){var r=Ho(e,t,n);return r>n?n:r}(ae,te,le):Ho(f?ae:re,te,f?le:ie);w[v]=ue,x[v]=ue-te}t.modifiersData[r]=x}},requiresIfExists:["offset"]};const Xo={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=wo(n.placement),l=Mo(a),u=[no,to].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(e,t){return Co("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Wo(e,io))}(i.padding,n),c=Xi(o),h="y"===l?Ki:no,f="y"===l?eo:to,p=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],O=Ji(o),_=O?"y"===l?O.clientHeight||0:O.clientWidth||0:0,g=p/2-m/2,y=d[h],b=_-c[u]-d[f],v=_/2-c[u]/2+g,w=Ho(y,v,b),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-v,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Eo(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Io(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Zo(e){return[Ki,to,eo,no].some((function(t){return e[t]>=0}))}const Fo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=zo(t,{elementContext:"reference"}),a=zo(t,{altBoundary:!0}),l=Io(s,r),u=Io(a,i,o),d=Zo(l),c=Zo(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":c})}};var Go=yo({defaultModifiers:[vo,To,Yo,$o,Po,Vo,Uo,Xo,Fo]}),Bo="tippy-content",Jo="tippy-backdrop",Ko="tippy-arrow",es="tippy-svg-arrow",ts={passive:!0,capture:!0},ns=function(){return document.body};function rs(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function is(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function os(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ss(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function as(e){return[].concat(e)}function ls(e,t){-1===e.indexOf(t)&&e.push(t)}function us(e){return e.split("-")[0]}function ds(e){return[].slice.call(e)}function cs(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function hs(){return document.createElement("div")}function fs(e){return["Element","Fragment"].some((function(t){return is(e,t)}))}function ps(e){return is(e,"MouseEvent")}function ms(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Os(e){return fs(e)?[e]:function(e){return is(e,"NodeList")}(e)?ds(e):Array.isArray(e)?e:ds(document.querySelectorAll(e))}function _s(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function gs(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ys(e){var t,n=as(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function bs(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function vs(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var ws={isTouch:!1},ks=0;function Ms(){ws.isTouch||(ws.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ss))}function Ss(){var e=performance.now();e-ks<20&&(ws.isTouch=!1,document.removeEventListener("mousemove",Ss)),ks=e}function Ts(){var e=document.activeElement;if(ms(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Ls=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var xs={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ys=Object.assign({appendTo:ns,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},xs,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),$s=Object.keys(Ys);function Ps(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=Ys[i])?r:o);return t}),{});return Object.assign({},e,t)}function Ds(e,t){var n=Object.assign({},t,{content:os(t.content,[e])},t.ignoreAttributes?{}:function(e,t){var n=(t?Object.keys(Ps(Object.assign({},Ys,{plugins:t}))):$s).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{});return n}(e,t.plugins));return n.aria=Object.assign({},Ys.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var Qs=function(){return"innerHTML"};function js(e,t){e[Qs()]=t}function qs(e){var t=hs();return!0===e?t.className=Ko:(t.className=es,fs(e)?t.appendChild(e):js(t,e)),t}function Es(e,t){fs(t.content)?(js(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?js(e,t.content):e.textContent=t.content)}function Ns(e){var t=e.firstElementChild,n=ds(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Bo)})),arrow:n.find((function(e){return e.classList.contains(Ko)||e.classList.contains(es)})),backdrop:n.find((function(e){return e.classList.contains(Jo)}))}}function As(e){var t=hs(),n=hs();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=hs();function i(n,r){var i=Ns(t),o=i.box,s=i.content,a=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Es(s,e.props),r.arrow?a?n.arrow!==r.arrow&&(o.removeChild(a),o.appendChild(qs(r.arrow))):o.appendChild(qs(r.arrow)):a&&o.removeChild(a)}return r.className=Bo,r.setAttribute("data-state","hidden"),Es(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}As.$$tippy=!0;var Rs=1,Cs=[],Ws=[];function zs(e,t){var n,r,i,o,s,a,l,u,d=Ds(e,Object.assign({},Ys,Ps(cs(t)))),c=!1,h=!1,f=!1,p=!1,m=[],O=ss(I,d.interactiveDebounce),_=Rs++,g=(u=d.plugins).filter((function(e,t){return u.indexOf(e)===t})),y={id:_,reference:e,popper:hs(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){0;if(y.state.isDestroyed)return;Q("onBeforeUpdate",[y,t]),U();var n=y.props,r=Ds(e,Object.assign({},n,cs(t),{ignoreAttributes:!0}));y.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(E(),O=ss(I,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?as(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");q(),D(),w&&w(n,r);y.popperInstance&&(B(),K().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));Q("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){0;var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=ws.isTouch&&!y.props.touch,i=rs(y.props.duration,0,Ys.duration);if(e||t||n||r)return;if(x().hasAttribute("disabled"))return;if(Q("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,L()&&(v.style.visibility="visible");D(),C(),y.state.isMounted||(v.style.transition="none");if(L()){var o=$();_s([o.box,o.content],0)}a=function(){var e;if(y.state.isVisible&&!p){if(p=!0,v.offsetHeight,v.style.transition=y.props.moveTransition,L()&&y.props.animation){var t=$(),n=t.box,r=t.content;_s([n,r],i),gs([n,r],"visible")}j(),q(),ls(Ws,y),null==(e=y.popperInstance)||e.forceUpdate(),Q("onMount",[y]),y.props.animation&&L()&&function(e,t){z(e,t)}(i,(function(){y.state.isShown=!0,Q("onShown",[y])}))}},function(){var e,t=y.props.appendTo,n=x();e=y.props.interactive&&t===ns||"parent"===t?n.parentNode:os(t,[n]);e.contains(v)||e.appendChild(v);y.state.isMounted=!0,B(),!1}()},hide:function(){0;var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=rs(y.props.duration,1,Ys.duration);if(e||t||n)return;if(Q("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,c=!1,L()&&(v.style.visibility="hidden");if(E(),W(),D(!0),L()){var i=$(),o=i.box,s=i.content;y.props.animation&&(_s([o,s],r),gs([o,s],"hidden"))}j(),q(),y.props.animation?L()&&function(e,t){z(e,(function(){!y.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()}))}(r,y.unmount):y.unmount()},hideWithInteractivity:function(e){0;Y().addEventListener("mousemove",O),ls(Cs,O),O(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){0;y.state.isVisible&&y.hide();if(!y.state.isMounted)return;J(),K().forEach((function(e){e._tippy.unmount()})),v.parentNode&&v.parentNode.removeChild(v);Ws=Ws.filter((function(e){return e!==y})),y.state.isMounted=!1,Q("onHidden",[y])},destroy:function(){0;if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),U(),delete e._tippy,y.state.isDestroyed=!0,Q("onDestroy",[y])}};if(!d.render)return y;var b=d.render(y),v=b.popper,w=b.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+y.id,y.popper=v,e._tippy=y,v._tippy=y;var k=g.map((function(e){return e.fn(y)})),M=e.hasAttribute("aria-expanded");return H(),q(),D(),Q("onCreate",[y]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),v.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&Y().addEventListener("mousemove",O)})),y;function S(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function T(){return"hold"===S()[0]}function L(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function x(){return l||e}function Y(){var e=x().parentNode;return e?ys(e):document}function $(){return Ns(v)}function P(e){return y.state.isMounted&&!y.state.isVisible||ws.isTouch||o&&"focus"===o.type?0:rs(y.props.delay,e?0:1,Ys.delay)}function D(e){void 0===e&&(e=!1),v.style.pointerEvents=y.props.interactive&&!e?"":"none",v.style.zIndex=""+y.props.zIndex}function Q(e,t,n){var r;(void 0===n&&(n=!0),k.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=y.props)[e].apply(r,t)}function j(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,r=v.id;as(y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function q(){!M&&y.props.aria.expanded&&as(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===x()?"true":"false"):e.removeAttribute("aria-expanded")}))}function E(){Y().removeEventListener("mousemove",O),Cs=Cs.filter((function(e){return e!==O}))}function N(t){if(!ws.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!vs(v,n)){if(as(y.props.triggerTarget||e).some((function(e){return vs(e,n)}))){if(ws.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else Q("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),h=!0,setTimeout((function(){h=!1})),y.state.isMounted||W())}}}function A(){f=!0}function R(){f=!1}function C(){var e=Y();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,ts),e.addEventListener("touchstart",R,ts),e.addEventListener("touchmove",A,ts)}function W(){var e=Y();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,ts),e.removeEventListener("touchstart",R,ts),e.removeEventListener("touchmove",A,ts)}function z(e,t){var n=$().box;function r(e){e.target===n&&(bs(n,"remove",r),t())}if(0===e)return t();bs(n,"remove",s),bs(n,"add",r),s=r}function V(t,n,r){void 0===r&&(r=!1),as(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;T()&&(V("touchstart",X,{passive:!0}),V("touchend",Z,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,X),e){case"mouseenter":V("mouseleave",Z);break;case"focus":V(Ls?"focusout":"blur",F);break;case"focusin":V("focusout",F)}}))}function U(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),m=[]}function X(e){var t,n=!1;if(y.state.isEnabled&&!G(e)&&!h){var r="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,q(),!y.state.isVisible&&ps(e)&&Cs.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||c)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ee(e),"click"===e.type&&(c=!n),n&&!r&&te(e)}}function I(e){var t=e.target,n=x().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var r=K().concat(v).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,s=us(i.placement),a=i.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,d="right"===s?a.left.x:0,c="left"===s?a.right.x:0,h=t.top-r+l>o,f=r-t.bottom-u>o,p=t.left-n+d>o,m=n-t.right-c>o;return h||f||p||m}))})(r,e)&&(E(),te(e))}}function Z(e){G(e)||y.props.trigger.indexOf("click")>=0&&c||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function F(e){y.props.trigger.indexOf("focusin")<0&&e.target!==x()||y.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function G(e){return!!ws.isTouch&&T()!==e.type.indexOf("touch")>=0}function B(){J();var t=y.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,l=L()?Ns(v).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||x()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(L()){var n=$().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},c=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},d];L()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),y.popperInstance=Go(u,v,Object.assign({},n,{placement:r,onFirstUpdate:a,modifiers:c}))}function J(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function K(){return ds(v.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&Q("onTrigger",[y,e]),C();var t=P(!0),r=S(),i=r[0],o=r[1];ws.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),Q("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&c)){var t=P(!1);t?r=setTimeout((function(){y.state.isVisible&&y.hide()}),t):i=requestAnimationFrame((function(){y.hide()}))}}else W()}}function Vs(e,t){void 0===t&&(t={});var n=Ys.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ms,ts),window.addEventListener("blur",Ts);var r=Object.assign({},t,{plugins:n}),i=Os(e).reduce((function(e,t){var n=t&&zs(t,r);return n&&e.push(n),e}),[]);return fs(e)?i[0]:i}Vs.defaultProps=Ys,Vs.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Ys[t]=e[t]}))},Vs.currentInput=ws;Object.assign({},$o,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Vs.setDefaultProps({render:As});const Hs=Vs;function Us(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var Xs="undefined"!=typeof window&&"undefined"!=typeof document;function Is(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Zs(){return Xs&&document.createElement("div")}function Fs(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!Fs(e[n],t[n]))return!1}return!0}return!1}function Gs(e){var t=[];return e.forEach((function(e){t.find((function(t){return Fs(e,t)}))||t.push(e)})),t}function Bs(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Gs([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var Js=Xs?u.useLayoutEffect:u.useEffect;function Ks(e){var t=(0,u.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function ea(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var ta={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||ea(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&ea(t,"remove",e.props.className)},onAfterUpdate:r}}};function na(e){return function(t){var n=t.children,r=t.content,i=t.visible,o=t.singleton,s=t.render,a=t.reference,l=t.disabled,h=void 0!==l&&l,f=t.ignoreAttributes,p=void 0===f||f,m=(t.__source,t.__self,Us(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),O=void 0!==i,_=void 0!==o,g=(0,u.useState)(!1),y=g[0],b=g[1],v=(0,u.useState)({}),w=v[0],k=v[1],M=(0,u.useState)(),S=M[0],T=M[1],L=Ks((function(){return{container:Zs(),renders:1}})),x=Object.assign({ignoreAttributes:p},m,{content:L.container});O&&(x.trigger="manual",x.hideOnClick=!1),_&&(h=!0);var Y=x,$=x.plugins||[];s&&(Y=Object.assign({},x,{plugins:_&&null!=o.data?[].concat($,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,T(n.content)}}}}]):$,render:function(){return{popper:L.container}}}));var P=[a].concat(n?[n.type]:[]);return Js((function(){var t=a;a&&a.hasOwnProperty("current")&&(t=a.current);var n=e(t||L.ref||Zs(),Object.assign({},Y,{plugins:[ta].concat(x.plugins||[])}));return L.instance=n,h&&n.disable(),i&&n.show(),_&&o.hook({instance:n,content:r,props:Y,setSingletonContent:T}),b(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),P),Js((function(){var e;if(1!==L.renders){var t=L.instance;t.setProps(Bs(t.props,Y)),null==(e=t.popperInstance)||e.forceUpdate(),h?t.disable():t.enable(),O&&(i?t.show():t.hide()),_&&o.hook({instance:t,content:r,props:Y,setSingletonContent:T})}else L.renders++})),Js((function(){var e;if(s){var t=L.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;w.placement===n.placement&&w.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&w.escaped===(null==r?void 0:r.hasPopperEscaped)||k({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[w.placement,w.referenceHidden,w.escaped].concat(P)),d().createElement(d().Fragment,null,n?(0,u.cloneElement)(n,{ref:function(e){L.ref=e,Is(n.ref,e)}}):null,y&&(0,c.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(w),S,L.instance):r,L.container))}}var ra=function(e,t){return(0,u.forwardRef)((function(n,r){var i=n.children,o=Us(n,["children"]);return d().createElement(e,Object.assign({},t,o),i?(0,u.cloneElement)(i,{ref:function(e){Is(r,e),Is(i.ref,e)}}):null)}))};const ia=ra(na(Hs)),oa=window.wp.components;var sa=n(110),aa={};aa.styleTagTransform=hi(),aa.setAttributes=li(),aa.insert=si().bind(null,"head"),aa.domAPI=ii(),aa.insertStyleElement=di();ni()(sa.Z,aa);sa.Z&&sa.Z.locals&&sa.Z.locals;var la=n(6478),ua={};ua.styleTagTransform=hi(),ua.setAttributes=li(),ua.insert=si().bind(null,"head"),ua.domAPI=ii(),ua.insertStyleElement=di();ni()(la.Z,ua);la.Z&&la.Z.locals&&la.Z.locals;var da="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/help-tooltip.js",ca=void 0,ha=function(e){var t=e.helpText,n=e.helpLink;return d().createElement(ia,{className:"pods-help-tooltip",trigger:"click",zIndex:100001,interactive:!0,content:n?d().createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer",__self:ca,__source:{fileName:da,lineNumber:24,columnNumber:5}},d().createElement("span",{dangerouslySetInnerHTML:{__html:bi()(t,ki)},__self:ca,__source:{fileName:da,lineNumber:25,columnNumber:6}}),d().createElement(oa.Dashicon,{icon:"external",__self:ca,__source:{fileName:da,lineNumber:30,columnNumber:6}})):d().createElement("span",{dangerouslySetInnerHTML:{__html:bi()(t,ki)},__self:ca,__source:{fileName:da,lineNumber:33,columnNumber:5}}),__self:ca,__source:{fileName:da,lineNumber:17,columnNumber:3}},d().createElement("span",{tabIndex:"0",role:"button",className:"pods-help-tooltip__icon",__self:ca,__source:{fileName:da,lineNumber:40,columnNumber:4}},d().createElement(oa.Dashicon,{icon:"editor-help",__self:ca,__source:{fileName:da,lineNumber:45,columnNumber:5}})))};ha.propTypes={helpText:Cr().string.isRequired,helpLink:Cr().string};const fa=ha;var pa=n(7007),ma={};ma.styleTagTransform=hi(),ma.setAttributes=li(),ma.insert=si().bind(null,"head"),ma.domAPI=ii(),ma.insertStyleElement=di();ni()(pa.Z,ma);pa.Z&&pa.Z.locals&&pa.Z.locals;var Oa="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-label.js",_a=void 0,ga=function(e){var t=e.label,n=e.required,r=e.htmlFor,i=e.helpTextString,o=e.helpLink;return d().createElement("div",{className:"pods-field-label pods-field-label-".concat(name),__self:_a,__source:{fileName:Oa,lineNumber:20,columnNumber:2}},d().createElement("label",{className:"pods-field-label__label",htmlFor:r,__self:_a,__source:{fileName:Oa,lineNumber:21,columnNumber:3}},d().createElement("span",{dangerouslySetInnerHTML:{__html:(0,vi.removep)(bi()(t,Mi))},__self:_a,__source:{fileName:Oa,lineNumber:25,columnNumber:4}}),n&&d().createElement("span",{className:"pods-field-label__required",__self:_a,__source:{fileName:Oa,lineNumber:30,columnNumber:20}}," ","*")),i&&d().createElement("span",{className:"pods-field-label__tooltip-wrapper",__self:_a,__source:{fileName:Oa,lineNumber:34,columnNumber:4}}," ",d().createElement(fa,{helpText:i,helpLink:o,__self:_a,__source:{fileName:Oa,lineNumber:36,columnNumber:5}})))};ga.defaultProps={required:!1,helpTextString:null,helpLink:null},ga.propTypes={label:Cr().string.isRequired,htmlFor:Cr().string.isRequired,helpTextString:Cr().string,helpLink:Cr().string};const ya=ga;var ba="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/validation-messages.js",va=void 0,wa=function(e){var t=e.messages;return t.length?d().createElement("div",{className:"pods-validation-messages",__self:va,__source:{fileName:ba,lineNumber:12,columnNumber:3}},t.map((function(e){return d().createElement(oa.Notice,{key:"message",status:"error",isDismissible:!1,politeness:"polite",__self:va,__source:{fileName:ba,lineNumber:14,columnNumber:5}},e)}))):null};wa.propTypes={messages:Cr().arrayOf(Cr().string).isRequired};const ka=wa;var Ma=n(6292),Sa=n.n(Ma),Ta=function(e){return function(t,n){var r=e.toString().split(t);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,n),r.join(t)}},La=function(e,t){if(!t)return"0";var n=Pr(e.toString().replace(".","").split("e-"),2),r=n[0],i=function(e,t){return Number(e)+2-t}(n[1],r.length),o="".concat("0.".padEnd(i+2,"0")).concat(r);return t?o.substring(0,2)+o.substring(2,t+2):o};const xa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";if(null===e||"number"!=typeof e)throw new TypeError("number is not valid");return function(e){return e.toString().includes("e")}(e)?function(e,t,n,r){return function(e){return e.toString().includes("-")}(e)?La(e,t):Ta(BigInt(e))(n,r)}(e,t,n,r):function(e,t,n,r){if(!isFinite(e))throw new TypeError("number is not finite number");var i="auto"===t?(""+parseFloat(e)).replace(".",n):parseFloat(e).toFixed(t).replace(".",n);return Ta(i)(n,r)}(e,t,n,r)};var Ya=function(e){var t,n,r,i=((null===(t=window)||void 0===t||null===(n=t.podsDFVConfig)||void 0===n||null===(r=n.wp_locale)||void 0===r?void 0:r.number_format)||{}).thousands_sep;switch(e){case"9,999.99":i=",";break;case"9999.99":case"9999,99":i="";break;case"9.999,99":i=".";break;case"9'999.99":i="'";break;case"9 999,99":i=" "}return i},$a=function(e){var t,n,r,i=((null===(t=window)||void 0===t||null===(n=t.podsDFVConfig)||void 0===n||null===(r=n.wp_locale)||void 0===r?void 0:r.number_format)||{}).decimal_point;switch(e){case"9,999.99":case"9999.99":case"9'999.99":i=".";break;case"9.999,99":case"9999,99":case"9 999,99":i=","}return i},Pa=function(e,t){if(""===e)return 0;if("number"==typeof e)return e;var n=Ya(t),r=$a(t);return parseFloat(e.split(n).join("").split(r).join("."))},Da=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(""===e||null==e)return"0";var r=Ya(t),i=$a(t),o="string"==typeof e?Pa(e,t):e,s=isNaN(o)?void 0:xa(o,"auto",i,r);if(!n||void 0===s)return s;var a=parseInt(s.split(i).pop(),10);if(0!==a)return s;var l=-1*(parseInt((""+a).length,10)+1);return s.slice(0,l)},Qa=function(e){return null!=e&&""!==e&&(!Array.isArray(e)||e.length>0)},ja=function(e,t){return function(n){if((t&&Array.isArray(n)?n:[n]).some(Qa))return!0;throw(0,zr.sprintf)((0,zr.__)("%s is required.","pods"),e)}},qa=function(e,t,n){return function(r){var i=Da(r,n,!1);if(!i)return!0;var o=Ya(n),s=$a(n),a=i.split(s),l=a[0].replace(new RegExp(o,"g"),""),u=parseInt(e,10)||-1;if(-1!==u&&l.length>u)throw(0,zr.__)("Exceeded maximum digit length.","pods");var d=a[1]||"",c=parseInt(t,10)||-1;if(-1!==c&&d.length>c)throw(0,zr.__)("Exceeded maximum decimal length.","pods");return!0}},Ea=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){if(!r&&n)return!0;if(void 0===e||!e.length)return!0;var i=Sa()("".concat(e[0],"-01-01")),o=Sa()("".concat(e[e.length-1],"-12-31")),s=Sa()(r,t);if(!1===s.isValid())throw(0,zr.__)("Invalid date.","pods");if(!s.isSameOrAfter(i))throw(0,zr.__)("Date occurs before the valid range.","pods");if(!s.isSameOrBefore(o))throw(0,zr.__)("Date occurs after the valid range.","pods");return!0}},Na=function(e){return!!+e};const Aa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";if(null==e)return"";var n=bi()(e.replace(/\&/g,""),{allowedTags:[],parser:{decodeEntities:!1}});return(0,f.deburr)(n).replace(/[\s\./\\+=]+/g,t).replace(/[^\w\-_]+/g,"").toLowerCase()};const Ra=function(e){var t=e.type;if(void 0===t)throw new Error("Invalid field config.");return!!["text","website","phone","email","password","paragraph","wysiwyg","datetime","date","time","number","currency","oembed","color"].includes(t)&&Na((null==e?void 0:e.repeatable)||!1)};var Ca=function(e,t){return"object"===r(e)||"object"===r(t)?JSON.stringify(e)===JSON.stringify(t):("boolean"==typeof e&&(e=e?1:0),"boolean"==typeof t&&(t=t?1:0),isNaN(e)||isNaN(t)||(e=parseFloat(e),t=parseFloat(t)),e.toString().toLowerCase()===t.toString().toLowerCase())},Wa=function e(t,n,i){var o=t.enable_conditional_logic,s=t.conditional_logic,a=t.name;if(!Na(o))return!0;if("object"!==r(s))return!0;console.debug("Conditional logic: enabled"),console.debug({fieldName:a,conditionalLogic:s,allPodValues:n});var l=s.action,u=s.logic,d=s.rules;if(0===d.length)return"show"===l;var c=function(t){var r=t.compare,o=t.value,s=t.field;if(!r||!s)return!0;var l=void 0;if([s,"pods_meta_"+s,"pods_field_"+s].every((function(e){return void 0===n[e]||(l=n[e],!1)})),void 0===l&&!["EMPTY","NOT EMPTY"].includes(r.toUpperCase()))return console.debug("Conditional logic: no value to test"),console.debug({fieldName:a,fieldNameToTest:s,valueToTest:l,allPodValues:n}),!1;var u=function(e,t,n){if(void 0===e)return console.debug("Conditional logic: rule is undefined"),!1;switch(e=e.toUpperCase().replace("-"," ")){case"LIKE":return n.toString().toLowerCase().includes(t.toString().toLowerCase());case"NOT LIKE":return!n.toString().toLowerCase().includes(t.toString().toLowerCase());case"BEGINS":return n.toString().toLowerCase().startsWith(t.toString().toLowerCase());case"NOT BEGINS":return!n.toString().toLowerCase().startsWith(t.toString().toLowerCase());case"ENDS":return n.toString().toLowerCase().endsWith(t.toString().toLowerCase());case"NOT ENDS":return!n.toString().toLowerCase().endsWith(t.toString().toLowerCase());case"MATCHES":return Array.isArray(n)?n.some((function(e){return Boolean(e.toString().match(t))})):Boolean(n.toString().match(t));case"NOT MATCHES":return Array.isArray(n)?!n.some((function(e){return Boolean(e.toString().match(t))})):!Boolean(n.toString().match(t));case"IN":return!!Array.isArray(t)&&t.some((function(e){return Ca(e,n)}));case"NOT IN":return!!Array.isArray(t)&&!t.some((function(e){return Ca(e,n)}));case"IN VALUES":return!!Array.isArray(n)&&n.some((function(e){return Ca(e,t)}));case"NOT IN VALUES":return!!Array.isArray(n)&&!n.some((function(e){return Ca(e,t)}));case"EMPTY":return Array.isArray(n)?(console.debug("Conditional logic: value to test is an array"),0===n.length):[null,void 0].includes(n)?(console.debug("Conditional logic: value to test is null or undefined"),!0):["0",0].includes(n)?(console.debug("Conditional logic: value to test is '0' or 0"),!1):!Boolean(n);case"NOT EMPTY":return Array.isArray(n)?(console.debug("Conditional logic: value to test is an array"),n.length>0):[null,void 0].includes(n)?(console.debug("Conditional logic: value to test is null or undefined"),!1):["0",0].includes(n)?(console.debug("Conditional logic: value to test is '0' or 0"),!0):Boolean(n);case"=":return Ca(t,n);case"!=":return!Ca(t,n);case"<":return!Array.isArray(t)&&!Array.isArray(n)&&Number(n)":return!Array.isArray(t)&&!Array.isArray(n)&&Number(n)>Number(t);case">=":return!Array.isArray(t)&&!Array.isArray(n)&&Number(n)>=Number(t);default:return console.debug("Conditional logic: rule is unsupported"),console.debug({rule:e,ruleValue:t,valueToTest:n}),!1}}(r,o,l);if(console.debug("Conditional logic: validateConditionalValue doesValueMatch"),console.debug({fieldName:a,fieldNameToTest:s,doesValueMatch:u,compare:r,ruleValue:o,valueToTest:l}),!1===u)return!1;var d=i.get(s);return!d||e(d,n,i)},h=!1;return h="all"===u?d.every(c):d.some(c),"hide"===l&&(h=!h),h};const za=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;return Wa(e,t,n)};const Va=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Pr((0,u.useState)(e),2),r=n[0],i=n[1],o=Pr((0,u.useState)([]),2),s=o[0],a=o[1];(0,u.useEffect)((function(){var e=[];r.forEach((function(n){if(n.condition())try{n.rule(t)}catch(t){"string"==typeof t&&e.push(t)}})),a(e)}),[t]);return[s,function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(e){i((function(t){return[].concat(l(t),[e])}))}))}]};const Ha=function(e,t,n){(0,u.useEffect)((function(){if(null!=t&&t.current){var e=t.current.closest(".pods-field__container");e&&(e.style.display=n?"":"none")}}),[e,t,n])};function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t[<%- id %>][id]"\n\tdata-name-clean="<%- htmlAttr.name_clean %>-id"\n\tid="<%- htmlAttr.id %>-<%- id %>-id"\n\tclass="<%- htmlAttr.class %>"\n\ttype="hidden"\n\tvalue="<%- id %>" />\n\n'),className:"pods-dfv-list-item",ui:{dragHandle:".pods-dfv-list-handle",editLink:".pods-dfv-list-edit-link",viewLink:".pods-dfv-list-link",downloadLink:".pods-dfv-list-download",removeButton:".pods-dfv-list-remove",itemName:".pods-dfv-list-name"},triggers:{"click @ui.removeButton":"remove:file:click"}}),ml=ul.extend({childViewEventPrefix:!1,tagName:"ul",className:"pods-dfv-list",childView:pl,childViewTriggers:{"remove:file:click":"childview:remove:file:click"},onAttach:function(){var e=this.options.fieldModel.get("fieldConfig"),t="y";1!==parseInt(e.file_limit,10)&&("tiles"===e.file_field_template&&(t=""),this.$el.sortable({containment:"parent",axis:t,scrollSensitivity:40,tolerance:"pointer",opacity:.6}))}}),Ol=dl.extend({childViewEventPrefix:!1,tagName:"div",template:_.template('<%= fieldConfig.file_add_button %>'),ui:{addButton:".pods-dfv-list-add"},triggers:{"click @ui.addButton":"childview:add:file:click"}}),_l=PodsMn.Object.extend({constructor:function(e){this.browseButton=e.browseButton,this.uiRegion=e.uiRegion,this.fieldConfig=e.fieldConfig,this.fileCollection=e.fileCollection,PodsMn.Object.call(this,e)}}),gl=Backbone.Model.extend({defaults:{id:0,filename:"",progress:0,errorMsg:""}}),yl=PodsMn.View.extend({model:gl,tagName:"li",template:_.template('\n<% if ( \'\' !== errorMsg ) { %>\n\t<%- errorMsg %>
\n<% } %>\n'),attributes:function(){return{class:"pods-dfv-list-item",id:this.model.get("id")}},modelEvents:{change:"onModelChanged"},onModelChanged:function(){this.render()}}),bl=PodsMn.CollectionView.extend({tagName:"ul",className:"pods-dfv-list pods-dfv-list-queue",childView:yl}),vl=_l.extend({plupload:{},fileUploader:"plupload",pendingModels:[],pendingFiles:[],initialize:function(){this.fieldConfig.plupload_init.browse_button=this.browseButton[0],this.plupload=new plupload.Uploader(this.fieldConfig.plupload_init),this.plupload.init(),this.plupload.bind("FilesAdded",this.onFilesAdded,this),this.plupload.bind("UploadProgress",this.onUploadProgress,this),this.plupload.bind("FileUploaded",this.onFileUploaded,this),this.plupload.bind("UploadComplete",this.onUploadComplete,this),this.pendingFiles=[],this.pendingModels=[]},onFilesAdded:function(e,t){var n,r,i,o=new Backbone.Collection,s=parseInt(null!==(n=null===(r=this.fieldConfig)||void 0===r?void 0:r.file_limit)&&void 0!==n?n:0,10);if(0"===n.response.substr(0,3))s=s.replace(/(<([^>]+)>)/gi,""),window.console&&console.debug(s),o.set({progress:0,errorMsg:s});else{if("object"!==r(i=null!==(i=s.match(/{.*}$/))&&0 \n